query
stringlengths
6
215
document
stringlengths
50
1.23k
negative
sequencelengths
15
209
dataset
stringclasses
1 value
batch file to Rename file by text AND Current Folder name
Add folder name to beginning of filename
[ "How do I rename a directory via the command line? I have got the directory /home/user/oldname and I want to rename it to /home/user/newname. How can I do this in a terminal?", "Looking for the actual reason of refraction explained precisely without analogies", "Number theory proof mod p For a given prime $p$ and integer $k$, $k∈<1, p-1>$ $S(k)$ is defined as a sum of remainders of $k, k^2, k^3, ..., k^{p-1}$ when divided by $p$. Prove that $S(k)=\\frac{1}{2}p(p-1)$ is true for an odd number of different k. I managed to prove that $S(p-1)=\\frac{1}{2}p(p-1)$ but can't see how to do it further.", "How do I remove a file I accidentally created named $file? I was working on a shell script and I accidentally created a file with the variable as its name. Now I have $file in my ls output, and cannot remove it. What can I do?", "Detecting EOF in C++ from a file redirected to STDIN", "I am stuck in a question where energy conservation is failing and momentum conservation is correct. I think I might be doing something wrong, that's why I'm asking this question. The problem is as follows: A bullet of mass $25\\,g$ is fired horizontally into a ballistic pendulum of mass $5.0\\,kg$ and gets embedded in it. If the centre of pendulum rises by a distance of $10\\,cm$, find the speed of the bullet. (H.C. Verma, Centre of Mass, Q47) Let the mass of the bullet be $m=25\\,g$. Let the mass of the pendulum be $M=5\\,kg$. Let the peak height be $h=0.1\\,m$. Let the initial and final velocities be $u$ and $v$ respectively. Method 1: (Momentum Conservation) $$mu=(M+m)v \\implies v=\\frac{mu}{M+m}\\\\ \\text{Also, }\\frac{1}{2}(M+m)v^2=(M+m)gh\\\\ \\implies u^2=2\\biggl(\\frac{M+m}{m}\\biggr)^2gh\\\\ \\implies u=201\\sqrt2 \\text{ m/s}$$ Method 2: (Energy Conservation) Since both the masses move together after the collision, and because the velocity at highest point is null, therefore: $$\\frac{1}{2}mu^2=\\frac{1}{2}(M+m)v^2=(M+m)gh\\\\ \\implies u^2=2gh\\biggl(\\frac{M+m}{m}\\biggr) \\implies u=\\sqrt{402}$$ To summarize myself, I am curious about the following: Why do the results differ? Shouldn't the energy be conserved as well as the momentum? Since it should be, then what is the flaw in my calculations?", "How are Python's Built In Dictionaries Implemented? Does anyone know how the built in dictionary type for python is implemented? My understanding is that it is some sort of hash table, but I haven't been able to find any sort of definitive answer.", "How do you distinguish between magic effects that bypass immunity and those that don't? This question was triggered by . Basically, it goes like this: If you have a weapon with a certain magical effect, let's say the minor property unbreakable (can not be broken, requires special means) or temperate (no harm in temperatures between -20 to 120 F), it can bypass the immunity of something like a Werewolf because it is magical instead of mundane. This goes for any minor property because those properties are under the Magic Items portion of the DMG on pg.143. How does this differ from a pair of gauntlets with the exact same effect being used as an improvised weapon (emphasis added for clarity) from dealing damage in the same manner to the same Werewolf? Or something that's clearly not a weapon like a Shield of Missile Snaring being used to bash an opponent?", "I'm trying to do a volumetric light on Cycles, and I've followed tutorials, but nothing has worked yet. How can I make a proper volumetric light in Blender, like the following one? But to leave the light in the middle, like, almost a star, is this possible? I'm at the point to use an image plane besides the light which would be better... I need to use it moving the camera. I'm actually trying to do this because I want to simulate the brightness of the Sun. I tried the effect, but it still gave me an error:", "How do I set up a global locale for the computer? I have recently installed Kubuntu 14.04LTS in english but since I am in Spain, I chose Spain as a country and then changed locale options so that I get all country specific configuration such as digit grouping, decimal separator, date format, etc. I also added the spanish language. Now all applications complain that locale is wrong. check-language-support tells me I'm using en_ES.UTF-8 as system's locale, and that locale is indeed wrong, there is no locale for english language in Spain. I tried using Kubuntu's country/region & language settings but it doesn't fix it. I tried using export LANG=en_GB.UTF-8 and export LC_ALL=en_GB.UTF-8 and then sudo dpkg-reconfigure locales and that caused check-language-support to say that I now have a correct configuration but if it is, it's only in that konsole session. This problem also prevents konsole from showing unicode characters and I cannot use dead keys or enter any 'international character' such as ñ or ç (those work on other applications such as Firefox, that I'm using to post this question). So the question is: How do I set up a global locale for the computer? This is not a bug report, I will probably reinstall my computer eventually if I can't fix it. But I really want to know how I can perform this REALLY basic task. Thank you. $ check-language-support perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = \"en:es:en\", LC_ALL = (unset), LC_PAPER = \"en_ES.UTF-8\", LC_ADDRESS = \"en_ES.UTF-8\", LC_MONETARY = \"en_ES.UTF-8\", LC_NUMERIC = \"en_ES.UTF-8\", LC_TELEPHONE = \"en_ES.UTF-8\", LC_IDENTIFICATION = \"en_ES.UTF-8\", LC_MEASUREMENT = \"en_ES.UTF-8\", LC_TIME = \"en_ES.UTF-8\", LC_NAME = \"en_ES.UTF-8\", LANG = \"en_ES.UTF-8\" are supported and installed on your system. perl: warning: Falling back to the standard locale (\"C\"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_COLLATE to default locale: No such file or directory hunspell-en-ca libreoffice-help-en-gb libreoffice-l10n-en-gb libreoffice-l10n-en-za mythes-en-au wspanish $ cat /etc/default/locale LANG=\"en_US.UTF-8\" LC_NUMERIC=\"es_ES.UTF-8\" LC_TIME=\"es_ES.UTF-8\" LC_MONETARY=\"es_ES.UTF-8\" LC_PAPER=\"es_ES.UTF-8\" LC_NAME=\"es_ES.UTF-8\" LC_ADDRESS=\"es_ES.UTF-8\" LC_TELEPHONE=\"es_ES.UTF-8\" LC_MEASUREMENT=\"es_ES.UTF-8\" LC_IDENTIFICATION=\"es_ES.UTF-8\" $ locale locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory LANG=en_ES.UTF-8 LANGUAGE=en:es:en LC_CTYPE=\"en_ES.UTF-8\" LC_NUMERIC=en_ES.UTF-8 LC_TIME=en_ES.UTF-8 LC_COLLATE=\"en_ES.UTF-8\" LC_MONETARY=en_ES.UTF-8 LC_MESSAGES=\"en_ES.UTF-8\" LC_PAPER=en_ES.UTF-8 LC_NAME=en_ES.UTF-8 LC_ADDRESS=en_ES.UTF-8 LC_TELEPHONE=en_ES.UTF-8 LC_MEASUREMENT=en_ES.UTF-8 LC_IDENTIFICATION=en_ES.UTF-8 LC_ALL= $ update-locale perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = \"en:es:en\", LC_ALL = (unset), LC_PAPER = \"en_ES.UTF-8\", LC_ADDRESS = \"en_ES.UTF-8\", LC_MONETARY = \"en_ES.UTF-8\", LC_NUMERIC = \"en_ES.UTF-8\", LC_TELEPHONE = \"en_ES.UTF-8\", LC_IDENTIFICATION = \"en_ES.UTF-8\", LC_MEASUREMENT = \"en_ES.UTF-8\", LC_TIME = \"en_ES.UTF-8\", LC_NAME = \"en_ES.UTF-8\", LANG = \"en_ES.UTF-8\" are supported and installed on your system. perl: warning: Falling back to the standard locale (\"C\").", "When signing in with Google (OAuth), it shows a list of accounts it already knows about. How can I remove some accounts from this list? I know I can nuke all of them by deleting all cookies, but I'd prefer to remove one account that I don't want there, rather than all of them. There used to be an ability to edit this list in the older version of this screen, but in 2018 redesign Google has removed [×] buttons next to the accounts.", "I need to clip a vector layer to the extent of a raster. It has to be very precise that's why I would not want to draw a polygon myself (and clip the two polygons). There seem to be some ways to clip a raster to a polygon but I have difficulties to find a solution to clip a polygon to a raster. I already tried to create a polygon out of my raster several times in ArcGIS and R, so I could clip the result. But every time it crashes because the raster is to big. There must be a simple way to solve this, and somehow I can just not see it at the moment. How can I do this using GDAL?", "What are the “spam” and “rude or abusive” (offensive) flags, and how do they work? When flagging, there are two special case options: spam and rude or abusive. What is spam, and when should I flag content as such? What is considered offensive, rude or abusive content? How does the spam flag differ from the rude or abusive flag? What is the effect of these special flags? When are these flags removed?", "i want to write a device driver but not able to find the header file can someone please help me find them?Also if someone can point out some important site links that would be really appreciated", "If $A + A^t = 2I$ then $\\det(A) \\geq 1$", "Alright, I think we all agree that what happens with the following code is undefined, depending on what is passed, void deleteForMe(int* pointer) { delete[] pointer; } The pointer could be all sorts of different things, and so performing an unconditional delete[] on it is undefined. However, let's assume that we are indeed passing an array pointer, int main() { int* arr = new int[5]; deleteForMe(arr); return 0; } My question is, in this case where the pointer is an array, who is it that knows this? I mean, from the language/compiler's point of view, it has no idea whether or not arr is an array pointer versus a pointer to a single int. Heck, it doesn't even know whether arr was dynamically created. Yet, if I do the following instead, int main() { int* num = new int(1); deleteForMe(num); return 0; } The OS is smart enough to only delete one int and not go on some type of 'killing spree' by deleting the rest of the memory beyond that point (contrast that with strlen and a non-\\0-terminated string -- it will keep going until it hits 0). So whose job is it to remember these things? Does the OS keep some type of record in the background? (I mean, I realise that I started this post by saying that what happens is undefined, but the fact is, the 'killing spree' scenario doesn't happen, so therefore in the practical world someone is remembering.)", "Requires installation of untrusted packages?", "How to run scripts every 5 seconds?", "What caused the apocalypse in the Hunger Games? So the stories of the Hunger Games are set in , a post-apocalyptic society situated in North America. Is there anything to explain what caused the Apocalypse? Whether from the main books, any extra material or interviews? (No fanfic please.) As well as the cause, is there any indication of when the apocalypse happened? And how long after the apocalypse are the events of the Hunger Games?", "I would like to be able to transpose a tabular(x) table like in the following example. It is not necessary to be completely automated, but I don't want to change the data order, which is a painful and stupid. By \"not completely automated\" I mean that e.g. the headers can be done seperately etc. Let's see the MWE: \\documentclass{article} \\usepackage{booktabs} \\def\\Midrule{\\midrule[\\heavyrulewidth]} \\begin{document} \\centering \\begin{tabular}{*6c}\\toprule \\bfseries Name & Alice & Bob & Chuck & Dave & Eve\\\\\\Midrule \\bfseries Sex & Female & Male & Male & Male & Female\\\\\\midrule \\bfseries Age & 18 & 19 & 20 & 21 & 22\\\\\\bottomrule \\end{tabular} \\bigskip Which I want to look like \\bigskip \\begin{tabular}{*3c}\\toprule \\bfseries Name & \\bfseries Sex & \\bfseries Age\\\\\\Midrule Alice & Female & 18\\\\\\midrule Bob & Male & 19\\\\\\midrule Chuck & Male & 20\\\\\\midrule Dave & Male & 21\\\\\\midrule Eve & Female & 22\\\\\\bottomrule \\end{tabular} \\end{document} Note: I know that , but I would like to get it without expl3 (mostly because people would might use my code quite often have an old LaTeX installed and I cannot be convincing them to change this)." ]
medi_sts_stackexchange_dupe
Examples of disconnected metric spaces that cannot be isometrically embedded into a connected metric space
Is every metric space a subspace of some connected metric space?
[ "C++ single template specialisation with multiple template parameters", "What is the difference between shell, console, and terminal?", "What the pointer size in 64 bits computer in C++?", "Mark questions to receive notifications and updates?", "Why is.vector on a data-frame doesn't return TRUE?", "Suppose $f$ is a continuous, strictly increasing function defined on a closed interval $[a,b]$ such that $f^{-1}$ is the inverse function of $f$. Prove that, $$\\int_{a}^bf(x)dx+\\int_{f(a)}^{f(b)}f^{-1}(x)dx=bf(b)-af(a)$$ A high school student or a Calculus first year student will simply, possibly, apply change of variable technique, then integration by parts and he/she will arrive at the answer without giving much thought into the process. A smarter student would probably compare the integrals with areas and conclude that the equality is immediate. However, I am an undergrad student of Analysis and I would want to solve the problem \"carefully\". That is, I wouldn't want to forget my definitions, and the conditions of each technique. For example, while applying change of variables technique, I cannot apply it blindly; I must be prudent enough to realize that the criterion to apply it includes continuous differentiability of a function. Simply with $f$ continuous, I cannot apply change of variables technique. Is there any method to solve this problem rigorously? One may apply the techniques of integration (by parts, change of variables, etc.) only after proper justification. The reason I am not adding any work of mine is simply that I could not proceed even one line since I am not given $f$ is differentiable. However, this seems to hold for non-differentiable functions also. I would really want some help. Pictorial proofs and/or area arguments are invalid.", "How can I calculate this limit: $\\lim\\limits_{x\\to 0} x\\left\\lfloor\\frac{1}{x}\\right\\rfloor$? Calculate the following limit. $$ \\lim_{x\\to 0} x\\left\\lfloor\\frac{1}{x}\\right\\rfloor $$ Where $\\left\\lfloor x \\right\\rfloor$ represents greatest integer function or floor function, i.e greatest integer less than or equal to $x$. Thanks.", "My non-native English speaking friend just asked me: \"Data is...\" or \"Data are...\"? I said both but that's because I've been desensitized from reading/writing both (especially from writing code and adding quick comments). My question: Is it acceptable to utilize either for a university paper? Or is one safer than the other (when confronted with stickler professors)? Related questions:", "Graduate school admission with a degree in a different field Can I be admitted to graduate school in a different field from my degree? Specific cases include: If I've taken plenty of advanced courses in field X in the process of completing a degree in another field, can I apply to graduate school in X? What if I haven't taken many courses in X, but I have acquired a good grasp of X through self-study or working in a related field? What if I've never studied X, but I have done very well in an unrelated field? Could I be admitted to graduate school in X on the basis of general intellectual promise, and then make up the missing background after enrollment? Note that this question is an attempt to provide a comprehensive answer, to avoid the need for a profusion of field-specific questions on this topic (see the associated ). Please feel free to edit the question or answer to improve them.", "If a derivative of a continuous function has a limit, must it agree with that limit? Suppose we have a continuous function $f : \\mathbb{R} \\to \\mathbb{R}$. Suppose also that for a certain point $c$, $\\lim_{x \\to c} f'(x)$ exists. Must $f'(c)$ exist as well, and be equal to this limit? This isn't quite the same as asking if derivatives are always continuous. The well-known function $f(x) = x^2 \\sin (1/x)$ is continuous and differentiable everywhere, but its derivative has no limit at $x = 0$. I'm wondering if the derivative of a continuous function can have a discontinuity where its limit does exist.", "If $R$ is a local ring and $M$ and $N$ are finitely generated $R$-modules such that $M\\otimes N=0$ then how does it follow from Nakayama's lemma that either $M=0$ or $N=0$? This is an exercise in Atiyah and Macdonald. The part I could not show in the hints is $({M{\\otimes}_R N)}_{k}=0$ implies $M_{k}{\\otimes }_{k} N_{k}=0$, where $k=R/\\mathfrak m$ and $\\mathfrak m$ is the maximal ideal of $R$.", "Joel Spolsky asked what rhymes with orange. The official answer is, \"Nothing,\" although a creative poet can get close by using half words, just the -nge part or resorting to place names and foreign words. Does orange somehow violate the basic phonotactics of English? (And hence we wouldn't expect other English words to rhyme with it?)", "How to show that the nth power of a $n \\times n$ nilpotent matrix equals to zero $A^n=0$", "Why does observation collapse the wave function? In one of the first lectures on QM we are always taught about Young's experiment and how particles behave either as waves or as particles depending on whether or not they are being observed. I want to know what about observation causes this change?", "What is the terminal's graphic API? How can certain programs set background and font colors, write characters to the same location on screen (e.g. to the third row, fifth column) more than once? Some examples are the progress bar displayed by curl google.com > a, some installation screens and nearly any text editor.", "Significance of assumption in competition inequality questions Refer to the problem below (IMO 2009 Shortlist) Let $a, b, c$ be positive real numbers such that $$\\frac{1}{a} + \\frac{1}{b} + \\frac{1}{c} = a + b+ c$$ Prove that $$\\frac{1}{(2a+b+c)^2} + \\frac{1}{(2a+b+c)^2} + \\frac{1}{(2a+b+c)^2} \\leqslant \\frac{3}{16} $$ In the solution given by the (Pg 16), it states that Without loss of generality, we choose $$a +b+c = 1$$. Thus, the problem becomes $$ \\frac{1}{(1 + a)^2} + \\frac{1}{(1 + b)^2} +\\frac{1}{(1 + b)^2} \\leqslant \\frac{3}{16}(\\frac{1}{a} + \\frac{1}{b} + \\frac{1}{c})$$ Applying Jensen’s inequality to the function $$f(x) = \\frac{x}{ (1+ x)^2}$$ ,which is concave for $0 ≤ x ≤ 2$ and increasing for $0 ≤ x ≤ 1$, we obtain $$α \\frac{a}{(1 + a)^2} + β \\frac{b}{(1 + b)^2} + γ \\frac{c}{(1 + c)^2} \\leqslant (α + β + γ) \\frac{A}{(1 + A)^2}$$ , where $A =\\frac{αa + βb + γc}{α + β + γ}.$ Choosing $α = \\frac{1}{a} , β =\\frac{1}{b},$ and $γ = \\frac{1}{c}$ , we can apply the harmonic-arithmetic-mean inequality $$A =\\frac{3}{\\frac{1}{a} + \\frac{1}{b} + \\frac{1}{c}} ≤ \\frac{a + b + c }{3} = \\frac{1}{3} < 1$$ Finally we prove: $$ \\frac{1}{(1 + a)^2} + \\frac{1}{(1 + b)^2} +\\frac{1}{(1 + b)^2} \\leqslant ( \\frac{1}{a} + \\frac{1}{b} + \\frac{1}{c}) \\frac{A}{(1 + A)^2} \\leqslant ( \\frac{1}{a} + \\frac{1}{b} + \\frac{1}{c})\\frac{A}{(1 + \\frac{1}{3})^2} = \\frac{3}{16}(\\frac{1}{a} + \\frac{1}{b} + \\frac{1}{c}) $$ However, (Pg 4) differs by having $a +b+c=3$ and setting $f(x) = \\frac{1}{16x} - \\frac{1}{(x+3)^2}$ and allowing Jensen to resolve the rest. The questions are as follows; How do you choose before hand which $a + b+ c =$ to choose? Why particularly does the assumption differ between the 2 solutions? How does one know before hand the choosing of $α = \\frac{1}{a} , β =\\frac{1}{b},$ and $γ = \\frac{1}{c}$? Where and how did $A =\\frac{αa + βb + γc}{α + β + γ}$ come from? Any help would be much appreciated.", "From what I understand, the frequency of light coming from the source moving towards an observer increases. From $ E=hv $ , this implies increase in energy of photon. What really is confusing, is where does that extra energy come from? And also where is the energy is lost during opposite Doppler effect (red shift)? Why doesn't this violate the conservation of energy?", "Movie with \"Where do the tubes go?\" I'm trying to find a movie with an underground facility with people wearing white suits. The people have been affected such that they show no curiosity. There is one person that does and asks one of his co-workers where a tube leads to. At the end there is an uprising where everyone gets to see the surface and sunlight. What is the name of this movie?", "Solution check: Let $f_n$ be fibonacci numbers. Prove: $\\sum_{k=0}^{n-1} \\binom{n+k}{2k+1} = f_{2n-1}$ and $\\sum_{k=0}^n \\binom{n+k}{2k} = f_{2n}$", "Freeman and Tukey interval If $Y$ is Poisson$(\\lambda)$ distributed, how do we obtain this confidence interval for $\\lambda$: $$ \\left (\\frac{(\\sqrt Y+\\sqrt{Y + 1}-z_{(α⁄2)} )^2 - 1}{4},\\ \\frac{(\\sqrt Y+\\sqrt{Y +1}+z_{(α⁄2)} )^2 - 1}{4} \\right ) $$" ]
medi_sts_stackexchange_dupe
how is function(char *something) and function(char &something) different?
What are the differences between a pointer variable and a reference variable in C++?
[ "More Generating Functions problems", "Which is correct, \"you and I\" or \"you and me\"? When the phrase is used as an object, why so many native speakers are saying \"you and I\" instead of \"you and me\"? I'm not a native speaker but I thought \"you and me\" is correct. Not sure if this falls into the same category, but \"Just between you and me\" sounds more natural than \"Just between you and I\".", "I have 50 servers. I manage them from a central management server on SQL Server 2014 Enterprise Edition. I don't use repository. I could open a query and get result for each one at the same time. But I want to do it in an automated way, like a job, to collect data from each server and store/handle it locally. Is this possible and if so, how?", "I'm looking for a word that applies to all the things a person can wear, e.g. clothes, shoes, accessories, etc. It musn't be too generic, e.g. product, item, etc.", "Apparently you can easily obtain a client IP address in WCF 3.5 but not in WCF 3.0. Anyone know how?", "A Product function for matrix products", "ASP.NET MVC: Weird characters in error page", "A word or short phrase for 'better in every way'? When we're comparing two or more things, there are times when we have to weigh the advantages or disadvantages of each one. There are other times when one of the things is better for every way in which it's being judged, and the final decision is not based upon trade-offs. I know that I've heard a phrase for this (I want to say it was two words), but I've had no luck in remembering it. I don't think 'clearly superior' or 'clear winner' quite fit the bill, as that might still suggest that the disadvantages are significantly outweighed by the advantages. Is there such a phrase, or even a single word, that would convey this meaning without using idioms?", "My input file is, ami21 ami65 ami67 ami66 ami88 ami76 ami29 ami55 ami54 ami32 Using a single command line I need the output as, ami22 ami66 ami68 ami67 ami89 ami77 ami30 ami56 ami55 ami33 I used the command awk -vRS=ami '{$0=$0+1;ORS=RT}++n' inputfile > outputfile but I got the outputfile as ami21ami65ami67ami66ami88ami76ami29ami55ami54ami32 i.e. all strings are written in same line and without space. Could anyone suggext me some better command line.", "How do I restore /usr/bin/env after overwriting it with start-tor-browser file I was installing Tor and wanted to access it directly from the terminal, so I was trying to copy start-tor-browser to /usr/bin. But by mistake, I have replaced the /usr/bin/env file with the start-tor-browser file. What should I do now??", "I love the that was recently added onto Stack Exchange. However, this feature seems to be missing in per-site metas. For instance: Server Fault Meta: DBA Meta The parent websites, do have the edit/improve this post link however.", "Let $X$ and $Y$ be independent $Exp(1)$-distributed random variables. Find the conditional distribution of $X$ given that $X + Y = c$ ($c$ is a positive constant). this is my idea: $$f_{X \\mid X+Y}(x\\mid c) = \\frac{f_{X,X+Y}(x,c)}{f_{X+Y}(c) } $$ if this is the right definition then i might calculate the righthand side to obtain the distribution but Iam unsure", "What would be an informative introduction to quantum computing software? I am new to Stack Exchange and am working on a quantum learning platform for minority youth groups (LGBTQ, low-income, at risk, etc). In the question below they are looking for courses on the subject, which I am also interested in, and do plan on checking those links out for ideas. What I am looking for are simple videos, articles, or even games, that cover basic quantum theory at an introductory level. There are some games I have looked into and played. Hello Quantum! was fun and informative, though on my end there was still a lack of comprehension on how the quantum computer (or anything else \"quantum\") would actually function and play out. My focus for the educational platform is more directed towards the software side of quantum computing. Is there anything that gives a good introduction to the functions and uses a quantum computer will have? As well as what language would be best to program one? Also, would there be a way to program a quantum computer through a classical computer? And, is there a simple introduction to any of this already existing?", "How can I prove: if $p $ is prime and $n>1$, then $ p^{\\frac1n} $ is irrational?", "Is it possible to change where macOS Notification Center alerts appear on the screen? They currently appear at the top right of the screen with the menu bar: Alerts appearing in the top right tend to cover up work I'm doing more often than not. They cover up browser tabs, toolbar icons, and window titles. I would prefer, say, the bottom right corner of the screen. If moving the alerts is not possible, is it possible to change the screen on which they appear?", "iOS app 1.4.3, iOS 9.2.1 While viewing a post, the app somehow ended up in a state where it refuses to do much of anything. What does work: Swipe-scrolling vertically Jumping to the previous / next post using the up / down buttons Everything else, though, has no effect: Swipe-scrolling horizontally will not return to the previous view Tapping on a code block will not zoom to code-block view Tapping Delete button to delete a post will show a confirmation dialog, but saying yes will not cause deletion The Add Comment button brings up the text field, but I cannot type anything in it; I can only dismiss it None of the other buttons (Share, More, etc.) do anything Cannot view user profiles or revision history Tapping on links in a post or comment will not show a web page Tapping on a tag shows some visual feedback with a temporary color change, but doesn't do anything else I still receive push notifications, but tapping on them doesn't take me anywhere.", "\"I will appreciate your help\" I encounter the phrase \"I will appreciate your help\" from time to time and it doesn't sound too honest to me. To be more specific, I don't have a problem with this phrase coming from a friend, because he will appreciate my help by \"owing me one\". But a stranger from the Internet, that's different, methinks. \"How will you appreciate it?\" pops in my mind every time I see it, because to me, appreciation equals reward and, well, you can't reward people over the internet much. It is quite possible that I am just wrong and this is a perfectly fine figure of speech.", "PostgreSQL execute a default query when no row are returned I need to calculate the average score of a list of userId. I have a table user_place_score: (user_id, place_id, score) Sometimes I do not have the score (no row for (user_id,place_id) in the table) so I need to fetch a \"default\" score from the table default_place_score: (place_id, score) Is is possible in PostgreSQL to do this in one query? For a given list of users and one place_id, select all their scores in the user_place_score and if no row is found then take the score found if the default_place_score table? Basically I want to avoid doing this kind of stuff: for (Integer userId : userIds) { score = (query to fetch the score for this userId) if (score == null) defaultScore = (query to fetch the default score for this PlaceId) total = total + defaultScore } //return the average return total/numberOfUser", "\"Always on Top\" Windows with Java In Java, is there a way to have a window that is \"Always on top\" regardless if the user switches focus to another application? I've searched the web, and all of the solutions lean to some sort of JNI interface with native bindings. Truly this can't be the only way to do it?.. or is it?", "Determinant of a matrix whose $(i,j)$th element is $|i-j|$? Question states: \"Let $D_n$ denote the determinant of the $n$-by-$n$ matrix whose $(i,j)$th element (the element in the $i$th row and $j$th column) is the absolute value of the difference between $i$ and $j$. Show that $D_n = (-1)^{n-1}(n-1)2^{n-2}$.\" It seems like that I can get a recurrence relation (especially the question was from a book chapter dealing with recursion). In trying to get a recurrence relation, here is what I have done so far: (Let $R_k$ denote the $k$th row and let $(i,j)$ denote the element/spot of $i$th row and $j$th spot) 1) replace $R_1$ with $R_1-(R_2+R_{n-1})$ to get $R_1^*$ 2) replace $R_1^*$ with $R_1^*+R_{n-2}$ 3) If I am not mistaken, I should have $-2$ on $(1,1)$, $2$ on both $(1,n-1)$ and $(1,n)$, and all other element in the first row as $0$. 4) take out $2$ from the first row, and expand the determinant about the first row 5) I should have $D_n=2(-D_{n-1}+(-1)^n B_{n-1})$, where $B_{n-1}$ is the determinant of a not-easily-reducible mayrix whose last column consists of $n-1$ ones followed by one $-1$. How should I go about from now on? Once I get a recurrence relation, it would be pretty easy to get the explicit formula for $D_n$ using induction. P.S. This question apparently is a question taken from 1969 Putnam Competition" ]
medi_sts_stackexchange_dupe
Strange ConcurrentModificationException behavior
Why am I not getting a java.util.ConcurrentModificationException in this example?
[ "Wrong numeration in toc longer then one page I tried anything I could find with \\cleardoublepage and \\newpage and so on; mostly they use \\addcontentsline. I don't need to use it as listof=totoc already puts it into the toc so even if I use \\addcontentsline instead I get the same result. \\documentclass[ fontsize=11pt, DIV10, ngerman, paper=a4, twoside=false, titlepage, parskip=half, listof=totoc, bibliography=totoc, index=totoc, captions=tableheading, foottotes=multiple, final ]{scrartcl} \\usepackage[ automark, headsepline, ilines ]{scrpage2} \\usepackage[ngerman]{babel} \\usepackage[babel,german=quotes]{csquotes} \\usepackage[dvips]{graphicx} \\begin{document} \\ofoot{\\pagemark} \\pagenumbering{Roman} \\clearpage \\tableofcontents \\clearpage \\listoffigures \\clearpage \\pagenumbering{arabic} \\section{Test} \\label{sec:Test} Test \\subsection{Test} \\label{sec:Test} \\begin{figure}[H] \\centering \\caption{Testfig} \\label{fig:testfig} \\end{figure} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\end{document}", "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.", "Embed .mov file via 'Add Media' not working", "A logic puzzle involving a balance. Possible Duplicate: You have 12 balls and you know that they all weigh the same except for 1 which is heavier or lighter than all the others (you don't know which though). How can you make sure you know which ball is the heaviest/lightest in only 3 weighings? The way I approached it was to split up the 12 balls into three sets of 4 and weigh two of the sets. If the sets balanced the scale, then I know the ball I am looking for must be in the set of 4 balls not weighed, else, I disregard said set and arbitrarily choose the heaviest set of 4 (as opposed to choosing the lightest set). I split the heaviest set of 4 balls into 2 and weigh that... etc. Repeating this process until all 3 tries have been \"used up\", even if everything just so happened to be in your favor (the arbitrary choice you have in choosing the heaviest or lightest set happens to be the correct choice) in the end you still end up having to choose between 2 balls. A 50% chance is good, but I am wondering, is there a way to make sure 100%?", "How was Jon Snow able to kill the White Walker in S05E08?", "Reading list in topological QFT", "Conjugate Variables, Noether's Theorem and QM", "How do I get an XBOX 360 controller working? I have a Microsoft XBOX 360 gamepad with the wireless adapter and I was wondering what I would have to install to use them with Ubuntu I do know that when using this on Windows I have to manually install the drivers for the wireless receiver (if that is relevant.)", "How to execute sp_send_dbmail while limiting permissions Is there a way to provide access to users in my database to execute msdb.dbo.sp_send_dbmail without needing to add them to the MSDB database and the DatabaseMailUserRole? I've tried this: ALTER PROCEDURE [dbo].[_TestSendMail] ( @To NVARCHAR(1000), @Subject NVARCHAR(100), @Body NVARCHAR(MAX) ) WITH EXECUTE AS OWNER AS BEGIN EXEC msdb.dbo.sp_send_dbmail @profile_name = N'myProfile', @recipients = @To, @subject = @Subject, @body = @Body END But I get this error: The EXECUTE permission was denied on the object 'sp_send_dbmail', database 'msdb', schema 'dbo'. Thanks!", "Are there any studies on the use of justified text in web apps? How does justification affect screen legibility? Example of justified text:", "Should I always use a comma after \"e.g.\" or \"i.e.\"?", "How to build a difference distribution table?", "What is the chance that at least two people were born on the same day of the week if there are 3 people in the room? I'm wondering if my solution is accurate, as my answer was different than the solution I found: Probability that there are at least 2 people in the room born on the same day = 1 - (No one was born on the same day) - (Exactly one person was born on the same day) There are (3 choose 2) different pairs of couples. Each couple has the same birthday as another couple with the chances of 1/7 and different with chances 6/7. Thus: $$1 – (6/7)^3 – 3(1/7)(6/7)^2 = 0.0553$$ Thanks for any help!", "How can I make Firefox open magnet-links in Transmission?", "How to make an embedded question from \"What time is it?\"", "How to render as only wireframe in Cycles?", "How to use a decimal range() step value? Is there a way to step between 0 and 1 by 0.1? I thought I could do it like the following, but it failed: for i in range(0, 1, 0.1): print i Instead, it says that the step argument cannot be zero, which I did not expect.", "Beamer keeping line position constant on itemize I want to have a slide in beamer with itemize exposing new line on each click while at the bottom part of the slide there are some equations. This is my attempt \\begin{frame} \\begin{overprint}{\\textwidth} \\leavevmode \\begin{itemize}[<+->] \\item <1-> Poisson Boltzman equation (PB) \\item <2-> Debye-H\\\"uckle equation (DH) \\item <3-> The naive approach - applying (DH) equation to PE \\end{itemize} \\end{overprint} \\begin{tikzpicture} \\node at (0,0) {}; \\node<1,2> [text width = 20cm]at (10.5,-1) {$ \\nabla^2 \\phi =\\sum_i \\frac{n_i q_i\\text{e}^{-q_i \\phi/kT}}{4 \\pi \\epsilon}$}; \\node <2> [text width = 20cm]at (10.5,-2) {$q_i \\phi/kT \\ll 1 \\Rightarrow \\nabla^2 \\phi \\simeq \\kappa^2 \\phi$}; \\node <2> [text width = 20cm, font=\\footnotesize]at (10.5,-2.5) {$\\kappa^2 = \\lambda^{-1/2} = \\sum_i \\frac{n_i q_i}{4 \\pi \\epsilon}$}; \\node <3> [text width = 20cm] at(10.5,-1) {$\\frac{F_{el}}{VkT} = - \\left ( \\frac{ 4 \\pi e^2}{\\epsilon kT} \\sum_{i=1} n_i z_i^2 \\right )^{3/2} \\left ( 12 \\pi \\right )^{-1}$}; \\end{tikzpicture} \\end{frame} However, the itemized line jump up and down between slides. I've tried to use itemize without any environment surrounding it. I've also tried to use overlayarea instead of overprint. How can I keep the line position constant? I've uploaded a gif animation to display this. On my machine it run really fast and I can't fix this. Hope the problem is understood. When I run this, I get", "I can prove the converse of it, but I cannot do this one. Here is the problem: Prove that the implicit function theorem implies the inverse function theorem.", "Subdividing a beveled mesh creates new vertices in wrong places" ]
medi_sts_stackexchange_dupe
How to set class attribute of an element in Javascript?
How can I change an element's class with JavaScript?
[ "Any javascript event occurring when user clicks Stop load button?", "\"Whether or not\" vs. \"whether\" This will depend on whether he's suitable for the job. This will depend on whether he's suitable for the job or not. This will depend on whether or not he's suitable for the job. It is still not defined whether we're following that approach. It is still not defined whether we're following that approach or not. It is still not defined whether or not we're following that approach. \"Or not\" doesn't really seem to be needed to complement \"whether\". Why do people use it then? Is it redundancy and nothing more? Or is it for emphasis? Or are there cases when \"or not\" is required for the sentence to be grammatical?", "In PHP, what does the ${$ } syntax do?", "How does a lurker gain reputation to receive privilege for commenting?", "Difference between SQL batch, statement and RPC? What is the difference between SQL batch, T-SQL statement and Remote Procedure Call? How can I tell if part of the T-SQL code is a batch or statement?", "Can I do it with reflection or something like that?", "How to add features to a PostGIS layer using Quantum GIS? I am using Quantum GIS and the PostGIS dbms. I am able to call the PostGIS layer into QGIS but i am unable to add feature to it. I am using the method of adding features to a Shapefile but still it is not getting reflected in the layer, and I don't know how to save it to the PostGIS database if I am able to add the feature to the PostGIS layer. I may not have used some technical term for this problem because i don't know what to call it, I am expressing the problem in my own terms.", "Fiction novel or movie about sentient dinosaurs I remember parts of a story about some researchers finding a society of sentient dinosaurs. I believe they lived underground. From what I recall there were some steam punk elements and I think crystals were important. From what I recall (this might be wrong) there was a book and also a movie about that story. In the process, humans lived with these dinosaurs. I am not sure if that was like that from the beginning or if that happened later. Any idea what that story might be?", "What class of Devil Fruit does the Gomu Gomu no Mi come under? Considering the three types of Devil Fruits that has been explained are 1. Paramecia Type - where the user can get super human abilities and change their body parts into weapons, etc. 2. Zoan type - where the use can turn into a particular animal and inherit its abilities 3. Logia Type - where the user's body inherits a particular element and the body becomes like air which cannot be touched or damaged by non Haki users. So what exactly is the type of Gomu Gomu no Mi? It cannot be Zoan or Logia. It's very close to a Paramecia but still doesn't have a logical explanation to be of Paramecia type! So is it some special type of Devil Fruit?", "Evaluating $\\int_0^{\\large\\frac{\\pi}{4}} \\log\\left( \\cos x\\right) \\, \\mathrm{d}x $", "Which SUSY models are affected by the recent LHCb result?", "Equation with high exponents", "I've bunch of folders in folder A. I want to move files from all those folders to A. Or I want to cut all files from child folders and paste them in parent folder. How to do that?", "dev/sda1: clean, 552599/6111232 files, 7119295/24414464 blocks After I turn on my laptop this message appears. The system never boots, the message just stays there.", "How can I modify title page so that it looks like it is in video. Please seek to 16 seconds and watch title page. I do not have permission to post images. I liked this theme and I want to make a beamer theme that looks similar. I tried with beamercolorbox but I failed to position the box to the bottom. Edit: Here is my minimum working example \\documentclass[xcolor=dvipsnames]{beamer} \\defbeamertemplate*{title page}{customized}[1][] { \\usebeamerfont{subtitle} \\usebeamercolor[fg]{subtitle} {\\flushright \\setbeamercolor{author}{bg=white,fg=Red} \\usebeamerfont{author} \\insertauthor\\par \\usebeamerfont{institute}\\insertinstitute\\par } \\vspace{0.2in} \\setbeamercolor{postit}{fg=white,bg=YellowOrange} \\begin{beamercolorbox}[sep=1em,wd=1.062\\textwidth,ht=3cm,dp=3cm,right]{postit} \\usebeamerfont{title} {\\huge \\inserttitle}\\par \\usebeamerfont{subtitle} {\\insertsubtitle} \\end{beamercolorbox} } \\usecolortheme[named=YellowOrange]{structure} \\useoutertheme{infolines} \\setbeamertemplate{navigation symbols}{} \\institute{Harvard College Professor and\\\\ Johnstone Family Professor in Psychology, Harvard University} \\title{SAY WHAT?} \\subtitle{Linguistics as a Window to\\\\ Understanding the Brain} \\author{Steven Pinker} \\begin{document} { \\setbeamertemplate{footline}{} \\begin{frame} \\titlepage \\end{frame} } \\end{document}", "Biblatex/biber fails with a strange error about missing recode_data.xml file", "How do I open PDF in Adobe Reader DC without locking the file from being updated by pdflatex? I don't know if this is possible on Adobe Reader DC on Windows, but asking in case someone has managed to do it. When I am working on a large document in LaTeX (I use TexStudio) I sometimes like to keep a second copy of my PDF on a second screen so that I can easily refer to what I wrote before, while on my main screen I would have TexStudio with its preview window, which is typically automatically in sync with my current editing location. On Ubuntu (which uses evince as its default PDF viewer) I used to do it quite nicely. It also seems to watch the PDF file for updates, and keeps in sync of any new versions of the PDF file and reloads it (staying on the same page) when I re-run pdflatex from TexStudio. At the moment I am working on a Windows machine, and I am trying to recreate the same workflow. I would really like to open a second viewer on my second screen so that I can navigate easily to previous chapters without losing my current position in TexStudio's preview window (which will anyway go back to the current editing location when I run pdflatex). The only problem however is that when I open the PDF in Adobe Reader DC to put it on the second screen and then I try to recompile the PDF I get the error \"I can't write to file\". I presume that for some stupid reason Adobe Reader DC maintains some write lock on the file, probably keeping it open while the PDF is visible on screen. Is there a way to disable this stupid file-locking behaviour from Adobe Reader DC? UPDATE After some valuable comments, a workaround is possible using a different viewer. One could either use or (the default PDF viewer on Ubuntu, but also available for Windows). They are not so feature rich, and maybe do not look so nice, but in this case do the job. A similar question was posted for reference.", "Why was William Cage sent to the base?", "Can you please check my Cesaro means proof I wanted to prove the following: if $x_n \\to x$ then $y_n \\to x$ where $$ y_n = {x_1 + \\dots + x_n \\over n}$$ Please can you tell me if my proof is correct? My proof is this: Let $\\varepsilon > 0$. Fix $N$ such that $n > N$ implies $|x_n - x| < {\\varepsilon \\over 2}$. Then $\\left |{1 \\over n} \\sum_{k=N+1}^{N + n} x_k - x \\right | < {\\varepsilon \\over 2}$. Now let $M$ be such that ${|x_1 + \\dots + x_N | \\over M} < {\\varepsilon \\over 2}$ and $M > N$. Then $$ \\left | \\sum_{k=1}^M {x_k \\over M} - x  \\right | \\le \\left | \\sum_{k=1}^N {x_k \\over M} \\right | + \\left | \\sum_{k=N+1}^M {x_k \\over |M-N|} - x  \\right | < \\varepsilon $$ Here the proof is finished. But one can observe: It is possible that $y_n$ converges even if $x_n$ doesn't: If $x_{2n} = 0$ and $x_{2n + 1} = 1$ then $x_n$ does not converge but $y_n \\to {1 \\over 2}$.", "How to perform case-insensitive sorting in JavaScript?" ]
medi_sts_stackexchange_dupe
How can I delete folder named C: inside the E:/ drive?
How to delete (invalid) files with colon in their name under Windows?
[ "Can matter really fall through an event horizon?", "jQuery not working in Wordpress 3.5", "Find the area of largest rectangle that can be inscribed in an ellipse The actual problem reads: Find the area of the largest rectangle that can be inscribed in the ellipse $$\\frac{x^2}{a^2} + \\frac{y^2}{b^2} = 1.$$ I got as far as coming up with the equation for the area to be $A=4xy$ but then when trying to find the derivative I don't think I'm doing it right.", "How to enable linking floating point library in TurboC?", "I have a SQL Server 2005 database using the full recovery model. If I execute the following commands: ALTER DATABASE test SET RECOVERY SIMPLE; ALTER DATABASE test SET RECOVERY FULL; or BACKUP LOG test WITH truncate_only; Then try to run a log backup: BACKUP LOG test TO DISK = 'backupfile.bak' I receive the error message: BACKUP LOG cannot be performed because there is no current database backup. Question: How do I check that I will not be able to take a log backup, without running a backup log command?", "Can't find wifi drivers for 0bda:f179 Realtek Semiconductor Corp", "Let$\\ p_n$ be the$\\ n$-th prime. Can you give me a proof for$\\ \\prod_{i=1}^\\infty \\frac{p_i-1}{p_i}=P\\approx \\frac{1}{11.0453}$? I found$\\ \\prod_{i=1}^\\infty \\frac{p_i}{p_i-1}\\approx 11.0453$ on . Moreover, writing a paper, should one provide a proof or it is trivial? Thanks in advance.", "I have not done much proofs before this and need some guidance. I know that for a simple graph such as this : node - node - node -node Removing the first and last vertex will not disconnect the graph. So far, I can think of two cases: Where there are leaves, or nodes with degree of 1. Where there are no leaves, which means all nodes have degrees 2 or more. In the first case, removing the leaf will not disconnect the graph. In the second case, removing any should not disconnect the graph. Problem is, I don't know how to formulate this into a good proof.", "How to combine bold and \"code sample\" in Markdown?", "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?", "Overlapping text in Database Schema SEDE Over at , there is overlapping text in the Database Schema under Close-As-Off-Topic-Reason-Types: that makes it really hard to read. This is also happening underneath "Pending Flags", and seemingly with every long line in the schema. This would be fine if you could increase the width of the list as you can with the height, which would in theory separate the lines, but you can't. Can we fix this, please? UPDATE: I have found that post is almost exactly the same as mine, but steady on with duplicate votes. comment says that it will be fixed, but that question was asked more than five years ago, and in that time the problem has not been resolved. UPDATE 2: It seems that would help. I changed a little CSS/HTML, and came up with this: Although mine is a little cruder than it could be. This is just an example.", "Dropping z dimension programmatically It seems there is no geoalgorithm to drop z values in the QGIS processing toolbox. Can this be done programmatically using the Python console? At the moment I have to save the layer with unchecked 'Include z-dimension' checkbox (non automatic geometry type):", "If $X$ is measurable space, $f : X\\to [-\\infty,+\\infty]$, function such that $f^{-1}([-\\infty,r))$ measurable for all rational numbers $r$,prove than $f$ is measurable I know that $f$ is measurable iff set $\\{x\\in X : f(x)<a\\}$ is measurable for all $a\\in \\mathbb{R}$ but for $a\\in\\mathbb{Q}$ I don't know how to proceed.", "I viewed in this post a solution to my question, but... Are there any easier way (or alternative) to do this using colors? Thank you. ------------------ edited after showed than it´s duplicate ------------- I think that there are many sols, but for example this is easy using a normal table without pgf... I´m trying to adapt to similar colors to apply to the table probabilitiess", "Why can't Inuzuka clan's dogs use human language?", "How do I install VMware Player 4.0.3 (and patch the installer to work on my 12.04 system)?", "Garbage Collection: Is it necessary to set large objects to null in a Dispose method?", "I set a command block to /tp. It was supposed to activate only if you had 0 time left, and to activate the command block with a hopper clock to keep giving it power. But it is not checking if you have 0 time left, so it keeps teleporting me. I can't get close enough to the command block to break it, so I'm stuck in a neverending teleport loop. Any ideas?", "Give a sequence $(f_n)_{n\\in \\mathbb{N}}$ of differentiable functions which uniformly converge to $0$, but for which the seqeunce $(f_n')_{n\\in \\mathbb{N}}$ of the derivatives isn't even pointwise convergent. I found this one in my textbook marked as \"Fun things to solve\" and although it may be fun, it's kind of hard to do. To be honest I already failed at the first hurdle. I couldn't even find a sequence of functions which uniformly converges to $0$. Is there a certain way of dealing with this kind of problem? Because it seems kind of hard for me to come up with sequences without a mathematical of way of doing so (or maybe there is a mathematical way I just don't know yet).", "TOC entries and labels for included PDF pages I am embedding full pages from another PDF document (using the pdfpages package), but I would like to be able to declare my own section headings before each embedded document (for e.g. hyperlinking / TOC purposes). pdfpages has an experimental feature which lets me do this, but the problem is that I want to put all of these embedded documents inside a section, so I need to insert a section heading and a subsection heading on the first document I embed. Unfortunately pdfpages doesn't seem to be able to do this. Is there a way for me to do this? Edit: Thank you for the suggestions. I am also in need of something similar for general labels — at the moment I am abusing the addtolist option of \\includePDF but the objects I'm labelling aren't really figures or tables." ]
medi_sts_stackexchange_dupe
How to move the polygons of an object into other location by bmesh frame by frame?
Can not move polygons but only vertices of an object by bmesh!
[ "Use Data From Class Without A New Init", "call function declared below Is it possible to call a function which is declared below in bash? Example if [ \"$input\" = \"yes\" ]; then YES_FUNCTION elif [ \"$input\" = \"no\" ]; then NO_FUNCTION else exit 0; fi YES_FUNCTION() { ..... ..... } NO_FUNCTION() { ..... ..... }", "In PHP you can do: print_r($var) or vardump($var) which prints \"human-readible\" information about variable. Is there equivalent functions / helpers for those in Ruby / Rails ?", "Dynamic grid with Atlas generation", "Do we know anything about Aragorn's first time in Moria? When the Company is forced to abandon their attempt to cross the Misty Mountains via the Redhorn Gate (the pass of Caradhras), Gandalf proposes they go \"neither over the mountains, nor round them, but under them,\" via Moria. During the debate Aragorn remarks: \"I too once passed the Dirmrill Gate but though I also came out again, the memory is very evil. I do not wish to enter Moria a second time.\" I haven't read much beyond the LOTR trilogy other than The Silmarillion. Does Tolkien ever describe Aragorn's first visit to Moria anywhere?", "Connect Error (2054) - mysql_old_password issue still not solved", "How to find the last field using 'cut'", "What would be the best approach to get the recordtype id I know of two approaches to get the recordtype id of a particular record type Use SOQL RecordType RecType = [Select Id From RecordType Where SobjectType = 'Account' and DeveloperName = 'Business']; Benifit here is if the admin changes the name of the record type, the code still works as we can use developer name Using Describe Map&lt;String,Schema.RecordTypeInfo&gt; rtMapByName = d.getRecordTypeInfosByName(); Schema.RecordTypeInfo rtByName = rtMapByName.get('Business'); Saves on SOQL limits but uses a describe call. What would be your choice and why EDIT : Usage is for setting up recordtype while inserting records in apex or trigger", "Any good tutorials for learning how to post-process images? I don't really know where to start with post-processing my images. I normally just straighten, crop and sharpen. Do people know of any good resources on the internet for getting a grip with Photoshop and similar tools?", "What happens when a creature with \"Whenever a creature dies\" dies simultaneously with multiple other creatures? has the following ability: Whenever a creature you control with a +1/+1 counter on it dies, return that card to the battlefield under your control at the beginning of the next end step. I had a number of creatures on the battlefield, including Marchesa herself, with one or more +1/+1 counters on them when was played, destroying each creature on the board. When Marchesa and several other creatures would be killed simultaneously, Does Marchesa's ability trigger for herself? Does Marchesa's ability trigger for the other creatures under my control with +1/+1 counters? In attempting to resolve the issue, we tried to look things up, leading to , which cites Rule 603.6d as proving that Marchesa's ability should trigger both for herself and for each other creature with +1/+1 counters. Unfortunately, none of us could actually understand Rule 603.6d, aside from this example: Two creatures are on the battlefield along with an artifact that has the ability Whenever a creature dies, you gain 1 life. Someone plays a spell that destroys all artifacts, creatures, and enchantments. The artifacts ability triggers twice, even though the artifact goes to its owners graveyard at the same time as the creatures. The example certainly seems analogous to me, but without understanding the actual rule, rather than just the example, we weren't too sure. A complete answer has to not only answer the question, but back up that answer with citation and explanation of the official rules on the matter.", "$1^n +2^n + \\cdots +(p-1)^n \\mod p =$? Calculate for every positive integer $n$ and for every prime $p$ the expression $$1^n +2^n + \\cdots +(p-1)^n \\mod p$$ I need your help for this. I don't know what to do, but I'll show you what I know. Wilson's theorem The identity $X^p-X = \\prod_{a \\in \\mathbb{F}_p-1}(X-a)$ $\\exists a \\in \\mathbb{Z}, \\ a^2 \\equiv -1 \\mod p \\qquad \\iff \\qquad p \\equiv 1 \\mod 4$ Now can you please provide me a hint?", "Can't install xposed framework I want to install the xposed framework on my Nexus 5 and in the framework, the install/update option doesn't work. My Nexus 5 runs Android 5.0 (Lollipop).", "Generalizing a sequence. Consider a sequence of the form: $x[n]=-1,-1...,1,1,...,-1,-1...,1,1... \\quad n&gt;0$ One can think of this as a square wave ($\\pm1$) with a 50 % duty cycle (coming from EE). For the simplest case of such a series i.e. $-1,+1,-1,+1,-1...$, a general equation is quite trivial ($x[n]=-1^n$). Can we have e general equation for the other cases i.e. when there are multiple $-1$'s followed by $+1$'s ?", "If $\\sum a_n b_n <\\infty$ for all $(b_n)\\in \\ell^2$ then $(a_n) \\in \\ell^2$ I'm trying to prove the following: If $(a_n)$ is a sequence of positive numbers such that $\\sum_{n=1}^\\infty a_n b_n&lt;\\infty$ for all sequences of positive numbers $(b_n)$ such that $\\sum_{n=1}^\\infty b_n^2&lt;\\infty$, then $\\sum_{n=1}^\\infty a_n^2 &lt;\\infty$. The context here is functional analysis homework, in the subject of Hilbert spaces. Here's what I've thought: Let $f=(a_n)&gt;0$. Then the problem reads: if $\\int f\\overline{g}&lt;\\infty$ for all $g&gt;0,g\\in \\ell^2$, then $f\\in \\ell^2$. This brings the problem into the realm of $\\ell^p$ spaces. I know the inner product is defined only in $\\ell^2$, but it's sort of like saying: if $\\langle f,g\\rangle &lt;\\infty$ for all $g&gt;0,g\\in \\ell^2$ then $f\\in \\ell^2$. I read this as: \"to check a positive sequence is in $\\ell^2$, just check its inner product with any positive sequence in $\\ell^2$ is finite, then you're done\", which I find nice, but I can't prove it :P From there, I don't know what else to do. I thought of Hölder's inequality which in this context states: $$\\sum_{n=1}^\\infty a_nb_n \\leq \\left( \\sum_{n=1}^\\infty a_n^2 \\right)^{1/2} \\left( \\sum_{n=1}^\\infty b_n^2 \\right)^{1/2}$$ but it's not useful here.", "I have an object already created in blender, a tree, or a human, or a pipe.. and I need this to be drilled with multiple holes. The holes are painted in an image, that is, it is an image that has a repeating an images pattern (they can be circles, squares, or any form). Here are some examples for drilling-pattern:", "Suppose we have a natural number $n \\ge 0$. Given natural numbers $\\alpha_1,\\ldots,\\alpha_k$ such that $k\\le n$ $\\sum_i \\alpha_i = n$ what is the maximum value that $\\Pi_i \\alpha_i$ can take? I'm quite sure that there is a theorem telling me the result, but I cannot find it. For sure an upper bound is $n^k$ but I'm searching for a real upper bound. I'm pretty sure that upper the bound should be $n^2$, but I don't know I could prove it.", "Mathematica creates a huge eps file", "Get the title instead of the number of a referenced chapter/section?", "Explanation of finite correction factor", "How do I perform a biographical interview? I have a couple of elderly relatives who have not kept a journal and refuse to write down their \"life story.\" I really would like to know their stories and who they were and who they are. They have their favorite stories that they rehash every time I see them, but I'd like to get more. I have no experience with \"interviewing\" and am looking for information on how to get their stories. Any websites, books, and or tips\\techniques would be greatly appreciated." ]
medi_sts_stackexchange_dupe
how to read a PDF into a char array for HTTP response output
Reading a binary file and using Response.BinaryWrite()
[ "I am just curious, I use handlebar mounted lights, and since I have multiple bikes to switch, it's a lot of trouble changing the light from one to another. So, I am thinking of switching to helmet mounted lights. Give me your point of view. Why or why not? Which is better suitable for which riding type?", "Which of $\\{J_0,J_1,J_2\\}$ and $\\{J_0,J_+,J_-\\}$ is a generator for the Lie algebra $\\mathfrak{su}(2)$? I have just started learning about Lie algebra in the context of quantum mechanics and got confused with this: Some sources say the generators are $J_0,J_1$ and $J_2$ and some use $J_0,J_+$ and $J_−$. Which set is correct? Or if both are correct what key concept am I missing here? My understanding is that if have certain commutation relations then we know that Lie Algebra is such and such. But if we have two such choices then this understanding falls apart? How do I figure out what is $\\mathfrak{su}(2)$ Lie Algebra in general?", "My book uses the argument that the multiplicities of a few macrostates in a macroscopic object take up an extraordinarily large share of all possible microstates, such that even over the entire lifetime of the universe, if each microstate had an equal chance of being accessed, fluctuations away from equilibrium would never occur. My question to this statistical proof is this: In the real world, is there really an infinitesimal but nonzero chance that macroscopic systems could access some of the more unlikely macrostates (e.g. heat transfer from a cold object to a hot object)?", "I understand that the Bernoulli effect is a flawed explanation for the cause of lift, and does not cause much at all, but how much? Is there any experimental data on the force caused by the Bernoulli effect? Maybe implicitly through data of the pressure difference between the top and underside of an aeroplane's wings. After that, I assume I could (crudely approximating the pressure to be acting perpendicularly to the flight direction) use $\\Delta P A$ to work out the net force on the plane. Perhaps there is another way to quantitatively analyse the extent to which the Bernoulli effect causes lift. Edit: see short cartoon (content similar to Mike Dunlavey's answer).", "I have the following text: A Hello world B Hello world C Hello world I know that I can replace Hello by Hi using sed: sed 's/Hello/Hi/g' -i test but this replace each Hello with Hi: A Hi world B Hi world C Hi world what I really want is to replace only the Hello after B: A Hello world B Hi world C Hello world so I have tried this: sed 's/\"B\\nHello\"/\"B\\nHi\"/g' -i test but nothing happened, How can I do this? Note: There are some white-spaces on the beginning of each line of the file.", "I'm looking for the name of a series of space opera novels I read some time ago, probably between 2003 and 2010. It may have been published quite a few years before I read it, I don't think it was new at the time. I borrowed the novels from the local library, but I can't find them in its catalogue. I think the covers were fairly dark and plain, though there may have been some artwork on them. There was a totalitarian empire that controlled most planets, possibly ruled by a queen. There was no mention of Earth, the solar system or other real planets, the setting was completely fictional. There were people with psychic/psionic powers, referred to as something like \"psi\". These people were second-class citizens or slaves. Spaceships were used to travel between worlds. I'm not sure what kind of FTL technology they had, if any. Beyond the edge of the empire was some kind of \"dark space\", where there was no light. There were some horror themes: When travelling in dark space in one of the novels, a ships crew experienced strange thoughts and hallucinations. I remember finding this quite scary at the time. Does anyone know which series this could be? This isn't a duplicate of , since the two questions are about different parts of the same series (the first and second episodes).", "What is the $n$ times iterate of $f(x)=\\frac{x}{\\sqrt{1+x^2}}$?", "I don't do math a long time, so I completely don't remember how to prove that: $$ \\sum_{i=1}^\\infty \\frac{i}{2^i} = 2 $$ Can anybody help me?", "Create UEFI bootable USB stick to install Windows AND Ubuntu from it I know how to make a UEFI bootable stick to install Ubuntu (explained ) and I know how to make one to install Windows 7 (, sorry). I guess for Win 8 the procedure would be similar, but I haven't looked into it. I also know how to make a legacy bootable stick from which I can install Windows and Ubuntu using YUMI. I have failed so far though at creating a UEFI bootable stick that can do this. When I do a UEFI boot from my YUMI multiboot stick it gives me no option to choose between Ubuntu and Windows (hardly surprising I guess) and instead simply UEFI boots Windows (which I find kind of surprising to be honest but maybe this is due to the fact that I added the Windows image after the Ubuntu image and this simply replaced Ubuntu's EFI boot files). So how would I proceed to create such a bootable stick?", "Polygon intersection using turf js I have given this code for intersection: function intersectPolyByPolyFC(poly,fcPoly){ var fgp=[];//variable for feature group var bbPoly=turf.bboxPolygon(turf.bbox(poly));//polygon representation of the bounding box of a reference polygon for(var i=0;i&lt;fcPoly.features.length;i++){//loop through the feature collection of polygons var bb=turf.bboxPolygon(turf.bbox(fcPoly.features[i]));//variable bb represents each polygon for feature collection if(turf.intersect(bbPoly,bb)){//condition to check if the two bounding boxes intersect var int= turf.intersect(poly,fcPoly.features[i]); if(int){ int.properties=fcPoly.features[i].properties; fgp.push(int); } } } return turf.featureCollection(fgp); } and the function definition I have given as var bufline=turf.buffer(line,0.05,{units:&quot;kilometers&quot;}); var intBUOWL= intersectPolyByPolyFC(bufline, lyrBUOWL.toGeoJSON()); L.geoJSON(intBUOWL,{style:{color:'red',weight:5}}).addTo(mymap); When I am drawing a line over a polygon for intersection I am getting this error Uncaught TypeError: Cannot read property 'map' of undefined at Object.t.collect (turf.min.js:1) at summarizePointsByLine (buffer.html:440) at NewClass.&lt;anonymous&gt; (buffer.html:155) at NewClass.fire (Events.js:190) at NewClass._fireCreatedEvent (leaflet.draw.js:8) at NewClass._fireCreatedEvent (leaflet.draw.js:8) at NewClass.completeShape (leaflet.draw.js:8) at HTMLAnchorElement.handler (DomEvent.js:92) How can I resolve this error?", "How can I evaluate $$\\sum_{n=1}^\\infty\\frac{2n}{3^{n+1}}$$? I know the answer thanks to , but I'm more concerned with how I can derive that answer. It cites tests to prove that it is convergent, but my class has never learned these before. So I feel that there must be a simpler method. In general, how can I evaluate $$\\sum_{n=0}^\\infty (n+1)x^n?$$", "Why did Voldemort stop employing Occlumency against Harry in Deathly Hallows?", "Adding Arabic text to an English document", "Why this JSFiddle does not work", "I'm quite confused about attacking with two weapons in both hands and wondering what is required to be able to do to (in Pathfinder). 1. Base Attack Bonus Looking at the base attack bonus tables for different classes (e.g. the ) it seems like up to +5 you get only one attack per full action but starting from base-attack-bonus of +6 you get a second attack with +1. 2. Feats There is a feat . The existence of the feat sounds like you could not do two-weapon-fighting without it. However, in the description of \"normal\" it says: If you wield a second weapon in your off hand, you can get one extra attack per round with that weapon. When fighting in this way you suffer a –6 penalty with your regular attack or attacks with your primary hand and a –10 penalty to the attack with your off hand. If your off-hand weapon is light, the penalties are reduced by 2 each. 3. Core Rulebook Chapter about combat If I understand the it says that you need a full-round action do attack with both weapons in two hands. So how do these things interact? Can I only attack with my off-hand weapon if my base-attack-bonus is high enough that I get second one with +1? If not, how does the \"multiple attacks from high base-attack-bonus\" interact with dual-wielding? Assuming I reached a state of base-attack-bonus with +11/+6/+1 and have a full-round action to attack. Does that mean I can either attack with my primary weapon three times or use the primary weapon and off-hand weapon to attack only twice? Why would I then ever choose dual-wielding? Or can I attack three times with both weapons (leading to a total of 6 attacks with heavy malus) Or would I get 3 attacks with the primary weapon + 1 attack with the off-hand weapon? If so, what attack bonus do I have to use for each of the attacks?", "Why can't I copy a 7 GB file to an external USB HD with 120 GB free?", "If $a$, $b$, and $c$ are sides of a triangle, then $\\frac{a}{b+c}+\\frac{b}{c+a}+\\frac{c}{a+b}<2$. Let $a,b,c$ be the lengths of the sides of a triangle. Prove that $$\\sum_{\\text{cyc}}\\frac{a}{b+c}=\\frac{a}{b+c}+\\frac{b}{c+a}+\\frac{c}{a+b}&lt;2\\,.$$ Attempt. By clearing the denominators, the required inequality is equivalent to $$a^2(b+c)+b^2(c+a)+c^2(a+b)&gt;a^3+b^3+c^3\\,.$$ Since $b+c&gt;a$, $c+a&gt;b$, and $a+b&gt;c$, the inequality above is true. Is there a better, non-bruteforce way?", "given that $f$ is an analytic function with real part $u$ is a polynomial in the variable of $x,y$, $z=x+iy$, we need to show $f$ is a polynomial in $z$, I am kind of puzzled to see the problem, first I would like to say:any hint please", "Can an Indian travel to India with 50 days before passport expires? My wife is travelling from Philadelphia to India in January 2019 and, on her outbound trip, she will only have 50 days validity left on her passport. However, while in India, she will be renewing her passport. The reply from a similar question seems to answer point 1 below, but I wanted a second opinion to be sure. Here are the questions we have: Can she travel from the US to India via Doha, Qatar with passport validity of only 50 days? Can we make a reservation on Qatar Airways for the roundtrip travel using her current passport and before the return from India to the US update passport information on the reservation?", "Determine whether or not a point lies within a rotated rectangle" ]
medi_sts_stackexchange_dupe
Google Sheets importxml help
How to know if Google Sheets IMPORTDATA, IMPORTFEED, IMPORTHTML or IMPORTXML functions are able to get data from a resource hosted on a website?
[ "Multi-OS Portable TeX system I'm looking to treat myself to a totally portable TeX system and was wondering: is it possible to devise an installation scheme that would run on Windows, Linux and MacOS at the \"same\" time? I think TeXLive is the best choice here, but I'd much rather avoid having to maintain three separate TeXLive installations. I'd like the three installations to share the package databases for instance. I'll be using a 32Gb USB stick, in case it matters. PS: I think I'm onto something here... will post back when I have a working prototype. Edit: after reading I managed to format a USB stick with UDF and have it read and written in Linux and Windows (need to perform some tests on Mac yet). This is the first step towards interoperability. Edit 2: well, as it turns out, the previous note was useless (the partition table breaks under Windows), I've found and it works like a charm. The only remaining step is writing a couple of scripts to set the environmental variables and we're done ;)", "Anyone can optimized this code for better explanation and easy to understand?", "Suppose a gambler starts with one dollar and plays a game in which he or she wins one dollar with probability $p$ and loses one dollar with probability $1 - p$. Let $f_{n}$ be the probability that he or she first becomes broke at time $n$ for $n = 0, 1, 2\\ldots$. Find a generating function for these probabilities. Is it binomial distribution $?$ and then use the $\\operatorname{mx}\\left(s\\right) = rx\\left(\\mathrm{e}^{s}\\right)$ of the binomial distribution $?$. Help$\\ldots!$. I am correcting my quiz.", "Uninstall, Activate, Deactivate a plugin: typical features & how-to I'm making a WordPress plugin. What are typical things I should include in the uninstall feature? For example, should I delete any tables I created in the install function? Do I clean up my option entries? Anything else?", "What do the X and Y axis stand for in the Fourier transform domain?", "Is $\\sqrt{x^2}=|x|$ or $=x$? Isn't $(x^2)^\\frac12=x?$ $|x|=\\sqrt{x^2}$ as shows. But, as $(x^2)^\\frac12=x$, I can't understand where am I wrong interpreting Square-root.", "How to turn the white colour portion to transparent I got this map icon in work in illustrator, and would like to turn those white dash line and the white outline of the location mark to transparent. Can you please advise me how to do it? Thank you in advance.", "I downloaded a file from the internet (I can link to it here, but in the interests of not annoying other users, I won't post the link), and I can't delete the file with the message: You need permission to perform this action You require permission from the computer's administrator to make changes to this file Trouble is, I am the administrator and UAC is completely off. If I go into the Properties/Security tab, I get the message You do not have permission to view or edit this object's permission settings Clicking \"Advanced\"/Owner, it says: Current owner: Unable to display current owner. If i try to change the owner, I get the same message: Unable to set new owner on file Access is denied.", "Evaluating the sum after reordering an infinite series $1-\\frac {1} {2}+\\frac {1} {3}-\\frac {1} {4}+\\ldots $ If in the series $1-\\dfrac {1} {2}+\\dfrac {1} {3}-\\dfrac {1} {4}+\\ldots $ the order of the terms be altered, so that the ratio of the number of positive terms to the number of negative terms in the first $n$ terms is ultimately $a^{2}$, show that the sum of the series will become $\\log \\left( 2a\\right) $. Solution attempt. Let $p$ be the number of positive terms in the first $n$ terms of the reordered series so based on the question we are allowed $a^{2}=\\dfrac {p} {n-p}$. Now solving for p we get $p=\\dfrac {a^{2}n} {\\left( 1+a^{2}\\right) }$ and $n-p=\\dfrac {n } {\\left( 1+a^{2}\\right) }$. We also observe that in the original series only the odd terms are positive and only the even terms are negative. Let's define $S_{odd}=1+\\dfrac {1} {3}+\\dfrac {1} {5}+.\\ldots +\\dfrac {1} {2n-1}$ and $S_{even}=\\dfrac {-1} {2}\\dfrac {-1} {4}\\ldots -\\dfrac {1} {2n}$ $S_{Reordered}=S_{odd_{p}}+S_{even_{n-p}}$ $S_{Reordered}=\\sum _{t=1}^{t=P}\\dfrac {1} {2t-1}+\\sum _{t=1}^{t=(n-P)}\\dfrac {-1} {2t}$ $S_{Reordered}=\\sum _{t=1}^{t=\\dfrac {a^{2}n} {\\left( 1+a^{2}\\right) }}\\dfrac {1} {2t-1}+\\sum _{t=1}^{t=\\dfrac {n } {\\left( 1+a^{2}\\right) }}\\dfrac {-1} {2t}$ In order to extend $S_{Reordered}$ from n terms to an infinite length. I guess i should take the limit of the $S_{Reordered}$ as $n\\rightarrow \\infty $ which would make the upper values of $t$ (Not sure of technical term here) to be $\\infty$ giving me $S_{Reordered}=\\sum _{t=1}^{t=\\infty}\\dfrac {1} {2t-1}+\\sum _{t=1}^{t=\\infty}\\dfrac {-1} {2t}$ and i have lost the $a$ from the expression. I guess i am stuck i need to perform some step to capture a before taking the limit. Any help would be much appreciated.", "How do I pass a function as a parameter to in elisp? I'm trying to pass one method to another in elisp, and then have that method execute it. Here is an example: (defun t1 () \"t1\") (defun t2 () \"t1\") (defun call-t (t) ; how do I execute \"t\"? (t)) ; How do I pass in method reference? (call-t 't1)", "In my laptop (a Lenovo y470 ) there are three USB ports. One of those is USB 3.0 others are USB 2.0 . I do not know which one is what. When I copy data from my External HDD it transfers at 38MB/s from all of the USB ports. (Which is a good speed for USB 2 transfers, but to low for USB 3). I used the device manager to confirm that I have one USB 3.0 port. Is there a way a can figure out which port is 3.0 ?", "Recently I answered two questions on SO: The is a completely trivial answer to a really basic question (kind of \"read the manual and follow the one liner example there\"). On the other hand, my is a much more complicated answer that requires much more specialized knowledge of a very specific domain (happens to be related to my PhD research). Clearly, the first answer could have been given by many SO users - I just happened to be the first to pick up the glove on this question. However, this is not the case for the second answer. In contrast, when it comes to reputation - the first answer instantly got upvoted (everyone can relate to a simple question/answer), while the second one - I don't believe it will get much upvotes... So, life isn't fair: for the one answer that really very few people could provide (the second answer) and is much harder to find and get -- is not rewarded, while the trivial answer is rewarded fast and strong... How can we amend this? How can we encourage rare and specialized answers for difficult and deep questions? Do we want SO to turn into a pool of trivial and superficial questions? Update: Thanks to many meta-users who took the time to read through this question and ponder its implication, both answers I used as examples got exposed far beyond their fair-share. So, despite the fact that my original claim that the specialized answer get less reps is no longer valid, this does not change fact that in general my claim is stil valid: specialized answers requiring expert knowledge will recieve less attention at first. Bottom line: (following my wish to have some sort of ). Indeed it sometimes seems like life isn't fair, but this is only in the short term. In the long run high quality answers do get their proper credit and exposure and their fair share of reputation. The reputation system of SO works quite well balancing and accounting for many factors and parameters. It would require a really strong argument backed up with serious research to change this mechanism. Thank you all for the lively discussion and for showing me that life is fair after all.", "A mod-only section of the help center", "Who was the colleague that Erik was going to contact for help? After S.H.I.E.L.D confiscates Jane's work in Thor, the researchers discuss what they'll do next. Erik mentions two colleagues. The first is reasonably implied to be Bruce Banner, but who is the second colleague he mentions? Transcribed from the film: Jane Who are these people? Erik I knew this scientist... a pioneer in gamma radiation. S.H.I.E.L.D showed up and... umm. He wasn't heard from again. Jane They're not going to do that to us. I'm going to get everything back. Erik mumbles Please. Let me contact one of my colleagues. He's had some dealings with these people before. I'll email him and maybe he can help. Darcy They took your laptop, too.", "Is there a reason why \"gn\" in \"reigning\" is pronounced /n/ while in \"regnant\" it is pronounced [gn]? Both reigning and regnant are related to the same Latin noun, regnum. Why is the ‹gn› spelling pronounced [n] in the first word but [gn] in the second?", "How many solutions $X^{10} - I=0$ has in $M_2(\\mathbb{R})$? How many solutions $X^{10} - I=0$ has in $M_2(\\mathbb{R})$? Where $M_2(\\mathbb{R})$ denotes the set of $2 \\times 2$ real matrices. I absolutely have no idea of where I should start from. $I$ and $-I$ solve the equation, but are there any other non-trivial solutions? Are there infinitely many solutions?", "Do we need a global test before post hoc tests?", "Batch script to resize height of all layers to same height but keeping their original aspect ratio I have hundreds of product image layers and I am trying to resize them all to the same height (ignoring the width) and retaining their individual aspect ratio's. Is there a script available that does this? Or a feature I am unaware of? Thanks!", "Removing lines from text file that contain string at beginning and string at end - and keep one It took me a while to word this best. Problem 1: Is there a way to find lines in a text file that have the same string at the beginning and the same strings at the end? Beginning and end strings not necessarily equal to each other. Text between the two strings is not consistant in number of characters or number of hyphens. A hyphen is in between notable strings (which I added to my large text file). For example: File: AAAAA-tjhut-ghyut-FILE1.txt BBB-fhuj-dnbhg-frt76-FILE2.txt AAAAA-ghtujukr-hgute7gr-xhyutt-FILE1.txt AAAAA-VGYT-4d7tt-xhyutt-FILE1.txt CCCC-fjuk-dryy-fhuj-FILE3.txt Lines to detect: AAAAA-tjhut-ghyut-FILE1.txt AAAAA-ghtujukr-hgute7gr-xhyutt-FILE1.txt AAAAA-VGYT-4d7tt-xhyutt-FILE1.txt Problem 2: Is there a way to remove all but one of the lines containing the duplicate strings at the beginning and end from above? Before: AAAAA-tjhut-ghyut-FILE1.txt AAAAA-ghtujukr-hgute7gr-xhyutt-FILE1.txt AAAAA-VGYT-4d7tt-xhyutt-FILE1.txt After: AAAAA-tjhut-ghyut-FILE1.txt Big thanks for any advice. Note: I think using the occurances of the first hyphen and last hyphen can be used to locate the duplicate strings.", "Object selection box with eyedropper" ]
medi_sts_stackexchange_dupe
WCF & ASP.NET concurrency problems
ASP.NET -> WCF concurrency problem
[ "What commands (exactly) should replace the deprecated apt-key?", "What happens 'internally' on a unstable/overclocked/undervolted CPU? When you undervolt or overlock an CPU, when it passes a certain limit it starts to make the system unstable, reboot, etc. But these are the effects of it. What I'm curious about is what happens on the CPU. What happens? It gives wrong answers to instructions? Bits on cache flip?", "Connect Error (2054) - mysql_old_password issue still not solved", "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'm calculating the covariance of a distribution in parallel and I need to combine the distributed results into on singular Gaussian. How do I combine the two? Linearly interpolating between the two almost works, if they are similarly distributed and sized. provides a forumla at the bottom for combination but it doesn't seem right; two identically distributed distributions should have the same covariance, but the formula at the bottom of the page doubles the covariance. Is there a way to combine two matrices?", "Numerical integration of divergent function I am having trouble with the numerical integration of a divergent function. For example, \\begin{equation} n= \\int f(x)\\,dx = \\displaystyle\\int \\dfrac{\\Theta(x-\\varepsilon)\\,dx}{\\sqrt{x-\\varepsilon}} \\end{equation} is not behaving good when calculated numerically: \\begin{equation} n_\\text{numerical} \\approx f(x_j)(x_j-\\varepsilon) + \\sum_{k=j+1}^N f(x_k)\\Delta x \\end{equation} with \\begin{equation} x_i = x_\\text{min} + i\\Delta x \\end{equation} and $x_j$ being the smallest point larger than $\\varepsilon$. Due to the divergent behavior of $f(x)$ near $\\varepsilon$, the numerical result has discontinuities and jumps at every $\\varepsilon=x_i$ when I sweep $\\varepsilon$. The smoothness of this integration is crucial in the convergence of my simulations. Can anybody suggest a simple trick to solve the problem? All I need is to have a continuous numerical result by continuously changing $\\varepsilon$.", "Let $V=\\{f : S \\to \\mathbb{R} \\}$ be the set of all the functions $f : S \\to \\mathbb{R}$. Let $S=\\{ 1,2,...,n$}, now my train of thought was that the basis of V must be a linearly independent set that Span V so somehow show that there is a set of functions on S that can compose as a linear combination and map to any number in $\\mathbb{R}$. Any idea how to get a general answer for basis for dimension of V?", "How do I integrate Github files to Orange for ML? I am currently trying to make a facial recognition workflow with Orange but since the widgets are still prototypes they are not all available in Orange. I found the Github files for the widgets but don't know how to install this so that I can see and use the widgets in Orange.", "I have a professor at my university who uses content from an un-cited textbook that he has never referenced anywhere, including his green sheet (syllabus), as an additional resource. At least some slides he has used include parts of content that have been re-worded and others that are 100% the same. I noticed this by Googling for textbooks on the material we're studying in class and found that examples given in one that I found were exactly the same as what he has provided. Would this technically be plagiarism? Should he be given the benefit of the doubt in this situation?", "Writing USB Joystick for PIC18F using MikroC", "Well the question is to solve for $x$ in $$a^x+b^x=c \\tag{a,b,c are constants}$$ Well as of me, I tried to put $\\ln{}$ on both sides which does not seem to help. Apart from this I don't seem to have any other way to solve it. I turned to WolframAlpha and the solution which was given was : $$x=\\dfrac{-i(2\\pi n +\\pi)}{\\ln{a}-\\ln{b}} , {n \\in \\mathbb{Z}}$$ And if $n=0$ $$x=\\dfrac{-i\\pi}{\\ln{a}-\\ln{b}}$$ The only thing I am able to recognize is $e^{i\\pi}=1$ ... i guess is used. Link : So I see that $x$ is independent of the constant $c$. So how to solve it? Please help...Thanks! EDIT - It seems that WolframAlpha is taking $c=0$ as suggested by Donkey_2009. And when i write \"Solve for x in a^x + b^x = k\" it is not returning anything. So are you guys aware of a method to solve this? Also are you guys aware of any other website/software like WA? P.S. - Also I see that IF we know the values of $a,b,c$ resulting in something like $2^x+3^x=100$ , then Newton's method is the only method I am aware of that can solve it... Any other suggestions?", "When I updated from 14.04 to 14.10 I noticed my track-pad cursor and left and right mouse clickers were not working. I have tried looking this issue up and can not find any solutions anywhere. If anyone could help me that would be amazing, I am using a wired mouse to my USB port for a temporary fix. I have a Dell Inspiron 15R.", "How to mount electronics on a vehicle chassis safely I want to implement a control system I designed for a light electric motorbike. I would like to mount it as professionally as possible on the chassis. It consists of a power system pcb and a SAMC21 development board which I'll merge later once this all works properly. I have tried screwing it directly on the aluminium chassis but have found that shocks and vibrations from the horn disturbed the system or even destroyed it upon large shocks like a few hammer hits. Is there a specific way car and motorcycle manufacturers mount their electronics to make their system as robust as possible? Thank you for your help!", "I am thinking of buying a camera to learn photography. Most of the time I'll be shooting portraits and landscapes. But I am not sure where I should start. Most of my friends tell me that I should get an entry level DSLR, but I am not sure if I have the persistence and enthusiasm to carry it all day in a backpack. But the camera on my cellphone doesn't seem to be enough to begin with. So what I want is some expert advice (preferably with professional experience). Can most compact fixed-lens or mirrorless cameras fit the situations I mentioned? Or do I really need to go to a DSLR to get a tool to learn photography?", "Where do I put item tags on items inside a chest or your inventory? I am making a Minecraft Mini Game adventure map, and one of the levels has a /setblock command, I am using the command in a way to spawn an item in a chest (Wooden Button) I need the wooden button to have CanPlaceOn tag so it can be placed on a log. I have tried this command: setblock 294 5 -1251 minecraft:chest 0 replace {Items:[{Count:1,Slot:0,id:minecraft:wooden_button,CanPlaceOn:[log]}]}`", "Apollonius circle, its radius and center", "How to create a cable/wire for animation? So I've created a \"noodle\" with a path and a bezier Circle that has soft body so that when I click play it will drop and flop about. What I'm trying to do is have one of the cubes stationary while the other moves around having the noodle between them stretch and move around like its a cable. Any tips on this?", "Proof for $A \\cup B = B$ if and only if $A \\subset B$ I am trying to define a proof for $A \\cup B = B$ if and only if $A \\subset B$ I started with: $$A \\cup B$$ $$x \\in A \\lor x \\in B$$ but I am unsure on how to continue.", "Origin of \"Fits [x] to a T\"? The above phrase is something I've known for as long as I can remember, though I don't know from where. What is its origin and usage? Example: &quot;While Android products aren't quite what I need, iOS devices fit my needs to a T.&quot;", "ffmpeg - how to apply filters without losing quality" ]
medi_sts_stackexchange_dupe
Can he's always be used instead of he is?
is "I'll" correct as a short answer?
[ "Combining style numeric with style authoryear in BibLaTeX I haven't had a lot of experience with biblatex so far and I decided to use the numeric style for citations in the text. However, the authoryear style for the bibliography is much nicer. I know, I can't actually combine numeric citestyle with authoryear bibstyle. That brings me to my question: How can I achieve using the numeric citestyle and the formatting of authoryear in the bibliography?", "How do I grep for multiple patterns on multiple lines?", "Can Dementors die? Based upon , J.K. Rowlings has apparently stated \"You cannot destroy Dementors, though you can limit their numbers if you eradicate the conditions in which they multiply, ie, despair and degradation.\" Does this mean that the number of Dementors is always either increasing or remaining the same? If they cannot be destroyed, does that mean they are immortal? Or do they die of \"natural causes\"?", "In naive set theory, I believe ∅ = {∅} = {{∅}} is correct, but just wanted to make sure that I understood this correctly. ∅ is an empty set, so having an empty set as an element of a set that contains nothing else is pretty much the same thing as e.g. marking the number 2 as 2.000000, right? Doesn't the symbol ∅ intrinsically imply that this is an empty set which contains it self?", "I'm new to d20. I recently acquired a bunch of D&amp;D books and I'm sure they are all either 3.0 or 3.5, but it doesn't say in the book which version it is. How can I tell which version the book is? For instance, I have \"Complete Warrior - A Player's Guide to Combat for All Classes\". It's hard back, published in '03. Is it 3.0 or 3.5? Another example, I have \"Sword and Fist - A Guidebook to Fighters and Monks\". Perfect Bound, published in '01. Is it 3.0 or 3.5?", "I try to color the page numbers of my table of contents. I'm using the package hyperref along with the options : \\hypersetup{ colorlinks, linkcolor=wine-stain % custom color } Here's the output : The numbers remain black.. What should I do so the numbers become the same color as defined for the sections ? I tried to \\color{wine-stain}{\\tableofcontents} but still that doesn't work since \"Contents\" is also colorized and the subsection numbers are remaining black.", "On the old style user pages such as mathoverflow I noticed that the long comment on the right is floating lower today than it did previously (as recently as yesterday). I don't know if we care, but I noticed it.", "In The Matrix Revolutions, when Neo and Trinity are trying to get to the Machine City, when the Machines launch weapons against them, Neo is able to destroy some of the incoming weapons. This is in the real world at this point, not in the Matrix. How does Neo have any powers against the machines outside of the Matrix? Addendum: I'm looking for in universe answers only. I would think that would be obvious, but I'm adding this after an answer that is essentially, &quot;It's a movie...&quot;", "Find all entire functions $f(z)$ such that $|f(z)|=1$ for $|z|=1$", "What is the value of lim$_{n\\to \\infty} a_n$ if $\\lim_{n \\to \\infty}\\left|a_n+ 3\\left(\\frac{n-2}{n}\\right)^n \\right|^{\\frac{1}{n}}=\\frac{3}{5}$? Let $\\{a_n\\}$ be a sequence of real numbers such that $$\\lim_{n \\to \\infty}\\left|a_n+ 3\\left(\\frac{n-2}{n}\\right)^n \\right|^{\\frac{1}{n}}=\\frac{3}{5}.$$ What is the value of $\\lim_{n\\to \\infty} a_n$?", "Apache on MacOS Sierra: AH00557: httpd: apr_sockaddr_info_get() failed for Macbook-Pro.local AH00558: httpd: Could not reliably determine… I updated MacOS Sierra's Apache and PHP, and now whenever I $ sudo apachectl restart I get this: AH00557: httpd: apr_sockaddr_info_get() failed for My-MacBook-Pro.local AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message Things I've tried so far that didn't work: Setting ServerName localhost in /etc/httpd.conf Setting ServerName localhost:80 in /etc/httpd.conf Setting ServerName 127.0.0.1 in /etc/httpd.conf Setting ServerName 127.0.0.1:80 in /etc/httpd.conf Ensuring 127.0.0.1 localhost is set in /etc/hosts Repeatedly restarting Apache", "Windows 8.1 64-bit: High memory usage I have 8GB of memory on a 64 bit windows 8.1 machine, and windows is telling me I'm using 91% of my memory, yet its simultaneously telling me I'm only using 3GB. I literally just restarted my machine a few minutes ago because it was being incredibly rediculously slow. I'm currently only running chrome (with a ton of tabs, but doesn't add up to anywhere near 7.5GB). What could be going on here? Here's a bunch of my current info I took a look at this: but I wasn's able to use xperf and the rest didn't lead me to a solution. UPDATE - RamMap: UPDATE 2: I checked Resource Monitor at Wouter's suggestion and found an \"Image\" called lxdecoms.exe with over 6GB of Commt (KB). I tried killing the process, but while it lowered my Commit Charge, it didn't affect \"Used Physical Memory\". So I restarted hoping to capture it again in full, but its not back yet and yet the problem persists. I should note that I do have a Centos virtual box virtual machine running on my machine, not sure if that has any weird memory impacts that aren't reflected in the numbers in these tools. I got xperf working, so here's my resource monitor and a wpa analysis of my xperf output (from xperf -on ReferenceSet -BufferSize 1024 -MaxFile 512 -FileMode Circular &amp;&amp; timeout 5 &amp;&amp; xperf -d MemUsage.etl): What is N/A that's taking up 2.7GB of memory? My VM?", "Obviously, you can use the | (pipe?) to represent OR, but is there a way to represent AND as well? Specifically, I'd like to match paragraphs of text that contain ALL of a certain phrase, but in no particular order.", "Dynamically update a graphic object in Mathematica", "I have firefox already running on my system, and now in minimised state. What I want is to close the current tab running in firefox. How can I do this by simply using commands in terminal?", "Can you cast a spell at a higher level, even if it doesn't have an \"At higher levels\" entry? Many spells have \"At higher levels\" that provides for more targets or more damage. For example Magic Missile can be cast as a second level spell and shoot 4 missiles instead of it's 3 as a first level spell. Can a spell without that verbiage, such as Firestorm be cast in higher level slots for the same effect as the lower level spell?", "Decidability of a predicate. I have the following problem: Let the following predicates be: $P1, P2, Q1, Q1 : R \\to \\{0,1\\} $ . It is given that $P1 \\lor P2$ and $Q1 \\lor Q2$ are semidecidable and $P2 = \\lnot Q2$ What can it be said about $P1 \\lor Q1$? I have searched all over the internet and I simply cannot understand the concept of decidability of a predicate, let alone a logic operation with predicates.", "The foreach identifier and closures", "Why does a delta/wye transformer make 30 degrees phase shift ? I'v heard that a delta/delta or Wye/Wye transformers do not make any phase shift. In delta/wye or wye/delta transformers, There is a 30 degrees phase shift between the primary and secondary coils. So, Why is there a phase shift ? and Why is it 30 degrees ?.. Why not 60 or 120 ? I googled and I found calculations with phasor diagrams that proves the 30 degrees phase but I'm confused because of too many calculations and diagrams, I didn't get it. Would you give me a simple answer, please ? and I prefer the physical meanings and concepts rather than equations and mathematics. Thank you very much,", "Find a circle's radius with three known tangent lines I need to find the equation for a circle (mainly its radius) which is tangent to the following three lines: $y = 0$ $y = \\tan(70)x$ $y = -1.428148x + 0.790201$ For the last tangent line equation, I know that it is tangent at the point $(0.371272, 0.259968)$ However, for the other two I do not know the exact point of tangency, only that the circle is tangent to them." ]
medi_sts_stackexchange_dupe
How may one show that $|\sin x-\sin y|\le |x-y|$?
Show that $\left | \sin a - \sin b \right | \leq \left | a-b \right |$
[ "Centre of Lie Algebra $sl_2(\\mathbb{F})$ For $L=sl_2(\\mathbb{F})$ i.e. matrices with trace zero, what is the centre i.e. $Z(L)$= {$x\\in L : [x,y]=[y,x] \\ \\forall\\ y \\in L$}. I will have to find matrices $A \\in L$ such that $AB=BA$ for all $B \\in L$. But how to appoach this considering trace is zero here.", "Is there a way to find self-answers with the advanced search? Preferably, not using the and including results of all time and not just the recent ones with the new share your knowledge, Q&amp;A-style", "This question exists as it fills a specific criterion. While you are encouraged to help maintain its answers, please understand that \"big list\" questions are not generally allowed on Ask Ubuntu and will likely be closed per the . More information on the . What kind of desktop environments or shells are there for Ubuntu users to install? Please list a desktop environment or shell for each: a description on why you like or suggest it (features, performance, etc.). a good screenshot, preferably of it running on Ubuntu and showing off some of its features. the minimal requirement for it to be usable, If there's any setting to lower it's requirement (Like kde's low-fat profile); how to enable the said setting some instructions on how to set it up if in the repositories, please provide a software centre link", "How can I get the list of all fields(API name,Label,type) of any sObject? I'm trying to build a Dynamic list(table) of records by selecting the Sobject and its fields.So I need to get all the fields with its API name,label,type.But I can't get the label and type.(Tried DescribeSObjectResult Class methods to get label,but it didn't help to get the label dynamically) I tried it with the following code. System.debug('Selection-----'+selectedObject); Map&lt;String, Schema.SObjectType&gt; gd = Schema.getGlobalDescribe(); Schema.SObjectType ctype = gd.get(selectedObject); Map&lt;String, Schema.SobjectField&gt; fmap = ctype.getDescribe().fields.getMap(); List&lt;FieldWrap&gt; strList = new List&lt;WrapMap&gt;(); for(String s: fmap.keySet()) { WrapMap wmp = new WrapMap(); wmp.name = s; wmp.label = String.valueOf(fmap.get(s)); strList.add(wmp); } Where FieldWrap is my wrapper class with name and field of String types. I'm getting the List of API name of fields,but not the Label and type of it.Is there a way to get the label and type of field.If so, please help me.", "Input password into SSH without typing", "Does lower resolution result in better signal-to-noise ratio, given the same sensor size? With the release of the Canon EOS R5/R6, there have been many saying that they prefer the 20MP R6 camera over the 45MP R5 camera, due to its lower price but also because of &quot;better low-light performance.&quot; In camera comparison sites, I've also seen the sentiment that bigger pixels (lower resolution) = better low light performance. However, is this a myth? Here is my reasoning for this. Let's say that there are two full-frame sensors, one 20MP sensor and a 80MP sensor. According to many people, the 80MP sensor would be terrible for low-light photography since the pixels are smaller. However, each 2x2 block in the 80MP sensor could be mapped, and in post averaged to a 1x1 pixel, effectively making the image into a 20MP image. This could also be done in-camera as an option. Would this image have just the same amount of usable information as the image from the 20MP sensor? In other terms, since both sensors are 35mm sensors (i.e. equal area), the amount of light falling onto the sensor is the same. So, at the end of the day, there will be no difference between a 20MP image and a 20MP image that has been downsampled from 80MP, right? So their low-light performance would be the same. You even get an advantage from having the option to get 80MP photos if you wanted. Why do people say that a lower-resolution camera has better low-light performance, when it should theoretically be the same as one with higher resolution (all other factors equal)? Note: this question is about sensors with the same size but with different pixel density. Hence, it is different from asking about different sensor sizes. I am aware that a full-frame camera will have better low-light signal due to its bigger area than an APS-C sensor, but what about the similarly sized sensors?", "Automatically keep current version of config files when apt-get install", "Could we send a man safely to the Moon in a rocket without knowledge of general relativity?", "How can I remove a suggestion from the Chrome address bar? I've got a couple of URL autocomplete suggestions where Chrome suggests the wrong URL consistently. How can I delete the incorrect entry from the address bar's suggestion list? The page I want shows up too but it's never the first result.", "Which characters are valid in CSS class names/selectors?", "Why aren't hash values for \"nothing\" (empty) defined as all zeros? Any decent hash algorithm will produce basically \"random like\" values for any given input including the empty input. For example MD5 produces d41d8cd98f00b204e9800998ecf8427e on an empty input. I wonder, however, why the MD5 algorithm wasn't defined to have a final step where the output is XORed with d41d8cd98f00b204e9800998ecf8427e. This should not affect the cryptographic strength of the hash algorithm, and it would have the convenient property that a hash of all zeros represented a zero input. Would it simply just because adding that step would slow the hash down a bit?", "Why was the Triwizard Cup used as the portkey? In Harry Potter and the Goblet of Fire the Triwizard Cup was used as the portkey to send Harry and Cedric to the graveyard in Little Hangleton to face Voldemort. Why was the Triwizard Cup chosen? Couldn't Crouch Jr. have used anything as a portkey; which would have been much easier and without as much risk (after all of their planning Cedric almost ended up getting the cup first).", "How to forward specific log file outside of /var/log with rsyslog to remote server? How can I forward message from a specific log file like /www/myapp/log/test.log with rsyslog client to remote rsyslog server? This log file is outside of the directory /var/log.", "In a a doubt was voiced about my answer, which claims GCM to requires $2^{128}$ for a successful forgery. The doubt was that the square root needs to be taken meaning the security would be $2^{64}$. So of course I immediately checked the relevant security theorem (): $$\\mathbf{Adv}^{\\text{auth}}_{\\operatorname{GCM}[\\operatorname{Perm}(n),\\tau]}(\\mathcal A)\\leq \\frac{0.5(\\sigma+q+q'+1)^2}{2^n}+\\frac{q'(\\ell_A+1)}{2^\\tau}$$ with $\\sigma$ being the total plaintext size in blocks, $q$ being the total number of encryption queries, $q'$ being the total number of decryption queries, $n$ being the size in bits of the underlying permutation, $\\ell_A$ being maximum authenticated input length in blocks and $\\tau$ being the tag size in bits. Now clearly from this we can see that performing $2^{n/2}=2^{64}$ queries yields a strong enough advantage for a break. Now my question is: When talking about \"n-bits of security\" or \"needs $2^n$ operations to break\", do we usually talk about \"online\" security, ie queries to an oracle can be done and cost $1$ or \"offline\" security where no oracles are available or do we need to make this decision depending on the situation? TL;DR: Does GCM offer 64 or 128 bit security?", "Javascript Remoting - sending sObject as argument", "I was wondering what is the purpose of piping the downloaded file by curl into sudo -E bash - in the following shell: curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -", "I add video files to the video editor, Both audio and video channels appear but only the audio plays. The video is just a white box. Anyone know what is wrong. Added video in WMV. Also tried MP4 same thing.", "Where were the cannons in final fight in Wakanda in Infinity War? In Black Panther, Ulysses Klaue describes his arm cannon as a leaf blower in comparison to the cannons/weapons that Wakanda has. Infinity War comes after the events of Black Panther, so the weapons should exist. During the final fight with the children of Thanos and Space Dogs (as Rocket refers to them), Wakandans could have used these powerful cannons, pointing them at the opened section of barrier. Instead they chose a fist fight. Even M'Baku says that it would be the end of Wakanda, so the magnitude is huge and risks are very high. Why were these powerful weapons not used? Edit 1: I watched the movie again and planes are there in the fight. But they were only used to destroy the spaceships that crashed.", "Recursive feature elimination and one-hot & dummy encoding? When using RFE in linear regression and logistic regression, do we one-hot encode the features (K levels and K dummy features) or dummy-encode the features (K levels and K-1 dummy features leaving one out). As per a comment by @Matthew Drury in an answer (URL below), one hot encoding is applied for a regularized linear model and for unregularized linear model dummy encoding. My doubt is what type of encoding when using RFE without any L1/L2 penalties. My understanding is since in RFE some features gets eliminated so if for a categorical variable with say 4 levels we do dummy encoding and have 3 features/levels in model &amp; RFE eliminated 1, we will only have 2 features/levels left and the interpretation of its coefficient would not make sense in absence of the one level which was left out as reference. Whereas if we have done one-hot encoding and RFE considers 2 features as important and eliminates other 2 then we can very well judge/interpret the coefficients or importance of 2 features RFE keeps. So question which type of encoding is needed to be done when using RFE with linear and logistic regression?", "How run a .jar file with a double-click? I have a problem running .jar files by double-clicking them. When I go to the Properties dialogue I can't find Java--only Archive Manager in the list of programs. But java -jar somefile.jar opens the program." ]
medi_sts_stackexchange_dupe
find all circles intersecting another in a table
Postgis, get the points that are x meters near another point, in meters
[ "Equivalent of shell 'cd' command to change the working directory? cd is the shell command to change the working directory. How do I change the current working directory in Python?", "Homework - set theory infinite union A question from my homework I'm having trouble understanding. We are given: $A(1) = \\{\\varnothing\\}$, $A(n+1) = A(n)\\cup (A(n)\\times A(n))$ $A=A(1)\\cup A(2)\\cup A(3)\\cup \\cdots \\cup A(n)\\cup A(n+1) \\cup \\cdots$ to infinity The questions are: 1) show that $A\\times A \\subseteq A$ 2) Is $A \\times A = A$? Thank you for your help. I've tried writing $A(2)$ but it gets really complicated and I'm having trouble understanding what the sets are. Let alone solve the question.", "I want to switch to French locale. So I tried the below command: myUbundu@myUbundu-desktop:~$ export LC_ALL=fr_FR But I am getting the warning -bash: warning: setlocale: LC_ALL: cannot change locale (fr_FR) How to set the locale to French? Do I need to install additional packages?", "How to distribute the objects on a sphere evenly? I want to replicate this mesh - I think the best way is using a particle system of cubes. So I need to create a sphere of simple circles. It is necessary that in each circle the vertices are at equal distance from each other. But I don't know how to create those circles.", "counting proof for $\\sum_{k=0}^{n-1} 2^{k} = 2^n - 1$ I was hoping someone could help me come up with a combinatorial proof, one with an easy to understand 'story' for $\\sum_{k=0}^{n-1} 2^{k} = 2^n - 1$. For instance I understand that $2^n$ is the number of possibilities when creating subsets of size $n$. For example, if you're given a choice of any topping on a pizza, and you can only have said topping once (decide to include or exclude) then you have $2^n$ choices. But I'm not sure how the $-1 $ would be incorporated, or why the LHS would be $1+2+4+8+...+2^{n-1}$", "having bracket in front of an item", "How can I check the SMART status of a SSD or HDD on current versions of Ubuntu 14.04 through 20.04?", "What antivirus programs are available for Ubuntu? We previously used Symantec Endpoint Protection but it does not work in Ubuntu.", "A group is generated by two elements of order $2$ is infinite and non-abelian", "I have an iPhone 6 128 GB which is not jailbroken. The current version of iOS on the phone is 8.1.3 and yesterday I wanted to update to iOS 8.2. The download went through without any problem but while installing, it gave the error: Unable to Install Update An error occurred installing iOS 8.2 Tried installing after switching Off and ON and also tried Hard Reset (Holding Home button and On/off switch). Same error displays every time. Also the Touch ID has stopped working and I find that the Settings - Touch ID &amp; Passcode - iPhone Unlock is OFF. When I try to switch it ON, the system displays the error Failed Unable to complete Touch ID setup. Please go back and try again. Is anyone facing this problem? I live in India.", "Last time I asked a similar question but that was about svn related versioning info. Now I am wondering how to query windows \"File version\" attribute about eg. a dll. I payed attention to wmi and win32file modules as well without success.", "I'm trying to install Ubuntu 12.10 alongside Windows 7 on my ASUS laptop and I'm new to all of this. I'm using the Ubuntu 12.10 64-bit ISO burned onto a CD. The first time I tried to install it, Ubuntu said it did not detect any other OS, which meant I only had 4 options: Erase disk and install Ubuntu (I don't want to do this) Encrypt new Ubuntu. Use LVM. Something else. If I choose the Something else option, it brings me to the partition menu and says that I have 1 disk with free space of 750516Mb (750Gb), but that's not true because I have Windows 7. I've already read through several questions and people have mentioned that you could only have 4 primary partitions. So I got hold of partition magic and removed my D: and E:, leaving me with primary C: partition and System reserved partition and a lot of unallocated space. I restarted the laptop several times and booted the CD again and I got exactly the same as I did previously. How do fix this problem and install Ubuntu alongside Windows 7? EDIT 1 Here are my results for sudo fdisk -l; echo; sudo parted -l; echo; mount; echo; df -h WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted. Disk /dev/sda: 750.2 GB, 750156374016 bytes 255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x90050371 Device Boot Start End Blocks Id System /dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT /dev/sda2 206848 146368214 73080683+ 7 HPFS/NTFS/exFAT Warning: /dev/sda contains GPT signatures, indicating that it has a GPT table. However, it does not have a valid fake msdos partition table, as it should. Perhaps it was corrupted -- possibly by a program that doesn't understand GPT partition tables. Or perhaps you deleted the GPT table, and are now using an msdos partition table. Is this a GPT partition table? Yes/No? After selecting YES Yes/No? yes Error: The backup GPT table is corrupt, but the primary appears OK, so that will be used. OK/Cancel?", "I've got a project where I'm looking to tweak the standard lead conversion process. Triggers and lead conversion has always been funky in past projects so I was hoping to start the design off by reviewing the order of execution, but after a long google search I'm coming up empty handed. Anyone out there know the specific trigger order for lead conversion? Edit: I'm not asking about trigger execution order for any object, but all the objects created in the lead conversion process. I'd think it would be something like this: Lead Before Update Triggers (isConverted = false, convertedAccountId = null, convertContactId = null, convertedOpportunityId = null) Account Before Insert Triggers (not fired if merged with existing account) Account After Insert Triggers (not fired if merged with existing account) Contact Before Insert Triggers (not fired if merged with existing contact) Contact After Insert Triggers (not fired if merged with existing contact) Opportunity Before Insert Triggers (not fired if no opportunity) (OpportunityContactRoles null) Opportunity After Insert Triggers (not fired if no opportunity) (OpportunityContactRoles = convertedContactId) Lead After Update Triggers (isConverted = true, convertedAccountId = XXX, convertedContactId = XXX, convertedOpportunityId = XXX)", "How to control fan speed? How can I control the computer's fan speed? On Windows there is a wonderful program called .", "How can I get list of symbols, abbreviations, abstract, acknowledgements into Table of Contents before Introduction, and under roman numerals?", "Simple question. SO had turned me into a better developer by far, I like to browse questions that strike my interest and curiosity and just read through the answers. I never fail to learn something new everyday, whether it's something trivial or something much more complex. When I receive reputation it means a lot to me, almost a self achievement of sorts. Something I can show to someone to prove my \"worth\". I think it works for me as a great confidence booster, also its something I can show my friends who don't understand what I do. It almost feels like I can finally have something to back me up if need to be. So the question is what does YOUR reputation mean to YOU? Is it simply a number, is it a score as if you're playing a game, or does it help you mentally achieve your goals and improve yourself like it does for me.", "How to calulate mosfet response time with load? I would like to calculate the response time of a PMOS circuit and of the circuit Could you tell me how to do it? I'm using this transitor. I tried to use the rise time of the PMOS to find it can switch (and i don't know if that's the good way), but I don't now the results with the load. CL en RL. I assume CL at t=0ms is equal to 0V. I tried to use dv/dt, but I failed VIN1 = 28V. VCMD is a command Thanks. edit: I made a mistake. The Zener is also connected to the source. Sorry", "Shared library mappings in /proc/pid/maps Why does /proc/pid/maps contain a few records for the same library ? Here is an example: 7fae7db9f000-7fae7dc8f000 r-xp 00000000 08:05 536861 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20 7fae7dc8f000-7fae7de8f000 ---p 000f0000 08:05 536861 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20 7fae7de8f000-7fae7de97000 r--p 000f0000 08:05 536861 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20 7fae7de97000-7fae7de99000 rw-p 000f8000 08:05 536861 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20 What does this mean ?", "Can I travel to Schengen countries that were not on my itinerary when I applied?", "Follow a pipe using less? Can less follow (by pressing F) a piped input (similarly to a file)? For a file that is being written to, the command less &lt;file&gt; will follow the file when pressing F. But if I have a command that pipes output directly into less, like this command | less pressing F will do nothing. So it looks like pipes cannot be followed like files can? Or maybe it has to do with command also writing to STDERR? The effect I'm trying to achieve is always see the latest output of the command: just like keeping PageDown pressed! A related remark holds for G (go to end): when piping directly to less, it won't work." ]
medi_sts_stackexchange_dupe
I'm going to the dry cleaner's - why the apostrophe S?
I went to the doctor's
[ "Use ALT to move windows in Windows like in Linux In most Linux window managers, one can use the Alt key while clicking and dragging to rearrange windows. This is one of my favorite features of Linux window managers. Is there a way to do this in Windows 7?", "Second mean value theorem proof I am asked to prove the second mean value theorem: Let $f$ and $g$ be defined on $[a,b]$ with $g$ continuous, $f\\ge 0$, and $f$ integrable. Then there is a point $x_0 \\in (a,b)$ such that $$ \\int_{a}^{b}f(x)g(x)dx = g(x_0) \\int_{a}^{b}f(x)dx. $$ My (incomplete) proof goes as follows: Since $ [a,b] $ is compact and $ g $ is continuous, we know there exist $ x_1, x_2 \\in [a,b] $ such that $ g(x_1) \\le g(x) \\le g(x_2) $ for any $ x \\in [a,b] $. Thus, we have the following string of inequalities $$ f(x)g(x_1) \\le f(x)g(x) \\le f(x)g(x_2), \\, \\, \\forall x \\in [a,b], $$ $$ \\Rightarrow g(x_1)\\int_{a}^{b} f(x)dx \\,\\le \\, \\int_{a}^{b} f(x)g(x) dx \\, \\le \\, g(x_2)\\int_{a}^{b}f(x)dx. $$ My problem now is to show the final equality. It seems to me the intermediate value theorem is somehow involved, but I cannot see how to use it. Furthermore, how do I make use of the $f\\ge 0$ condition in the hypothesis?", "Alternate position of x tick labels", "Getting filesystem path of class being executed", "nginx httpMapModule regex variables The states that: Since 1.0.4, case insensitive regular expressions can be used by prefixing the pattern with ~*. And gives the example: map $uri $myvalue { /aa /mapped_aa; ~^/aa/(?&lt;suffix&gt;.*)$ $suffix; } I updated to nginx/1.2.7 to make use of this, and naive regexes work okay, but variables don't. When I try the above syntax I get the error: nginx: [emerg] pcre_compile() failed: unrecognized character after (?&lt; in \"^/aa/(?&lt;suffix&gt;.*)$\" at \"suffix&gt;.*)$\" I also tried the following syntaxes, but none of them worked: ~^(.*)$ $1; ~^(.*)$ \\1; but neither of them worked either. Does anyone know how to get variables to work in regular expressions in HttpMapModule?", "What is the purpose of LongLength for .Net Arrays? What is the purpose of the LongLength property for arrays in .Net. Using a standard integer for length, you could accommodate up to 2 billion indices. Are there really people using .Net to maintain a single array with more the 2 billion elements. Even if each element was a single byte, that would still be 2 GB of data. Is it feasible to use such a large array in .Net?", "How do I bake multiple texture maps into 1 UV, In Blender Cycles? Using: Blender V2.79 Cycles Render Engine After creating a complex interior scene consisting of 3 different texture types, each having 3 associated maps (Diffuse, Gloss, Normal) I noticed the texture and baking options will not successfully combine to create a texture for the exported mesh once I bring it into Unity 3D. The mesh is a single object with the different textures assigned to specified faces. I've played around with a default cube mesh for testing purposes, using the same 3 textures split among the 6 sides, but have only been able to successfully pull over the color info by baking a diffuse map to my UV and saving the image. When using the other baking options, Blender does not successfully create a map for either my Glossy textures, nor my normal map. Even using the \"Combined\" baking option, I am provided a flat dull diffuse image for my mesh, no gloss or normal info is saved. My Node process for textures is displayed here Here is the result of baking my textures as a Normal The result of adding other textures made from Blender's baking, results in flat gloss at best. What can I do differently in Blender, to have my assigned UV Diffuse, Normal, and Gloss maps all appear in a single object in Unity?", "List has no rows for assignment to SObject", "How well will WCF scale to a large number of client users? Does anyone have any experience with how well web services build with Microsoft's WCF will scale to a large number of users? The level I'm thinking of is in the region of 1000+ client users connecting to a collection of WCF services providing the business logic for our application, and these talking to a database - similar to a traditional 3-tier architecture. Are there any particular gotchas that have slowed down performance, or any design lessons learnt that have enabled this level of scalability?", "Why doesn't the tilde (~) expand inside double quotes?", "What does \"if not\" mean in the given sentence", "Story featuring smart people sent on a space mission to nowhere The story in question featured, as the vague title suggests, a \"space mission\" that is really a cover for forcing a bunch of really smart people to be in close proximity to each other for long enough that they can truly evolve their collective intelligence. I recall them developing new maths and, e..g, \"farseeing\" and eventually figuring out that while there was no planet at the end of their journey as they were told, they were able to construct one for themselves.", "String representation of an Enum I have the following enumeration: public enum AuthenticationMethod { FORMS = 1, WINDOWSAUTHENTICATION = 2, SINGLESIGNON = 3 } The problem however is that I need the word \"FORMS\" when I ask for AuthenticationMethod.FORMS and not the id 1. I have found the following solution for this problem (): First I need to create a custom attribute called \"StringValue\": public class StringValue : System.Attribute { private readonly string _value; public StringValue(string value) { _value = value; } public string Value { get { return _value; } } } Then I can add this attribute to my enumerator: public enum AuthenticationMethod { [StringValue(\"FORMS\")] FORMS = 1, [StringValue(\"WINDOWS\")] WINDOWSAUTHENTICATION = 2, [StringValue(\"SSO\")] SINGLESIGNON = 3 } And of course I need something to retrieve that StringValue: public static class StringEnum { public static string GetStringValue(Enum value) { string output = null; Type type = value.GetType(); //Check first in our cached results... //Look for our 'StringValueAttribute' //in the field's custom attributes FieldInfo fi = type.GetField(value.ToString()); StringValue[] attrs = fi.GetCustomAttributes(typeof(StringValue), false) as StringValue[]; if (attrs.Length &gt; 0) { output = attrs[0].Value; } return output; } } Good now I've got the tools to get a string value for an enumerator. I can then use it like this: string valueOfAuthenticationMethod = StringEnum.GetStringValue(AuthenticationMethod.FORMS); Okay now all of these work like a charm but I find it a whole lot of work. I was wondering if there is a better solution for this. I also tried something with a dictionary and static properties but that wasn't better either.", "Complex integral over a circle In an exercise, I'm supposed to assume that $|a| &lt; r &lt; |b|$ and prove that $\\displaystyle\\int_{\\gamma} \\frac{1}{(z - a)(z - b)} dz = \\frac{2 \\pi i}{a - b}$, where $\\gamma$ is a circle of radius $r$ centered at the origin with positive orientation. So I had the idea to express this integral as $\\frac{1}{a - b} \\displaystyle\\int_{\\gamma} \\frac{1}{z - a} - \\frac{1}{z - b} dz$. Then I tried to evaluate each of these separately, but I don't really know what to do. I get $\\displaystyle\\int_{0}^{2 \\pi} \\frac{i r e^{it}}{r e^{it} - a} dt$ for the first term. How am I supposed to integrate this? I can't substitute $u = re^{it}$, can I?", "Windows 7: Disable Lock Workstation After 10 Minutes Using Group Policy On my Windows 7 PC the system becomes locked after 10 minutes of inactivity. Usually I would find this setting next to the screen-saver configuration. The setting is grayed out, however. I think this is because of corporate group policy. As I am an administrator on this computer I should be able to reconfigure the group policy setting using gpedit.msc. What is the group policy setting that I need to change to prevent automatic locking of my workstation? Edit: I don't have configured a screen-saver. I also want to continue to be able to lock the workstation manually.", "How do I install LibreOffice 4? I want to download and install . How can I do this?", "How can there be a directory named `~`? I was trying to test out this buggy/new tool to see how it works, and it prompted me to choose a directory to use for stuff I am doing. From the directory ~/Code/indep, I typed in ~/Code/indep/tarbell. (Stupid, I could have just typed 'tarbell', but whatever.) It prompted me to create it because it didn't exist, I said yes. When I inspected the contents of this directory, here is what I see: brian@navis:~/Code/indep$ ls ~ project1 project2 project3 ... I thought \"oh, weird, it created a symlink to ~\". However: brian@navis:~/Code/indep$ file ./~ ./~: directory file thinks it's a directory. brian@navis:~/Code/indep$ ls -l drwxr-xr-x 3 brian brian 4096 Nov 8 16:50 ~ drwxr-xr-x 8 brian brian 4096 Oct 14 18:42 project1 drwxr-xr-x 3 brian brian 4096 Sep 10 21:15 project2 drwxr-xr-x 5 brian brian 4096 Oct 14 19:33 project3 ... And so does ls -l. I thought, \"oh, ... is it a hard link? I've never really used those.\" But I tried to reproduce, and it's impossible to create a hard link to a directory. So... I guess I've narrowed this down to things I don't understand. Did I mount my home directory in this other directory somehow? My main goal at this point is to remove the reference to my home directory in this folder (rm doesn't seem like the answer), but I'm also curious to know what's going on. EDIT: In retrospect, I understand exactly what happened. As was answered below, the program created a directory called \"~\" inside my current directory. The only really obfuscating fact about this is that I wasn't consistent with how I was actually viewing what the directory was. Sometimes I referred to it as \"~\" and sometimes as \"./~\". It's only if you do the latter that you can actually see what's going on, but until I understood this, I was conflating what I was seeing from using the absolute path of \"~\" to to what was in fact a local directory.", "Execute a command once per line of piped input? I want to run a java command once for every match of ls | grep pattern -. In this case, I think I could do find pattern -exec java MyProg '{}' \\; but I'm curious about the general case - is there an easy way to say \"run a command once for every line of standard input\"? (In fish or bash.)", "I have a map of an area and georeferenced photos. I need to be able to bring the pictures as points and then be able to click at a certain point and an image pop up. I have revisited this issue, i managed to get this far but the pop up doesn't work. See image:", "Return row only if value doesn't exist" ]
medi_sts_stackexchange_dupe
Mini DVI port male to thunderbolt female
Can I use a Thunderbolt display for a macbook pro with a mini display port?
[ "Creating your own Tinyurl style uid", "Batch script to resize height of all layers to same height but keeping their original aspect ratio I have hundreds of product image layers and I am trying to resize them all to the same height (ignoring the width) and retaining their individual aspect ratio's. Is there a script available that does this? Or a feature I am unaware of? Thanks!", "SQL Server Stored Procedure Update not working with ASP.Net C# GridView RowUpdating", "Remove note about sudo that appears when opening the terminal Whenever I open the terminal, To run a command as administrator (user \"root\"), use \"sudo &lt;command&gt;\". See \"man sudo_root\" for details. appears before the terminal. How do I get that to go away?", "Math notation in LaTeX? How can I write e^(3j) in LaTeX? I have tried many syntax, like $e^(3j)$ or $e^*{3j}$ Any help will be very well received.", "The following example works as expected: \\documentclass{article} \\usepackage[table]{xcolor} \\usepackage{makecell, multirow} \\renewcommand\\theadfont{\\normalsize\\bfseries\\color{white}} \\renewcommand{\\theadgape}{} \\usepackage{hhline} \\begin{document} \\centering \\setlength\\arrayrulewidth{2pt} \\arrayrulecolor{yellow} \\def\\clinecolor{\\hhline{&gt;{\\arrayrulecolor{yellow}}--% &gt;{\\arrayrulecolor{gray}}-}} \\setlength\\extrarowheight{2pt} \\begin{tabular}{ c | c | c }% \\rowcolor{gray} \\multicolumn{2}{c|}{\\thead{AAA -- BBBB}} &amp; \\\\ \\clinecolor \\rowcolor{gray} \\color{white} AAA &amp; \\color{white} BBB &amp; \\multirow{-2}{*}{\\thead{CCC}} \\\\ \\hhline{&gt;{\\arrayrulecolor{yellow}}-|-|-} \\rowcolor{gray!25} aaa &amp; bbb &amp; ccc \\\\ \\hline \\rowcolor{gray!25} ddd &amp; eee &amp; fff \\end{tabular} \\end{document} But the following not: \\documentclass[xcolor=table]{beamer} \\usepackage{makecell, multirow} \\renewcommand\\theadfont{\\normalsize\\bfseries\\color{white}} \\renewcommand{\\theadgape}{} \\usepackage{hhline} \\begin{document} \\begin{frame} \\frametitle{test} \\centering \\setlength\\arrayrulewidth{2pt} \\arrayrulecolor{yellow} \\def\\clinecolor{\\hhline{&gt;{\\arrayrulecolor{yellow}}--% &gt;{\\arrayrulecolor{gray}}-}} \\setlength\\extrarowheight{2pt} \\begin{tabular}{ c | c | c }% \\rowcolor{gray} \\multicolumn{2}{c|}{\\thead{AAA -- BBBB}} &amp; \\\\ \\clinecolor \\rowcolor{gray} \\color{white} AAA &amp; \\color{white} BBB &amp; \\multirow{-2}{*}{\\thead{CCC}} \\\\ \\hhline{&gt;{\\arrayrulecolor{yellow}}-|-|-} \\rowcolor{gray!25} aaa &amp; bbb &amp; ccc \\\\ \\hline \\rowcolor{gray!25} ddd &amp; eee &amp; fff \\\\ \\hhline{|-|-|-|} \\end{tabular} \\end{frame} \\end{document} Why are the in beamer rules so strangely misplaced? Is there some workaround?", "Cardinality of a totally ordered union Let $(X_{\\alpha})_{\\alpha \\in A}, (Y_{\\alpha})_{\\alpha \\in A}$ be families of sets such that for $\\{X_{\\alpha} \\mid \\alpha \\in A \\}$ and $\\{Y_{\\alpha} \\mid \\alpha \\in A \\}$ are totally ordered by inclusion. We have $(X_{\\alpha},Y_{\\alpha}) \\neq (X_{\\beta},Y_{\\beta})$ for $\\alpha \\neq \\beta$. Suppose that $|X_{\\alpha}| \\leq |Y_{\\alpha}|$ for any $\\alpha \\in A$. It is true that $|\\bigcup_{\\alpha} X_{\\alpha}| \\leq |\\bigcup_{\\alpha} Y_{\\alpha}|$?", "So what I'm looking for here is something like PHP's function. This is so I can debug my scripts by seeing what's the state of the object in question.", "Recovering from forgotten lock pattern My son has an impression tablet 10 and has forgot the lock pattern. How can we reset it without knowing the code?", "From what I understand, entropy is a concept defined by the experimentalist due to his ignorance of the exact microstate of a system. To say the number of accessible microstates $W$ of the universe is constantly increasing is nothing more than saying 'ignorance begets ignorance'. I have often encountered the argument of ever increasing entropy for the presence of an inherent time asymmetry, most prominently in the works of Penrose. It just doesn't seem to make sense. Let us imagine alien beings who are experiencing time in reverse. For them, increasing ignorance is in the direction of our decreasing ignorance. So how can perpetual increase in entropy indicate an 'arrow of time'? One possible explanation (I thought of) for this argument was the fact that there may never be a mechanism to reduce ignorance. I will pose this as a question: An observer determines the number of possible microstates of system+observer to be $W_0$ at time $t_0$. After improving his measurements, can he (at a later time) measure $W'$ (where $W_0&gt;W'$) as the number of possible microstates? Assume that all the microstates are equally probable in this case. Unless the above in false in general, how else can anyone claim that entropy reveals an arrow of time? EDIT: I am performing this discussion for isolated systems (the universe or it's parts if relevant). The means I propose to reduce entropy in the present, is by redefinition of macroscopic variables and of microscopic models used to count the number of distinguishable micro-states (that obviously yield the same macro-state). This is essentially an argument against the robustness of entropy via redefinition.", "How can I undo git reset --hard HEAD~1?", "I have written below Wrapper class. global class BI_VA_AutomationWrapper { global class BI_VA_AutomationRequest { webservice String userName; webservice String emailId; webservice String buinessUnit; webservice String orgName; webservice String country; webservice String environment; webservice String myShopNumber; webservice String BidsId;//for testing webservice String Type; //for testing } global class BI_VA_AutomationResponse { webservice String responseStatus; webservice String myShopNumber; //webservice list&lt;Error&gt; errorMessages; webservice String errorMessages;//for testing } global class BI_VA_Error { webservice String type; webservice String message; }} And test class is, @isTest public class BI_VA_AutomationWrapperTestClass { public static testMethod void unitTest(){ BI_VA_AutomationWrapper.BI_VA_AutomationRequest wrap= new BI_VA_AutomationWrapper.BI_VA_AutomationRequest(); wrap.userName='Test@test.com'; wrap.emailId='Test@test11.com'; wrap.buinessUnit='AH'; wrap.orgName='ORD'; wrap.country='US'; wrap.environment='QA'; wrap.myShopNumber='123456789'; wrap.BidsId='123'; wrap.Type='ResetPassword'; BI_VA_AutomationWrapper.BI_VA_AutomationResponse res= new BI_VA_AutomationWrapper.BI_VA_AutomationResponse(); res.responseStatus = 'Success'; res.myShopNumber = '987654321'; res.errorMessages = 'Test error'; BI_VA_AutomationWrapper.BI_VA_Error error = new BI_VA_AutomationWrapper.BI_VA_Error(); error.type = 'Test'; error.message = 'Test'; }} Code coverage is 0% only.", "How can magnets be used to pick up pieces of metal when the force from a magnetic field does no work? I learned that the force from a magnetic field does no work. However I was wondering how magnets can be used to pick up pieces of metal like small paperclips and stuff. I also was wondering how magnets can stick to pieces of metal like a refrigerator?", "I want to use the top half of the circle to make a cut but whenever I apply the boolean modifier, the circle just stays there and becomes attached to my other object. I've managed to make the cut in a standard cube but not sure why it's not working for this...?", "I am looking for system monitoring tools which are GUI and CLI or web-based which include basic functions such as: CPU Usage Ram Usage Swap Usage Disk Usage ( Space / I/O ) Heat Monitoring I know there are many tools I can use, but I am looking for a single tool that has these basic functions.", "Proving the AM-GM inequality for 2 numbers $\\sqrt{xy}\\le\\frac{x+y}2$", "In the example $\\cup^{i=1}_{\\infty}F_i$ How do you get the i=1 directly below the union symbol and the infinity directly above?", "GNOME: disable sleep on lid close Is it possible to stop my laptop going to sleep when I close the lid? GNOME 3.20, Fedora 24. My laptop does not reliably wake from sleep. (It happens to be a hardware issue... I think I basically killed it while trying to replace a wifi card. But I want to keep using it for a while longer).", "Is it possible for a foreigner to drive through (mainland) China in a foreign-registered car? Is it possible to drive through mainland China, for example for transit from Kazakhstan to Vietnam, as a non-Chinese citizen, in an own car/van/truck? This is about an European Union citizen, trying to make a tourist trip overland by car from the EU to Vietnam. This is about a special (equipped with sleeping, cooking and other facilities) vehicle, that the owner intends to keep and use in Vietnam, so buying/renting a vehicle inside China and selling it before leaving is not an option - the question is about driving a specific vehicle the owner already has in the EU to Vietnam. getting new licence plates is OK, as long as it is allowed to put back the old ones when the vehicle gets back to the EU. What legal issues are there with getting in an own car over China, and how to overcome them? Is it possible to drive a car with EU licence plates through China, or would one have to get something like temporary Chinese plates? Is an EU driving licence valid? Are there any customs issues one has to know about, and how long one can keep a foreign motor vehicle in China without having to pay import taxes on it?", "View referrals from one part of my site to another in Google Analytics I have an online shop with a blog structured this way: Shop: example.com Blog: example.com/blog Both index have the same Google Analytic Code (UA). In the blog I write articles about some products with a link to the product page. Now the problem is, I want to see stat on visits whose referral links have this pattern example.com/blog/*." ]
medi_sts_stackexchange_dupe
Prove if a discrete subset $E$ of $\mathbb{R}^n$ is compact, then it is finite.
Discrete and compact subset must be finite
[ "Behaviour of increment and decrement operators in Python", "Full-wave bridge rectifier with capacitor filter and ripple voltage According to various sources, the ripple voltage of a full-wave bridge rectifier is $$ V_r = \\frac{V_s}{2}fCR $$ where \\$V_s\\$ is the peak of the input voltage source, \\$f\\$ is the frequency, \\$C\\$ is the capacitor and \\$R\\$ the resistor. I have simulated this circuit on PSPICE, circuitlab, and built it in real life: \\$R\\$ is \\$4.7K\\$ and \\$C\\$ is \\$10 uF\\$. Voltage source is sine wave with \\$0 V\\$ offset, \\$5V\\$ amplitude and \\$40 Hz\\$ frequency. All 3 experiments give me a ripple voltage of approximately \\$0.65V\\$, but the formula gives me \\$1.330 V\\$ (twice as much). What am I missing?", "Evaluating $\\int P(\\sin x, \\cos x) \\text{d}x$", "How often do ewoks eat sentients? In Return of the Jedi, the ewoks plan on eating Luke, Han and Chewie. THREEPIO: I'm rather embarrassed, General Solo, but it appears you are to be the main course at a banquet in my honor. At this point, the tribe had already met and befriended Leia, and had encountered the Imperials in the past, making it fairly likely that they knew humans were . This raises the question of how often they ate sentients. Was it a one-off thing, to honor an extremely rare visit from a god, or was this fairly common?", "If light is an electric and (magnetic field), how can it be absorbed? I was wondering how light or any electromagnetic radiation can be \"absorbed\" if it consists of electric and magnetic fields. For example if there is a charge at point A, and the light reaches point A, it will cause that charge to move depending on the value of the electric field. However, why wouldn't this electric field continue on and influence others particles everywhere else? For example, if you have a static charge creating an electric field, then if you put a charge at point A it will feel its effects and then if you bring a charge at another location B it will also feel its effects, namely it will not have been absorbed. Please shed some light on this. Thanks edit: Does this mean the electron that absorbs this light moves in such a way that it creates an electric field of its own canceling the initial one? Or am I way off?", "Is it possible to check for an injured player in Minecraft? I am creating a mini-game in Minecraft, where I must check to see if the player is injured. The injured player will then be given an item. My guess is that the command would look something like /testfor @p[injured=true], but this command doesn't work. Is there a command for this?", "Proof: in $\\mathbb{R}$, $((0,1),|\\cdot|)$ is not compact. Let $(M,d)$ be a metric space, and $A\\subset M$. By definition, $A$ is said to be compact if every open cover of $A$ contains a finite subcover. What is wrong with saying that, in $\\mathbb{R}$, if $I=(0,1)$, we can choose $G=\\{(0,\\frac{3}{4}), (\\frac{1}{4}, 1)\\}$, which satisfies $I \\subset \\bigcup_{U\\in G} U$, but we can't extract a finite subcover, so $I$ is not compact. Is $G$ a finite subcover of $G$, so it is not a valid cover for proving this? I would take $\\cup_{n\\in\\mathbb{N}} (\\frac{1}{n},1)$ in order to prove this, can we conclude that every open cover is necessarily a infinite union of open sets $\\neq \\emptyset$?", "Reference book on measure theory I post this question with some personal specifications. I hope it does not overlap with old posted questions. Recently I strongly feel that I have to review the knowledge of measure theory for the sake of starting my thesis. I am not totally new with measure theory, since I have taken and past one course at the graduate level. Unfortunately, because the lecturer was not so good at teaching, I followed the course by self-study. Now I feel that all the knowledge has gone after the exam and still don’t have a clear overview on the structure of measure theory. And here come my specified requirements for a reference book. I wish the book elaborates the proofs, since I will read it on my own again, sadly. And this is the most important criterion for the book. I wish the book covers most of the topics in measure theory. Although the topic of my thesis is on stochastic integration, I do want to review measure theory at a more general level, which means it could emphasize on both aspects of analysis and probability. If such a condition cannot be achieved, I'd like to more focus on probability. I wish the book could deal with convergences and uniform integrability carefully, as Chung’s probability book. My expectation is after thorough reading, I could have strong background to start a thesis on stochastic integration at an analytic level. Sorry for such a tedious question. P.S: the textbook I used is Schilling’s book: measures, integrals and martingales. It is a pretty good textbook, but misprints really ruin the fun of reading.", "I'd like to find an analogue of or any other fps counter on Ubuntu 12.10. After some googling I found 2 solutions: To use (I found it from ). This solution didn't work for me because after launching the game: mumble-overlay game I got this error: game: symbol lookup error: /usr/lib/mumble/libmumble.so.1: undefined symbol: glPopClientAttrib And I didn't find any fix of this error in the WEB. To use WINEDEBUG=fps with osd_cat. It works only with (only Windows games). Found from reading and . It shows FPS during play but the output is definitely wrong - 0.15-0.18 fps. And it doesn't matter if game really runs slow or fast - the result is always the same. Does anyone know how to fix these errors? Or are there any other solutions? Thanks for the help.", "Proving that $d(f,g)=\\|f-g\\| = \\sup \\limits_{0\\leq x \\leq 1} |f(x)-g(x)|$ is a metric on $X=C[0,1]$ Let $X=C[0,1]$ be the set of all continuous functions on $[0,1]$. For any two functions $f,g\\in X$, set $$d(f,g)=\\|f-g\\| = \\sup \\limits_{0\\leq x \\leq 1} |f(x)-g(x)|.$$ Prove $(X,d)$ is a metric space. My attempt: This question comes down to showing that $d$ is a metric, which means that: $d(f,g)\\geq 0$ $d(f,g)=0\\iff f=g$ $d(f,g)=d(g,f)$ Triangular sadness. 1) Nonnegativity is guaranteed by taking the supremum of the absolute value of a sum, since the absolute value of a sum is non-negative, the supremum of non-negative numbers is non-negative. $\\square$ 2) For the supremum of $|f(x)-g(x)|$ to be equal to $0$, the greatest number for $|f(x)-g(x)|$ from $0\\leq x\\leq 1$ must be $0$, hence $|f(x)-g(x)|=0$ for all values on this range, and thus $f(x)=g(x)$ is the constant zero map. $\\square$ 3) $|f(x)-g(x)|=|g(x)-f(x)|$ implies that $\\sup \\limits_{0\\leq x \\leq 1} |f(x)-g(x)|=\\sup \\limits_{0\\leq x \\leq 1} |g(x)-f(x)|$ $\\square$ 4) Triangular sadness: We need to prove that $d(f,g)\\leq d(f,h) + d(g,h)$ I.e. $\\sup \\limits_{0\\leq x \\leq 1} |f(x)-g(x)|\\leq \\sup \\limits_{0\\leq x \\leq 1} |f(x)-h(x)|+\\sup \\limits_{0\\leq x \\leq 1} |g(x)-h(x)|$ Now I am not sure how I can 'behave' with the sup 'function'. Can I do the following? $$\\sup|f(x)-g(x)| = \\sup|f(x)-g(x)+h(x)-h(x)|=\\sup|f(x)-h(x)+(h(x)-g(x))|$$ Then use normal triangular inequality: $$\\sup|f(x)-h(x)+(h(x)-g(x))|\\leq \\sup(|f(x)-h(x)|+|h(x)-g(x)|)=\\sup(|f(x)-h(x)|+|g(x)-h(x)|)$$ This is obviously less than $\\sup \\limits_{0\\leq x \\leq 1} |f(x)-h(x)|+\\sup \\limits_{0\\leq x \\leq 1} |g(x)-h(x)|$, but I don't know how to prove it. How do I finish that one off.", "Let me know I have upvotes even after hitting the rep cap When you cap, you don't see any upvotes you get on your profile, therefore, you don't have any update on how your questions / answers are doing unless you look at them manually. Capping the 200 daily rep is not a reason to stop posting here so could I get notified somehow that my posts are being voted on ? Maybe put a little +X in a different color letting me know that I got these votes but I won't get the reputation for it. I can go and see in my reputation feed inside my profile and see it : So I don't see why it wouldn't show up in the feed above. Maybe putting the feed button green without any +X just like when you aquire a badge.", "Proving if $a$ is not a multiple of prime $p$, then an integer $b$ exists such that $p^b - 1$ is a multiple of $a$ I tried many approaches but none of them really worked I treated $p^b-1$ as a Geometric progression but it didn't work and that is about as far as I have been able to go I have no clue how to move forward", "Creating a link using an 18 character ID I have an 18 character SFDC ID. I was under the impression that I should be able to create a link to that record using the following pattern: https://&lt;org server&gt;.salesforce.com/&lt;id&gt; For example: https://na12.salesforce.com/00TU000000Nf5NP That link works fine for me. However, when I try to link to the same object using the 18 character, case insensitive ID (ex. https://na12.salesforce.com/00tu000000nf5npmaz), I get the following error: Insufficient Privileges You do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary. What exactly is the problem? If all I have is the 18 character ID, how can I create a link back to the correct SalesForce record?", "I just got a new hat! :D screaming with joy Looking at so many users looking all exquisite with their stunningly 'fitted' hats, I'm wondering if there's an option to resize or rotate a hat? PS: Happy Winter Bash everyone! :)", "I recall having heard somewhere that the only 1-manifolds (second countable, Hausdorff, connected spaces locally homeomorphic to $\\mathbb R$) are $\\mathbb R$ and $S^1$. Is this true? If so, is there a reasonably elementary proof?", "Short story in book collection about war machines and armies out of control I read in an anthology book in 1975. It starts with two people watching a “robot” plane glide high and then dive into an opening of a factory causing a massive explosion. I’m not sure but I think the people may have orchestrated the attack on purpose to get the robot armies fighting each other in the hope that it would diminish robot army capabilities and bring them under control. The robot wars did occur, but at the end of the story the people discover a tube sticking out of the ground that is periodically shooting something into the air. Nearby they find a canister that did not get launched out of the “cannon” successfully and it was broken open. After close examination they discover tiny “ants” on the canister that are actually tiny robots which are rebuilding the robot war factories. The robots have adapted and will keep trying to fulfill their mission. This story may have been in a booked edited by Roger Elwood, but I cannot guarantee it.", "strange character replacement on SO I added a comment to but something strange is happening. The end code reads \"); but SO decided to change that to \";);. I did not add a ; in front of the ). To further explain what's happening here, the following: \"http://example.com/.\" http://example.com/. \"http://example.com.\" http://example.com. \"http://example.com\" http://example.com renders as:", "What is the best way to save values (like strings) for later use? I'm fairly new to LaTeX and I'm struggling with something apparently simple, but for which I can't find a fair solution. The problem (simplified) is as follows (please take care terms used may not have the traditional meaning in LaTeX): I need to references to files (many) throughout a text. As example, the files: \"C:/Work/this_file1.c\", \"C:/MoreWork/this_file1.c\" and \"D:/MoreWork/another_file2.h\". So, now I would like to create an \"alias\" to each directory and each name file so I can reference them. A \"pseudocode\" could be: % Definition \\alias \\c_dir = C:/Work/ \\alias \\d_dir = D:/MoreWork/ \\alias \\file1 = this_file1.c \\alias \\file2 = another_file2.h % Reference in text \\c_dir\\file1 % For referencing C:/Work/this_file1.c \\d_dir\\file1 % For referencing D:/MoreWork/this_file1.c \\c_dir\\file2 % For referencing C:/Work/another_file2.h My first approach was using \\newcommand, but that caused numerous problems due to naming limitations. (I also tried other methods like pgfkeys, but it always gets stuck somewhere!) Can you suggest a method?", "It is stated as a problem in Spivak's Calculus and I can't wrap my head around it.", "Questions about right ideals" ]
medi_sts_stackexchange_dupe
Posting a comment about flagging a post
"Belongs on" comments
[ "I'm working with that has X Y coordinates. They are akin to '3672187.92698000, 534175.72095400'. I would like to convert them to longitude latitude so they are more like '-90.097017, 29.963176'. I've seen this however I don't have that software. I was able to download and install but I am unfortunately perplexed by its complicated interface. Would like to do the conversion with it, if possible.", "Why can't \"fi\" be separated when being copied from a compiled pdf?", "\"As a beginner, I am happy that I learned a new thing.\" You will recognize this as your DoReMi-s.( at 4:52) What is the meaning of the \"AS\" there and when do we use that? In depth answers would be appreciated. Similarly: Do I have your word as a lawman not to shoot me down like a dog in the street? Can you explain this sentence? Can I understand it as a lawman wouldn't shoot down people on the street or wouldn't have his word or what?", "I've set up an Ubuntu 14.04 Server (from an Ubuntu 12.04 Server) but today I wanted to look in the auth.log but this file is not used. It seems that ´syslog´ was deleted. How does Ubuntu 14.04 log? I need this for a server. Thank you.", "Why doesn't C# support implied generic types on class constructors? C# doesn't require you to specify a generic type parameter if the compiler can infer it, for instance: List&lt;int&gt; myInts = new List&lt;int&gt; {0,1,1, 2,3,5,8,13,21,34,55,89,144,233,377, 610,987,1597,2584,4181,6765}; //this statement is clunky List&lt;string&gt; myStrings = myInts. Select&lt;int,string&gt;( i =&gt; i.ToString() ). ToList&lt;string&gt;(); //the type is inferred from the lambda expression //the compiler knows that it's taking an int and //returning a string List&lt;string&gt; myStrings = myInts. Select( i =&gt; i.ToString() ). ToList(); This is needed for anonymous types where you don't know what the type parameter would be (in intellisense it shows up as 'a) because it's added by the compiler. Class-level type parameters don't let you do this: //sample generic class public class GenericDemo&lt;T&gt; { public GenericDemo ( T value ) { GenericTypedProperty = value; } public T GenericTypedProperty {get; set;} } //why can't I do: int anIntValue = 4181; var item = new GenericDemo( anIntValue ); //type inference fails //however I can create a wrapper like this: public static GenericDemo&lt;T&gt; Create&lt;T&gt; ( T value ) { return new GenericDemo&lt;T&gt; ( value ); } //then this works - type inference on the method compiles var item = Create( anIntValue ); Why doesn't C# support this class level generic type inference?", "Is there a way to resolve probability of an event, given another event that never happens? Mathematically speaking the problem is: Given that $P(B) = 0$, $$P(A|B)=\\frac{P(A \\cap B)}{P(B)} = \\frac{0}{0}$$ Is this probability vacuously $0$ of $1$? Can we show that it's one or the other?", "Minor grid in pgfplot not showing when specifying ticks manualy Firstly I would like a minor tick between every major tick in my pgfplots graph (and minor grids). I wrote minor tick num=1 but it doesn't work. I am not using a logarithmic axis so it is unrelated to other questions. Secondly, why is the tick label \"1\" missing for each axis? How do I get that to display? \\documentclass{standalone} \\usepackage{pgfplots} \\begin{document} \\begin{tikzpicture} \\begin{axis}[% footnotesize, width=4in, height=4in, axis equal, scale only axis, separate axis lines, grid=both, every outer x axis line/.append style={black}, every x tick label/.append style={font=\\color{black}}, xmin=0, xmax=1, xlabel={X}, every outer y axis line/.append style={black}, every y tick label/.append style={font=\\color{black}}, ymin=0, ymax=1, ylabel={Y}, minor tick num=1, xtick={0,0.1,...,1}, ytick={0,0.1,...,1}, axis background/.style={fill=white}, legend style={at={(0.97,0.03)},anchor=south east,legend cell align=left,align=left,fill=white} ] \\end{axis} \\end{tikzpicture}% \\end{document}", "I'm fairly new to blender and not a graphics person by any stretch of the imagination. I've been having some success though modelling semi-reflective glass for a project I wish to build (physically) and I'm wondering if it is possible to model the effects of a lens. The lens I wish to model is a double-convex type. It has a diameter of 120mm and a focal-length of 301mm. Is this something that can be modelled in blender and if so, how? I'd like to be able to position the camera close to this lens and reproduce the magnifying effects of the lens on the scene behind the lens as well as depth-of-field effects. Thanks a lot.", "Take a look at this example schematic: The chip in question is the and as you can see power is provided on both sides (with a 100nF cap to smooth noise I guess). Is this strictly required or could you put power into one side and just ignore the other? I know that I have just put power in one side and everything still seems to work fine but I feel uneasy with doing that. I feel that they would not waste pins that could be doing something useful by having an extra pair of power in/out pins. For what purpose does this PIC MCU (and others like it) have multiple power pins?", "Requesting review of technically inaccurate answers", "Eliminating non-integer solutions to $ab / (2\\sqrt{ab} + a + b)$", "$X_1, X_2, \\ldots, X_n$ are $n$ i.i.d. uniform random variables. Let $Y = \\min(X_1, X_2,\\ldots, X_n)$. Then, what's the expectation of $Y$(i.e., $E(Y)$)? I have conducted some simulations by Matlab, and the results show that $E(Y)$ may equal to $\\frac{1}{n+1}$. Can anyone give a rigorous proof or some hints? Thanks!", "XP Activation and Dual Booting", "What should be in the sources.list for Kali Rolling Linux? This is exact content from my sources.list: # # deb cdrom:[Debian GNU/Linux 2016.1 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160830-11:29]/ kali-rolling contrib main non-free #deb cdrom:[Debian GNU/Linux 2016.1 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160830-11:29]/ kali-rolling contrib main non-free I couldn't install the Synaptic package manager and was told to modify sources.list. I googled a lot and added some repos into it and ran update and upgrade command only to see Kali crash... I had to recover it. Please mention the exact content that should be there to ensure that Kali Linux works.", "Guest (not logged in) users can only sort questions with specific tag by newest I think this is platform wide (all SE sites). Logout Choose a tag, eg. on SO Try to sort questions by something other than newest No matter what sorting is chosen, questions are sorted by newest", "Installing TTF fonts in LaTeX One of the annoying aspects of LaTeX is the limited number of fonts that come by default, and the pain involved in making new fonts 'LaTeX' ready. I have a collection of truetype fonts that I'd like to prepare for use, and I definitely want to make sure I have vector versions of these fonts (i.e not type 3/bitmapped versions). Is there a relatively painless way to do this ?", "If $2^n - 1$ is prime from some integer $n$, prove that n must also be prime.", "I have to prove this : \"$n^7-n$ is a multiple of 7\". This is what I have done this so far : $P(n):n^7-n$ On putting $n=1,$ $P(1):1^7-1=0$, which is a multiple of 7. So, $P(1)$ is true. Let $P(k)$ be a multiple of 7. So, $k^7-k$ is a multiple of 7. So, $k^7-k=7m$, where $m$ is any natural number. Let $P(k+1)$ be true, Hence, $(k+1)^7-(k+1)$ is a multiple of 7. Now, how do I evaluate $(k+1)^7$ without using the binomial theorem ? Or is there some other way to do it ?", "How to partition harddisk for Ubuntu 18.04 I want to partition my hard disk, but I don't have any other software running(like dual booted). And I do not know how to do it. Can you send the instructions?", "Theorem style with name as argument Is there some way to get a theorem type which will make a theorem with the name passed as a parameter? In other words, is there a way to define \"named\" such that \\begin{named}[NAME] text \\end{named} will print \"NAME: text\"? I tried using the definition \\newtheorem*{named}{}, but that results in \"(NAME): text\", which is quite different from what I am trying to do. I know that I could also create a new instance of \\newtheorem for each named theorem I want to use, but that is clunky and inconvenient. Is there a better way?" ]
medi_sts_stackexchange_dupe
Can't get equals button to work in Java Swing calculator
How do I compare strings in Java?
[ "Can I mix different RAM modules in PC? I have 4 RAM slots on the motherboard P5K. At the moment I have two 1GB RAM modules and two 2GB RAM modules. Everything is working fine. Can I buy one 4GB module and put it instead of the 1GB module? Another question, can I mix MHz values, like that I have two 667MHz modules and two 1066MHz modules? Is this dangerous for the comp?", "I need to print an image at a certain size. What dimensions and resolution should I use? (This question is meant to be a resource to direct others to given that this is a common question.) Given the task of creating an image that will be printed at a certain size, what pixel dimensions and resolution should I be setting my file at?", "Possible Duplicate: Most commands I use in linux behave exactly the same whether I include the trailing slash / character on the end of a directory name or not. For example: ls /home/cklein ls /home/cklein/ cp foo bar cp foo/ bar/ When does this trailing slash matter? What is the semantic meaning of the trailing slash?", "Is Unit Testing worth the effort? I am working to integrate unit testing into the development process on the team I work on and there are some sceptics. What are some good ways to convince the sceptical developers on the team of the value of Unit Testing? In my specific case we would be adding Unit Tests as we add functionality or fixed bugs. Unfortunately our code base does not lend itself to easy testing.", "How can I enable Hardmode? What items do I need to make my world Hard Mode?", "Proving the AM-GM inequality for 2 numbers $\\sqrt{xy}\\le\\frac{x+y}2$ I am having trouble with this problem from my latest homework. Prove the arithmetic-geometric mean inequality. That is, for two positive real numbers $x,y$, we have $$ \\sqrt{xy}≤ \\frac{x+y}{2} .$$ Furthermore, equality occurs if and only if $x = y$. Any and all help would be appreciated.", "Update: Now that it's 2016 I'd use PowerShell for this unless there's a really compelling backwards-compatible reason for it, particularly because of the regional settings issue with using date. See @npocmaka's What's a Windows command line statement(s) I can use to get the current datetime in a format that I can put into a filename? I want to have a .bat file that zips up a directory into an archive with the current date and time as part of the name, for example, Code_2008-10-14_2257.zip. Is there any easy way I can do this, independent of the regional settings of the machine? I don't really mind about the date format, ideally it'd be yyyy-mm-dd, but anything simple is fine. So far I've got this, which on my machine gives me Tue_10_14_2008_230050_91: rem Get the datetime in a format that can go in a filename. set _my_datetime=%date%_%time% set _my_datetime=%_my_datetime: =_% set _my_datetime=%_my_datetime::=% set _my_datetime=%_my_datetime:/=_% set _my_datetime=%_my_datetime:.=_% rem Now use the timestamp by in a new ZIP file name. \"d:\\Program Files\\7-Zip\\7z.exe\" a -r Code_%_my_datetime%.zip Code I can live with this, but it seems a bit clunky. Ideally it'd be briefer and have the format mentioned earlier. I'm using Windows Server 2003 and Windows&nbsp;XP Professional. I don't want to install additional utilities to achieve this (although I realise there are some that will do nice date formatting).", "If $L_i/K$ are Galois extensions of number fields, $i=1,\\ldots,n$, and $L=L_1\\cdots L_n$ is the compositum. Then it's true that a prime $\\mathfrak{p}$ of $K$ splits in $L$ if and only if it splits in all of $L_i$. Does this also hold if the $L_i$ are not Galois extensions of $K$? The proof that I know regarding the compositum uses the fact that the $L_i/K$ are Galois, so is this true in the more general setting and how would one prove it?", "I accidentally unset all the directories of $PATH while trying to add a new one in ~/.bashrc. I opened a new terminal window as I was editing and now $PATH is empty. I'm worried if I boot from another drive to find the $PATH I won't be able to boot into this drive again. Basically, what is the default result of echo $PATH?", "How to move an element into another element?", "How come I never see cosmic rays in steam like they appear in a cloud chamber?", "How can I safely move a module to another folder? I created a module through Drupal Console, unfortunately it wasn't placed in a folder of its own, rather straight into /modules/custom. Before I noticed where it had gone, I enabled the module. In Drupal 6/7, this was easy to fix - I could literally just put the files into the correct path, clear the cache (maybe rebuild the registry, it wasn't an exact science), and all was well. The same isn't true for Drupal 8; I moved the files into a subfolder, rebuilt cache, and all requests tell me that Drupal is failing to include a required file. The particular file is a block class, and the path Drupal is trying to find it is where it used to be, not where I've moved it to. The bit of code objecting is in Symfony's ApcClassLoader, so I guess I need to clear something that's slightly above Drupal's head to get this path reference updated. How can I do that? Uninstalling and re-installing the module does work, but once there's important data stored that's not going to be an option. I was wrong, uninstalling and re-installing is not a viable option. After uninstalling and reinstalling, Drupal can no longer pick up the custom blocks the module defines. I'm guessing that reference is cached somewhere that isn't cleared when the module is uninstalled. Just need to find out where that is and how to clear it...", "Why isn't there a potential difference across a disconnected diode? I know this question sounds silly, as if there was a potential difference a current would be created when the terminals are connected together and this would mean energy has come from somewhere. The reason I ask this though is that from my understanding of the depletion region and built in potential of a diode it seems like if you connected a voltmeter across the whole diode it would show the value of the built in potential. This is explained in the image below: At first, electrons flow from the n type to the p type because there are a higher concentration in the n type, and holes do vise versa. This is called the diffusion current. The first electrons and holes to cross the pn boundary are the ones which are closest to it; these carriers recombine when they meet each other and are then no longer a carrier. This means there is a depletion region of no carriers near the pn boundary. because electrons have left the n type material, and holes have left the p type material, there is a surplus of positive and negative charge on the n and p side of the pn boundary respectively. This causes an electric field that opposes the diffusion current, and so no more electrons or holes cross the boundary and combine. In short, only the electrons and holes near the boundary combine, because after they have done that an electric field is formed that prevents any more carriers from crossing. The current due to this electric field is called drift current, and when in equilibrium this will equal the diffusion current. Because there is an electric field at the boundary (pointing from the positive charge to the negative charge) there is an associated voltage. This is called the built in potential. If you sample the electric field at each point along the diode from left to right, you would start with 0 in the p region because there are an equal number of protons and electrons. As you approach the depletion region you would see a small electric field pointing back towards the p region, caused by acceptor impurities which now have an extra electron (due to recombination) and therefore now have a net negative charge. This electric field would increase in strength as you get closer to the boundary, and then die away as you get further away. This electric field means there is a voltage, as shown in graph (d). The p side is at an arbitrary potential, and the n side is at a potential higher than this because there is an electric field between them. This means there is a potential difference across the depletion region; this is known as the built-in potential. But why when I connect a volt-meter across the whole diode will I not see this built in potential?", "How can I install Ubuntu encrypted with LUKS with dual-boot? The Ubuntu installation disk has an option to install Ubuntu encrypted using LUKS. However, there is no option to perform an encrypted installation along-side existing partitions for a dual-boot scenario. How can I install Ubuntu encrypted alongside another partition from the live disk?", "Having different horizontally distributed equations inside an align environment, only lines are numbered, but not individual equations. How can the left equations be numbered using subequations? See also the question \\documentclass{article} \\usepackage{amsmath} \\begin{document} \\begin{subequations} \\begin{align} %\\label{a} a &amp;= a ,&amp; \\label{b} b &amp;= b ,\\\\ %\\label{c} c &amp;= c ,&amp; \\label{d} d &amp;= d . \\end{align} \\end{subequations} \\end{document} The solution should be able to either: attach a label to the left equations, or modify the labels on the right to read (1a,b) and (1c,d) I couldn't find anything in the documentation of amsmath or other packages.", "How do I find the index of an element in a list in Racket?", "What is a wave?", "Entire function bounded by polynomial of degree 3/2 must be linear. The problem is as follows: Suppose $f$ entire satisfying $$ |f(z)| \\leq A + B |z|^{3/2} $$ for some fixed $A,B &gt; 0$. Prove that $f$ is a linear polynomial. I know I want to reduce it to a function where I can use a Cauchy bound, but I'm not sure how.", "What is the difference between DPI (dots per inch) and PPI (pixels per inch)? There are lots of other questions on Graphic Design which partly cover this, e.g. . However, I have become frustrated at the number of questions and answers which confuse the two terms. I think understanding the difference is important. So here's a place to answer this question well and clear up the confusion!", "Why are we using a biased and misleading standard deviation formula for $\\sigma$ of a normal distribution?" ]
medi_sts_stackexchange_dupe
How to sort multidimensional array in php order by array value. Array may contain duplicated values
How can I sort arrays and data in PHP?
[ "Is it possible to have a different background for each workspace? I normally use 4 different workspaces for different things, and they are always the same. Can I make a different background image for each one of them? I would like an answer that works for GNOME 3 desktop environment, Unity and the Classic desktop environment. This question has multiple answers covering different Ubuntu versions:", "I already have a 6 month valid UK business visa received prior to April 24 2015. I was supposed to travel to the UK in April, but my trip was cancelled on medical grounds. I am now planning to visit the UK in July for tourism. Would it be fine for me to do so? Will I be allowed to enter the UK? Should I carry the original invite letter and medical certificate to prove why I didn't go the first time?", "Finding $\\tan t$ if $t=\\sum\\tan^{-1}(1/2t^2)$ I am solving this problem. If $$\\sum\\limits_{i=1}^{\\infty} \\tan^{-1}\\biggl(\\frac{1}{2i^{2}}\\biggr)= t$$ then find the value of $\\tan{t}$. My solution is like the following: I can rewrite: \\begin{align*} \\tan^{-1}\\biggl(\\frac{1}{2i^{2}}\\biggr) &amp; = \\tan^{-1}\\biggl[\\frac{(2i+1) - (2i-1)}{1+(2i+1)\\cdot (2i-1)}\\biggr] \\\\\\ &amp;= \\tan^{-1}(2i+1) - \\tan^{-1}(2i-1) \\end{align*} and when I take the summation the only term which remains is $-\\tan^{-1}(1)$, from which I get the value of $\\tan{t}$ as $-1$. But the answer appears to be $1$. Can anyone help me on this.", "How can I reduce the ever-increasing time to push a subtree?", "How come Dropbox gets an icon in Finder sidebar? How come Dropbox gets a non-generic icon in Finder's sidebar, when other directories like Google Drive and Sites (native in OS X before Lion) all have the same generic one? How can I customise the icons used by the folders in the sidebar? OS X used to show individual icons of all folders there — not any longer.", "How to remove \":\" (colon) when displaying field name? I created a custom content type with some text fields. In the view settings of that content type I defined both to appear and as well their titles (names of the fields) to be displayed above the content of the fields respectively. But how can I remove the trailing colon of the titles? Is there a way of modifying the way field names are display just for certain content types? I do not want this altered site wide (e.g. for all fields of all content types). PS: I'm already using the \"views\" module to define a special layout for this custom content type. Probably there is a way to carry out these changes with the help of the \"views\" module and a custom layout template? /edit/ I did not create a view (as with the \"views\" module) to display that content but used Drupal's own content type view configuration (maybe called \"display\"). I'm working with a localized Drupal and retranslating the different words. Remark: Using Drupal 7.10 with Views 7.x-3.0-rc3", "sum of the residue at all poles of the rational function p/q is 0. We are given two polynomials p, q with deg(q)>1+deg(p). Show that the sum of the residue at all poles of the rational function p/q is 0. How do I go about solving this?", "How to find regression coefficients $\\beta$ in ridge regression? In ridge regression, the objective function to be minimized is: $$\\text{RSS}+\\lambda \\sum\\beta_j^2.$$ Can this be optimized using the Lagrange multiplier method? Or is it straight differentiation?", "Humanity meeting another similar intelligent life form deep into space (or not)? I'm looking for a plot line (it should be a short story) that depicts Earth population (or their close descendants) establishing contact with another intelligent life form deep into space. After careful studying of DNA samples and language / communication symbols they then realize that the civilization in question is also from Earth but that they departed very long ago and travelled throughout the galaxy in the completely opposite direction so that they are now meeting practically at the point of the circle opposite to Earth. There might have been some anatomical differences as well. As far as I can remember, the story concludes shortly after that. This should be a work of a well-known SF author, so I'm hoping for a quick response (if time didn't corrupt my memory too much). I don't think it was part of an anthology, but it's entirely possible it was in a magazine. As for the timeline, I've read it about 2-3 years ago, but since I have a passion for older SF works it might not be of much use. Edit: Not sure if this could help but for what it's worth, it might be contained in .", "java swing background image", "It would be nice to be able to put emphasis on specific bits of a fragment or of a quote (bold can help for a quote but I find that it makes things less readable sometimes). What do you think? Update: On , you can highlight particular lines by prefixing each line with @@. See also:", "As a grad student, I just find it tremendously frustrating when emails are ignored by faculty (both at my institution and at other places). Is this acceptable? I'd be content with a simple response with one line along the lines of \"I have read this email and am busy right now, will respond in X days when I can write a more detailed email.\" I understand that, as a first year student in my field, I'm not really in a position to request anything of anyone, but it just seems like common decency. Instead, I never hear back, as if my email has been jettisoned off into oblivion.", "Every open set in $\\mathbb{R}$ is a countable union of closed sets", "dd writing on USB flash drive causes massive reads", "Am trying to Update Leads. When Lead converted flag is true. Lead Status is Contacted. I have to update all the contacted leads to Converted. Am Getting this error on the data loader: ERROR: cannot reference converted lead Maybe because converted leads cannot be updated because they are locked out once they are converted? Is there a workaround to update Lead Status to Converted from Contacted?", "I've set up an Ubuntu 14.04 Server (from an Ubuntu 12.04 Server) but today I wanted to look in the auth.log but this file is not used. It seems that ´syslog´ was deleted. How does Ubuntu 14.04 log? I need this for a server. Thank you.", "Does Earth's Rotation Affect Its Shape?", "How do I tell if ACR will work with my camera and how do I get the correct version for Photoshop? I am a beginner photographer with a Canon 7d and MacBook Pro. I'm not sure if Adobe camera Raw is compatible with either and really need advice on how to go about downloading the correct version.", "This is what happens when I launch the terminal There was an error creating a child process So I have been using the Ubuntu terminal on my Raspberry Pi 4 model B 8 GB with Ubuntu for a couple moths when Ubuntu 20.10 came out for the Pi. But now I have a problem where I launch the terminal and it gives that message. I have gone for alternatives and tried to fix it but all the solutions were outdated or they were on a different distro. Also the Ubuntu commands did not fix the issue because it only triggers upon a certain command.", "Update help center on syntax highlighting to point to an actual list of options Reading the help center article on syntax highlighting, one of the paragraphs within it reads: You can use either , like lang-cpp or lang-sql, or you can specify a tag, and the syntax highlighting language associated with this tag will be used: Note the link in there, which goes to . Problem is, a long time ago we removed the list of options from several questions/answers across meta Stack Exchange because it was a pain trying to keep all of them updated. It makes a lot more sense to just have one list that we keep updated, and the most logical place for that list was in the , which is where it now resides. Can the link in the help center be updated to point directly to the list, rather than to a post that explains that the list has been moved?" ]
medi_sts_stackexchange_dupe
Batch resize vertical photos to a square without cropping using a blurred background
Batch fit images into ratio with blurred background
[ "CHECK constraint in MySQL is not working", "What licence is subscriber content provided under 4.0, 3.0 or them all?", "How can I concatenate two arrays in Java? I need to concatenate two String arrays in Java. void f(String[] first, String[] second) { String[] both = ??? } What is the easiest way to do this?", "I remember being taught that the correct order of adjectives in English was something along the lines of \"Opinion-Size-Age-Color-Material-Purpose.\" However, it's been a long time and I'm pretty sure I've forgotten a few categories (I think there were eight or nine). Can anyone fill them in?", "Can I configure Ubuntu to never install a specific package even if it is required by another package I install?", "How can I find the value of the sum $\\sum_{k=1}^{\\infty}\\frac{k^n}{k!}$? for example for $n=6$, we have $$\\sum_{k=1}^{\\infty}\\frac{k^6}{k!}=203e.$$", "cardinality of all real sequences I was wondering what the cardinality of the set of all real sequences is. A random search through this site says that it is equal to the cardinality of the real numbers. This is very surprising to me, since the cardinality of all rational sequences is the same as the cardinality of reals, and it seemed fairly intuitive to me that if cardinality of a set $A$ is strictly greater than the cardinality of the set $B$, then cardinality of $A^{\\mathbb{N}}$ should be strictly greater than cardinality of $B^{\\mathbb{N}}$. It turns out to be false. Some technical answers have appeared in this forum elsewhere but I do not understand them. As I am not an expert in this topic, could some one explain me in simple terms why this is happening? Also is the cardinality of all functions from reals to reals also the same as the cardinality of reals?", "On August 5, 41 days ago, I submitted an application for a UK visitor visa. This is the third time I have applied. The only notice I have received so far says this: \"Unfortunately, the processing of your application has not been straightforward. This means that we will be unable to make a decision within our published customer service standards.\" What should I do?", "Query works in SQL Server 2005 but syntax error for SQL Server 2000", "every planar graph can be expressed as a union of five edge-disjoint forests How can I prove that every planar graph can be expressed as a union of (maximum) five edge-disjoint forests? Only thing I can think about is going somehow like the $5$ color theorem but I get stuck in the middle. Or with induction, but still something doesn't fit. Can you help?", "Time taken to hit a pattern of heads and tails in a series of coin-tosses Inspired by Peter Donnelly's talk at , in which he discusses how long it would take for a certain pattern to appear in a series of coin tosses, I created the following script in R. Given two patterns 'hth' and 'htt', it calculates how long it takes (i.e. how many coin tosses) on average before you hit one of these patterns. coin &lt;- c('h','t') hit &lt;- function(seq) { miss &lt;- TRUE fail &lt;- 3 trp &lt;- sample(coin,3,replace=T) while (miss) { if (all(seq == trp)) { miss &lt;- FALSE } else { trp &lt;- c(trp[2],trp[3],sample(coin,1,T)) fail &lt;- fail + 1 } } return(fail) } n &lt;- 5000 trials &lt;- data.frame(\"hth\"=rep(NA,n),\"htt\"=rep(NA,n)) hth &lt;- c('h','t','h') htt &lt;- c('h','t','t') set.seed(4321) for (i in 1:n) { trials[i,] &lt;- c(hit(hth),hit(htt)) } summary(trials) The summary statistics are as follows, hth htt Min. : 3.00 Min. : 3.000 1st Qu.: 4.00 1st Qu.: 5.000 Median : 8.00 Median : 7.000 Mean :10.08 Mean : 8.014 3rd Qu.:13.00 3rd Qu.:10.000 Max. :70.00 Max. :42.000 In the talk it is explained that the average number of coin tosses would be different for the two patterns; as can be seen from my simulation. Despite watching the talk a few times I'm still not quite getting why this would be the case. I understand that 'hth' overlaps itself and intuitively I would think that you would hit 'hth' sooner than 'htt', but this is not the case. I would really appreciate it if someone could explain this to me.", "The description of the says: Your Intelligence score is 19 while you wear this headband. It has no effect on you if your Intelligence is already 19 or higher. The spell description says that my Intelligence score becomes 1 on a failed save: [...] On a failed save, the creature's Intelligence and Charisma scores become 1. The creature can't cast spells, activate magic items, understand language, or communicate in any intelligible way. [...] If I am affected by Feeblemind and I am wearing the Headband of Intellect, would I have an Intelligence score of 19 or 1? Also, what about the other effects like not being able to cast, activate magic items, understand languages or communicate in any way? Those seem Intelligence-related, but are mentioned additionally to the reduction. If the Intelligence score becomes 19, are the other effects still active?", "I'm looking to get data such as Size/Capacity, Serial No, Model No, Heads Sectors, Manufacturer and possibly SMART data.", "Magnetic Field in the presence of a conductor I am studying for my quals and came across an old question that reads like the following: There are two regions in space separated by an infinite conducting plane. Region 1 has a magnetic dipole of moment $\\vec{\\mu}$ located a distance $d$ from the plane. What is the magnetic field $\\vec{B}$ everywhere in region 1? I know that for a perfect conductor (superconductor), the normal component of $\\vec{B}$ is zero–although I don't exactly know why–but I don't know if that is the case when the problem involves a \"conductor\" (not explicitly a perfect conductor). TL;DR: Can anybody give me some insight about the magnetic boundary conditions of a stationary magnetic field in the presence of a conductor? Thanks!", "Web sites can contain JPEG, GIF,PNG, SVG format graphics. Which ones should be used, and when?", "Newton's Law of Graviation: Why $G$ and not e.g. $\\dfrac{1}{4\\pi G_0}$?", "What are the current travel restrictions on individuals entering the United States from regions affected by Covid-19?", "Suppose that $f$ is holomorphic on $\\mathbb C$ and that $\\Re(f(z))\\ge 0$ for all $z$. Show that $f$ is constant. [Hint: consider $e^{−f(z)}$.] My thoughts: If $\\Re(f(z))\\ge 0 $ holds, then $e^{−f(z)}$ is a bounded holomorphic function (do I need to prove this or is it obvious?) So then by Liouville's Theorem $e^{−f(z)}$ is constant. But then I'm not sure how to rigorously go from this $\\exp(−f(z))$ back to $f(z)$. Could anyone help me piece this together please? Thanks", "Nautilus context menu for current directory when there's lots of files / \"Open in Terminal\"", "App Store on Mojave: \"We could not complete your purchase. cancelled\" Whenever I try to Get then Install any app from the App Store, I get this message: We could not complete your purchase. cancelled I did some searching online, but barely found any useful hits. What is this about?!" ]
medi_sts_stackexchange_dupe
$\sum_{n=1}^{\infty} a_n$ converges absolutely and $\sum _{n=1}^\infty a_{kn}=0 ,\forall k \ge 1 $ ; then $a_n=0 , \forall n \in \mathbb N $?
Prove that $a_{n}=0$ for all $n$, if $\sum a_{kn}=0$ for all $k\geq 1$
[ "Conditional Rendering inside Visualforce pages", "Process Builder - Breaking Production Deployments? I have a Process Builder flow set up and I am running some tests around the InvocableMethod Apex code. The tests pass fine in my staging and production environments. Yet, when I try to deploy to production, I get a strange error. CANNOT_EXECUTE_FLOW_TRIGGER, The record couldn’t be saved because it failed to trigger a flow. Thankfully I received a somewhat more informative error email. UPSERT FAILED --- ERRORS : (CANNOT_EXECUTE_FLOW_TRIGGER) The record couldn’t be saved because it failed to trigger a flow. common.exception.AssertionException: ORA-20070: Cannot read from apex_class and apex_trigger while running tests --- for SFDC record with ID : null, Unfortunately, the deployment has nothing to do with the flow and it is unclear why it is failing. What is the root cause of this error and how can I fix it? EDIT: I found out this is a . The other claimed workaround is to deploy via the Metadata API. UPDATE: Because I was subscribed to the Known Issue, I received the following confirmation this issue is resolved. We are pleased to notify you that the following Known Issue has been resolved: Executing an InvocableMethod during an apex test run from a change set can cause Errors. Thank you for being patient while we worked to address this issue. Please feel free to reach out to Customer Support if you have further questions. Sincerely, Salesforce Success Team", "Logitech SetPoint software button remapping My Logitech G5 Laser mouse has 9 buttons but it's SetPoint software only allows 5 of them to be used as \"mouse buttons\" and the remaining 4 can only be assigned special windows functions (Forward, Back, Cruise Up, etc) or Keystroke Assignments. Many of the games I play will take up to 10 \"MOUSE BUTTON\" inputs for in-game actions but wont recognize the remaining 4 buttons even when assigned keystroke assignments. Is there a way to make these last 4 buttons \"Generic Buttons\" as well as buttons 3,4,and 5? (1 is left click and 2 is right click). My other question is if the above is not possible, maybe I can use AutoHotkey to remap keystrokes as assigned by my SetPoint software to mouse button commands? If so how?", "Evaluate the infinite product $$\\lim_{ n\\rightarrow\\infty }\\prod_{k=2}^{n}\\left ( 1-\\frac{1}{k^2} \\right ).$$ I can't see anything in this limit , so help me please.", "For a while now I've noticed that if I take a cup of hot tea and pour it into two cups and leave it then both cups will cool faster than the single cup. How is it that nature cools two cups of tea in parallel more quickly? It's still the same amount of tea but it gets cooled quicker if I have two cups.", "Is FFmpeg missing from the official repositories in 14.04?", "Can we prevent titles with an unnecessary tag in them?", "How can I add text in a non-english language? How can I add text with non Latin characters? I'd like to get text in other languages like Arabic, Russin (Cyrilic), Japanese, Chinese, Malayalam among others, but I get rectangles instead of Arabic letters.", "Where were the capital ships and bombers?", "Why is everybody so concerned about etc/passwd? Here is the content of my vagrant machine of this particular file: root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin bin:x:2:2:bin:/bin:/usr/sbin/nologin sys:x:3:3:sys:/dev:/usr/sbin/nologin sync:x:4:65534:sync:/bin:/bin/sync games:x:5:60:games:/usr/games:/usr/sbin/nologin man:x:6:12:man:/var/cache/man:/usr/sbin/nologin lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin mail:x:8:8:mail:/var/mail:/usr/sbin/nologin news:x:9:9:news:/var/spool/news:/usr/sbin/nologin uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin proxy:x:13:13:proxy:/bin:/usr/sbin/nologin www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin backup:x:34:34:backup:/var/backups:/usr/sbin/nologin list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin irc:x:39:39:ircd:/var/run/ircd:/usr/sbin/nologin gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/us$ nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin syslog:x:100:103::/home/syslog:/bin/false Could anybody explain me why it is bad if some evil guy could get this file of my production server?", "I discovered that you can start your variable name with a '@' character in C#. In my C# project I was using a web service (I added a web reference to my project) that was written in Java. One of the interface objects defined in the WSDL had a member variable with the name \"params\". Obviously this is a reserved word in C# so you can't have a class with a member variable with the name \"params\". The proxy object that was generated contained a property that looked like this: public ArrayList @params { get { return this.paramsField; } set { this.paramsField = value; } } I searched through the VS 2008 c# documentation but couldn't find anything about it. Also searching Google didn't give me any useful answers. So what is the exact meaning or use of the '@' character in a variable/property name?", "My PC has a build-in VT1828S chip. The connection between PC and monitor (which has built-in speakers) is through an HDMI cable. Audio preferences shows 2 devices for audio output: analog stereo and RS880 Audio Device [Radeon HD 4200] digital stereo (HDMI). When I plug a headphone in the rear jack and I choose the former device, everything works. When I choose the latter device, instead, no sound is heard, and video playback is too fast. It is as if video frames want to synchronise with the audio timing, but the audio timing information is wrong. HDMI audio worked perfectly with Ubuntu 11.04, but stopped after 11.10 upgrade.", "Grep: unexpected results when searching for words in heading from man page I'm running into weird behavior when trying to grep a man page on macOS. For example, the Bash man page clearly has an occurrence of the string NAME: $ man bash | head -5 | tail -1 NAME And if I grep for name I do get results, but if I grep for NAME I don't: $ man bash | grep 'NAME' $ man bash | grep NAME I've tried other uppercase words that I know are in there, and searching for SHELL yields nothing whereas searching for BASH yields results. What's going on here? Update: Thanks for all the answers! I thought it worth adding the context in which I ran into this. I wanted to write a bash function to wrap man and in cases where I've tried to look up the man page for a shell builtin, jump to the relevant section of the Bash man page. There might be a better way, but here's what I've got currently: man () { case \"$(type -t \"$1\")\" in builtin) local pattern=\"^ *$1\" if bashdoc_match \"$pattern \\+[-[]\"; then command man bash | less --pattern=\"$pattern +[-[]\" elif bashdoc_match \"$pattern\\b\"; then command man bash | less --pattern=\"$pattern[[:&gt;:]]\" else command man bash fi ;; keyword) command man bash | less --hilite-search --pattern='^SHELL GRAMMAR$' ;; *) command man \"$@\" ;; esac } bashdoc_match() { command man bash | col -b | grep -l \"$1\" &gt; /dev/null }", "L1 & L2 Regularization in Light GBM This question pertains to L1 &amp; L2 regularization parameters in Light GBM. As per official documentation: reg_alpha (float, optional (default=0.)) – L1 regularization term on weights. reg_lambda (float, optional (default=0.)) – L2 regularization term on weights I have seen data scientists using both of these parameters at the same time, ideally either you use L1 or L2 not both together. While reading about tuning LGBM parameters I cam across one such case: Kaggle official GBDT Specification and Optimization Workshop in Paris where Instructors are ML experts. And these experts have used positive values of both L1 &amp; L2 params in LGBM model. Link below (Ctrl+F 'search_spaces' to directly reach parameter grid in this long kernel) I have seen same in XGBoost implementations. My question is why use both at the same time in LGBM/XGBoost. Thanks.", "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?", "I have been struggling for one hour with this simple problem (QGIS 1.8.0-Lisboa, Windows 7) : I have a raster layer. I would like to display the label and not only the band value when I use the Identify Features button. Is it possible?", "How to get instance variables in Python?", "I am trying to run the following model: I(week^2):mutation_status + (week + I(week^2) | subject_id) , data = sim_dat) This is the output I get from this model. The correlation between week and I(week)^2 is rather high (-0.95) and I was curious to know how I can change my data simulation code to lower that value. I am also having issues with convergence and would love to get thoughts on how to avoid issues regarding convergence. Thank you! Linear mixed model fit by REML. t-tests use Satterthwaite's method [lmerModLmerTest] Formula: fetal_weight ~ week + mutation_status + week:mutation_status + I(week^2) + I(week^2):mutation_status + (week + I(week^2) | subject_id) Data: sim_dat REML criterion at convergence: 114 Scaled residuals: Min 1Q Median 3Q Max -1.9343 -0.3980 -0.0075 0.4168 1.9928 Random effects: Groups Name Variance Std.Dev. Corr subject_id (Intercept) 1.51524 1.2309 week 61.01832 7.8114 0.16 I(week^2) 496.20236 22.2756 -0.19 -0.95 Residual 0.05892 0.2427 Number of obs: 100, groups: subject_id, 20 Fixed effects: Estimate Std. Error df t value Pr(&gt;|t|) (Intercept) 3.1331 0.4226 17.9961 7.413 0.000000713699 *** week -1.2465 3.5210 18.0053 -0.354 0.727 mutation_statusY 0.5061 0.5977 17.9961 0.847 0.408 I(week^2) 34.5706 10.8146 18.0084 3.197 0.005 ** week:mutation_statusY -1.0697 4.9795 18.0053 -0.215 0.832 mutation_statusY:I(week^2) 202.5521 15.2942 18.0084 13.244 0.000000000101 *** --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 Correlation of Fixed Effects: (Intr) week mttn_Y I(w^2) wk:m_Y week -0.160 muttn_sttsY -0.707 0.113 I(week^2) 0.145 -0.966 -0.103 wk:mttn_stY 0.113 -0.707 -0.160 0.683 mtt_Y:I(^2) -0.103 0.683 0.145 -0.707 -0.966 Code for data simulation: set.seed(123) # set the seed J &lt;- 20 # number of individuals (clusters) cs &lt;- 5 # number of time points (cluster size) gam &lt;- c(0, 0.75, 1.34) # fixed effects G &lt;- matrix(c(1.75, 0, 0, 0, 0.0125, 0, 0,0,0.0625), nrow = 3) # random effect variances (G-matrix) sigma2 &lt;- 0.08 mutation_status &lt;- rep(0:1, each = 5) mutation_status &lt;- rep(mutation_status, times = 10) X &lt;- cbind(1, seq_len(cs), (seq_len(cs))^2) # for each individual X &lt;- X[rep(seq_len(cs), J), ] X &lt;- X[rep(seq_len(cs), J), ] X[,2] &lt;- X[,2]*0.05 X[,3] &lt;- X[,3]*0.05 # repeat each row cs times pid &lt;- seq_len(J) # individual id pid &lt;- rep(pid, each = cs) # Generate person-level (lv-2) random effects uj &lt;- lmf::rmnorm(J, mean = rep(0, 2), varcov = G) # Generate repeated-measure-level (lv-1) error term eij &lt;- rnorm(J * cs, sd = sqrt(sigma2)) # Compute beta_j's betaj &lt;- matrix(gam, nrow = J, ncol = 3, byrow = TRUE) + uj # Compute outcome: y &lt;- rowSums(X * betaj[pid, ]) + eij + mutation_status*X[ , 3]*10 + 3 # Form a data frame sim_dat &lt;- tibble(y, time = X[ , 2], pid, mutation_status) sim_dat &lt;- sim_dat[,c(3,2,4,1)] colnames(sim_dat) &lt;- c(&quot;subject_id&quot;, &quot;week&quot;, &quot;mutation_status&quot;, &quot;fetal_weight&quot;) sim_dat$week_2 &lt;-sim_dat$week*5 + 15 sim_dat$mutation_status &lt;- as.factor(ifelse(sim_dat$mutation_status == 0, &quot;N&quot;, &quot;Y&quot;)) sim_dat$subject_id &lt;- as.factor(sim_dat$subject_id ) #Model Building", "How can I solve the folowing Diophantine equation with two unknowns? Find one integer solution to the following Diophantine equation: \\begin{equation*} \\\\\\forall \\,x,y \\in \\mathbb{Z}\\\\ 6xy + x - y = 274 \\end{equation*} The resultat ist $x = 9$, $y = 5$ (Obtained with ) I need to know a method that allows me to reach such a result. How can I calculate the value of these two variables in a Diophantine equation? For example: 6xy + x - y = 458", "top x% in [tag] : rules for the tag to be taken into account?" ]
medi_sts_stackexchange_dupe
Why do old questions have so many points?
Why do a lot of questions from around 2008 seem to have really high upvotes?
[ "What kind of power management circuit do I need to embedded a rechargeable battery in my electronics project? I am doing a project where my electronics runs on 5V which I wanted to power from a 7.2v lipo regulated down to that voltage. I'd really like to include the opportunity to charge the lipo without removing it from the project. What kind of circuit/components do I need to do it properly? Say, would putting a battery charging ic at the battery's terminals in parallel to my system be enough to achieve what I need?", "Proving $\\sqrt{2}+\\sqrt[3]{3}$ is algebraic.", "Grabbing the first [x] characters for a string from a pipe", "nginx: Redirect https traffic without subdomain to subdomain (non-www to www) My current ssl certificate covers the subdomains www.example.com and static.example.com So if a users try to access my site via I want to redirect him to . How can I do that within in my nginx conf? I know that similiar questions have been asked here, but I could not find the solution here.", "Why are some faces in my mesh darker?", "Vector spaces for the irreducible representations of the Lorentz Group EDIT: The vector space for the $(\\frac{1}{2},0)$ Representation is $\\mathbb{C}^2$ as mentioned by Qmechanic in the comments to his answer below! The vector spaces for the other representations remain unanswered. The definition of a representation is a map (a homomorphism) to the space of linear operators over a vector space. My question is: What are the corresponding vector spaces for the $(0,0)$ Representation $(\\frac{1}{2},0)$ Representation $(0,\\frac{1}{2})$ Representation $(\\frac{1}{2},0) \\oplus (0,\\frac{1}{2}) $ Representation $(\\frac{1}{2},\\frac{1}{2})$ Representation infinite dimensional Representation?", "Can we omit a duplicated preposition? Is on needed a second time in this sentence? There is a bad effect either on human health or environment. There is a bad effect either on human health or on environment.", "I'm currently unable to access anything via the Stack Exchange app under iOS; is this a known issue?", "Using proof by contradiction vs proof of the contrapositive", "How should I phrase an important question that I need to ask a professor? When needing to ask a professor about something important and potentially delicate, what is an appropriate way to phrase the question or write the email? Examples include: Requesting a recommendation letter Asking for exceptions to policy (e.g., ignoring a course prerequisite, rescheduling an exam) Asking if you can do research with them, join a group, get into a program Scheduling a meeting, exam, or defense Letting them know about a change of plans Letting them know about a life event affecting your work or studies (e.g., wedding, funeral, sickness, vacation)", "Import Large Excel File", "How can I split multiple joined words? I have an array of 1000 or so entries, with examples below: wickedweather liquidweather driveourtrucks gocompact slimprojector I would like to be able to split these into their respective words, as: wicked weather liquid weather drive our trucks go compact slim projector I was hoping a regular expression my do the trick. But, since there is no boundary to stop on, nor is there any sort of capitalization that I could possibly key on, I am thinking, that some sort of reference to a dictionary might be necessary? I suppose it could be done by hand, but why - when it can be done with code! =) But this has stumped me. Any ideas?", "Typing the ZIP code doesn't yield the company page", "Fig.1: A typical prompt, asking user for feedback/rating in iOS Background Any serious smartphone users must have seen a message similar to Fig.1 above at least once. Variations of such prompt include: &quot;Please give us 5 star ratings if you love this app!&quot;, &quot;Rate us :)&quot;, &quot;Your rating helps improve this app!&quot;, etc. Basically, Fig.1 asks user to leave a (nice) feedback/rating for the app on its AppStore(or equivalents). The Shorter Question When and how often should a mobile app user be asked to leave a feedback/ratings? The Longer Question #1. Which User-statistics? What are the significant user's behavioral statistics that should be based on to generate Fig.1? For example: Number of runs since install/reinstall of the application Time elapsed since current application run Time elapsed since first application run Time elapsed since first application install Certain events (e.g. after certain number of stages are cleared for a game app) #2. When to Ask? If multiple user-statistics are chosen to be calculated to generate Fig.1, specifically how should the user-statistics satisfy the condition of the event? For example: Form a unified equation (e.g. X^2+Y^2=Z^2) with all significant user-statistics partaken fairly to trigger the event. Create (multiple of) &quot;absolute&quot; event triggers (e.g. every 10th app run; elapsing 2 hours since current application run). Both of the two. Generate Fig.1 whichever comes true first. Neither of the two. &quot;There's a better way!&quot; #3. How often? What would be the optimal min/max frequency of Fig.1 generation? By optimal, I mean users are not to be bothered too much, yet developers gain maximum output of great feedbacks from users? #4. &quot;Don't bother me again :(&quot; Should users have an option to opt-out from receiving Fig.1 at all? #5. Universal User-statistics for All Mobile Apps? Should apps under different categories be based on different user-statistics? There are significant differences in size and type of user-statistics in apps under different categories. For example, a &quot;Flashlight&quot; app is not typically run for one hour straight, while a music/movie streaming app may be run for over one hour. #6. &quot;This app does not need more feedback.&quot; Should every app of all kinds of user base ask this message? If any, should any mobile app stop generating Fig.1 when target conditions are met (e.g. downloads count, active user count, feedback count)? #7. Feedback/Rating Before Deletion Should users be asked to leave a feedback before deleting as seen in Fig.2 below? Users are more likely to leave very critical review on app deletion, but this kind of feedback will be very helpful for the developers to strengthen their app's weakness for next version release.                                                                                                 Fig.2: Asking user for rating before app deletion", "Principle of Reflection on atomic level This well-observed phenomenon has, besides several others, always been a fascination to me. We are well aware of several theories, experiments, and practical applications of this well-known phenomenon, but is it established what goes on at the grassroots of reflection? My high school teacher once told me that whenever light is incident on any reflecting surface, its electrons absorb the energy of the photon and release back the same energy. If this is actually true, then I have plenty of questions to continue, but if it is not, then what is reflection, and how and why does it take place?", "Im having trouble with the second part of this question, Let $H$ be a normal subgroup of $G$ with $|G:H| = n$, i) Prove $g^n \\in H$ $\\forall g \\in G$ (which i have done) ii) Give an example to show that this all false when $H$ is not normal in $G$.(which I am having trouble with showing) Any suggestions?", "Recently I've been messing around with making a few minigames, and have used a few plugins to help make it easier to create and run them. However, a newer one I'm making requires me to use the /summon command in order to spawn zombies. However, no matter what I put in, I can't spawn hostile mobs. All other entities still spawn perfectly fine. Strangely, the /spawnmob command which comes with Essentials can summon hostile mobs fine. I would rather use /summon since it's more customizable though. Here's a list of plugins I have installed. Essentials EssentialsChat HolographicDisplays PermissionsEx setspawn [A plugin I have made, just a simple timer] Vault VoxelSniper WorldEdit WorldGuard Please let me know if you have any ideas on what I'm doing incorrectly or isn't functioning the way it should.", "Proving inequality $\\frac{a}{b}+\\frac{b}{c}+\\frac{c}{a}+\\frac{3\\sqrt[3]{abc}}{a+b+c} \\geq 4$ I started to study inequalities - I try to solve a lot of inequlites and read interesting .solutions . I have a good pdf, you can view from . The inequality which I tried to solve and I didn't manage to find a solution can be found in that pdf but I will write here to be more explicitly. Exercise 1.3.4(a) Let $a,b,c$ be positive real numbers. Prove that $$\\displaystyle \\frac{a}{b}+\\frac{b}{c}+\\frac{c}{a}+\\frac{3\\sqrt[3]{abc}}{a+b+c} \\geq 4.$$ (b) For real numbers $a,b,c \\gt0$ and $n \\leq3$ prove that: $$\\displaystyle \\frac{a}{b}+\\frac{b}{c}+\\frac{c}{a}+n\\left(\\frac{3\\sqrt[3]{abc}}{a+b+c} \\right)\\geq 3+n.$$", "Does option \"-h\" for \"ls\" display size in MB or MiB and is it consistent over Unix-based systems?", "Root filesystem check fails after power failure during installation During the \"install\" phase of the upgrade there was a power failure. After when starting up again the following errors are reported: init: udevtrigger main process (420) terminated with status 1 init: udevtrigger post-stop process (428) terminated with status 1 init: udevmonitor main process (419) killed by TERM signal The disk drive for / is not ready yet or not present Continue to wait; or press S to skip mounting or M for manual recovery Pressing M gives me the following message: Root filesystem check failed. A maintenance shell will now be started. CONTROL-D will terminate this shell and reboot the system." ]
medi_sts_stackexchange_dupe
Very basic question regarding taxes
Why do Americans have to file taxes, even if their only source of income is from a regular job?
[ "I am sure there is something wrong i am doing but i just want someone to point it to me. Why can't we say that $e^{\\frac {\\pi i}{3}} = \\left(e^{\\pi i}\\right)^{\\frac {1}{3}} = (-1)^{\\frac {1}{3}} = -1$ Why do we have to calculate it by the formula as it is (which produces different value) Another question is why can't we say that $ (-1)^{\\frac {1}{2}} = \\left(\\left (-1\\right)^{2}\\right)^{\\frac {1}{4}} = 1^{\\frac {1}{4}} = 1$ Again i have to say that i know this is all wrong i just want to know why it is wrong", "This question has been answered before in many places but I just need some confirmation with my specific setup. I have Linux Mint installed and I just want a fresh Ubuntu 12.04 install to completely replace Mint. It's dual booted with Windows 7 and I want that to remain completely in tact. Anyway, I'm currently running the Live CD installer. I've said I want to specify my own partitions and I'm at the following screen: The list at the bottom expanded: I confused by all the different partitions. Seems like I should just check the box beside sda5. But what about sda6? Do I just leave that alone? Also just for confirmation, is the \"right\" way to replace Mint, or should I be deleting it first?", "How can I link to an external resource in a community-friendly way? I would like to help my fellow Stackizens, using material from my blog or other website. But external links are sometimes viewed as excessive promotion. From the FAQ: Be careful, because the community frowns on overt self-promotion and tends to vote it down and flag it as spam. Post good, relevant answers, and if they happen to be about your product or website, so be it. However, you must disclose your affiliation in your answers. Also, if a huge percentage of your posts include a mention of your product or website, you're probably here for the wrong reasons. I have tried posting answers that reference my blog, and I have followed the above rules, but my answers still get flagged as spam. How can I craft an answer that references my blog, website or other resource, but is still acceptable to the community?", "Starting digits of $2^n$.", "How to switch between Ubuntu and Windows 7 without a reboot I have installed windows 7 and then Ubuntu 11.04. Now I want to know how I can switch from Ubuntu to Windows 7 and from Windows 7 to Ubuntu without restarting the computer.", "I am aware it is common practice to standardize the features for ridge and lasso regression, however, would it ever be more practical to normalize the features on a (0,1) scale as an alternative to z-score standardization for these regression methods?", "Expression Functions for Lightning Web Components", "Why do you lose reputation for downvoting answers?", "bases and binary I can not figure this out. I started off by making a table and putting the base(2) on one side, the number in the middle and the remainder in the third row and for 2010 I got 11111011010 but I cant find the next two numbers please help and please explain in detail. Thank you =) to express 2010 in base 2, we use exactly 8 ones and 3 zeros. find the next two integers in base 2 that use the same number of ones and zeros", "Show that $A \\setminus ( B \\setminus C ) \\equiv ( A \\setminus B) \\cup ( A \\cap C )$ Show that $A \\setminus ( B \\setminus C ) \\equiv ( A \\setminus B) \\cup ( A \\cap C )$ This is an exercise I was trying to do ( not homework ) and I got stuck as follows: Working from $A \\setminus ( B \\setminus C )$: $x \\in A \\wedge x \\notin ( B \\setminus C )$ $x \\in A \\wedge ((x \\in B \\wedge x \\in C) \\vee (x \\notin B \\wedge x \\in C) \\vee (x \\notin B \\wedge x \\notin C) )$ At this point I'm not sure how to proceed. Working from the other side $ ( A \\setminus B) \\cup ( A \\cap C ) $: $ x \\in ( A \\setminus B) \\cup ( A \\cap C ) $ $ x \\in ( A \\setminus B) \\vee x \\in ( A \\cap C ) $ $ ( x \\in A \\wedge x \\notin B ) \\vee ( x \\in A \\wedge x \\notin C ) $ $ x \\in A \\wedge (x \\notin B \\vee x \\notin C ) $ $ x \\in A \\wedge x \\notin ( B \\cap C ) $ $ A \\setminus ( B \\cap C ) $ I could also use some formating tips like how display logical not and how to get the lines to display properly without blank lines inbetween. :-)", "Is centripetal acceleration mandatory for circular motion?", "Is it possible to have the dock in different positions in different desktop? Is it possible to have the dock in different positions in different desktops? In particular I'd like to change the settings between a normal desktop and a desktop where there's an app at full screen. In this way I'd keep the dock in lower side of the desktop when there's an app at full screen and vertically on the left side during normal use. I have this problem that, sicne I usually have the dock vertically on the left, it pops out everytime i go to the far left in an app I'm using with full screen, and using this app I have to move the mouse to the left quite often.", "It is possible to make ls -l output the size field with digits grouped by thousands? If so, how? For instance: $ ls -l -rw-rw---- 1 dahl dahl 43,210,052 2012-01-01 21:52 test.py (Note the commas in the size). Maybe by modifying the LC_NUMERIC setting inside the locale I'm using (en_US.utf8)? I'm on Kubuntu 12.04 LTS.", "How to use variables inside single quotes", "Arduino Negative Voltage Reading with Positive Ground I am trying to measure voltage &amp; current off a solar charge controller from panel, battery &amp; load simultaneously with my arduino. I have managed to achieve this by tying all the negatives together and using it as GND, however, when I do that the charge controller doesn't function properly and when I switch to off-mode the loads still run. After checking the instruction manual further, I found out that the positives are shared common between Pan, Bat, Load. This was confirmed with a multimeter. So now what I am thinking of doing is using the positive from the battery as the GND reference and then measuring all other voltages (through voltage dividers with respect to the GND). The voltages should then range between -17V to 0V. However, I have read that the analog input pins are not able to read negative voltages, and with respect to the positive GND, the Analog inputs will all be negative. EDIT: I was thinking of using an amplifier to invert positive ground to a negative ground, meaning I could measure all the positive sides of the voltages. But after getting answers from you guys it seems I may not have to use an amplifier and a voltage divider may suffice. I have currently included a 2 resistor voltage divider between each analog input, +5V source, Vmeasure which you can see in the diagram below. According to my calculations, if this works, @-17V I should see 0.6V @ analog input. @0V I should see 4V at analog input. I'd appreciate feedback on this circuit, and below in the second image I've also included a piece of another method suggested by @jonk (thanks), and would be interested in knowing what the benefits are of method B) over method A) Thanks! Ps. the ameters are there in place of ACS712 current sensors which also go into analog input pins. Method A) &ndash; Schematic created using Method B (EDIT: This method has worked, I am still yet to test method A) thanks @Jonk))", "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. :-(", "Imagine a battery with the positive terminal connected to ground. The positive side has a high eletrical potential, ground obviously has a lower electric potential. Electricity wants to seek a lower potential, and there's no significant resistance between the terminal and the ground. Shouldn't electricity flow? I know it doesn't but I don't understand why. I know you have to close the loop, but why is this necessary?", "Recovering a password for a Word 2007 document", "Auto-run scripts security options We have a preferences option to enable auto-run of python scripts when opening blend files. We can also add paths that are excluded from auto-running scripts. Then we have a cli options to enable or disable auto-running scripts and to bypass the startup.blend with --factory-startup. In regard to auto-running scripts which of these options overrides all others? If my startup.blend disables auto-run, can a python script be run from the cli to enable auto-run for the blend being opened? Does --factory-startup bypass my auto-run settings?", "A text says: The surface tension of a liquid results from an imbalance of intermolecular attractive forces, the cohesive forces between molecules: A molecule in the bulk liquid experiences cohesive forces with other molecules in all directions. A molecule at the surface of a liquid experiences only net inward cohesive forces If this is the case: Why is surface tension considered or experienced as a force parallel to the interface while it is so obvious that it must be perpendicular to it?" ]
medi_sts_stackexchange_dupe
0/0 in limit evaluation
Why does factoring eliminate a hole in the limit?
[ "How do I re-authorize Quicktime Player to use the microphone when once it has been denied? I wanted to use a USB audio input to record a video, and got something I've never seen before having done this 100 times; it asked \"Authorize Quicktime to use the microphone?\" I clicked no, because I didn't want it to use the internal mic, I wanted it to use a USB input. Now, it won't let me get rid of the denial. I've quit QT, quit &amp; reopened it twice and it still won't let me choose ANY input source. It still says it doesn't have access to the microphone. Is this a new Mojave 10.14.2 bug or what? How the heck do I get out of this? Thanks!", "What data type to use for hashed password field and what length? I'm not sure how password hashing works (will be implementing it later), but need to create database schema now. I'm thinking of limiting passwords to 4-20 characters, but as I understand after encrypting hash string will be of different length. So, how to store these passwords in the database?", "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?", "Union of uncountable cardinals", "I have some kind of test data and want to create a unit test for each item. My first idea was to do it like this: import unittest l = [[&quot;foo&quot;, &quot;a&quot;, &quot;a&quot;,], [&quot;bar&quot;, &quot;a&quot;, &quot;b&quot;], [&quot;lee&quot;, &quot;b&quot;, &quot;b&quot;]] class TestSequence(unittest.TestCase): def testsample(self): for name, a,b in l: print &quot;test&quot;, name self.assertEqual(a,b) if __name__ == '__main__': unittest.main() The downside of this is that it handles all data in one test. I would like to generate one test for each item on the fly. Any suggestions?", "Determine all functions satisfying $f(x + f(x + y)) + f(xy) = x + f(x + y) +yf(x)$", "What is the DC of the Tempest Cleric's Wrath of the Storm feature?", "Why doesn't the height of a container element increase if it contains floated elements?", "Should I always use a comma after \"e.g.\" or \"i.e.\"?", "Using 'very' with a noun", "When I receive a message on an SE post, I get a notification like this: If I double tap this notification, the SE application opens, but my feed is empty approximately half the time. It looks like this: If I refresh the feed (slide from the top), the feed does refresh and shows the new notification. The notification, above, leads to comment. I haven't figured out the pattern yet, but this occurs roughly half the time I open a notification. It's occurred for chat messages, comments and answers - but not consistently. I have received notifications for the same post (for example, the two comments after the one linked above) that do not show an empty feed. But, a chat message barely 10 minutes later will show the empty feed again. I am utilizing the beta app - version 1.0.72 on Android 5.0.1.", "\"log in to\" or \"log into\" or \"login to\" When writing an instruction about connecting to a computer using ssh, telnet, etc., I'm not sure what spacing to use in this familiar spoken phrase: \"Log in to host.com\" \"Log into host.com\" \"Login to host.com\" Maybe this is entirely subjective or the realm of industry jargon, but I couldn't think of anywhere else to ask. Any insight?", "Modifying agsm.bst package bibliography output I would like to change the URL output from: URL: the html link into: [Online]URL: [Accessed on] I am using: \\usepackage[comma]{natbib} \\bibliographystyle{agsm}", "If I have the function $f(x)$ and I want to apply it $n$ times, what is the notation to use? For example, would $f(f(x))$ be $f_2(x)$, $f^2(x)$, or anything less cumbersome than $f(f(x))$? This is important especially since I am trying to couple this with a limit toward infinity.", "Randomly selecting elements without repetition", "How to make a cylinder / pipe with slanted ends (like pasta penne)?", "Suppose I'm given the mean and one quantile (e.g. the 20% quantile) of a random variable $x$, and I want to find the parameters $\\alpha$ and $\\beta$ of a Beta distribution that has the same mean and quantile. Is there an efficient way to do it? Using just the mean, I know that since $\\bar{x} = \\frac{\\alpha}{\\alpha+\\beta}$, we have $\\beta = \\frac{\\alpha}{\\bar{x}} - \\alpha$. So we only really have one parameter to estimate. But I'm unsure how to use the quantile information to take the next step. Maybe there's something I can do with the Incomplete Beta when I know the ratio $\\frac{\\beta}{\\alpha} = \\frac{1-\\bar{x}}{\\bar{x}}$? I have access to R myself, so I could use a numerical optimizer for this, but ideally I need a method that can be carried out in Excel in someone else's environment. Excel does have BETA.DIST() and BETA.INV() functions available. A look-up table would be fine, but a closed-form formula would be better if it's possible.", "Introductory measure theory textbook I would like to teach myself measure theory and I am looking for a good introductory textbook at the advanced undergraduate or early graduate level. A reader-friendly text with plenty of examples would be ideal.", "Why does WMI Provider Host (WmiPrvSE.exe) keep spiking my CPU? I generally keep my laptop on 24x7, and at the end of the day it's really annoying to have my thighs burnt because over overheating. The overheating seems to be a result of WMI Provider Host (WmiPrvSE.exe) spiking the CPU utilization to 25% every few minutes. Why does this happen? I have an HP Envy 14 (with the HP bundled crap) running on Windows 7 Home Premium. (Note: Based on @nhinkle's , it seems that HP Wireless Manager might be the culprit, is there any way to confirm this?) This question was a . Read the Feb 28, 2011 for more details or Question of the Week.", "I am using ArcMap 10.2 and I'm looking for a way to add a table containing certain fields from select elements from a featureclass to my map. Ive tried the add table option from the attribute table, but it doesn't quite give what I want (the table must be editable to look a certain way). Are there any options out there for 10.2 like arcpy.mapping.tableview or will upgrading to 10.3 so I can get access to the \"graphic table element\" function be best?" ]
medi_sts_stackexchange_dupe
Remove Backup and Factory reset option from Settings app
Is there a way to disable access to certain Settings components?
[ "How to submit a form when the return key is pressed? Can someone please tell me how to submit an HTML form when the return key is pressed and if there are no buttons in the form? The submit button is not there. I am using a custom div instead of that.", "Fantasy/scifi combo - band of travelers who must get from \"sphere\" or domain to domain - each geographic area is ruled by a magician - it turns out later these are people who are unwittingly tapping into the computer grid they all live on to alter their own reality?", "How to estimate $P(x\\le0)$ from $n$ samples of $x$? Suppose, we have $n$ samples $x_i$ of a random variable: $$x \\sim \\mathcal N(\\mu,\\sigma^2) $$ Based on the samples, we want to estimate the probability that $x$ is negative: $$P(x\\le0)$$ Intuitively, I would first estimate: $$\\hat \\mu=\\frac 1 n \\sum x_i$$ $$\\hat \\sigma^2={\\frac 1 {n-1} \\sum (x_i-\\hat \\mu)^2}$$ and then calculate: $$P(x\\le0)=\\frac1{\\sqrt{2\\pi\\hat\\sigma^2}} \\int_{-\\infty}^0 e^\\frac{x-\\hat\\mu}{\\hat \\sigma} dx$$ However $\\hat \\mu$ and $\\hat \\sigma$ have variance! If I use this method, I suspect I am ignoring that variance and making an incorrect estimation. Is this reasoning right? If so, how can I estimate $P(x\\le0)$ more correctly, taking $\\text {VAR}[\\hat \\mu]$ and $\\text {VAR}[\\hat \\sigma]$ into account?", "If $U_1$, $U_2,\\ldots,U_n$ are proper subspaces of a vector space $V$ over a field $F$, and $|F|\\gt n-1$, why is $V$ not equal to the union of the subspaces $U_1$, $U_2,\\ldots,U_n$?", "Virtualbox Server/Client topology", "\"Was going to\" versus \"would be\" as the past tense of \"will\" Do you think that \"was going to be\" or \"would be\" could be used as past tense of will? I thought this book was going to be your choice. I thought this book would be your choice. Do these two sentences basically mean the same thing or are they slightly different?", "Automatically detect edit abuse and exclude from badges/flag for mod review has 5 pages of 1 character edits (including an edit to one of my posts), apparently in a massive attempt to earn the Copy Editor badge. Should Copy Editor, etc., ignore 1 character whitespace-only edits? If we still want to count minor edits (which may be useful), could we at least detect edit abuse via some secret algorithm? ~20+ one character whitespace-only edits in the course of an hour should at least raise a flag of some sort. If whitespace character are too hard to count, can we at least assume that 20 non-tag edits in 20 minutes (less than a minute per edit) is a good signal of abuse? The specific algorithm should be secret, obviously, but I think these sorts of edit abuses shouldn't be too difficult to detect.", "Why does TeX Live \"require\" yearly updates? Every year TeX Live provides a new version. My recollection is that soon after a new version is released, the old version's tlmgr stops fetching updates to packages. They provide with the disclaimer This procedure is not bullet-proof, or especially recommended There is no upgrade path for Windows. Looking at the , it is not clear to me what is actually changing between releases such that a full new install is required/recommended. I always thought of TeX Live as providing useful binaries (e.g., pdflatex, biber, and makeindex) and a convenient way of updating packages. What am I missing? Why does TeX Live need a new install every year?", "\"There IS/ARE rice, meat and tomatoes on my plate\"", "How can I get free or trial ExactTarget instance How can I get free or trial ExactTarget instance. I need to do ExactTarget SAML2.0 Single Sign-On connector development, integration and testing. Is there any step by step documentation available so that I can work on ExactTarget SAML2.0 Single Sign-On ?", "Why didn't the Hobbits get frostbite? This is a question that's been bothering me for the last couple of days: How is it that the hobbits of the Fellowship were able to survive such cold temperatures throughout their travels without having any foot protection? I know it's said that they have thick \"leather like\" soles, with ample amounts of hair for warmth but still, I don't understand how that could provide much more warmth than for instance a regular leather shoe. On top of this I know that multiple days (or even weeks) of their journey was spent crossing mountain ranges, which, near a summit would have a temperature far below freezing. This combined with the assumption that they only have the warmth of shoes on there feet would have presumably resulted in some level of frostbite. But to my knowledge there is no such mention of these problems in the novels or movies aside from the odd \"It's cold\". Anyways, I'm just wondering if anyone has some form of explanation to this phenomenon or do hobbits just have really durable feet?", "How can I animate an object fading out?", "I have a firewall with these simple rules: iptables -A INPUT -p tcp -s 127.0.0.1/32 --dport 6000 -j ACCEPT iptables -A INPUT -p tcp -s 192.168.16.20/32 --dport 6000 -j ACCEPT iptables -A INPUT -p tcp --dport 6000 -j REJECT Now, suppose I am using TCPDUMP like this: tcpdump port 6000 And I have host 192.168.16.21 trying to connect to port 6000. Will/should tcpdump output some packets coming from 192.168.16.21?", "Undefined Symbol ___gxx_personality_v0 on link I've been getting this undefined symbol building with this command line: $ gcc test.cpp Undefined symbols: \"___gxx_personality_v0\", referenced from: etc... test.cpp is simple and should build fine. What is the deal?", "Prove that $\\displaystyle \\sum_{x=1}^{n} \\frac{1}{x (x+1)(x+2)} = \\frac{1}{4} - \\frac{1}{2 (n+1) (n+2)}$. I tried using the partial fraction decomposition $a_j = \\frac{1}{2j} - \\frac{1}{j+1} + \\frac{1}{2(j+2)}$, but I don't see how that helps.", "Prove: $\\displaystyle\\sum_{k=1}^n k k!=(n+1)!-1$ (preferably combinatorially) It's pretty easy to think of a story for the RHS: arrange $n+1$ people in a row and remove the the option of everyone arranged to height from shortest to highest, but it doesn't hold up for the LHS. Alternatively, trying to visualize the LHS, I noticed that it's like a right angle tetrahedra: 1 2!+2! 3!+3!+3! ... But it doesn't help to see a connection to the RHS. Note: no integrals or gamma function nor use of other identities without proving them nor generating functions.", "Gmail App in my Android device shows correctly all the labels that I created using Gmail through web interface. Can I create new labels in Gmail on Android device using Gmail App? Also, ideally, once I create these new labels in Gmail App, I obviously should be seeing the same in Web Interface of Gmail too (Sync!!). Any ideas?", "A question about the higher-order Weyl variation for the geodesic distance I have a question in deriving Eqs. (3.6.15b) and (3.6.15c) in Polchinski's string theory vol I p. 105. Given $$\\Delta (\\sigma,\\sigma') = \\frac{ \\alpha'}{2} \\ln d^2 (\\sigma, \\sigma') \\tag{3.6.6}$$ where $d(\\sigma,\\sigma')$ is the geodesic distance between points $\\sigma$ and $\\sigma'$. It is said for the Weyl variation $\\delta_W$, $$\\partial_a \\delta_W \\Delta(\\sigma,\\sigma')|_{\\sigma'=\\sigma}= \\frac{ 1}{2} \\alpha' \\partial_a \\delta \\omega(\\sigma) \\tag{3.6.15a} $$ $$ \\partial_a \\partial_b' \\delta_W \\Delta(\\sigma,\\sigma')|_{\\sigma'=\\sigma}= \\frac{ 1+ \\gamma}{2} \\alpha' \\nabla_a \\partial_b \\delta \\omega(\\sigma) \\tag{3.6.15b} $$ $$ \\nabla_a \\partial_b \\delta_W \\Delta(\\sigma,\\sigma')|_{\\sigma'=\\sigma}= - \\frac{ \\gamma}{2} \\alpha' \\nabla_a \\partial_b \\delta \\omega(\\sigma) \\tag{3.6.15c} $$ Here $\\gamma=-\\frac{2}{3}$. I know the reason for the factor of $1/2$ in the RHS of Eq. (3.6.15a) and I can derive it. But, putting $\\nabla$ on LHS and RHS of Eq. (3.6.15a) will not lead to (3.6.15c). I guess it is because there is some higher-order terms in the geodesic distance where the treatment of (3.6.9)-(3.6.11) omitted. But I don't know how to get it. I tried $ds^2= g_{ab} dx^a dx^b= (\\eta_{ab} + h_{ab})dx^a dx^b $ to separate the deviation of Minkowski metric, but I cannot get the factor $\\gamma$ My question is, how to derive Eqs. (3.6.15b) and (3.6.15c) (especially there is a prime, $'$, namely $\\partial'_b$ in the LHS of (3.6.15b) but not in the RHS)", "What GUI applications are there to assist in generating graphics for TeX?", "Why does factoring eliminate a hole in the limit? $$\\lim _{x\\rightarrow 5}\\frac{x^2-25}{x-5} = \\lim_{x\\rightarrow 5} (x+5)$$ I understand that to evaluate a limit that has a zero (\"hole\") in the denominator we have to factor and cancel terms, and that the original limit is equal to the new and simplified limit. I understand how to do this procedurally, but I'd like to know why this works. I've only been told the methodology of expanding the $x^2-25$ into $(x-5)(x+5)$, but I don't just want to understand the methodology which my teacher tells me to \"just memorize\", I really want to know what's going on. I've read about factoring in abstract algebra, and about irreducible polynomials (just an example...), and I'd like to get a bigger picture of the abstract algebra in order to see why we factor the limit and why the simplified is equal to the original if it's missing the $(x-5)$, which has been cancelled. I don't want to just memorize things, I would really like to understand, but I've been told that this is \"just how we do it\" and that I should \"practice to just memorize the procedure.\" I really want to understand this in abstract algebra terms, please elaborate. Thank you very much." ]
medi_sts_stackexchange_dupe
If a creature's size suddenly increases while it is inside a very small Sphere of Force (from Wall of Force) what happens?
What happens when Wild Shape/Polymorph runs out in a space that's too small?
[ "Adding an [AuthorYear] block at the beginning of bibliography entries I want to add a block at the beginning of my bib entries of the form [Lastnameauthor(s) Year] When the shortauthor field is defined it should use this field +Year instead. The following example is fairly minimal: \\begin{filecontents*}{test.bbx} \\ProvidesFile{test.bbx} [\\abx@bbxid $Id: test.bbx,v 0.9d 2010/09/03 20:11:58 lehman beta $] \\RequireBibliographyStyle{authoryear} \\DeclareBibliographyDriver{article}{% \\usebibmacro{bibindex}% \\usebibmacro{begentry}% %---add something here--- \\usebibmacro{author/translator+others}% \\setunit{\\labelnamepunct}\\newblock \\usebibmacro{title}% \\newunit \\printlist{language}% \\newunit\\newblock \\usebibmacro{byauthor}% \\newunit\\newblock \\usebibmacro{bytranslator+others}% \\newunit\\newblock \\printfield{version}% \\newunit\\newblock \\usebibmacro{in:}% \\usebibmacro{journal+issuetitle}% \\newunit \\usebibmacro{byeditor+others}% \\newunit \\usebibmacro{note+pages}% \\newunit\\newblock \\iftoggle{bbx:isbn} {\\printfield{issn}} {}% \\newunit\\newblock \\usebibmacro{doi+eprint+url}% \\newunit\\newblock \\usebibmacro{addendum+pubstate}% \\setunit{\\bibpagerefpunct}\\newblock \\usebibmacro{pageref}% \\usebibmacro{finentry}} \\endinput \\end{filecontents*} \\begin{filecontents*}{MeineBib.bib} @article{example, author={Firstname Lastname and First Last}, title={Title}, journal={Journal}, year={Year}, pages={Pages}, } \\end{filecontents*} \\documentclass[12pt,ngerman, ]{scrartcl} \\usepackage[ngerman]{babel} \\usepackage{filecontents} \\usepackage[babel,german=quotes]{csquotes} \\usepackage [bibstyle=test]{biblatex} \\bibliography{MeineBib} \\begin{document} \\tableofcontents \\cite{example} \\printbibliography\\end{document} I'm guessing the solution lies here DeclareBibliographyDriver{article}{% \\usebibmacro{bibindex}% \\usebibmacro{begentry}% %---add something here--- \\usebibmacro{author/translator+others}% but I can't find out how. It should look like this which is an existing style (natdin) in BibTeX, but not in biblatex.", "Is it possible to set DNS for mobile network", "How do I speed up my design work? I've been a designer for 6 months, having previously had a 1st class honours degree in Graphic Communication. My issue is that I am a Very good designer, but I work too slow. It's beginning to drive a rift between myself and the creative director who desperately wants me to work quicker. I've always been a workaholic even in university, I put in 110% all the time, really work my ass off, but I'm still not fast enough to complete projects quickly, my work is good, but it's not efficient. Do you guys have any tips to help me speed up?", "How to go with proving this : Let $R$ be a ring and let $I$ be an Ideal of $R$. Prove that the factor ring $R/I$ is commutative iff $rs-sr \\in I$ $\\forall r$ and $s$ in $R$ any hint how to go with this...", "How to \"pretty\" format JSON output in Ruby on Rails I would like my JSON output in Ruby on Rails to be \"pretty\" or nicely formatted. Right now, I call to_json and my JSON is all on one line. At times this can be difficult to see if there is a problem in the JSON output stream. Is there way to configure to make my JSON \"pretty\" or nicely formatted in Rails?", "How can I add a newline in the text of a label in WPF such as the following? &lt;Label&gt;Lorem ipsum&lt;/Label&gt;", "This post is an expansion of For many graduated sites (eg Physics), moderators do not want to apply the unilateral close vote in all cases--it is better to let some community votes pile on first. We only use the unilateral in obvious cases then. This renders the CV queue useless to us. If we &quot;skip&quot; something, we can't get back to it. If we say &quot;do not close&quot;, it's removed from the queue and our community can't see it. If we use &quot;close&quot;, we are using a unilateral mod vote--we don't want to do that. What I propose is a set of &quot;next/previous&quot; buttons, that let us navigate the queues, looking for closeable questions, and coming back to the others later. Thoughts? Update and bounty reason Due to the recent Great Flag Overhaul, mods no longer see close flags in the flag queue. Which means that the only way to get to them is via the review queue 1 Shog's solution is ideal in this case; let mods view the close queue as a list. (In fact, a list similar to the old flag queue -- which shows a list of mods who have seen the post and what mod actions have already been taken -- would be great) On Physics, the majority of the flags that we get are VTC flags. And the community isn't always able to close things on their own, so we have to step in. However, powering through the close queue isn't an option; because &quot;skip&quot;ing a post2 leads to it being dumped into the void (I can't get back to it unless I have a link). Extremely inconvenient. Could the workflow here be improved? 1. The /tools listing for posts with outstanding close votes doesn't work because it doesn't list posts which have been flagged but not VTCd 2. which I may want to take a closer look at later; gotta be careful with the binding votes.", "I want to select the value from the dropdown I am testing www.paytm.com In that I have filled in the mobile number but I am not able to focus and select the mobile operator which is present in the dropdown just after the phone number section. I want to select 'vodafone' as the value from the dropdown. How to do that using webdriver Code I have written till now ` public class MMT { public static void main (String[] args) { System.setProperty(\"webdriver.chrome.driver\",\"E:/som/chromedriver/chromedriver.exe\"); WebDriver driver = new ChromeDriver(); driver.get(\"http://paytm.com\"); driver.findElement(By.id(\"mobile-number\")).sendKeys(\"9876543212\");` What should be my next steps?", "mysql database no space available", "How do I unit test (using xUnit) a class that has internal private methods, fields or nested classes? Or a function that is made private by having (static in C/C++) or is in a private () namespace? It seems bad to change the access modifier for a method or function just to be able to run a test.", "I am new to QGIS. I am looking for any plugin or any manual method in QGIS for finding minimum distance (perpendicular distance) from a point which is part of one shapefile to nearest line among many lines which is part of another shapefile. MMQGIS is not useful for this purpose.", "Movie where a guy is sent to a sandy planet where time moves really fast but slow to the outside observer All I remember is the guy was sent to a planet to test something or he did something illegal, and time moved really fast on the planet but slow to the outside world. He had to fix something to leave the planet I think. His dad was also dying and he checked how many days he had left every day, but in the end his dad didn't actually die as time was fast. It took place on a sandy planet.", "Dynamic Symlinks I have built my app for different architectures and would like to create a \"dynamic symlink\" which takes me to the right version based on a variable. If the machine I am currently logged in to, is x86, then the symlink should take me to that build. A mocked example of what I want to do: $ uname -i x86_64 $ ls -ltr lrwxr-xr-x 1 dogbane gg 4 Feb 16 15:40 mylink -&gt; @sys/ drwxrwxr-x 2 dogbane gg 2048 Feb 16 15:40 x86_64/ drwxrwxr-x 2 dogbane gg 2048 Feb 16 15:40 i386/ $ cd mylink $ pwd -P ~/x86_64 Is this possible? I know I can use cd $(uname -i), but want something simpler.", "Calculation of limit without stirling approximation $\\lim n^n/(e^nn!)=0$ using Stirling approximation it is obvious. But can we do it without using Stirling approximation. Now series with terms $x^n n^n/n!$ has ROC $1/e$. What we can say about behaviour of power series at endpoints?", "I am trying to proof the following algorithm to see if a there exists a path from u to v in a graph G = (V,E). Reach := {u} LastCardinality := 0 while LastCardinality &lt; |Reach| do LastCardinality := |Reach| Next := null foreach i &lt;- Reach do foreach j &lt;- V do if(i,j) exists in E then Next := Next + {j} Reach := Reach + Next return Reach So far I have got that the output needs to be Reach = Goal where Goal = {r | r exists V, there is a path from u to r}. I also have three invariants that I am pretty sure will help prove this. Reach is always a subset of Goal and Next is always a subset of Goal. After an arbitrary K times through the while loop, for every t that exsits in V, if t has a path of length k+1 from u, then t exists in Reach If Reach is a subset of Goal before the while loop then LastCardinality &lt; |Reach| I know that to finish up the proof, I need to prove termination, the invariants, and correctness but I have no idea how. I think I need to use induction on the while loop but I am not exactly sure how. How do I proof those three characteristics about an algorithm?", "Is there any difference between like best and like the best? Is there a difference between these two sentences? Are they the same? What color do you like the best? What color do you like best? Is there a difference in their meaning?", "Number of solutions of $x_1+2x_2+\\cdots+kx_k=n$?", "New question asking form sometimes leads to accidental double posts of questions I've noticed that with the new question asking form, sometimes, attempting to submit a question will post two identical copies of the same question. I've (), but at the time, I assumed it was just a temporary fluke. As far as I remember, I just reviewed the question, saw no errors, and submitted it. (That's all the info I have.) However, I just saw this happen to someone else, so it can't just be a fluke on my end. , and . The author claims there that they did indeed double click the \"Review\" button, but their question didn't go through since it didn't have a required tag, but when they tried to submit the question with the required tag, they only clicked it once. Also, now that I think about it, it could not have been just a temporary client-side issue on both our ends. The system is supposed to if one tries to post more than one question in 30 seconds. Neither of us got a CAPTCHA. This means that the server accepted the double post, and so it's a server issue. This has the effect of denying users badges that they would have otherwise qualified for, since a single negatively-received, closed, or deleted question . This means that even if the double post is deleted and the original is upvoted, the user won't qualify for that day since they've made a \"bad\" question on that day. (While they may be able to later reverse this 60 days later by undeleting and re-deleting their question - questions deleted more than 60 days later aren't considered \"deleted\" for the check - they often won't be able to, since most of the time, users will have downvoted the double post, which also disqualifies one from the badges.) Can an employee go through server logs to see what happened in both these cases, and add some safeguards to prevent accidental double submissions of questions? This seems to have come up when the new asking form was deployed. Update: There was another case just now: was . As both have the exact same time of submission, this is an instance of this bug, since as I said above, this thing is ordinarily prevented by a CAPTCHA.", "Option to contact moderators Due to some \"recent issues\", I think the following is necessary: Users need a way to contact moderators through the StackOverflow website. This is especially important for suspensions, where there is no way to appeal or discuss the suspension from within SO itself. Basically, there would be some kind of a box on the user's page that allows them to mention something to the moderators and some way to read the replies. (Or they could just go to the user's email.)", "For $x$ and $\\lambda$ complex, if $|x| \\gt \\frac{1}{2} + \\sqrt{\\frac{5}{4} + |\\lambda|}$ then $|x^2+\\lambda| \\gt |x| +1$ Define $f(z) = z \\ ^ 2 + \\lambda$ and $V = \\left\\{x \\in \\Bbb C : |x| \\gt \\frac{1}{2} + \\sqrt{\\frac{5}{4} + |\\lambda|} \\right\\}$, for some $\\lambda \\in \\Bbb C$. Then, if $x \\in V$ then $|f(x)| \\gt |x| +1$. I tried the following : Let $x\\in V$ then $|f(x)| = |x \\ ^ 2 +\\lambda | \\ge |x | \\ ^ 2 - | \\lambda| \\gt (\\frac{1}{2} + \\sqrt{\\frac{5}{4} + |\\lambda|}) \\ ^ 2 - |\\lambda| = 1.5 + \\sqrt{\\frac{5}{4} + |\\lambda|} $. But this doesn't get me anywhere." ]
medi_sts_stackexchange_dupe
How to pass LinkedList as value?
Is Java "pass-by-reference" or "pass-by-value"?
[ "How do we know for certain that space is expanding?", "As a new user without much rep, what should I do if someone else has already asked a question I have, but it has no answers? Suppose you had a question, and you really want a good answer that would solve your problem, but noticed it was already asked by someone else. However, no one has posted any answers. The question is technically considered \"unanswered\", but a lot of users who would otherwise bother to give a correct answer probably skip the question completely for some reason. What should I do in this case? One idea is to ask a new, completely identical question, in the hope users will notice the new question and post an answer there. But would that go against SE policy? Note: This is adapted from , but that doesn't cover the case where the original question is unanswered. Also, it is not a duplicate of , as that question asks about getting attention for one's own questions, while this one and the one linked above ask about getting an answer if someone else has already posted the same thing.", "Why does the image not appear?", "Split file into multiple small files, separate by the newline symbol Is there a utility that split file by newline symbol? e.g if a file contains the following lines, aa bbb cccc If I want to split it to 3 files, the desired output would be: aa, bbb And cccc (in 3 different files) I already checked the split command, it only cut file by file sizes, not what I want. If I don't wrote a utility myself, is there any standard tool to use?", "Unary operator expected #!/bin/bash SUBJECT=\"WARNING CPU USAGE HIGH\" TO=gmail id MESSAGE=/tmp/messages echo \"#######################\" &gt; $MESSAGE echo \"CPU statistics as follows..\" &gt;&gt; $MESSAGE mpstat &gt;&gt; $MESSAGE echo \"#######################\" &gt;&gt; $MESSAGE CPU_USAGE=$(top -b -n1 | awk '/^Cpu/ {print $2}' | cut -d. -f1) [ $CPU_USAGE -gt 85 ] &amp;&amp; mail -s \"$SUBJECT\" \"$TO\" &lt; $MESSAGE` ./cpu.sh: line 11: [: -gt: unary operator expected What might be the reason", "I had two drives partitioned the same and running two RAID partitions on each. One died and I replaced it under warranty for the same model. While trying to partition it, the first partition can only start on sector 2048, instead of 63 that was before. Drive have different geometry as previous and remaining ones. (Fewer heads/more cylinders) Old drive: $ sudo fdisk -c -u -l /dev/sdb Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000aa189 Device Boot Start End Blocks Id System /dev/sdb1 * 63 174080339 87040138+ 83 Linux /dev/sdb2 174080340 182482334 4200997+ 82 Linux swap / Solaris /dev/sdb3 182482335 3907024064 1862270865 fd Linux raid autodetect Remanufactured drive received from warranty: $ sudo fdisk -c -u -l /dev/sda Disk /dev/sda: 2000.4 GB, 2000398934016 bytes 81 heads, 63 sectors/track, 765633 cylinders, total 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000d0b5d Device Boot Start End Blocks Id System /dev/sda1 2048 ... Why is that?", "What is the opposite of postpone?", "Pass a PHP string to a JavaScript variable (and escape newlines) What is the easiest way to encode a PHP string for output to a JavaScript variable? I have a PHP string which includes quotes and newlines. I need the contents of this string to be put into a JavaScript variable. Normally, I would just construct my JavaScript in a PHP file, à la: &lt;script&gt; var myvar = \"&lt;?php echo $myVarValue;?&gt;\"; &lt;/script&gt; However, this doesn't work when $myVarValue contains quotes or newlines.", "I posted a question recently regarding my Windows 10 upgrade which ended up with a black screen and cursor. I reverted back to Windows 8.1 using the \"Revert to previous build\" option in recovery, and all seems fine, except that Virtualisation is disabled. I tried to open BIOS settings but it just boots into Windows. I've tried the usual F2 key and Shift F2, all the other F keys, tried pressing B and Shift+B but no luck. I tried pressing the Lenovo key on the laptop when it is powered down, which shows a menu to either boot into BIOS, recovery, or show boot menu. I choose BIOS and it just boots into Windows. I tried going into advanced startup options from Windows (Shift+Restart) and choosing \"UEFI FIRMWARE SETTINGS\" but it just reboots back into Windows. Before the Windows 10 upgrade it was working perfectly. Lenovo G580 laptop - Core i3 with Intel 4000 graphics. 8GB of RAM and a Crucial MX100 512GB SSD (replaced the original hard drive with this SSD).", "Fantasy book series with non-human races and labyrinth I'm trying to identify fantasy book series I encountered some time ago. Here are things I remember: it was a fantasy setting but with some s-f elements; with many worlds and possibility to travel between them; resembling setting a little, the two main races were non-human and probably hostile to each other, a labyrinth (?), which somehow played an important role in the plot, a protagonist was some kind of emissary and was sent on a mission to another worlds time period: 80s - 90s Does anyone know what it is the name of the series?", "Adjusting space between array rows and columns \\documentclass[english]{article} \\usepackage[T1]{fontenc} \\usepackage[latin9]{inputenc} \\usepackage{babel} \\begin{document} % ... \\[ \\begin{array}{ccccc} x(1) &amp; = &amp; \\frac{x(0)}{1} &amp; = &amp; x(0)\\\\ x(2) &amp; = &amp; \\frac{x(1)}{2} &amp; = &amp; \\frac{x(0)}{2}\\\\ x(3) &amp; = &amp; \\frac{x(2)}{3} &amp; = &amp; \\frac{x(0)}{2.3}\\\\ x(4) &amp; = &amp; \\frac{x(3)}{4} &amp; = &amp; \\frac{x(0)}{4!}\\\\ &amp; &amp; &amp; &amp; \\vdots\\\\ x(n) &amp; = &amp; \\frac{x(n-1)}{n} &amp; = &amp; \\frac{x(0)}{n!} \\end{array} \\] % ... \\end{document} Because of the fractions in the array cells, array elements are vertically too close to each other, they are literally touching to each other. Also the horizontal spacing is too much as you see in the image (screen shot from the output PDF file). How do I make these cell-spacings look better?", "Is there a spec that the id of elements should be made global variable?", "How to hide TabPage from TabControl", "How can Innodb ibdata1 file grows by 5X even with innodb_file_per_table set? I have innodb_file_per_table set and just today my ibdata1 file jumped from 59M to 323M after I made several changes to an 800M table to reduce it to about 600M. That particular table's .ibd file was reduced but the server's ibdata1 file went crazy. Any ideas?", "How to use the parskip package? (space in between paragraphs)", "How can I install the latest Netbeans? In Ubuntu Software Center the Netbeans version is netbeans 7.0.1+dfsg1-5ubuntu2 but Netbeans 8.1 is available in the Netbeans website.", "Setup Apache in Amazon AWS I tried to setup apache 2.2 in amazon aws using amazon ami. i did installed httpd and php and congirue http.conf to use /var/www/html. Then put file index.html on that folder. But when i tried to use browser to browse my domain which is ec2-122-248-255-181.ap-southeast-1.compute.amazonaws.com, nothing was loaded. I did start httpd by running apachectl start, and i can see it listening on port 80. Does anybody know what is wrong?", "What is the English equivalent of gatasan?", "How do I get fan control working? I know there something called fancontrol, that enables you to control the speed of your system's ventilation. I'd like to let my fans spin a bit faster as my laptop is heating up very easilly. All tutorials and stuff I've found are for old versions of Ubuntu and don't seem to be working anymore. Can anyone explain to me or give me a good link on how I can get it working on Ubuntu? Something different with the same effect is also fine.", "Do we have different badges in different SE sites" ]
medi_sts_stackexchange_dupe
Bash using curl to check headers and mailing me if there are any errors
Compare integer in bash, unary operator expected
[ "What uses are there for \"placement new\"? Has anyone here ever used C++'s \"placement new\"? If so, what for? It looks to me like it would only be useful on memory-mapped hardware.", "Partition 256 GB SSD for dual Boot, Windows 10 + Ubuntu 19.04 I plan on installing Ubuntu 19.04 and give it 100 GB of my 256 GB SSD space and leave the rest for Windows as I would primarily be using Ubuntu. A. Now, as I plan to install a lot of applications in Ubuntu, should I give more space to the / partition than the home partition? (Or maybe even drop the /home altogether?). B. I have another 128 GB SD card for files like photos, audio and video files. Please suggest me the optimal partitioning for the use case. C. Also, I have 8 GB of RAM so what should be the optimal swap partition size? D. How would the distribution be if I choose \"install Ubuntu alongside Windows\" option?", "Suppose that $(U,V)$ has the following joint pdf: $$f_{U,V}(u,v)=\\exp(-\\theta u-\\theta^{-1}v)$$ , where $u\\geq0$, $v\\geq0$, $\\theta&gt;0$. Define $X=UV$ and $Y=U/V$. Find the marginal pdf of $X$ and $Y$. With transformation, I got $U=\\sqrt{XY}$ and $V=\\sqrt{X/Y}$ and the absolute value of Jacob is $1/2Y$. Then, the joint pdf of $(X,Y)$ is $$f_{X,Y}(x,y)=\\exp(-\\theta \\sqrt{XY}-\\theta^{-1}\\sqrt{X/Y})1/2Y, X,Y&gt;0.$$ But I am not sure how to get the marginal pdf? Thank you!", "Wouldn't it be a good idea to be able to vote for questions to be moved to any Stack Exchange site? For example, I just voted as off topic, but that was all I could do. I wish I could've voted it be moved to . It's OK to have the predefined list of sites that is now when voting to move, but it would be nice to have a more link, where we could pick any Stack Exchange site. Here's a quick mockup of how I see this implemented: When the more link is clicked, a list of all the Stack Exchange sites should appear.", "Can I use a 23 W CFL in a fixture that's rated for a 60 W incandescent? I have a lamp that is rated at 60 Watts for an incandescent bulb with a disclaimer to use a 13 Watt bulb instead when using a CFL replacement. Do I really need to respect that disclaimer? Would not a 23 Watt CFL be just as safe to use? It still draws less power than a 60 Watt incandescent, right?", "How to encrypt folders (not in Home)? Is there a way to encrypt a folder, which is not in Home (/home/user/) but even in a different partition, so only my user can access/read contained files? Alternatively, I would like to understand if it is possible to turn a complete ext4 partition into an encrypted volume, which would be mounted at user login. If possible, I would like to make the change without reinstalling Ubuntu. My PC has (mount output): /dev/sda1 on / type ext4 (rw,errors=remount-ro) /dev/sda3 on /home type ext4 (rw) /dev/sda4 on /home/igor/Personale type ext4 (rw) sda4 is the partition containing folders I would like to protect.", "Is it possible to detect if client supports SNI?", "Prove previsibility and $E[X_{T \\wedge n}] \\le E[X_{S \\wedge n}]$", "Calendar link to different page views", "Is there an upper limit to temperature in thermodynamics or statistical mechanics In many presentations of statistical mechanics where we have a system of particles having mass, such as the molecules of an ideal gas, the temperature is often equated to the average relative velocity of the particles. However no such velocity can exceed that of light. Is there therefore an absolute upper bound to temperature as well as an absolute zero?", "I am using Ubuntu 11.10 and my screensaver keeps coming on while I'm watching a movie. I don't remember this happening in 11.04 and can't remember how to stop it?", "Invalid Topology [Topoengine error] from ArcGIS for Desktop? Using ArcGIS 10.1 for Desktop, I'm trying to run the Identity function on two large data sets but it fails every time. I don't think it is a lack of hardware as I can run other processes on the same data sets. I've already updated software, and added the 64 bit geoprocessing add-in, checked and repaired geometry, and done the fix in (set ARCTMPDIR env variable to a writable local folder). Executing: Identity DudleyStamp OA2011 \"D:\\Case Studies\\National2\\National.gdb\\DudleyStampOA11\" ALL \"1 Meters\" NO_RELATIONSHIPS Start Time: Wed May 08 21:11:43 2013 Reading Features... Processing Tiles... Assembling Tile Features... ERROR 999999: Error executing function. The table was not found. The table was not found. [DudleyStampOA11] The table was not found. The table was not found. [DudleyStampOA11] Invalid Topology [Topoengine error.] Failed to execute (Identity). Failed at Wed May 08 21:45:41 2013 (Elapsed Time: 33 minutes 58 seconds) Based on comments so far I tried copying data to new file geodatabase, and running the tool from ArcCatalog still get exactly the same error. I have ordered 16GB of the fastest RAM my computer can take (I current have 4GB). I also have a 6 Core AMD Phenom II X6 1090T, SSD, and AMD Radeon HD 6970 Graphics Card. So I'm not sure what more hardware I can add. I've also tried increasing the size of the page file which was a suggestion I found on Google with no effect.", "The message that appears in the reputation tab of a user's profile when they gain or lose reputation due votes disappearing when another user is deleted is simply: user was removed This message is confusing and unhelpful. Below are comments that demonstrate this confusion, . I don't have any quotes from the users who could not find it and remained confused. There is , and . However, the message has not been changed. I know that in the past the developers have been reluctant to direct users to meta in some situations, such as question bans, because it may cause users to post here appropriately. That does not seem to apply to this case. This is not typically a case of \"\"; most of us have probably seen the message at some point. Why is this message vague and unlinked? What negative behaviour does this confusion mitigate? My first interpretation was that I was the user who was removed! I just simply wished the explanation on the reputation page was better. Seems like I shouldn't have had to come to the meta section to figure this out. It must be better to show \"User was removed\". For a moment I just thought that I was removed :-( the information should be better. I lost 10 points yesterday by \"user removed\" and assumed that I was the one being removed, leaving me wondering why and feeling somewhat embarrassed. The recalc policy is fine. But the red mark and \"user was removed\" looks cryptic and unnecessarily negative--especially since the only user name mentioned on a profile is one's own. So the natural impulse is to bind \"user\" to the account you're looking at. (It was jarring to me and I could tell what it meant, but still this could be clearer.) I agree that orange is better than red and ideally all of these things would have hyperlinks to a help page (or at least a meta post) explaining what the deal is. +1 (to HostileFork) for the idea of linking to an explanation of 'User was removed'. It just took me 10+ minutes to find this particular thread and read through, when I could have simply clicked through! I would also like a little more info on why user was removed (abuse, friend upvotes, rules, etc) , as that could help educate the community as a whole on what behaviors to report. I could care less about the rep gain or loss, but when you have a loss it is a scary message without context. I honestly thought for a moment that my account had been inhibited in some way. No, it didn't say \"Your account was removed.\" Still, there is that moment of \"what did I do wrong?\" which seems silly to cause simply by not posting a few extra words. A clearer \"A user who voted on your posts was removed along with reputation changes they caused\" would have gone a long way to not cause me to question my participation in the review queues as of late. My problem is that the message \"user has been removed\" is not a clickable link like the other messages - so I had to search meta to discover this question to find out what it meant.", "Applescript run from menu bar?", "I am new to Ubuntu and Linux in general. I created a dual boot OS on my laptop (Windows 10 and Ubuntu). Typing: sudo apt-get install python3-tk (or even python-tk) didn't work. Trying to install the python3-dev or python-devel (no luck). Downloading Tcl and Tk to manually install. In Windows 10 Bash Subsystem the Tk and Tcl are already included, so I thought Ubuntu already had it. But, I want to use my Ubuntu desktop to develop Python GUI apps. So, how can I install the Tcl/Tk to be use in Python 3.5 for GUI development? I loaded Python 3.5.2 fine but need the GUI modules enabled. The code to test that Tk is working is: Type python3 Type: import tkinter tkinter._test() Result: a GUI pop-up displaying This is a Tcl/Tk version..", "Let 'A' be a $2 \\times 3$ matrix where as B be a $3 \\times 2$ matrix if $\\det(AB) = 4$ the find value of the $\\det(BA)$ My attempt: I took A = $$ \\begin{bmatrix} 2 &amp; 0 &amp;0\\\\ 0 &amp; 0 &amp;2\\\\ \\end{bmatrix} $$ B= $$ \\begin{bmatrix} 1 &amp; 0 \\\\ 0 &amp; 0 \\\\ 0 &amp; 1 \\\\ \\end{bmatrix} $$ It satisfies given condition and I get $\\det(BA)=0$ But I have not proved it How do I prove that it is always zero (background)I am 12th grader and I know about adjoint,inverse,determinant,rank of a matrix and the other basics. However I do NOT know about eigenvalues and eigenvectors.", "How can one cite theorems of references? I would like to cite the item (iii) of proposition 3 of a reference. How can I do it? Which ways do you suggest? This is a question not only about LaTeX, but also about style. One option I have seen to cite pages of a reference is \\cite[p.~333]{Audet}. Is there something similar to cite theorems, propositions and so on?", "I have a Laars gas boiler that has 3 heating zones. I want to replace the old mercury honeywell tstat on the 1st floor (heat only) with a newer honeywell RTH9580 wifi model. I've taken pictures of my entire system, labeled the wires in the pics to indicate the associated connections, and included the Laars wiring diagram. There is a transformer mounted on the wall near the boiler that is wired in-line to the system (power from the panel --> into the emergency boiler switch --> into the wall transformer --> then to the boiler (low water cut off and boiler circuitry). There is also a transformer within the boiler circuitry itself. Can someone tell me the best method (proper preferred, not necessarily easiest) to connect the C wire?", "Python: reload component Y imported with 'from X import Y'?", "Transparent path/stroke fill in Illustrator" ]
medi_sts_stackexchange_dupe
Showing Syntax Error while try to output the dictionary or a list value
Syntax error on print with Python 3
[ "Is \"89.9%\" singular or plural?", "Abelian quotient group I'm stuck on the following practice problem. Any hints would be appreciated. Suppose $N$ is a normal subgroup of $G$ such that every subgroup of $N$ is normal in $G$ and $C_{G}(N) \\subset N$. Prove that $G/N$ is abelian. I'm not sure how to use the fact that $C_{G}(N) \\subset N$. Thanks", "On the existence of a continuous bijection $f\\colon [0,1]\\to [0,1]\\times [0,1]$ Let $f$ be a continuous function on $[0,1]$ such that $f([0,1])=[0,1]\\times[0,1].$ Then show that $f$ is not one-one. Hints will be appreciated.", "Graph with Cycle and Two-Colorable i think if the graph G has an odd cycle, it's not two-colorable, otherwise it can be two colorable. i read in one notes that the following is True: we couldent two-colorable any graph G that has cycle. anyone could clarify me ?", "Cannot install Ubuntu in VirtualBox due to \"this kernel requires an x86-64 CPU, but only detects an i686 CPU, unable to boot\" error I was trying to install Ubuntu 12.04 in VirtualBox 4.2.12r84980. I see this kernel requires an x86-64 CPU, but only detects an i686 CPU, unable to boot But I am using a 64 bit Windows 8, and trying same .iso for trying Ubuntu. Then what is the problem?", "I was improving some of my old posts on Stack&nbsp;Overflow when I ended up encountering this: You have already edited 5 of your own post today; futher edits are not allowed until tomorrow I know this it is not a major deal, but what's the logic underneath to this restriction?", "How do I extract an ISO on Linux without root access", "How do I install an SSH private key generated by PuTTYgen?", "How can I minimise the time to get a new UK passport?", "Creating queries to select by attribute with arcpy I'm quite new with arcpy and I'm finding selecting by attribute a bit of a nightmare. There's a problem with my query on the script below [query = \"\\'Location\\' = observer\"], but I can't tell what it is. 'Location' is a field of the feature class I'm dealing with (fc_copy). with arcpy.da.UpdateCursor(fc_copy,field_names) as cursor: for row in cursor: observer = row[0] arcpy.MakeFeatureLayer_management(fc_copy, 'fl_copy_OBS') arcpy.MakeFeatureLayer_management(fc_copy, 'fl_copy_TAR') query = \"\\'Location\\' = observer\" arcpy.SelectLayerByAttribute_management('fl_copy_OBS', 'NEW_SELECTION', query) arcpy.SelectLayerByAttribute_management('fl_copy_TAR', 'NEW_SELECTION', query, invert_where_clause = 'INVERT') This is the error I get => Invalid expression Failed to execute (SelectLayerByAttribute). Is there any documentation to learn the rules to follow to build queries for arcpy?", "How do I compare two string variables in an 'if' statement in Bash?", "If $G$ is a finite $p$-group with a nontrivial normal subgroup $H$, then the intersection of $H$ and the center of $G$ is not trivial.", "Induction and electromagnetic fields I've got a few questions on induction and electromagnetic fields. My current understanding of induction and electromagnetic fields is that, when electricity/current flows through a wire, it creates an electromagnetic field. If you twist that wire into a coil then you can concentrate that field. You can then induce current into a different coil by placing it inside of the electromagnetic field created by the first coil. So here are my questions: Q1. Does the electromagnetic field contain any energy? EDITED QUESTION Q2. Electromagnetic fields are the same as waves, so does that mean that when current is induced, they get the energy from electromagnetic waves being exchanged, or do they induce current directly from the electromagnetic field? Q3. If electromagnetic fields and waves are the same, then doesn't that mean that you can induce current from waves? Therefore transferring electricity over long distances? Q4. What spectrum of light are the electromagnetic waves that are in a field created by electricity? Q5. Finally, why is it not possible to induce current from the Earth's magnetic field? I thought Maxwell said that electric fields and magnetic fields were the same thing. Thank you to anyone who answers. Edited Q2: So my original question (although asked poorly) still stands. Where does the current that gets induced in the secondary coil come from? How does the electricity transfer from the primary coil to the secondary? For example, is it taken from the stored energy in the e.m field? Does the field just act as a bridge between the 2 coils? Or do the 2 coils exchange e.m waves which carry the electricity that is being transferred from coil 1 to coil 2? Or is it none of these things and something completely different?", "If particles are points, then aren't atoms empty space? Zero dimensional points do not take up space, so then wouldn't everything in the universe be literally empty? Or is there something that I'm missing?", "What can I do to give the players the same feel their characters would have about wilderness travel?", "Do the -ing and to-infinitive \"verbs\" that follow catenative verbs always take the grammatical function of \"noun\"? I'm wondering whether or not the verb form that follows a catenative verb has the grammatical function of a noun or of a verb, and whether or not it depends on the first catenative verb. \"I like to run\" \"I like running\" the -ing and the to infinitive can easily be switched in this sentence, and it seems to be implying \"I like [the act of[running]]\", so both the infinitive and the gerund are nouns. \"I like to run marathons\"/\"I like running marathons\" These seem like they might still be nouns but need \"verb powers\" to take the object, and then these sentences really turn into \"I like [the act of [running marathons]]\"/ \"I like [to be in the state of [running marathons]]\". Is this true for both the -ing (and so it would be a gerund) and the to-infinitive? Are they, sort of, initially verbs so that they can take the object, and then the verb + object becomes a noun phrase? If this is true, I'm also wondering if the same rules apply for a catenative verb such as \"start\". \"I started to run in the mornings\" \"I started running marathons in 2008\" \"start\" is a catenative verb that isn't a cognitive/emotion verb, and specifically suggests action. So what is the grammatical function of the to-infinitive and -ing verb forms? are they verbs? are they nouns? It just seems incorrect to say that their grammatical function is a noun, but everything I've seen on the internet is pretty vague. I've also seen that to-infinitives are never verbs, but only from one source and it just doesn't seem right to me. So any ideas on the true grammatical function of the -ing and the to-infinitive after a catenative verb? And is it universal across catenative verbs, or does it depend on the verb category?", "I usually use \"at a company\" but I have encountered some articles using \"in a company\", \"in XYZ firm\" or \"in an organization\". Which one is right?", "Get the real width and height of an image with JavaScript? (in Safari/Chrome) I am creating a jQuery plugin. How do I get the real image width and height with Javascript in Safari? The following works with Firefox 3, IE7 and Opera 9: var pic = $(\"img\") // need to remove these in of case img-element has set width and height pic.removeAttr(\"width\"); pic.removeAttr(\"height\"); var pic_real_width = pic.width(); var pic_real_height = pic.height(); But in Webkit browsers like Safari and Google Chrome values are 0.", "Introduction to string theory", "How do I capture artificial light sources better? I am quite new to photography and was looking into how I can take better indoor photographs, particularly around night time. I'm currently in a hotel room for the night and decided to try and take a picture of my room to test out my tripod which I haven't used before. However I noticed no matter what I set my camera settings to the artificial lights (particularly the lamp on the left, image attached) just appeared very washed out. You can't tell any detail about the lamp shade all you can see is just some sort of light but not much to it. I tried a variety of fstop/shutter speed settings and tried a variety of ISO settings but they all appeared pretty much the same unless I massively underexposed the image. Given that I wondered whether the solution would be to take a HDR image or take a normal exposure and an underexposed image and blend them later? I understand that artificial light like this can be very hard and harsh but I wondered if there's a way of improving the result with looking away from it? I wasn't trying to take any particular special picture here but just test out my camera a bit more but this was the first thing I noticed and I didn't know how to fix it. Any tips would be greatly appreciated." ]
medi_sts_stackexchange_dupe
"ERROR MESSAGE: Requires installation of untrusted packages"
How to install software or upgrade from an old unsupported release?
[ "Execute Java from command line", "I'm quite confused about attacking with two weapons in both hands and wondering what is required to be able to do to (in Pathfinder). 1. Base Attack Bonus Looking at the base attack bonus tables for different classes (e.g. the ) it seems like up to +5 you get only one attack per full action but starting from base-attack-bonus of +6 you get a second attack with +1. 2. Feats There is a feat . The existence of the feat sounds like you could not do two-weapon-fighting without it. However, in the description of \"normal\" it says: If you wield a second weapon in your off hand, you can get one extra attack per round with that weapon. When fighting in this way you suffer a –6 penalty with your regular attack or attacks with your primary hand and a –10 penalty to the attack with your off hand. If your off-hand weapon is light, the penalties are reduced by 2 each. 3. Core Rulebook Chapter about combat If I understand the it says that you need a full-round action do attack with both weapons in two hands. So how do these things interact? Can I only attack with my off-hand weapon if my base-attack-bonus is high enough that I get second one with +1? If not, how does the \"multiple attacks from high base-attack-bonus\" interact with dual-wielding? Assuming I reached a state of base-attack-bonus with +11/+6/+1 and have a full-round action to attack. Does that mean I can either attack with my primary weapon three times or use the primary weapon and off-hand weapon to attack only twice? Why would I then ever choose dual-wielding? Or can I attack three times with both weapons (leading to a total of 6 attacks with heavy malus) Or would I get 3 attacks with the primary weapon + 1 attack with the off-hand weapon? If so, what attack bonus do I have to use for each of the attacks?", "How can I create an AddIn to ArcGIS Pro and where can I find it from ArcGIS Pro application?", "Why I think tension should be twice the force in a tug of war", "Direct \"rate in iTunes\" link in my app?", "Sex worker student offering her (lawful) services One of my students is an escort/stripper and she has offered me (and other faculty in my department) her \"services\". I am pretty sure my initial reaction of \"thanks for letting me know, now can you answer the question about how to calculate the standard deviation\", may not have been the best reaction. The offers have continued. My head of school is aware of the issue, and has asked if I want him to do anything. Is the student doing anything wrong by offering her services to me? For what it is worth, prostitution is legal in the UK. Is this any different then a student telling me she works in a restaurant? What is the correct response in a situation like this?", "What's the difference between anonymous methods (C# 2.0) and lambda expressions (C# 3.0)?", "I want to create a wave made out of particles/dots. The wave should look like this: I tried to achieve this effect by adding an ocean modifier to a plane. Then I added a particle system to the plane but now I don't know how to go on. How can I make the particles lay on the 'ocean' and move when the ocean is moving? PS: I know there is a way to do this with a material in the Blender Render. But firstly I want to create the whole thing in Cycles and secondly I want to have particles.", "Keytool Signing Problem: Keystore was tampered with, or password was incorrect", "How to completely delete the head of a function expression", "If I wave around a bar magnet, the magnetic field in the space around it changes. Is this enough to go through the whole speed of light derivation implying that the motion creates an electromagnetic wave? If so how do I determine the wavelength and direction of the resulting wave?", "How to stop the find command after second match? How to make find command, that will show only first two matches and then end, something similiar to just version for two records.", "Why is the subject omitted in sentences like \"Thought you'd never ask\"? \"Thought you'd never ask\" is \"I thought you'd never ask\" with \"I\" omitted. \"Hope this helps\" is \"I hope this helps\" with \"I\" omitted. In English grammar, normally every sentence should have a subject, right? My first thought is that these two examples are so often used that they are like set phrases. But these are not really set phrases. You can alter the words after \"thought\" and \"hope\". Another possible explanation is the tendency to drop the subject if it is the first person pronoun. It seems that in many languages, such as Spanish, Italian and Japanese, the first person subject is usually omitted. Maybe English is going the same way? (Not exactly the same, since in Italian, verb forms change according to the person, so the subject is not necessary to understand who one's referring to.) And, apparently, such omission is more common in spoken English than in written English. Are there more examples of such first person subject omission? How frequent is it?", "Why does rubbing feet against sheets create a spark? Sometimes when I'm in bed at night, I rub my feet against the sheets and light is created. What exactly is going on? I'm familiar with static electricity, and the triboelectric effect (creating a charge by rubbing 2 insulators together), and electrostatic discharge (releasing charge by touching a grounded conductor). I believe that all of that is what is at work here, but I'm slightly confused since in other cases, the triboelectric effect and electrostatic discharge seem to occur as two separate steps, with different substances involved, and here, the two effects seem to be occurring simultaneously, with the same substances. Can someone help me with a step-by-step explanation of the dynamics of what is going on?", "Why do wheels appear to revolve opposite to the direction they are rotating? When viewing cars that are driving along side of us, sometimes their wheels appear to be turning backwards even though they are traveling in the same direction as our car. Why do they look that way?", "Uniform continuity of $\\sin(x\\sin x )$ for all $x\\in (0,\\infty)$", "What is serial voting and how does it affect me? I just noticed that I lost a bunch of points from my reputation score, and I used the \"reputation\" tab on my user profile page to try and track down the cause. During my investigation, I noticed there was an unusual event of type \"reversal\". In the normal place of a question title, it says \"voting corrected\". What does this mean, and what caused it? Did I do something wrong? Why did I lose all of that reputation? Is the system punishing me for leaving too many good answers? Is there any way to earn it back?", "At the start of the movie it says: \"A long time ago in a galaxy far, far away....\" Does this mean that the entire Star Wars saga takes place in a single galaxy? To my understanding a galaxy isn't very big compared to the universe itself. Star Wars has many different sentient races, and the way they are presented suggests that most planets are host to only one of them (some exceptions like naboo). This strongly leads me to believe there should actually be more galaxies in the Star Wars universe (hehe). Another thing, I think it's safe to assume that even if the entire saga takes place in one single galaxy, their researchers can observe other galaxies (I think we started doing that in the 1600s, and they are a lot more technologically advanced than we were back then). When Obi-wan is looking for Kamino (the rain planet with the cloners) the librarian says something like \"If it's not in our records, it doesn't exist\", so she must be convinced that the entire universe has been explored. If the entire universe has been documented, why wouldn't they go to those other galaxies? The technology seems to be advanced enough to hop to another galaxy. Is there any canon material that suggest that traveling between galaxies is done? If not, is there a canon explanation why they don't?", "Problem Statement Let $f(x) = x^3 + ax^2 + bx + c$ and $g(x) = x^3 + bx^2 + cx + a$ where $a,b,c$ are integers with $c\\not=0$ Suppose that the following conditions hold: $f(1)=0$ the roots of $g(x)=0$ are the squares of the roots of $f(x)=0$ $$\\text{Find the value of} \\: \\: a^{2013} + b^{2013} + c^{2013}$$ My attempt Let $f(x) = (x-p)(x-q)(x-r) \\: \\:$ and $g(x) = (x - p^2)(x-q^2)(x-r^2)$ Expanding we get $$f(x) = x^3 - (p + q + r)x^2 + (pq + pr + qr)x - pqr$$ $$g(x) = x^3 - (p^2 + q^2 + r^2)x^2 + (p^2q^2 + p^2r^2 + r^2q^2)x - p^2q^2r^2$$ And so we have $$a = -(p+q+r) = -p^2q^2r^2$$ $$b = pq + pr + qr = p^2 + q^2 + r^2$$ $$c = -pqr = p^2q^2 + p^2r^2 + r^2q^2$$ Then we get the following relations $$a = -c^2$$ $$b = a^2 - 2b \\implies 3b = a^2 \\implies b = \\frac{c^4}{3}$$ From $f(1) = 0$ we have $a + b + c = -1 \\implies \\dfrac{c^4}{3} + c - c^2 = -1$ However, upon graphing this function, I saw that there are no integer solutions for $c$. Have I done something wrong? Edit For future readers, my approach can simplified alot if you replace $r$ with $1$ since $f(1) = g(1) = 0$", "How to make a JTable non-editable" ]
medi_sts_stackexchange_dupe
Birthdate field in bio does not allow older than 94 years?
Age limit is too strict
[ "Trouble with Vakil's FOAG exercise 11.3.C I'm having trouble with the exercise in the title, even with part (a), which asks to prove that if $X$ is a closed subset of $\\mathbb{P}^n_k$ of dimension at least 1 and $H$ is a non-empty hypersurface, then $X$ and $H$ meet. Following the hint, I've done the following: By assumption, $X$ is given by $V(I)$ for some homogenous prime ideal $I\\subset k[x_0,\\dots x_n]=:A$ and $H$ by $V(f)$ for some homogenous polynomial $f\\in A$. We wish to prove that there is a homogenous prime ideal $\\mathfrak{p}$ (that's not the irrelevant one) containing both $I$ and $f$. Consider the affine cone $\\mathrm{Spec}\\ A/I$ of $X$ in $\\mathrm{Spec}\\ A$. Being homogenous, both $I$ and $f$ are contained in the ideal $(x_0,\\dots x_n)$. By Krull's principal ideal theorem, every minimal prime ideal containing $f\\mod I$ has codimension one. $X$ having dimension at least one implies that there are homogenous prime prime ideals $\\mathfrak{q}\\supsetneq \\mathfrak{r}\\supset I$. This implies that $(x_o,\\dots x_n)$ has codimension at least two. Thus there are prime ideals containing $f\\mod I$ that are contained in $(x_o,\\dots x_n)$. However, I'd need to show that there are homogenous such prime ideals, right? I'd rather get hints than full solutions.", "I'm trying to make a longtable that is wider than the textwidth at a certain moment. I've tried different things always ending up with a different problem: First possibility: If I use the adjustwidth environment the longtabu does not align correctly. The left margin stays fixed and the right margin gets out of the page. This in contrast, if I do the exact same thing to make a tabu (instead of longtabu), it works perfectly. I think using the adjustwidth is the best way to go, but I can't manage to get it working. Second possibility: I've found a solution using the fullwidth package. That package does the trick on small longtables, but freezes when I'm trying to do it on my big longtable. The command \\setlength\\LTleft{-2cm} didn't work as well. The final option I tried was to use geometry. But that changes the margin of the whole page thus making a page break which I'm not interested in. The code I used for this was \\newgeometry{left=1.2cm} \\begin{longtable} long table stuff \\end{longtable} \\restoregeometry Here's an example of what I want contra what I get \\documentclass[a4paper]{article} \\usepackage{longtable} \\usepackage{chngpage} \\usepackage{lipsum} \\usepackage{tabu} \\begin{document} \\section{This is the original textwidth.} \\lipsum[1] \\section{This is the width I need for my longtabu} \\begin{adjustwidth}{-1in}{-1in} \\begin{tabu} to \\linewidth {*{13}{|X[l]} |} 01 &amp; 02 &amp; 03 &amp; 04 &amp; 05 &amp; 06 &amp; 07 &amp; 08 &amp; 09 &amp; 10 &amp; 11 &amp; 12 &amp; 13 \\\\ 01 &amp; 02 &amp; 03 &amp; 04 &amp; 05 &amp; 06 &amp; 07 &amp; 08 &amp; 09 &amp; 10 &amp; 11 &amp; 12 &amp; 13 \\\\ 01 &amp; 02 &amp; 03 &amp; 04 &amp; 05 &amp; 06 &amp; 07 &amp; 08 &amp; 09 &amp; 10 &amp; 11 &amp; 12 &amp; 13 \\\\ 01 &amp; 02 &amp; 03 &amp; 04 &amp; 05 &amp; 06 &amp; 07 &amp; 08 &amp; 09 &amp; 10 &amp; 11 &amp; 12 &amp; 13 \\\\ \\end{tabu} \\end{adjustwidth} \\section{This is what happens} \\begin{adjustwidth}{-1in}{-1in} \\begin{longtabu} to \\linewidth {*{13}{|X[l]} |} 01 &amp; 02 &amp; 03 &amp; 04 &amp; 05 &amp; 06 &amp; 07 &amp; 08 &amp; 09 &amp; 10 &amp; 11 &amp; 12 &amp; 13 \\\\ 01 &amp; 02 &amp; 03 &amp; 04 &amp; 05 &amp; 06 &amp; 07 &amp; 08 &amp; 09 &amp; 10 &amp; 11 &amp; 12 &amp; 13 \\\\ 01 &amp; 02 &amp; 03 &amp; 04 &amp; 05 &amp; 06 &amp; 07 &amp; 08 &amp; 09 &amp; 10 &amp; 11 &amp; 12 &amp; 13 \\\\ 01 &amp; 02 &amp; 03 &amp; 04 &amp; 05 &amp; 06 &amp; 07 &amp; 08 &amp; 09 &amp; 10 &amp; 11 &amp; 12 &amp; 13 \\\\ \\end{longtabu} \\end{adjustwidth} \\end{document}", "Password protect files/folders using cli I have some important documents that I need to protect from anyone else having access to my machine. The problem being the other persons have access to my machine via root account so changing the file permissions is not a option for me. I have seen apps like cryptkeeper but I was wondering can I password protect my files/folder by command line mode in ubuntu.", "How to reset Kali linux root password", "Some forms may contain confidential information - even something basic like where a person lives. What measures do Cognito Forms take to ensure that data stored within its site is secure?", "What's the best way to take a segment out of a text file?", "Challenges with Key with Gaps?", "Plugin or brush for transforming a photo to a fractal in gimp? Folks, I've been looking all over for a plugin or brush that will help me take a photo and reduce it to that 'electric look' (or fractal?) that i'm seeing in various places. I'd vastly prefer one for Gimp. Does anyone know how these are being done? I'm seening references to fractalius for photoshop, but what about gimp? Examples:", "Possible Duplicate: Both words seem to be used interchangeably. I generally don't differentiate between them and intuitively pick one over the other. Is there a standardized way to distinguish between the two?", "Default Class Accessibility in C# by default is a class: private ? internal ? sealed ?", "Big floor symbols When I write \\lfloor\\dfrac{1}{2}\\rfloor the floors come out too short to cover the fraction. How can I lengthen the floor symbols?", "What is \"pure energy\" in matter-antimatter annihilation made of? I used to read the term \"pure energy\" in the context of matter-antimatter annihilation. Is the \"pure energy\" spoken of photons? Is it some form of heat? Some kind of particles with mass? Basically, what does \"pure energy\" in the context of matter-antimatter annihilation refer to?", "Do adjustable length lightsabers exist in Star Wars universe? I always see blades of lightsabers have more or less the same length (dual blades are double). Why is that? Can't a longer or shorter length be advantage in some case? I am NOT expecting infinite length lightsabers (due to energy issues), but have we seen adjustable length blades in the Canon?", "Invisible software updates list in Software Updater Today I received an update notification for three updates but update manager doesn't say what updates are they. Does anyone have a clue what this is about? How am I to check what is to be updated?", "Suppose $f$ and $g$ are Lebesgue measurable, we want to show $f+g$ is measurable. So, the hint is to consider the continuous functions $F : \\mathbb{R}^2 \\to \\mathbb{R} $ given by $h(x) = F(f ,g ) $. If we can show $F$ Is measurable, then Taking $F = f +g $ would solve our problem. In other words, I want to show that the set $R = \\{ (f,g) : F(f,g) &gt; a $ } is lebesgue measurable.. But this set is just a rectangle in the plane. And since $F$ is continuous, then $R$ must be open, and hence a union of open rectangles which are measurable and hence $R$ must be measurable. Is this a correct approach to the problem? Can someone help me to make this formal? thanks", "Poincaré's theorem about groups", "Is there a way I can share the 3.42 GB download of Windows 8.1 from Windows Store? Windows 8.1 is out, and I would like to know if it is possible to share the Windows 8.1 download upgrade between different computers so that I don't have to download it over and over again? This might be helpful for people who are on a metered connection. Store is downloading 3.42&nbsp;GB of data so it must be stored somewhere. Is there a way I can copy it to my other computers and start the setup so that I don't have to download it over and over again on each computer I own?", "Since upgrading to 13.10, I can't log in to unity desktop. Light dm works correctly, but attempting to log in tries to start the session then drops back to light. I've already dropped to terminal (ctrl+alt+f2) and done this: sudo apt-get update sudo apt-get install --reinstall ubuntu-desktop sudo apt-get install unity Logging in as a guest session also fails. Logging in to other window managers works with varying degrees of success. Note: I have Cinnamon 2.0 installed from PPA. I'm using a 2 monitor setup. Also of note is that the session prior to my upgrade to 13.10 the background of unity failed to display at all, instead showing what was there in the screen buffer from the previous frame. The entire OS worked correctly otherwise though, so I just ignored it for the session. No other upgrades or even updates were done prior to this occurring. My upgrade path to 13.10 was basically this: Install 13.04 alongside Windows 7, use ubuntu as a glorified web browser for a while, get updates (in preparation for 13.10), install 13.10. I also used Unity Tweak Tool to change some aspects of unity, particularly auto-hide. Any help or ideas would be appreciated, as I'm typing this on my phone :(", "How to encrypt folders (not in Home)? Is there a way to encrypt a folder, which is not in Home (/home/user/) but even in a different partition, so only my user can access/read contained files? Alternatively, I would like to understand if it is possible to turn a complete ext4 partition into an encrypted volume, which would be mounted at user login. If possible, I would like to make the change without reinstalling Ubuntu. My PC has (mount output): /dev/sda1 on / type ext4 (rw,errors=remount-ro) /dev/sda3 on /home type ext4 (rw) /dev/sda4 on /home/igor/Personale type ext4 (rw) sda4 is the partition containing folders I would like to protect.", "My tweets are not showing up in other people's mentions My replies are not showing up in other people's mentions. I tried tweeting several friends, my other accounts but my tweets just won't appear in their mentions? They do appear on my own Twitter page. It's been almost 24 hours now and it's pretty frustrating." ]
medi_sts_stackexchange_dupe
Is there a limit to the effectiveness of dollar-cost averaging when dividing up purchasing events?
Dollar-cost-averaging interval based on decay of autocorrelation?
[ "Wrong Java resource bundle loaded", "Can a person residing in Singapore on a 5-month Employment Pass apply for a Schengen visa?", "Is it worth encrypting email addresses in the database?", "How to create a database directory structure for MySQL? I was following this tutorial: So far, I installed mysql-server mysql-client libmysqlclient-dev, and I was suppose to tell MySQL to create its database directory structure where it will store its information using sudo mysql_install_db. $ sudo mysql_install_db [WARNING] mysql_install_db is deprecated. Please consider switching to mysqld --initialize [ERROR] The data directory needs to be specified. I thought running mysqld --initialize would solve the issue: $ mysqld --initialize mysqld: Can't create directory '/var/lib/mysql/' (Errcode: 17 - File exists) [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). [ERROR] Aborting How do I tell MySQL to create its database directory structure where it will store its information?", "Retrieving Wikipedia's coordinate information? I'd like to add icons to my map showing locations which have Wikipedia entries. The is a great resource for determining Wiki entries near an XY location, but it has limitations (20km radius, 50 points only) which make it unsuitable for my purposes. Ideally I need the map to show ALL locations with Wiki entries, so I guess I'll need to download the Wikipedia dump file and parse it for geocoded entries. Where is this information found in the Wikipedia dump files? The Wiki database may be downloaded from but I can't see which file(s) I need to search for the coordinates. For example, the includes: Coordinates: 33°51′35.9″S 151°12′40″E Where is this found in the dump files? Another way to phrase the question is \"how can I determine which Wiki entries are geo-coded?\"", "What is the easiest way to strip a desktop edition to a server edition? We have installed Ubuntu desktop edition on our development server. Now that we have it in a data center we would like to strip it down to a server edition. Is there an easy way of doing so rather than just going in and uninstalling packages by hand?", "A property of every real polynomial. Question: For every polynomial $P(x)$ of degree at n we have $$\\sum_{i=0}^{n+1}(-1)^i\\binom{n+1}{i}P(i)=0$$ Well I was inducting on degree of the polynomial, for $n=0$ its true and I got a bit confused in the inductive step, actually I cant figure the inductive step. Is this property (if true) a famous one? Thank you for your help.", "Was Louis stalked days in advance too?", "There several types of graphics files. In no particular order .jpeg .eps .pdf .png .tif .jif (and no doubt others). Some work with latex, dvips and some work with pdflatex. How am I supposed to know which? Just to confuse matters, metapost produces .eps but I can use these with pdflatex as long as I put in a four line incantation. Can anyone explain this?", "Kill backgrounded SSH when shell exits", "Etymology of \"history\" and why the \"hi-\" prefix? According to , history comes from the same root as story. If they are from the same word, where does hi- come from? Is it just because of the English habit of taking names from other languages verbatim or is there something more to it?", "I'm using LyX on Linux Mint 14 ... Using BibTeX with the apalike style and some modifications in the preamble, I've managed to get the bibliography as it should be except for one thing. When I cite a work with multiple authors it gets printed with the separator \"and\" which isn't correct for my language (Danish). Curiously it's displayed correctly in the user interface of Lyx - for example \"(Wittgenstein og Waismann 2003 - which led me to believe everything was ok but in the pdf the separator \"and\" is used both in the reference and in the bibliography. Is there any way to fix this using BibTeX, or can it only be done with biber 1.5, as suggested in the last comment here: I really hope their is because getting biber to work using the following guide has thus far proven to be impossible: Help much appreciated ... I really hope I won't have to relapse into setting my master thesis up in LibreOffice.", "How to find the frequency and type of my current RAM? How shall I find out the frequency and type of my current RAM? My OS is Ubuntu 12.04.", "Formatting a float to ###.## (two decimals)", "How can I minimise the time to get a new UK passport?", "Will higher temperatures damage a computer over time, even when not reaching max?", "Formatting OGR VRT file to convert CSV to KML?", "I have a sword that currently rotates around a pivot point thats off of the actual object. Im new to blender and im not sure how i would go about changing it so that the sword rotates around the handle. Any help would be appreciated!", "Find out if any files were exported from my MacBook", "bug with varargs and overloading?" ]
medi_sts_stackexchange_dupe
Return A records but not AAAA records on specific domain in bind9
Set up BIND9 as DNS Firewall
[ "Removing file / folder link after using \"Save As...\" then \"Web Page, complete\" When you right-click save-as a web page in FF, the page is saved along with a folder containing any associated media that page needs (images, js, etc). My problem is that I want to reorganise the associated media folder, but wherever I move this folder, the saved .html file is moved as well. ARGH! I can rename each folder, which breaks the \"link\" between html file and media folder, but there must be a cleaner way to do it. Does anyone else know?", "Prove Quotient Group Isomorphism Let $G = (\\mathbb{C} - \\{0\\}, \\cdot)$, a subgroup $U = \\{x+yi \\mid x^2 + y^2 = 1\\}$. Use the Fundamental Theorem to show that $G/(\\mathbb{R}_{&gt; 0},\\cdot)$ is isomorphic to $U$ where $\\mathbb{R}_{&gt; 0}$ denotes the positive reals. I am struggling to find the correct mapping from $G$ to $U$ that results in the the kernel being the nonnegative reals under multiplication. I'm hoping to get help with this mapping then I can show it is a homomorphism and onto and can use the Fundamental Theorem.", "Splitting pieces of a mesh into a new object I've just made a set of armor by using a male body mesh model I downloaded and selecting certain faces from the model and duplicating them to create viable armor pieces. Since the pieces are just duplicated from the same mesh male model, then it's still part of the same object. How do I separate the armor piece from the model to make the pieces separate?", "How do I create a vertical version of \\not?", "What the #$@&%*! is that called?", "Problem with literate and breaklines=true in listings package As the title says, the option breaklines=true seems to have an undesired interaction when using literate; in the following example the closing parenthesis doesn't get colorized \\documentclass{article} \\usepackage{xcolor} \\usepackage{listings} \\lstset{ literate= {)}{{\\textcolor{red}{)}}}{1} {(}{{\\textcolor{red}{(}}}{1}, breaklines=true, } \\begin{document} \\begin{lstlisting} () \\end{lstlisting} \\end{document} Commenting out the breaklines=true option produces the desired result. What is producing this odd behaviour and how can it be prevented?", "Chatroom deleted? I created a chatroom about the Qt Framework some time ago but it seems it's no longer available. The just says &quot;Page Not Found&quot; and the possible reasons for removal are &quot;spam, off topic, abuse&quot; but I don't think any of this concerns the chatroom (though I was rarely checking it). Any idea what could be the issue?", "I want to upgrade the hard drive in my 2012 Macbook Pro to an SSD. I have the parts, but had a question about how to clone the contents of my current drive so I can install it onto the SSD. I've seen tutorials where people suggest connecting the new SSD to the Macbook prior to installation and using a Carbon Copy Cloner to clone the drive, and then installing the SSD drive. My question is, can I do a Time Machine backup of my current hard drive on an external hard drive, install the SSD, and then use the Time Machine backup from the external to transfer it onto the newly installed SSD? Is this the same as using the clone program above?", "dropping trailing '.0' from floats I'm looking for a way to convert numbers to string format, dropping any redundant '.0' The input data is a mix of floats and strings. Desired output: 0 --> '0' 0.0 --> '0' 0.1 --> '0.1' 1.0 --> '1' I've come up with the following generator expression, but I wonder if there's a faster way: (str(i).rstrip('.0') if i else '0' for i in lst) The truth check is there to prevent 0 from becoming an empty string. EDIT: The more or less acceptable solution I have for now is this: ('%d'%i if i == int(i) else '%s'%i for i in lst) It just seems strange that there is no elegant way to handle this (fairly straightforward) case in python.", "Why is the probability that a continuous random variable takes a specific value zero? My understanding is that a random variable is actually a function $X: \\Omega \\to T$, where $\\Omega$ is the sample space of some random experiment and $T$ is the set from which the possible values of the random variable are taken. Regarding the set of values that the random variable can actually take, it is the image of the function $X$. If the image is finite, then $X$ must be a discrete random variable. However, if it is an infinite set, then $X$ may or may not be a continuous random variable. Whether it is depends on whether the image is countable or not. If it is countable, then $X$ is a discrete random variable; whereas if it is not, then $X$ is continuous. Assuming that my understanding is correct, why does the fact that the image is uncountable imply that $Pr(X = x) = 0$. I would have thought that the fact that the image is infinite, regardless of whether it is countable or not, would already imply that $Pr(X = x) = 0$ since if it is infinite, then the domain $\\Omega$ must also be infinite, and therefore $$Pr(X = x) = \\frac{\\text{# favorable outcomes}}{\\text{# possible outcomes}} = \\frac{\\text{# outcomes of the experiment where X = x}}{|\\Omega|} = \\frac{\\text{# outcomes of the experiment where X = x}}{\\infty} = 0$$ What is wrong with my argument? Why does the probability that a continuous random variable takes on a specific value actually equal zero?", "Do indexes work with \"IN\" clause", "Entering the Schengen area 12 days before my visa expires I have a Vietnamese passport. I'm planning to visit Vietnam on July 7th and be back in the Czech Republic (in Schengen area) on August 29th. My visa is a multiple-entry, long-term, D type visa (for study purposes) and the expiration date is September 10th. I am afraid that the boarding officer will not allow me to enter EU since the arrival is so close to the expiration date. Is it OK for me to enter Schengen on August 29th when I have only 12 days left until visa expiration?", "How to remove a watermark from a PDF file? I thought this would be a simple task, but it turned out the other way. The watermark is the very same (overlapping, but transparent) image on every single page. I created the PDF file myself (so no copyright worries here) using PDFCreator 0.9.8. I have already tried my friend's Adobe Acrobat Pro, but it didn't work. It tries to remove it, but it can't. I tried to remove header/footer, etc., but the watermark just won't disappear. How can I remove the watermark?", "I'm on Ubuntu 16.04.1 at the moment, and system windows like the Files window, Terminal or System Software open behind the Unity launcher, which means they are partially hidden behind it. I can move them with Alt+F7, but I'd like a more permanent solution to this problem.", "how to set camera to the same view as I turn my cursor? I want to turn the camera to get the view I want, but everytime I turn the camera, I need to go to render window to check if it's the view I want. I turn the view with my mouse cursor, but that does not affect the actual camera view in rendering, can I set the camera view the same as I turn my cursor?", "Switching baselayers as user zooms in to map in OpenLayers?", "Android: No icon for Notification", "pgfplots: correct rounding problems I had a problem with disappearing marker as the data sum up to more than 100 while xmax was set to 100. See . As written in the answer to the cited question I tried to avoid the problem by normalizing the value to 100. But this lead to (much smaller) rounding errors in previously correct rows and now the marker disappear there. See the following example. Before the normalisation the column F ist affected, after the column B. How can I in a reliable way avoid this rounding problem? Or at least get a clear error message. I have quite a number of this plots and I don't want to have to check them all the time for missing markers. \\documentclass{scrreprt} \\usepackage{pgfplots} \\pgfplotsset{compat=1.13} \\usepackage{pgfplotstable} \\pgfplotsset{ my stackbar plot/.style={ xbar stacked, xmin=0,xmax=100, symbolic y coords={A,B,C,D,E,F,G}, ytick=data, nodes near coords={xxx},}} \\begin{document} \\pgfplotstableread[col sep=space]{ text -- - + ++ A 0.0 1.7 13.8 84.5 B 0.0 0.6 20.1 79.3 C 0.0 1.9 13.2 84.9 D 0.0 1.6 27.9 70.5 E 1.3 3.9 19.5 75.3 F 0.0 1.4 15.0 83.7 G 0.3 1.7 24.8 73.2 }\\data \\pgfplotstablecreatecol[create col/expr={\\thisrow{--}+\\thisrow{-}+\\thisrow{+}+\\thisrow{++}}]{sum}\\data % \\pgfplotstablecreatecol[create col/copy=--]{--o}\\data \\pgfplotstablecreatecol[create col/copy=-]{-o}\\data \\pgfplotstablecreatecol[create col/copy=+]{+o}\\data \\pgfplotstablecreatecol[create col/copy=++]{++o}\\data \\pgfplotstablecreatecol[create col/expr={100/\\thisrow{sum}*\\thisrow{--o}}]{--}\\data \\pgfplotstablecreatecol[create col/expr={100/\\thisrow{sum}*\\thisrow{-o}}]{-}\\data \\pgfplotstablecreatecol[create col/expr={100/\\thisrow{sum}*\\thisrow{+o}}]{+}\\data \\pgfplotstablecreatecol[create col/expr={100/\\thisrow{sum}*\\thisrow{++o}}]{++}\\data \\pgfplotstablecreatecol[create col/expr={\\thisrow{--}+\\thisrow{-}+\\thisrow{+}+\\thisrow{++}}]{sumnew}\\data \\pgfplotstabletypeset[columns={text,sum} ,precision=10,columns/text/.style={string type}]\\data \\quad \\pgfplotstabletypeset[columns={text,sumnew},precision=10,columns/text/.style={string type}]\\data %\\pgfplotstablesave{\\data}{pgfplotstempout.dat} \\begin{tikzpicture} \\begin{axis}[my stackbar plot] \\addplot table [x expr = \\thisrow{--o},y=text] {\\data}; \\addplot table [x expr = \\thisrow{-o}, y=text] {\\data}; \\addplot table [x expr = \\thisrow{+o}, y=text] {\\data}; \\addplot table [x expr = \\thisrow{++o}, y=text] {\\data}; \\end{axis} \\end{tikzpicture} \\quad \\begin{tikzpicture} \\begin{axis}[my stackbar plot] \\addplot table [x expr = \\thisrow{--},y=text] {\\data}; \\addplot table [x expr = \\thisrow{-}, y=text] {\\data}; \\addplot table [x expr = \\thisrow{+}, y=text] {\\data}; \\addplot table [x expr = \\thisrow{++}, y=text] {\\data}; \\end{axis} \\end{tikzpicture} \\end{document}", "QGIS 3.4 : Add points to exact locations? I would like to add several coordinates at specific British National Grid Easting and Northing values. I know this can be done by bringing in a .csv, but I want to know is there a way to manually enter the numbers in QGIS 3.4, and then the point moves to that location ? I've read that in QGIS 2.x there was a plugin called Numerical Vertex Editor that doesn't seem to exist for 3.x ?", "Hair particles render not same as 3dView(Eevee) Hair particle renders are not same as in 3dView(Eevee). Hair is using Principle Bsdf shader and camera is set to Orthographic. Force and turbulence fields are applied to it. How to resolve this?" ]
medi_sts_stackexchange_dupe
How can I reproduce the same mesh many times 9000 (seriously)
What techniques have been used to repeat geometry or other detail to the infinite horizon?
[ "Where are icons stored? I want to change an icon of a specific theme. Where do themes save their icons?", "Ramsey Number Inequality: $R(\\underbrace{3,3,...,3,3}_{k+1}) \\le (k+1)(R(\\underbrace{3,3,...3}_k)-1)+2$ I want to prove that: $$R(\\underbrace{3,3,...,3,3}_{k+1}) \\le (k+1)(R(\\underbrace{3,3,...3}_k)-1)+2$$ where R is a Ramsey number. In the LHS, there are $k+1$ $3$'s, and in the RHS, there are $k$ $3's$. I really have no clue how to start this proof. Any help is appreciated!", "Is there a way to target the arrow from an OP bow via command block? I am trying to make an effect trail for a specific weapon in MC, a bow with power 120. I want to use a command block to target any arrow with the damage it should be doing (63) and summon a trail of splash potions. I also want to kill any arrow entities that have inGround=True Is there any way to do this or do I have to come up with something else? Attempt: /execute @e[type=Arrow,damage=63,inGround=0] ~ ~ ~ summon ThrownPotion ~ ~ ~ {Potion:{id:potion,Damage:8197}} /kill @e[type=Arrow,inGround=True] Each unfortunately just affects all arrows. Is this even possible?", "I followed the beginner steps for creating a . The child theme was created and it appears as an option on my Themes page. But unlike the other Themes on the page (including its parent), there is no preview. The other themes (\"Twenty Twelve,\" \"Twenty Thirteen,\" and \"Twenty Fourteen\") are all listed with an image preview. My child theme (\"Twenty Fourteen Child\") does not have any image. The child theme can be applied without issue. This issue arises when I create child themes from other themes as well. Any ideas why this is happening and if I can resolve?", "How to implement custom icons for my script/addon? Is it possible to use different icons other than the default set and how?", "So this homework question is in the context of $\\mathbb{R}$ only, and we are using Lebesgue measure. The sum $A+B$ is defined to be $A+B=\\{a+b|a\\in A,b\\in B\\}$. The question is: If $m(A),m(B)&gt;0$, is it necessarily the case that $A+B$ contains an open interval? This question is quite annoying, since it is quite difficult to calculate the sum even after you construct an example. However, it seems like no matter how I constructed a set of positive measure, there is a region that have a lot of point in it (yet this region is not necessarily dense). This suggest that when summed up, the holes should be covered up somehow and thus there would be an open interval, and so the answer is yes. Sorry for a rather vague idea, but I'm just not sure what to do with this problem. I have a feeling that somehow topology would have a way to capture precisely the idea above about a region with a lot of point. (also, I think my middle school teacher mentioned this once, and I remembered the answer to be yes; but that is quite a while ago though) Thank you. Any help will be appreciated. EDIT2: So Camilo's answer is gone. I am looking at the convolution method right now. Because the convolution is continuous, if it is nonzero I am done. But then there is no guarantee that the convolution is nonzero even if $x\\in A+B$. I still need help with this direction. Can someone give me some hints? EDIT: Camilo's answer below essentially suggest the method of getting 2 open interval from regularity theorem, one cover a subset of A and one cover a subset of B such that the sum of the measure of these two subset is bigger than the measure of the larger interval. user99680's answer point to a wiki which show a method that essentially simply acquire an open set. After some thinking, I believe that these method simply can't be made to work. I constructed this example in the hope that it would convince you that it is the case: Let $I_{0},I_{1},\\ldots$ be disjoint open interval such that the distance between any 2 of them is nonzero and $m(I_{n})=9^{-n}$ and all of them are inside $[0,2]$. Let $J_{0},J_{1},\\ldots$ be disjoint open interval such that the distance between any 2 of them is at least $3$ and $m(J_{3n})=m(J_{3n+1})=m(J_{3n+2})=\\frac{m(I_{n})}{3}$. Let $O=\\bigcup I_{n}$ and $H=\\bigcup J_{n}$. Construct $A\\subset O$ such that $m(A\\bigcap I_{n})=\\frac{3m(I_{n})}{4}$. Construct $B\\subset H$ such that $m(B\\bigcap J_{n})=\\frac{3m(J_{n})}{4}$. Now if you apply Camilo's method, it is possible that your $I$ would be one of the $I_{n}$ above, and your $J$ is one of the $J_{m}$ above. No matter which $I_{n},J_{m}$ you have, the argument does not work. Rewrite $m=3q+r$ where $0\\leq r\\leq 2$. If $q&lt;n$ then $m(J_{m})&gt;m(I_{n})$ so the longer interval have length $\\frac{m(I_{q})}{3}$; $m(A\\bigcap I_{n})$ is at most $\\frac{3m(I_{q+1})}{4}=\\frac{m(I_{q})}{12}$ and $m(B\\bigcap J_{m})=\\frac{3m(J_{m})}{4}=\\frac{m(I_{q})}{4}$. Thus $m(A\\bigcap I_{n})+m(B\\bigcap J_{m})$ is no larger than the larger interval. If $n\\geq q$ then $m(I_{n})&gt;m(J_{m})$ so the larger interval is of length $m(I_{n})$; $m(A\\bigcap I_{n})=\\frac{3m(I_{n})}{4}$ and $m(B\\bigcap J_{m})$ is at most $\\frac{3m(J_{3n})}{4}=\\frac{m(I_{n})}{4}$. Once again $m(A\\bigcap I_{n})+m(B\\bigcap J_{m})$ is no larger than the larger interval. Hence the Camilo's argument does not work. user99680's method does not work either, since you get $O$ and $H$ which is even bigger than any interval.", "I've installed emacsformacosx on my OSX box. I'd like to shove my macmini in a data center and run it headless. I've gotten x-windows working. If I run xeyes, it displays on my Windows 7 client. Emacs works from the command line on the osx box. However, if I start up emacs from the windows client, it pops it up on the server instead of the client. What am I doing wrong?", "The link to the recommended job in the app brings you to a page with the text: Not Found Looking at the link it seems like after changing the URL structure in Stack Overflow Jobs they have not been updated in the apps. For the job in the screenshot this is the used URL in the app: The correct URL is:", "The external Flash is not showing up in the configuration Menu when using Pixel TF-321 hot shoe. Is this the wrong adapter for that camera, as there is no X connection? I want to trigger a studio flash via sync connection. Can you recommend me a working hot shoe? Thanks!", "Is it safe to delete from C:\\Windows\\Installer?", "it seems my bash-completion got corrupted. Every time I try to use command substitution, for example when I type ls $(ls Deskto&lt;Tab&gt; ..result is.. ls $(ls Desktobash unexpected eof while looking for matching \")\". I tried removing my .bashrc file and cp /etc/skel/bashrc ~/ to get a new one. That works until I add something into my new bashrc. Even when I do echo '#\" &gt;&gt; ./.bashrc it breaks again. Removing my bash_aliases did not help either. Also sudo apt-get install --reinstall bash-completion did not do the trick. However there are some threads about similar problem, nothing works. ANY hint will be greatly appreciated! :)", "Why did my windshield freeze instantaneously?", "Which arena do free and crown chests use when determining the cards you will get? If I am in arena X when I collect my tenth crown for the crown chest, or a free chest becomes unlocked, then proceed to climb to arena X+1 before opening the chests, which arena will be used to determine the cards I get? Will it use the arena I was in when I unlocked the chests in, or the arena I opened them in?", "When using Alt+Tab, I can't seem to get back to Skyrim. When clicking its icon or Alt+Tab to get back, I just see an empty window. Windowed mode doesn't allow me to use it in a Windowed (Fullscreen) manner as seen with other games, so that doesn't seem to be an option either. Is there any way to fix this behavior?", "How does a non-mathematician go about publishing a proof in a way that ensures it to be up to the mathematical community's standards? I'm a computer science student who is a maths hobbyist. I'm convinced that I've proven a major conjecture. The problem lies in that I've never published anything before and am not a mathematician by profession. Knowing full well that my proof may be fallacious, erroneous, or simply lacking mathematical formality, what advice would you give me?", "On the Goblet of Fire Barty Crouch exactly got Mad-Eye's voice when he transformed into him, but on the Deathly Hallows, they were all able to have their own voices instead of Harry's. Why is the effect of the polyjuice potion inconsistent?", "Pointer to class data member \"::*\" I came across this strange code snippet which compiles fine: class Car { public: int speed; }; int main() { int Car::*pSpeed = &amp;Car::speed; return 0; } Why does C++ have this pointer to a non-static data member of a class? What is the use of this strange pointer in real code?", "Prove the definitions of $e$ to be equivalent How to prove that the following definitions of $e^x$ are equivalent, with as simple tools as possible and without any knowledge of $e$ or logarithms ? $$\\sum_{n=0}^{\\infty} \\frac{x^n}{n!}=\\lim_{n\\to\\infty}\\left(1+\\frac{x}{n}\\right)^n$$ Also preferably, prove that this is $a^x$ for some real number $a&gt;0$.", "How to Toggle Selected Objects Visibility with H shortcut as in Maya", "Show that $|z_1 + z_2|^2 < (1+C)|z_1|^2 + \\left(1 + \\frac{1}{C}\\right) |z_2|^2$ Let $z_1$ and $z_2$ be two complex numbers. Show that there exists $C &gt; 0$ with $$ |z_1 + z_2|^2 &lt; (1+C)|z_1|^2 + \\left(1 + \\frac{1}{C}\\right) |z_2|^2. $$ I tried to simplify the L.H.S and R.H.S, SNF I was finally left to compare between a real number and a complex number I really couldn't think of anything else. Please help." ]
medi_sts_stackexchange_dupe
How to reboot computer and install updates while rebooting?
Is there any API function for shutting down Windows while installing any pending updates?
[ "Is it true that smell is lost flavor? This is a maxim that I hear frequently, especially as a defense of cooking methods that don't produce a lot of aroma: if the aroma is in the air, it means it's left the food. As an example, some people complain about the lack of aroma produced in sous vide cooking, to which the sous vide advocates retort that this is evidence that more flavor is in the food. Likewise, I recently saw , where he went for a low-and-slow approach that produces little aroma: here, too, he claimed the flavor-retention defense to its lack of appeal. \"Don't be disappointed, but my roasting technique doesn't flood your kitchen with good Sunday roast smells. This is a good thing, because smells are lost flavor\" he said, while \"SMELL = LOST FLAVOR\" popped up on the screen. I suppose it stands to reason, and that's the appeal of this explanation, but is it the truth? Does smelling a food necessarily imply that the final product will be less flavorful, and is it strictly because the aroma is escaping?", "Ubuntu 14.04 LTS fails to start with a kernel panic", "Books on Number Theory for Layman", "File Upload using Selenium WebDriver and Java Robot Class", "What happens when the Runner stack is empty? When the corporation R&amp;D is empty the corporation loses. What happens when the Runner's stack is empty? I think that: He must finish the game with only the cards on the table. or I doubt that: He reshuffles the heap into a new stack.", "Let's say we have $x^2=25$ So we have two real roots ie $+5$ and $-5$. But if we were to differentiate on both sides with respect to $x$ we'll have the equation $2x=0$ which gives us the only root as $x=0$. So does differentiating on both sides of an equation alter it? If it does, then how do we conveniently do it in Integration by substitutions? If not then what exactly is going on here ?", "Collective term for data sizes (bytes, kilobytes, megabytes etc.) As you will probably work out from my profile, I'm a software developer. This is sort of a software development question, but I think this is more suited to English language too. Feel free to migrate if you think the question does not belong here. Say I want to refer to the data size, or capacity of something: A floppy disk can hold 1.44 megabytes of data. My flash drive can hold 16 gigabytes of data. My internet connection can operate at a maximum of 50 gigabits per second I have just managed to compress a file from 1 megabyte to just 200 kilobytes. How do I collectively refer to these units of data size/capacity?", "Find the maximum value of $72\\int\\limits_{0}^{y}\\sqrt{x^4+(y-y^2)^2}dx$ Find the maximum value of $72\\int\\limits_{0}^{y}\\sqrt{x^4+(y-y^2)^2}dx $ for $y\\in[0,1].$ I tried to differentiate the given function by using DUIS leibnitz rule but the calculations are messy and I tried to solve directly by integrating it but that also is not working.Can someone please help me in solving this question?", "Every principal ideal domain satisfies ACCP.", "To an an external observer it appears that time has stopped for photon. But this relation is reflexive, so for an observer travelling with the photon it appears the universe has stopped everywhere. Is this right? Space also gets distorted parallel to the direction of motion, but not perpendicular to it. Does this mean that for an observer travelling with a photon sees spacetime as a flat plane? Note 1: I'm using language vividly not literally when I say a photon experiences space and time. Not that I'm against idealist or panpyschist interpretations of matter or energy come to that. Note 2: Since it's been pointed out that an inertial frame can't be boosted into the frame of a photon and moreover there is no limiting behaviour here - no matter what frame you are boosted into, light will always appear to travel at c. Nevertheless, when an external observer watches a train chasing a photon by gradually increasing its speed, he will note that the train speed is approaching the speed of the photon (but will never match it) and when he looks at the clock inside the train he will not too that it is gradually slowing down (but never actually stops). Using this picture, we can attempt the thought experiment - if not one that can be carried out - of what a world looks like to a photon.", "How can I check if the editor that is currently being used is Gutenberg in a WordPress plugin? I need this because Gutenberg lacks post_submitbox_misc_actions, so I need a fallback which will only be used if the current editor is Gutenberg.", "In many situations, JavaScript parsers will insert semicolons for you if you leave them out. My question is, do you leave them out? If you're unfamiliar with the rules, there's a description of semicolon insertion on the . Here's the key point: If the first through the nth tokens of a JavaScript program form are grammatically valid but the first through the n+1st tokens are not and there is a line break between the nth tokens and the n+1st tokens, then the parser tries to parse the program again after inserting a virtual semicolon token between the nth and the n+1st tokens. That description may be incomplete, because it doesn't explain @Dreas's example. Anybody have a link to the complete rules, or see why the example gets a semicolon? (I tried it in JScript.NET.) is related, but only talks about a specific scenario.", "What is the most convenient way to change options for Graph[] objects?", "How to show or hide Keyboard Viewer with a keyboard shortcut? I would like to display and hide the Keyboard Viewer using a shortcut. Is there a way to display the Keyboard Viewer via a keyboard shortcut? Is there a way to automatically display the Keyboard Viewer once I switch to a specific language?", "I have an Asus N76VB notebook with Ubuntu 14.04 and TLP for power managment. However, the fan is always on. It's not really loud, but it's annoying. My CPU usage is around 1-2%. It's clocked at 1.20 GHz. I've added acpi=force to my boot parameters but it doesn't change anything. /proc/acpi/fan: No such file or directory /proc/acpi/thermal_zone: No such file or directory I've loaded all Asus ACPI modules. lsmod | grep asus: asus_nb_wmi 16990 0 asus_wmi 24191 1 asus_nb_wmi sparse_keymap 13948 1 asus_wmi video 19476 2 i915,asus_wmi wmi 19177 2 mxm_wmi,asus_wmi Somehow, it can read the temperatures. sensors: acpitz-virtual-0 Adapter: Virtual device temp1: +43.0°C (crit = +108.0°C) coretemp-isa-0000 Adapter: ISA adapter Physical id 0: +44.0°C (high = +87.0°C, crit = +105.0°C) Core 0: +44.0°C (high = +87.0°C, crit = +105.0°C) Core 1: +42.0°C (high = +87.0°C, crit = +105.0°C) Core 2: +39.0°C (high = +87.0°C, crit = +105.0°C) Core 3: +39.0°C (high = +87.0°C, crit = +105.0°C) asus-isa-0000 Adapter: ISA adapter temp1: +43.0°C I really hope someone knows how to solve this. Almost all information I could find was about saving power to create less heat. I got Intel and NVIDIA (GeForce 740M) graphics but I'm almost anytime on Intel. $ sudo lshw -c display *-display description: VGA compatible controller product: 3rd Gen Core processor Graphics Controller vendor: Intel Corporation physical id: 2 bus info: pci@0000:00:02.0 version: 09 width: 64 bits clock: 33MHz capabilities: msi pm vga_controller bus_master cap_list rom configuration: driver=i915 latency=0 resources: irq:43 memory:f7400000-f77fffff memory:d0000000-dfffffff ioport:f000(size=64) fwts fan:", "Whenever I want to use the pipe operator in the terminal, I get a weird kind of \"bug\": As is shown in the image above, I can type the exact same command twice and it will sometimes register it or sometimes include some spacing in the command, as can be seen in the error message. The only difference between the two commands was the speed I typed them, with fast typing the char sequence \"| \" (without the \"\") leading to the error. I've checked in the terminal settings if this sequence somehow triggers a shortcut, but I did not find anything. In case it matters, I'm using a swiss keyboard. The layout is as follows: To produce the \"|\" character, I press \"alt + 7\". Does anybody know what the cause of this problem is?", "How was Thor able to dent Captain America's Shield? I was reading about Adamantium on the Proto-Adamantium This is the original Adamantium created by Dr. MacLain. Proto-Adamantium is the official name for the metal that makes up Captain America's Shield. It has never been recreated and is the absolute most invulnerable item in all of existence. This lead me to read about The true shield was once slightly dented by an enraged Odinforce empowered Thor, using Mjolnir, but he later reconciled and pounded out the small dent. Was the dent caused by Odinforce or Thor's Hammer? Is Mjolnir or Captain America's Shield \"the absolute most invulnerable item in all of existence\"?", "Hero who is against enhancements but has some himself", "Scale camera to fit screen size unity My background and gameobjects are 2d sprites not UI images ,I want to know how to make my background scale with screen size and positions of 2d sprits on it don't change after building game (webGl) like scale canvas with screen size and anchor points in UI elements . Before building the game After building", "Error in if/while (condition) {: missing Value where TRUE/FALSE needed" ]
medi_sts_stackexchange_dupe
How to get a reflex edge on a non-convex mesh
Narrow-phase collision detection algorithms
[ "Convert DOS line endings to Linux line endings in Vim If I open files I created in Windows, the lines all end with ^M. How do I delete these characters all at once?", "Is there a simple way to flatten a list of iterables with a list comprehension, or failing that, what would you all consider to be the best way to flatten a shallow list like this, balancing performance and readability? I tried to flatten such a list with a nested list comprehension, like this: [image for image in menuitem for menuitem in list_of_menuitems] But I get in trouble of the NameError variety there, because the name 'menuitem' is not defined. After googling and looking around on Stack Overflow, I got the desired results with a reduce statement: reduce(list.__add__, map(lambda x: list(x), list_of_menuitems)) But this method is fairly unreadable because I need that list(x) call there because x is a Django QuerySet object. Conclusion: Thanks to everyone who contributed to this question. Here is a summary of what I learned. I'm also making this a community wiki in case others want to add to or correct these observations. My original reduce statement is redundant and is better written this way: &gt;&gt;&gt; reduce(list.__add__, (list(mi) for mi in list_of_menuitems)) This is the correct syntax for a nested list comprehension (Brilliant summary !): &gt;&gt;&gt; [image for mi in list_of_menuitems for image in mi] But neither of these methods are as efficient as using itertools.chain: &gt;&gt;&gt; from itertools import chain &gt;&gt;&gt; list(chain(*list_of_menuitems)) And as @cdleary notes, it's probably better style to avoid * operator magic by using chain.from_iterable like so: &gt;&gt;&gt; chain = itertools.chain.from_iterable([[1,2],[3],[5,89],[],[6]]) &gt;&gt;&gt; print(list(chain)) &gt;&gt;&gt; [1, 2, 3, 5, 89, 6]", "What are the subcategories of ordered sets / groups?", "There are several distinct usages: kernel density estimation kernel trick kernel smoothing Please explain what the \"kernel\" in them means, in plain English, in your own words.", "How can I do development on my Android device? I have a pretty long commute to work and own an android phone. I figure it would be nice to do some simple programming on the way. I'm not picky on which language to code on. I usually have an internet connection on the train. I've been looking through the android market but haven't found any apps that offer a \"development environment\" or an editor with a compiler. Is any development ON the Android possible? Does an app for this exist?", "Bijection between an open and a closed interval Recently, I answered to this problem: Given $a&lt;b\\in \\mathbb{R}$, find explicitly a bijection $f(x)$ from $]a,b[$ to $[a,b]$. using an \"iterative construction\" (see below the rule). My question is: is it possible to solve the problem finding a less exotic function? I mean: I know such a bijection cannot be monotone, nor globally continuous; but my $f(x)$ has a lot of jumps... Hence, can one do without so many discontinuities? W.l.o.g. assume $a=-1$ and $b=1$ (the general case can be handled by translation and rescaling). Let: (1) $X_0:=]-1,-\\frac{1}{2}] \\cup [\\frac{1}{2} ,1[$, and (2) $f_0(x):=\\begin{cases} -x-\\frac{3}{2} &amp;\\text{, if } -1&lt;x\\leq -\\frac{1}{2} \\\\ -x+\\frac{3}{2} &amp;\\text{, if } \\frac{1}{2}\\leq x&lt;1\\\\ 0 &amp;\\text{, otherwise} \\end{cases}$, so that the graph of $f_0(x)$ is made of two segments (parallel to the line $y=x$) and one segment laying on the $x$ axis; then define by induction: (3) $X_{n+1}:=\\frac{1}{2} X_n$, and (4) $f_{n+1}(x):= \\frac{1}{2} f_n(2 x)$ for $n\\in \\mathbb{N}$ (hence $X_n=\\frac{1}{2^n} X_0$ and $f_n=\\frac{1}{2^n} f_0(2^n x)$). Then the function $f:]-1,1[\\to \\mathbb{R}$: (5) $f(x):=\\sum_{n=0}^{+\\infty} f_n(x)$ is a bijection from $]-1,1[$ to $[-1,1]$. Proof: i. First of all, note that $\\{ X_n\\}_{n\\in \\mathbb{N}}$ is a pairwise disjoint covering of $]-1,1[\\setminus \\{ 0\\}$. Moreover the range of each $f_n(x)$ is $f_n(]-1,1[)=[-\\frac{1}{2^n}, -\\frac{1}{2^{n+1}}[\\cup \\{ 0\\} \\cup ]\\frac{1}{2^{n+1}}, \\frac{1}{2^n}]$. ii. Let $x\\in ]-1,1[$. If $x=0$, then $f(x)=0$ by (5). If $x\\neq 0$, then there exists only one $\\nu\\in \\mathbb{N}$ s.t. $x\\in X_\\nu$, hence $f(x)=f_\\nu (x)$. Therefore $f(x)$ is well defined. iii. By i and ii, $f(x)\\lesseqgtr 0$ for $x\\lesseqgtr 0$ and the range of $f(x)$ is: $f(]-1,1[)=\\bigcup_{n\\in \\mathbb{N}} f(]-1,1[) =[-1,1]$, therefore $f(x)$ is surjective. iv. On the other hand, if $x\\neq y \\in ]-1,1[$, then: if there exists $\\nu \\in \\mathbb{N}$ s.t. $x,y\\in X_\\nu$, then $f(x)=f_\\nu (x)\\neq f_\\nu (y)=f(y)$ (for $f_\\nu (x)$ restrited to $X_\\nu$ is injective); if $x\\in X_\\nu$ and $y\\in X_\\mu$, then $f(x)=f_\\nu (x)\\neq f_\\mu(y)=f(y)$ (for the restriction of $f_\\nu (x)$ to $X_\\nu$ and of $f_\\mu(x)$ to $X_\\mu$ have disjoint ranges); finally if $x=0\\neq y$, then $f(x)=0\\neq f(y)$ (because of ii). Therefore $f(x)$ is injective, hence a bijection between $]-1,1[$ and $[-1,1]$. $\\square$", "Shell scripting: Way to parse parameters from command line myscript [-a a-arg] [-c c-arg] [-b] [-e] somedirectory Given that I want my shell script be invoked at the command line using the above parameters - where [these brackets] denote that they are optional - what is the best method to parse them?", "Rank correlation statistics comparison I am trying to understand the relative behavior of the following rank correlation statistics: Spearman coefficient Kendall Tau / Concordance percentage Normalized Gini coefficient (area under curve of percentage captured versus percentage observations) Normalized Area under ROC curve (for binary classifiers) I don't believe any of these are functionally related to the others. The accepted answer references and Spearman and Kendall are highly correlated (as one would expect). Are there good intuitions behind/discussions of relative (across datasets) or absolute (for a given dataset) differences for (any pair of) these measures?", "Where to insert the exclamation mark Where would I insert an exclamation mark and a comma in the below sentence? \"Look at that boy\" he exclaimed.", "Aligning three figures next to each other based on text width Problem: I am trying to align three figures next to each other with text centered to each figure. This is going well until the box for the third box does not adjust after the text width. Minimal Working Example (MWE): \\documentclass{article} \\usepackage{graphicx} \\usepackage{caption} \\begin{document} \\begin{figure}[!tbp] \\centering \\begin{minipage}[b]{0.2\\textwidth} \\includegraphics[width=\\textwidth]{icon-password.eps} \\caption*{Login system} \\end{minipage} \\hfill \\begin{minipage}[b]{0.2\\textwidth} \\includegraphics[width=\\textwidth]{icon-shopping.eps} \\caption*{Shopping cart} \\end{minipage} \\hfill \\begin{minipage}[b]{0.2\\textwidth} \\includegraphics[width=\\textwidth]{icon-clock.eps} \\caption*{Temporary information} \\end{minipage} \\end{figure} \\end{document} Outputs: Desired outcome: To get the width to adjust after the text so that \"Temporary information\" can be written out in one line instead of two.", "Need help identifying a comic book about a wizard I need help with identifying the comicbook, what follows is my best effort to gather whatever I remember from reading it years ago (circa year 2000, but I'm positive it was older than that): The main character was a guy with white hair, who wanted to become powerful. Through some training and a deal of some kind he was able to become a mage of sorts. The training was set on some other world, or possibly even parts were happening in different dimension. His powers might have had something with travelling between dimensions, but I'm not 100% sure. Also, I seem to recall there was a hard limit of how many times he could use them. Then followed a part where he was famous, but someone framed him into a scandalous plot (it was a sexual scandal, I think) using his clone or a doppelganger. At the end of the issue the main character is seen trapped in some strange state, unable to move or escape using his powers (this might have to do something with the deal he made earlier). I remember the scene at the end as this: he is suspended in mid-air, his friends look at him in disbelief while some malevolent figure explains to them that he is now trapped forever. His name was the title of the comic. The second and third parts were set on futuristic-looking planet. Rings any bells? I'd like to read it again only I can't google it out.", "How can I combine hashes in Perl? What is the best way to combine both hashes into %hash1? I always know that %hash2 and %hash1 always have unique keys. I would also prefer a single line of code if possible. $hash1{'1'} = 'red'; $hash1{'2'} = 'blue'; $hash2{'3'} = 'green'; $hash2{'4'} = 'yellow';", "I have two internet connection from two different ISP. ADSL on eth0 and 4G on wlan0. Is there any way that if one ISP fails, the other take over automatically without a physical router and by Host OS (Ubuntu 18.04)?", "I'm new to the world of Apple, I bought a new Macbook Pro, mid-2020, Intel i7, 16GB RAM. I'm a developer, I run apps like VS Code, Sublime Text, Slack, Chrome (Multiple Windows), I play videos/songs in the background. I have been keeping a track of the energy consumption on my Mac, and it only runs for 4 hours. I have reset my SMC after I upgraded to Big Sur. Is 4 hours normal? or should I go to the service center? Update on 3 Feb 2021: I submitted my Mac to the Apple service center they said they conducted a few tests and the conclusion was that the battery is fine (I don't know what type of test they did). So I guess I'll be using it on AC Update on 12 Feb 2021: Took it to the service center, they didn't find any issues so I started using Safari for work and my battery has improved by 1 hour on Average.", "$2$ out of $3$ property of the unitary group", "Compute $e^{e^z}$, where z is a complex number I am self-studying the MAT 67 linear algebra course and I got stuck at a problem in Chapter 2: Compute the real and imaginary parts of $e^{e^z}$ for $z$ $\\in$ $\\Bbb C$. I tried to expand it using Euler's formula but it seemed endless. Any help?", "Is there a standard for public key encrypting and signing short messages? Some systems, that operate over flaky bearers, need to send signed, encrypted messages that are entirely self contained - i.e. send a single 300 byte UDP rather than have a 10Kb, two-way, certificate conversation over TCP. Assume the destination has a private key and already knows the source's public key, and the source has a private key and already knows the destination's public key. Given this assumption, is there a standard for encrypting/signing a small, but arbitrary length, message? (I'm well aware of the dangers of rolling my own encryption scheme.) Would there be a minimum ciphertext size that is related to the public key size? (I'm thinking plain PKI encryption for plaintexts shorter than the key, and a PKI encrypted AES key for longer plaintexts.)", "If a,b,c,d are positive integers with a sum of 63, what is the maximum value of ab + bc + cd ? (By using calculus to solve it)) If $a,b,c,d$ are positive integers with $$a+b+c+d=63,$$ what is the maximum value of $$ab+bc+cd?$$ I treated this as an optimization problem and tried to solve it but I did not make any progress.", "I am using the algorithmic package to typeset an algorithm. I would like to have connecting lines between the beginning and end of a loop or conditional like in the algorithm2e package. Is there an easy way to accomplish this, or am I better off switching to algorithm2e?", "We need a profanity filter I searched SE.Meta and was unable to find such question. Someone just swore at us in a as an (warning: profanity, may be NSFW), sure, Arqade (profanity in phrases in games) or some SE (ELU, ELL or Anime.SE maybe?) can sometimes contain profanity as a small parts of question. I think that a part should be added to the review system that will automatically hide questions/answers with profanity, just like the close vote system, the question/answer will be on hold and will be voted to be shown or be deleted. Tip, if this gets implemented, u can be typed as \\/ or v, and most other can be written as leet (l = 1 etc). Maybe it can be called \"suspicious activity\", and can be triggered when there is too many number or Unicode characters. (I can write hi as |-| |, |-|I, |-|l, l-li, hî, 1-1i, H1 and many more)" ]
medi_sts_stackexchange_dupe
How to use the /testfor command to detect what a player says in chat
Can i use the /testfor command to check for certain words in chat?
[ "Short sci-fi story about Earth blockaded by other human colonies Like the subject: short sci-fi story about Earth blockaded by other human colonies. The best humans have colonized some stellar systems. But they begin to treat humans of earth like inferiors. A war began, colonies won the war and blockaded the earth, but despite this the earth won. Who is the author?", "How to safely remove proprietary Intel driver I recently installed the proprietary Intel drivers for my Toshiba Satellite A105 s4284 running Ubuntu 14.10. Nouveau was working just fine, I was just attempting to make it so that I was able to run CS:S (no need for explanation on that.) Long story short, I went and downloaded the Intel Graphic Drivers for Linux* from . After downloading and installing the .deb, I ran intel-linux-graphics-installer which opened up a window that downloaded &amp; installed the open Intel drivers. I then rebooted, and it's slow. Very slow, especially on 3D effects and when I hit Alt+Tab. Now, I don't know if the previously installed Nouveau drivers are conflicting with these new Intel drivers (if that's the issue, what should I do about fixing it?) What I do know is that my system isn't behaving right and I want it to (obviously.) If removing the Nouveau drivers isn't the solution, how can I safely remove the just-installed Intel drivers? Does anyone have any suggestions?", "Send values from one form to another form", "Which shell interpreter runs a script with no shebang? Suppose the default shell for my account is zsh but I opened the terminal and fired up bash and executed a script named prac002.sh, which shell interpreter would be used to execute the script, zsh or bash? Consider the following example: papagolf@Sierra ~/My Files/My Programs/Learning/Shell % sudo cat /etc/passwd | grep papagolf [sudo] password for papagolf: papagolf:x:1000:1001:Rex,,,:/home/papagolf:/usr/bin/zsh # papagolf's default shell is zsh papagolf@Sierra ~/My Files/My Programs/Learning/Shell % bash # I fired up bash. (See that '%' prompt in zsh changes to '$' prompt, indicating bash.) papagolf@Sierra:~/My Files/My Programs/Learning/Shell$ ./prac002.sh Enter username : Rex Rex # Which interpreter did it just use? **EDIT : ** Here's the content of the script papagolf@Sierra ~/My Files/My Programs/Learning/Shell % cat ./prac002.sh read -p \"Enter username : \" uname echo $uname", "Virtualbox has no 64-bit options", "How can I remove snaps without losing GUI? I want to know how to check how many snaps programs/apps I'm running. Also, how to replace them (if possible) without losing GUI?", "How do I handle partially correct edits in the Suggested Edits review queue? Contradicting Instructions While going through the suggested edits review queue, one sometimes stumbles upon partially useful edits like . Trying to follow the instructions listed in the descriptions doesn't lead to a conclusive answer. Considering our example: Approve edits that clearly improve the post ↳ No, not *clearly* Improve Edit when you can make additional improvements to the post ↳ I most definitively can Reject and Edit to replace an ineffective edit with your own substantive changes ↳ It is ineffective in the sense that it made the post worse overall (imho) Reject edits that fail to improve the post or that make it worse ↳ Like the last option: yes Skip if you are not sure and want to go to the next suggested edit ↳ Well, yes. But that is really why I am here, asking this question Reasoning about the remaining Choices This leaves us with three choices: Improve Edit, Reject and Edit and Reject (the last one slightly modified): Improve Edit + Acknowledges that some things in the edit where correct - Learning effect for author might vanish, as the improvement might get overlooked - Can't leave a custom message for edit author (except in comments, which pollutes the thread) - Doesn't trigger the system which &quot;punishes&quot; users who repeatedly have their edits rejected - Rewards the edit author with reputation for a poor edit Reject and Edit + Clearly shows the author that there were problems with the edit - Still can't leave a custom message explaining the problems of the original post. - One has to partially redo parts of the edit that have just been rejected, which might feel unjust to the original editor Reject with a custom note and come back immediately to make a good Edit + Clearly shows the author that there were problems with the edit + Possibility to leave an explanation as to what was wrong with the edit - One still has to redo parts of the edit that has just been rejected - Seems to be a weird workaround for Reject and Edit Something else? Each of the three options come with their distinct advantages/disadvantages making it non trivial to decide which one to pick. Or does the answer simply depend on the quality of the edit? Like: Improve Edit for subjectively slightly positive edits Reject and Edit (Or Reject and Edit) for subjectively slightly negative edits", "How do I change my update server in Ubuntu 18.04?", "Does a Readied spell immediately use a spell slot?", "This book came out of the 1970s (early 1980's) at the latest. In it the protagonist, a not so diligent student, gets turned on to computer programming and creates (I think..) a weather program. Eventually he moves on and years later the program contacts him. It has become an AI and he is its creator. I forget what the setup is post contact which is not helpful at all..", "java.io.Console support in Eclipse IDE I use the Eclipse IDE to develop, compile, and run my Java projects. Today, I'm trying to use the java.io.Console class to manage output and, more importantly, user input. The problem is that System.console() returns null when an application is run \"through\" Eclipse. Eclipse run the program on a background process, rather than a top-level process with the console window we're familiar with. Is there a way to force Eclipse to run the program as a top level process, or at least create a Console that the JVM will recognize? Otherwise, I'm forced to jar the project up and run on a command-line environment external to Eclipse.", "I have this alias set in my system /etc/bashrc file: alias root=\"sudo !!\" The intention of this being to run the last used command using sudo of course. When used, it of course appears to substitute the last command in history to the bashrc file upon shell initialization, and not the actual command that you would get if you were to run sudo !! in an interactive shell. I've also tried alias root=\"sudo fc -s\" to no avail. I realize this is probably something to do with how the BASH does command substitutions, but can someone explain why this is, and provide a usable substitute? I'm running BASH version 3.2.51(1)-release (x86_64-apple-darwin13).", "Are all algebraic integers with absolute value 1 roots of unity?", "The internal storage on my phone is almost full. The storage screen tells me 2.77GB / 2.91 GB taken Apps 0.89GB Other 1.89 GB Available 138MB What is this \"other\" and how can I clean it up? I already followed the steps of \"make more space\", it barely makes a difference. Phone Storage then tells me 43.00MB / 1.09GB is taken. And on the SD card I have 1.86GB / 14.72GB taken. I have plenty of storage in various places yet when I try to install apps I'm unable to do so cause of \"insufficient storage\". How can I fix this?", "Minimum bounty on a question is now 100 rep?", "Does reviewing queues have any gains for me as a Stack Overflow user?", "Limit point versus limit and implications for convergence I understand that similar questions to this have been asked and but I believe my question is different because with regards to (1) I am not asking about the set $X$ that contains the points of my sequence and with regard to (2) because I have the distinct definitions of limit and limit point in mind. That said: My Question: My textbook, Fundamental Ideas of Analysis by Michael Reed, defines a limit point as: Definition: Let $(a_n)$ be a sequence of real numbers. A number $d$ is called a limit point if, given $\\epsilon &gt; 0$ and an integer $N$, there exists $\\color{red}{\\mathrm{ an }} \\ n \\ge N$ so that $|a_n - d| \\le \\epsilon$. The definition of a limit is as follows: Definition: We say that a sequence $(a_n)$ converges to a limit $a$ if, for every $\\epsilon \\ge 0$, there is an integer $N(\\epsilon)$ so that $|a_n - a| \\le \\epsilon \\color{red}{\\text{ for all }} n \\ge N$. From these definitions, and given this question: If a sequence converges it has exactly one limit point. Is the converse true? If not, provide a counterexample Can I conclude that the converse is indeed true simply by appealing to the definitions, or do I need a tighter proof. And if I do, I'm a little stuck on how to refine this proof.", "If $X$ and $Y$ are sets, their cartesian product $X\\times Y$ is a set. In ZFC set theory, every element object is a set. We know or feel that if $X$ and $Y$ are sets, their cartesian product $X\\times Y$ is a set. My question is: Why if $X$ and $Y$ are sets, their cartesian product $X\\times Y$ is a set?", "What to do with meta questions referring to currently non-existing features? I sometimes come across such questions like that: The \"Not a real question\" close reason doesn't exist for long time. It doesn't make sense to answer, comment, or even up/downvote (since there's nothing more to vote for/against it). Shouldn't such questions be locked as historical ones? Should I flag them for moderator attention or just ignore them?", "I'm making an python script which create a lot of object and this could take a lot of time. My question is how to show to the user of my script, the \"progression\" of the script? For now I print an progress bar in the system console. But you have to open the system console befor and (apparently) the system console only work with Windows. Is there an other way to show the progression of my script with python like control the mouse percentage icon (the little icon that replace the mouse while baking) or another idea?" ]
medi_sts_stackexchange_dupe
Reading an XML and Parsing as Class and Properties
How to Deserialize XML document
[ "How can I hibernate or sleep my Ubuntu 10.10 desktop and have it \"wake up\" the next day? I have seen software that can do this on windows, so it can't be hard on Ubuntu!", "How to prove that center of $GL_n(\\mathbb R)$ is scalar matrices? Again what can you say about the center of set of all upper triangular matrices and center of set of all diagonal matrices.", "Modular Arithmetic - Find the Square Root", "How do I wrap a macro definition in an environment? I'm creating a style file, and want to store the body text of the abstract environment so that I can put it on my custom titlepage. I could have required that my users enter the abstract as \\customabstract{Abstract text goes here}` which I would have implemented as something like \\newcommand{\\customabstract}[1]{\\gdef\\abstracttext{#1}} However, I would prefer that the user is able to use environment notation, \\begin{customabstract}Abstract text goes here\\end{customabstract} To do this, I thought I could define something like \\newenvironment{customabstract}{\\gdef\\abstracttext\\bgroup}{\\egroup} But this definition makes \\abstracttext expand to \\bgroup, which is not what I wanted. I tried to solve the problem by \\expandafter, \\newenvironment{customabstract}{\\expandafter\\gdef\\expandafter\\abstracttext\\bgroup}{\\egroup} but this results in a runaway error. Is there any way to acheive what I want? Answers that helps me understand the inner workings of TeX (instead of just referring to a custom package) are preferred.", "Reason for LCM of all numbers from 1 .. n equals roughly $e^n$ I computed the LCM for all natural numbers from 1 up to a limit $n$ and plotted the result over $n$. Due to the fast-raising numbers, I plotted the logarithm of the result and was surprised to find a (more or less) identity curve ($x=y$). In other words, $LCM(1, 2, 3, ..., n)$ appears to be roughly the value $e^n$. Is a there a simple explanation on why this is so? $LCM(a, b, c, …)$ shall be defined as the least common multiple of all arguments $a, b, c, …$", "What is the symbolic significance of the Night King's message? In Game of Thrones S8E1, Ned Umber is found pinned to a wall by the Night King with a symbolic message, which looks like tentacles coming out of the body of Ned. Is there some meaning to that symbolic message? If yes, then what is that?", "Opening Ubuntu 20.04 Desktop on WSL2 I installed Ubuntu 20.04 (server/terminal) from the Windows 10 app store, and then after launching the Ubuntu Terminal via WSL2 (Windows Subsystems for Linux) , I installed Ubuntu Desktop and did several steps to try and get a desktop instance of Ubuntu 20.04 launched. In short, the steps involved editing the .bashrc file, installing Xming, and then attempting to open the Ubuntu desktop in Xming with the &quot;startxfce4&quot; command. However, &quot;startxfce4&quot; just doesn't open the desktop for me. I can get programs to open with &quot;grun&quot; and the file explorer to open with &quot;gopen&quot; though, so it is working partially. Does anyone have any alternative suggestions to how I might get the terminal to open up the full Ubuntu Desktop? Obviously, this wasn't what Windows had in mind with WSL2 so this is kind of a reach, but any input would be helpful. Could I somehow do this from the file explorer or with a program that could opened from &quot;grun&quot; or &quot;gopen&quot;?", "Wrong text instead of reference numbers with the spbasic bibiography style I am writing a paper to a Springer journal and I am trying to use \\bibliographystyle{spbasic} However, instead of the number of the reference in the list of references I get something as: [Hundsdorfer et al(1995)Hundsdorfer, Koren, van Loon, and Verwer] followed by the citation What should I do to get the number in the square brackets? \\documentclass[smallextended]{svjour3} \\begin{document} \\cite{Hundsdorfer:adv} \\bibliographystyle{spbasic} \\bibliography{moje.bib} % name your BibTeX data base \\end{document} I may have to do the bibliography manually, as no Springer provided bibtex style produces the output that can be seen in the journal articles.", "When will my device get the Android 4.2 update (Jelly Bean)?", "I have a Windows 7 64-bit installation on my current PC, and I want to move it to a new PC .. I do NOT have a problem with licensing, as the new system already has its own new Windows 7 license, which I intend to use. I want to use my existing installation, because it has 3 years worth of installed office related software development software, which installing again could take weeks ! I'm assuming that I can use Windows 7's Backup and Restore feature to backup a system image to a network location, then restore that network stored system image on the new PC ? Again, like I said, I don't have a WIndows 7 licensing issue, as both machines are corporate provided and come with their own licences.", "I can't create an onCheckedChanged listener for my RadioGroup", "Lets say I have something like: \\[ Let x = number of cats \\] (This is a contrived example, but pretend we are actually inside a long align environment block...) \"Let\" and \"number of cats\" need to be written like normal text, while x= needs to be math type text. I've seen this: \\[ \\mbox{Let } x = \\mbox{ number of cats} \\] and this: \\[ \\textrm{Let } x = \\textrm{ number of cats} \\] They seem to produce equivalent output, but I'm not sure which is the \"correct\" one. Also, they are not ideal in that the extra space needs to be placed inside the text mode block, otherwise it is ignored as math mode and butts the text right up against the math. Ideally there would be some command which allowed embedding text into an equation, which correctly inserted leading and trailing space around the block as required without adding space inside the text block. How does one do that \"correctly\"?", "Cartographic techniques for symbolizing routing data Some common problems with displaying routes created from street data, such as bus routes, include: Routes may overlap themselves, such as when a route takes the same road in opposite directions Routes may overlap other routes that take the same street. Routes are often overly detailed, or \"noisy\", owing to their derivation from street data. Indicating a route's direction unambiguously without overloading it with arrows can be a challenge. What are some techniques for dealing with these issues in order to create a practical and usable route map, such as this ? Do you know of any such public transport maps that were produced by automatic techniques rather than manual illustration/digitization? Specifically I am using ArcGIS 10, but solutions involving other software are welcome as well. One technique I have had some success with for dealing with 1) is using ArcMap's with a negative offset -- assuming the lines are oriented in the direction of travel, this will offset the lines such that the right and left-hand sides are distinct and oriented as you would expect (at least for countries, for left-hand traffic countries one would use a positive offset). However the result tends to be a bit wonky around turns, interchanges and and U-turns, and is inflexible when dealing with multiple routes. Another possibility that I am not very familiar with but which seems promising is -- however, I have not had much luck in finding examples of using representations for transportation maps and whether it might fit the bill.", "Find the derived subgroup of $A_4$ Find the derived subgroup of $A_4$. Since it is $A_4$, for a permutation $\\sigma$ to be in $A_4$, $\\sigma$ must have a cycle structure of $2$ cycles. Therefore, $\\sigma=(ab)(cd)$. The commutator of such elements, would be obviously another permutation of $2$-cycle (of length $2$). Does it mean that $A'_4=A_4$?", "Do I need to activate the firewall? I only use Ubuntu for a home desktop use?", "How to solve and see resolution of $13^{53} \\pmod 7$ using Fermat little Theorem?", "$\\mathbb{Z}[X]/(X^2-1)$ is not isomorphic with $\\mathbb{Z}\\times \\mathbb{Z}$ I have to show that the ring $\\mathbb{Z}[X]/(X^2-1)$ is not isomorphic with $\\mathbb{Z}\\times \\mathbb{Z}$. I know that $(\\mathbb{Z}\\times\\mathbb{Z})^*=\\{(\\pm1,\\pm1)\\}$, so I thought I should be looking for elements which have inverses in $\\mathbb{Z}[X]/(X^2-1)$ and hopefully find more or less than 4. But I didnt succeed, so I need hints. Thanks.", "Deleting files from Remote FTP-Server older than x days", "Are answers that just contain links elsewhere really \"good answers\"? I have often wondered at the practice on Stack&nbsp;Overflow, Server&nbsp;Fault, and the other sites where someone will ask a question and an answer will come in that says Look here: http://link elsewhere. Rarely will the link have exactly the answer necessary -- often it's an entire article -- yet these answers get voted up. Why is that, exactly? I realize this is subjective, but my own thoughts are that one should try and give the answer (even if the answer is 'no, it can't be done' or 'no, I don't think it can be done' -- very different answers) and then if you have a link that explains it, go ahead and post it within the answer. What does the community think about this? For more information, see in the .", "Behavior of $\\sum_{n=1}^\\infty n^{-1}z^n$ on the circle of convergence Consider the following complex power series :$$\\sum_{n=1}^\\infty\\frac{z^n}{n}$$ The radius of convergence of this series is $1$ and the series is divergent for $z=1$. I want to know what are the values of $z\\in C:=\\lbrace z\\in\\mathbb{C}: |z|=1\\rbrace$, the circle of convergence, for which the given series converges." ]
medi_sts_stackexchange_dupe
Why am I getting exception Directory Is Not empty?
Cannot delete directory with Directory.Delete(path, true)
[ "Word for \"someone who talks too much\"", "Real Analysis: Continuity of a Composition Function Suppose $f$ and $g$ are functions such that $g$ is continuous at $a$, and $f$ is continuous at $g(a)$. Show the composition $f(g(x))$ is continuous at $a$. My idea: Can I go straight from definition and take $\\delta=\\min\\{\\delta_1,\\delta_2\\}$, where $\\delta_1$ is used for the continuity of $g$ at $a$ and $\\delta_2$ is used for f being continuous at $g(a)$. In my proof I just treat $g(a)$ as a point when referring to the composition. So it goes like this: Proof: Given $\\epsilon&gt;0$, take $\\delta=\\min\\{\\delta_1,\\delta_2\\}$. Then $0&lt;|x-g(a)|&lt;\\delta$ which implies $|f(g(x))-f(g(a))|&lt;\\epsilon$.", "How to write (La)TeX (with parentheses) [or any other TeX-related logo]", "How to show (raise) all windows of an application?", "Ubuntu installation is slow, why? I am currently installing Ubuntu 12.04.3. Everything was going fine until I came across this... Installing System It is sssooooooo close to being finished! Like 1/6 of the way there! I just wanted to know if this is normal or if something is wrong. I'm installing it through a flash drive if that helps Also,what will happen if I press the skip button that pops up when I click Installing System?", "How do \"pet\" Walkers help ward off other Walkers? In both the comics and the show, Michonne first appears with two walkers that she essentially keeps as pets. The comics sort of half-explain this - as per : She notices walkers don't attack one another and hacks off the arms and lower jaws of Mike and Terry. She chains them up by their necks to use them as escorts for an escape that was successful. In , we see that even if they still sort of smell like Walkers, the Walkers can smell/detect the living and will attack. In , We see Andrea effectively making a new \"pet\" so that she can use to deter the Walkers that she comes across on her trip to the prison. Along the trip, she is shown to come within close range of Walkers, but they give her space when she points the \"pets\" in the right direction. Why would the Walkers not just attempt to go around the \"pets\"? What about them creates an effective protective barrier?", "I have the message: Error Broken count &gt;0 Check if you are using third party repositories. If so disable them, since they are a common source of problems. Furthermore run the following command in a Terminal: apt-get install -f Details: The following packages have unmet dependencies: firefox-globalmenu: Depends: firefox (= 19.0+build1-0ubuntu0.12.04.2) but 19.0+build1-0ubuntu0.12.04.1 is installed Any suggestions?", "Solve the recurrence relation:$ T(n) = \\sqrt{n} T \\left(\\sqrt n \\right) + n$ $$T(n) = \\sqrt{n} T \\left(\\sqrt n \\right) + n$$ Master method does not apply here. Recursion tree goes a long way. Iteration method would be preferable. The answer is $Θ (n \\log \\log n)$. Can anyone arrive at the solution.", "I'd like to write something in the shape of this \"coat of arms\". I'd like to have the text filling the coat but with a hole roughly in the shape of the sword. I know there is the \\shapepar command to create paragraph shapes so I tried to , a patch for XFig that allows you to draw the shape you want but it never worked on my computer (Mac OS X). I also know I can build the shape by myself with shapepar syntax but it seems really complicated and I don't think I'll make a lot of shapes. So if anybody has ShapePatch working on his computer or knows shapepar syntax very well, could he give me the code?", "I have been trying to solve this problem for quite a while. I am still unsure of whether any of the avenues I have pursued have been of any use. Any advice will be much appreciated. Question: Let $V$ be a finite-dimensional inner product space, and let $E$ be an idempotent linear operator on $V$. Prove that if $EE^* = E^*E$, then $E$ is self-adjoint. (This is essentially exercise 5(a) in sec. 80 on p.162 of Paul R. Halmos, Finite-Dimensional Vector Spaces, but Halmos didn't assume that the dimension of $V$ is finite.)", "Parentheses vs. double commas vs. dashes to provide additional detail When do you use commas and when do you use parentheses to provide more detail about something? For example: The suspect, Tom Wilson, is now being charged with murder. The suspect (Tom Wilson) is now being charged with murder. John Smith, a member of the jury, agreed with the verdict. John Smith (a member of the jury) agreed with the verdict. The first example, the one about the fox, is the more valid one. The first example (the one about the fox) is the more valid one. I realize that the first example, the one that uses parentheses, is probably more valid in this case (if anyone has a better example, please include it), but when, if ever, would you favor parentheses? Update: I realize that dashes are sometimes used for similar situations, so I'd appreciate information on these as well. For example: The children—who are wearing shoes—will go on the trip The children, who are wearing shoes, will go on the trip The children (who are wearing shoes) will go on the trip", "Someone who just thinks they know what they're talking about What is a word or phrase that means a speaker (or writer) is talking about something they know very little about, but they think they know more than they do? An example: If you read diet message boards, you get dozens of people saying ‘Eat 6 small meals a day,’ or ‘Eat 3 big meals, but don’t snack,’ or ‘Eat more/less protein/carbs/fat.’ Each person is sure they are knowlegable enough to give good advice, but real experts(dieticians or researchers, for example) are rare. I want a word to describe this attitude. Bullshit is close, but someone bullshitting usually knows they aren’t an expert, they just want to convince the listener they are. Also, I’d prefer something politer than bullshit.", "butt, bottom, buttock and ass? A woman's butt was allegedly touched by a man several times during a commute on the MRT. How to use butt, bottom, buttock and ass? I am confusing with these words.", "For a vector space $V$ and a linear operator $f : V \\to V$, under what conditions does $V = \\ker(f) \\oplus \\operatorname{im}(f)$? Is it always true, or only in special cases? Edit: $V$ is finite dimensional.", "How can I restart a Windows 7 computer without screen or mouse?", "If there is a wizard that, by some means, has acquired proficiency in the use of shields, can said wizard use his shield in one hand and his arcane focus quarterstaff in the other and still cast somatic component spells? Since the quarterstaff has been crafted to also be an arcane focus, and the Sage Advice Compendium states that you can provide the somatic components of spells with the same hand wielding the arcane focus, in this case an arcane focus quarterstaff, could that wizard still be able to perform somatic component spells while using a shield in the other? I understand War Caster is the feat that allows you to cast somatic component spells even while using a shield and weapon or two weapons in each hand, but is this a simple way around those rules seeing as this \"weapon\" is your arcane focus? I would like to believe it is not, but I'm not fully fluent in the ways of spellcasting.", "I'm Egyptian and flying to Cairo from Tbilisi, via Istanbul. The first flight Tbilisi-Istanbul is on Atlasjet, then from Istanbul to Cairo I am flying on Egyptair. For that, I have to recheck in at Istanbul to my Egyptair flight Will I need to pass passport control at Istanbul airport to collect my bags and check in on Egyptair? Will I need a transit visa for that? Or it can be all done through neutral zone?", "Make Blender usable on high resolution screen The Blender UI elements are incredibly small by default on high resolution screens on Windows (15\" UHD screen). I found the Preferences -> System -> DPI setting which can be set up to 144. This makes Blender usable, but still uncomfortable and difficult on the eyes. Is there a way to make the UI elements even larger?", "Number Theory: Find all solutions of $\\phi(n)=16$ and $\\phi(n)=24$", "Upgrade to the latest PHP version in Ubuntu" ]
medi_sts_stackexchange_dupe
Bibliography will not recognize one source
Overleaf does not compile after using Biblatex
[ "I'm trying to run multiple Nodejs applications on Nginx server running on CentOS 7. I noticed that when I run a Nodejs app on some ports I get an 502 Bad Gateway error in the browser so I checked the error logs: [notice] 12806#0: signal process started [crit] 12807#0: *13 connect() to 127.0.0.1:7777 failed (13: Permission denied) while connecting to upstream, client: **.**.99.58, server: myapp.com, request: \"GET / HTTP/1.1\", upstream: \"http://127.0.0.1:7777/\", host: \"myapp.com\" [crit] 12807#0: *13 connect() to [::1]:7777 failed (13: Permission denied) while connecting to upstream, client: **.**.99.58, server: myapp.com, request: \"GET / HTTP/1.1\", upstream: \"http://[::1]:7777/\", host: \"myapp.com\" when I change the app to listen to 8008 for example everything is working fine. I checked permissions and if the process is running as root and everything seems ok. I played with the timeouts as well but no result. Can anyone help?", "$ \\int_{0}^{ \\infty} \\int_{0}^{ \\infty} \\frac { e^{-(x+y)}}{x+y} dx dy $", "How can I count all the lines of code in a directory recursively?", "String formatting in Python I want to do something like String.Format(\"[{0}, {1}, {2}]\", 1, 2, 3) which returns: [1, 2, 3] How do I do this in Python?", "In Windows, one can create a new file using Right Click -> Add New -> Type of File. Is there an analogous action in Lion? I just want to create a new blank file on my Desktop.", "Stack Overflow provides good tools in the question editor, like \"Links\" and \"Styling\". Another thing that for me would be nice is a color selector. Although an HTML editor is available, a direct click on tool would be good, and users can select different colors, as for marking errors in their program with red, and more important data with blue.", "Combination with repetitions. The formula for computing a k-combination with repetitions from n elements is: $$\\binom{n + k - 1}{k} = \\binom{n + k - 1}{n - 1}$$ I would like if someone can give me a simple basic proof that a beginner can understand easily.", "Why is the detection of gravitational waves so significant? LIGO has announced the detection of gravitational waves on 11 Feb, 2016. I was wondering why the detection of gravitational waves was so significant? I know it is another confirmation of general relativity (GR), but I thought we had already confirmed GR beyond much doubt. What extra stuff would finding gravitational waves teach us? Is the detection of gravitational waves significant in and of itself, or is there data which can be extracted from the waves which will be more useful?", "Name finding problem with comment notification feature I just received the following in my Response pane (from ), but you can see it was meant for another user. The @Robert line seems to have found 'Robert' in my name first, instead of Robert C. Cartaino. I think the comment notification feature should match based on the closest match from the first character in a name (in posting order), and not just the first match found in posting order.", "32-bit, 64-bit CPU op-mode on Linux", "Rest mass of the photon Why is the rest mass of the photon is taken to be zero? If rest mass of the photon is non zero, then it leads to infinite energy of the photon (by $E=mc^2$ equation) and there is a violation of conservation of energy. Is this a reason? Also, is there any thing called the relativistic mass of the photon?", "Chrome address bar no longer shows protocol or www subdomain A couple of days ago I noticed that for all websites, chrome omits from the address bar the protocol and the subdomain if it is www. My co-workers report that they are not seeing this. Chrome version is 67.0.3396.87. For example, if I type into the address bar https://www.google.com (without the quotes), Chrome immediately displays the chip \"Secure\" followed by google.com. See attached screenshots. I have looked in vain for Chrome settings that affect this, plus the chrome://flags page and chrome://net-internals page. I did not do anything consciously to make this change. Any ideas? EDIT: Suggestion from MrWhite that Ominbox UI Hide Stead-State URL Scheme and Trivial Subdomains had become enabled: good suggestion, except that the setting is still at “Default.” See screenshot: However, as a shot in the dark, I am going to play with the setting to see what happens. First I set it to “Disabled.” That restored the previous behavior of the address bar, which is to not to hide the protocol and “trivial subdomains.” Then I changed it back to “Default,” and it was hiding them again. One would suspect that somehow the default has been changed, except that co-workers are not reporting this issue. Oh, well. I’ll just leave it as Disabled for now. I would be ready to accept the answer from MrWhite, because it provides a workaround. Yet will leave it open for a bit longer, because it does not really answer why this behavior has changed, and why it has to be overridden. EDIT 2: Chrome version is 67.0.3396.87.", "Will I be able to get an interface that is like Gnome Classic in Ubuntu 14.04? For a while I departed from Ubuntu to use Linux Mint because I really don't like Unity, or Gnome 3's most recent interface. I was fine with what was called \"Gnome Classic\", but I feared it was being neglected because there were some significant bugs that lingered without improvement for a while. Unfortunately, while I like the MATE interface in Linux Mint, Mint itself lacks the level of community support that Ubuntu has. Mint has development and support issues. Not to disparage their efforts, I think they've done great work, but it's tough making a UI, and unfortunately it's just not working for me. I'm thinking of returning to Ubuntu with the 14.04 release, but not if it means using Unity. I have looked into the current situation, and I'm a little confused about the terms being thrown around. I have seen referens to \"fallback\", \"flashback\", and \"classic\", without any clear idea of which is available and what they offer. Is there still an option to get an interface that resembles the way Gnome used to look? Can I get an interface that looks like what I have with Mint, but with the support and features of Ubuntu? Can I get something close to that?", "Upgrade to the latest PHP version in ubuntu 16.04", "Can you explain more? I do not know when we can use them in the sentence. Can we use them instead of each other? They have a beautiful home. They have a beautiful house.", "Truncated trivariate normal - conditional expectation", "Cannot set up multiple desktops (workspaces)", "How do I remove a property from a JavaScript object? Say I create an object as follows: let myObject = { &quot;ircEvent&quot;: &quot;PRIVMSG&quot;, &quot;method&quot;: &quot;newURI&quot;, &quot;regex&quot;: &quot;^http://.*&quot; }; How should I remove the property regex to end up with new myObject as follows? let myObject = { &quot;ircEvent&quot;: &quot;PRIVMSG&quot;, &quot;method&quot;: &quot;newURI&quot; };", "What's a good back-up strategy for 1 desktop PC?", "How to easily build your own Linux Distro? I wanted to have a go at creating my very own Linux Distribution. Could you suggest some nice and easy-to-follow tutorials (preferably text based and not videos). I have heard something about Arch Linux but I don't know how to go from there. What do I need?" ]
medi_sts_stackexchange_dupe
Why do we use String docType in java? also tell me their advantages?
What is DOCTYPE?
[ "Are the LIGO observations proof of a black hole merger, and what happened to the black holes?", "From what I've seen it looks to me like Libav's avconv is thought to become a successor of ffmpeg — is that correct? If that's true, why is that so? What exactly is libav doing better and why would I want to choose it over ffmpeg? I came to this \"issue\" while installing Ubuntu 12.04.1 LTS in a VM and when I've installed ffmpeg it came up with a message telling mit ffmpeg is deprecated and I first thought \"wtf?\". If I use avconvWill I be able to migrate my scripts depending on ffmpeg more or less easy to libav? I'm mostly using it for writing meta data and doing audio conversion (wav, flac, vorbis, mp3, aac).", "This is relating to the movie. Frodo finally relinquishes his desire for the ring, and it melts in the fires of Mount Doom. The next scene shows the eruption of Mount Doom and the destruction of Barad Dur. Gandalf looks up with tears in his eyes. I have read the books, and can't seem to remember this being explained or described. I'm just wondering why they depicted Gandalf as being so emotional about the event, when throughout the story it depicts Gandalf as having unparalleled wisdom, faith and knowledge. Out of all the Ainur he listened to Eru's song the longest and contemplated it's meaning. It strikes me that Tolkien portrayed Gandalf as all knowing, and has ultimate faith that Frodo would carry out the task at hand. So why was he so emotionally surprised that it happened? Especially when he had seen far more surprising things happening throughout the War of the Ring and in the movies he was depicted as emotionally immovable, an almost cold hearted awareness of the evil that lurks within the world. I understand this is probably going to be down-voted as it has alot of opinion based statements. The TL:DR is: Was Gandalf described in the book as being so emotional at Sauron's fall? Or was this simply for effect in the screenplay?", "How can we move an object with zero velocity? Consider there is a box of mass $m$ at rest on the floor. Most books give an example that we need to do a work of $mgh$ to lift the box $h$ upward. If we analyze this work done, the external force acting on the box by us should be equal to the weight of the box. Therefore the net force is zero which in turn there is no acceleration. If there is no acceleration and the initial velocity of the box is also zero, how can the box move upward?", "How can I add reflection to a C++ application? I'd like to be able to introspect a C++ class for its name, contents (i.e. members and their types) etc. I'm talking native C++ here, not managed C++, which has reflection. I realise C++ supplies some limited information using RTTI. Which additional libraries (or other techniques) could supply this information?", "When replacing non-grounding type receptacles is a GFCI receptacle required, or can any GFCI device be used? Under the NEC (it was 210(7)(d)(3), but appears to have moved around some), it is permissible to replace an ungrounded receptacle with a GFCI receptacle, then wire further ungrounded or non-grounded (i.e. a NEMA 5 without a ground wire hooked up) receptacles on the circuit to the load side of the GFCI, all in lieu of running a ground wire in order to replace the existing ungrounded receptacles with grounded receptacles. However: does this permission extend to replacing the branch circuit overcurrent protection device with a GFCI-type circuit breaker (or a CAFCI breaker that provides ground fault protection for personnel)? Or can only GFCI receptacles be used for this retrofit? The NEC's verbiage does not make mention of breaker-type GFCIs...", "I just received a PhD invitation letter from a German University which mentions that my remuneration will be 2/3 of full TV-L 13 position. I do not know what a TV-L 13 position is (Google is of no help here), and didn't want to be rude, so I am asking here first. Is this a common position or specific to Germany? If anyone knows, currently how much remuneration corresponds to a TV-L position?", "Rotating an object continously with OnMouseDown I have a script that works but it does not do what I want it to do. My script makes an object rotate on when another is clicked. However, I want the object to continuously rotate until I click on the other object again. Right now when I click it rotates just a bit and stops. Here is my script: public class Rotate : MonoBehaviour { public float speed =50f; public GameObject target; public void OnMouseDown(){ target.transform.Rotate (new Vector3(0, Time.deltaTime, 0) * speed); } } How can I make the object rotate continuously until I click it again?", "Why don't Jedi (or Sith) use the Force to snap their foes' necks? I understand that the Jedi use the Force for self defence, but still, couldn't they just use the Force to snap their foes' necks and be done with it? Like when Jaina Solo was hunting down Darth Caedus. Or even when Caedus was duelling Grand Master Skywalker. If he just used the Force to snap Skywalker's neck (like he did to poor Lieutenant Tebut), it will all be over very fast. Is there a canon reason why Jedi and Sith don't use their powers to directly harm their opponents?", "I stumbled across this relationship while I was messing around. What's the proof, and how do I understand it intuitively? It doesn't really make sense to me that the sum of odd numbers up to $2x + 1$ should equal $x^2$.", "Google Chrome is my favorite browser, and I can't imagine going on without it. Suddenly (without closing and re-opening) the browser; chrome has been reading characters upside down, very weird: Chrome version: I tried restarting my browser and my MAC (running OS X Yosemite 10.10), but the error keeps on coming.", "Is God either immoral or not omnipotent? The usual (Christian) justification for suffering/evil in the world created by a benevolent God is freedom of the will. However, the more interesting question is not about the source of evil (which the free will may very well be) but why God chose to create the world such as it is. Why not create a world with freedom of the will, but without suffering? Even assuming that God is bound by logic such combination doesn't seem to be logically impossible: creatures certainly can do good of their own free will. There are two alternatives. 1) God is powerful enough for all practical intents and purposes, enough to be called God, but not omnipotent. He created only the best of all possible worlds (Leibniz). This position is perhaps the most defensible philosophically, it also avoids logical problems with , etc., but it does diminish deity's status and invites unpleasant questions like what limits God (logic only, inert matter, outer chaos, other beings), is there someone/thing more powerful, etc. Interestingly enough, the original Christian theodicy wasn't free will. St.Augustine says poetically \"the canvas of creation requires both the black and the white paint\". \"Requires\" here can be interpreted differently, is to explain the black by the \"just punishment\" for the original sin, which brings us to Adam and Eve, and back to the free will. But if God is still omnipotent and hence omniscient creating creatures he knew would sin, and then punishing them for it is hardly an improvement. 2) However, Augustine can be read more straightforwardly. Evil is \"required\" for the perfection of the world just like black paint is required for the perfection of a painting (evil can be interpreted as lack of good rather than something onto itself but that is beside the point). God is immoral, and he is beyond our conception of morality, his notion of perfection is his own. This is much bolder, and similar to Plotinus's position on the existence of the One, the One can not exist because it is \"prior to all existence\". But it does evoke the unpleasant taste of \"ends justify the means\". It is one thing to use \"God is beyond our logic and comprehension\" to get rid of unliftable stones, it is quite another to convince people to worship an immoral perfectionist. Formally, there is another logical possibility of asserting both morality and omnipotence, but defending the morality of creating a world full of suffering, for a higher purpose perhaps. For example, the suffering only appears bad to us, not to an absolute being in its wisdom. But this simply redefines morality and is only different in phraseology from the Augustine's position. The question is asked in human terms and has to be answered in kind. One is free to argue that God is beyond human logic and/or morality, but it still leaves him immoral as commonly understood. There does not appear to be a way to square this circle, one has to accept Leibniz's or Augustine's alternative (or both) and deal with the downsides. Option 2) looks more consistent, but it is rarely embraced, at least not openly. Perhaps, for \"public relations\" reasons it is more attractive to dismiss the question with something like \"this is beyond us\" or change the subject to the free will. What are the modern theological positions on the morality/omnipotence in catholisism, protestantism, etc.? Is the question relevant to other religions? EDIT: I am not sure that it came through but by immoral I did not mean morally deficient or evil. Rather at the God's plane of being morality becomes meaningless, like tastes or smells are meaningless when applied to elementary particles.", "When to use ' (or quote) in Lisp?", "Python: Uniqueness for list of lists", "I have a circuit board in production, primarily through-hole, to the tune of ~400 units per year. Each one is manually inspected and tested. The board has ten distinct voltage rails, four voltage feedback amps, three current feedback amps, a microprocessor with particular response characteristics, and a few other parts. That's a lot to check. I'm considering building an automated test rig for all that. I think a PCB that feeds the appropriate input stimuli, observes the responses, and gives a go/no-go would save me a lot of time. I'm reasonably confident that this is done, commonly. However, the techniques used to do it are unknown to me. I imagine a test rig with a circuit board of the same footprint as the unit under test (UUT). It would have a microprocessor, appropriate protection and scaling circuitry, and a large number of vertical pins sticking up from the board. Mount points would also stick up from the test rig for the UUT. When the UUT is mounted on top of the test rig, the bottom of the board makes contact with the vertical pins, allowing the test rig to feed stimuli to the UUT and observe responses. This seems reasonable, and I have the idea I've seen something very much like this before. But the details elude me. What sorts of pins would be used on the bottom board? (Part numbers would be great!) Would I need to put specific kinds of test points on the UUT, or can I get away with just contacting the clipped pins protruding through the board? What other concerns might there be?", "Headers Including Each Other in C++ I'm a C++ newbie, but I wasn't able to find the answer to this (most likely trivial) question online. I am having some trouble compiling some code where two classes include each other. To begin, should my #include statements go inside or outside of my macros? In practice, this hasn't seemed to matter. However, in this particular case, I am having trouble. Putting the #include statements outside of the macros causes the compiler to recurse and gives me \"#include nested too deeply\" errors. This seems to makes sense to me since neither class has been fully defined before #include has been invoked. However, strangely, when I try to put them inside, I am unable to declare a type of one of the classes, for it is not recognized. Here is, in essence, what I'm trying to compile: A.h #ifndef A_H_ #define A_H_ #include \"B.h\" class A { private: B b; public: A() : b(*this) {} }; #endif /*A_H_*/ B.h #ifndef B_H_ #define B_H_ #include \"A.h\" class B { private: A&amp; a; public: B(A&amp; a) : a(a) {} }; #endif /*B_H_*/ main.cpp #include \"A.h\" int main() { A a; } If it makes a difference, I am using g++ 4.3.2. And just to be clear, in general, where should #include statements go? I have always seen them go outside of the macros, but the scenario I described clearly seems to break this principle. Thanks to any helpers in advance! Please allow me to clarify my intent if I have made any silly mistakes!", "How can I see the photo settings like f-stop, ISO etc. of a image? I am new to photography and enjoying shooting with my Nikon D3200 camera. Once I take a photo, is there any tool by Nikon or a third party which can give me info like F-stop, ISO, Shutter speed, etc? If there is no tool, does Nikon camera support this after the photo is shot?", "Solving $x^{x^x}=c$ with Lambert's W function", "Does a man contain all the genes needed to make a woman? This question is brought on by a Sci Fi novel I am thinking about writing. The plot device involves a colonist in charge of building a population on a new planet who loses his supply of embryos and so forth in the landing. With the artificial \"wombs\" intact, he populates the planet with clones of himself. If he wanted to introduce enough variation (without making up new genes, only rearranging) in the population to allow them to be able to reproduce naturally without inbreeding problems, would he be able to? In particular, could he make a woman? Alternately, could a woman (without a Y chromosome) do the the inverse? At the risk of introducing bias into the answers, the plot as it stands assumes he is a male and he CAN'T do any of the above and he is restricted to clones.", "Why is the inclusion of the tensor product of the duals into the dual of the tensor product not an isomorphism? Let $V$ and $W$ be vector spaces (say over the reals). There is a linear injection $V^* \\otimes W^* \\to (V \\otimes W)^*$ which sends $\\sum_i f_i \\otimes g_i \\in V^* \\otimes W^*$ to the unique functional in $(V \\otimes W)^*$ sending $v \\otimes w \\mapsto \\sum_i f_i(v) \\cdot g_i(w)$ for all $(v,w) \\in V \\times W$. In the finite dimensional case it is easy to see this is an isomorphism by comparing dimensions on both sides. I'm aware that this is not an isomorphism in the infinite-dimensional case (see Relation with the dual space in the on tensor products) but I must admit that I'm not sure why. Cardinal arithmetic does not seem help here and, even if it did, I would be much happier to see an explicit example of a functional in $(V \\otimes W)^*$ outside the range of this map. I'm having trouble cooking one up myself. Added: Let me elaborate on my comment about cardinal arithmetic. Suppose that $X$ and $Y$ are infinite dimensional vector spaces over a field $k$. I'm confident that $\\dim (X \\otimes Y) = \\dim X \\cdot \\dim Y$ holds. It is clear that $|X^*| = |k|^{\\dim X}$ since we may identify a functional on $X$ with a function from a basis for $X$ to $k$. Also I think I've convinced myself that if $\\dim X \\geq |k|$ then in fact $|X| = \\dim X$ ie. the cardinality and dimension of a vector space agree when the dimension is larger than the cardinality of the ground field. Consequently, assuming say that $|k| \\leq \\dim X \\leq \\dim Y$ it seems we have $$ \\dim(X \\otimes Y)^* = |k|^{ \\dim X \\cdot \\dim Y} = |k|^{ \\dim Y} = \\dim Y^* = \\dim X^* \\cdot \\dim Y^* = \\dim (X^* \\otimes Y^*)$$ which implies that in fact $(X \\otimes Y)^*$ and $X^* \\otimes Y^*$ are isomorphic but, rather frustratingly, the obvious map does not do the job. Did I make a mistake here? If not, is it generally true (ie without making assumptions about $|k|$) that there exists some isomorphism $(X \\otimes Y)^* \\to X^* \\otimes Y^*$?" ]
medi_sts_stackexchange_dupe
Why is the present perfect used in headlines?
Which is correct: "has died" or "died"?
[ "Will reformatting my hard drive fix bad sectors on it?", "Where can I learn the meanings of RPG terminology? Words like 'campaign', 'system', 'dX', etc. Is there a good web resource with them all on a single page?", "I'm a photographer, who dabbles in graphic design from time to time as well. What are the differences between the various color spaces?", "Proving set theory question I need to prove the following letting A and B be subsets of a universal set U. $$A\\cup B = U \\iff A^c\\subset B$$ It just isn't straight forward to me.", "How to get back to a site when viewing one of its questions When viewing a question on a site which I don't use (I never registered on it), I can't figure out how to get back to the list of questions of the site. See this example from the Stack Exchange Android app. Where should I click to see the list of questions? (I chose Mathematics Educators because it's the most recent site, it is very likely that most users don't have an account on this website) Here is a random example: When viewing a question, I don't know how to view the list of questions. This site can't be found in the sidebar since it's not in my Your Sites list. The top menu containing the site's title only opens the sidebar.", "How do we remove an ex-girlfriend from a car loan?", "The expression 'not that bad of a' In an essay, a friend used the expression: It wasn't that bad of an idea. I think that it would be preferable to write It wasn't that bad an idea However, I can't explain why.", "How were the number of rounds for different key sizes of AES selected? The number of AES rounds increases with the key length. Why increase the number of rounds at all, and how were these round counts chosen?", "Determining ethnicity according to ancestry?", "Best way to follow a log and execute a command when some text appears in the log", "The value of $\\lim_{n \\to \\infty}\\int_{0}^{1}nx^ne^{x^2}dx$", "Product of all monic irreducibles with degree dividing $n$ in $\\mathbb{F}_{q}$?", "I have two different bookings on British Airways and Emirates. Booking 1 (British Airways): Washington (IAD) -> London (LHR) -> Dubai Booking 2 (Emirates): Dubai -> Hyderabad I have a 5 hour stop in Dubai but do not have a visa to leave the airport. British Airways says they won't through-check my bags. Emirates says it won't be a problem since Emirates and BA are partner airlines. Not sure what I should do at this point. My flight is tomorrow so its too late to apply for a visa. I have actually done with before without a problem on the same two airlines. The only difference was that it was on a single ticket booked through a travel website.", "Show that $e^{-\\beta} = \\frac{1}{\\sqrt{\\pi}} \\int_{0}^{\\infty} \\frac{e^{-u}}{\\sqrt{u}} e^{-\\beta^2 / 4u} du$. Show that $e^{-\\beta} = \\frac{1}{\\sqrt{\\pi}} \\int_{0}^{\\infty} \\frac{e^{-u}}{\\sqrt{u}} e^{-\\beta^2 / 4u} du$. I'm not really sure of how I should proceed to show this, and it's pretty un-intuitive as well. I've managed to manipulate the RHS into $$\\frac{e^{4\\beta}}{\\sqrt{\\pi}} \\int_0^\\infty \\frac{1}{\\sqrt{u}} e^{-(\\beta+2u)^2/4u} du$$ which now vaguely resembles a Gaussian. However, substituting $v = \\beta + 2u$ in in order to to get something like $e^{-x^2}$ doesn't particularly help. I got $$ \\frac{e^{4\\beta}}{\\sqrt{2\\pi}} \\int_0^\\infty \\frac{1}{\\sqrt{v - \\beta}} e^{-v^2/2(v-\\beta)} dv. $$ I'm really unsure of how I should proceed; any help would be appreciated.", "Why does this cloth go down past the top surface of the cube? I was following a , and the presenter said that he did not change the default options other than enabling self-collision and increasing the collision object's friction from 5 to 10. His looks like the first image below, but when I tried that, the cloth goes down past the top surface and stops at the bottom surface (second and third images below). Why is it so? I had a previous problem with cloth, and it was due to the objects' small size. This time, I made sure that both the cloth and the cube are large enough. (Cloth=7.68*8.22*1.99m, cube = 7.68*7.68*0.897m) The project file can be .", "Do any queries exist that require RIGHT JOIN, or can they always be re-written with LEFT JOIN? And more specifically, how do you re-write this one without the right join (and I guess implicitly without any subqueries or other fanciness): SELECT * FROM t1 LEFT JOIN t2 ON t1.k2 = t2.k2 RIGHT JOIN t3 ON t3.k3 = t2.k3", "How to reduce VM size?", "I am trying to perform stepwise regression for variable selection in R. In matlab, the stepwisefit function is able to work in n &lt; p problems. Trying to use step() for such problems i get the error message AIC is -infinity for this model, so 'step' cannot proceed. Is there a way to modify parameters so i can use step function?", "How to create a cable/wire for animation? So I've created a \"noodle\" with a path and a bezier Circle that has soft body so that when I click play it will drop and flop about. What I'm trying to do is have one of the cubes stationary while the other moves around having the noodle between them stretch and move around like its a cable. Any tips on this?", "Concurrently interleaving execution of Lua and TeX in LuaTeX The usual way to interleave Lua and TeX in generating documents is by invoking Lua from Tex through the \\directlua facility and generate Tex from Lua using tex.print(). For example, consider the Plain LuaTeX: \\directlua{ es=\"\"; someluatex = function () tex.everypar=\"PAR!\" end tex.print(\"one\", es, \"two\") someluatex() tex.print(\"three\", es, \"four\") } five\\bye Looking at the document LuaTeX generates for that input, we see that someluatex() is run before the Tex backend does anything with the output: the PAR!s will be inserted before \"one\" and \"two\", as well as after \"three\". Is there best practice for ensuring that TeX code issued by some Lua code is issued before some other LuaTeX code? There are several ways to do this: with some code I am working with I am trying the following scheme: Wrap the code executed by the \\directlua in a coroutine, call it myco; At the point we want to ensure the Tex so far tex.print-ed is executed, use: tex.print(\"\\\\directlua{coroutine.resume(myco)}\") coroutine.yield() If everything is in order, the Lua will resume after the Tex is processed. This is not ideal, however: we must ensure that the TeX backend is in the right state to understand the \\directlua command, which may not always be the case. Is there a better way to achieve this?" ]
medi_sts_stackexchange_dupe
Is it possible to change an instance's method implementation without changing all other instances of the same class?
Override a method at instance level
[ "Evaluating the product $\\prod\\limits_{k=1}^{n}\\cos\\left(\\frac{k\\pi}{n}\\right)$ Recently, I ran across a product that seems interesting. Does anyone know how to get to the closed form: $$\\prod_{k=1}^{n}\\cos\\left(\\frac{k\\pi}{n}\\right)=-\\frac{\\sin(\\frac{n\\pi}{2})}{2^{n-1}}$$ I tried using the identity $\\cos(x)=\\frac{\\sin(2x)}{2\\sin(x)}$ in order to make it \"telescope\" in some fashion, but to no avail. But, then again, I may very well have overlooked something. This gives the correct solution if $n$ is odd, but of course evaluates to $0$ if $n$ is even. So, I tried taking that into account, but must have approached it wrong. How can this be shown? Thanks everyone.", "I really miss the graphical \"Services\" tool from older versions of Ubuntu, but I understand why it had to go. I always have terminals open anyway, so I use (because I have to now, I guess) service --status-all to see what services are running. This would be ok except that the command produces output like the following: [ + ] winbind [ ? ] wpa-ifupdown [ - ] x11-common I'm guessing that those symbols mean something like listening, blocked, or stopped, but which is which? More importantly, why doesn't the man page say?", "What is the distribution of the sum of non i.i.d. gaussian variates? If $X$ is distributed $N(\\mu_X, \\sigma^2_X)$, $Y$ is distributed $N(\\mu_Y, \\sigma^2_Y)$ and $Z = X + Y$, I know that $Z$ is distributed $N(\\mu_X + \\mu_Y, \\sigma^2_X + \\sigma^2_Y)$ if X and Y are independent. But what would happen if X and Y were not independent, i.e. $(X, Y) \\approx N\\big( (\\begin{smallmatrix} \\mu_X\\\\\\mu_Y \\end{smallmatrix}) , (\\begin{smallmatrix} \\sigma^2_X &amp;&amp; \\sigma_{X,Y}\\\\ \\sigma_{X,Y} &amp;&amp; \\sigma^2_Y \\end{smallmatrix}) \\big) $ Would this affect how the sum $Z$ is distributed?", "How many ways can $r$ nonconsecutive integers be chosen from the first $n$ integers?", "Create SOAP envelope of XML and send it as HttpWebRequest to WebService", "Russian babel and chemformula", "How can I get my usual interface when opening projects created by other people? I've bougth cup models from internet. In the ZIP I get the blend file and pressing F12 I can render the project (Do you call it project?) But I don't see anymore the \"Layout\" tab, that is what I use the most. Why and how can I go back to my usual interface? Like in the Opening Layout: UPDATE 1 I could open the file with the default layout, however I'm not seeing the objects in there: UPDATE 2 How to open Collection 1? It's grayed out.", "What is the status of TTF support in Internet Explorer?", "I have a dual screen setup on my laptop (using 12.04 LTS) using a HDMI connected display. Everything works fine, but everytime I connect/disconnect the cable I have to go to Sound preferences and change the sound output device manually. Is there any way to change the sound output device on connect/disconnection of cable, so when I connect my display the sound output is set to HDMI and when I disconnect it the sound goes back to laptop speakers?", "Show that any set of 7 distinct integers includes two integers $x$ and $y$, such that either $x-y$ or $x+y$ is divisible by 10 Show that any set of 7 distinct integers includes two integers $x$ and $y$, such that either $x-y$ or $x+y$ is divisible by 10. I'm trying to apply the pigeonhole principle, but haven't been able to come up with a convincing argument. Though similar to , I think the difference between the two is enough to warrant a second post.", "I add video files to the video editor, Both audio and video channels appear but only the audio plays. The video is just a white box. Anyone know what is wrong. Added video in WMV. Also tried MP4 same thing.", "How to get a dock on multiple monitors I have two monitors, but only one dock, which is somewhat annoying, so my question is, how do I get multiple docks? (One on each screen)", "How can I publish my thesis? I have a written thesis, as my Final year project. I have submitted in university. but now i want to make it professionally mine. I want to publish it some where but i don't have such kind of experience before. I am total Rookie in this field. Any Expert Opinion? Note: Thesis in About \"Handwriting Recognition \"", "Let $G$ be a group of order $56$. (We do NOT assume the Sylow-$7$ subgroup to be normal.) Then either the Sylow-$2$ subgroup is normal or the Sylow-$7$ subgroup is normal. How to prove? My idea: consider the case $n_2=7,n_7=8$. Then the number of elements in all Sylow $2$ -subgroups and Sylow $7$-subgroups is at most exactly $(7-1)*8+(2-1)*7+1=56$. This cannot give a contradiction. We need to prove that $G$ is simple. Then $|G||(8!/2)$. To prove $G$ simple, we need to prove there does not exist normal subgroups of order $2$ and order $4$. But I do not know how to prove.", "What is the origin of elements heavier than iron? In all the discussions about how the heavy elements in the universe are forged in the guts of stars and especially during a star's death, I usually hear that once the star begins fusing lighter atoms to produce iron (Fe) that's the end of the star's life and the whole system collapses onto itself; and based on how massive the star was initially, it has different outcome - like a white dwarf, a neutron star or a black hole. I have rarely heard a detailed explanation of how the elements heavier than iron are produced. I would appreciate a convincing explanation of this process.", "How to check if file exists on FTP before FtpWebRequest", "How did the Death Star move? In the Star Wars saga, one of the most iconic weapons of the Empire was the Death Star: a self sustained weapons platform the size of a moon, with the capacity to destroy a planet. in A New Hope, we see the first Death Star in close proximity to the planet Alderaan, holding the planet hostage as the Empire tries to deduce the location of the Rebel Alliance's headquarters. In Return of the Jedi, we see the second Death Star in \"dry dock\" over the forest moon of Endor as it is being constructed. My question is: How did the Death Star move? I imagine a spherical space station the size of a moon would be utterly massive, requiring a massive amount of thrust to move it. If it was constructed in low orbit of an inhabited planet/moon, the gravitational field would be immense, consisting of the planet/moon's gravity, and the Death Star's own considerable gravity. Breaking that gravitational field would be a massive task, yet we see no thrusters or engines on either Death Star. Were they hidden, stored under the station's surface while not in use? Was the station towed by another vessel?", "Can a service written in .NET self-terminate? I have a service application written in C# and under certain circumstances, I would like it to terminate itself. This would happen after the service has been running for a while, so this would not be happening in the OnStart() event. Everything that I have read so far suggests that the only safe way to terminate a service is through the Service Control Manager. My service runs as Local Service and does not have the rights to start or stop services, so I can't access the SCM from the service itself. Is there another way to self-terminate while still playing by the rules of the SCM?", "I'm starting out in Visual C++ and I'd like to know how to keep the console window. For instance this would be a typical \"hello world\" application: int _tmain(int argc, _TCHAR* argv[]) { cout &lt;&lt; \"Hello World\"; return 0; } What's the line I'm missing?", "What are examples where a \"naive bootstrap\" fails?" ]
medi_sts_stackexchange_dupe
What are the technical challenges to store electricity from lightning strikes?
What kind of capacitor could build up, and maintain a charge acquired from lightning?
[ "I want to prove the definition of limit of a function from definition (1) to definition (2). (1) A function $f(x)$ is said to have $f^*$ as the limit as $x$ tends $x^*$ iff for every sequence $\\{x_n\\}$ with limit $x^*$, the limit $\\lim_{n-&gt;\\infty}f(x_n)$ exists and is equal to $f^*$. (2) A function is said to have $f^*$ as the limit as $x$ tends $x^*$ iff for each $\\epsilon &gt;0$, there exists a $\\delta_\\epsilon &gt;0$ such that $|f(x)-f^*| &lt;\\epsilon \\forall |x^*-x|&lt;\\delta_\\epsilon$ I am confused about the steps. Suppose I am given an $\\epsilon &gt; 0$ and $x^*$. I have to show the existence of a $\\delta_\\epsilon &gt;0$ such that for all $x$ satisfying $|x^*-x|&lt;\\delta_\\epsilon$ I can construct a sequence $x_n$ which converges to $x^*$ and $x_n=x$ for some $n \\geq N$. Then I can say that $f(x_n)-f^*=f(x)-f^* &lt; \\epsilon$. I think I may have made some mistake about the steps. My main confusion is the following : Suppose I choose $\\delta_\\epsilon=\\epsilon$. Then if a sequence $\\{x_n\\}$ converges to $x^*$ then $x_n=x$ (where $x$ satisfies $|x-x^*|&lt;\\epsilon$) for some $n\\geq N$. Now, $\\lim_{n-&gt;\\infty}f(x_n)$ exists implies there exists an $M$ such that $\\forall n\\geq M$, $f(x_n)-f^* &lt;\\epsilon$. Now, I need to show that for some $n \\geq M$ indeed $x_n=x$. How do I show that ? This $M$ and $N$ are different.", "How to get less spacing in math mode LaTeX commands like this: Here again, four different simulations are run on networks of size $C^{G} = 25 \\times\\ 25 = 625$, $C^{G} = 50 \\times\\ 50 = 2500$, $C^{G} = 250 \\times\\ 250 = 62500$, and $C^{G} = 500 \\times\\ 500 = 250000$... When compiled generate the following: The spacing in math mode really irritates me. There's too much white space around the equal sign, and the multiplication sign has more right padding than left padding. Is there any way to reduce this spacing?", "There are some kind of door devices which push the door back after we open the door and come out. My problem is that the door area is not constructed in a way that such a device can be installed. There is no space adjacent to the door anywhere. Automatic closure of door is extremely important to me. Please see following pictures and tell what choices do I have.", "apt-get remove with wildcard removed way more than expected. why?", "Assume I have a flight ticket from A->B->C and at A I checked in luggage all the way to C. However after the first flight I don't board the second flight but decide to remain in B. As I understand procedures my luggage will need to be unloaded again from the plane in B when they notice I did not board the flight. How and when can I retrieve my luggage at B? (Or if not, what is the fate of my luggage?) Is there any way I can advise airport/airline staff in B to not load my luggage in the first place? (I understand that asking to do so when checking in in A would be declined / met with a fare recalculation) This question is different from in that I am looking for a general answer, whereas in that case B happened to be the port of entry to the US where you have to collect your luggage in any case. Also it is different from in that I do want to check in luggage from A to B. Finally I am also aware that possible further legs of my trip would be cancelled. is asking essentially the same but was marked duplicate to the above two questions that do not answer my question.", "Are repository updates secure? As a bear of little brain from the developer side, I cannot understand why the repository list is http://security.ubuntu.com and the other http(unsecured) sites listed in /etc/apt/sources.list. Without a certificate chain match this appears as \"ask any responder for a list of packages to update\" instead of \"ask the ubuntu.com site...\" Can any network choose to spoof the update sites, and is this a common practice to provide a locally cached and vetted copy?", "I computed the homology groups of the torus, can someone tell me if this is correct? The calculation, not the result that is. Thanks! The cells of $T^2$ are $e^0, e^1_a, e^1_b, e^2$ The chain groups are $$ C_0(T^2) = \\{ k e^0 |&#160;k \\in \\mathbb{Z} \\} = \\mathbb{Z}$$ $$ C_1(T^2) = \\{&#160;k_1 e^1_a + k_2 e^1_b |&#160;k_1 , k_2 \\in \\mathbb{Z} \\} = \\mathbb{Z} \\oplus \\mathbb{Z}$$ $$ C_2(T^2) = \\mathbb{Z}$$ $$ C_k(T^2) = \\{ 0 \\} , k &gt; 2$$ Now the homology groups: $$ H_0(T^2) = \\ker \\partial_0 / im \\partial_1 = \\mathbb{Z} / 0 = \\mathbb{Z}$$ where $im \\partial_1 = 0$ because there is no chain in $C_1(T^2)$ whose boundary is a zero-chain in $C_0(T^2)$. (Is this reasoning correct?) $$ H_1(T^2) = \\ker \\partial_1 / im \\partial_2 = \\mathbb{Z} \\oplus \\mathbb{Z}$$ where $\\ker \\partial_1 = \\mathbb{Z} \\oplus \\mathbb{Z} $, i.e. again everything maps to zero because there is no element in $C_1$ whose boundary maps to an element in $C_0$. $im \\partial_2 = 0$ again because there is no element in $C_2$ whose boundary is an element of $C_1$. I don't want to use Hurewicz to do $H_1$. $$ H_2(T^2) = \\mathbb{Z}$$ using similar arguments as above. Thanks for your help. Edit I posted the computations as an answer below. I got two up votes but I don't know by who so I'm not yet sure I can trust them...", "Start Mathematica without the menu bar?", "How to access a variable from another script in Unity c#", "I am looking for the combinatorial argument for the identity: \\begin{equation} k\\binom{n}{k} = n\\binom{n-1}{k-1} \\end{equation} This is easy to show algebraically as: \\begin{equation} \\binom{n}{k} = \\dfrac{n(n-1)(n-2)(n-k+1)}{k(k-1)!} \\end{equation} What is the combinatorial argument? What are some general ideas to get started? Here is a clarification of 2. From what I have seen so far, proving (combinatorially) an identity with an addition sign usually implies that we need to partition a set (this makes sense because of the addition rule and provides a nice visual). On the contrary, the previous observation leads me to believe that multiplication in identities can be resolved with the multiplication principle, but what is the \"visual/interpretation\" for this? Could someone provide such an interpretation for the example identity given above?", "From my old HD (Ubuntu 16.04) I copied ~/.thunderbird and other programs to the new disk with Ubuntu 18.04 installed. All went good. I tried to install Opera. The installation was unsuccessful, a window asking something was held. After that Thunderbird Local Folders -> Inbox (only) was invaded by large icons like this screenshot Flowers, plants, trucks and others. I restarted but those images are still there. Opera was successfully installed. What can I do to remove them?", "Consider the subset $B=\\{(x,y):x^2+y^2\\leq 1\\}\\ \\subseteq \\mathbb{R}^2$. Show that $\\vert B \\vert = \\vert \\mathbb{R}^2 \\vert$. It is easy to see tht $f:B\\rightarrow\\mathbb{R}^2$ defined as $f(x,y)=(x,y)$ is injective. However, in the book I'm working out of (Book of Proof by Richard Hammack), the other injection noted is $g:\\mathbb{R}^2\\rightarrow B$ defined as $$g(x,y)=\\left(\\frac{x^2+y^2}{x^2+y^2+1}x,\\frac{x^2+y^2}{x^2+y^2+1}y\\right).$$ In the book I'm asked to verify this is indeed an injective function. My approach was to assume $g(x,y)=g(m,n)$ and through basic algebra I was able to deduce $x(m^2+n^2+1)(x^2+y^2)=m(x^2+y^2+1)(m^2+n^2)$ and $y(m^2+n^2+1)(x^2+y^2)=n(x^2+y^2+1)(m^2+n^2)$ but how does this show $(x,y)=(m,n)$? Or is this the wrong approach?", "Proving $R-S$ contains a prime ideal when $S$ is a multiplicative set I'm mainly trying to prove that If $0\\not \\in S\\subseteq R$ is a multiplicative subset of a commutative ring $R$ with identity. Then $R-S$ contains a prime ideal. Now, by using Zorn's lemma, one can show that $R-S$ contains a maximal ideal I. In fact, I is a prime ideal as well, so we need to show this.To do that, I assumed the opposite, i.e $\\exists a,b \\in R$ s.t $ab\\in I$, but $a,b \\not \\in I$. Then looked each case. However, I stuck when $a,b \\in R-[S\\cup I]$. The following is what I've done for this case; Proof: In this case, our assumptions are $a,b\\in R-[S\\cup I]$ and $I + (a) = J$, where $J$ is an ideal in $R$ and $J \\cap S \\not = \\emptyset$. These imply that; $S^{-1}(I + (a)) = S^{-1} J$, but since $J \\cap S \\not = \\emptyset$, by a theorem that we proved in the class, $S^{-1} J = S^{-1}R$.Therefore, it must be true that $\\exists (i\\in I, r\\in R, s_1,s \\in S)$ s.t $$\\frac{i+ra}{s_1} =\\frac{1}{s}$$ but this implies $\\exists s_2 \\in S$ s.t $$ s_2(is + sra -1 s_1) = 0 \\quad \\Rightarrow \\quad (s_1 s )i + (s_1 s r) a = (s_1 s )1,$$ ,so $$(b s_1 s )i + (s_1 s r) ab = (s_1 s )b.$$ Observe that by our assumption $ab\\in I$, so $(s_1 s)b \\in I$. Now, at the point, I don't know how to proceed, so I would appreciate any help or hint because I stuck at this point for over a week now. Edit Thanks for the great answers; however, but I'm specifically interested in how to continue from the point where I stuck.", "Why does Ridders' method work as well as it does? I've just read section 9.2.1 in Numerical Recipes Ed. 3 (Press et al. 2007), which describes Ridders' method of root finding. I understand that allowing for some curvature of the function by linearizing three points with an exponential will probably get you a better approximation and more rapid convergence, but I have no idea how they get that it converges quadratically, and the motivation behind choosing an exponential (rather than e.g. a polynomial) is not clear to me. So, specifically, I'm wondering (1) why linearize with an exponential, and (2) why the method converges quadratically. I tried looking for Ridders' original paper \"A new algorithm for computing a single root of a real continuous function\", but the only copy I could find was in a journal that my school's library does not give me free access to. UPDATE: I've realized that the fact that an exponential is strictly positive means that weighting the three points with an exponential won't change their signs. Hence, the root of the linearization will have to land inside the original bracket. Polynomials, rationals, sinusoids, and logarithms all have positive and negative bits, so using them probably runs the risk of getting bad interpolated roots. One of these squared might be usable, but maybe non-monoticity gives some sort of undesirable effect. Since this is a complete list of all simple functions that I am aware of, exponentials seem to be the only easily available weighting function with this property. A constant function is also technically single-signed and monotone, but it can't be used to linearize stuff.", "Is there an MD5 Fixed Point where md5(x) == x? Is there a fixed point in the MD5 transformation, i.e. does there exist x such that md5(x) == x?", "cant install or remove anything on 18.04 cause of DPKG error", "After an AJAX request, sometimes my application may return an empty object, like: var a = {}; How can I check whether that's the case?", "How are \"related\" questions selected?", "Drawing a triangle from medians", "What do the brackets around processes mean? $ ps -Awwo pid,comm,args PID COMMAND COMMAND 1 init /sbin/init 2 kthreadd [kthreadd] 3 ksoftirqd/0 [ksoftirqd/0] 5 kworker/u:0 [kworker/u:0] 6 migration/0 [migration/0] 7 cpuset [cpuset] 8 khelper [khelper] 9 netns [netns] 10 sync_supers [sync_supers] 11 bdi-default [bdi-default] 12 kintegrityd [kintegrityd] 13 kblockd [kblockd] 14 kacpid [kacpid] 15 kacpi_notify [kacpi_notify] 16 kacpi_hotplug [kacpi_hotplug] 17 ata_sff [ata_sff] 18 khubd [khubd] What do the brackets mean? Does args always return the full path to the process command (e.g. /bin/cat)?" ]
medi_sts_stackexchange_dupe
How can I Switch from Ubuntu back to Windows after installing Ubuntu on dual mode?
How to remove Ubuntu and put Windows back on?
[ "As the title of the Question states, I want to know what are the tools available for Ubuntu which would allow me to take screenshots of \"Scrolling Windows\" ie; tall webpages, tall nautilus window which contains lots of files and folders etc. as a single image file. For the sake of clarity, I have already seen . However, I am specifically looking for tools to capture Scrolling Windows. As an example, my personal favorite for Microsoft Windows is . It's light on resources and helps me take beautiful screenshots. Is there anything close to it available for Ubuntu?", "Probably a basic issue, but still something that irks me and I can't find an answer online. I want to change the default folder for saving new shapes/processing outputs from &quot;last used folder&quot; to &quot;project folder&quot; or &quot;something in relation to project folder&quot; - is this possible? If so, how can I achieve this?", "Method for batch layout of images into PDF sheets I have 100,000 identically-sized, but unique, PNG/JPG images which I want to automatically layout onto A4 sheets which can then be exported as print-ready PDFs. So assuming I can fit 8 of these images per page in a 4x2 grid, I'm looking to input my 100,000 images and output 12,500 PDFs. I'm a programmer so I could probably write a script to do this myself (e.g. PHP/Python), but I was wondering whether there are any tools/scripts/software that already exists that can do this automatically.", "Which tools and technologies are used to build the Stack Exchange Network? What tools and technologies are used to build the Stack Exchange Network? See also:", "Locating stolen phone after factory reset I assume any reasonable thief will wipe the phone as soon as possible, thus removing any tracking apps and user accounts. I there a method to track the phone any way? A possible method is to use a tracking app (and it's configuration) that's embedded in a custom ROM.", "Code coverage for wrapper class is 0% I have written below Wrapper class. global class BI_VA_AutomationWrapper { global class BI_VA_AutomationRequest { webservice String userName; webservice String emailId; webservice String buinessUnit; webservice String orgName; webservice String country; webservice String environment; webservice String myShopNumber; webservice String BidsId;//for testing webservice String Type; //for testing } global class BI_VA_AutomationResponse { webservice String responseStatus; webservice String myShopNumber; //webservice list&lt;Error&gt; errorMessages; webservice String errorMessages;//for testing } global class BI_VA_Error { webservice String type; webservice String message; }} And test class is, @isTest public class BI_VA_AutomationWrapperTestClass { public static testMethod void unitTest(){ BI_VA_AutomationWrapper.BI_VA_AutomationRequest wrap= new BI_VA_AutomationWrapper.BI_VA_AutomationRequest(); wrap.userName='Test@test.com'; wrap.emailId='Test@test11.com'; wrap.buinessUnit='AH'; wrap.orgName='ORD'; wrap.country='US'; wrap.environment='QA'; wrap.myShopNumber='123456789'; wrap.BidsId='123'; wrap.Type='ResetPassword'; BI_VA_AutomationWrapper.BI_VA_AutomationResponse res= new BI_VA_AutomationWrapper.BI_VA_AutomationResponse(); res.responseStatus = 'Success'; res.myShopNumber = '987654321'; res.errorMessages = 'Test error'; BI_VA_AutomationWrapper.BI_VA_Error error = new BI_VA_AutomationWrapper.BI_VA_Error(); error.type = 'Test'; error.message = 'Test'; }} Code coverage is 0% only.", "Is there is any reason to make the permissions on an overridden C++ virtual function different from the base class? Is there any danger in doing so? For example: class base { public: virtual int foo(double) = 0; } class child : public base { private: virtual int foo(double); } The says that it is a bad idea, but doesn't say why. I have seen this idiom in some code and I believe that the author was attempting to make the class final, based on an assumption that it is not possible to override a private member function. However, shows an example of overriding private functions. Of course recommends against doing so. My concrete questions: Is there any technical problem with using a different permission for virtual methods in derived classes vs base class? Is there any legitimate reason to do so?", "What is the difference between: The company would rather each employee be provided with ID card. The company would rather each employee were provided with ID card.", "Why $f(x) = \\sqrt{x}$ is a function? Why $f(x) = \\sqrt{x}$ is a function (as I found in my textbook) since for example the square root of $25$ has two different outputs ($-5,5$) and a function is defined as \"A function from A to B is a rule of corre- spondence that assigns to each element in set A exactly one element in B.\", so $f(x) = \\sqrt{x}$ is not a function?", "Removable singularities and an entire function Function $f(z)$ is an entire function such that $$|f(z)| \\le |z^{n}|$$ for $z \\in \\mathbb{C}$ and some $n \\in \\mathbb{N}$. Show that the singularities of the function $$\\frac {f(z)}{z^{n}}$$ are removable. What can be implied about the function $f(z)$ if moreover $f(1) = i$? Draw a far-reaching conclusion. My attempt: If the singularities of $\\frac {f(z)}{z^{n}}$ are removable, it is entire (not sure, need help with the justification) and bounded, so constant from Liouville's theorem, the constant value of the funcion is $i$, hence $f(z)=iz^{n}$. But what about the $n$ here, is it arbitrary? Could somebody help me prove the removability of the singularities and suggest if my attempt is going the right way?", "What are the eigenvalues of matrix that have all elements equal 1? As in subject: given a matrix $A$ of size $n$ with all elements equal exactly 1. What are the eigenvalues of that matrix ?", "How can I draw annotated braces over and under math expressions? What LaTeX markup would one have to write to produce a result similar to the image below? Please excuse my Paint-and-mouse drawing skills. :-)", "Are logs kept for past at jobs?", "It has been a while since I read the Lord of the Rings novels (don't have a copy at the moment) but I seem to recall he went to Hobbiton at least once, as the young hobbits were always excited to see him. Did he travel there often?", "What's the fastest way to find mineshafts? , and one place I'm fairly sure I can find them is a mineshaft. Which leaves me back at square one, how do I find a mine shaft? It seems they were made substantially harder to find between 1.8 and 1.0. What's the fastest way to find a mineshaft?", "How do natural and weapon attacks mix? I have a level 1 Synthesist Summoner. Since he has the Quadruped base Eidolon, when fused, my Summoner has a bite attack (Primary). In addition, I have spent evolution points on a tentacle (Secondary). Finally, my Synthesist carries around an Axe, with which he can make weapon attacks. If I were to use the Full-Attack option, what attacks could I make, and at what penalties? Let's assume I want to always use the Axe, where possible. How does this interact with the eidolon's natural attack limit? (3 at first level)", "Why did Voldemort stop employing Occlumency against Harry in Deathly Hallows?", "In eevee, shadows are clipped by camera distance", "How can one cite theorems of references? I would like to cite the item (iii) of proposition 3 of a reference. How can I do it? Which ways do you suggest? This is a question not only about LaTeX, but also about style. One option I have seen to cite pages of a reference is \\cite[p.~333]{Audet}. Is there something similar to cite theorems, propositions and so on?", "I'm trying to get my csv table aligned to the left of my graph. The graph is appearing below (and indented) the table. Any ideas? \\begin{minipage}{0.5\\textwidth} \\pgfplotstabletypeset[col sep=comma, columns/distance/.style={column name={Col1}, column type={|c|}}, columns/loss/.style={column name = {Col2},column type={c|}}, every head row/.style={before row=\\hline}, after row={\\hline} ]{graph-data/data.csv} \\end{minipage} \\begin{minipage}{0.5\\textwidth} \\begin{tikzpicture} \\begin{axis}[ xlabel = Distance ($m$), ylabel = Loss ($dB$)] \\addplot table [col sep=comma]{graph-data/data.csv}; \\end{axis} \\end{tikzpicture} \\end{minipage}" ]
medi_sts_stackexchange_dupe
How to safely install Ubuntu alongside existing Windows 10?
How do I install Ubuntu alongside a pre-installed Windows with UEFI?
[ "Photon energy - momentum in matter $E = h\\nu$ and $P = h\\nu/c$ in vacuum. If a photon enters water, its frequency $\\nu$ doesn't change. What are its energy and momentum: $h\\nu$ and $h\\nu/c$ ? Since part of its energy and momentum have been transferred to water, it should be less. If water's refractive index is $n$, are the energy and momentum equal to $h\\nu/n$ and $h\\nu/c/n$ ?", "How to make an ext4 formatted usb drive with full RW permissions for any linux machine? I want to format my USB stick to ext4 and just use as I would any other typical non-linux format drive (FAT32, exFAT, NTFS). That is to say, I want to be able to plug the usb stick into any of my linux machines, and read/write to it without needing to adjust permissions, like doing chmod or chown stuff. I would prefer to use GUI partition software like GParted, rather than command-line commands, though I welcome any solution! I'm sure a post like this is duplicate flag heaven for some, but after browsing 6~10 SO and forum posts from google, I didn't find a simple solution to my question. Seemed like everything was about adjusting permissions on a per-user basis. Maybe you just cannot use ext4 drives with the same brainless convenience as NTFS.", "I'm looking for a quick start or template, or something, to get a web site's basic layout done quickly and looking fairly professional, and then let me do the coding. I don't want a CMS, as this is for a highly customised reporting application, but I need something like frame header and two columns and frame footer. I can design the pretty reports for the wide right hand column myself, as the left hand column menu.", "Selecting features with NULL attributes in QGIS How do I identify which features have NULL attributes in the attribute table of a shapefile? When i try [field]= 'NULL' it selects the features with value = 0 (see picture)", "I wanted to tidy up a TeX document and was curious if you can use \\lstinputlisting or a similar function to include a certain part of a source-code file. Example, I have a 500 or so line source file and I want to include just lines 300-400. Is there a way to do this?", "How to partition an encrypted disk", "Prove by Double Counting Method $\\sum\\limits_{k = 0}^m \\binom{m}{k}\\binom{n}{r + k} = \\binom{m + n}{m + r}$ Show by combinatorial arguments that: $$\\sum_{k = 0}^m \\binom{m}{k}\\binom{n}{r + k} = \\binom{m + n}{m + r}$$ Hello , I want to prove this argument by double counting method, i kinda have an idea of proving by comb args. but not by double counting... Can someone give any clues or ideas? thanks :)", "Should constructors comply with the Liskov Substitution Principle?", "I have an existing trigger which converts leads into peron accounts if the company name is blank. Trigger AutoConvert on Lead (after insert) { LeadStatus convertStatus = [ select MasterLabel from LeadStatus where IsConverted = true limit 1 ]; List&lt;Database.LeadConvert&gt; leadConverts = new List&lt;Database.LeadConvert&gt;(); for (Lead lead: Trigger.new) { if (!lead.isConverted &amp;&amp; lead.Company == null) { Database.LeadConvert lc = new Database.LeadConvert(); String oppName = lead.Name; lc.setLeadId(lead.Id); lc.setDoNotCreateOpportunity(true); lc.setConvertedStatus(convertStatus.MasterLabel); leadConverts.add(lc); } } if (!leadConverts.isEmpty()) { List&lt;Database.LeadConvertResult&gt; lcr = Database.convertLead(leadConverts); } } I need to also write a trigger that stops records from coming into Salesforce if that email already exisits in a contact or an account (we use person accounts). The issue is how do I get it working with the existing trigger (I need it to run before the trigger that converts it into a person account is run). Is there a way to combine the two or add the functionality to create the record only if the email address doesn't already exist as a contact in the org?", "Are any of the USB ports on a Macbook Pro \"always on\" Always on USB ports will provide power to a device even when the laptop is shut down. Obviously this can be problematic for battery issues, but sometimes a user wants this capability all things considered. Do the Macbook Pro offer this on any of the USB ports and if not is there any chance its wired and just has to be enabled?", "CSH - How to check if input is NOT number Need to apply it on csh. to check if the inputted $2 is not number nor the word \"all\" if ($#argv == 2 &amp;&amp; ($2 != all &amp;&amp; $2 != **any number**)) then echo \"wrong parameter\"", "A line is drawn through the point $A(1,2)$ to cut the line $2y=3x-5$ in $P$ and the line $x+y=12$ in $Q$. If $AQ=2AP$, find the coordinates of $P$ and $Q$. I found the lengths of the lines $AQ$ and $AP$ in terms of $x$ and $y$ and used $AQ=2AP$ to get this equation $11x^2-40x-16=0$ Working: $AP=\\sqrt{(x-1)^2+(\\frac{3}{2}x-\\frac{9}{2})^2}=\\sqrt{\\frac{1}{4}(13x^2-62x+85)}$ $AQ=\\sqrt{(x-1)^2+(-x+10)^2}=\\sqrt{2x^2-22x+101}$ $AQ=2AP\\Rightarrow \\sqrt{2x^2-22x+101}=2\\sqrt{\\frac{1}{4}(13x^2-62x+85)}$ $\\Rightarrow 2x^2-22x+101=13x^2-62x+85\\Rightarrow 11x^2-40x-16=0$ Using the quadratic formula I found $x=4,x=-\\frac{4}{11}$ I then substituted these values into the two equations in the question to get the coordinates $(4,\\frac{7}{2}),(-\\frac{4}{11},-\\frac{15}{11})$ or $(4,8),(-\\frac{4}{11},\\frac{136}{11})$ But the answers in the book are $(4,\\frac{7}{2}),(7,5)$ or $(\\frac{2}{5},-\\frac{19}{10}),(\\frac{11}{5},\\frac{49}{5})$ I don't know where I went wrong in my method. Edit: Found some errors in my method and calculation. Using $x=4$ in $2y=3x-5$ gives $P(4,\\frac{7}{2})$ Line with points $AP$ has equation $y-2=\\frac{\\frac{7}{2}-2}{3}(x-1)\\Rightarrow y=\\frac{1}{2}x+\\frac{3}{2}$ $Q$ lies on the same line. Therefore, the intersection between $y=\\frac{1}{2}x+\\frac{3}{2}$ and $y+x=12$ is the point $Q$. Working: $\\frac{1}{2}x+\\frac{3}{2}=-x+12\\Rightarrow x=7$ Therefore, $y=-7+12=5$. Point Q has coordinates $(7,5)$. But $x=-\\frac{4}{11}$ is not the other $x$ coordinate of $P$ according to the answers in the book. I have no idea where I went wrong at this point.", "Command \"find -name\" must be enclosed in quotes or it doesn't work. Why is that?", "Objects not rotating with each other (Rubik's cube)", "How to construct a relative path in Java from two absolute paths (or URLs)? Given two absolute paths, e.g. /var/data/stuff/xyz.dat /var/data How can one create a relative path that uses the second path as its base? In the example above, the result should be: ./stuff/xyz.dat", "Saving memoization to disk", "In a Cartesian system, I've got the slope, start point and distance of a line segment. What's the formula to find the endpoint?", "Why many abstract nouns get an indefinite article while it's taught that abstract nouns shouldn't get it?", "Getting key with maximum value in dictionary?", "Algorithm for computing Hadamard product of two rational generating functions If I have two generating functions $A(x) = \\sum_na_nx^n$ and $B(x) = \\sum_n b_nx^n$ then the Hadamard product is $(A \\star B)(x) = \\sum_{n} a_nb_nx^n$. Now when $A$ and $B$ are both rational functions ($P(x)/Q(x)$ with polynomials $P, Q$) I've seen non-constructive proofs that $A \\star B$ is also rational. Given two rational generating functions $A$, $B$, is there an algorithm that efficiently computes $A \\star B$? Or at least a constructive proof you could use to write an algorithm?" ]
medi_sts_stackexchange_dupe
How to start an official email to a professor
How should I phrase an important question that I need to ask a professor?
[ "I am looking for an adjective, similar to \"holding a grudge\" I am looking for an adjective that describes a person who is not willing to forgive or excuse someone's faults or wrong-doings from the past (other than \"unforgiving\"). For the ones who speak German, that word would be \"nachtragend\".", "Easy way to concatenate two byte arrays", "Replace a string in a text file using a shell script not working properly I have a text file containing this: 0 0 -1 0 1 0 0 0 0 -1 0 0 1.5 0.0 1.0 1 and I want to replace the 1.0 to 2.0 so that it becomes: 0 0 -1 0 1 0 0 0 0 -1 0 0 1.5 0.0 2.0 1 so I use this command: sed -i 's/'1.0'/'2.0'/g' /home/user1/file1.txt or this: sed -i 's/1.0/2.0/g' /home/user1/file1.txt but this is the result that appears and I don't know how to fix this: 0 0 -2.0 2.0 0 0 0 -2.0 0 1.5 0.0 2.0 1", "proving topological equivalence How would I show that $$d_E = \\sqrt{\\sum_{i=1}^n(x_i-y_i)^2}$$ and $$d_\\infty= \\sum_{i=1}^n|x_i-y_i|$$ and $$\\sup\\{|x_1-y_1|,|x_2-y_2|,...,|x_n-y_n|\\}$$ are topologically equivalent on $\\mathbb{R}^n$? I can do it for $\\mathbb{R}^2$, but I'm not sure how a generalization looks like.", "Is there a command prompt equivalent for Windows 7? That is, I want to filter out the results of a command: Bash use: ls | grep root What would it be from a Windows command prompt?", "The difference between log and ln $$\\dfrac{1}{2}\\ln(x+7)-(2 \\ln x+3 \\ln y)$$ Our professor let's us solve this but i do not understand how $\\ln$ works. He says it has same properties with $\\log$ but i still don't get it. What's the difference of the two?", "What should I do after a suspected compromisation of my system?", "Multiple File Extension Rename with single command I received some important files via mail. There are about 150 files like these. The extensions of the files are named as zip1,zip2,zip3, zip_ etc. I just want to change the extension of these files back to zip using a single command to avoid the manual task of renaming each file.", "Significant predictors become non-significant in multiple logistic regression When I analyze my variables in two separate (univariate) logistic regression models, I get the following: Predictor 1: B= 1.049, SE=.352, Exp(B)=2.85, 95% CI=(1.43, 5.69), p=.003 Constant: B=-0.434, SE=.217, Exp(B)=0.65, p=.046 Predictor 2: B= 1.379, SE=.386, Exp(B)=3.97, 95% CI=(1.86, 8.47), p&lt;.001 Constant: B=-0.447, SE=.205, Exp(B)=0.64, p=.029 but when I enter them into a single multiple logistic regression model, I get: Predictor 1: B= 0.556, SE=.406, Exp(B)=1.74, 95% CI=(0.79, 3.86), p=.171 Predictor 2: B= 1.094, SE=.436, Exp(B)=2.99, 95% CI=(1.27, 7.02), p=.012 Constant: B=-0.574, SE=.227, Exp(B)=0.56, p=.012 Both predictors are dichotomous (categorical). I have checked for multicollinearity. I am not sure if I have given enough info, but I cannot understand why predictor 1 has gone from being significant to non-significant and why the odds ratios are so different in the multiple regression model. Can anyone provide a basic explanation of what is going on?", "Implementing INotifyPropertyChanged - does a better way exist?", "When the phrase is used as an object, why so many native speakers are saying \"you and I\" instead of \"you and me\"? I'm not a native speaker but I thought \"you and me\" is correct. Not sure if this falls into the same category, but \"Just between you and me\" sounds more natural than \"Just between you and I\".", "setting upper and lower limits in rnorm", "Why was my flag declined? I've recently flagged the following , which I got in the flag queue. The answer does not seem to attempt to address the question at all. It looks like a comment on one of the other answers (probably Luca's). It got rejected with the following reason: declined - flags should not be used to indicate technical inaccuracies, or an altogether wrong answer I did not flag this because I thought it was wrong, I flagged it because I didn't think it was an attempt to answer the question. For what it's worth, I don't get what the guy who provided that answer even tried to say. Was I wrong to flag it? If so why?", "What is the difference between char * const and const char *?", "How was Hedwig able to find Sirius? In the beginning of Goblet of Fire, Harry sends Snuffles a letter. Hedwig somehow finds him after the extremely specific command from Harry, \"Just find him, okay?\" Theories: Hedwig has a scanning system, like Baymax in Big Hero 6. Hedwig got super lucky. Hedwig flies really, really fast. Now I know that owls are intelligent beings in the Harry Potter canon. But.... those ideas are just as crazy as the next. So how did Hedwig do it?", "Request of a domain with no virtualhost in apache ends to default virtualhost If I ask Apache for domain.com that has no Virtual Host setup in Apache configuration, Apache will show the default Virtual Host. How can I prevent this from happening or simply drop the connection?", "I currently have Windows 7 on my computer and I want to install Ubuntu alongside Windows safely. Could someone please provide clear instructions?", "How to embed Stack Overflow flair in a WordPress.com (free) blog? Has anyone successfully embedded their on a WordPress.com-hosted blog? The free hosted version of (not ) from all posts before publishing. So they to strip out just about anything I can add to embed my Stack Overflow flair. Note: I'll be switching to a paid, hosted site in the future (fixing the problem), but I'm looking for a quick, short-term solution.", "Schengen Business visa without a business invitation letter", "$y'=$ ${-x+\\sqrt{(x^2+4y)}}\\over 2$ , $y(2)=-1$ Prove that the solutions $y_1$ and $y_2$ for the initial value problem $y'=$${-x+\\sqrt{(x^2+4y)}}\\over 2$ , $y(2)=-1$ are: $y_1=1-x$ $y_2={{-x^2}\\over 4}$ And explain why the two solutions not contradiction with the theory of existence and uniqueness. ( sorry I don't speak English well ) My answer: For the initial condition : $y_1=1-x$ Satisfy the initial condition $y(2)=-1$ $y_1=1-2=-1$ And Satisfy the differential equation ${y_1}^{\\prime}=-1$ ${{-x+\\sqrt{x^2+4y}}\\over 2}={{-x+\\sqrt{x^2+4(1-x)}}\\over 2}$ $={{-x+\\sqrt{(x-2)^2}}\\over 2}$ $={{-x+x-2}\\over 2}=-1$ L.h.s.=R.h.s. $y^{\\prime}={{-x+\\sqrt{x^2+4y}}\\over 2}$ Also $y_2$ Satisfy the initial condition $y_2={{-x^2}\\over4}={-4\\over4}=-1$ And satisfy the differential equation. $y_2^{\\prime}={-x\\over 2}$ ${{-x+\\sqrt{x^2+4y}}\\over 2}={{-x+\\sqrt{x^2+4({-x^2\\over 4})}}\\over 2}={-x\\over 2}$ And for second part of exercise: ${\\partial f\\over \\partial y}={1\\over \\sqrt{x^2+4y}}$ and this not defined when $x=2, \\ y=-1$ So $f(x,y)$ no satisfy lipshtize condition in any rectangular has (2,-1), Lipshtize condition including uniqueness of solution, so no contradict with the existence and uniqueness. True ? If this also wrong I well be delet it , I answered by the same way of my teacher :(" ]
medi_sts_stackexchange_dupe
Relative paths to tex files?
Using a non-centralized structure for tex files - similar to \graphicspath
[ "GRUB doesn't show Windows 10 Whenever I boot into my system, Linux directly boots. If I press shift, GRUB shows only Linux, not Windows. Here are results of fdisk and update-grub. I think I have installed Linux the wrong way. $ fdisk WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted. Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sda1 1 1953525167 976762583+ ee GPT Partition 1 does not start on physical sector boundary. $ update-grub Generating grub configuration file ... Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported. Found linux image: /boot/vmlinuz-3.19.0-32-generic Found initrd image: /boot/initrd.img-3.19.0-32-generic Found memtest86+ image: /boot/memtest86+.elf Found memtest86+ image: /boot/memtest86+.bin No volume groups found done", "Prove that the multiplicative inverse of $a$ modulo $m$ exists if and only if $a$ and $m$ are coprime. Prove that the multiplicative inverse of $a$ modulo $m$ exists if and only if $a$ and $m$ are coprime. Can someone help me with this?", "How to make the taskbar blink my application like Messenger does when a new message arrive? Is there an API call in .NET or a native DLL that I can use to create similar behaviour as Windows Live Messenger when a response comes from someone I chat with?", "SQL Server - Best way to get identity of inserted row?", "How do you reopen a closed question?", "Consider the function $$ r(x) = \\mathbb{E}(Y \\mid X = x) $$ This has been called the regression function in a textbook I'm using. I'm trying to figure out the relationship between this function and the classical linear regression model. So, I know that it is a theorem* that we may write $$ Y = r(X) + \\epsilon $$ for some random variable $\\epsilon$ s.t. $\\mathbb{E}(\\epsilon) = 0$. Now suppose that we have $$ Y = \\beta_0 + \\beta_1 X + \\epsilon $$ This is the classical 1-dimensional regression function (assuming the $\\beta_0$ and $\\beta_1$ minimize the residual sum of squares). Question: Is it then a mathematical theorem that if $Y$ is defined as above, that $$ r(X) = \\mathbb{E}(Y \\mid X) = (\\beta_0 + \\beta_1 X)? $$ And is this why the function $\\mathbb{E}(Y \\mid X)$ is called the \"regression function\"? EDIT: The theorem that I am making use of is as follows (from All of Statistics pg. 89): Regression models are sometimes written as $$ Y = r(X) + \\epsilon $$ where $\\mathbb{E}(\\epsilon) = 0$. We can always rewrite a regression model this way. To see this, define $\\epsilon = Y - r(X)$ and hence $Y = Y + r(X) - r(X) = r(X) + \\epsilon$. Moreover, $\\mathbb{E}(\\epsilon) = \\mathbb{E}\\mathbb{E}(\\epsilon \\mid X) = \\mathbb{E}(\\mathbb{E}(Y - r(X)) \\mid X) = \\mathbb{E}(\\mathbb{E} ( Y \\mid X) - r(X)) = \\mathbb{E}(r(X) - r(X)) = 0$.", "Can I travel within the Schengen area if I currently don't have a valid visa or residency permit?", "Debian based system, only one gui program, nothing else I would like to make a debian system where you can only open one GUI program at boot, no other graphical interface, no minimize, or any X apart from that program, is there a way to do it on debian if possible, or any other custom distro? I just want to boot open the program and allow the user to only see and use that program.", "What is the distinction between \"among\" and \"amongst\"?", "If a group mod its commutator subgroup is cyclic, then the group is abelian? Let $G$ be a group and let $G'$ denotes its commutator subgroup, that is the group generated by all elements of the form $g^{-1}h^{-1}gh$. Is the following true: If $G/G'$ is cyclic, then G is abelian. Recall that the claim is true for the $G$ modulo the center of $G$. See", "which of the two it is?", "Where to upload too big files? I have a big HTML file that causes no errors in most of the browsers. However, when I open it with, let's say, Google Chrome, the program shuts down and I cannot trace why this is happening. This HTML file is quite big and cannot be posted to a question in SO, but it should be ran as a whole as I cannot trace where the problem is. What is/are the most appropriate file upload website/s to upload and paste the link into the question?", "Time travel short story where dinosaur doesn't taste like chicken I ran across this and it reminded me of an old short story I read a long time ago. I read it in a collection of short stories. It would have been a book because I borrowed it from a school library. Probably in the 1970s or 1980s. The book and the story would have been older, though. Probably from the 1960s or earlier. In the story, a scientist has a machine that he can use to view the past. It isn't like a TV or something, though. It opens a portal into the past that he can look through. It is very difficult to control, though. Pointing it at a place and time is likened to working in a hurricane. The portal jumps and moves about randomly. The steadier he can hold it, the clearer the past appears. When it is really steady, he can hear sounds from the past. It never gets really steady enough to reach through. They try pushing tools through the portal to pick up things in the past. The steadier the portal, the easier it is to push tools through. It never gets steady enough for them to push a tool all the way through, though. It just gets easier to make progress. One day, they have the portal open and it is acting really wild. At some point the workers take a break. The portal is still open, and while they are loafing the portal settles down by itself and becomes steadier than it has ever been. So steady that a piece of the past falls through. The portal scooped a chunk of the ground out of the past. The chunk of ground contains a nest with dinosaur eggs. The scientist rescues the eggs, and they manage to keep them warm enough until they hatch. The dinosaurs are some kind of harmless things, and become the lab mascots. Always wandering the grounds, and in and out of the lab. One day, the have the portal open again and one of the dinosaurs wanders into the lab and walks into some high voltage terminal. Crash, bang. Short circuit. All the equipment to open the portal is destroyed, and the dinosaur is roasted from the flash. The roasted dinosaur smells good, like chicken, and the scientist's son (who has been telling the story) takes a bite to see what it tastes like. He says \"It resembled chicken the way an asteroid resembles Jupiter.\" It tastes fantastic. With all of their work ruined, and the ruins of a fortune in expensive equipment scattered around them, the scientists and the labworkers all chow down on dinosaur. Half raw, half burned to a crisp from the explosion. They eat the dinosaur down to the bones. They start breeding the dinosaurs, and sell them as food. The guy's father makes a fortune selling dinosaur meat, but remains unhappy. With money from selling dinosaur meat, he rebuilt his lab but never ever got the portal steady enough to actually visit the past or take samples. Does anyone know the name of the story and the author, and maybe what collection it might have been in?", "Storing hard crusted bread I'm currently baking a batch of sourdough bread. My last batch turned out perfectly with a hard crust and chewy inside. My problem is how to store the bread such that the crust stays hard. If I put it in a plastic bag the crust goes soft in a matter of hours and I'm afraid that the bread will turn dry if I leave it without some kind of protection. Note that I'm not looking for a long term storage solution. What is the best way to store my bread, such that the crust stays hard and the inside stays chewy?", "How to know whether Lagrange multipliers gives maximum or minimum?", "Topology on cartesian product and product topology", "\"invalid use of incomplete type\" error with partial template specialization", "How to customize title page in beamer so that it looks like How can I modify title page so that it looks like it is in video. Please seek to 16 seconds and watch title page. I do not have permission to post images. I liked this theme and I want to make a beamer theme that looks similar. I tried with beamercolorbox but I failed to position the box to the bottom. Edit: Here is my minimum working example \\documentclass[xcolor=dvipsnames]{beamer} \\defbeamertemplate*{title page}{customized}[1][] { \\usebeamerfont{subtitle} \\usebeamercolor[fg]{subtitle} {\\flushright \\setbeamercolor{author}{bg=white,fg=Red} \\usebeamerfont{author} \\insertauthor\\par \\usebeamerfont{institute}\\insertinstitute\\par } \\vspace{0.2in} \\setbeamercolor{postit}{fg=white,bg=YellowOrange} \\begin{beamercolorbox}[sep=1em,wd=1.062\\textwidth,ht=3cm,dp=3cm,right]{postit} \\usebeamerfont{title} {\\huge \\inserttitle}\\par \\usebeamerfont{subtitle} {\\insertsubtitle} \\end{beamercolorbox} } \\usecolortheme[named=YellowOrange]{structure} \\useoutertheme{infolines} \\setbeamertemplate{navigation symbols}{} \\institute{Harvard College Professor and\\\\ Johnstone Family Professor in Psychology, Harvard University} \\title{SAY WHAT?} \\subtitle{Linguistics as a Window to\\\\ Understanding the Brain} \\author{Steven Pinker} \\begin{document} { \\setbeamertemplate{footline}{} \\begin{frame} \\titlepage \\end{frame} } \\end{document}", "Let $(A,+,\\cdot)$ be a unity ring with the property that if $x \\in A$ and $x^2=0$ then $x=0$. Consider the set $M=\\{a\\in A | a^3=a\\}$. Prove that: a) $2a\\in Z(A)$, $\\forall a\\in M$, where $Z(A)$ denotes the centre of the ring $A$; b) $ab=ba$, $\\forall a,b\\in M$. My attempts revolved around the fact that an idempotent element in a reduced ring is central. So, since for $a\\in M$ we have that $(a^2)^2=a^2$, it follows that $a^2\\in Z(A)$, $\\forall a\\in M$. The next thing I wanted to use in order to solve a) was that $Z(A)$ is a subring of $A$, so if I had proved that $(a+1)^2 \\in Z(A)$, $\\forall a\\in M$, then we would have reached the desired conclusion. However, I couldn't prove this and I honestly doubt that it is true. Another idea that I had was to prove that $M$ is a subring of $A$. Of course, this didn't work out because I cannot even prove that $M$ is closed under addition. Again, I don't know if this is true and it most likely isn't. As for b), I think that a) should be of use, but I don't know how. It is a well-known problem that a ring with $x^3=x$ for any $x$ in that ring is commutative, but since $(M,+,\\cdot)$ is almost definitely not a ring, this doesn't help. EDIT: Is there any chance that this question is simply wrong? I tended to believe this before asking it here too, but since nobody has made any progress on it until now I am even more inclined to think so.", "Username and Password not recognized when logging into Minecraft" ]
medi_sts_stackexchange_dupe
Applying Economics Ph.D/Agricultural/Applied Economics Ph.D programs with low GRE
How does the admissions process work for Ph.D. programs in the US, particularly for weak or borderline students?
[ "Are we discouraged from fixing typos and misspellings on Stack Exchange sites? I just attempted to fix a typo on a question on cooking.stackexchange.com and saw this Oops! Your edit couldn't be submitted because: Your edit summary must be at least 10 characters This edit is less than 6 characters; surely more can be improved with your edit? So, misspelled words have to just be left misspelled? That could prevent the post from being found in a search.", "Active login not recognized on Super User", "Render just part of a final image from Cycles? I'm using an older Nvidia chip that hates running viewport renders, and I need to check if changes to the materials on a few objects not far from the center of my scene are (I'm rendering a floorplan with an orthographic camera from above, so I'm looking down on objects and want to check if the displacement materials are working correctly). Is there any way to select a bit of the image and have it render first or without having to render the rest of the image? I'm aware that you can tell the image to render from an edge, but my stuff's about equidistant from either side of the scene.", "Is commitment necessary to participate in beta (as of June 2015)? There's this proposal for a new S.E. site which is about to enter the beta phase. It reads This proposal is in: Commitment A successful site needs people to commit to use it. This proposal is 100% complete. Committed users will be invited to the private beta soon. I'd like to participate in the beta but I don't want to commit (due to a full name being required). Will I be unable to participate in the beta if I don't commit?", "Windows INSERT key anti-functionality accidentally triggers; how to stop it permanently?", "How to specify ec2 instance types for different services? After I have specified a default EC2 instance type for my Juju charm, how do I override that for one of the services? For instance, the deploys wordpress and mysql, and I can set the default-instance-type in my environments.yaml so both services are m1.small But how do I configure it so that (only) the mysql service gets deployed on an instance type better suited to a database, like m2.xlarge ?", "Difference between int[] array and int array[]", "\"...programs that each perform...\" vs \"...programs that each performs...\": which is correct?", "Neutrino Oscillations and Conservation of Momentum I would like to better understand how neutrino oscillations are consistent with conservation of momentum because I'm encountering some conceptual difficulties when thinking about it. I do have a background in standard QM but only rudimentary knowledge of particle physics. If the velocity expectation value of a neutrino in transit is constant, then it would appear to me that conservation of momentum could be violated when the flavor eigenstate at the location of the neutrino source is different from that at the location of the interaction, since they are associated with different masses. For this reason I would think that the velocity expectation value changes in transit (for instance, in such a way to keep the momentum expectation value constant as the neutrino oscillates), but then it seems to me that the neutrino is in effect \"accelerating\" without a \"force\" acting on it (of course, since the momentum expectation value is presumed constant, there may not be a real problem here, but it still seems strange). Any comments?", "When and how did \"pretty\" enter English as an intensifying adverb? Today I saw an idiomatic road sign: \"Pretty Muddy\". I found this lack of strict English on a road sign unusual (on par with my \"Dead Slow\" official speed limit sign in Leeds, pic below), but as it turned out it's a charity race and the signs were merely directions. This got me thinking however, how do words like \"pretty\" and \"dead\" as end up in English? Taking \"pretty\" as an example, when did this first appear? I wonder how fast you have to be going before they stop you. How would this hold up in court?", "What are the summary rules for when to use image stabilization and when not to? When I got my DSLR, I took a lot of pics and all of them came excellent, even though I had VR at the \"Off\" position. Since those came out so well, I wonder when should I turn VR on, and when I should just leave it off. I found which answer this question in detail, but that's too much for me to understand easily. Can someone explain the strict rules in short? Should I use VR with tripod? When should I use it when I'm not using a tripod, and when should I leave it off?", "How to make git ignore changes in case? I'm not too sure what is going on here, but sometimes a particular file in my repository will change the case of its name. e.g.,: before: File.h after: file.h I don't really care why this is happening, but this causes git to think it is a new file, and then I have to go and change the file name back. Can you just make git ignore case changes? [edit] I suspect it is Visual Studio doing something weird with that particular file, because it seems to happen most often when I open and save it after changes. I don't have any way to fix bugs in VS however, but git should be a bit more capable I hope.", "Is it ok to say \"good morning\" at anytime?", "How to install the latest stable version of Chromium?", "Triangle Inequality of the Cartesian product with Max function Let $(X,d)$ be a metric space. Define $$d'((x,y),(z,w))=max\\{d(x,z),d(y,w)\\}.$$ I'm trying to prove the triangle inequality for this, but really don't have a clue how. Any tips or suggestions would be greatly appreciated!", "How do I write a mathematical equation for ARIMA (2,1,0) x (0,2,2) period 12", "I have noticed that when I leave comments on a question and someone votes it up, I do not get a notification. If the upvote count would at least be more than 5, I would expect to be notified since that leads to a badge.", "I am trying to pull logs and doing few others things directly. written a small line BASH but not working. I am sure thats with IF Condition. sed -rne '/21:25:07/,/21:50:07/ p' server.log.2015-04-21 &gt; /tmp/filename.log ; du -sh /tmp/filename.log ; if [`du -sh /tmp/filename.log` -gt 0] then gzip /tmp/filename.log ;", "Function whose inverse is also its derivative?", "$|p(z)| \\leq M$ for $|z| \\leq 1$ Show that $|p(z)| \\leq M|z|^n$ for $|z| \\geq 1$" ]
medi_sts_stackexchange_dupe
LabelControl text length in vb.net
How to AutoSize the height of a Label but not the width
[ "Here is the problem: Suppose that $*$ is an associative binary operation on a set $S$. Let $$H:= \\{a \\in S\\mid a * x = x * a \\mbox{ for all }x\\in S\\}.$$ In other words, $H$ is consisting of all the elements of $S$ that commute with every element in $S$. Show that $H$ is closed under $*$.", "A Variation of the even-town odd-town problem Let assume facebook has $n$ users. Mark Zuckerberg decided that people are allowed to open groups under the following restrictions: 1) No two different groups can exactly the same participants. 2) The number of users in each group is even. 3) Every two group has an odd number of common users. Denote by $m$ the maximal number of groups that can be formed in facebook under the restrictions mentioned above. Prove $m \\leq n$. I tried solving this by defined a matrix, multiplying it by its transpose and using some rank considerations I thought I could derive the bound, but I didn't succeed. Could you please give me a hint? The question had anther subsection : prove that in the case that $n$ is even than we have stron inequality", "Why are these numbers not equal?", "Snap application doesn't see files from another partition I have installed KeePassXC snap package on Ubuntu 17.10. I have multiple linux systems installed on the same drive, so I have made most of my home folders like ~/Documents created as links to a separate ext4 partition (users have same uid so permissions are correct). I tried to open my passwords' database which I have inside Documents, but keepassxc cannot see any files inside Documents. If I put the file in my home folder then it sees it. Are snap packages able to find files outside from my home folder? Any way to make KeePassXC (and the rest snap packages) access the files at my separate ext4 partition (maybe some configuration somewhere)?", "How do you correctly say large numbers", "How should different sized RAM be added to iMac? I have a mid-2011 iMac which came with 4GB RAM (2x2GB). I just bought 8 GB (2x4GB) and added it to get a total of 12GB. The current configuration is as follows: Given that the RAM is a different size, do I have the optimal locations for the different RAM chips? At the moment what I did was to simply add the 2 new sticks of RAM in the two empty slots.", "Need to schedule a job every hour in jenkins I'm New to Jenkins. I have a job which i need to schedule every 1 hour. I am using * */1 * * * but it is not working effectively. Please provide any other solution.", "In the following question the notation $c\\in ]a,b[$ is used. What does this mean? I have never seen it before.", "I need this desperately but can't find it. Am I doing something wrong?", "When does an expired domain become available for others to register?", "$ \\lim_{x\\to o} \\frac{(1+x)^{\\frac1x}-e+\\frac{ex}{2}}{ex^2} $ $$ \\lim_{x\\to o} \\frac{(1+x)^{\\frac1x}-e+\\frac{ex}{2}}{ex^2} $$ (can this be duplicate? I think not) I tried it using many methods $1.$ Solve this conventionally taking $1^\\infty$ form in no luck $2.$ Did this, expand $ {(1+x)^{\\frac1x}}$ using binomial theorem got $\\frac13$ then grouped coefficients of $x^0$ and it cancelled with $e$ then took coefficient of $x$ cancelled with $\\frac{ex}{2}$ and so on very messy right ? at last I got $\\frac13$ but that's not the expected answer! I must have went wrong somewhere can anyone help me with this.", "What can I do to increase battery life on my Android device? What can I do to get better battery life on my Droid? Battery life seems awful. Less than 15 hours or so on normal usage.", "What HTML tags are allowed on Stack Exchange sites?", "Short story about survivors on Earth after the atmosphere has frozen This is a short story I read maybe in the '80s. Earth has been thrown away from the Sun, probably due to a very large object passing through the Solar System, and the atmosphere has frozen in layers. There is a small family - father, mother, two children, who live in a room they have made airtight by hanging many layers of material to slow the loss of air. They keep warm with a 'camp-fire'. The father goes out every day in a suit of some sort to find food and mine frozen oxygen. It ends when they are found by another, larger group of survivors. Does anybody know the title and author?", "How to configure Remote Desktop on my office Ubuntu machine and how to connect to it from my Windows laptop at home?", "I am writing my thesis and using latex for first time. I would like to modify the the first page of my thesis, as it shows only name of thesis, my name etc. I would like to move all text little-bit to right-side, just on the first page, without effecting the other pages of thesis. Any idea how can I do it? \\documentclass[a4paper, 12pt, twoside, openright, cleardoublepage=empty, numbers=noenddot, appendixprefix, BCOR1.5cm, bibliography=totoc ]{scrbook} \\thispagestyle{empty} \\begin{titlepage} \\begin{center} %xyz \\end{center} \\end{titlepage} \\clearpage", "In going through the review tool I often come across poor quality answers to poor quality questions. In particular, I will occasionally see questions that are simply asking for links to products, asking for tools, etc. Here are three examples that I've come across just this morning. Clearly it's appropriate to go to the question and vote to close it (these are examples of not constructive) if they aren't already closed, but what should be done with the answers? Should the answer be marked for deletion? Much of the normal reasoning for not providing link only answers is defeated if the question is simply asking for links. I'm tempted to mark them as 'looks good' for that reason, because it's the question that is flawed. Is that correct, or should I evaluate all answers as if they were responding to a quality question?", "Get date for monday and friday for the current week (PHP)", "Choosing OpenLayers or Leaflet? I was debating with one of my collegues on OpenLayers v/s Leaflet. I made a point that OpenLayers is much better API if we wish to build a project, where you need direct connectivity to the Geoserver and PostGIS. Then I found , which looks pretty new but has the features of connectivity with the Geoserver and PostGIS. So my project details are as follows, Use the map interface to fetch Feature Info Create a customized tool that takes the lat/lon from user as to where he/she clicks on the map and then fetches the Climate Data from the raster (which is handled by a py script on the server) Allows user to upload excel, which is sent to the py script, which returns a GeoJSON, which creates Vector Features on the map Allow user to create vector polygons, which will fetch the Features it intersects from the WFS Layer. Fetches Layer from the PostGIS Datastore on GeoServer and displays the layers on the map. So now I am confused on which is better and why using OpenLayers over Leaflet makes more sense or not?", "I'm attempting a mass update on Contacts via Execute Anonymous. My code gives me the following error: System.LimitException: Apex CPU Time Limit Exceeded Here's my code: List &lt;Contact&gt; contactList = [select Id, Mass_Update_Checkbox__c from Contact Limit 1000]; for (Contact contact : contactList) { contact.Mass_Update_Checkbox__c = TRUE; } update contactList;" ]
medi_sts_stackexchange_dupe
extracting part of a vector
Best way to extract a subvector from a vector?
[ "When is it appropriate to end a sentence in a preposition? Like many others, I commonly find myself ending a sentence with a preposition. Yes, it makes me cringe. I usually rewrite the sentence, but sometimes (in emails) I just live with it. To, with... you know who you are. Should I keep fighting myself on this one, or is it okay in some circumstances?", "A switch that is only ON if the reference voltage is matched -+ 0.1 volts Im a beginnerish will electronic and im looking for a switch that is only ON if the reference voltage is matched -+ 0.25 volts. So if i have a reference of 2.7v to match and i feed the switch a 2.75v the switch would be ON. But if i feed it 2.5v or 2.85v the switch would is OFF. This might be a simple google search, but i am lacking the correct terminology.", "I'm using a PIN code to log on my computer. However, Num ⇩ is always turned off, even if on before shutting down my computer. This is quite annoying as I always have to retype my PIN. I've tried the suggestions (same as ). But with no result. If I don't enable num lock on log in screen and use the numbers above the normal keys, num lock turns on after log on. Then it's too late, unfortunately. So, how can I make num lock enabled by default when logging in? Thanks. Edit: While I still want to solve this, I've figured it is not such a big problem. I will need to press some key for the \"enter PIN screen\" to show, and using Num ⇩ works and enables num lock. But then, still annoying if the computer was only locked (with num lock on) and I turn it off, hehe.", "How is Selenium RC different from Selenium Web driver and some good pointers for a naive beginner to learn to scripting please? Thanks!", "I want to implement the EM algorithm manually and then compare it to the results of the normalmixEM of mixtools package. Of course, I would be happy if they both lead to the same results. The main reference is Geoffrey McLachlan (2000), . I have a mixture density of two Gaussians, in general form, the log-likelihood is given by (McLachlan page 48): $$ \\log L_c(\\Psi) = \\sum_{i=1}^g \\sum_{j=1}^n z_{ij}\\{\\log \\pi_i + \\log f_i(y_i;\\theta_i)\\}. $$ The $z_{ij}$ are $1$, if the observation was from the $i$th component density, otherwise $0$. The $f_i$ is the density of the normal distribution. The $\\pi$ is the mixture proportion, so $\\pi_1$ is the probability, that an observation is from the first Gaussian distribution and $\\pi_2$ is the probability, that an observation is from the second Gaussian distribution. The E step is now, calculation of the conditional expectation: $$ Q(\\Psi;\\Psi^{(0)}) = E_{\\Psi(0)}\\{\\log L_c(|\\Psi)|y\\}. $$ which leads, after a few derivations to the result (page 49): \\begin{align} \\tau_i(y_j;\\Psi^{(k)}) &amp;= \\frac{\\pi_i^{(k)}f_i(y_j;\\theta_i^{(k)}}{f(y_j;\\Psi^{(k)}} \\\\[8pt] &amp;= \\frac{\\pi_i^{(k)}f_i(y_j;\\theta_i^{(k)}}{\\sum_{h=1}^g \\pi_h^{(k)}f_h(y_j;\\theta_h^{(k)})} \\end{align} in the case of two Gaussians (page 82): $$ \\tau_i(y_j;\\Psi) = \\frac{\\pi_i \\phi(y_j;\\mu_i,\\Sigma_i)}{\\sum_{h=1}^g \\pi_h\\phi(y_j; \\mu_h,\\Sigma_h)} $$ The M step is now the maximization of Q (page 49): $$ Q(\\Psi;\\Psi^{(k)}) = \\sum_{i=1}^g\\sum_{j=1}^n\\tau_i(y_j;\\Psi^{(k)})\\{\\log \\pi_i + \\log f_i(y_j;\\theta_i)\\}. $$ This leads to (in the case of two Gaussians) (page 82): \\begin{align} \\mu_i^{(k+1)} &amp;= \\frac{\\sum_{j=1}^n \\tau_{ij}^{(k)}y_j}{\\sum_{j=1}^n \\tau_{ij}^{(k)}} \\\\[8pt] \\Sigma_i^{(k+1)} &amp;= \\frac{\\sum_{j=1}^n \\tau_{ij}^{(k)}(y_j - \\mu_i^{(k+1)})(y_j - \\mu_i^{(k+1)})^T}{\\sum_{j=1}^n \\tau_{ij}^{(k)}} \\end{align} and we know that (p. 50) $$ \\pi_i^{(k+1)} = \\frac{\\sum_{j=1}^n \\tau_i(y_j;\\Psi^{(k)})}{n}\\qquad (i = 1, \\ldots, g). $$ We repeat the E, M steps until $L(\\Psi^{(k+1)})-L(\\Psi^{(k)})$ is small. I tried to write a R code (data can be found ). # EM algorithm manually # dat is the data # initial values pi1 &lt;- 0.5 pi2 &lt;- 0.5 mu1 &lt;- -0.01 mu2 &lt;- 0.01 sigma1 &lt;- 0.01 sigma2 &lt;- 0.02 loglik[1] &lt;- 0 loglik[2] &lt;- sum(pi1*(log(pi1) + log(dnorm(dat,mu1,sigma1)))) + sum(pi2*(log(pi2) + log(dnorm(dat,mu2,sigma2)))) tau1 &lt;- 0 tau2 &lt;- 0 k &lt;- 1 # loop while(abs(loglik[k+1]-loglik[k]) &gt;= 0.00001) { # E step tau1 &lt;- pi1*dnorm(dat,mean=mu1,sd=sigma1)/(pi1*dnorm(x,mean=mu1,sd=sigma1) + pi2*dnorm(dat,mean=mu2,sd=sigma2)) tau2 &lt;- pi2*dnorm(dat,mean=mu2,sd=sigma2)/(pi1*dnorm(x,mean=mu1,sd=sigma1) + pi2*dnorm(dat,mean=mu2,sd=sigma2)) # M step pi1 &lt;- sum(tau1)/length(dat) pi2 &lt;- sum(tau2)/length(dat) mu1 &lt;- sum(tau1*x)/sum(tau1) mu2 &lt;- sum(tau2*x)/sum(tau2) sigma1 &lt;- sum(tau1*(x-mu1)^2)/sum(tau1) sigma2 &lt;- sum(tau2*(x-mu2)^2)/sum(tau2) loglik[k] &lt;- sum(tau1*(log(pi1) + log(dnorm(x,mu1,sigma1)))) + sum(tau2*(log(pi2) + log(dnorm(x,mu2,sigma2)))) k &lt;- k+1 } # compare library(mixtools) gm &lt;- normalmixEM(x, k=2, lambda=c(0.5,0.5), mu=c(-0.01,0.01), sigma=c(0.01,0.02)) gm$lambda gm$mu gm$sigma gm$loglik The algorithm is not working, since some observations have the likelihood of zero and the log of this is -Inf. Where is my mistake?", "YA dystopia novel of battle school with unusual military control scheme", "Expected Value of a Hypergeometric Random Variable", "I have been running Ubuntu 18.04 for a couple of weeks. I upgraded from 16.04 and all went smoothly. I am not sure what I changed, but this morning I noticed that the \"Settings\" Icon that launches gnome-control-center is missing from \"Show Applications\" and the applications menu as well. When I searched from \"Show Applications\" for gnome-control-center or just settings, nothing showed up. So, I figured I must have accidentally removed it and figured a reinstall of the package would resolve the issue. I have searched and found several postings where this worked. I tried: sudo apt install gnome-control-center And then rebooted - which reinstalled the gnome-control-center and I could then launch it from the command line. However, there was still no Settings Icon in any of the menus. I also tried many other suggestions including: sudo apt-get install --reinstall gnome-control-center sudo apt-get install ubuntu-desktop sudo apt install ubuntu-desktop --reinstall sudo apt-get install unity-control-center However, none of these has been successful in restoring the icon into \"Show Applications\" or any applications menu. Anyone have any suggestions on something I haven't tried? Would be much appreciated. Or, is there a way to just manually recreate the icon? Output of locate gnome-control-center.desktop: /usr/share/applications/gnome-control-center.desktop /home/dccrens/.local/share/applications/gnome-control-center.desktop /home/dccrens/.gnome/apps/gnome-control-center.desktop I am running Ubuntu 18.04 desktop on kernel 4.15.0-45-generic.", "Can NDSolve handle discontinuous data?", "Following an earlier question , I would love to implement the as suggested by Russell McMahon. That way I could switch between 4AA batteries (1.2V*4 or 1.5V*4) and USB power. The battery voltage would nicely be regulated to 5V too. And the idea was to use the shutdown pin of the chip IF USB power is detected. The device also has to work when no batteries are present. I am not too experienced with this, but I thought to connect the 5V from the USB to the SHUTDOWN pin from the LDO chip. Pitywise, the pin function is inverted, if SHUTDOWN is low, Vout from the LDO chip is low. I am now considering using an XOR gate to make the thing work: &ndash; Schematic created using I would love to limit the amount of components, but the number of diodes is already high, and the whole thing feels a bit crafted My questions: Is there a better suitable chip (with an inverted shutdown pin) is there a better circuit (without voltage drop) to get this (I would prefer to get rid of D1, but then, the XOR has no desired operation)", "How to throttle callback of jQuery event?", "I have seen a \"Universal Laptop Adapter\" sold in a computer shop before. I am thinking of getting one for a laptop. Is it safe to use? What differences are there between one of these and a typical laptop adapter?", "This is a trivial problem, but it annoys me that I can't get to the bottom of it: I'm running Windows 8, Powershell version 3.0. By right-clicking on the title bar I can go into the Properties and change the font, size, background colour etc without any problems. After closing and restarting Powershell, all of the changes I've made stick except that if I've set the font to Lucida Console then on reopening I get the Raster font. (Note that all of the above applies to when I run Powershell as Administrator.) So: If I set the font to Lucida, then it switches to Lucida for the remainder of the session. If I set the font to anything other than Lucida, then it stays as that after closing and reopening. If I alter the window sizes or text colours or anything else, the changes persist after reopening. The only thing that goes wrong is that if I set the font to Lucida, it switches to 'Raster fonts' when I reopen. But cmd and powershell ISE don't have this problem - only the powershell console. Can anyone suggest what might be going wrong? (One observation I've made is that upon re-opening Powershell after setting the font to Lucida, at first the width of the window is what it would be if the font were Lucida, but then after a second, it widens slightly to accommodate the raster font.)", "How has the age of the Universe been derived from the observations made by the Planck mission?", "Why is it dangerous use a coiled extension cord", "Recently I asked about the pertaining to Voldemorts new face. However I was corrected by ... Well, I think the confusion comes with mixing movie canon with book canon. In Philosopher's Stone, here's what Harry sees when Quirrell unwraps his turban: Harry would have screamed, but he couldn’t make a sound. Where there should have been a back to Quirrell’s head, there was a face, the most terrible face Harry had ever seen. It was chalk white with glaring red eyes and slits for nostrils, like a snake. Philosopher's Stone - page 212 - UK - chapter 17, The Man With Two Faces So it seems at some point between leaving school, and sticking his face to the back of Quirrel's head possessing Quirrel he got a new face some how. How did he manage that? Is it some dark magic he applies? Is it from possessing snakes in Albania?", "Comparison theorem for ODE", "Dynamically reformatting man pages on terminal dimension changes One common workflow of mine is to open a manual page in a terminal, then another terminal in which to test things. The man page is formatted to the initial dimensions of the first terminal. When I now resize my windows (or have my WM do that for me automatically), there is either a gap to the right of the preformatted page, or lines wrap. At this point I usually q(uit) and !! (run again), which loses my position in the page. I assume the formatting process is quite CPU intensive, or maybe it stems from ancient times of fixed terminal sizes. The less pager dynamically reacts to terminal resize events, so it should be possible in theory. I tried perusing man pages, searching the Web, asking on IRC -- the whole lot -- but couldn't come up with anything. Can I trigger reformatting from within or outside of the man utility? Is there a version of the man utility that resizes the page dynamically? Is there way to customize some part of the formatting/display process to make it update on SIGWINCH?", "It is much more convenient and cleaner to use a single statement like import java.awt.*; than to import a bunch of individual classes import java.awt.Panel; import java.awt.Graphics; import java.awt.Canvas; ... What is wrong with using a wildcard in the import statement?", "What does this pen notation in my UK entry stamp mean? I entered the UK from Paris once (riding the Eurostar train), and after the UK border control officer placed an entry stamp in my passport, he added a notation in pen (picture below). What does it mean? I suspect it is some sort of \"warning\" (the border control officer was not happy with me, though thankfully did not refuse entry). I've always been curious about what it means more precisely or whether my prediction is even correct. I've entered the UK only once again after getting this stamp. I was admitted then too, but it took a while (the border control officer went away for about 10 minutes to do something before letting me in)." ]
medi_sts_stackexchange_dupe
Why is $K:=\{x+\sqrt{2}y : x,y\in \mathbb{Q}\}$ a field?
Show that the set $\mathbb{Q}[\sqrt{2}] = \{a + b \sqrt{2} \mid a, b \in \mathbb{Q}\}$ is a field with the usual multiplication and addition.
[ "Can long term sleeping at day damage your health? I've passed half or more of my life, sleeping in very late and often after the sun rises. Now I believe that I'm already feeling its effect. Some of my hormones are under the ideal levels and I have a deficiency in vitamin D. What are the effects of sleeping during the day and not at night for work reasons or just habit? Is there any effect that can't be reversed simply by sleeping at night? (Assuming that you are sleeping enough time per day like 7-8 hours) Could this sleep pattern be related to endocrine ills and other ills?", "Can you nest html forms? Is it possible to nest html forms like this &lt;form name=\"mainForm\"&gt; &lt;form name=\"subForm\"&gt; &lt;/form&gt; &lt;/form&gt; so that both forms work? My friend is having problems with this, a part of the subForm works, while another part of it does not.", "Fast calculation for $\\int_{0}^{\\infty}\\frac{\\log x}{x^2+1}dx=0$ I want to show that $\\int_{0}^{\\infty}\\frac{\\log x}{x^2+1}dx=0$, but is there a faster method than finding the contour and doing all computations? Otherwise my idea is to do the substitution $x=e^t$, integral than changes to $\\int _{-\\infty}^{\\infty}\\frac{t e^t}{1+e^{2t}}dt$. Next step is to take the contour $-r,r,r+i\\pi,-r+i\\pi$ and integrate over it...", "I am not very familiar with databases and the theories behind how they work. Is it any slower from a performance standpoint (inserting/updating/querying) to use Strings for Primary Keys than integers?", "Simple Power Series Expansion for Problems similar to $f = (1 + \\epsilon \\,x)^{1/\\epsilon}$ I was flicking through a book on perturbation methods and saw a simple question asking the reader to expand the following expression for $f$ in a power series (up to the first 2 terms): $f = (1 + \\epsilon \\,x)^{1/\\epsilon}$, where $\\epsilon$ is a small parameter. I'm sure this is very simple, but I wasn't certain about the best way to approach this. A quick look at mathematica tells me the solution is $e^x - \\frac{1}{2} (e^x x^2) \\,\\epsilon + ...$. How would I go about getting this answer - and more importantly, how would I systematically find series expansions for problems similar to this one?", "Consider the sentence E-books are on the rise, but they haven't suppressed paper books though. This usage seems to be quite common, but when I learned English I was taught to use \"however\" where I now read \"though\". My questions on this use of \"though\" are: Is this a new trend? Is it restricted to American English? Is \"though\" considered more colloquial than \"however\" ? And on a syntactic level: Do you put a comma before \"though\"?", "What should I do when a hacker gives me hacked money? I was peacefully playing GTA Online (yeah, was killing someone coming out of ls customs) then a hacker came and killed me using explosive ammos, I called him a hacker and he teleported to me and gave me 790k. I know that people get banned for receiving this kind of money, what should I do to avoid the ban?", "Can someone please give me the prerequisites and mathematics required for string theory? Are there some good references to study it, both online and in a book? Please consider I am a newbie in string theory, and only about up to the level explained in Hawking's Brief History of Time and Penrose's Road to Reality. I would prefer something which does not omit rigor, but builds it up.Also, are there good online lectures on this? (I have covered most of GR, but I am not really comfortable with advanced Quantum mechanics. I have studied QM only from Griffith's book, and a few McGraw hill lecture notes.)", "I am trying to solve the exercises from the book Stochastic differential equations -An Introduction with applications by Bernt Oksendal and I am stuck on 1 question. Prove directly from the definition of Ito's integral that $$\\int_0^t B_s^2 dB_s=\\frac{1}{3}B_t^3-\\int_0^t B_s ds$$ I have tried for a couple of hours but I simply cannot prove it . I would be grateful if somebody could help me out , even a hint would be very helpful", "Site.createPortalUser() returning null in test context", "bilinear form - proof I have to prove that the mapping $f(x,y)={\\displaystyle \\sum_{i=1}^{n}}{\\displaystyle \\sum_{j=1}^{n}}x_{i}y_{j}{f}(e_{i},e_{j})$ is a bilinear form, that is, inter alia, the condition: $f(x+y,z)=f(x,z)+f(y,z)$ I have: $f(x+y,z)=f\\left({\\displaystyle \\sum_{i=1}^{n}}x_{i}e_{i}+{\\displaystyle \\sum_{k=1}^{n}}y_{k}e_{k},{\\displaystyle \\sum_{j=1}^{n}}z_{j}e_{j}\\right)=f\\left({\\displaystyle \\sum_{i=1}^{n}}{\\displaystyle \\sum_{k=1}^{n}}\\left(x_{i}e_{i}+y_{k}e_{k}\\right),{\\displaystyle \\sum_{j=1}^{n}}z_{j}e_{j}\\right)=\\ldots$ and what's next? Help!", "How can I determine what is taking up so much space?", "Can you cast a 9th level spell if your multiclass spell slots have 9th level spell slots?", "Big-O proof showing that t(n) is O(1) Let t(n) = $\\sqrt{n^2+100n} - n$ Show that $t(n)$ is $O(1).$ I tried solving this using the formal definition of O( ) but am not getting anywhere. Quite confused on how to tackle this question.", "A white number inside a black circle. How to make a white number inside a black circle (the picture below)? I want to change numbers inside the black circle, of course. I use Share LaTeX. I have read some articles here but anyone are not what I would like to get. I would like to get this (the picture below) - the sixth answer. Thanks for help.", "Finding minimum-area-rectangle for given points?", "How can I enable Hardmode? What items do I need to make my world Hard Mode?", "Can a Linux user belong to more than one group? If it is allowed, then one use may access files from two groups, that would be quite nice! If not, is there any alternative way to have this function? This issue is not the same as or", "Intervals are connected and the only connected sets in $\\mathbb{R}$ As the topic, prove that Intervals are connected and only connected in $\\mathbb{R}$. I know what is the definition of connected set. But not sure how to prove that.", "How to disable notifications for a single mailbox in Mail? When managing multiple mailboxes, is it possible to disable the notifications for certain mailboxes?" ]
medi_sts_stackexchange_dupe
Reverse Tethering ubuntu to iphone
Create WiFi hotspot on ubuntu
[ "Suppose $f: \\mathbb{R} \\to \\mathbb{R}$ is a continuous function which is 1-1, then does $f$ map Borel sets onto Borel sets?", "Why does SharePoint always prompt me to download SharePoint Designer when I already have it installed? For example, if I click Edit page -&gt; Edit in SharePoint Designer from within my SharePoint site, I'm always presented with a dialog prompting me to download Designer. I already have Designer installed. Seems like it should a.) launch it for me, or b.) at least stop prompting me to download it. UPDATE: Turns out this stemmed back to the 64-bit IE compatibility issue that was causing me grief here:", "How to make a live Ubuntu 18.04 USB with a persistent storage of more than 4GB", "How to install Oracle 18c (Enterprise Edition) on Ubuntu 18.04? This question is unanswered since Oracle 18c has been released. Except Ubuntu Linux platform, most of the other Linux platform supports Oracle 18c installation. I, myself, tested this on CentOS 7 and oracle 18c got installed without any glitch! It is unfortunate that Oracle Corporation has not documented the installation procedure particularly for Ubuntu Linux platform, nevertheless one good thing is that the image file db_home.zip is a generic one, installable across all Linux platforms. So how can I install Oracle 18c (Enterprise Edition) on Ubuntu 18.04?", "WUBI installed Ubuntu not showing up at boot menu after Windows reinstallation", "What is a bus error? What does the \"bus error\" message mean, and how does it differ from a segfault?", "Overriding the final destination of the OAuth2.0 flow from a custom OAuth2.0 Auth provider Background: I have created a custom Auth. Provider in Salesforce to reach out to an authorization server that isn't on the default list of Provider Types. I used as a good starting point to extend the Auth.AuthProviderPluginClass. Once appropriately added to my org, it then became an option on the list of Provider Types. I was able to create an Auth. Provider using that new provider type and it works to initiate the OAuth2.0 flow. I am appropriately able to get the access token and refresh token from the authorization server. The Problem: As it currently stands, we will have users click on a button that will send them to the provided \"OAuth-Only Initialization URL\" link that was generated when I created the actual Auth. Provider record. The trick is that when the OAuth2.0 flow is completed, the user is redirected back to the Salesforce Setup Home page, and I don't see a good way in the documentation to override the final destination to be something else (like a success page or something). Question: Does anyone know of a way to override the final destination of the OAuth2.0 flow from a custom OAuth2.0 Auth provider? UPDATE: I tried using the startUrl (and also tried retUrl for good measure) as query params, but doing so didn't change the behavior after the OAuth2.0 flow finished. Meaning, both of the following URLs gave me the same final destination as not having any query params at all: https://&lt;scratch org random url&gt;.my.salesforce.com/services/auth/oauth/MyCustomAuthProvider?retUrl=lightning%2Fpage%2Fhome https://&lt;scratch org random url&gt;.my.salesforce.com/services/auth/oauth/MyCustomAuthProvider?startUrl=lightning%2Fpage%2Fhome Another Update: This WORKED: https:/&lt;scratch org random url&gt;.my.salesforce.com/services/auth/oauth/MyCustomAuthProvider?startURL=%2Flightning%2Fn%2FCustomPage Apparently, it was important to add the leading /, (of course, url encoded to be %2F) and %2Flightning%2Fpage%2Fhome gets interpreted as the setup home and sends you there. (Parallel posted to Salesforce Dev Forum: )", "Matching a sentence with grep", "Array index out of bound behavior Why does C/C++ differentiates in case of array index out of bound #include &lt;stdio.h&gt; int main() { int a[10]; a[3]=4; a[11]=3;//does not give segmentation fault a[25]=4;//does not give segmentation fault a[20000]=3; //gives segmentation fault return 0; } I understand that it's trying to access memory allocated to process or thread in case of a[11] or a[25] and it's going out of stack bounds in case of a[20000]. Why doesn't compiler or linker give an error, aren't they aware of the array size? If not then how does sizeof(a) work correctly?", "Nonphysical entities cannot be observed. Therefore such entities cannot be verified by observation. How could statements like \"God exists\" be even considered true? Why would anyone appeal to the metaphysical realm at all? It seems to me that the best method by which we should go about in understanding the world is by initially ruling out the possibility of the metaphysical altogether for the simplest answer (a sort of null hypothesis). Once we can get a hold of a natural cause of some phenomenon, we should be satisfied that that is all there is to it. Formulating some nonphysical cause would be unnecessary, superfluously complicated, or even cluttered. Now if there was some problem that we were certain could not be solved by observation or experimentation or whose solution could not possibly exist in the observable realm, yet must be true, I would consider the possibility of a metaphysical cause. That said, I don't think that if you can't empirically observe something, it doesn't exist; rather, I would declare total agnosticism and say that it is unknowable.", "The Internet is awash with criticisms (or is that praise) of how Star Wars Episode VII: The Force Awakens borrows, steals, homages, references, archetype-uses or parallels from Star Wars Episode IV: A New Hope. What are those similarities?", "Is your mount an enemy of your target in terms of triggering sneak attack? I was working on building a Zorro character and this question came up: if a rogue is riding on a mount, is that mount considered an ally, or, specifically, an \"enemy\" of your target? One of the ways Sneak attack can be trigged is... \"... if another enemy of the target is within 5 feet of it, that enemy isn’t incapacitated, and you don’t have disadvantage on the attack roll.\" My assumption is yes. Every mount I'm aware of has some kind of attack at its disposal, and thus they represent a threat to your target in addition to the increased threat potential they grant you as the rider. Moreover, if a gnome can proc a sneak attack by acting as a distraction, I don't know why a warhorse wouldn't be able to. That said, is there anything in the books or elsewhere that defines what \"enemy of the target\" is allowed to include?", "What is the optimum button size of touch screen applications? There was a not so recent blog post about the ideal button size of touch screen control sizes (sorry there is no link, the website is now a spam trap) that was based on the form the MIT touch lab that gives some measures of the size and sensitivity of the finger. If found that averages for finger pads are between 10–14mm and fingertips are 8–10mm. This would make 10mm x 10mm a good minimum touch target size. As the author of the blog pointed out, this ideal contact size is much larger than the suggested size for Windows and Apple devices that is in their design guides. I am wondering why there is such a difference, and whether it makes more sense to increase the size of controls on touch screen applications, or if this is not really a usability issue at all? Also, it seems that many mobile websites and apps seem to completely ignore these principles. I am sure the screen size poses a limitation to how big the interface controls can be, so is this simply a trade-off between being able to fit in as much information versus how easy it is to interact with the control? It feels as if the stylus is not something that is in much use. A similar question has been raised on the minimum/smallest size that you can get away with, but I would consider this to be a different question to what the optimum size should be, because the smallest size accommodates the minimum usability requirement, whereas the optimum size caters for the best usability requirement. Archived link of the blog (original domain shows spam) And here is another reference it to (just to show that it is not the problem with the link but the website () UPDATE #1: another new reference that has a very precise figure of a minimum of 44 x 44 points, not sure how it is derived exactly but interesting (). Read Section 2. Provide Large Clickable Elementss. UPDATE #2: another reference, this time from citing touch target size to 9 mm square or greater (48x48 pixels on a 135 PPI display at a 1.0x scaling plateau). They also suggest avoid using touch targets that are less than 7 mm square. UPDATE #3: something from the that I referenced recently citing 44 x 44 points. UPDATE #4: NN/g has published an article on and the information/conclusion remains unchanged. UPDATE #5 A really nice write-up on the need to enhance the of common UI elements, citing the that the &quot;minimum target size for touch or mouse should be 44×44 pixel&quot; (2.5.5 - Target Size - Level AAA).", "Error on \\usepackage {geometry} text property", "Normalization of basis vectors with a continuous index? I have an infinite basis which associates with each point, $x$, on the $x$-axis, a basis vector $|x\\rangle$ such that the matrix of $|x\\rangle$ is full of zeroes and a one by the $x^{\\mathrm{th}}$ element. The book on Quantum Mechanics by Shankar says that the inner product between a basis vector and itself is not one, why not? Why can't these basis vectors be normalized to one, only to the ?", "What happens in these end-game situations? This is intended to be a canonical question regarding possible endings of the game. For each question, assume a single proper strike was made, and note where an improper strike would change the game outcome (beyond an additional point for the opponent). If the Queen has been covered: What happens if I pocket my last C/m and the Striker? What happens if I pocket my opponent's last C/m? What happens if I pocket my opponent's last C/m and the Striker? What happens if I pocket both players' last C/m? What happens if I pocket both players' last C/m and the Striker? If the shot covers the Queen: What happens if I pocket my last C/m and the Queen? What happens if I pocket my last C/m, the Queen and the Striker? What happens if I pocket my opponents' last C/m and the Queen? What happens if I pocket my opponents' last C/m, the Queen and the Striker? What happens if I pocket both players' last C/m and the Queen? What happens if I pocket both players' last C/m, the Queen and the Striker? If the Queen is left on the board: What happens if I pocket my last C/m, leaving the Queen? What happens if I pocket my last C/m and the Striker, leaving the Queen? What happens if I pocket my opponent's last C/m, leaving the Queen? What happens if I pocket my opponent's last C/m and the Striker, leaving the Queen? What happens if I pocket both players' last C/m, leaving the Queen? What happens if I pocket both players' last C/m and the Striker, leaving the Queen?", "Custom counter steps twice when invoked from caption using caption package", "I have a new laptop which I am setting up as dual boot Windows/Linux. I would like to access files from both Ubuntu and Windows 7. Should I create a separate NTFS partition?", "Combinatorics - binary - very interesting question I tried to solve this problem without any success. I really hope that you will know the answer. $f(n,m)$ presents the number of binary strings (empty string included) that include at most n times '1', and at most m times '0'. Prove: $$f(n,m) = \\binom{n+m+2}{n+1}-1$$", "In League of Legends, there are a number of effects which revive a champion upon death. The item is the most well-known and widely used of these. I was wondering, however, whether its effect would come before or after other revive effects? I have two examples. First, Zilean's ultimate will provide a champion with a Guardian Angel -like buff for a limited time. If a champion has this buff in addition to a Guardian Angel, which effect will happen first? Second, Anivia's passive allows her to come back to life if her egg is not destroyed after she is killed. If she has a Guardian Angel, will her passive be triggered before or after it? How does this compare to and ? It seems like in one case it is more beneficial to have Guardian Angel's precedence be greater, and in the other it is more beneficial to have it be less. In the first scenario, if the Guardian Angel was triggered first, then Zilean would have a good chance of simply wasting his ultimate. On the other hand, if it is triggered after these revival effects, then Anivia could not get the full benefit of her passive. Is there a set order of precedence, or does each revival effect have their own unique \"priority level\" that is explicitly detailed for each ability?" ]
medi_sts_stackexchange_dupe
How to get the HTML of ASP.NET MVC 3 page into a QUnit test?
I need a number of different full-page DOM samples for my qUnit test suite
[ "I'm trying to compile a kernel for a 32bit single-core Intel Atom machine. Needless to say, the compile is taking inordinate amounts of time. It's been going for 2 hours and it's still only halfway through the driver modules. Compiling a kernel on my main desktop only takes 15 minutes but it's a 64bit machine. Can I cross compile to generate a 32bit kernel package from the better machine?", "Placing however at the start of a sentence vs placing it in the middle of a sentence? Basically, what's the difference between this: However, it didn't mean that I didn't have the potential to become a rock star. and this? It didn't mean, however, that I didn't have the potential to become a rock star. Or does it mean exactly the same thing?", "I have a webpage that implements a set of tabs each showing different content. The tab clicks do not refresh the page but hide/unhide contents at the client side. Now there is a requirement to change the page title according to the tab selected on the page ( for SEO reasons ). Is this possible? Can someone suggest a solution to dynamically alter the page title via javascript without reloading the page?", "Is there such a thing as a Ubuntu Certified Engineer?", "Cutting strands of wire to fit plug I am a hvac tech, but my question is I have 2awg stranded and my plug is 6awg, will it matter much if I cut some strands to fit my plug? the plug is 60amp 250vac for a piece of kitchen equipment if the matters.", "It was a useful answer.", "Derived template-class access to base-class member-data", "One of the mysteries that my numerics class left me with are \"stiff systems\". Our prof didn't really manage to explain what they are. Now that the class (and the test) are over, I'm still curious. The most concise definition about \"stiff systems\" I've found so far is: \"There is no universally accepted definition of stiffness\". So, if there is none, I don't expect one. I'd be thankful about information on both of the following points: From what kind of (real-world) problems do stiff systems arise? What's so \"stiff\" about them? What's the good thing - or the bad thing - that I'd worry about when I have to numerically solve such a real-world problem?", "Console flashes on launching, then closes (ms-windows) I installed blender on a windows 7 64 bit system. I opened it one time then went to the tutorials. in the meantime I had a power failure and when I tried to start blender again I get a dos window that closes itself then nothing. I reinstalled Blender and get the same thing. I am going to try to uninstall then reinstall but in the mean time, any other suggestions are welcome.", "I had created the xml document with xml version=\"1.0\". In that document I need to use the greater than symbol &gt; and less than symbol &lt;. How should I include those symbols? It's not working. &amp;gt; and &amp;lt; are not working for me. Is there any special encoder for this?", "I am really satisfied that $(x \\to a) ≠(x=a)$ and if that is not right , Then all the process of $Limits$ is dividing by zero and that is a crime. Since $(x \\to a) + h = (x=a)$ , $h ≠ 0$,So Why does $f(x \\to a) = f(x = a)$ ? NOTE:I am talking about continuous function.", "Size in bytes is significantly less ( half the size) then size in MB in get info window In the get info window it says 387,037,139 bytes which is 387 MB whereas the size on disk is 716.9MB which is 716,900,000 bytes. du -sh paramgen result (in MiB) 684M paramgen Why is there such a large difference?", "Restoring open software after a restart event in windows I find that at the end of a long day, I sometimes have a large number of programs running. All which I will need to use tomorrow. Normally, this isn't an issue, I can simply lock the machine and come back tomorrow. My problem arrises when windows update launches in the middle of the night and force restarts my computer. That in turns closes all my open software. I of course save everything regularly so I don't loose anything, but I waste time reopening all of those resources whenever there is a restart. [EDIT] I should clarify that I still want to be able to restart my computer when an update comes down. Preventing the restart only delays the problem until later. I should have been more specific in that I want to be able to recover my working environment after a restart for any reason. Things like scheduled maintence, power loss, updates, and software installs. [EDIT] I can't simply have them setup to launch at startup becasuse those files change from week to week. So I need something that monitors what I have open, and gives me the option to \"recover\" those software sessions when I log back in. Anyone have any suggestions on what I can do? I'd even be willing to purchase software to do this for me if that is the only option. Thanks", "Have iPhone 4 with iOS 5.1.1 Trying to update to 6.1.2 (not the latest) via downloaded IPSW but unfortunately getting error: iphone could not be restored device isn't eligible for the requested build After searching for fix all over the internet found some suggestion like putting # in hosts file in line gs.apple.com but not helped. Have you any idea why I'm getting this error and can't restore iphone?", "Toggle Switch to swap the connections of two buttons", "I'm new to blender and have this issue: I'm using the \"Industry Compatible\" keymap. In \"Edit Mode\" the keys 1, 2 and 3 swap between vertex, edge and face select - Great! Now i want to customize it, so i'm adding a new preset \"My keymap\". As far as i understand this now is based on the \"Industry Compatible\" keympap and everything works accordingly. But if i close and start blender again, the 1, 2 and 3-key aren't working anymore. I need to go back to the preferences, set the \"Industry Compatible\" keymap and then set back to \"My keymap\". Then the 1, 2 and 3-key work again as expected. This is reproduceable on the last Blender 2.8 version on several different machines. Am i doing something wrong? Is this a bug?", "I am looking for an application which can do the following: Resize one or more images Compress images Rotate and flip images Rename multiple images using a progressive number or a prefix/suffix Convert an entire PDF file to a bunch images Extract an image from a Windows .ico file Convert images to DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, TIFF, and other formats I am running Ubuntu GNOME 15.10 with GNOME 3.18.", "LaTeX seems to be having problems handling nested optional arguments. I've included a minimal code example that generates the error: \\documentclass[12pt,oneside]{book} \\begin{document} \\newcommand{\\termbad}[2][]{#2#1} \\newcommand{\\termgood}[2][]{#2#1} \\newcommand{\\up}[1]{#1} \\newcommand{\\dd}[1][]{#1} \\termgood{\\up{Tart}}{Pop} \\termbad[\\up{Tart}]{Pop} \\termgood{\\dd[Tart]}{Pop} \\termbad[{\\dd[Tart]}]{Pop} %\\termbad[\\dd[Tart]]{Pop} \\end{document} If you run this code, it works. If you remove the % in the second to last line, it fails with: Runaway argument? Tart{Pop} \\par \\par \\end {document} !File ended while scanning use of \\dd. After further tinkering, I have discovered the problem: LaTeX is reading the ] for the inner optional argument as the end of the outer optional argument and then passing a malformed argument in. So it is passing in \\dd[Tart as the optional argument to \\termbad instead of \\dd[Tart]. This still feels like a bug to me. Nesting braces in arguments works, brackets should as well. The following are workarounds: Enclose the inner optional argument in braces (as in the line before %). Redefine your inner function to require its argument instead of using optional arguments. Redefine your outer function to require its argument instead of using optional arguments. Any one of the three works around the issue. (Reposted here; question was originally posted to stackexchange and then closed instead of being migrated.)", "When is $2^n -7$ a perfect square? This came up while solving another ENT problem. I want to ask when is: $$2^n -7 \\text{ where } n\\geq 3$$ a perfect square? Specifically, I also wanted to know what would be the solutions when $n$ is odd? How should I solve this? I can check that $n=3, 4, 7$ are solutions but cannot find more. As it is of the form $4k+1$, it doesn't help as well.", "I have a layer of georeferenced points, and a layer of vectorized borders. Is there a way I can use QGIS to calculate how many points fall within each area of the borders layer?" ]
medi_sts_stackexchange_dupe
Book series in which a world is divided into zones and people get transfigured when going from the hub to a zone
Looking for old book, SF, artificial world, different zones for different species that visitors "inhabit"
[ "Does there exist a bijective $f:\\mathbb{N} \\to \\mathbb{N}$ such that $\\sum f(n)/n^2$ converges? We know that $\\displaystyle\\zeta(2)=\\sum\\limits_{n=1}^{\\infty} \\frac{1}{n^2} = \\frac{\\pi^2}{6}$ and it converges. Does there exists a bijective map $f:\\mathbb{N} \\to \\mathbb{N}$ such that the sum $$\\sum\\limits_{n=1}^{\\infty} \\frac{f(n)}{n^2}$$ converges. If our $s=2$ was not fixed, then can we have a function such that $\\displaystyle \\zeta(s)=\\sum\\limits_{n=1}^{\\infty} \\frac{f(n)}{n^s}$ converges", "Insert Login IP Ranges using apex in salesforce Is it possible to insert to Login IP ranges via apex?", "Prove that if a function $f$ has a jump at an interior point of the interval $[a,b]$ then it cannot be the derivative of any function. Prove that if a function $f$ has a jump at an interior point of the interval $[a,b]$ then it cannot be the derivative of any function. I know that for $f$ is differentiable in $(a,b)$ and that it has one-sided derivative $f_+' (a)≠f_-' (b)$ at the endpoints. If $C$ is a real number between $f_+' (a)$ and $f_-' (b)$, then there exists $c∈(a,b)$ such that $f' (c)=C $. How can I use this to prove the above?", "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.", "I want to update Acrobat Reader for Firefox, but the download has the .bin extension. How can I install it?", "The PS3 version of Portal 2 comes with a code to link it to a Steam account. Apparently this allows you to play on both the PC and PS3 with one purchase. Can this be used to play co-op between the two platforms?", "Why do we need to fork to create new processes?", "\"The volume boot has only 0 bytes disk space remaining\" After a recent update, I'm getting an alert saying: The volume boot has only 0 bytes disk space remaining But my computer has plenty of HD space free. Does anyone know how I resolve this. (If it's relevant, I'm using the whole disk encryption feature of the alternate install image for Ubuntu 12.04).", "I came across this statement while studying electric currents and I am confused: \"There is no electric field inside a conductor. Hence no current can flow through it\". Is there a fallacy in this statement? Any help would be appreciated. The conductor being discussed is ideal. What is the driving force for the current in this case?", "How can I bypass Activation Lock?", "Can a person residing in Singapore on a 5-month Employment Pass apply for a Schengen visa?", "I used node textures in a mesh I exported to .FBX. I then imported it into Unreal Engine 4 and it didn't import any textures; I clicked the Upload Textures option in Unreal Engine. Is there something I'm doing wrong or is it Blender?", "Prove that $$\\cos(\\pi/11)+\\cos(3\\pi/11)+\\cos(5\\pi/11)+\\cos(7\\pi/11)+\\cos(9\\pi/11)=1/2$$ using Euler's formula. Everything I tried has failed so far. Here is one thing I tried, but obviously didn't work. $$\\Re e \\{e^{\\frac{\\pi}{11}i}(1+e^{\\frac{2\\pi}{11}i}+e^{\\frac{4\\pi}{11}i}+e^{\\frac{6\\pi}{11}i}+e^{\\frac{8\\pi}{11}i}) \\}=\\frac{1}{2}$$ $$\\Re e \\{e^{\\frac{\\pi}{11}i}(1+\\sqrt[11]{e^{2\\pi i}}+\\sqrt[11]{e^{4\\pi i}}+\\sqrt[11]{e^{6\\pi i}}+\\sqrt[11]{e^{8\\pi i}}) \\}=\\frac{1}{2}$$ $$\\Re e \\{e^{\\frac{\\pi}{11}i}(1+\\sqrt[11]{1}+\\sqrt[11]{1}+\\sqrt[11]{1}+\\sqrt[11]{1}) \\}=\\frac{1}{2}$$ $$\\Re e \\{5e^{\\frac{\\pi}{11}i} \\}=\\frac{1}{2}$$ $$5\\cos(\\frac{\\pi}{11})=\\frac{1}{2}$$ Which isn't true :D Thanks in advance", "Key uses weak digest algorithm I'am getting this kind of message while updating my ubuntu 16.04 LTS: W: http://dl.google.com/linux/chrome/deb/dists/stable/Release.gpg: Signature by key 4CCA1EAF950CEE4AB83976DCA040830F7FAC5991 uses weak digest algorithm (SHA1) W: http://dl.google.com/linux/chrome/deb/dists/stable/Release.gpg: Signature by key 3B068FB4789ABE4AEFA3BB491397BC53640DB551 uses weak digest algorithm (SHA1) Can anyone help me?", "Modern movie where rich people can buy a personal assistant that sit in a small egg This is a modern movie and rich people can buy this egg with a personal assistant. It's an actual person in it (or a person's mind). I believe it can even operate a toaster. I believe later in the movie, a person (or their mind) can be transferred to such an egg. As a punishment, they increase the speed of time inside that egg to make the person inside the egg bored to death, so to speak.", "How to stop HTTPS requests for non-ssl-enabled virtual hosts from going to the first ssl-enabled virtualhost (Apache-SNI) I hope that title is clear. How do I prevent HTTPS requests for non-ssl-enabled virtual hosts from going to the first ssl-enabled virtualhost (setup is Apache-SNI). For example, using my abbreviated config below, requests for https://example.com (a non-ssl vhost) are being served by Apache at the ssl-enabled vhost https://example.org. I'd like to disable that behavior and possibly reply with the appropriate HTTP response code (unsure of what that is). It may not even be possible, but I thought I'd ask. # I actually have a SNI setup, but it's not demonstrated here. # I don't think it's relevant in this situation. NameVirtualHost *:80 NameVirtualHost *:443 &lt;VirtualHost *:80&gt; ServerName example.org &lt;/VirtualHost&gt; &lt;VirtualHost *:443&gt; ServerName example.org &lt;/VirtualHost&gt; &lt;VirtualHost *:80&gt; ServerName example.com &lt;/VirtualHost&gt; EDIT: Maybe a mod_rewrite rule in the first ssl-vhost?", "Why can't I catch Pokemon in Pokemon Go anymore? I'm level 10 on Pokemon Go. I've caught at least 150 Pokemon, and had no problems. Now, every time I try to catch a Pokemon, no matter the level, it just rolls twice in the pokeball, breaks free, then runs away. Can anyone provide some insight on how to fix this problem?", "I know that there is a precise solution of the equations: \\begin{align} x + a &amp; = 0 \\\\ x^2 + a\\cdot x + b &amp; = 0 \\\\ x^3 + a\\cdot x^2 + b\\cdot x + c &amp; = 0 \\\\ x^4 + a\\cdot x^3 + b\\cdot x^2 + c\\cdot x + d &amp; = 0 \\end{align} Why there is no solutions for equation of degree $\\ge 5$?", "Euclidean geometry in non-inertial frame", "HTTP request parameters are not available by request.getAttribute()" ]
medi_sts_stackexchange_dupe
Rounding a Square Wave
What is the best way to get a sine wave from a square wave?
[ "Word for person who looks for flattery", "Which prepositions are followed by accusative pronouns instead of reflexive pronouns? I have read answers to questions like but I couldn't find a general rule for using \"you\" or \"yourself\", \"him\" or \"himself\" that could explain things I see in some examples. For example, I think that one normally say (according to examples I see in ): You bring something with you. You have something in you. You have something on you. You pressed her to you. But on the other hand one would say: You draw attention to yourself. He killed himself. You can try it out for yourself. As a general rule, it seems that the reflexive pronoun is used when the object is the same as the subject of the verb. But for prepositional phrases, it seems more complicated. Do some prepositions (like \"with\", \"in\", \"on\") always come with the accusative form of the pronoun, and some other (like \"for\") don't? What about \"to\", that seems to be followed by both in different circumstances?", "New profile pages are out - bugs and feedback master list", "How to remove all white spaces just between brackets [] using Unix tools?", "Hair particles render not same as 3dView(Eevee)", "I read through all the related answers, but they do not apply to Ubuntu 14.04. I have no .gnome2 folder and no Passwords and Encryption keys item in the system settings. I tried to crawl through every possible menu, but I could not find out how to do it. The popup usually pops out when I start Chromium.", "Can I use the Twig template engine? I do a lot of development and I like their templating language. , the , looks very much like it. How can I use Twig in Drupal 7 or even Drupal 6?", "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!", "What is the difference between a framework and a library? I always thought of a library as a set of objects and functions that focuses on solving a particular problem or a specific area of application development (i.e. database access); and a framework on the other hand as a collection of libraries centered on a particular methodology (i.e. MVC) and which covers all areas of application development.", "What are some practical examples of a constant current source? Please don't state the obvious that nothing is a perfect constant current source. And please do not give examples of how to create them from components. I looked at this which stated the obvious - that you can not have a perfect current source. So when I say constant current source, I am not referring to the mathematical concept used in circuits, but \"natural\" components that provide a close approximation to this. Key word is approximation. A bit of research pulled up one interesting example which was a solar cell. Is this a valid example? A google search pulls up a similar Quora question . Which gave the example of a solar cell. This is a more technical site and I was looking for a more engineering answer not a mathematical or laymen's answer. Thanks.", "Alternative definition of hyperbolic cosine without relying on exponential function Ordinary trigonometric functions are defined independently of exponential function, and then shown to be related to it by Euler's formula. Can one define hyperbolic cosine so that the formula $$\\cosh{x}=\\dfrac{e^x+e^{-x}}{2}$$ becomes something to be proven?", "I am reading Velleman's \"How to Prove it\", and in one example he proves $\\neg \\exists x P(x) \\implies \\forall x \\neg P(x)$ in the following way: Suppose $\\neg \\exists x P(x)$. Let x be arbitrary. Suppose $P(x)$. Since we have a specific $x$ for which P(x) is true, it follows that $\\exists x P(x)$, which is a contradiction. Therefore $\\neg P(x)$. Since $x$ was arbitrary, we can conclude that $\\forall x \\neg P(x)$, so $\\neg \\exists x P(x) \\implies \\forall x \\neg P(x)$ What makes me confused is the line in bold text, that is \"Suppose $P(x)$\". The reason is that he writes that he is doing proof by contradiction, but $P(x) \\not\\iff \\neg\\forall x \\neg P(x)$. He is not treating all possible cases where $\\forall x \\neg P(x)$ is false by assuming $P(x)$, does he? So how can this be a valid proof by contradiction? Edit: I deleted my first example since it was clearly not representative for the problem. Edit 2: So the thing that I am opposing I guess is that $\\neg \\forall x \\neg P(x)$ is not $P(x)$. And from what I have undestood, a proof by contradiction should use the negation of the consequent which I do not think that Velleman does.", "Custom Post Type Archives by Year & Month? How do you display the archives of a Custom Post Type by Year &amp; Month?", "I was reading the CernCourier, my favorite source of message on Higgs and friends. I was rather shocked, when I saw this: \"The mechanism by which neutrino mass is generated is not known.\" What? Not known? says: In Higgs-based theories, the property of 'mass' is a manifestation of potential energy transferred to particles when they interact (\"couple\") with the Higgs field, which had contained that mass in the form of energy. Does this mean that neutrinos don't couple to the Higgs field?", "I need to run IE 10 in 32-bit mode on 64-bit Windows 7 Enterprise N. When I run IE 10 from \"C:\\Program Files (x86)\\Internet Explorer\" I can see in task manager that I have only one process \"iexplorer.exe\" and no process \"iexplorer.exe *32\". I have an application with an ActiveX that is supported only on 32-bit, and the application can't be loaded on 64-bit mode. Is there a way I can force IE10 to run in 32-bit mode?", "Eigenvalues of Householder matrix What would be the eigenvalues for a Householder matrix defined as: $H = I - 2 u u^T$? Can someone explain it to me intuitively or with a simple proof?", "Is it possible to have an object ignore a certain light source but still be affected by others? I want to create an effect on a character where their skin and clothing are effected by two different light sources. The clothing should only reflect a bright bounce light, but have the skin should not be affected by this light source. In the example image I have two objects a cube, a sphere and three emission lights . I want the two white lights to hit both objects, and I need the purple light to hit and reflect off of the sphere, but ignore the cube entirely (no reflections). Someone suggested to composite the layers together, it works... but this is very impractical and cumbersome because it forces the background to be transparent and it will be a pain to try and layer together a more complex scene, especially if its animated which is what I want this effect for. I know you can have objects ignore shadows and all kinds of other things so im hoping someone knows how to get an object to ignore light with a few settings.", "Macbook Pro hard drive failing?", "Encouraging users to create an account (and keep it)", "Manually installing a program on Debian" ]
medi_sts_stackexchange_dupe
Can Aufbau principle be derived/proved with a definite reason?
Aufbau principle in modern quantum theory
[ "What's the difference between \"it excites me\" and \"that excites me\"?", "The brightness of my laptop is reset to max on every restart. I tried the solution provided at but had no luck. This command cat /sys/class/backlight/acpi_video0/max_brightness Returns cat: /sys/class/backlight/acpi_video0/max_brightness: No such file or directory Then I found that I don't have a folder named acpi_video0, but a folder called intel_backlight: Every time I increase or decrease the brightness using the brightness control keys, the values in brightness and actual_brightness get updated. Is there any method I could follow to set the brightness to a fixed value on every boot and vary it as and when I need it using the brightness control keys?", "Community Wiki posts don't change usernames if the user does", "How can I recover photo files from a memory card with a corrupt filesystem? I know this is not specifically a photography issue but since many of us with prosumer/professional-level DLSRs use Compact Flash cards, it is bound to happen to others as well. I have a Sandisk 16GB Ultra card that occasionally had the camera reporting inability to access the card. I had to reinsert the card to continue using it. I was able to read the card and transfer the photo files to my computer drive. Today, the same thing happened again, just that nearing the capacity of the card, it failed one last time and the camera was subsequently unable to read it anymore. Despite reinsertion. My other CF cards never once exhibited this problem, so it's pretty much isolated to this card. The card is similarly unrecognisable on my computer CF card reader. I think the filesystem is toast, but I suspect the photo files are still intact. I would like to find ways where I can inspect the raw binary data in the card and hopefully recover the photos?", "XML serialization without null XMLArray", "What graphics packages are there for creating graphics in LaTeX documents?", "Let $X, Y$ be an exponentially distributed random variables with parameters $a, b$. Then $X$ has pdf: $$f_X(x) =\\begin{cases} a e^{-a x},&amp; x\\geq 0\\\\ 0,&amp; \\text{otherwise}.\\end{cases}$$ Suppose $X$ and $Y$ independent. Show that $$\\mathbb P(X&gt;Y) = \\frac{b}{a+b}.$$ Now I thought the following: $$f(x,y) = f_X(x)\\ f_Y(y) = abe^{-ax -by},\\qquad\\text{for } x,y &gt; 0.$$ And then $$\\mathbb P(X&gt;Y) = \\int_0^\\infty \\int_0^x a b e^{-ax -by}\\,dydx$$ However, if I solve this (manually or using Wolframalpha), I can't seem to end up with $\\frac{b}{a+b}$. Any ideas?", "What are the limits of the Room of Requirement?", "How to install .deb file in ubuntu using terminal? I am trying to install Google Chrome,for that I downloaded a google-chrome-stable_current_i386.deb file. When I try to install using install in terminal sudo install google-chrome-stable_current_i386.deb It gives following error. install: missing destination file operand after ‘google-chrome-stable_current_i386.deb’ Try 'install --help' for more information.", "How do you generate dynamic (parameterized) unit tests in Python?", "How to delete duplicate LiDAR points? How can I delete duplicate LiDAR points? I incorrectly read the same las twice and saved as a one file resulting in duplicate XY points. How should I delete these duplicate points?", "Why do you need to know who I know on Google? I just created a SE account using my Google account. It said that it needs to \"Know who you are on Google\" (I guess my connections). As far as I know, SE is not a social network. I can't even follow other people (seeing when they post questions and answers). What is the reason you need to know my Google connections? This was on code review. Actually I have an account there, but for some reason it asked me to reconnect. This is the same on MSO; one sees this explained as \"This app is requesting permission to associate you with your public Google profile\":", "I'm using an old iBook G4 (PowerPC) running Tiger to serve iTunes to the house. For the past week or so, the mac boots fine, and then sometime during the day starts generating An unexpected error occurred (error code -50). errors when iTunes attempts to save its library file. Checking reveals that the boot drive (main drive, in the laptop) behaves as if it is write-protected - I get the same error code when I attempt to create a folder on the desktop, for instance. If I attempt to create files via the terminal, e.g. via ls > foo.txt I get an \"invalid argument\" error. I've set the iBook to run in Target Disk Mode and run Disk Utility to repair the disk (from a Macbook running Snow Leopard) and get \"The volume appears to be ok\". I don't have the option in Disk Utility to Repair Permissions in Target Disk Mode. When I ran Repair Permissions on the iBook itself, it came back with no errors, no permissions corrected, but did not in fact fix the problem. Rebooting always solve the problem - for the next 5-10 hours or so. Would Disk Warrior help, or some other software fix, or is it time to buy a new drive? (And, in any case, what's going wrong?)", "Cannot edit post meta fields with rest API I am using python to send POST requests to /wp-json/wp/v2/&lt; post type &gt;/&lt; post id &gt;. This successfully updates standard fields such as title, content etc. However I am unable to make any changes to the custom theme meta fields structured like &quot;post_meta&quot;:{ &quot;meta_1&quot;:[], . . &quot;meta_n&quot;:[] }. When I make a GET request to the same endpoint, the post meta fields are returned so I don't think this is an issue with the fields not being registered? Thanks", "What does $$ mean in the shell?", "How was Nearly Headless Nick unpetrified?", "What is the difference between display: inline and display: inline-block?", "I am new to Game Development, All I have developed is some 2d Games, using Game Maker by . There game development is much more easy, just as simple as Drag and Drop. But, Now I wish to evolve in Game Development, and wanna try some hands with the common programming languages like, Java, C++ or C. In order to achieve this, I came around the first topic, Game Engine. So, What is Game Engine.? That is a broad question, with various answers. I came out with some conclusion after reading various links, Wikipedia: A game engine is a system designed for the creation and development of video games. The core functionality typically provided by a game engine includes a rendering engine for 2D or 3D graphics, a physics engine or collision detection (and collision response), sound, scripting, animation, artificial intelligence, networking, streaming, memory management, threading, localization support, and a scene graph. It exists to abstract the (sometime platform-dependent) details of doing common game-related tasks, like rendering, physics, and input, so that developers (artists, designers, scripters and, yes, even other programmers) can focus on the details that make their games unique. Engines offer reusable components that can be manipulated to bring a game to life. Loading, displaying, and animating models, collision detection between objects, physics, input, graphical user interfaces, and even portions of a game's artificial intelligence can all be components that make up the engine. Now what I understand is, Game Engine takes care of all the common work, like physics, loading etc... As far my question is concerned, what is a Game Engine (Programmatically)? Is it a Library? With pre-defined functions and classes, which can be inherited? Or what so ever, what is it?", "When I apply a glossy shader to the material of my text, the text becomes just black. Why? I have lamp and everything, but the problem persists. The text is red before I add the glossy shader. I'm using Cycles render. Thanks!", "Is there a function to round a float in C or do I need to write my own?" ]
medi_sts_stackexchange_dupe
Tried running sudo apt-get update and it can't find the release files
How can I fix a 404 Error when using a PPA or updating my package lists?
[ "Is AncestryDNA match of 1,655 cM a half sibling? Shared DNA: 1,655 cM across 46 segments. Can someone that shows this as one of my matches on AncestryDNA be a half sibling?", "Show that if $\\sup\\big\\{\\sum\\lvert\\, f(a)\\rvert\\big\\} 0\\}$ is countable. Let $f:A \\to \\mathbb R$ and suppose that $$ \\sup\\Big\\{\\sum_{a\\in F}\\lvert\\, f(a)\\rvert : F\\text{ is finite subset of }A\\Big\\} &lt; \\infty $$ then the set $\\{ a \\in A : f(a) &gt; 0\\}$ is countable. My try: Define these element of ${ a ∈ A : f(a) &gt; 0}$, then $∑_{n=1}^\\infty\\lvert\\, f(a_n)\\rvert$ is determined, regardless of the method of arrangement.", "Floating Objects and Weight The Situation: A ball is placed in a beaker filled with water and floats. It is also attached to the bottom of the beaker via a string. The Question: The ball is attached to the beaker, thus making the ball and beaker (and string included) a system. However, it is floating. Does the ball add to the weight of the beaker?", "How to launch terminal on login How could I get the terminal to be launched once I have logged in, so that typing commands is much simpler?", "What TV movie had lost space cadets who piloted yellow tripod robots, and a squid bad guy? I'm trying to find a movie I watched on TV, probably in the 90s. I think it was a made-for-TV movie. It was about a ship with an AI. The ship was crewed by young adults. I think they were cadets? There was an accident (like a warp drive malfunction) and they end up in another part of space where they meet a female alien whose ship had been shot down. I remember they had manned robots they would pilot and they took them to a planet to get upgraded and they are attacked by more manned robots. They had three legs and they were yellow, I think. I also remember the baddie had a holo-projector or something like that which allowed him to change his appearance. He commanded a massive fleet and he worked for someone he spoke to in a video chat that looked like a squid.", "What is the Taylor series of $$\\ln \\frac{1-x^2}{1+x^2}$$ ? I started by evaluating the first derivatives but the more I go, the more complicated they are and I can't identify a pattern.", "When is $\\mathbb{F}_p[x]/(x^2-2)\\simeq\\mathbb{F}_p[x]/(x^2-3)$ for small primes? I've been considering the rings $R_1=\\mathbb{F}_p[x]/(x^2-2)$ and $R_2=\\mathbb{F}_p[x]/(x^2-3)$, where $\\mathbb{F}_p=\\mathbb{Z}/(p)$. I'm trying to figure out if they're isomorphic (as rings I suppose) or not for primes $p=2,5,11$. I don't think they are for $p=11$, since $x^2-2$ is irreducible over $\\mathbb{F}_{11}$, so $R_1$ is a field. But $x^2-3$ has $x=5,6$ as solution in $\\mathbb{F}_{11}$, so $R_2$ is not even a domain. For $p=5$, both polynomials are irreducible, so both rings are fields with $25$ elements. I know from my previous studies that any two finite fields of the same order are isomorphic, but I'm curious if there is a simpler way to show the isomorphism in this case, without resorting to that theorem. For $p=2$, neither ring is even a domain as $x=0$ is a solution of $x^2-2$ and $x=1$ is a solution for $x^2-3$, but I'm not sure how to proceed after that. Thank you for any help.", "Limit involving the exponential of an expression plus a small-o I'm trying to formalize the following limit: $$\\lim_{x \\to \\infty} \\left[1+\\frac{a}{x}+o\\left(\\frac{1}{x}\\right) \\right]^x= e^a$$ however I can't see how to rigorously show this identity. Any suggestions?", "Add a new repository to software sources", "align vs equation", "How do I add newlines between lines printed on the command line? Mail logs are incredibly difficult to read. How could I output a blank line between each line printed on the command line? For example, say I'm grep-ing the log. That way, multiple wrapped lines aren't being confused.", "Create a local texmf tree in MiKTeX", "If $\\gcd (a,b) = 1$, what can be said about $\\gcd (a+b,a-b)$?", "Confidence bands in case of fitting ARIMA in R?", "Are there any keyboard shortcuts for Windows 10 developer preview's virtual desktops (\"Task View\")?", "Why is the triangle inequality property important for metric spaces? There is a property in the axiomatization of metric space: $d(x,z)\\le d(x,y)+d(y,z)$. I understand that property applies well when it come to the measure of distances among points. However, that property seems to be irrelevant in the definitions of continuity, open set and some other key concepts. My topology book says that it is asserting \"the transitivity of closeness\", a vague term that loses me. So why is that property important? Why did the founders (if any) of topology consider it at the first place? And what if that property is missed?", "How to favorite a question from Android app?", "Equation of the locus of the foot of perpendicular from any focus upon any tangent to the ellipse ${x^2\\over a^2}+{y^2\\over b^2}=1$ Find the equation of the locus of the foot of perpendicular from any focus upon any tangent to the ellipse ${x^2\\over a^2}+{y^2\\over b^2}=1$. will it also be an ellipse?", "I've just had to write a string reverse function in C# 2.0 (i.e. LINQ not available) and came up with this: public string Reverse(string text) { char[] cArray = text.ToCharArray(); string reverse = String.Empty; for (int i = cArray.Length - 1; i &gt; -1; i--) { reverse += cArray[i]; } return reverse; } Personally I'm not crazy about the function and am convinced that there's a better way to do it. Is there?", "What does the word \"SARGable\" really mean?" ]
medi_sts_stackexchange_dupe
Stopping Each Player From Rolling Every Check?
How can metagaming retries on poor skill checks be prevented?
[ "How to create a new partition from the existing partition? I wanna create a new partition from the existing root partition.My root partition is about 250GB.I wanna create a new partition say 150 GB taking space from this root partition.Can anyone help me with the procedure on doing this? output: fdisk -l karthick@karthick:~$ sudo fdisk -l [sudo] password for karthick: Disk /dev/sda: 250.0 GB, 250000000000 bytes 255 heads, 63 sectors/track, 30394 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x28219744 Device Boot Start End Blocks Id System /dev/sda1 * 1 61 487424 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 61 30395 243650561 5 Extended /dev/sda5 61 124 498688 82 Linux swap / Solaris /dev/sda6 124 186 498688 82 Linux swap / Solaris /dev/sda7 186 30395 242651136 83 Linux", "When & How often do 4e Monster powers recharge? How often should I roll power recharge rolls and at which point in the monster's turn do I re-roll them? I'm trying to find the official definition of the recharge mechanic in the online compendium and I'm not seeing it there.", "I'm new to modelbuilder and python. I have used modelbuilder to iterate through all rows in a shapefile (Points), process them, and produce a seperate output shapefile for each row. The filename is generated using an inline variable (I think that is the correct terminology). i.e. all output files have identical filenames except that the value of the PointID from the original input file is appended to the filename to enable them to be distinguished. This works fine. I've also written a python script to take the above output files from the model one at a time and do additional processing. At present the input filename is hard coded into the script (i.e. I have to edit the script to change the input filename each time I run it). Again this works fine while just processing a single file. However, I want to integrate the model and the python script so that I can run the script for each row in the original feature class automatically. My question is therefore, how do I replace the hard coded name of the input file with a variable in the python script and how do I pass the filename to the script.", "Trisect a quadrilateral into a $9$-grid; the middle has $1/9$ the area", "Is the change in the Lagrangian always a total derivative for symmetry transformations of the action? Let $\\Omega\\subset\\mathbb R^n$ and consider an arbitrary functional $$ S\\colon C^k(\\Omega)\\to\\mathbb R $$ that is local, $$ \\phi\\overset S\\mapsto \\int_\\Omega L(\\phi,D\\phi,\\dots,D^k\\phi) $$ for $L$ some $n$-form taking values in the $k$-jet space $J^k\\phi$. We may call $S$ the action functional, and $L$ its associated Lagrangian (although we do not assume that $\\delta S[\\phi]=0$, i.e., we work off-shell). There are two notions of a symmetry that are typically discussed: Lagrangian symmetries, that is, transformations of the form $\\phi\\to\\phi'$ that satisfy $$ L-L'=\\mathrm d\\Theta $$ for some $(n-1)$-form $\\Theta$, and where $L'(J^k\\phi)=L(J^k\\phi')$. Action symmetries, that is, transformations of the form $\\phi\\to\\phi'$ that satisfy $$ S-S'=0 $$ where $S'[\\phi]=S[\\phi']$. If we assume that the boundary conditions are such that $\\Theta|_{\\partial\\Omega}=0$, then it is clear that Lagrangian symmetries are also action symmetries. If we assume that $\\Omega$ is \"nice-enough\" (e.g. star-shaped) then I believe that any action symmetry is also a Lagrangian symmetry, although I would like to have a more precise statement about this fact. In other words, my question is Are these two notions of symmetry equivalent? Under what conditions? Moreover, how much can we weaken the assumptions? For example, can we take $\\Omega$ to be simply-connected instead of star-shaped? Can we take $\\phi$ to only have weak derivatives instead of strong derivatives?", "I'm wondering whether I should use the present tense for a descriptive statement but in a past context. For example: (1) I went to the zoo and saw a giraffe last week. (2) A giraffe is a mammal with long neck. (3) It is the first time I see that animal with my own eyes. Statement (2) is a description of a giraffe in general, not the specific one in the zoo, so is it correct to use is? Statement (3) is an event that is still true now, so should I use is and see? I'm not native speaker so forgive me if the question is very obvious to others.", "How to remove items from the right click (context) menu in Windows? The is minimal and clean on a fresh installation of Windows. Install a bunch of applications and soon the context menu is loaded with all kinds of opening options from various applications. How do I remove items from the right click (context) menu? I find that there are different types of right click menu items: Global items that appear in all context menus. Items that appear only on folders. Items that appear only on files. Items that appear only on special folders (Ex: Right clicking a folder of MP3s shows up a context menu with items like Play with Windows Media Player.) Items that appear only on certain file types (Ex: Right clicking a MP3 file shows up a context menu with items from Windows Media Player/Foobar2000/VLC/your-favorite-media-player begging to open this file.) I want to be able to delete all these kinds items from the right click (context) menu.", "Are keywords in URLs good SEO or needlessly redundant? A coworker and I are locked in a debate over the value of SEO keywords in the URL of a page. She wants to change all the filenames of the HTML pages of a fencing company so they look like residential-home-chicago.html, contact-chicago-contractor.html, and so on. She is convinced that because Google highlights keywords in URLs in search results, that means that putting keywords here is more valuable. My position is that these do not improve SEO, since Google doesn't seem to give keywords in the URL any more weight than keywords in the body of the page, and . In the meantime, they make it harder for me to find the pages I want when its time to edit them, and the site as a whole looks cheap and spammy. suggests to me that yes, keywords in URLs are useful, but not superior, and that they are more useful for human readability than search engine rankings. I'm looking for authoritative sources that support either position, not blog articles from SEO optimization companies trying to promote themselves.", "Postfix SMTP banner show multiple hostnames", "A guide to moderating comments", "What happens to matter in a standard model with zero Higgs VEV? Suppose you reset the parameters of the standard model so that the Higgs field average value is zero in the vacuum, what would happen to standard matter? If the fundamental fermions go from a finite to a zero rest mass, I'm pretty sure that the electrons would fly away from nuclei at the speed of light, leaving positively charged nuclei trying to get away from each other. Looking at the solution for the Hydrogen atom, I don't see how it would be possible to have atoms with zero rest mass electrons. What happens to protons and neutrons? Since only a very small part of the mass of protons and neutrons is the rest mass of the quarks, and since they're flying around in there at relativistic speeds already, and since the nuclear force is so much stronger than the electrical force with an incredible aversion to naked color, would protons and neutrons remain bound assemblages of quarks and virtual gluons? Would they get a little larger? A little less massive? What would happen to nuclei? Would they stay together? If the protons and neutrons hold together and their properties change only some, then I might expect the same of nuclei. Different stable isotopes, different sizes, and different masses, but I would expect there would still be nuclei. Also the W and Z particles go to zero rest mass. What does that do to the electroweak interactions? Does that affect normal stable matter (outside of nuclear decay modes)? Is the weak force no longer weak? What happens to the forces overall?", "I'm trying to wrap my head around how SQL Server decides to grant certain rights based on a users login privileges. If a user is part of a group \"READ ONLY\" which has access to DB1, but they are also a part of a group \"SysAdmin\" which has full db owner rights to the same DB1, which rights are they given when they log in? On a similar note. What if they are part of a group but also have a standalone account with other middle of the road privileges?", "Possibly offensive usernames I flagged as having a (): I said \"possibly offensive\" because it's possible it's a genuine surname I wasn't aware of, but googleing didn't show any evidence and pretty much matched my definition of it which seems offensive. Is this really a genuine name? If not how is it possibly not offensive and thus a bad flag? (I flagged in good faith so even if it is a genuine name declining seems harsh)", "Given two date ranges, what is the simplest or most efficient way to determine whether the two date ranges overlap? As an example, suppose we have ranges denoted by DateTime variables StartDate1 to EndDate1 and StartDate2 to EndDate2.", "If $A\\subseteq\\mathbb N$ and $\\sum\\limits_{a\\in A}\\frac1a$ converges then $A$ has natural density $0$ In this to a question about a series, a theorem was stated: If $A= \\{a_i \\}$ is a set such that $\\sum_{i = 1}^{\\infty} \\frac{1}{a_i}$ converges, then $d(A) = 0$, where $d(A)$ is the of the set. My background in number theory is basically zero and all my attempts to prove this have been utterly unseccessful; would anyone please help me, or at least provide me with a hint to prove it?", "Refreshing open attribute table in ArcMap using ArcPy rather than ArcObjects? I am running the Calculate Field GP tool from the arcpy in ArcMap. When a row value is updated, it does not show up untill I use the Reload Cache tool (Table Options > Reload Cache). How do I refresh the attribute table automatically without using ArcObjects? I have tried updating the definition query as @blah238 suggested , but this doesn't help. Resetting the data source is not an option because the feature class might be in the editing session and I don't want to lose the connection to the source data.", "How do I boot to a command line interface instead of a GUI? Hi I have ubuntu server 10.04 installed and I also installed the following: su aptitude install xorg xfce4 aptitude install &lt;name of GUI browser, I use firefox&gt; aptitude install gedit aptitude install gnome-terminal Now when I restart the system it goes to the GUI login, what I am really after is a system that loads the CLI by default and then I can use startx to load the GUI when really necessary. I am trying to learn CLI but I would like to retain access to the GUI for now. And, how can I switch between CLI and GUI anytime?", "Character vs Charm - Pronunciation Is there a rule to understand how the group \"Cha\" has to be pronounced? \"Character\" sounds with a hard first syllable, while \"Charm\" sound softer, but I don't find how to tell which sound to use before earing someone saying the word. It could be because of the double consonant \"rm\" vs \"ra\"? Or is it just a matter of knowing the rule for every single word? EDIT: More specifically, let's talk about UK English pronunciation.", "Rank correlation statistics comparison I am trying to understand the relative behavior of the following rank correlation statistics: Spearman coefficient Kendall Tau / Concordance percentage Normalized Gini coefficient (area under curve of percentage captured versus percentage observations) Normalized Area under ROC curve (for binary classifiers) I don't believe any of these are functionally related to the others. The accepted answer references and Spearman and Kendall are highly correlated (as one would expect). Are there good intuitions behind/discussions of relative (across datasets) or absolute (for a given dataset) differences for (any pair of) these measures?", "If $z_{1},z_{2},z_{3}$ are three complex number Such that $|z_{1}| = 2\\;\\;,|z_{2}| = 3\\;\\;, |z_{3}| = 4\\;\\;$ Then $\\max$ of $|z_{1}-z_{2}|^2+|z_{2}-z_{3}|^2+|z_{3}-z_{1}|^2$ $\\bf{My\\; Try::}$ Let $z_{1}=2\\left(\\cos \\alpha+i\\sin \\alpha\\right)$ and $z_{2}=3\\left(\\cos \\beta+i\\sin \\beta\\right)$ and $z_{3}=4\\left(\\cos \\gamma+i\\sin \\gamma\\right)$ So $$f(\\alpha,\\beta,\\gamma) = 58-\\left[12\\cos(\\alpha-\\beta)+24\\cos(\\beta-\\gamma)+16\\cos(\\gamma-\\alpha)\\right]$$ Now How can I calculate $\\max$ of $f(\\alpha,\\beta,\\gamma)$ Help me Thanks" ]
medi_sts_stackexchange_dupe
Evaluating $\tan\left(\sum_{r=1}^{\infty} \arctan\left(\frac{4}{4r^2 +3}\right)\right)$
arccot limit: $\sum_{r=1}^{\infty}\cot ^{-1}(r^2+\frac{3}{4})$
[ "How can I improve my color selection skill? I'm a web developer, started to become a web designer. However, I think my understanding of colors is not practical yet. There are tools out there that can give you color harmonies, and more stuff, like , but they don't give you the start point. I mean, how should I know that for this web site, I'd better use green and for that website, choose red. How should I know that? I think color selection is more like an art, instead of being a science, and I'm like \"you should become an color artist, in order to become a web designer\". How can I improve my color selection skill?", "What should a physics undergrad aspiring to be a string theorist learn before grad school? The question I guess is pretty clear. I am a physics undergrad wishing to pursue research in quantum gravity(string theory?). What are the subjects I should learn other than the usual compulsory undergrad courses such as quantum mechanics, and GR, etc? Things that come to my mind are QFT, lie algebras, differential geometry, algebraic geometry etc? Other than this, could you suggest any topic that are not entirely essential but interesting in mathematical physics, gauge theory etc (e.g. solitons, monopoles etc). Actually I am looking for a mini project of sorts which would give me an idea of what these fields really are. I have done some lie algebras, classical field theory and am currently studying QM.", "Programmatically create a user and assign a role", "Converting Linux into a Router- Traffic from eth0:0 to eth0 So I have been trying to convert my linux box which is running Mint into an router. eth0 has a public address that has 71.xx.xx.xx for an IP addr. I created an eth0:0 and set it an IP address , 10.0.0.100. I started a DHCP server that is on eth0 ( because it wont use eth0:0) and that's giving out addresses between 10.0.0.101 and 10.0.0.200. I can ping between eth0 and eth0:0 on the same machine. I have a another laptop connected to the linux via a switch and its able to receive an ip addr via the DHCP server. Problem is how do I route traffic from and to eth0:0 to eth0 and vice versa so that computers on the private network that is 10.0.0.x can access internet via the static IP on eth0.", "How to pad multiple strings when writing to console so that part is aligned left and part is aligned right?", "Get Label value for specified language", "NULL values inside NOT IN clause This issue came up when I got different records counts for what I thought were identical queries one using a not in where constraint and the other a left join. The table in the not in constraint had one null value (bad data) which caused that query to return a count of 0 records. I sort of understand why but I could use some help fully grasping the concept. To state it simply, why does query A return a result but B doesn't? A: select 'true' where 3 in (1, 2, 3, null) B: select 'true' where 3 not in (1, 2, null) This was on SQL Server 2005. I also found that calling set ansi_nulls off causes B to return a result.", "What is the difference between AOSP and AOKP?", "How to design a product table for many kinds of product where each product has many parameters", "I'm trying to include graphics in my Latex-file, which I compiled with latex+dvipdf on OS X. Latex however returns this error: \"Cannot determine size of graphic\" My graphic is exported from PowerPoint, so I have tried both .pdf and .png. I get the same errors for both. Sample code that doesn't work: \\begin{figure}[htb] \\begin{center} \\leavevmode \\includegraphics[width=0.8\\textwidth]{graph.png} \\end{center} \\end{figure} If I have to manually set some measurements of the image, please tell me how I can find out those measurements. I need the image to take up about 80% of text width and be centered. Thanks.", "A sci-fi book or TV show about a tribesman discovering he or she actually lives in a huge spaceship", "Prove the set of all infinite binary sequences is uncountable by using Cantor's theorem. This is different then the other versions of the questions here. I'm not supposed to use the diagonal argument. I'm looking to write a proof based on Cantor's theorem, and power sets.", "Circular duplicates in the close review queue?", "Why intra-word ** highlighting is broken to protect programming_underscore_usage?", "In the definition of , I read the following text: Many of the act's provisions were to sunset beginning December 31, 2005, approximately 4 years after its passage. In the months preceding the sunset date, supporters of the act pushed to make its sunsetting provisions permanent, while critics sought to revise various sections to enhance civil liberty protections. In July 2005, the U.S. Senate passed a reauthorization bill with substantial changes to several sections of the act, while the House reauthorization bill kept most of the act's original language. The two bills were then reconciled in a conference committee that was criticized by Senators from both the Republican and Democratic parties for ignoring civil liberty concerns. What does sunset mean? In which cases can the word be used with a similar meaning?", "Why is jumping into water from high altitude fatal?", "Intel HD Graphics 620: Does my display adapter support HDMI 2.0 necessary for a 4k display? I want to connect my laptop (Inspiron 15 5000 Series) to a 4k display. When I read online about this it seems that HDMI 2.0 is a necessaity to handle the large resolutions / refresh rates involved to get full benefits of a 4k display. Use case: I'm not going to use this to play games. Most of my use-case is editing documents, emails, spreadsheets and some engineering drawings and video (watching not editing). The goal behind going 4k is to boost productivity by having more things open at once to read side by side. I looked into the Dell specs and they only mention an HDMI without going into the details of what type or whether it will support HDMI 2.0 / 4K TV. How do I tell whether my Dell Inspiron Laptop (i7 7500 U processor) supports this? I looked under the Display Adapters and can see that I have an \"Intel HD Graphics 620\" listed. Will this suffice to tell me if this display adapter will support HDMI 2.0 / 4k display? Or should I be checking out some other settings? Thanks!", "Are there any other words similar to these words: Award, Bestow, Donate, Grant, Give, Provide, Tax ...that give a meaning of: I freely give to you a portion what I have acquired or earned, without hesitation or expectation of anything in return. You are owed this, without question. There is no emotion involved with this transaction. It just is what it is. For example: as a member of the Thief's Guild, 20% of everything you acquire will be ______ to the Guild. Bestowed and Granted are very close... Any other ideas?", "Bluetooth Broadcom 43142 isn't working", "Please revisit the CAPTCHA & China issue Back in 2012 when China first blocked all Google services, thereby preventing non-VPN users from proving their non-roboticness, someone quickly opened this thread on Meta: The consensus at the time was \"we can't think of a better way of doing things\". Well, 3 years have passed and China is showing no signs of unbanning Google. Meanwhile, CAPTCHA technology has evolved. Can the SE admins please revisit this situation? People in China without a VPN are completely unable to prove they are not bots. I couldn't even search for the phrase \"pgp\" on Security.SE without hitting the human verification barrier. Blocking questions is one thing, but searches also? I think that's too strict. (yes, I wrote this with my VPN)" ]
medi_sts_stackexchange_dupe
Javascript unload event handling
Detecting the onload event of a window opened with window.open
[ "If a mass moves close to the speed of light, does it turn into a black hole?", "Is there a dominant gene for right-handedness? Has there been any definitive research about handedness being genetic? Also, why is right-handedness clearly dominant in humans? I'm interested in evolutionary theories, as well as any molecular explanation (if known).", "How do I get the difference between two Dates in JavaScript? I'm creating an application which lets you define events with a time frame. I want to automatically fill in the end date when the user selects or changes the start date. I can't quite figure out, however, how to get the difference between the two times, and then how to create a new end Date using that difference.", "Dropping Internet connection on Realtek Semiconductor Co., Ltd. RTL8821AE I have continuous problems of network dropping connections on wifi with ubuntu 16.04, I have an ASUS R510J, this is my network card: ##### lspci ############################# 03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821AE 802.11ac PCIe Wireless Network Adapter [10ec:8821] Subsystem: AzureWave RTL8821AE 802.11ac PCIe Wireless Network Adapter [1a3b:2161] Kernel driver in use: rtl8821ae 04:00.1 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 12) Subsystem: ASUSTeK Computer Inc. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1043:200f] Kernel driver in use: r8169 sudo service network-manager restart doesnt's help, as I never regain internet connection after it drops, and I have to restart the PC. On Ethernet cable I have no problem. What do you think is the issue? drivers? thank you", "Converting FLV to MP4 Using FFMPEG and Preserving the Quality Im trying to use ffmpeg to convert my flv files to mp4 to play them on iOS devices but the converted video has a much worse quality than the original one. Here is the command i use: ffmpeg -i input.flv -ar 22050 output.mp4 I would really appreciate if someone could provide me with the best settings for flv to mp4 conversion.", "Cycle Normal Pass in Camera Space", "Do extension fields always belong to a bigger field? Let $F$ be a field, $E_1$ and $E_2$ are two distinct extension fields of $F$. Is it the case that we can always somehow find a field $G$ that contains both $E_1$ and $E_2$? In other words, could extensions of fields have different 'direction's such that they are incompatible? Edit: I began to think about this problem while reading a proof. $F$ is a field. $a$ and $b$ are algebraic over $F$. $p(x)$ and $q(x)$ are two polynomials in $F[x]$ of minimum degree that respectively make $a$ and $b$ a zero. The proof claims that there is an extension $K$ of $F$ such that all distinct zeros of $p(x)$ and $q(x)$ lie in $K$. For a single polynomial, I know this kind of field exists because of the existence of splitting field, why it is true for two polynomials?", "What does the number in parentheses shown after Unix command names in manpages mean? For example: man(1), find(3), updatedb(2)? What do the numbers in parentheses (Brit. \"brackets\") mean?", "What does this black-font Israeli stamp on my Passport mean? I applied for B2 Tourist visa at Israel embassy in New Delhi last week. But my visa application got rejected and stamped a black stamp on my passport. What does black stamp mean? After how much time should I reapply for tourist visa?", "Oddly wide spaces in subsection title I have a problem, this is what it looks like: And this is the code: \\subsection{Bakterienst\\\"amme und Anzuchtbedingungen} Where does the huge whitespace come from?", "Is it possible to extrude a curve in two directions? I want to extrude a curve in two directions. Or join both curves into one, is it possible? I've tried copying it and then join segments, but I don't see Remove Doubles option while working with curves.", "Suppose that $X_1, \\ldots, X_n \\sim N(0,1)$ are independent random variables. I am interested in finding a constant C that satisfies: $$ E\\left[\\max_{1\\leq i\\leq n}|X_i|\\right] \\leq C \\sqrt{log\\ n} $$ I know one method is to employ the moment generating function trick, then take logs of both sides. However, I was wondering if there exists a more direct method. thanks!", "Does infinity exist in physical systems? Sometimes people fail at asking a question by being too broad, unclear like . So I'll take a stab at what I believe to be the same question, but more concise and clearly stated: Does infinity exist in either terms of structure, parameters, or measurement in any physical systems? Can infinity have any real connection with reality? Or is infinity purely a mathematical concept just used by physicists as a convenient way to describe the very large, an approximation? I have heard that if you model a physical system (), and you run into infinity as a solution, then you have either made an error in your calculations or your model is wrong.", "Boot stuck at logo screen after upgrading to 14.10", "How to mount a remote (over SSH) directory to be available like a local directory (incl. in shell, not just in Gnome)?", "How to remove \":\" (colon) when displaying field name? I created a custom content type with some text fields. In the view settings of that content type I defined both to appear and as well their titles (names of the fields) to be displayed above the content of the fields respectively. But how can I remove the trailing colon of the titles? Is there a way of modifying the way field names are display just for certain content types? I do not want this altered site wide (e.g. for all fields of all content types). PS: I'm already using the \"views\" module to define a special layout for this custom content type. Probably there is a way to carry out these changes with the help of the \"views\" module and a custom layout template? /edit/ I did not create a view (as with the \"views\" module) to display that content but used Drupal's own content type view configuration (maybe called \"display\"). I'm working with a localized Drupal and retranslating the different words. Remark: Using Drupal 7.10 with Views 7.x-3.0-rc3", "If a Matrix Has Only Zero as an Eigen-Value Then It Is Nilpotent Prove that a matrix with only zero eigenvalues must be nilpotent. How will I be able to prove this?", "how I can continue this limit resolution? The limit is: $$ \\lim_{n \\to \\infty}{\\sqrt[n]{\\frac{n!}{n^n}}} $$ This is that I have done: I apply this test: $ \\lim_{n \\to \\infty}{\\sqrt[n]{a_n}} = \\frac{a_{n+1}}{a_n} $ Operating and simplifying I arrive to this point: $$ \\lim_{n \\to \\infty}{\\frac{n^n}{(n+1)^n}} $$ I've done something wrong? Thanks!", "I was wondering if it was possible to use any of the API's provided by SF to build an external (C#, Java) application to manage building changesets. Building changesets is very tedious when trying to include 100's of items and I was hoping to streamline the process for our team by building an application I can load an excel file to with the required components and have it build the outbound changeset.", "There are a variety of characters that are not legally encodeable in XML 1.0, e.g. U+0007 ('bell') and U+001B ('escape'). Most of the interesting ones are non-whitespace 'control' characters. It's clear from (e.g.) and others that it's -- but can anyone illuminate me as to why the XML spec forbids these characters? It seems like it could have been required that they be encoded in escapes, e.g. as &amp;#x0007; and &amp;#x001B; respectively, but perhaps there's a practical reason that the characters were forbidden rather than required to be escaped? Answerers have suggested that there is some motivation towards avoiding transmission control characters, but Unicode includes many other control-like characters (consider U+200C \"zero width non joiner\"). I recognize there may be no good reason for this behavior, but I would still like to understand it better. It's particularly frustrating because when those character values appear in other encodings data formats, I end up \"double-escaping\" new XML documents that need to encode this." ]
medi_sts_stackexchange_dupe
How to get click event on a new created row with Jquery
Event binding on dynamically created elements?
[ "After a lot of messing around today I curiously observed that $a^2+b^2$ is only divisible by 3 when both $a$ and $b$ contain factors of 3. I am trying to prove it without using modular arithmetic (because that would be way too easy), but finding it very difficult to do so. Is there an easy way to prove this without using modular arithmetic? I am also interested in a more general statement. Namely, I want to find the values of $Z$ for which $Z \\mid \\left( a^2+b^2 \\right)$ necessarily implies that $Z \\mid \\gcd \\left( a,b\\right)$. We know that $Z$ cannot be 5, because $3^2+4^2=5^2$. More generally, if $Z$ is the largest element of a pythagorean triple then the above implication does not hold.", "how to change my hostname? My hostname is localhost, reported by hostname command, and terminal prompt root@localhost:~#. How can i change it to mismis.com with mismis alias? and what is the proper configuration. I confused after reading some articles on web. My /etc/hosts: 127.0.0.1 localhost 127.0.1.1 srv345.myweb.com srv345 178.162.231.61 janstone.mismis.com janstone # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters", "From Geneva airport to Lausanne station On September 4, I will be arriving in Geneva by airplane at approximately 11 AM. After that, I need to go to Lausanne. I have two questions: Do I need to buy a train ticket online, or can I buy it directly at the station without any problems? (Problems such as: the trains are always full, it's not permitted to buy a ticket etc.) Moreover, are the tickets only for a specific train or it is like \"you can board any train from Geneve to Lausanne with this ticket\"? How do I get from the airport to the Geneva train station (as low a budget as possible, I guess walking is not an option though), and how much does it cost? I'd appreciate answers from people who have been there, but if you're able to find an exhaustive link from any website that's okay too.", "Find the image of (1,1,1) by T Question: Find the image of (1,1,1) by T $$T(x,y,z) = (y,6y,x+y+z)$$ I found the standard matrix to be: \\begin{bmatrix}0&amp;1&amp;0\\\\0&amp;6&amp;0\\\\1&amp;1&amp;1\\end{bmatrix} I'm confused on how to approach this question. In order to find the image is it possible to inverse the values of it's standard matrix? Would I able to use the identity matrix of 3 and inverse the values of that to find the image? Any help will be greatly appreciated.", "What are best practices/important steps when the Windows Server machine hosting SQL Server 2008 R2 is moved to another domain? What steps definitely/might need to be done for SQL Server before and after the new domain is joined?", "Determine file type of an image I'm downloading some images from a service that doesn't always include a content-type and doesn't provide an extension for the file I'm downloading (ugh, don't ask). What's the best way to determine the image format in .NET? The application that is reading these downloaded images needs to have a proper file extension or all hell breaks loose.", "Assuming this is on the way, but having not seen it previously reported: I can't view myself from the sidebar, or anyone else by tapping them. View Self From Sidebar: View Asker/Answerer: View Commenter:", "How can I invert a 'clip' selection within TikZ? I wish to draw an arc for a reflex angle on the outside of a triangle with coordinates (A), (B) and (C). If I wanted to draw the arc inside the triangle I could use something like \\begin{scope} \\path[clip] (A) -- (B) -- (C) -- cycle; \\draw (B) circle (2mm); % this is the little angle marker \\end{scope} Is there a straightforward way to exclude the part of the circle that's in the triangle, as in the pseudo-code below? \\begin{scope} \\path[magicalinverseclipcommand] (A) -- (B) -- (C) -- cycle; \\draw (B) circle (2mm); % this is the little angle marker \\end{scope} EDIT: Although I included the code above as a motivating example of what an inverse clip would do, I would prefer a general solution that works systematically with any closed path, and not just in the particular example of a triangle with a circle clipped out of it. Looking at my question, I realise this isn't clear, and I will be happy with the best solution to my particular problem, but wonder if there is a less ad hoc solution than those listed so far.", "SQL Server: Examples of PIVOTing String data", "Are there good reasons why it's a better practice to have only one return statement in a function? Or is it okay to return from a function as soon as it is logically correct to do so, meaning there may be many return statements in the function?", "\"Give him a box that everyone knows what it contains.\" Is this correct English? It sounds wrong to me.", "I have a UK Refugee passport. Do I need a visa to go to France? I want to go for two days with my husband, but I'm not quite sure if I can go without a visa.", "How to comment lines in rails html.erb files?", "Does the (relativistic) mass change? Why? I learned recently that when an object moves with a velocity comparable to the velocity of light the (relativistic) mass changes. How does this alteration take place?", "How to find solutions of linear Diophantine ax + by = c? I want to find a set of integer solutions of Diophantine equation: $ax + by = c$, and apparently $\\gcd(a,b)|c$. Then by what formula can I use to find $x$ and $y$ ? I tried to play around with it: $x = (c - by)/a$, hence $a|(c - by)$. $a$, $c$ and $b$ are known. So to obtain integer solution for $a$, then $c - by = ak$, and I lost from here, because $y = (c - ak)/b$. I kept repeating this routine and could not find a way to get rid of it? Any hint? Thanks, Chan", "How to prove that any (integer)$^{1/n}$ that isn't an integer, is irrational? Is my proof beneath perfect and complete? I wanted to prove that for any nth root of an integer, if it's not an integer, than it's irrational: $$\\begin{cases} m,n\\in \\mathbb{N}\\\\\\sqrt[n]{m}\\notin \\mathbb{N} \\end{cases}\\implies \\sqrt[n]{m}\\notin \\mathbb{Q}.$$ I start by assuming that $m^{\\frac 1n}$ is rational and non-integer. So there exist co-prime integers $a,b$ so that $$\\sqrt[n]{m}=\\frac{a}{b}$$ $$\\implies m=\\frac{a^n}{b^n}\\in\\mathbb{N}.$$ But since $a$ and $b$ have no common factor, $a^n$ and $b^n$ also have no common factor. So: $$\\frac{a^n}{b^n}\\notin\\mathbb{N},$$ a contradiction.", "I am constructing a thought experiment about a spinning object that is floating in intergalactic space. I assume that this object is about the size of a planet so that it will have enough gravity so that a Foucault pendulum will work, although I'm not sure that this is necessary for the thought experiment. I can easily determine that this object is spinning if I stand on the object and observe the galaxies around me rise and set. Similarly, I can determine the axis of rotation. For simplicity, I go to one of the poles of my object, and I set up my Foucault pendulum. What will I see? And why will I see it? I assume that in intergalactic space, the gravity is very small (galaxies are very far away, and the mass of my object is very small compared to the mass of a galaxy) so that there will be little coupling between the gravitational field of my object and the gravitational field of the galaxies around me.", "I am just curious that the following format looks good to you or not? The preamble I used is just \\documentclass[12pt,a4paper]{article} \\usepackage{amsmath} \\usepackage{amsthm} \\usepackage{amssymb} I don't feel it's so good because the first paragraph has no indent but the second does. If the first paragraph is much longer, than it's fine. But if not, it looks strange. Should I leave it, or you have suggestions for this?", "I'm looking to cite a number of web pages using bibtex and I was wondering if there was a specific template of the form @&lt;template name here&gt; for doing that. If you could use the following website as an example that would be great", "Name for categorical product inside a monoid If a monoid is a category with a single object, is there a \"monoid-theoretical\" concept that the categorical product translates to? As an analogue, in a poset the product translates to the notion of meet (and the coproduct to its dual, the join). Just by unwinding the definition one can see that this boils down to the existence of two monoid elements $p_1$ and $p_2$ such that for every $x$ and $y$ in the monoid there's a unique element $\\langle x,y \\rangle$ that factors as $x = p_1\\langle x,y \\rangle$ and $y = p_2\\langle x,y \\rangle$; the question is whether the concept is a known and/or useful one. Incidentally, if the monoid in question is a group then the existence of a product makes the whole thing collapse into the trivial group; this might or not hint that the concept I'm looking for is \"too boring\" to have a name. In fact it suffices for one of the projections to be right cancellable, or for the pair $\\langle x,x\\rangle$ to be left cancellable for some $x$, to make the whole thing collapse." ]
medi_sts_stackexchange_dupe
Python interface for R Programming Language
How do Rpy2, pyrserve and PypeR compare?
[ "What is wrong with this fake proof $e^i = 1$?", "Like when you want to say that you'll tell a short version of something which would alter the accuracy of the original version. I was thinking of \"In a nutshell\" and \"To make a long story short\", but I felt like those phrases did not place emphasis on the \"there might be an insignificant loss of accuracy\" aspect.", "There is an image in the Wikipedia about the : I have a rough understanding of the stress tensor: you imagine cutting out a tiny cube from the fluid and form a matrix out of the forces on each side of it: it's not hard to see that the forces that push the faces outwards so the x direction of the force on the x side, the y direction of the force on the y side, etc. is the pressure, while other forces directions are the shear stress (these can be non-zero is some jelly-like substance). Now the first question: Why is the lower half of the spatial part is the momentum flux, while only the upper one is the shear stress on the image? Is the image wrong? Isn't the spatial part describe the classical stress tensor? The second question is: what's the intuition behind the temporal part? So if I have a Minkowski spacetime and cut out a cube of it, then it's quite hard to see why \"pressure\" on the temporal face means density, also why \"shear stresses\" on the temporal face translate to momentum density, not speaking of the \"temporal force components\" the spatial faces... Also stresses are measured in Pascals, mass density is measured in $kg/m^3$ while momentum density is in the units of $Ns/m^3$. These units doesn't seem to be compatible, but still they are in the same matrix, why? EDIT: It has been pointed out that momentum flux refer to the entire blue part, it indeed have a lighter frame I didn't notice. Then yet another subquestion: what's the difference between the momentum density and momentum flux?", "Clusering based on categorical variables? I am working on a project and currently experimenting cluster analysis. The dataset is mainly categorical variables and discrete numbers. Please pardon my poor programming skills as I am not very familiar with MathJax, but I will try to summarize the data set in words in the following three examples. imagine column 1 is participants names of course, from column2 - 5, each column's value range from 1 (least important) - 5 (most important). so in this case, column 2-8 only have discrete data. column 6 for example, since this is a multiple choice question. row 1 chose \"nice\" as an answer, however, row 2 chose \"poor\". In this case, we have one column that contains multiple categorical answers. for column 7-9, this is another type of multiple choice questions. However this time, each column represents only one answer. column 7 only allows string values \"true\", column 8 only allows string \"somewhat\". So in this case, we have multiple columns that represent multiple answers of the same question. Any ideas how to solve this? Thankful to any input! A2 A3 A4 A5 A6 A7 A8 A9 1 4 5 4 nice true somewhate false 2 4 3 1 poor true false 1 5 2 1 nice somewhate 3 2 1 5 nice true false", "Does Thunderbolt support chaining multiple monitors to a MacBook Pro? This has always been a big want for me. I love using multi-monitor setups but only want a single laptop. Does the 2011 MBP Thunderbolt support chaining multiple monitors together? I know that you can add a monitor and say, a few hard drives, but can you connect it to 2 27\" monitors and your flat screen TV (for example)? Thanks!", "Make rigid body collide with hair particles", "How do I handle elastic contacts in a simulation with friction I'm trying to simulate a wheel as it hits the ground. Problem 1 Suppose a disc is dropped from a height. It has initial velocity of $-x,-y$ caused by throwing and gravity. It has no initial angular velocity. When it hits the ground it should have some rotation resulting from the collision. How to calculate force that caused torque for that rotation? Problem 2 The same disc is dropped from height. It doesn't have velocity on the side direction. It already spinning fast. When it hits the ground the spinning should cause some translation. How to calculate force that caused this linear acceleration? Some rotation must be lost in the collision, how to calculate that? To simplify assume static $friction = 1$ and $g = -10$.", "How to insert the content of a file into another file before a pattern (marker)? File1 contents: line1-file1 \"1\" line2-file1 \"2\" line3-file1 \"3\" line4-file1 \"4\" File2 contents: line1-file2 \"25\" line2-file2 \"24\" Pointer-file2 \"23\" line4-file2 \"22\" line5-file2 \"21\" After the execution of perl/shell script, File2 content should become: line1-file2 \"25\" line2-file2 \"24\" line1-file1 \"1\" line2-file1 \"2\" line3-file1 \"3\" line4-file1 \"4\" Pointer-file2 \"23\" line4-file2 \"22\" line5-file2 \"21\" i.e paste the contents of File1 in File2 before the line that contains \"Pointer\".", "I have a VB background and I'm converting to C# for my new job. I'm also trying to get better at .NET in general. I've seen the keyword \"T\" used a lot in samples people post. What does the \"T\" mean in C#? For example: public class SomeBase&lt;T&gt; where T : SomeBase&lt;T&gt;, new() What does T do? Why would I want to use it?", "Dual boot Ubuntu (14.04) with Windows 10", "I have ran into some issues when it went down to install Steam on Debian. The console as well as Apper comes up with missing dependencies and the package isn't going to install.", "How to write the word 'smart phone' in a research article? Smart phone Smartphone Smart-phone I am really looking for some help regarding hyphen (-) issue in text found in research article. Is there any standard method how to use it?", "When to use (and not use) the rule of three", "How Do I Opt Out of Privileges? According to , gold badge holders can now unilaterally close questions as duplicates. I hold seven gold badges for tags on SO, which means I can, on my own, close questions as duplicates for those tagged questions. Simply put: DO NOT WANT. However, I do not see any ability in SO (the only SE site I spend much time in) to opt out of any privileges, let alone this one. Is there a spot that I'm just not seeing that allows me to turn off this new privilege?", "If a Matrix Has Only Zero as an Eigen-Value Then It Is Nilpotent", "Is there a way I can share the 3.42 GB download of Windows 8.1 from Windows Store?", "Python idiom to return first item or None I'm sure there's a simpler way of doing this that's just not occurring to me. I'm calling a bunch of methods that return a list. The list may be empty. If the list is non-empty, I want to return the first item; otherwise, I want to return None. This code works: my_list = get_list() if len(my_list) &gt; 0: return my_list[0] return None It seems to me that there should be a simple one-line idiom for doing this, but for the life of me I can't think of it. Is there? Edit: The reason that I'm looking for a one-line expression here is not that I like incredibly terse code, but because I'm having to write a lot of code like this: x = get_first_list() if x: # do something with x[0] # inevitably forget the [0] part, and have a bug to fix y = get_second_list() if y: # do something with y[0] # inevitably forget the [0] part AGAIN, and have another bug to fix What I'd like to be doing can certainly be accomplished with a function (and probably will be): def first_item(list_or_none): if list_or_none: return list_or_none[0] x = first_item(get_first_list()) if x: # do something with x y = first_item(get_second_list()) if y: # do something with y I posted the question because I'm frequently surprised by what simple expressions in Python can do, and I thought that writing a function was a silly thing to do if there was a simple expression could do the trick. But seeing these answers, it seems like a function is the simple solution.", "raw_input in python without pressing enter", "Changed permissions of / to user", "Script to raise a single window to the front" ]
medi_sts_stackexchange_dupe
Using Private Styles in Android
Android: Using default styles
[ "Does changing your Compute Device, change all computes of Blender? So, I have recently moved from using Blender, on my family's Nettop PC, to my personal, gaming PC. And with this move, came to option to use CUDA instead of CPU. Which leaves the question, if I move to CUDA, does that change all computing, for like physics baking, or only for rendering? Just a nooby question that I wanted to know, and yes, I know you can specify GPU rendering separately.", "Another question I am struggling with: Let $f:\\mathbb{R} \\rightarrow \\mathbb{R}$ be defined in a neighborhood of $a$ (except maybe $a$ itself) and suppose that, $\\lim_{x \\rightarrow a}\\left(f(x)+\\dfrac{1}{\\left|f(x)\\right|}\\right)=0$. Find $\\lim_{x \\rightarrow a}f(x)$, and prove by definition, that this is indeed the limit. Thank you all for your answers!! But.. How can I prove by definition that this is indeed the limit? take $\\epsilon&gt;0$, I have to show that there exists a $\\delta&gt;0$ such that, $|x-a| \\leq \\delta$ implies $|f(x)+1| \\leq \\epsilon$. now, I do know that there exists an $\\delta_1&gt;0$, such that $|f(x)+\\frac{1}{|f(x)|}|&lt; \\epsilon$.Or, $\\frac{\\epsilon}{k}$ for some constant $k$ But, how can I continue from there?", "Kernel requires an x86-64 CPU, but only detected an i686 CPU. How can I install Lubuntu/Ubuntu? I'm trying to install Lubuntu on my laptop (sorta old 2005). [Laptop stats: Intel® Celeron® CPU 410 @ 1.46 GHz 1.47GHz, 448 MB of RAM] I press Install and this message appears: This kernel requires an x86-64 CPU, but only detected an i686 CPU. Unable to boot - please use a kernel appropriate for your CPU. What can I do to install Lubuntu on my computer?", "Schengen visa permit I am a student with a Singapore passport currently studying in the Czech Republic for a semester. My permit is valid until 2nd of February, I plan to fly to the UK to travel for 3 days before heading back to Singapore from there. Would there be any problems, such as exit immigration from the Czech Republic to the UK? I searched online that the UK is not part of Schengen Area Agreement states, and my passport has a visa free entry to the UK.", "Prove that $\\lim_{n\\to\\infty}a_n\\le \\lim_{n\\to\\infty}b_n$ Theorem Let $\\{a_n\\}$ and $\\{b_n\\}$ be convergent real sequences. Assume that there exists a $N\\in\\mathbb{N}$ so $a_n\\le b_n$ (eq. 1) for all $n\\ge N$. Then $\\lim_{n\\to\\infty}a_n\\le \\lim_{n\\to\\infty}b_n$. My attempt at proving Let $a=\\lim_{n\\to\\infty}a_n$ and $b=\\lim_{n\\to\\infty}b_n$. $a$ and $b$ are real numbers because the limit of a sequence of real numbers is a real number (which is a corollary in my textbook). For proof by contradiction, assume $b&lt;a$. Let $\\epsilon=\\frac{a-b}{2}$. Then we can find $N_a,N_b\\in\\mathbb{N}$ so $|a-a_n|\\le\\frac{\\epsilon}{2}$ when $n\\ge N_a$, (eq. 2) $|b-b_n|\\le\\frac{\\epsilon}{2}$ when $n\\ge N_b$. (eq. 3) In a textbook I found that I should do the following: Choose a $n$ so $n\\ge\\max(N,N_a,N_b$), then eqs. (1-3) are satisfied. Then $a-\\epsilon\\le a_n+\\frac{\\epsilon}{2}-\\epsilon$ How do I get that last thing? Is it necessary to do a proof by contradiction or can one do a direct proof?", "Does assumption of normality of each mixture components implies that each margins is normal I just would like to understand some information about the joint normality and the margins. I read that the normal joint distribution almost always implies that the univariate margins are all normal. My question is: 1- Is this apply for Gaussian mixture models? For example, in the Gaussian mixture model, each mixture component follows a Gaussian distribution. Hence, does it imply that each margin will be a Gaussian distribution as well? \"I understand that mixture components are used to describe the dependency structures, and they are the joint distribution. is that correct? 2- I read this from one answer to a question in this site . \"So yes, the assumption of joint normality is a sufficient condition for all marginal distributions to be normal, irrespective of the dependence structure. Hence, the theory of Copulas does not affect this result in any way.\" However, I really do not understand this: irrespective of the dependence structure. As I understand if the joint distribution in normal then the dependence structure is normal. Could someone help me with my questions, please?", "I have the following content in in /etc/udev/rules.d/81-external-disk.rules: ENV{ID_FS_UUID}==\"6826692e-79f4-4423-8467-cef4d5e840c5\", RUN{program}+=\"/bin/mount -o nofail,x-systemd.device-timeout=1 -t ext4 -U 6826692e-79f4-4423-8467-cef4d5e840c5 /backup/external\" After running: udevadm control --reload ; udevadm trigger /dev/sdb1 It does nothing at all. However if II change the mount command for something such as /bin/touch /tmp/xyz it works. Versions: [root@helsinki rules.d]# rpm -qa | grep udev libgudev1-219-19.el7_2.12.x86_64 python-pyudev-0.15-7.el7_2.1.noarch [root@helsinki rules.d]# rpm -qa | grep systemd systemd-libs-219-19.el7_2.12.x86_64 systemd-219-19.el7_2.12.x86_64 systemd-sysv-219-19.el7_2.12.x86_64 [root@helsinki rules.d]# cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core)", "Solving the recurrence $T(n) = \\sqrt n T(\\sqrt{n}) + \\sqrt{n}$ A former student of mine was TA-ing an algorithms class last quarter and asked students to solve this famous recurrence relation: $$T(n) = \\sqrt n T(\\sqrt{n}) + n$$ There are and this question has already been asked here. I was talking to my student about this problem and mentioned that it's quite hard to solve and is pretty dependent on the particular choices being made. As an example, I suggested this variant of a recurrence relation that was less simple to solve: $$T(n) = \\sqrt n T(\\sqrt{n}) + \\sqrt{n}$$ The TA and I tried solving this recurrence for about an hour and a half without making any progress. Here are a few things we tried: My approach to solving the initial recurrence relation was to draw out a recursion tree and notice that each level of the tree contributes $n$ to the total and that there are $O(\\log \\log n)$ layers, so the recurrence solves to $O(n \\log \\log n)$. When I tried doing this here, I noticed that the work per layer was no longer constant; instead, the top layer sums to $\\sqrt{n}$, the second layer to $n^{3/4}$, the third to $n^{7/8}$, etc. We got stuck working with the summation $n^{1/2} + n^{3/4} + n^{7/8} + ...$. We tried using the iteration method to unroll the recurrence. With the original recurrence relation, this works out nicely; here, we got stuck at the same summation given above. I'm completely stuck trying to figure out how to solve this recurrence relation. There's nothing riding on it per se - I don't need to solve it for any particular reason - but the fact that we arrived at it by a straightforward modification of a common algorithms problem set question makes it all the more enticing. Any idea how to solve this recurrence? Thanks!", "I'm thinking that one way Jeff and the Stack Overflow team could squeeze some extra money out of this site would be to automatically convert all Amazon links posted here into affiliate links, e.g. Stick \"tag=codinghorror-20\" (or more likely a new site-specific tag) onto every Amazon link. This would bring in some additional revenue every time someone purchased a book via a link on this site. They could do similar things with other links as well. Amazon's simply the most obvious choice. So my question is, would anyone have a problem with this? I know I wouldn't mind, but I don't know how other people would react. What does everyone think? Is this a horrible idea, a great idea, a waste of time?", "How do I get permissions to edit system configuration files?", "Story about criminal being \"adjusted\" which stops a man's commute I'm trying to remember the name of a story, I think the author was Larry Niven, but it might possibly be from Heinlein's \"Future History\" series (but a check of the stories included in the Future History indicates it's not in there), about a man whose commute is stopped because a criminal has to be 'adjusted'. In this case, the criminal was a hit-and-run driver who left his victim untreated on the roadside, and was sentenced to suffer in the same manner. So his leg was carefully broken and he was left, untreated and in pain, on the side of the road in the same place for an hour. All the time ambulances were standing by, and every effort was made to ensure that the criminal did not suffer unduly - but that he did suffer, in a manner as close to the suffering he inflicted on his victim.", "Why do people have darker skin in sunnier climates?", "I already have cast iron skillet but I can't find a decent \"normal\" pan, for eggs and stuff, sometimes steaks, more or less general purpose. Here are some more features: high quality, durable, non stick, oven safe, dish washer safe, extremely flat surface - not to be higher in the middle, this is very important. Of course pricier usually means better quality, but is it worth it based on the criteria I'm after? Is it likely to be worth going from pans below $60, to pans from $60 to $130, or to pans over $130?", "I am trying to make a top down shooter that could potentially have hundreds of objects at once at one point. I need to check collision with projectiles, walls, and enemies. I am currently using ArrayLists which probably won't suffice later on and was wondering if someone had a good method or knows a good method for checking all of those objects at once. This is going to be a game for smartphones and is built in java. Any ideas would be great or if you could point me in some direction that would be fantastic. Thanks in advance!", "What is a reasonable depth and diameter for postholes dug in clay soil to support an 8' fence? What is a reasonable depth and diameter for postholes dug in clay soil where the frost line is no more than 12” and that will support an 8 foot tall solid wood fence that uses PostMaster metal posts? I hope to have someone else install an 8 foot high PT wood fence. There will be no light or air passing through or under the fence and it will be heavier than average, given the additional height and board weight. One side will run for 135’. The attached diagram provides more detail. The PostMaster Installation Instructions describe a 30” deep, sloped, 10” diameter hole, filled with 6” of gravel plus 24” of concrete for a 6 foot high fence. They caveat that the “exact diameter and depth will be determined by local weather and soil conditions.” Got it. Huntsville, AL; very clay soil. Maximum wind gusts of 65 mph. (This is not in the normal tornado path and is not intended to withstand a tornado.) In reviewing the StackExchange posts on fencing and post holes I came across the concept that the diameter of the pier may be increased to compensate for a shallower post hole. I would like to know the recommended depth and diameter without relying on the 2 buttress posts, which are my small overbuild idea. We will be able to walk under them. 26 APR 18 update: I just found a Master Halco youtube video specifying 6-8\" diameter holes dug 36\" deep for an 8' board-on-board fence, such as I would like to have. - I also spoke to a fence builder experienced using PostMaster posts who opined that the 10\" diameter and 30 deep holes were more than adequate, but that the gravel was of no value in our climate. So, 30\" x 10\" dia inches of concrete vs. 36\" x 8\" dia of concrete.", "How do I ignore ampersands in a SQL script running from SQL Plus? I have a SQL script that creates a package with a comment containing an ampersand (&amp;). When I run the script from SQL Plus, I am prompted to enter a substitute value for the string starting with &amp;. How do I disable this feature so that SQL Plus ignores the ampersand?", "The beamer command \\alt&lt;*overlay specification*&gt;{foo}{bar} will insert foo if the current slide is within the given overlay specification, and bar otherwise. It's equivalent to \\only&lt;*overlay specification*&gt;{foo}\\only&lt;*complementary overlay specification*&gt;{bar} Here is a sample document using it: \\documentclass{beamer} \\begin{document} \\begin{frame} \\begin{align*} y &amp;= \\frac{(x^2+1)\\sqrt{x+3}}{x-1} \\\\ \\ln y &amp;= \\ln (x^2+1) + \\frac{1}{2} \\ln(x+3) - \\ln(x-1) \\\\ \\frac{1}{y} \\frac{dy}{dx} &amp;= \\frac{2x}{x^2+1} + \\frac{1}{2(x+3)} - \\frac{1}{x-1} \\end{align*} So \\[ \\begin{split} \\frac{dy}{dx} &amp;= \\left(\\frac{2x}{x^2+1} + \\frac{1}{2(x+3)} - \\frac{1}{x-1} \\right) \\alt&lt;2&gt;{\\frac{(x^2+1)\\sqrt{x+3}}{x-1}}{y} \\end{split} \\] \\end{frame} \\end{document} This is very useful and saves typing. But if one of the alternatives is larger than the other, it leads to jiggling slides. What I would like is a overlay-specification-aware command \\altvisible that would take the same amount of space on each slide. So it would have to insert a box as big as the bigger of the two, and then set the correct material. So the above document with \\altvisible instead of \\alt would not jiggle. Any takers?", "Mathematical notation around the world", "\"All our X\" vs. \"all of our X\" Is the word \"of\" optional in this instance? Is either of these considered preferable to the other? Taste all our delicious treats. Taste all of our delicious treats.", "Create WiFi hotspot with web access point I want to setup a WiFi network with access through a web interface. Essentially people would be asked to enter a username/password and their session would be valid for X minutes after which they'd be logged out. I am capable of quite a few programming/scripting languages, but browsing through router settings I don't see how to/where hosted/etc. the web interface/session handling comes in. Please push me the right direction." ]
medi_sts_stackexchange_dupe
Would several withdrawals (W) affect my chances at graduate school admission
How do some Ws on transcripts affect PhD admissions in mathematics?
[ "How to read from two input files using while loop", "What does active mean?", "number of edges induction proof Proof by induction that the complete graph $K_{n}$ has $n(n-1)/2$ edges. I know how to do the induction step I'm just a little confused on what the left side of my equation should be. $E = n(n-1)/2$ It's been a while since I've done induction. I just need help determining both sides of the equation.", "pgfplots -> contour gnuplot with lualatex instead of pdflatex", "How to plot a graph from its adjacency matrix and coordinates of vertices? A similar question is . If we give all the data of the vertices's coordinates and the graph's adjacency matrix, how to plot it with tikz, pstrick or other tool in tex? here are the data of adjacency matrix and coordinates Coordinates:{{0.809,0.588},{0.309,0.951},{-0.309,0.951},{-0.809,0.588},{-1.,0.},{-0.809,-0.588},{-0.309,-0.951},{0.309,-0.951},{0.809,-0.588},{1.,0.}} Adjacency matrix: {{0,1,0,0,1,0,1,0,0,1},{1,0,1,0,0,1,0,1,0,0},{0,1,0,1,0,0,1,0,1,0},{0,0,1,0,1,0,0,1,0,1},{1,0,0,1,0,1,0,0,1,0},{0,1,0,0,1,0,1,0,0,1},{1,0,1,0,0,1,0,1,0,0},{0,1,0,1,0,0,1,0,1,0},{0,0,1,0,1,0,0,1,0,1},{1,0,0,1,0,1,0,0,1,0}} Sometimes the number of data is too large to put the data in the main tex file. It would be better to import the data from external files. .", "Placing nodes midway on paths using |- or -| in tikz I make frequent use of |- and -| with computed points in diagrams, like so: \\coordinate (a) at (0,0); \\foreach \\x in (1,...,10) { \\coordinate (b) at ({whateverFunction(\\x)},{whateverOtherFunction(\\x)}); \\draw (a) |- (b); %Straight line segment \\draw (b) -| (a); %Another straight line segment \\coordinate (a) at (b); } To get plots like: I would like to be able to label the midpoint of each line segment, but doing something like node[midway,above] {a} does not act like expected: I want something like: Why does midway not work, and what is a good workaround here?", "What is the purpose of a self executing function in javascript? In javascript, when would you want to use this: (function(){ //Bunch of code... })(); over this: //Bunch of code...", "I know that matrix multiplication in general is not commutative. So, in general: $A, B \\in \\mathbb{R}^{n \\times n}: A \\cdot B \\neq B \\cdot A$ But for some matrices, this equations holds, e.g. A = Identity or A = Null-matrix $\\forall B \\in \\mathbb{R}^{n \\times n}$. I think I remember that a group of special matrices (was it $O(n)$, the ?) exist, for which matrix multiplication is commutative. For which matrices $A, B \\in \\mathbb{R}^{n \\times n}$ is $A\\cdot B = B \\cdot A$?", "Get OS-level system information", "How can I delete my account? How can I delete my Stack Exchange account(s)? Also, What happens to my content? Can I request it be deleted as well? What if I'm suspended, rate-limited, or banned from posting questions or answers? What will happen to my votes? Will other users be impacted? Why wasn't my account deleted immediately after the timer expiring? What will happen to my pending bounties and close, reopen, delete, or undelete votes? I want my account deleted on all Stack Exchange sites. How do I do this? Will my profile on chat be removed once I delete my site account? For more information, see &quot;&quot; in the .", "Can multiple render systems be used? I was watching a tutorial how to design an island in Blender, which worked really great, but i didn't want to use the .png Trees the guy used there. So i watched another tutorial and created another kind of tree - without knowing that the object isn't just modeled in Cycles Render, it is also rendered in there. My problem is either the (lets say \"simple\" textured) island (rendered in Blender render) or the tree is shown. Is there any way i can \"convert\" that cycles object (with its shaders) to Blender Render or the other way around? Or just render with two renders in one project? I haven't found something about that til now. If there is no universal solution for that, i could also put a link to my project in here.", "Number of elements in a finite $\\sigma$-algebra", "I have an idea or subject that should have a Q&amp;A, and want to propose a new site. How can I do this? Related:", "As per c99 standard, size of long long should be minimum 64 bits. How is this implemented in a 32 bit machine (eg. addition or multiplication of 2 long longs). Also, What is the equivalent of long long in C++.", "get values from ANY type Object", "Iterating each character in a string using Python In C++, I can iterate over an std::string like this: std::string str = \"Hello World!\"; for (int i = 0; i &lt; str.length(); ++i) { std::cout &lt;&lt; str[i] &lt;&lt; std::endl; } How do I iterate over a string in Python?", "The result of ls * , ls ** and ls *** I know using the command ls will list all the directories. But what does the ls * command do ? I used it and it just lists the directories. Does the star in front of ls mean how deep it will list the directories?", "For any triangle with sides $a$, $b$, $c$, show that $a^2b(a-b)+b^2c(b-c)+c^2a(c-a)\\ge 0$", "How to change row color based on a single cell's value? Possible Duplicate: I have a spreadsheet where I have cell within a row that will contain specific text via data validation. So for instance a cell could contain the text \"Due in 7 Days\", \"Past Due\", or \"Closed\". I want the row color to change depending on the text that appears in the cell. So if the text \"Past Due\" appears in the cell I want that entire row to turn red, if \"Due In 7 Days\" appears the row should turn yellow, and if \"Closed\" the row would turn gray. How can I do that?", "I'm trying to factorise $$ x^3z - x^3y - y^3z + yz^3 + xy^3 - xz^3 $$ into four linear factors. By plugging it into WolframAlpha I've learned that it's $$-(x-y)(x-z)(y-z)(x+y+z)$$ My question is: what are the steps involved in factorising the expression? Is there a method I don't know about that I'd have access to with my limited maths? Really appreciate any help!" ]
medi_sts_stackexchange_dupe
what is the difference between a = a + b and a += b?
Difference between a += 10 and a = a + 10 in java?
[ "I'm looking for the noun form of \"person with intermediate skill\". For example, in the context of a particular activity, \"person with no skill\" might be designated a novice, and \"person with much skill\" might be designated an expert. However I know of no such word in between these two extremes. My only thought is amateur, which has a distinct meaning from describing level of skill, although skill level can often be inferred. I'm looking for a better solution. EDIT: due to the attention this question has received, I'll try to offer some clarification in order to reduce repeat questions. \"Journeyman\" would certainly not work. I am a software developer by profession. However the word I'm looking for should hopefully be profession-agnostic. I am trying to designate the skill level of the person that some learning material might be appropriate for. The word that I'm looking for follows the preposition \"for\". For Beginners For [word for intermediate-skilled person] For Experts Sorry, but even after all the great answers, I'm still learning towards \"amateur\" even though it is technically incorrect. Also, the word should not be so esoteric that only people with English degrees know what it means. Keep the ideas coming!", "Diagonal straight lines in residuals vs fitted values plot for multiple regression I am observing strange patterns in residuals for my data: [EDIT] Here are the partial regression plots for the two variables: [EDIT2] Added the PP Plot The distribution seems to be doing fine (see below) but I have no clue where this straight line might be coming from. Any ideas? [UPDATE 31.07] It turns out you were absolutely right, I had cases where the retweet count was indeed 0 and these ~ 15 cases resulted in those strange residual patterns. The residuals look much better now: I've also included the partial regressions with a loess line.", "What is the speed of time?", "How to properly render smoke on a transparent background? When rendering volumes with Film > Transparent enabled, the alpha appears to be the wrong type (premultiplied/straight). In the 3D view it works as expected: This is a known . Is there any way to work around this?", "Software recommendations", "Multiple Apple Developer Accounts", "How to override Drupal.ajax.prototype.beforeSend? I need to add my own little if's and checks in 3 functions inside misc/ajax.js ( Drupal.ajax.prototype.beforeSend, Drupal.ajax.prototype.success, Drupal.ajax.prototype.error ) How can I override them in my module? I can't find a manual and it's not in Examples for Developers. Sorry if it seems a dumb question, but I'm a php developer - I can work with js, but I'm not so fluent with it. Can I simply write it in my module's js file? If 2 or 3 modules needs to modify them, how to avoid conflicts?", "Can I remove inline event handlers using jQuery?", "Proving by induction that $ \\sum_{k=0}^n{n \\choose k} = 2^n$", "Scale and Rotate Stopped Working [2.8]", "Bypass BIOS password set by faulty Toshiba firmware on Satellite A55-S1065 laptop?", "Systemd backed tmpfs | How to specify /tmp size manually I mount /tmp on tmpfs using: sudo systemctl enable tmp.mount sudo systemctl start tmp.mount But this way /tmp takes up all the free RAM: $ df -h /tmp Filesystem Size Used Avail Use% Mounted on tmpfs 3.9G 12K 3.9G 1% /tmp $ How do I tell systemd tmp.mount to use only 1G? I know I can alternatively not use systemd and manually add an entry to /etc/fstab and specify the size there. But I don't want to do that. I want to use systemd backed tmpfs.", "Prove a differentiable function between banach spaces is continuous", "Why do we use decibels instead of just using intensity to measure how loud things are?", "E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages I am not sure what caused this error, but here is what the whole error says, and also this is sitting as a notification, and preventing me from updating any software using Update Manager - Please provide some assistance or tell me how to figure out what to do to fix it. Could not calculate the upgrade An unresolvable problem occurred while calculating the upgrade. Please report this bug against the 'update-manager' package and include the following error message: 'E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.'", "I need to compile between two and four times before I see changes I make in the editor (TeXstudio) and each time I compile, a new .tex file is created with random letters and numbers at the end. For example, If I create the file hello.tex and compile two to four times I'll get the file, hello.tex.QU6664 then I make some small changes in the editor and compile two to four times I'll get the additional file, hello.tex.Ak6664 After continuing to do this (each time compiling between two to four times before I see the changes I made), I now have many files that look like hello.tex.QU6664, hello.tex.Ak6664, hello.tex.YX6664, hello.tex.sN6664, hello.tex.Ss6664, ... A little bit of additional information (in case it's relevant): Everything was working fine up until a few days ago, i.e. only needed to compile once and only the file hello.tex was created. I still only get one .aux, .synctex and .pdf files. I use TeXstudio to write and compile. I don't think it has anything to do with the bibliography (I tried removing bibliography altogether and still having the same problem). How do I prevent these additional files from appearing and only compiling once like I used to? Has anyone had a similar problem?", "Accessing raster attribute table in QGIS? I have some Python code that makes Raster Attribute Tables for GeoTiffs using GDAL. In ArcGIS I can see these attribute tables fine and they behave how I like (as classifications) but in QGIS the whole concept of an attribute table seems to be missing. Is there any way to access a RAT in QGIS?", "Replace preg_replace() e modifier with preg_replace_callback", "I stumbled upon on last weekend, it introduces an integral trick that exploits . On its last page, the author, Mr. Anonymous, left several exercises without any hints, one of them is to evaluate the Gaussian integral $$ \\int^\\infty_0 e^{-x^2} \\,dx= \\frac{\\sqrt{\\pi}}{2} $$ using this parametrization trick. I had been evaluating it through trial and error using different paramatrizations, but no luck so far. Here are what I have tried so far: A first instinct would be do something like:$$ I(b) = \\int^\\infty_0 e^{-f(b)x^2}\\,dx $$ for some permissible function $f(\\cdot)$, differentiating it will lead to a simple solvable ode: $$ \\frac{I'(b)}{I(b)} = -\\frac{f'(b)}{2f(b)} $$ which gives: $$ I(b) = \\frac{C}{\\sqrt{f(b)}}. $$ However, finding this constant $C$ basically is equivalent to evaluating the original integral, we are stuck here without leaving this parametrization trick framework. A second try involves an exercise on the same page: $$ I(b) = \\int^\\infty_0 e^{-\\frac{b^2}{x^2}-x^2}dx. $$ Taking derivative and rescaling the integral using change of variable we have: $$ I'(b) = -2I(b). $$ This gives us another impossible to solve constant $C$ in: $$ I(b) = C e^{-2b} $$ without leaving this framework yet again. The third try is trying modify Américo Tavares's answer in this : $$ I(b) = \\int^\\infty_0 be^{-b^2x^2}\\,dx. $$ It is easy to show that: $$ I'(b) = \\int^\\infty_0 e^{-b^2x^2}\\,dx - \\int^\\infty_0 2b^2 x^2 e^{-b^2x^2}\\,dx = 0 $$ by an integration by parts identity: $$ \\int^\\infty_0 x^2 e^{- c x^2}\\,dx = \\frac{1}{2c}\\int^\\infty_0 e^{- c x^2}\\,dx . $$ Then $I(b) = C$, ouch, stuck again at this constant. Notice in that question, Bryan Yocks's answer is somewhat similar to the idea of parametrization, however he has to introduce another parametric integration to produce a definite integral leading to $\\arctan$. Is there such a one shot parametrization trick solution like the author Anonymous claimed to be \"creative parameterizations and a dose of differentiation under the integral\"?", "This is what we are taught: $$5^{-2} = \\left({\\frac{1}{5}}\\right)^{2}$$ but I don't understand why we take the inverse of the base when we have a negative exponent. Can anyone explain why?" ]
medi_sts_stackexchange_dupe
How to install a font in texlive 2017 (mac)?
Manual font installation
[ "Does there exists an Isomorphism between $\\mathbb{C}^* $ under multiplication with $\\mathbb{C}$ under addition. Attempt In my opinion It does not exists. If there exists such an isomorphism say $\\phi :\\mathbb{C}^* \\to \\mathbb{C}$ then, from the fact that Isomorphism takes identity to identity we have $$\\phi \\left( 1 \\right)=0$$ From the fact Given $\\phi:G \\to H$ be an isomorphism, then For a fixed integer $k$ and a fixed group element $b$ in $G$, the equation $x^k=b$ has the same number of solutions in $G$ as does the equation $x^k=\\phi\\left(b\\right)$ in $H$. We have $x^4=1$ and $x^4=0$ must have same number of solutions, but the solutions to these equations are 4 and 1 only.", "What measures can/should I take to make sure that security around my SSH server is absolutely impermeable? This will be community wiki from the start, so lets see what people do to secure their servers.", "Let $D \\subset \\mathbb{C}$ be an open, connected set and let $\\{ u_n \\}$ be a sequence of harmonic functions with $u_n: D \\longrightarrow (0, \\infty)$. Show that if $u_n(z_0) \\rightarrow 0$ for some $z_0 \\in D$, then $u_n \\rightarrow 0$ uniformly on compact subsets of $D$. If you could offer a hint or a helpful question to get me started I'd appreciate it. Progress: I now see why showing it for the unit disk suffices (any compact subset in $D$ can be covered by finitely many disks each which is contained in $D$).", "I am trying to import an Excel table with around 10,000 XY points into ArcMap 10.2. I am using State Plane NAD 1983 Alabama West (US Feet) as the Coordinate System in my map data frame. I then add the excel table to my Table of Contents in the map then select Display XY Data. Next, I choose the same coordinate system as my data frame then select OK. Once it creates the Events layer for my points they are not in the correct location. Should I switch everything in my map to WGS84 or is there a solution for my points to be added onto my current map with the state plane coordinate system?", "Can't use enter key shortcut on Google search results anymore Up until last week, Google used to place a blue arrow on the first search result. Using the arrow keys, one could select different results. Finally, pressing enter would enter into the selected result. For the past few days, these keyboard shortcuts are no longer there. How do I re-enable them? I search on Google every 10 minutes and can't afford to waste 2 seconds each time pointing my mouse at the desired link.", "A beginner's guide to SQL database design Do you know a good source to learn how to design SQL solutions? Beyond the basic language syntax, I'm looking for something to help me understand: What tables to build and how to link them How to design for different scales (small client APP to a huge distributed website) How to write effective / efficient / elegant SQL queries", "Prove that $\\Vert f(b)-f(a)-f'(a)(b-a) \\Vert\\leq \\sup_{x\\in [a,b]} \\Vert f''(x)\\Vert\\Vert b-a\\Vert^2$ Let $\\Omega$ be an open set in $\\Bbb{R}^n$ and $f:\\Omega\\to \\Bbb{R}^m $ be of class $\\Bbb{C}^2.$ Let $a,b$ be in $\\Omega$ such that $[a,b]\\subset \\Omega.$ Prove that \\begin{align}\\Vert f(b)-f(a)-f'(a)(b-a) \\Vert\\leq \\sup_{x\\in [a,b]} \\Vert f''(x)\\Vert\\Vert b-a\\Vert^2.\\end{align} where $$f'(a)(b-a)=\\big&lt;\\nabla f(x),(b-a)\\big&gt;=\\sum^{n}_{k=1}\\frac{\\partial f_i}{\\partial x_k}(a)(b_k-a_k).$$ I think the idea of Mean Value Theorem for $C'$ functions in $\\Bbb{R}^n$ () will help me in showing it but I don't know how to! Please, can anyone show me a proof or reference?", "When editing a post and using the image uploader, any unused link references are completely removed. For example, this post has three image references, only one of which is used ([3]) in the body of the post: After uploading a fourth image, references [1] and [2] are completely removed (and the remaining references are renumbered to become [1] and [2]): I sometimes write link references before using them in the body of the post and sometimes remove images temporarily before reinserting them elsewhere in the post so this is inconvenient. (Note: this also applies for the iOS app, having the same behavior)", "Does infinity exist in physical systems?", "What happened to Yachiru? According to the , Yachiru disappeared leaving her belongings after the fight with Gremmy. She is said to be \"gone\" by Kenpachi in the penultimate chapter of the original series. I use \"original\" because there might be extra chapters announced as the other big announcement. So, what happened to her? Was she part of his Zanpakutou or something?", "java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuterFilter", "Replacing Raster Values in Ras1 with Ras2", "Finding files by only knowing extension?", "Old TV mini-series with a living brain in a lab", "How do you uninstall wine 1.5?", "hard voting, soft voting in ensemble based methods I'm reading . Then I'm not able to figure out the difference between hard voting and soft voting in context to ensemble based methods. I quote descriptions of them from the book. The first two images from the top are description for hard voting, and last one is for soft voting. In my view hard voting is majority decision, but I don't understand soft voting and the reason why soft voting is better than hard voting. Would anyone teach me these?", "A finite group which has a unique subgroup of order $d$ for each $d\\mid n$.", "A Hilbert space is, by definition, a complete inner product space. If $(V,|.|)$ is finite dimensional inner product space of dimension $n$ then it is (topologically) isomorphic to $\\mathbb{R}^n$ which is of course complete. My instinct here is to say \"and therefore, $V$ is also a Hilbert space\". I'm not sure about this step however since completeness depends on the norm and the norm depends on the selected inner product (assuming the induced norm $||x|| = (x | x)^{1/2}$ is used). So, must we place some condition on the inner product or is the topological isomorphism between $\\mathbb{R}^n$ enough to guarantee that V is Hilbert?", "Movie with humans battling aliens piloting giant animalistic, water-walking robots or sea warships I have memories of watching it a few years ago (I was a kid then) in the early 2000s probably; before 2010 I think. It was a movie with giant robots, and the enemies were aliens piloting what I remember as giant, more animalistic robots. I remember those animalistic ones running on water. The aliens themselves were a little taller than humans but mostly humanoid. I remember what the aliens look like a bit; most of the movie they were clad in some kind of armor, but the scene I mentioned showed one's face, if I remember well, grey skin, vividly green eyes, a beard made of some kind of quills, bald. I have this one scene that stayed crystal clear in my memories. The heroes had captured an injured alien, and other aliens attack to, in the end, just retrieve the injured one, leaving with this one without attacking further this time. I also remember the aliens going through a city in some machine (I'm actually not sure this one was piloted though) and destroying anything it perceived as a threat, from cars to security cameras. My memories are coming from years ago, so I might be wrong in a bunch of things there, but this one scene, I can assure is correct. This might remind a bit of Pacific Rim, but it isn't. (It's watching Pacific Rim that reminded me of this movie.) It doesn't seem to show up on any giant robot movie list on internet, weirdly, so I hope you can help me. And now I'm starting to wonder if there was really robots on the heroes' side. Maybe it was warships (sea ones, not spaceships). As I said it was some time ago and I was young, so bad memories are likely.", "Smart phone Smartphone Smart-phone I am really looking for some help regarding hyphen (-) issue in text found in research article. Is there any standard method how to use it?" ]
medi_sts_stackexchange_dupe
trying to split on hyphens and underscores and remember groups of numbers produces empty strings and undefined
Remove empty elements from an array in Javascript
[ "How does \"proof of effort\" make a question better? It seems like many questions by new users are downvoted immediately. Sometimes there is a comment to the tune of \"lacks research\", \"we're not here to do your homework\", or \"show us some effort\". Now I wonder, what does it matter how much work someone has done before posting? If someone can ask a good question in 5 seconds, more power to them. To illustrate this point, look at how you could \"improve\" a question to include proof of effort. You could put in 5 failed code snippets and their in- and output. This would make for very long questions with a high noise ratio. Another suggestion is to add \"research\". By \"research\", I suppose most programmers mean \"Google\". So this is basically a suggestion to add a list of fruitless Google queries. That doesn't sound interesting either. How can \"proof of effort\" turn a bad question into a good one?", "When to use reinterpret_cast? I am little confused with the applicability of reinterpret_cast vs static_cast. From what I have read the general rules are to use static cast when the types can be interpreted at compile time hence the word static. This is the cast the C++ compiler uses internally for implicit casts also. reinterpret_casts are applicable in two scenarios: convert integer types to pointer types and vice versa convert one pointer type to another. The general idea I get is this is unportable and should be avoided. Where I am a little confused is one usage which I need, I am calling C++ from C and the C code needs to hold on to the C++ object so basically it holds a void*. What cast should be used to convert between the void * and the Class type? I have seen usage of both static_cast and reinterpret_cast? Though from what I have been reading it appears static is better as the cast can happen at compile time? Though it says to use reinterpret_cast to convert from one pointer type to another?", "Does anyone have a recommendation for a book to use for the self study of real analysis? Several years ago when I completed about half a semester of Real Analysis I, the instructor used \"Introduction to Analysis\" by Gaughan. While it's a good book, I'm not sure it's suited for self study by itself. I know it's a rigorous subject, but I'd like to try and find something that \"dumbs down\" the material a bit, then between the two books I might be able to make some headway.", "How to change file extension at runtime in Java", "View history of commands run in terminal Is there a way to save all my typed terminal commands and view it like history in a log book?", "I'm trying to connect 32 I²C \"root of trust\" devices. I'm thinking about a good way that does that, I mean what kind of communication should I use? A digital multiplexer that selects a device? but based on what? switching on the VDD source? but that needs reinitialization of the device and that takes time.", "Given two increasing continuous functions $f,g$ prove that $(b-a) \\int^b_a f(x)g(x) dx > \\int^b_a f(x) dx \\int^b_a g(x) dx$ Given two monotonically increasing continuous functions $f,g$ prove that $$(b-a) \\int^b_a f(x)g(x) dx &gt; \\int^b_a f(x) dx \\int^b_a g(x) dx,\\; b&gt;a$$ what I have tried: Let $$h(x) = (x-a)\\int^x_a f(t)g(t) dt - \\int^x_a f(t)dt\\int^x_a g(t)dt $$ and trying to figure out that $h'&gt;0$ using MVT to reform $h'(x)$ as $$h'(x) = (x-a)(-f(x)g(\\xi_1) - g(x)f(\\xi_2) + f(x)g(x) + f(\\xi_3)g(\\xi_3))$$ where $\\xi_{1,2,3} \\in (a,x)$ (That method does not seem to work)", "How to make a particular app the default viewer / editor for ALL its supported file types at once?", "How do I add myself into the sudoers group? Possible Duplicate: I've added myself back into the admin's group I think, by following But I still can't do commands like: sudo aptitude update I get the message oshirowanen is not in the sudoers file. This incident will be reported. How do I add myself into the sudoers group now that I am in the admin group?", "How to prove two equivalence classes are disjoint?", "How to unlock gungeoneers I've seen on a wiki that there is a ghost gungeoneer and a robot gungeoneer but it didn't say how to unlock them, so how do I unlock more gungeoneers ?", "I am trying to follow Blender Guru's beginner tutorial. He went to the Compositor tab and was using it to Denoise an image but when I got there, no nodes show up. Can you guys help?", "Ideas to improve website loading speed? Are there any ways in which I can improve the loading speed of a website? I know that Google is really pushing loading speeds and with the popularity of mobile websites it's now imperative that sites load quickly.", "I'm using Emacs with AUCTeX to do all my LaTeX. When it comes to syntax highlighting it seems that all mathematics is by default just orange. Do you know of a mode or package that adds some more fine grained syntax highlighting? For example all commands (\\foo), matching braces, sub- and superscripts, etc. should get a different color.", "Creating fillable PDFs I'd like to create a LaTeX document that when rendered into PDF, has forms that can be filled out using Adobe Reader or other such programs. Then I'd like to be able to extract the data. I deliberately would like to avoid using Acrobat for all the usual reasons (non-free, need different versions for different platforms etc). Can this be done ?", "Is it possible to recover Classical Mechanics from Schrödinger's equation? Let me explain in details. Let $\\Psi=\\Psi(x,t)$ be the wave function of a particle moving in a unidimensional space. Is there a way of writing $\\Psi(x,t)$ so that $|\\Psi(x,t)|^2$ represents the probability density of finding a particle in classical mechanics (using a Dirac delta function, perhaps)?", "How should I detect unnecessary #include files in a large C++ project?", "I started by Time Series Analysis by Hamilton, but I am lost hopelessly. This book is really too theoretical for me to learn by myself. Does anybody have a recommendation for a textbook on time series analysis that's suitable for self-study?", "Raster generalization - buffers in rasters, expand pixels? Is it possible to create buffers for pixels of raster files? Actually I need to expand the pixels classified as 1 (in white in the figure) with a spatial range of 1 or 2 pixels, in order to perform some generalization. I'm using QGIS, is this possible with gdal or something?", "How do I figure out the right size font / text for a given read distance?" ]
medi_sts_stackexchange_dupe
Get back to number 1 position for keyword
How to diagnose a search engine ranking drop?
[ "I have been told [Warning: I leave this because it's what I asked and allows to understand the dialogues in the comments, but Azad, whom I thank, has pointed that the formula does not hold in general in the form it is expressed] that the angular momentum of and rigid body with respect to any point $P$ can always be expressed as $$\\mathbf{L}_{P}=\\mathbf{r}_{cm}\\times M\\mathbf{v}_{cm}+\\big(\\sum_im_iR_i^2\\big)\\boldsymbol{\\omega}$$ where $\\mathbf{r}_{cm}$ is the position of the centre of mass with respect to $P$, $M$ the mass of the body, $R_i$ the distance of the $i$-th point, having mass $m_i$, composing the body, and $\\sum_im_iR_i^2=I$ its moment of inertia with respect to the instantaneous axis of the rotation around the centre of mass of angular velocity $\\boldsymbol{\\omega}$. I know that the velocity $\\mathbf{v}_i$ of each point $P_i$, having mass $m_i$, of a rigid body of mass $M$ can be see as the sum of a translation velocity of one of its points $C$ plus a rotation velocity around that point: $\\mathbf{v}_i=\\mathbf{v}_{C}+\\boldsymbol{\\omega}\\times\\overrightarrow{CP_i}$. If we chose $C$ as the centre of mass I see that $$\\mathbf{L}_{cm}=\\sum_i \\overrightarrow{CP_i}\\times m_i\\mathbf{v}_{i}=\\sum_i \\overrightarrow{CP_i}\\times m_i\\mathbf{v}_{cm}+\\sum_i \\overrightarrow{CP_i}\\times m_i(\\boldsymbol{\\omega}\\times\\overrightarrow{CP_i})$$$$=\\sum_i \\overrightarrow{CP_i}\\times m_i(\\boldsymbol{\\omega}\\times\\overrightarrow{CP_i}) $$because, if I am not wrong, $\\sum_i \\overrightarrow{CP_i}\\times m_i\\mathbf{v}_C=(\\sum_i m_i\\overrightarrow{CP_i})\\times\\mathbf{v}_C=\\mathbf{0}$ since $\\sum_i m_i\\overrightarrow{CP_i}$ is the position of the centre of mass with respect to itself, which is $\\mathbf{0}$. How can it be proved that $\\sum_i \\overrightarrow{CP_i}\\times m_i(\\boldsymbol{\\omega}\\times\\overrightarrow{CP_i})=(\\sum_im_iR_i^2)\\boldsymbol{\\omega}$? I have searched a lot on the Internet and on books, but I find nothing. To give some background of mine, I have studied nothing of analytical mechanics. I find the formula very, very interesting both in itself and because, if the moment of inertia does not depend upon time, $\\forall t\\quad I(t)= I(t_0)$, the above expression can be differentiated to get the formula of the resultant torque with respect to the centre of mass $\\sum\\boldsymbol{\\tau}_{cm}=\\frac{d\\mathbf{L}_{cm}}{dt}=I\\boldsymbol{\\alpha}_{cm}$ where $\\boldsymbol{\\alpha}$ is the angular acceleration around the centre of mass. I heartily thank you for any answer! Some unfruitful trials: by using the \"BAC CAB identity\" as suggested by Azad, whom I heartily thank, $\\mathbf{a}\\times(\\mathbf{b}\\times\\mathbf{c})=(\\mathbf{a}\\cdot\\mathbf{c})\\mathbf{b}-(\\mathbf{a}\\cdot\\mathbf{b})\\mathbf{c}$, I can see that$$\\sum_i \\overrightarrow{CP_i}\\times m_i(\\boldsymbol{\\omega}\\times\\overrightarrow{CP_i})=\\sum_im_i\\|\\overrightarrow{CP_i}\\|^2\\boldsymbol{\\omega}-m_i(\\overrightarrow{CP_i}\\cdot\\boldsymbol{\\omega})\\overrightarrow{CP_i}$$which, by decomposing every $\\overrightarrow{CP_i}$ into an axial component $\\mathbf{A}_i$ and a radial component $\\mathbf{R}_i$, whose norms respectively are $A_i$ and $R_i$, with $R_i$ as the distance from $i$ to the axis of rotation, becomes $$\\sum_im_iR_i^2\\boldsymbol{\\omega}+\\sum_i m_i A_i^2\\boldsymbol{\\omega}-m_i(\\mathbf{A}_i\\cdot\\boldsymbol{\\omega})\\overrightarrow{CP_i}$$but I cannot prove that $\\sum_i m_i A_i^2\\boldsymbol{\\omega}-m_i(\\mathbf{A}_i\\cdot\\boldsymbol{\\omega})\\overrightarrow{CP_i}=\\mathbf{0}$.", "Command for creating a directory and navigating into it directly?", "Lowering elevation of lake using QGIS I am in QGIS. I have a raster layer of mountains and a lake. I have a vector layer (shapefile) of the lake. It sits nicely where it supposed to be over the raster level. I am going to convert this height map to an STL so that I can cnc this out of wood, so I'd like the actual lake to be something like 200 feet lower than it shows on the raster layer so that I can fill it with blue epoxy. I have read a lot of clipping and everything else, and I am lost.", "Opening a context menu (with the Menu key)", "I can't solve this problem: Suppose $f$ is polynomial function of even degree $n$ with always $f\\geq0$. Prove that $f+f'+f''+\\cdots+f^{(n)}\\geq 0$.", "Why cannot fermions have non-zero vacuum expectation value?", "How to skip validation when a specific button is clicked?", "Why does Google not consider dot in usernames of Gmail addresses?", "How do I check if a list is empty?", "When is it kosher to delete one's own answer? According to , the only restriction on self-deleting an answer is that you can't delete an answer that's been accepted. But I've also heard of users getting in trouble for deleting (non-accepted) answers, and there's the CC-SA license to consider, so -- quite aside from what is technically possible -- my question is when it's permitted to delete your own answer. Some cases to consider: You now believe the answer is incorrect. Your answer is correct, but another answer covers the same territory better. You aren't satisfied with the quality/rigor of your answer, e.g. it's speculative and you didn't back it up (on a site that expects that). Something in the answer embarrasses you and you'd rather just make it go away. Your answer wasn't well-received by the community (whether that's \"meh\" or \"make the rep bleeding stop please\"). (I'm sure there are others; this isn't meant to be an exhaustive list.) Does voting matter, either in absolute terms or in comparison to other answers? For example, maybe it's ok to delete a lower-voted one but not the top-voted answer, or one with score > N?? There is a badge, Disciplined, for deleting your own post of score 3 or higher. This tells me that it's sometimes ok to delete upvoted answers. But I'm not sure how much policy we can infer from badges. Could we have some clarification please?", "Help me understand the proof for Bolzano-Weierstrass Theorem!", "Can't install rtl8192eu-linux-driver on UBUNTU 18.10", "Does \"Erase Disk and Install Ubuntu\" replace the default boot screen? I am new here. And I may replace a laptop's hard disk with Ubuntu. It's an HP Compaq notebook which has Windows 7 installed. So If I choose that install option, will it replace the screen that says F12 for boot options [actually it was esc]. I am just asking. I know that choosing that options erases your other partitions. I am assuming it gets replaced by grub2?", "How to log commands within a \"sudo su -\"? If I: [user@notebook ~] sudo echo 123456uu 123456uu [user@notebook ~] Then I can see that in the logs: [root@notebook /var/log] grep 123456uu * auth.log:Jan 9 17:01:51 notebook sudo: user : TTY=pts/3 ; PWD=/home/user ; USER=root ; COMMAND=/bin/echo 123456uu [root@notebook /var/log] but if I: [user@notebook ~] sudo su - [root@notebook ~] echo 1234567zz 1234567zz [root@notebook ~] I cannot see it in the logs: [root@notebook /var/log] grep 1234567zz * [root@notebook /var/log] echo $? 1 [root@notebook /var/log] My question: How can I turn the logging on for the commands within the \"sudo su -\"? OS is an Ubuntu 12.04 but the question is in general. UPDATE#1: [user@notebook ~] sudo su - [sudo] password for user: [root@notebook ~] echo zizizi zizizi [root@notebook ~] cd /var/log [root@notebook /var/log] grep -iIR 'zizizi' * [root@notebook /var/log] grep 'COMMAND=/bin/su -' * auth.log:Jan 10 15:42:42 notebook sudo: user : TTY=pts/1 ; PWD=/home/user ; USER=root ; COMMAND=/bin/su - [root@notebook /var/log]", "I was recently invited to join InitiativeQ via a friend on Facebook. The underlying idea makes rough sense to me (as a non finance expert). However their 'hook' seems to be that early adopters will get free money later down the line when the currency launches (the earlier you adopt, the more currency you will receive). Looking at the website, there is a big button with the text Reserve $128,957 (I assume that's their idea of what the dollar value of my reservation will be if it launches). The website's production quality suggests it is not a scam, however the language suggests strongly that it is. Is this a scam, a get rich quick scheme? Or am I being overly paranoid?", "I have noticed a significant number of suggested edits that attempt to fix code, or change the original meaning of someone else's post. Is this really a good idea? I've been on StackOverflow awhile, and among the editors who have sufficient reputation to edit without approval, I've never seen anyone modify the technical content or meaning of someone else's post. I would consider obvious syntax and spelling errors OK to change, but I have seen many suggested edits that change the meaning of the code that was posted, or add things to the code that have nothing to do with the original question. A good example of this would be adding parameters to a SQL command, when the question was not asking about SQL injection.", "Taylor expansion for $\\arcsin^2{x}$ I stumbled upon this particular expansion that was included in post. $$ \\displaystyle \\arcsin^{2}(x) = \\frac{1}{2} \\sum_{n=1}^{\\infty} \\frac{1}{n^{2} \\binom{2n}{n}} (2x)^{2n}$$ This caught my eye because I remember trying to derive a Taylor series for $\\arcsin^{2}(x)$ a while ago without much success. Can anyone prove this or point me to a material that would show a proof of this identity? EDIT : Feel free to use any mathematical apparatus at hand. I'm not interested in a proof fit for a certain level, nor am I looking for utmost elegance (though that would be lovely).", "It is common to see things described as the &quot;gold standard&quot;. It means that something is the best and is the ideal against which other things are to be compared; it cannot be superseded. I often , where a certain diagnostic test (e.g., the nasopharyngeal swab PCR test for infection with the Coronavirus causing COVID-19) is considered the most accurate and then other tests (e.g., cheaper or faster tests) are then evaluated against this benchmark. The etymology is covered in . In short, it is derived from the . Thus gold was the thing against which the value of all other currencies was measured. I don't like this term and would like to avoid using it. First, the desired meaning is not predominant; if you you will mostly get results for the monetary system, not the more general phrase. Second, the etymology is outdated; the original meaning of the term now has the opposite connotation. The monetary gold standard was abandoned in the 1970s. Economists consider the gold standard to be a bad monetary system. Thus, if you are interested in economics and history, the term &quot;gold standard&quot; actually is associated with being outdated and flawed -- which is close to the opposite of the intended meaning. (Of course, many people are unaware of the original meaning of the term. ) (A note in response to comments: Why I want to avoid this term is relevant, but not essential, to the question. If you don't see a problem with the term, the question can be answered regardless.) My question: Is there a better phrase to use in place of &quot;gold standard&quot;? For example, what term could be used in a medical study comparing a new diagnostic test against the gold standard test? I'm not aware of any good substitute that has essentially the same meaning. Here are two example sentences where I would like a replacement: A nasal swab is the gold standard for diagnosing COVID-19. The served as the gold standard for all scales from 1889 until 2019. The best substitute I can think of is &quot;official,&quot; as in &quot;a nasal swab is the official way to diagnose COVID-19&quot;. &quot;Official&quot; implies some form of uniqueness. But &quot;official&quot; implies the existence of some authority that gives it this designation (as opposed to scientific consensus). A asks for a &quot;perhaps humorous&quot; alternative -- the suggestion there, &quot;mother of all&quot;, is not appropriate here. (There is also .) In response to the answers and comments doubting the premise of this question: I personally have a negative association with the phrase &quot;gold standard&quot; because I know people who advocate for returning to the gold standard or its modern equivalent, , and have discussed the topic at length. Several US continue to advocate for a return to the gold standard. Thus asserting that no one will interpret the phrase in terms of monetary policy is simply not convincing.", "Can I use my laptop as a second monitor?", "I know that I have to use some tweaking tool and then a extension for this. But all extensions that are suggested for this(Workspace grid, Workspace matrix), aren't available in the software center." ]
medi_sts_stackexchange_dupe
what is `offset` in the R function irls()?
When to use an offset in a Poisson regression?
[ "So this is what I'm trying to do in Drupal 6: Node type A is video, node type B is a person Nodetype A has a reference field where you can enter a reference to any Node from nodetype B how can I create a block view which will be displayed on nodes from node type b, which will show all the nodes from node type A where the current node from node type B is referenced?", "Light clock with mirrors on a moving train", "Show that $\\mathbb{Q}\\times \\mathbb{Q}$ is denumerable", "Undefined control sequence and \\chapter error I’m getting an “undefined control sequence” error with the following code, using TeXstudio: \\documentclass[11pt]{article} \\begin{document} \\begin{center} \\chapter{CHAPTER 6} \\end{center} \\end{document}", "We all know , but that guidance is, naturally, geared toward main sites, where we want to keep things clean and focused. Meta, on the other hand, is a site's \"second place\", with some different rules and conventions. For example, questions on main sites can be closed as primarily-opinion-based, but meta is all about opinions. There's a \"discussion\" tag and such questions collect many opinions. Meta is different. Occasionally I see comment flags on metas and I'm never sure what to do with them. Setting aside things that are blatantly offensive or spam (that's a no-brainer), is there such a thing as \"too chatty\" or a comment discussion that should be moved to chat on meta? I am very conservative in deleting things on per-site metas (except on posts, which like main should stay focused). Are there any guidelines specific to per-site metas? I'm specifying per-site metas and not MSE because MSE seems to have conventions that fall somewhere between \"main site\" and \"per-site meta\". If the answer is the same for all metas then great, but I don't want to assume it'll be the same.", "Is it possible to use text-overflow:ellipsis on multiline text?", "Change keyboard layout (English UK) on command line to English US", "Abelianization of free group is the free abelian group", "Undefined Symbol ___gxx_personality_v0 on link", "How do I perform a biographical interview? I have a couple of elderly relatives who have not kept a journal and refuse to write down their \"life story.\" I really would like to know their stories and who they were and who they are. They have their favorite stories that they rehash every time I see them, but I'd like to get more. I have no experience with \"interviewing\" and am looking for information on how to get their stories. Any websites, books, and or tips\\techniques would be greatly appreciated.", "Show that AB is singular if A is singular Actually I need to show that $\\det(AB) = \\det(A)\\det(B)$ if $A$ is a singular matrix. The determinant of $A$ is $0$ if $A$ is singular, so $\\det(AB)$ has to be $0$ as well, but I have problems showing that $AB$ is singular if $A$ is singular. How can I show that?", "How to grep a specific line _and_ the first line of a file? Assuming a simple grep such as: $ psa aux | grep someApp 1000 11634 51.2 0.1 32824 9112 pts/1 SN+ 13:24 7:49 someApp This provides much information, but as the first line of the ps command is missing there is no context for the info. I would prefer that the first line of ps be shown as well: $ psa aux | someMagic someApp USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND 1000 11634 51.2 0.1 32824 9112 pts/1 SN+ 13:24 7:49 someApp Of course, I could add a regex to grep specifically for ps: $ ps aux | grep -E \"COMMAND|someApp\" However, I would prefer a more general solution as there are other cases in which I would like to have the first line as well. Seems like this would be a good use case for .", "I tried to reproduce the results from the unfortunately the video link is broken. And I might have overlooked some related settings. The spot light is barley visible on the ground. Increasing the Density of the Volume Scatter Node darkens the sky texture but leads to some light cone from the car's headlight. (only 10 samples in preview). Which settings do I need to change or should I try a different approach? Integrator settings are default and spotlight settings were copied from the example found in the docs. Related: (pre 2.7) (BI only)", "Does set difference distribute over set intersection? I am asked to prove that, if $A, B$ and $C$ are sets, then $$A-(B\\cap C)=(A-B)\\cap(A-C).$$ However, I think that either I have made an error in my working, or the wording of the problem contains a typographical error. My working so far is as follows: $$\\begin{align}x\\in(A-(B\\cap C)) &amp;\\iff (x\\in A)\\wedge(x\\not\\in(B\\cap C))\\\\ &amp;\\iff(x\\in A)\\wedge((x\\not\\in B)\\vee(x\\not\\in C))\\\\ &amp;\\iff((x\\in A)\\wedge(x\\not\\in B))\\vee((x\\in A)\\wedge(x\\not\\in C))\\\\ &amp;\\iff(x\\in(A-B))\\vee(x\\in(A-C))\\\\ &amp;\\iff x\\in((A-B)\\cup(A-C)) \\end{align}$$ First line to second line: by De Morgan's Law. Second line to third line: by distributivity of set intersection over set union. Third line to fourth line: by definitions of intersection and set difference. If my working is correct, then I have shown that $$A-(B\\cap C)=(A-B)\\cup(A-C).$$ Am I correct?", "Why is the Java main method static? The method signature of a Java main() method is: public static void main(String[] args){ ... } Is there a reason for this method to be static?", ".NET obfuscation tools/strategy", "How do neutrinos pass through the sun so quickly? If it takes thousands of years for light to escape our sun then how can neutrinos generated in the very center of the sun reach earth in just 8 minutes? Why is their speed so great that they can easily escape the pull of the sun at near light speed? Solar neutrinos originate from the nuclear fusion powering the Sun and other stars. The details of the operation of the Sun are explained by the Standard Solar Model. In short: when four protons fuse to become one helium nucleus, two of them have to convert into neutrons, and each such conversion releases one electron neutrino. The Sun sends enormous numbers of neutrinos in all directions. Each second, about 65 billion ($6.5\\times 10^{10}$) solar neutrinos pass through every square centimeter on the part of the Earth that faces the Sun.[8] Since neutrinos are insignificantly absorbed by the mass of the Earth, the surface area on the side of the Earth opposite the Sun receives about the same number of neutrinos as the side facing the Sun. -", "Probably dumb question, but I would like to ask it anyway. I was to solve this equation: $z^4 = -16$ At first glance, the way to solve it would be (as any other equation): $z^2 = \\sqrt{-1} * 4 \\lor z^2 = -\\sqrt{-1} * 4$ $z^2 = 4i \\lor z^2 = -4i$ $z = 2\\sqrt{i} \\lor z = -2\\sqrt{i} \\lor z = 2i\\sqrt{i} \\lor z = -2i\\sqrt{i}$ However, in suggested answers, there are $z_1, z_2, z_3$ and $z_4$ found using trigonometric formulas. Is there something particulary wrong in my solution and the only proper one uses trigonometric form of complex number?", "Time travel short story where dinosaur doesn't taste like chicken", "Is color undefined I want to check whether a color has been previously defined, consider the below code which doesn't execute. \\documentclass{article} \\usepackage{xcolor} \\newcommand{\\colorprovide}[2]{\\ifx\\undefined{#1}\\colorlet{#1}{#2}\\fi} \\begin{document} %Initial Definition \\colorprovide{mycolor}{red} \\textcolor{mycolor}{Test 1} %Will overwrite \\colorlet{mycolor}{green} \\textcolor{mycolor}{Test 2} %Should NOT overwrite as it exists \\colorprovide{mycolor}{red} \\textcolor{mycolor}{Test 3} \\end{document} In other words and analogous to \\providecommand{...} not renewing an existing command if it exists, I need a macro which will will NOT redefine a color if the color has already been defined. The above code throws an error as the logical checking part \\ifx\\undefined... is incorrect." ]
medi_sts_stackexchange_dupe
Where did the British accent originate from in Star Wars?
Why does Leia's accent change during A New Hope?
[ "Loading OpenStreetMap data in QGIS?", "How do I use sudo to redirect output to a location I don't have permission to write to? I've been given sudo access on one of our development RedHat linux boxes, and I seem to find myself quite often needing to redirect output to a location I don't normally have write access to. The trouble is, this contrived example doesn't work: sudo ls -hal /root/ &gt; /root/test.out I just receive the response: -bash: /root/test.out: Permission denied How can I get this to work?", "Is it possible to install Ubuntu FROM a smartphone? So, I'm in a situation were I want to install ubuntu in my laptop (currently running windows 8) but I don't happen to have pendrives, CDs or the like available. The only \"external\" device I have with me is a samsung galaxy s2 with a micro SD-card in it. Is it possible to use the phone as a pendrive to install ubuntu from it somehow? (without damaging the phone's OS and data)", "Abnormal PREEMPTIVE_OS_AUTHENTICATIONOPS Waits", "How do I make sure that values from MySQL keep their type in PHP?", "What is the full \"for\" loop syntax in C?", "How to modify itemize vertical spacing within blocks in beamer? I have noticed that when I have \"itemize\" environments defined within blocks in beamer, that they introduce more vertical spacing between the top and the bottom of the blocks, than vertical text. Since I have a slide with some text filled blocks and directly after, a slide with only \"itemize\" holding blocks, I would like the spacing between the itemized text and the block to be the same as for regular text. On I have read about \"squeeze\" option, but it doesn't seem to work... Additional info: The problem is in the additional vertical space that is included by the \"\\itemize\" environment. I have found on how to remove vertical spacing from the itemize list, and I am using this approach. However, it is a brute force approach. What I would like to know if it is possible to have the same vertical space between the end of the itemize list and the bottom of a block, as the one set between the normal text and the bottom of the block. MWE: \\documentclass[10pt]{beamer} \\usepackage{amsmath} \\usepackage{amsfonts} \\usepackage{amssymb} \\usepackage{exscale} \\usepackage{epsfig} \\usepackage{fancybox} \\usepackage{lmodern} \\usepackage[T1]{fontenc} \\usepackage{overpic} \\usepackage{multimedia} \\usetheme{default} \\usecolortheme{crane} % -- Modifications that enable the footline and set black color for the fonts \\setbeamertemplate{footline}{% \\begin{beamercolorbox}[wd=\\paperwidth,ht=2.25ex,dp=1ex,right, rightskip=1mm, leftskip=1mm]{titlelike} \\textcolor{black}{ %\\inserttitle\\hfill\\insertauthor\\hfill\\insertframenumber% Something\\hfill Something Else \\hfill\\insertframenumber% } \\end{beamercolorbox} } \\setbeamertemplate{itemize items}[square] \\setbeamercolor{item}{fg=black} \\setbeamercolor{frametitle}{fg=black} \\setbeamercolor{block title}{fg=black} \\setbeamercolor{title}{fg=black} \\setbeamercolor{block body}{bg=white} % END Modifications \\begin{document} \\begin{frame} \\frametitle{text blocks} \\begin{block}{block} block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block blockk \\end{block}{block} \\begin{block} block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block \\end{block} \\begin{block}{block} block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block block \\end{block} \\end{frame} \\begin{frame} \\frametitle{itemize blocks} \\begin{block}{item} \\begin{itemize} \\item item \\item item \\item item \\end{itemize} \\end{block} \\begin{block}{item} \\begin{itemize} \\item item \\item item \\item item \\end{itemize} \\end{block} \\begin{block}{item} \\begin{itemize} \\item item \\item item \\item item \\end{itemize} \\end{block} \\end{frame} \\end{document}", "Geodesics equations via variational principle I would like to recover the (timelike) geodesics equations via the variational principle of the following action: $$ \\mathcal{S}[x] = -m \\int d\\tau = -m \\int \\sqrt{-g_{\\mu\\nu}\\,dx^{\\mu}\\,dx^{\\nu}} $$ Using an arbitrary auxiliary parameter $\\lambda$, then one is able to rewrite the action and obtains: $$ d\\tau = \\sqrt{-g_{\\mu\\nu}\\, \\tfrac{dx^{\\mu}}{d\\lambda}\\tfrac{dx^{\\mu}}{d\\lambda}} d\\lambda $$ $$ -m \\int d\\tau = -m \\int (d\\tau / d\\lambda) d\\lambda = -m\\int\\sqrt{-g_{\\mu\\nu}\\, \\tfrac{dx^{\\mu}}{d\\lambda}\\tfrac{dx^{\\mu}}{d\\lambda}} d\\lambda $$ Now we can vary the paths $x^{\\mu}(\\tau) \\rightarrow x^{\\mu}(\\tau) + \\delta x^{\\mu}(\\tau)$. I need the following equation to be true, so i get the geodesics equations, but I don't know how one can say the following: $$ \\int d\\tau \\,\\delta g_{\\mu\\nu}\\frac{dx^{\\mu}}{d\\tau} \\frac{dx^{\\nu}}{d\\tau} = \\int d\\tau\\, g_{\\mu\\nu, \\rho} \\frac{dx^{\\mu}}{d\\tau} \\frac{dx^{\\nu}}{d\\tau} \\delta x^{\\rho} $$ I know there is a simpler action, which leads to the same equation of motion, but there one has to do the same manipulation, which I sadly don't understand. Thanks for helping me!", "How can I find the codes related to a function in GAP? When I use \"??\" in front of the name of function there is no help, so I want to find the code of function among packages.", "The problem is stated as follows: \"Let $R$ be a Noetherian ring and $\\theta$ be a ring homomorphism from $R$ to $R$. Show that if $\\theta$ is surjective then it is also injective.\" Regardless of the right solution, I don't understand why is the following wrong: We have $\\theta: R\\to R$. By the isomorphism theorem $R/\\ker\\theta\\cong\\operatorname{Im}\\theta$. Since $\\operatorname{Im}\\theta = R$, it follows $\\ker\\theta =0$, so it's injective. Harsh criticism will be appreciated. Thanks.", "I’m looking for an adjective/ noun that describes a person who loves life, traveling, great food, always doing things which gets adrenaline kicking and is a always ready for attempting things for pleasure only", "Clustering on the output of t-SNE I've got an application where it'd be handy to cluster a noisy dataset before looking for subgroup effects within the clusters. I first looked at PCA, but it takes ~30 components to get to 90% of the variability, so clustering on just a couple of PC's will throw away a lot of information. I then tried t-SNE (for the first time), which gives me an odd shape in two dimensions that is very amenable to clustering via k-means. What's more, running a random forest on the data with the cluster assignment as the outcome shows that the clusters have a fairly sensible interpretation given the context of the problem, in terms of the variables that make up the raw data. But if I'm going to report on these clusters, how do I describe them? K-means clusters on principal components reveal individuals who are nearby to one another in terms of the derived variables that comprise X% of the variance in the dataset. What equivalent statement can be made about t-SNE clusters? Perhaps something to the effect of: t-SNE reveals approximate contiguity in an underlying high-dimensional manifold, so clusters on the low-dimensional representation of the high-dimensional space maximize the \"likelihood\" that contiguous individuals will not be in the same cluster Can anyone propose a better blurb than that?", "Can I become leader of the Thieves' Guild without finishing the main chain and is there any benefits from being the leader anyway? I completed the quest where you get the Skeleton Key and I don't really want to continue the chain until I've done a lot of the other stuff in the game, since the key is so useful. Brynjolf said before that I would become leader of the guild after everything was over. Can I become the leader anyway without finishing the Nightingales quest chain? Are there any bonuses for being the leader?", "Fake induction proofs", "How can I disassociate an account? I want to disassociate an account from the rest of my associated accounts. How can I do that? The information in doesn't seem to be relevant anymore, since I can't find this thing Click the \"Clear All Associations\" button on the bottom of the Accounts page on your profile. Every time I add or remove an email or OpenID from one site it propagates to the entire network.", "If I need to use Blender within a colour-accurate workflow, what do I have to do to set that up (including hardware calibration, etc)?", "Is there a Stack Exchange site for architecture?", "How to create a circular shaped grid, similar to a manhole cover", "Book: World covered in trees that are miles high", "Am I technically allowed to look up cards during a Magic tournament match? Am I allowed to look up a card during a game, if it's being played with serious Rules Enforcement? Either to read the full card from the Gatherer, or to try to find the exact card I'm vaguely thinking of. Two possible scenarios: An opponent has revealed a card previously, and I want to remember the exact details. (Something like the exact wording of a sorcery, mana cost, keywords on a creature, subtypes, etc. etc.) I have a \"name a card and remove it from the opponent's deck\" type card, and I want to, say, ask google for \"Blue Gearhulk\" to remember that it's that that one is called \"Torrential Gearhulk\". Obviously, in casual or semi-casual games neither of these are a problem. Any reasonable opponent will just re-reveal the known card (assuming it IS still guaranteed to be known) or will accept \"I name the Blue Gearhulk\". Also obviously, it seems unlikely that I (or anyone else) would get to the stage of playing at the REL without knowing the cards too thoroughly for this to be relevant. But in principle... is it permitted? Or not? (and if not, is there a good reason, or just \"we decided 'No'\"?)" ]
medi_sts_stackexchange_dupe
trying to count characters, words, and lines in C
Counting lines, words, characters and top ten words?
[ "What is the most elegant way to check if the directory a file is going to be written to exists, and if not, create the directory using Python? Here is what I tried: import os file_path = \"/my/directory/filename.txt\" directory = os.path.dirname(file_path) try: os.stat(directory) except: os.mkdir(directory) f = file(filename) Somehow, I missed os.path.exists (thanks kanja, Blair, and Douglas). This is what I have now: def ensure_dir(file_path): directory = os.path.dirname(file_path) if not os.path.exists(directory): os.makedirs(directory) Is there a flag for \"open\", that makes this happen automatically?", "Is it possible to restore a MySql database only using files from Data directory? I have a mysql installed inside a windows virtual machine. The hard drive was crashed and the system is not able to restore all again. But I can have access to entire c: ROOT. So I went to c:/ProgramData/Mysql/Mysql Server 5.5/data/myDatabaseName There I can see different files like: .frm, .opt, .trg and .trn. In a regular way, I could run a mysqldump to backup and restore all database from command line, but the system is not able to be restored. So I had to copy all these files and past inside inside the same directory inside same database in another physical instance. The issue is some tables are not been recognized by this new instance. So I think copy and past is not enough to restore the database. What am I missing? Note: Database has innoDb and Myisam tables.", "If $\\gcd (a,b) = 1$, what can be said about $\\gcd (a+b,a-b)$? Suppose $a, b \\in \\mathbb{Z}$, $a &gt; b$, and $\\gcd (a,b) = 1$. What can be said about $\\gcd (a+b,a-b)$? Is it true in general that $\\gcd (a+b,a-b) \\leq 2$?", "the largest integer $n$ for which $n+5$ divivides $n^5+5$? When we divide $n^5+5$ by $n+5$, we get a remainder $-620$, i.e., $n^5+5=K(n+5)-620$ , now how to proceed further?", "How do we know an $ \\aleph_1 $ exists at all? I have two questions, actually. The first is as the title says: how do we know there exists an infinite cardinal such that there exists no other cardinals between it and $ \\aleph_0 $? (We would have to assume or derive the existence of such an object before we label it something like $ \\aleph_1 $.) My second question is, can we say for certain if there's any limit to the number of cardinals existing between $ \\aleph_0 $ and continuum (i.e. $ 2^{\\aleph_0} $)? I mean, how could we know that there&#39;s not an infinite number of cardinals between the two - perhaps even more than $ \\aleph_0 $?", "The following problem came up from a though I had while reading: Let's say we have $M=\\mathbb{Z}^n$ and we have another free $\\mathbb{Z}$-module, $N$, inside of $M$ also with rank $n$. We know we can make a matrix $A$ that changes $N$ to its representation in $M$ (ie has as columns the basis $N$ expressed in coordinates coming from the basis of $M$). If the index of $N$ in $M$ is $m$, I am pretty sure just from tinkering that the determinant of $A$ should also be $m$, however, I have not been able to show this. It is unclear to me how to proceed. I though maybe I could do something related to the points in $\\mathbb{Z}^n$ that are within the unit box of $N$, but I cannot really make sense of this. Thank you for any help or direction.", "What does // mean in a path? I was working in my terminal, when I misspelled while cd to root (/). Accidentally, I typed // and I got in terminal: root@weblocalhost://# When i type pwd, i get response // but when I type ls -s i got same list as in / directory. When you type more than 2, i.e. /// you get: root@weblocalhost:/# Always 1 / except for 2. Is there any difference and what is // for?", "What does a \"Legacy USB Mouse\" option in a BIOS mean? Yes legacy usually means older revision, or obsolete. So legacy usb mouse means support for \"old style usb mouses\". That's not really answering the question. As Mr. Tamm, my high school electricity teacher, liked to say, \"Yes, and oranges taste orangey.\" What does legacy USB mouse support mean? What is a legacy USB mouse? There's an \"old style\" USB mouse? What changed between what version of usb and what version of usb that made mice incompatible? Why was the change made? When was the change made? Who made the change? What was the virtue of the \"new USB mouses\" over the \"old USB mouses\"? Put it another way: What is the BIOS doing when \"Legacy USB Mouse\" option is enabled? What is the BIOS doing when \"Legacy USB Mouse\" option is disabled? See also", "Principle of Reflection on atomic level This well-observed phenomenon has, besides several others, always been a fascination to me. We are well aware of several theories, experiments, and practical applications of this well-known phenomenon, but is it established what goes on at the grassroots of reflection? My high school teacher once told me that whenever light is incident on any reflecting surface, its electrons absorb the energy of the photon and release back the same energy. If this is actually true, then I have plenty of questions to continue, but if it is not, then what is reflection, and how and why does it take place?", "The third formula on the states that $$\\varphi (mn) = \\varphi (m) \\varphi (n) \\cdot \\dfrac{d}{\\varphi (d)} $$ where $d = \\gcd(m,n)$. How is this claim justified? Would we have to use the Chinese Remainder Theorem, as they suggest for proving that $\\varphi$ is multiplicative?", "How to Self-Study Mathematical Methods? Edit: Ok, user made comment that truly helps narrow the focus of my question. Basically, I'm asking for a self-study course of Mathematical Methods. Thanks to his recommendation I identified a book that is very close to the answer: Mathematical Methods in the Physical Sciences by Mary L. Boas Supposedly, the book covers most of the Math a person needs to learn in order to understand the simulations I presented. Does this book suit my needs? Hello, I have always been interested on the idea to study Math at an Undergraduate level to be able to implement simulations like the followings: Finite Difference Simulation of the Wave Equation Heat Equation in Two Dimensions Besides my precollege experience in Math, I have only been able to do very simple simulations due to my lack of knowledge of Advanced Math. Every time I ask about the inner workings of the simulations I get redirected to papers that look like foreign language to me and, unfortunately, I depend on easy-to-read tutorials to understand them, and while I have found I'm more interested in reaching the solution myself. I checked some of the questions related to book recommendations for self-study and while they are very helpful I'm interested in learning by example (There is a book called: \"Accelerated C++ Practical Programming by Example\" that fits very well my study habits) Thanks in advance.", "How do Prestige Classes that advance spellcasting interact with racial spellcasting ability? For example Lets use the Marrutact from Sandstorm, it can cast as a 5th level wizard. if it then takes a prestige class that requires the ability to cast 1st level Arcane spells and advances arcane casting such as Abjurant Champion. assuming it meets all other prerequisites does the Marrutacts spellcasting improve when it takes a level in Abjurant Champion or does it gain no benefit?", "I have a group of objects of the same colour, consisting of compound paths, regular paths and groups of these. How to change the colour of all objects at once? When I tried to use colour picker or change it through color palette the colour remained the same but the graphics was rendered with a very tiny outline of the new colour, which I guess is not printable. Usually I had to change the colour of all objects individually. Edit: I'm sorry if I was not too precise. I mean to apply new colour / swatch to all member objects of the group at once, not to change properties of a commonly shared swatch. Edit 2: I received very useful answers, however my goal was to pick a colour from another object, serving as a source. When I tried to select all objects, for example with ctrl-a, and then use a eyedropper to pick up a desired colour, it didn't work for some objects in some groups. Please have a look at my answer where several methods are listed.", "about Linux's zip utility says this about the -u flag: Replace (update) an existing entry in the zip archive only if it has been modified more recently than the version already in the zip archive. For example: zip -u stuff * will add any new files in the current directory, and update any files which have been modified since the zip archive stuff.zip was last created/modified. My question is, if a particular file has been removed since the last time it was zipped, whether -u will recognize that the file has been removed and thus remove it from the *.zip file? Or, lacking timestamp information (since the file is now removed), it will leave the backed up file in *.zip, since there is no \"newer\" file?", "When is \"EDIT\"/\"UPDATE\" appropriate in a post? I often see questions edited into this form: Lorem ipsum dolor sit amet blah blah blah paragraph paragraph original question. UPDATE: The Lorem disappeared and left this message: \"new information\". I find this format unaesthetic (since Stack Exchange posts are supposed to be useful in the long term and update boundaries are artifacts of the creation rather than the content) and feel that new information should, whenever possible, be incorporated into the original text “as if it had always been that way” if practical, and pointing out an update should be done mostly in comments. Is this an appropriate writing style, and if so under what circumstances? If not, should it be removed or discouraged?", "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?", "\"Unable to connect to Upstart\" error when installing git-all I am using 15.04. So I'm working with git and I installed the standard version. I set up the ssh keys and was able to clone one of my repositories to the correct folder. Everything was working great and then I decided it was a good idea to install more packages. I ran sudo apt-get install git-all. I'm looking at error codes now having to deal with upstart. start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused No apport report written because the error message indicates its a followup error from a previous failure. dpkg: error processing package runit (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of git-daemon-run: git-daemon-run depends on runit; however: Package runit is not configured yet. dpkg: error processing package git-daemon-run (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: runit git-daemon-run E: Sub-process /usr/bin/dpkg returned an error code (1) This is what happens when I even update/upgrade my system. At this point all I'm looking to do is be able to install software and update my current software. Is there any way I can potentially reverse this issue or at least correct it? Edit: Thankfully this issue was solved only a day or two after it happened. The accepted answer worked perfectly and took care of my issue", "How to list all functions in a Python module?", "Consider these two sentences: \"I gave him a pencil,\" and, \"I gave a pencil to him.\" Is it correct that the important part of the sentence is placed at the end? When we want to emphasize the pencil that I gave him, must we say, \"I gave him a pencil?\" When we want to emphasize that it is him to whom I gave a pencil, must we say, \"I gave a pencil to him?\"", "Is it safe to put a clothes washer outdoors? I will be short on usable indoor space for a while, but want to be able to wash clothes on site. Are there any issues with putting a washer (and perhaps, a dryer) outdoors? Perhaps it needs to be protected from the rain. Would an EZ-UP style canopy be sufficient?" ]
medi_sts_stackexchange_dupe
Getting java.lang.NullPointerException while entering data into database in jsp using ojdbc
What is a NullPointerException, and how do I fix it?
[ "I'm using Bash on both client and server. When running a command over SSH: ssh &lt;host&gt; 'declare' gives a list of shell variables. ssh &lt;host&gt; 'mount' gives a list of mountpoints. However, declare is a Bash builtin, while mount is an external command. How does SSH know which to run if there is a shell builtin and an external command with the same name on the server?", "\"who\" vs. \"whom\" and when to omit the relative pronoun This is the boy who was asked by the teacher to stay back after school. This is the boy whom the teacher asked to stay back after school. This is the boy the teacher asked to stay back after school. Are the sentences above correct ?", "Eclipse is giving me this error when I try to copy an object back to the Force.com server: \"unable to perform synchronize check with remote server Invalid username, password, security token; or user locked out Your project may be out of sync.\" This is my first try at using Eclipse, so it may not be set up right. Can anyone help? Thanks! Edit: screenshot of trying to deploy:", "Profile page \"activity\" tab is broken", "Does an electrolytic capacitor degrade each time it receives reverse voltage?", "Why don't shell builtins have proper man pages? All shell builtins share the same manual page: BUILTIN(1) BSD General Commands Manual BUILTIN(1) NAME builtin, ! etc. Then there is a little text describing what shell builtins are, and then a list that looks something like this: Command External csh(1) sh(1) ! No No Yes % No Yes No But if we do man grep we get sections such as Bugs History See also Standards Description etc. Don't shell builtins have their own history, description and arguments like -A or -r? Why isn't that provided in the manual pages and how would I learn to use them correctly and efficiently?", "how many terms will there be once you collect terms with equal monomials? What is the sum of all the coefficients?", "I'm using Ubuntu Maverick and Virtual Box 3+. I have Windows 7 Ultimate. The problem is that it doesn't detect USB drives in Windows 7, but USB peripherals (mouse + keybord) are working. I followed , but I can't find the user group vboxusers. How can I continue? I would also like to upgrade to the latest version without any risk (without losing my virtual hard disk drive).", "Automatically make various multiple stroke colour the same as various underlying fill colours. I have auto traced a photograph in illustrator - its got thousands of vectors once I expand it and illustrator has converted each of them to a filled colour - I want to now trace the edges of them with a grungy brush but using the underlying fill colour. Where in illustrator can I stroke or outline these fills using the underlying colour - surely this is something that the program automatically does? I've found this script online but don't know how to implement it. I'm new to this so any help appreciated. Many thanks. James var idoc = app.activeDocument; var sel = idoc.selection; for (i=0; i&lt;sel.length; i++) { var ipath = sel[i]; ipath.stroked = true; ipath.strokeColor = ipath.fillColor; }", "We are given with $$S_n=\\{(x,y)|x^2+y^2=n, \\text{where }x,y,n \\in \\mathbb Z\\text{ and }n\\geq0 \\}$$ Now observe that $-\\sqrt n\\leq x\\leq\\sqrt n $ and similarily, $-\\sqrt n\\leq y\\leq\\sqrt n $. This means that $-\\left \\lfloor{\\sqrt n}\\right \\rfloor\\leq x\\leq \\left \\lfloor{\\sqrt n}\\right \\rfloor$ and $-\\left \\lfloor{\\sqrt n}\\right \\rfloor\\leq y\\leq \\left \\lfloor{\\sqrt n}\\right \\rfloor$. Through this result one can easily write code and figure out the cardinality of set $S_i$ but I was wondering whether an expression can be found that would allow one to directly compute $|S_i|$.", "$\\infty = -1 $ paradox", "JavaScript OR (||) variable assignment explanation", "How to exit early on pipe close? I use golang for writing programs that are too complex to express as bash functions. The programs read stdin line by line and write modified output to stdout. The problem with this iterating over all the lines in stdin approach, is that it doesn't exit early. For example, the following command will process all the lines instead of just 10: cat largefile | custom-program | head -n 10 How do the native unix application manage to exit early and how can I do the same in my custom scripts?", "More Question Filtering options I realize that this may be a big request, but... I think that instead of tabs on the recent question activity pages, or more likely as a new tab, adding a more advanced filtering option. For instance, being allowed to exclude tags, filter by accepted answers or not, and, most importantly, being able to combine multiple filters! E.g.: Filtering posts with tag Javascript without tags Jquery and AngularJS with no accepted answers and a score >= 0. I feel like this is a biggish change that, if implemented as a new tab, wouldn't be that hard to implement, but would be very useful.", "Update to latest version of java after ppa is discontinued", "On the Goblet of Fire Barty Crouch exactly got Mad-Eye's voice when he transformed into him, but on the Deathly Hallows, they were all able to have their own voices instead of Harry's. Why is the effect of the polyjuice potion inconsistent?", "Eigenvalues and power of a matrix", "proof that on a compact manifold a vector field is complete I would like to know if my proof of the following statement is correct If $M$ is a compact manifold, then every vector field $X$ over $M$ is complete. Proof: I take $p\\in M$ and $(\\gamma_p,I_p)$ a maximal integral curve through $p$. $I_p$ is open and non empty so if $I_p$ is closed, it is equal to $\\mathbb{R}$. So take $s\\in \\text{Adh}(I_p)$. There exists $t_i\\rightarrow s, t_i\\in I_p$. Define $q$ as $\\text{lim}(\\gamma_p(t_i))$ and take a maximal integral curve passing by $q$ as $(\\gamma_q,I_q)$. Then since the vector fields are $C^\\infty$, $\\gamma_q(I_q)\\cap\\gamma_p(I_p)$ is nonempty (intuitively, this is clear but don't really know how to show it). On the intersection, $\\gamma_p$ and $\\gamma_q$ coincide. So we can extend the maximal curve $\\gamma_p$ to include $\\gamma_q$. This implies that $q\\in\\gamma_p(I_p)$ and is actually equal to $\\gamma_p(s)$ I think the main idea is there even though it probably lacks a bit of rigour.", "Limit point versus limit and implications for convergence I understand that similar questions to this have been asked and but I believe my question is different because with regards to (1) I am not asking about the set $X$ that contains the points of my sequence and with regard to (2) because I have the distinct definitions of limit and limit point in mind. That said: My Question: My textbook, Fundamental Ideas of Analysis by Michael Reed, defines a limit point as: Definition: Let $(a_n)$ be a sequence of real numbers. A number $d$ is called a limit point if, given $\\epsilon &gt; 0$ and an integer $N$, there exists $\\color{red}{\\mathrm{ an }} \\ n \\ge N$ so that $|a_n - d| \\le \\epsilon$. The definition of a limit is as follows: Definition: We say that a sequence $(a_n)$ converges to a limit $a$ if, for every $\\epsilon \\ge 0$, there is an integer $N(\\epsilon)$ so that $|a_n - a| \\le \\epsilon \\color{red}{\\text{ for all }} n \\ge N$. From these definitions, and given this question: If a sequence converges it has exactly one limit point. Is the converse true? If not, provide a counterexample Can I conclude that the converse is indeed true simply by appealing to the definitions, or do I need a tighter proof. And if I do, I'm a little stuck on how to refine this proof.", "Seven-sided dice from five-sided dice with finite rolls I have a 5-sided dice, and I want to use it to simulate a 7-sided dice. Is there a way to do this with a finite number of rolls?" ]
medi_sts_stackexchange_dupe
Figure to Fig in both Caption and Autoref
customize of autoref
[ "I have a 3-wire that looks like this: I'm trying to wire it up to my Arduino to detect changes in weight. From what I understand, the changes in voltage are so small that the Arduino can't detect the changes without amplifying the voltage. So I bought an at that looks something this: I found that shows how to wire everything up. However, I can't figure out the schematic and why they are using two load sensors instead of just one. They also mention resistors but I'm not sure why they are using them (and why the sizes they chose), or where in the circuit to put them. Can someone please help me figure out how to wire this thing up to detect changes in voltage? Also, is there a way to do this by using only one of these sensors? This is what I've done so far: The amp also has some pins that I don't understand: Offset null, NC. What are these pins for? Should I be using them? Update: Now I am working with an Instrumentation Amplifier (). I also now have a 4-wire load sensor that I am playing with. Still can't get it to work, but I thought I would try to understand that before moving to the 3-wire load sensor.", "Take the function $$ \\begin{cases}f(x,y)=(x^2+y^2)/\\sin(\\sqrt{x^2+y^2}) &amp; \\text{when } 0&lt;\\lvert (x,y)\\rvert&lt;\\pi\\\\ 0 &amp; \\text{when } (x,y)=(0,0) \\end{cases}$$ I got that this function is differentiable at $(0,0)$. I calculated the partial derivatives at $(0,0)$ of which both were $0$ and trying to show the definition of differentiability is not satisfied but I keep getting that it is. Plz help.", "Should it be obvious that independent quantum states are composed by taking the tensor product?", "Wrong numeration in toc longer then one page I tried anything I could find with \\cleardoublepage and \\newpage and so on; mostly they use \\addcontentsline. I don't need to use it as listof=totoc already puts it into the toc so even if I use \\addcontentsline instead I get the same result. \\documentclass[ fontsize=11pt, DIV10, ngerman, paper=a4, twoside=false, titlepage, parskip=half, listof=totoc, bibliography=totoc, index=totoc, captions=tableheading, foottotes=multiple, final ]{scrartcl} \\usepackage[ automark, headsepline, ilines ]{scrpage2} \\usepackage[ngerman]{babel} \\usepackage[babel,german=quotes]{csquotes} \\usepackage[dvips]{graphicx} \\begin{document} \\ofoot{\\pagemark} \\pagenumbering{Roman} \\clearpage \\tableofcontents \\clearpage \\listoffigures \\clearpage \\pagenumbering{arabic} \\section{Test} \\label{sec:Test} Test \\subsection{Test} \\label{sec:Test} \\begin{figure}[H] \\centering \\caption{Testfig} \\label{fig:testfig} \\end{figure} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\end{document}", "How to get cross-references to multiple figures?", "I need a formula for conditional formatting to make an Excel 2010 spreadsheet alternate highlighting when a single column changes. This question, \"\", is exactly what I want to do, but the suggested solution didn't work for me--it just highlights the first row of each matching value. I know how to use conditional formatting, but for the life of me I can't figure out or find any pointers on the net so far to make this work. Ideas? Here is a link to a picture of how I want my spreadsheet to look when I'm done. Basically I want every other Disp Number value row to be highlighted. Seems like it would be a common thing to want to do, and I've seen this asked for in various places, but people struggle with making it work.", "Will C++ exceptions safely propagate through C code?", "Enable ADB and/or change USB connection mode on Galaxy S7 w/ broken screen", "/review tab not accessible on a private beta", "Can I install any iOS version I wish by picking and choosing which firmware to restore? I'm trying to downgrade my iPhone from the current iOS to an older one, as per . But every time I try, I always receive this error: The iPhone could not be restored. This device isn't eligible for the requested build. I have tried many times with and without DFU mode. Any ideas regarding this?", "Ideals in ring of continuous functions $\\mathcal{C}[0,1]$ ... NBHM- Algebra I would like to compile all questions I have encountered with Ideals in the ring $\\mathcal{C}[0,1]$ of all continuous real valued functions and ask if there are any gaps. Question is to see if : the ideal $\\mathcal{I}=\\{f\\in \\mathcal{C}[0,1] : f(0)=0\\}$ is maximal ideal in the ring $\\mathcal{C}[0,1]$ of all continuous real valued functions. What I have done so far is : consider $\\eta :\\mathcal{C}[0,1]\\rightarrow \\mathbb{R}$ where $f\\rightarrow f(0)$ $Ker (\\eta) = \\{ f\\in \\mathcal{C}[0,1] : f(0)=0\\}$ I could see that for each $r\\in \\mathbb{R}$, I would set $f$ such that $f(x)=x+r$ So, $\\eta$ is surjective. So, I would get $\\mathcal{C}[0,1]/\\mathcal{I}\\cong \\mathbb{R}$ As $\\mathbb{R}$ is a field so ia the quotient $\\mathcal{C}[0,1]/\\mathcal{I}$ which means that $\\mathcal{I}$ is an ideal in $\\mathcal{C}[0,1]$. Now Another Question on same idea : Question is to see if : the ideal $\\mathcal{I}=\\{f\\in \\mathcal{C}[0,1] : f(0)=f(1)=0\\}$ is maximal ideal in the ring $\\mathcal{C}[0,1]$ of all continuous real valued functions. I thought of using same ideas as above but i am unable to choose perfect $\\eta$ I believe that this is not even a prime ideal.. I set $f(x)=x$ and $g(x)=x-1$ and consider $f(x)g(x)=(x)(x-1)$ then, $(fg)(0)=f(0)g(0)=0.(-1)=0$ $(fg)(1)=f(1)g(1)=1.0=0$ So, $fg\\in \\mathcal{I}=\\{f\\in \\mathcal{C}[0,1] : f(0)=f(1)=0\\}$ but the neither $f$ nor $g$ is in $\\mathcal{I}$. I have two questions: I see that $0$ does not play any role in the question $\\mathcal{I}=\\{f\\in \\mathcal{C}[0,1] : f(0)=0\\}$ I mean I would have same case if i replace $0$ by any real number. So, I would like to say that $$\\mathcal{I}=\\{f\\in \\mathcal{C}[0,1] : f(r)=0\\}$$ is a maximal ideal in the ring $\\mathcal{C}[0,1]$ of all continuous real valued functions. And one more thing I would claim is that If the collection $\\mathcal{I}$ is such that all elements of $\\mathcal{I}$ has more than $1$ common zero then $\\mathcal{I}$ is not a maximal ideal and not even a prime ideal.. I would like to learn more about this kind of ideals in $\\mathcal{C}[0,1]$. I would be thankful if some one can assure that what have done is sufficient to conlcude what i have concluded and I would be thankful if some one can suggest some material to read regarding this. Thank you", "Do cards with abilities that target trigger heroic?", "What is a serialVersionUID and why should I use it? Eclipse issues warnings when a serialVersionUID is missing. The serializable class Foo does not declare a static final serialVersionUID field of type long What is serialVersionUID and why is it important? Please show an example where missing serialVersionUID will cause a problem.", "How do I recover my Google account (or Gmail) password or username?", "I've never really thought about how the shell actually executes piped commands. I've always been told that the \"stdout of one program gets piped into the stdin of another,\" as a way of thinking about pipes. So naturally, I thought that in the case of say, A | B, A would run first, then B gets the stdout of A, and uses the stdout of A as its input. But I've noticed that when people search for a particular process in ps, they'd include grep -v \"grep\" at the end of the command to make sure that grep doesn't appear in the final output. This means that in the command ps aux | grep \"bash\" | grep -v \"grep\" it is implied that ps knew that grep was running and therefore is in the output of ps. But if ps finishes running before its output gets piped to grep, how did it know that grep was running? flamingtoast@FTOAST-UBUNTU: ~$ ps | grep \".*\" PID TTY TIME CMD 3773 pts/0 00:00:00 bash 3784 pts/0 00:00:00 ps 3785 pts/0 00:00:00 grep", "Python inheritance - how to disable a function In C++ you can disable a function in parent's class by declaring it as private in the child class. How can this be done in Python? I.E. How can I hide parent's function from child's public interface?", "What are the differences between a multidimensional array and an array of arrays in C#?", "Antisymmetric Relations", "Direction of friction when a car turns", "Permission denied in 777 folder john@ubuntu01:~$ sudo ls -l /var/opt/gitlab/git-data/repositories/GL/www.git total 25068 drwxr-xr-x 2 git git 4096 aug 14 19:58 branches -rw-r--r-- 1 git git 66 aug 14 19:58 config drwxrwxrwx 2 root root 4096 aug 15 14:56 custom_hooks -rw-r--r-- 1 git git 73 aug 14 19:58 description -rw-r--r-- 1 git git 23 aug 14 19:58 HEAD lrwxrwxrwx 1 git git 47 aug 14 19:58 hooks -&gt; /opt/gitlab/embedded/service/gitlab-shell/hooks drwxr-xr-x 2 git git 4096 aug 14 19:58 hooks.old.1471193907 -rw-r--r-- 1 git git 1329 aug 15 14:48 index drwxr-xr-x 2 git git 4096 aug 15 13:58 info drwxr-xr-x 71 git git 4096 aug 15 14:55 objects -rw-r--r-- 1 git git 98 aug 15 13:58 packed-refs -rw-r--r-- 1 git git 25618530 aug 15 14:03 post-receive.log drwxr-xr-x 5 git git 4096 aug 14 20:31 refs john@ubuntu01:~$ ls -l /var/opt/gitlab/git-data/repositories/GL/www.git ls: cannot access '/var/opt/gitlab/git-data/repositories/GL/www.git': Permission denied Here are ACLs john@ubuntu01:~$ sudo lsattr /var/opt/gitlab/git-data/repositories/GL/www.git/custom_hooks -------------e-- /var/opt/gitlab/git-data/repositories/GL/www.git/custom_hooks/post-receive I have never seen this before. No permission to LS even with 777? I need to share this folder for more convenient development. How can I solve it? Thank you. EDITED: (here are your requests) john@ubuntu01:~$ sudo ls -ld /var/opt/gitlab/git-data/repositories/GL/www.git drwxrwxrwx 8 git git 4096 aug 15 14:48 /var/opt/gitlab/git-data/repositories/GL/www.git john@ubuntu01:~$ sudo ls -ld /var/opt/gitlab/git-data/repositories/GL/www.git/custom_hooks drwxrwxrwx 2 root root 4096 aug 15 14:56 /var/opt/gitlab/git-data/repositories/GL/www.git/custom_hooks EDITED MORE sudo ls -ld /var/opt/gitlab/git-‌​data/repositories/GL/‌​www.git ls: cannot access '/var/opt/gitlab/git-‌​data/repositories/GL/‌​www.git': No such file or directory hmmm... what is this?" ]
medi_sts_stackexchange_dupe
Ubuntu runs with a larger resolution than what my screen allows
My computer boots to a black screen, what options do I have to fix it?
[ "How to validate phone numbers using regex I'm trying to put together a comprehensive regex to validate phone numbers. Ideally it would handle international formats, but it must handle US formats, including the following: 1-234-567-8901 1-234-567-8901 x1234 1-234-567-8901 ext1234 1 (234) 567-8901 1.234.567.8901 1/234/567/8901 12345678901 I'll answer with my current attempt, but I'm hoping somebody has something better and/or more elegant.", "How to zero out a drive?", "Homework question on whether two quotient spaces are homeomorphic", "Squares in arithmetic progression It is easy to find 3 squares (of integers) in arithmetic progression. For example, $1^2,5^2,7^2$. I've been told Fermat proved that there are no progressions of length 4 in the squares. Do you know of a proof of this result? (Additionally, are there similar results for cubes, 4th powers, etc? If so, what would be a good reference for this type of material?) Edit, March 30, 2012: The following in MO is related and may be useful to people interested in the question I posted here.", "Passing directly an array initializer to a method parameter doesn't work", "How to copy files via terminal? I have read about copying files with terminal but these examples will help me a lot. So here is what I want to do: Examples: I have a file in /home/levan/kdenlive untitelds.mpg and I want to copy this file to /media/sda3/SkyDrive and do not want to delete any thing in SkyDrive directory. I have a file in /media/sda3/SkyDrive untitelds.mpg and I want to copy this file to /home/levan/kdenlive and do not want to delete any thing in kdenlive directory I want to copy a folder from home directory to sda3 and do not want to delete any thing on sda3 directory and opposite I want to cut a folder/file and copy to other place without deleting files in that directory I cut it into.", "I am working on a BLDC sensorless motor. I need to detect BEMF Zero-cross event. My Motor is working on 24 Volt power. Now I need to detect the back E.M.F. As refered in . My MCU is working on 5V. And ADC range is 0 to 5V. I need to convert the BEMF feedback signal to ADC channed in this. As we know voltage divider rule says: In Figure I :-- Now signal (U) which I need to feed is applied at the middle of the two resistors R1 &amp; R7. So what is the value of voltage VU ? In Figure II :-- Sum of U,V,W is applied at the middle of the two resistors R11 &amp; R15. So what is the value of voltage VN ? Also, what are the roles of capacitors C1 &amp; C4? Please can someone explain the MATH behind this ?", "Why is voltage same for the two resistors connected parallel in circuit? We know that the electric field inside resistor produced by battery is the actual thing that pushes the electrons in it to move and thus producing some current. We also know that strength of electric field can be described by the electric flux which is the total amount of fields passing through an area. That flux when combined(multiplied) with charge of electron gives the amount of force on it. Now comes our two resistors R1 and R2. Assuming a number of field lines coming out of a terminal going towards another terminal through these resistors, the field lines should get divided into the resistances R1 and R2. Therefore giving a reduced flux through each resistor than in a series. Which will then give a lower voltage for both resistors. Wasn't the electric fields strength divided across resistors in parallel? What is the main cause of voltage? How electrons get a force to produce current even when the wire is very long in? I think it is better to understand with reality than analogy. Please don't give misleading pictures", "When is it appropriate to create an entity instead of a new content type? What is the benefit to creating new entity types over just building a new content type? It seems a bit overkill to do all of the custom coding that is required to create a new entity when you have all of the CRUD and Views functionality already built into content types.", "I've noticed that, if I add \\n to a pattern for substituting using sed, it does not match. Example: $ cat &gt; alpha.txt This is a test Please do not be alarmed $ sed -i'.original' 's/a test\\nPlease do not/not a test\\nBe/' alpha.txt $ diff alpha.txt{,.original} $ # No differences printed out How can I get this to work?", "Let $p$ be a prime. Suppose that $\\gcd(a, b) = p$. Find $\\gcd(a^2,b)$ for all integers $a$ and $b$. Let $p$ be a prime. Suppose that $\\gcd(a, b) = p$. Find $\\gcd(a^2,b)$ for all integers a and b. I was able to prove that $\\gcd(a^2,b^2) = p$ but I don't know if it helps. Any help is greatly appreciated.", "Do new wire runs in an existing ceiling need to be stapled down? I've heard some people say that code requires wiring in the wall to be stapled to framing every so often (how often?), but when you are doing a remodel, is that necessary? I have a two story house, and would like to remove one standard dome light on the first floor ceiling and replace it with 6 recessed lights. There is about 12\" of empty space between the floors, and it seems easy enough to run the wire from light to light without cutting any drywall except for the 4-5\" holes required for the lights. However, there's no way I'd be able to staple the wiring down. It's just going to be loose in the ceiling, running through a small hole in the I joists every once in a while. They sell \"remodel\" light cans that are made specifically so you only have to cut a hole big enough for them to fit in, so this seems like a common job. What am I missing and how can I do this job in the most correct way? This is in Dallas, TX, single family residence.", "How does Neville Longbottom get the Sword of Gryffindor? I recently read the final book of the series. At one point was the vault heist, where the goblin Griphook runs off with the Sword of Gryffindor. Yet near the end of the book, Neville Longbottom suddenly has the sword and uses it to defeat the snake Nagini. How could this be possible? Griphook wanted the sword because it was goblin-made, so I doubt he would given it over to any non-goblin. How does Neville suddenly get the sword?", "I'm trying to make a command that creates a book that has many items with enchantments at level 1,000. However, I don't know why it keeps saying: Data tag parsing failed: Unbalanced quotation: {ench:[{id:0,lvl:1000}],Unbreakable:1,display:{Name:\"Prot It's supposed to say \"Protection Armor\", but it only shows \"Prot\" for some reason. This is the same with all of my other items. Here is the one part of the command that I've showed you: {ench:[{id:0,lvl:1000}],Unbreakable:1,display:{Name:\"Protection Armor\"}}", "Create JSON using apex", "Testing random number generation I have a program which generates random numbers. How can I test if the random number generator is generating actual random numbers?", "What do I need to run a D&D 5E campaign? I have GM'd several RPGs before that are not D&amp;D (Fate, Deathwatch, Star Wars). We first tried to play D&amp;D using the 3.5 edition and it went horribly — too many books and too many options with no idea of where to start. I have been told that 5E takes care of all that and is easier and more fun so I want to try that but I would like a definitive list of what I need. I expect that the kinds of books we need divide up like this: Rulebook for me as GM Rulebook for players Fluff for everyone Monster book for me as GM Links to these would be helpful as we got very confused with the 3.5 books — who should use what books confused us. What other things do we need to play a campaign? I expect things like: Dice: what kinds and how many of each kind, roughly. Models and maps. Do we need these? Does 5E need models and a grid or can it be played without (which is preferred)? Is there anything else that we need that I haven't anticipated?", "whether it be vs whether it is I brought the sentences from the speech about conversation tips. They don’t just want to know about news and the weather. They want to know about you. So what are three things that you have going on right now, that you can talk about. Whether it be school, whether it be a personal relationship, whether it be a hobby that you’re involved with. My questions: What is the difference in nuance between 'whether it is' and 'whether it be'? Before posting this question, I googled, and some websites say 'whether it be' is subjunctive. I don't get why it is called 'subjunctive'. Because from what I know about subjunctive, it's supposed to be past of be verb. If I say 'whether it should be' or whether it would be', is the meaning same?", "I enjoy going fast and my current bicycle tops too early, what kind of upgrades would I need to make to achieve a taller final gear?", "Motley fool says you can make $15,978 more per year with Social Security. Is this for real? The Motley fool has an ad campaign that says you can make $15,978 more per year on Social Security by doing 17 minutes of work using a legal loophole. I don't want to link to their ad (although, you can find it by searching ). What are they talking about here? Is there any truth to this? If someone could explain it to me without me having to watch the entire ad video or subscribe to their newsletter, I'd appreciate it." ]
medi_sts_stackexchange_dupe
Android Changing xml
What is a NullPointerException, and how do I fix it?
[ "Finding the number of non-negative integral solutions of $x + y + z = 10$", "We can solve the equation $x^x=c$ using the Lambert $W$ function, but how do we solve $x^{x^x}=c$ ,", "Explanation of method for showing that $\\frac{0}{0}$ is undefined (This was asked due to the comments and downvotes on this answer. I am not that good at maths, so was wondering if I had made any basic mistakes) Ignoring limits, I would like to know if this is a valid explanation for why $\\frac00$ is undefined: $x = \\frac00$ $x \\cdot 0 = 0$ Hence There are an infinite number of values for $x$ as anything multiplied by $0$ is $0$. However, it seems to have got comments, with two general themes. Once is that you lose the values of $x$ by multiplying by $0$. The other is that the last line is: $x \\cdot 0 = \\frac00 \\cdot 0$ as it involves a division by $0$. Is there any merit to either argument? More to the point, are there any major flaws in my explanation and is there a better way of showing why $\\frac00$ is undefined?", "How to Sync OneDrive Business /Office 365 on Linux? Microsoft OneDrive Business/Office 365 Pro offers 1 TB of cloud storage but unfortunately there has never been a method to sync it on Linux.", "Where to ask \"subjective and argumentative\" questions on programming?", "My little brother is just getting into programming, and for his Science Fair project, he's doing a simulation of a flock of birds in the sky. He's gotten most of his code written, and it works nicely, but the birds need to move every moment. Tkinter, however, hogs the time for its own event loop, and so his code won't run. Doing root.mainloop() runs, runs, and keeps running, and the only thing it runs is the event handlers. Is there a way to have his code run alongside the mainloop (without multithreading, it's confusing and this should be kept simple), and if so, what is it? Right now, he came up with an ugly hack, tying his move() function to &lt;b1-motion&gt;, so that as long as he holds the button down and wiggles the mouse, it works. But there's got to be a better way.", "Why is a finite integral domain always field? This is how I'm approaching it: let $R$ be a finite integral domain and I'm trying to show every element in $R$ has an inverse: let $R-\\{0\\}=\\{x_1,x_2,\\ldots,x_k\\}$, then as $R$ is closed under multiplication $\\prod_{n=1}^k\\ x_i=x_j$, therefore by canceling $x_j$ we get $x_1x_2\\cdots x_{j-1}x_{j+1}\\cdots x_k=1 $, by commuting any of these elements to the front we find an inverse for first term, e.g. for $x_m$ we have $x_m(x_1\\cdots x_{m-1}x_{m+1}\\cdots x_{j-1}x_{j+1}\\cdots x_k)=1$, where $(x_m)^{-1}=x_1\\cdots x_{m-1}x_{m+1}\\cdots x_{j-1}x_{j+1}\\cdots x_k$. As far as I can see this is correct, so we have found inverses for all $x_i\\in R$ apart from $x_j$ if I am right so far. How would we find $(x_{j})^{-1}$?", "Per the 's Wild Magic Surge table (PHB, p. 104) 07-08: You cast fireball as a 3rd-level spell centered on yourself. There's other questionable area spells in that list (grease is a 10 foot square, so your square and which three?), but I'll focus on spheres like (PHB p. 241): (...) Each creature in a 20-foot-radius sphere centered on the point must (...) My problem is, the sources I found so far - including the to similar questions here - talk about measuring spheres from grid square intersections, whereas this clearly talks about it being centered on the unlucky Wild Magic sorcerer. Plus, since it's a wild magic effect, it doesn't exactly have a caster that can pick a point of origin. Is there an accepted way to measure an effect like this?", "Notepad ignoring linebreaks Most documents I'm opening in notepad.exe under windows 7 lately, there are no linebreaks... everything just runs together. The same documents in any other program, even previewed directly in Explorer, will show the linebreaks correctly. this is happening with many .info files, .css, .js.. but not all of them. I am guessing it's some kind of character encoding unix line endings something or other, but wondering if there's anything I can do or if anyone else has experienced similar and if I can make notepad work correctly. I prefer it to notepad++/other text editors for certain uses.", "Possible Duplicate: In the following claim was mentioned: $R/I \\otimes_R M \\cong M / IM$ So I tried to prove it. Can you help me finish my proof? Thanks! We recall that $M \\otimes_R -$ is a covariant right-exact functor that it is exact if $M$ is flat and we observe that the following is an exact sequence: $$ 0 \\to IM \\xrightarrow{i} M \\xrightarrow{\\pi} M / IM \\to 0$$ $R/I$ is an $R$ module since $R/I$ is a subring of $R$ closed with respect to multiplication from $R$ but it is not necessarily flat hence we only get exactness on one side: $$ (R/I) \\otimes_R IM \\xrightarrow{id \\otimes i} (R/I) \\otimes_R M \\xrightarrow{id \\otimes \\pi} (R/I) \\otimes_R M / IM \\to 0$$ Then $$ \\mathrm{Im(id \\otimes \\pi)} = (R/I) \\otimes_R M / IM \\cong (R/I) \\otimes_R M / \\mathrm{Ker} (id \\otimes i) $$ so we want to show two things: (i) that $\\mathrm{Ker} (id \\otimes i) = \\{0\\}$. To this end let $r + I \\otimes im \\in (R/I) \\otimes_R IM $ and assume $ id \\otimes i(r + I \\otimes im ) = r + I \\otimes im = 0 + I \\otimes 0$. I'm not sure how to proceed from here. (ii) and that $M /IM \\cong (R/I) \\otimes_R M / IM $ Can you help me? Thanks.", "For which values of $x$, will $f (x) . f '(x) < 0$?", "For what real values of $a$ does $\\sum_{n=1}^{\\infty}{(\\frac{an}{n +1})^n}$ converge? For what real values of $a$ does the series $$\\sum_{n=1}^{\\infty}\\left(\\frac{an}{n +1}\\right)^n$$ converge? At first, I wanted to do the root test, but the problem is that $a$ could be negative. If I take it out of the fraction to get $$\\left(\\frac{a}{n+1}\\right)^n$$ it doesn't meet the criteria of either the Dirichlet or the Abel tests.", "I have heard rumors that you can compile documents online, and more specifically that Google has a free online compiler, but I have never been able to find any. Is there a way to compile documents online, so that I can write and compile documents even if I don't have a TeX distribution installed on my computer?", "How do I withdraw all money from my HSA account as a non-resident? I have lived in US for 5 years, and I (still) have an HSA account with BoA. Now I am living in Europe, and there's a fat chance I'll ever go back to live in US, so I would like to withdraw the money from my HSA, pay the due taxes, of course, and just be able to use them. How exactly I go about that? Thanks in advance.", "Why do soap operas have the soap opera effect? The soap opera effect occurs when frame interpolation is used. For example, if a movie is shot at 24 frames per second and then shown on a TV screen which is capable of displaying 60 frames per second then it is possible to use a computer to do motion interpolation. In other words the computer can average (interpolate) two frames and create a synthetic third frame and stick it between the two real frames. This interpolation makes the picture look unnatural and plastic, somewhat like soap operas look on TV, hence the name. My understanding of why soap operas have the soap opera effect has something to do with the fact that many of them are shot using camcorders instead of film, but I am not completely sure. Why do soap operas have the soap opera effect?", "What does $\\sum_{k=0}^\\infty \\frac{k}{2^k}$ converge to? This problem comes from another equation on another question (. I tried to split it in half but I found out that $$\\sum_{k=0}^\\infty \\frac{k}{2^k}$$ can't be divided. Knowing that $$\\sum_{k=0}^\\infty x^k=\\frac{1}{1-x}$$ I wrote that $$\\sum_{k=0}^\\infty \\frac{k}{2^k}=\\sum_{k=0}^\\infty \\left(\\frac{\\sqrt[k] k}{2}\\right)^k=\\frac{1}{1-\\frac{\\sqrt k}{2}}=\\frac{2}{2-\\sqrt[k] k}$$ But that's not what I wanted. Could anyone help me?", "Determining the name of the VMware host of a VM guest - from the guest", "Apply the latest Service Pack and Cumulative Update", "Execute sudo without Password?", "In the Futurama episode \"\" they save the world by rotating the Earth backwards saying it shouldn't matter (which direction Earth rotates). If Earth rotated clockwise and remained in it's current counter-clockwise orbit around the Sun, would it affect anything beyond the direction the constellations move across the sky?" ]
medi_sts_stackexchange_dupe
How to run multiple test classes in testng suite with only one web driver instance?
What is a NullPointerException, and how do I fix it?
[ "single email limit exceeded salesforce very frequently..? my email limit is exceeded after sending 10-12 emails..what could be the problem..as i have seen the limit is 1000 emails/day.i am not able to find out what could be the problem..Can some give me some suggestions. As i also know we can send 10 emails in a single transaction.I am sending emails in a batch class. I am calling this batch class on button click and filling emailList with emailsId's. String query='Select id from Lead';//No use of this query Batch_send_emails bse=new Batch_send_emails(); bse.query=query; bse.resendEmails=emailList; database.executebatch(bse); **Batch Class** if(!resendEmails.isEmpty()) { for(String s:resendEmails) { emailsLeads.add(s); } } Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage(); mail.setToAddresses(emailsLeads); // mail.setCcAddresses(ccAddresses); String subject='GoToMeeting Invitation Details for '+subject; String body='test'; mail.setHtmlBody(body); mail.setSubject(subject); Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail }); }", "Follow-up to question: Aut(G) for G = Klein 4-group is isomorphic to $S_3$ This is most likely a lack of understanding of wording on my part. I was considerind the Klein 4-group as the set of four permutations: the identity permutation, and three other permutations of four elements, where each of those is made up of two transposes, (i.e., 1 $\\rightarrow$ 2, 2 $\\rightarrow$ 1 and 3 $\\rightarrow$ 4, 4 $\\rightarrow$ 3) taken over the three possible such combinations of four elements. Here, then, is my question. I am assuming (?) that Aut(G) in this case is the set of permutations of the four elements of the Klein 4-group - or the three non-identity ones for the purpose of showing isomorphic to $S_3$. If this is the case, what does it mean to have a permutation of these three permutations that I mentioned above? As always, thanks for your help.", "Is there any advantage to using pedal straps over clipless pedals?", "Let $U$ be connected. A function $u \\in H^1(U)$ is a weak solution of Neumann's problem \\begin{equation} (*)\\qquad\\left\\{ \\begin{array}{rl} -\\Delta = f &amp; \\text{in } U \\\\ \\frac{\\partial u}{\\partial \\nu} = 0 &amp; \\text{on } \\partial U \\end{array} \\right. \\end{equation} if $$ \\int_U Du \\cdot Dv \\; dx = \\int_Ufv \\; dx $$ for all $v \\in H^1(U)$. Let $f\\in L^2(U)$. Prove $(*)$ has a weak solution if and only if $$ \\int_U f \\; dx =0. $$ For the only if part I set $v=1$. However I do not see where to start the if part. I was thinking of the Lax-Milgram theorem. That's where I'm now.", "How exactly does time slow down near a black hole? How exactly does time slow down near a black hole? I have heard this as a possible way of time traveling, and I do understand that it is due in some way to the massive gravity around a black hole, but how exactly does that massive gravity slow down time?", "Rendering low and res/high res images Is it possible to render in Blender with reduced low res files and then ask Blender to render the final render with 4k high res files? Low and high res files would be numbered identically but would be located in different folders. Many thanks", "I'm concerned about an app on my child's phone. I saw an app icon in the notification area that looked strange (Andy Android head, slightly tilted as its icon). How can I find out what app it is from just having seen that icon in the notification bar?", "How should I transform non-negative data including zeros? If I have highly skewed positive data I often take logs. But what should I do with highly skewed non-negative data that include zeros? I have seen two transformations used: $\\log(x+1)$ which has the neat feature that 0 maps to 0. $\\log(x+c)$ where c is either estimated or set to be some very small positive value. Are there any other approaches? Are there any good reasons to prefer one approach over the others?", "Agreement in \"[Singular Noun] Is/Are [Plural Noun]\"?", "Field that is a subfield of own of its subfields Let $K$ and $L$ be fields. We have homomorphisms $f: K \\to L$ and $g: L \\to K$. Are $K$ and $L$ necessarily isomorphic?", "Proving or disproving inequality $ \\frac{xy}{z} + \\frac{yz}{x} + \\frac{zx}{y} \\ge x + y + z $", "Content is not allowed in Prolog SAXParserException", "Are electrons miniature black holes?", "A few years ago Umber Ferrule wrote that the toolbars in the taskbar are defined in HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Streams. This looks very plausible but cannot be the entire story. Deleting this key will in no way affect the taskbar and on rebooting the system the key magically reappears. Why do I want to know? Simple. I would like to export the key to a reg. file as a convenient backup.", "I want to compile my program with the latest version of gcc. Ubuntu 14.04 comes with gcc 4.8.2, however there's 4.9.0 available, moreover, I see that it is available as a package: . I tried to install it sudo apt-get install gcc-4.9 but it says Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'gcc-4.9-base' for regex 'gcc-4.9' gcc-4.9-base is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Looks like it is already installed, just not as the default one? How do I utilize it to build my program?", "Here are some tips for tagging questions. These guidelines will help you more accurately tag your questions, which in turn will help them get more attention and lead to better answers faster. For more information, see \"\" in the .", "Lie algebra of $\\left(\\begin{smallmatrix}a & b\\\\ & a^2\\end{smallmatrix}\\right )$ in $GL_2(\\mathbb{R})$", "In C++, sizeof('a') == sizeof(char) == 1. This makes intuitive sense, since 'a' is a character literal, and sizeof(char) == 1 as defined by the standard. In C however, sizeof('a') == sizeof(int). That is, it appears that C character literals are actually integers. Does anyone know why? I can find plenty of mentions of this C quirk but no explanation for why it exists.", "How to overload __init__ method based on argument type?", "What's the function like sum() but for multiplication? product()? Python's function returns the sum of numbers in an iterable. sum([3,4,5]) == 3 + 4 + 5 == 12 I'm looking for the function that returns the product instead. somelib.somefunc([3,4,5]) == 3 * 4 * 5 == 60 I'm pretty sure such a function exists, but I can't find it." ]
medi_sts_stackexchange_dupe
How to visit older files first in a directory in java
Get files in a directory sorted by last modified?
[ "We currently have some indexes where ALLOW_PAGELOCKS is set to off. This presumably was done in order to reduce deadlocks. However I doubt that it would really had an effect back then. Now I am trying to understand WHEN SQL Server actually chooses to start locking pages rather than keys in a clustered index. I asked Jonathan Keyhaisas recently and he told me that this could happen if I am touching rows on several subsequent pages. However I didn't manage to get any exclusive page locks by updating rows in a clustered index with a sample query. Could you help me understand page locks better with a sample query and table? I am running SQL Server 2008 SP4. Thanks in advance Martin", "Usage in sentence: Person A: Ooh - look at that crow! Person B: Well, actually, as someone who is a scientist who studies crows, I am telling you, specifically, in science, no one calls jackdaws crows. They're not the same thing. If you're saying \"crow family\" you're referring to the taxonomic grouping of Corvidae, which includes things from nutcrackers to blue jays to ravens. It's not one or the other, that's not how taxonomy works. Person A: Are you always such an XXX? \"Pedant\" is close, but not quite. It would be a mix of \"know-it-all\", \"condescending\" and \"arrogant\".", "In the 3rd and 4th editions of D&amp;D, there were explicit rules for determining if a character knew anything about a monster before them. In 3rd edition, for example, use of the skill with a general DC of 10 + the monster's HD allowed for determining one fact, plus one fact per 5 points over the check. Looking at the Intelligence section of the 5e PHB, I don't see any similar notation. Does 5e provide any guidance as to when a player could use their out-of-game knowledge about a monster, or when the player might be told things their character would probably know in-game?", "Goofy looking alien robots lose a \"Kleptonite Ball\" towed behind their spacecraft", "How do you improve Drupal performance? Drupal is fast at develop, but the performance is so poor. It is hard to reach 50 request per second. And there are so many SQL queries in a simple web page. If you test the request time of a form submit in Drupal.org it will always take seconds to finish. How do you improve the speed of your web site?", "Should training data in each batch size be resample only one time or at each epoch when using mini-batch I saw some related question regarding to the fact is one should use sampling with resampling or without when using minibatch. However my question is different. Let's assume that I use sampling witouth replacement. Meaning that for each epoch one training example can only belong one 'batch size' group. I want to know if one should only resample the training data (into the different batch size) only 1 time or before to start to update the parameters before each epoch. For instance suppose I have 20 'batch size' group. Suppose at the first iteration I have sampled picture A in group 2 and picture B in group 4. If so should picture A always stay in group 2 and picture B in group 4. Or should I resample it before to start a new epoch (e.g. at epoch 2 put picture B in group 6 and picture B in group 20).", "Why do we say that the Earth moves around the Sun? In history we are taught that the Catholic Church was wrong, because the Sun does not move around the Earth, instead the Earth moves around the Sun. But then in physics we learn that movement is relative, and it depends on the reference point that we choose. Wouldn't the Sun (and the whole universe) move around the Earth if I place my reference point on Earth? Was movement considered absolute in physics back then?", "Does it make sense to say, \"The speed of light varies?\" Some may say right off the bat \"Yes, it changes as a wave passes through a different medium.\" However, I'd like to say no, because when I hear someone say the speed of light, I always think of the constant $c$ (unless the medium is specified to not be a vacuum, but then it isn't $c$ anymore), not the speed of a particular wave. To me, it makes more sense to say something like, \"The speed of a particular wave varies.\" What is the correct way to state this in the professional world? And in general, when professional physicists say \"the speed of light,\" are they referring to the constant or the actual speed of the wave?", "I haven't seen this behavior out in the wild much, but it happened again recently and I was wondering if a flag could be automatically raised when this happens: User posts answer Answer is down voted User deletes answer User posts exact same text as a new answer User effectively ditched down votes Got down voted again? Wash, rinse and repeat. Profit (perhaps after modifying the post, which is what you should have done to begin with) I feel that this should raise a duplicate content flag, with slightly stronger wording. Would this be possible to implement? Or, perhaps, don't let users post new answers if they have a deleted answer to a question. Rather, force them to edit and restore the deleted answer instead, unless locked by a moderator. I do have a link, but I don't want a lot of people to descend on it and create an even bigger disruption. It happened exactly as I described.", "Local colormaps in global coordinate system I am trying to get a surface graph with two colormaps. Instead of using the full Z range i want to give the first surface its own colormap and the second surface should receive its own colormap too (it may be even the same)... however the current version takes the full range of Z-Data and calculates the colormap. Is there any way? \\begin{tikzpicture} \\begin{axis}[grid = major, colormap={bw}{gray(0cm)=(0); gray(1cm)=(1)}, view={-30}{15}] \\addplot3[surf] table {DATA1.dat}; \\addplot3[surf] table {DATA2.dat}; \\end{axis} \\end{tikzpicture} Right now it looks like that: I want each of the surface to be scaled individually... just to see more clearly how the amplitude changes :) Any ideas? Thanks, Alex", "I understand what a decibel is, the spirit of the question is different: why do we still use decibels (and with at least two different, context-specific definitions), if we have the feat of scientific notation? I dare to claim that the change of 5e-1 (which is a half) is much more readable than 3dB (voltage? power?). 1e6 is more clear than 120dB, etc. Just for the joy of adding? 3dB + 7dB is 10dB, but 2e5+3e6 is errrm... I see many new datasheets from the top vendors (LTC, for example) use the V/V convention, which is closer to the scientific notation than to the decibels. An upcoming paradigm change?", "I play D&amp;D 5e and sometimes come here with questions. But sometimes I see things referenced here as sources that I don't have or aren't aware of.... Which are the \"official rules\" for D&amp;D 5e, and where do I find them?", "Changing projection of shapefile in QGIS", "Deriving upper bound for derivative of analytical function $f$ is an analytical function on the unit disk $\\mathbb{D}$ for which there is a $C &gt; 0$ such that $\\forall z \\in \\mathbb{D} \\colon |f(z)| \\leq \\dfrac{C}{1-|z|}$. I know have to prove that $\\forall z \\in \\mathbb{D} \\colon |f'(z)| \\leq \\dfrac{4C}{(1-|z|)^2}$. I tried using the Cauchy integral formula but I can't find a fitting circle to get this result.", "How can I permanently enable cheating? I'm giving Deus Ex a quick playthrough as a refresher before jumping into Human Revolution. In the interest of expediency, I've decided to cheat. ^.^ Normally, cheats must be re-enabled for each level when playing the original DX. I've encountered instructions on several sites (word-for-word identical instructions, so clearly copy/pasted) for permanently enabling cheats, but they aren't working for me: Because you will need to redo this for every level, you can open up 'user.ini' and add 'bCheatsEnabled True' in the [DeusEx.DeusExGameInfo] section of the file to allow cheats to be activated forever. Not only is that not working for me, it doesn't even look right compared to the rest of the file (space instead of =). With increasing desperation, I've tried adding that line (both verbatim and switching to an equal sign) to every section of both User.ini and DeusEx.ini which looks even remotely plausible — even creating a [DeusEx.JCDentonMale] section, just in case. Does anyone know how to get this working? I'm running DX:GOTY version 1.112fm from Steam on Windows 7.", "Well, may be this is not really useful, but I've thought if it was possible to put all the document in one long page. I mean, if your document is going to be read in a computer, mix all the pages in a continuous page. If your document has 90 pages (A4), where each one is 21cm by 29.7cm the continuous document should be (more or less) one page which is 21cm by 90 · 29.7 = 2673cm. Is this possible? EDIT: Some things I would like to achieve: The \\newpage, \\chapter{}, \\part{}, etc. shouldn't go to a new page, they should only add more vertical space. The package pdfpages should add the pages continuously with almost no space between them. The titlepage, in this case, has a different color, so it could go alone in a basic A4 page (just to make things easier). Question Is this possible?", "Want to delay startup of program but can't find it in Task Scheduler I'm trying to delay the startup of a specific program that loads at login. As per an answer in , I should be able to do it using Task Scheduler. The problem is, I can't find the program listed anywhere. Is there a particular pane I should be looking in? The program is Razer Synapse so I don't think it would be in the Microsoft or Western Digital folders. If it's not in Task Scheduler, is there another way I can delay it at startup? Out of curiosity how many ways are there for a program to be run at Startup in Windows?", "How can I install Skype on 32-bit Ubuntu 14.04?", "Extracting tree crown areas from remote sensing data (visual images and LiDAR)", "Regular Expression to split on spaces unless in quotes I would like to use the .Net Regex.Split method to split this input string into an array. It must split on whitespace unless it is enclosed in a quote. Input: Here is \"my string\"&nbsp;&nbsp;&nbsp;&nbsp;it has \"six&nbsp;&nbsp;matches\" Expected output: Here is my string it has six&nbsp;&nbsp;matches What pattern do I need? Also do I need to specify any RegexOptions?" ]
medi_sts_stackexchange_dupe
I have set Grub timeout is 4 sec. But sometimes, grub start to boot after 30 secs. Why? What's wrong?
Cannot get grub menu to timeout (or go away)
[ "grep a file, but show several surrounding lines? I would like to grep for a string, but also show the preceding five lines and the following five lines as well as the matched line. How would I be able to do this?", "Term for being unable to see glaring errors after working for some time on a task?", "Where does the word \"torsion\" in algebra come from?", "How to escape braces (curly brackets) in a format string in .NET", "Computing determinant without expansion $$\\begin{align}\\mathrm D &amp;= \\left|\\begin{matrix} (b+c)^2 &amp; a^2 &amp; a^2 \\\\ b^2 &amp; (a+c)^2 &amp; b^2 \\\\ c^2 &amp; c^2 &amp; (a+b)^2 \\end{matrix}\\right|\\\\ &amp;= (a+b+c)\\left|\\begin{matrix} b+c - a &amp; a^2 &amp; a^2 \\\\ b - a -c &amp; (a+c)^2 &amp; b^2 \\\\ 0 &amp; c^2 &amp; (a+b)^2 \\end{matrix}\\right| \\\\ &amp;= (a+b+c)^2\\left|\\begin{matrix} b+c - a &amp; 0 &amp; a^2 \\\\ b - a -c &amp; a+c - b &amp; b^2 \\\\ 0 &amp; c - a-b &amp; (a+b)^2 \\end{matrix}\\right|\\\\ &amp;= (a+b+c)^2\\left|\\begin{matrix} b+c - a &amp; 0 &amp; a^2 \\\\ 0 &amp; a+c - b &amp; b^2 \\\\ c - a-b &amp; c - a-b &amp; (a+b)^2 \\end{matrix}\\right|\\end{align}$$ Can $\\rm D$ be further simplified without expanding ? I feel it should be because this was competition question.", "how to calculate earliest leap year in formula field salesforce I am writing a formula where I need a logic for calculating the earliest leap year. Formula (Sum(Mort1, Mort2, Mort3)*1.08^(current year-earliest LP year))+water+ECB+Taxes What logic we can apply for earliest LP year?", "Does a filament of lamp still have resistance when no current flows, and if yes, why? Does a filament lamp still have resistance when no current flows?", "How to add n hours to a specified time?", "How do I get permissions to edit system configuration files? I can't seem to edit and save config files in the root system (eg: /etc/dhcp/dhcpd.config); it just says \"permission denied\" or the save option is blocked in the text editor. I'm pretty sure I'm a root user, but how do I make sure? If I am a root user, how do I fix this?", "I've come across the word litotes, which means a rhetorical understatement. However, I’m having trouble understanding how to use it in colloquial English. Could someone please give an example?", "How can I write SQL for a table that shares the same name as a protected keyword in MySql?", "parsing a date string from FTPClient.getModificationTime()", "Control Android with broken screen from PC", "Prove or give a counterexample: $$(A ∪ B = A ∪ C) \\land (A ∩ B = A ∩ C) \\implies B = C.$$ I think this is true, but I am not sure how to show it. I don't know if there are any manipulations with unions and intersections that allows me to move things around. Thanks in advance for any hints.", "Opportunity attack when moving in and out of range of a creature in the same move? Let's say I'm 10ft away from an enemy. In my turn, I choose to move 5ft to get close enough to attack, I do attack, then I use my remaining movement to move out of range of the enemy. Does this still allow them an opportunity attack?", "Why and how does ([![]]+[][[]])[+!+[]+[+[]]] evaluate to the letter \"i\"?", "Is any explanation offered for \"hyper-sleep\"? In Big Hero Six, Callahan's daughter was found to be alive in the space between portals in what Baymax describes as \"hyper-sleep\". I don't believe the movie offers any further explanation for this, or why Hiro isn't affected. Are there any other sources that explain this?", "How does Linux handle multiple consecutive path separators (/home////username///file)? I'm working on a python script that passes file locations to an scp subprocess. That's all fine, but I'm in a situation where I may end up concatenating a path with a filename such that there's a double '/ in the path. I know that bash doesn't care if you have multiple file separators, but I'm wondering how exactly that is rectified. Is it bash that strips extra /s or does it really not matter ever? I ask because it will save me several lines of code to check for extra /s while concatenating. I know it's not a big deal, but I'm curious as well. I have a bash script that has the line cd //usr (instead of cd /usr), which seems to imply there might be a significance to using multiple /s in a path", "Another problem from quora. What can be said about $v =\\prod_{s=2}^{\\infty} \\zeta(s) $? Wolfy says that $v \\approx 2.294856591673313794183 $. The Inverse Symbolic Calculator () finds nothing. Here are the close values: $2294856391585950 = (0064) sum((7/6*n^3-3*n^2+65/6*n-3)/(Fibo(n)+1),n=1..inf)\\\\ 2294856397653578 = (0001) GAM(5/6)*BesI(1,2)^{GAM(7/12)}\\\\ 2294856469349552 = (0006) 1/4357571\\\\ 2294856473388934 = (0324) 1/10*(10+14^{1/2}*10^{1/4})^{1/2}*10^{3/4}\\\\ 2294856488490537 = (0001) BesJ(0,1)^{GAM(1/3)/GAM(5/12)}\\\\ 2294856524215021 = (0314) sin(Pi*8/45)-sin(Pi*14/51)\\\\ 2294856591673313 \\text{ would be here}\\\\ 2294856740350177 = (0011) sum((2*n^3-5*n^2+22*n-14)/(n!+2),n=1..inf)\\\\ 2294856991319600 = (0324) 23^{1/2}/(12^{3/4}-3^{2/3})^{1/2}\\\\ 2294857017919943 = (0001) Feig2*Li4(1/2)/GAM(5/6)\\\\ 2294857089879260 = (0248) F(11/26;27/50;1) \\\\ 2294857493303450 = (0404) Psi(1/21)+Psi(19/21)+Psi(13/14)\\\\ $ I tried using Euler's zeta product and partition sum, but this didn't seem to help. Here is what resulted: $\\zeta(s) =\\dfrac1{\\prod_p (1-p^{-s})} $. $\\begin{array}\\\\ v &amp;=\\prod_{s=2}^{\\infty} \\zeta(s)\\\\ &amp;=\\prod_{s=2}^{\\infty} \\dfrac1{\\prod_p (1-p^{-s})}\\\\ &amp;=\\prod_{s=2}^{\\infty} \\prod_p\\dfrac1{ (1-p^{-s})}\\\\ &amp;= \\prod_p\\prod_{s=2}^{\\infty}\\dfrac1{ (1-p^{-s})}\\\\ \\end{array} $ Euler's product identity states that $\\prod_{n=1}^{\\infty}\\dfrac1{1-zx^n} =\\sum_{n=1}^{\\infty} \\dfrac{x^nz^n}{\\prod_{k=1}^n(1-x^k)} $. Putting $x=z=\\dfrac1{p} $, $\\prod_{n=2}^{\\infty}\\dfrac1{1-p^{-n}} =\\sum_{n=1}^{\\infty} \\dfrac{p^{-2n}}{\\prod_{k=1}^n(1-p^{-k})} $. That's as far as I can go.", "When I have equations, as in \\begin{equation} ... \\end{equation} Can I arbitrarily assign the numbers to the equations? Instead of the usual order (1), (2), (3), ..., I'd like something like (1), (2.1), (2.2), (2.3), (3.1), (3.2), (4), ..." ]
medi_sts_stackexchange_dupe
How to solve this nonlinear difference equation $a_{n+1} = 2a_n + \frac{1}{a_n}$, $a_1 = 1$?
explicit formula for recurrence relation $a_{n+1}=2a_n+\frac{1}{a_n}$
[ "In Russian we have idiom/saying \"To shoot out of cannon into sparrows\" (literal translation) which is used to convey an idea of applying too drastic measures to small problems. I believe there should be some native-English equivalents to this saying. Can you share if there are any?", "Why can't I cd to a quoted tilde ('~')? Writing my first script so I'm sure this is a basic question, but can someone please explain to me why I can: cd ~ cd bin cd ~/bin cd 'bin' But not cd '~' cd '~/bin' I need to cd to a directory path with a space in one of the directory names, so I need the quotes (it's Windows Program Files under wine). I can get around it with two cd commands, but why can't I put ~ in quotes? If I type cd '~' (or cd \"~\") I get: bash: cd: ~: No such file or directory", "How can I improve Ubuntu overall system performance?", "Iterate a list with indexes in Python", "In MTG, what happens when a player loses in multiplayer? In Magic: The Gathering, the rules for a player losing in a multiplayer game are quite complex, so I'd like to try to understand them by example. I would be happy to ask each of these situations as a separate question if that is preferred, but they all seem related, and I would love to have one place to look up all of these answers. Let's say I'm playing with two friends, Bob and Chloe, in a simple free for all. Unfortunately, I lose. When I lose, suppose the following: I controlled an which has exiled Bob's , does he get his bear back? I have a on the stack targeting Chloe, does Chloe take the 2 damage still? Earlier in the turn I cast to prevent damage to one of Bob's . If it later takes 3 damage, will that damage be prevented? Something I controlled gave Bob a 1/1 soldier token. What happens to the token? Something Chloe controlled gave me a 1/1 soldier token. What happens to the token? I had a enchanting one of Bob's army of . What happens to the bear? I had also played on Bob's final . What happens to the last bear? Chloe had my . What happens to the Clone? Are there any other situations specifically addressed by the rules?", "Suspend process without killing it So I've got a persistent program running in the background. Killing it just causes it to restart with a different PID. I'd like to suspend it (put it to sleep without actually killing it). Does kill -9 do this? If not, how should this be done?", "Idiomatic expression for a difficult choice This has cropped up several times in the past couple of months, and I've been struggling to find a fitting word to describe this phenomenon. I'll describe it: You have two choices(no, it's not Hobson's choice). Both of them are desirable, yet both of them each have a tiny part which is most undesirable, such as a tough condition, or a demanding clause. You have difficulty deciding which one to pick. Whenever something like that comes up, I think of the expression \"Can't burn a candle at both ends\", but I'm not looking for that. I'm looking for an expression that describes a difficult choice. Any suggestions? EDIT: It's idiomatic. I'm quite sure it is. It's an expression of some sort. And no, it isn't \"dilemma\"", "Update Garmin Nüvi 255 maps", "Find the value of $\\sum_{k=1}^{n}k\\binom{n}{k}$?", "I'm trying to search and replace a string in all files matched by grep: grep -n 'foo' * will give me output in the form: [filename]:[line number]:[text] For each file returned by grep, I'd like to modify the file by replacing foo with bar.", "How Do I Compute the Eigenvalues of a Small Matrix? If I have a $2\\times 2$ or $3\\times 3$ matrix, how should I go about computing the eigenvalues and eigenvectors of the matrix? NB: I am making this question to provide a unified answer to questions about eigenvalues of small matrices so that all of the specific examples that come up can be marked as duplicates of this post. See .", "Why will Ubuntu no longer measure file size unit as byte, megabyte, gigabyte, etc? I read on that Ubuntu will no longer use the familiar file size units we all know by now (kB, MB, GB, TB) and switch to a different IEC standard (KiB, MiB, GiB, TiB). If this is true, I would like to know what's the reasoning behind this change, and the impact (if any) this change has, especially with multiplatform applications or applications run with Wine.", "Pre-declare all private/local variables?", "Close and flag links do nothing on mobile site This morning (it's about six AM here) I find that I can no longer submit close votes; the link just jumps to the beginning of the page. I'm on iOS, using a third-party browser called Grazing, but a brief check with Mobile Safari shows the same problem there. Here on Meta, where my score is much lower, I only get a \"delete\" link on my own question, and that works fine. (Oops :-)) Update: As per comments, this affects the \"flag\" link, too, which doesn't even scroll to the top of the page. Update 2: Latest comment suggests this affects Android, too. Update 3: This also affects desktop computers when viewing mobile (when you click \"mobile\" in the footer) Update 4: mentions Windows 8, too; simply deleting platform-specific tags", "When I apply to a PhD program, may I ask a postdoc who closely supervised me to write a recommendation letter? My supervisor also has written one for me, but I believe the postdoc can comment on my research skills in a more detailed and precise way. Does a postdoc have enough authority to convince admission committee?", "shred multiple hard drives", "For any natural number $n\\ge 1$, given pairs $(a_1,b_1),(a_2,b_2),...,(a_n,b_n)$ of integer numbers, there exist integer number $c$ and $d$ such that $$\\prod_{i=1}^{n}(a_i^2+b_i^2) = c^2+d^2$$ My initial approach is Base Case: $(a_1^2+b_1^2) = a_1^2+b_1^2$ which is true. (Although it is trivial) Prove the statement is true when $n=2$: We have $$(a^2+b^2)(c^2+d^2) = (ac-bd)^2+(ad+bc)^2$$ (Thanks André Nicolas for pointing it out) So if $a,b,c,d$ are integers, $ac,bd,ad,bc$ are all integers and integers are closed under addition and subtraction. Hence $(ac-bd),(ad+bc)$ are integers. Inductive Hypothesis: $\\prod_{i=1}^{n}(a_i^2+b_i^2) = c^2+d^2$ is true Inductive Step: $$\\prod_{i=1}^{n+1}(a_i^2+b_i^2) = \\prod_{i=1}^{n}(a_i^2+b_i^2)\\cdot (a_{n+1}^2+b_{n+1}^2) = (c^2+d^2)\\cdot (a_{n+1}^2+b_{n+1}^2)$$ Where $c$ and $d$ are integers. But when we apply $n=2$, we have $(c^2+d^2)\\cdot (a_{n+1}^2+b_{n+1}^2) = (e^2 + f^2)$ where $e$ and $f$ are integers. Hence, by the principle of induction, the statement we needed to prove is true.", "Moving linux install to a new computer I know that it can, in some circumstances, be difficult to move a Windows installation from one computer to another (physically move the hard drive), but how does that work on linux? Aren't most of the driver modules loaded at bootup? So theoretically would it be that much of a hassle? Obviously xorg configs would change and proprietary ATI drivers and such would have to be recompiled (maybe?). Is there more to it than I'm thinking of? Assume the 2 computers are from the same era, ie both i7s but slightly different hardware. Update: Thanks for the answers. This is mostly for my own curiosity. I have my linux system up and running at work, but eventually I'd like to move to a computer that I can get dual video cards into so I can run more than 2 monitors. But not any time soon", "Proving that closed (and open) balls are convex", "Is there a way to add a timer to a Beamer presentation?" ]
medi_sts_stackexchange_dupe
Installing the beamer feather theme
Which graphics formats can be included in documents processed by latex or pdflatex?
[ "I want to create a standalone python script using QGIS python API (PYQGIS) for education. First I create a model and export that model to python script. original python script from the export : ##=name ##raster=raster ##stat=output html outputs_QGISRASTERLAYERSTATISTICS_1=processing.runalg('qgis:rasterlayerstatistics', raster,stat) Next I read this and I tried to follow this tutorial to create my script. Final script : import sys from qgis.core import QgsApplication from PyQt4.QtGui import QApplication app = QApplication([]) QgsApplication.setPrefixPath(\"/usr\", True) QgsApplication.initQgis() # Prepare processing framework sys.path.append('/home/username/.qgis2/python') from processing.core.Processing import Processing dem='aster.tif' slope='slope.tif' aspect='aspect.tif' outputs_SAGASLOPEASPECTCURVATURE_1=processing.runalg('saga:slopeaspectcurvature', dem,6,1,1,slope,aspect,None,None,None,None,None,None,None,None,None,None) Processing.initialize() # Exit applications QgsApplication.exitQgis() QApplication.exit() If I run this script it works fine without error but I don't take some export like aspect and slope (these can't be found?). Any idea why I can't take exports ? I use Ubuntu and python 2.7 and QGIS 2.18.1. i try to this script : import sys from qgis.core import QgsApplication sys.path.append('/usr/share/qgis/python/plugins') import processing a=processing.alglist() print a processing.alghelp(\"saga:slopeaspectcurvature\") and i take that print any idea why ? Algorithm not found but if i use this module in QGIS work fine.", "How to set date format when manually inserting date on excel, without changing regional settings?", "How can I compare (without calculator or similar device) the values of $\\pi^e$ and $e^\\pi$ ?", "Did Daenerys mess up regarding caravans?", "Converge or diverge? : $\\sum_{n=1}^{\\infty}\\frac{\\tan{n}}{2^{n}}$", "For linear regression, we can check the diagnostic plots (residuals plots, Normal QQ plots, etc) to check if the assumptions of linear regression are violated. For logistic regression, I am having trouble finding resources that explain how to diagnose the logistic regression model fit. Digging up some course notes for GLM, it simply states that checking the residuals is not helpful for performing diagnosis for a logistic regression fit. Looking around the internet, there also seems to be various \"diagnosis\" procedures, such as checking the model deviance and performing chi-squared tests, but other sources state that this is inappropriate, and that you should perform a Hosmer-Lemeshow goodness of fit test. Then I find other sources that state that this test may be highly dependent on the actual groupings and cut-off values (may not be reliable). So how should one diagnose the logistic regression fit?", "Difference of Gamma random variables", "What am I doing wrong? Joint Density of sum of random variables! So, I have this question: And, what I have tried so far is I let $z_1 = \\frac{X + Y}{2}$ and let $z_2 = \\frac{X - Y}{2}$ to use change of variables for this question. However, when I work this out and plug it into my joint distribution of $X$ and $Y$ above, I end up with the $z_2$ disappearing and only having $z_1$ left in my joint distribution of $z_1$ and $z_2$. So, then when I go to find the marginal for just $z_1$ (which is $\\frac{X + Y}{2}$ &lt;- what I am looking for), there is no $z_2$ therefore, integrating wrt to $z_2$, I get $z_2$ just come up (integral of 1). This is an issue because the bounds are from 0 to $\\inf$. Obviously, I can't have infinite in my marginal density so what am I doing wrong? Also, for question 5, I work it out similarly except I let $z_2 = X$ but I just end up with the exact same density as $f_{x,y}$ as seen in question 4 - is that normal? Please help, I been doing this question for a long time trying various dummy transformations. Also, for question 4, I found the marginals of $x$ and $y$ and realized that the independence consequence (of the product being equal to the joint) is satisfied but using convolution, I get the same issue of my integral coming out to infinite! Thank you for all the help! EDIT: Am I doing my bounds wrong? the bound for z_2 is from 0 to inf or 0 to z_1?", "Software implementations of random forest classifiers have a number of parameters to allow users to fine-tune the algorithm's behavior, including the number of trees $T$ in the forest. Is this a parameter that needs to be tuned, in the same way as $m$, the number of features to try at each split (what Leo Breiman calls mtry)?", "Regex for numbers only I haven't used regular expressions at all, so I'm having difficulty troubleshooting. I want the regex to match only when the contained string is all numbers; but with the two examples below it is matching a string that contains all numbers plus an equals sign like \"1234=4321\". I'm sure there's a way to change this behavior, but as I said, I've never really done much with regular expressions. string compare = \"1234=4321\"; Regex regex = new Regex(@\"[\\d]\"); if (regex.IsMatch(compare)) { //true } regex = new Regex(\"[0-9]\"); if (regex.IsMatch(compare)) { //true } In case it matters, I'm using C# and .NET2.0.", "Blender build for Raspberry Pi3?", "What causes yogurt in sauces to split? How to prevent it? A lot of my favorite curry recipes have a yogurt based sauce in them, but on a pretty regular basis when I make them, the yogurt ends up splitting into basically curds and whey. What causes that, and how can I prevent it? As an illustrative example, last night I made a simple tofu curry as follows: warm evoo in a pan add chopped onion, saute briefly add curry seasonings, allow to warm/season the oil add cubed tofu, toss to coat cook for a while, tossing periodically to lightly brown the cubes turn heat off add plain greek yogurt stir to combine In the few minutes it took to finish the rest of the meal and start plating, the yogurt had separated so I had a clumpy, lumpy, yogurt soup instead of a smooth creamy sauce.", "This example illustrates some conflict between xelatex and natbib- and footnote-generated superscripts. The semi-colon between distinct citations is not typeset as a superscript, nor is the dagger. The asterisk, however, looks fine to me. Any suggestion on how to make these auto-generated superscripts look more normal? Update Mostly fixed, see second screenshot below. Update 2 Fully fixed! Alter the MWE below with this code: \\DefineFNsymbols*{safestar}{{$*$}{\\textdagger}{\\textdaggerdbl}{\\textsection} {\\textparagraph}{\\textbardbl}{$**$}{\\textdagger\\textdagger} {\\textdaggerdbl\\textdaggerdbl}{\\textsection\\textsection} {\\textparagraph\\textparagraph}{\\textbardbl\\textbardbl}} \\setfnsymbol{safestar} This comes Achim Blumensath on the MinionPro mailing list, together with for the footmisc package. \\documentclass[article, a4paper, 12pt, oneside]{memoir} \\usepackage{fontspec} \\usepackage{xunicode} \\usepackage{xltxtra} % c/o @wasteofspace, this is the \"offending\" line \\defaultfontfeatures{Mapping=tex-text} \\setmainfont{Linux Libertine O} \\usepackage[super]{natbib} \\usepackage[perpage,symbol]{footmisc} \\let\\sc\\scshape \\let\\bf\\bfseries \\let\\it\\itfamily \\setlrmarginsandblock{23mm}{23mm}{*} \\setulmarginsandblock{23mm}{198mm}{*} \\checkandfixthelayout \\begin{document} \\bibliographystyle{plainnat} \\setcitestyle{nature} \\thispagestyle{empty} This is a nice\\footnote{(That is to say, minimal.)} example.\\cite{lenat1976artificial,lenat1984and} Unfortunately, it has some problems.\\footnote{From an aesthetic point of view.} \\bibliography{corneli}{} \\end{document} But if we don't load , then we get this other slightly problematic result: I guess I can live with the small and over-elevated asterisk. It looks less bad when it follows a period.", "While traveling in the Berlin Tegel airport (TXL), I wanted to get on Wi-Fi. I found three unsecured networks in addition to a number of password-protected networks. _Free_TXL_WiFi airberlin Berlin Tegel Airport WiFi I had no idea which of these were an official Wi-Fi network provided by the airport and which were provided by other people, potentially for malicious purposes like capturing my network traffic. Presumably the official one uses a captive portal to allow internet access. Is there any way to determine which Wi-Fi network is the official one provided by the airport? Would airport staff such as at the ticketing booths know? Are there official lists available somewhere? I’d like an answer that is applicable to airports generally, rather than specific to the Berlin Airport. Also, please don’t just give a blanket “don’t use any public Wi-Fi network” answer; I know there are risks associated with it, but sometimes it is a necessity and so I want to know how to identify the airport-provided one. suggests there are no official Wi-Fi networks, but the answers are six years old, so it’s not clear if things have changed or if none of the networks I saw were official.", "How to run shell script via terminal", "C++11: defining function on std::array", "How many individual lights can an arduino control I want to use a regular Arduino board to control LEDs - what is the most lights I can control individually from the board? Is there a tutorial on how to hook it up?", "If a superconductor has zero resistance, does it have infinite amperage?", "What is the meaning of $\\exp(\\,\\cdot\\,)$? What is the meaning of the notation $\\exp(\\text{expression})$ ? I think that it's something of the form $a^\\text{expression}$ but does it mean that the base $a=e$ or can it be any base?", "Limit of $L^p$ norm when $p\\to0$ Let ($\\Omega$, $\\cal{F}$, $\\mu$) be a probability space and $f\\in L^1(\\Omega)$. Prove that $$\\displaystyle\\lim_{p\\to 0} \\left[ \\int_{\\Omega}|f|^pd\\mu \\right]^{\\frac{1}{p}}=\\exp \\left[ \\int_{\\Omega}\\log|f| d\\mu \\right],$$ where $\\exp[-\\infty]=0$. To simplify the problem, we may assume $\\log|f|\\in L^1(\\Omega).$" ]
medi_sts_stackexchange_dupe
Programming for a beginner (with GIS experience)
Learning Python programming with generic GIS goals in mind?
[ "How to prove the midpoint of a chord is also the midpoint of the line segment defined by the points of intersection of other two chords with it? Bernhard Elsner, alias MathOMan, posted this exercise in plane Geometry, on January $29$th, $2010.$ \"Let $\\mathcal{C}$ be a circle, $A,B$ two distinct points on $\\mathcal{C}$ and $M$ be the midpoint of the chord $[AB]$. Take two other chords,$[PQ]$ and $[SR]$, that pass through $M$. Let $C$ (resp. $D$) be the intersection of $[AB]$ with $[PS]$ (resp. $[RQ]$). Prove that $M$ is the midpoint of the chord $[CD]$.\" To prove it I've written the following (failed) argument, in the of this post (translation of mine): The figure is symmetric with respect to $M$: $\\overline{AM}=\\overline{MB}$, $\\overline{PM}=\\overline{MU}$, $\\overline{RM}=\\overline{MW}$, $\\overline{QM}=\\overline{MV}$, $\\overline{QR}=\\overline{VW}$, $\\overline{SM}=\\overline{MT}$. From $\\dfrac{\\overline{SC}}{\\overline{DT}}=\\dfrac{\\overline{CM}}{\\overline{MD}}=1$ follows that $\\overline{CM}=\\overline{MD}$. Here is an extract of the author's reply (translation of mine): \"It is not clear that $\\overline{QM}=\\overline{MV}$. Is the point $V$ on the line $(QM)$ defined by this equality or is $V$ defined as the intersection point of the lines $(QM)$ and $(WC)$? Why are both definitions to give the same point? Let $C^{\\prime }$ be the intersection of $(SP)$ and $(VW)$, and $D^{\\prime }$ the intersection of $(TU)$ and $(QR)$. (...) One still has to show that $C^{\\prime }=C$ and $D^{\\prime }=D$.\" I have agreed with these objections. Until now no proof has been posted. The author considers that the \"proof is not quite simple\". Q. What is the theorem this exercise refers to? Or how does one prove it?", "Any good tutorials for learning how to post-process images? I don't really know where to start with post-processing my images. I normally just straighten, crop and sharpen. Do people know of any good resources on the internet for getting a grip with Photoshop and similar tools?", "We're running a couple SQL servers in Azure that are set up with an Always On availability group and Windows Failover Clustering. The servers are Windows 2019 and we're running SQL Server 2019. When we set up the cluster, it was set up to use a Distributed Network Name instead of a static cluster IP address. Thanks to this we shouldn't need an internal load balancer according to these notes: . I'm struggling to understand exactly how this works though. Based on what I read, it seems like our connection strings will point to the DNS name of the cluster (let's call it AgCluster). If I look in DNS, there is an A record for AgCluster pointing to sql1 and another pointing to sql2. When I use AgCluster in my connection string it seems to always connect me to the primary server, even if I have ApplicationIntent=ReadOnly set. When I query @@SERVERNAME I always get the same server. So with the Distributed Network Name setup, what should I use in my connection strings to make sure read/write queries go to the primary and read only go to a secondary? Any guides on setting this up in general would be helpful. Thanks!", "Prove that negative absolute temperatures are actually hotter than positive absolute temperatures Could someone provide me with a mathematical proof of why, a system with an absolute (such that of a spin system) is than any system with a positive temperature (in the sense that if a negative-temperature system and a positive-temperature system come in contact, heat will flow from the negative- to the positive-temperature system).", "Why is \"Nature\" usually spelt with an initial capital letter in scientific journals? I am mainly referring to life science here, in case this matters. I am not talking about the obvious cases, like capitalisation in titles, at the beginning of a sentence, etc., but when it appears mid-sentence, where one would normally expect it to be lowercase. I've heard some explanation that it gives the impression of Nature as a goddess (see comments on this post ) - but this is probably the last thing I would have expected in a scientific article...", "Is (or will be) there any sort of light linking in Cycles, or a method to get a light to affect only certain objects that doesn't involve compositing two or more different render layers? Sort of what 3Dstudio does with the Include/Exclude methods.", "Why doesn't a bike/bicycle fall if going with a high speed? Why does a bike/bicycle fall when its speed is very low or close to zero and is balanced when going with a high speed?", "Celebrating the same new year several times over?", "I have absolutely no experience with Linux, and I desperately need to get my computer back up and running again with Windows. How do I remove Ubuntu and reinstall Windows? Editor's note: many of the answers are about removing Ubuntu from dual-boot but keeping Windows (which is a bit complicated), while other answers are about removing Ubuntu from single-boot (which is easy: basically just format the disk while installing Windows). The question as written is ambiguous between dual-boot or single-boot.", "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?", "With all the various races in the federation, how do the humans manage to dominate it?", "I've been at this for almost two hours and no one seems to have the same problem as I and I doubt this will be solved but I'll try anyway. this is the code /tellraw @p [\"Would you like to teleport?\",{\"text\":\"Yes\",\"color\":\"green\",\"bold\":\"true\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p ~ ~4 ~ \"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":{\"text\":\"Confirm\"}},{\"text\":\"No\",\"color\":\"red\",\"bold\":\"true\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tellraw @p{\"text\":\"Come back when you want to teleport\"}\"}}}] this part is fine /tellraw @p [\"Would you like to teleport?\",{\"text\":\"Yes\",\"color\":\"green\",\"bold\":\"true\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p ~ ~4 ~ \"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":{\"text\":\"Confirm\"}} it's just when I add this ,{\"text\":\"No\",\"color\":\"red\",\"bold\":\"true\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tellraw @p{\"text\":\"Come back when you want to teleport\"}\"}}}] Minecraft gives me the error: Invalid JSON at line 1 column 203 I've tried to space it out and figure out what column 203 is but I can't, I don't know what I did. Anyone got any ideas?", "If $\\mathbb R^*$ and $\\mathbb C^*$ be respectively multiplicative groups of non-zero real and complex number then whether $\\operatorname{Hom}(\\mathbb Z_6,R^*\\oplus C^*)$ is isomorphic to $\\mathbb Z_{12}$? or $\\mathbb Z_6$? or $\\mathbb Z_6\\oplus \\mathbb Z_2$?", "It seems I put a Bounty assigned by outside party, two lengthy, reference-citing answers, one \"-1\" (awarded the bounty), one \"-2\", two others scored \"0\" and \"-2\" respectively, the answers suggesting one or the other is correct, 73 comments and no consensus so far - and me, as the asker, lost without a clue what to think of the answers anymore - this is no longer \"Learners' Level\" question, so I thought I'd bring it here and hear what the experts have to say. Original question: Plurality of verb depending on plurality of list elements An edit was suggested to my sentence. There was were an orange, some grapes, two apples and a small pile of cherries on the plate. In my native language plurality of the verb always follows plurality of the first element on the list. There were an orange,... sounds awkward to me, no matter what follows up. My simple solution was reordering: There were some grapes, an orange, two apples and a small pile of cherries on the plate. But that's not the first time I faced this situation and I'd like to know what the rules of grammar say about that - was my editor overzealous or am I trying to copy rules of my language that don't apply in English? Someone linked a for negatives, where the situation is more clear-cut (\"There is no...\"). Same applies to connection with \"or\" apparently, per accepted answer there. Still, nothing for \"and\". It seems there is a consensus that in that if the verb goes after the list, it will be plural. an orange, some grapes, two apples and a small pile of cherries were on the plate. There doesn't seem to be clear consensus for: On the plate { was | were } an orange, some grapes, two apples and a small pile of cherries Adding more to the confusion is the abbreviated form: \"There's\" One last note. In North America, at least, there is a widespread use of using a singular form like \"there is\" and \"there was\", without regard for the subject item or items, and this \"there is\" is often shortened to \"there's\": There's three apples on the table! Could you please clarify this mess?", "Error notification on plone 4", "Elementary formula for permutations?", "This question is updated to request additional answers and details in light of information now available in the Dungeon Master's Guide. In the released DM basic rules, Lost Mine of Phandelver, Hoard of the Dragon Queen, and the DMG teaser there are wands, staves, and rings that you can use to cast spells. Do abilities that trigger from casting a spell activate when casting a spell from an item? Can the character modify the spell using class abilities when casting a spell from an item? Examples include: An abjurer Wizard's arcane ward recovering hit points from a Dispel Magic cast from a Ring of Spell Storing A sorcerer using Twinned Spell on a ray of enfeeblement from a Staff of Power An evocation wizard using Sculpt Spell on a fireball from a Wand of Fireballs. Now that the DMG is out we have some clearer rules on casting spells from items (DMG p. 141): Some magic items allow you to cast a spell from the item. The spell is cast at the lowest possible spell level, doesn't expend any spell slots, and requires no components, unless the item's description says otherwise The spell uses its normal casting time, range and duration, and the user of the item must concentrate if the spell requires concentration. A magic item, such as certain staffs, may require you to use your own spellcasting ability when you cast a spell from the item. Does whether or not you can apply class abilities to the casting of the spell depend whether the item uses the user's own spellcasting ability (such as the Staff of Fire) versus an item that comes with a fixed spellcasting ability built-in (such as the Wand of Fireballs)? Does it matter if it's something that triggers more or less automatically like Arcane Ward, versus something you have to control, like Careful Spell?", "I'm working on a 2nd order passive low pass filter, consisting of two passive low pass filters chained together. &ndash; Schematic created using Let \\$ H(s) = H_1(s)H_2(s) \\$ where \\$ H_1(s) \\$ and \\$ H_2(s) \\$ are the transfer functions for each separate filter stage. Then \\$ |H(s)| = |H_1(s)||H_2(s)| \\$ Knowing the magnitude of a passive low pass filter, $$|H(s)| = \\dfrac1{\\sqrt{ (\\omega R_1C_1)^2 + 1} } \\times \\dfrac1{\\sqrt{ (\\omega R_2C_2)^2 + 1} } = \\dfrac1{\\sqrt{((\\omega R_1C_1)^2 + 1)((\\omega R_2C_2)^2 + 1)}} $$ Then trying to find the cutoff frequency: $$ \\left(\\dfrac1{\\sqrt{2}}\\right)^2 = \\dfrac1{\\sqrt{((\\omega R_1C_1)^2 + 1)((\\omega R_2C_2)^2 + 1)}} $$ $$ 2 = \\sqrt{((\\omega R_1C_1)^2 + 1)((\\omega R_2C_2)^2 + 1)} $$ $$ 4 = ((\\omega R_1C_1)^2 + 1)((\\omega R_2C_2)^2 + 1) $$ $$ 4 = (\\omega R_1C_1)^2(\\omega R_2C_2)^2 + (\\omega R_1C_1)^2 + (\\omega R_2C_2)^2 + 1 $$ And I'm stuck. Research on the web tells me \\$ \\omega_c = \\dfrac1{\\sqrt{R_1C_1R_2C_2}} \\$, but I can't find why? Can anybody show my the derivation to find this?", "Is there a list of the names used for Sauron in Lord of the Rings?", "Use of inequality $1 - \\cos (x) \\leq x^2 /2$ In answer the value of $1 - \\cos(x)$ has to be evaluated in order to find its upper limit, if it exists. In particular, $x = 2 \\pi / n$. The answer is related to the length of a side of a regular $n$-gon inscribed into a unit-radius circumference; because the perimeter of the $n$-gon is always less than $2 \\pi$, the single side must always be less than $2 \\pi / n$. The inequality $$1 - \\cos (x) \\leq \\displaystyle \\frac{x^2}{2}$$ (1) is used and the proof is completed with $$2(1 - \\cos(x)) \\leq (2 \\pi / n)^2$$ $$\\sqrt{2(1 - \\cos(x))} \\leq 2 \\pi / n$$ But it is well known that the cosine is a function $f(x) \\in [-1;1]$, so $1 - \\cos (x) \\in [0,2]$. By using this information, we would obtain $$1 - \\cos (x) \\leq 2$$ (2) The proof would provide $$2(1 - \\cos(x)) \\leq 4$$ $$\\sqrt{2(1 - \\cos(x))} \\leq 2$$ which is a completely different result. Why in that case it is preferable to use (1) instead of (2)? How to choose when it is convenient to use (1) and when to use (2) in a proof?" ]
medi_sts_stackexchange_dupe
WordPress Sorting by characts - Swedish characters
UTF-8 all the way through
[ "$x^a - 1$ divides $x^b - 1$ if and only if $a$ divides $b$ Let $x &gt; 1$ and $a$, $b$ be positive integers. I know that $a$ divides $b$ implies that $x^a - 1$ divides $x^b - 1$. If $b = qa$, then $$x^b - 1 = (x^a)^q - 1^q = (x^a - 1)((x^a)^{q-1} + \\ldots + x^a + 1).$$ I'm interested in the converse of the statement. If $x^a - 1$ divides $x^b - 1$, does this imply that $a$ divides $b$?", "Find $\\int \\frac{x^3}{x^2-1} \\:\\mathrm{d}x$ Find $\\displaystyle \\int \\dfrac{x^3}{x^2-1} \\:\\mathrm{d}x$. I think there are a few ways to do this. We could just break this up using long division or break it up into partial fractions then use long division. My homework says to break this up into its roots so that's why I brought up partial fractions. Is that the best way to do it here?", "I have updated from Windows 7 Ultimate x64 to Windows 10 Pro x64 using Media Creation Tool. After some weeks when I'm clicking on the start button nothing happens and the whole status bar becomes unresponsive. After trying to restart explorer.exe from Task Manager explorer.exe fails to initialize. It just shows the start button, Cortana and the search bar, TaskViewer (if that's how it is called) and the Action Centre button. Any ideas? I tried running: sfc /scannow and no errors were found chkdsk /f and no errors were found A full system restart seems to do the trick but after some time like a few hours it stops responding again. My configuration: CPU is Intel i5 4690K OC-d to 4.5Ghz GPU is AMD Radeon HD 7750 Saphire 1Gb GDDR5 Edition EDIT: After some GOOGLE SEARCHING if i try to run from Task Manager C:\\Windows i can actually open a window. The start bar isn't responding though and there are still no desktop icons or wallpaper.", "Does iOS 7 cellular tethering limit the number of WiFi clients? I'm looking on Apple's site and can't find any published limits on how many clients can connect to one iPhone / iPad with cellular tethering enabled in the US. Setting aside the obvious limit where 1,000 devices would overwhelm the data connection in practice if they all want data at the same time, is there a hardware or software limit of perhaps 5 or 10 devices that can connect to one device over WiFi?", "When editing a question on , I observed that a link which was not rendered in the post was hyperlinked in the edit preview (see pictures below). I tried reproducing it in the to see if this also happens when the post is posted for the first time and observed the same. It seems to be a bug after the shift to CommonMark, leading to the different rendering of links on client and server-side. A link following a special character (without any space) is not hyperlinked in the post but is hyperlinked in the preview. A link separated from the special character with a white space appears to have no such problem. (see pictures below and my ). Link not hyperlinked in post Same link hyperlinked in preview", "What are drawbacks or disadvantages of singleton pattern? The is a fully paid up member of the 's , but it lately seems rather orphaned by the developer world. I still use quite a lot of singletons, especially for , and while you have to be a bit careful about multithreading issues (like any class actually), I fail to see why they are so awful. Stack Overflow especially seems to assume that everyone agrees that Singletons are evil. Why? Please support your answers with \"facts, references, or specific expertise\"", "Minecraft pocket edition restoring skin problem I updated Minecraft PE so I can have custom skins. I clicked on 'restore skins' without selecting any particular skin, It is now stuck with a message saying 'we're restoring your skins!' but it has been like that for 20 minutes. Is there a reason why it is like this?", "Using package nomencl", "How do I properly access Windows software RAID 0? I am a new Ubuntu user with a fresh installation, and am eager to get started with it. However, all of my important data is on Windows software RAID 0 array, and I need it to stay there as I'm also dual booting Windows. I need access to this data on Ubuntu, and can't really get anything real done until I have access. I have already researched this subject as best as I could, and I managed to find a very helpful post: The post describes how to get Ubuntu to see a Windows RAID 0 array that is made up of two drives. The main command used is sudo mdadm --build /dev/md0 --chunk=64 --level=0 --raid-devices=2 /dev/sdd2 /dev/sdc2. According to that user, and the other posters in the thread, it actually does work. That's great. I have not tried following these instructions yet. Why? The post includes a warning about how you must not write to it if you enter the wrong chunk size; it's understandable how that could cause problems. My concern is that my setup is different to their example, and I am not sure that the commands should be entered exactly the same for my setup. I am afraid to break it by doing it wrong, and therefore wish to get the advice of somebody more experienced. This is how my setup differs from their example: I have three 1 TB drives, not two drives (of whatever size they used). I have two RAID 0 partitions spread across those three drives: one 500 GB and 2.3 TB. This means that I need to NOT use the full disks when creating the RAID array, but instead use just part of them. I used a non-default block size for at least one of my RAID 0 partitions when I set them up years ago. I have no idea if this block size is the same as the chunk size that they mention. My 500 GB partition has a block size of 4 kb (4096 bytes per cluster), and my 2.3 TB partition has a block size of 64 kb (65536 bytes per cluster). The relevant output from sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL (for just those three RAID0 drives) is: NAME FSTYPE SIZE MOUNTPOINT LABEL sdb 931.5G ├─sdb1 1M ├─sdb2 127M └─sdb3 931.4G sdc 931.5G ├─sdc1 1M ├─sdc2 127M └─sdc3 931.4G sdd 931.5G ├─sdd1 166.7G └─sdd2 764.7G The relevant output from cat /proc/partitions (for just those three RAID0 drives) is: 8 16 976762584 sdb 8 17 1024 sdb1 8 18 130048 sdb2 8 19 976631478 sdb3 8 32 976762584 sdc 8 33 1024 sdc1 8 34 130048 sdc2 8 35 976631478 sdc3 8 48 976762584 sdd 8 49 174763008 sdd1 8 50 801865728 sdd2 The \"Disks\" program in Ubuntu displays the following partitions for my drives: /dev/sdb: GUID Partition Table . /dev/sdb1: 1.0 MB, Microsoft LDM metadata. /dev/sdb2: 133 MB, Microsoft Reserved. /dev/sdb3: 1.0 TB, Microsoft LDM data. /dev/sdc: GUID Partition Table partitioning. /dev/sdc1: 1.0 MB, Microsoft LDM metadata. /dev/sdc2: 133 MB, Microsoft Reserved. /dev/sdc3: 1.0 TB, Microsoft LDM data. /dev/sdd: Master Boot Record partitioning. /dev/sdd1: 179 GB, Unknown. /dev/sdd2: 821 GB, Unknown. /dev/sdd: 136 MB, Unallocated space. I hope I've provided enough information here. So now, my question is this: what is the proper command for me to enter with my setup, so that I can access both of my Windows RAID 0 partitions from Ubuntu? Thank you very much in advance.", "Is every metric space a subspace of some connected metric space? Is every metric space a subspace of some connected metric space? If the space itself is connected then we're done, but if not then I think we can extend our metric space to make it connected. I'm not sure whether this will work or not, but intuitively I think the answer is yes.", "Login failed for user - Error 18456 - Severity 14, State 38", "How can be solved the equation $x^3+x-1=y^2$ in positive integers? I know this equation defines an elliptic curve, but this seems to be a non-elementary way to solve this question. Is there a more elementary solution? By the way I found three solutions: $(1,1), (2,3)$ and $(13,47)$. Is this related to the law group property of elliptic curves? Thanks for further answers.", "Is there a number whose absolute value is negative?", "Lost/Deleted dpkg (package manager for Debian). How do I get it back? OS: Ubuntu 12.04 Accidentally deleted dpkg. Now, packages can't be installed. So, needs an dpkg installer which installs packages.", "$\\frac{1}{99989999} = 1.00010002000300050008001300210034005500890144... \\times 10^{-8}$ (), which includes the Fibonacci sequence $(1\\ 1\\ 2\\ 3\\ 5\\ 8\\ 13\\ 21\\ 55\\ 89\\ 144\\ldots )$. This is fascinating to me but I can't figure out how this works, and a Google search doesn't seem to reveal anything.", "As far as I understand, one of the main claimed problems with initializing e.g. a feed-forward neural network (with several $\\text{tanh}$ or $\\text{ReLU}$ layers) with $W=0$ is that it doesn't break \"network symmetry\", meaning, backpropagation would propagate the same error through all such units (i.e. \"nudging all weights in the same direction\"). This is, I presume, undesirable because we would not be learning \"different\" calculations through different paths of the network. However, I'm confused why that even matters in this case given the fact that if $W$ ever drops to 0, we will effectively be propagating no gradients at all through the network, since W=0 would multiply all errors from the output and prevent any learning. Put another way, even if $W=0$ does not break network symmetry (wasting calculations and paths in the network) is it correct to say that if $W=0$ (e.g. by initialization) we are effectively killing gradients in a neural network, and thus no learning can take place?", "I have to move a MongoDB Collection (Size: 1TB+) from Sharded MongoDB Cluster to another[5 shards on both clusters]. During this operation, it is assumed that the accompanying program will be offline, so no need to worry about inconsistent data, but I need to minimize the downtime. I've tried testing it with mongodump and mongorestore, but looks like that is taking ages to finish. Please share your experiences for such kind of scenarios. Note: Cluster has only one collection, so I am open at cluster level sync as well.", "I'm working in C, and I have to concatenate a few things. Right now I have this: message = strcat(\"TEXT \", var); message2 = strcat(strcat(\"TEXT \", foo), strcat(\" TEXT \", bar)); Now if you have experience in C I'm sure you realize that this gives you a segmentation fault when you try to run it. So how do I work around that?", "found a 1994 uncashed profit sharing retirement plan check I found an old un-cashed check dated 1994 for $487 from my Xerox Retirement plan with no expiration date. Can I still cash it?", "\"All our X\" vs. \"all of our X\" Is the word \"of\" optional in this instance? Is either of these considered preferable to the other? Taste all our delicious treats. Taste all of our delicious treats." ]
medi_sts_stackexchange_dupe
Which anchors to use for a wall in a basement
How do you secure wood framing to a concrete basement floor?
[ "Show that unit circle is not homeomorphic to the real line", "What is Quantization?", "Why does stdafx.h work the way it does? As usual, when my brain's messing with something I can't figure out myself, I come to you guys for help :) This time I've been wondering why stdafx.h works the way it does? To my understanding it does 2 things: Includes standard headers which we might (?) use and which are rarely changed Work as a compiler-bookmark for when code is no longer precompiled. Now, these 2 things seems like two very different tasks to me, and I wonder why they didn't do two seperate steps to take care of them? To me it seems reasonable to have a #pragma-command do the bookmarking stuff and to optionally have a header-file a long the lines of windows.h to do the including of often-used headers... Which brings me to my next point: Why are we forced to include often-used headers through stdafx.h? Personally, I'm not aware of any often used headers I use that I'm not already doing my own includes for - but maybe these headers are necessary for .dll generation? Thx in advance", "How accurate is approximating the Earth as a sphere? What level of error do I encounter when approximating the earth as a sphere? Specifically, when dealing with the location of points and, for example, the great circle distances between them. Are there any studies on the average and worst case error compared to an ellipsoid? I'm wondering how much accuracy I'd be sacrificing if I go with a sphere for the sake of easier calculations. My particular scenario involves directly mapping WGS84 coordinates as if they were coordinates on a perfect sphere (with the defined by the IUGG) without any transformation.", "Suppose the terms of the sequence of real numbers $\\{a_n\\}$ satisfy $|a_{n+1} - a_n| \\le 2^{-n}$ for all $n$. Prove that $\\{a_n\\}$ is Cauchy. My Work So by the definition of a Cauchy sequence, for all $\\varepsilon &gt; 0$ $\\exists N$ so that for $n,m \\ge N$ we have $|a_m - a_n| \\le \\varepsilon$. However, questions like make me understand that the $2^{-n}$ condition is necessary for this to be a true statement. So I am wondering how to appeal to the Cauchy definition for this proof. Do I prove that every convergent sequence is therefore Cauchy, and then try to prove convergence?", "How can friction do no work in case of pure rolling?", "Let $\\mathbb{F}$ be a finite field. Let $a_1,\\dots,a_n \\in \\mathbb{F}$ be given. I want to know whether there exists $x_1,\\dots,x_n \\in \\mathbb{F}$ such that $$a_1 x_1^2 + a_2 x_2^2 + \\dots + a_n x_n^2 = 1.$$ My question: Can we characterize when this equation has a solution, i.e., by some criterion on $a_1,\\dots,a_n$? Is there a clean characterization, in terms of $a_1,\\dots,a_n$ and the properties of $\\mathbb{F}$? Here's what I can see immediately. First, if $n=1$, there is an easy answer (the equation has a solution iff $a_1$ is a square in $\\mathbb{F}$). Second, if any $a_i$ is a square in $\\mathbb{F}$, the equation has a solution (set all other $x_j$'s to $0$), so we can assume that all the $a_i$'s are non-squares and that $n \\ge 2$. Third, if $-1$ is a square in $\\mathbb{F}$, then the equation has a solution: we can take $x_2 = \\sqrt{-a_1/a_2} \\cdot x_1$. But what about the case where $-1$ is a non-square in $\\mathbb{F}$? Is it always guaranteed to have a solution in this case?", "Proof that every repeating decimal is rational", "When do moderator elections take place? I'm really confused on this. I have no idea on several things: When do elections begin? Is there a set time each year? Do elections actually take place each year? Can I vote? Where do I vote? Etc. Can someone please help me?", "Using a new document class/template with LyX? I tried googling this elsewhere but I'm new to LaTeX and extremely confused about certain things. Basically I downloaded MikteX and I'm using the latest version of Lyx with it. Now all I basically know how to do is make pretty looking mathematics and add contents pages/titles/references/etc. I'm looking to make a dissertation and my unviersity provides a template, (available for download at that link). So, what exactly do I need to do (and please be super specific as I am totally clueless to all the jargon I read). Basically, I need to download ociamthesis.cls in the first line of that webpage. Does it matter where I save it? What exactly do I do next?", "How do I fix my locale issue? I am getting this message every time I do something like starting or stopping a service. perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = \"en_US:en\", LC_ALL = (unset), LC_MESSAGES = \"en_US.UTF-8\", LANG = \"en_US.UTF-8\" are supported and installed on your system. perl: warning: Falling back to the standard locale (\"C\"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory (Reading database ... 21173 files and directories currently installed.) Removing bind9 ... * Stopping domain name service... bind9 [ OK ] Processing triggers for man-db ... locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory How do I fix this error ?", "Short-lived sci-fi series with a former astronaut turned superhero (or maybe a police officer?) using his spacesuit for his \"powers\" Plot Details/Summary I only watched an episode or two of this one, so I can't recall a whole lot about it. The protagonist is a former astronaut of some sort, who makes it his mission to clean up the crime in his city. He might have been a police officer in his &quot;new life&quot; or he might have decided to become a sort of quasi-superhero. In either case, I distinctly recall his space suit being the gimmick that makes him an effective crime fighter in the show. I seem to recall the protagonist being a young, dark-haired man, and I think he had a friendship or an alliance with a young woman (maybe a fellow cop, or someone from the space program?). I don't think there were alien beings in the show. The criminal threats were all quite terrestrial, IIRC. Timeframe and other Publication Details This was a syndicated tv show I saw on American television, probably around the late 90s to early 2000's. I believe the show was filmed in Canada, though I'm not certain. I don't think it lasted very long - it was pretty dreadful. I can say for certain the show is not Space Cop or Gerry Anderson's Space Precinct.", "Obscure fantasy movie involving flying sea-galleons and a time weapon Been trawling the internet for hours, can't find any trace or reference of this movie. Not really sure what station I saw it on (only once), but it was probably Sci-Fi Channel (mind you, a very long time ago: Movie opens with flying ships (sailing galleons), that proceed to siege a towering city. The city fires back with its own cannons, and drives the invaders away. The main protagonist is a young boy who longs to be a knight... or this movie's equivalent thereof. He has an older brother who is already recognized as a warrior. The boy lives in the city that successfully repelled this siege. The king of this city has some sort of wizard or wise-man as a councilor, who conceives an \"ultimate weapon\" against their enemies- an hourglass of sorts that accelerates time against a target. However, during the course of the movie this weapon is stolen by the city's enemies (led by an evil queen or sorceress), who proceeds to use it against the city itself and all its inhabitants. So the king sends out his armies to retrieve the artifact, all the while everyone and everything begins aging rapidly. Our boy-hero watches his older brother (now much older) set out with other knights on the quest, and there's a token romance between the boy and the king's daughter. The knights do not return, however, and the time-curse continues to wreak havoc on the city. Ultimately, the boy (now a man) sets out to find his brother, the hourglass, and save the day. He finds his brother at a wreckage-site (I believe of a flying galleon), and they share a brief moment before the elder brother finally succumbs to old age. I'm sure I'm forgetting some other poignant details, but that's essentially the crux of it. Ends... if I remember correctly, with the artifact being disabled and the evil queen/sorceress defeated. Question is: what is this movie titled?", "How do I restore the default repositories?", "Should I use an offset for my Poisson GLM? I am carrying out research to look at differences in fish density and fish species richness when using two different underwater visual census methods. My data was originally count data but then typically this is changed to fish density but I have still decided to use a Poisson GLM, which I hope is right. model1 &lt;- glm(g_den ~ method + site + depth, poisson) My 3 predictor variables are method, site and depth which I ordered as factors when I input them. My response variables are grouper species richness, grouper density and the same for other fish groups. I am aware that density is not an integer and it is numerical data e.g 1.34849. I am now however getting this error: In dpois(y, mu, log = TRUE) : non-integer x = 0.037500 I've been reading up and many people suggest using an offset, is this the most advisable thing to do?", "Prove the divergence of the sequence $\\left\\{ \\sin(n) \\right\\}_{n=1}^{\\infty}$. I am looking for nice ways of proving the divergence of the sequence $\\left\\{x_n\\right\\}_{n=1}^{\\infty}$ defined by $$x_n=\\sin{(n)}.$$ One (not so nice) way is to construct two subsequences: one where the indexes are picked such that they lie in the intervals $$I_k=\\left(\\dfrac{\\pi}{6}+2\\pi(k-1),\\dfrac{5\\pi}{6}+2\\pi(k-1)\\right)$$ and one where they lie in $$J_k=\\left(\\dfrac{7\\pi}{6}+2\\pi(k-1),\\dfrac{11\\pi}{6}+2\\pi(k-1)\\right).$$ If ${x_n}$ converges, then all its subsequences must converge to the same limit, but here the first subsequence has all its values in the interval $\\left[ \\frac{1}{2}, 1\\right]$ while the second has its values in $\\left[-1,-\\frac{1}{2}\\right]$. Contradiction. Filling the details of this proof is rather tedious and not very elegant. Anyone has a better idea?", "Given the following image: $\\hskip{1.5 in}$ Supposing $A(100, 300)$ and $B(300, 100)$, how can I find the angle $\\alpha$ between A and B? On a side note, what's the main difference between a point and a vector? translating a point to a vector is as simple as Point = Vector? Sometimes I find articles where the terms are interchangable", "Why do Kurama and Gyuki appear as chakra while other bijuu don't? In Naruto, Kurama (the Nine-tailed bijuu) appears as chakra, as does Killer B's bijuu, Gyuki. Other bijuu, however, don't appear that way. What is different between them?", "Why does everyone do 9-overlord, not 10-overlord?", "Safety of installing Ubuntu alongside Windows Is it really safe to choose the \"Install Ubuntu alongside Windows\" option from the Ubuntu installation program? I never used that option, instead I used other tools such as partition magic or windows 7's disk tool to resize my partitions. Since I'm going to install Ubuntu across a lot windows (XP, Vista and 7) machines. It would not be nice to damage those Windows partitions. What is your experience? Can I use this feature without concerns?" ]
medi_sts_stackexchange_dupe
How can I create chapter "Title Pages"?
Fancy chapter headings
[ "The \"I Get It\" Reputation Problem", "Key Derivation Functions vs. Password Hashing Schemes Key derivation functions, such as HKDF (standardized in ), are meant to stretch some initial keying material having enough entropy, like a Diffie-Hellman shared value, into one or more strong cryptographic secret keys. Password-hashing schemes, such as the winner , are meant to hash usually low-entropy passwords with the goal of making the hash digest inversion as costly as possible for an adversary with respect to CPU and memory consumption, as well as parallelization. Is it exact to consider that password-hashing schemes are actually key derivation functions specialized for low-entropy inputs? Or is there any other essential difference of theoretical nature between these two types of cryptographic schemes?", "Notepad++ incrementally replace", "What's the difference between passing by reference vs. passing by value?", "How does virtualizing differ from emulation, in terms of structure? Someone told me that a virtualizing program like VirtualBox does not work like an emulator does in the sense that it doesn't emulate registers and uses the actual ones for the virtualized data that are on the CPU. Emulators must emulate the registers since they are mostly to execute software that depends on a foreign environment (e.g. a Genesis emulator needs Motorola 68000's registers and memory addresses, so developer must make these resources available as emulated registers). My main question is, how is virtualization developed? How do we enable an entire OS to run as a process in a virtual machine, but get it to run independently while still making use of the actual CPU? I only know emulation, not virtualization, so if anyone could help that'd be nice! PS: I am not asking solely what the difference is, but differences in how they run software.", "How do I pass a function as a parameter to in elisp? I'm trying to pass one method to another in elisp, and then have that method execute it. Here is an example: (defun t1 () \"t1\") (defun t2 () \"t1\") (defun call-t (t) ; how do I execute \"t\"? (t)) ; How do I pass in method reference? (call-t 't1)", "Prove that the functions $f(z)$ and $\\overline{f(\\overline{z})}$ are simultaneously holomorphic. I take this to mean that $f(z)$ is holomorphic if and only if $\\overline{f(\\overline{z})}$ is holomorphic. Let $g(z)=\\overline{f(\\overline{z})}$. Note that $\\overline{g(\\overline{z})}=f(z)$. So it suffices to prove that if $f(z)$ is holomorphic, then $g(z)$ is holomorphic. Write $f(z)=u(z)+iv(z)$. Since $f(z)$ is holomorphic, the real and imaginary parts satisfy the Cauchy-Riemann equations: $$\\frac{\\partial{u(z)}}{\\partial{x}} = \\frac{\\partial{v(z)}}{\\partial{y}}, \\frac{\\partial{u(z)}}{\\partial{y}} = -\\frac{\\partial{v(z)}}{\\partial{x}}.$$ We have $g(z) = u(\\overline{z})+i(-v(\\overline{z}))$. To prove that $g(z)$ is holomorphic, we must prove that its real and imaginary parts satisfy the Cauchy-Riemann equations: $$\\frac{\\partial{u(\\overline{z})}}{\\partial{x}} = \\frac{\\partial{(-v(\\overline{z}))}}{\\partial{y}}, \\frac{\\partial{u(\\overline{z})}}{\\partial{y}} = -\\frac{\\partial{(-v(\\overline{z}))}}{\\partial{x}}.$$ How can we obtain this from the above relations?", "RMSE vs Standard deviation in population", "Imagine you are surviving in the wilderness traveling in a wandering manner. You've found this landscape that is wonderfully abundant in food and basking in a very favorable climate. Therefore, you decide that this is your new residence. Night is approaching, so you haphazardly piece together a makeshift shelter to make for a more enjoyable living experience while you get your act together. This shelter is only temporary. After you've become familiar with the land and have gathered finer resources, you will begin creating a proper home complete with securities, amenities, and furnishings. The word I am looking for is an adjective meaning something similar to \"created recklessly for temporary use.\" The shelter you were building on your first night was a(n) ________ abode. The words and phrases \"ad-hoc\", \"off the cuff\", \"on the run\" came to my mind, but none of those are understood to mean what I am trying to communicate (in fact, two of them are not even close). If you think of a word with a meaning that you believe to be similar to what I am searching for, I'd love to hear from you! Thank you.", "Remove files with 0 length inside bash I want to create a bash script inside Linux terminal to go into a file and then delete it if it's empty: #!/bin/bash echo \" Enter name of a directory\" read Dir for Directory in $( ls $HOME ) do test -d $HOME/$dir if [ $# -eq 0 ] then for filename in $( ls $HOME/$Dir ) do test -d $HOME/$dir/$filename if [ ! -s \"$filename\" ] then rm $HOME/$dir/$filename else echo \" not empty\" fi done else echo \" $Dir is not a directory\" fi done This is the code I am using but it does not work. It recognizes the file created but doesn't delete it even when empty. It Salah displays there is no such file or directory", "^x^y unix trick for all instances in last command? One of my favorite Unix tricks is ^x^y, which will take the last command and replace the first instance of \"x\" with \"y\". However, I'm wondering if a similar trick works to replace all instances of \"x\" with \"y\" in the last command?", "How do I arrange selected vertices into a circular formation quickly? The other answers does not have the same title as my question. My question is direct and simple for younger beginner to search for results.", "When does function composition commute? I've read that function composition \"generally does not commute.\" Not counting compositions involving the identity function, and compositions of a function and its inverse, are there examples of functions on the reals (for example) $f, g$ where $fg = gf$ outside of these cases?", "I compile my project with VIsual Studio 2005 Express Edition, and get this linking error. Can anyone suggest how to solve that?", "Is it correct to say \"I wrote him\" or \"I wrote to him\"? My Mother was a stickler for English grammar and would say \"I wrote your Uncle...\" rather than \"I wrote to your Uncle...\"", "Does Java have buffer overflows?", "Prove that for any piecewise smooth curve it is possible to find the parametrisation", "I have started a long process through a terminal. Is it possible to make the Ubuntu terminal make a sound once the process is complete? This way, I don’t need to keep checking, but will instead be notified through a sound.", "I am trying to show that: \\begin{equation} \\frac{n}{\\phi(n)} = \\sum_{d \\mid n} \\frac{\\mu^2(d)}{\\phi(d)} \\end{equation} where $\\phi(n)$ is and $\\mu$ is the . The identity clearly holds for $n=1$, so if we write $n=p_1^{a_1} \\cdots p_k^{a_k}$ for the prime decomposition of $n$, the left-hand side becomes: \\begin{eqnarray*} \\frac{n}{\\phi(n)} &amp; = &amp; \\frac{p_1^{a_1} \\cdots p_k^{a_k}}{\\phi(p_1^{a_1}) \\cdots \\phi(p_k^{a_k})} \\\\ &amp; = &amp; \\frac{p_1^{a_1} \\cdots p_k^{a_k}}{(p_1^{a_1-1})(p_1-1) \\cdots (p_k^{a_k})(p_k-1)} \\\\ &amp; = &amp; \\frac{p_1 \\cdots p_k}{(p_1-1)\\cdots (p_k-1)} \\end{eqnarray*} Whereas the right-hand side becomes: \\begin{eqnarray*} \\sum_{d \\mid n} \\frac{\\mu^2(d)}{\\phi(d)} &amp; = &amp; \\sum_{\\substack{d \\mid n \\\\ p^2 \\nmid d}} \\frac{1}{\\phi(d)} \\\\ &amp; = &amp; 1 + \\frac{1}{\\phi(p_1)} + \\dots + \\frac{1}{\\phi(p_k)} + \\frac{1}{\\phi(p_1 p_2)} + \\dots + \\frac{1}{\\phi(p_{k-1}p_k)} \\\\ &amp; + &amp; \\dots + \\frac{1}{\\phi(p_1 \\cdots p_k)} \\\\ &amp; = &amp; 1 + \\frac{1}{p_1 - 1} + \\dots + \\frac{1}{p_k - 1} + \\frac{1}{(p_1 - 1)(p_2 - 1)} + \\dots + \\frac{1}{(p_{k-1}-1)(p_k-1)} \\\\ &amp; + &amp; \\dots + \\frac{1}{(p_1 - 1) \\cdots (p_k - 1)} \\end{eqnarray*} I am unsure of how to proceed from this point however. Any help would be much appreciated.", "How to create a batch job, numbering images (writing text on them) from 1 to 100 in Photoshop? Looking to create a 100 images that would have their appropriate numbers written on them. Since I`ll be most likely making changes to the template in the future I figured it would be better to automate it somehow. Is there a simple solution to this problem?" ]
medi_sts_stackexchange_dupe
Adding huge packages into new projects (Eclipse)
Adding a reference between Eclipse Java projects
[ "Change font of formula number in DisplayFormulaNumbered", "How do I parse a string to a float or int? In Python, how can I parse a numeric string like \"545.2222\" to its corresponding float value, 545.2222? Or parse the string \"31\" to an integer, 31? I just want to know how to parse a float str to a float, and (separately) an int str to an int.", "Plural or singular verb for collective term", "Test for the convergence of the sequence $S_n =\\frac1n \\left(1 + \\frac{1}{2} + \\frac{1}{3} + \\cdots+ \\frac{1}{n}\\right)$", "I am trying to show $$\\lim_{n\\rightarrow \\infty} \\int_{[0,1]^n} \\frac{|x|}{\\sqrt{n}}dx=\\frac{1}{\\sqrt{3}}$$ where $[0,1]^n$ is the unit cube in $\\mathbb{R}^n$. I would appreciate any hint.", "How can I show that the sum $$ \\sum_{k = 0}^n 2^k \\binom{n}{k}$$ is equal to $3^n$?", "Contour integral of $\\sqrt{z^2-1}$ on $|z| = 2$ I've been wrestling with this problem (available ): Evaluate the integral of $f(z) = \\sqrt{z^2-1}$ around the circle $\\{z: |z| = 2\\}$, where the branch of the square root function is chosen so that $\\sqrt{2^2-1} &gt; 0$. I came up with the answer $$\\int\\limits_{|z| = 2} \\sqrt{z^2-1} dz = \\pi i$$ using the following argument, which seems a little like voodoo to me. You notice that there are two points, at $z \\pm 1$, where you might have to pick a branch of $log()$ to define the square root. Then, I convinced myself that as long as you exclude from your domain the real interval $-1 \\le x \\le 1$, the function $f(z)$ can be continuously defined (maybe the two branches somehow cancel?), and so is analytic on its domain. Therefore you can shrink the contour of integration continuously using the Cauchy Closed Curve Integral Theorem, so that you wind up reducing it to the real integral $$2\\int_{-1}^1 \\sqrt{x^2-1} dx = \\pi i$$ I'm not really sure the answer is correct, and I'm even less certain about the way I got it. I had a hard time convincing myself that $\\sqrt{z^2-1}$ was not multi-valued on the domain. To try to get at that I tried $\\sqrt{z^2-1} = \\sqrt{z+1} \\sqrt{z-1}$ and reasoned that the product makes the discontinuity disappear, using $$e^{\\frac{\\pi}{2}i}\\cdot e^{\\frac{\\pi}{2}i} = -1 = e^{-\\frac{\\pi}{2}i}\\cdot e^{-\\frac{\\pi}{2}i} $$ for the different branches of $log()$ you can choose. I'd appreciate any input that would help me get a a better way to look at this. Thanks! EDIT An attempt to use the Residue at infinity: By substituting $z = 1/w$ you get \\begin{eqnarray} \\int\\limits_{|z| = 2} \\sqrt{z^2-1} dz &amp;=&amp; \\int\\limits_{|w| = 1/2} \\frac{1}{w^2}\\sqrt{\\frac{1}{w^2}-1} dw \\\\ &amp;=&amp; \\int\\limits_{|w| = 1/2} \\frac{1}{w^2}\\sqrt{\\frac{1-w^2}{w^2}} dw \\\\ &amp;=&amp; \\int\\limits_{|w| = 1/2} \\frac{1}{w^3}\\sqrt{1-w^2} dw \\end{eqnarray} The integrand is analytic in $|w| \\le 1/2$ except at $w = 0$, so we can apply the Residue Theorem. Near $w = 0$, $\\sqrt{1-w^2} = 1 - \\frac{1}{2}w^2 + \\dots$, so the residue of $\\frac{1}{w^3}\\sqrt{1-w^2} $ at $w = 0$ is $-\\frac{1}{2}$. Then the integral is $$\\int\\limits_{|z| = 2} \\sqrt{z^2-1} dz = 2\\pi i \\cdot (-1/2) = -\\pi i$$", "How to find the smallest $n$ such that $n^a\\equiv 1 \\pmod p$ Given a prime $p$ and number $a$, how do I find the smallest $n$ such that $n^a\\equiv 1 \\pmod p$? Is there a non trial-and-error method? Edit: obviously removing $n=1$!", "I read news on the BBC (on its website) this morning. When I was reading the news I noticed the definite article the was missing in a sentence. As per my opinion, the reporter missed the article the. But I also thought that the reporter also had some point as he did not use the article there. So I just wanted to confirm so landed here to get some help on it. On the website: It also proclaimed the group's leader, XYZ (name), as caliph and \"leader for Muslims everywhere\". As per my opinion it should have been: It also proclaimed the group's leader, XYZ (name), as the caliph and \"leader for Muslims everywhere\". Source link:", "Nautilus 3.6 doesn't have a status bar? In 12.04, Nautilus showed the amount of remaining space in the status bar , but as of 13.04 the status bar is gone. gsettings set org.gnome.nautilus.window-state start-with-status-bar true turned out \"no such key\". Is there any way to bring back the status bar?", "how to run the dialog command with proccess Please look on my code – ( bash script ) I want to display both dialogs on the screen on the same time, one dialog display the: tail –f from - /var/log/proccess1.log , and the second dialog display the: tail –f from the file - /var/log/proccess2.log but the sad fact is that I can display only one dialog and not both dialogs ( because when I run the first dialog , the second dialog will activate only if the first dialog will killed ) So I create process on the second dialog ( ….. ) &amp; , in order to display both dialogs But …. the second dialog create process number but not create the second dialog GUI , ( seems that when we create dialog with process , the process not send the dialog to standard output ) So how to run the second dialog with process but send the dialog GUI to screen ? , or other solution in order to display both dialogs on screen My code #!/bin/bash # this dialog will locate the tail box on the top of the screen dialog --begin 15 10 --tailbox /var/log/proccess1.log 13 125 # this dialog will locate the tail box down in the screen ( dialog --begin 37 10 --tailbox /var/log/proccess2.log 13 125 ) &amp;", "Content Assist for JSF2 + CDI (weld) beans + Eclipse Helios", "$$y'=x^2+y^2$$ I know, that this is a kind of Riccati equation, but is it possible to solve it with only simple methods? Thank you", "How to create two partitions?", "Is there a single word for a \"friend of a friend\"? I am looking for a word that I could use instead of \"friend of a friend\". On certain occasions, it happens that you may want to talk about a friend of a friend with someone else. In such cases how would you refer to this friend?", "Why does observation collapse the wave function? In one of the first lectures on QM we are always taught about Young's experiment and how particles behave either as waves or as particles depending on whether or not they are being observed. I want to know what about observation causes this change?", "How can I create my own Action using Photoshop? Can anyone guide me with a simple example?", "A map $f:S^n\\rightarrow S^n$ satisfying $f(x)=f(-x)$ for all $x\\in S^n$ is said to be an even map. Show that if $f:S^n\\rightarrow S^n$ is an even map, then $\\deg f=0$ when $n$ is even and $\\deg f$ is even when $n$ is odd. Moreover show that when $n$ is odd, there exist even maps of any given even degree. My Try: So $f=(-I)\\circ f$. Then $\\deg f=\\deg (-I)\\times \\deg f$. If $n$ is even $\\deg (-I)=-1$. Hence, $2\\deg f=0$, so $\\deg f=0$. But how do I show the results when $n$ is odd. No clue at all. This problem is in Hatchers book (A very complicated text). There is a hint but I do not understand it. Can somebody help me to proceed?", "Click Answer your own question Check community wiki A dialog box Are you sure you want to make this post Community Wiki? will appear, Click OK or Cancel; The same dialog will appear again. Google Chrome 44.0.2403.107 / Windows8.1 / site rev 2015.7.25.3609", "Capitalization of names that begin lowercased, at the beginning of a sentence" ]
medi_sts_stackexchange_dupe
Show that $\lim_{n\to\infty} a^{\frac1n}=1$
Proving $\lim_{n\to\infty} a^{\frac{1}{n}}=1$ by definition of limit
[ "Limit of $s_n = \\int\\limits_0^1 \\frac{nx^{n-1}}{1+x} dx$ as $n \\to \\infty$ Let $s_n$ be a sequence defined as given below for $n \\geq 1$. Then find out $\\lim\\limits_{n \\to \\infty} s_n$. \\begin{align} s_n = \\int\\limits_0^1 \\frac{nx^{n-1}}{1+x} dx \\end{align} I have written a solution of my own, but I would like to know it is completely correct, and also I would like if people post more alternative solutions.", "Why don't researchers request payment for refereeing?", "Can Europeans reset their \"time in Canada\" clock by visiting the US? If a Swiss citizen comes to Canada and stays for 6 months, can they travel to USA for example, for a short period of time, and then return to Canada for another 6 months? How long must they stay out of Canada before returning?", "How can I pass arguments to a batch file? I need to pass an ID and a password to a batch file at the time of running rather than hardcoding them into the file. Here's what the command line looks like: test.cmd admin P@55w0rd &gt; test-log.txt", "I came across this strange code snippet which compiles fine: class Car { public: int speed; }; int main() { int Car::*pSpeed = &amp;Car::speed; return 0; } Why does C++ have this pointer to a non-static data member of a class? What is the use of this strange pointer in real code?", "How do I figure out the right size font / text for a given read distance? To avoid printing single letters at varying sizes and measuring how far away I can see it from a distance is there a formula for determining what size font for a particular read distance? Is it better to take the midpoint between the ascender line and x-height or to go purely off of the x-height (since going purely off the ascender line could leave lowercase letters difficult to read)? How does vertical height play into this? Would I need to then figure the hypotenuse distance instead of a straight distance? For example if I'm shooting for a 20' read distance but the sign is to be placed about 30' up should I use a distance of 35' instead of 20'? I'm shooting for a 20' read distance for the headline and then possibly a 10' read distance for additional content depending on how it all fits on the active area.", "My reputation rating on SO took this hit an hour ago, and it is due to what appears to be the simultaneous deletion of multiple questions. I am uncertain why it happened, am concerned, and would appreciate an explanation. Going to shows that it was removed due to moderation. Was a script run deliberately, or were we hit with a question deletion attack; what happened? -12 today -2 1 hour ago removed How to send a 2d Vector over UDP in c++ -2 1 hour ago removed How do I use the Eclipse debugger to debug a Java application? -2 1 hour ago removed PHP string error; inconsistency with local and server -2 1 hour ago removed Unable to start the MySQL service after a server migration -2 1 hour ago removed How to use Java to print a text file on a ticket printer? -2 1 hour ago removed How can all of the ZBrush Obj files be imported to make a complete model?", "Is it possible to bring built-in lightning components into aura component? I have a form that needs to let the user select 3 out of 5 products, something similar to Order > Add Product (Modal). I was wondering if there was a way to bring that piece into my component (markup) and add some sort of filter that only shows the products I want to show. What I found so far: &lt;lightning:listView objectApiName=\"Products2\" listName=\"productsView\" showActionBar=\"true\" enableInlineEdit=\"true\" showRowLevelActions=\"true\"/&gt; But Product2 is not supported for that component. also these from browser inspector: forceMultiAddUsingLVM forceListViewManager These are data-aura-class attributes when rendered. I'm looking for directions here. Thanks in advance.", "I have a time series that shows a nonstationary seasonal autoregressive component as well as known heteroshedasticity. In order to model the series, I have fit a seasonal ARIMA model for the mean with the auto.arima model in the forecast package in R and a GARCH model on the residuals of the ARIMA model. Is the procedure of sequentially estimating ARIMA and GARCH model correct or would it have been better to jointly model the mean and the variance of the series? If this were correct, is there a (possibly R) function to do it?", "How to prevent nginx redirecting from HTTPS to HTTP on AWS? I have a website served by nginx behind an AWS ELB Load Balancer. Only HTTPS is enabled on the load balancer. Requesting individual files, or directories with a trailing slash, work fine. However, requesting directories without a trailing slash don't work. The reason is, when I request the directory without the trailing slash, nginx does a redirect to the path with the trailing slash (that's OK), but it also changes from HTTPS to HTTP. The load balancer is configured to only allow HTTPS, so that doesn't work (timeout). On the nginx logfile, I can see that the request reaches nginx, and that it's nginx that responds with the 301 Permanent Redirect (so it's not e.g. a problem with the load balancer setup). 10.100.10.15 - - [24/Nov/2017:15:41:08 +0000] \"GET /admin HTTP/1.1\" 301 178 \"-\" \"Wget/1.18 (darwin16.0.0)\" When I request the URL via curl I see the redirect: $ curl -v https://example.com/admin * Trying 1.2.3.4... * TCP_NODELAY set * Connected to example.com (1.2.3.4) port 443 (#0) * TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 * Server certificate: example.com * Server certificate: Amazon * Server certificate: Amazon Root CA 1 * Server certificate: Starfield Services Root Certificate Authority - G2 &gt; GET /admin HTTP/1.1 &gt; Host: example.com &gt; User-Agent: curl/7.54.0 &gt; Accept: */* &gt; &lt; HTTP/1.1 301 Moved Permanently &lt; Date: Mon, 27 Nov 2017 09:19:05 GMT &lt; Content-Type: text/html &lt; Content-Length: 178 &lt; Connection: keep-alive &lt; Server: nginx &lt; Location: http://example.com/admin/ &lt; X-UA-Compatible: IE=Edge &lt; &lt;html&gt; &lt;head&gt;&lt;title&gt;301 Moved Permanently&lt;/title&gt;&lt;/head&gt; &lt;body bgcolor=\"white\"&gt; &lt;center&gt;&lt;h1&gt;301 Moved Permanently&lt;/h1&gt;&lt;/center&gt; &lt;hr&gt;&lt;center&gt;nginx&lt;/center&gt; &lt;/body&gt; &lt;/html&gt; * Connection #0 to host example.com left intact My nginx config file is just server { root /var/www; } The /etc/nginx/nginx.conf is . I have tried server_name_in_redirect off but it did not make any difference. I would like to avoid putting the hostname in the config file, because this is packed into a Docker image which is then deployed on different hosts (QA, Prod, etc.). I would like nginx to do this redirect, but stay on HTTPS. What can I do?", "I have the following prompt in bash which shows the current git branch: PS1+=\"$(git_prompt)\" #git_prompt is a function in my .bashrc which works when I source the .bashrc, but not when I change the branch, so the PS1 var gets only evaluated when I source the .bashrc, but it should be evaluated every time a new prompt is displayed. How can this be accomplished with bash 4.3 ?", "How to create a fancy table of contents for Beamer How can I create a fancy-looking table of contents for a Beamer presentation? \\documentclass{beamer} \\usepackage[utf8]{inputenc} \\usepackage[T1]{fontenc} \\begin{document} \\frame{ \\tableofcontents } \\section{Foo bar} \\frame{} \\section{Foo bar} \\frame{} \\section{Foo bar} \\frame{} \\section{Foo bar} \\frame{} \\section{Foo bar} \\frame{} \\section{Foo bar} \\frame{} \\section{Foo bar} \\frame{} \\end{document}", "If $a_k\\geq0$ is a decreasing sequence converging to $0$, do we have $\\lim_{n\\to\\infty}\\frac{\\sum_{k=1}^n a_k}n = 0$?", "PHP conditionals, brackets needed? I was just browsing a forum and someone asked about a PHP file they had found on the web. It has several spots like this in the code: if ($REMOTE_ADDR == \"\") $ip = \"no ip\"; else $ip = getHostByAddr($REMOTE_ADDR); I have always thought brackets are needed to enclose what you want to do if the condition is true. Is there some other alternative, such as if it is on the same line you don't? There is also another line like this: if ($action != \"\"): mail(\"$adminaddress\",\"Visitor Comment from YOUR SITE\", My instinct is to say this wouldn't work, but I also don't know if it is an outdated PHP file and it used to work?", "How can you draw more detailed/smoother images in pygame?", "This picture is a part of a table i am using, the terms subcases are vertically written but i cant center them vertically also in the next columns terms like A, B, etc are also not vertically centered. I made this table using tabulary package a. My code is \\begin{table}[H] \\centering \\caption{Saturation Table} \\label{tab:5}% \\begin{tabulary}{1\\linewidth}{J J J J J J J J J J J J J} \\toprule &amp; \\textbf{Method} &amp; \\multicolumn{1}{c}{\\textbf{Parameters}} &amp; \\textbf{Step 0} &amp; \\textbf{Step 1} &amp; \\textbf{Step 2} &amp; \\textbf{Step 3} &amp; \\textbf{Step 4} &amp; \\textbf{Step 5} &amp; \\textbf{Step 6} &amp; \\textbf{Step 7} &amp; \\textbf{Step 8} &amp; \\textbf{Step 9} \\\\ \\midrule \\multirow{4}[4]{*}{\\begin{sideways}\\textbf{Subcase A}\\end{sideways}} &amp; \\multirow{2}[2]{*}{\\textbf{A}} &amp; \\textbf{No} &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; \\textbf{6} &amp; &amp; &amp; &amp; \\\\[1mm] &amp; &amp; \\textbf{Maximum Saturation {(\\%)}} &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 4 &amp; \\textbf{5} &amp; &amp; &amp; &amp; \\\\ \\cmidrule{2-13} &amp; \\multirow{2}[2]{*}{\\textbf{B}} &amp; \\textbf{No} &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; \\textbf{8} &amp; &amp; \\\\[1mm] &amp; &amp; \\textbf{Maximum Saturation {(\\%)}} &amp; 6 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; 9 &amp; 19 &amp; \\textbf{8} &amp; &amp; \\\\ \\bottomrule \\end{tabulary}% \\end{table}%", "Path.Combine for URLs? is handy, but is there a similar function in the .NET framework for ? I'm looking for syntax like this: Url.Combine(\"http://MyUrl.com/\", \"/Images/Image.jpg\") which would return: \"http://MyUrl.com/Images/Image.jpg\"", "raw data stationary but still can see trend and seaonality is stl", "How do you get assembler output from C/C++ source in gcc? How does one do this? If I want to analyze how something is getting compiled, how would I get the emitted assembly code?", "Does \"it is entirely possible that\" require the subjunctive form of the verb following \"that\"?" ]
medi_sts_stackexchange_dupe
Comparing two normal distributions with different mean
Nonstandard normal distribution
[ "jQuery/JavaScript to replace broken images I have a web page that includes a bunch of images. Sometimes the image isn't available, so a broken image is displayed in the client's browser. How do I use jQuery to get the set of images, filter it to broken images then replace the src? --I thought it would be easier to do this with jQuery, but it turned out much easier to just use a pure JavaScript solution, that is, the one provided by Prestaul.", "Dell Latitude E7270", "avoid space after commas used as thousands separator in math mode", "What is this element on the far right of schematic described as \"270 OHM\"? Is this some kind of inductor? What is its purpose in this device (this is a reference design of dc-dc power supply of sim900 taken from its datasheet) and what would be an exemplary part number?", "Do tag edits count for Archaeologist?", "IEEEtran - How to include ORCID in TeX/PDF with PdfLatex This question led to a new package: I would like to display the ORCID id in an author list in an IEEEtran pdf, like that: Is there a standard way to include it in an IEEEtran article with PdfLaTeX? I used two approaches from , but I failed. One is to insert the ORCID icon in the author list. I used the blow code: \\author{Ali Al-Obaidi \\href{https://orcid.org/0000-0000-0000-0000}{\\includegraphics[scale=1]{figures/orcid_16x16.png}}} where orchid_16x16.png is provided in the link . But the result is that the icon is not clear enough, even I replaced it with a different size. The other approach is to use the package, like that: \\usepackage{academicons} \\definecolor{orcidlogocol}{HTML}{A6CE39} \\author{AAA \\href{https://orcid.org/0000-0000-0000-0000}{\\textcolor{orcidlogocol}{\\aiOrcid}}} However, the result is like that: And I also got two errors: &quot;Latex Error: Encoding scheme 'TU' unknown&quot; and &quot;Bad character code (59865)&quot;. In the latest academicons.sty (see ), academicons use the font TU. However, it seems that the compiler PdfLateX cannot support this font. Thus, is there anyone that knows a standard way to include it in an IEEEtran article with PdfLaTeX? Please help me.", "I have already read the question about but this is not what I want, I want to be able to click on the file in Dash or in Nautilus and be able to open it with the specified app. For example I have this case right now: When I click on an EXE file it does not get executed by Wine, instead I get the following: If I try to look for Wine in the Open With context menu option it is there. I am fine executing it from there the first time, but then the following times Wine does not appears selected in the main Context menu: I then went to Properties to the Open With Tab to look for Wine. It was not in the Default apps nor was it in the Recommended ones when I clicked and search on Show other applications This is not limited to EXE extensions. It also has happened with MKV files, MP4 files, JPG, PNG, MP3 and even SVG and CSS. So instead of trying to find a way of solving it for one, I want a way that can be done to any type of extension that can: Make the app the default of that extension Appear on the context menu in Nautilus when I right click on the file Appears on the \"Open With\" tab on the Property window of the file Correctly executes the specified app when I click on the file with Dash This might sound like it should be common sense for an app to execute the file but it does not always work like that. So for the cases where it actually does not work, how to fix it. A reset of the extension?, An update of the files that can open said extension?, an addition of the app via a command line or GUI tool?", "Why do Star Trek vessels always approach each other on parallel planes? Space is just open 3D space, right? In Star Trek, ships are always coming from somewhere else: different solar systems, galaxies, etc. However, when they meet, they always seem to be on parallel planes (facing each other). In some episodes I recall seeing ships that were adrift (and they appeared facing a different trajectory). How can there possibly be some standardized reference plane in space? Do ships just choose to align with each other to be polite? Or perhaps when entering a solar system, the pilot, or navigation system aligns orthogonally with the local orbital axis?", "Can anyone explain reverse bias pn junction using only electrons as charge carriers In forward bias condition p-type semiconductor is connected to positive side and ntype semiconductor to negetive side and the electrons flow from n-type to p-type to cathode of battery. But imagine the same situation when the situation is reverse biased so now p-type is connected to negetive terminal of battery and n-type to positive terminal of battery. Now there is excess of electrons in n-region and it is connected to positive terminal of the battery.So electron can flow from n-type region to positive terminal of the battery due to potential difference created by battery whereas in p-type electrons can flow from one covalent bond to another as they do in forward biasing. Only difference is,here electron move in opposite direction (from one covalent bond to another) i.e. from n-region to depeletion region whereas in forward bias they move from depeletion to n-region.Which shouldn't be a problem Now in this manner current must flow regardless of biasing so what's the correction?", "Colorize symbols with lstdefinelanguage in latex", "I am interested in theoretical and practical considerations.", "Evaluating $\\int_0^{\\large\\frac{\\pi}{4}} \\log\\left( \\cos x\\right) \\, \\mathrm{d}x $", "We should make books of our best content! And that's a good idea! We have a lot of high quality content here, certainly enough for a small book. I'm not saying that it necessarily has to be integrated into the main site, but this is just a suggestion if anyone wants to implement it. Stack Exchange probably could make money selling the physical books though. CC-BY-SA allows selling, as long as you allow others to make copies of your book, and credit the author. What Wikipedia does is you can custom order any set of articles as a book (it even has a nice set of authors at the end, to satisfy the BY part of CC-BY-SA). This could even tie into the docs feature.", "Integrating MySQL with Python in Windows", "I have Perl code which relies on Term::ReadKey to get the terminal width. My installation is missing this module, so I want to provide a default if the module isn't present rather than throw an exception. How can I conditionally use an optional module, without knowing ahead of time whether it is available. # but only if the module is installed and exists use Term::ReadKey; ... How can I accomplish this?", "\\RequirePackage{filecontents} \\begin{filecontents}{\\jobname.bib} @article{Arter95, Author = {David Arter}, Date-Added = {2013-08-11 17:38:06 +0000}, Date-Modified = {2013-09-01 15:13:22 +0000}, Journal = {Journal of Common Market Studies}, Number = {3}, Pages = {361-287}, Title = {The {EU} {Referendum} in {Finland} on 16 October 1994: {A} Vote for the {West}, not for {Maastricht}}, Volume = {33}, Year = {1995}} @article{Detlef95, Author = {Jahn, Detlef; Storsved,Ann-sofie}, Date-Added = {2013-08-11 17:14:34 +0000}, Date-Modified = {2013-08-11 17:16:45 +0000}, Journal = {West European Politics}, Number = {4}, Pages = {18-37}, Title = {Legitimacy through referendum? The nearly successful domino‚Äêstrategy of the Eu‚Äêreferendums in Austria, Finland, Sweden and Norway}, Volume = {18}, Year = {1995}} \\end{filecontents} \\documentclass{article} \\usepackage[ngerman]{babel} \\usepackage{natbib} \\bibpunct{(}{)}{;}{a}{}{,} \\makeatletter \\renewcommand\\@biblabel[1]{} \\makeatother \\begin{document} \\cite{Arter95} \\bibliography{\\jobname} \\bibliographystyle{plainnat} \\end{document} Please help. I want the author's name displayed like this \"Arter, D.\" instead of David Arter", "Why does ( exit 1 ) not exit the script?", "Why is 128==128 false but 127==127 is true when comparing Integer wrappers in Java?", "Convert web page to image", "Let $H$ be a subgroup of $G$ with $[G:H]=n$ and $G$ finite. Let $G$ act on left cosets of $H$ by left multiplication. Let $N$ be the kernel of the action. Show that $[G:N]$ divides $n!$. Ok so I have a theorem that says that if $G$ is simple then it embeds into $S_n$. So if $G$ is simple than I'm done because $G$ divides $n!$ and thus $N$ divides $n!$ and hence $[G:N]$ divides $n!$. Now I also know that $N$ is the largest normal subgroup of $G$ contained in $H$. Thus if $G$ isn't simple then it contains some non-trivial normal subgroup $K$ and thus $K\\cap H$ is normal in $H$ and by the 2nd Iso Theorem $H/K\\cap H\\cong KH/H$... As you can see I'm not sure where to go from here. I was hoping to prove that $K\\cap H$ wasn't trivial and thus that $N$ couldn't be trivial since it must contain $K\\cap H$, but I'm not sure I can, and even if I could I'm not sure that would help me in showing that $[G:N]$ is small enough to divide $n!$. Can anyone give some guidance? Thanks." ]
medi_sts_stackexchange_dupe
Colby grew up "on" a cattle ranch in Texas
What is the difference between 'located in' and 'located on'?
[ "How to calculate the difference between two dates using PHP?", "I have set theme handler for a form in Drupal and this handler has a template file. What is the easiest way to send a value from PHP to JavaScript in that include file?", "Combining all the address fields into one?", "I want to know, if this bug is fixed, because all previous versions of Ubuntu didn't work for me. So I just want to know, should i leave Windows 10 and go for Ubuntu 17.10. Thanks!", "Power Supply Capacity Formula Given that I am building a home computer from scratch and I have several components (MB, CPU, HDD, Video, Sound, etc) which have specific power requirements, is there a formula for me to calculate the size/capacity of the Power Supply I will need? I want to be able to expand the setup later on also...", "So, let's take Skeptics.SE for an example. You can become a trusted user when you acquire 4000 rep., not 20000 I was like, wow, so is it like this because of the lack of users on Skeptics.Se, as in, not so much as Stack Overflow or something? Why do some sites need less reputation to be a trusted user?", "if $f^{(n)}(x_0),g^{(n)}(x_0)$ exist and $\\lim_{x\\to x_0} \\dfrac{f(x)-g(x)}{(x-x_0)^n}=0$ then $f^{(r)}(x_0)=g^{(r)}(x_0 )$ for all $0\\leq r\\leq n.$ Show: if $f^{(n)}(x_0),g^{(n)}(x_0)$ exist and $$\\lim_{x\\to x_0} \\dfrac{f(x)-g(x)}{(x-x_0)^n}=0$$ then $f^{(r)}(x_0)=g^{(r)}(x_0 )$ for all $0\\leq r\\leq n.$ My attempt: let n = 1, since $f'(x_0),g'(x_0)$ exists then The taylor polynomial exists: $$T_{f,1}(x)=f(x_0)+f'(x_0)(x-x_0), \\lim_{x\\to x_0} \\dfrac{f(x)-T_{f,1}(x)}{(x-x_0)}=0$$ $$T_{g,1}(x)=g(x_0)+g'(x_0)(x-x_0), \\lim_{x\\to x_0} \\dfrac{g(x)-T_{g,1}(x)}{(x-x_0)}=0$$ Then, \\begin{align} \\lim_{x\\to x_0} \\dfrac{f(x)-g(x)}{(x-x_0)^n} &amp; =\\lim_{x\\to x_0} \\dfrac{f(x)-g(x)+T_{f,1}(x)-T_{f,1}(x)+T_{g,1}(x)-T_{g,1}(x)}{(x-x_0)^n}\\\\ &amp;=\\lim_{x\\to x_0} \\dfrac{f(x)-g(x)+T_{f,1}(x)-T_{f,1}(x)+T_{g,1}(x)-T_{g,1}(x)}{(x-x_0)^n}\\\\ &amp;=\\lim_{x\\to x_0} \\dfrac{f(x)-T_{f,1}(x)}{x-x_0}-\\lim_{x\\to x_0} \\dfrac{g(x)-T_{g,1}(x)}{x-x_0}+\\lim_{x\\to x_0} \\dfrac{T_{f,1}(x)-T_{g,1}(x)}{x-x_0}\\\\ &amp;=\\lim_{x\\to x_0}\\dfrac{T_{f,1}(x)-T_{g,1}(x)}{x-x_0}\\\\ &amp;=0 \\end{align} Then, \\begin{align} \\lim_{x\\to x_0}\\dfrac{T_{f,1}(x)-T_{g,1}(x)}{x-x_0} &amp;=\\lim_{x\\to x_0}\\dfrac{f(x_0)+f'(x_0)(x-x_0)-g(x_0)-g'(x_0)(x-x_0)}{x-x_0}\\\\ &amp;=\\left(f(x_0)-g(x_0)\\right)\\lim_{x\\to x_0}\\dfrac{1}{x-x_0}+f'(x_0)-g'(x_0) \\\\&amp;=0 \\end{align} I am confused because $\\lim_{x\\to x_0}\\dfrac{1}{x-x_0}$ does not exist.", "Chrome and IE 11 are fine, I'm only able to reproduce this in Firefox. Using version 27.0.1 on Windows 7. Meta as well as all the other sites are affected. I can still see the hover effect, but the image is gone. I see this in Firebug: The image doesn't show up in the Network tab. I am able to see the image by visiting which goes to I've done Ctrl-F5, I've cleared the cache and I've tried Private Browsing. Possibly related to ?", "Every time the DeLorean travels in time, it appears in the same place as the place it left. But that's the same place relative to the Earth's surface. In space-time terms, that point is constantly moving: the Earth rotates on its axis at a speed of one revolution per day, and moves around the Sun at a speed of one revolution per year (a roughly circular orbit with a radius of 93 million miles). The Sun is orbiting around the centre of our galaxy, pulling its planets with it, and our galaxy is moving relative to all other galaxies. So if the DeLorean does not move in space in absolute terms, then a time-jump of even a few minutes would place it outside the Earth's atmosphere as the planet would have moved a few miles in that time. Therefore, to prevent this, the car's computer has to calculate the precise movement of the Earth (and Hill Valley) over the required interval travelled. Two questions: A computer powerful enough to do that kind of calculation probably couldn't have fitted into a car in 1985. So where did Doc get it from? If he could calculate the spatial displacement to remain in the same place on the Earth's surface that accurately, why couldn't he adjust those calculations to make the DeLorean appear wherever he wanted?", "How can I move an object towards another along a straight line", "The full question: suppose N is normal in G and $[G:N]=p$ is a prime. Prove that for any $K \\leq G$, either (1) $K \\leq N$ or (2)$KN=G$ and $[K:K \\cap N]=p$. Since $N,K \\leq G$, it is of course possible that $K \\leq N$ could happen. but for (2), we can show $KN \\subseteq G$ but how can we show $KN=G$? And what information does \"$[G:N]=p$\" give us?", "Why does sstatic.net serve cookies? According to : This is a fast, cookieless domain intended for static content delivered to the However, all responses from the server set a cookie anyway: $ http https://sstatic.net/ HTTP/1.1 200 OK CF-RAY: 162b88245bc406be-LHR Cache-Control: max-age=604800 Connection: keep-alive Content-Encoding: gzip Content-Type: text/html Date: Sun, 31 Aug 2014 19:11:04 GMT ETag: W/&quot;d5474fdfb5c3cf1:0&quot; Last-Modified: Fri, 29 Aug 2014 18:20:12 GMT Server: cloudflare-nginx Set-Cookie: __cfduid=db60cc6f3e7f6482e37f1f2b85c9dc5881409512264375; expires=Mon, 23-Dec-2019 23:50:00 GMT; path=/; domain=.sstatic.net; HttpOnly Transfer-Encoding: chunked Vary: Accept-Encoding [...] Is this intentional, or just funny? Edited to add: I understand that the cookie is used to track visiting browsers so that cloudflare can distinguish them from misbehaving hosts using the same or a nearby IP address. However, if the policy is intentionally to serve cookies, then the self-documentation of sstatic.net as a &quot;cookieless domain&quot; is incorrect.", "Exporting Data From Salesforce - REST or SOAP? We have a requirement where we need to export records from salesforce tables into our application programmatically. I am reading on the various API's for data integration from salesforce mainly SOAP vs REST API's. From what I understand, REST should be used when the web service requests are from mobile devices or browser based clients (since they understand JSON). Is that true? If that's the case how do Bulk REST API's fit the bill (since they are meant for bulk data transfers)? I would like to get your thoughts on what are pros and cons in using SOAP or REST API's to export data records. Note that the requests are being made a java ee server application programmatically. After retrieving the records (probably in batches) from salesforce records we process (validate, filter etc) them and load them in our internal tables. Thanks.", "The LaTeX Wikibook : Please understand: you do not have to use floating tables. It only looks more professional. If you want to place your tables where they lie in your source code, do not use table at all! This is a very common misunderstanding among newcomers. LaTeX works with an intricate , but I often prefer immediate placement with the H placement specifier (enabled by the float package). My understanding is that captions and table/figure numbering require the table/figure environments. Is this really so, or are there ways around that? What other reasons are there for using table/figure if we know that we don't want a particular object to float?", "From this paper: Shouldn't $du$ be $dt$? And also how do you get from that line to the final result if $du$ is not $dt$?", "Why don’t photons interact with the Higgs field and hence remain massless?", "Preposition 'to' with gerund (-ing)? Check this sentence from (US Department of Education) Technology ushers in fundamental structural changes that can be integral to achieving significant improvements in productivity. Cannot it be better as... Technology ushers in fundamental structural changes that can be integral to achieve significant improvements in productivity. The preposition to takes gerund (-ing) here. Any rule?", "How can I randomise the output of a redstone circuit?", "I have read in a book that the limit of the ratio of consequent Fibonacci numbers is the golden ratio. However, it was just mentioned thus not justified. So, my question is how would you derive the following limit: $$\\lim_{x\\to\\infty}{\\frac{F_n}{F_{n+1}}}=?$$ Where $F_n$ is the nth Fibonacci number?", "Need help to interpret output of free command I would appreciate help in interpreting the output of 'free -m' below. -bash-4.2$ free -m total used free shared buff/cache available Mem: 15793 7112 88 7840 8591 611 Swap: 16891 5289 11602 If I have nearly 11GB free then why am I seeing swap usage. Shouldn't that be 0? Also, the 'shared' value is 7840. Is this memory available for a new application? Is only 'cache' memory available for new applications? In other words, 'shared' and 'buffer' memory are not available for new applications? How should I interpret the 'available' column with a value of 611? How is this value arrived at?" ]
medi_sts_stackexchange_dupe
Does Ubuntu 1604 LTS support Intel 2011-3 CPU and the X99 support chips?
Is Ubuntu compatible with my hardware?
[ "Physical meaning of quantum operators Let's say we have a wavefunction $\\psi$ and a measurement operator $\\hat A$. I understand how eigenvalues and eigenvectors of $\\hat A$ describe the possible outcomes of the measurement. I also understand that the average measurement can be computed as $\\langle \\psi|\\hat A|\\psi\\rangle$. It's still not clear to me what the direct meaning of $\\hat A |\\psi\\rangle$ is. It is a wavefunction; how does its corresponding quantum state relate (in physical terms) to the original state $\\psi$ and the measurement $\\hat A$?", "I'm having this XML document with namespaces and I want to extract some nodes using XPath. Here's the document: &lt;ArrayOfAnyType xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns=\"http://tempuri.org/\"&gt; &lt;anyType xsi:type=\"Document\"&gt; &lt;Id&gt;5&lt;/Id&gt; &lt;Title&gt;T1&lt;/Title&gt; &lt;/anyType&gt; &lt;anyType xsi:type=\"Document\"&gt; &lt;Id&gt;15&lt;/Id&gt; &lt;Title&gt;T15&lt;/Title&gt; &lt;/anyType&gt; &lt;/ArrayOfAnyType&gt; What's the XPath expression going to be if I want to extract all \"anyType\" elements with xsi:type=\"Document\"? I've tried this: //anyType[@xsi:type=\"Document\"] and it doesn't work:", "vs. . Which to use?", "Where is the .Trash folder?", "How can I get the current working directory? I want to have a script that takes the current working directory to a variable. The section that needs the directory is like this dir = pwd. It just prints pwd how do I get the current working directory into a variable?", "What does the \"yield\" keyword do? What is the use of the yield keyword in Python? What does it do? For example, I'm trying to understand this code1: def _get_child_candidates(self, distance, min_dist, max_dist): if self._leftchild and distance - max_dist &lt; self._median: yield self._leftchild if self._rightchild and distance + max_dist &gt;= self._median: yield self._rightchild And this is the caller: result, candidates = [], [self] while candidates: node = candidates.pop() distance = node._get_dist(obj) if distance &lt;= max_dist and distance &gt;= min_dist: result.extend(node._values) candidates.extend(node._get_child_candidates(distance, min_dist, max_dist)) return result What happens when the method _get_child_candidates is called? Is a list returned? A single element? Is it called again? When will subsequent calls stop? 1. This piece of code was written by Jochen Schulz (jrschulz), who made a great Python library for metric spaces. This is the link to the complete source: [Module mspace][1].", "Could \"them\" mean \"those\"? Background Nowadays, I see &quot;them&quot; used to mean &quot;those&quot; a lot. I don't know if it was as common in the past. For example, take &quot;one of &quot;. On researching about it, I found some people say it comes from a dialect of British English. Some others say it is a &quot;non-standard&quot; usage. I see this usage in Canadian English also, and it seems some people use it in a sarcastic way. Moreover, I have seen a song titled &quot;one of them days&quot;. I also read, in the book called &quot;A Broken Promise&quot;, &quot;&quot; Finally, Wikipedia says that it is a usage in (a common name for the Southern Midland dialect of American English): Pronouns and demonstratives &quot;Them&quot; is sometimes used in place of &quot;those&quot; as a demonstrative in both nominative and oblique constructions. Examples are &quot;Them are the pants I want&quot; and &quot;Give me some of them crackers.&quot; Question(s): What would you say about the usage of this word? Is it correct? Could we use it in daily speech? Could this usage go beyond a specific dialect and be used in other dialects, regions, etc.? Does it really originate from Appalachian English? Why did this usage become popular among other English speakers? Note: I have already seen a similar question: However, it only says, &quot;ungrammatical,&quot; there. This question is specific to this situation only, and there is more to it.", "So I'm trying to power 2 of these together in series. I know that I have to add the voltage of the two lights together and get a resistor that restricts the power to that level. I have a 9V battery and the lights are 3V each. I brand new to all of this, and understand almost nothing, so any help would be appreciated. Can someone help me choose the correct resistor (And how to identify that resistor with the color branding thing) so two of those lights listed above can be wired in series? Thanks!", "I have seen similar posts but none seem to work. I simply need to remove the dots in the ToC between the chapter titles and the page numbers. I think the page numbers should line up (as if there were dots). This is using the memoir class. Here is my ToC info: %%%% Do the ToC \\let\\oldtoc\\tableofcontents \\renewcommand{\\tableofcontents}{\\clearpage\\pagestyle{toc}\\oldtoc} \\renewcommand{\\contentsname}{TABLE OF CONTENTS} \\renewcommand{\\listfigurename}{LIST OF FIGURES} \\renewcommand{\\listtablename}{LIST OF TABLES} \\renewcommand*{\\tocheadstart}{\\vspace*{-\\topfiddle}} \\renewcommand*{\\aftertoctitle}{\\thispagestyle{plain}% \\par\\nobreak \\mbox{}\\hfill{\\normalfont Page}\\par\\nobreak} \\renewcommand*{\\cftchapterfont}{\\normalfont} \\renewcommand*{\\cftchapterpagefont}{\\normalfont} \\renewcommand*{\\cftchapterleader}{% \\cftchapterfont\\cftdotfill{\\cftchapterdotsep}} \\renewcommand*{\\cftchapterdotsep}{\\cftdotsep} %\\renewcommand*{\\cftchaptername}{CHAPTER~} %%% no extra space before the entry \\setlength{\\cftbeforechapterskip}{0pt plus 0pt} %% no extra 'chapter' space in LoF/LoT \\renewcommand*{\\insertchapterspace}{} I tried everything that was suggested. Nothing seemed to make any difference. I am stuck with this format. Any suggestions would be greately appreciated!", "Could you vs would you Could you write your name? Would you write your name? When you are asked to do this, are there any situation in which you hear weird if either is used (but the other sounds pretty natural .)", "Computational complexity of Fibonacci Sequence", "How can I use JUnit4 idiomatically to test that some code throws an exception? While I can certainly do something like this: @Test public void testFooThrowsIndexOutOfBoundsException() { boolean thrown = false; try { foo.doStuff(); } catch (IndexOutOfBoundsException e) { thrown = true; } assertTrue(thrown); } I recall that there is an annotation or an Assert.xyz or something that is far less kludgy and far more in-the-spirit of JUnit for these sorts of situations.", "HA configuration for KVM machines installed on shared iSCSI storage My requirement is to provide HA to a Zimbra Server. We want Zimbra files to be installed in a Netapp SAN which is providing around 5.7 TB as a SAN iSCI Drive. Since Netapp comes in with Dual Controller and stable performance, we are unlikely to have any down time. I have 2 servers each having Xeon processor 6 Core, 32 GB RAM and 2 x 250 GB SSD. These are the two servers where I have installed CentOS 7.6. We would like to have one as primary and the second one as secondary. Idea is to use the same principle of KVM HA ( What Redhat and even VMware) provides, so that if the primay goes down the IP gets switched to secondary, to create a simple Hot Redudant system. We have a very few users on Zimbra, but there are a lot of automated emails coming in and we require a very large storage, and hence we are using the Netapp box. I am able to switch between the KVMs. However I am struggling to figure out how I need to mount the iSCI target, so that the mail application stays alive. Zimbra typically installs on /opt/. Do I mount the target on /opt/, and if so will it work? Or am I missing something else? Or should I run the VM of the shared storage itself, and if so how can I configure it. Zimbra itself is a combination of a database and files, and uses a number of services to keep itself active. Idea of using a shared storage is for Redundancy and high availability. Appreciate your response and support.", "Is there a word for someone who won't think critically? Is there a word for someone who won't think through issues and instead comes to others hoping that they will think for them and solve problems for them? A word that is more specific to a lack of critical thinking skills than \"lazy\"?", "I would like to filter the markers on my (geojson) layer according to two features: year and type of event, ideally using both filters (year and eventType) as check-boxes without using layerGroup at all. I would like to be able to click on a checkbox and update dynamically the markers by filtering them according to feature.properties.eventType too, in addition to the year displayed, something like &lt;input type=\"checkbox\" id=\"all\" name=\"all\" value=\"all\"&gt; &lt;label for=\"all\"&gt;All&lt;/label&gt; &lt;input type=\"checkbox\" id=\"funfair\" name=\"funfair\" value=\"newsletter\"&gt; &lt;label for=\"funfair\"&gt;Funfair&lt;/label&gt; &lt;input type=\"checkbox\" id=\"trade\" name=\"trade\" value=\"trade\"&gt; &lt;label for=\"trade\"&gt;Trade&lt;/label&gt; &lt;input type=\"checkbox\" id=\"exhibition\" name=\"exhibition\" value=\"exhibition\"&gt; &lt;label for=\"exhibition\"&gt;Paid exhibition&lt;/label&gt; etc... which would trigger a filter: function(feature, layer) { return feature.properties.eventType == value-of-checkbox; } I have five types of eventType. So, for instance, if 1890 is checked, the map is showing all 1890 events, no matter what kind of event it is (because by default it would show all events). If the user checks the 'funfair' and the 'trade' checkbox, though, I want the map to show only the 1890 events of the funfair and trade kind, and not other kind of events. This is my complete script, which so far is working fine with filtering by year. var oldmap = L.tileLayer('address', { maxZoom: 12 }), var modernmap = L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}', { maxZoom: 12, id: 'mapbox.streets', accessToken: 'mytoken' }); var map = L.map('map', { center: [40.1857864,-4.5536861], zoom: 7, layers: [oldmap, modernmap] }); var baseMaps = { \"Old map\": oldmap, \"Modern map\": modernmap }; var jsontest = {\"type\": \"FeatureCollection\", \"features\": [ { \"type\": \"Feature\", \"geometry\": { \"type\": \"Point\", \"coordinates\": [ -16.5471268,28.4136726 ] }, \"properties\": { \"Name\":\"Point1\", \"year\":'1892', \"eventType\":\"funfair\", \"notes\":\"\" } }, { \"type\": \"Feature\", \"geometry\": { \"type\": \"Point\", \"coordinates\": [ 2.1753895,41.3767925 ] }, \"properties\": { \"Name\":\"Point2\", \"year\":'1890', \"eventType\":\"trade demonstration\", \"notes\":\"\" } } ]}; var mapLayerGroupsYear = []; function onEachFeature(feature, layer) { var year = mapLayerGroupsYear[feature.properties.year]; if (year === undefined) { year = new L.layerGroup(); //add the layer to the map year.addTo(map); //store layer mapLayerGroupsYear[feature.properties.year] = year; } //add the feature to the layer year.addLayer(layer); } var myLayer = L.geoJSON(jsontest, { onEachFeature: onEachFeature }) L.control.layers(baseMaps, mapLayerGroupsYear).addTo(map); I am a beginner with leaflet so please forgive the dumb question, in case it is.", "Efficient way to check collision with potentially hundreds of objects I am trying to make a top down shooter that could potentially have hundreds of objects at once at one point. I need to check collision with projectiles, walls, and enemies. I am currently using ArrayLists which probably won't suffice later on and was wondering if someone had a good method or knows a good method for checking all of those objects at once. This is going to be a game for smartphones and is built in java. Any ideas would be great or if you could point me in some direction that would be fantastic. Thanks in advance!", "Show some indication that account is banned from asking new questions", "Is the function $\\mbox{tr}(XAX')$ convex? Is the function $\\mbox{tr}(XAX')$ convex, where $A$ is a positive semidefinite (PSD) matrix? I know that for a general $A$, the above trace function is not convex. But for a PSD $A$, is the function convex?", "Computing the Galois group of polynomials $x^n-a \\in \\mathbb{Q}[x]$", "Does 'fight' involve combat?" ]
medi_sts_stackexchange_dupe
trying to create a script with timestamp
Why can't I change directories using "cd" in a script?
[ "How to modify a text file?", "Cannot make a static reference to the non-static method", "I know that Windows XP 32-bit can be configured, through , to support more than 3.5&nbsp;GB of RAM. Is there a good tutorial to do this with Windows 7 32-bit? As to why I don't simply use 64-bit Windows 7: The software for my Internet connection (cell phone-as-modem) will only work in 32-bit environments.", "I am a beginner using QGIS (1.8.0 Lisboa) on a Mac (OS X 10.6.8 Snow Leopard). I work on a file with two layers in the following sequence (top to bottom): a vector polygon layer with a few outlines of various buildings in France and Italy (CRS: EPSG:4326 - WGS 84 - \"on the fly\" re projection is activated ) a Google satellite layer uploaded via open layer plugin. Sometimes when changing the scale (scrolling in and out) the Google layer updates a little wrong in size or position compared to the polygon layer. But as soon as I \"pan\" the map everything reconstructs right. Now the problem I have concerns the print composer. The result of any kind of export - pdf, or image or svg - of my map (vector layer + Google layer in the background) differs from what is shown in the preview of the print composer: the vector layer and the Google layer positions are mismatching and in a different scale. I can send some pictures showing screenshots of the print composer preview and the final results if required. I tried almost everything: new files with different CRS settings \"cache\" update preview \"render\" update preview different paper sizes, different scales, The problem appears only using an open layer map (Google, OpenStreetMap...). If I try the same using two vector layer (shapefile) - one with the buildings, another one with the city in background - everything works out great. ...exasperating! Since it is a real important research project I would be very grateful for some help and tips.", "Integral $\\int_{0}^{\\infty}e^{-ax}\\cos (bx)\\operatorname d\\!x$ I want to evaluate the following integral via complex analysis $$\\int\\limits_{x=0}^{x=\\infty}e^{-ax}\\cos (bx)\\operatorname d\\!x \\ \\ ,\\ \\ a &gt;0$$ Which function/ contour should I consider ?", "What are the fundamental differences between the mainstream *NIX shells? What are the fundamental differences between the mainstream *NIX shells and what scenarios might prompt you to use one over the other? I understand that some of it probably comes down to user preference but I've only ever used Bash and I'm interested to hear where another shell might be useful. Also, is there an impact on user-written shell scripts when running under one shell or another or is it simply a matter of changing the shell at the top of the file? My instinct says it's not that easy.", "Importing shapefile into AutoCAD Map 3D? I'm trying to import shapefiles into a DWG using diferent layers names and during my web search I found this post. I know you did this 2 years ago but my problem is very similar and I wonder if you could help me. Basically I've got a shapefiles of pipelines and I want to use the attribute name to sort the features into different CAD levels in teh same layer. I tried the import and although soem people say that \"you can set the import to use data field\" I can't see any option to do it and I'm really struggling. Any help appreciated. I'm running on AutoCAD Map 3D 2010.", "Generating ordered combination of numbers", "Selecting pixels in raster using polygon selection tool? I want to reclassify landcover image manually with respect to online imagery. I am looking for a software/plugin/script to manually select raster pixels using polygon selection tool and could be able to enter new value. I have Arcgis with spatial analyst license.", "What would be the best approach to get the recordtype id", "I'm trying to recall the name of a book I read, probably published after 1990, where alien AI infects satellites and a barrier is established, isolating earth from space that maybe slows down time inside of it, relative to the passage of time outside. Mars or the moon is also colonized in an attempt to flee the now real possibility that the sun will become a red giant and wipe out humanity in the not-too-distant future (as perceived on earth), but the colony gets one of the time barriers as well. I think the name of the novel was short, \"The _______\" (one word). The story focused more on the human cost and followed one particular family, one member of which was somehow also partially infected by the alien AI, but I don't remember as much about them.", "Terminal flashes on empty backspace with Yosemite Since using Yosemite, I've had the annoying problem of my current Terminal window flashing when backspacing on an empty line. I know on previous versions of OS X this flashing was not default, and could be toggled in accessibility settings, but I cannot find the same setting and I'm dying to get this turned off. Any known ways to get rid of it?", "If I roll two fair dice, the probability that I would get at least one 6 would be....", "Detecting constexpr with SFINAE", "Predict probabilities from Firth logistic regression in R I'm using the logistf package in R to perform Firth logistic regression on an unbalanced dataset. I have a logistf object: fit = logistf(a~b) Is there a predict() function like on that's used in the lm class to predict probabilities for future data points? Or do I have to manually input the estimated parameters from the Firth regression.", "Suppose a package provides whatever.service file so certain events (including whatever.socket) cause a daemon to start with a certain configuration. I want to disable this completely. In particular, I want the old socket and any other unit files that might refer to this service by name to be unable to start the daemon. Instead, I want to create my own unit files for this daemon with a different .socket unit and different environment variables. I also want my override to automatically take account of possible upstream updates to the original unit file (which my current solution of copying whatever.service as whatever-modified.service and editing it unfortunately does not provide). If I create the following symlinks and files: /etc/systemd/system/whatever.service → /dev/null /etc/systemd/system/whatever-modified.service → /usr/lib/systemd/system/whatever.service /etc/systemd/system/whatever-modified.service.d/fix.conf systemd considers the new service to be masked as well and refuses to start it. How to avoid this?", "I want to apply for Schengen visa, but employer NOC which is mandatory document for visa is not available with me I have resigned from my current company and will be joining a new company soon. Hence, I cannot get a leave approval letter from my current company, and if I decide to join a new company and then request a NOC (No Objection Certificate) it will be late for visa process completion because of my traveling dates. What can I show to the embassy as an alternative to this NOC document?", "For quite some time now I have been asking myself how the world of Game of Thrones is shaped and if the people living in that world know the shape. In questions here on SciFi.Stackexchange concerning the unnatural seasons or the definition of a year in Westeros, it is often that the Westerosi can measure the duration of a revolution of their planet around the sun. But that only works if they know that they actually live on a planet. In answer it was said that people have been travelling in ships around the world. However, I cannot remember any passage in the books supporting this. Actually I only remember evidence for the opposite: During the on the Iron Islands, there is a man called who promises the Ironborn treasures from lands far to the west, if they elect him as king. However, the POV character of that chapter (I think it was Victarion Greyjoy) does not believe him and sees the madness in Gylbert's eyes - as if speaking of travelling west is crazy. Later when he leads the attack against the Shield Islands, the Iron Fleet travels out of sight of the coast line. This manoeuvre is considered very dangerous and risky. If this is already dangerous, traveling even further west appears close to suicide. In addition, there was a who sailed to the far west and never returned. establishes that the world is not a hollow world, but is not conclusive as to whether it is a planet. Is there any evidence in the books that the World of Ice and Fire is a planet? Was it established that the Westerosi know the nature of their world?", "Scenario description Lets assume both containers have a capacity of 300 litres. One is a vertical tube as shown in pic 1 Other one is more or less a V shaped containers as shown in pic 2 Both are at ground level Question No doubt that whole weight of 300 litres will act on the base of the tube (pic 1). But will the weight of the whole 300 litres act on the base of the container as shown in pic 2? I.e if you keep both the containers on a weighing scale, for sure, it will show a weight of approx. 300 kg each. But what I'm asking is whether the weight of whole 300 litres acts on the base of container 2 (since the container's walls are slanting, as opposed to the walls of the tube in pic 1). If the whole weight will not act on the base of the container, can you state the reasoning and also the principle, so that I can further get to know about it? Pic 1 | | | | | | | | | | | | |_________| Pic 2 \\ / \\ / \\ / \\________/", "MacBook Pro 2020 Fan Issues I recently purchased a MacBook Pro 2020 13&quot; (1.4 GHz, 8GB Ram, i5). For some reason, when I open Chrome and watch Twitch my computers fans turn on and go crazy. After opening Activity Monitor, I noticed that Google Chrome Helper (Renderer) uses around 50-80% of my CPU. Also, sometimes when I run code on my MacBook Pro, the fans turn on when the program is compiling/running but slow down a few minutes after terminating the program. Also, when watching Twice on Safari, the fans don't come on. However, around 50-60% of the CPU is still being used. Should I be concerned about the CPU usage (I am nervous because I only recently purchased the laptop)?" ]
medi_sts_stackexchange_dupe
How does the movement enhancement from Mobile feat interact with the movement speeds of class and sub-class features?
Does a monk's Unarmored Movement speed increase apply to the fly speed gained from a Fly spell?
[ "I have defined my own language whose syntax is very close to the one of Pascal. I would like to type the following program for instance. Many people use the packages algorithmicx or algorithm2e to print programs, but it seems that we have to use their specific keywords of its syntax like procedure, end while. I just want to indent spaces when needed, and bold some words when I want (sorry that I could not bold letters in the following figure). Do I have to use texttt for each line? Also, with verbatim, I could not bold words... Also, as the program is not large, I would need to put it on the left side of the page, and leave space for some explanasion text on its right hand side. So I guss I need to get them all together, and use multicols. Could anyone help? program test some text here var i : integer; ... b : boolean; begin i := 1; ... b := true; while i &lt; 15 do i := i + 1; b := not b some text here od end Edit1: Following @Werner's tabbing solution, I have made the code a minipage: \\begin{minipage}[t]{0.48\\linewidth}% \\begin{tabbing} Werner's solution \\end{tabbing} \\end{minipage}\\hfill \\begin{minipage}[t]{0.48\\linewidth} a paragraph \\end{minipage} Actually as the code shows, I want the texts to be another separated minipage on the right hand side of the code. I have then 2 questions: is it reasonable to make 0.48\\linewidth instead of 0.5\\linewidth? 0.48\\linewidth is a conventional choice? is it possible to make a frame around the code, and use \\caption and \\label to make it a reference (I prefer figures)?", "\"May I go to the bathroom?\" and \"I asked if I might go to the bathroom.\" The modal auxiliary 'may/might' is used to ask permission. \"He may not have understood your question.\" and \"He might not have understood your question.\" The same modal auxiliary is used for uncertainty. Why?", "Group Membership Test for Permutations", "$X$ is Hausdorff if and only if the diagonal of $X\\times X$ is closed", "According to the Wikipedia article on the sample SD $$s = \\sqrt{\\frac{1}{n-1} \\sum_{i=1}^n (x_i - \\overline{x})^2}$$ is a biased estimator of the SD of the population. It states that $E(\\sqrt{s^2}) \\neq \\sqrt{E(s^2)}$. NB. Random variables are independent and each $x_{i} \\sim N(\\mu,\\sigma^{2})$ My question is two-fold: What is the proof of the biasedness? How does one compute the expectation of the sample standard deviation My knowledge of maths/stats is only intermediate.", "How do I translate strings in Twig templates? I am working on a (my first) Drupal 8 project witch is a multilingual site. Drupal 8 really delivers in terms of native support for content translation. However, I have a few strings set directly in some if the theme .Twig template files printed out like ex. {{ 'Read more'|trans }} I am really stuck on where to handle the translation for strings like these within the Drupal 8 installation. What steps do I need to take to be able to translate these strings into the language currently selected for on the site? Do I need any additional modules other than the ones included in Drupal 8 core? Steps I have taken: Activated the Content Translation &amp; Interface Translation modules Added Twig strings like {{ 'Read more'|trans }} Flushed cache and refreshed pages containing the strings Checked admin/config/regional/translate for the strings with no result", "How to enable linking floating point library in TurboC?", "$X$ is Hausdorff if and only if the diagonal of $X\\times X$ is closed Let $X$ be a topological space. The diagonal of $X \\times X$ is the subset $$D = \\{(x,x)\\in X\\times X\\mid x \\in X\\}.$$ Show that $X$ is Hausdorff if and only if $D$ is closed in $X \\times X$. First, I tried to show that $X \\times X \\setminus D$ is open using the fact that $X \\times X$ is Hausdorff (because $X$ is Hausdorff), but I couldn't find an open set that contains a point outside $D$ and is disjoint to it...", "Approaches to Sand on a Conveyor Belt", "If your application requires a database and it comes with built in data, what is the best way to ship that application? Should I: Precreate the SQLite database and include it in the .apk? Include the SQL commands with the application and have it create the database and insert the data on first use? The drawbacks I see are: Possible SQLite version mismatches might cause problems and I currently don't know where the database should go and how to access it. It may take a really long time to create and populate the database on the device. Any suggestions? Pointers to the documentation regarding any issues would be greatly appreciated.", "I have Xubuntu 18.04.3, and whenever I try to install a package through apt-get I get the following message. Removing linux-image-5.0.0-31-generic (5.0.0-31.33~18.04.1) ... /etc/kernel/postrm.d/initramfs-tools: update-initramfs: Deleting /boot/initrd.img-5.0.0-31-generic /etc/kernel/postrm.d/zz-update-grub: Sourcing file `/etc/default/grub' /usr/sbin/grub-mkconfig: 35: /etc/default/grub: FROM:: not found run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127 dpkg: error processing package linux-image-5.0.0-31-generic (--remove): installed linux-image-5.0.0-31-generic package post-removal script subprocess returned error exit status 1 Errors were encountered while processing: linux-image-5.0.0-31-generic libdvd-pkg: Package libdvdcss2-1.4.2-1 was removed, stop processing... E: Sub-process /usr/bin/dpkg returned an error code (1) Contents of /etc/default/grub: # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: # info -f grub -n 'Simple configuration' GRUB_DEFAULT=0 GRUB_TIMEOUT_STYLE=hidden GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR=`lsb_release -i -s 2&gt; /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT=\"quiet splash\" GRUB_CMDLINE_LINUX=\"persistent\" # Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) #GRUB_BADRAM=\"0x01234567,0xfefefefe,0x89abcdef,0xefefefef\" # Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=console # The resolution used on graphical terminal # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command `vbeinfo' #GRUB_GFXMODE=640x480 # Uncomment if you don't want GRUB to pass \"root=UUID=xxx\" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true # Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_RECOVERY=\"true\" # Uncomment to get a beep at grub start #GRUB_INIT_TUNE=\"480 440 1\" FROM: GRUB_CMDLINE_LINUX_DEFAULT=\"\" GRUB_CMDLINE_LINUX=\"\" TO: GRUB_CMDLINE_LINUX_DEFAULT=\"ipv6.disable=1\" GRUB_CMDLINE_LINUX=\"ipv6.disable=1\"", "When you are viewing an app in Google Play store, it displays the following : Updated, Size, Installs, Current Version, Requires Android, and Rating. I am trying to do some research and figure out the initial release / publish dates of different apps. Is there a way to get this information from Google Play, or perhaps a website with this information?", "Confidence interval for Bernoulli sampling I have a random sample of Bernoulli random variables $X_1 ... X_N$, where $X_i$ are i.i.d. r.v. and $P(X_i = 1) = p$, and $p$ is an unknown parameter. Obviously, one can find an estimate for $p$: $\\hat{p}:=(X_1+\\dots+X_N)/N$. My question is how can I build a confidence interval for $p$?", "I used a website called Seeking Arrangements and met a sugar daddy. He asked for my email login, online banking login, routing, account number, Facebook, as well as my address which is the only thing I gave him since it’s a PO. I’ve been extremely vague just to see if this is real. I don’t plan to give him anything because I have only been talking to him for a few months and I feel conflicted. I doubt that he is trying to scam me but I suspect that he has some kind of master plan. With things such as Venmo, Zelle, and Cashapp, what is the need for “put me on his payroll?” He claims that he is in another country on a business trip. He said that he tried to send me a gift but he lost access to his card. He is now asking to deposit more than 10k into my account and have me wire it. Is this a l classic way of scamming people? If so, is it common that they spend months creating a relationship with you to catfish you?", "17.10 Super key to open applications", "How do I recover lost/inaccessible data from my storage device? What steps can I take to try to recover lost or inaccessible data from any storage device? Answers: This applies to any computer storage device, e.g. internal/external hard drives, USB sticks, flash memory. The most important thing is to STOP using it, any type of I/O can ruin your chances of a recovery. We have separate questions covering common problems with USB flash drives in greater detail:", "In my project, I use a lot of geodata from different directories. Now I want to give the QGIS project to a colleague (eg on a CD). Is it possible to copy the shapes from different directories automatically to one directory?", "I have this statement and I need to say if it is true or false: Let $\\{a_n\\}$ be a real sequence. $$\\lim_{n\\to +\\infty} a_n = 0 \\quad \\implies \\quad \\sum_{n=1}^{\\infty}(-1)^na_n \\quad \\text{converges}$$ I know, from the Leibniz criterion that: If $a_n \\to 0$, $a_n$ is decreasing and positive then $\\sum_{n=1}^{\\infty}(-1)^na_n$ converges From this fact I believe that the statement is false but I couldn't come up with an infinitesimal sequence that isn't decreasing and for that reason is divergent. I tried some function with $sin(\\frac{1}{n})$ without any luck. Any help would be very appreciated, thank you!", "We've been talking a lot about the efficacy of community self-evaluations lately, both internally on the Community Team and out in the open . Lots of ideas were tossed around, but the underlying theme of these discussions has been that site self-evaluations are not useful in their current form. The review queue format hampers discussion, the meta thread posted by the Community user is trivially ignored, and the sample question size is far too small to be useful, but big enough to be non-trivial for participants. They also don't provide much in the way of useful information to community managers behind the scenes. So we're going to shut them down this week, and we'll be using the time it saves us to digest the ideas y'all have thrown out in the previous discussions and figure out where to go from here. I'll be going over the previous threads with a fine-toothed comb to try and suss out what worked well and what was broken and determine a more useful mechanism - if one is required at all. I'd also welcome continued suggestions from the communities about how to continue capturing what the evals accidentally did right - encouraging communities to stop and examine how they're doing at somewhat regular intervals. So: if you have ideas on how to get communities to monitor their own Q&amp;A quality and get a little introspective, feel free to sound off in the answers. Update: with a creative application of per-site feature toggles, we've shut down evaluations except on a handful of sites where they're currently running. Once those evaluations run their course, no new ones will be started anywhere on the network.", "I would like to know how to find a set of coordinates on a small circle some distance from another point. For example, lets say A = (39.73, -104.98) #Denver B = (39.83, -106.06) #point approximately 50 nautical miles away from A along the great circle track to C C = (40.75, -111.88) #Salt Lake City, approximately 323 nautical miles away from A How do I get the set of orange coordinates when I don't know the angle but I do know the cross track distance? For concreteness, lets say the outer points near B have a cross track distance of +- 30 nautical miles and the inner points have a cross track of +- 15nm. And the points near C have a cross track of +- 25 nm. Also I have an initial bearing from A to C of -1.34 #radians" ]
medi_sts_stackexchange_dupe
Creating multiple variables
How do I create variable variables?
[ "An excited electron loses energy in the form of radiation. The radiation constitutes photons which move at a speed $c$. But is the process of conversion of the energy of the electron into the kinetic energy of the photon instantaneous? Is there a a simple way to visualize this process rather than math?", "How to get Steam to recognize existing game files from a different source? Let's say I have a game bought on retail/other digital download and installed on my hard drive. I buy the same game (or a minor variant of it, say the GOTY edition) on Steam. It should be possible to use the existing installation to avoid the generally big downloads. This is very useful as it saves both bandwidth and time. Previously, as far as I understood, Steam downloaded the game files directly to steam\\steamapps\\common\\&lt;game_name&gt;. Since this folder would be created on starting the download, pausing and closing steam, copying the game files to this folder and then validating game files would make Steam absorb as much as possible and just download the missing files. Currently, Steam downloads the files to steam\\steamapps\\downloading\\&lt;game_id&gt; and then moves them over to the aforementioned folder once the download finishes. So first of all, what the final folder would be is not clear. So what would be the correct way of doing the same thing, that is, make steam use as much of the existing files as possible? Should the files be copied to downloading\\*\\, or should I figure out the actual folder (say via googling) and copy the files to steamapps\\common\\*\\? More specifically, I had a retail copy of Arkham City installed and I just bought the GOTY version on Steam. Now I tried both of the above things, in either case, the validating does not seem to do anything. Assuming I have the correct folder name steamapps\\common\\Batman Arkham City GOTY, according to , if I copy the files there, Steam seems to just continue with its 17GB download. If I copy it to steamapps\\downloading\\200260 then the download keeps stopping every few seconds with \"Disk Write Error\" after modifying 1 or 2 files, and I have to keep hitting resume.", "Shutdown Cause -128", "How get the :hover css style of an anchor with jQuery? How can i get the :hover in css stylesheet on the fly with jquery? stupid example: a.foo { color: red; font-size: 11px; } a.foo:hover { color: blue; font-size: 12px; } how to retrieve that color and font-size before that mouse will go over the anchor?", "How do you make a test class for custom controller? My search results involves this but trying to apply it in my test class only create too many error that I don't understand. public static testMethod void testMyController() { PageReference pageRef = Page.success;//Observe how we set the Page here Test.setCurrentPage(pageRef); . Does my test class need those line of codes when my controller class is only very simple. public class ClientInfo_VFcontroller{ public Org_Info__c orgInfo {get; set;} public ClientInfo_VFcontroller(){ orgInfo = new Org_Info__c(); } public PageReference save(){ insert orgInfo; orgInfo = null; ScheduleRetrieve.ScheduleRetrieve(); return null; } }", "Example of a finitely generated module with submodules that are not finitely generated I'm looking for an example of a finitely generated module with submodules that are not finitely generated. I've found dealing with group (i.e. an example of a finitely generated group with subgroups that are not finitely generated). But I can't figure out whether that question do help to this one. And I actually want to find a more \"module-like\" example rather than an example derived from a 'strange' group. Can you please help? Thank you!", "Is this algebraic identity obvious? $\\sum_{i=1}^n \\prod_{j\\neq i} {\\lambda_j\\over \\lambda_j-\\lambda_i}=1$ If $\\lambda_1,\\dots,\\lambda_n$ are distinct positive real numbers, then $$\\sum_{i=1}^n \\prod_{j\\neq i} {\\lambda_j\\over \\lambda_j-\\lambda_i}=1.$$ This identity follows from a probability calculation that you can find at the top of page 311 in the 10th edition of Introduction to Probability Models by Sheldon Ross. Is there a slick or obvious explanation for this identity? This question is sort of similar to ; clearly algebra is not my strong suit!", "Problem from Herstein on group theory The problem is: If $G$ is a finite group with order not divisible by 3, and $(ab)^3=a^3b^3$ for all $a,b\\in G$, then show that $G$ is abelian. I have been trying this for a long time but not been able to make any progress. The only thing that I can think of is: $$ab\\cdot ab\\cdot ab=aaa\\cdot bbb\\implies(ba)^2=a^2b^2=aabb=(\\text{TPT})abba.$$ Now, how can I prove the last equality? If I write $aabb=abb^{-1}abb$, then in order for the hypothesis to be correct, $b^{-1}abb=ba\\implies ab^2=b^2a$. Where am I going wrong? What should I do?", "To flag or not to flag question that don't show own effort? I am a little confused about what do with questions that are just asking \"I want this and that (...) and I want it to look exactly like that (...) please help\" without showning ANY own effort? According to those kind of answers are not welcome also the says those questions should not be asked: Don't ask about... Questions you haven't tried to find an answer for (show your work!) But does this mean that I should flag those kind of \"helpdesk\" questions or not? And if yes as what? low quality ? flag for moderator attention ? Or is just adding a kind comment asking for the asker's own attempts enough?", "I am having an access problem to some files and directories that I have tracked down to the group assigned to access them. When I manually change the name of the group in the properties/permissions menu for a directory from the default setting (MyGroup) to www-data used by my Drupal Website, the directory error messages I get are gone. There are a large number of files and directories that require this change. If believe using chmod will change the owner which is set correctly and being new to Ubuntu, I am reluctant to experiment without a better understanding of how owner and groups work in the permissions settings. What command changes the Group setting for a directory?", "How to list only JPEG files from root below using the command line?", "Prove that $\\phi(n) \\geq \\sqrt{n}/2$", "I am having trouble getting a basic example of a matrix of notes to show up in my beamer presentation. I am using the code copied from the pgf manual. Here is a complete working example. The error I get upon compilation is: \"Package pgfbasematrix Error: Single ampersand used with wrong catcode.\" \\documentclass{beamer} \\usepackage{tikz} \\usetikzlibrary{arrows,decorations.pathmorphing,backgrounds,fit,petri,positioning,matrix} \\begin{document} \\begin{frame} \\begin{tikzpicture} \\matrix (magic) [matrix of nodes] { 8 &amp; 1 &amp; 6 \\\\ 3 &amp; 5 &amp; 7 \\\\ 4 &amp; 9 &amp; 2 \\\\ }; \\draw[thick,red,-&gt;] (magic-1-1) |- (magic-2-3); \\end{tikzpicture} \\end{frame} \\end{document}", "What's the difference between \"speak\" and \"talk\", grammatically speaking? There are a number of questions e.g. and that deal with the slightly different connotations of the words \"speak\" and \"talk\". However, there also seem to be some grammatical differences between the two words. This question is about whether there's a way to formally pin down these differences, or whether they're just contingent features of the two words having different histories. Some examples of grammatical differences are as follows: be talkative ... be speakative speak French ... talk French give a talk ... give a speech (as opposed to a speak) speak up ... talk up (the meanings of the two phrases being completely different, with \"up\" being a preposition only in the latter case) speaking of which ... talking of which grammatically speaking ... grammatically talking On the other hand, many other constructions work just as well with either (though they might have subtly different meanings), for example speak to ... talk to speak with ... talk with speak about ... talk about I'm interested in whether there's a way to pin down these differences (e.g. are the two words classified as different types of verb in some way?), or whether they're essentially just arbitrary. I'm also interested in why we have these two different words with subtly different meanings. Is the distinction between “speak” and “talk” a feature of many languages, or is it just a peculiarity of English? Etymologically, both words are from Germanic origins. “Talk” seems to have been formed from the Middle English tale, even though “speak” already existed in the English language by then (as far as I can tell). This makes it even more mysterious: Why did we form a new word as a synonym of one that was already established? Or were the meanings different at that time?", "Can spells be cast through a Wall of Force?", "Is there a printable version of a reference manual for all TeX primitives?", "How do I remove the proprietary ATI drivers? I've installed 11.10 and the proprietary ATI drivers using \"additional drivers\" The performance of my system is absolutely awful and it shouldn't be. I tried to remove the proprietary drivers using the Additional Drivers tool and it appears to remove them. However after I reboot I cant get back into my desktop properly (the panel and launcher go missing). This doesn't seem to be an isolated problem in 11.XX. covers how to restore the desktop (panel and launcher), but the guide doesn't fix my problem though. Whenever I do sudo unity --reset it runs through its normal processes until it hangs at setting update \"run_key\" and never gets past that. I must reinstall the proprietary drivers using jockey-text or jockey-gtk in order to get back to my proper desktop. Interestingly enough the system performance seems improved while it is in its \"broken\" state (missing panel and launcher). I think restoring the default drivers may solve my problems but I cant figure out how to do it.", "Why is the time limit for editing comments 5 minutes? What is the reasoning behind this?", "How to fix slow wireless on machines with Intel wireless cards?", "How to install MySQL workbench? Installing MySQL workbench on 10.04 or 10.10 is not a problem, as the deb packages are available on MySQL's website. But there is no 11.04 deb package available. So, how do I install MySQL workbench on 11.04 and keep it updated automatically when updates become available to ubuntu via apt-get update." ]
medi_sts_stackexchange_dupe
Inquire or Enquire?
Unsure whether to use "enquire" or "inquire"
[ "Slow math typing I have been using LaTeX for quite some time, but I find the math writing to be a bit frustrating. It seems to take me a relatively long time to code-write long math expressions, and sometimes it's hard to see where { start and end. I am interested in writing as fast as possible. Is code-typing each symbol really the fastest way? Is there any good program (in the spirit of Word's MathType) that enables producing math expressions by button clicking, that you recommend?", "How can I explain why DRM cannot work? I am looking for the shortest comprehensive way to explain to people that are trying to use DRM as a technology to prevent users from using their data in some fashion deemed undesirable, why their solution cannot work by definition. Ideally I'd like something that: Covers why technically it is impossible to have people access local data, but only in such-and-such a way Imparts an understanding of why this is, to avoid follow-on \"But what if\" rebuttals Is intuitive enough and short enough that even a politician (j/k) could grasp it When faced with this situation I try to be clear and concise, but I usually end up failing at least on one of these points. I'd really like to have a 'stock' answer that I can use in the future.", "How to modify a text file?", "Recommend a statistics fundamentals book To give you some background, I have a grasp on the basics of statistics and probability theory and even remember touching Bayes theorem at the university data mining course. But being a few years away from the university made my math got extremely rusty (so much for last-minute pre-exam cramming). While I remember various random basic concepts, there are a lot of gaps in my understanding of them. What would be a good material (a book, a site, or otherwise equally accessible medium) to revise the fundamentals and go beyond basics? I'd like a book that can be actually read as a book (most statistics books are really dry and are close to being reference material, rather than a book).", "I once already asked a very similar question; . But this is some what different. I have the following code; \\documentclass{standalone} \\usepackage{graphics} \\usepackage{tikz,pgfplots} \\pgfplotsset{compat=1.6} \\begin{document} \\begin{tikzpicture} \\begin{axis}[% width=3cm, height=3cm, scale only axis, every x tick label/.append style={font=\\scriptsize\\color{gray!80!black}}, xmin=0, xmax=20000, xlabel={$t$}, xmajorgrids, xminorgrids, every y tick label/.append style={font=\\scriptsize\\color{gray!80!black}}, ymin=0.0004, ymax=0.0012, ylabel={$\\phi_{\\mathrm{i}}(t)$}, ymajorgrids, yminorgrids, name=plot1] \\end{axis} \\begin{axis}[% width=3cm, height=3cm, scale only axis, every x tick label/.append style={font=\\scriptsize\\color{gray!80!black}}, xmin=0, xmax=20000, xlabel={$t$}, xmajorgrids, xminorgrids, every y tick label/.append style={font=\\scriptsize\\color{gray!80!black}}, ymin=0.2, ymax=1.2, ylabel={$h(t)$}, ymajorgrids, yminorgrids, name=plot2, at=(plot1.right of north east), anchor=left of north west] \\end{axis} \\begin{axis}[% width=3cm, height=3cm, scale only axis, every x tick label/.append style={font=\\scriptsize\\color{gray!80!black}}, xmin=0, xmax=20000, xlabel={$t$}, xmajorgrids, xminorgrids, every y tick label/.append style={font=\\scriptsize\\color{gray!80!black}}, ymin=0.0004, ymax=0.0012, ylabel={$\\phi_{\\mathrm{o}}(t)$}, ymajorgrids, yminorgrids, name=plot4, at=(plot1.below south west), anchor=above north west] \\end{axis} \\begin{axis}[% width=3cm, height=3cm, scale only axis, every x tick label/.append style={font=\\scriptsize\\color{gray!80!black}}, xmin=0, xmax=20000, xlabel={$t$}, xmajorgrids, xminorgrids, every y tick label/.append style={font=\\scriptsize\\color{gray!80!black}}, ymin=2000, ymax=12000, ylabel={$p_{\\mathrm{i}}(t)$}, ymajorgrids, yminorgrids, name=plot5, at=(plot4.right of north east), anchor=left of north west] \\end{axis} \\end{tikzpicture} \\end{document} This creates the following plot: I think there is to few vertical/horizontal spacing between the plots. I want to increase this. Currently I use x- yshift, this gives the following result: \\documentclass{standalone} \\usepackage{graphics} \\usepackage{tikz,pgfplots} \\pgfplotsset{compat=1.6} \\begin{document} \\begin{tikzpicture} \\begin{axis}[% width=3cm, height=3cm, scale only axis, every x tick label/.append style={font=\\scriptsize\\color{gray!80!black}}, xmin=0, xmax=20000, xlabel={$t$}, xmajorgrids, xminorgrids, every y tick label/.append style={font=\\scriptsize\\color{gray!80!black}}, ymin=0.0004, ymax=0.0012, ylabel={$\\phi_{\\mathrm{i}}(t)$}, ymajorgrids, yminorgrids, name=plot1] \\end{axis} \\begin{axis}[% xshift=1cm, width=3cm, height=3cm, scale only axis, every x tick label/.append style={font=\\scriptsize\\color{gray!80!black}}, xmin=0, xmax=20000, xlabel={$t$}, xmajorgrids, xminorgrids, every y tick label/.append style={font=\\scriptsize\\color{gray!80!black}}, ymin=0.2, ymax=1.2, ylabel={$h(t)$}, ymajorgrids, yminorgrids, name=plot2, at=(plot1.right of north east), anchor=left of north west] \\end{axis} \\begin{axis}[% yshift=-1cm, width=3cm, height=3cm, scale only axis, every x tick label/.append style={font=\\scriptsize\\color{gray!80!black}}, xmin=0, xmax=20000, xlabel={$t$}, xmajorgrids, xminorgrids, every y tick label/.append style={font=\\scriptsize\\color{gray!80!black}}, ymin=0.0004, ymax=0.0012, ylabel={$\\phi_{\\mathrm{o}}(t)$}, ymajorgrids, yminorgrids, name=plot4, at=(plot1.below south west), anchor=above north west] \\end{axis} \\begin{axis}[% xshift=1cm, width=3cm, height=3cm, scale only axis, every x tick label/.append style={font=\\scriptsize\\color{gray!80!black}}, xmin=0, xmax=20000, xlabel={$t$}, xmajorgrids, xminorgrids, every y tick label/.append style={font=\\scriptsize\\color{gray!80!black}}, ymin=2000, ymax=12000, ylabel={$p_{\\mathrm{i}}(t)$}, ymajorgrids, yminorgrids, name=plot5, at=(plot4.right of north east), anchor=left of north west] \\end{axis} \\end{tikzpicture} \\end{document} I want to know if there is a more consistent manner to do this.", "Is $\\sum_{k=1}^{n} \\sin(k^2)$ bounded by a constant $M$? I know $\\sum_{k=1}^{n} \\sin(k)$ is . How about $\\sum_{k=1}^{n} \\sin(k^2)$?", "Removing all \\n\\r characters from a node XSLT? wondered if you could help me please? I have node in xml that is as followed $LOG: 08880xbpnd $ fhdsafidsfsd df sd fsd f sd fsd I was wondering is there anyway to make all the text go on to one line so that it then can be passsed through to a javascript function? so it would turn out like this $LOG: 08880xbpnd $fhdsafidsfsddfsdfsdfsdfsd", "I am using Blender to mix the video from my camera with the audio from my external recording setup. It works great mostly and I am very pleased with it. But the problem is that I can't start the audio recorder an even number of thirtieths of a second from when I started the camera. And Blender seems to only let me move the audio track in the VSE by whole frames (1/30 of a second). Here are a couple screenshots: The track on top is the external audio and the one on the bottom is the camera's audio. Between the two screenshots I have only moved the audio track by one frame. But as you can see, I need to move it by about 1/2 frame to line up the audio properly with the video. So can I move a track in the VSE by fractions of a frame?", "Clip for each feature I want to clip a polyline feature class by a polygon feature class (buffers created from points). Several polygons overlap, so I want to get each polygon feature clipped with each polyline feature. Using the Clip_analysis tool, I get the orange lines: whereas I want the following red lines: In a python script, I tried the following code to clip every polyline with each polygon: temp = arcpy.ValidateTableName(\"clip_temp\") bufferCursor = arcpy.SearchCursor(buffer) n = 0 for pRow in bufferCursor: arcpy.AddMessage(n) feat = pRow.Shape arcpy.Clip_analysis(inputPolylineLayer, feat, temp, \"#\") if n == 0: arcpy.Copy_management(temp, clip) else: arcpy.Append_management(temp, clip) n=n+1 But the execution is very very slow and it crashes before finishing. I also tried the Intersect_analysis tool but I didn't get the right geometries: Do you have any idea of a better methods to do it?", "Does the integral $\\int_{1}^{\\infty} \\sin(x\\log x) \\,\\mathrm{d}x$ converge?", "How do I list all available shell builtin commands? We know bash supports number of buitin commands like: $ type type cd help command type is a shell builtin cd is a shell builtin help is a shell builtin command is a shell builtin I want to get list of all available shell builtin commands. How do I do that by command-line?", "I am going to Nepal and probably, same as everyone, through Delhi. I was considering going overland from Delhi to Kathmandu, however I have found many posts that advise against it in favor of a flight. The following concerns are the key to the proper decision, I think. Does the overland route offer a good scenery and cultural experience or is it better to spend that time in Nepal? What is the rough cost of an overland journey and how does it compare with a flight? In case of a flight, is the Indian visa necessary?", "What should the order of DNS servers be for an AD Domain Controller and Why? This is a about Active Directory DNS Settings. Related: Assuming an environment with multiple domain controllers (assume that they all run DNS as well): in what order should the DNS servers be listed in the network adapters for each domain controller? Should 127.0.0.1 be used as the primary DNS server for each domain controller? Does it make any difference, if so what versions are affected and how?", "How to evaluate this trigonometric limit? I have been struggling to solve this limit. What is the limit as $x$ approaches $45^0$ of $$\\frac{\\sqrt{2}\\cos x-1}{\\cot x-1}?$$ I know how to use L'Hospital's rule to calculate this limit and got the answer as $0.5$. But, how do I calculate the limit by manipulating the function? Please provide only some hints to proceed.", "How can I invest in country A to take advantage of their great interest rate while I live in country B? If I live in the US, for example, where current interest rates are practically nil, how can I take advantage of the fact that ?", "$X_1, X_2, \\ldots, X_n$ are $n$ i.i.d. uniform random variables. Let $Y = \\min(X_1, X_2,\\ldots, X_n)$. Then, what's the expectation of $Y$(i.e., $E(Y)$)? I have conducted some simulations by Matlab, and the results show that $E(Y)$ may equal to $\\frac{1}{n+1}$. Can anyone give a rigorous proof or some hints? Thanks!", "Unidentified address in Gmail Many times, when I copy&amp;paste an email address into the \"To\" field in a Gmail message, it refuses to send the email, saying that “the address has not been identified”. This is very frustrating. Is there any solution other than just manually typing the address?", "Banner ads should not be shown on the right-hand ad slot", "Appreciate your wisdom on this, My understanding is most of the tutorials recommend normalizing / scaling the data prior feeding the tensorflow models. Doesn't normalization require that data conforms to the normal parametric distribution? What good is a non-linear model if scaling / normalizing is a pre-requisite prior using the non-linear model such as tensorflow? So back to the question, should I always normalize / scale my data prior feeding my tensorflow models? thanks", "How can I show that $\\frac{1}{1+|z|^2}$ isn't analytic at $z=1$?" ]
medi_sts_stackexchange_dupe
Find the number of ways to launch satellites in space?
Counting the number of surjections.
[ "How to pass argument to script which is input to bash", "\"some \" vs. \"some of \" Some of rules can be the same for most websites. vs. Some rules can be the same for most websites. I think I want to say Some of these rules can be the same for most websites.", "I often find that I can zoom in to a point, but then cannot zoom any more, even when there is a lot of room to zoom to the meshes on the scene. This is particularly annoying in the following scenario: I often land up left clicking on the scene and the 3D cursor shifts there. I use Shift+C to shift the 3D cursor back to the origin. However, this also centers the view on the cursor and shifts the view to show all objects, and sometimes this zooms things way out &ndash; at this point, if I try to zoom in, I can zoom in to a point (using the pinch/zoom on trackpad), but then it stops zooming in. How do I zoom in after that? Is there anything else I am doing wrong in this case?", "Has anyone had any success using twitters typeahead.js within visualforce pages?", "GOTO still considered harmful? Everyone is aware of Dijkstra's (also .html transcript and .pdf) and there has been a formidable push since that time to eschew the goto statement whenever possible. While it's possible to use goto to produce unmaintainable, sprawling code, it nevertheless remains in . Even the advanced control structure in Scheme can be described as a sophisticated goto. What circumstances warrant the use of goto? When is it best to avoid? As a followup question: C provides a pair of functions, setjmp and longjmp, that provide the ability to goto not just within the current stack frame but within any of the calling frames. Should these be considered as dangerous as goto? More dangerous? Dijkstra himself regretted that title, for which he was not responsible. At the end of (also .pdf) he wrote: Finally a short story for the record. In 1968, the Communications of the ACM published a text of mine under the title \"The goto statement considered harmful\", which in later years would be most frequently referenced, regrettably, however, often by authors who had seen no more of it than its title, which became a cornerstone of my fame by becoming a template: we would see all sorts of articles under the title \"X considered harmful\" for almost any X, including one titled \"Dijkstra considered harmful\". But what had happened? I had submitted a paper under the title \"A case against the goto statement\", which, in order to speed up its publication, the editor had changed into a \"letter to the Editor\", and in the process he had given it a new title of his own invention! The editor was Niklaus Wirth. A well thought out classic paper about this topic, to be matched to that of Dijkstra, is , by Donald E. Knuth. Reading both helps to reestablish context and a non-dogmatic understanding of the subject. In this paper, Dijkstra's opinion on this case is reported and is even more strong: Donald E. Knuth: I believe that by presenting such a view I am not in fact disagreeing sharply with Dijkstra's ideas, since he recently wrote the following: \"Please don't fall into the trap of believing that I am terribly dogmatical about [the go to statement]. I have the uncomfortable feeling that others are making a religion out of it, as if the conceptual problems of programming could be solved by a single trick, by a simple form of coding discipline!\"", "Is it common to use \"where\" after \"a time\" as a relative? I heard the following comment of Mr. Marco Rubio about Mr. Donald Trump on CBS’s “Face the Nation” in a clip in February 29th AP Radio News: “There is never gonna be a time where the Republican Party rallies around and says you have to get out or anyone has to get out for purposes of rallying around Donald Trump. Donald Trump is not Republican Conservative. Donald Trump is trying to pull off the biggest scam in American political history.” I thought I misheard “There is never gonna be a time where –“ for “There is never gonna be a time when –“ at first, because I was in understanding that time should be trailed by “when” as a relative noun or adverb. An English Japanese dictionary at hand (Readers English Japanese Dictionary published by Kenkyusha) provides “where” singly as a relative to refer the ‘place.’ However, my lookup of the following two sources endorsed that I heard it right: Here is what is never going to happen in this race. There's never going to be a time where the Republican Party rallies around and says you have to get out or anyone has to get out for purposes of rallying around Donald.. “Here is what is never going to happen,” Rubio continued. “There's never going to be a time where the Republican Party rallies around and says you have to get out or anyone has to ... Is it common, at least not uncommon to use “where” after “time” as a relative?", "On approving an edit, I just get this pop up since morning. At first I thought there might be some internet connection issue, but this is now the 3rd to 4th time I got the same error; also, the review is accepted because on refresh I can see my name with approved text beside, but it still throws this error. I am on a Windows 7 machine, running Firefox 24 (Icognito/Private Mode) Also, this happens only when edit(1) is written on an question/answer, I don't go to review queue and approve, these reviews were directly loaded from the notification beneath the question/answer. Martijn Pieters reproduced the problem from the review queue three times; each time the improve option was picked, accepting the suggested edit but editing the post some more. The network console shows that posting to https://stackoverflow.com/review/task-reviewed fails, the server responds with a 404 error: Request headers: POST /review/task-reviewed HTTP/1.1 Host: stackoverflow.com Connection: keep-alive Content-Length: 137 Accept: application/json, text/javascript, */*; q=0.01 Origin: http://stackoverflow.com X-Requested-With: XMLHttpRequest User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36 Content-Type: application/x-www-form-urlencoded DNT: 1 Referer: https://stackoverflow.com/review/suggested-edits/3575396 Accept-Encoding: gzip,deflate,sdch Accept-Language: en,en-US;q=0.8,nl;q=0.6,nb;q=0.4,no;q=0.2,de;q=0.2,fr;q=0.2 Cookie: &lt;redacted&gt; POST data: taskTypeId=1&amp;reviewTaskId=3575396&amp;taskResultTypeId=5&amp;fkey=f8791a329b445b658876f4d3afe7961e&amp;postCommentId=null&amp;taskResultSubtypeFlags=null Response headers: HTTP/1.1 404 Not Found Cache-Control: private Pragma: no-cache Content-Type: application/json X-Frame-Options: SAMEORIGIN Date: Fri, 13 Dec 2013 12:04:53 GMT Content-Length: 0 On the itself, no record is made of the accept; instead the suggested edit is recorded as approved by 3 people not including Martijn Pieters. In this case the improve review arrived too late. In , improve again resulted in the error, but the Community account is shown rejecting the edit.", "Question about $\\lim _{q \\rightarrow \\infty}\\|f\\|_{q}=\\|f\\|_{\\infty}$ Let $(X,B,\\mu)$ be a complete measure space,Show that $$\\lim _{q \\rightarrow \\infty}\\|f\\|_{q}=\\|f\\|_{\\infty}, \\quad \\forall f \\in \\bigcup_{p} \\bigcap_{p \\leqslant q&lt;\\infty} L^{q}$$ So,$\\lim _{q \\rightarrow \\infty}\\|f\\|_{q}$ , $\\|f\\|_{\\infty}$ are equal-norm with space $ L^{\\infty} \\cap\\left(\\bigcup_{p} \\bigcap_{p \\leqslant q} L^{q}\\right)$. Case 1: $m(X)&lt;\\infty $.It's easy to prove that. Case 2: $m(X)=\\infty $. I have no idea about it,And I started to doubt the correctness of this conclusion. Can somebody give me a hint for this problem or just give an example to prove that this is a wrong conclusion when $m(X)=\\infty $. Thanks in advance.", "With powershell get exactly the same application list as in Add/Remove programms There are various methods to find installed applications on the system but to my knowledge none returns exactly the same list as control panel item Add Remove Programs. Some of the ways I tried are: WMI via Win32_Product and Win32Reg_AddRemovePrograms Registry, both x32 and x64 branches For instance, I have 217 entries in AR and gwmi Win32_Product returns 261 items. gp HKLM:\\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\*, HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\* | ? {![string]::IsNullOrWhiteSpace($_.DisplayName) } | select DisplayName returns 119 items. (gwmi Win32Reg_AddRemovePrograms) + (gwmi Win32Reg_AddRemovePrograms64) | sort DisplayName -Unique returns 107 items. I tried to nail it down with more complex filter that included InstallLocation, InstallSource, InstallDate etc without success.", "What was Tauriel doing during the events of The Lord of the Rings movies? [Yes, The Hobbit movies are nonsense. But how could I call myself a fantasy fan if I didn't demand my nonsense be as logical as possible?] Tauriel is presented as a highly-skilled fighter and a combatant for the side of good. Despite this, she apparently did nothing during Sauron's war on the free peoples. Was she somehow still mourning Killi, after all these decades? Was she dead? Or is there another reason she didn't participate?", "Show $\\inf_f\\int_0^1|f'(x)-f(x)|dx=1/e$ for continuously differentiable functions with $f(0)=0$, $f(1)=1$. Let $C$ be the class of all real-valued continuously differentiable functions $f$ on the interval $[0,1]$ with $f(0)=0$ and $f(1)=1$. How to show that $$\\inf_{f\\in C}\\int_0^1|f'(x)-f(x)|dx=\\frac{1}{e}?$$ I have been able to show that $1/e$ is a lower bound. Indeed, $$\\begin{align*} \\int_0^1|f'(x)-f(x)|dx &amp;= \\int_0^1|f'(x)e^{-x}-f(x)e^{-x}|e^xdx \\\\ &amp;\\geq \\int_0^1\\left(f'(x)e^{-x}-f(x)e^{-x}\\right) dx \\\\ &amp;= \\int_0^1 \\frac{d\\left(f(x)e^{-x}\\right)}{dx}dx \\\\ &amp;= f(1)e^{-1}-f(0)e^{0}\\\\ &amp;=\\frac{1}{e}. \\end{align*}$$ But how to show this is the infimum? Is there a function $f\\in C$ such that we get $\\int_0^1|f'(x)-f(x)|dx=1/e$?", "Inequality $\\sum\\limits_{1\\le k\\le n}\\frac{\\sin kx}{k}\\ge 0$ (Fejer-Jackson) Show the following inequality for any $x\\in [0, \\pi]$ and $n\\in \\mathbb{N}^*$, $$ \\sum_{1\\le k\\le n}\\frac{\\sin kx}{k}\\ge 0. $$ I have this question a very long time ago from a book or magazine but I cannot solve it by myself and did not know how to solve it until today. My try: for $n=1, 2, 3$, one can check this by hand.", "Show that any set of 7 distinct integers includes two integers $x$ and $y$, such that either $x-y$ or $x+y$ is divisible by 10 Show that any set of 7 distinct integers includes two integers $x$ and $y$, such that either $x-y$ or $x+y$ is divisible by 10. I'm trying to apply the pigeonhole principle, but haven't been able to come up with a convincing argument. Though similar to , I think the difference between the two is enough to warrant a second post.", "How to allow non-superusers to mount any filesystem? Is it possible to allow some particular users (e.g. members of a group) to mount any filesystem without superuser privileges on Linux? Another question might have been \"in what ways a user can harm a system by mounting filesystems?\"", "OpenVPN restriction Ive set up an OpenVPN server at my place and handed out a certificate to a client who has an openvpn client at his place. I need require that he should be able to connect to the vpn server only from one IP address (his current one). How can I do this?", "How can I get the Ubuntu shell on Windows 10 to recognize a connected android device? I'm trying to connect adb to my Android device in the Windows 10 Ubuntu shell, but it doesn't seem to be working: adb does work normally on Windows, so it's not a problem with the phone or the connection. Do I have to do something like mount the port in the Ubuntu shell? How? (The goal is to pass logcat to grep, which would obviously work better in Ubuntu.)", "Dumbed-down explanation how scientists know the number of atoms in the universe? It is often quoted that the number of atoms in the universe is 10$^{70}$ or 10$^{80}$. How do scientists determine this number? And how accurate is it (how strong is the supporting evidences for it)? Is it more likely (logically >50% chance) that the numbers are right, or is it more likely that the numbers are wrong?", "Usage of \"they\" / \"them\" / \"their\" when the person's gender is not known", "Showing that a sequence is monotone and thus convergent Here's the original question: Let $(a_n)$ be bounded. Assume that $a_{n+1} \\ge a_{n} - 2^{-n}$. Show that $(a_n)$ is convergent. Okay, I know that if I can show that if the sequence is monotone, I can conclude that it is convergent. But I am not sure how to show that it is monotone. I know that $$a_n \\le a_{n+1} + \\frac{1}{2^n} &lt; a_{n+1} + \\frac{1}{n}$$ It looks to me as if it is monotonically increasing but I'm quite not sure how to prove my claim. Any hints would be appreciated.", "Evaluation of $\\int_{-\\infty}^\\infty \\frac{\\sin(at)}t\\ dt$ I just need to know if this integral converges. If it does, what is the value? If not can anyone tell me what is the value of the $$ \\int_{-\\infty}^\\infty 2\\,\\frac{\\cos(w)\\sin(w)}{w}\\ dw ? $$" ]
medi_sts_stackexchange_dupe
Package krb5-kdc is not available
"Unable to locate package" while trying to install packages with APT
[ "For some reason, be it some bad habit or something else, I can not understand why the statement \"p only if q\" would translate into p implies q. For instance, I have the statement \"Samir will attend the party only if Kanti will be there.\" The way I interpret this is, \"It is true that Samir will attend the party only if it is true that Kanti will be at the party;\" which, in my mind, becomes \"If Kanti will be at the party, then Samir will be there.\" Can someone convince me of the right way? EDIT: I have read them carefully, and probably have done so for over a year. I understand what sufficient conditions and necessary conditions are. I understand the conditional relationship in almost all of its forms, except the form \"q only if p.\" What I do not understand is, why is p the necessary condition and q the sufficient condition. I am not asking, what are the sufficient and necessary conditions, rather, I am asking why.", "How can I wake-up a PC using a command? (i.e. equivalent to moving a mouse, etc) It doesn't seem like this would be very difficult, but how can I wake-up a PC by doing the equivalent of moving a mouse or pressing keys on a keyboard? My PC is running Windows 10 and I only have the monitors enter sleep mode after 15 minutes. The rest of the PC is still awake and doesn't use hibernate, etc. I'm trying to use EventGhost to receive a TCP/IP command that tells the PC to wake up the displays but it's proving quite difficult.", "How did Anakin Skywalker survive Order Sixty Six? . When activated, troopers would immediately perceive Jedi as a threat and kill them. Since Anakin was a Jedi until around the time of the Order, how did the troopers know not to kill Anakin?", "How many connected components does $\\mathrm{GL}_n(\\mathbb R)$ have?", "I would like to see everything on my computer screen in grayscale (like say the kindle screen). How do I do this?", "I need to periodically run a command that ensures that some text files are kept in Linux mode. Unfortunately dos2unix always modifies the file, which would mess file's and folder's timestamps and cause unnecessary writes. The script I write is in Bash, so I'd prefer answers based on Bash.", "Do electrons move around a circuit? We could imagine a simple electronic circuit composed by a power source and a resistor. It is usual find descriptions as \"The moving charged particles in an electric current are called charge carriers. In metals, one or more electrons from each atom are loosely bound to the atom, and can move freely about within the metal. These conduction electrons are the charge carriers in metal conductors.\" (wikipedia ). That made me imagine electrons going from power -, running by the wires, crossing the resistor and returning to power +, where they suffer a new kick to power -. All that at near the speed of light. In this model, it is easy to define \"electrical current intensity\" as proportional to the number of electrons per second that cross one specific point of the circuit. However, looking for the physics of resistivity, I can read the phrase \"The actual drift velocity of electrons is very small, in the order of magnitude of a meter per hour.\" (wikipedia ). This is a complete different point of view, where electrons are more or less fixed around a fixed position (or moving very slowly), an electricity is a wave of \"collisions\" or \"jumps\" of electrons, like in a Newton's cradle (or \"do the wave\" as public in a football match). Obviously, we do not need severals hours from the switch on to the light on. So, the question is, do electrons move around a circuit ? References to band theory are welcome. A related question is: if electrons doesn't moves along the circuit, what is \"electrical current intensity\"? Note: I known there are similar questions already posted, but answers of the ones I've read are not very detailed (could be I've not found the best ones). Please, be a few patient before \"close vote\".", "\"None\" as plural indefinite pronoun In my grammar book (English Grammar, HarperCollins Publishers), I read that none is occasionally treated as plural, but it is usually regarded as singular. Can you give me an example of sentence where none is used as plural pronoun?", "Markov/Chebychev inequality If Z is a square integrable random variable such that $E[Z]&gt;0$, then prove that $$P(Z\\geq k) \\geq \\frac{(E(Z)-k)^2}{E(Z^2)} \\forall k \\in [0,E(Z)]. $$ This is a homework question and I don't even understand why the inequality is reversed comparing to Markov/Chebychev inequality. Should Cauchy-Schwartz inequality be used? If yes, then how to begin? Thanks a ton!", "Blender is rendering an older version my project", "When app is moved to SD card, where is the app data stored on SD card?", "Use central limit to solve a problem I am asked to solve the following question using central limit theorem. In an election between two candidates, A and B, one million individuals cast theirvote. Among these, 2000 know candidate A from her election campaign and vote unanimously for her.The remaining 998000 voters are undecided and make their decision independently of each other byflipping a fair coin.Approximate the probability pA that candidate A wins up to 3 significant figures. It's easy to solve directly. PA = $\\frac{0.5(10000-2000)+2000}{10000}$ = 0.501. However, I am quite confused about how to solve this problem by central limit theorem.", "Java String array: is there a size of method?", "Say a prospective PhD has a high reply rate (90-95%) to first contact emails with potential superviors. He/She has a well thought out e-mail, but a particular professor (here: USA) that is in the top preferences does not reply after two to three e-mails that were sent within a time frame of three months. I also followed the instructions on the professor personal website in the section \"prospective PhD students\". The student has already contacted some of the advisor students and has received positive feedback about the professor. Should the student just give up and move on? Should the student keep trying? Aside from the obvious \"I have too many incoming e-mails to answer\" or \"I am out in the field\", what could create a no response behavior from the professor? I have seen the simplistic answer \"move on, bad advisor, doesn't have time, etc\". But this seems a contradiction in this case. The PhD students like the professor and say he/she is personable and no e-mail response after a few well written emails.", "Let's say it again, we all make mistakes, and I have just made one. A brief history: I was doing some stuff on a VPS (Debian) I'm renting, when I noticed some strange behaviour. Using the netstat command I saw an non-authorized connection through SSH. I didn't know what to do, so I decided to close his connection using iptables: iptables -A INPUT -p tcp --dport ssh -s IP -j DROP But I am tired, and I wrote iptables -A INPUT -p tcp --dport ssh -j DROP and I kicked myself (and everyone else) out... How do I fix this?", "Using Nouns or Gerunds Could anyone explain when to use a noun or a gerund? Are these sentences correct? What is the difference between usage of gerund and noun there? I worked on the improvement of the article. I worked on the article improving. I worked on the improving of the article. The investment idea was published. Investing idea was published.", "are the uses of 'bare infinitive' & 'participle' same here? I saw him sing I saw him singing In the first example, the verb sing is used as a bare infinitive and in the following one it is exemplified as a present participle. My question is if both of them are expressing the same meaning?", "Very new player here. Looking at the stat block of a goblin: for a shortbow attack it says +4 to hit and the goblin has a Dex modifier of +2. Does this mean I add 6 to the d20 roll or just the 4 and ignore the Dex modifier? Same with using Stealth. It says Skills: Stealth +6. So would I take 6 and add +2 of the Dex modifier or just add 6 to the d20 of the Stealth check roll? Thank you!", "Proving there are infinitely many pairs of square-full consecutive integers So the question goes like this : A positive integer $n$ is called square-full if for every prime $p$, $p \\, | \\, n$ implies $p^2 \\, | \\, n$, i.e. every prime power factor of $n$ occurs at least at the second power. This is equivalent to saying that there is no prime $p$ such that $p \\, \\| \\, n$. Show that there are infinitely many consecutive pairs of square-full numbers, i.e. infinitely many $n$ such that $n$ and $n+1$ are square-full. The context of the question highly suggests that this can be proved by induction and it is the solution that I am looking for. It is not a homework, just something that caught my attention because I couldn't find any natural answer to it... I hope I'm not missing something trivial! I've tried assuming $n_1, n_2, \\dots, n_k$ were the first $n_k$ integers such that $n_i$ and $n_i+1$ are square-full, and then generate some polynomial in those $2k$ integers to get a new couple $n_{k+1}$, $n_{k+1} + 1$ but after a few natural tries I got nothing good out of it. Any ideas?", "How do I pick a part that goes into a breadboard when I order it? I have just bought some 555 timers and they are timers for microelectronic circuits...could anyone tell me what I need to search for in order to get larger ones which will fit a breadboard? Thanks" ]
medi_sts_stackexchange_dupe
Getting null pointer exception when try to write data second time in loop using selenium
What is a NullPointerException, and how do I fix it?
[ "White regions in DensityPlot — is this a bug with ColorFunctionScaling?", "When do I use \"I\" instead of \"me?\"", "How can I merge properties of two JavaScript objects dynamically?", "Last time I tried to make Chocolate eclairs (similar to cream puffs), the choux pastry just sat in the oven and basically fried. It didn't rise/grow and so I couldn't hollow out the shells. Any suggestions? Recipe was from The Australian Women's Weekly Original Cookbook (Golden Press Pty Ltd, 1977) p. 204 It is almost identical to the one published on their website , with the exception that the cookbook recipe used 1C water and 1C plain flour.", "Listing only directories in UNIX", "Also how do LEFT JOIN, RIGHT JOIN and FULL JOIN fit in?", "Is there a canonical explanation for how Ant-Man's weight works when he shrinks down that's consistent with the various events depicted in the film? I think the explanation given in the film is roughly \"the suit compresses the space in-between atoms, so your size decreases, your density increases, and your total mass stays the same\", however it seems to be portrayed in contradictory ways. For instance: He can float in water, and even be sent shooting through the air by a relatively gentle flow of water filling a bathtub. This wouldn't happen if he retained his original mass, as he'd essentially be the densest thing on the planet and should sink like a stone even in a vat of molten lead. Upon landing after being ejected from the bathtub, the ceramic tile underneath him shatters. That takes a significant amount of force, and similar effects are used at other points in the movie where he falls onto (or straight through) various things. He's able to get sucked into a vacuum-cleaner. One that didn't even appear to be a high-end, extra powerful vacuum-cleaner, let alone one capable of sucking up a 200 pound piece of dust. He can run along the barrel of a gun as someone shoots it, apparently without causing them to drop the weapon or even have trouble continuing to aim it. Does a more consistent explanation exist in other media, that would fit with the above examples? Or is this simply a case of the power being made to do whatever happened to be most convenient at the time?", "I am looking for tutorials, articles or books containing theory of in context of mathematical physics. Please suggest.", "Is smell a bad way of determining whether meat is still good?", "Where is the denoise option in 2.90?", "Running a caching DNS server on my LAN", "Prove that if $V$ is an inner product space, then $|\\langle x,y\\rangle| = \\Vert x \\Vert\\Vert y\\Vert$ if and only if one of the vectors $x$ or $y$ is a multiple of the other. I am given a hint to let $a= \\frac{\\langle x,y\\rangle}{\\|y\\|^2}$, and let $z = x - ay$, then prove $y$ and $z$ are orthogonal and $|a|= \\frac{\\|x\\|}{\\|y\\|}$. I don't know how they come up with this, what was the original idea?", "How can we show that the following sequence converges? $(a_n)$ is a bounded sequence with the following condition $a_{n+1}\\geq a_n-\\frac{1}{2^n}$ The sequence converges, but how do we show it?", "Database Encryption scan for database was aborted. Reissue ALTER DB to resume the scan", "Which personal pronoun is appropriate in single-author papers - 'I' or 'we'? Could the use of 'I' be considered egotistical? Or will the use of 'we' be considered to be grammatically incorrect?", "Ubuntu 16.10 Dual Boot error - 'grub-efi-amd64-signed' package failed to install", "How to run firefox and firefox ESR simultaneously The main reason I want to use firefox ESR is to use a proprietary database tool for work that only allows oracle-java based web logins for linux (or a windows only thin client). I also want to use the full version of the outlook web application which only works in firefox. I don't want to run the NPAPI plugins for normal web browsing and email. I have the repo version of firefox installed and firefox ESR installed in /opt/firefox and linked to /usr/local/firefox-esr When I run firefox any attempt to run firefox-esr either brings up a window without the NPAPI plugins. If I try running with the --new-instance or --no-remote options I receive the following error: Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system. Regardless which one I start first, I can only open that one, and get the above error if I attempt to sidestep. What makes this an especially annoying problem is that I often have to respond to emails that I need to access the database to deal with. So either I close and open many windows.", "mysqldump, preserve update_time and modify_time attributes as listed by show table status from Does mysqldump preserve the create_time and update_time attributes that are output by show table status from? If not, is there an option that does this? it looks like mysqldump preserves this data if you export to XML. EDIT: Well the data is included in the export. Whether it's read in at the other end I'm not sure. Is there a way to do this with a normal .sql dump?", "\\AtEveryBibitem{\\clearfield{Title}} in beamer? In my beamer presentation, I want to cite the reference without title. So, I tried: \\documentclass{beamer} \\usepackage[ backend=bibtex8, defernumbers=true, sorting=none, firstinits=true, uniquename=init, uniquelist=false, refsegment=section, citestyle=numeric ]{biblatex} \\addbibresource{mini.bib} \\AtEveryBibitem{\\clearfield{Title}} \\begin{document} \\section{Start} \\begin{frame} first cite\\footfullcite{Julie2006} %\\printbibliography \\end{frame} \\section{2nd} \\begin{frame} Second cite\\footfullcite{gyof} \\end{frame} \\end{document} with the mini.bib : @article{gyof, Author={BLJ}, Title={Some Title}, Journal={joural1}, volume={15}, pages={1337}, Year={1985} } @article{Julie2006, Author={JBS}, Title={Some Other Title}, Journal={journal2}, volume={74}, pages={144411}, Year={2006} } with \\AtEveryBibitem{\\clearfield{Title}} I was expecting no title will be produced, but thats not the case: Is there any incompatibility between clearfield and footfullcite? Or I am just missing something?", "Given two ciphertexts $c_1 = enc(p_1)$ and $c_2= enc(p_2)$ using any additive homomorphic encryption scheme (or specifically Paillier). Can we find out whether the underlying plaintexts $p_1,p_2$ are equal without decrypting $c_1,c_2$ i.e. homomorphically?" ]
medi_sts_stackexchange_dupe
How to screenshot website in JavaScript client-side / how Google did it? (no need to access HDD)
Using HTML5/Canvas/JavaScript to take in-browser screenshots
[ "Why do birds sitting on electric wires not get shocked?", "Create violine plots I use pgfplots for most of my plots. Now I need to add a . Is this possible with pgfplots or any other package?", "Foolproof way to ensure Google news pulls the correct image for its thumbnails? Google news results have an acompanying thumbnail next to articles that show up in the results. If Google's crawler can't find a thumbnail to pull from our site, it uses its next best guess from another site, therefore linking the image to another site but still uses our headline. Example: Headline from Reuters, Image from Livemint: Our pages absolutely have images, they are not massive in file-size or dimensions, yet we are not having them pulled / crawled correctly. We have read up on the suggestions from Google, and from others around the web and nothing is panning out. Has anyone had any experience where they can ensure Google news will pull a thumbnail of our choosing?", "Confusing [...] List in Python: What is it? So I was writing up a simple binary tree in Python and came across [...] I don't believe this to be related to the Ellipsis object, more it seems to have something to do with an infinity loop (due to Python's shallow copy?). The source of this infinity loop and why it doesn't get expanded while expanding when accessed is something I'm completely lost to, however &gt;&gt;&gt; a [[[[[], [], 8, 3], [[], [], 3, 2], 6, 3], [], 1, 4], [[], [], -4, 2], 0, 0] &gt;&gt;&gt; Keys(a)#With a+b [0, 1, 6, 8, 3, -4] &gt;&gt;&gt; Keys(a)#With [a,b] [8, [...], [...], 3, [...], [...], 6, [...], [...], 1, [...], [...], -4, [...], [...], 0, [...], [...]] &gt;&gt;&gt; Keys(a)[1]#?? [8, [...], [...], 3, [...], [...], 6, [...], [...], 1, [...], [...], -4, [...], [...], 0, [...], [...], 8, [...], [...], 3, [...], [...], 6, [...], [...], 1, [...], [...], -4, [...], [...], 0, [...], [...]] Version using a+b def Keys(x,y=[]): if len(x):y+=[x[2]]+Keys(x[0],y)+Keys(x[1],y)#Though it seems I was using y=y[:]+, this actually outputs an ugly mess return y version using [a,b] def Keys(x,y=[]): if len(x):y+=[x[2],Keys(x[0],y),Keys(x[1],y)] return y So what exactly is [...]?", "why does loop-cut-and-slide ignore some faces but not others? why does the loop-cut-and-slide operation ignore certain faces but happily cut others?the model is symmetrical so it is a bit strange to pick 3 faces that won't get cut. I tried applying it to see if it was just a graphics glitch causing the purple line to not display over everything, but it did end up cutting only what the line was selecting, instead of the whole mesh. as requested,here's a paste of the blend:", "I have named him/he who shall not be named. Which of these is correct? I think it should be \"him\" because \"him\" is a direct object in this context. In this context, \"him/he who shall not be named\" is not a proper noun.", "Calculating CR of monsters that do not deal calculable damage", "How does one prove that if $n \\mid (a^{n}-b^{n}) \\ \\Longrightarrow$ $ \\displaystyle n \\mid \\frac{a^{n}-b^{n}}{a-b}$ where $a,b, n \\in \\mathbb{N}$. What i thought of is to consider $$(a-b)^{n} \\equiv a^{n} + (-1)^{n}b^{n} \\ (\\text{mod} \\ n)$$ and if we suppose that $n$ is odd then we have, $$(a-b)^{n} \\equiv a^{n} -b^{n} \\ (\\text{mod} \\ n)$$ and since $n \\mid (a^{n} - b^{n})$ we have $$(a-b)^{n} \\equiv 0 \\ (\\text{mod} \\ n) $$ I think i am far away from the conclusion of the problem, but this is what i could work on regarding the problem.", "Are the floor functions of $0.999\\cdots$ and 1 equal? It is true that $0.999\\cdots=1$ but how does one justifies the integer part of $0.999\\cdots$ being 1 , where it is not, or alternatively without using $0.999\\cdots=1$ how can we show that $\\lfloor0.999\\cdots\\rfloor = \\lfloor 1 \\rfloor$ ?", "LaTeX Classes or Styles for Schedules and/or Calendars?", "Asserting that Atheism and Theism are both faith based positions I am recently testing an assertion that I have concluded namely that atheism is a faith based position just like theism is a faith based position. The reason I arrived at this conclusion is that theists have no proof that God actually exists. It's purely a matter of faith. Yes, there maybe strong implicit proof that God exists in their opinion (scriptures, history, etc) but there is no concrete proof of God's existence. In my view, atheists also suffer from the same problem of providing a proof of their position. Specifically that they cannot prove that God is non-existent. The typical rebuttal I get is that the burden of proof is on the theists. But I view this as a cop out and they hide behind the wall of burden of proof which is just a bias in the debate. Given the above, I claim that both atheism and theism are positions based on faith. Would it be incorrect to claim that?", "How to add an extra level of sections with headings below \\subsubsection", "Cleaning Contaminated Disc Rotors I've had an eternal struggle with my current bike over brake contamination. The levers and calipers are shimano ultegra r8000, so the latest and (almost) greatest. I first noticed it when I took it to a repair shop (i no longer use) for a bleed, it came back and the front brake would squeal like crazy and at low speeds had little to no braking force. You can stop from speed but then struggle to come to a halt without using your foot. At around 2000 miles I tried to replace the brake pads, when I took them out they were black with grime on both sets (front &amp; back), not to mention worn down to the metal. I replaced them with the L04C sintered pads, gave the callipers a good cleaning with a towel (no chemicals) and fitted the new set. Annoyingly all of my braking issues are back, now I probably should have cleaned the rotors, I simply used some muc off disc brake cleaner on them. I would like to know the best way to clean the rotors, I've inspected the pads and they are looking fairly black now, with plenty of tread left. I'm going to abandon these pads and fit a new set. For the rotors I plan to completely remove them from the wheels (they are center lock fitted) and try and treat them off the bike, what is the best way to fully clean them? They have plenty of wear left in them but you can see these black grooves in them, and plenty of muck on the back that I struggle to get off. Below are images of the rotors after soaking them in disc brake cleaners, waiting and then wiping them down with a clean, microfiber towel. Front Wheel Outside Rotor Front Wheel Inside Rotor - note the increased dirt on this side Looking at ways people clean their disc rotors, I've seen plenty of suggestions that I would need to burn the contaminants off the discs. Would the best approach be to remove them and use a blowtorch, should I soak them in some nasty chemicals overnight before I try to heat them? Do I try baking them in the oven? And finally, what is the best way to prevent the brakes from becoming contaminated in the future? it's really off putting when they squeal and don't perform how I'd expect because it means I'm more reserved whilst out riding on the bike, leading to reduced time riding around outside. I commute on this bike (50 miles a week) and then ride about 50 on the weekends also, so it see's it's fair share of road use. I tend to wash it once after my big ride on saturdays and will rinse it off if it's been raining, any day that occurs (since I live in north east england, the acid rain..). I've owned disc brake bikes before and never had half the issues I've had with this, I had a cheap trek with tektro brakes and the brakes were sharper and never had any issues with contamination whatsoever (i did around 500 miles on that bike before a motorist happened). Thanks for any and all advice :)", "Exclude TeX.SE question titles from MathJax parsing in Hot Network Questions Recently, the TeX.SE question got onto the Hot Network Questions list. Like many questions on TeX.SE, it contains some TeX markup in its title. Unfortunately, on , this markup gets parsed and rendered as math: I propose that either: the entire Hot Network Questions sidebar should be excluded from MathJax parsing by styling it with the tex2jax_ignore class, or at least, any hot questions from TeX.SE should be so excluded from MathJax parsing. Or I suppose we could always implement , which asks for all questions with TeX in the title to be excluded from Hot Network Questions entirely. That might be throwing out the baby with the bathwater, though. Ps. This issue is partially masked by , which causes MathJax not to be rendered in many elements that are hidden by default and revealed using jQuery .show(), such as all but the first five questions in the Hot Network Questions sidebar. The user script contains a generic fix for that bug, so users who have it installed will see this issue more frequently, but it occurs even without SOUP whenever a question with TeX markup in the title happens to show up among the top five hot questions that are always visible by default.", "How do I change the plymouth bootscreen?", "Construction of a Borel set with positive but not full measure in each interval I was wondering how one can construct a Borel set that doesn't have full measure on any interval of the real line but does have positive measure everywhere. To be precise, if $\\mu$ denotes Lebesgue measure, how would one construct a Borel set $A \\subset \\mathbb{R}$ such that $$0 &lt; \\mu(A \\cap I) &lt; \\mu(I)$$ for every interval $I$ in $\\mathbb{R}$? Moreover, would such a set necessarily have to contain infinite measure?", "How can I explain how to play D&D to new players without them falling asleep from boredom? Some of my friends just started playing Dungeons &amp; Dragons [5e] for the first time and don't know anything about how to play. I have tried explaining to them the things that are completely necessary and teach them the rest while playing but I could not get them to understand. None of them have a players handbook and they can't afford one and they really want to play. I really want a simple way to explain the basics and since I have a habit of explaining things in ways that are much too complicated. I have already told them the basic rules so all I need to know is a simple way to explain how to play.", "Possible pitfalls of using this (extension method based) shorthand", "I was recently reading some Lord of the Rings/Stargate SG-1 crossover fanfiction. It is a guilty pleasure, I admit :) In this story, it was suggested by Col. O'Neill to destroy the Ring using a nuclear device. Truth be told I stopped reading at this point, as it was getting to be a little much even for me. Obviously, this is not canonical in either universe, but it made me wonder: When Elrond said that \"only in the fires of Mt. Doom may it be unmade,\" was he speaking literally? Or was this merely the only known active volcano in Middle Earth? In other words, was whatever magic that protected the One Ring from damage location-based or did it just make it very resistant to destructive force, and Mt. Doom just happened to be hot enough to do this? I know there is (understandably) little information about such technicalities of how magic works in Middle Earth, but I'll accept any reasonable conjecture/consensus as an answer.", "Where to ask Question that can be flagged too broad or opinion based" ]
medi_sts_stackexchange_dupe
What is an Isomorphism: Linear algebra
What does "isomorphic" mean in linear algebra?
[ "View only the new entries in a growing log file", "Show that both mixed partial derivatives exist at the origin but are not equal $$f(x,y) = \\begin{cases} \\displaystyle \\frac{xy(x^2-y^2)}{x^2+y^2} &amp; \\text{if } (x,y) \\neq (0,0), \\\\ 0 &amp; \\text{if } (x,y) = (0,0). \\end{cases}$$ I tried finding both mixed partial derivatives but they ended up being the same for that function. I must be failing to take into account something dealing with the fact that it is piece-wise. I still need to show the mixed partial derivatives exist. How can I do all of this?", "MikTeX 2.9, install packages on the fly?", "Where can I find the points per game throughout many NBA seasons? Where can I find the points per game (of both teams) throughout many NBA seasons? To illustrate my point, what I mean is something like: 2000/01 average points per NBA game: 200; 2001/02 average points per NBA game: 210; 2002/03 average points per NBA game: 205; so on...", "Schrödinger Equation for Two Electrons? I'm having trouble finding a simple answer to this question (maybe because there isn't one), but I'm just confused about how the Schrödinger Equation would look for two electrons. I understand that it would exist in 6 dimensional configuration space, but how does the potential look? It's confusing that the potential would be different for each electron depending on where the other one is.", "Choice function for collection of arbitrary finite sets. AC required?", "\\hfill \\break does not work", "Formatting should not count towards the character limit on comments", "Surface tension: the paper clip experiment In the paper clip experiment, the surface tension of water prevents the clip from falling, thus we can assume it exerts a force of $mg$ (weight of clip) upwards. However, if you try to pull the clip out of water, surface tension opposes this motion also. If for simplicity we assume that the clip is a rectangle of length $l$ and breadth $b$, and the surface tension is $T$, then the liquid exerts a downward force of: $$T×2(l+b)$$ What is going on here? Why is there an inconsistency in the direction along which the force acts?", "Join tables from two different server", "vertical alignment of a turned cell I know using turn command and a sample code like this: \\usepackage{rotating} \\begin{turn}{90} Supervised Learning \\end{turn}} we can rotate a text inside a cell, however, I couldn't find a way to vertically center this rotated text. Any suggestions is appreciated. Here is the sample MWE: \\begin{table}[] \\centering \\begin{tabular}{|&gt;{\\centering\\arraybackslash}m{0.5cm}|c|&gt;{\\centering\\arraybackslash}m{8cm}|} \\hline \\multicolumn{2}{|c|}{Classification} &amp; References \\\\ \\hline %\\multirow{2}{*}{{\\begin{turn}{90}Supervised Learning\\end{turn}}} \\multirow{2}{*}{\\rotatebox[origin=c]{90}{Supervised Learning}} \\end{tabular} \\caption{A Classification} \\label{tab:Machine_Learning_models} \\end{table}", "Is there a way to make Git mark a file as conflicted?", "Difference between Sort and SortBy", "Why do we say \"try and\" [verb] instead of \"try to\" [verb]? (E.g., \"Try and call me tomorrow.\")", "I know that an easy to handle formula for the CDF of a normal distribution is somewhat missing, due to the complicated error function in it. However, I wonder if there is a a nice formula for $N(c_{-} \\leq x &lt; c_{+}| \\mu, \\sigma^2)$. Or what the \"state of the art\" approximation for this problem might be.", "Can't install any app, App Store asks for credit card I haven't been installing anything on my iPad Mini for the past few weeks. But previously, I just had to tap on \"Install\", enter my Apple ID password and go. Now, for every new application, even those free ones, I have to confirm each time, that I'm 17 or over. And then App Store asks to enter my credit card information. If I disagree and hit \"Cancel\", installation process is interrupted and I can't install any application, even free one. I don't trust Apple at all and I'm not willing to share my credit card information, especially that I'm installing only free applications. I'm pretty sure that I haven't changed anything in the configuration of my iPad Mini for ages. Am I missing some significant change to the App Store or this is some kind of bug or virus? Is there anything I can do in this situation? How can I install a free application from the App Store, without having to share my credit card information with Apple?", "\"invalid EFI file path\" while booting Windows", "How do I quickly switch between weapons and spells? When I see him quickly change his weapons and spells during combat. When he later goes inside his items, you can see a second smaller arrow next to the weapon that you can quickly change to in combat. How can I set such an alternative so that I can quickly switch weapon? The screen doesn't seem to intuitively explain what key I need to use to do that...", "Installing from source - do I need to keep the extracted tarball directory If I'm installing from source, do I need to keep the extracted tarball directory? So if I download the git tarball. I then do: tar -xvzf git.tar.gz This will create a git.x.x. directory, into which I cd, then run ./configure etc. Once I'm done with this process, and git, or whatever is installed, do I need to keep the original git.x.x extracted directory, or is that just used for compiling the program? I'm somewhat confused by all the directories, and folders used for programs.", "I have created multiple objects, while testing I applied a drop shadow style on one object and its looking very good. Now I want to apply the same style to all other objects (around 20). Is there any way like global color to create a style once and apply to other objects with single click automatically? Or I have to apply that drop shadow effect on each object one by one manually?" ]
medi_sts_stackexchange_dupe
Why string getting from file is not equal to common string?
Is there a difference between "==" and "is"?
[ "Inform moderators migrating a question if the migration would have been normally blocked", "describes how to get the changelog for a given package. However, it's the whole changelog. What I'd like is a way to see what will be changed in whatever I'm about to upgrade. For example, I was imagining something like: $ sudo apt-get upgrade --show-changelogs Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: foo -- adds the bar feature for better snazziness -- removes the deprecated baz feature 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 8,864 kB of archives. After this operation, 285 kB disk space will be freed. Do you want to continue [Y/n]? Unfortunately, I don't see anything like that in the man pages for apt-get. Does this or something similar exist? UPDATE: I've written a talking about apt-listchanges and Debian changelogs in a little more depth that incorporates some of the feedback in this question.", "Given a large (~ 1 million) sample of unevenly distributed points - is it possible to generate irregular grid (in size, but could also be irregular in shape if that is possible?) that will contain specified minimum amount of n points? It is of less importance for me if genereted 'cells' of such grid contain exactly n number of points or at least n points. I'm aware of solutions like in ArcGIS or in QGIS/mmgis however they will all create regular grids which will result in an output with empty cells (smaller problem - I could simply discard them) or cells with count of points less than n (bigger problem since I'd need a solution to aggregate those cells, probably using some tools from ?). I've been googling around to no avail and am open to both commercial (ArcGIS &amp; extensions) or free (Python, PostGIS, R) solutions.", "Cannot make a static reference to the non-static method", "Received an email intended for another person", "Why do we use the object instead of the subject pronoun in constructions like \"stupid me\"? I'm trying to find out how come we say lucky me and stupid us rather than lucky I and stupid we. My understanding is that this is not a recent invention, but a relic from the distant past where it was a dative construction. However, I don't see the reason for using any case other than the nominative in this construction to begin with. He went surfing. → Lucky him went surfing. I got pulled over. → Stupid me got pulled over. They bought a house. → Thoughtless them bought a house. This is rather intriguing. After thinking about it for a while, I couldn't come up with any other language, Germanic or otherwise, where simply introducing an adjective would dictate a change of grammatical case. This appears to be an English peculiarity. How far can it be traced back? Can anyone comment on its background?", "Let $f$ be a holomorphic function defined on $\\Bbb C$ such that $f^{-1}(\\Bbb R)=\\Bbb R$. Prove that there exists $a,b \\in \\Bbb R, \\; a \\neq 0 \\;$ such that $f(z)=az+b \\;$ for every $z \\in \\Bbb C$. I was given a hint: define the function $g(z)=\\frac{f(z)-f(0)}{z}$. such $g$ is also holomorphic in $\\Bbb C$ since the only singularity is in $0$, and it is a removable singularity since we can define $g(0)=f'(0)$. Next I thought about proving $g$ is bounded, and thus constant (using Liouville's theorem), but pretty much out of ideas. How can I finish the proof/solve in another way?", "I know in TNG that all computer interfaces are now touch-screen, and that got me thinking: when was the first reference to touch-screen computer interfaces in Sci-Fi made?", "Is there a way to summon Dogmeat to you? I've recently started playing Fallout 4, and I've acquired Dogmeat. Long story short, I told him to stay in a small building so I could down a few raiders quietly but I forgot about him and I can't find him. Is there a way to call Dogmeat back or do I have to retrace my steps until I'm reunited with him?", "How to make overlay still work inside lstlisting environment? Problem I want to explain C# programming language step by step using overlay in beamer.cls. But it does NOT works as shown in the following figure. How to solve this problem? Code Snippet \\documentclass[dvipsnames,cmyk]{beamer} \\usepackage{listings} \\begin{document} \\defverbatim[colored]\\Lst{% \\begin{lstlisting}[language={[Sharp]C}] using System; public delegate void Foo(object o); \\uncover&lt;1&gt;{public class Foo} \\uncover&lt;2&gt;{\\{} \\uncover&lt;3&gt;{public static void Main()} \\end{lstlisting}} \\begin{frame}{MyListing} \\Lst \\end{frame} \\end{document}", "When looking at my objects in 3d view I'm seeing a gray cone that seems to be hiding other objects. Can anyone help me turn this off and explain what it is please. Screenshots attached.", "I've tried to render my scene but there's an object that won't show up. I've checked the camera, I've checked the visibility, it isn't hidden and it's showing in the viewport. I feel like I've opened every setting and have achieved nothing. I’m trying to render a book with a cover, flipping pages and stacks of pages. I have no idea how to fix the fact that the book cover doesn’t render. If I create a plane and select both the book cover and the plane and join them with Ctrl+J, the render contains a book cover but it doesn’t turn as it’s rigged to do so because it’s now linked to the plane and loses all the animated properties. As soon as I unjoin them the book cover stops rendering and everything appears as you see it there, a book with binding, pages, but no cover. For the life of me I cannot figure out what’s going on. There's a link to the file here:", "Overfull box and broken pagination with page that contains only section headings", "What is the term for accusing a person of mischief through invented, twisting and changeable terminology? What is the term for accusing a person of invented wrongdoing in such a way that he cannot respond or even clearly understand the accusations? For example, frequently reversing the definitions of the terminology used, or basing argumentation on hints and roundabout phrasings, metaphors, invented-on-the-fly floating definitions and rules to fit with the accusations. Update: I think inquisitorial is the most proper term for context in which the result does not depend on the argumentation of one of the sides. Though, jargonaut was completely unheard by me and incrementally more useful.", "How to install apps which require a newer version of iOS on a 1st gen. iPad?", "A lot of strange loop devices appear in my Kubuntu OS. [translation: Hard disk 107.4GB Hard disk 487.0GB Loop Device Hard Disk 4.0GB Loop Device Loop Device Loop Device Loop Device Victor Disk] Can anybody tell me what it is? .", "I am using to show the branch name in gnome terminal (Ubuntu 15.10) when working in a git repository. Based on the above I now have the below in my ~/.bashrc file: # uncomment for a colored prompt, if the terminal has the capability; turned # off by default to not distract the user: the focus in a terminal window # should be on the output of commands, not on the prompt #force_color_prompt=yes ... # Add git branch if its present to PS1 parse_git_branch() { git branch 2&gt; /dev/null | sed -e '/^[^*]/d' -e 's/* \\(.*\\)/(\\1)/' } if [ \"$color_prompt\" = yes ]; then PS1='${debian_chroot:+($debian_chroot)}\\[\\033[01;32m\\]\\u@\\h\\[\\033[00m\\]:\\[\\033[01;34m\\]\\w\\[\\033[01;31m\\]$(parse_git_branch)\\[\\033[00m\\]\\$ ' else PS1='${debian_chroot:+($debian_chroot)}\\u@\\h:\\w$(parse_git_branch)\\$ ' fi unset color_prompt force_color_prompt As a result I now get: so it works. But why has the coloring of my user@host been removed? And I would also expect that the branch name should be colored. Before it looked like this: UPDATE: I have now tried this guide instead: adding this to .bashrc: parse_git_branch() { git branch 2&gt; /dev/null | sed -e '/^[^*]/d' -e 's/* \\(.*\\)/ (\\1)/' } export PS1=\"\\u@\\h \\[\\033[32m\\]\\w\\[\\033[33m\\]\\$(parse_git_branch)\\[\\033[00m\\] $ \" and that works: Notice in .bashrc I also have this (default): # uncomment for a colored prompt, if the terminal has the capability; turned # off by default to not distract the user: the focus in a terminal window # should be on the output of commands, not on the prompt #force_color_prompt=yes I have yet to find the reason why that snippet gives the correct result and the other version does not. Any input on this? Here is the version of my .bashrc that has the old snippet enabled that does not work:", "MikTex 2.9 Installation Error: File name database capacity exceeded.", "Use of Predictable Network Interface Names with alternate kernels Almost constantly, I use kernels from the , or kernels I have compiled myself, using the Ubuntu kernel configuration. The problem is when I am using the stock kernel it seems to default to using predictable network interface names (i.e. \"p4p1\"), but when I use any alternate kernel it seems to default to using the old method (i.e. \"eth0\"). While not really relevant to this question, I had a hard disk failure on my test computer and am doing a new install of Ubuntu Server 14.04.2. I have not been able to determine what is the difference between the kernels. I suspect a kernel configuration parameter, but have been unable to identify which one. My question: How can I make predictable network interface names work consistently across all kernels? Additional notes: Somewhere I saw to disable predictable network interface names to add this to grub: GRUB_CMDLINE_LINUX_DEFAULT=\"net.ifnames=0 biosdevname=0\" so, I thought the opposite might help: GRUB_CMDLINE_LINUX_DEFAULT=\"net.ifnames=1 biosdevname=1\" but it made no difference. Actually, I can never get the non-stock kernel to use biosdevname, no matter the setting. And I can never get the stock kernel to generate a /etc/udev/rules.d/70-persistent-net.rules file (even though, that is not what I want), no matter the setting of net.ifnames. If I have net.ifnames=1, then at least the non-stock kernel doesn't generate an incorrect /etc/udev/rules.d/70-persistent-net.rules file. Excerpts from /var/log/udev: stock kernel: KERNEL[9.216730] add /devices/pci0000:00/0000:00:1c.4/0000:03:00.0/net/p4p1 (net) ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1c.4/0000:03:00.0/net/p4p1 IFINDEX=2 INTERFACE=p4p1 SEQNUM=1945 SUBSYSTEM=net ... UDEV [9.241073] add /devices/pci0000:00/0000:00:1c.4/0000:03:00.0/net/p4p1 (net) ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1c.4/0000:03:00.0/net/p4p1 ID_BUS=pci ID_MODEL_FROM_DATABASE=P8P67 and other motherboards ID_MODEL_ID=0x8168 ID_NET_NAME_MAC=enxf46d04652d8e ID_NET_NAME_PATH=enp3s0 ID_OUI_FROM_DATABASE=ASUSTek COMPUTER INC. ID_PCI_CLASS_FROM_DATABASE=Network controller ID_PCI_SUBCLASS_FROM_DATABASE=Ethernet controller ID_VENDOR_FROM_DATABASE=Realtek Semiconductor Co., Ltd. ID_VENDOR_ID=0x10ec IFINDEX=2 INTERFACE=p4p1 From Ubuntu PPA kernel 4.1RC5: KERNEL[10.772566] add /devices/pci0000:00/0000:00:1c.4/0000:03:00.0/net/eth0 (net) ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1c.4/0000:03:00.0/net/eth0 IFINDEX=2 INTERFACE=eth0 SEQNUM=1962 SUBSYSTEM=net ... UDEV [11.185866] add /devices/pci0000:00/0000:00:1c.4/0000:03:00.0/net/eth0 (net) ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1c.4/0000:03:00.0/net/eth0 ID_BUS=pci ID_MODEL_FROM_DATABASE=P8P67 and other motherboards ID_MODEL_ID=0x8168 ID_NET_NAME_MAC=enxf46d04652d8e ID_NET_NAME_PATH=enp3s0 ID_OUI_FROM_DATABASE=ASUSTek COMPUTER INC. ID_PCI_CLASS_FROM_DATABASE=Network controller ID_PCI_SUBCLASS_FROM_DATABASE=Ethernet controller ID_VENDOR_FROM_DATABASE=Realtek Semiconductor Co., Ltd. ID_VENDOR_ID=0x10ec IFINDEX=2 INTERFACE=eth0 SEQNUM=1962 SUBSYSTEM=net USEC_INITIALIZED=3227 Note: I have temporarily moved past this issue by allowing a /etc/udev/rules.d/70-persistent-net.rules file to be created, and then editing it for proper device names. Ultimately, I would like to get rid of the file.", "How to place the intercept of x and y axes at (0 , 0) and extend the x and y axes to the edge of the plot" ]
medi_sts_stackexchange_dupe