query
stringlengths 14
4.09k
| positive
stringlengths 15
4.04k
| negative
listlengths 5
5
| dataset_name
stringclasses 1
value | dataset_name_id
class label 1
class |
|---|---|---|---|---|
Why is it sensical for a proposition with a false antecedent to validate to true? In propositional logic, the statement "If pigs can fly, then elephants can lay eggs." validates to true because the antecedent validates to false. In other words, given $a \rightarrow b$, if a is false, the entire statement is true. Why? Just because the antecendent is false doesn't mean that another fact depends on it, right?
|
In classical logic, why is $(p\Rightarrow q)$ True if both $p$ and $q$ are False? I am studying entailment in classical first-order logic. The Truth Table we have been presented with for the statement $(p \Rightarrow q)\;$ (a.k.a. '$p$ implies $q$') is: $$\begin{array}{|c|c|c|} \hline p&q&p\Rightarrow q\\ \hline T&T&T\\ T&F&F\\ F&T&T\\ F&F&T\\\hline \end{array}$$ I 'get' lines 1, 2, and 3, but I do not understand line 4. Why is the statement $(p \Rightarrow q)$ True if both p and q are False? We have also been told that $(p \Rightarrow q)$ is logically equivalent to $(~p || q)$ (that is $\lnot p \lor q$). Stemming from my lack of understanding of line 4 of the Truth Table, I do not understand why this equivalence is accurate. Administrative note. You may experience being directed here even though your question was actually about line 3 of the truth table instead. In that case, see the companion question And even if your original worry was about line 4, it might be useful to skim the other question anyway; many of the answers to either question attempt to explain both lines.
|
[
"Accidently deleted boot option on Dell laptop",
"Downgrading from Safari 12 (beta) to Safari 11 Installing Safari beta version is apparently only possible by replacing the builtin Safari version. In this case version 11.1.2 with 12. If beta version does not work, gives too much trouble or is just unpleasant: How do we downgrade to an official stable version, currently Safari 11.1.2 for 10.12.6 Sierra? I tried to restore everything relating to 11.1.2 from a backup (going by what is found that is in the installer package), I located and re-applied the 11.1.2_Sierra.pkg. Yet Safari now refuses to work entirely. Crashed Thread: 3 Dispatch queue: com.apple.SafariCore.RemotePlistController.internalQueue Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Application Specific Information: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[_NSPlaceholderData initWithContentsOfURL:options:error:]: nil URL argument' terminating with uncaught exception of type NSException abort() called Is there any way around re-installing the entire system?",
"\"Started to work\" vs \"Started working\"",
"Testing a UPS by unplugging it from the wall At an Not For Profit/Charity I volunteer for occasionally we were very fortunate to be provided (donated) with a brand new 3Kva APC UPS. This is total overkill for our modest server rack (four mid-range servers and a switch!) but hey, I'll take what I can get! Pressing the TEST button on the front indicates that yes, the UPS does work. Brilliant. But it only tests it for about 15 seconds. My question is - will I degrade the UPS by unplugging it from the wall to see how long it will last? My plan is to unplug it, and wait until the battery meter reaches its last LED before plugging it back in, so that I know about how long I will have in the event of a power outage. Do people do this on a regular basis? I'm guessing no (Lead Acid is very different to Li-Ion batteries)... but what kind of harm would it do if this were to happen (on purpose) every 6 months?",
"Every element of a group has order $2$. Why, intuitively, is it abelian?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
My cheats are enabled, and I was using them last night but this morning when I logged in my slash commands are reading "Unknown Command" You must have permission etc. I do play in the dark at night is there a key on my laptop that I could have hit causing this? I've looked for answers online and tried everything I could think of with no results.
|
I am an operator (OP) on my friends Realm. Today I tried to play and noticed that no commands would work for me, or anyone else granted OP. They only worked for the owner of said realm. He has de-oped us and re-oped us with no cure to the problem. What's causing this? Also another problem that when he tries to reload the realm it fails every single time, any options that would fix this problem?
|
[
"Determining Min - Max within zip code (statistics by area)? I'm new to ArcGIS Desktop. I have created a layer representing zip codes and overlayed it with a layer containing some data points. I want to find the min and max value of the data points in each zip code. Currently, I am manually checking the values if all the data points in each zip code but this is becoming very time-consuming and cumbersome. Is there a faster way to do this?",
"When do I need to invoke \\phantomsection?",
"I have 14\" 16:9 notebook and would like my Windows 10 taskbar have on the (left) side. Unfortunately, although I set it to small icons the bar is pretty wide. Do not you know how to make it thinner? This is how I would like to have it:",
"My Visual Studio (2008) Editor has stopped to underline Errors (this nifty wavy red lines). I can't really tell when, but it can be related to the installation of .Net Framework 3.5 SP 1 or the MVC Beta (which I guess is unlikely). Furthermore have I installed and uninstalled both CodeRush and Resharper for evaluation purposes (decided not to keep either one of them). Does anyone know the problem and how to restore this functionality again?",
"What happened to the Yin half of Kurama? Did Naruto get both halves of Kurama after fighting Sasuke, or did the other half of Kurama die when Minato was killed?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Did Voldemort love his mother? I know that many of here can be confused with my question because as we all know, and was also well mentioned in the books, that Voldemort never valued love. But I wonder if why he revenged and killed his father. One of my possible theory of the impossibility for Tom Riddle to love his mother: Voldemort's real intentions for murdering his father was not to give revenge for his mother, Merope, but intended it as a revenge just for himself and just to give way for his horcrux. Is this theory correct? Or there's other reasons contributing to the fact that Voldemort never loved anyone?
|
When/Why Did Love Escape Voldemort? We know that Voldemort does not love. He does not understand it, nor (generally) the magic that it possesses. He knows of the sort. [...] "you possess in such quantities and which Voldemort has not at all." [...] "because he could not bear to reside in a body so full of the force he detests. In the end, it mattered not that you could not close your mind. It was your heart that saved you." (Harry Potter and the Order of the Phoenix, page 1075) The above confirms it (although I believe there is a better quote), though reinforces it. The fact that he hugs so awkwardly shows that he does not really know how, due to his lack of love. I realize that Voldemort's appearance started to change after he started to create Horcruxes, but surely he had an ounce of love when he was a child? The hugging scene perhaps shows that he never once loved his whole life (possibly due to the love potion with his parents?). If so, when did Voldemort begin to have no love at all, and why?
|
[
"SOQL query for Multiselect picklist",
"Sum $\\frac{1}{6} + \\frac{5}{6\\cdot 12} + \\frac{5\\cdot 8}{6\\cdot 12\\cdot 18} + \\frac{5\\cdot 8\\cdot 11}{6\\cdot 12\\cdot 18\\cdot 24}+\\ldots$ A series is given as follows $$\\frac{1}{6} + \\frac{5}{6\\cdot 12} + \\frac{5\\cdot 8}{6\\cdot 12\\cdot 18} + \\frac{5\\cdot 8\\cdot 11}{6\\cdot 12\\cdot 18\\cdot 24}+\\ldots$$ Can you give me hints to get started finding its value? Thanks.",
"Finding the contact point with SAT",
"How do you find the value of $\\sum_{r=0}^{44} \\tan^2(2r+1)$? Problem: Find the value of $$\\sum_{r=0}^{44} \\tan^2(2r+1)$$ Note: The angles here are in degrees. I don't know how to solve this question because trigonometric simplifications didn't get me anywhere. I think there was a method to solve this question using complex numbers which I no longer remember. Any hint/help will be appreciated.",
"Is there any way to block websites without Root access I am searching for a way to block websites without having root access. Is there any way to do it? Any help will be appreciated."
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
3.3V Logic to 12V Logic (Uni-directional and Bi-directional) I'm looking to understand how to convert between 3.3V logic and 12V logic, in each direction individually and bidirectionally. I know this question has been asked before, but I'm overwhelmed with the wide variety of possible answers. It seems like each of these have several different solutions. Please consider that I'm using a 3.3V microcontroller () on one side, and on the other. This is not an automotive application. There will be about 50 different connections between these logic levels. Ideally, a HIGH signal on one side would result in a HIGH signal on the other side. That is, I'd like to avoid inverting the signal. 3.3V to 12V 12V to 3.3V Use one of the relays to simply switch the 3.3V signal Bidirectional 3.3V ↔ 12V Here it starts to get even more complex. I'd like to find a solution such that when either the 3.3V side or the 12V side is high, the other side goes high too. That means if the 3.3V side is logic 1, the 12V side will be logic 1 to match. When the 12V side is logic 1, the 3.3V side will be logic 1 to match. If either side is high, they are both high. If they are both low, then they'll stay low until one side changes. Almost like a logical OR. Some combination of the above. Specific bidirectional translators: 2 MOSFETs + Resistors Maybe this could be the ? Which option(s) should I choose? My head is spinning from all these options. I don't have enough knowledge to weigh these options against each other. I'm trying to avoid destroying the BBB by sourcing too much current. I'm also trying to be reasonable about cost (in terms of components and board space). update: It was clear from the feedback that I needed to provide more information. I thought it might be easier to correct a bad design, than to address this vague question. I've created a "solution" to this problem . I've requested feedback in that question. Any feedback there will address the intention behind this original question.
|
Design Review: 3.3V Logic to 12V Logic (Uni-directional and Bi-directional) I'm looking for feedback and improvements on my design below. Specific questions are at the end. I created this as an attempt to answer my own, . From my feedback there, it seems like I needed to be more clear in my requirements. These are screenshots from Eagle. If there's a better way to share, please let me know so I can correct it. Entire board The overall purpose of this board is to translate between 12V logic, and 3.3V logic. The top portion of the board represents the 12V side. The LEDs are placeholders to indicate whether the 12V signal is HIGH or LOW. In practice, these would be replaced with more , requiring up to 3A. The switches are also placeholders, allowing one to manually turn the 12V signal on and off. They are only for test purposes, the "real" 12V signal would be coming as the output from other relays. The bottom half is the 3.3V side. This will be connected to a (BBB). The board will connect to 2 output GPIO pins and 2 input GPIO pins of the BBB. Overall, I want to translate the 3.3V I/O from the BBB to the 12V signals on the other side (to control more relays and read their signals). I have designed 3 modules to control both directions individually, and together. 3V3_TO_12V Module This module converts the 3.3V GPIO output from the BBB to a 12V signal on the other side. When the 3.3V signal is low, the 12V signal is low. When the 3.3V signal is high, the 12V signal is high. To do this, the 3.3V GPIO output is connect to a , which turns a relay on and off. This switches the 12V power as output of the module to be used elsewhere. 12V_TO_3V3 Module This module converts a 12V signal to 3.3V signal, to be read by a GPIO input from the BBB on the other side. When the 12V signal is low, the 3.3V signal is low. When the 12V signal is high, the 3.3V signal is high. To do this, the 12V signal simply turns a relay on and off. This switches the 3.3V power to be read as input by the BBB. DUAL_12V↔3V3 Module This module combines the previous two modules to create a bidirectional translation. If the 12V side is high, the 3.3V input to the BBB GPIO should be high. If the 3.3V output from the BBB GPIO is high, then the 12V side should be high too. It's similar to a logical OR, if either side is high, the corresponding signal on the other side should be high too. A single 12V signal has to be split into individual input and output signals on the 3.3V side for the BBB. Questions Is the and relay combination overkill for having the BBB GPIO output control the 12V power line? I like the isolation and safety it provides, but it seems too much (in terms of cost and board space) Is there a better solution for the 12V to 3.3V conversion. I like the simplicity of the relay switching a 3.3V signal, but it takes up lots of room. Does the DUAL_12V↔3V3 Module (which combines each translation direction) even make sense? This seems wasteful to use 2 relays and a high side driver, but I haven't found simpler solution that achieves the same result. Should I add pulldown resistors for the BBB GPIO inputs, or are the internal pulldown resistors good enough? Any other feedback is welcome. I'm new to electronic design.
|
[
"How to check if $\\sum_{n=1}^\\infty \\frac 1{n!}$ is converging or diverging by direct comparison test? $$\\sum_{n=1}^\\infty \\frac 1{n!}$$ I think we may compare it with $\\frac{1}{n^n}$, and say that $\\frac{1}{n!}>\\frac{1}{n^n}$. But I am not sure of the convergence or divergence of $\\frac{1}{n^n}$ itself, so this turns out to be useless. What other way is there?",
"I want to have a video background that will loop on some frames of my presentation. Can anyone help me to do that?",
"I just re-watched the scene of Voldemort's death in the Deathly Hallows Part 2 movie. Voldemort and Harry's wands were locked with each other and then Neville killed Nagini. Suddenly, the green and red lights from Harry and Voldemort's spells disappeared. Both Voldemort and Harry noticed that the last Horcrux was no more. Seeing that, why didn't Voldemort simply escape? He could have later returned with a new set of Horcruxes.",
"In C#, what makes a field different from a property, and when should a field be used instead of a property?",
"Is Stack Exchange / Stack Overflow available for private or internal use? Is the Stack Exchange engine that powers Stack Overflow available to download or install internally for an enterprise or company? I think Stack Exchange's engine is very great and could be very cool to use for internal enterprise patterns and practices, like the engine of Wikipedia."
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
I have a variable which is as follows. let response = [ {} ]; Which is an array with an empty object. What kind of check should I put in place to determine if this response is exactly equal to this. i.e, [{}] === response; // returns false I want to have a check that returns false if the response is [{}] how do i do that. There are already questions on stack-overflow which asks on how to check for an empty object. My Question is that how do I check for an array with an empty object. So completely different. This is no duplicate of any question.
|
After an AJAX request, sometimes my application may return an empty object, like: var a = {}; How can I check whether that's the case?
|
[
"Trackpad not working after update to Ubuntu 14.10 on Dell Inspiron 15R",
"If you're interested in grammar, as I am, I am sure you have delved into a thought process about infinitive to, and like me, you have probably questioned what it is, or what it could be defined as. My mind always wants to place it in the Eight Parts of Speech, and I know this is foolish of me to some regard, so I stray from it, but I still wish to designate it under something that can be explain it. So, this is the motivation for this post, this question: What is the infinitive to, and why? Here are my thoughts: There are three real possibilities, going back through the times. First, we can say that it is part of the verb that comes after it (to go, to run, etc.). This could be supported by the claim that you are not supposed to \"split\" infinitives (\"To boldly go\"), but only that. Secondly, we could consider it a subordinator. I came across this designation most recently in my studies of modern and transformational grammar. As of right now, it is still the one I accept, especially as a result of the trend of designating more phrases as clauses. It works, except it's weird. Do we call this a unique subordinator as a result of how it operates? For example, to-infinitive clauses call for non-finite verb forms, which typically have an implied subject as a part of their clause. For example, \"I want to go to the store.\" In the infinitive clause, \"I\" is the implied subject, as a understand. So, again, this works. However, things get a little weird when other subordinators come into play. For example, \"I'm excited for you to win the competition.\" Now, if I'm right, those of you will say that \"for\" is a preposition here, as a result of the new-grammar stuff, but I'm going to count it as a subordinator, as defined by my own beliefs and that of a lot of other grammars. So, how do the clauses work in such a sentence? According to transformational grammar, \"for you to win the competition\" is defined as an ordinary clause. So, does that mean that it also contains a secondary clause within itself (the infinitive clause part)? If so, how do those two clauses work in conjunction to each other when one is so integrated? \"For you to win the competition\" looks to just be one clause, but if that's the case, doesn't \"to\" have to represent something else? This moves us on to the third way to look at things, which is to consider \"to\" as auxiliary verb, a defective one at that. There are a lot of things to support this, and it even allows for the split infinitive. Furthermore, it calls for a non-finite verb form to follow, like an auxiliary. But, as I said before, it's defective in the way that is all it can function as. As I said, I still accept to as a subordinator, but I want to be proven wrong or right. Wrong by showing evidence of it being something else, or right by showing how clauses operate when it seems to be layered up.",
"First player rolls a 6-sided die 100 times and the second player 101 times. What are the odds of the second player getting more odd numbers than the first one? I tried solving this via listing the options which led to a nasty sum that I wasn't able to solve neither by hand nor by using wolfram alpha. Clearly there has to be a more clever solution using the properties of a binomial distribution, but so far I haven't come across anything useful.",
"I noticed that Synonymizer is only a bronze badge. Yet in order to obtain this badge you need to have 2500 reputation or more to even create tag synonyms. Then, on top of that you also need to be able to find a tag synonym. Only 514 of these have been awarded... This makes the BRONZE badge Synonymizer rarer to have than most the gold medal badges. So my question is, why is this a bronze badge?",
"Omission of definite article with musical instruments What is the rule for omitting/including the definite article in the following sentences: I used to play piano. I used to play the piano. I would pick the first sentence, but I've heard people say the second sentence even when they are not referring to a specific piano. Which one is correct?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
How to create your own commands that can be used anywhere I am new to linux, and I am learning bash scripting at the moment. I was wondering how I would save my script as a command and then be able to call that command anywhere in the terminal. So i could save the command in a folder somewhere, but be able to use that command in a different folder without having to type out the path to said command. Is there a way to do this? For example, I make a script that runs chmod +x 'file' and then takes an argument for the file to run the command on. How would i go about coding this and then saving it so i can call that script from anywhere. Sorry if i didn't explain my question too well, and thank you for any help with my problem.
|
How to run scripts without typing the full path? I'd like to know if there is a way to run program/shell script without typing full path: /opt/idea/bin/idea.sh
|
[
"HTML5 Canvas to PNG File",
"$z$ is a complex number, by the way. I've tried a lot of things and always end up with a huge algebraic mess and I've wondered if anyone of you has any idea on how to approach this problem. One of the most \"satisfactory\" things I've done so far is to expand both the real and imaginary parts for the equation \\vert z + 1/z \\vert^2 = a^2. These parts yield the constraints: $2xy(1+1/(x^2+y^2)^2)=0$ ; $x^2-y^2+\\frac{2(x^2-y^2)}{x^2+y^2}+\\frac{(x^2-y^2)}{(x^2+y^2)^2}=a^2 $ I've graphed the equations and supposedly the intersection should be my set of points, but this method is far from analytical. What can I do? Any hints on how to approach this?",
"Is \"coachee\" even a word? If I am Rita's coach, is Rita my *coachee? (yikes) Is that even a word? Would it be correct instead to say she is my ward? What about terms for people at the other end of a mentor, sponsor relationship?",
"Calculus of variations -- how does it make sense to vary the position and the velocity independently?",
"What is an example of perfect collinearity in terms of the design matrix $X$? I would like an example where $\\hat \\beta = (X'X)^{-1}X'Y$ can't be estimated because $(X'X)$ is not invertible."
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Situation: We recently had a consultant company build new Lync 2013 Servers in a mirror setup. There are two security principles set, SA (disabled), and a AD group that is only associated with the Public server role. Setup: - 6 x Windows Server 2012 R2 Standard 64-bit - 4 x SQL Server 2012 Standard w/SP1 64-bit (11.0.3128) - - 2 x SQL Server Express 2012 64-bit(Witness) - All servers are VMware VMs Questions: - Is there a Jedi trick to gain SysAdmin access or will I have to contact our consultant? - How does this happen? I thought there was some sort of failsafe to keep this from happening.
|
I lost the sa password on a machine, and when I log in to the machine directly using an account in the admin group, SQL Server Management Studio will not allow me to log in using Windows authentication. My plan was to simply log into the server, connect via Windows Authentication, and reset sa to use a new password. Since I cant' connect via Windows Authentication, this won't work. How else can I reset the sa password?
|
[
"Is there a difference between installing an application via Ubuntu Software Center or a terminal?",
"Streaming large files in a java servlet I am building a java server that needs to scale. One of the servlets will be serving images stored in Amazon S3. Recently under load, I ran out of memory in my VM and it was after I added the code to serve the images so I'm pretty sure that streaming larger servlet responses is causing my troubles. My question is : is there any best practice in how to code a java servlet to stream a large (>200k) response back to a browser when read from a database or other cloud storage? I've considered writing the file to a local temp drive and then spawning another thread to handle the streaming so that the tomcat servlet thread can be re-used. This seems like it would be io heavy. Any thoughts would be appreciated. Thanks.",
"Raise bounty on question",
"In iOS 6 and below I could double tap the home button, tap and hold an app, and click the red - to close an application(s). In iOS 7 this does not work. How can I restart an app that's exploding without resetting the entire OS?",
"How to replace one char with another in all filenames of the current directories?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
$$\cos \frac{2π}{2013} +\cos \frac{4π}{2013} +\cdots+\cos \frac{2010π}{2013} + \cos \frac{2012π}{2013}$$ How to sum it up? *Calculator is not allowed.
|
Possible Duplicate: Prove $$\cos(\alpha) + \cos(\alpha + \beta) + \cos(\alpha + 2\beta) + \dots + \cos[\alpha + (n-1)\beta] = \frac{\cos(\alpha + \frac{n-1}{2}\beta) \cdot \sin\frac{n\beta}{2}}{\sin\frac{\beta}{2}} $$
|
[
"How to save animation as a video format I am basically trying to make an intro for my youtube channel. I am sort of familiar with the program because I was playing around with it for a long time, getting the basics of it. With the help of youtube videos I am basically done with my project. I put my name in it and everything. I just need to know how to save the animation onto my desktop as a file that I could open and would be in a video format.",
"give a variable to an operator For a workflow tool I made a panel in which it displays each separate library that is linked in my file. For each library I want to add some buttons that does stuff to the library in question. So in this example I have my panel which shows for example 2 libraries and for each one it creates a \"reload\" button. Now my question is.. How do I make it so the reload button only reloads the library I want to reload? I would probably have to give the button an id or something so it knows for which library it was created... my code so far: import bpy libs = bpy.data.libraries class Reloadlib(bpy.types.Operator): \"\"\"Reloads the current Library\"\"\" bl_idname = \"my.reload_lib\" bl_label = \"Reload\" def execute(self, context): libs[?????].reload() self.report({'INFO'}, 'Reloading ' + libs[?????].name) return {'FINISHED'} class LibPanel(bpy.types.Panel): \"\"\"Creates a Panel in the scene context of the properties editor\"\"\" bl_label = \"Scene Libraries\" bl_idname = \"SCENE_PT_layout\" bl_space_type = 'PROPERTIES' bl_region_type = 'WINDOW' bl_context = \"scene\" def draw(self, context): layout = self.layout scene = context.scene layout.label(text=\"Libraries:\") for i in libs: layout.label(text= i.name.replace(\".blend\",\"\")) row = layout.row() sub = row.row() sub.operator(\"my.reload_xref\", icon = \"FILE_REFRESH\") def register(): bpy.utils.register_class(Reloadlib) bpy.utils.register_class(LibPanel) def unregister(): bpy.utils.unregister_class(Reloadlib) bpy.utils.unregister_class(LibPanel) if __name__ == \"__main__\": register() Where the question marks are is where I should be able to make the difference between the first [0] or second [1] library in the libs[] array. In future I would also like to ad an 'open' and an 'unlink' button for each library so I can make changes to the other file. But this works by the same principle as the reload button.",
"Maximal inequality for a sequence of partial sums of independent random variables Let $X_n$, $n=1,2,3,...$ be a sequence of independent (not necessarily identically distributed) random variables, let $S_n=\\sum_{i=1}^nX_i$. Prove the following maximal inequality: For all $t>0$,$$\\mathbb{P}\\left(\\max_{1\\leq i\\leq n}|S_i|\\geq t \\right)\\leq 3\\max_{1\\leq i\\leq n}\\mathbb{P}\\left(|S_i|\\geq\\frac{t}{3} \\right)$$",
"XeLaTeX font rendering tend to be slightly bolder compared to PDFlatex",
"fontawesome and pdflatex When using pdflatex and the fontawesome package the below error shows up. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ! Fatal fontspec error: \"cannot-use-pdftex\" ! ! The fontspec package requires either XeTeX or LuaTeX to function. ! ! You must change your typesetting engine to, e.g., \"xelatex\" or \"lualatex\" ! instead of plain \"latex\" or \"pdflatex\". ! ! See the fontspec documentation for further information. ! ! For immediate help type H <return>. !............................................... Wish to keep on using \"pdflatex\" instead of \"xelatex\" or \"lualatex\". In fontawesome Version 4.4.0 manual it says \"When using the (pdf)(LA)TEX engine, the fontawesome package doesn’t require any external package\". Tried solutions proposed for this question () without success. MWE: \\documentclass{article} \\usepackage{fontawesome} \\begin{document} {\\faAdjust} \\end{document}"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Allow mobile users to review posts
|
Are the review queues planned for the iOS app?
|
[
"There are infinitely many prime numbers $p$ for which $p + 2$ and $p + 4$ are also prime numbers I need help with this question: There are infinitely many prime numbers $p$ for which $p + 2$ and $p + 4$ are also primes. Where should I start? what proof techniques will be useful? Any input will be very useful to me.",
"I am trying to balance underbraces in the equation below, how can I ensure that both underbraces at the same depth? \\begin{equation} y = \\underbrace{ \\left [ x^2 + r^2 (a^2+\\frac{a^{0.3}}{b}) \\right]}_\\text{growth rate} \\times \\underbrace{ C_0}_\\text{initial} \\end{equation}",
"What are the uses of \"using\" in C#?",
"If $n^c\\in\\mathbb N$ for every $n\\in\\mathbb N$, then $c$ is a non-negative integer? Supposing that a real number $c$ is given, is the following true? \"If $n^c$ is a natural number for every natural number $n$, then $c$ is a non-negative integer.\" Though this seems true, I can't prove that. Can anyone help?",
"Does getting disconnected from an SSH session kill your programs?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Attacks on Aes (128-192-256) I have a direct question Is there any practical attacks on the AES cryptosystem (128-192-256 keys)
|
Why is AES considered to be secure? The security of RSA is based on the integer factorization problem, which is a very well defined and understood mathematical problem. This problem must be solved in order to fundamentally break RSA. What about AES (and others based on the same idea)? Why is it difficult to break? Is there any mathematical principle that ensures its security?
|
[
"Bash/Korn shell script edited on Windows throws error '...^M: not found' I wrote a Bash script in Windows using Notepad++. cxStopAllServicesOnSERVER.sh #!/usr/bin/bash cd \"/some/path\" echo \"Hi. Logs can be found at \"`pwd`\"/cxStartStopLogger.log\" echo \"[\"`date`\"]*** STOPPING ALL SERVICES ON SERVER ***\" >> \"cxStartStopLogger.log\" exit Now after uploading it and setting the required file permissions, I tried executing it as follows: bash-3.00$ cat cxStopAllServicesOnSERVER.sh #Let's have a look at the code. #!/usr/bin/bash cd \"/some/path/\" echo \"Hi. Logs can be found at \"`pwd`\"/cxStartStopLogger.log\" echo \"[\"`date`\"]*** STOPPING ALL SERVICES ON SERVER ***\" >> \"cxStartStopLogger.log\" bash-3.00$ # Code and hashbang 'looks' correct, bash-3.00$ # if there is any issue with the format (EOL characters and such) bash-3.00$ # we cannot see it using cat. bash-3.00$ bash-3.00$ sh cxStopAllServicesOnSERVER.sh cxStopAllServicesOnSERVER.sh[2]: /some/path^M: not found Hi. Logs can be found at /some/path/cxStartStopLogger.log bash-3.00$ # Note that ^M appears at the end of the line. bash-3.00$ bash -x cxStopAllServicesOnSERVER.sh + cd $'/some/path\\r' : No such file or directory1.sh: line 2: cd: /some/path ++ pwd ' echo 'Hi. Logs can be found at /some/path/cxStartStopLogger.log Hi. Logs can be found at /some/path/cxStartStopLogger.log ++ date + echo '[Sun' Nov 18 00:28:17 EST '2012]*** STOPPING ALL SERVICES ON SERVER ***' bash-3.00$ # Note that '\\r' return character appears at the end of the line. Problem: When I change the code to korn shell I face the same issue. Appears that an incorrect character is getting added at the end of the line. NOTE: I found the solution and have posted the same as an answer. Feel free to update or improve it to help other beginners that may face the same issue. Thanks!",
"I'm looking to build a guitar pedal switcher based on a Raspberry Pi or Arduino (have not yet decided, but I have an unused Raspberry around and I lean towards that). Anyway, digital logic. Now, I need to switch audio signal obviously and I need to do it quietly (both physical silence and electrical silence). Please note that the signal is line level throughout most of the build, except for the input which is much lower. I will probably have 2 or 3 loops before the preamp so those may not encounter line level signal. From what I read and know, so far, mechanical relays are not really an option due to the clicking noise they make. I also read something about FETs, but that's a bit out of my league and I would appreciate any info on these. PS: I will probably use different power rails for the digital and analog paths. PS2: The whole thing will be mounted in a 1U rack enclosure, so please tell me if I should take into consideration any thermal issues.",
"finite elements-exercice We consider in $\\mathbb{R}^2$ the set of points $$\\{M_1(-1,1),M_2(0,1), M_3(2,1),M_4(-1,0),M_5(1,0),M_6(2,0)\\}$$ Let $\\Omega$ a rectangular structure consisting of the heads $\\{M_4(-1,0),M_6(2,0), M_3(2,1),M_1(-1,1)\\}$ Let the two polygons $\\sum_1 = \\{M_4,M_5,M_2,M_1\\}$ and $\\sum_2 = \\{M_5,M_6,M_3,M_2\\}$ let the mesh $\\{(e_1,\\sum_1,Q_1),(e_2,\\sum_2,Q_2)\\}$ such $$Q_1=\\{f : \\mathbb{R}^2 \\rightarrow \\mathbb{R} , f(x,y) = a + bx + cy + d xy , a , b, c , d \\in \\mathbb{R}\\}$$ 1- Prove that $(e_1,\\sum_1,Q_1)$ and $(e_2,\\sum_2,Q_1)$ are two finite elements of Lagrange. 2- Let $V$ the finite-dimensional space that corresponds to the mesh. Prove that $V \\nsubseteqq H^1(\\Omega)$ My problem is to prove 2.",
"Is the word \"management\" singular or plural?",
"Possible point location algorithm I need to calculate possible point location based on its speed and some other factors. For example, there is a man in the middle of the forest and I need to calculate his possible location at some time periods. There are few facts about his movement: His speed differs at certain periods of time - it can be raining, or it can be super hot - speed lowers / increases; Some objects in space - swamps, rocks - can lower his speed as well; At some time periods the man does not move at all. So, here is the question - is there any algorithm that can calculate possible location of the man based on following parameters? The output should be a polygon for every given time_period. { time_periods: [{ from: 2012-12-12T20:00:00, to: 2012-12-12T22:00:00, speed: 5 }, {}], objects: [{ geodata: POLYGON(...), speed_modifier: 0.5 }, {}] } Generated polygons will be visualized on the map afterwards."
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Prove that the sequence $\{f_n\}_{n \in \mathbb{N}}$ is uniformly convergent on a compact space $X$ Let $X$ be a compact space and $f_n: X \rightarrow \mathbb{R}, n \in \mathbb{N}$ are continuous and $f_{n+1}(x) \le f_n(x),\lim\limits_{n\rightarrow \infty} f_n=0, \forall x \in X $. Prove that the sequence $\left\lbrace f_n\right\rbrace$ is uniformly convergent on $X$. I'm trying to prove that with $G_n=\left\lbrace x \in X: f_n(x) < \epsilon\right\rbrace \Rightarrow \exists n_0: \forall n \ge n_0: G_n=X$ but I didn't succeed. Any solution is appreciated. Thank you.
|
Dini's Theorem - Proof. I'd like to prove the following: If $f_j$ are continuous functions on a compact set $K$, and $f_{1}(x) \leq f_{2}(x) \leq \dots$ for all $x \in K$, and the $f_j$ converge pointwise to a continuous function $f$ on $K$ then in fact the $f_j$ converge uniformly to $f$ on $K$. Attempt: Let $g_{j}(x) = f(x) - f_{j}(x)$ for all $j$. Then, since $f_j \rightarrow f$ pointwise, we see $g_j \rightarrow 0$ pointwise. Now, let $\varepsilon > 0$ . And examine { $x \in K : g_{j}(x) < \varepsilon$ }. I've been told that the next step should be to show that { $x \in K : g_{j}(x) < \varepsilon$ } is equal to the intersection of $K$ with some open set $U_j$. But I'm not certain why this is true? Advice? Insight?
|
[
"Gradient and Swiftest Ascent I want to understand intuitively why it is that the gradient gives the direction of steepest ascent. (I will consider the case of $f:\\mathbb{R}^2\\to\\mathbb{R}$) The standard proof is to note that the directional derivative is $$D_vf=v\\cdot \\nabla f=|\\nabla f|\\,\\cos\\theta$$ which is maximized at $\\theta=0$. This is a good verification, but it doesn't really help me understand the result.",
"Proofs with limit superior and limit inferior: $\\liminf a_n \\leq \\limsup a_n$ I am stuck on proofs with subsequences. I do not really have a strategy or starting point with subsequences. NOTE: subsequential limits are limits of subsequences Prove: $a_n$ is bounded $\\implies \\liminf a_n \\leq \\limsup a_n$ Proof: Let $a_n$ be a bounded sequence. That is, $\\forall_n(a_n \\leq A)$. If $a_n$ converges then $\\liminf a_n = \\lim a_n = \\limsup a_n$ and we are done. Otherwise $a_n$ has a set of subsequential limits we need to show $\\liminf a_n \\leq \\limsup a_n$: This is where I am stuck...",
"Is there a standard function in C that would return the length of an array?",
"Increase close vote weight for gold tag badge holders In order to increase the efficiency with which poor quality questions are closed, it could make sense to have weighted close votes for a small subset of qualified users. A very good way to measure the qualified users would be to leverage the tag badges. However, it needs to be rationally limited to a set of users that are knowledgeable with the subject. A very good way to measure the top users in a tag would be to look at those who have a gold badge in the tag. If two users who have a gold tag badge pertinent to a question issue a close vote, the question should probably be closed (or probably will be very soon under the current system). I think it would make sense to allow users with a gold tag badge to have a 3x weight for close votes in those tags. Please keep in mind, this isn't suggesting full moderator one click closure. It only adds weight to the vote. A single user could not do it on their own. These singular users cast close votes all the time, so that aspect would not change. Some will vote to close, some wont, but the ones who do should have a stronger weight to their vote. Even with 3x it will require 2 of said votes to accomplish, or still 2 other users (meaning 3 agreed it should be closed - which is the same amount of high rep users it takes to delete a question and that has a much greater impact than closure). tldr; Allow gold tag badge users to have a weighted close vote in their tag",
"Is there an issue tracker for already reported Mathematica bugs?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
how to call functions based on numbers
|
How to assign a function in Lua for a randomly generated numbers
|
[
"This is a homework problem and I'm having trouble just getting a basic understanding. I understand that $S_6$ is a symmetric group of degree $6$. I'm not sure how to start looking for elements.",
"Cannot find hard drives after installing Ubuntu 13.10",
"How to Identify Overfitting in Convolutional Neural network? I understand that dropout is used to reduce over fitting in the network. This is a generalization technique. In convolutional neural network how can I identify overfitting? One situation that I can think of is when I get training accuracy too high compared to testing or validation accuracy. In that case the model tries to overfit to the training samples and performs poorly to the testing samples. Is this the only way that indicates whether to apply dropout or should dropout be blindly added to the model hoping that it increases testing or validation accuracy",
"When using vagrant Stderr: VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX) I am trying to install open edx with ubunty 16.04 and I get this error There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below. Command: [\"startvm\", \"c60f0594-d584-4e0b-b863-2801168e641e\", \"--type\", \"headless\"] Stderr: VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX) VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole this occurs when using vagrant up",
"I am having trouble understanding the estimation of an AR process. In some textbooks, the AR(1) process is defined as follows: $y_{t}=\\theta y_{t-1}+ϵ_t$ (which does not contain a constant). So the OLS estimator is biased. I am confused about the cause of the bias. It is explained that $y_{t-1}$ is dependent on $ϵ_{t-1}$ although it is independent of $ϵ_t$. However in linear regression, if the equation does not contain a constant, we cannot make sure the expectation of disturbance is zero. So the OLS estimator is bias without a constant. Does it mean that the OLS estimator is unbiased if I add a constant in AR process?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Set myself as owner of /etc with chown command now getting all kinds of errors I needed to edit a .config file (which I know for a fact is not creating these problems, just to clear that up) and it wouldn't let me save it, so I took ownership of /etc and all contents with the command chown -hR username /etc and that let me edit the .config file but now whenever I try to install any packages or use any sudo commands, it doesn't work (I've checked for errors in the sudo file in sudoers.d and there was nothing wrong with that). So how do I return it to the previous owner?
|
What if I accidentally run command "chmod -R" on system directories (/, /etc, ...) I accidently ran sudo chmod 755 -R / instead of sudo chmod 755 -R ./ I stopped it after few seconds, but now there is some problems such as sudo: must be setuid root How can I revert permissions back?
|
[
"lstlisting: how to set code color and frame color",
"How much energy does a photon need to form a black hole? I was wondering if it is possible for a single photon to form a black hole if it has a small enough wavelength.If so, what would this wavelength be? I came across this question because I am reading about loop quantum gravity, and have heard that it is 'untestable'. I know that the loops making up spacetime in loop quantum gravity are thought to have a size in the order of $10^{-35}$m, and I was wondering whether making a photon with a wavelength small enough to investigate this would form a black hole. I am aware of the two posts here, but neither seem to really answer my question because they refer to several photons: and . Thank you.",
"How to retrieve all keys (or values) from a std::map and put them into a vector? This is one of the possible ways I come out: struct RetrieveKey { template <typename T> typename T::first_type operator()(T keyValuePair) const { return keyValuePair.first; } }; map<int, int> m; vector<int> keys; // Retrieve all keys transform(m.begin(), m.end(), back_inserter(keys), RetrieveKey()); // Dump all keys copy(keys.begin(), keys.end(), ostream_iterator<int>(cout, \"\\n\")); Of course, we can also retrieve all values from the map by defining another functor RetrieveValues. Is there any other way to achieve this easily? (I'm always wondering why std::map does not include a member function for us to do so.)",
"So I've got a file with loads of simple objects. This will later be used to cut out these shapes out of plastic. So, using the material optimally is of outmost importance. I was wondering if there is any script or plugin that could automaticly arrange the objects within the artboard so they could fit best.",
"What does \"proverbial\" mean?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
OOP Java: Better to extend a class or create a new instance of the subclass?
|
Prefer composition over inheritance?
|
[
"The \"Hurry up, it's raid night\" achievement in Starcraft 2 involves \"beating Wings of Liberty, on normal, in 8 hours or less.\" Is there a recommended mission path to take? Which mission should I take for the branching paths? Does it count time spent on the Hyperion in between missions, or is it exclusively time elapsed on missions. Does replaying a mission affect the time? General tips / hints from those who've unlocked the achievement? Edit: Just got this achievement tonight, finally! The answer was perfect.",
"Why, historically, do we multiply matrices as we do? Multiplication of matrices — taking the dot product of the $i$th row of the first matrix and the $j$th column of the second to yield the $ij$th entry of the product — is not a very intuitive operation: if you were to ask someone how to mutliply two matrices, he probably would not think of that method. Of course, it turns out to be very useful: matrix multiplication is precisely the operation that represents composition of transformations. But it's not intuitive. So my question is where it came from. Who thought of multiplying matrices in that way, and why? (Was it perhaps multiplication of a matrix and a vector first? If so, who thought of multiplying them in that way, and why?) My question is intact no matter whether matrix multiplication was done this way only after it was used as representation of composition of transformations, or whether, on the contrary, matrix multiplication came first. (Again, I'm not asking about the utility of multiplying matrices as we do: this is clear to me. I'm asking a question about history.)",
"I'm trying to show that a finite sum of eigenspaces (with distinct eigenvalues) is a direct sum. I have $ \\alpha : V \\to V $. The eigenspaces are $ V_{\\lambda_i} = \\ker(\\alpha - \\lambda_i id_V )$ for $ 1 \\leq i \\leq n $. My attempt at a proof: $ A + B $ is a direct sum iff $ A \\cap B = \\{0\\} $. If $ v \\neq 0 \\in V_{\\lambda_i} \\cap V_{\\lambda_j} $ for some $i,j, i \\neq j $, then $ \\alpha(v) = \\lambda_i v $ and $ \\alpha(v) = \\lambda_j v $. So $(\\lambda_i - \\lambda_j)v = 0 $, and so $ \\lambda_i = \\lambda_j $. This is a contradiction, so any pair of the eigenspaces have trivial intersection. Therefore $ \\cap_{i=1}^n V_{\\lambda_i} = \\{0\\} $, and so we have a direct sum. Is this ok? Thanks",
"Given three matrices $A$, $B$ and $C$ such that $ABA^T C$ is a square matrix, the derivative of the trace with respect to $A$ is: $$ \\nabla_A \\operatorname{trace}( ABA^{T}C ) = CAB + C^T AB^T $$ There is a proof . However, I was not able to understand the second line of the proof. it says something like this: $$ \\nabla_A \\operatorname{trace}( ABA^T C )= \\nabla_\\bullet \\operatorname{trace}(f(\\bullet)A^{T}C) + \\nabla_\\bullet \\operatorname{trace}(f(A) \\bullet^T C) $$ Where $f(A) = AB$ I tried searching the proof or any hint using google, but I couldn't fine anything. Could anyone please help me with this second line. I cannot sleep. I am obsessed with this proof.",
"How many ways can $133$ be written as sum of only $1s$ and $2s$ Since last week I have been working on a way, how to sum $1$ and $2$ to have $133$. So for instance we can have $133$ $1s$ or $61$ $s$2 and one and so on. Looking back to the example: if we sum: $1 + 1... + 1 = 133$ there is only one way. But for the second one there will be $131$ possible ways. And I have to do this for every possible combination. I am stuck with it and I have no idea whatsoever on how to begin. Any ideas or methods I could use guys?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Logistic regression iterative process
|
When is logistic regression solved in closed form?
|
[
"Why doesn't [Required] work for me? MVC3",
"Datepicker returning uncaught typeError: undefined 'currentDay'",
"Given that $\\displaystyle{a+b\\sqrt[3]{2} +c\\sqrt[3]{4} =0}$, where $a,b,c$ are integers. Show $a=b=c=0$ Do I use modular arithmetic?",
"Set the QGIS display to show decimal degrees? Using QGIS 2.6.1 Brighton. I am trying to set the CRS for the project to display Decimal Degrees, where it is defaulting to Feet. I can change it in the Properties Dialog, but it does not change it, it is just staying on Feet. How do I change it? Edit: this layer was imported from a shapefile where it was internally set to Feet. I was able to get the vendor to supply one with Decimal Degrees so my problem is gone. Still would love to know if there was a way to do it myself from within QGIS.",
"How to get all possible combinations of a list’s elements? I have a list with 15 numbers in, and I need to write some code that produces all 32,768 combinations of those numbers. I've found (by Googling) that apparently does what I'm looking for, but I found the code fairly opaque and am wary of using it. Plus I have a feeling there must be a more elegant solution. The only thing that occurs to me would be to just loop through the decimal integers 1–32768 and convert those to binary, and use the binary representation as a filter to pick out the appropriate numbers. Does anyone know of a better way? Using map(), maybe?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
WiFi Range is bad on Ubuntu 17.10 I installed Ubuntu on my HP Stream 11, I was pleased to find out that my WiFi worked but the range is terrible. To have a good signal I have to be right next router. How can I improve the quality of the signal? $ lspci 00:00.0 Host bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series SoC Transaction Register (rev 21) 00:02.0 VGA compatible controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller (rev 21) 00:0b.0 Signal processing controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Power Management Controller (rev 21) 00:14.0 USB controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series USB xHCI Controller (rev 21) 00:1a.0 Encryption controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Trusted Execution Engine (rev 21) 00:1b.0 Audio device: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series High Definition Audio Controller (rev 21) 00:1c.0 PCI bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Express Port #1 (rev 21) 00:1c.3 PCI bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Express Port #4 (rev 21) 00:1f.0 ISA bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCU (rev 21) 00:1f.3 SMBus: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx SMBus Controller (rev 21) 01:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader (rev 01) 02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter
|
Problems with wifi range on laptop. Wifi card: realtek rtl8723be So I just started using linux/ubuntu today and I've been getting problems with my wifi, ive tried the solutions on this page: When im really close to my router, its fine, i can see wifi signals, but when i go just a few steps back it disappears right away. Im using the latest version of ubuntu 17.10 Any suggestions would be nice! :)
|
[
"Connect to a MySQL server over SSH in PHP",
"How do berry mutations work?",
"Choosing colors appropriately for red-green colorblindness I want a green for \"correct answer\" and a red for \"wrong answer\". My current choice is rgb(144, 238, 144) for the green and rgb(250, 128, 114) for the red. (See wikilearner.net/wiki for the colours in action.) I have been told that these colors are very close in contrast, making it difficult for a person with red-green color-blindness. What would be a better choice?",
"Every natural number can be written as the sum of distinct Fibonacci numbers?",
"How to resolve the C:\\fakepath?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Potential Gradient relation I was just wondering why exactly the force is the negative gradient of the potential, which is shown by the relation $${\bf F}=−{\bf∇}V$$I know that this equation only holds for conservative forces, where the potential only depends on the position of an object. The only problem I have is why there is a minus sign/ what the minus sign means in a physical context.
|
Why is a conservative force defined as the negative gradient of a potential? I'm learning about work in my dynamics class right now. We have defined the work on a particle due to the force field from point A to point B as the curve Integral over the force field from point A to B. From math I know that if a vector field has a potential, we only need to evaluate the potential at point B minus the potential at point A to get the result of the curve Integral. In the text that I'm reading, it's explained that if the integral over a force-field is path-independent, then the force field $F = -{\rm grad}(V)$, where $V$ is the potential. Why is it defined as the negative gradient? Doesn't one determine the potential from $F$ mathematically. Why do we impose the sign on the potential?
|
[
"A special bijection between $\\mathbb{R}\\times \\mathbb{R}$ and $\\mathbb{R}$",
"Billing Information Required for App Updates I'm trying to update 3 apps on my iPad and 3 things happen that never usually happen. It asks me to sign in. It asks for my billing information. My card gets denied. Now I know my card still works fine so that isn't the problem. The same thing happens when I try to install previously downloaded apps (that cloud button) or install new free apps. I have no outstanding payments (is it even possible to have outstanding payments with Apple?) so why is this happening? In case it's needed, I'm using an iPad Air running the latest version. 16GB Harddrive and Wi-Fi only. I should also make it clear that \"None\" isn't an option for payment.",
"can my transit visa take me through munich and frankfurt?",
"I'm Australian and have obtained my Canadian working visa. However rather than flying direct to Canada I am meeting an American friend in LA and driving across the border. I have a return flight booked back to Australia from LA in March of next year too. Will the esta visa will be enough to enter the USA because I have my Canadian working visa and plan to travel there? Or will there be a problem because my return flight is booked later then the 90 days allowed on the visa.",
"Does \"make offline\" option in Google Maps works with applications that utilize Google Maps? In newer Google Maps I can make area available offline. Do other applications that rely on Google Maps (utilize Google Maps Android API) use offline maps?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Jquery check if element is visible in viewport Function to check if the div class "media" is within the browsers visual viewport regardless of the window scroll position. <HTML> <HEAD> <TITLE>My first HTML document</TITLE> </HEAD> <BODY> <div class="main"> <div class="media"></div> </div> </BODY> </HTML> Trying to use this plugin with this function but I don't know how to make it work. $('#element').visible( true );
|
How to check if element is visible after scrolling? I'm loading elements via AJAX. Some of them are only visible if you scroll down the page. Is there any way I can know if an element is now in the visible part of the page?
|
[
"Closed ball not a manifold. My book on differential geometry claims that a closed ball in $\\Bbb R^n$ can never be a differentiable manifold because of the boundary points. The book doesn't really give an explanation for why this is true. Could someone provide more details please? thanks",
"Possible Beamer bug: Frame number has different color than date in infolines footer",
"Disable Debug Log Programmatically I'm trying to disable WP_DEBUG_LOG if and only if debug.log exists. I'd like to hook into wp_footer and test if the file exists and if so disable my debug log. All I've found though is that WP_DEBUG_LOG is a constant and can only be changed from the wp-config.php file which is too early for my case. Is there a way to change it from a constant on install and keep it working as normal? My only other thought is to create an option on install in the options table and just check it every time wp-config loaded to see if the value has changed but I was wanting to avoid that. Granted I could check if the file exists before I define WP_DEBUG_LOG but somebody would have to view a page twice before debug log actually exists and is detected by the file_exists() (since it's run very early) which is not optimal. Does anybody know of a workaround to programmatically turn off WP_DEBUG_LOG?",
"I'm trying some things with my shell. This includes the following command: kill $$ My expectation was that the shell would log me out and terminate itself. But instead the bash persists without change. Any idea why? I ran this command on different environments (archlinux, debian). The behavior was always the same.",
"How can I use only the external flash on slave mode without firing the built-in flash? I have a Canon 700D and YN-568EX ii external flash that I am using in slave mode. But whenever I try to fire the built-in flash pops up automatically and fires itself. Is there any option to use only external flash?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
I just tried to configure eth0 interface on my Ubuntu Server 14.04 Lts. I want to set up static ip, therefore I put the following lines in /etc/network/interfaces: ## To configure a dynamic IP address auto eth0 iface eth0 inet dhcp ## Or configure a static IP auto eth0 iface eth0 inet static address 192.168.1.111 gateway 192.168.1.1 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 I can perfectly ping my router with this configuration. I also can connect to the server from my laptop via ssh. But internet is not working: ping google.de ping: unknown host google.de What could be wrong here?
|
I am using Ubuntu 12.04. My /etc/network/interfaces file consists of: # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 192.168.1.58 gateway 192.168.1.1 network 192.168.1.0 broadcast 192.168.1.255 dns-nameservers 66.212.63.228 66.212.48.10 I ran the command: /etc/init.d/networking restart Which responded with: *Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces *Reconfiguring network interfaces... RTNETLINK answers: File exists Failed to bring up eth0 [ OK ] Next I ran ping google.com and received: ping: unknown host google.com I am not sure if my interfaces refreshed. How do I properly configure my network with my static DNS addresses?
|
[
"Converting MultiLinestring to Linestring with PostGIS",
"I've heard Google's algorithm is based on PageRank, and that it has something to do with the links to your site. Can someone explain it, and more importantly, how I can increase my site's PageRank?",
"Tool to create text files from a template I have to regularly create 100+ text files from templates. I currently use an overly complicated shell script. I think there is a smarter way to handle this, but I don't know how. I have a \"database\" : # outputfile template data1 data2 data3 first.txt $template_main $text1 abcd 1234 second.txt $template_main $text2 efgh 5678 third.txt $template_other $text1 ij 90 And a configuration file : template_main=main.txt template_other=other.txt text1=whatever text2=blah The templates are text files with placeholders like %%data2%% (the placeholder form can be changed). Does someone know a tool to automate this better than with a complicated shell script ?",
"What is the true origin of the orcs? There are a bunch of theories about the true origin of the orcs. Tolkien tried out a few different origins for his Orcs throughout his life but died before he could fully revise The Silmarillion with his final view on their origins and nature. There is a list of origins proposed by Tolkien(): Made of stone and slime through the sorcery of Morgoth; East Elves, where The Silmarillion contains a suggestion that Orcs are descended from East Elves captured by Melkor, their minds and bodies distorted and corrupted. Sentient beasts, another of Tolkien's theories proposes that Orcs may have begun as soulless animals of vaguely humanoid shapes, empowered by the will of the Dark Lord (Morgoth) and learning language only as parrots do. Fallen Maiar, there are hints in the History of Middle-earth series of books, (especially in Morgoth's Ring in the section \"Myths Transformed\"), that some Orc leaders, such as the First Age's Boldog, or the Great Goblin encountered by Bilbo and the Dwarves, may in fact have been fallen Maiar which had taken Orc form. Corrupted Men, while Tolkien at some point saw all Orcs as descended from the original corrupted and tortured Elves, later comments of his indicate, according to Christopher Tolkien in Morgoth's Ring \"Myths Transformed\" text X, that he began to feel uncomfortable with this theory. At about the same time he removed the references to the Thrall-Ñoldorin, he also began searching for a new origin for the Orcs. It seems Tolkien wanted to change the origin of the Orcs to make them corrupted and twisted Humans. A mix of corrupted Elves and Men, A late idea of Tolkien seems to be that Orcs (or Orks, showing the late spelling change) had a mixed origin of Elves and Men. Some cross-bred with Men, Tolkien also suggested that Men were cross-bred with Orcs under Morgoth's lieutenant, Sauron (and possibly under Morgoth himself). The process was later repeated during the War of the Ring by Saruman. This possibly refers to the way the Uruk-hai and the Half-Orcs were created, in The Lord of the Rings. Of all these theories, which is the most accepted, and which did Tolkien agree with the most? I always thought that orcs were made of East Elves, as explained in The Lord of The Rings, but the story goes beyond this, there are the stories in many other books that explain different things. What can you tell me about this?",
"What is a smart pointer and when should I use one?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
What's the difference between Interpolation[pts, Method -> Spline] and BSplineCurve?
|
Arbitrary precision spline interpolation
|
[
"I have Opportunity-lookup field on Opportunity (self), Scenario: Opportunity A if select Opportunity B using lookup then Opportunity B's same lookup field automatically populate with Opportunity A. I tried to achieve this using trigger - before insert/update but its failing as: System.DmlException: Update failed. First exception on row 0 with id 006G000000DHaBlIAL; first error: SELF_REFERENCE_FROM_TRIGGER, Object (id = 006G000000DHaBl) is currently in trigger Oppy_before_INSUPD, therefore it cannot recursively update itself: []",
"If $A|B$ and $B|A$ then prove $A=\\pm B$ So far I have $A|B \\iff AX=B$ and $B|A \\iff BY=A$ with $X,Y \\in \\mathbb{Z}$ Not sure how to finish, any help.",
"Giving edit reputation bonus for same user for same post multiple times On Stack Overflow, I saw some users editing the same question multiple times, and getting the 2 point reputation bonus for each time. I saw it during review of a suggested edit (some months ago, I forgot the question that's why I'm unable to paste the link here). I rejected it and gave the reason in the \"Other\" reason field. Most of the time I saw that users first formats the code, and then after approval they edit the title and fix the grammar. Why is this allowed? My point is, if an user gained 2 reputation points for a particular edit, then why give another 2 points again for the same post? Because the second edit on same question/answer means that there were some mistakes or misses in their previous edit.",
"Probability that a sequence repeats itself Given an infinite sequence $a_n$ of uniformly random integers $0$ to $9$, what is the probability there exist an integer $m$ such that the sequence $a_1$ to $a_m$ is equal to that from $a_{m+1}$ to $a_{2m}$? What if we restrict to two symbols, or $k$ symbols?",
"What is the best (or preferred method) of setting a url parameter on a visualforce page embedded on a standard layout page? This is easy to do when creating a custom link or a button, but I don't get how to do this on page load via the Apex Controller for the page. When using a custom button you can do something like /apex/MyPageName?parameter=value Can I use something like this? ApexPages.currentPage.getParameters().put('Id',myId)"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
I'm retaking a class because I flunked the final which was worth most of our grades. The papers I'm resubmitting will be slightly edited, but mostly the same as I got good grades on them. Would this be considered plagiarism?
|
I have written an essay last year, as a personal exercise. I now have a course at uni on the topic and could basically just hand in this essay now, the topic fits perfectly. I have also never submitted this essay to any other course or so. Could I just hand in this essay, or would I violate some rules with that? Is this maybe already self-plagiarism?
|
[
"Irrationality of $\\sum_{p\\in\\mathbb{P}} \\frac{1}{2^{p}}$ Let $\\mathbb{P}$ be the set of prime numbers, and consider $m=\\displaystyle\\sum_{p\\in\\mathbb{P}} \\frac{1}{2^{p}}$. Is $m$ irrational? In the following , the author recalls several sufficient criteria for irrationality. When applying some of this criteria to $m$ I arrive that the condition of some of the criteria are not satisfied by means of Bertrand´s Postulate. I found a similar result by Sándor: Let $\\lbrace a_m\\rbrace$, $m\\geq 1$ be a sequence of positive integers such that $$\\text{lim sup}\\frac{a_{m+1}}{a_1a_2\\cdots a_m}=\\infty \\;\\;\\;\\;\\text{and}\\;\\;\\;\\;\\;\\;\\text{lim inf}\\frac{a_{m+1}}{a_m}>1$$ Then the series $\\displaystyle\\sum_{m} \\frac{1}{a_m}$ is an irrational number. I have yet to prove that if $f$ is a continuous function then $\\text{lim sup} \\;f(a_m)=f(\\text{lim sup}\\, a_m)$. Assuming this; $$\\text{lim inf}\\; P_{m+1}-P_{m}>1$$ where $P_m$ is the $m$-th prime. But I have trouble with $$\\text{lim sup}\\; P_{m+1}-\\sum_{j=1}^{m}P_{j}$$ my guess is that $$\\text{lim sup}\\; P_{m+1}-\\sum_{j=1}^{m}P_{j}\\neq\\infty$$ so $$\\text{lim sup}\\frac{2^{P_{m+1}}}{2^{P_1}\\cdots 2^{P_m}}\\neq\\infty$$ and this theorem will result useless to tell if $m$ is irrational. How can I prove (or disprove) that $m$ is irrational (are there any other simpler criteria)? How can I use Dirichlet criterion or Hurwitz criterion? What is its ? Any help is highly appreciated. Edit: That $m$ is irrational is clear by the criteria provided in the comments, namely that if $x$ is rational then the binary representation of $x$ is periodic. The number $m$ in binary expansion has $1$ in the $P$-th position and zero elsewhere. As there are arbitrarily large gaps between primes; then the binary representation fails to be periodic. So the question that remains unsolved is: What is its irrationality measure?",
"Avoiding the second leg of an international flight - different rates for a return ticket? Possible Duplicate: I am in the process of booking a flight from LAX - ZUR. I found a flight for approx. 1100 USD. However, if I book that flight and then continue, after a 5 hour layover, onward to SVO, The flight is approx. half of the initial price, and the first leg of the second flight is the exact same flight as the first booking. Assuming I travel light and do not check any baggage, are there any potential issues with this? Seems like a hell of a way to save a good chunk of change.",
"Short story about a group of sci-fi writers sitting around discussing their profession",
"Does \"make offline\" option in Google Maps works with applications that utilize Google Maps? In newer Google Maps I can make area available offline. Do other applications that rely on Google Maps (utilize Google Maps Android API) use offline maps?",
"Can you help me resolve this paradox for a geodesic orbit? Does it maximize proper time to sit still rather than orbit for 1 year?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
What's in the empty space between a nucleus and the electrons?
|
What is in the space between a nucleus of an atom and its electrons?
|
[
"I have a vector file containing thousands of points. Where points are within x distance from each other, I wish to delete one of the points and keep the other (either by snapping to one point, or simply erasing one of the two points) However, in Whitebox the vector cleaning tool only works with polygons and lines. Is there some other way I can do this with my shapefiles?",
"Target='_blank' to show in new window, NOT new tab, possible?",
"tags of mundanity that are gratuitously applied to posts It's an additional unnecessary burden to the honest stacker during suggested edit duty. A question presents some code then the minor editor adds a tag like 'for-loop' or 'forms'. These tags are so general that they only have a handful of followers. They serve no useful purpose and are the cause of many too minor edits. Why not permit culling of generic tags?",
"WinDirStat shows 244GB unknown space on external drive I recently noticed that one of my external hard drive seems to be missing a lot of space. It was recommended that I try WinDirStat, as it could help identify how much space each file was taking up. This is the result: As you can see, there is about 244.7GB \"unknown\" usage. Doing a bit of research online, the most common suggestion was (a) Recycle Bin and (b) System Volume Information. (a) As you can see, empty. To double check, I ran Disk Cleanup. It confirmed that it was empty. (Note that a new file appeared by the time I took this screenshot, but it's only 129 Bytes.) (b) Harder to tell. However, according to various forums, the most common reason for System Volume Information to grow large is due to System Restore Files. I had a look, and it is definitely turned off for this drive, as seen here: What else could be causing this issue? It is an enormous amount of storage to have gone missing!",
"What are irreducibles in the ring $R$ of entire functions? Here's how far I have gone: I first find the units in $R$. Let $f$ $ \\in $ $R$ be a unit. Then $\\exists$ $g$ $\\in$ $R$ such that $fg=1$, i.e $f(z)g(z)=1$ $\\forall$ $z$ $\\in$ $\\Bbb C$. Then, $f(z)$ $=$ $\\frac 1{g(z)}$ $\\forall$ $z \\in \\Bbb C$. Hence $f(z),g(z) \\neq 0$ $\\forall$ $z \\in \\Bbb C$. Now to find the irreducibles, let $f \\in R$ be an irreducible. Hence whenever $f(z)=g(z)h(z)$ for $g,h \\in R$, then $g$ or $h$ is a unit. Let $h$ be the unit and $\\alpha$ be a zero of $f$. Then $f(\\alpha)=g(\\alpha)h(\\alpha)=0$ $\\Rightarrow$ $g(\\alpha)=0$. Hence $z-\\alpha$ is a factor of $g$. So $g(z)=(z-\\alpha)^ng_1(z)$ for some $n \\in \\Bbb N$, where $g_1$ is unit. Since $f$ is irreducible, hence $n=1$. I'm stuck here. What can be my next step?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
I took several photographs of full moon but all pictures are bright, can I reduce the brightness and bringout the layers of moon as I see with naked eye.?
|
I just purchased a D5100 and I am slowly learning the basics. I mostly shoot landscape/scenery shots. I have been trying to capture the full moon unsuccessfully. It looks focused in the viewfinder and I've experimented with slow shutter speeds and large apertures but the resulting image always comes out as a bright glare. I'm never able to see the details of the moon. How can I improve my shots?
|
[
"How can I set up password-less SSH login? I want to be able to login to a remote via ssh without having to enter the password all the time. How do I set it up? Is a different command required to execute a password-less session?",
"How do I add a condition to a query?",
"Minecraft Failed To Bind Port I made a server and used my IPv4 address for the IP. I decided to scratch that server and make a Bukkit server so I can use plugins. I tried to use my IPv4 address which I used for my other server but I keep getting the message [17:31:15 WARN]: ****FAILED TO BIND TO PORT! Is there any thing I can do to get a new address to use or is there a way to delete the old server? Do I need to use a different computer? Please help! I've don't know how to fix this problem. If you have any suggestions please tell me and I'll give it a try.",
"The union of a strictly increasing sequence of $\\sigma$-algebras is not a $\\sigma$-algebra",
"So my teacher gave a pretty tough (for me) problem in class today: Does the series $$ \\sum_{n=1}^{\\infty}\\frac {\\sin{\\frac 1 n}} {\\sqrt n} $$ converge or diverge? So far I've thought of trying the Comparison Test and Ratio Test but couldn't really get anywhere. Intuitively I think it should converge, but how do I actually show this?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Validate Email Or Number in Regex
|
How to validate an email address in JavaScript
|
[
"How to reset the terminal properties and preferences? I fooled around with the colors and stuff, in the terminal, and now want to go back to the maroon and white default config of the the terminal. What files do I have to delete?",
"When I learned about the Minkowski Space and it's coordinates, it was explained such that the metric turns out to be $$ ds^{2} = -(c^{2}dx^{0})^{2} +(dx^{1})^{2} + (dx^{2})^{2} + (dx^{3})^{2} $$ where $ x^0,x^1,x^2,x^3 $ come from $ x^{\\mu} : \\mu = 0,1,2,3 $, and $ c $ is the speed of light. The first resource I had access to--I have to do a bit of digging for the exact paper--of course addressed that this invariant takes the tensor form: $$ ds^2 = g_{\\mu \\nu}dx^{\\mu}dx^{\\nu} $$ as well. This two things I've seen in all of my texts and online resources regarding resources. The element in question that varies between authors, is the time coordinate, $ x^0 $. When it was first explained to me, it was using the standard Cartesian representation for the spatial portion of the coordinates, and the time coordinate was labeled as $ x^0 = ict $. Squaring gives $ (x^0)^2 = -c^2t^2 $, and applying differential calculus, we get $ (dx^0)^2 = -c^2dt^2 $. Sensible and expected to have the tensor formula spit out the Minkowski Metric. The author then later explicitly states the coordinates are $ x^0 = ict, x^1=x,x^2=y,$ and $x^3 = z$. My questions is then, why is it most authors on the subject omit the imaginary unit on the time coordinate? For example, . The only reason I can fathom omission is if the author is using metric signature $ [+,-,-,-] $, where I started off learning the theory with signature $ [-,+,+,+] $ which may be the reason seeing the time coord with no imaginary unit seems dissonant to me. All help appreciated! Edit: After reading the other answers, my questions is now one of why and how (mathematically) do we obtain the Minkowski Metric Signature. More specifically the one element with a different sign.",
"ERD for a web development company I am working on an ERD which represents the relationships between entities in a Web development company behavioral model. There I have entities like: Customer Service ----------- (like: web development, web design, web consultation, ...) Order-item ------- (like: web development, web design, web consultation, ...) Order Invoice Project Project-phase Task --------------- (like: web development task3, web design task7) Developer Delivery ----------- (like: the developed web app, web consultation session, ...) I have this diagram so far, though I know it still has major problems, and it is just for a start point: Main concept Customer makes order-items on services, combined to form an order which relates to an invoice. Each project has multiple project-phases with each project-phase related to an order. Each project-phase has multiple tasks, each of which is assigned to a developer. Each project-phase has a delivery, which will be delivered upon payment of the related orders invoice. Questions Are has and contains completely the same? If not, how to choose between them for relationships?! what is the measure?! Are there any rational problems with the Main concept section? Any helpful ideas or suggestions to improve this model? Any help with this, would be really appreciated. Update 1 Refined version of the diagram Update 2 Considering an analogy of a Fast food restaurant would be helpful: Customer ---------- A hungry person Service ------------- Making a burger, Home delivery, Mobile delivery, ... Order-item --------- A burger, ... Order ---------------- A home-delivered burger Invoice -------------- The printed invoice Project -------------- Serving the customer for a complete year (like a contract) Project-phase ----- Serving the customer for a single day Task ----------------- Preparing the kitchen, process the meat, ... Developer ---------- The cookie Delivery ------------- A burger in wrapped in wax papaer and a drink with the tray Update 3 () Project seems to be unrelated to Customer in your diagram. Is this what you intended? I think Order is and Project should not be related, as I think it is something off-the-counter and customer has nothing to do with it. she/he is only after the delivery and is concerned about time and money, nothing else. Please tell if I am wrong. Are all Orders part of a Project or can you have orders that aren't in a project at all? All Orders are part of a project, except those new ones which are waiting in the process queue. Similarly, you relate order item directly to customer, but also to order. Are orders split between customers? Please think of Order-Item as these: web design web design consultancy domain name consultancy ... So, customer choose some of these items, collected as an Order which has an invoice and could be paid. Order-Items are directly related to offered Services. I don't understand what do you mean by Are orders split between customers?. If not you don't need a ternary relationship between customer, order item and service. Rather, an order item is an intersection between order and service. Order items belong to customers by inheritance from order (or even project?) This is somehow true: Order items belong to customers by inheritance from order, but I think it is more rational to say it like this: Order-Items, inherited from Service, belong to Order which itself belongs to Customer.",
"How to reinstall yum? I made a big mistake: I removed yum. So now when I for example run the following it gives me an error: $ yum clean all yum command not found. I can download the package succesfully: wget mirror.centos.org/centos/6/os/i386/Packages/yum-3.2.29-40.el6.centos.noarch.rpm --2014-01-15 15:42:59-- http://mirror.centos.org/centos/6/os/i386/Packages/yum-3.2.29-40.el6.centos.noarch.rpm Resolving mirror.centos.org... 192.133.139.3 Connecting to mirror.centos.org|192.133.139.3|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1019540 (996K) [application/x-rpm] Saving to: “yum-3.2.29-40.el6.centos.noarch.rpm.1” 100%[====================================================================================================================>] 1,019,540 649K/s in 1.5s 2014-01-15 15:43:01 (649 KB/s) - “yum-3.2.29-40.el6.centos.noarch.rpm.1” saved [1019540/1019540] Trying to install the downloaded package gives the following error: # rpm -ivh yum-3.2.29-40.el6.centos.noarch.rpm Preparing... ########################################### [100%] file /usr/lib/python2.6/site-packages/yum/__init__.py from install of yum-3.2.29-40.el6.centos.noarch conflicts with file from package yum-3.2.29-30.el6.centos.noarch [...] file /usr/share/yum-cli/yummain.pyo from install of yum-3.2.29-40.el6.centos.noarch conflicts with file from package yum-3.2.29-30.el6.centos.noarch There is no directory \"yum\" in /usr/bin. When I use the command \"rpm -qa | grep yum\". yum-metadata-parser-1.1.2-16.el6.x86_64 yum-plugin-fastestmirror-1.1.30-14.el6.noarch yum-3.2.29-30.el6.centos.noarch The distro is CentOS 6.3. How can I reinstall yum?",
"Execute bash commands over SSH while staying in interactive mode afterwards Probably it is a weird thing I would like to achieve but: I would like to SSH to a remote host and then execute some bash commands like \"alias\" automatically to use them afterwards in an interactive mode. The remote host does not allow the personal environment. Is this possible? Would \"expect\" do it? Or is there any other way to achieve this? Basically I would like to have my bashrc without modifying any files on the remote host."
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
apt install "*" method in Ubuntu 20.04 does not work I was trying to install all python packages using sudo apt install python3*, but it gave me this error: newtron@newtron:~$ sudo apt install python3* Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package python3*
|
Problem using wildcard with apt When I run this command : apt install libkf5* I get the following error : Unable to locate package libkf5* I'm sure that the packages whose names start with libkf5 exist (tab-completion says so) . So the problem is not about the absence of those packages.(Note the asterisk at the end of that error message , the wildcard's not working at all) I use apt v.1.9. Thanks in advance.
|
[
"Community user \"stealing\" tags?",
"When should one use the \"recent past\"? How much time should have passed?",
"Character Limit in HTML",
"I wanted to create an account for Ubuntu One, but I got impatient when the email with the verification code didn't arrive... I thought I might have typed the wrong address, closed the window and tried again. it told me the address already existed and I just got the code. But since I closed the window I missed it. Is there any way to recover the code?",
"How to delete specific lines from a txt file I have a Bash script that writes data into a log file, then from that I take out stuff I want using the sed command. That gives me a file data.txt. What I want to know is how I go about deleting specific line inside that data.txt file. For example: 123 456 789 I want to remove the 2nd line, containing 456 so that I only have 123 789 I tried with sed '2d' data.txt but it doesn't work. I use this command to create data.txt from log.log: sed -nE '1s/.{1}(.{2}).*/\\1/p;' log.log >> data.txt"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Three table query to find the most recent item based on a distinct value I am attempting (without success thus far) to write a query that will join 3 tables and return the most recent record based on a distinct value. Table A itemnum | itemname -------- | -------- 123 | document #1 456 | document #2 Table B itemnum | keyvaluedate ------- | ------------- 123 | 2015-09-05 00:00:00.000 456 | 2011-06-04 00:00:00.000 789 | 2011-06-04 00:00:00.000 546 | 2011-06-04 00:00:00.000 378 | 2011-06-04 00:00:00.000 Table C itemnum | keyvaluebig -------- | ----------- 123 | 123456 456 | 123456 545 | 987654 387 | 987654 Table A holds all of the records. What I need to find is the most recent record (keyvaluedate from table b) for each distinct project (keyvaluebig from table c). The itemnum data is always unique. The keyvaluedate from Table B and the keyvaluebig from Table C both non-distinct values present. What is the best way to go about this?
|
Retrieving n rows per group I often need to select a number of rows from each group in a result set. For example, I might want to list the 'n' highest or lowest recent order values per customer. In more complex cases, the number of rows to list might vary per group (defined by an attribute of the grouping/parent record). This part is definitely optional/for extra credit and not intended to dissuade people from answering. What are the main options for solving these types of problems in SQL Server 2005 and later? What are the main advantages and disadvantages of each method? AdventureWorks examples (for clarity, optional) List the five most recent recent transaction dates and IDs from the TransactionHistory table, for each product that starts with a letter from M to R inclusive. Same again, but with n history lines per product, where n is five times the DaysToManufacture Product attribute. Same, for the special case where exactly one history line per product is required (the single most recent entry by TransactionDate, tie-break on TransactionID.
|
[
"Where do the Python unit tests go? If you're writing a library, or an app, where do the unit test files go? It's nice to separate the test files from the main app code, but it's awkward to put them into a \"tests\" subdirectory inside of the app root directory, because it makes it harder to import the modules that you'll be testing. Is there a best practice here?",
"proof relating to limit definition of e I'm studying the book A Primer for the Mathematics of FinancialEngineering, along with it's solution guide. I've ran into trouble with the solution to question 7 in chapter 1. The problem is: Show that $(1+\\frac{1}{x})^x < e < (1+\\frac{1}{x})^{x+1}$ . Specifically, I'm having trouble with one step in the solution. It says that $$x\\ln\\left(1+\\frac{1}{x}\\right)<1<(x+1)\\ln\\left(1+\\frac{1}{x}\\right)$$ can be written as $$\\frac{1}{x+1} <\\ln\\left(1+\\frac{1}{x}\\right)<\\frac{1}{x}, \\forall \\ge 1.$$ How can the first equality (or is it inequality?) be written as the second?",
"How to use proxy for Transmission?",
"\\footnote breaks @-constructs in \\index",
"How can I unload Oracle database tables into a csv files? I need to retrieve certain data from an Oracle 11g release 1 database and provide it as one or more CSV files. The data resides in multiple tables and/or views. All this should work via the command line. What would be the best approach to this?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Did Leia know she was adopted?
|
Why did Obi-Wan allow Leia to get adopted by such a high profile figure?
|
[
"Sentence vs proposition",
"I have a table with a column for ID, Date and Frequency of occurrence for that particular date and ID. ID date Frequency 1 2014-05-18 5 1 2014-05-19 4 1 2014-05-20 25 2 2014-05-20 7 3 2014-05-18 4 3 2014-05-20 1 4 2014-05-18 6 I'm looking to insert the dates for each ID that aren't currently there (assuming that the date ranges from 2014-05-18 to 2014-05-20) and add a value of 0 in Frequency for those. For example, you can see that ID 1 has an observation for all three dates; ID 2 is missing 2014-05-18 and 2014-05-19; ID 3 is missing 2014-05-19; ID 4 is missing 2014-05-19 and 2014-05-20. Therefore, the output should look like this ID date Frequency 1 2014-05-18 5 1 2014-05-19 4 1 2014-05-20 25 2 2014-05-18 0 2 2014-05-19 0 2 2014-05-20 7 3 2014-05-18 4 3 2014-05-19 0 3 2014-05-20 1 4 2014-05-18 6 4 2014-05-19 0 4 2014-05-20 0 I've attempted the following from . However, that will only add dates with 0 Frequency that aren't present throughout the entire table instead of on an ID level. DECLARE @s DATE = '20140518', @e DATE = '20140520'; SELECT c.date, Frequency = COALESCE(a.Frequency,0) FROM dbo.Calendar AS c LEFT OUTER JOIN dbo.table AS a ON c.date = s.[date] WHERE c.d >= @s AND c.d < DATEADD(DAY, 1, @e);",
"Attributes from an hstore-column as separate columns in a view? Let's assume we have a table where it has two columns, one an ID and one an hstore column, which stores key/value pairs. You could query that column as such: SELECT name, attributes->'device' as device FROM products WHERE attributes->'edition'= 'ebook' Can you create a view for this table where the keys/values appear as columns in the view instead of all in the hstore column? Example: I have an hstore key where it might have the key of amenity. I want to create a view showing the the ID and the amenity values in a new view.",
"Groups of prime squared order",
"What is the name of the operation $v^T H v$? To find out how something is called is the one thing I don't know how to use Google for. If I have a vector $v$ and a symmetric matrix $H$, then the operation $v^T H v$ gives me some sort of projection of the matrix $H$ on the vector $v$. For example if $H$ is the Hessian, the operation gives me the second derivative in the direction of $v$. What is the name of this operation?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Issues with installing latest version of Ubuntu I'm trying to install it on a HP Pavilion 524g that is running Windoes XP right now, however it's just stuck at this purplish screen and hasn't asked me to do anything. Could it be a disc error or just taking it's time?
|
My computer boots to a black screen, what options do I have to fix it? I am trying to boot Ubuntu on my computer. When I boot Ubuntu, it boots to a black screen. How can I fix this? Table of Contents:
|
[
"How to get world-space matrix of any pose bone? Is there a command for getting world-space matrix of pose bones, same as obj.matrix_world for objects? I found pose_bone.matrix, but it gives weird result for me.",
"Prevent href=\"#\" link from changing the URL hash",
"SharePoint 2013 Jan 2016 Updates Is anyone here experience problems in SharePoint after installing the latest JAN 2016 on 13th Jan 2016 (Western Australian Time) updates for SharePoint 2013. I am guessing it could be KB3114503 update giving me problems. I am getting the same problem on other machines after running the same updates too. The problem I am receiving is, on every list view I get this error message below: TypeError: Unable to get property 'replace' of undefined or null reference TypeError: Unable to get property 'replace' of undefined or null referenceSys.ArgumentNullException: Sys.ArgumentNullException: Value cannot be null. Parameter name: element",
"What is the name of the default font in math mode? I draw figures in Inkscape. When I label elements within the figures with variable names that I have used in the underlying TeX document, I would like them to look exactly the same as in the document. (e.g. l does not look the same as $l$) What is the name of the math mode font so I can select it correctly in the Inkscape font list? If the exact font should not be available, what is a similar looking font that is present on most systems?",
"Access: Making a Pivot Table with Multiple, Same Values as Columns"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
My system is Ubuntu 18.04 LTS, with GNOME 3.28.1. In the login screen, if I enter the wrong password, it shows me the the message "Sorry, it didn't work", and then I continue to enter the right one. Then the login screen fades away but continue to show me the purplish background but not the desktop environment. However, if I enter the right password on the first try, everything goes normal. Also if I press cancel button after the "Sorry, it didn't work" message was shown and reenter the login screen, everything works fine. Does anyone knows how to fix that?
|
If I enter my password correct first time, I login as normal. If I enter my password wrong, it says invalid password. If I attempt to enter the correct password now then the screen freezes and doesn't go to dock as normal. I must restart using a physical button or shutdown to get out. Login works normally after restart, assuming I get it right first time. EDIT: After entering a wrong password, if I click cancel and then go back to my user to login, it works fine.
|
[
"Consider a \"wavefunction\" $\\psi(x)$, which has a Fourier transform $\\tilde \\psi(p)$ Suppose that we know, for each $x$, $|\\psi(x)|^2$, and that we know, for each $p$, $|\\tilde \\psi(p)|^2$. Have we enough information to reconstruct the \"wavefunction\" $\\psi(x)$, that is, obtain the phase of the \"wavefunction\" for all $x$ (up to a global phase, we are only interesting to the relative phases between the $x$)?",
"cvc-complex-type.2.4.a: Invalid content was found starting with element 'init-param'",
"Difference Boolean modifier. How do I get it to work with my mesh? I want to make a screw head, but I can't get the cross in the screw head; the Boolean modifier doesn't work. Link:",
"Error reading from file: Input/output error",
"app crash in the dealloc"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Finding my Screenshots in Minecraft I have taken many screenshots on Minecraft Java edition, but I can't find them in the screenshots folder on my computer. Can you please help me? (I have Windows 10)
|
Where are my Screenshots? I pressed F2 to take a few Minecraft screenshots. Later I couldn't find them. Where are they stored on my computer?
|
[
"Microsoft Edge missing in Start menu and pins Note: People have seem to have had issues doing this in Windows 10 pro, this could be because of Windows Updates. If the solution does not work, please use \"Refresh your PC\" I have just upgraded to Windows 10 and had to switch to a Microsoft account while setting up Cortana. Along the process, it asks me to sign out and sign back in, which I do. Then after signing back in, Microsoft Edge is missing. From the taskbar, and the \"All Apps\" section of the start menu. This only occurs AFTER I have added my Microsoft account. And the only way is to open a .HTML file like this one: (The name was from my Windows 7 Dualboot Install) and please don't say \"Just open the HTML file!\" I need a proper solution to this.",
"'longtable' caption without incrementing 'table'? For reasons both complex and confusing, I would like to caption a longtable without incrementing the table counter in the process. I want to have two consecutive longtable environments to be captioned with identical table numbers; i.e. one longtable captioned \"Table x.y: Data Set (Part A)\" and one captioned \"Table x.y: Data Set (Part B)\", with x.y being identical for both tables. Apparently however, even \\caption*{} command bumps table. I am a bit at a loss here. Note: I know that the xtab package would enable me to have one long table with switches of headers and captions mid-table. However I got a (different) problem with that package, akin to but sadly not solved by egreg's answer there; so this question should be considered longtable-only as xtab, supertabular etc. don't float my boat right now. :-(",
"Struct padding in C++",
"no space left in '/' but a lot space left in '/home' i install ubuntu and followed a guide to put 20gb in '/' and the rest (150gb) in '/home'. Now i just found out that a lot of the things installed in ubuntu usually goes to '/' instead of '/home'. I have a lot more things to install. So what is the point of '/home' ? How do I fix this ? Should I transfer 150gb from '/home' to / ? Filesystem Size Used Avail Use% Mounted on udev 7.8G 0 7.8G 0% /dev tmpfs 1.6G 9.5M 1.6G 1% /run /dev/sda6 19G 16G 1.8G 91% / tmpfs 7.8G 676K 7.8G 1% /dev/shm tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup /dev/sda2 96M 29M 68M 31% /boot/efi /dev/sda8 159G 1.1G 150G 1% /home tmpfs 1.6G 56K 1.6G 1% /run/user/1000 what is /boot ? Its not '/' or '/home'",
"With Bash's source it is possible to execute a script without an execution bit set. This is documented and expected behaviour, but isn't this against the use of an execution bit? I know, that source doesn't create a subshell."
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Expected value inequality for a monotone function A "simple" expected value inequality confuse me. If $f(x)$ is a monotone increasing function defined on the interval $[a,b]$, and $c \in [a,b]$, is it possible to prove the following inequality? $$\mathrm E\left(\sum_{t=a}^{c}f(t)\right)\leq \mathrm E \left(\sum_{t=a}^{b}f(t)\right)$$
|
Expectation inequality for a set and its subset. Given that a function $g(x)$ is a monotone increasing function. Its domain is an interval [c,d]. There are two sets $a_j \in A, j= 1,...,J$ and $b_k \in B,k=1,...,K$ on this interval, which satisfy $c_z \in C = B$\A and $c_z \geq a_j$ for all $a_j \in A$. For example, the interval $[c,d]=[0,8]$,$A=\{0,1,2,3,4,5\}$ and $B=\{0,1,2,3,4,5,6,7\}$. In this case, does the following inequality hold? If yes, could you give me some hints to prove that? $$\frac{1}{K} \sum_{k=1}^{K}g(b_k) \geq \frac{1}{J} \sum_{j=1}^{J}g(a_j)$$
|
[
"Evaluate $\\mathop {\\lim }\\limits_{x \\to 0} \\left( {{1 \\over {{{\\sin }^2}x}} - {1 \\over {{x^2}}}} \\right)$ I tried l'Hospital but that will require a lot (and I mean A LOT!!!) of differentiating Is there a shortcut? $$\\mathop {\\lim }\\limits_{x \\to 0} \\left( {{1 \\over {{{\\sin }^2}x}} - {1 \\over {{x^2}}}} \\right)$$ Thanks in advance",
"CSS transition shorthand with multiple properties?",
"How to delay or slowly loop commands? I found 11 questions like this on gamingSE already, but none of them have proper and up-to-date answers. So I'm creating this Q&A: How do you either activate a command x seconds/minutes/hours/… in the future or every x seconds/minutes/… in a loop? Repeating command blocks and ticking functions execute 20 times per second, redstone is in many situations and most of the extremely fancy solutions, like falling blocks in cobwebs, have broken over time or are needlessly complicated.",
"What's the best solution to check a users country?",
"How can I Remove .DS_Store files from a Git repository? How can I remove those annoying Mac OS X .DS_Store files from a Git repository?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Very short short-story of a near-future with advertisments on everything, even toilet paper
|
Identifying a short story about advertising
|
[
"Windows registry entries for default explorer view I'm making an automated installer for Windows XP, and I want the default view to be the \"details\" view on all folders - that is, the effect gotten by setting one folder to the details view, then going to Tools -> Folder Options -> View -> \"Apply to All Folders\". I also want the status bar to be showing, same as going View -> Show Status Bar. What registry entries should I modify, and to what, to have this be the case?",
"The following is a homework problem: Prove that between two roots of the function $f(x) = \\exp(x) \\sin(x) -1$ there must be at least one root of the function $\\exp(x)\\cos(x) +1$. I think it is possible to prove it by simply computing the signs of the functions at $\\frac{\\pi}{2}k, \\pi k, \\frac{3\\pi}{2}k, 2\\pi k$. However, I'm looking for a more elegant way. It is intuitively clear that the roots of $f$ are ˋˋconverging'' to the roots of $sin$ and the ones of $g$ to the ones of $cos$. Do you have any hint how to construct a nice argument based on this observation?",
"From the limit definition of differentiability, determine where the function $f(x) = \\sqrt{x}$ is differentiable? For the function $f(x) = \\sqrt{x}, \\hspace{2 mm} f: [0, \\infty) \\rightarrow \\mathbb{R}$, I wish to find all points $a$ at which $f(x)$ is differentiable, from the definition $$ f'(x) = \\lim_{x \\rightarrow a}\\frac{f(x)-f(a)}{x-a} $$ Clearly, for our function $f(x) = \\sqrt{x}$, this gives us $$ f'(x) = \\lim_{x\\to a}\\frac{\\sqrt{x} - \\sqrt{a}}{x-a} $$ So the question boils down to showing for what values of $a$ this limit exists. How would this be done? Intuitively, I know that the answer is that the limit exists for all $a \\in [0, \\infty)$ and is given by $\\frac{1}{2 \\sqrt{a}}$, but I'm unsure of how to prove this from the limit definition of differentiability.",
"How do malloc() and free() work?",
"nginx open reverse proxy?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
What happens when piping the `yes` to another command? If the yes command echos "y" continuously until killed, then it will never get done right? If it will never get done then how does it pipe it's output to the next command??
|
How to understand pipes When I just used pipe in bash, I didn't think more about this. But when I read some C code example using system call pipe() together with fork(), I wonder how to understand pipes, including both anonymous pipes and named pipes. It is often heard that "everything in Linux/Unix is a file". I wonder if a pipe is actually a file so that one part it connects writes to the pipe file, and the other part reads from the pipe file? If yes, where is the pipe file for an anonymous pipe created? In /tmp, /dev, or ...? However, from examples of named pipes, I also learned that using pipes has space and time performance advantage over explicitly using temporary files, probably because there are no files involved in implementation of pipes. Also pipes seem not store data as files do. So I doubt a pipe is actually a file.
|
[
"Proof that an integral domain that is a finite-dimensional $F$-vector space is in fact a field",
"This is probably easier to show than tell... On the recent question , I see the following: As you can see, the first five links render properly, but after that, they stop converting. Unfortunately, this isn't obvious to the person writing the post, which I discovered when I went to edit the post to fix the \"broken\" links. In the edit window, it renders all of the links just fine: I understand that this behavior is expected based on balpha's answer : Links to questions on the same site are unlimited. Links to other sites are limited to a) 5 linked-to sites and b) N questions per target site, where N is 200 on meta sites and 10 on non-metas (this is about the site that the post containing the link is posted on, not the site that is being linked to) So if this rule is still going to stay in effect, please fix the edit view to also not automatically convert more than five linked-to sites to help people writing posts know that they need to manually title the links to the other questions. That said, I'd prefer that (at least on MSE) this limitation be removed or raised. Even in the answer, balpha says: The restrictions are currently as follows, but note that they do look a bit contrived, resulting from the fact that they have grown over time (from single site to cross-site, from \"there are no subsites\" to \"facebook.SO\", etc.), so it's not unlikely that we'll revisit them. So, if it's not hurting performance, can we please increase the limit or remove it?",
"We have set up GA on several websites to gather information about traffic to the site. We know about the organic keywords that are displayed under the Acquisition section of the traffic report. But we have been asked to find a way to display \"not provided\" keywords typed in by the end user in our Google Analytics report. Is it possible to accomplish this?",
"I'm looking for a word that means someone (especially a boss) who is not pleased (with your work, attitude etc.) no matter how hard you try.",
"Spring Data JPA Update @Query not updating?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Compute limit $\lim_{n\rightarrow\infty}\frac{1*3*5*...*(2n-1) }{ 2*4*6*...*(2n)}=0$
|
To show for following sequence $\lim_{n \to \infty} a_n = 0$ where $a_n$ = $1.3.5 ... (2n-1)\over 2.4.6...(2n)$
|
[
"Mount USB drive with write permissions for everyone or specific user",
"There are $k$ penguins, $k\\ge 3$. They are all different heights. How many ways are there to order the penguins in a line, left to right, so that we cannot find any three that are arranged tallest to shortest (in left to right order)? The penguin triples do not have have to be adjacent. This problem is courtesy of someone I know only as \"DaMancha.\"",
"What's wrong with this demonstration?: $$A \\iff 1 = 1^1$$ $$A \\implies 1 = 1^\\frac{2}{2}$$ $$A \\implies 1 = (1^2)^\\frac{1}{2}$$ $$A \\implies 1 = ((-1)^2)^\\frac{1}{2}$$ $$A \\implies 1 = (-1)^\\frac{2}{2}$$ $$A \\implies 1 = (-1)^1 = -1$$ So finaly we get $$1 = -1$$",
"I am trying to build a computer, placing an in a custom . The case is an extra small form factor which can accommodate the Mini ITX board, but it requires an external power supply, similar to the power-bricks that laptops use. I am looking at different power supplies and like , but I cannot figure out whether/how to power this system, because they provide a 24-pin connector, but the motherboard has a 4-pin connector as well. Is the 4-pin connector optional or is it required? If it is required, how can I provide power for this system?",
"$n$ choose $k$ where $n$ is less than $k$ I am working on parameter estimation and one of the estimators involves a summation of $_nC_k$ ($n$ choose $k$) expressions. For some iterations, I need to compute expressions like $_0C_1$, $_0C_2$, etc. In general how do we compute $_nC_k$ when $n$ is less than $k$? Do we still use the formula $\\frac{n!}{(n-k)!k!}$ and use the gamma function to compute the negative factorial? Thanks!"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Does using "did" to form the past tense make a difference? The two sentences here both indicate that, at some point in the past, I performed some work: I did work I worked What is the difference between these two sentences? Does constructing one with did and the other with a simple past change the meaning?
|
"did shoot" vs "shot" This morning I read this sentence (see ): On July 24th and again on July 29th, Egyptian police did shoot dead unarmed African migrants attempting to cross that border. Why "did shoot" and not "shot"?
|
[
"How to work with iAds using xcode 3.1.3",
"StringTokenizer? Convert the String to a char[] and iterate over that? Something else?",
"I am looking for a way to get the output of a command when it is run from within a C++ program. I have looked at using the system() function, but that will just execute a command. Here's an example of what I'm looking for: std::string result = system(\"./some_command\"); I need to run an arbitrary command and get its output. I've looked at , but I have not found anything that will give me what I need.",
"Are there any organised resources available from where I can begin my quantum computing studies? I am a computer science student and am currently searching for resources from where I can learn about quantum computers, quantum computing models, their working principles, their gates and some simple quantum algorithms.",
"How to combine low sample renders?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Test for a player who isn't wearing a helmet? [1.12.2] I'm trying to set the score 'ToxicJungleSafe' to 0 if a player isn't wearing a helmet in 1.12.2. So far I have tried using ArmorItems tag, as well as Inventory tag. minecraft:air doesn't seem to work either.
|
How to use exclamation marks in Minecraft commands? I know that you can use exclamation marks in Minecraft commands to check for an entity that does not have a specific tag. For example, you can use /kill @e[type=!Player] to kill all entities except for the player. I have, however, encountered two problems with using exclamation marks that I can't find a solution for. For my first problem, I've set up a series of command blocks to summon shootable fireballs above the player’s head when a certain item is being held; /scoreboard players add @a Fireball 1 {SelectedItem:{tag:{display:{Name:"Summon Fireball"}}}} /execute @a[score_Fireball_min=1,score_Fireball=1] ~ ~ ~ /summon Fireball ~ ~2.5 ~ {direction:[0.0,0.0,0.0]} /scoreboard players set @a Fireball 0 I used a comparator and a redstone torch so that the last command would activate when the first command would deactivate, that is, when the player is not holding the item. The problem is, that when I move far away from the setup, the redstone stops working, leaving me unable to summon any new fireballs. Instead, I'm trying to use a command block to check when anything except for item is being held; /scoreboard players set @a Fireball 0 {SelectedItem:{tag:{display:{Name:!"Summon Fireball"}}}} I’ve either put it at the wrong place, or you simply can’t use exclamation marks in NBT tags. Could someone tell me where I should put the exclamation mark, or in the latter case, how I can check for anything except for a specific item? Further, I’ve tried using exclamation marks to set the score of all entities, including the ones with a blank score, but except for the ones with a score of 2 or higher, to 0; /scoreboard players set @e[score_arrows_min!=2] Arrows 0 /scoreboard players set @a Arrows 1 {SelectedItem:{tag:{display:{Name:"Rain of Arrows"}}}} /scoreboard players set @e[type=Arrow] Arrows 2 {inGround:1b} The code does change the scores of entities without scores to 0, but it doesn’t exclude the arrows with a score of 2. Could anyone tell me what I’m doing wrong here?
|
[
"Mysql resolving 127.0.0.1 to hostname",
"Will an iOS reinstall make a jailbroken iOS device \"unjailbroken\" and “supported by Apple” again? Will an Work on any jailbroken-iPhone and Make a jailbroken-iPhone \"unjailbroken\"? Make a jailbroken-iPhone \"supported by Apple\"? Similarly, does such an iOS reinstall reset the iPhone (jailbroken or not) back to a \"clean, factory default\" state? My near-term purpose: I have an iPhone 4S running iOS 5.1 I'd like to jailbreak to at least install better Google Voice integration like .",
"Breaking single polygon into multiple polygons? I created voronoi polygons after which I dissolved them on the basis of one attribute. Now there are cases where in for one single attribute \"abc\" I have3 polygons at different places with same object id. I would like to break these into 3 polygons as they are at different locations. Is there any tool in ArcGIS Desktop or QGIS which can help me in doing that?",
"I have a dictionary of values read from two fields in a database: a string field and a numeric field. The string field is unique, so that is the key of the dictionary. I can sort on the keys, but how can I sort based on the values? Note: I have read Stack Overflow question here and probably could change my code to have a list of dictionaries, but since I do not really need a list of dictionaries I wanted to know if there is a simpler solution to sort either in ascending or descending order.",
"Is it generally true that if $|P(A)|=|P(B)|$ then $|A|=|B|$? Why? Thanks."
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Regex displaying only first digits and ignoring the second digits
|
What special characters must be escaped in regular expressions?
|
[
"How to place a .png texture with transparency over a material I am trying to create a low poly face with a face from a .png file. The issue is I already have material placed for hair and skin, as shown in the picture below. I have created a .png file with a face which I would like to overlay over the skin material on the front of the head. All examples I searched so far assume I also want the color of the material from the .png texture. Update: I added UVMapping, changed view to texture, made sure one face is on the eye but nothing is displayed..... see image... I don't know what is going on.",
"In Russian roulette, is it best to go first? Assume that we are playing a game of Russian roulette (6 chambers) and that there is no shuffling after the shot is fired. I was wondering if you have an advantage in going first? If so, how big of an advantage? I was just debating this with friends, and I wouldn't know what probability to use to prove it. I'm thinking binomial distribution or something like that. If $n=2$, then there's no advantage. Just $50/50$ if the person survives or dies. If $n=3$, then maybe the other guy has an advantage. The person who goes second should have an advantage. Or maybe I'm wrong.",
"I want the QED symbol to be 1 line lower at the end of proof Just as my title says, I would prefer to have my qed symbol to be 1 line lower than the last line of my proof. By default its on the same line and aligned to the right. How can I achieve this? EDIT: See below code for an example: \\documentclass[11pt,a4paper]{article} \\usepackage[margin=3cm]{geometry} \\usepackage[english]{babel} \\usepackage{amsmath, amsthm} \\begin{document} \\begin{proof} Hello there good chap! I'll put in another line here just to be sure its clear what I mean. \\end{proof} \\end{document}",
"Opposite of \"straight talk\"",
"Can matter really fall through an event horizon?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
How to search for questions with negative score?
|
Is it possible to search for down voted questions?
|
[
"External program from our Java program How can I write a program in Java that will execute another program? Also, the input of that program should be given from our program and the output of that program should be written into a file. This is my small set of code to get its output: Process p = Runtime.getRuntime().exec(\"C:\\\\j2sdk1.4.0\\bin\\\\helloworld.java\"); BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream())); while ((line = input.readLine()) != null) System.out.println(line); input.close(); This was my set of code but this throws an IOException.",
"Retrieving minimum width that contains specified fraction of all values I'd like to find the min/max boundaries of a sliding window of minimum size that contains a certain fraction of the total number of elements in an array or collection of numbers. Example: taking integers to make it easier to explain, say the proportion of elements that we're looking for is 50% on this array: [1,1,2,3,3,3,3,3,3,4,5,6,7,8,9,10] The mystery function would return something like ( 2, 4 ), meaning that the minimum value is 2 and the max value is 4 (let's assume it's inclusive and note that these are VALUES, not indices). That little window contains 8 of the 16 values and it's only 2 units wide, the narrowest such window that contains half the number of values. Note: the quartiles are [1,1,2,3], [3,3,3,3], [3,4,5,6], [7,8,9,10] so they are NOT what I'm looking for. I can code it...may take some time to get it nice. Hopefully somebody has run across it before. Does it have a name? Is there an existing method that somebody knows about? I am interested in Python implementations. UPDATE: Thanks to Glen_b who gave the names 'short-half' and 'shortest interval' I was able to come up with this:",
"\"[\" as first character in table row Whenever I try to compile a table that has a \"[\" as first character in a row it gives me the error: Missing number, treated as zero. Illegal unit of measure Example: \\begin{table}[htb] \\centering \\begin{tabular}{r|r} [some text ] & ... \\\\ [some more text ] & ... \\end{tabular} \\caption{...} \\label{tab:...} \\end{table} How can I print \"[\" as first character in a row?",
"Installing gcc-7 (and newer packages) in Ubuntu 16.04",
"I need to customize my references in the following style using biblatexs Alpha style having the columns Label, Author, and Title and Other Information. Till now with your help I could already change the square brackets to slashes. My code so far is: \\documentclass[12pt]{scrartcl} . . \\usepackage[% natbib = true, backend = bibtex8, %bibtex, biber style = alphabetic, %citestyle = alphabetic, maxcitenames = 2, mincitenames = 1, %bibstyle = alphabetic, %authoryear, %draft, %, sorting = nyvt, maxbibnames = 6, minbibnames = 6, language = ngerman, date = long, backref = false, backrefstyle = none, % none, three, two, two+, three+, all+ firstinits=true ]{biblatex} \\usepackage[babel,german=quotes]{csquotes} \\bibliography{input/literatur} \\newrobustcmd{\\mkbibslashes}[1]{/#1/} \\DeclareFieldFormat{labelalphawidth}{\\mkbibslashes{#1}} \\DeclareFieldFormat{shorthandwidth}{\\mkbibslashes{#1}} \\DeclareCiteCommand{\\cite}[\\mkbibslashes] {\\usebibmacro{prenote}} {\\usebibmacro{citeindex}% \\usebibmacro{cite}} {\\multicitedelim} {\\usebibmacro{postnote}} \\renewcaptionname{ngerman}{\\refname}{Literaturverzeichnis} . . . Thanks again"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
I'm trying to select a variable column name in my table, but this doesn't seem to work: $reponse = $bdd->prepare('SELECT :day AS day FROM TABLE WHERE id= :id'); $reponse->execute(array('day' => 'monday', 'id' => '5')); $day = $reponse->fetch(); Even by setting 'day', to a sure known element in my table (monday), it doesn't work. Same for id. Does someone know how to fix that? I have no php error output, only a mysql query error (that doesn't show). By replacing ':day' by monday, I have an output.
|
Why can't I pass the table name to a prepared PDO statement? $stmt = $dbh->prepare('SELECT * FROM :table WHERE 1'); if ($stmt->execute(array(':table' => 'users'))) { var_dump($stmt->fetchAll()); } Is there another safe way to insert a table name into a SQL query? With safe, I mean that I don't want to do $sql = "SELECT * FROM $table WHERE 1"
|
[
"Integral of type $\\displaystyle \\int\\frac{1}{\\sqrt[4]{x^4+1}}dx$",
"Is there a comma needed before quotation? Sam developed an annual sweepstakes promotion entitled “The Free Gas Punt Return Game”. Do I need a comma after entitled or not?",
"Blog showing up as mobile, won't exit",
"A Question On Euler's Proof Of the Basel Problem I've studied the proof that Euler gave for the famous , and it would seem that while it is technically correct, he does not justify all of his steps properly. Namely, he assumes that $$\\frac{\\sin(x)}{x}=\\left(1-\\frac{x}{\\pi}\\right)\\left(1+\\frac{x}{\\pi}\\right)\\left(1-\\frac{x}{2\\pi}\\right)\\left(1+\\frac{x}{2\\pi}\\right)\\dots$$ simply because they have the same roots, which is really not a strong enough condition. How do you really show that the equality holds? He then notices that if you use the above equality, and consider it against the Taylor expansion for $\\frac{\\sin(x)}{x}$, then you can equate the coefficients of the two infinite expansions at each order, and the result of the Basel problem follows. But how do you know that if you have two different expansions for a function, then their coefficients at each order must be equal? I would really appreciate if someone could show me how to make these two intuitive, yet informal, steps rigorous.",
"I just installed Ubuntu 16.10 on my desktop and have a USB deathadder. The problem is I can't see where the cursor actually is because it appears only in the top left of my screen. The mouse still moves but the cursor graphic doesn't follow"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Get Debug Logs from Salesforce with MavensMate
|
How can I get debug log in Mavensmate
|
[
"How do I get the number of days between two dates in JavaScript?",
"Why is Dictionary preferred over Hashtable in C#? In most programming languages, dictionaries are preferred over hashtables. What are the reasons behind that?",
"When can we find holomorphic bijections between annuli?",
"Difference of the \\dots*",
"What is the function of \"do\" in this sentence? Rarely, though, do countries introduce a single reform alone. What function does do have in this sentence?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Adding reference lines I constantly need to add reference lines to my PGF plots which should match the data. I am looking for ways to implement a command that does this automatically and I am hoping someone can give me some pointers on the best way to do this. The following MWE with the comments hopefully illustrate the point: \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} \begin{filecontents}{line12.dat} x y 1 48.43734545112396 2 89.8468830844395 4 210.67967341436497 7 475.619178754322 8 603.599030569327 9 821.1933877936549 \end{filecontents} \begin{document} \begin{tikzpicture} \begin{axis}[xmode=log,ymode=log,xmin=1, xmax=10,domain=1:10] % This is the line plot \addplot[scatter,only marks,mark=o,draw=black] table[x=x, y=y] {line12.dat}; \label{myline} \addplot[dashed] {x^2}; % This is the reference line which does not match the data % To make the reference line f(x) align with the data, % I have to multiply by a constant: mean(y_i / x_i**2) \addplot[dashed] {18.89041408136126 * x^2}; % This is the reference line % I want to implement a command that does this automatically like this % \addref[dashed, x=x, y=y] {line12.data}{x**2}; % Or even just referencing the line if that is somehow possible % \addref[dashed, data=myline] {x**2}; \end{axis} \end{tikzpicture} \end{document} Once I know how to implement this, I am hoping to introduce some logic to remove outliers as well or use other functions to find the constant (like the median).
|
Linear regression in a loglog-plot with fixed slope Goal: create a plot to compare the empirical convergence rate of a numerical method with the one expected from the theory. Accordingly, given a loglog-plot, I would like to add the line which has a prescribed slope (in this case, the convergence of the method) and the best intercept to fit the data (e.g., in a least-square sense). Question: how to do a linear regression with fixed slope in pgfplots? What I have done so far is the following: (1) compute the regression line (of the logarithm of the quantities), (2) save the intercept, (3) plot the line with the slope expected from the theory and this intercept. This is a good approximation of what I am looking for, provided the data are in agreement with the theory. Thanks MdFB
|
[
"Convergence of an alternating series : $ \\sum_{n\\geq 1} \\frac{(-1)^n|\\sin n|}{n}$ Study the convergence of $$\\displaystyle \\sum_{n\\geq 1} \\frac{(-1)^n|\\sin n|}{n}.$$ I am stuck with this series, we need probably some measure of irrationally of $\\pi$, unfortunately I am unfamiliar with this. So here is my attempt : Let $f(x) = \\sum \\frac{|\\sin{n}|}{n} x^n, |x| < 1$ It's not difficult to compute the Fourier series of $|\\sin(x)|$ : $$ \\displaystyle|\\sin(x)|=\\frac{2}{\\pi}-\\frac{4}{\\pi}\\sum_{n=1}^{+\\infty}\\frac{\\cos(2nx)}{4n^2-1} $$ Then Fubini's theorem () works very well (because the previous series converges absolutely at $x$ fixed ) and all calculations made, we find that for all $x\\in( -1,1)$: $$ \\displaystyle f(x)=\\frac{2}{\\pi}\\sum_{n=1}^{+\\infty}\\frac{x^n}{n}-\\frac{4}{\\pi}\\sum_{p=1}^{+\\infty}\\frac{x^2-2x\\cos(p)}{(4p^2-1)(x^2-2x\\cos(p)+1)} $$ However, the second sum I have not been able to show the convergence. I feel the series diverge because the following series $$ \\displaystyle\\sum\\frac{1}{p^2\\sin^2\\left(\\frac{p}{2}\\right)} $$ diverge because $0$ is an accumulation point of $\\displaystyle (n\\sin(n))$ sequence. Any ideas (for the original series) ?",
"Example of a ring without Invariant Basis Property",
"What does \"+6 to hit, Hit: 13 (2d8 + 4)\" mean in a creature's stat block? My friends and I are very new to D&D, played like 3 times. In a monster's stats next to weapon damage it says stuff like \"+11 to hit\" and \"Hit: 5 (1d8+1)\". For the premade characters it just says things like \"+4, 2d6 + 2 slashing\", though. Why are there two \"hit\" numbers for monsters? Which do I use for the d20 roll to hit against a target's AC? I mean for example like in the Ogre entry in the \"\" article on monsters.",
"Google Analytics: How can I track between http:// and https:// profiles for a domain?",
"Is it a wise-decision to buy full-frame lenses for use on an APS-C body? I have a Canon 550D which I've been using for around a year now. I really love it and have learned a great deal with this and the 18 - 135mm kit lens. But now with experience I feel the need to get some better glass. I won't be buying a new body any time soon because I figure investing in some good glass is more important. As I have looked around, I see quite a few good used L lenses I can get in ebay for good bargain prices. But I know that the EF lenses don't have the same focal length in the cropped sensors. Is it a wise decision to buy these EF lenses or buy the cropped sensor alternatives? I have the following lenses in mind that I am looking to buy down the line from the canon range over the next several months. 16-35mm f/2.8L, 24-70mm f/2.8L, 70-200 f/4L. Are these apt choices for cropped sensors? I know most pros with FFs use these but I am a bit skeptic that they will serve the same purpose for me. If so what are the alternatives for this that have almost as good image quality?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Can you check the instanceOf an object dynamically? Updated after several answers and comments, to clarify the requirements I have an Open Source library and am looking to implement a method that will check if an object is an instance of a given type. That type needs to be specifiable as a parameter. It needs to work throughout hierarchies, and with both SObjects and Objects (although the latter could be handled with two different methods). So, for example: Checking a Contact against the type 'Contact' would match. Checking a Contact against the type 'SObject' would match. Checking a Contact against the type 'Account' would not match. Checking an instance of a Class against that Class's type would match. Checking an instance of a Class against any of that Class's supertypes or interfaces would match. Checking an instance of a Class against 'Object' would match. Checking an instance of a Class against 'SObject' would not match. Because of the requirement to be able to check within the class hierarchy, retrieving the type of an object and comparing it directly to a type cannot be the answer. In that situation, checking Contact against SObject would fail, when Contact is an instance of an SObject. With instanceof, you can check if an object is of a particular type. For example: Sobject con = new Contact(); System.debug( con instanceOf Contact ); // true Whereas the following won't even compile, because, as the compiler says: Contact con = new Contact(); System.debug( con instanceOf SObject ); Operation instanceof is always true since an instance of Contact is always an instance of SObject It feels like what I am looking for is the ability to check the instance of an object against a dynamic type, for example, along the lines of: Sobject con = new Contact(); Type conType = Contact.class; System.debug( con instanceOf conType ); // true The above doesn't work, but is there an incantation that does? Update There are some good answers already, but none quite hit the mark, and maybe this isn't possible in Apex (yet). The issue is that the method I want to write will form part of an Open Source library and so the solution needs to be bulletproof, and ideally work with objects of any type (ideally including primitives). It may be possible to implement a solution that includes several methods. E.g. public Boolean isInstanceOfSobject( SObjectType sobjectType ) and public Boolean isInstanceOfObject( Type objecttype ) But, as I say, it would need to be bulletproof and deal with namespaces, hierarchies and suchlike. For those interested in why: it would form part of Amoss (an Apex Mocking Framework): And implement an 'instanceOf' parameter checker as per this issue:
|
How to get the Runtime-Type of an Object dynamically (for Primitive Data Types and SObjects) Is it possible to get the Type of an Object (it's not an SObject)? String s = 'test'; doSomething(s); public static void doSomething(o Object) { // need to find out if o is a string or an integer type = IsThereAMethodToGetTheTypeOf(o) // ? if(type='String') { // do something for strings here .... } else { // do something else .... } } I think the Type class can't help me, because it has no way to get the type of an existing object instance, right? Any there any other way? Since there is most likely no perfect solution possible within the current platform limitations, I posted an Idea on IdeaExchange here: For SObject I have already this public static string getType(SObject obj) { if(obj==null) return ''; return obj.getSObjectType().getDescribe().getName()+''; }
|
[
"An example of a norm which can't be generated by an inner product I realize that every inner product defined on a vector space can give rise to a norm on that space. The converse, apparently is not true. I'd like an example of a norm which no inner product can generate.",
"HDMI/Displayport audio control for OS X",
"I am writing a novel and fairly new to using LaTeX. Please bare with me if this is a silly question. I am working off of the novel demo LaTeX file using the TexWorks software. I have inserted my words into the file. When I run the LaTeX code, I get the error message saying \"! LaTeX Error: File `novel.cls' not found.\" Do I need to download this file from somewhere? If so, where can I get it?",
"Are (un)tapped permanents still legal targets for \"(un)tap target permanent\" effects? So I noticed that many cards with tap-effects ship with a clause specifying that they can only be used on untapped permanents, such as and . So here's my question: Doesn't that imply that, given the right situation, one can legally tap an already tapped permanent? I'll give an example of the kinda scenarios this is relevant for: Can activate her first ability when no untapped cards are around? Or, thinking untap-effects, could I bounce a forest with even when there isn't a tapped creature available? Notice that, unlike the previous batch of examples, the wording on these lacks the clause restricting their use to un/tapped permanents - does that mean that they aren't? Any kind of clarification would be greatly appreciated here.",
"C# Interfaces. Implicit implementation versus Explicit implementation What are the differences in implementing interfaces implicitly and explicitly in C#? When should you use implicit and when should you use explicit? Are there any pros and/or cons to one or the other? Microsoft's official guidelines (from first edition ) states that using explicit implementations are not recommended, since it gives the code unexpected behaviour. I think this guideline is very valid in a pre-IoC-time, when you don't pass things around as interfaces. Could anyone touch on that aspect as well?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
What does static imply in import static org.mockito.Mockito.*; What does static mean in import static org.mockito.Mockito.*; I have seen statements like import java.util.*; but it never had static. Thank you
|
What does the "static" modifier after "import" mean? When used like this: import static com.showboy.Myclass; public class Anotherclass{} what's the difference between import static com.showboy.Myclass and import com.showboy.Myclass?
|
[
"Electromagnetic waves can be shielded by a perfect conductor. What about gravitational fields or waves?",
"I have a question related to modeling short time-series. It is not a question , but how. What method would you recommend for modeling (very) short time-series (say of length $T \\leq 20$)? By \"best\" I mean here the most robust one, that is the least prone to errors due the fact of limited numbers of observations. With short series single observations could influence the forecast, so the method should provide a cautious estimate of errors and possible variability connected to the forecast. I am generally interested in univariate time-series but it would be also interesting to know about other methods.",
"How do I turn off some formats in GeoServer's WMS?",
"Let $ \\mathbb R _ { > 0 } $ be the set of positive real numbers. Find all functions $ f : \\mathbb R _ { > 0 } \\to \\mathbb R _ { > 0 } $ such that $$ f \\big ( x y + f ( x ) \\big) = f \\big( f ( x ) f ( y ) \\big) + x $$ for all positive real numbers $ x $ and $ y $. What I thought: We could change $ x $ by $ y $, and then subtract. Source: Brazil National Olympiad 2019 #3",
"How do I recursively grep through compressed archives? I'm trying to find out what modules in cpan. So I've used to mirror it. My problem is that I need to iterate through the archives that are downloaded, and grep the files that are in the archives. Can anyone tell me how I might do this? preferably in a way that tells me which file in the archive and what line it's on. (note: they aren't all tarballs some are zip files)"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
If $a_n\to0$, there exists $\pm$ such that $\sum\limits_n\pm a_n$ converges
|
Forcing series convergence
|
[
"Sometimes when attempting to capture a Pokémon, the mon will be wiggling in the ball and the app will disconnect from servers (for mobile connection reasons or whatever), and I'll be left staring at a ball containing Schrodinger's Pokémon. I'll sigh at the loss (or in the case of a 500CP Pinsir, scream in agony), and reload the game. I thought maybe encounters in general couldn't handle disconnecting well, but sometimes immediately after a Pokémon broke free of a ball, the little icon in the upper left would appear, the game would stall for a bit, but it would recover. Is there anything I can do to avoid this? Should I be waiting it out, instead of reloading? (and before anyone says it, yes I have filed a bug report)",
"What is the proper way to explain the twin paradox? The paradox in the is that the situation appears symmetrical so each twin should think the other has aged less, which is of course impossible. There are a thousand explanations out there for why this doesn't happen, but they all end up saying something vague like it's because one twin is accelerating or you need general relativity to understand it. Please will someone give a simple and definitive explanation for why both twins agree on which twin is younger when they meet for the second time?",
"How to remove \\n from a list element?",
"Possibility of recovering files from a dd zero-filled hard disk I have \"zero filled\" (complete wiped) an external hard disk using dd, and from what I have heard: people said you should at least \"zero fill\" 3 times to be sure that the data are really wiped and no one can recover anything. So I decided to scan the disk once again after I've zero filled the disk. I was expecting the disk to still have some random binary left. It turned out that it has only a few sequential bytes in the very beginning. This is probably the file structure type and other headers stuff. Other than that, it's all zeros and nothing else. So if we have to recover any file from a zero filled disk, ...how? From what I've heard, even you zero fill the disk, you should still have some data left. ...or could dd really completely annihilate all data?",
"Computing $\\int_{-\\infty}^\\infty \\frac{\\sin x}{x} \\mathrm{d}x$ with residue calculus"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Writing in a text file using java swing I'm having a problem with writing a text file using Java swing. Below is my code, if I try to open the file the text isn't formatted like its supposed to, going into a new line after each input text. I've tried using /n, System.lineSeparator() and %n, but nothing seems to work. Unless I copy the content into another file it looks wrong. Instead of going into a new line it gives me this: Name: Bob Test Number: 12345678 Email: [email protected] Address: Teststreet 123 TestCity Testcountry Gender: Male Occupation: Student Salary: 500 Manager: Yes try { Object fileName = textField.getText(); File user = new File("C:\\Users\\Nicol\\Desktop\\"+fileName+".txt"); if(!user.exists()) { user.createNewFile(); } PrintWriter pw = new PrintWriter(user); pw.print("Name: "); textField.write(pw); pw.print("\nNumber: "); textField_1.write(pw); pw.print("\nEmail: "); textField_3.write(pw); pw.print("\n\nAddress: \n"); textArea.write(pw); if(rdbtnMale.isSelected()) { pw.print("\n\nGender: Male"); }else if(rdbtnFemale.isSelected()) { pw.print("\n\nGender: Female"); }else { pw.print("\n\nGender: none selected"); } Object professionSelect = comboBox.getSelectedItem(); pw.print("\nOccupation: " + professionSelect); pw.print("\nSalary: "); textField_4.write(pw); if(chckbxIsManager.isSelected()) { pw.print("\nManager: Yes"); } else { pw.print("\nManager: No"); } JOptionPane.showMessageDialog(null, "The file has been created on the desktop."); pw.close(); }
|
How do I get a platform-dependent new line character? How do I get a platform-dependent newline in Java? I can’t use "\n" everywhere.
|
[
"Named parameters in JDBC",
"I have to do proof of $(a+b)^n$ and $(a+b)^{n+1}$ with mathematical induction. I finished the first one $(a+b)^n = a^n + na^{n-1}b+\\dots+b^n$. I however have trouble with the second one, I don't know what to start exactly. Any help/hints?",
"Why did Douglas Adams pick 42 as the ultimate answer? Star Trek often refers to 47 and Star Trek made a sport out of finding real or imagined references to 47. Why did Douglas Adams pick 42 as the ultimate answer in the Hitchhikers guide to the galaxy?",
"Is it possible to include one CSS file in another? Is it possible to include one CSS file in another?",
"How to tell how many CPUs (cores) you have on Windows 7"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
How to prevent open tasks from being reassigned when opportunity owner is changed? Salesforce transfers ownership of all open tasks on the opportunity currently if the opportunity owner is changed. How can I write my trigger to prevent this from happening?
|
Trigger to assign open tasks back to specific user when account owner is changed We have a workflow that creates tasks and assigns them to a specific user when an opportunity is closed. It's salesforce standard behavior that when the account owner is changed, the open tasks are also reassigned to the new account owner. I'm trying to write a trigger that: checks if the account owner and/or task owner is changed FROM 00590000000a3xU if yes, reassign the tasks back to 00590000000a3xU only open tasks and tasks where Orb Team Task (checkbox) is true will be reassigned I was getting all sorts of errors from the old code even after making the changes sfdcfox's pointed out. So I decided to change my approach. Here's the new and working code: trigger AssignTaskBackToWarehouse on Account (after update){ List<Task>TasksToUpdate = new List<Task>(); Map<Id,Account>amap = new Map<Id,Account>([SELECT Id, OwnerId,(SELECT Id, Status, Warehouse_Task__c FROM tasks WHERE Status != 'Completed' AND Warehouse_Task__c = true) FROM Account WHERE Id =: Trigger.newmap.keyset()]); for(Account a : Trigger.new){ for(Task t : amap.get(a.Id).tasks){ t.OwnerId = '00590000000XXXX'; TasksToUpdate.add(t); } } if(TasksToUpdate.size() > 0){ update TasksToUpdate; } }
|
[
"How to run long time process on Udev event? I want to run a ppp connection when my USB modem is connected, so I use this udev rule: ACTION==\"add\", SUBSYSTEM==\"tty\", ATTRS{idVendor}==\"16d8\",\\ RUN+=\"/usr/local/bin/newPPP.sh $env{DEVNAME}\" (My modem appears in /dev as ttyACM0) newPPP.sh: #!/bin/bash /usr/bin/pon prov $1 >/dev/null 2>&1 & Problem: The udev event fires, and newPPP.sh is running, but newPPP.sh process is killed after ~4-5s. ppp does not have time to connect (its timeout is 10s for dial up). How can I run a long time process, that will not be killed? I tried using nohup, but it didn't work either. System: Arch Linux Update I found a solution , thanks to . I use at now to run my job detached from udev process. But the one question remains unanswered: Why do nohup and & not work?",
"My network icon is always a question mark in both wired and wireless connection but everything network related works correctly.",
"Do two beams of light attract each other in general theory of relativity? In general relativity, light is subject to gravitational pull. Does light generate gravitational pull, and do two beams of light attract each other?",
"Prove normal matrix is 4th power of some self-adjoint matrix Let $A\\in\\mathbb{M}_n(\\mathbb{C})$ be a matrix of order $n\\geq 2$. Let $p_A(x) = (x-\\lambda_1)\\cdots (x-\\lambda_n)$ be the characteristic polynomial of $A$ such that all $\\lambda_i$ are positive real numbers. Suppose that $A$ is a normal matrix. Prove that one can write $A=G^4$ for some self-adjoint matrix $G$. My thinking is that since $A$ is normal, by Principal Axis Theorem, we have $A=UDU^\\ast$, where $U$ is a unitary matrix and $D$ a diagonal matrix. However, I fail to see how to proceed. Could anyone help me out?",
"The most obvious answer everyone over the Internet is giving to this question is \"Because anime is produced much faster compared to manga, they need to put in fillers in order to slow down the anime series\". However, that shouldn't be the only reason. For example, consider One Piece. The show is going on for more than 500 episodes, and less than 10% are fillers. Comparing that to Naruto, the show has almost the same number of episodes (original and Shippuuden combined), but almost 50% of its episodes are fillers. Needless to say, the manga of Naruto is so far ahead that the anime won't be able to catch up even if they produce 100+ episodes without any fillers."
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Inaccurate reputation graphs - bug or as designed?
|
Trying to hide spam/offensive deletions on user profiles announces them
|
[
"Switching baselayers as user zooms in to map in OpenLayers?",
"How to render Entity Reference fields in the current language I am trying to render fields from an entity reference in a twig template but they are displaying in the default language instead of the selected one. My twig code: {% for location in node.field_locations %} <div class=\"home-location\"> <div class=\"wording\"> {{ location.entity.title.value }} <span>{{ location.entity.field_sub_title.value }}</span> </div> </div> {% endfor %}",
"I'm trying to test a page that has an input but really its a drop down list. The user enters text and then a dropdown appears based on what the user inputted. They are groups that are in the database. If I look for these elements before typing anything they dont exist but once I start typing they do exist. The problem is I cant just type the whole name and then press enter or return because an option has to be selected from the list. I can press arrow down to get the focus on the item from the list but then if I say enter it doesnt select, it sends that enter to the original element and nothing gets selected. I can find the select element: var ddList = driver.FindElement(By.CssSelector(\".ui-autocomplete-input\")); ddList.SendKeys(\"Admins\"); This is the first time the list appears in the html. It looks like this: <li class=\"ui-menu-item\" role=\"presentation\">",
"Finding the Public IP address in a shell script I can find my IP address using ifconfig or hostname -i command. But how do I find my Public IP? (I have a static public IP but I want to find it out using unix command)",
"Limit $\\lim_{n\\to \\infty} \\frac{1}{2n} \\log{2n\\choose n}$"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
I'm new to Math Induction, I don't know how it goes from $𝑘 + 1 = 3𝑥 + 5𝑦 + 1$ into $5𝑦 = 5𝑦 − 5 + 5.$ I'm trying to prove that: Any whole number of at least 8 cents can be obtained using coins of 3 and 5 cents Assume: There is a number $𝑘$ for which there are $𝑥$ and $𝑦$ such that $𝑘 = 3𝑥 + 5𝑦$ Here's my working: $𝑘 = 3𝑥 + 5𝑦$ Therefore $𝑘 + 1 = 3𝑥 + 5𝑦 + 1$ $5𝑦 = 5𝑦 − 5 + 5$ $5𝑦 = 5 𝑦 − 1 + 5$ $𝑘 + 1 = 3𝑥 + 5𝑦 + 1$ $𝑘 + 1 = 3𝑥 + 5(𝑦 − 1) + 5 + 1$ $𝑘 + 1 = 3𝑥 + 5(𝑦 − 1) + 6$ $𝑘 + 1 = 3(𝑥 + 2) + 5(𝑦 − 1)$ $𝒌 + 𝟏 = 𝟑𝒙' + 𝟓𝒚'$
|
I want to determine the set of natural numbers that can be expressed as the sum of some non-negative number of 3s and 5s. $$S=\{3k+5j∣k,j∈\mathbb{N}∪\{0\}\}$$ I want to check whether that would be: 0,3, 5, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, and so on. Meaning that it would include 0, 3, 5, 8. Then from 9 and on, every Natural Number. But how would I explain it as a set? or prove that these are the numbers in the set?
|
[
"Prove that $\\mathbb Z_{m}\\times\\mathbb Z_{n} \\cong \\mathbb Z_{mn}$ implies $\\gcd(m,n)=1$. Prove that $\\mathbb Z_{m}\\times\\mathbb Z_{n} \\cong \\mathbb Z_{mn}$ implies $\\gcd(m,n)=1$. This is the converse of the Chinese remainder theorem in abstract algebra. Any help would be appreciated. Thanks!",
"I know that $\\operatorname{Spec} \\mathbb{C}[x]$ can be identified with the set $\\mathbb{C}\\cup *$, where $*$ is a generic point via the correspondence $$ \\prod_{i}(x-a_i) \\leftrightarrow \\{a_i\\}_i , \\ \\ \\ \\ (0)\\leftrightarrow *. $$ This correspondence holds for any $\\operatorname{Spec} k[x]$ with algebraic closed field $k$. When $k$ is not algebraic closed, how should one understand $\\operatorname{Spec} k[x]$?",
"how to hard-bypass the input of a line driver with a switch?",
"So this has been an on-going saga the last few days, and I've already posted several related questions here, and I am feeling quite defeated. I have/had a beautiful 16\" cast iron dutch oven from Cabelas. I took it out for a test spin the other night (I had completed all seasoning steps that the Google Gods recommended). Then: I tried (and failed spectacularly) to cook a pork roast in it, but cooked it at way too hot a temperature and burned/charred/fused the animal fats/juices into the oven, whereby it basically baked into the cast iron (related question ) I tried cleaning/scrubbing it with coarse-grained salt -> did nothing Then I tried cleaning it with dishwashing liquid + salt -> did nothing Then I let the whole thing soak in a vat of a 50/50 mixture of water + white vinegar -> took all the tarry slude off, stripped some seasoning off (revealing bare iron), but in 80% of the burned/charred areas, still did nothing Then I went to town on it with a steel wool and salt and dishwashing liquid and was left with some smooth, properly seasoned surfaces, and some more areas stripped down to bare metal I decided to just re-season it. So I scrubbed it one last time (about 1 hour ago) with a steel wool and some water, got all the rust and remaining crud off (finally), and built a fire. I placed it on the hot coals of the fire and let it sit there for 15 mins. My intention (whether misled or not) was to burn off all the remaining water from when I had previously washed/scrubbed it, then let it cool off, then season it with oil, and then bake it for a few hours. So I just took the oven off the fire and opened the lid...and the entire inside is covered in rust. An hour ago there was none. When I put the oven into the fire 15 mins prior, there had been none (yes, I checked) This just came out of nowhere. I'm ready to give up, unless anyone can offer some concrete set of steps for me that will salvage this $100 rust bucket. How can I get rid of the rust and then re-season this before more rust sets in? Meh...",
"What makes a good entry level road bike? I've been riding a mountain bike for years, but I prefer to go longer distances on paved ground, so I think a road bike would be better. When I ask what is a good bike, I don't need brands or models - more like what components of the bike should I look for, and what should I avoid? Additionally, is it necessary to \"go big or don't go at all\" as far as spending - getting a real good quality road bike for $500 to a few thousand, or should I cheap out on a $100-200 road bike, as it is my first, then get a better one when I'm more experienced?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Help in Modular Arithmetic How do I simplify the following: $a^{b} \ \pmod {b}$ where $b$ is very large. For example: $2^{499} \pmod {999}$ How do I find the result without computing all? I don't want to use such a quantity of memory for storing the value of $2^{499}$. Is there any sort of property to find the result in a faster way?
|
Modular exponentiation by hand ($a^b\bmod c$) How do I efficiently compute $a^b\bmod c$: When $b$ is huge, for instance $5^{844325}\bmod 21$? When $b$ is less than $c$ but it would still be a lot of work to multiply $a$ by itself $b$ times, for instance $5^{69}\bmod 101$? When $(a,c)\ne1$, for instance $6^{103}\bmod 14$? Are there any other tricks for evaluating exponents in modular arithmetic? This is being asked in an effort to cut down on duplicates, see and .
|
[
"Function $f(z)$ such that $|f(z)| > |z|$ for every $z\\in\\mathbb{C}, 1/f(z)$",
"Rubik's Cube Combination Could anyone explain why the number of legal or reachable combinations of a $3\\times 3\\times 3$ Rubik's Cube is $1/12\\mbox{th}$ of the total. I understood the logic behind the total number of combinations: $8! \\cdot 2^{12} + 3^{12} \\cdot 12!$. What I am not able to understand is why do we divide this quantity by $2 \\cdot 3\\cdot 2$. I don't have any idea about parity or group/set theory. Is there another possible explanation for it?",
"Matlab filter electical spikes in accelerometric data",
"Suppose $f(x)$ and $g(x)$ are continuous function from $[0,1]\\rightarrow [0,1]$, and $f$ is monotone increasing, then how to prove the following inequality: $$\\int_{0}^{1}f(g(x))dx\\le\\int_{0}^{1}f(x)dx+\\int_{0}^{1}g(x)dx$$",
"Navigation bar overlapped by status bar"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Android: app crashes at onTaskCompleted after app is closed I am doing some asynchronous tasks with http to fetch some data. When I close the app in the middle of an asynchronous operation, I get an a NullPointerException error. This seems to be happening because the asynchronous task is being competed and onTaskCompleted is called; But the app is already closed. Does anyone know how to handle this? I'm running with Android Studio, android version 4.4.2. Galaxy S4. java.lang.NullPointerException at com.example.lu.seed_2.Tabs.Tab4$3.onTaskCompleted(Tab4.java:174) at com.example.lu.seed_2.ArticleAsync.onPostExecute(ArticleAsync.java:36) at com.example.lu.seed_2.ArticleAsync.onPostExecute(ArticleAsync.java:11) at android.os.AsyncTask.finish(AsyncTask.java:632) at android.os.AsyncTask.access$600(AsyncTask.java:177) at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:157) at android.app.ActivityThread.main(ActivityThread.java:5356) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081) at dalvik.system.NativeStart.main(Native Method) As requested, here is the onTaskComplete code articles = convertJsonToArticles(httpResult.getBody()); articleAdapter = new ArticleAdapter(getActivity().getApplicationContext(), articles); //<-- APP CRASHES HERE listView = (ListView) getActivity().findViewById(R.id.mobile_list4); listView.setAdapter(articleAdapter); listView.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) { Intent intent = new Intent(getActivity().getApplication(), WebViewActivity.class); intent.putExtra("_id", articles.get(i).getId()); startActivity(intent); } }); listView.setOnScrollListener(new AbsListView.OnScrollListener() { @Override public void onScrollStateChanged(AbsListView absListView, int scrollState) { } @Override public void onScroll(AbsListView absListView, int firstVisibleItem, int visibleItemCount, int totalItemCount) { int itemsLeftCount = totalItemCount - firstVisibleItem; if (itemsLeftCount > 8) { return; } if (isLoadingMore == true) { return; } loadMoreArticles(); } }); listView.addFooterView(footerView); showNotLoading(); v.refreshComplete();
|
What is a NullPointerException, and how do I fix it? What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?
|
[
"why can't i select two objects in edit mode? I am trying to make a face from two different meshes but can't perform the action",
"90s (or early 2000s) scifi (mini)series where a boy and old man chase a black guy in metal suit",
"Does a particle annihilate only with its antiparticle? If yes, why? Or to put the question another way - what is the result of a proton-positron collision, or an up quark-charm antiquark collision, etc.? As far as I know, annihilation happens only between particles of opposite charge and same mass, but perhaps I am wrong? And if the types of annihilation mentioned above cannot happen, what are the reasons?",
"Hogsmeade has a lot of individuals who live there, and it has the distinction of being the only non-muggle community in the UK. Are there any students at Hogwarts who live there during the summer? I ask because explicitly says that students must ride the train or not go to the school at all, which seems silly for someone who already lives at the destination. Many pure-blood families were outraged at the idea of their children using Muggle transport, which they claimed was unsafe, insanitary and demeaning; however, as the Ministry decreed that students either rode the train or did not attend school, the objections were swiftly silenced.",
"Is it acceptable to use \"Just wondering\" as a question? I often find myself writing sentences such as: \"I am wondering if the landlord replied to you yet?\" And I always end up removing the question mark and rephrasing the sentence. In speech it is easy to inflect such a sentence so as to infer that it is a question, but in reality \"I am wondering\" is a statement and I feel it should not have a question mark when written down. So is it acceptable to use \"I am wondering\" as a question?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
I assume implication is the operator that is most of the times used in mathematics, am I right? (i.e. whenever if/then construct is used) If yes, then I think it is known that it has some Merely that implication is true if premise is false. Which doesn't make sense in real world because I could say: if pigs can fly, then we can cure any illness. But this is not true in the way we understand if/then in real life, isn't it? Because we can't cure any illness so far. So my question is more philosophical in nature, if we agree that mathematics is using an operator implication which is problematic from philosophical point of view and doesn't very well align with the real world meaning of if/then, then doesn't this cause problems for mathematics when we try to apply some results of mathematics to real world? More particularly because the operator (implication) that was used in math may not be the one that reflects the one in real life? This means we can't use some results from math which relied on implication, in real life?
|
I studied propositional logic, and everyday I see applications of what I learned on the internet, in mathematical books and miscelaneous resources. One particular case is sentences in the form $a \rightarrow b$ , that is, material implications. While I fully understand the mathematical logic approach to the study of those kinds of formulas, sometimes I get confused about what someone ( using implication sentences in the ordinary language ) is trying to say. In ordinary language, I often see affirmations in the form of an implication. One example would be someone affirming that "the moon is made of cheese" $\rightarrow 2+2=4$. [ Kleene, Mathematical Logic ]. I perfectly understand that if we choose the interpretation that gives the antecedent as false ( and the consequent as true ) we get that the whole implication is also true, but I would like to understand EXACTLY what he is trying to say when he AFFIRMS a sentence in the form of an implication. Is he saying that under the commonly agreed interpretation of that sentence ( antecedent = false, consequent = true ), that implication becomes true? Another example, totally different, would be someone affirming that $x \in \mathbb{N} \rightarrow x \in \mathbb{N}$ or $x \in \mathbb{Z}_{<0}$. Is he now affirming the same kind of sentence or saying something totally different? When he affirms that sentence, is he saying that he finds the sentence to be a tautology? Why didn't he say that? Then, with these two examples we have an affirmation of the same kind of sentence (implication) meaning completely different things, in one case he affirms to say that under the commonly agreed interpretation of the sentence, it is true. In another case, he affirms to say that there's no interpretation that makes the sentence false. Am I missing something? There is really that ambiguity in ordinary language, when people are affirming sentences? Can't I just take some general instance of the affirmation of a sentence in the form $a \rightarrow b$ in ordinary language and know exactly what he's trying to say, regardless of the propositions he chooses the substitute $a$ and $b$ for? Thanks a bunch.
|
[
"Data I want operator users on this machine to mount their own cifs shares The sudoers file already contains the /bin/mount -t cifs //*/* /media/* -o username=* command for all operators I want the users to mount a cifs share through a script typing the password only once, not twice. The sudo password and the cifs password are identical. What I already have This script works: #!/bin/bash sudo 'mount -t cifs //192.168.1.1/home /media/$USER/home -o username=$USER' ...but it requires the users to type the same password twice! Once for sudo Once for the mount itself This would also work: #!/bin/bash echo -n Password: read -s szPassword echo $szPassword | sudo -S sh -c 'echo $szPassword | mount -t cifs //192.168.1.1/home /media/$USER/home -o username=$USER' ...but this would require me to allow all operator users to be able to sudo sh (major security problem) Question How to mount a cifs share in bash¹ without putting sh in the sudoers file nor creating a permanent/temporary file??? Note 1: no python, perl, C, Go, ... please? Note 2: I know I can just remove the password through the sudoers file, but I'm trying to tighten security, not loosen it, without giving up convenience...",
"My machine has a SSD (fairly small) and a Hard disk (large). I want to have windows and a couple of programs on the SSD but I want to have the documents folders (such as my documents and my downloads) on the HD. I also want the default install directory pointing at the larger HD. Can anyone advise or point me to a relevent guide? Thanks.",
"How to make IntelliJ IDEA recognise code created by macros?",
"Getting error message when trying to start a virtual machine I have been using VMWare on Windows for a long time. But after a long wait, I moved to VirtualBox on Ubuntu 11.10. I installed Ubuntu, 32 Bit, installed all available updates and installed Virtual Box. When I try to create a new Windows installation inside VirtualBox, I got the following error messages. VirtualBox - Error Failed to open a session for the virtual machine Windows XP. The virtual machine '**Windows XP**' has terminated unexpectedly during startup with exit code 1. Details Result Code: NS_ERROR_FAILURE (0x80004005) Component: Machine Interface: IMachine {5eaa9319-62fc-4b0a-843c-0cb1940f8a91} 2nd error dialogue Virtualbox - Error in suplibOsinit Kernal driver not installed (rc--1908) Please install the virtualbox-dkmbs package and execute 'modprobe vboxdrv' as root. I have already tried reinstalling VirtualBox. Google result seem to indicate the the problem happens due to Kernel updates. Is there anyway I can get this working? I need this for malware analysis and if VirtualBox is going to crash on me all the time, then I won't be able to use Ubuntu for work. Output to dpkg -l | grep virtual server rc virtualbox 4.1.2-dfsg-1ubuntu1 x86 virtualization solution - base binaries rc virtualbox-qt 4.1.2-dfsg-1ubuntu1 x86 virtualization solution - Qt based user interface cute 'modprobe vboxdrv' as root.<p>",
"Simple example of non-arithmetic ring (non-distributive ideal lattice) Can anyone provide a simple concrete example of a non-arithmetic commutative and unitary ring (i.e., a commutative and unitary ring in which the lattice of ideals is non-distributive)?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Vertical space above title of chapters I have download a thesis template from and I would like to vary the vertical space (as in attached image) above the title of chapters. What modifications should I make in file in order to achieve the desired. Thanks
|
Space before chapters and contents I am using LaTeX to write my dissertation, and I have realised that on the table of contents and on every chapter page, LaTeX leaves a lot of empty space. What I mean is that lets say in the page where chapter 1 begins, from the top of the page until the chapter title there is much more vertical space than on any other page. The same goes with chapter 2 etc... and for contents page as well. Can anybody help me to remove that space? Is there any mistake in my code or something like that? Is this a default of LaTeX? the preamble is \documentclass[12pt,twoside]{report} \pagestyle{plain} \usepackage{a4paper} \usepackage{setspace} \doublespacing \usepackage{amssymb} \usepackage{amsmath} I've tried the methods below, but none of them work properly.
|
[
"If you know the Index, Value or Text. also if you don't have an ID for a direct reference. , and are all helpful answers. Example markup <div class=\"selDiv\"> <select class=\"opts\"> <option selected value=\"DEFAULT\">Default</option> <option value=\"SEL1\">Selection 1</option> <option value=\"SEL2\">Selection 2</option> </select> </div>",
"How to backup symbolic link paths?",
"Explicit example of a compact manifold of dimension $>2$ with strictly negative sectional curvature I am looking for examples of compact manifold of dimension $>2$ with strictly negative sectional curvature (for dimension 2 it is well-known). Can anybody please help?",
"How do I disable this: after taking screenshot?",
"Definition of Statistic I keep seeing conflicting definitions of a statistic. Is a statistic a random variable such that it is a function of the random variables of a random sample? Or is it the value of the function of the random sample, after each random variable of the random sample has taken on a specific value? $$(1) \\ S=f(X_1,X_2...X_n)$$ $$(2) \\ s=f(x_1,x_2...x_n)$$ I haven't been able to get any clarification for this and I've seen the term statistic describe both situations"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Anybody can participate in chat by just joining 20 sites? I just noticed who is able to participate in chat despite not having any more than 1 reputation point on any site. Unless there's a hidden profile involved here, it looks like just joining 20 sites is enough to get chat privileges. This specific user isn't causing any trouble, he/she is perfectly fine, I'm concerned that this rep totaling behavior can be used to get around the necessity of amassing some reputation before joining chat. Is this intended? If rep summation should be usable to gain entry to chat but this strategy shouldn't, the algorithm could subtract one from every profile before considering it; that way, only earned points would count. There would probably have to be the extra complication of checking if any profile owned by the user has 20 points, otherwise one would need to get 21 points.
|
I was able to post in chat with less than 20 rep by joining 20 sites I joined 20 other sites (out of the many) and even with 1 rep was able to post in any of the chatrooms. For example: In ELL, I have just 1 rep and have posted messages in its chat. ell.stackexchange.com/users/18923/lamart This seems like a bug because I should have needed 20 rep to post. . EDIT: From , I got the idea to make this edit. To reproduce this bug/error: Create a new SE account. Use it to make an account here. You will get 1 default rep. Choose a random SE site and use this account to get 1 rep on that random site. Repeat the above step 20 times. Now you have 1 rep on 20 network sites but the net SE rep is 20. Go to the ELL chat and ping me. (important step) From my comment: I have now got 40 rep since people voted this question up. Initially I had net 20 rep gained by creating 20 accounts on 20 different SE sites. Those default 1rep added up to get me to 20rep and I was able to chat. The link says one needs 20 rep in any of the SE site to chat in "all the other" category chatrooms..... but I did not have 20 rep on ELL at that moment.
|
[
"dpkg: error: dpkg status database is locked by another process",
"I had to take ownership of the special folder C:\\Program Files\\WindowsApps to fix . The issue is now resolved, so I'd like to reset the permissions to the way they were before I took ownership of the folder. I reverted NT SERVICE\\TrustedInstaller to the owner and removed my account's permission entries: But I still have full control of the folder and can browse the folder in Explorer without getting the usual warning that I would have to take ownership: Is it possible to restore the default permissions of this folder?",
"How to install the Boot-Repair tool in an Ubuntu live disc? When the bootloader (GRUB) is broken, I cannot access neither Ubuntu nor Windows. I heard that an easy solution to fix this is to use the Boot-Repair tool from an Ubuntu liveCD (or liveUSB). What are the steps to do this?",
"Just beginning with photography. Consider this image: (This photo was taken by Harold \"Doc\" Edgerton in 1964 using his Rapatronic camera.) I am looking for a camera that can capture such an image. I am not looking for more fps. less fps is fine, but it must be able to capture such an instance. What features should I look in such a camera? How fast should be the shutter speed? What other things I should look for?",
"Quadratic Formula in Complex Variables Let $a$, $b$, and $c$ be complex numbers with $a\\neq0$. Show that the solutions of $az^2+bz+c=0$ are $z_1,z_2=\\frac{-b\\pm\\sqrt{b^2-4ac}}{2a}$, just as they are in the case when $a$, $b$, and $c$ are real numbers."
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
iOS: Compare two less or equal NSDates
|
iOS: Compare two dates
|
[
"Use induction to prove the following: $1! + 2! + .... + n! \\le (n + 1)!$",
"Formula between wire size and current Is there a mathematical formula between wire size, current, temperature and wire type(Or resistance)?",
"After I installed Ubuntu 13.04, I can't mount my NTFS partition. Error mounting /dev/sda5 at /media/mrxfly/xFLyDiskData: Command-line `mount -t \"ntfs\" -o \"uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177\" \"/dev/sda5\" \"/media/mrxfly/xFLyDiskData\"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sda5': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.",
"How can it be that the beginning universe had a high temperature and a low entropy at the same time? The Big Bang theory assumes that our universe started from a very/infinitely dense and extremely/infinitely hot state. But on the other side, it is often claimed that our universe must have been started in a state with very low or even zero entropy. Now the third law of thermodynamic states that if the entropy of a system approaches a minimum, it's temperature approaches absolut zero. So how can it be that the beginning universe had a high temperature and a low entropy at the same time? Wouldn't such a state be in contradiction to the third law of thermodynamics?",
"how to pass value like 100,102,103 to view params I am trying to zoom plot numbers.Plot numbers like 1 10-12 13/P road 20(A) 100&102 and etc.I am able to zoom to all combination plot numbers except 1,2,3.when I pass such value its trowing error: 1 feature types requested, but found 2 view params specified geoserver sql view is: select * from plotboundary where nmindar='%nmindar%' and plno='%plno%' default values and validation are Name | Default Value | validation nmidar| Hanagawadi I A | ^[\\w\\d\\s]+$ plno | 100,102&103 | ^[ A-Za-z0-9_ *@.\\/#&+-\\,()-_]*$ ajax function: $.ajax({ url: 'http://XX.168.1.XX:8089/geoserver/XX/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=XX:vwplot&maxFeatures=5000&outputFormat=text/javascript', contentType: 'application/json', dataType: 'jsonp', jsonpCallback: \"parseResponse\", data: { viewparams: \"nmindar:\" + nmindar + \";plno:\" + plno } Can any one tell me how to pass value to viewparams in geoserver, value includes comma. For example as mentioned above \"100,102&103\" is a single value(plot number).Here comma is not a separator."
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Disable Chrome suggesting that I search on "How I Met Your Mother" wiki If I type a question into Chrome search that begins with the word "How", it suggests that I search in the How I Met Your Mother wiki: It's been doing this for years. I have been to that wiki on purpose less than 5 times in the last two years, and none of those times in 2015. Why does it do this? How do I turn it off? I am using Chrome Version 42.0.2311.152 m It's probably relevant that these times from many years ago do not even appear in the history anymore:
|
Google Chrome automatically adding websites to my list of search engines? I have noticed that certain websites (e.g. Stack Exchange sites, Dell, etc.) are automatically added to my list of search engines in Google Chrome. They even add a keyboard shortcut to their entry. Here are some examples: Dell: Keyboard -> Dell.com Stack Exchange Web masters: Keyboard -> webmasters.stackexchange.com Reuters: Keyboard -> reuters.com Q1: Is this the default behavior in Chrome? (to let websites add themselves to the list of search engines?) Q2: Is it possible to disable this behavior in Chrome? Note: I'm running the latest version of Chrome: 11.0.696.57 on Windows 7 64, and I only have one extension installed: Google URL shortener.
|
[
"How do I play a YouTube video in the background on my iPad? I like to 'listen' to YouTube video in the background while I am surfing on my desktop. However, I cannot do this on the iPad as, as soon as I switch from YouTube video to the browser, the video pauses. Is there a solution for this either in the form of an app or a website?",
"Consider this example from the Rogue class traits: Trained Skills: Stealth and Thievery. From the class skills list below, choose four more trained skills at 1st level. Class Skills: Acrobatics (Dex), Athletics (Str), Bluff (Cha), Dungeoneering (Wis), Insight (Wis), Intimidate (Cha), Perception (Wis), Stealth (Dex), Streetwise (Cha), Thievery (Dex) The Rogue is trained in Stealth and Thievery. However, they're also included in the Class Skills section, and it invites you to: 'choose four more trained skills' from that list. This seems to be similar for all the classes. So can you train Stealth and Thievery as a choice as well have it initially trained or the equivalent for other classes?",
"How do I change the extension of multiple files? I would like to change a file extension from *.txt to *.text. I tried using the basename command, but I'm having trouble on changing more than one file. Here's my code: files=`ls -1 *.txt` for x in $files do mv $x \"`basename $files .txt`.text\" done I'm getting this error: basename: too many arguments Try basename --help' for more information",
"\"An operator is hermitian\". Implications? Alastair Rae states that there are 4 postulates of Quantum Mechanics in his text on the subject matter. The first part of his second postulate can be stated as: Every dynamical variable may be represented by a Hermitian operator whose eigenvalues represent the result of carrying out a measurement of the value of the dynamical variable... My question is: just how much can we deduce from saying that the some of the operators involved in Quantum Mechanics are Hermitian? When I use the word Hermitian, I am referring to the property that $A=A^+$ where $A$ is an operator and $A^+$ is the adjoint of $A$. Does an operator being Hermitian automatically imply that there will exist eigenfunctions and eigenvalues corresponding to this operator? Does being Hermitian imply that, should there exist eigenfunctions corresponding to this operator, they will form a complete and orthonormal set? That any wavefunction can be expanded in terms of these eigenfunction? Just how much is hidden in the word \"Hermitian\"?",
"I have a shapefile with contours and their heights. Is it possible to make a DEM from contours in QGIS without using GRASS? I found but the answer is for ArcGIS Desktop."
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
In order to provide safe browsing, I want to set global proxy to route all http/https requests from any browser to my proxy server on both WiFi and 2G/3G networks for non rooted Android devices with OS version 2.2 and above. After categorization, proxy server will send response to browsers. I have seen so many posts in SO also, but nobody has explained for Mobile networks(2G/3G). Please inform whether there is a possibility or not at all? If yes, please suggest a way. If anybody have idea, please share your thoughts.Thanks in advance. Thanks, Gopi.
|
How to redirect entire phone traffic (including all apps) to a proxy (with out rooting the phone) We are developing a parental control app for Android, in that we have requirement to capture all out going traffic from Android phone for categorization. Is there a way to achieve this in Android with out rooting the phone. Thanks, Gopi.
|
[
"How do you add more than one phone number on iMessage? My sisters and I all have iPhones under the same account. I also have an iPad under the same account. I am trying to get the iMessage on my iPad compatible with my phone number, not email address. The only phone number choice to choose from is my sister's iPhone number. How can I choose my phone number for iMessage on my iPad?",
"\"404. That’s an error.\" when viewing from Google cache My site is getting 404. That’s an error. message when I click on cached from Google search results. This is the error message from Google: That’s an error. The requested URL /search?q=cache:8kxLAgFrhZQJ:www.mysite.com.....&cd=8&hl=en&ct=clnk&gl=uk was not found on this server. That’s all we know. What I did before I was getting this error is that about 10 days ago, I moved my hosting from Ixwebhosting to Gearhost (cloud based). I also added 301 redirect from non www to www. I have no idea why I am getting this error. Please advise what might be the reason if there is a solution for it. All of my pages are indexed by Google though.",
"What is the best way to explain how to choose between \"its\" and \"it's\"? Probably one of the most frequent grammar mistakes in the English language is: The dog sat on it's mat. Since spelling checkers don't catch it, and it is even logical, since you would correctly write: The dog sat on Fluffy's mat. What is the best way to explain to a learner of English how to choose between it's and its?",
"Prevent users from submitting a form by hitting Enter",
"Expanding code in etoolbox's \\ifblank I am trying to use the etoolbox \\ifblank (and its cousin \\notblank), but I want to expand any macros in its test statement. For example: \\documentclass{article} \\usepackage{etoolbox} \\begin{document} \\newtoggle{longformt} \\newcommand{\\longform}{\\toggletrue{longformt}} \\newcommand{\\iflong}[2]{\\iftoggle{longformt}{#1}{#2}} \\newcommand{\\quoteifnotblank}[1]{% \\notblank{#1}{``#1''}{}% } % Try commenting this line. \\longform This should be completely blank if the form is short: \\quoteifnotblank{\\iflong{Some long quoted text}{}} \\end{document} The problem here is that \\notblank sees its argument of \\iflong{Some long quoted text}{} as a string, not as code to be expanded, so the quotes always appear. How do I expand arguments before they are passed to \\notblank?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Many years (20+?) ago in Analog SF magazine I read a short story where a culture discovered interstellar travel shortly after the start of their iron age. They could construct air-tight ships and travel essentially as far as their oxygen supply lasted. Before they met us, the most technologically advanced culture they came across had discovered balloon flight. Needless to say they thought our jets were merely improved balloons.
|
I read a short story (I think, but it might have been a novel), where most races discover a very easy way to travel faster than light at a certain point in their technological development. What I remember: The guys in wooden ships bounced around subjugating the people without FTL travel. Earth had never figured out the FTL, and so had poured its effort in a different path, achieving present day technology. The aliens were freaking out about handing the humans FTL travel. The story was told from the point of view of the aliens. I read it in the last 10 years, but there is no telling how old it actually was, although I do remember them mentioning F-18s or F-14s.
|
[
"plist or sqlite",
"Shortcut in Windows 7 to switch between same application's windows, like Cmd + ` in OS X Is there a shortcut in Windows 7 to switch between windows in a given application only? I very much like this feature in OS X; what is its equivalent in Windows?",
"Opening files from version 2.8 in 2.79",
"Upvoting a downvoted answer will do +2 upvote? I have first downvoted an answer. Then, I decided to leave it the way it was before, meaning to undo my downvote just like it never existed, so I upvote to remove my downvote. Suprise! SO seems to consider it as two upvotes! Let's say I have an answer with -3, then I decide to downvote it making it -4. After deeper thoughts, I prefer to remove my downvote to let it the way it was before I downvoted, meaning -3, but SO makes it -2 automatically! Wouldn't it be supposed -3, and not -2? If someone else would have upvoted, it would have made it an upvote +1, not a +2! Am I missing something here? In fact, is there a way to tell SO that I only wish to undo my downvote, and not upvote the answer? I may understand why it does behave this way. I only wish to undo my downvote, though.",
"Limit of a Piecewise Function defined on Rationals and Irrationals"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Where to ask questions about programming tools recommendations? Questions like are getting closed as being off topic or non-constructive or for other ridiculous reasons. These questions are often well defined and looking for a tool that solves one specialized problem for which such a tool is difficult to find by search. It always pisses me off (and I bet others too), because it is not "constructive" only in the Stack Overflow terminology because the community doesn't wanna deal with some questions leading to flames or possibilities of many tools fitting the description. I can see the reasons why these question are not desired on SO, but I'd expect the Stack Exchange network to create a site focused on these questions as as far as I know, it's currently impossible to get these questions answered elsewhere than IRC/twitter/etc. which is ridiculous considering the SE network already exists and the only barrier is social, not technical or even sensible.
|
Give each site a parallel site for polling, recommendations and subjective-ish stuff Stuff like polls, recommendations based on subjective constraints, puzzles, webcomics etc. do not belong on the serious main SE sites, where professionals should be considered at work and having just a few spare minutes ("code's compiling") to answer questions, so they should not be distracted by such things. However, I'd also like to have a home for these things still using the SE engine. For the reason I mentioned before, this needs to be a separate place though. Let's call it four.[sitename-here].com.
|
[
"Remove linux version 3.19.31",
"Edit file based on existence of a string I have an input file, say, file1, which appears as follows: WRITE=2 START=1 SMEAR=0 MIN=6 MAX=100 My problem is to search for the string SMEAR and if the string exists replace the entire line with SMEAR=-5. However, if the SMEAR does not exist, then I need to insert a new line SMEAR=-5. Ultimately the line SMEAR=-5 should appear only once. I can replace the string using sed: sed -i '/SMEAR/c\\SMEAR=-5' file1 Or I can insert the string as a new line sed -i '10i SMEAR=-5' file1 But how can I combine them based on the existence of the string in the file? EDIT: Also it would be helpful if I can pass the value of SMEAR as a variable.",
"I have a list with a people column called AssignedTo. I'm making a rest call: .../_api/web/Lists/GetByTitle('listname')/Items?$expand=AssignedTo&$select=*,AssignedTo/Title Which is successfully returning the name of the person the item was assigned to. I'm trying to get other user information like email or their user id. Most tutorials online show how to expand ID and Title (Name) and I found a list of these properties that can be expanded: ID FirstName LastName Title Department SipAddress And those all work. But I can't find the email and or the login ID. I've tried $select=AssignedTo/LoginName and several other variations on that, but they all return that the field is not valid. I was hoping $select=AssignedTo/* would expand all the fields, but that doesn't rework either. Anyone know if the above are the only fields that can be expanded off a people column?",
"I accidentally opened too many menus (or windows) and I want to reset them to default. It is really annoying, and effecting my animation. Thanks",
"In an electromagnetic theory class, my professor introduced the concept of \"action at a distance in physics\". He said that: If two charges are at some very large distance, and if any one of the charge moves, then the force associated with the charges changes instantaneously. But according to Einstein, no information can travel faster than the speed of light. So photons (the information carriers in electromagnetic force) cannot instantaneously deliver information. So that we associate a field with the two charges and if any charge moves, there is a deformation in that field and this deformation travels with the speed of light and conveys the information. If the field deformation information cannot travel more than the speed of light, how does the force instantaneously change at very large distances?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
I am a US Citizen planning on traveling to Germany to visit some relatives in the military. I don't know what documents I need to have, and the last thing I want to do is show up at the airport (or worse, get to the other country) and find out I forgot something. So what documents do I need to travel from the US?
|
I'm a US passport holder. What documents do I need when I fly from the U.S. to Germany? Assume I'm going for a few weeks of vacation. Obviously I need my passport. What about a "visa"? Anything else?
|
[
"For some reason, the profile-hover view thingy is not loading at all(on Stackoverflow). I initially thought that it might be because of , but its been closed with the status, no-repro. Also, this is now persisting for the past 1 hour for me. I tried to clear the cache and stuffs but nothing seems to be working, as the hover view is still not loading. Is this some sort of or an issue with the browser? I'm using Firefox 25.0.1 on Win7 Pro(x86) machine. Here is a snapshot of it.",
"Difference between administrative and user mode of MiKTeX",
"How many ways can the average of n dice be a?",
"UK Visa Refusal: Provenance of funds/parking",
"I'm trying to use the eVis plugin in QGIS 3.16.3 to display geotagged photos (as I have in the past without difficulty), but the plugin has totally disappeared. Not only can't I find it as an icon or under the Database menu, but it doesn't appear in the list of plugins (and yes, I am looking in the complete list of all plugins!). Has it been moved somewhere I haven't come across or is it a bug?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Toilet running 24/7 I changed the fill valve with water sensor valve and the water is still running. The water does not exceed normal volume. Why is this?
|
What could cause a toilet to leave the flapper up and keep running? I have an American Standard toilet I installed last year. I don't know much about plumbing, but I was able to install this toilet. It seems to function okay, except for what I think is a mechanical problem. Sometimes when the toilet is flushed, the flapper doesn't close and water keeps running. The handle feels like it's slightly stuck in the up position. I looked inside the tank once when it was doing this, and the chain attached to the handle was slack. I don't understand why the flapper isn't closing. I've tried putting more slack in the chain and loosening the plastic nut that holds the handle on the toilet, but it doesn't seem to be helping. How can I fix this?
|
[
"Question list on profile page not vertically aligned",
"Given a convergent sequence $x_{n}$ and bounded sequence $y_{n}$ I need to prove that $\\limsup (x_{n}+y_{n})=\\lim x_{n}+\\limsup y_{n}$, when $n$ tends to $\\infty$. I chose $z_{n}=x_{n}+y_{n}$, we know that $z_{n}$ is bounded as being sum of two bounded sequences, so from the Bolzano-Weierstrass Theorem, we know that there is a subsequence of $z_{n}$, let's call it $z_{n_{k}}$, that converges to $\\limsup (x_{n}+y_{n})$. $y_{n_{k}}$ is bounded as well, so there is a convergent subsequence $y_{n_{k_{j}}}$. All this gives me that $\\limsup (x_{n}+y_{n})\\leq \\lim x_{n}+\\limsup y_{n}$, What can I do for getting the other inequality? Thank you and Good evening.",
"Should I defragment my SSD?",
"I've been reading a lot about the oxidative dissimilation etc, and often I see different sources use NADH and NADH2 in the same reactions. One source uses NADH and another uses NADH2 in the exact same way. Is there a difference or is it just a different name for the same substance?",
"How do I change the default settings of export operators?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
How to format a Double coming from a Object in Java? I want to format a Double obtained from an Object so it only displays three digits after the decimal point. Here's the current code: Three a = Data.get(index); // Get the y-axis acceleration value double b = a.getY(); String accelerationOutUnfiltered = Double.toString(b); Data[0] = accelerationOutUnfiltered; Note: I am doing this in Android, and when I use String.format("%.3f", y) this doesn't work and it throws me a error in Android Studio. Currently the above code works but it displays 15 digits after the decimal point. I have tried several forms, but they all have failed. Please help. Thanks :)
|
How to round a number to n decimal places in Java What I would like is a method to convert a double to a string which rounds using the half-up method - i.e. if the decimal to be rounded is 5, it always rounds up to the next number. This is the standard method of rounding most people expect in most situations. I also would like only significant digits to be displayed - i.e. there should not be any trailing zeroes. I know one method of doing this is to use the String.format method: String.format("%.5g%n", 0.912385); returns: 0.91239 which is great, however it always displays numbers with 5 decimal places even if they are not significant: String.format("%.5g%n", 0.912300); returns: 0.91230 Another method is to use the DecimalFormatter: DecimalFormat df = new DecimalFormat("#.#####"); df.format(0.912385); returns: 0.91238 However as you can see this uses half-even rounding. That is it will round down if the previous digit is even. What I'd like is this: 0.912385 -> 0.91239 0.912300 -> 0.9123 What is the best way to achieve this in Java?
|
[
"How to achieve this smudge effect in photoshop? I came across this photo by Jacob Sutton and wanted to know if someone knew how to get this effect in photoshop? (source: )",
"Present perfect for past action with present effect If I seem tired, can I say: \"I haven't slept last night\"? If not, why have I been told that we use present perfect for actions that have present effects?",
"Let $X$ be a beta distributed variable with parameters $a$, $b$. Let $Y$ be a beta distributed variable with parameters $c$, $d$. Let $Z = \\max(X, Y)$. Does anybody know of a fast way to compute the mean and variance of $Z$ given $(a, b, c, d)$? $X$, $Y$ don't necessarily need to have beta distributions, but they should be similar -- in $[0, 1]$. What I really want to find is a way to quickly approximate the distribution of the sample max of a bunch of random variables. Let $Z = \\max(\\{X_1, X_2,\\dots , X_n\\})$. If I know parameters (not necessarily beta-distribution) for $X_1, X_2,\\dots, X_n$, can I quickly compute a set of parameters (same distribution as $X_i$) to form a distribution that closely approximates $Z$? EDIT: To clarify, the purpose of this has to do with programming AI for board games. If we are evaluating a position in a chess game and we determine one move leads to a 60% chance of winning while all others have a 20% chance of winning, then we value the position as a 60% win. This is the minimax algorithm... However, what I'm curious about is whether this can be improved upon. In the simple case, we approximate: $$ \\mu_c = \\max(\\{\\mu_1, \\mu_2,\\dots, \\mu_n\\}) $$ where $\\mu_c$ is the expectation from the current position and $\\mu_i$ is the expectation from each of the sub-trees. It seems like we should be able to do better than this. Can we find a function f that replaces max and closely approximates parameters for the distribution of the sample maximum? $$ (\\mu_c, \\sigma_c) = f\\left(\\{(\\mu_1,\\sigma_1), (\\mu_2,\\sigma_2), \\dots, (\\mu_n, \\sigma_n)\\}\\right) $$ In this case, we still want $\\mu_i$ to be the expectation from each of the nodes. However, $\\sigma_i$ does not necessarily need to be variance/standard deviation; just a parameter that represents uncertainty. Just as: $$ \\max(\\{a, b, c\\}) = \\max\\left(\\{\\max(\\{a, b\\}), c\\}\\right) $$ We should expect: $$ f\\left(\\{a, b, c\\}\\right) \\approx f\\left(\\{f(\\{a, b\\}), c\\}\\right) $$ So $f$ does not necessarily need to take parameters for more than two nodes. One thing, however, is that $f$ should be relatively fast to compute. If the integrals must be calculated, I think doing double exponential integration might work well, but I'm not sure --",
"Bash terminal not wrapping text correctly I am using the gnome-terminal with bash, and when I have a command that should go over the line, it just stays on the same line. So instead of: echo \"abcdefghijklmnopqrstuvwxyz\" I would get opqrstuvwxyz\"\"abcdefghijklmn Or something similar to that. However, if I press enter the command will still work. I believe it has something to do with my PS1 variable, but I don't know what is wrong with it. Here it is: export PS1='\\e[1;35m[\\u:\\w]\\$\\e[0;35m '",
"Posting images in chat using drag and drop I think it will be a good idea if there is a drag and drop image posting in chat. User needs to follow many steps to upload an image using upload button."
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
When can the relative pronoun be omitted? This is not very clear for me. I don't understand the rules.
|
"For someone used to the tiny creatures we get in England it was something of a shock." I think, in this sentence, relative pronouns before some words have been omitted. I know rules of omitting relative pronouns, but in this case I have failed to understand before which words relative pronouns can be placed to understand the sentence perfectly, which has been stated above. Please, explain the rules of omitting relative pronouns with the help of the sentence stated above, so that I can be able to understand this type of sentences easily. You can also use other sentences to explain this fact clearly. Thanks to everyone.
|
[
"How can I watch Amazon Prime videos using Firefox on Ubuntu 16.04? How can I watch Amazon Prime videos using Firefox on Ubuntu 16.04? Currently Firefox version is 48.0. When I attempt to watch a video, I get the following Digital Rights Error message: Your web browser is missing a digital rights component. In your web browser’s address bar, type about:addons, press Enter, and then on the left, click Plugins. For the Widevine Content Decryption Module, select Always Activate, and then refresh the video’s page and try watching the video. If the video doesn’t play, go back to Plugins, click the gear icon at the top of the page, and then click Check for Updates. When the plugins have updated, refresh the video’s page, and then try watching the video. I didn't find Widevine Content Decryption Module. I searched for a solution, but it didn't work... One solution I found was to sudo apt-get install flashplugin-installer and then do the following: sudo apt-add-repository ppa:flexiondotorg/hal-flash sudo apt-get update && sudo apt-get install libhal1-flash However, it didn't work and I still got the same Digital Rights Error message. I am able to watch Amazon Prime videos using Google Chrome, but not with Firefox. I want to know if it's possible on Firefox on Ubuntu 16.04.",
"18.04.01 Not available for server",
"Words for \"a bit sad\" and \"a bit happy\"?",
"I am extremely poor in solving a problem quickly, which leaves me doing badly in olympiads and other contests. But, if I just don’t give up on a problem, no matter how much time it takes, I usually end up solving it. To have a future in mathematics or physics, is it necessary for me to excel at contests, because these days children excelling at contests have an advantage over those who don’t (not complete advantage, but advantage nonetheless)?",
"I have seen many softwares such as Update Manager and Synaptic Package Manager, they wait if some other program is using the /var/lib/dpkg/lock and is locked. How can we do this through the Terminal? I saw apt-get's manual but didn't find anything useful."
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
How can I get two value per get request from a List<>, For example, I have a Person List<> with six Person Ordered by ID in that List<> now in every get request using JQuery ajax() I want to get only two item from the list<>, first request will return Person with ID 1 & 2, second request will return Person with ID 3 & 4, and so forth. I've tried public IEnumerable<PersonViewModel> GetAllStudents() { IEnumerable<Person> dbPersons = _repo.getPersons().OrderBy(s => s.ID).Take(2); List<PersonViewModel> persons = new List<PersonViewModel>(); foreach(var p in dbPersons) { persons.Add(MapDbPieToPersonViewModel(p)); } return persons; } But this only return first two item.
|
What is the most preferred and easiest way to do pagination in ASP.NET MVC? I.e. what is the easiest way to break up a list into several browsable pages. As an example lets say I get a list of elements from a database/gateway/repository like this: public ActionResult ListMyItems() { List<Item> list = ItemDB.GetListOfItems(); ViewData["ItemList"] = list; return View(); } For simplicity's sake I'd like to specify just a page number for my action as parameter. Like this: public ActionResult ListMyItems(int page) { //... }
|
[
"A friend of mine misplaced his passport while staying in Jeju island. Normally I would advise him to just travel to Seoul, get an emergency passport from his embassy and fly back home without issues, but I know that Jeju island has a special immigration regime. Are there any immigration checks on the way from Jeju island to Seoul? If not, can one travel that route without a passport?",
"This is maybe a duplicate like , but the error still appears. When I try to click \"mark as duplicate\" a HTTP 404 error occur. I'm using Firefox 16.0.2 with Firebug on Mac OS X 10.5.8",
"Allow more than one @name notification per comment Now this is probably a surprise to many since I always see thousands of comments like : @Sarfraz, @balpha just told you they did in the first comment he wrote. Also, allowing only one Stack Overflow user to be logged in per IP address would be problematic for networks with shared IPs. What's surprising is that apparently the notification will trigger only for Sarfraz and not for balpha. As you can see from the : Only one person can be replied to at a time in a comment. The first one in the string wins. I propose to increase the limit to let's say 3 or 5 people; it won't hurt (never seen that feature being abused) and especially many people believe it already works that way.",
"Order of \"not\" with infinitive",
"Comparison between integrals Let's say - $F(x) > G(x)$ for all $x$ in $E$. So is it true that ? $$\\int F(x)\\,dx > \\int G(x)\\,dx$$ or I can use this statement only when the two functions are non-negative functions. Thanks!"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Solaris legacy container free? As a dev shop we have a number of ancient ultrasparc systems running Solaris 8 and 9 which we use as build hosts. I'm wondering what it takes to consolidate these machines as legacy containers onto say a used T5140 running Solaris 11. As long as I already have the Solaris 8 and 9 systems, are there any additional license cost for the legacy container functionality? Can I still run Solaris 11 for free, or will such a setup count as "production" use?
|
Can you help me with my software licensing issue? This is a about Licensing. Questions on licensing are off-topic on Server Fault. If your question has been closed as a duplicate of this question, then this is because we want to help you understand why licence questions are off topic rather than just telling you "it just is". In all likelihood, this question will not address your question directly, it was not meant to. I have a question regarding software licensing. Can the Server Fault community please help with the following: How many licenses do I need? Is this licensing configuration valid? What CALs do I need to be properly licensed? Can I run this product in a virtual environment? Can I downgrade this product to an earlier version? Am I entitled to feature X with license Y?
|
[
"Generally accepted root mean square (RMS) error for rectifying topographic maps This is a generic inquiry on the common practice/standard for determining the acceptable values of RMS when georeferencing topographic maps. Is there an absolute value? Some literature suggests that it should be \"less than or equal to 1/2 of the side of a cell which make up the total resolution of the image.\"",
"Food in the Star Wars Universe?",
"Money/Assets/Property that is earned through unethical sources is called ? Money that is earned through bad sources like corrupted politics, corrupted business, ransom money, stolen or theft money. What is such money called? Is it bad money, black money. What is one particular name for it?",
"All rounds of AES (and Rijndael) have a MixColumns step, save the last round which omits it. DES has a similar feature where the last round differs slightly. The rationale, if I recall correctly, was to \"make the cipher appear similar in reverse as it does in the forward direction.\" Why does this make AES$^{-1}$ look similar to AES? And how does this help in implementing the block cipher?",
"Privacy leak in permalink? Update (Jan 8, 2019) This is now 8 years old, but still getting occasional upvotes/attention, so I thought it's worth giving a summary of the current state. Despite originally being , over the last decade some changes have made the privacy implications much clearer. You now click "share" instead of "link", and the pop-up is very explicit that the link includes your user ID. There is a asking that this user ID be anonymized or hashed, to allow users to earn publicity badges (the intention behind having the user ID present in the URL, as per ) while eliminating the privacy issue. Original Post It seems to me there is something of a privacy leak when permalinking to a question. For what I would assume is the purposes of tracking which user is responsible for bringing traffic back to an SE site (for badges, etc.), the user ID of the user obtaining the permanent link . I wouldn't argue that this shouldn't be the case, but I find no warning or mention of this when I do these actions. I'm sure I'm not the only one that doesn't desire anonymity on SO but would like at least pseudonymity on some places I might share a SO link, such as on a random blog. As a user, I would not expect sharing a permanent link to leak my identity. Unless you are familiar with Stack Exchange links or your own userID, it's certainly not obvious by looking at the link that it includes your personal info. It'd be nice to have fair warning that using that feature will do so, and perhaps provide/describe the workaround: to simply remove the user-id segment from the URL. Other features would be a preference that formats future permanent links to exclude the user id. Example (from this question) Permalink: Link to my user page:"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Programming blank atmega328 microcontroller I bought couple ATMEGA328P-PU as a replacement for my Arduino Uno. The problem is that I don't have any cables to program to 328 directly and I'm trying to avoid using Arduino and it's bootloader. I want to write code in C, but I don't know where to start.. I'm trying to figure out two things: How to build my own USB cable to write bootloader & code to the ATMEGA328P-PU? What software do I use to get started with the bootloader (Linux)? Any help would be much appreciated, thanks!
|
What is the minimal set of parts for a circut with this AVR microcontroller? My Arduino Uno has a ATMEGA328P-PU microcontroller, and bunch of other stuff on the board. I'd like to program the chip without the Arduino software, and only the minimum of other components. I want to eventually create things without the cost of Arduino, and I want to learn about the other parts on the board and add them back as as needed. I'm comfortable with C and gcc, so I can probably figure out the software part. But what, if anything, besides these two products below, do I need to have in the breadboard with the microcontroller?
|
[
"The observable universe is approximately 13.7 billion years old. But yet it is 80 billion light years across. Isn't this a contradiction?",
"I am trying to represent trade flows on a world map where the size and direction of arrows indicate the exports/imports of a given country. This type of map is commonly found in magazines and newspapers. However, I find it extremely difficult to make. Is there any function in ArcGIS for Desktop or any free software that would help me in making it?",
"How do I check if a string is a number (float)?",
"What's the intuition behind \"stiff systems\"?",
"How do I execute for a player wearing armor with a colored name I am working on a command block contraption on my server that involves armor giving you certain potion effects. /execute if entity @p[nbt={Inventory[{Slot:100b,id:\"minecraft:leather_boots\",tag:{display:{Name:\"{\\\"text\\\":\\\"Frog Boots\\\"}\"}}}]}] run effect give @s jump_boost 1 1 true However, it only works if the boots are named in an anvil. How would I write the command if I wanted to test if the player was wearing boots named \"Frog Boots\" in bold and green text?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Allow higher scoring unaccepted answers to sort above the accepted answer
|
When, if ever, should voting override answer acceptance for answer sorting?
|
[
"How do I select all but two types of entities in Minecraft with the type selector?",
"Adding \"noise\" to overlapping X,Y coordinates so no longer in EXACT same place? I have a series of points representing animal observations. Many of them overlap, having the exact same coordinates, and this is causing me trouble when I want to run some analytical tools which requite no identical points. I was wondering if there's any tool that can add some \"noise\" to the coordinates, that's to say, adding some random decimal values at the end in order to obtain slightly different coordinates which are still close enough in space so as to not really modify the observation. I've heard about such a tool, but I can't find it, at least in ArcGis 10. Maybe there's another software that can do it? Thanks!",
"Effect Of Frequency on Photocurrent The situation is this.. I am performing a photoelectric effect experiment - just the usual - evacuated glass tube containing two metal electrodes connected to an external source of DC voltage (say an alkaline cell) and ammeter in series. I shine a light on one of the electrodes - the frequency is more than enough to cause eject photoelectrons, and the voltage of the cell opposes the electrons which are trying to get to the other electrode. The question is this - what happens to the current on increasing the intensity of light while keeping no. of photons falling on the electrode constant (in other words increasing the frequency)? Does the current remain the same because the no. of photons falling on the electrode is constant and so no. of electrons being ejected is constant? Or does it increase because the electrons have more kinetic energy, ie, they are moving faster towards the other electrode so that the $t$ (time) term in $I$ = $q$/$t$ is less ($q$ remains constant because no. of electrons being ejected is still the same)? This question appeared in one of my tests and the answer key says that the current remains constant but think that case 2 is correct and current would increase, which is why I asked this question. Thanks.",
"I'm running Fedora 25 and I need to take a few particular screen captures so I've read that shutter is a great tool for that. Sadly I am unable to use it for some reason. Whenever I try to take a screenshot this is the result:",
"The title pretty much says it all: how can I type Unicode characters - specifically the em-dash —?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
why is this showing me a null pointer exception? package sphinxtest; import edu.cmu.sphinx.api.Configuration; import edu.cmu.sphinx.api.LiveSpeechRecognizer; import edu.cmu.sphinx.api.SpeechResult; import java.io.IOException; public class Sphinxtest { /** * @param args the command line arguments * @throws java.io.IOException */ public static void main(String[] args) throws IOException { System.out.println("running"); Configuration config = new Configuration(); config.setAcousticModelPath("resource:/edu/cmu/sphinx/models/en-us/en-us"); config.setDictionaryPath("C:\\Users\\sys\\Desktop\\3481.dic"); config.setLanguageModelPath("C:\\Users\\sys\\Desktop\\3481.dic"); LiveSpeechRecognizer rec = new LiveSpeechRecognizer (config); rec.startRecognition(true); SpeechResult spinput ; while ( ( spinput = rec.getResult() ) != null) { String command = spinput.getHypothesis(); if (command.equalsIgnoreCase("click")){ System.out.println("click command recieved"); } } } }``
|
What is a NullPointerException, and how do I fix it? What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?
|
[
"Consider a complete metric space $(X,d)$ and $T\\colon X\\to X$. Suppose there exists $n\\in\\mathbb{N}$ such that the n-th power of $T$ is $q$-contractive. Show that then $T$ has exactly one fixed point $\\overline{x}\\in X$. The n-th power is defined inductively: $$ T^{n+1}(x):=T(T^{n}(x)), n\\in\\mathbb{N}. $$ And for a function $T\\colon X\\to X$, $q$-contractive means $$ \\exists 0\\leq q<1~\\forall~x,y\\in X: d(T(x),T(y))\\leq q d(x,y). $$ Now to the proof. I think I have to show, that $T$ is q-contractive, because then it follows with Banach, that $T$ does have exactly one fixed point. So I have to show, that there exists a $0\\leq q<1$ so that for all $x,y\\in X$ it is $$ d(T(x),T(y))\\leq q\\cdot d(x,y). $$ And most likely I have to use the q-contractivity of $T^n$, i.e. that there exists a $0\\leq q <1$ so that for all $x,y\\in X$ it is $$ d(T^n(x),T^n(y))\\leq q\\cdot d(x,y). $$ Can you help me?",
"Why does a cordless circular saw have the blade on the left? At the moment considering the purchase of a circular saw for light work. I'm looking at a corded model and a cordless model. But the question I have is not about which one is better. My question today is why the corded one has the blade on the right of my hand and the cordless one has the blade on the left of my hand. See both models below. Now, I know some manufacturers make left- and right-handed versions of their circular saw. And I'm also aware that 'worm drive circular saws' usually have the blade to the left of my hand. But it seems odd to me. Especially as it seems to apply to most manufacturers too. Was wondering if somebody has an explanation for this.",
"I can show that for $x > 0$ and $r_{i} > 0$ we have $$ \\left(\\, x + r_{1}\\,\\right)\\ldots\\left(\\, x + r_{n}\\,\\right)\\ \\geq\\ \\left[\\, x + \\left(\\, r_{1}\\ldots r_{n}\\,\\right)^{1/n}\\,\\right]^{n}.$$ However, I can't do this using straight up induction, strong or weak. Can someone do this? You can show the inequality holds for $n$ if it holds for $n+1$ using $r_{n+1} = (r_1 \\cdots r_n)^{1/n}$, so going down isn't a problem, but going up has eluded me. Additionally, you can show that if it holds for $n=a$ and $n=b$ then it holds for $n=ab$. Using powers of two and the above is sort of a way to prove the above by induction but it certainly isn't \"normal\". You can also prove the above using Lagrange multipliers (which isn't surprising). The last proof I know is where you compare coefficients of $x^k$ and use the AM-GM inequality.",
"What is the function represented by the power series $$ \\sum_{k=2}^\\infty\\frac{x^k}{k(k-1)}\\quad? $$ It looks like $\\dfrac1{1-x}$ but I don't know.",
"Determine $\\text{Aut}(S)$ where $S = \\mathbb{Q}[x]/(x^2)$ Here's the problem: if $S = \\mathbb{Q}[x]/(x^2)$, compute the group of automorphisms $\\mbox{Aut}(S)$. First off, I have the solution and I know it's isomorphic to the multiplicative group $\\mathbb{Q}\\backslash\\{0\\}$, so I'm trying to understand it. It uses what is called the substitution principle and the fact that the restriction of any endomorphism $\\phi: \\mathbb{Q}[x]\\to \\mathbb{Q}[x]$ to $\\mathbb{Q}$ is the identity. It says that these two facts implies that the endomorphisms of $\\mathbb{Q}[x]$ are in 1-1 correspondence with $h \\in \\mathbb{Q}[x]$, where the endomorphism corresponding to $h$ is $\\phi_h : \\mathbb{Q}[x] \\to \\mathbb{Q}[x]$ given by $\\phi_h(f) = f(h)$ for $f \\in \\mathbb{Q}[x]$. I guess I just don't understand how it applied the substitution principle? It's probably obvious, but for some reason I am not getting it. An explanation would be greatly appreciated! Or if you have a different solution, that'd be cool too. Thanks!!"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Limit Point of $A=\{{m+n\sqrt{2}}:m,n\in Z\}$ Let $A=\{{m+n\sqrt{2}}:m,n\in Z\}$, where $Z$ stands for the set of all integers .Then which of the following is correct (a) $A$ is dense in $R$ (b) $A$ has only countably many limits points in $R$ (c) $A$ has no limit point in $R$ (d) only irrational numbers can be limit points of $A$ If m=0 and n=1 .Then $\sqrt{2}\in A$ and $(\sqrt{2}-0.5,\sqrt{2}+0.5)\cap A\sim{\sqrt{2}}=\Phi$ . Then , only option c is correct. Please correct if I am wrong . I am not able to find any counter examples.
|
Proving that $m+n\sqrt{2}$ is dense in $\mathbb R$ I am having trouble proving the statement: Let $$S = \{m + n\sqrt 2 : m, n \in\mathbb Z\}$$ Prove that for every $\epsilon > 0$, the intersection of $S$ and $(0, \epsilon)$ is nonempty.
|
[
"I would like to configure my Ubuntu 12.04 server to synchronize its clock with a specific NTP server. Where to set this up?",
"How find the maximum value of $|bc|$ Question: Given complex numbers $a,b,c$, we have that $|az^2 + bz +c| \\leq 1$ holds true for any complex number $z, |z| \\leq 1$. Find the maximum value of $|bc|$ It is said this is answer is $$|bc|\\le \\dfrac{3\\sqrt{3}}{16}$$ My idea: let $z=1$,then $$|a+b+c|\\le 1$$ let $z=-1$,then $$|a-b+c|\\le 1$$ let $z=0$, then $$|c|\\le 1$$ let $|\\theta|=1$,then we have $$|a(z/\\theta)^2+b(z/\\theta)+c|\\le 1\\Longrightarrow |az^2+b\\theta z+c\\theta^2|\\le 1$$ and only this can't solve this problem,Thank you",
"Expectation of a function of a random variable from CDF Is it possible to calculate the expectation of a function of a random variable with only the the r.v.'s CDF? Say I have a function $g(x)$ that has the property $\\int_{-\\infty}^{\\infty}g(x)dx \\leq \\infty $ and the only information I have about the random variable is the CDF. For example, I have a scenario where there are three timers that can be modeled as exponential random variables $X_1,X_2,X_3$ with rate parameters $\\lambda_1,\\lambda_2,\\lambda_3$ respectively. For each moment in time I earn a reward according to some reward function $g(x)$. That is, my reward for waiting until time $t$ can be written as $\\int_0^tg(x)dx$. However, $g(x)$ experiences diminishing returns so the the marginal reward received from waiting one second at $t=0$ is greater than one second at say $t=27$. This 'game' ends when one of two things happens. Either both timers $X_1$ or $X_2$ must ring or timers $X_1$ or $X_3$ must ring. I'm trying to find the expected reward of playing this game. Currently I can calculate the the CDF of the random variable modeling the time until the game ends, but I dont know how to use this information to when what I really need is reward associated with this time. So far I have the additional random variables: $$ W_{12}=\\max(X_1,X_2) \\quad W_{13}=\\max(X_1,X_3) \\quad Z=\\min(W_{12},W_{13})$$ Also let $F_i(x), i\\in \\{1,2,3\\}$ denote the CDF of $X_i$ The CDF of $Z$, can be written as: $$F_Z(t) = F_1(t)F_2(t) + F_1(t)F_3(t) - F_1(t)F_2(t)F_3(t)$$ I know when a random variable takes on non-negative values, you can use a shortcut to calculate the expectation using the CDF. That is, $E[X] = \\int_0^\\infty F(X\\geq x)dx$. Is there something similar I could use for a function of a random variable, or is it necessary to compute the pdf of $Z$ first to compute $\\int_0^\\infty g(t)f_z(t)dx$",
"Vi on Linux: show ^M line endings for DOS-format files On Solaris, if you open a file in vi that has Windows line endings, this shows up as ^M at the end of every line. On Linux, vi is cleverer and understands the Windows file format, and does not display ^M. Is there a setting to make Linux vi behave the same as Solaris in this respect? A common problem for us is copying a shell script off a (Windows) dev box and forgetting to dos2unix it, and then being confused when it doesn't work properly. On Solaris the problem is obvious as soon as you vi the file, but not on Linux. Thanks.",
"How to avoid the pop up message while downloading an application (.exe) using selenium I am trying to download an application and check if it's downloaded into my local system or not. But when I click the download link I have a popup with Save or Cancel options, which is stopping me from downloading the file. I googled and found some solutions and tried to change the profile of Firefox by adding the below code, but it is not working. firefoxProfile.setPreference(\"browser.download.folderList\", 2); firefoxProfile.setPreference(\"browser.download.alertOnEXEOpen\", false); firefoxProfile.setPreference(\"browser.helperApps.neverAsksaveToDisk\", \"application/x-msexcel,application/excel,application/x-excel,application/excel,application/x-excel,application/excel,application/vnd.ms-excel,application/x-excel,application/x-msexcel\"); firefoxProfile.setPreference(\"browser.download.manager.showWhenStarting\", false); firefoxProfile.setPreference(\"browser.download.manager.focusWhenStarting\", false); firefoxProfile.setPreference(\"browser.helperApps.alwaysAsk.force\", false); firefoxProfile.setPreference(\"browser.download.manager.alertOnEXEOpen\", false); firefoxProfile.setPreference(\"browser.download.manager.closeWhenDone\", false); firefoxProfile.setPreference(\"browser.download.manager.showAlertOnComplete\", false); firefoxProfile.setPreference(\"browser.download.manager.useWindow\", false); firefoxProfile.setPreference(\"browser.download.manager.showWhenStarting\", false); firefoxProfile.setPreference(\"services.sync.prefs.sync.browser.download.manager.showWhenStarting\", false); This is the code I added for setting up Firefox preferences, but I still get the popup."
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Short story about one side building better weapons for a space battle I'm looking for a short story about a two factions engaged in a space war where scientists of one faction figured out a better weapon, but they decided not to waste effort producing it, because, by the end of designing that weapon, they figured out they can actually build an even better weapon. But, once they finished designing that second weapon, they figured they can make an even better one. This repeated until they came to the ultimate weapon, but by which time the other faction already defeated them using the plain old weapons from the beginning of the war. The story is told from a perspective of an officer of the losing faction explaining why they lost.
|
Process management and high technology weapon. Novel name and author? I am looking for help to point me out at a very old novel (likely from the '60s) about two empires at interstellar war. When it comes to starships, one is technologically very advanced, and the other has very low and inefficient technology. The highly advanced empire has apparently strong chances to win the war, in particular considering a new technology they were developing. I remember the technology to work like this: consider the space as a flat surface, and on this surface, a disk around the spaceship. When the technology was turned on, this disk was stretched out, as made of rubber, so that it produced a cone, with the tip being the spaceship. The spaceship was therefore teleported 10 parsec away (if I remember correctly), but retained all the connections to the original position. If the spaceship moved, the cone moved as well. This allowed to move in position among enemy ships completely unnoticed, by stretching while afar, then moving in the proper position 10 parsecs away, then destretching. Despite this technology, the empire lost the war because of delays. It's a perfect example of how having a disruptive technology does not guarantee to win against the competitors. I am trying to find out the author and name of this novel, hopefully with the date of publication and in which journal/magazine.
|
[
"Subfields of finite fields",
"Two friends who have unpredictable lunch hours agree to meet for lunch at their favorite restaurant whenever possible. Neither wishes to eat alone and each dislikes waiting for the other, so they agree that each will arrive at a random time between noon and 1 pm, and each will wait for the other for 15 minutes or until 1:00. What is the probability that the friends will meet for lunch on a given day?",
"Is there a problem with Beamer in the latest MiKTeX update? This is about MiKTeX Revision 2.9.6360. Immediately after the latest MiKTeX update, my Beamer files stopped compiling. When i tried to compile a file that had been working fine I got a Package installation popup saying: tex\\latex\\beamer\\beamerbasemodes.sty Is missing. It is part of the following package beamer So i clicked to have it installed. All that achieved is that i got an error message ! LaTeX error: File 'beamerbasemodes.sty' not found I repeated this a few times with minor changes to the file, and then went to the MiKTeX Package Manager to see what parts of Beamer are installed. It said none were. Either the update had removed Beamer, or the attempt to install beamerbasemodes on the fly had done it. So I reinstalled it by hand. In fact i did this several times in various ways. It made one difference. Sometimes the problem package was identified as translator.sty In case it would help, I ran Update FNDB and restarted my machine. Each time I installed Beamer, the Package Manager then reported that Beamer was installed. But when I tried to compile the file, the same things happened all over. And when i went back to the MiKTeX Package Manager it reported Beamer is not installed. Is Beamer now out of date? Or is this a problem on the new update? Is there a simple fix i can use?",
"In $\\mathbb{R}^n$, locally lipschitz on compact set implies lipschitz I need to prove: Let $A$ be open in $\\mathbb{R}^m$, $g:A \\longrightarrow \\mathbb{R}^n$ a locally lipschitz function and $C$ a compact subset of $A$. Show that $g$ is lipschitz on $C$. Can anyone help me?",
"Installing to SDCard by default I would like to know whether there is a way to tell Android to install applications on the micro SD card by default instead of having to download applications to internal memory first and then having to move them to the SD card manually. Thanks"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Stainless steel pan discoloration I couldn't find something that resembles this but one day I used my stainless steel pan and I think I didn't clean it properly so I woke up to discover these "stains" on it (BKF didn't help scrub them off): Anyone know what these could be and how to treat it? Not sure if it's even safe to cook in it anymore.
|
White cloudy areas on bottom of new stainless steel skillet I just bought my first few pot and pans "Calaphon" stainless steel trip-ply I used my new 10" skillet tonight, and cooked pork chops. I heated the pan first, added olive oil, let it heat, then added chops. After I was done, cleaned it immediately under water, and noticed white cloud looking areas on the bottom of the skillet. They won’t wash or rub off Do I need to return these? I did buy them for the look as well.
|
[
"What happens when I connect a 2 amp charger instead of the 0.7 amp charger provided? Possible Duplicate: I have a phone with 0.7 amp charger. I also have a Galaxy Nexus with a 2 amp charger. If I connect the 2 amp charger into my phone, will my phone blow up?",
"Is it acceptable to edit (correct) grammar or spelling? Some individuals may be sensitive to edits of their posts on the basis of spelling or grammar. Some editors may be concerned about what to put in as a reason/explanation for the edit. New editors, in general, are likely uncertain of what the accepted \"etiquette\" is, on these sites, for such corrections.",
"How to make document custom page dimensions?",
"At the end of the scene in the cemetery in GoF, the spirits who emerged from Voldemort's wand tell Harry to go grab the trophy (which, of course, was a portkey that took Harry and Cedric from the maze to the cemetery), and that the trophy portkey would take Harry back to Hogwarts. Why would the portkey do that? Are all the portkeys 2-way? If possible, I would prefer as much of the answer based on canon (or JKR) as feasible",
"The MSDN documentation on describes 3 contradicting rules for how the method should work. If two objects of the same type represent the same value, the hash function must return the same constant value for either object. For the best performance, a hash function must generate a random distribution for all input. The hash function must return exactly the same value regardless of any changes that are made to the object. Rules 1 & 3 are contradictory to me. Does Object.GetHashCode() return a unique number based on the value of an object, or the reference to the object. If I override the method I can choose what to use, but I'd like to know what is used internally if anyone knows."
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
When I open MS Paint (Win 8), the default border thickness is set to the thickness depicted in the picture. Is there a way to change the default rectangle border thickness?
|
After closing paint the last used settings went back to default. I want them to be saved. Like the selected Brush-Tool, Color, Line-strength, etc. Either after every usage or I define one I use most. Maybe through the registry or by start parameters?
|
[
"What does \"calculus\" mean? \"calculus\" and \"formal system\" From a calculus is a formal system that consists of a set of syntactic expressions (well-formed formulæ or wffs), a distinguished subset of these expressions (axioms), plus a set of formal rules that define a specific binary relation on the space of expressions. From Formal systems in mathematics consist of the following elements: A finite set of symbols (i.e. the alphabet), that can be used for constructing formulas (i.e. finite strings of symbols). A grammar, which tells how well-formed formulas (abbreviated wff) are constructed out of the symbols in the alphabet. It is usually required that there be a decision procedure for deciding whether a formula is well formed or not. A set of axioms or axiom schemata: each axiom must be a wff. A set of inference rules. what is the difference between a formal system, and a calculus, then? I think they are the same? \"calculus\" and \"logic system\" \"Calculus\" appears in \"propositional calculus\" and \"first-order predicate calculus\", which are also called \"propositional logic\" and \"first-order logic\" respectively. So I thought \"calculus\" and \"logic\" mean the same, and \"a logic\" is, according to , A logical system or, for short, logic, is a formal system together with a form of semantics, usually in the form of model-theoretic interpretation, which assigns truth values to sentences of the formal language, that is, formulae that contain no free variables. But then I saw \"calculus\" also appears in \"lambda calculus\", which is also a formal system. I think a lambda calculus isn't a logic system, right? What does \"calculus\" mean in \"lambda calculus\"? Furthermore \"calculus\" can also mean computational real analysis for first-year college students. Thanks.",
"There are many (duplicate) questions about the acceptance, popularity and history of singular they (and their, them and themself) around here, it even got a tag of its own. If I didn’t miss anything, however, the proper verb form hasn’t been questioned yet. As we all know, English third person singular pronouns (it, she, he and one, +body), names (Alice, Bob, …) and nouns (student, teacher, …) demand the +(e)s suffix be added to the finite verb form in simple present, where some auxiliary verbs have a “special” form (is < *bes / *ares and has < *haves). All other subjects don’t, including plural third person pronoun they. When the plural you replaced thou (with thee, thy / thine), the other marked verb form that had remained in English – i.e. suffix +(e)st or +t – vanished, too. The first and second persons only ever appear as pronouns (I, we; you), not names or nouns, so there was no strong inclination to keep the verbal inflection. The second person precedent would suggest that singular they be used with uninflected verb forms which is how it’s usually encountered in the wild. Assuming that they someday replaces he and she (and maybe it) it would lead to disagreement with the words the pronoun stands in for: Alice goes to her place by herself. Bob goes to his place by himself. Alice and Bob go to their place by themselves. – (common) Alice and Bob go to their places by themselves. – (separate) She goes to her place by herself. He goes to his place by himself. They go to their place by themselves. They go to their places by themselves. They ?goes to their place by themself. ditto They go to their place by themselves. They go to their places by themselves. They ?go to their place by ?themselves. ditto They go to their place by themselves. They go to their places by themselves. So why doesn’t singular they afford s on present-tense verbs like all other third person singular subjects do? I learned about singular they only long after I had been taught English as a second language in school. That’s why it’s still a conscious decision to use it and hence I could easily adapt to use s forms with it, but would that sound and look funny / strange / wrong to native speakers?",
"\"Everything is a file\" in the UNIX World. Above sentence is famous. When I run echo \"hello programmer\" >> /dev/tty1 , I can watch the given string on TeleType 1 , .... What and where is file per each socket? Suppose my friend connects to my PC, and its IP is h.h.h.h , how can I access the respective file? Is it possible?",
"I want to know a proof of an alternative form of Fermat-Euler's theorem $$a^{\\phi (n) +1} \\equiv a \\pmod n$$ when $a$ and $n$ are not relatively prime. I searched some number theory books and a cryptography book and internet, but there were only proofs of the original theorem $a^{\\phi (n)} \\equiv 1 \\pmod n$ or in case n=pq which is used for RSA. So I would be very thankful if someone show me a proof or book I should read.",
"What is a token? Please forgive such a basic question, but I did some Google searching and looked around on this site, and while there are many threads and online resources that involve tokens, I can't seem to find a direct explanation of what a token is, specifically in the context of TeX, LaTeX, etc. Perhaps there is a good explanation of tokens in the TeXbook, but I don't have a copy of it. gives me some idea: A token is a string of characters, categorized according to the rules as a symbol (e.g., IDENTIFIER, NUMBER, COMMA). but this is a bit too general for me to understand. Taking a guess based on the Wikipedia definition and , is it correct to say that a token is \"a thing that has a catcode\"? (which, even if true, does not seem entirely satisfactory as an answer: what characterizes the things that are given catcodes?) Some illustrative examples, and non-examples, of tokens in the realm of TeX, LaTeX, etc. would be much appreciated."
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
What does star (*) mean in JavaScript function definition in Koa framework?
|
What is "function*" in JavaScript?
|
[
"How do you convert a cake recipe to make brownies?",
"Sunlight Sensitivity looks pretty bad — Disadvantage to attack rolls and Perception checks whenever you, your target, or what you're trying to perceive are in direct sunlight. I hope I'm missing something, since no other PC race has a comparable hindrance. Are there any ways you have used to mitigate this flaw to make players of this race not at a severe disadvantage (or, if it doesn't need mitigation, explain why it's already balanced without any action required)?",
"Story about building up speed leading to increased quality of life",
"Over the past few weeks, there have been a number of complaints about users making suggested edits en masse whose quality was at least questionable. Let an example of a low-quality edit be the addition of the web-frameworks tag to dozens of questions about the PHP web framework Laravel. No one is ever going to use it in a search, but Laravel is a framework, right? (If you disagree about this being a low-quality edit, please bear with me anyway - my point here is that the system through which such conflicts could be settled is broken.) Examples This is a toxic situation guaranteed to create strife because - The new user is happy to have found a way to participate and earn some rep; they may be genuinely feeling that they are improving the site. The reviewers greenlighting most of their suggestions confirms them in their belief. The reviewers usually see only one edit - and it's easy to see how they might go, \"meh, this isn't a terribly useful edit, but hey, maybe it helps someone, and it's a new user. No point discouraging them.\" The veteran users who check out the editor see dozens of what they perceive as low-quality edits, usually ignoring anything else that should be fixed in the post. To the veterans, the new user is systematically looking for excuses to make their pointless edits, creating a giant mess in order to gain some rep - a mess they have to clean up, while there are no consequences for the editor, who gets to keep their ill-gotten points. While a bad question or answer can be downvoted - usually leading to a change of behaviour eventually - the edit system looks like it's wide open for gaming. So tensions are high, and when there's dialog it can be angry. I'm not saying either side is completely right. I'm completely prepared to believe that many of these edits are in good faith, etc. But it's a mess because it's frustrating people. As said, there are no consequences for bad-faith mass editing; apart from commenting on some random post, there is no way to communicate with an editor. The outcome of a moderator flag is very much uncertain. The absence of a clear set of rules means there's plenty of room for heated arguments. Something needs to change here. Either We need super clear rules on what makes a good tag edit Tag-only edits should be allowed only for 2k+ users, or they should not gain 2 reputation points for <2k users The possible 1000 rep gain for suggested edits needs to be rate-limited (say, 200 per month) (this is my favourite!) The possible 1000 rep gain for suggested edits needs to be lowered, say to 500 or 250 Rollbacks of suggested edits should result in annulment of the 2 points gained (this is terrible) There should be a system to vote on edits (yes, that's been suggested before) There should be a defined and officially sanctioned pathway, and ruleset, for moderator flags cast about these users ... or something else. But something needs to give.",
"Which homology groups of a closed orientable 6-manifold can be isomorphic to $\\mathbb{Z}^3$? List all $i$ for which there is a closed orientable $6$-manifold $M$ with $H_i(M) =\\mathbb{Z}\\oplus\\mathbb{Z}\\oplus\\mathbb{Z}$. I am working on an old exam problem and this one stumped me. Progress so far: I can take $Y=\\mathbb{T}^3 \\times \\mathbb{S}^3$ and get the desired group for $i =1,5,2,4$ I think. But this construction I believe gives $H_3(Y)=\\mathbb{Z}^2$. What to do in this case?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
How to get Excel column title?
|
How to convert a column number (e.g. 127) into an Excel column (e.g. AA)
|
[
"I see lots of tutorials telling me how to root my phone (Motorola Droid), but none of them mention any potential \"side effects.\" Aside from a few relatively minor issues that seem to require rooting to fix, I'm basically happy with the phone and therefore a little leery of messing with a device that cost me a lot of money and is only a few months old. Assuming that I'm just talking about rooting, and none of the typical post-root actions (like installing a custom ROM), am I taking any risks by choosing to root? Does it have the potential to brick the device? Will it void my warranty? Will I stop getting updates? Will the cops show up at my front door the next day? (Yes, I'm being facetious.) Anything else I should be aware of? (See also: )",
"What are the differences between normal and classic difficulties? I can't seem to find a good list of info of all the changes that classic mode offers over normal other than that 'its much harder'. Does any of the enemy AI improve in classic mode? Do enemies have more health and do more damage? Does the panic meter increase faster for countries?",
"I'm using a vanity country code top level domain (ccTLD), can I persuade Google to geotarget a different region? Because I'm still living like it's 2008, I run a website with a .in TLD. The website has nothing to do we India and does not target Indian users. Unfortunately, when I go to Google Webmaster Tools I see that Google have locked my geotargeting status to India: On the , Google state that: Sites with country-coded top-level domains (such as .ie) are already associated with a geographic region, in this case Ireland. In this case, you won't be able to specify a geographic location. This seems implausibly inflexible, so I want to know if there are any sneaky ways of removing auto-geotargeting, or changing it to a more appropriate region?",
"I am rebuilding an old server. Only one of the five old sites need to go live and all five of the old sites point to the same IP address. Unfortunately any time a request is made for one of the old sites via their own unique domain names they are passed the pages from the one site that I'm trying to make live. I would just like the old sites to display a 404 instead of the one site that I'm actually trying to make live. As an example: Site 1 (192.168.0.1) [www.first.com] Site 2 (192.168.0.1) [www.second.com] Site 3 (192.168.0.1) [www.third.com] I want to move site 1 live again. So I turned on apache on the machine with the IP address of 192.168.0.1, with all of site 1's files in the /var/www directory. When I browse to 192.168.0.1 or www.first.com I correctly see site 1. When I browse to www.second.com and www.third.com I also receive site 1 which is the problem. Is there a way I can 404 any request which comes in without www.first.com? Here is my sites-available: NameVirtualHost *:80 LogFormat \"%h %l %u %t \\\"%r\\\" %>s %b\" common <Files ~ \"^\\.ht\"> Order allow,deny Deny from all Satisfy All </Files> <Directory /> Order Deny,Allow Deny from all Options None AllowOverride None Options None </Directory> <Directory /var/www> Order Allow,Deny Allow from all </Directory> <VirtualHost *:80> ServerName first.com ServerAlias www.first.com DocumentRoot /var/www ErrorLog /var/log/first.com.err CustomLog /var/log/first.com.log common </VirtualHost> <VirtualHost _default_:*> ServerName unknown DocumentRoot /var/www_404 </VirtualHost>",
"I have Sanguinare Vampiris. I don't really want to become a vampire. How can I cure myself?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Using an article/omitting an article "We got him," Belgian migration minister Theo Francken tweeted following the culmination of a four-month manhunt across Europe. Why there isn't definite article in front of Europe? For me it would feel logical to say manhunt across the Europe. Is this wrong and if so why? Another example: The market is a gap which separates producer and consumer. Why there isn't an article before producer and consumer. For me it would feel logical to say: The market is a gap which separates a producer and a consumer. Is this wrong and if so why?
|
Using THE before some countries I have been taught that it's grammatically proper to use the before countries like "Sudan and Yemen" but I was never given a reason (if there exists any, of course) when I asked why, except for "it is one of those ambiguous parts of English language that we – as non-native speakers – should just accept without trying to look for a reason". Now, I'd like to know if there is any answer to this "why" or I should keep on believing that there are no hard and fast rules when it comes to questions like these.
|
[
"I've purchased a Canon EF 50mm f/1.8 II. But I'm really disappointed in the results, especially when using it for night photography. :( In my night shots a lot of lens flare appears in my photos. I've tried to change the angle and position of the camera to no avail. Also I cannot do any night photo without directing my camera to direct light like in street photography! This photo was taken with my Canon 650D and 50mm 1.8 Lens in a long exposure night shot, and as you notice there is a bunch of lens flare in it. Some people suggested I remove the UV filter. This decreased the lens flare a little but there is still some flare in the photo . I want to know if there is a problem with the lens? Or is this normal for a $100 lens? Does anyone else have a similar experience with this lens?",
"Is there a word to describe the virtue of \"to do something and ask for nothing in return\"? I am wondering if there is a positive, formal counterpart to the slang \"No strings attached\" to describe, for example, a parent's unquestioned devotion to their children, or the virtue of someone's \"a friend in need is a friend in deed\", help first, question later mentality.",
"How many \"Recommend Close\" votes is too many?",
"How to Install Octave in El Capitan?",
"\"error: XDG_RUNTIME_DIR not set in the environment.\" when attempting to run nautilus as root I am attempting to run nautilus as root but when I run \"sudo nautilus\" from the terminal, I get the following error: error: XDG_RUNTIME_DIR not set in the environment. (nautilus:9341): Gtk-WARNING **: cannot open display: The issue does not occur when I attempt to run nautilus as non-root. I am using ubuntu 14.04. Does anyone know how I can fix this?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Fantasy trilogy about a young man who travels into a fantasy world (doorway in a closet?) to save parents, who are royalty there I may be able to get my answer to this the next time I'm home, but it's nagging me currently. It was a trilogy in paperback, released by 1998 because I remember seeing them up on my brother's shelf after I took over his room, which was prior to my graduation from high school. The front cover shows a young man in greyish camouflage fatigues, I think with two swords across his back. I only got partway into the first book before I set it down for reasons I don't remember, but the main character is a young man whose parents disappear. He finds a note, I think from his father, explaining that they are actually royalty from a fantasy realm and where the portal to said land is (I think) in the back of a closet in the house. Said young man starts to understand why it is that his parents had him doing so many anachronistic activities such as swordwork and archery. He arms himself (I remember him picking up swords, a bow and arrows, and woodland outfits, which he notes are in the closet in both camouflage and "Robin Hood green". He may have also picked up some guns). After he goes to the other world, he at one point freezes and notes that the key to avoiding motion when hiding in the woods isn't to hold your breath, but to rather breathe slowly and calmly. That part made an impression on me as a teenager for some reason. I don't remember much of what happened after he traveled into the other world. I have this vague memory of him meeting someone at a ruined building, but that's pretty much it.
|
Need help identifying the fantasy book about a portal to a fantasy land in the basement of a house I can't remember any names of characters or locations where the story took place but I do remember the basic plot of this early 90's novel; a human man inherits his father's house. In the basement there is a doorway to a fantastic land where adventure ensues. He fights elves and wins their deadly elf swords which he buries under concrete at the end of the novel (because if you don't get rid of them they will come back and get you). At the end of the novel he must remake the world in his own imagination, turning the tough Elf King into a cobbler and making Jesse Jackson President. I have been looking high and low and have drawn a blank. Any help would be appreciated. Thanks!
|
[
"a better way to express \"an idea/thought suddenly came to me\" What are some grandiloquent, or simply better, ways of expressing \"an idea/thought suddenly came to me\", or \"an idea/thought struck me\", or \"I was struck by an idea/thought\"?",
"I am trying to install under Wine. The program setup continually requests proxy settings. My broker tells me this shouldn't happen, and is a problem on my end. Here is what I have tried to attempt to solve this error: I have gone into Network settings and proxy is set to none. I have looked in Wine Regedit and proxy_enable is set to 0. I have checked the firewall settings on my modem. I have tried reinstalling wine. I have installed lib32nss-mdns I can log on to my modem in iexplore using the gateway ip but thats it I've set my DNS to 10.0.0.138 to reflect the gateway I've set up a 32 bit Wine prefix How should I proceed in solving this?",
"For any triangle with sides $a$, $b$, $c$, show that $a^2b(a-b)+b^2c(b-c)+c^2a(c-a)\\ge 0$ For any triangle with sides $a$, $b$, $c$, prove the inequality $$a^2b(a-b)+b^2c(b-c)+c^2a(c-a)\\ge 0 .$$ This is IMO 1983 problem 6. I tried substituting $a=x+y$, $b=y+z$, $c=z+x$ but well it doesn't help in any sense except wasting 3 pages that lead to nothing (please don't mind the joke). Using $a=2R\\sin A$, $b=2R\\sin B$, $c=2R\\sin C$ also didn't lead to anything for me. Could you give me a hint for finding the proper substitution?",
"Performance of try-catch in php What kind of performance implications are there to consider when using try-catch statements in php 5? I've read some old and seemingly conflicting information on this subject on the web before. A lot of the framework I currently have to work with was created on php 4 and lacks many of the niceties of php 5. So, I don't have much experience myself in using try-catchs with php.",
"Virtualbox Kernel driver not installed"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Will the electron affected by another electron via Coulomb's force affect this electron instantly?
|
The propagation of electric field
|
[
"How do I change extension of multiple files recursively from the command line?",
"“between” vs. “among” Today I was cut off in the middle of the following sentence: Between Cook, Strauss, and Pietersen— My friend said I was wrong. He said that for more than two entities, among/amongst are used, and that between is only for two entities. I vaguely remember some rule like this, but I asked him to hear the whole sentence, which was: Between Cook, Strauss, and Pietersen, they’ve notched up 56 centuries in Test cricket. Should I have used among here? Seems correct to me to use between, but my friend was certain. Another friend pointed out the following sentence: I’m still choosing between Harvard, Yale, and MIT. Certainly among doesn’t seem to fit here, and she, to me, was correct in using between.",
"How to show textures in the 3D View editor? I have added some textures to objects in blender but the textures don't show up until I render the file. it can be difficult to know what the objects look like without rendering it. is there a way to have textures show in the editor even if they are at a lower res? In editor: Rendered:",
"Why are one-way plane tickets more expensive than return tickets?",
"I am starting to learn using blender, and at some point I managed to do something to the 3D view camera. Usually the camera orbits around an object, but now the rotation seems to happen (atleast very close to) around the \"camera's origin\". Neither the input setting in \"User Preferences\", the pivot point selection nor Ctrl-Alt-Shift-C (as suggested on some forum) do anything to the issue."
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Toon VS Character VS Sprite I am hoping this is not a dumb question, but I have looked around and not knowing this is really bugging me. I have heard many people talk about a "Toon" or a "Character", and a few times of a "Sprite", to refer to their fictional characters they play in the game. I want to know if one of these are more correct than the other? I have heard more people and websites refer to them as Characters, rather than a 'toon', but what is the difference, if any?
|
Why do people call their characters "toons"? I've seen that in games like MMORPGs and the Diablo series, where the player has an "arsenal" of several characters, people refer to their characters as "toons". What is the origin of this term?
|
[
"Move the Add Favorite / Ignored Tags boxes to the top It seems that most people who use the ignored tags feature end up with a fairly long list of those tags. Although , it is sometimes necessary to add new ignored tags manually (typically when adding some-tag*). It would be a lot easier if the add box was above the long list of ignored tags rather than below. I suppose the same would apply to the favorites tags for consistency's sake.",
"The meaning of action The action $$S=\\int L \\;\\mathrm{d}t$$ is an important physical quantity. But can it be understood more intuitively? The Hamiltonian corresponds to the energy, whereas the action has dimension of energy × time, the same as angular momentum. I've heard the action being described as a measure of change, although I don't know how this description can be justified.",
"Condition on a,b and c satisfying an equation(TIFR GS 2017) Let $a,b,c$ be positive real numbers satisfying $$(1+a+b+c)\\left(1+\\frac{1}{a}+\\frac{1}{b}+\\frac{1}{c}\\right)=16,$$ then $a+b+c=3$. I thought about the application of the AM-GM-HM inequality, but in vain. I also thought about splitting 16 into factors and comparing but went nowhere. Any ideas. Thanks beforehand.",
"You're too clever a man to imagine this. The above sentence was , a man of excellent rhetorical skills. Since he said it, I doubt it's wrong, grammatically. But, I wonder if there is an explanation for this. Because adjectives always come after the article not before it. e.g. You're a clever man. How could this be, grammatically?",
"Hide a Subdomain from Google/Search Engine SEO Result?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
How to get String url contains or start with 'www'? i know how to get url regex of Url with 'http'. but what if i dont have 'http' and the url start with 'www'? How can i get the regex? String urlRegex = "((https?):((//)|(\\\\))+[\\w\\d:#@%/;$()~_?\\+-=\\\\\\.&]*)";
|
What is the best regular expression to check if a string is a valid URL? How can I check if a given string is a valid URL address? My knowledge of regular expressions is basic and doesn't allow me to choose from the hundreds of regular expressions I've already seen on the web.
|
[
"How to sample from a discrete distribution? Assume I have a distribution governing the possible outcome from a single random variable X. This is something like [0.1, 0.4, 0.2, 0.3] for X being a value of either 1, 2, 3, 4. Is it possible to sample from this distribution, i.e. generate pseudo random numbers upon each of the possible outcomes given the probability of that outcome. So if I wanted to know what the probability of getting a 2 is, the sampling operation may return 0.34 or something like that. The reason I ask is that I'm trying to implement an action selection policy for a reinforcement learning method based on a research paper. From what I gather from the paper, the author is able to sample the distribution by \"mapping the uniform distribution U[0,1] through cumulative probability density functions obtained by adaptive numerical integration\". From this he then samples the transition probabilities for each trial... I would be grateful for any info on this... Thanks in advance",
"Cyclic Quadrilateral Problems",
"I've got some photos with quite random names, but the dates (not exif, but when they were last edited) are correct. I'd like to rename them in that order, preferably so that the first photo is named 1.jpg and so on, but anything goes. How can I do that?",
"How do I activate Dauntless Cathar's ability? has the following ability: {1}{W}, Exile Dauntless Cathar from your graveyard: Put a 1/1 white Spirit creature token with flying onto the battlefield. Activate this ability only any time you could cast a sorcery. Please clarify. If the card is IN my hand, how can I exile if FROM the graveyard if it is not there? Did the writers mean SEND it to graveyard, or actually exile it? Confused, the writing does not make sense.",
"Is using 15 amp components on a 20 amp breaker against code?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
update not complete when I updating with sudo apt-get update , I got this: N: Ignoring file '20auto-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension W: The repository 'http://ppa.launchpad.net/lucid-bleed/ppa/ubuntu xenial Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. E: Failed to fetch http://ppa.launchpad.net/lucid-bleed/ppa/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found E: Some index files failed to download. They have been ignored, or old ones used instead. my question is: What is this error and how do I understand it. What should I do to solve this problems.
|
How can I fix a 404 Error when using a PPA or updating my package lists? PPA seems to be constantly offline. Whenever I use sudo apt-get update, this error is shown: W: Failed to fetch http://ppa.launchpad.net/ 404 Not Found How do I fix these errors?
|
[
"Adding Image to a Polygon",
"Let's say that I have a folder, within my Documents folder, that has files I want no one to access without a password. Is there a way to lock down that folder so that it's password protected / encrypted? In fact, is it possible to password-protect any individual folder?",
"What is the best way to explain how to choose between \"its\" and \"it's\"?",
"Money transfer from India to USA My daughter is a US Citizen. We (parents)are also planning to permanently settle in US. We will go their as Permanent Resident,as per US Law. We have a house here in India worth Rs.2 Crores. We want to sell it and take money with us. We have ordinary savings Bank account here in India. My US Citizen Daughter is a Income Tax payer. Now your advises are required as under: What are the routes to take money from India to US and our tax liabilities Can I gift this whole amount to my US Citizen Daughter or what is the maximum limit of Gift amount. What will be the tax liability on me and on my Daughter in case of Gift Whether I have to show it in my Income Tax Return or in my Daughter's Tax Return. What US Income Tax Laws says. What will be the procedure to send money as Gift to my Daughter. Will the money will go directly from my Bank Act.to my Daughter's Bank Account. Will there will be wire transfer from bank to bank Can I send money through other money sender Certified Companies also. Please advise. If there is something more on the subject to make me understand, please advise. Thanks,",
"Can anyone recommend a simple API that will allow me to use read a CSV input file, do some simple transformations, and then write it. A quick google has found which looks promising. I just wanted to check what others are using before I couple myself to this API."
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Does $\lim_{n\rightarrow\infty} (\frac{1}{n+a} + \frac{1}{n+2a} + \cdots + \frac{1}{n+na}) $ converge?
|
Let a be a positive number. Then $\lim_{n \to \infty}[\frac{1}{a+n}+\frac{1}{2a+n}+\cdots +\frac{1}{na+n}]$
|
[
"How do I use Moq to mock an extension method? I am writing a test that depends on the results of an extension method but I don't want a future failure of that extension method to ever break this test. Mocking that result seemed the obvious choice but Moq doesn't seem to offer a way to override a static method (a requirement for an extension method). There is a similar idea with Moq.Protected and Moq.Stub, but they don't seem to offer anything for this scenario. Am I missing something or should I be going about this a different way? Here is a trivial example that fails with the usual \"Invalid expectation on a non-overridable member\". This is a bad example of needing to mock an extension method, but it should do. public class SomeType { int Id { get; set; } } var ListMock = new Mock<List<SomeType>>(); ListMock.Expect(l => l.FirstOrDefault(st => st.Id == 5)) .Returns(new SomeType { Id = 5 }); As for any TypeMock junkies that might suggest I use Isolator instead: I appreciate the effort since it looks like TypeMock could do the job blindfolded and inebriated, but our budget isn't increasing any time soon.",
"How do I unlock Rosalina in Mario Kart Wii? How do I unlock Rosalina from Super Mario Galaxy as a playable racer in Mario Kart Wii?",
"How do I install HP P1102W printer driver",
"PHP XML how to output nice format",
"What does the '!!!' syntax mean in javascript?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Comma use: Two variables, A and B, were examined in separate models Grammarly recommends removing the second comma but for me it seems that this is needed. What would be the correct comma use in such a sentence? Two variables, fracture type and management method, were examined in separate models since certain fractures are treated with specific operation methods.
|
Comma use with nonessential appositives Sorry, I do not know the language terminology. Is this a case of nonessential appositive? Which of the following sentence has a correct comma use? Comma before "should" Importantly, two frail subgroups of stroke population, long-term residential care and cognitive impairment patients, should not be excluded from the rehabilitation. No comma before "should" Importantly, two frail subgroups of stroke population, long-term residential care and cognitive impairment patients should not be excluded from the rehabilitation.
|
[
"Navigation page buttons are orange everywhere On a similar note to this question: (which only covers two examples only on the profile page, this question mentions more places on and outside the profile page where this bug occurs). I've noticed that whenever there are these page buttons now, for example, the profile page, /questions and tag pages they are orange. Per the other post I'm assuming this is a bug but if it was intentional then this is a feature request to make them theme-able per site again.",
"Product of Consecutive Integers is Not a Power",
"How to prove useful property of logarithm of generating functional in QFT? How to prove that $\\ln(Z(J))$ generates only? I can't find the proof of this statement, and have only met its demonstrations for case of 2- and 4-point.",
"Does mathematics become circular at the bottom? What is at the bottom of mathematics? I am trying to understand what mathematics is really built up of. I thought mathematical logic was the foundation of everything. But from reading a book in mathematical logic, they use \"=\"(equals-sign), functions and relations. Now is the \"=\" taken as undefined? I have seen it been defined in terms of the identity relation. But in order to talk about functions and relations you need set theory. However, seems to be a part of mathematical logic. Does this mean that (naive) set theory comes before sentential and predicate logic? Is (naive)set-theory at the absolute bottom, where we can define relations and functions and the eqality relation. And then comes sentential logic, and then predicate logic? I am a little confused because when I took an introductory course, we had a little logic before set-theory. But now I see in another book on introduction to proofs that set-theory is in a chapter before logic. So what is at the bottom/start of mathematics, logic or set theory?, or is it circular at the bottom? Can this be how it is at the bottom? naive set-theory $\\rightarrow$ sentential logic $\\rightarrow $ predicate logic $\\rightarrow$ axiomatic set-theory(ZFC) $\\rightarrow$ mathematics (But the problem with this explanation is that it seems that some naive-set theory proofs use logic...) (The arrows are of course not \"logical\" arrows.) simple explanation of the problem: a book on logic uses at the start: functions, relations, sets, ordered pairs, \"=\" a book on set theory uses at the start: logical deductions like this: \"$B \\subseteq A$\", means every element in B is in A, so if $C \\subseteq B, B \\subseteq A$, a proof can be \"since every element in C is in B, and every element in B is in A, every element of C is in A: $C \\subseteq A$\". But this is first order logic? ($(c \\rightarrow b \\wedge b \\rightarrow a)\\rightarrow (c\\rightarrow a)$). Hence, both started from each other?",
"What is XLNC an example of? XS sounds like excess, B4 sounds like before, XLNC sounds like excellency, etc. What are these wordplays called?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
How do I check when my month ends? For Math stack exchange I recently got the 50 questions a month limit, just wondering how to check.
|
I noticed that I can only perform certain actions such as commenting a finite number of times in a given period of time. Obviously, rate limiting is in place to prevent accidental misuse or intentional abuse of certain features. Where else is rate limiting applied on Stack Exchange sites, and what are the limits?
|
[
"$\\lfloor x\\rfloor + \\lfloor y\\rfloor \\leq \\lfloor x+y\\rfloor$ for every pair of numbers of $x$ and $y$",
"I would like to run a script from the main ubuntu shell as a different user that has no password. I have full sudo privileges, so I tried this: sudo su -c \"Your command right here\" -s /bin/sh otheruser Then I have to enter my password, but I am not sure if that script is now really running under that user. How can I confirm that the script is really running under that user now?",
"'The average person' or 'an average person'?",
"(Disclaimer: I've read the and I do understand that this is bordering on off-topic since it's about consumer devices. However I hope that I've managed to make enough on-topic by asking about why it is the way it is, and what is the explanation from an electromagnetic point of view - in other words, what laws of electricity and what practical considerations have gone into these decisions). I recently bought a power tool and in its manual I found a few peculiar safety rules. I cannot see why they would be there, although reading up more it seems that they are commonplace. My understanding of electricity is limited (just about enough to be dangerous), so I'm hoping to expand it. :) The rules are: Don't use an extension cord longer than 25m. Considering this is an outdoors tool, this limitation is severely restrictive. The best explanation I've seen is that longer cables would simply have too high of a resistance and the tool wouldn't be able to operate at full power. But this argument doesn't convince me. The tool is rated at 2.4kW, and it's meant to be used with 220V AC power source, which means it uses about 11 amps of current. All the extension cords I've ever come across have at least 16A limitation, so there is quite a reserve still. In addition, the power has to travel much, much further to get to my house, and even after the meter it still takes probably close to those same 25m to get to the power outlet. Why only 25m after the outlet? The resistance of the cables isn't that big, is it? Don't daisy-chain extension cords. I suspect this is a variation of the above - don't exceed 25m; every connection adds additional contact resistance; water in the outdoors connections can be a problem - in general, it just adds risk. However, apart from the water in the contacts, the rest seems to me to be practically negligible. Is there really a significant contact resistance? Assuming that the extension cords are in a good shape. Make sure that the power cord is entirely unrolled. This is another odd one. My suspicion is that it has to do with inductive resistance. But is it really that strong? Wherever I've seen people actually wanting to create an electromagnet, it's pretty much hard work. You need a lot of neat, tightly-wound loops of wire. An extension cord has a lot of insulator around it, spacing the wires pretty far apart, and the loops are very chaotic. In addition, if that was a problem, why do exist? They're used especially when you need a very long extension cord, and you don't need to unroll them completely every time you want to use them. Solved: OK, I was off the mark. The correct answer (also a ) has to do with the wire heating up from being used close to its limits. When coiled together, the temperature can go pretty high and melt the cables. Not fun.",
"How do you left pad an int with zeros when converting to a String in java? I'm basically looking to pad out integers up to 9999 with leading zeros (e.g. 1 = 0001)."
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
At what element do we hit a wall because of the electrons relativistic speed? i.e. the speed of the outer shells can go no faster?
|
With the confirmation that elements 113, 115, 117, and 118 are indeed fundamental elements that are now to be named on the periodic table, the next question is: what is the highest atomic number possible for an element? Feynman had a go at this years ago, and he derived (according to my limited understanding) that above element-137 (informally denoted 'Feynmanium') the electrons in the nearest orbit about the nucleus would be traveling at a velocity greater than the speed of light. (Note I am considering the Bohr model of the atom in this question.) I wished to demonstrate to my friends why this is and I came up with the following explanation. According to Bohr's quantum condition, the angular momentum of an electron about the nucleus is given by $$ L=m_evr_n=n\hslash \implies r_n=\frac{n\hslash}{m_ev},$$ where $m_e$ is the mass of the electron, $v$ its velocity, $n$ an integer, and $r_n$ the radius of the $n$th possible orbit. Because we are concerned with the nearest orbit to the nucleus, $n=1$; and thus $$r=\frac{\hslash}{m_ev}.$$ Now, according to Coulomb's law, if the electron orbits about the nucleus the centripetal motion can be described by $$\frac{Ze^2}{4\pi\epsilon_or}=m_ev^2, $$ where $Z$ denotes the number of protons in the nucleus (the atomic number), and $e$ the elementary charge. Solving for $Z$ and substituting in $r$ from above yields $$Z=\frac{4\pi\epsilon_o \hslash v}{e^2}. $$ But what is $v$? Well, the maximum velocity an electron could ever have is the speed of light, and we wish to find the atomic number associated with an orbiting electron traveling at this speed, so we set $v=c$ and obtain our final result of $$Z=\frac{4\pi\epsilon_o\hslash c}{e^2}\approx 137.521,$$ which implies that for $Z>137$, the electrons at a position of $n=1$ in the Bohr model would have a velocity $>c$; and thus the highest atomic number achievable on the periodic table is 137. Again, I just want to make sure this is a correct method for deriving element-137 before presenting. Perhaps one could explain how relativity plays a role here. I know Feynman used the Dirac equation to get this result...so could anyone (subsequently of course) expatiate on this in a simplistic manner? Thanks!
|
[
"Do I need to pay in full for hostel reservation to show proof of accommodation for a Schengen visa? I am applying for a Schengen visa to travel to Germany and one of the requirements is showing proof of accommodation. I booked all my hostels via hostelworld.com, but only paid the non-refundable deposit (a couple of dollars for each place) instead of the entire amount. I intend to pay the rest of it on arrival at the hostel (or cancel it and go CouchSurfing, thus saving money). But for the visa application, will the non-refundable deposit be enough to show proof of accommodation? The reason I ask is, I emailed one of the hostels requesting a document showing my name and accommodation confirmation, and they replied saying they could only give me such a document once I pay in FULL. Is this how I'm supposed to book for all places? Have I been doing it wrong all this while (by only paying the tiny non-refundable deposit instead of full hostel fare)?",
"I have recently started using blender and one of the models I'm working on has dark shadows along edges. I started this model from scratch. I can't remember them being there when I first started the model, but I had trouble joining areas together and think I've pressed something I shouldn't have. However, there are so many options I'm not sure what I did. Here is an image of what I mean The one on the left has the shadow. As a test I started a new model, which is on the right in the image, and as you can see it doesn't have any shadows. Also, occluded vertices partially show through the model. Occlusion doesn't work properly. In orthogonal view small darkened triangles appear along the the edges. I don't really want to start the model again from scratch so any ideas on how to remove this shadow would be great. Thanks.",
"What is a NullPointerException, and how do I fix it? What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?",
"Was Grand Moff Tarkin under Darth Vader's control? In A New Hope, we see Grand Moff Tarkin ordering Darth Vader around. Also, it was . It's uncertain whether he knew . But considering that Darth Vader was a Sith Lord, and a Jedi before that, are we entirely sure he wasn't secretly controlling Tarkin through a Jedi Sith mind trick?",
"What happens when yellow light is passed through a prism? What happens when secondary colors like yellow,green and magenta are passed through a prism? Will it split into its component colors(for example yellow split into green and red)?If yes why we are observing secondary colors in the visible spectrum obtained when white light(composite light) is passed through a prism?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
** reference to a Variable
|
What does ** (double star/asterisk) and * (star/asterisk) do for parameters?
|
[
"Am I going to have trouble flying without my full name on the ticket?",
"Nouns can modify nouns: cat food, coffee cup, gold ring, laser surgery, flood insurance. It seems to me there are even cases where a noun sounds better than the corresponding adjective: sociology papers sounds a bit better than sociological papers. Some noun-noun combinations don’t work. You wouldn't say America gangsters or measurement spoons or greed crimes. If you spilled water on your keyboard you probably wouldn't call it a keyboard spill or even a water spill. Are there rules that tell which combinations are acceptable?",
"Will my passport number change when I renew it? I'm travelling soon but need to renew my passport. Given that I have to provide my passport number to the airline to book a flight, I was wondering if my passport number would change if I renew it. Or would the number stay the same and the expiry date just change? I'm asking specifically as an Australian citizen, although I suspect a 'common' answer (if there is a general way this works) might be useful too.",
"How to terminate a script?",
"'const int' vs. 'int const' as function parameters in C++ and C Consider: int testfunc1 (const int a) { return a; } int testfunc2 (int const a) { return a; } Are these two functions the same in every aspect or is there a difference? I'm interested in an answer for the C language, but if there is something interesting in the C++ language, I'd like to know as well."
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
There were similar question like . But my question is different I have family images, documents, some personal videos, etc (aound 500 GB). I have backups. So even if my laptop were stolen I can get all my data. But my data should not go to others. I have currently set a Windows password... But a thief can boot my laptop via Linux and then can access the files. So what can I do to protect my data even if my laptop is stolen?
|
Of course preventing them from getting stolen is the top priority, but invariably, someone is going to get jacked. What are some good practices to minimize the damage incurred when your PC is stolen? Given most of our PCs contain our entire lives, its frightening to know that all this information can be in someone else's hands. Some ideas i had (a bit paranoid, i admit). keep encrypted backups. Use truecrypt to have double encrypted (with strong password) volumes where you store your personal data. schedule Eraser to run every evening so that potential thieves couldn't undelete (and subsequently retrieve) sensitive data do all your banking in a virtual machine. Keep the virtual machine volume encrypted, and on a portable usb drive that you carry with you / keep in a safe. have applications that phone home (or hit something to leave an IP trace) upon connection to the internet (can someone suggest a good solution for this?) Does anyone have any other suggestions?
|
[
"Product of Non-Disjoint Cycles I am trying to learn how to find the product of non-disjoint cycles, as you may have guessed from the title. I have the basic idea, but I do not understand it entirely. I am trying to find $(1352)(256)$ and $(1634)(1352)$, multiplying from right to left. Please give me some hints/suggestions. Thank you.",
"A word to describe someone or something that is not last? I'm looking for a word that describes the state of not being last. A word that would apply to everything in an ordered list that is not the last thing in that list. From I wasn't the last person to finish the race. to (the phrasing is off, but it seems to illustrate my point) I was .. person to finish the race. One word that comes to mind is \"intermediate\", but I don't think that includes the first item in a list.",
"I've managed to create a custom keyboard layout for . Now that the keyboard is in a state that I can share it. I don't know how to make it a redistributable package.",
"Is it possible to paginate posts correctly that are random ordered? I found this problem on Wordpress Support and the topic unfortunately is now closed. I have this same issue... (read below) We have created a site where members can recommend things like favourite books, movie, songs, etc. For this problem I will use the Movies page as an example. The \"Movies\" page is ultimately a custom page template that asks wordpress to display a random list of ALL posts that have been given the category \"movies\" (category 31). It displays the title of these movies in random order using the code below. <?php $rand = new WP_Query(\"cat=31&showposts=-1&orderby=rand\"); while($rand->have_posts()) : $rand->the_post(); ?>\" rel=\"bookmark\" title=\"Permanent Link to <?php the_title_attribute(); ?>\"><?php the_title(); ?> <?php endwhile; ?> Problem is the list is getting rather long and I would like to split it up into two or more pages of about 10 movies each. To achieve this, I have used the code below. <?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts(\"cat=31&orderby=rand&showposts=10&paged=$page\"); while ( have_posts() ) : the_post() ?>\" rel=\"bookmark\" title=\"Permanent Link to <?php the_title_attribute(); ?>\"><?php the_title(); ?> <?php endwhile; ?> But there is a problem because although it splits up the data into pages of 10 posts each (paginates), it fails to include a new set of 10 posts on page 2 and so forth. In other words, because it is listing things in a random order, it just goes out and gets another 10 random posts (or in this case movie titles). As a result, we have some repeated movie title posts instead of a new set of 10 random movie titles on page 2, etc. My question is - what can I add to this code to get wordpress to \"remember\" which random 10 posts it included on page 1, and then have it get a new set of 10 posts to put on pages 2, 3, etc. until all posts are displayed. I would like there to be only one occurrence of a post per page when sorted randomly in sets of 10.",
"What's the difference between real and effective aperture? I understand that the simple idea that f-stop is focal length divided by aperture really applies to a simple single-glass lens, not the compound lens systems used to provide good image quality in modern lenses. I've heard that in this case, what matters is the ratio of the aperture as it appears through the front element. Why the front element, and not the back (which would be the \"point of view\" of the sensor or film)? What about for effects such as diffraction? Does the literal physical aperture size matter, or is it the effective size?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
My nana is Fully Puerto Rican & my mom is half what does that make me? Okay so my nana is fully Puerto Rican & all of my moms side of the family is Puerto Rican. My mom is half Puerto Rican & half black. What does that make me?
|
Determining ethnicity according to ancestry? My sister, cousins, and other relatives speculate that my mom's grandmother was Jewish (for various reasons). I've heard people say at times things like, for example, "I'm 50% German" or "I'm 25% Swedish." This has to do with their ancestry. But, how exactly is this calculated? Say for example that my mother's paternal grandmother was indeed 100% Jewish, what would that make me and my siblings, and how is it calculated?
|
[
"Excel macro to highlight all cells that match value in current cell",
"Atmospheric lighting in cycles How would I go a about making volume light beams? I have have tried various tutorials, but they must be for a older version. as applying them does seemingly nothing. A link to a functioning tutorial would be greatly appreciated as well. I don't have a picture or .blend to show, as my problem with atmospheric lighting does not pertain to any specific scene.",
"Blender 2.8 - How to access material nodes?",
"Cleanest way to toggle a boolean variable in Java? Is there a better way to negate a boolean in Java than a simple if-else? if (theBoolean) { theBoolean = false; } else { theBoolean = true; }",
"Linux Debian codenames I've got a few, quite silly, non-technical questions about giving to releases. Each Debian release has its unique codename, which is (so far) a characters' name from movies by . Here is list of all assigned codenames so far: release 1.1 is (Buzz Lightyear) - the spaceman, release 1.2 is - the tyrannosaurus, release 1.3.x is (Bo Peep) - the girl who took care of the sheep, release 2.0 is - the piggy bank, release 2.1 is (Slinky Dog) - the toy dog, release 2.2 is - Mr. Potato, release 3.0 is - the cowboy, release 3.1 is - the sergeant of the Green Plastic Army Men, release 4.0 is - the toy blackboard (Etch-a-Sketch), release 5.0 is - the toy binoculars, release 6.0 is - the name for the three-eyed aliens, release 7.0 is - the name of the rubber toy penguin with a red bow tie, release 8.0 is - the name of the yodelling cowgirl, release 9.0 is - a purple rubbery octopus toy at , release 10.0 is - 's pet dachshund (currently ). List of upcoming major Debian releases' codenames after : release 11.0 is - 's horse (currently ), release 12.0 is - intelligent worm toy with a built-in flashlight. There are also: special codename () which is symbolic link to codename which is currently unstable, which is symbolic link to codename which is currently stable, which is symbolic link to codename which is currently testing. The list of Toy Story is quite but at some time, there will be no more characters' names to assign. My questions are: What codenames will be assigned if we run out of characters' names? Who decides what is codename of next release (please don't answer ambiguously like: 'community')? How many releases' names are planned ahead? BTW: Interesting quote from : The of using Toy Story names was by who was, at the time, the Debian Project Leader and was working also at , the company that produced the movies. by (: )."
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Or: how do statements follow from other statements? Consider: All turtles have shells (s1), Ricardo is a turtle (s2), therefore Ricardo has a shell (s3). Why does s3 follow?
|
I am having trouble understanding what defines Entailment operator. On Mathoverflow I posted this question on what I perceive to be . Consider: : P therefore Q P Therefore, Q My question is could we have arbitrarily defined it such as: P therefore Q P Therefore, P However, if an advanced civilization receives information in the form of following nested structures/containers or packets, how will they interpret Modus Ponens if in an alien land Modus Ponens is not defined? Therefore, it raises the validity of MP. How do we define the implication or entailment operator? Because if we use an argument that relies on implication or entailment operator ipso facto, then it is trivial that logic is circular. Is there a flaw in my rationale?
|
[
"$$\\sum_{k=1}^{\\infty} \\frac{1}{k^{\\ln k}}.$$ I have some problems with this sum, I have tried most of the common methods, such as the ratio/root test, integral test, etc. I do believe it looks like a problem easily solvable by a direct comparison with some p-series, however, I do not know how to formulate the inequality. I did try using the common fact that $\\ln(x) \\ll x^p$ for large $x$ but that of course only bounds it from below with a convergent series saying nothing about ours. Also I tried rewriting the 'summand' as $e^{\\ln(k^{\\ln k})}=e^{\\ln k \\cdot \\ln k}$ but this did not really yield anything. Any answer or hint would be greatly appreciated.",
"Wrapping a mesh around point cloud with cavities",
"One-dimensional [Noetherian] UFD is a PID",
"Is there any method to close connection similar to for in WordPress? Is it not necessary to close connection for global $wpdb?",
"$(a,b) \\mathbin\\# (c,d)=(a+c,b+d)$ and $(a,b) \\mathbin\\&(c,d)=(ac-bd(r^2+s^2), ad+bc+2rbd)$. Multiplicative inverse? Let $r\\in \\mathbb{R}$ and let $0\\neq s \\in \\mathbb{R}$. Define operations $\\#$ and $\\&$ on $\\mathbb{R}$ x $\\mathbb{R}$ by $(a,b) \\mathbin\\#(c,d)=(a+c,b+d)$ and $(a,b) \\mathbin\\&(c,d)=(ac-bd(r^2+s^2), ad+bc+2rbd)$ as addition and multiplication, respectively. Do these operations form a field? I have shown that every axiom of the field is satisfied except for the \"existence of multiplicative inverses\" axiom. This is where I need help. We either need to show that this axiom fails and so we don't have a field or that the axiom $aa^{-1}=1$ is satisfied for every $a\\neq 0 \\in \\mathbb{R}$ The multiplicative identity in this problem is $(1,0)$. Any solutions or hints are greatly appreciated."
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
I read in a physics today paper, The electron can have nonvanishing EDM only if nature violates symmetry under time reversal (T) and under the combined operations of charge conjugation (C), which replaces particle by antiparticle (as we all know), and parity inversion (P). I checked . So it will be nice if you can show me qualitatively and quantitatively about the above mentioned point. Note: Simplicity in explanation is always nice. (I don't have much idea of these big words)
|
I am wondering if the mass density profile $\rho(\vec{r})$ has been characterized for atomic particles such as quarks and electrons. I am currently taking an intro class in quantum mechanics, and I have run this question by several professors. It is my understanding from the viewpoint of quantum physics a particle's position is given by a probability density function $\Psi(\vec{r},t)$. I also understand that when books quote the "radius" of an electron they are typically referring to some approximate range into which an electron is "likely" to fall, say, one standard deviation from the expectation value of its position or maybe $10^{-15}$ meters. However it is my impression that, in this viewpoint, wherever the particle "is" or even whether or not the particle "had" any position to begin with (via the Bell Inequalities), it is assumed that if it were (somehow) found, it would be a point mass. This has been verified by my professors and GSIs. I am wondering if its really true. If the particle was truly a point mass then wherever it is, it would presumably have an infinite mass density. Wouldn't that make electrons and quarks indistinguishable from very tiny black holes? Is there any practical difference between saying that subatomic particles are black holes and that they are point masses? I am aware of such problems as Hawking Radiation although at the scales of the Schwarchild radius of an electron (back of the envelope calculation yields $\tilde{}10^{-57}$ meters), would it really make any more sense to use quantum mechanics as opposed to general relativity? If anyone knows of an upper bound on the volume over which an electron/quark/gluon/anything else is distributed I would be interested to know. A quick Google Search has yielded nothing but the "classical" electron radius, which is not what I am referring to. Thanks in advance; look forward to the responses.
|
[
"When a permanent magnet attracts some object, lets say a steel ball, energy is converted into for instance kinetic energy and heat when attraction happens, and they eventually collide. Does this imply that energy is drawn from the magnetic field and the magnet is depleted, making it weaker and weaker for each magnetic attraction performed? (if the answer requires Quantum Mechanical explanations, please elaborate :))",
"Firstly, this is a homework problem so please do not just give an answer away. Hints and suggestions are really all I'm looking for. I must prove the following using mathematical induction: For all $n\\in\\mathbb{Z^+}$, $1+2+2^2+2^3+\\cdots+2^n=2^{n+1}-1$. This is what I have in my proof so far: Proof: Let $p\\left(n\\right)$ be $\\sum_{j=0}^n 2^j=1+2+2^2+\\cdots+2^n=2^{n+1}-1$. Then $P\\left(0\\right)$ is \\begin{align} \\sum\\limits_{j=0}^0 2^j=1=2^1-1.\\tag{1} \\end{align} Hence $P\\left(0\\right)$ is true. Next, for some $k\\in\\mathbb{Z^+}$, assume $P\\left(k\\right)$ is true. Then \\begin{align} \\sum\\limits_{j=0}^{k+1}2^j&=\\left(\\sum\\limits_{j=0}^k 2^j\\right)+2^{k+1}\\tag{2}\\\\ &=2^{k+1}-1+2^{k+1}\\tag{3} \\\\ &=2\\cdot 2^{k+1}-1\\tag{4}\\\\ &=2^{k+2}-1\\tag{5}\\\\ &=2^{\\left(k+1\\right)+1}-1.\\tag{6} \\end{align} Therefore, $P\\left(n\\right)$ holds for all $n$.$\\;\\;\\;\\;\\blacksquare$ Is everything right? My professor went over the methodology in class quite fast (and I had a bit too much coffee that night) and I want to make sure I have it down for tomorrow night's exam.",
"I'm working on a large c++ system that is has been in development for a few years now. As part of an effort to improve the quality of the existing code we engaged on a large long-term refactoring project. Do you know a good tool that can help me write unit tests in C++? Maybe something similar to Junit or Nunit? Can anyone give some good advice on the methodology of writing unit tests for modules that were written without unit testing in mind?",
"What is the integral of 1/x? What is the integral of $\\frac{1}{x}$? Do you get $\\ln(x)$ or $\\ln|x|$? In general, does integrating $f'(x)/f(x)$ give $\\ln(f(x))$ or $\\ln|f(x)|$? Also, what is the derivative of $|f(x)|$? Is it $f'(x)$ or $|f'(x)|$?",
"Why are date-based hats awarded too early? I just got the hat which states \"post or vote on December 21\". Does SE have a time machine now?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
When is the 1st sign that Harry shows any affection for Ginny? So any of ya'll that don't know Harry marries Ginny But I was wondering what was the 1st sign that Harry showed feelings for Ginny.
|
When and why did Harry Potter fall in love with Ginny Weasley? In the earlier HP books it's pretty clear that Harry and Ginny get on quite well as friends (and that she's rather smitten with him) but I'm struggling to identify when and why Harry started to like Ginny in a romantic fashion.. I feel like it is simply presumed that Harry suddenly likes Ginny Weasley back, but do the books actually describe when and why he started to like her that way? No speculation, please. Canon answers only.
|
[
"I would like to convert tab to spaces in gVim. I added the following line to my _vimrc: set tabstop=2 It works to stop at two spaces but it still looks like one tab key is inserted (I tried to use the h key to count spaces afterwards). I'm not sure what should I do to make gVim convert tabs to spaces?",
"Correct formula for LED current-limiting resistor?",
"What is PECS (Producer Extends Consumer Super)?",
"$m$ is the Lebesgue measure. I was thinking that: $\\Bbb Q$ is dense and $m(\\Bbb Q)=0<1$ but it fails to be open, but maybe I could construct an open set from this fact, or also using that $(0,1)$ is a dense and open subset but $m(0,1)=1$. Any hints or ideas will be very appreciated. Thanks.",
"Is there any practical difference between saving at 300ppi or 72ppi? I often see statements in discussions about web displayed image quality that go something like this: \"I only upload pictures at 72 dpi and 1200 pixels on the long edge, so if someone copies and prints the image it won't look as good as if it were 300 dpi.\" What? Have I missed something here? Does an image edited and saved/exported with 1200x800 pixels at 300 ppi look any different online than the same image saved/exported with 1200x800 pixels at 72 ppi? Other than the metadata regarding ppi, is there any difference in the two images at all? If so, what is the difference? If I tell my printer to print the images at 4R (4X6 inches) will there be any difference at all in how the printer creates a print from the 1200x800 @ 300 dpi image versus the 1200x800 @ 72 dpi image?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Use \makeatletter \@hello \makeatother in footnote I have an issue with a new command I use, to create a new template for a workgroup. In my main document, I create a new commant like below, to allow my users to define a new word I will put in the front page of their report. I do so, because I don't want them to mess up the huge amount of code in the frontpage. % create the new command \makeatletter \newcommand\hello[1]{\def\@hello{#1}} \makeatother % later one, they use this \hello{hello world} In my front page document, this is called in a footnote like below : \let\thefootnote\relax\footnote{{ \makeatletter \@hello \makeatother } The result of this (via pdflatex in texmaker) is that there is hello wrote in the footnote instead of hello world. Note, when I put the \makeatletter\@hello\makeatother in the main text, it works. Do I have to define the full footnote in my new command ? Thx in advance
|
Why doesn't \makeatletter work inside \newcommand? After hours of banging my brain against my skull, I narrowed down an issue I'm having to the fact that \makeatletter doesn't work inside \newcommand. Commands that I call after \makeatletter are registered as undefined, as if \makeatletter didn't do anything. Why is this the case? In the example below, I define two commands. Calling one of them from the document body causes the undefined error, while the other doesn't. \documentclass[11pt]{book} \usepackage{kvsetkeys} \newcommand{\commandThatFails}{ \makeatletter \comma@parse{}{} \makeatother } \makeatletter \newcommand{\commandThatWorks}{ \comma@parse{}{} } \makeatother \begin{document} Hi there. \commandThatFails \commandThatWorks \end{document}
|
[
"Difference between \"speed up something\" and \"speed something up\" Both seem to be in common usage, but is there a nuanced difference about when one is more appropriate than the other? Thanks.",
"I have an HSA that allows me to invest the money in the account in the stock market. Any money not invested is available to be used for health expenses. I currently have ~50% of the total balance of the HSA invested, with the other ~50% on hand for expenses. I've run into a situation where the ~50% on hand for expenses does not cover all of my current expenses. To cover the remaining costs, should I sell off my the HSA investments or should I leave those as is and use money from my savings account? I'm trying to determine if the tax advantages of the HSA combined with the returns the invested money is seeing is worth me leaving that money alone - and instead, take the money from my savings account to cover the costs.",
"That's all they give you. I tried putting it into the linear approximation equation of: $$ f(a)+f'(a)(x-a) $$ but I get almost the same value as $64.07^{2/3}$, which is around $16.0116$. Just not sure how else to go about doing this problem. Thanks.",
"jsp:useBean scope",
"Cardinality of $\\mathbb{R}^\\mathbb{R}$ by diagonal argument I want to prove that the set of all real functions $\\mathbb{R}^\\mathbb{R}$ has a higher cardinality than the real numbers $\\mathbb R$, by Cantor's diagonal argument. I'm having difficulties with approaching this problem. What I'm looking for is a hint in the right direction. I've seen an example where it is shown that the power set $2^S$ of a countable set $S$ is uncountable, by the diagonal argument."
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Inquiry for Ph.D admissions in European countries I want to pursue a Ph.D in Chemistry and the destinations of my choice are Germany, Switzerland, Netherlands and Sweden. Can anyone please tell me the scholarships and fellowships available to which an Indian student can apply in these countries? (I know of a DAAD fellowship for Germany) I would also love to know if there is any centralized admission process to these countries (similar to US)? Thank you
|
PhD in Europe without scholarship from non-European homeland I earned my bachelors in Computer Engineering from my home country. I am now enrolled in a Physics masters program in the same university. Next year I plan to find a different university in Europe in which to enroll in a Computer Engineering PhD program. However I doubt that I'll receive any scholarships from my homeland's government when studying abroad. Can I survive if I start to live out of my own my pocket? Is that enough to live in Europe just for a half year. Are there any available funds that can supplement my income such as a TA/RA's salary? My main question is: How to survive if I want to study PhD in Europe without any scholarship from my home country? Which country might provide sufficient support for a foreigner to study at graduate level? I am interested to Germany and Finland but any European country would be acceptable!
|
[
"Difference Boolean modifier. How do I get it to work with my mesh? I want to make a screw head, but I can't get the cross in the screw head; the Boolean modifier doesn't work. Link:",
"I am looking for a YA book about a boy who learns to use powers from a mind-adept, in a seemingly abandoned house. The adept helps him open his mind by using a cube. One of his powers, I believe, is to go into dreams of people that he knows. He helps his young female neighbor friend by doing this, opening a door in her mind. He tries to open the mind-door of a local older bully, but finds out the young man can't be helped because he has been abused mentally and physically. I don't believe the book I read is past 1995. It might have the word \"adept\" in it.",
"How can I provide anonymous user to access my REST GET API without providing any auth information? The Drupal 8 REST UI configuration page asks me to select Authentication providers for GET method; otherwise, it doesn't allow me to export the REST request. How can I provide anonymous user to access my REST GET API without providing any auth information?",
"Access POST values in Symfony2 request object",
"In a Cycles scene I have an equirectangular image serving as an Environment Texture background (set in the World settings). I have a glossy object being partially lit by the Environment Texture, as well as getting reflections from it. Is there a way I can exclude the Environment Texture from affecting the glossy object completely? I want the image as background wallpaper only. The glossy object should be affected by other objects and lights within the scene: everything except the Environment Texture."
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
I have qtsixa installed but it is no longer of use to me. I didn't use apt-get so I can't remove it using that. any way to remove it?
|
Hey all I downloaded this file () but can't seem to be able to uninstall it. I tried looking online as well as the README file but there is only instruction for installing, not uninstalling the package. Attempted solutions: sudo apt-get remove laptop_mode returned E: Unable to locate package laptop_mode but when I type in laptop_mode I do get Unhandled kernel version: 3.13 ('uname -r' = '3.13.0-32-generic') Is there any way I can uninstall laptop-mode-tools?
|
[
"Could you please help me computing $\\Big\\lfloor\\underbrace{\\sqrt{2017+\\sqrt{2017+...+\\sqrt{2017}}}}_\\text{2017 roots}\\Big\\rfloor$?",
"Let $x,y,z>0$ and $x+y+z=1$, then find the least value of ${{x}\\over {2-x}}+{{y}\\over {2-y}}+{{z}\\over {2-z}}$ Let $x,y,z>0$ and $x+y+z=1$, then find the least value of $${{x}\\over {2-x}}+{{y}\\over {2-y}}+{{z}\\over {2-z}}$$ I tried various ways of rearranging and using AM > GM inequality. But I couldn't get it. I am not good at inequalities. Please help me. I wrote $x$ as $1-(y+z)$ and I took $x+y$ as $a$ and the others as $b$ and $c$. And I am trying.",
"Get selected text from a drop-down list (select box) using jQuery",
"If I could stop ALL motion would I stop time? I've never really understood time. Time is not a force. It isn't energy or matter. Time doesn't MAKE anything do anything. Time doesn't make a clock tick (motion or batteries do). Time doesn't make the earth revolve around the sun (motion/gravity does). I don't think time exists. People say time is used as a form of measurement but aren't we just measuring movement? Even atomic clocks measure the movement of electrons that orbit an atom's nucleus as they \"jump\" back and forth between energy states. So my question is if I were to stop ALL motion (even movement of electrons that orbit an atom's nucleus) would I stop time? Is time just masquerading as the measurement of motion? EDIT: This question is not a duplicate of \"Does time freeze at Absolute Zero?\" Because I am NOT talking about temperature. I am speaking about the motion of ALL things. I am asking if ALL things (photons, energy, matter, forces) stop moving would time stand still? I would have to say yes it would. If ALL motion were to stop for a million years and then start again no one would even know. Atomic clocks wouldn't even miss a step.",
"Let $X\\subset \\mathbb{R}$ Lebesgue measurable, $|X|<|\\mathbb{R}|$, is it true that $X$ is null? Let $X\\subset \\mathbb{R}$ Lebesgue measurable, $|X|<2^{\\aleph_0}$, is it true that $X$ is null? Of course I am not assuming the Continuum Hypothesis. EDIT: It might be helpful to know that all Borel measurable sets have cardinality either $\\aleph_0$ or $2^{\\aleph_0}$. Then a measurable set of cardinality strictly between those two must be Lebesgue but not Borel measurable."
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
How to cite subfigure numbers for caption of the parent figure? I am trying to cite subfigure numbers in the caption of the parent figure as shown in MWE. It works but I always get the following error which I cannot remove: Error Line 15: Argument of \caption@ydblarg has an extra }. [...f{fig:sub_fig_B} B \subref{fig:sub_fig_C}}] Line 15: Paragraph ended before \caption@ydblarg was complete. [...f{fig:sub_fig_B} B \subref{fig:sub_fig_C}}] MWE \documentclass{elsarticle} \usepackage{graphicx} \usepackage{subfig} \begin{document} \begin{figure*} \centering \subfloat[]{\label{fig:sub_fig_A} \includegraphics[width=67mm] {example-image-a}} \subfloat[]{\label{fig:sub_fig_B} \includegraphics[width=67mm] {example-image-b}} \\ \subfloat[]{\label{fig:sub_fig_C} \includegraphics[width=67mm] {example-image-c}} \subfloat[]{\label{fig:sub_fig} \includegraphics[width=67mm] {example-image}} \caption{Caption for \subref{fig:sub_fig_A} A \subref{fig:sub_fig_B} B \subref{fig:sub_fig_C}} \label{fig:test} \end{figure*} \end{document} How to remove this error?
|
Referencing subfigures in main caption (with \subfloat and \subref) I've used subfloat to include subfigures, with their relevant labels but with empty captions. what I'm going to do is to reference these figures with \subref in the main caption of the figure. But what I get is only ?? signs in the caption [main caption]. I can't figure out what's the problem. this is what I have: \begin{figure} \centering \subfloat[][] { \includegraphics[scale=0.55]{signal} \label{signal_model} } \subfloat[][] { \includegraphics[scale=0.55]{amplitude} \label{amplitude_mod} } \caption{phase noise variability: \subref{signal model} some text \subref{amplitude_mod} some other text} \end{figure}
|
[
"How do I free up more space in /boot? My /boot partition is nearly full and I get a warning every time I reboot my system. I already deleted old kernel packages (linux-headers...), actually I did that to install a newer kernel version that came with the automatic updates. After installing that new version, the partition is nearly full again. So what else can I delete? Are there some other files associated to the old kernel images? Here is a list of files that are on my /boot partition: :~$ ls /boot/ abi-2.6.31-21-generic lost+found abi-2.6.32-25-generic memtest86+.bin abi-2.6.38-10-generic memtest86+_multiboot.bin abi-2.6.38-11-generic System.map-2.6.31-21-generic abi-2.6.38-12-generic System.map-2.6.32-25-generic abi-2.6.38-8-generic System.map-2.6.38-10-generic abi-3.0.0-12-generic System.map-2.6.38-11-generic abi-3.0.0-13-generic System.map-2.6.38-12-generic abi-3.0.0-14-generic System.map-2.6.38-8-generic boot System.map-3.0.0-12-generic config-2.6.31-21-generic System.map-3.0.0-13-generic config-2.6.32-25-generic System.map-3.0.0-14-generic config-2.6.38-10-generic vmcoreinfo-2.6.31-21-generic config-2.6.38-11-generic vmcoreinfo-2.6.32-25-generic config-2.6.38-12-generic vmcoreinfo-2.6.38-10-generic config-2.6.38-8-generic vmcoreinfo-2.6.38-11-generic config-3.0.0-12-generic vmcoreinfo-2.6.38-12-generic config-3.0.0-13-generic vmcoreinfo-2.6.38-8-generic config-3.0.0-14-generic vmcoreinfo-3.0.0-12-generic extlinux vmcoreinfo-3.0.0-13-generic grub vmcoreinfo-3.0.0-14-generic initrd.img-2.6.31-21-generic vmlinuz-2.6.31-21-generic initrd.img-2.6.32-25-generic vmlinuz-2.6.32-25-generic initrd.img-2.6.38-10-generic vmlinuz-2.6.38-10-generic initrd.img-2.6.38-11-generic vmlinuz-2.6.38-11-generic initrd.img-2.6.38-12-generic vmlinuz-2.6.38-12-generic initrd.img-2.6.38-8-generic vmlinuz-2.6.38-8-generic initrd.img-3.0.0-12-generic vmlinuz-3.0.0-12-generic initrd.img-3.0.0-13-generic vmlinuz-3.0.0-13-generic initrd.img-3.0.0-14-generic vmlinuz-3.0.0-14-generic Currently, I'm using the 3.0.0-14-generic kernel.",
"How prove this diophantine equation $x^2+y^2+z^3=n$ always have integer solution show that: For any postive ineteger $n$,then the equation $$n=x^2+y^2+z^3$$ always have integer solution My idea: such as $n=1$,then we have $$1=0^2+0^2+1^3$$ $$2=0^2+1^2+1^3$$ $$3=1^2+1^2+1^3$$ $$4=2^2+0^2+0^3$$ $$5=1^2+2^2+0^3$$ $$6=1^2+2^2+1^3$$ $$7=2^2+2^2+(-1)^3$$ $$8=0^2+0^2+2^3$$ $$9=1^2+0^2+2^3$$ $$10=1^2+1^2+2^3$$ $\\cdots\\cdots\\cdots$ But for general $n$, How prove it?",
"Finding the value of $\\int_0^{\\pi/2} \\frac{dt}{1+(\\tan(x))^{\\sqrt{2}}}$ The problem: Find the value of $\\displaystyle\\int_0^{\\pi/2} \\frac{dx}{1+(\\tan(x))^{\\sqrt{2}}}$ I tried a few different substitutions and the closest I got to an okay looking integral is $$\\int_0^\\infty \\frac{t^2 \\, dt}{t^{1/\\sqrt{2}}(1+\\sqrt{t})},$$ which still looks scary. How do I approach this integral?",
"Reward for Passing Review tests? Just wanted to see what the community thought of adding a reward to passing the review tests? Maybe a 1 point reward? I know seeing the tests in the review area has helped me be extra careful when reviewing, but I thought perhaps a little boost in incentive would be cool.",
"In Minecraft, you can only build up to a certain height limit (which is something around 256). However, if a player uses mods/hacks to go above the limit (Or simply goes into Creative Mode), then they can go above the height limit. How high is the player height limit in Minecraft? Is there even a limit to it? I've tried testing this myself, but my thumb started hurting when I reached Y= 1000."
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Are $\sum_{i=1}^{n} \xi_i / i$ and $\max\xi_n$ equally distributed? Let the random variables $\xi_1, \xi_2, \ldots, \xi_n$ be independent, have an exponential distribution and expectation of each is 2. Are $\sum_{i=1}^{n} \xi_i / i$ and $\max\xi_n$ equally distributed?
|
Showing 2 Distributions are the Same Let $X_1, X_2, \dots$ be i.i.d. exponentially distributed RVs. For $n = 1,2,\dots$ consider: $Y_n := \max(X_1, X_2, \dots, X_n)$ $U_n := \sum_{i=1}^{n}\frac{X_i}{i}$ Show that $Y_n$ and $U_n$ have the same distribution What I've tried: $P(Y_n<y)= P(X_i<y)^n = (1- e^{\lambda y})^n => P(Y_n=y) = n(1- e^{\lambda y})^{n-1}$ But I get stuck with $U_n$. I tried an MGF, $U_n$ evaluates nicely but then $Y_n$ gets messy. Any thoughts?
|
[
"A question in Complex Analysis $\\int_0^{2\\pi}\\log(1-2r\\cos x +r^2)\\,dx$ My problem is to integrate this expression: $$\\int_0^{2\\pi}\\log(1-2r\\cos x +r^2)dx.$$ where $r$ is any constant in $[0,1]$. I know the answer is zero. Can you explain you idea to me or just prove that? Maybe you will use the \"Cauchy integral theorem \".",
"I have Ubuntu on my MacBook 2007 with a Spanish keyboard, on MacOS the @-sign was typed using Alt (Option) + 2, but on Ubuntu I have no idea. I have to copy and paste it every time. How do I type an at sign?",
"Hero who is against enhancements but has some himself",
"Is it possible for reviewers to mistakenly reject a quality paper?",
"How can I do the following in Git? My current branch is branch1 and I have made some local changes. However, I now realize that I actually meant to be applying these changes to branch2. Is there a way to apply/merge these changes so that they become local changes on branch2 without committing them on branch1?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
I want to create a List of strings in C#. These strings all come from this one: <Functie><Titel><![CDATA[voorzitter]]></Titel></Functie><Functie><Titel><![CDATA[planner]]></Titel></Functie><Functie><Titel><![CDATA[barman1]]></Titel></Functie><Functie><Titel><![CDATA[barman2]]></Titel></Functie><Functie><Titel><![CDATA[barman3]]></Titel></Functie> This string come from a soap respons. Here is my request: using (Stream stream = request.GetRequestStream()) { soapEnvelopeXml.Save(stream); } using (WebResponse response = request.GetResponse()) { using (StreamReader rd = new StreamReader(response.GetResponseStream())) { string soapResult = rd.ReadToEnd(); string toBeSearched = "<tns:VoorkeurListResponse>"; int ix = soapResult.IndexOf(toBeSearched); if (ix != -1) { string code = soapResult.Substring(ix + toBeSearched.Length); code = code.Substring(0, code.IndexOf("</tns:VoorkeurListResponse>")); List = code; System.Diagnostics.Debug.WriteLine(List); System.Diagnostics.Debug.WriteLine(soapResult); } } } } I want to get the data that is between the brackets, so my List would be: voorzitter, planner, barman1, barman2, barman3. Could somebody help me with this problem?
|
Is there a simple method of parsing XML files in C#? If so, what?
|
[
"Does each new Horcrux take half of Voldemort's remaining soul, thus taking a smaller piece each time? When you commit a murder and create a Horcrux, you split your soul. It’s been talked a lot about Voldemort splitting his soul in 7/8 parts. But I think his remaining soul was not 1/7 or 1/8 but far more weaker than that because he did not create all Horcruxes at once. When he created his first Horcrux, his soul was split into 50-50 (diary). But when the second Horcrux was created, it was created by Voldemort only and the first Horcrux soul should have remained intact. Hence it would have been a 25-25 split of Voldemort's main soul. And so on for every split. Am I right?",
"extract lines that match a list of words in another file I have file 1 which have those lines: ATM 1434.972183 BMPR2 10762.78192 BMPR2 10762.78192 BMPR2 1469.14535 BMPR2 1469.14535 BMPR2 1738.479639 BMS1 4907.841667 BMS1 4907.841667 BMS1 880.4532628 BMS1 880.4532628 BMS1P17 1249.75 BMS1P17 1249.75 BMS1P17 1606.821429 BMS1P17 1606.821429 BMS1P17 1666.333333 BMS1P17 1666.333333 BMS1P17 2108.460317 BMS1P17 2108 And file 2 have a list of words: ATM BMS1 So, the output will be like this: ATM 1434.972183 BMS1 4907.841667 BMS1 4907.841667 BMS1 880.4532628 BMS1 880.4532628 I know it's really a duplicate question, but I tried all types of grep and sed and awk, maybe it will works with you guys with this tiny example but I have a very huge file > 1M lines and all previous way doesn't help it return part of the lines that containing those words although there are other words in file 2 that matches the lines from file 1",
"Virtual Box Won't Accept .ISO To Install OS",
"Seedable JavaScript random number generator",
"Is it possible to change the Environment of a parent process in Python? In Linux When I invoke python from the shell it replicates its environment, and starts the python process. Therefore if I do something like the following: import os os.environ[\"FOO\"] = \"A_Value\" When the python process returns, FOO, assuming it was undefined originally, will still be undefined. Is there a way for the python process (or any child process) to modify the environment of its parent process? I know you typically solve this problem using something like source script_name.sh But this conflicts with other requirements I have."
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Windows 10 installation driver not found after using dd I wrote Windows 10 iso file to a usb using dd. This is the command I used: sudo dd if=windows.iso of=/dev/sdb1 bs=1MB conv=fdatasync status=progress The computer that I want to reinstall Windows 10 on currently has Ubuntu 18.04. I formatted my USB file type to be FAT before I wrote to it. When I went into the boot menu, the installation starts up, but it notified me of a missing driver. I tried browsing through the system to find the driver but it was no use. Then I thought this was a file type issue, so I formatted the USB file type to NTFS and rewrite the Windows iso to it again. The same issue occurred. I opened up Startup Disk Creator, but it doesn't even detect the Windows iso. Is this a common issue with trying to create a Windows boot USB with dd? Will I need to use a third-party program for it?
|
How can I create a Windows bootable USB stick using Ubuntu? I'd like to create a Windows bootable USB stick, but I don't have a Windows machine with me at the moment to do so. How could I achieve the same using Ubuntu?
|
[
"Detect when an iOS app is launched for the first time? How do I detect when an iOS app is launched for the first time?",
"Centering \\vdots in a system of many equations I have a system of equations with an arbitrary number of equations (k). I'd like to use \\vdots to compactly describe the system, like so: \\begin{align*} R(-1) &= \\sum_{i=1}^m A(i)R(i-1) \\\\ R(-2) &= \\sum_{i=1}^m A(i)R(i-2) \\\\ &\\vdots \\\\ R(-k) &= \\sum_{i=1}^m A(i)R(i-k) \\end{align*} I'd like the dots, however, to be centered with = or the entire equation. Is there an elegant way of centering a column or row with AMSMath? I'm currently using an unholy combination of whitespace operators (\\; \\, etc.) to get the job done.",
"What are the different endings in Dishonored?",
"Basis for Skew Symmetric Matrix I'm trying to find a basis for the kernel for the following mapping: Considering the linear transformation T: $M_{33} \\rightarrow M_{33} $ defined by $T(A) = .5(A + A^T)$. I know that this is basically asking for the basis under the condition that $T(A)=0$ which means that $A+A^T=0$ so $A^T = -A$. I found that matrices that fit this condition are Skew Symmetric Matrices. However, I'm not sure how to find the basis for the kernel of these matrices.",
"Running Windows 7 I'm trying to boost the startup speed of my computer and I'm going through \"msconfig\" and \"services.msc\" to disable some applications from starting up automatically when the computer turns on. There are some good sites that document the entries found in the \"Processes\" tab of the task manager. You can find out if they are safe to kill, who the manufacturer is, and what the process in question is used for. Are there any sites that list startup processes &| services that are safe to kill? For example, there is an entry in msconfig that just says \"Computer Browser\" - pretty vague, but seems like something to not kill. On the other hand, there is an entry in msconfig that says \"Extensible Authentication Protocol\" - pretty specific and seems like it shouldn't be killed, but how can I know for sure? Does anyone know if there are any websites documenting the \"killable\" items listed in both msconfig & services.msc?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
I'm looking for a short story that I believe was written by Asimov back in the 50's or 60's. I read it in an anthology I checked out of the library back in the 80's or 90's. The story is like a stone skipping across time. At each point in time two characters play out the same situation of asking what is going to happen in the future. In each instance one person leaves the encounter to further the human race. In the last encounter as the last star in the universe is about to burn out the characters wonder what will happen next and then there is a big bang.
|
I am looking to identify a story that I read around 2001 (it is probably much older). Someone showed me the story on pages printed from the internet, and it was attributed to Isaac Asimov (although I cannot state that is the true author). The story is told in glimpses at different points of time in the future. In each glimpse, humans are asking a more and more "intelligent" computer how to prevent the universe from collapsing into a singularity in the future, and the computer states it needs more computational power and resources to solve this problem. At some point, man becomes one with the computer, and the computer exists in hyperspace (or subspace?). In the final glimpse, it is the end of time and the universe is collapsing into a singularity. At the instant the universe reaches the singularity, the computer figures out how to prevent it and says "Let there be light" and the universe begins to expand again. Is anyone familiar with this story?
|
[
"I'm using terminal-ide which is basically a terminal for android with all sorts of utilities. One is able to create bash scripts for example. Is there a way to create an icon on the home screen that will launch one of these scripts?",
"Is accessing a variable in C# an atomic operation? I've been raised to believe that if multiple threads can access a variable, then all reads from and writes to that variable must be protected by synchronization code, such as a \"lock\" statement, because the processor might switch to another thread halfway through a write. However, I was looking through System.Web.Security.Membership using Reflector and found code like this: public static class Membership { private static bool s_Initialized = false; private static object s_lock = new object(); private static MembershipProvider s_Provider; public static MembershipProvider Provider { get { Initialize(); return s_Provider; } } private static void Initialize() { if (s_Initialized) return; lock(s_lock) { if (s_Initialized) return; // Perform initialization... s_Initialized = true; } } } Why is the s_Initialized field read outside of the lock? Couldn't another thread be trying to write to it at the same time? Are reads and writes of variables atomic?",
"Why won't vertical-align: middle work? And yet, vertical-align: top does work. span{ vertical-align: middle; } <div> <img src=\"https://via.placeholder.com/30\" alt=\"small img\" /> <span>Doesn't work.</span> </div>",
"VirtualBox 5.0.40 crashes the whole host since update to kernel 4.13.0-26-generic I received the updates through normal Software Updater, 10-Jan-2018. After this VirtualBox would not start any VM, complaining about dkms and asking to make modprobe vboxdrv. Following the advice I reinstalled virtualbox-dkms with: sudo apt-get --reinstall install virtualbox-dkms After this and a reboot I tried to start a VM which freezed the whole machine and a hard reboot was necessary. Is there a way to make VirtualBox work with the latest kernels? EDIT: As suggested by N0rbert, the command: apt-cache policy `dpkg -S VirtualBox | head -n1 | sed -e 's/://g' | awk '{print $1}'` gives: virtualbox-qt: Installed: 5.0.40-dfsg-0ubuntu1.16.04.2 Candidate: 5.0.40-dfsg-0ubuntu1.16.04.2 Version table: *** 5.0.40-dfsg-0ubuntu1.16.04.2 500 500 http://fr.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages 100 /var/lib/dpkg/status 5.0.18-dfsg-2build1 500 500 http://fr.archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages EDIT (on 29-Mar-2018): Issue is resolved for me, with the Ubuntu Ubdate from today. I have seen that it had some virtualbox-updates, therefore I tried to boot with the most recent kernel again. Then I had to run sudo apt-get --reinstall install virtualbox-dkms And after this my virtual machines in VirtualBox started working without crashing the whole computer. Finally!",
"So I'm trying to prove the following two inequalities: $$\\frac{\\sqrt{n}}{2} \\leq \\phi(n) \\leq n.$$ The upper bound we get from simply noting that $\\phi(n) = n \\prod_{p | n}\\left( 1 - \\frac{1}{p}\\right)$ and the fact that $(1 - \\frac{1}{p}) \\leq 1$. But how can we get the lower bound? I tried using the same expression for $\\phi(n)$ but it seems to not really give me the inequality. Can you help?"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
$0 < \frac{a}{b}, \frac{c}{d} < 1$, when do we have $\frac{a+c}{b+d} = \frac{a}{b} + \frac{c}{d}$? Given natural numbers $a,b,c,d$, let $a,b$ be coprime with $b>a$ and let $c,d$ be coprime with $d>c$. Define a function $f:\mathbb{Q}^2 \to \mathbb{Q}$ as $$f\left(\frac xy, \frac zw\right)= \frac{x+z}{y+w}$$ Where $x,y$ are coprime integers, as are $y,w$. I have two questions: Is $f$ in literature? I would like some references for further study. Is it ever the case that $$f\left(\frac ab , \frac cd\right) = \frac ab + \frac cd$$ ? I have tried lots of numerical examples but can’t find any such $a,b,c,d$.
|
Are there any examples of $\frac{a}{b}+\frac{c}{d}=\frac{a+c}{b+d}$? I am writing a short discussion of Farey numbers and was wondering if there are any examples of when the mediant function is ever actually equal to the sum of the two fractions in the usual sense? (Not to produce Farey numbers, I just thought it might be an amusing way to introduce Farey addition). Explicitly: Are there any examples of fractions $\frac{a}{b}$ and $\frac{c}{d}$ where $$\frac{a}{b}+\frac{c}{d}=\frac{a+c}{b+d}$$ for positive integers? Currently I have found the example $$\frac{1}{1}+\frac{1}{i} =\frac{1+1}{1+i}$$ if we remove the integers requirement but it would be nice to find a case that didn't involve complex numbers though!
|
[
"system() has been disabled error message",
"Difference between $\\Delta$, $d$ and $\\delta$ I have read the thread regarding , but it does not answer my question. I am confused about the notation for change in Physics. In Mathematics, $\\delta$ and $\\Delta$ essentially refer to the same thing, i.e., change. This means that $\\Delta x = x_1 - x_2 = \\delta x$. The difference between $\\delta$ and $d$ is also clear and distinct in differential calculus. We know that $\\frac{dy}{dx}$ is always an operator and not a fraction, whereas $\\frac{\\delta y}{\\delta x}$ is an infinitesimal change. In Physics, however, the distinction is not as clear. Can anyone offer a clearer picture?",
"Strange object.ray_cast() behavior object.ray_cast() is not behaving as I would expect in Blender 2.77. I understand that it expects object local coordinates, but this problem happens when the object is not translated, rotated, or scaled. If I edit the shape of the cube mesh without moving the cube, the results of ray_cast() seem plain wrong. Steps to reproduce Create a cube at 0,0,0 Move a vertex of the cube from 1,1,1 to 5,5,5 Create an empty called \"src\" at 2,2,2 Create an empty called \"dst\" at 2,2,6 Run this python cb = bpy.data.objects['Cube'] src = bpy.data.objects['src'] dst = bpy.data.objects['dst'] hit, loc, norm, face = cb.ray_cast(src.location, dst.location) bpy.ops.object.empty_add(location = loc) This is the result on my system. The new Empty created at the interesection point is selected: The source and the destination are both at x = 2 and y = 2. The cube has a surface at x = 2 and y = 2. So why on earth is the intersection point at x = 2.22222, y = 2.22222?",
"I've had the ability to review suggested edits for a while now, however I don't often do so because the list is usually full of questions about languages and technologies I'm not familiar with or not interested in, and can sometimes be hundreds of questions long. I would like to help out more, but most of my rep has been gained by questions within a specific technology, so I only feel comfortable reviewing edits within that tag. Can you allow us to filter suggested edits by tag? Edit: Actually, can you let us filter the entire Review section by tag, and not just Suggested Edits? I would find it much more interesting to review questions in tags I'm familiar with and can understand the question content of, and it would give me a bit of pride to help maintain \"my\" section of SO.",
"Could humans choose to establish fibre digesting colonies in our guts? Humans don't digest fibre, and nor do any animals, but some creatures have micro-organisms (bacteria, I'm guessing) in their gut which digest fibre for them. My question is, could humans take some sort of pill and establish our own fibre-digesting colonies in our intestines? Has this been tried? Supposing it could be done, would you suppose it would have any negative effects on our health? (i.e.. would those whose gut digested fibre for them be stuck on a low-fibre diet?). Purpose of question: just wondering. It would be cool to be able to eat bark."
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
How do I check if an object has a key in JavaScript?
|
How do I check if an object has a specific property in JavaScript?
|
[
"It seems amongst is quite often used as a synonym for among but it is supposed to sound more distinguished. Is there any difference in the meaning?",
"Where does the extra kinetic energy come from in a gravitational slingshot?",
"Can we create a subsection of the References Cited section with different reference numbering? I need to add some more publications. I do not want to change the previous reference numbers, so I need to create new citations with difference reference numbering like [p1], [p2], etc. Can LaTeX do that?",
"iPhone screen randomly turns on",
"Correct way to use include and includeonly when writing a large document like a thesis I am writing a large document with several chapters and I would like to work on each chapter separately. In my main.tex I include the chapters either like \\include{chap1.tex} \\include{chap2.tex} \\include{chap3.tex} or \\input{chap1.tex} \\input{chap2.tex} \\input{chap3.tex} I think \\include is preferable if I want things to be referenced and cited correctly? but doing it the \\include way latex main.tex I don't get any dvi output whereas with \\input things compile fine to dvi. What's going wrong here? I would then like to use \\includeonly (or \\excludeonly ) to work on individual sections of the document whilst maintaining the referencing etc. A mwe can be handy: \\documentclass[a4paper,10pt]{article} \\includeonly{chap1} \\begin{document} \\include{chap1} \\include{chap2} \\include{chap3} \\end{document}"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
How to block websites on Android (for free) without root? I want to block websites on my HTC phone. It seems as though ES File Explorer needs the phone to be rooted to use this method, which I don't want to do. (I don't have any folders when I click through 'Local'-'Device' at all, which is where you're supposed to find 'etc' so I can't go any further anyway) Trend Mirco is far too expensive for the premium version which lets you block any site name (given I'm trying to block sites where I can spend money!) Firefox Add Ons don't seem to work on the mobile version, they will download, but I have no way of opening them. Apps all seem to be about blocking adult content on kid's phones, which isn't the issue here. On the desktop computer I've used Leechblock for Firefox, and BlockSite for Chrome. Any other ideas that don't cost anything or require a rooted device?
|
Is there any way to block websites without Root access I am searching for a way to block websites without having root access. Is there any way to do it? Any help will be appreciated.
|
[
"Laptop using 14.04 won't get past login GUI",
"How do that charge gets transferred while rubbing?",
"Proving an identity relating to the complex modulus: $z\\bar{a}+\\bar{z}a \\leq 2|a||z|$ Show that $z\\bar{a}+\\bar{z}a \\leq 2|a||z|$ I was able to check this using some examples which is not ideal for a mathematician way of proving a problem/case/theorem. I couldn't generalize it (prove it). I will be glad if I can be given the hint/proof for this problem. Thank you.",
"Charge controller for Li-ion or Li-Polymer battery I am trying to work out the good charger for Mobile phones, which can serve as good performer for various smart phones out there in market these days & mostly using Li-ion battery. Charging has 4 stages -- \"the initial trickle-charging, then constant current charging, then constant voltage charging & finaly Top-up charge\" -- all this is controlled & monitored by a control circuit/IC of charger. So, my concern is if such circuit/module/IC is already there in Mobile phones & taking care of all protections to battery/phone including overheating during charge OR The charger designer have to incorporate these circuits in Charger itself? If former case, that means we just need to make a charging source giving ample current & 4.75V-5.25V voltage, like a high-powered USB output port would gives. My feeling is such stages-wise charging & control/monitor circuitry is already within the phone set, i just want to reconfirm.",
"Deep Format of a Harddrive on a Linux System I've got an original Asus Eee PC Netbook that I'd like to sell. When I've sold old computers in the past, I've typically done a deep/secure/zeroing out style format. How can I do this on a Linux Netbook? I'm looking for The command that will let me do this Advice on how I can do this on a device with (seemingly?) non-removable media Thanks in advance!"
] |
medi_sts_stackexchange_dupe
| 21medi_sts_stackexchange_dupe
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.