query
stringlengths
6
215
document
stringlengths
50
1.23k
negative
listlengths
15
209
dataset
stringclasses
1 value
Traveling to UK and Ireland on Indian Passport BIVS
How does the British-Irish Visa Scheme (BIVS) work?
[ "I was wanting to initialize some strings at the top of my script with variables that have no yet been set, such as: str1='I went to ${PLACE} and saw ${EVENT}' str2='If you do ${ACTION} you will ${RESULT}' and then later on PLACE, EVENT, ACTION, and RESULT will be set. I want to then be able to print my strings out with the variables expanded. Is my only option eval? This seems to work: eval \"echo ${str1}\" is this standard? is there a better way to do this? It would be nice to not run eval considering the variables could be anything.", "Bird flying in a cage Assume that you are holding a cage containing a bird. Do you have to make less effort if the bird flies from its position in the cage and manages to stay in the middle without touching the walls of the cage? Does it make a difference whether the cage is completely closed or it has rods to let air pass?", "I know from reading that the \"primary\" use of the IDisposable interface is to clean up unmanaged resources. To me, \"unmanaged\" means things like database connections, sockets, window handles, etc. But, I've seen code where the Dispose() method is implemented to free managed resources, which seems redundant to me, since the garbage collector should take care of that for you. For example: public class MyCollection : IDisposable { private List<String> _theList = new List<String>(); private Dictionary<String, Point> _theDict = new Dictionary<String, Point>(); // Die, clear it up! (free unmanaged resources) public void Dispose() { _theList.clear(); _theDict.clear(); _theList = null; _theDict = null; } My question is, does this make the garbage collector free memory used by MyCollection any faster than it normally would? edit: So far people have posted some good examples of using IDisposable to clean up unmanaged resources such as database connections and bitmaps. But suppose that _theList in the above code contained a million strings, and you wanted to free that memory now, rather than waiting for the garbage collector. Would the above code accomplish that?", "How many roots have modulus less than $1$? If roots of the equation $$x^7 - 4x^3 + x + 1=0$$ are plotted on the Argand plane, how many of them have distance from the origin less than $1$? I found, by plotting the rough curve of $y= x^7 - 4x^3 + x + 1$ that it has three real roots, out of which two of them have modulus greater than $1$ and one has modulus less than $1$. But I don't know how to do the same for non - real roots. The answer given in my book is that $3$ roots have modulus less than $1$.", "It was nice to discover the option for a room owner to add any user to a room, even if their rep is too low. ...so I notified the user in question, and as instructed on the next screen, I had them got to chat.stackoverflow.com so that I'd be able to add them. ...but when they did their part, and I did my part, I got the message: Obviously both frustrated, the user's next logical question was: \"So I just have ask a couple questions and get someone to upvote them, right?\" Needless to say, we don't want to encourage new users to post questions for the sole purpose of bypassing a frustrating, misdocumented rule. I realize this will likely quickly get closed since it has at least one - which hasn't been touched in 5½ years. However it would be nice if the issue was revisited: Ideally, it would be cool if RO's did have the option of deciding who had access to the room they \"own\", but short of that, is it possible to remove the 6 \"misleading\" words from that page?", "Failed to mount Windows share: Invalid argument A very similar question has been asked before by robazefa, but no one answered it. For the last month or so, my Ubuntu 14.04 LTS box has been been unable to open a couple of folders shared from external drives on a PC running Win 8.1 on a home network. Through Files on the Unity desktop, I can browse the network, access the workgoup, access the Win 8.1 box, see and access its shares except the folders on its external drives. They appear on the list and I could access them without a problem a couple of months ago, but now I get a dialogue box with Unable to access location - failed to mount Windows share: Invalid argument message, with only the option to click OK. These folders are readily accessible now from other Win 7 and 8 PCs on the network, but the same Invalid argument error now appears on the only other Linux box on the network which runs Mint Cinnamon. My question is which argument is in invalid and how can I validate it?", "Interpreting the 'metric' column in routing table I'm a little confused about the output I'm seeing in my routing table, particularly the 'metric' column: $ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 wlan0 172.16.35.0 0.0.0.0 255.255.255.0 U 0 0 0 vmnet1 192.168.0.0 0.0.0.0 255.255.255.0 U 9 0 0 wlan0 192.168.82.0 0.0.0.0 255.255.255.0 U 0 0 0 vmnet8 According to the man page, metric indicates the 'distance' to the target. I was a little confused about what exactly \"target\" was. I assumed it was my router (it goes to gateway 0.0.0.0, which then goes to my router at 192.168.0.1). Thus, I expected the metric to be a single hop to my router. However, it's 9! Why is this so number high?", "Along the lines of , what reasons are there (if any) to favor \\( ... \\) over $ ... $?", "Rich Snippets not working (and working at the same time?) We have an eCommerce site, and we have had rich snippets implemented (in JSON-LD) since January/February this year (2015). I have read multiple sources (including the Google documentation) and there seem to be three possibilities why they are not showing: Not enough time has passed (4-12 weeks seems to be the common time quoted) The markup is wrong Google have decided not to show the data I can rule out the first given the amount of time. The second I am fairly confident is not the case as I have used multiple testing tools. As for the third … well that's anyone's guess (although the study suggests that MOST shops should be successful). A strange note is that the rich snippets do not show on a regular search for our ranking keywords (we rank #1 for a few and page 1 for the majority). However the rich snippets DO show when we search for a ranking keyword + site:www.fridgefreezerdirect.co.uk as show here: I have done this in an incognito window in the browser and using a VPN with the same results. Can anyone suggest anything we can do or reasons this may be?", "Let $X \\ge 0$. Show \\begin{align} \\lim_{y\\to\\infty} y\\,\\Bbb{E}\\left[ \\frac1X \\cdot1_{X>y} \\right] &= 0 \\quad\\text{and} \\\\ \\lim_{y \\downarrow 0} y\\,\\Bbb{E}\\left[ \\frac1X \\cdot1_{X>y} \\right] &= 0. \\end{align} N.B.: The author doesn't assume $\\Bbb{E}[1/X] < \\infty$. My try: Since the expectation appears on the RHS of Markov's inequality, I don't think this inequality can be applied to solve this question. $$ \\begin{aligned} y\\,\\Bbb{E}\\left[ \\frac1X \\cdot1_{X>y} \\right] &= \\Bbb{E}\\left[ \\frac{y}{X} \\cdot1_{X>y} \\right] \\\\ &< \\Bbb{E}\\left[ 1 \\cdot1_{X>y} \\right] \\\\ &= \\Bbb{P}(X > y) \\\\ &\\xrightarrow[y\\to0]{} \\Bbb{P}(X \\ge 0) = 1 \\end{aligned} \\tag1 \\label1 $$ For the first part $y \\to \\infty$, I apply Markov's inequality at the row $\\Bbb{P}(X > y)$ in \\eqref{1}, so that $$\\Bbb{P}(X > y) \\le \\frac{\\Bbb{E}[X]}{y} \\xrightarrow[y\\to\\infty]{} 0?$$ But I don't have $\\Bbb{E}[X] < \\infty$. Thanks for any help.", "Elementary proof for $\\lim\\limits_{n \\to\\infty}\\frac{n!e^n}{n^n} = +\\infty$ As seen in question, the series $\\sum\\limits_{n=1}^{\\infty} \\dfrac{n!e^n}{n^n}$ diverges. (One way to see this is by noting that the terms of the sum are greater than $1$ and, therefore, don't converge to zero.) However, more is true: not only are the terms greater than $1$, they blow up to $+\\infty$! To see this, one can apply Stirling's approximation and get $\\dfrac{n!e^n}{n^n} \\sim \\sqrt{2\\pi n}$. My question is: is there an elementary proof for $\\lim_{n \\to\\infty}\\dfrac{n!e^n}{n^n} = +\\infty$? The reason I'm asking this is that I'm taking a Calculus course and I was assigned the exercise of proving the divergence of the series above and I would feel more satisfied if I could prove that its terms go to $+\\infty$ (as opposed to merely proving the terms are greater than $1$.) Obviously, things like Stirling's approximation are outside the scope of the course, so I can't really use them. (To be clear, you can use anything one learns in $4$ semesters of standard Calculus courses. I hope this restriction is not too obscure.)", "How do we compare the size of numbers that are around the size of Graham's number or larger? When numbers get as large as Graham's number, or somewhere around the point where we can't write them as numerical values, how do we compare them? For example: $$G>S^{S^{S^{\\dots}}}$$ Where $G$ is Graham's number and $S^{S^{S^{\\dots}}}$ is $S$ raised to itself $S$ times and $S$ is Skewes number. It appears obvious (I think) that Graham's number is indeed larger, but how does one go about proving that if both numbers are \"so large\" that they become hard to compare? More generally, how do we compare numbers of this general size? As a much harder problem than the above, imagine a function $G(x,y)$ where $G(64,3)=$ Graham's number. The function $G(x,y)$ is as follows: $$G(x,y)=y\\uparrow^{(G(x-1,y))}y$$ Where $G(0,y)$ is given. I ask to compare $G(60,S)$ and $G(64,3)$", "How do I view or install Ubuntu Touch apps? Lots of people have started developing Ubuntu Touch apps for the Ubuntu App Showdown and just in general, and have published them in the Click App Store. What is the Click App Store, and how do I install apps published in it?", "I have a directory that I am trying to clean out that contains both files and subdirectories. What I am trying to do is simple: move all the files into another directory, but leave all the sub-directories as they are. I am thinking something like: mv [*_but_no_dirs] ./other_directory It seems like there should be a simple way to do this with wildcards * and regex... Anyone have ideas?", "Newer \"mainline\" versions of the kernel are available from the , e.g. 3.4 and 3.5, while Ubuntu 12.04 is on 3.2. What are the mainline kernels? Are they better than my existing kernel? What are the pros and cons of upgrading to a mainline kernel? Will I easily be able to go back?", "...where each object also has references to other objects within the same array? When I first came up with this problem I just though of something like var clonedNodesArray = nodesArray.clone() would exist and searched for info on how to clone objects in javascript. I did find a on StackOverflow (answered by the very same @JohnResig) and he pointed out that with jQuery you could do var clonedNodesArray = jQuery.extend({}, nodesArray); to clone an object. I tried this though, this only copies the references of the objects in the array. So if I nodesArray[0].value = \"red\" clonedNodesArray[0].value = \"green\" the value of both nodesArray[0] and clonedNodesArray[0] will turn out to be \"green\". Then I tried var clonedNodesArray = jQuery.extend(true, {}, nodesArray); which deep copies an Object, but I got \"too much recursion\" and \"control stack overflow\" messages from both Firebug and Opera Dragonfly respectively. How would you do it? Is this something that shouldn't even be done? Is there a reusable way of doing this in Javascript?", "How do I make my screenshot ask me what to do next every time? I take screenshots a lot. I usually take screenshot of an area, I then recheck if I have the desired area and then copy it to clipboard. I want to change this behaviour so that immediately upon pressing Shift+PrntScr the screen capture application allows me to select an area, and immediately afterwards it provides me with the option to save to a particular location or clipboard. I want Shift+PrntScr to bring up a pop-up screen like this:", "Identify an unknown IP in our network I have a network containing 20 clients. I assigned IP range 10.0.0.1 to 10.0.0.20 to them. When I do an IP scanning I see someone using 10.0.0.131 in VMware. How can I find out which IP is this IP bridged with? i.e How can I find out which system has 2 IP? (i.e the other IP of this system) Update: My system IP in the network is 10.0.0.81: Output of the IP scanner show someone using 10.0.0.131 in VMware: And the result of tracert command show nothing between us: C:\\Users>tracert -j 10.0.0.131 10.0.0.81 Tracing route to ghasemi3.it.com [10.0.0.81] over a maximum of 30 hops: 1 <1 ms <1 ms <1 ms ghasemi3.it.com [10.0.0.81] Trace complete. C:\\Users>", "Is there a term for a foreign word that looks like an English word but has a completely different meaning? examples: Gift (German) = poison poisson (French) = fish embarazada (Spanish) = pregnant sauce (Spanish) = willow triviale (Italian) = vulgar parentes (Portuguese) = relatives slim (Dutch) = smart", "As our users regularly upload ~6MB images to use on the website (and aren't too familiar with how to resize them first), WordPress stores the originals as well as resizing them to several different sizes. I'd like a function or plugin that takes the uploaded image, resizes it down to something more manageable and then replaces the original. I've seen some functions that delete the original but do not replace it, meaning it is impossible to regenerate the thumbnails at a later date. I need this to be replaced so the user can upload a large image and it is automatically resized down and stored for future resizing if needed." ]
medi_sts_stackexchange_dupe
Proof of $\frac{x^n - a^n}{x-a} = x^{n-1} + x^{n-2}a + x^{n-3}a^3+...+xa^{n-2} + a^{n-1}$
Value of $\frac{x^n -a^n}{ x-a}$?
[ "Random number generator only generating one random number", "Rootspaces are $\\mathop{ad}$ nilpotent", "Rule of thumb for choosing an implementation of a Java Collection? Anyone have a good rule of thumb for choosing between different implementations of Java Collection interfaces like List, Map, or Set? For example, generally why or in what cases would I prefer to use a Vector or an ArrayList, a Hashtable or a HashMap?", "I looked at similar questions and wanted to post a more specific one. If I wanted one of my accounts on the network to no longer be associated to my global account, could an administrator do it manually? I mean, even if they could, would they? It's a matter of professionalism. I don't want one of my accounts on the network to be visible from my other accounts. I just want that to be under a separate email that's not one of the OpenIDs associated with my global account. I realize this would have been easier to do when I joined that site, but it's too late now, and only now have I realized that I don't really want that account showing up. So can it be done by an administrator? I don't want to wait weeks and weeks for a response by using the contact form (funny, I've waited two with this post)...", "Suppose you cut a five year old's hair, save it for 10 years, and then use it for a Polyjuice transformation. What age do you turn into: The toddler or the teenager?", "What is Interface method in salesforce", "transforming ordinary generating function into exponential generating function", "I try to launch Firefox over SSH, using ssh -X user@hostname and then firefox -no-remote but it's very very slow. How can I fix this? Is it a connection problem?", "Prove the map has a fixed point Assume $K$ is a compact metric space with metric $\\rho$ and $A$ is a map from $K$ to $K$ such that $\\rho (Ax,Ay) < \\rho(x,y)$ for $x\\neq y$. Prove A have a unique fixed point in $K$. The uniqueness is easy. My problem is to show that there a exist fixed point. $K$ is compact, so every sequence has convergent subsequence. Construct a sequence ${x_n}$ by $x_{n+1}=Ax_{n}$,$\\{x_n\\}$ has a convergent subsequence $\\{ x_{n_k}\\}$, but how to show there is a fixed point using $\\rho (Ax,Ay) < \\rho(x,y)$?", "Proving that if $G$ has a Hamiltonian circuit, then the line graph $L(G)$ also has a Hamiltonian Circuit I have a graph G = (V, E). I know that the line graph L(G) of G is defined as follows: each vertex in L(G) corresponds to an edge in G, and two vertices are connected by an edge in L(G) if and only if the corresponding edges in G are adjacent. Now I am trying to (a) prove that if G has a Hamiltonian circuit, then L(G) also has a Hamiltonian circuit, and (b) give an example of a graph G such that G does not have a Hamiltonian circuit but L(G) does. However, I'm extremely stuck on how to do this, and any help would be greatly appreciated. Thanks so much!", "$\\sum_{n=-\\infty}^{\\infty}\\frac{1}{(n+\\alpha)^2}=\\frac{\\pi^2}{(\\sin \\pi \\alpha)^2}$?", "Precedence of user and group owner in file permissions I just ran into something unexpected (for me) regarding file permissions on Linux (Arch Linux). Basically I have: userX in groupX fileX userX:groupX ---rwx---- What puzzles me: I cannot perform any action (rwx) on fileX. Is this right? Can someone please confirm this is indeed the expected behaviour? The only actions I can perform are mv and rm because I have write permissions on the parent directory. The thing is, I always thought these permissions collapse on each other, starting with the most general one (other -> group -> user). In other words, if o=rwx who cares what the persmissions for group and user are? Apparently this is not the case but it doesn't make much sense to me; it seems counterintuitive. The only thing this approach seems to be useful at, is to easily exclude a very specific person / group, which doesn't seem like a smart way to go at it (imho). Besides, the owner (and group?) should be able to chmod anyway right? Any thoughts on this matter?", "Is it possible to flash a smartphone like the Samsung Galaxy SIII or an LG Optimus 4X with a vanilla Android ROM like the one that has been flashed on Galaxy Nexus or Motorola phones (I think)? I am asking because manufacturers like Samsung, LG, HTC tend to make ROMs for their smartphones and tablets with preinstalled launchers like Touchwiz or HTC Sense. They explain their decision by saying that they want to make their devices to look unique against their rival devices. The problem is that Android updates for their phones and tablets get delayed and there are incidents in which some devices - which are more than capable of running the upcoming version of Android - fall way behind or never get updated at all. So, what I am basically asking here is if there is a way to install vanilla Android, excluding CyanogenMod or any other modified vanilla ROMs, on an Android based smartphone?", "My online friend is asking for money in order to visit my home country. Is this a legit request or a scam? On Travel.SE we often see questions about a person (usually a love interest) asking for money to pay for airfare, visas, permits and other expenses. For example What general advice can be given in such situations to the person asking the question? Is it all a scam or can there be legitimate situations in which an online friend could be asking for money?", "Is a particular sequence required for detailed replicator requests? To elaborate, is there a reason Captain Picard orders his tea, \"Tea. Earl Grey. Hot.\" aka \"Noun. Descriptor. Descriptor.\" and not \"Descriptor. Descriptor. Noun.\" or \"Descriptor. Noun. Descriptor.\" (in the event he forgot a descriptor)? Would ordering it as \"Hot. Earl Grey. Tea.\" or even the non-statement \"Hot Earl Grey tea.\" produce a warm (hot), smoky (gray-ish) gas with the odor of tea? I assume his ordering sequence is an acquired background affectation, but I'd like confirmation. Note: I'm using \"descriptor\" instead of \"adjective\" to avoid minutia/debate about classification.", "JSON encode MySQL results How do I use the json_encode() function with MySQL query results? Do I need to iterate through the rows or can I just apply it to the entire results object?", "Writing test code for wrapper class I created a controller which looks like this public with sharing class EventRegistrationController { // A CONTROLLER FUNCTION // FUNCTION RETURNS A LIST OF cSession public List<cSession> getSessions() { //DO STUFF } //A PUBLIC CLASS WITHIN CONTROLLER @TestVisible public class cSession { public Session__c con {get; set;} public Boolean selected {get; set;} //This is the contructor method. public cSession(Session__c c) { con = c; selected = false; } } } I need to write a test code for the controller, how can I create a list of cSession and call getSession function?", "Execute a large SQL script (with GO commands)", "I'm on a Toshiba Satellite C660_EL trying to install . lspci -v Network controller: Realtek Semiconductor Co., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter (rev 01) However, I can't get the driver from there to compile (I've installed build-essentials already). Running make (with or without sudo makes no difference) I get make -C /lib/modules/3.8.0-19-generic/build M=/root/rtl_driver modules make[1]: Entering directory `/usr/src/linux-headers-3.8.0-19-generic' CC [M] /root/rtl_driver/base.o In file included from /root/rtl_driver/base.c:39:0: /root/rtl_driver/pci.h:247:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl_pci_probe’ make[2]: *** [/root/rtl_driver/base.o] Error 1 make[1]: *** [_module_/root/rtl_driver] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-3.8.0-19-generic' make: *** [all] Error 2 There is a relevant PPA here: but there's no 13.04 build. Thanks in advance for any help!", "Objects Not Showing in Other Workspace Viewports, Only Default" ]
medi_sts_stackexchange_dupe
Did Peter Pettigrew need the wand to transform back into a rat?
Animagi (Sirus specifically) and wands?
[ "How do I set a user environment variable? (permanently, not session) This is irritating me. I seen several suggestions (all using different files and syntax) and none of them worked. How do I set an environment variable for a specific user? I am on debian squeeze. What is the exact syntax I should put in the file to make ABC = \"123\"?", "Is it possible to use text-overflow:ellipsis on multiline text?", "Prove every element of $G$ has finite order. Let $G$ be a group such that the intersection of all its subgroups which are different from $\\{e\\}$, is a subgroup different from $\\{e\\}$. Prove that every element of $G$ has finite order. Assume that $a$ has infinite order in $G$. Then let $y\\neq e$ belong to the intersection of all subgroups of $G$ different from $\\{e\\}$. Then $y=a^n$ and $y$ will also belong to subgroup generted by $a^2$ hence $y=a^{2m}$ for some integers $m$. This contradicts that $a$ has infinte order. Is this correct?", "The difference between two periodic functions converges to zero, is this two functions identical? If $f(x)$ and $g(x)$ are two periodic functions, that is, $f(x+T_1)=f(x)$ and $g(x+T_2)=g(x)$ for every $x \\in \\Bbb R$. Now that $\\displaystyle\\lim_{x\\to\\infty}(f(x)-g(x))=0$. Conjecture: $f(x) \\equiv g(x)$.", "We know that $$\\int_0^\\infty \\left(\\frac{\\sin x}{x}\\right)^2 dx=\\int_0^\\infty \\frac{\\sin x}{x} \\, dx=\\frac{\\pi}{2}.$$ How do I show that $$\\int_0^\\infty \\left\\vert\\frac{\\sin x}{x} \\right\\vert \\, dx$$ converges?", "For a polynomial $p(z)$, prove there exist $R>0$, such that if $|z|=R$, then $|p(z)|\\geq |a_n|R^n/2$ For a polynomial $p(z)=a_0+\\ldots+a_nz^n$, prove there exist $R>0$, such that if $|z|=R$, then $|p(z)|\\geq |a_n|R^n/2$. I get $|p(z)|\\geq |a_n|R^n$, which makes that factor of $1/2$ useless. So I must have done something wrong. $$|\\frac{\\partial^n{f}}{\\partial z^n}(P)|\\leq \\frac{\\sup_{z\\in \\overline{D}(P,r)} |f(z)|k!}{r^k}$$. This is the Cauchy estimate. $$|\\frac{\\partial^n{p}}{\\partial z^n}(z)| = |a_n n!|$$ $$|\\frac{\\partial^n{p}}{\\partial z^n}(0)|\\leq \\sup_{\\zeta\\in \\overline{D}(0,|z|)} |p(\\zeta)|n!/R^n$$ $$|a_n n!|\\leq \\sup_{\\zeta\\in \\overline{D}(0,|z|)} |p(\\zeta)|n!/R^n$$ $$R^n |a_n|\\leq \\sup_{\\zeta\\in \\overline{D}(0,|z|)} |p(\\zeta)|$$ There exist a $z_0$, such that $|z_0|>0$ and $$\\sup_{\\zeta\\in \\overline{D}(0,|z_0|)} |p(\\zeta)| = |p(z_0)|$$. This is saying there exist a disk centered at the origin, such that $|p|$ is maximum on some point on the boundary. Let $R=|z_0|$, we have $R^n |a_n|\\leq |p(z_0)|$ Edit: I know what I got wrong. $z_0$ is just one point on the circle $|z| = R$. One can chose another point $z_1$ on the circle, such that $p(z_1)<p(z_0)$.", "Undefined variable problem with PHP function", "I'm a citizen of India and I'm travelling to Nepal by air. Is an Aadhaar Card a valid document used for travelling to Nepal by air?", "I am pretty sure $(B_{t}^{2})$ not Markov because the squared random walk is not. I guess I can repeat the method since to be Markov it must satisfy the discrete. Thanks", "Why are there two different hats for \"Where in the World\"? I am wondering why some got a moon and others got a sun as Where in the World hat for the same action: vs. And is it possible two collect both e.g. from different sites? I only get moons… I know that there has already been some spoilering .", "how to disable system apps without root?", "Can creatures without hands (and as a consequence fingers) use rings? Pretty much what it says on a label. I have a monster for my next adventure that has a pretty interesting ring in his treasure. Since it is intelligent, and would be able to use the ring, I don't see why the ring should be lying there in a chest waiting to be looted. Monster would use the ring, if it only had hands or even fingers. Hold a second, are fingers even necessary in 5e? For reference, assume it only has grasping / manipulating tentacles like a (although it is not one); Said tentacles are very flexible, capable of fine manipulation, and have varying thickness.", "Relative pronouns \"where\" and \"when\": where can they be omitted?", "I've heard that i can travel to the US any time before my tourist visa expiry. Is that true? (please advise)", "Is there a reason the British omit the article when they \"go to hospital\"?", "Are mounts proficient in armour (barding)?", "Why is any number (other than zero) to the power of zero equal to one? Please include in your answer an explanation of why $0^0$ should be undefined.", "Are there any clones/alternatives for running a Stack Exchange style Q&A site?", "Show that $n^3-n$ is divisible by $6$ using induction As homework, I have to prove that $\\forall n \\in \\mathbb{N}: n^3-n$ is divisible by 6 I used induction 1) basis: $A(0): 0^3-0 = 6x$ , $x \\in \\mathbb{N}_0$ // the 6x states that the result is a multiple of 6, right? 2) requirement: $A(n):n^3-n=6x$ 3) statement: $A(n+1): (n+1)^3-(n+1)=6x$ 4) step: $n^3-n+(n+1)^3-n=6x+(n+1)^3-n$ So when I resolve that I do get the equation: $n^3-n=6x$ so the statement is true for $\\forall n \\in \\mathbb{N}$ Did I do something wrong or is it that simple?", "Why ; is called semicolon and what is its history? Semi- is a Latin prefix meaning \"half\" and colon is another punctuation. Should I therefore say that semicolon is a halved colon?" ]
medi_sts_stackexchange_dupe
How do Mobile Idle-Games work
How do Idle games progress while not active?
[ "Wulfgar won't teach me Unrelenting Force's final word after Arngeir accepts the Horn of Jurgen Windcaller", "Solve $x=y\\frac{dy}{dx}-\\left(\\frac{dy}{dx}\\right)^{2}$", "Is it necessary that an International cricket ground should has the boundary line in circle shape?Is it allowed by ICC to make it a square or ellipse or any other? What is the minimum and maximum area allowed for an international cricket ground? What is the maximum number of international cricket grounds that a country allowed to have?", "In the various Zelda video games, there seems to be a common mythology, and at least some potential to be in the same place. Do the various Zelda games take place in the same world, or is there no intent to do so?", "Create unmanaged c++ object in c#", "Student missing exam for “medical reasons”", "Why can bases of number systems not be rational numbers? This is a question that keeps bothering me: much of mathematics was created by extending rules to new domains e.g. negative numbers were created by consistently extending arithmetic beyond positive integers. However, with number bases it seems impossible to do this. Number bases are integers, but could they be rational numbers? I've had previous discussions about this, see . One problem can be seen with this example: in base 2.5, 0.22 is greater than one. That's not what we want! What, if anything, can be done about this? EDIT: To put it another way - if every positional number is less than any digit to its left, why doesn't this apply to fractional base positional numbers?", "I'm having some problems with some scripts in bash, about errors and unexpected behaviors. I would like to investigate the causes of the problems so I can apply fixes. Is there a way I can turn some kind of \"debug-mode\" for bash, to get more information?", "Phone : nexus 5 version 2013 Android version : 6.0 Kernel version : 3.4.0-g2aa165e Build number : MRA58N For the last few days, 10118 has been draining my phone's battery. It drains battery by using GPS. I typed 'ps' in a terminal emulator, and there was no application with PID 10118. I don't know what exactly 10118 is. My guess is that it's one of recently installed weather apps. How can I fix this? Screenshots (click images for larger variants)", "Does the output bypass capacitor of an LM7805 double as a decoupling capacitor? I'm using a 5v linear regulator (specifically an LM7805) that outputs directly to an ATMEGA328P. According to the (page 23) input and output bypass capacitors should be used, as seen below, to tame peaks and ensure stability. It is good practice to also include a decoupling capacitor in front of an IC, in this case an ATMEGA328. Does the 0.1μF capacitor on the output side of the LM7805 act as a decoupling capacitor if the regulator feeds into the IC directly after the output bypass capacitor?", "I was improving some of my old posts on Stack 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 to disable the \"Your site has updated to WordPress x.y.z\" admin email? Using the automatic update of my self-hosted WordPress blogs, I configured automatic updates of both the WordPress core as well as WordPress plugins and themes (). Whenever a core update occurs, I get an email like: Your site has updated to WordPress 3.9.2 Howdy! Your site at has been updated automatically to WordPress 3.9.2. No further action is needed on your part. For more on version 3.9.2, see the About WordPress screen: If you experience any issues or need support, the volunteers in the WordPress.org support forums may be able to help. The WordPress Team I understand that I can but I would prefer to only disable the above notification. Therefore my question is: How to disable update notification emails in WordPress?", "Show that the condition number of an invertible matrix must be at least 1. What matrices have condition number equal to 1. If someone could help me with this and give an explanation that would be very helpful. I do not know where to start", "Redirect everything from old domain to new domain I need to (permanent) redirect all of the following: www.example.com www.example.com/folder sub.example.com sub.example.com/folder Basically, all URLs that are reachable without being intended to: www.new-example.com, I want to do this within Apache and using the mod_rewrite module via the .htaccess file.", "I'm having troubles with rendering my datatable correctly. There are actions added but it seems the datatable is not high enough to view it correctly. Is it something I'm doing wrong? Or is it a bug? This is the code for the datatable <div class=\"slds-text-heading_medium\">Search results</div> <lightning:datatable data=\"{! v.persondata }\" columns=\"{! v.personcolumns }\" keyField=\"id\" onrowselection=\"{! c.getSelectedPerson }\" hideCheckboxColumn=\"true\" /> Here is the code for initializing the columns //init datatable component.set('v.personcolumns', [ {label: 'Last Name', fieldName: 'LastName', type: 'text'}, {label: 'First Name', fieldName: 'FirstName', type: 'text'}, {label: 'Mailing Zip/ Postal Code', fieldName: 'PersonMailingPostalCode', type: 'text'}, {label: 'Mailing City', fieldName: 'PersonMailingCity', type: 'text'}, {label: 'Billing Street', fieldName: 'PersonMailingStreet', type: 'text'}, {label: 'Email', fieldName: 'PersonEmail', type: 'text'}, {label: 'Primary Phone', fieldName: 'PersonHomePhone', type: 'text'}, {label: 'Secondary Phone', fieldName: 'PersonOtherPhone', type: 'text'}, {type: 'action', typeAttributes: { rowActions: actions}} ]); And the code for adding data (the response is a list of Accounts) component.set('v.persondata',response.getReturnValue());", "Calculate the Factor Group $(\\mathbb{Z}_4 \\times \\mathbb{Z}_6)/\\langle(0,2)\\rangle$", "What is the most elegant proof of the Pythagorean theorem? The is one of the most popular to prove by mathematicians, and there are (including one from ). What's the most elegant proof? My favorite is this graphical one: According to cut-the-knot: Loomis (pp. 49-50) mentions that the proof \"was devised by Maurice Laisnez, a high school boy, in the Junior-Senior High School of South Bend, Ind., and sent to me, May 16, 1939, by his class teacher, Wilson Thornton.\" The proof has been published by Rufus Isaac in Mathematics Magazine, Vol. 48 (1975), p. 198.", "Why does `last` show '{' and '|' in the TTY field?", "Number of surjective functions from A to B", "Is Thomae's function Riemann integrable? Let $\\displaystyle f: [0,1] \\rightarrow \\mathbb{R}$ given by $$f(x) = \\begin{cases} 0 & x \\notin \\mathbb{Q} \\\\ \\\\ 0 & x = 0 \\\\ \\\\ \\frac{1}{q_x} & x = \\frac{p_x}{q_x} \\in \\mathbb{Q} \\backslash \\{0\\}, \\ p_x \\in \\mathbb{Z}, \\ q_x \\in \\mathbb{N}, \\ \\text{gcd}(|p_x|, q_x) = 1 \\end{cases}$$ Is $\\displaystyle f$ Riemann integrable? I am trying to use the equivalent statements $\\displaystyle g:[a,b] \\rightarrow \\mathbb{R}$ is Riemann integrable and $\\displaystyle \\forall \\epsilon >0 \\ \\exists$ step functions $\\displaystyle \\rho, \\psi$ with $\\displaystyle \\rho \\leq g \\leq \\psi$ such that $\\displaystyle \\int_a^b (\\psi - \\rho) \\leq \\epsilon$. I guess that means I would have to somehow show that given $\\displaystyle \\epsilon$, there exists only a finite amount of $\\displaystyle x \\in [0,1]$ with $\\displaystyle f(x) \\geq \\epsilon$? Is it recommended that I consider something else instead? If not, how should I do this?" ]
medi_sts_stackexchange_dupe
Unwanted glue with boxes in Picture environment
How to troubleshoot unwanted white spaces smartly?
[ "Nature of gravity: gravitons, curvature of space-time or both? General relativity tells us that what we perceive as gravity is curvature of space-time. On the other hand (as I understand it) gravity can be understood as a force between objects which are exchanging (hypothetical) virtual particles called gravitons, similar to the way electromagnetic forces are due to objects exchanging virtual photons? At least at first glance, the two concepts seem mutually exclusive. Is there a description of gravity which includes both, or is this contradiction one of the problems in combining GR with quantum mechanics?", "Encouraging people to explain downvotes Note: If you're looking for a simple explanation as to why comments aren't required on downvotes, see . I used to get \"upset\" (though that is too strong a term) when I got downvoted without comment. If my answer isn't good enough then I'd like to know why. Not only does it improve the answer for the OP but it improves my knowledge too. Where the down-vote has been explained I've found it useful & it has improved my answer, or forced me to delete the answer if it was totally wrong. So is there any way we can encourage people to leave a comment? Perhaps they don't lose rep if they explain their down-vote? I must admit though that I haven't always explained my down-vote either so you could call me a hypocrite. I've also grown a thicker skin over the months of using SO (it seems to have come with the higher rep score ;-)), so I'm less bothered about this now.", "Glossaries: Make a glossary entry recognizable in printing How do you make it visible to the reader that the printed word/term is an entry in the glossary? In my PDF on the computer, I just see it because I use the hyperref package and there's a red box around it. But when printing it, there's just nothing that makes it visible to the user. Is there a typographically good and common way of doing this?", "What are the convergent sequences in the cofinite topology I consider the co-finite topology on $\\mathbb{R}$ that is $$\\{G\\subset \\mathbb{R}, card(\\mathbb{R}\\setminus G)<+\\infty\\}\\cup \\{\\emptyset\\}$$ What are the convergent sequences in this space . thank you", "Is it possible to reconstruct the Hamiltonian from knowledge of its ground state wave function? Is it possible to \"construct\" the Hamiltonian of a system if its ground state wave function (or functional) is known? I understand one should not expect this to be generically true since the Hamiltonian contains more information (the full spectrum) than a single state vector. But are there any special cases where it's possible to obtain the Hamiltonian? Some examples would be really helpful.", "Problem: Let $A_{n.n}$ be square complex matrix. Prove the following: $$\\left \\| A \\right \\|=\\left \\| A \\right \\|_{HS}\\Leftrightarrow rank(A)\\leqslant 1$$. Where $\\left \\| . \\right \\|_{HS} $ is the Hilbert Schmidt Norm. Please read my solution and tell me whether it is correct. If not, let me know where the mistake is. Proof of the implication $\\Leftarrow $: If $rank(A)=0$, then in this case $A=0$. It follows that $\\left \\| A \\right \\|=\\left \\| A \\right \\|_{HS}=0$ If $rank(A)=1$, than: $ A=\\begin{pmatrix} A_{1}\\\\ \\alpha _{2}A_{1}\\\\ ...\\\\ \\alpha _{n}A_{1} \\end{pmatrix}$ where $A_{1}$ is the first row of $A$ and in this case: $\\left \\| A \\right \\|=\\left \\| A \\right \\|_{HS}=\\left \\| A_{1} \\right \\|\\sqrt{1+\\alpha _{1}^{2}+...+\\alpha _{n}^{2}}$ Proof of the implication $\\Rightarrow $ We know that $\\left \\| A \\right \\|=max_{\\left \\| x \\right \\|=1}\\left \\| Ax \\right \\|$ On the other hand: $ A=\\begin{pmatrix} A_{1}\\\\ A_{2}\\\\ ... \\\\ A_{n} \\end{pmatrix}$. So, $$\\left \\| Ax \\right \\|=\\left \\| \\begin{pmatrix} \\left \\langle A_{1},x \\right \\rangle\\\\ \\left \\langle A_{2},x \\right \\rangle\\\\ ...\\\\ \\left \\langle A_{n},x \\right \\rangle\\end{pmatrix} \\right \\|=\\sqrt{\\left \\langle A_{1},x \\right \\rangle^{2}+\\left \\langle A_{2},x \\right \\rangle^{2}+...+\\left \\langle A_{n},x \\right \\rangle^{2}} $$ Where $ \\left \\langle A_{i},x \\right \\rangle$ is the inner product of $A_{i}$ and $x$ Using the Cauchy-Schwarz inequality: $\\left \\langle A_{i},x \\right \\rangle^{2}\\leq \\left \\| A_{i} \\right \\|^{2}\\left \\| x \\right \\|^{2}$, we get: $\\left \\| A \\right \\|=max_{\\left \\| x \\right \\|=1}\\left \\| Ax \\right \\|\\leq max_{\\left \\| x \\right \\|=1}\\left \\| x \\right \\|\\left \\| A \\right \\|_{HS}=\\left \\| A \\right \\|_{HS}$. In order to have the equality: $\\left \\| A \\right \\|=\\left \\| A \\right \\|_{HS}$, we should have: $\\left \\langle A_{i},x \\right \\rangle^{2}=\\left \\| A_{i} \\right \\|^{2}\\left \\| x \\right \\|^{2} $ which occurs only if $A_{i}=\\lambda _{i} x$. So, the rows of A are dependent, which implies that $rank(A)=1$. Note that the case $rank(A)=0$ happens when $A=0$ Please let me know if my solution makes sense.", "How does java do modulus calculations with negative numbers?", "How to Disable new terms (free tagging) with Taxonomies? I have a \"term reference\" field, in a form that uses an auto-complete widget. I want to limit user input to terms in the vocabulary only, and output a message when a user tries to enter a non existing term. I found the module. However this does not work with forms that contain a field collection or a field group. There is also a contributed patch . But I was wondering whether there was a simpler/cleaner solution like a module or maybe I missed an already existing way of doing it with latest drupal and taxonomy versions.", "It seems common that PBX and other telephone hardware use a positive-ground power supply, where the \"hot\" line is at -48v. What's the reason for that?", "Drawing on an image with TikZ", "I saw hosted by Stephen Hawkins. And if I didn't get it wrong, it says that there was no time before the big bang, time was created there. So how can anything happen when there is no time (eg: the creation of time and the universe)? Is this what he calls a 'singularity'? Which I could think like this: when there is no time nothing can happen, except during this singularity. Of course I don't know of a law that says 'when there is no time nothing can happen..', I just came up with it, as something intuitive.", "Prove without using graphing calculators that $f: \\mathbb R\\to \\mathbb R,\\,f(x)=x+\\sin x$ is both one-to-one, onto (bijective) function. Prove that the function $f:\\mathbb R\\to \\mathbb R$ defined by $f(x)=x+\\sin x$ for $x\\in \\mathbb R$ is a bijective function. The codomain of the $f(x)=x+\\sin x$ is $\\mathbb R$ and the range is also $\\mathbb R$. So this function is an onto function. But I am confused in proving this function is one-to-one. I know about its graph and I know that if a function passes the horizontal line test (i.e horizontal lines should not cut the function at more than one point), then it is a one-to-one function. The graph of this function looks like the graph of $y=x$ with sinusoids going along the $y=x$ line. If I use a graphing calculator at hand, then I can tell that it is a one-to-one function and $f(x)=\\frac{x}{2}+\\sin x$ or $\\frac{x}{3}+\\sin x$ functions are not, but in the examination I need to prove this function is one-to-one theoritically, without graphing calculators. I tried the method which we generally use to prove a function is one-to-one but no success. Let $f(x_1)=f(x_2)$ and we have to prove that $x_1=x_2$ in order fot the function to be one-to-one. Let $x_1+\\sin x_1=x_2+\\sin x_2$ But I am stuck here and could not proceed further.", "How do I use/change Animation Extrapolation? (Can't find F-Curves / Animation Modifiers in 2.8(1))", "There are several reasons to be looking for a ROM: Upgrading or downgrading your stock ROM Looking for firmware from a different region/language Flashing a custom ROM for different features, removing bloat, etc. But where can one find ROMs in the first place? What sites are likely to have the ROM I need? ; please add to the wiki answer instead of posting separate answers. See also:", "Can you make a non-polar electrolytic capacitor out of two regular electrolytic capacitors? There was some discussion on this question which I don't see as being conclusively resolved: \"turns out that what might LOOK like two ordinary electrolytics are not, in fact, two ordinary electrolytics.\" \"No, do not do this. It will act as a capacitor also, but once you pass a few volts it will blow out the insulator.\" 'Kind of like \"you can't make a BJT from two diodes\"' \"it is a process that a tinkerer cannot do\" So is a non-polar (NP) electrolytic cap electrically identical to two electrolytic caps in reverse series, or not? Does it not survive the same voltages? What happens to the reverse-biased cap when a large voltage is placed across the combination? Are there practical limitations other than physical size? Does it matter which polarity is on the outside? I don't see what the difference is, but a lot of people seem to think there is one. Summary: As posted in one of the comments, there's a sort of electrochemical diode going on: The film is permeable to free electrons but substantially impermeable to ions, provided the temperature of the cell is not high. When the metal underlying the film is at a negative potential, free electrons are available in this electrode and the current flows through the film of the cell. With the polarity reversed, the electrolyte is subjected to the negative potential, but as there are only ions and no free electrons in the electrolyte the current is blocked. — Normally a capacitor cannot be reverse-biased for long, or large currents will flow and \"destroy the center layer of dielectric material via electrochemical reduction\": An electrolytic can withstand a reverse bias for a short period, but will conduct significant current and not act as a very good capacitor. — However, when you have two back-to-back, the forward-biased capacitor prevents a prolonged DC current from flowing. : For circuit positions when reverse voltage excursions are unavoidable, two similar capacitors in series connected “back to back” ... will create a non-polar capacitor function ... This works because almost all the circuit voltage is dropped across the forward biased capacitor, so that the reverse biased device sees only a negligible voltage. : The oxide dielectric construction that is used in tantalum capacitors has a basic rectified property which blocks current flow in one direction and at the same time offers a low resistance path in the opposite direction.", "Prove that $A = B = C = D$ $A, B, C, D$ are sets, where $A \\not = \\emptyset$ and $B \\not = \\emptyset$. Equation $(A \\times B) \\cup (B \\times A) = C \\times D$ is true. Prove that $A = B = C = D$. I tried to find $A, B, C, D$ separately, but that didn't get me anywhere. Any ideas how to solve it?", "How to store date/time and timestamps in UTC time zone with JPA and Hibernate", "Can I speed up iCloud photo sync between iPhone and Macbook? I have an iPhone 5 running iOS 9.1 and a Macbook Pro running Yosemite. Both devices are set up to sync photos to and from iCloud. When I take a photo on the iPhone (for further processing on the Macbook), it takes an inordinate amount of time until the photo shows up in the Macbook's photos library - sometimes up to 10-20 minutes. Sometimes it seems to work faster if I quit the Photos app on both devices, and start it again. I often end up sending myself photos through E-Mail because it's quicker. That seems ridiculous! Is there a way to force a sync on the iPhone, or to speed up the process some other way?", "Making crafted items usable in adventure mode In a map I'm making the player has to survive while locked in a maze. To stop them from breaking out, they will be in adventure mode. However, I still want them to be able to craft items and use them with specified blocks. I have tried several methods already but they all have a flaw. One method is to have a scoreboard objective called item and giving certain item entities a specific score using something like: /scoreboard players set @e[type=Item] item 1 {Item:{id:\"minecraft:sapling\"}} Then it is possible to select these items with: /entitydata @e[type=Item,score_item=1,score_item_min=1] {Item:{tag:{CanPlaceOn:[\"dirt\"],HideFlags:24}}} This works but it requires the item to be dropped, which isn't a problem for saplings, but for tools and other craftable items, it becomes a hassle. To fix this, I'm currently clearing tools without damage and giving the player a slightly damaged tool in return: /clear @a minecraft:stone_axe 0 1 /give @a minecraft:stone_axe 1 1 {CanDestroy:[\"log\",\"log2\",\"leaves\",\"leaves2\"],HideFlags:24} This doesn't work for items without damage values (e.g. torches), but I don't mind these having to be dropped as there aren't too many of these. However, there is another problem. In the nether, the player will have access to an enchantment table and an anvil. This means they can repair enchanted tools, which will cause them to be cleared and replaced with unenchanted ones as soon as they go back to the overworld. I also thought about using a stat.craftItem scoreboard objective and giving them the usable item if they craft it. However, this would result in the player having a duplicate of every item they crafted, as I think it is impossible to select an item without NBT-data in the /clear command. Is there any way to make this work? And if not, would it be better to have the player drop all crafted items or have duplicates of them all?", "Test the series whose general term is: $$\\sqrt{n^2 + 1} - n$$ This is from Higher Algebra by Henry Sinclair. I'm struggling to understand how this series is divergent. If you do the following expansion: $$\\sqrt{n^2 + 1} - n$$ $$= n\\biggl(1 + \\frac{1}{n^2}\\biggr)^\\frac{1}{2} - n$$ $$= n + \\frac{1}{2n} - \\frac{1}{8n^3} + ... - n$$ $$= \\frac{1}{2n} - \\frac{1}{8n^3} + ... $$ The remaining series appears to converge to zero as $n$ approaches infinity. Their explanation is similar to mine, but at the end they say that the above series approaches $\\frac{1}{2n}$. From there they directly say that the series is divergent. Earlier in the chapter, it's proved that the expansion of $(1 + x)^n$ is convergent for $x < 1$. In this case, $\\frac{1}{n^2} < 1$ as $n$ approaches infinity, so I would assume that the series converges. The solution to the problem is given (number 17) Any help is appreciated. Thanks." ]
medi_sts_stackexchange_dupe
Remove Portion of Query String based on a variable parameter value
How do you use a variable in a regular expression?
[ "How to use multiple Effect Strips in Blender Video Sequence Editor?", "Encouraging software publishers to use StackExchange as support mechanism Whenever I deal with an application publisher's custom support mechanism because I can't see any evidence of activity on StackExchange, I always wish they'd just migrate to StackExchange, particularly when I get a prompt response from them. What a waste, I think, that my question and answer weren't captured on SE. In cases where there is some activity for the application on SE, I'll post my question there and, if I get no response, reference the SE question in my email follow-up. In the case of , that had a happy ending where the support person posted the answer to the SE site at the same time they emailed me. My related meta questions are: Are there any obvious downsides to publishers effectively \"giving up\" their custom support mechanisms, or at least their custom forum, in favor of the appropriate SE site? Are there any obvious downsides to SE for publishers making this transition? Is SE staff engaged in any systematic marketing efforts to get publishers to make this transition? Is there any SE documentation which lists the advantages of publishers making this transition?", "Question is pretty much in the title: is it possible for an alliance to win as one, instead of a single player being the winner? And if there is such way, is there a difference between classic and disharmony?", "Im trying to solve the following question In the second step where do they get $k!=2^k-1?$", "How should I install HPLIP binary/proprietary plugin/driver for my HP printer or printer+scanner? Let's assume that one has some modern HP printer and/or scanner which is supported by HPLIP package from official repository. Or supported by newer version of HPLIP package (see about installation). From official documentation () it is known that device needs proprietary/binary driver or plugin. How should one install such plugin?", "Do Thorncaster Sliver's triggered abilities go on the stack? I was guessing, since you actually target things instead of just dealing damage (similar to ), 's triggered abilities would actually go on the stack. This came up in a separate game this past Friday when the Sliver deck attacked with two s, one , and two s while his opponent had a as well as some 2/2. The reason this even came up was because, if the triggers went on the stack, you could target things so they resolve in the following order: Predatory Sliver targets Blood Artist, killing it. Predatory Sliver targets the 2/2, dealing one damage to it. Thorncaster Sliver targets the 2/2, killing it. and 5. Both Manaweft Slivers target the player, dealing one damage each to him.", "Overcoming ~5000 File Document Library Limits Microsoft technet states that document libraries have a file limit of 30 million items: In practice, numerous features seem to break once there are more than 5000 items in a Document library - not just in the initial directory listing - but as a recursive total. For example, you may be able to list folders, but setting permissions or deleting files is met with errors. Are there any configuration options or optimizations that can be used to relax these limits? A workaround would be to split folders into separate document libraries, but in our case, with over 5 million files, this would result in a minimum of 1000, 5000 file document libraries and likely many more. At that point we're likely shifting the problem into the library view. A major showstopper is the effect this has on Sharing - a user trying to share a folder with more than 5000 aggregate items simply fails. I'm investigating the effect (if any) the resource throttling suggestion below has on this.", "In a ring homomorphism we always have $f(1)=1$?", "Real UID, effective UID, and some systems even have a \"saved UID\". What's the purpose of all these, especially the last one?", "I have quite a bad habit of copy-and-pasting my packages from one LaTeX document to another. Is there any way we can detect unused packages (i.e. \\usepackage commands) so that they can be removed from the LaTeX document?", "How do you prove the follwing $|\\sqrt[n]{x}-\\sqrt[n]{y}| \\le \\sqrt[n]{|x-y|}$ how do you prove this inequality? $|\\sqrt[n]{x}-\\sqrt[n]{y}| \\le \\sqrt[n]{|x-y|}$ At first glance I thought the triangle inequality would be useful but it's not form what I see. If I raise everything to the power of n I get the following: Possibility 1 (n uneven) : $|x + ... -y| \\le |x-y|$ I guess I would have to prove that ... $\\le$ 0 but I don't know how to do that. Possibility 2 (n even) : $|x + ... +y| \\le |x-y|$ Same as above but now I have to prove that ... $\\le$ -y. Am I even on the right track here? Any help would be appreciated. Thanks in advance.", "Sorting citations using \\cites command in biblatex I am using biblatex for citations and bibliography. Now I often have lists of multiple citations, for which biblatex has the \\cites command. Now I can get citations to automatically sort if I don't want page numbers, but I cannot get it right with page numbers. What I want is all citation ordered chronological (oldest first). Is this possible, or must I just do this by hand? Here is an example. \\documentclass[11pt,oneside]{memoir} \\usepackage[ style=authortitle, useprefix=false, maxnames=2, firstinits=true, sortcites=true, uniquename=init, abbreviate=true, backend=biber, sorting=ynt ]{biblatex} \\begin{filecontents}{jobname.bib} @book{tom1, author = {Author, A.}, year = {2001}, title = {This book is from 2001}, shorttitle = {2001}, } @book{tom2, author = {Author, A.}, year = {1999}, title = {This book is from 1999}, shorttitle = {1999}, } \\end{filecontents} \\addbibresource{jobname.bib} \\begin{document} This one is corrent.\\footnote{\\Cites{tom1,tom2}.} This one is corrent.\\footnote{\\Cite{tom1,tom2}.} This one is incorrent.\\footnote{\\Cites{tom1}{tom2}.} This one is incorrent.\\footnote{\\Cites[1]{tom1}[12]{tom2}.} \\end{document}", "How to set root password to null", "Can I gift games from my library? I understand that once a game is in the library it cannot be removed, only hidden. My question is, can I gift an uninstalled copy of a game to a friend? I understand that this may be impossible due to legal issues, and that once a game is in the library it stays.", "I made a map with annotations in QGIS 3.0. This is how it looks like in the layout view: If I print the map as PDF, one would expect to get the PDF to be WYSIWYG, right? However, it looks like this (it's about half the size): Is there a way to influence the the scaling of the Annoations? I already tried to play with the Scale and Magnifier in the map view. I also tried to change the Scale in the map item. The strange thing is, I believe it worked a few days ago. But today I installed QGIS 3.0 on a new PC and it showed the same behaviour...", "How do you run your own code alongside Tkinter's event loop? 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 <b1-motion>, 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.", "Limit of divided integrals Prove that: $$\\lim\\limits_{m\\to \\infty} \\frac{\\int\\limits_0^{\\pi/2}(\\sin(x))^{2m} dx}{\\int\\limits_0^{\\pi/2}(\\sin(x))^{2m+1} dx} = 1$$ I had tried to get it from inequalities like $$(\\sin(x))^{2m+1} \\le (\\sin(x))^{2m} \\le (\\sin(x))^{2m-1}$$ But I always hit a wall in that regard (I integrate the sin functions and from there keep on going but there it ends).", "Title vanishes when editing a question", "can I change value of $_SERVER['DOCUMENT_ROOT']?", "About finding the function such that $f(xy)=f(x)f(y)-f(x+y)+1$" ]
medi_sts_stackexchange_dupe
Syntax highlighting razor views
What is syntax highlighting and how does it work?
[ "How long typically are paper reviews? Is there such a thing as “too long”? When you review papers submitted for publication, is there an “optimal” length for reviews? In my experience as an author and referee, I have seen a large range of review lengths (for reference, a paper in my field is typically between 3 and 8 printed pages): Zero length: for some of the papers I have authored, the reviewer just clicked the “accept as is” or “reject” checkmark on the review sheet, without adding any comment (at least, not any comment visible to me). It's not so common, but it has happened. Short length: a lot of time, I received reviews who consisted of a single paragraph. Medium: one full page, maybe two pages. Although I have never received any such long reviews, I have myself written on a few occasions reviews that exceed two pages, including once or twice a four or five-page review. These were cases where the paper was good, but could be (in my view) much improved and some of the aspects/consequences had escaped the authors' consideration. I am wondering how useful reviews of various length are to editors. I often consider that “unmotivated” reviews are useless, as they do not give any real insight about the paper to the editor. For example, if the editor gets two conflicting non motivated reviews, how is she to decide? On the other hand, although I write some from time to time, I have never received long reviews, so… is this something frowned upon?", "How to avoid pagenumering with text in scrlttr2 Have a Letter in scrlttr2. I cannot avoid/exclude the text before the page number 'Seite' (see print-screen). The recommends to add \\pagenumbering{arabic}. But for my document, it has no effect. %--------------------------------------------------------------------------- \\documentclass%% %--------------------------------------------------------------------------- [fontsize=12pt,%% Schriftgroesse %--------------------------------------------------------------------------- % Satzspiegel paper=a4,%% Papierformat enlargefirstpage=on,%% Erste Seite anders pagenumber=footcenter,%% Seitenzahl oben mittig %--------------------------------------------------------------------------- % Layout headsepline=on,%% Linie unter der Seitenzahl parskip=half,%% Abstand zwischen Absaetzen %--------------------------------------------------------------------------- % Formatierung draft=on%% Entwurfsmodus ]{scrlttr2} %--------------------------------------------------------------------------- \\usepackage{german} \\usepackage[T1]{fontenc} \\usepackage[utf8]{inputenc} %--------------------------------------------------------------------------- \\begin{document} %--------------------------------------------------------------------------- % Briefstil und Position des Briefkopfs \\LoadLetterOption{DIN} %% oder: DINmtext, SN, SNleft, KOMAold. \\makeatletter \\pagenumbering{arabic} %--------------------------------------------------------------------------- % Seitenstil \\pagestyle{plain}%% keine Header in der Kopfzeile %--------------------------------------------------------------------------- \\begin{letter}{Herr\\\\ Mustermann\\\\ Straße 1\\\\ 12345 Stadt} %--------------------------------------------------------------------------- \\setkomavar{subject}{Beispielschreiben} %--------------------------------------------------------------------------- \\opening{Liebe Herr Mustermann,} here is some Text. \\pagebreak here is some Text. %--------------------------------------------------------------------------- \\end{letter} %--------------------------------------------------------------------------- \\end{document} %---------------------------------------------------------------------------", "Proof of an elementary property of Projection Operators I'm asked to show the following: Let $X$ be a linear space, and let $P : X \\rightarrow X$ be a projection operator. Restricted to the linear space $range(P)$, the projection $P$ is the identity operator, that is, $Px = x$ for all $x \\in range(P)$. If anyone could offer a hint for how to show this. I'm rusty with linear algebra so don't really know what I'm supposed to bring in outside of what's specified in the lemma/definition of projection. What is so special about the range of P that would make this so?", "What is the difference between public, protected, package-private and private in Java? In Java, are there clear rules on when to use each of access modifiers, namely the default (package private), public, protected and private, while making class and interface and dealing with inheritance?", "How can I show that \"A center of a free group that is non-cyclic is trivial\" ?", "MySQL cartesian product between two SELECT statements", "Error : Warning: strpos() [function.strpos]: Offset not contained in string - can not find solution", "\"Results found containing ___\" too close to header", "Predicate Calculus Practice I've been doing some practice questions in the textbook for an upcoming predicate calculus lecture and I think I've managed to get A and B (possibly C) correct but I am clueless on how I can manage D and E. For A I got: ∃x(R(x)∧¬B) For B I got: ∀x(¬R(x)∧B) For C I got: ∃x(R(x)∧(x=y)) - Not sure if this is even remotely correct R(X) : ”X is rich” X = Y : ”X equals Y” B : ”Bill Gates” a) Someone besides Bill Gates is rich. b) Bill Gates alone is rich. c) At least two people are rich. d) Exactly one person is rich. e) Exactly two persons are rich. The universe of discourse is the set of all people.", "What would I do if I want to have a generic method that only accepts types that have overloaded an operator, for instance the subtraction operator. I tried using an interface as a constraint but interfaces can't have operator overloading. What is the best way to achieve this?", "What is the difference between old style and new style classes in Python?", "The Fibonacci sequence is defined recursively by $F_1 = 1, F_2 = 1, \\; \\& \\; F_n = F_{n−1} + F_{n−2} \\; \\text{ for } n ≥ 3.$ Prove that $2 \\mid F_n \\iff 3 \\mid n.$ Proof by Strong Induction : $\\bbox[5px,border:1px solid green]{\\color{green}{n = 1 }}$ $2 \\mid F_1$ is false. Also, $3 \\mid 1$ is false. The implication [False $\\iff$ False] is vacuously true. $\\bbox[5px,border:1px solid green]{\\color{green}{\\text{Induction Hypothesis}}}$ Assume that $2 \\mid F_i \\iff 3 \\mid n$ for every integer $i$ with $1 ≤ i ≤ k$. $\\bbox[5px,border:1px solid green]{\\color{green}{k + 1 \\text{th Case}}} \\;$ To prove: $\\quad 2 \\mid F_{k + 1} \\iff 3 \\mid k + 1.$ $\\bbox[5px,border:1px solid green]{\\color{green}{n = k + 1 = 2}} \\;$ $2 \\mid F_2$ is false. Also, $3 \\mid 2$ is false. So [False $\\iff$ False] is vacuously true. Hence assume that $k + 1 ≥ 3.$ We now consider three cases: $\\bbox[5px,border:1px solid green]{\\color{green}{\\text{Case 1: } k + 1 = 3q}}$ Thus $3 \\require{cancel}\\cancel{\\mid} k$ and $3 \\require{cancel}\\cancel{\\mid} (k − 1)$. By the ind hyp, $3 \\require{cancel}\\cancel{\\mid} k \\iff F_k$ odd & $3 \\require{cancel}\\cancel{\\mid} (k − 1) \\iff F_{k - 1}$ odd. Since $F_{k+1} = F_k + F_{k−1}$, thus $F_{k+1}$ = odd + odd = even. $\\bbox[5px,border:1px solid green]{\\color{green}{\\text{Case 2: } k + 1 = 3q + 1}}$ Thus $3 | k$ and $3 \\require{cancel}\\cancel{\\mid} (k − 1).$ By the ind hyp, $3 | k \\iff F_k$ even & $3 \\require{cancel}\\cancel{\\mid} (k − 1) \\iff F_{k - 1}$ odd. Thus $F_{k+1}$ odd. $\\bbox[5px,border:1px solid green]{\\color{green}{{\\text{Case 3: }} k + 1 = 3q + 2}}$ Thus $3 \\require{cancel}\\cancel{\\mid} k$ and $3 | (k −1).$ By the ind hyp, $3 \\require{cancel}\\cancel{\\mid} k \\iff F_k$ odd and $3 \\mid (k − 1) \\iff F_{k - 1}$ even. Thus $F_{k+1}$ odd. $\\blacksquare$ $\\Large{1.}$ Does the proof clinch the $(\\Leftarrow)$ of the $(k + 1)$th case? $\\Large{2.}$ Since the recursion contains $n, n - 1, n - 2$, thus the recursion \"time lag\" is $3$ here. So shouldn't $3$ base cases be checked? $\\Large{3.}$ Further to #2, shouldn't \"assume $k + 1 \\geq \\cancel{3} 4$\" instead? $\\Large{4.}$ Shouldn't the $n = k + 1 = 2$ case precede the induction hypothesis? I referenced . Source: Exercise 6.35, P152 of Mathematical Proofs, 2nd ed. by Chartrand et al Supplement to peterwhy's Answer: $\\Large{1.1.}$ I wrongly believed that all 3 Cases proved the $\\Leftarrow$. I now see that Case 1 is $\\Leftarrow$ via a Direct Proof. Cases 2 and 3 are $\\Rightarrow$ via a Proof by Contraposition. Nonetheless, how would one foreknow/prevision to start from $3 \\mid n$ for both directions of the proof?", "If every pair of congruence equations admits solutions, then the entire system admits solutions Let a system of three linear congruence equations in integers be given; \\begin{cases}x\\equiv b_1\\mod c_1\\\\ x\\equiv b_2\\mod c_2\\\\ x\\equiv b_3\\mod c_3\\\\ \\end{cases} with $c_1,c_2,c_3\\in\\mathbb Z_{+}$. Show that, if every pair of congruence equations admits solutions, then the entire system admits solutions. Now, if every pairs admits solutions, then for example $b_1\\equiv b_2\\equiv a\\mod \\gcd(c_1,c_2)$ for some $a$ then; $x-a\\equiv b_1-a\\mod c_1$ $x-a\\equiv b_2-a\\mod c_2$ replacing $x$ by $x':=\\frac{x-y}{\\gcd(c_1,c_2)}$, we obtain: $x'\\equiv b_1'\\mod c_1'$ $x'\\equiv b_2'\\mod c_2'$ and since $\\gcd(c_1,c_2)=1$ by Chinese Remainder Theorem we have a unique solution $\\mod{c_1'c_2'}$, so $x\\equiv (\\gcd(c_1,c_2)x'+a)\\mod{\\operatorname{lcm(c_1',c_2')}}\\quad(1)$ We can do it with another pair (take $2$nd and $3$rd, since we know that such a pair admits solutions; $x\\equiv(\\gcd(c_2,c_3)x''+a')\\mod{\\operatorname{lcm(c_2',c_3')}}\\quad(2)$ Now how can I show that for the pair $(1)$ and $(2)$ also solutions exist ?", "Prove $(a^2+b^2)(c^2+d^2)\\ge (ac+bd)^2$ for all $a,b,c,d\\in\\mathbb{R}$. Prove $(a^2+b^2)(c^2+d^2)\\ge (ac+bd)^2$ for all $a,b,c,d\\in\\mathbb{R}$. So $(a^2+b^2)(c^2+d^2) = a^2c^2+a^2d^2+b^2c^2+b^2d^2$ and $(ac+bd)^2 = a^2c^2+2acbd+b^2d^2$ So the problem is reduced to proving that $a^2d^2+b^2c^2\\ge2acbd$ but I am not sure how to show that", "How to check file types of uploaded files in PHP? On the PHP website, the only real checking they suggest is using is_uploaded_file() or move_uploaded_file(), . Of course you usually don't want user's uploading any type of file, for a variety of reasons. Because of this, I have often used some \"strict\" mime type checking. Of course this is very flawed because often mime types are wrong and users can't upload their file. It is also very easy to fake and/or change. And along with all of that, each browser and OS deals with them differently. Another method is to check the extension, which of course is even easier to change than mime type. If you only want images, using something like getimagesize() will work. What about other types of files? PDFs, Word documents or Excel files? Or even text only files? Edit: If you don't have or and system(\"file -bi $uploadedfile\") gives you the wrong file type, what other options are there?", "I'm going to install 64 bit 14.04 on a new machine with something like 1 to maybe 128GB RAM and even more RAM later. How much space should I allocate to the swap partition? And especially: WHY those recommendations for these numbers? (None of the existing answers and explain any of the why and are a bit dated if we look at 1GB or RAM and up)", "Why can I not access a file named `-` when quoting? I have a file called -. I want to display its contents. One way is to do cat ./- since cat - reads from standard input. However, why are cat \"-\" and cat '-' also interpreted by the shell as cat -?", "How to convert coordinates from vertex to world-space? How do I convert from object-space to world-space? I suspect it is: vert_os = obj.vertices[foo] vert_ws = vert_os.getPositionFromMatrix(obj.matrixWorld) but does the matrix also handle translations, or do I need to handle that separately? Can someone link to the relevant documentation?", "Where do AirDrop files go when I transfer them between an iPad, iPhone and iPod? I AirDropped some Google Docs from my iPad to my iPhone but nothing happened; where did my files go? The file was a list of tools.", "Probably not with Trello, but maybe with some integration. What I need is a solution for archiving cards because I'm not going to work with them now, but later they would come back, so I would remember doing what should be done. Something in the lines of some email \"follow up\" services out there that help you remind things and at the same time keep your inbox clean." ]
medi_sts_stackexchange_dupe
$\lim_{t \to \infty} t\mu(f > t) = 0$ but $f \not \in L^1$
Find a non-negative function on [0,1] such that $t\cdot m(\{x:f(x) \geq t\}) \to 0$ that is not Lebesgue Integrable
[ "How can I remap a keyboard key? One of my laptop's keys has fallen off. Is there any way I can remap another key to serve as that key? I'll 'sacrifice' the other key because I never use it.", "Slit screen and wave-particle duality In a double-slit experiment, interference patterns are shown when light passes through the slits and illuminate the screen. So the question is, if one shoots a single photon, does the screen show interference pattern? Or does the screen show only one location that the single photon particle is at?", "Can I make a custom node from a group and have that available in other projects? I've found some neat combinations of nodes to create certain effects, so I'd like to make them a group and then have that node available on my list of available nodes, even when I reload the startup file. How would I do that?", "OR operator in C not working", "I am with the Google login for Pokemon Go. Is there any way, be it contacting support or through Trainer Club, to either link my Google account to a new Trainer Club account or transfer my account to a Trainer Club account? It seems like a better idea to have a Trainer Club account, so if there are Google login problems it won't matter. Does anyone know if something like this is possible?", "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.", "Contemporary written usage of \"whom\" in objective case Possible Duplicate: I was writing a LinkedIn recommendation one day, and ended up pondering for a while which of these forms to use: … is a great developer whom I always found easy to work with. … is a great developer who I always found easy to work with. Both are basically correct in contemporary English, right? But is one or the other preferable, and if so, why? (In this case I went with the latter, as it seemed more common (Google) and I wanted to avoid sounding unnecessarily “archaic”, although I’m not sure whether that would have been the case. Also note that I try to write in a “friendly professional” style instead of overly formal one. :-)", "Practical hyperparameter optimization: Random vs. grid search", "I was surprised to find today that I couldn't track down any simple way to write the contents of an InputStream to an OutputStream in Java. Obviously, the byte buffer code isn't difficult to write, but I suspect I'm just missing something which would make my life easier (and the code clearer). So, given an InputStream in and an OutputStream out, is there a simpler way to write the following? byte[] buffer = new byte[1024]; int len = in.read(buffer); while (len != -1) { out.write(buffer, 0, len); len = in.read(buffer); }", "JavaScript private methods", "Lie algebra of $\\left(\\begin{smallmatrix}a & b\\\\ & a^2\\end{smallmatrix}\\right )$ in $GL_2(\\mathbb{R})$ I'm working on the question Let $G$ be the group of invertible real matrices of the form $\\left [\\begin{array}{c c}a & b\\\\ & a^2\\end{array}\\right ]$. Determine the Lie algebra $L$ of $G$, and compute the bracket on $L$. I'm familiar with how to derive the Lie algebra for a linear group like $U_n$, $SU_n$, etc. but I'm not sure what to do in a more explicit case like this.", "What is the C# equivalent of NaN or IsNumeric?", "This is a about capacity planning for web sites. Related: What are some recommended tools and methods of capacity planning for web sites and web-applications? Please feel free to describe different tools and techniques for different web-servers, frameworks, etc., as well as best-practices that apply to web servers in general.", "How to down-weight older data in time series regression In a regression fit of vectors varying with time $t$ $\\qquad y \\sim [x_t\\ x_{t-1}\\ x_{t-2}\\ ...] \\cdot [c_t\\ c_{t-1}\\ c_{t-2} \\ ...] $ , how can one down-weight the older $x_t$ to model \"older is less relevant\" (than the regression gives) ? Say that rows in data matrix $X$ are observables (stocks, market segments ...) and columns are times. Correct me, weights rows; how does one weight columns, times ? Added: Down-weighting older data in time series looks complex, much more so than linear least squares with i.i.d. errors in rows (observations) -- just divide through by $\\sigma_i$; or classification with i.i.d. errors in columns (e.g. features) -- just centre each column. Can anyone say either yes, I downweight time series; here are some examples on the web no: down-weighting time series is complex, not for novices. ( discussed this question 10 years ago, mentioning Kalman filters and hierarchical Bayes, but with no examples.)", "Help me to solve this problem please.. Let $Y_{(1)}, Y_{(2)}, Y_{(3)}, Y_{(4)}, Y_{(5)}$ denote the order statistics of a random sample of size 5 from a distribution having p.d.f. $f(y) = e^{(-y)}, 0 < y < \\infty$, zero elsewhere. Show that $Z_1 = Y_{(2)}$ and $Z_2 = Y_{(4)} − Y_{(2)}$ are independent. Hint: First find the joint p.d.f. of $Y_{(2)}$ and $Y_{(4)}$.", "How to tell if a certain item is in a player inventory? I am trying to create a challenge world where a certain item (e.g. a Netherite Sword) must be collected. How can I check automatically if a player has it (using commands), and then congratulate the winner? This question is specific to Bedrock Edition 1.16. I have tried other solutions so many times and they don't seem to work. See also:", "If $k$ is a positive integer, how to prove that there is no solution for $n$ in positive integers except $n = 1$ for $2^n = nk + 1$", "Suppose that $y_1(x)$ and $y_2(x)$ are solutions of the differential equation $y''+py'+qy=0$ on $I$. How can I show that if $y_1$ and $y_2$ vanish at the same point then they are not linearly independent? Here is my attempt to prove the problem. Since $y_1(x)$ and $y_2(x)$ are solutions of the differential equation $y''+py'+qy=0$ on $I$, it is enough for me to show that the Wronskian of $y_1$ and $y_2$ denoted by $W(y_1,y_2)$ is zero. Now since $y_1$ and $y_2$ vanish at the same point say $p$ we have $y_1(p)=0$ and also $y_2(p)=0$. Solving for $W(y_1,y_2)(p)$ we have: $y_1(p)y_2'(p)-y_2(p)y_1'(p)=0$ since $y_1(p)=0$ and also $y_2(p)=0$. Am I correct? Thanks", "Is there an idiom that means \"revealing a secret unintentionally\"? I am thinking there could be an idiom that states that you or someone revealed a secret unintentionally? Can you think of an idiom like that? I am looking for an idiom I can use to write a blog post about the recent incident where Secretary Pompeo unintentionally revealed the dirty secrets behind the CIA.", "Hello and I'm quite new to Math SE. I am trying to find the largest consecutive sequence of composite numbers. The largest I know is: $$90, 91, 92, 93, 94, 95, 96$$ I can't make this series any longer because $97$ is prime unfortunately. I can however, see a certain relation, if suppose we take the numbers like (let $a_1, a_2, a_3,...,a_n$denote digits and not multiplication): $$a_1a_2a_3...a_n1,\\ a_1a_2a_3...a_n2,\\ a_1a_2a_3...a_n3,\\ a_1a_2a_3...a_n4,\\ a_1a_2a_3...a_n5,\\ a_1a_2a_3...a_n6,\\ a_1a_2a_3...a_n7,\\ a_1a_2a_3...a_n8,\\ a_1a_2a_3...a_n9,\\ a_1a_2a_3...(a_n+1)0$$ The entire list of consecutive natural numbers I showed above can be made composite if: The number formed by digits $a_1a_2a_3...a_n$ should be a multiple of 3 The numbers $a_1a_2a_3...a_n1$ and $a_1a_2a_3...a_n7$ should be composite numbers If I didn't clearly convey what I'm trying to say, I mean like, say I want the two numbers (eg: ($121$, $127$) or ($151$, $157$) or ($181$, $187$)) to be both composite. I'm still quite not equipped with enough knowledge to identify if a random large number is prime or not, so I believe you guys at Math SE can help me out." ]
medi_sts_stackexchange_dupe
Solving an interesting polynomial with degree 4?
Solve for $x$ in $6x^2-25x+12+\frac{25}{x}+\frac{6}{x^2}=0$
[ "Is the set of all finite sequences of letters of Latin alphabet countable/uncountable? How to prove either? Today in Coding/Cryptography class, we were talking about basic definitions, and the professor mentioned that for a set $A=\\left \\{ \\left. a, b, \\dots, z \\right \\} \\right.$ (the alphabet) we can define a set $A^{*}=\\left \\{ \\left. a, ksdjf, blocks, coffee, maskdj, \\dots, asdlkajsdksjfs \\right \\} \\right.$ (words) as a set that consists of all finite sequences of the elements/letters from our $A$/alphabet. My question is, is this set $A^{*}$ countably or uncountably infinite? Does it matter how many letters there are in your alphabet? If it was, say, $A=\\left \\{ \\left. a \\right \\} \\right.$, then the words in $A^{*}$ would be of form $a, aa, aaa, \\dots$ which, I think, would allow a bijection $\\mathbb{N} \\to A^{*}$ where an integer would signify the number of a's in a word. Can something analogous be done with an alphabet that consists of 26 letters (Latin alphabet), or can countability/uncountability be proved otherwise? And as mentioned before, I am wondering if the number of elements in the alphabet matters, or if all it does is change the formula for a bijection. P.S. Now that I think of it, maybe we could biject from $\\underset{n}{\\underbrace{\\mathbb{N}\\times\\mathbb{N}\\times\\mathbb{N}\\times\\dots\\times\\mathbb{N}}}$ to some set of words $A^{*}$ whose alphabet $A$ has $n$ elements? Thanks!", "I would appreciate if someone could help me write the mathematical equation for the seasonal ARIMA (2,1,0) x (0,2,2) period 12. I'm a little confused with how to go about this. I would prefer an equation involving $Y_t , e_t, θ$ and $Θ$.", "Why can a 1 element set be a member of another set but not a subset of it?", "Windows 8 removes Grub as default boot manager I have a Sony VAIO S series with Windows 8 preinstalled, and I installed Ubuntu 12.10 on a new partition. When the PC boots Grub is display, and I can choose between Windows 8 (didn't worked at the beginning, had to change Grub settings) and Ubuntu 12.10. When I select Ubuntu 12.10 everything is OK, but when I use Windows 8, and I restart Grub isn't displayed anymore (Windows 8 boots immediately). I booted a Ubuntu 12.10 LiveUSB, used efibootmgr, and found out that Windows 8 (each time it boots) changes EFI default bootloader from Grub to Windows Boot Manager. How do I change this in Windows 8? I read something about bcdedit, but it does not work or I don't know how to use it...", "MySQL Case problem I am trying to run a SQL code (I use MySQL). What I want to do is to set DATE_REACT a value when the first condition is satisfied, and a different value when the first condition is not satisfied. The problem is that the first condition is executed always, even when it shouldn't. What I am doing wrong? UPDATE BILLS SET STATE = 2, DATE_REACT = CASE WHEN (DATE_EM <= CURTIME() <= ADDTIME(DATE_EM, '00:02:00')) THEN ADDTIME(CURTIME(), '00:13:00') ELSE ADDTIME(DATE_REACT, '00:13:00') END WHERE STATE = 1;", "Prove $\\sin^2\\theta + \\cos^2\\theta = 1$ How do you prove the following trigonometric identity: $$ \\sin^2\\theta+\\cos^2\\theta=1$$ I'm curious to know of the different ways of proving this depending on different characterizations of sine and cosine.", "Please help understanding the difference between force and kinetic energy for an object hitting a wall? If a car hits a wall at a speed of $v$, and an identical car hits a wall at a speed of $2\\,v$, with the kinetic energy equation $E_K = \\frac{1}{2}mv^2$ (the speed goes from $v$ to $0$) the second car will lose 4 times the energy, and therefore cause 4 times the damage, but with the force equation $F = ma$ (the car hits the wall and decelerates), it will hit with 2 times the force, and cause 2 times the damage. How can this be explained?", "Equivalent definition of metric compatibility for a connection: what does $\\nabla g$ mean? So the definition I know for metric compatibility is: $$Xg(Y,Z)=g(\\nabla_XY,Z)+g(Y,\\nabla_XZ),$$ which make sense, as $g(Y,Z)$ is a smooth function from the manifold to reals and we think of $X$ as a derivation. So now I read this apparent equivalent definition that says $\\nabla g=0$. Can someone explain what this means? How can I do $\\nabla$ of $g$ I thought $g_p$ is an element of $T_p^*M\\otimes T_p^*M$ at every point. Furthermore after you explain the meaning of this can you show me that these two definitions are indeed equivalent?", "Deriving a QM expectation value for a square of momentum $\\langle p^2 \\rangle$ I already derived a QM expectation value for ordinary momentum which is: $$ \\langle p \\rangle= \\int\\limits_{-\\infty}^{\\infty} \\overline{\\Psi} \\left(- i\\hbar\\frac{d}{dx}\\right) \\Psi \\, d x $$ And I can read clearly that operator for momentum equals $\\widehat{p}=- i\\hbar\\frac{d}{dx}$. Is there an easy way to derive an expectation value for $\\langle p^2 \\rangle$ and its QM operator $\\widehat{p^2}$?", "Automatic line breaking of long lines of text? Here, it is just a example. I have a line: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaa Now, I want to let LaTeX automatically wrap the line according to the width of the text block/margins.", "Why is it differential equations exist on an interval instead of a domain? I understand a domain is the set of input elements a function is defined for (and can have breaks in it e.g. union of 2 sets) and a interval is a continuous range of real numbers. Why do we speak of the solution to a differential equation over an interval instead of an domain? If the solution to an ODE is just a function, and we normally speak of functions as having a domain, then why wouldn't we use domain?", "When I open the terminal on my Mac, this is what it shows: australia:~ rod$ I don't live in Australia, don't have anything to do with Australia, nor have ever setup terminal as Australia. Where does that name come from, why is it there, what does it mean and how do I change it (or should I even change it at all)?", "Find the volume common to two circular cylinders, each with radius r, if the axes of the cylinders intersect at right angles. (using disk/washer) Find the volume common to two circular cylinders, each with radius r, if the axes of the cylinders intersect at right angles. (using disk/washer) I saw no example of this problem anywhere.. I saw an example how to solve it without calculus but I'm afraid that'll be deductions on my test.. I have the volume of a cylinder and the method of area between two curves but this is out of my reach.... I don't know what I can try...", "How do properties work in Object Oriented MATLAB? I am trying to create a MATLAB class with a member variable that's being updated as a result of a method invocation, but when I try to change the property within the class it (apperently, from what I understood from MATLAB's memory management) creates a copy of the object and then modifies it, leaving the original object's property untouched. classdef testprop properties numRequests=0; end methods function Request(this, val) disp(val); this.numRequests=this.numRequests+1; end end end . >> a=testprop; >> a.Request(9); >> a.Request(5); >> a.numRequests ans = 0", "What is the relationship between symmetry and degeneracy in quantum mechanics?", "I would like to create a virtual device in Android Studio but I can't because hardware acceleration is disabled. I went to the BIOS and there are two option : AMD-SVM AMD-IOMMU Both are enabled. I also downloaded the HAXM installer from the SDK manager and tried to run it from the C:\\Users\\%user%\\AppData\\Local\\Android\\Sdk\\extras\\intel\\Hardware_Accelerated_Execution_Manager with intelhaxm-android file. I got an error telling me : This computer does not support Intel Virtualization technology VT X or it is exclusively used by Hyper V. HAXM cannot be installed. Please ensure that hyper V is disabled in windows feature It makes sense that I can't activate Intel Virtualization technology because I have AMD Ryzen 7 2700U. With my previous computer it worked just fine but I had an Intel processor. Some tutorials online suggested to enable windows Hyper-V feature but it's only available for windows 10 pro. Does anyone know a way to activate hardware acceleration with AMD processor and without Hyper-V feature?", "Check for column name in a SqlDataReader object How do I check to see if a column exists in a SqlDataReader object? In my data access layer, I have create a method that builds the same object for multiple stored procedures calls. One of the stored procedures has an additional column that is not used by the other stored procedures. I want to modified the method to accommodate for every scenario. My application is written in C#.", "I've been trying to track a footage taken by my Samsung Galaxy Note 8.0 (GT-n5100) tablet. It has a good 5 mp camera and I tracked the footage well. But the problem arises at the time of solving the camera. The solve error is too high (more than 2). I don't know the width the tablet's camera sensor or the focal length or any other specifications. So my question is, has anybody been able to solve the camera on footage shot by a smartphone and if yes, what camera and lense specs did you feed to the Blender?", "How do I sort a vector of pairs based on the second element of the pair? If I have a vector of pairs: std::vector<std::pair<int, int> > vec; Is there and easy way to sort the list in increasing order based on the second element of the pair? I know I can write a little function object that will do the work, but is there a way to use existing parts of the STL and std::less to do the work directly? EDIT: I understand that I can write a separate function or class to pass to the third argument to sort. The question is whether or not I can build it out of standard stuff. I'd really something that looks like: std::sort(vec.begin(), vec.end(), std::something_magic<int, int, std::less>());", "Why is document.write considered a \"bad practice\"?" ]
medi_sts_stackexchange_dupe
How to prove this? $ \lim_{x \to 0}\frac{e^x-1}{x}=1 $
How to prove that $\lim\limits_{h \to 0} \frac{a^h - 1}{h} = \ln a$
[ "We can easily find out if the vectors are dependent or not by finding determinant of matrices formed from the vectors. But if the matrix is not a square matrix, we cannot find the determinant. Then how do we know if the vectors are linearly independent?", "Installed memory 4GB but only 1.93 GB is usable shows in system properties dialog? In my Intel Core i5 2.80 GHz CPU , DH55HC series Intel mother board machine installed with windows 7 64 bit machine, when I right click my computer and see system properties I see that \"Installed Memory(RAM): 4 GB(1.93 usable)\".I have 2 x 2 GB DDR 3 RAM modules. I have verified, * Two of RAM modules are working * Two of RAM slots in mother board are working What are the cause(s) for this might be to look next ie: what settings in BIOS etc ?", "Suspended user cannot award bounty I asked a question on Stack Overflow: . I want to award my bounty to by user However, my Stack Overflow account is suspended recently for 7 days, and the suspension still has 5 more days to end.And I know I can't vote, ask, answer or comment as pointed on by with the sentence below. You will be unable to vote, ask, answer, or comment. I couldn't find anything about not being able to accept an answer or award bounty so I tried to accept the mentioned answer above and award my bounty to it and I got a Suspended users cannot vote rejection which can be seen below with a screenshot. I know this If you do not award your bounty within 7 days, the highest voted answer created after the bounty started with at least 2 upvotes will be awarded half the bounty amount. from . None of the answer given to my question is upvoted and the answer I mentioned is not the oldest one after the bounty started so it won't be awarded by community. What can I do? (except being a good guy and not get suspended :))", "Place each foot on a scale: can you add the two to find your weight? I frequent a blog from a British psychologist, and every Friday he likes to pose an interesting puzzle or riddle. The Monday after that he posts the answer. They're good fun, and IANAP but made my it-might-not-be-quite-as-simple-as-that detector go off. My question boils down to this: let's say I have two identical scales, and I stand on the scales with one foot on each scale. The scales read W1 and W2. Does my weight equal W1 + W2?", "If I want to display the IP address that is assigned to eth1, how can I do this in Bash?", "I am quite proficient with the keyboard and try to only use the mouse when necessary. Given that context I was very familiar with the shortcut keys in MS Outlook 2003 and never needed to use the mouse to use that product. Now my company has recently upgraded to MS Outlook 2010 and I am finding it impossible to operate it without having to use the mouse. In particular replying to meeting requests with the old shortcut keys no longer seems possible. I have held down the ALT key and sometimes it shows some shortcuts on the ribbon but this seems to be limited to ALT+H which tends to alternate between designating \"Accept\" and \"Tentative\" without any keys for the other options. Also as this appears to switch between \"Accept\" and \"Tentative\" one can't even use this consistently without first having to check what it means for each particular instance. Any help with this would be greatly appreciated!", "Does the canonical commutation relation fix the form of the momentum operator? For one dimensional quantum mechanics $$[\\hat{x},\\hat{p}]=i\\hbar. $$ Does this fix univocally the form of the $\\hat{p}$ operator? My bet is no because $\\hat{p}$ actually depends if we are on coordinate or momentum representation, but I don't know if that statement constitutes a proof. Moreover if we choose $\\hat{x}\\psi=x\\psi$ is the answer of the following question yes? For the second one $$(\\hat{x}\\hat{p}-\\hat{p}\\hat{x})\\psi=x\\hat{p}\\psi-\\hat{p}x\\psi=i\\hbar\\psi, $$ but I don't see how can I say that $\\hat{p}$ must be proportional to $\\frac{\\partial}{\\partial x}$. I don't know if trying to see that $\\hat{p}$ must satisfy the Leibniz rule and thus it should be proportional to the $x$ derivative could help. Or using the fact that $\\hat{x}$ and $\\hat{p}$ must be hermitian Any hint will be appreciated.", "Using natural deduction to prove that $p \\implies q \\vdash \\lnot p \\lor q$ Using only rules of natural deduction, I am trying to prove that $$p \\implies q \\vdash \\lnot p \\lor q$$ but am having a lot of difficulty. I was able to prove the other direction. Could anyone show me or point me to the right direction?", "Possible Duplicate: I live in a small apartment building and we can catch each-others wifi networks. We have different service provides and were wondering if we could amalgamate our networks so that we could use each others bandwidth transparently. I would assume this would reduce latency. Does anybody have a tutorial on how to fuse together wifi networks for a throughput increase? The target machine is a Linux computer. EDIT My work makes me do lots of 1TB flat file-transfers, so I believe my motivation is sound.", "How do you convert a C++ string to an int? Possible Duplicate: How do you convert a C++ string to an int? Assume you are expecting the string to have actual numbers in it (\"1\", \"345\", \"38944\", for example). Also, let's assume you don't have boost, and you really want to do it the C++ way, not the crufty old C way.", "Who were the hooded people in The Rise of Skywalker? Near the end of Star Wars Episode IX: The Rise of Skywalker there are several hooded figures that are shown chanting stuff (in Sith?) and just hanging out with Palpatine. Who were these people?", "What is the status of TTF support in Internet Explorer?", "Changing Screen Brightness Through Keyboard Functions on My Notebook I've installed Ubuntu 16.04 on my Asus X555LJ. But I don't know how to install drivers or how to enable function keys to controls screen backlight brightness.", "How do you repair an \"input/output error\" in an NTFS partition?", "What factors determine enemy levels or: How do enemy levels scale to the player character's? When I finished Normal Mode at around Level 30 and went back to the (still at Normal mode), I found that all enemies there are now very easy to kill, meaning they didn't level up (or hit a level cap). When I went to as a Level 36 character in True Vault Hunter Mode, I noticed that the enemies are the same level as me. What factors determine enemy levels? Specifically, I would like to know: Are enemies affected by what level a character accepted a mission? Or is it what level a character is when they first entered an area? How does Normal Mode, True Vault Hunter mode, and the Ultimate True Vault Hunter Mode affect enemy levels? Are there enemies that will scale to the player level, as the player levels up? Any enemy leveling differences specific to the DLC areas? EDIT: There is now that explains how this works generally: \"In playthrough 1, outside of the DLC, there's no such thing as scaling. Enemy levels are determined solely by the area they're in and your mission.\" Can anyone expound on that, and comment or provide an answer on what are the specific enemy levels on specific areas and/or missions? states that \"enemies do not actually \"scale\", or at least from what we know of...\" and lists specifics for enemy levels on certain areas in the game (sans DLC areas). Can anyone expound on that and/or add specifics for enemy levels in the DLC missions or areas in TVHM (PT 2.0) and/or UTVHM? The update has just been released, can anyone provide info about enemy levels on that mode, including the DLC areas or missions?", "closed form for $\\binom{n}{0}+\\binom{n}{3}+\\binom{n}{6}+...+\\binom{n}{n}$", "We have previously determined that or can attune to magic items, but one of those is a sapient creature, and the other \"always obeys your commands\". A paladin's steed (per the Find Steed spell) is also 'unusually intelligent' and falls within the score range for sapient creatures. But what about a regular old animal? If my ranger has a wolf companion, can he make that wolf attune to, say, an Amulet of Health? According to the Beast Master archetype, a companion animal \"obeys your commands as best it can\". Is spending an hour 'focused only on the item' (as required for attunement) something a beast can manage? Or what if it's not an Animal Companion, but just a riding horse, a pet dog, a trained magpie? I know, probably this is going to be down to the DM to determine, but is there any guidance we can use to help decide whether my cat can attune to an item, and whether rubbing it with catnip would help?", "Calculation of number density from material density Material density is given by $ \\rho =m/V$, where $m$ is mass and $V$ is volume. Again number density given by $n=N/V$, where $N$ is the total number of particle. How can I calculate number density $n$ from material density $ \\rho $.", "Supposing we have a table with four columns (a,b,c,d) of the same data type. Is it possible to select all distinct values within the data in the columns and return them as a single column or do I have to create a function to achieve this?", "Prettify OS X console by coloring output? OS X terminal is not using colors for highlighting output from different commands, for example ls. When compared with other systems like Ubuntu, this is a big loss of accessibility/productivity. What solutions do I have to improve this experience? For the moment I found only this guide for but I am looking for a more complete solution." ]
medi_sts_stackexchange_dupe
Sum of infinite telescoping series $\sum_{r=2}^\infty \frac{1}{r^2-1}$?
find $\sum_{k=2}^{\infty}\frac{1}{k^2-1}$
[ "How do I technobabble without sounding like technobabble? On occasion, I've had reason to describe obviously fictional technical processes in-character. I'd like to be able to describe on these occasions without sounding like I'm saying utter gibberish. But it's not straightforward to do, particularly if I have to make stuff up on the spot. How do I do it?", "Is normal extension of normal extension always normal?", "How can I find the number of partitions of $n$ into exactly $k$ distinct parts, where each part is at most $M$? The number of partitions $p_k(\\leq M,n)$ of $n$ into at most $k$ parts, each of size at most $M$, is given by the generating function: $$ \\binom{M+k}{k}_{x} = \\prod_{j=1}^{k}\\frac{1-x^{M+k-j+1}}{1-x^j}= \\sum_{n=0}^{kM} p_{k}(\\leq M,n) x^n $$ For the number of the partitions $p_k(\\mathcal{D},n)$ of $n$ into at most $k$ parts there is the recurrence relationship: $$ p_{k}(\\mathcal{D},n) = p_{k}(\\mathcal{D},n-k) + p_{k-1}(\\mathcal{D},n) $$ But what, if I want to count only the partitions with distinct parts and restricted number of parts and restricted part size? Update: Now I know the generating function for the number of distinct restricted partitions $p_k(\\leq M, \\mathcal{D},n)$ of $n$ into exactly $k$ distinct parts, all at most $M$ is $$ \\prod_{j=1}^{M} (1+xq^{j}) = \\sum_{k,n=0}^{\\infty}p_k(\\leq M, \\mathcal{D},n)x^{k}q^{n} $$ and there is also a recurrence relation $$ p_k(\\leq M, \\mathcal{D},n) = p_{k-1}(\\leq M-1, \\mathcal{D},n-k) + p_k(\\leq M-1, \\mathcal{D},n-k) $$ How can I prove this? Could you recommend a book, where I could read about this?", "What are preimage resistance and collision resistance, and how can the lack thereof be exploited? What is \"preimage resistance\", and how can the lack thereof be exploited? How is this different from collision resistance, and are there any known preimage attacks that would be considered feasible?", "Why don't files from Xbox 360 show up when USB drive is plugged into computer? I'm using a Lexar JumpDrive S73 32GB USB flash drive. I've configured it on my Xbox 360 and got a message saying it's compatible and meets the standards, but when I plug in it in my computer no files show up, even in Horizon. After the driver was installed, both the USB mass storage and Lexar JumpDrive USB device were ready to use (installed properly), but it said no driver found for Xbox 360. I tried looking for some sort of driver (which sounds silly) but I couldn't find anything. I'm attempting to mod Minecraft on my Xbox and I don't want to buy another USB.", "Is there an (easy) way to create or personalize .bst files? When you prepare an article for a journal (in my case, Quantum Information and Computation, Rinton Press), often they ask you to use some format for your references; in my case, the following: [1] R. Calderbank and P. Shor (1996), Good quantum error correcting codes exist, Phys. Rev. A, 54, pp. 1098-1106. [2] M.A. Nielsen and J. Kempe (2001), Separable states are more disordered globally than locally, quant-ph/0105090. [3] A.W. Marshall and I. Olkin (1979), Inequalities: theory of majorization and its applications, Academic Press (New York). The issue is, sometimes (and this is the case) they do not provide a .bst style file for bibtex users. I (and I guess many other people) prefer not to copy all the references of a bibtex file one by one into a tex document. So here is the question I am trying to answer: What is the easiest way to create a .bst file? (for Rinton or any other publisher) At first sight, I thought this would be very easy to do: after all, a .bst file is just a mere script to give format to a list. Strangely to me, after a long search I have been unable to find a simple clean solution to this problem. These are the the options I have been looking at: I have tried to adapt a previous .bst file: concretely, apsrev4-1.bst, which has a similar format. Other people have tried this solution before , . However, it is an ugly option. First, it requires going through the script of the .bst and understanding it. Second, the script format used in different .bst files differs (quite annoyingly), so it is not easy to modify them unless you do understand what's written. The above solution is quite hideous and you really lose time on it, so I was wondering: isn't there any software tool (hopefully with a GUI) that does this job? It should, after all, pretty easy to program for a .bst script expert some sort of program to generate .bst files. There are some related questions in this site asking for something similar , ; there I have seen a couple of proposed apps, but going through their manuals they seem not so easy to use. Isn't there some software tool available to generate a .bst in less than 1 hour of work? Remarks: ideally I would like to use/personalize/create .bst styles that support eprint fields (e.g. aps4-1.bst).", "Error when using TikZ-Feynman package Today I downloaded and installed the new package to draw Feynman diagrams. I included the packages \\usepackage{tikz} \\usepackage{tikz-feynman} \\tikzfeynmanset{compat=1.0.0} \\usetikzlibrary{shapes,arrows,positioning,automata,backgrounds,calc,er,patterns} into my preamble (changed them already many times). However, already a simple sample code like \\begin{tikzpicture} \\begin{feynman} \\vertex (a) {\\(\\mu^{-}\\)}; \\vertex [right=of a] (b); \\vertex [above right=of b] (f1) {\\(\\nu_{\\mu}\\)}; \\vertex [below right=of b] (c); \\vertex [above right=of c] (f2) {\\(\\overline \\nu_{e}\\)}; \\vertex [below right=of c] (f3) {\\(e^{-}\\)}; \\diagram* { (a) -- [fermion] (b) -- [fermion] (f1), (b) -- [boson, edge label'=\\(W^{-}\\)] (c), (c) -- [anti fermion] (f2), (c) -- [fermion] (f3), }; \\end{feynman} \\end{tikzpicture} directly gives the error: Package pgfkeys Error: I do not know the key '/graph drawing/node distance'. Can you please help me? Thanks in advance!", "Proof that the One-Dimensional Simple Harmonic Oscillator is Non-Degenerate?", "I saw him crossing the road. I saw him cross the road. Which one is correct and why?", "Executing Java programs through Python How do I do this?", "How do I get a Ralink RT3290 wireless card working?", "Changing default width of blocks in beamer", "The interval [0,1] andd [3,5] are equivalent. Is my proof correct?", "$f$ be a smooth function on real line , $f(0)=0$ , $f(x)>0, \\forall x \\ne 0$ and any $f^{(n)}(0)=0$ ; is $\\sqrt f$ smooth? Let $f: \\mathbb R \\to \\mathbb R$ be an infinitely differentiable function such that $f(0)=0$ , $f(x)>0 , \\forall x \\ne 0$ and $f^{(n)}(0)=0$ ( the $n$-th derivative ) $, \\forall n \\in \\mathbb N$ , then is the function $g(x):=\\sqrt{f(x)}$ infinitely differentiable ? I am having difficulty checking whether any $n$-th derivative exist at $0$ . Please help . Thanks in advance", "Cursor is set to move by increments. how to reset to normal?", "What is recordSetVar and where is it used? I was looking at some code and in the 'apex:page' tag, an attribute called recordSetVar was mentioned. I'm new to VisualForce so could someone please tell me when and why is it used?", "I am installing Ubuntu 16.04 in an Intel NUC computer with UEFI enabled. I am using an SSD from another computer. During the installation I chose Erase the disk and make a new full install At the end of the process I see: grub-efi-amd64-signed failed installation /target/ Ubuntu 16.04 And the system does not boot. I tried to use boot-repair but apparently it does not solve the problem.", "I am a British national living in Spain and my passport is either lost or stolen. I noticed this two days ago when I was intending to take a trip to Salzburg. As it happens, I managed to travel using my UK Driver's Licence. I think a severe mistake was made, as was pointed out to me in Austria, but as they were Schengen Countries, apparently all that is needed is a proof of identity, not a 'travel document'. My question, therefore, is this. I have business trips over the next three weeks taking me from Spain to Germany, Czech Republic, Austria, and Italy, then back to Germany, and then to the UK. If I obtain an Emergency Passport from the Consulate here in Barcelona, would this be valid as an identity document within Schengen, before I eventually 'cash it in', so to speak, as a travel document when I make my trip from Germany to the UK? I am hoping so, as I don't fancy my chances of getting back to the UK in time to secure an appointment for a fast-track passport. I am going to call the consulate tomorrow, but would appreciate any advice or prior experience.", "What do Family Tree Maker users do, now that FTM has been discontinued? I was considering purchasing Family Tree Maker only to find it has been discontinued. What do they plan for a replacement ?", "It is said one should avoid staring at Sun as it can damage the eyes, but it is also said that one should not come out in sun during eclipse as it emits dangerous rays. Is that true? If yes, why?" ]
medi_sts_stackexchange_dupe
Implement textbox shortcuts
Winforms Textbox - Using Ctrl-Backspace to Delete Whole Word
[ "When I open nautilus does not open the left bar where it says computer and down markers such as music, documents, videos, downloads. I reinstalled nautilus from the synaptic package manager but nothing happened. What I can do to make that bar visible again?", "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.", "I recently installed the apache2 package using the Software Centre, I want to create an alias apacheres which will replace the more cumbersome command /etc/init.d/apache2 restart. I opened the .bashrc file in my home directory, and it contains the following lines: # Alias definitions. # You may want to put all your additions into a separate file like # ~/.bash_aliases, instead of adding them here directly. # See /usr/share/doc/bash-doc/examples in the bash-doc package. if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi So I created a .bash_aliases file in my home directory, and added only this line: alias apacheres ='/etc/init.d/apache2 restart' When I started my terminal, I get this error message: bash: alias: apacheres: not found bash: alias: =/etc/init.d/apache2 restart: not found The shell has obviously read the file, otherwise it wouldn't know of its existence. I have checked the directory path and I can find the file apache2 there. What do I need to do to make this alias work?", "Modifying Score text in Locate Widget of Flexviewer 2.4? I want to add text where it says \"score\" to make it more clear that this is an address matching score. I am using the LocateWidget_US.xml and do not think I can do it here. I think the place to do it may be in the LocateWidget.mxml in this line???? locateResult.content = getDefaultString(\"resultScoreText\") + \" \" + (addrCandidate.score % 1 == 0 ? addrCandidate.score : addrCandidate.score.toFixed(1));", "What is the Necessity of $...$ Around Numbers? I typed up an assignment with a lot of numbers in LaTeX and turned it in to my adviser. When he returned it to me with some corrections, one of which was a lot of $ around my numbers. I understand that $ are necessary around some mathematical formulas, but I was just using numbers like -2 and 4. I did not see any change in the font of the numbers when I added the $ either. Since my adviser did not want to give me an explanation, what is the rationale?", "Dynamic Comparison Operators in PHP", "Significance contradiction in linear regression: significant t-test for a coefficient vs non-significant overall F-statistic", "Showing that the roots of a polynomial with descending positive coefficients lie in the unit disc.", "How do I remap multi-key sequences to individual keys? I just bought an IBM Model M keyboard. While awesome, it lacks a windows key and multimedia keys. While there are many programs out there that can map one key to another, or one key to a key sequence, are there any programs that will map a keyboard sequence to a single key? Edit: OS = Win7", "What is the minimum wait before I may re-enter the USA after a 90 day visit on the Visa Waiver Program? I entered the USA on a three month visa waiver program from Australia. I am about to return to Australia and would like to come back again to the USA. How long do I have to wait until I can re-enter the USA for another 3 months?", "How to get remote host DNS address from a super-slim host (docker) without ping or bind-utils?", "What is an example of Gâteaux differentiable but not Fréchet differentiable at a point in a finite-dimensional space? Let $V,W$ be nonzero normed spaces over $\\mathbb{K}$ such that $V$ is finite-dimensional. Let $E$ open in $\\mathbb{K}$ and $p\\in E$. Let $f:E\\rightarrow W$ be Gâteaux-differentiable at $p$. Is $f$ necessarily Fréchet-differentiable at $p$ in this case? I think this is not true in general, but cannot find a counterexample. What would be a counterexample?", "I have never used Ubuntu or any other Linux OS before last Friday. For all I know, I might have installed Ubuntu wrong and be missing a component. I would prefer if you use simplest terminology possible, but I'm OK with doing a bit of googling if need be. I just installed Steam for Ubuntu 16.04 but it won't open when I click on it in the launcher. The icon flashes for a few seconds, stops and then nothing happens. I looked in the system monitor and steam shows up there but ending the process and trying again does nothing. I heard trying to open apps that aren't working through the terminal tells you what the error is so I tried that and I got this: Running Steam on ubuntu 16.04 64-bit STEAM_RUNTIME is enabled automatically Installing breakpad exception handler for appid(steam)/version(0) libGL error: unable to load driver: radeonsi_dri.so libGL error: driver pointer missing libGL error: failed to load driver: radeonsi libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast Please help I just want to play CS:GO again.", "Is 3+1 spacetime as privileged as is claimed?", "How to read and write excel file", "Precedence of user and group owner in file permissions", "Find the minimum of $\\sqrt{(x+1)^2+(y-1)^2}+\\sqrt{(x+2)^2+(y+2)^2}+\\sqrt{(x-1)^2+(y+1)^2}$ For real $x,y$ Find the minimum of $\\sqrt{(x+1)^2+(y-1)^2}+\\sqrt{(x+2)^2+(y+2)^2}+\\sqrt{(x-1)^2+(y+1)^2}$ For real $x,y$. It is the distance of a point in a triangle from its vertexes which gives the minimum when $(x,y)$ is on the Fermat's point. But now I am stuck in finding the location of Fermat's point. $(1) \\quad 4$ $(2) \\quad 5$ $(3) \\quad \\sqrt{3}+2\\sqrt{5}$ $(4) \\quad 4\\sqrt{2}$", "Short story or novel from the 1970s or before about two warring alien tribes", "\"Print\" and \"ui.Label\" return different strings in console and in the UI in Google Earth Engine I am working on a variable label in Google Earth Engine and noticed that the label as printed in the console is not the same as the label shown on the map. Why is that? Code below: var aoi = ee.Geometry.Polygon([[[-106.75701284923326, 42.31332966408458], [-106.75701284923326, 42.003856624775146], [-106.31755972423326, 42.06913460511273]]]); var chirpsSelect = ee.ImageCollection(\"UCSB-CHG/CHIRPS/DAILY\") .filterDate('1985-01-01','2018-01-01') .filter(ee.Filter.dayOfYear(3,6)) .filterBounds(aoi) var chirpsStartImage = ee.String(chirpsSelect.first().get('system:index')) var dateStartString = ((((chirpsStartImage.slice(6,8)).cat('/')).cat(chirpsStartImage.slice(4,6))).cat('/')).cat(chirpsStartImage.slice(2,4)) var sortChirpsSelect = chirpsSelect.sort('system:index',false) var chirpsEndImage = ee.String(sortChirpsSelect.first().get('system:index')) var dateEndString = ((((chirpsEndImage.slice(6,8)).cat('/')).cat(chirpsEndImage.slice(4,6))).cat('/')).cat(chirpsEndImage.slice(2,4)) var dateTitle = ee.String((dateStartString.cat(' to ')).cat(dateEndString)) print(dateTitle) var dateLabel = ui.Label({ value: dateTitle }) var panel = ui.Panel() panel.add(dateLabel) Map.add(panel)", "I remember reading a sci-fi story where astronauts visit a planet, which is covered in stationary aliens with mile long necks that filter feed from the atmosphere. It was published between 1960 and 2000. It was in English and involved a pair of astronauts that went from planet to planet on a tour or something, though I don't know details of any other planets they visited." ]
medi_sts_stackexchange_dupe
I am stuck in grub rescue HELP
How to delete GRUB entirely from GRUB rescue and boot Windows only
[ "Methane’s absorption bands are centered at 3.2 and 7.2 microns -- far off the peak of the Planck spectrum for a 290 K blackbody near 16 microns. Moreover, its absorption bands overlap with the water absorption region. So why is methane considered a stronger greenhouse gas than carbon dioxide, which has an absorption band at 15 microns?", "What are good strategies for booster drafts? I know that doing a booster draft can be somewhat complicated, because to really be good you need to know a lot about the set you're drafting (or be really good at evaluating cards quickly) and to pay attention to signal cards. Besides going into the whole complicated strategies of knowing the set and paying attention to signal cards, what are some relatively simple/basic guidelines for drafting?", "This question is related to a couple of other questions ( and ) relating to some material that I teach in sampling theory. Consider the critical points of the defined as follows. The value $t_{n-1, \\alpha/2}$ is a function of $n$ defined by the implicit equation: $$\\frac{\\alpha}{2} = \\frac{1}{\\sqrt{(n-1) \\pi}} \\cdot \\frac{\\Gamma(\\tfrac{n}{2})}{\\Gamma(\\tfrac{n-1}{2})} \\int \\limits_{t_{n-1, \\alpha/2}}^\\infty \\Big( 1+ \\frac{r^2}{n-1} \\Big)^{-n/2} dr.$$ Normally we treat the input $n>1$ as an integer, but it is possible to extend the treatment to consider it a real value (since the T-distribution is well-defined for non-integer degrees-of-freedom). I'm trying to come up with a (relatively simple) proof that this critical point value is decreasing in $n$, but I seem to be making quite a mess. Differentiation using Leibniz rule gets part way, but it quickly becomes a bit of a mess. Consequently, I would like to solicit proofs of this result --- this simpler the better. Question: How do you prove that this critical point is strictly decreasing in $n$?", "Which close reason should I use for questions that do not demonstrate research effort? I regularily encounter questions on StackOverflow which are asked only because of the sole fact that the poster haven't made the effort to google for and the docs of a particular function/class/framework/whatever. My question is, to which category of the five proposed one should I vote when I vote to close the question? Is it: off-topic, not constructive, not a real question, exact dupe or too localized? I tend to be all for 'not a real question' - am I quite right?", "I'm running into this weird problem with Google spreadsheets: if the cells have comments on them and I sort the spreadsheet, the rows sort but the comments stay in the same position, and don't move with the cells they're attached to. In other words, the cells look like this: A C <-- comment on this cell B and then I sort by this column: A B <-- comment remains on this cell (stays in position) C <-- comment should have remained attached to this cell This means that sorting is completely broken and I can't use it at all, because I clearly need the cell comments to stay with the cell they're attached to. Is this a bad bug in Google Spreadsheets, or am I missing something here?", "I am wondering how to show that $\\mathbb{Z}[\\sqrt {10}]$ is not a UFD. My only idea is to show that there are two factorizations of $10$, say, $ab, uv$ such that $a$ is not a unit times $u$ or $v$. In this ring $10=2\\cdot5=\\sqrt {10}\\cdot \\sqrt {10}$, so it suffices to show $2$ is not a unit times $\\sqrt {10}$. Suppose $2=\\sqrt {10}(a+b\\sqrt{10})=a\\sqrt{10}+10b$. Then $a=0$ since $\\sqrt{10}$ is not rational. So $10b=2$, which has no integer solutions. So $\\mathbb{Z}[\\sqrt {10}]$ is not a UFD. Is my reasoning correct? What are the flaws?", "Dealing with \"java.lang.OutOfMemoryError: PermGen space\" error", "What is the difference between \"likelihood\" and \"probability\"? The claims that likelihood and probability are distinct concepts. In non-technical parlance, \"likelihood\" is usually a synonym for \"probability,\" but in statistical usage there is a clear distinction in perspective: the number that is the probability of some observed outcomes given a set of parameter values is regarded as the likelihood of the set of parameter values given the observed outcomes. Can someone give a more down-to-earth description of what this means? In addition, some examples of how \"probability\" and \"likelihood\" disagree would be nice.", "What is the best way to convert an array to a hash in Ruby In Ruby, given an array in one of the following forms... [apple, 1, banana, 2] [[apple, 1], [banana, 2]] ...what is the best way to convert this into a hash in the form of... {apple => 1, banana => 2}", "In which cases would you say, \"I am seeing\" instead of \"I see\"? In which cases would you say, \"I am seeing\" instead of \"I see\"?", "Can one executable be both a console and GUI application? I want to make a program that can be run as a CLI or GUI application depending on what flags are passed into it. Can this be done? I have found these related questions, but they don't exactly cover my situation:", "Prove that a group is infinite and nonabelian. I'm trying to solve a question of Hungerford's Algebra: Show that the group defined by generators $a,b$ and relations $a^2=b^3=e$ is infinite and nonabelian. I guess a good approach would be to find an infinite and nonabelian group with two generators satisfying the same conditions and let Van Dyck do all the work. I've been thinking about the group of permutations $S_{\\mathbb N}$, some groups of matrices, but I couldn't get it. Could anyone give me a hint? Thanks in advance!", "Prove the map sending a matrix to it's inverse is continuous.", "Combinatorial proof of summation of $\\sum\\limits_{k = 0}^n {n \\choose k}^2= {2n \\choose n}$ I was hoping to find a more \"mathematical\" proof, instead of proving logically $\\displaystyle \\sum_{k = 0}^n {n \\choose k}^2= {2n \\choose n}$. I already know the logical Proof: $${n \\choose k}^2 = {n \\choose k}{ n \\choose n-k}$$ Hence summation can be expressed as: $$\\binom{n}{0}\\binom{n}{n} + \\binom{n}{1}\\binom{n}{n-1} + \\cdots + \\binom{n}{n}\\binom{n}{0}$$ One can think of it as choosing $n$ people from a group of $2n$ (imagine dividing a group of $2n$ into $2$ groups of $n$ people each. I can get $k$ people from group $1$ and another $n-k$ people from group $2$. We do this from $k = 0$ to $n$.", "Why does Property Set throw StackOverflow exception? I know java and would normally put in getter/setter methods. I am interested in doing it in C# with the following code, but it throws a StackOverflow exception. What am I doing wrong? Calling Code c.firstName = \"a\"; Property Code public String firstName; { get { return firstName; } set { firstName = value; } }", "It was a useful answer.", "Recolor Artwork: single swatch to multiple swatches I have an Illustrator document with a lot of objects. All the objects are black, same swatch. I have a swatch group with a few dozen coloured swatches. I wish to apply these swatches to all the many black objects. It doesn’t have to be in any particular order, but each object should be coloured individually—I don’t just want to change black into some other colour, but to dozens of other colours. What I really want to avoid is having to select each object individually and then applying a different swatch to each. I’ve never quite managed to get my head properly around the Recolor Artwork feature in Illustrator, and I cannot for the life of me get it to do anything like this. The “New” box in the Recolor Artwork dialogue box appears to accept only one colour. Is there some way to do this using the Recolor Artwork feature? Or using some other feature that I’m not aware of? Bonus points if there’s a way to control the order in which the colours are applied; e.g., specifying an order and then click on each object in turn to apply each swatch being ‘iterated’ through in that order. (I would prefer to avoid having to script it, but I will if there’s no other way.)", "Url rewriting in Amazon S3 I have a webapp hosted in Amazon S3, the webapp is build with jQuery Mobile and I use changePage lo navigate between pages, I'm not using the hash operator(#) when I change the page. I'm having problems when the user copy the url and paste it in a new tab For example: loads the page page1.html that is in amazon s3 with only the jquery page structure... The behavior that I want is that load index.html and with js read the url, detect the page and load the correct page. With Apache I solve this with URL Rewriting... but for Amazon S3 I didn't find any similar... NOTE: I know that if I activate the hash operator (#) in my urls the problem is solved but I need clean urls without #.", "DateTime \"null\" value I've been searching a lot but couldn't find a solution. How do you deal with a DateTime that should be able to contain an uninitialized value (equivalent to null)? I have a class which might have a DateTime property value set or not. I was thinking of initializing the property holder to DateTime.MinValue, which then could easily be checked. I guess this is a quite common question, how do you do that?", "I am a US Green card holder with an Indian passport expiring in 4 months planning a short weekend trip by road to Canada next month. Will I be allowed to enter Canada considering my passport won't meet the \"valid passport\" criteria of 6 months?" ]
medi_sts_stackexchange_dupe
Filesystem shows /dev/nvme0n1p1 instead of /dev/sda
How to extend my root (/) partition?
[ "Ability to update profile from the Stack Exchange Android App", "Joined pipelines Considering a routine such as this one: alpha() { echo a b c |tr ' ' '\\n'; } which outputs a stream, I would like to take the output stream, transform it, and paste it with the original output stream. If I take use upcasing as a sample transformation, I can achieve what I want with: $ mkfifo p1 p2 $ alpha | tee p1 >( tr a-z A-Z > p2) >/dev/null & $ paste p1 p2 a A b B c C My question is, is there a better way to do this, preferably one not involving named pipes?", "I would like to typeset some easy polyomino puzzles and therefore need a suitable LaTeX package. I could not find an easy to use package (other than using TikZ of course). Is there any approach other than using TikZ/PSTricks? For anybody not aware of what polyominos are: Edit: With a polyomino puzzle, I mean something like this: So my intention is to put a set of polyominos into a given shape.", "How \"submitted\", \"to appear\", \"accepted\" papers are evaluated in a CV? Assume a search committee is reading my CV and in the publication section they notice some of my papers are only submitted or claimed to appear in a journal (or accepted for publication in a journal). Sometimes the journal which has accepted the paper for publication lists the title of accepted articles before actually publishing them, but in the rest of cases there is no evidence to prove that the referee process of the paper is over and the journal has accepted the paper for publication. Also assume preprints of my papers are available in ArXiv. So, my questions are: How a search committee interprets and evaluates those papers which are just submitted or are claimed to appear? Does a search committee consider these types of publications less valuable than the published ones (assuming the same quality)? Does a search committee refer to my preprints in ArXiv to evaluate my submitted or accepted papers?", "I want to show that $$\\log N<\\sum_{n=1}^{N}\\frac{1}{n}<1+\\log N.$$ But I don't know how to show this.", "How can I prove my publication list is mine? In some of the questions regarding author name, it is mentioned that people can use whatever they like, however, they must be consistent across their publications. When it comes to being hired by a university for a tenure track position or by another principal investigator as a researcher, how can someone prove that they are the author of papers when their author name does not exactly match the one on their ID card? How can a principal investigator be sure that the publication list does actually belong to the person claiming them?", "Awesome WM menu missing Firefox After sudo apt-get install awesome awesome-extra and logging into it (with no previous configuration that I know of), there's no menu entry for Firefox. All my other stuff is there - Mutt, Meld, jEdit, BOINC, etc., only Firefox is missing. I have no ~/.config/awesome/ directory, so there should be no override in place.", "File issues after importing Drupal site I recently tried to move my Drupal site to a new server using this page: . But now the style doesn't seem be loaded and more importantly I get this error on every page in the site (even on the frontpage): Warning: file_put_contents(temporary://filef76T9k): failed to open stream: "DrupalTemporaryStreamWrapper::stream_open" call failed in file_unmanaged_save_data() (line 1900 of /Library/Server/Web/Data/Sites/Default/drupal/includes/file.inc). The file could not be created. Any ideas what this could be about?", "Is it grammatically wrong to say It's been too hot in the last / the past few days It's been too hot for the last / the past few days I saw this following sentence also, can we omit in it? He's had two new cars in the last / in the past three years as He's had two new cars the last / in the past three years Is there a strict rule in using of preposition or non-preposition when we use the last/past ? What is the structure when I refer to weeks, months ?", "Give me a blank Comment box when I am Improving a Suggested Edit The suggested edit screen includes both the suggested edit, and the reason for the edit: When you click to improve the edit, that comment is left as-is and hidden at the bottom of the post above the save edit button: At the moment, when I Improve a Suggested Edit, the Comment text for that Edit is retained (though editable). It's unlikely that the comment would still apply (e.g. Suggester added a tag and Approver corrected a typo), so I would rather have the field blank. Also, it's better to have a blank Comment than an incorrect one... many people don't bother changing the original Comment. So that box should be blank like this instead:", "How to complain about a user? I and a user was rude to me in a comment and in an answer. Even though I can't downvote, that answer got -5 and it was automatically deleted. I want to complain about that user. How can I do that?", "This question is about cosmology and general relativity. I understand the difference between the universe and the observable universe. What I am not really clear about is what is meant when I read that the universe is infinite. Does it have infinite mass or is it dishomogeneous? How can the universe transition from being finite near the big bang and infinite 14 billion years later? Or would an infinite universe not necessarily have a big bang at all?", "Why is the field inside a conducting shell zero when only external charges are present?", "Can I store the .git folder outside the files I want tracked? I have an unusual idea to use git as a backup system. So let's say I have a directory ./backup/myfiles and I want to back that up using git. To keep things clean I don't want to have a .git directory in the myfiles folder, so I thought I could create ./backup/git_repos/myfiles. From looking at the git docs, I've tried doing this: $ cd backup/myfiles $ mkdir ../git_repos/myfiles $ git --git-dir=../git_repos/myfiles init Initialized empty Git repository in backup/git_repos/myfiles/ $ git --git-dir=\"../git_repos/myfiles/\" add foo fatal: pathspec 'foo' did not match any files You can see the error message I get there. What am I doing wrong?", "How to understand intuitively the Stolz-Cesaro Theorem for sequences?", "I don't have administrator account on my mac On my mac I have 2 accounts and the both are normal account. So in this moment I don't have a Administrator account, only one that was in the past a administrator, but now is not. How I can have again a Administrator account?", "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", "Understanding backtick (`)", "Disabled submit button on form vs allow submit then show errors?", "Can I update an early Airport Time Capsule?" ]
medi_sts_stackexchange_dupe
How to dynamically generate methods and properties with Python?
Adding a Method to an Existing Object Instance
[ "An element not in a field extension Possible Duplicate: Consider the field extension $\\mathbb{Q}(\\sqrt2)$. I want to show that $\\sqrt5 \\notin \\mathbb{Q}(\\sqrt2)$. If this were not the case, then we could write $\\sqrt5 = a + b\\sqrt2$ for $a,b\\in\\mathbb{Q}$. However, I do not see the contradiction here. Is there a better/easier way to prove this?", "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", "Is it ethical to use a recommendation letter from a deceased professor? She was a really nice professor and she wrote me a good recommendation letter that resulted in a lot of good results with applications. Recently, this professor died from brain cancer, which was a fast and shocking death for me. Tomorrow is the deadline for a grant. What should I do? Is it professional to use letters from the deceased?", "How to measure supply currents ranging from 1μA to 10mA?", "Energy conservation of Virtual Particles - Quantum Fluctuation? I (as a middle-school student) was wondering how virtual particles even conserve energy of the entire system? I don't mean just the particle's energy, but conservation with respect to the surroundings? Let me explain more, Einstein proved that $E = mc^2$ and equivalently, we can say $m = \\frac{E}{c^2}$ . We however know mass causes curvature in space-time (gravity well). Now that statement being completely valid we can use Quantum Fluctuation, implying energy and time can be related by the relation: $\\Delta{E}\\Delta{t}\\approx\\frac{\\hbar}{2}$ and by that simple relation we can make the following points: As the energy increases, the time allowed to be \"borrowed\" decreases, before it gives it back to the universe. As time increases, the energy allowed to be \"borrowed\" decreases. These are completely satisfactory points I've made, I believe. Now, I have read that the vacuum is filled with constantly bubbling virtual particles that get created from the energy \"borrowed\" by the above relation and is destroyed again, which satisfies the energy conservation laws. This seems to imply that in the short time the virtual particle exists, they must have a very small mass which is: $m_{1} = \\frac{\\Delta{E}}{c^2}$ and using basic classical mechanics rather than GR (for sake of simplicity) we calculate that the gravitational force mediated by this short-lived virtual particle; $F_{g}= G\\frac{m_1 * m_x}{r^2}$ where $m_x$ is an particle\\mass in question. Nevertheless since we know the force set upon an object moves the object in a direction, we can say it would increase its kinetic energy by this factor: $F_g = \\frac{1}{2}mv^2$ which is equal to $G\\frac{m_1 * m_x}{r^2} = \\frac{1}{2}mv^2$. Surely, this implies that every time quantum fluctuations happen, energy of real-particles\\masses increases and therefore violates energy conservation, but what prevents this violation from taking place? If virtual particles are not really present and interact with objects like I thought, how can Hawking radiation (currently a large concept in black hole physics) then be accepted in physics community?", "Is the function $f(x)=|x|^{1/2}$ Lipschitz continuous? Is the function $f(x)=|x|^{1/2}$ Lipschitz continuous near $0$? If yes, find a constant for some interval containing $0$. I think the answer is yes since I can find $L=1$ that satisfies Lipschitz continuity criteria in a interval close to $0$, am I right?", "Initially, my question was: is \"focussed\" or \"focused\" the correct past tense of \"focus\", but since this applies to a lot of words, I would like to generalize and ask: is there supposed to be a rule when to double the consonant?", "My Realtek NIC in my Windows Home Server (essentially w2k3) box refuses to run at 1000Mb/s even if I change the driver settings from Auto Negotion to 1000Mb/s full duplex. I've installed the latest driver and tried changing the speed setting but I'm having no luck. Not sure what to try next. Any ideas? I have a Netgear GS605 v2 Switch supports 10/100/1000 D Link DIR 655 router. All my machines bar one/2 have 1000Mb/s NICs (Old laptop/Xbox being the exceptions) The reason I noticed the problem was because I was copying files between two machines and maxing one NIC out and only seeing 10% on the other machine. I do have a fairly lengthy cable between the switch and the router (maybe 20m) could that be the issue?", "$\\lim\\limits_{n\\to \\infty} \\int_0^1 |f(x)-a_nx-b_n| dx=0$ implies $(a_n)_n,(b_n)_n$ are convergent Let $f:[0,1] \\to \\mathbb R$ be a continuous function and the sequences $(a_n)_n,(b_n)_n$ s.t. $$\\lim_{n\\to \\infty} \\int_0^1 |f(x)-a_nx-b_n| dx=0.$$ Prove that $(a_n)_n,(b_n)_n$ are convergent. I know that $$\\left|\\int_0^1f(x)dx\\right| \\le \\int_0^1|f(x)|dx.$$ Can somebody help me, please?", "I have recently upgraded my OS to Ubuntu 18.04 (fresh install via boot device). However, when trying the command: sudo apt-get upgrade It works fine until ~75% when it stops and says: snapd.snap-repair.service is a disabled or a static unit, not starting it. I'm not quite sure what this means and if I Crtl-Z to get out of it, any time I try to install anything I get: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? and have to restart my computer to install anything.", "Is it time to be rid of automatic down votes on certain closed questions? Right now, carry automatic downvotes. The for this was largely to enforce specific quality bans in part because people were not down voting questions. Now that question down votes are free on questions and it seems to be pretty commonplace for question quality bans to trigger, even without the automatic votes from closure, and we have completely revamped the closure system. Is it time to reevaluate whether or not these automatic votes are still a good idea? What benefits do the automatic votes provide and have they effectively run their course?", "Call native javascript function that has been \"erased\" by the web page", "Prove that for any natural number $n>1$, we have $(2n)!<(n(n+1))^n$ Prove that for any natural number $n&gt;1$, we have $(2n)!&lt;(n(n+1))^n$ I tried using induction, but I failed in that approach, I rather found it was untrue, but on several case testing, I found it to be true. I am out of ideas here, please help. Thank you.", "How to remove uninstalled snaps from cache?", "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.", "How do we \"restore\" notepad after crash? I was running NotePad and Chrome when my computer suddenly shuts down. After reboot, chrome was able to \"restore\" itself such that I didn't lose any data. However, how do we \"restore\" notepad.exe?", "Add a time limit before you can vote on a post There needs to be a timer or something on upvoting/downvoting. I posted an answer to a question and as soon as the page loaded, my answer was already down voted. There is no way someone had the time to read the answer &lt; 10 seconds after it was posted.", "Is there console mode in Mac OS X?", "'AND' vs '&&' as operator", "\"Open shaming of anyone...\" Open shaming of anyone who spoke out discouraged responsible dissent. How does open with shaming work, grammatically and meaningfully? Is discouraged modifying \"responsible dissent?" ]
medi_sts_stackexchange_dupe
How to set up a SFTP server with users chrooted in their home directories?
How can I chroot sftp-only SSH users into their homes?
[ "Moderncv package - cventry date width I am writing my CV using moderncv package, everythig is nice but I have a problem with \\cventry command. I have something like this: (it means 2010 - now) I would want to have this in one line, rather than in two lines. I tried looking into the moderncv style files but with no success. What can I do to achieve the effect I want?", "Compactness and axiomatisability Let $C$ be an axiomatisable class of structures for some given first-order signature, i.e. there is a set $T$ of sentences whose models are exactly the members of $C$. Apparently it follows from the compactness theorem that: If $C$ contains arbitrarily large finite structures then it must contain an infinite structure. Can someone explain this result? The compactness theorem tells me that $T$ has a model if each finite subset of $T$ has a model but I don't see how this relates to the size of structures in $C$.", "How to create and animate the water reflection (Caustics) on an object? What is the best method to create this kind of reflection and how to animate it?", "\"India has\" or \"India have\"", "Is there a missing definite article before caliph in 'the group's leader, XYZ, as (the) caliph'? 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:", "Why is the covariant derivative of the metric tensor zero?", "I saw her dance/dancing? I saw a flash of lightning strike/striking? I caught her steal/stealing?", "why each left ideal of this is minimal?", "Complex numbers - Exponential numbers - Proof Let $z$ be a complex number, and let $n$ be a positive integer such that $z^n = (z + 1)^n = 1$. Prove that $n$ is divisible by 6. For this problem I am stumped...how should I begin? Also there's a hint for it: From $z^n = 1$, prove that $|z| = 1$. What does the equation $(z + 1)^n = 1$ tell you? What do the resulting equations tell you about $z$? Could someone give me a hint on where to begin? thanks in advance", "Why does $(g^b \\bmod m)^a \\bmod m = (g^a \\bmod m)^b \\bmod m$? I have been trying to understand why the diffie hellman key exchange algorithm works, specifically why the two exponents can be swapped in it without the result changing. So my specific question is why: (g^b mod m)^a mod m = (g^a mod m)^b mod m I am interested in the reasoning/proof/explanation behind why it is true. Thank you", "Can a lambda function call itself recursively in Python? A regular function can contain a call to itself in its definition, no problem. I can't figure out how to do it with a lambda function though for the simple reason that the lambda function has no name to refer back to. Is there a way to do it? How?", "Adding more than 15 digits in Excel", "New flagging dialog has a duplicate for duplicate We've changed the flagging format from today(AFAIK) as below, looks good. But, when I select it should be closed for another reason... I can see the same reason duplicate on the top. What is the need of placing that reason over there? It should not be there. Please remove the dupe.", "No chatoutput in tellraw onClick Event I'm using a /tellraw command to display some kind of menu to the player. How can I react to the clickEvent without posting something in the chat? When I try using the scoreboard, I get an output in my chat like this Set score of &lt;objective&gt; for player &lt;playername&gt; to &lt;value&gt;. The same thing happens, when trying /setblock, /entitydata or /trigger Is there any way, I can execute a command which commandblocks can detect without writing a success/fail message in the chat? the only commands without a \"real\" response message I found were /say, /tell and /tellraw. But all of these are impossible to detect(also, they write something else in the chat).", "In my preamble, you'll find: \\renewcommand{\\baselinestretch}{1} \\renewcommand{\\familydefault}{\\sfdefault} \\usepackage[sfmath]{kpfonts} \\usepackage[mathrmOrig]{sfmath} \\usepackage{amsmath} \\usepackage{amssymb} \\usepackage{amsfonts} \\usepackage{animate} \\usepackage{anysize} \\usepackage{arcs} \\usepackage{array} \\usepackage[scale=0]{background} \\usepackage{blindtext} \\usepackage{calc} \\usepackage{cancel} \\usepackage{chngcntr} \\usepackage{CJK} \\usepackage{CJKspace} \\usepackage{CJKpunct} \\usepackage{colortbl} \\usepackage{enumitem} \\usepackage{epstopdf} \\usepackage{etoolbox} \\usepackage{fancybox} \\usepackage{fancyhdr} \\usepackage{float} \\usepackage{framed} \\usepackage{graphicx} \\usepackage{hyphenat} \\usepackage{ifthen} \\usepackage{latexsym} \\usepackage{lmodern} \\usepackage{multicol} \\usepackage{multirow} \\usepackage{mwe} \\usepackage{pgffor} \\usepackage{rotating} \\usepackage{tabularx} \\usepackage{textcomp} \\usepackage{tgheros,tgtermes,tgcursor} \\usepackage{tikz} \\usepackage{times} \\usepackage{tipa} \\usepackage{varwidth} \\usepackage{wasysym} \\usepackage{wboiboites} \\usepackage[abs]{overpic} \\usepackage[breaklinks,colorlinks=true,linkcolor=red,citecolor=red, urlcolor=blue]{hyperref} \\usepackage[framemethod=TikZ]{mdframed} \\usepackage[breakable, theorems, skins]{tcolorbox,empheq} \\usepackage[default]{gillius} \\usepackage[document]{ragged2e} \\usepackage[latin1]{inputenc} \\usepackage[spanish]{babel} \\usepackage[T1]{fontenc} \\usepackage[total={18.59cm,26.5cm},left=1.5cm,top=2.5cm]{geometry} \\usetikzlibrary{matrix,arrows, positioning,shadows,shadings,backgrounds,calc, shapes, tikzmark} \\usetikzlibrary{shadows.blur} \\usetikzlibrary{shapes.symbols} \\usetikzlibrary{patterns,fadings} \\tcbuselibrary{skins,breakable,listings,theorems} I'm trying to draw an arrow for X axis and Y axis. \\begin{tikzpicture} \\draw[yellow!10, fill=blue!5](-1, -1) rectangle (7, 5); \\draw[dotted] (-0.75,-0.75) grid (6.75,4.75); \\node[below] at (-0.25,0){$O$}; \\draw[-&gt;,black, thick] (-0.75,0)--(6.75,0); \\end{tikzpicture} But I get this error: Additionally, if I remove -> from the options of \\draw the tikz picture compiles normally.", "How to prove $\\sum_{n=0}^{\\infty} \\frac{n^2}{2^n} = 6$? I'd like to find out why \\begin{align} \\sum_{n=0}^{\\infty} \\frac{n^2}{2^n} = 6 \\end{align} I tried to rewrite it into a geometric series \\begin{align} \\sum_{n=0}^{\\infty} \\frac{n^2}{2^n} = \\sum_{n=0}^{\\infty} \\Big(\\frac{1}{2}\\Big)^nn^2 \\end{align} But I don't know what to do with the $n^2$.", "Let $D$ be a , and let $a,b,x \\in D \\setminus \\{0\\}$. Then is it true that $\\gcd (ax,bx)=x \\cdot \\gcd (a,b)$ ? Let $c=\\gcd (a,b)$ and $d=\\gcd(ax,bx)$, then as $cx|ax$ and $cx|bx$ so $cx|d$. We would be done if we could show $d|cx$, but I am unable to show that. Please help me to solve this problem.", "How do I check whether a file exists without exceptions? How do I check whether a file exists or not, without using the statement?", "It seems that in the words Englishman, Frenchman, and Scotsman, the ‑man part is pronounced /mən/ (just like in Roman). Whereas in snowman, the ‑man part is pronounced /mæn/ (just like in no man). Why is it that when ‑man is appended to snow‑ to make snowman, the pronunciation of the man part doesn’t change? Wouldn’t it logically follow for it to be pronounced /ˈsnowmən/ not /ˈsnowˌmæn/?", "error: file '/grub/i386-pc/normal.mod' not found error: file '/grub/i386-pc/normal.mod' not found. grub rescue&gt; What can I do? I just sit and stare at it. I found my old netbook (Dell Inspiron 1010) which I have not used for about four years. I replaced Windows XP with Ubuntu 12.10. I used my bootable USB drive. I installed and rebooted. I got the message that normal.mod is not found. What should I do? Type exit, reboot, or quit? Should I re-install?" ]
medi_sts_stackexchange_dupe
Existence of entire function s.t. for all $z\in\mathbb{C}$ with $|z|\geq 100:|f(z)|=|z|+1$
Does there exists an entire function such that for each $|z|>C$ for some constant $C$, $|f(z)|=|z|+1$?
[ "Is there a way for me to bind a key that will allow multiple units in my control group to all use the same spell at once? For example, if I have 3 centaurs as chen, and I have them all selected. Can I press one key to make them all warstomp at the same time? Or if I have 3 familiars as Visage. When I have all three selected, is there a button I can press to have them all stun at the same time?", "Review option on mobile phone not available? The other day I was looking at Stack Overflow on my Android phone. All is made very nice and all, but I could not find the Review button/link. Is it being implemented, did I miss it, or it is not available?", "I might end up teaching philosophy in Finnish lukio/gymnasium. I will not get an opportunity to practice teaching it - I do get to practice teaching mathematics a fair deal, though. (The situation is somewhat unfortunate.) I have taken subject studies in philosophy at university. They amount to around 60 credits (ECTS). Suppose I give the students an exam, which asks them to write an essay or two. After that my task is to grade the exams in a fair way and comment them in such a way that the students can learn from the feedback. - Suppose the task was to write an essay on the problem of universals - nominalism and realism, say. Let us say 6 points is the perfect score for this task. I would expect the students to define nominalism and realism (2 points, maybe?) and explain the problem (2 points). Remaining two points for taking some stance and arguing for it - realism is more reasonable because so and so. Partial credits for demonstrating only partial understanding. - Am I missing some important aspects of philosophical thinking? Should I emphasize the different parts of an answer in a different way? I suspect my perspective is influenced by fairly extensive mathematics education - is there something particular I should watch out for?", "PHP is not working well on Ubuntu 13.10 and mcrypt is missing in phpmyadmin I've upgraded from UBUNTU 13.04 to 13.10 but I can not work with PHP pages or phpmyadmin . I've tried this way to install lamp on Ubuntu sudo apt-get install lamp-server^ phpmyadmin and I've done all of the configuration correctly after installation I've added this line Include /etc/phpmyadmin/apache.conf to /etc/apache2/apache2.conf then I restarted apache2 Now I have two problems: In phpmyadmin on the bottom of the page is this error : The mcrypt extension is missing. Please check your PHP configuration I've check and mcrypt was in it , but in phpmyadmin it gives me error of missing . The other problem is on PHP pages it seems like there is no PHP and it's all html because lots of PHP lines are printed in textbox's like : &lt;? echo $row['details']; ?&gt; Can anybody tell me what should I do ?", "Change folder permissions and ownership I would like the user to have full rights on this folder (as well as all sub-directories and files in it): ~/.blabla currently owned by root. I have found numerous posts (in this forum and elsewhere) on how to do this for files but I can't find a way to do it for whole folders.", "I'm having a hard time finding the solution of the following equation: $$0 = x\\cos(x)+2$$ This is part of showing that $f(x):= x^2e^{\\sin(x)}$ has 3 extremas in $[-\\frac{\\pi}{2},\\frac{\\pi}{2}]$.", "Polar Plot x and y ticks and units", "I am trying to make a snowball that triggers a command when it hits a player in 1.15, but I don't know how to do that. When I do execute at @e[type=snowball] run gamemode spectator @a[distance=..2] it only runs the command if it goes right next to them.", "Difference between least squares and minimum norm solution Consider a linear system of equations $Ax = b$. If the system is overdetermined, the least squares (approximate) solution minimizes $||b - Ax||^2$. Some source sources also mention $||b - Ax||$. If the system is underdetermined one can calculate the minimum norm solution. But it does also minimize $||b - Ax||$, or am I wrong? But if least squares is also a minimum norm, what is the difference, or the rationale of the different naming?", "Rolling back a completely changed question was originally asked August 9, and received answers. A month later, the OP the question, invalidating the existing answers. I rolled it back, and left a comment to say that a new question should be opened, but the OP changed it back saying \"There is no rule about it, so you can't edit my post.\" There is also a bounty on this question, making things more interesting. What are the guidelines on completely changing a question or rolling back changed questions? Was I out-of-line rolling back the question? I have no desire to get into an edit war, so I'm not going to touch the question again. If a moderator wants to get involved, great.", "How do I get a list of obsolete packages? I'm trying to figure out a way to get a list of the packages that are no longer available in the repositories that I have enabled. This workstation has been through quite a few versions of Ubuntu and has had many 3rd party repositories added and removed. I'd like to get a list of software that I have from these removed repositories, so I can clean it up or add back the appropriate repositories.", "I would like to install the restricted extras package, which I didn't select during the install. How can I do that? is a meta-package that installs: Support for MP3 and unencrypted DVD playback Microsoft TrueType core fonts Flash plugin codecs for common audio and video files", "When I install Selenium I get the following error: Shubham@Shubham-To-be-filled-by-O-E-M:~$ sudo apt-get update Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB] Hit:2 https://repo.skype.com/deb stable InRelease Hit:3 http://in.archive.ubuntu.com/ubuntu xenial InRelease Get:4 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB] Get:5 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB] Fetched 323 kB in 8s (38.6 kB/s) Reading package lists... Done Shubham@Shubham-To-be-filled-by-O-E-M:~$ sudo pip install selenium Traceback (most recent call last): File \"/usr/bin/pip\", line 9, in &lt;module&gt; from pip import main ImportError: cannot import name main How should I proceed?", "Pointwise convergent and total variation I'm preparing for a test for real analysis and I came across this problem in Royden's book: Let $\\{f_n\\}$ be a sequence of real valued functions on $[a,b]$ that converges pointwisely on $[a,b]$ to the real valued function $f$. Show that $TV(f) \\leq \\liminf ~TV(f_n)?$ This looks quite similar in form to Fatou's Lemma to me, but can't find any way to establish TV with integration, can anybody please help? (TV is short for total variation)", "Can you block installers from making desktop shortcuts? I've been keeping my desktop totally free from shortcuts. I'd rather not have to take action to do so.", "Why does the collada exporter not export texture references? I've been having trouble exporting collada objects from blender, so I stripped everything back and textured a single cube, and exported it. This is a completely trivial model, one cube, with one material assigned to it, the material has a single 'g.png' texture assigned to it. The exported collada data looks like this: &lt;library_materials&gt; &lt;material id=\"Material-material\" name=\"Material\"&gt; &lt;instance_effect url=\"#Material-effect\"/&gt; &lt;/material&gt; &lt;/library_materials&gt; Where: &lt;library_effects&gt; &lt;effect id=\"Material-effect\"&gt; &lt;profile_COMMON&gt; &lt;technique sid=\"common\"&gt; &lt;phong&gt; &lt;emission&gt; &lt;color sid=\"emission\"&gt;0.2879998 0.2879998 0.2879998 1&lt;/color&gt; &lt;/emission&gt; &lt;ambient&gt; &lt;color sid=\"ambient\"&gt;0 0 0 1&lt;/color&gt; &lt;/ambient&gt; &lt;diffuse&gt; &lt;color sid=\"diffuse\"&gt;0.2163267 0.1845119 0.2121569 1&lt;/color&gt; &lt;/diffuse&gt; &lt;specular&gt; &lt;color sid=\"specular\"&gt;0.5 0.5 0.5 1&lt;/color&gt; &lt;/specular&gt; &lt;shininess&gt; &lt;float sid=\"shininess\"&gt;50&lt;/float&gt; &lt;/shininess&gt; &lt;index_of_refraction&gt; &lt;float sid=\"index_of_refraction\"&gt;1&lt;/float&gt; &lt;/index_of_refraction&gt; &lt;/phong&gt; &lt;/technique&gt; &lt;extra&gt; &lt;technique profile=\"GOOGLEEARTH\"&gt; &lt;double_sided&gt;1&lt;/double_sided&gt; &lt;/technique&gt; &lt;/extra&gt; &lt;/profile_COMMON&gt; &lt;extra&gt;&lt;technique profile=\"MAX3D\"&gt;&lt;double_sided&gt;1&lt;/double_sided&gt;&lt;/technique&gt;&lt;/extra&gt; &lt;/effect&gt; &lt;/library_effects&gt; This seems to be missing the texture data associated with the object. By comparsion, exporting a wavefront object generates this .mtl file: # Blender MTL File: 'basic.blend' # Material Count: 1 newmtl Material Ns 96.078431 Ka 0.000000 0.000000 0.000000 Kd 0.790000 0.790000 0.790000 Ks 0.500000 0.500000 0.500000 Ni 1.000000 d 1.000000 illum 0 map_Kd g.png &lt;----- ie. Blender is aware of this texture So... is the collada exporter for blender just broken, or does it require some kind of special config in order to function correctly? If the latter, how/what is required to make this work? (NB for what it's worth, the UV coordinates are exported in the .dae, abit they obviously are completely useless without a texture assigned to them; I've also tried adding two different textures to see if the exporter needs that because it naively assumes 'one texture = don't bother, it's one texture for the whole model'. That didn't work either)", "Number of possible permutations of n1 1's, n2 2's, n3 3's, n4 4's such that no two adjacent elements are same?", "Example of $\\deg(fg)<\\deg(f)+\\deg(g)$", "I'm looking to create a virtual printer that passes data to my .NET application. I want to then create an installer that installs both the printer and the .NET application. It would we really nice to be able to write it all in C#, but I have a feeling that this will require a printer driver to be written is unmanaged code. Does anyone know of a fairly clean tutorial or example of how to do this?", "How do you check for whether a device is in a wifi deadzone?" ]
medi_sts_stackexchange_dupe
Command `find` with single dash leading
Why are POSIX Find Parameters Different from Other Program styles?
[ "What are the differences between sudo, su, visudo, chroot, and gksu? What are the differences between sudo, su, visudo, chroot, and gksu ?", "How can I prevent my mail from being classified as spam? When sending or forwarding emails using a personal or company domain using a website or email client, how do I prevent the email from being incorrectly marked as spam?", "Pretty much the problem asks if a function is continuous at the point $c$ and $f(c) &gt; 0$ then there exists a $d &gt; 0$ such that $\\forall x$, $f(x) &gt; 0$ with $|x-c| &lt; d$. I can understand what the problem means. That if a function is positive at a point then there is another point that's really close that'll also be positive. I can not prove this in a formal way though. I've tried using the intermediate value theorem and I do not know hot to implement it. Any ideas?", "What will happen when Winter Bash is over? Tomorrow (January 2nd 2019) is the day that Winter Bash will be gone. So I am thinking: Will there be some sort of a final ranking page anywhere? It would be nice so I don't need to keep going to every day to see my rank. If there isn't going to be anything like that, what should I do to see my final rank on Winter Bash?", "When one should use spacing line \\quad or \\,", "I'm trying to install a dual boot (with Window 10) on my new XPS-15 (with a SSD 256Go). Everything works well (following until I go on step \"Installation type\". Where I can't select \"Something else\", and I already have the partition table but completely empty. I can't see any existing partition, or add new one.", "I have two hard drives. One is used for Windows and one is empty. I want to install Ubuntu on the empty hard drive. The Windows hard drive is disk0 in Windows and the empty hard drive is disk1. When I install Ubuntu and it asks where I want to install it, I choose \"Something Else\" but I am stuck there. What do I choose for \"boot loader installation\"?", "How to execute a program or call a system command from Python How do you call an external command (as if I'd typed it at the Unix shell or Windows command prompt) from within a Python script?", "I used osm2pgsql to import data into my PostgreSQL database and it put gave me the following 4 tables, planet_osm_point, planet_osm_line, planet_osm_polygon and planet_osm_roads. I have looked at the schema for osm2pgsql and inside the planet_osm_point table there is a column 'way' of type point. I tried to query it as an array like it says in the documentation here (): It is possible to access the two component numbers of a point as though the point were an array with indexes 0 and 1. For example, if t.p is a point column then SELECT p[0] FROM t retrieves the X coordinate and UPDATE t SET p[1] = ... changes the Y coordinate. In the same way, a value of type box or lseg can be treated as an array of two point values. Anyone know the correct query the planet_osm tables from osm2pgsql based on long/lat? For example if I wanted to retrieve the information for Big Ben (London) I would query along the lines of: SELECT * FROM planet_osm_point WHERE ST_Y(ST_Transform(way, 4326)) = '-0.12' AND ST_X(ST_Transform(way, 4326)) = '51.5'; There is no error message, it comes out with the table names, but no data is output either. (Its an empty table). What am I doing wrong here? Perhaps it is too precise, i.e. there are no coordinates that match it exactly? Perhaps I need to try being more general, say 51 &lt; long &lt; 52 and -0.5 &lt; lat &lt; 0. Although this would throw back multiple results so would not be quite as accurate.", "How do I add polygons to fill a face? trying to recreate this Elijah bottle. I have two sides, one of which is outlined in red. How do I fill that face with polygons so I can then grab the center (that red square dot) to pull it outward thereby creating the slight outward bowing of the bottle?", "C++ Struct Pointer Segfault", "A ring without the Invariant Basis Number property", "Book where girl can grow nails and might be a thief I'll apologize for this being a vague description up front. I read a book about 8 years ago about a girl who could grow her nails into essentially razorblades or long enough that they could be used as razors. She travels to a city and either becomes an assassin or a thief (pretty sure it was a thief). I vaguely remember the book opening with her being chased by a mob. At some point during her thief training she realizes that the layout of the city is the key to some important plot device. I think she was given some scroll or cryptic image and then during her training she realizes that the layout of the city correlates to it. Although I did read this 8 years ago I'm pretty sure the book was at least 5-10 years older than that, maybe even more because it was my mom who gave it to me and she said had read it when she was younger. The dust cover was missing when I read it so I have no description for the cover. I do remember that the author was male. It was a fantasy setting and there may have been vampires involved at some point but that part of my recollection of the book is even fuzzier than what I've already described. I've tried googling for this book but obviously my description is fairly vague. I will gladly answer any follow up questions that I can to try and help figure this out because it has been bothering me for years.", "if command in find -exec I was just trying to list all directories and files under current directory and also write if they are file or directory with the following command: find -exec echo `echo {} : ;if [ -f {} ]; then echo file; else echo directory;fi` \\; I know it is a silly command, I can use other things like -type f or -type d, but I want to learn why that piece of code did not work as I expected. It just prints directory to all of them. For example while output of find is: . ./dir ./dir/file output of my code is : . : directory ./dir : directory ./dir/file : directory And output of echo `echo dir/file : ;if [ -f dir/file ]; then echo file; else echo directory;fi` is dir/file : file I am working on Ubuntu 14.10 and using find (GNU findutils) 4.4.2", "Light Presets .exr I would like to install light presets for Blender to automate my lightning in my scenes. I have some .exr files (from Greyscalegorilla) but I don't know how to do it on Blender to make it work. Can someone help me? Thank you", "What's the English equivalent of the Japanese saying, “A fart ruins 100 days of sermons by the priest (bishop)”? I was amused by the expression \"Paid a penny and only farted\" (related by @FumbleFingers), which suggested a similar Japanese saying: 大山鳴動鼠一匹 - \"Find only a small mouse coming out after hearing rumblings and experiencing shaking of the big mountain.\" It’s humorous. I chuckled when I read it, and I wrote to the author that I love it. With that said, the word \"fart\" reminds me of another Japanese proverb, 百日の説法屁一つ- \"A fart ruins 100 days of sermons by the priest\", which means that a small mistake (the sound of a fart in front of the congregation) brings all his efforts to naught. It can’t happen in big Western churches. But it could well happen in a small wooden temple where a priest would preach to 30 – 50 provincial followers. Can you imagine how the proud priest being called 'the venerable' would be embarrased when his loud fart is heard by all his followers during his serious sermon and they start to giggle here and there in the hall? We also have a similar saying\" 九仞の功を一簣に欠く, which literally means \"Collapse a 9- meter sand tower with the last pile of sand.\" What is the English equivalent of the saying \"A fart ruins 100 days of sermons by the priest (bishop): a small mistake depreciates the value of (vitiates) all labor and effort to naught,\" preferably in such a humorous way?", "Prove $(a^2+b^2)(c^2+d^2)\\ge (ac+bd)^2$ for all $a,b,c,d\\in\\mathbb{R}$. Prove $(a^2+b^2)(c^2+d^2)\\ge (ac+bd)^2$ for all $a,b,c,d\\in\\mathbb{R}$. So $(a^2+b^2)(c^2+d^2) = a^2c^2+a^2d^2+b^2c^2+b^2d^2$ and $(ac+bd)^2 = a^2c^2+2acbd+b^2d^2$ So the problem is reduced to proving that $a^2d^2+b^2c^2\\ge2acbd$ but I am not sure how to show that", "Optimizing logical sector size for physical sector size 4096 HDD With many new hard drive disks the physical sector size is 4096. Would it be possible to make the system use a logical sector size of the same size, rather than the default logical sector size of 512? Will it speed up bulk reads and writes? Where can it be configured?", "How do the Azkaban escapees get their wands back? Sirius Black and a few Death Eaters escape Azkaban and seem to operate after that with their wands intact. How come? If a mere expulsion from Hogwarts entails wand destruction (as happened with Hagrid), shouldn't an Azkaban sentence entail the same? And even if we imagine that the perceived impossibility of escape from Azkaban made it seem unnecessary to destroy the wand, this would apply to Sirius but not to Death Eaters. PS: Two comments suggested that the escapees acquired new wands. It would be nice to have a more definitive answer than just a suggestion or a list of possibilities. Thanks. PPS: Returning the personal property to a released prisoner is one thing, but the wand is a different matter: this is usually the tool of the crime, and I don't see how it can be argued that it should be returned and not destroyed. Again, Hagrid had his wand destroyed and he was not even sentenced to Azkaban. PPPS: Maybe wand destruction is only done for non-fully-qualified wizards?", "Rendering an animation the way 3D view looks Is there some way to render exactly whats in the camera view in the 3D view? By that I mean just like a screenshot really, all paths, lamps, and cameras, just like things look in the camera view. The reason I can't just take a screenshot is that I need an animation and it would be too cumbersome to take 1000+ screenshots!" ]
medi_sts_stackexchange_dupe
For which $n$ the polynomial $x^n + y^n$ will be irreducible over $\mathbb Z$?
Factoring $x^n + y^n$ over the integers
[ "I was reading a where the author mentions: \"The coefficient of variation is primarily a descriptive statistic, but it is amenable to statistical inferences such as null hypothesis testing or confidence intervals. Standard procedures are often very dependent of the normality assumption and current work is exploring alternative procedures which are less dependent on this normality assumption.\" The paper is from 2010. So my question is: has there been any recent \"advancements\" in terms of a coefficient of variation statistic that is not dependent upon the normality assumption? And, is this what one may call a non-parametric CV?", "JavaScript private methods", "Loopback to forwarded Public IP address from local network - Hairpin NAT This is a about Hairpin NAT (Loopback NAT). The generic form of this question is: We have a network with clients, a server, and a NAT Router. There is port forwarding on the router to the server so some of it's services are available externally. We have DNS pointing to the external IP. Local network clients fail to connect, but external work. Why does this fail? How can I create a unified naming scheme (DNS names which work both locally and externally)? This question has answeres merged from multiple other questions. They originally referenced FreeBSD, D-Link, Microtik, and other equipment. They're all trying to solve the same problem however.", "Answer textbox's content starts overlapping when adding new lines in middle on Android app When typing/editing an answer, sometimes if I scroll the editor textbox, go upwards and add lines, the text will start overlapping each other. The behaviour is that when you add a newline, the text below it does not move downwards. Minimizing soft keyboard fixes this. This does not affect the Ask Question box in my test. I am using Android 4.1.2", "Smooth rendering of bitmap fonts", "I thought that there was no need to scan for viruses either in Ubuntu or any Linux distros until I found virus scanner packages clamtk and klamav in Ubuntu software center yesterday. This leads to the following questions: How do viruses differ between Linux and Windows? How do the strategies for protection differ between Linux and Windows? Should a virus scanner package be installed on my system? If so, which would be a better option?", "What are the most important things I need to do to encourage Google Sitelinks? My website used to have sitelinks and now it doesn't. It's very possible that it's due to changing the website to a sidebar design instead of having an \"interstitial\" type landing page which limited the number of choices, but I'm not sure. Here is how sitelinks might look for a site: What are some things that I can do to improve my chances of getting sitelinks?", "Difference between \"did + verb\" and just \"verb+ed\" This is something I always get confuse with (native language German). As far as I know \"did + verb\" is something done and finished in the past. But isn't it the same with \"verb + ed\"?", "How could I execute a script in Shell when a shortcut key is pressed. Essentially what I need is when a shortcut key is pressed the script should read from a file and display that content in the terminal.", "Suppose $f$ is a differentiable function over $\\mathbb{R}$ satisfying $f(0) = 0$. Show that if $f'$ is strictly increasing, then $\\frac{f(x)}{x}$ is increasing over $(0,\\infty)$. Attempt: Since $f'$ is increasing we know that $f'' &gt; 0$ for all $x$. Now let $g(x) = \\frac{f(x)}{x}$ and thus $f(x) = xg(x)$. Then we wish to show that $g'(x) &gt; 0$ on $(0,\\infty)$ and so since $f'(x) = xg'(x)+g(x)$ and $f''(x) = xg''(x)+2g'(x) &gt; 0$, we have $g''(x) &gt; \\frac{-2g'(x)}{x}$. I am not sure how to use this though to prove the statement.", "Independent Edit/Object mode in splitscreen", "How to set custom DNS server for Chrome browser? I have a local DNS server that resolves all URLs *.domain.tld to 127.0.0.1. Also, I have the production server with the same address *.domain.tld. They have the same names, because subdomains interact with each other, and I have hardcoded domain URLs. I can't change them in the production server. The problem is to reach the production server from my developer computer without touching the DNS server and /etc/hosts. I found some options for Chrome such as --dns-server, --host-rules, but none is working. I have Google Chrome 23.0.1271.64 and Chromium 22.0.1229.94 on Ubuntu 12.10 64-bit.", "Say there are $m+n$ elements split into two groups ($m$ and $n$). The variance of the first group is $\\sigma_m^2$ and the variance of the second group is $\\sigma^2_n$. The elements themselves are assumed to be unknown but I know the means $\\mu_m$ and $\\mu_n$. Is there a way to calculate the combined variance $\\sigma^2_{(m+n)}$? The variance doesn't have to be unbiased so denominator is $(m+n)$ and not $(m+n-1)$.", "In programming terminology, what do you call the difference between these instructions:", "Filezilla or WinSCP save password in plain text which is unsecured on public machines. Is there any FTP client can save and encrypt password so that people using it only can access to FTP but not able to see password? Thanks!", "I want to work on a small app that will use Telegram from within Ubuntu but wanted to first know if there was already a work in progress for this since I noticed that, for example, pidgin has support for WhatsApp. With this in mind, is there a messenger app that has support (even basic support) for Telegram from within Ubuntu.", "Rank of the $n \\times n$ matrix with ones on the main diagonal and $a$ off the main diagonal I want to find the rank of this $n\\times n$ matrix \\begin{pmatrix} 1 &amp; a &amp; a &amp; \\cdots &amp; \\cdots &amp; a \\\\ a &amp; 1 &amp; a &amp; \\cdots &amp; \\cdots &amp; a \\\\ a &amp; a &amp; 1 &amp; a &amp; \\cdots &amp; a \\\\ \\vdots &amp; \\vdots &amp; a&amp; \\ddots &amp; &amp; \\vdots\\\\ \\vdots &amp; \\vdots &amp; \\vdots &amp; &amp; \\ddots &amp; \\vdots \\\\ a &amp; a &amp; a &amp; \\cdots &amp;\\cdots &amp; 1 \\end{pmatrix} that is, the matrix whose diagonals are $1's$ and $a$ otherwise, where $a$ is any real number. My first observation is when $a=0$ the rank is $n$ and when $a=1$ the rank is $1.$ Then I can assume $a\\neq 0, 1$ and proceed row reduction to find its pivot rows. I obtain \\begin{pmatrix} 1 &amp; a &amp; a &amp; \\cdots &amp; a \\\\ 0 &amp; 1+a &amp; a &amp; \\cdots &amp; a \\\\ 0 &amp; a &amp; 1+a &amp; \\cdots &amp; a \\\\ \\vdots &amp; \\vdots &amp; \\vdots &amp; \\ddots &amp; \\vdots \\\\ 0 &amp; a &amp; a &amp; \\cdots &amp; 1+a \\end{pmatrix} by subtracting the first row multiplied $a$ for each row below the first, and then divides the factor $(1-a)$, and stuck there. Any hints/helps?", "Double line spacing", "Copy all files created after a specific hour in command line (Windows)? I would like to easily copy a batch of files from one very big directory to another based on the hour of creation (every hour i want to copy the files from last hour). I have used Xcopy /D function but you can only put the date but not the hour. Is there another command? the directory is really big and it's very long to test each file for it's creation date in a Script. Xcopy is great but lacks the hour.", "I've got about a billion rows of data in a table with a name and an integer in the range 1-288. For a given name, every int is unique, and not every possible integer in the range is present--so there are gaps. This query generates an example case: --what I have: SELECT * FROM ( VALUES ('foo', 2), ('foo', 3), ('foo', 4), ('foo', 10), ('foo', 11), ('foo', 13), ('bar', 1), ('bar', 2), ('bar', 3) ) AS baz (\"name\", \"int\") I'd like to generate a lookup table with a row for each name and sequence of contiguous integers. Each such row would contain: name -- the value of the name column start -- the first integer in the contiguous sequence end -- the final value in the contiguous sequence span -- end - start + 1 This query generates example output for the above example: --what I need: SELECT * FROM ( VALUES ('foo', 2, 4, 3), ('foo', 10, 11, 2), ('foo', 13, 13, 1), ('bar', 1, 3, 3) ) AS contiguous_ranges (\"name\", \"start\", \"end\", span) Because I have so many rows, more efficient is better. That said, I only have to run this query once, so it isn't an absolute requirement. Thanks in advance! Edit: I should add that PL/pgSQL solutions are welcome (please explain any Fancy Tricks--I'm still new to PL/pgSQL)." ]
medi_sts_stackexchange_dupe
How to force to use another GPU in a cluster?
How to enable/disable a specific graphic card?
[ "How do I render nodes, now that node_view() has been deprecated? In Drupal 7 I frequently use node_view() for rendering nodes (using view modes) in blocks or pages as follows: $nids = array(123,456,789); $nodes = node_load_multiple($nids); foreach ($nodes as $node) { $node_view = node_view($node, 'teaser'); $output .= drupal_render($node_view); } $build['nodes']['#markup'] = $output; return $build; node_view()/entity_view() has been deprecated and replaced by a view builder as explained in change record . The information is not detailed enough for me to be able to figure out how to achieve the same result. How can you render nodes in Drupal 8 so that the output can be used in the render array of a block or page?", "What is the best way to give a C# auto-property an initial value? How do you give a C# auto-property an initial value? I either use the constructor, or revert to the old syntax. Using the Constructor: class Person { public Person() { Name = \"Initial Name\"; } public string Name { get; set; } } Using normal property syntax (with an initial value) private string name = \"Initial Name\"; public string Name { get { return name; } set { name = value; } } Is there a better way?", "My understanding is that in machine learning it can be a problem if your dataset has highly correlated features, as they effectively encode the same information. Recently someone pointed out that when you do one-hot encoding on a categorical variable you end up with correlated features, so you should drop one of them as a \"reference\". For example, encoding gender as two variables, is_male and is_female, produces two features which are perfectly negatively correlated, so they suggested just using one of them, effectively setting the baseline to say male, and then seeing if the is_female column is important in the predictive algorithm. That made sense to me but I haven't found anything online to suggest this may be the case, so is this wrong or am I missing something? Possible (unanswered) duplicate:", "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?", "Evaluate $\\lim_{n\\to\\infty} [{1\\over kn}+{1\\over k(n+1)}+{1\\over k(n+2)}+\\cdots+{1\\over k(n+p-k)}]$ where $k<p$ There are four options. Which of them is correct?- (a)${p\\over k}$ (b)${k\\over p}$ (c)$\\log({p\\over k})$ (d)${\\log p\\over k}$ I somehow want to use the rule for evaluating this kind of sum using integration, i.e. $\\int_{0}^{1} f(x) \\ dx=\\lim_{n\\to\\infty} {1\\over n}\\sum_{r=1}^{n}f({r\\over n})$ But the given expression $\\lim_{n\\to\\infty} [{1\\over kn}+{1\\over k(n+1)}+{1\\over k(n+2)}+\\cdots+{1\\over k(n+p-k)}]={1\\over k}\\lim_{n\\to\\infty}{1\\over n}\\sum_{r=0}^{p-k}\\frac{1}{1+{r\\over n}}$, sum running from $0$ to $p-k$ instead of $n$. So, how to evaluate this limit? Thanks for assistance in advance.", "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.", "C/C++ check if one bit is set in, i.e. int variable int temp = 0x5E; // in binary 0b1011110. Is there such a way to check if bit 3 in temp is 1 or 0 without bit shifting and masking. Just want to know if there is some built in function for this, or am I forced to write one myself.", "How do I check if an element is really visible with JavaScript? In JavaScript, how would you check if an element is actually visible? I don't just mean checking the visibility and display attributes. I mean, checking that the element is not visibility: hidden or display: none underneath another element scrolled off the edge of the screen For technical reasons I can't include any scripts. I can however use as it is on the page already.", "What are the current travel restrictions on individuals entering the United States from regions affected by Covid-19?", "How to reformulate differential equation problem as OrnsteinUhlenbeckProcess", "I want to compute the Galois group of some polynomials, but I want to see some examples first. For example this proposition could be helpful. I don't know how to prove it &lt;.&lt; Let's consider a polynomial $f(x)= x^4+ax^2+b \\in \\mathbb{Z} $. Let $ \\pm\\alpha , \\pm\\beta$ denote the roots of $f(x)$. Note that $f$ is irreducible iff $\\alpha^2, \\alpha\\pm\\beta \\notin \\mathbb{Q}$. So let's suppose that $f(x)$ is irreducible. Let's denote $G$ the galois group of $f$ (the Galois group of the splitting field $\\mathbb{Q}(\\alpha,\\beta)/\\mathbb{Q}$) $i)$ $G\\cong V$ the Klein 4-group iff $\\alpha\\beta \\in \\mathbb{Q}$ $ii)$ $G\\cong \\mathbb{Z}_4$ iff $\\mathbb{Q}(\\alpha\\beta)=\\mathbb{Q}(\\alpha^2)$ $iii)$ $G\\cong D_8$ the dihedral group of order 8, iff $\\alpha\\beta \\notin \\mathbb{Q}(\\alpha^2)$ I need help with the proofs of this propositions... Well I'm very lost with the computation of Galois group, some care must be exercised, I don't have it. For example I know that Galois group acts transitively, in the sense that $u\\in K/F$ a galois extension, the other roots of the minimal polynomial of $m_u(x)\\in F[x]$ are precisely the elements $ \\sigma(u)$ , where $\\sigma \\in Gal(K/F)$. And clearly any automorphism, is determined by only the value of a basis. In this case we are working on $\\mathbb{Q}(\\alpha,\\beta)$, so I have to know the values of both. But I have to respect the algebraic relations involving $\\alpha , \\beta$ I proved that in $i),ii)$ $\\mathbb{Q}(\\alpha,\\beta) = \\mathbb{Q}(\\alpha) $ So I have to know the values on $\\alpha$. My first question is: If in both cases $i),ii)$, I have an extension of degree 4 (so $|G|=4$) I have to map $\\alpha$ to determine the automorphism, but I have also to map $\\alpha$ to all of it's four roots. Why the galois group in this case are different? My second question is about $iii)$ I have no idea How to attack it.", "How can I add some html to my Mail.app signature? I want to add my company logo and and some juice to my contact information in the signature part in Mail.app. How can I do that with little or no efforts?", "Is there a grammatical term for moving a word to the front or back of a sentence? There is a function in Arabic grammar where you may bring forward in sentence order a word - as well as deferring it. For example: if the sentence order is Subject - Verb - Object, you can bring the object forward to be before the subject, yielding Object - Verb - Subject or Object - Subject - Verb. Similarly, if you have Noun Phrase - Verb Phrase, you can move the verb phrase forward so you get Verb Phrase - Noun Phrase. This is used to add emphasis to the item brought forward. The same applies to moving the item to the end of the sentence. Is there a grammatical term in English that represents this function or functions?", "How to use Terminal to delete all .svn folders recursively? What command can I type into the Terminal so that I can delete all .svn folders within a folder (and from all subdirectories) but not delete anything else?", "I have white blank on the posts. App Version: 1.0.89 Device Manufacturer: Meizu Device Model: m2 OS Version: 5.1 (1464689330) I can't see the questions and the answers and the comments. I saw that it's a common issue.. Does it have a fix? EDIT - I saw answer. This answer is ~2 years old. It says that it will fix in the next update. His version is 1.0.59 - mine is 1.0.89. Huge different. The problem is still exists!", "Render issue - Model doesn't appear to be on any layers and won't render Really odd on this... using Blender 2.75... I started modelling and lost the objects from the 3d view, but they were still showing in the object lists on the outlier... I was able to copy them and continued working... when I did a test render I discovered that only the original lost objects were rendering and nothing that I had modelled over the previous 2/3hrs was showing up... I have no idea what I did but I created another 3d view and the original bits showed up along with the layer buttons which had been missing from the screen which I thought was just a new feature from 2.75...! Picture to show the 2 screens, top one doesn't render but bottom one does Any idea's what I've done?", "How to change from csh to bash as default shell I have csh as my default shell, as shown by echo $SHELL. I want to switch to bash as my default shell. I tried the following approaches to no avail: With chsh I get: chsh: can only change local entries; use ypchsh instead. With ypchsh I get: ypchsh: yppasswdd not running on NIS master host (\"dcsun2\"). I only have .chsrc in my home directory and I cannot find any .profile files in /etc. How can I change my default shell to bash?", "Some vertices don't move along with the rig", "Japan is a volcanically active country which means it has a plethora of onsen (hot springs) all around the country. Visiting these onsen is supposed to be a popular vacation destination for the work-weary Japanese. I've been told that, as with other things in Japan, there is a rather strict etiquette surrounding the use of the onsen. In particular, the two things I've read about so far are Swimming Suits are not allowed. It is very important that one bathe immediately before entering the onsen. Are these true? Are there any other taboos that a naive American should be aware of?", "Assume that $f$ be continuous on $\\mathbb{R}$, $f'(x)$ exists for all $x\\neq 0$, and $\\lim_{x\\rightarrow 0} f'(x)=1$. We need to show $f'(0)$ exist and is equal to $1$. $f'(0)=\\lim_{x\\rightarrow 0}\\frac{f(x)-f(0)}{x}$, $\\lim_{x\\rightarrow 0}f'(x)=1\\Rightarrow\\lim_{x\\rightarrow 0}\\lim_{h\\rightarrow 0}\\frac{f(x+h)-f(x)}{h}=1$...am I going in the right direction? Please help." ]
medi_sts_stackexchange_dupe
The usage of "an"
When should I use "a" vs "an"?
[ "How do I install Netbeans? I used NetBeans for Java development on Windows and remember finding it in the Ubuntu Software Center on Natty, but now it's gone. Is there a PPA I can use or will it be re-added to the official repos?", "$f:\\mathbb R \\to \\mathbb R$ be a continuous such that $f(f(f(x)))=x,\\forall x \\in \\mathbb R$ , is $f(x)=x , \\forall x \\in \\mathbb R$? Let $f:\\mathbb R \\to \\mathbb R$ be a continuous function such that $f(f(f(x)))=x,\\forall x \\in \\mathbb R$ , then is it true that $f(x)=x , \\forall x \\in \\mathbb R$ ? I can see that $f$ is bijective , hence strictly monotone . But I cannot progress further . Please help. Thanks in advance", "I have Sanguinare Vampiris. I don't really want to become a vampire. How can I cure myself?", "Can a polymorphed creature use class features that don't require speech or hand gestures? The Polymorph spell states (in part): The target’s game statistics, including mental ability scores, are replaced by the statistics of the chosen beast. It retains its alignment and personality. The creature is limited in actions it can perform by the nature of its new form, and it can’t speak, cast spells, or take any other action that requires hands, or speech. So, can a polymorphed Paladin use their Divine Smite class feature? It expends a spell slot, but it is not a spell, and as far as we can tell does not require hands or speech. We know (based on the 10th level Transmutation Wizard feature) that a wizard is supposed to be able to polymorph herself, and we can assume that she is also supposed to be able to maintain concentration needed to stay in the new form (otherwise it would be a pretty useless ability). This is (as far as I can tell) not something any of the beasts eligible as polymorph targets can normally do. So it is clear that the polymorphed creature maintains some abilities from her old form. The question is which ones. The Druid's Wild Shape ability explicitly says you can use class features, while Polymorph does not, suggesting that you can't use class features while polymorphed. However, Wild Shape also explicitly says that you can continue to concentrate on a spell (see below, emphasis mine), and Polymorph does not, yet we believe that a polymorphed creature can continue to concentrate on the polymorph spell. So the fact that Wild Shape explicitly allows something and Polymorph is not explicit about it does not necessarily mean that the polymorphed creature cannot do those things. From Wild Shape rules: You can't cast spells, and your ability to speak or take any action that requires hands is limited to the capabilities of your beast form. Transforming doesn't break your concentration on a spell you've already cast, however, or prevent you from taking actions that are part of a spell, such as call lightning, that you've already cast. So, since Polymorph is silent on the question of whether or not class abilities can be used, and states only that the polymorphed creature cannot perform actions that require hands or speech, how can we best determine whether (RAI) polymorphed creatures maintain any of their old abilities beyond spell concentration?", "Encode/Decode URLs in C++ Does anyone know of any good C++ code that does this?", "For $f$ in dual space, there exists $x$ with norm 1 and $f(x)=\\|f\\|$ if space is reflexive (and nontrivial) Let $X\\ne\\{0\\}$ be a reflexive space and let $f\\in X^*$, where $X^*$ is the dual of $X$. I want to know: in general, does there exist an $x\\in X$ with $\\|x\\|=1$, and $f(x)=\\|f\\|$, where $\\|f\\|$ is defined as $\\sup\\{|f(x)|:x\\in X,\\|x\\|=1\\}$? I know this is true for $\\mathbb{R}^n$ with the norm from the standard inner product, but I'm wondering if it is true in general.", "Minimum value of $\\left(a+\\frac{1}{b}\\right)^2+\\left(b+\\frac{1}{c}\\right)^2+\\left(c+\\frac{1}{a}\\right)^2$ Given $a,b,c \\in \\mathbb{R^+}$ such that $a+b+c=12$ Find Minimum value of $$S=\\left(a+\\frac{1}{b}\\right)^2+\\left(b+\\frac{1}{c}\\right)^2+\\left(c+\\frac{1}{a}\\right)^2$$ My Try: By Cauchy Schwarz Inequality we have $$\\left(a+\\frac{1}{b}\\right)+\\left(b+\\frac{1}{c}\\right)+\\left(c+\\frac{1}{a}\\right)\\le \\sqrt{3}\\sqrt{S}$$ $\\implies$ $$\\sqrt{3S} \\ge 12+\\frac{1}{a}+\\frac{1}{b}+\\frac{1}{c}$$ Now by $AM \\ge HM $ inequality we have $$\\frac{a+b+c}{3} \\ge \\frac{3}{\\frac{1}{a}+\\frac{1}{b}+\\frac{1}{c}}$$ $\\implies$ $$\\frac{1}{a}+\\frac{1}{b}+\\frac{1}{c} \\ge \\frac{3}{4}$$ hence $$\\sqrt{3S} \\ge 12+\\frac{3}{4}=\\frac{51}{4}$$ hence $$3S \\ge \\frac{2601}{16}$$ so $$S \\ge \\frac{867}{16}$$ is this approach correct and any better approach please share.", "Just looking for the difference between 2&gt;&amp;- 2&gt;/dev/null |&amp; &amp;&gt;/dev/null &gt;/dev/null 2&gt;&amp;1 and their portability with non-Bourne shells like tcsh, mksh, etc.", "What are PATH and other environment variables, and how can I set or use them? Questions about setting environment variables the PATH are very common here, and in most cases the answers are very similar to each other. In the future it would be nice to have a good Q/A for this. So the question is: What are environment variables, like the executable PATH, and how can I change and use them on major operating systems? A good answer would include a simple explanation of what environment variables and especially PATH mean to the OS, as well as simple guidelines on how to set and read them accordingly.", "the method getApplicationContext() is undefined", "Is there any way to find out if a file is a directory? I have the file name in a variable. In Perl I can do this: if(-d $var) { print \"it's a directory\\n\" }", "In my native language, we can say: I have dog Because I don't want to say a dog (one dog, how many dogs) or the dog (that dog, the listener don't care which dog). p.s. after 3 years later, I have to say, why I ask this question, is I still cannot grasp how to use the right 'article word'. sometimes, a noun will use an article, sometimes, a noun could not(or omit) the article word before it. there aren't a formula for this. So, I have to remember all the time! I feel so frustrate", "What is the Mediator in this Feynman Diagram $q\\bar{q} \\rightarrow gg$? Let's consider the t-channel version of the process $q\\bar{q} \\rightarrow gg$. What is the mediator in this case, a $q$ or a $\\bar{q}$? Naively, I would have thought a $q$ (as to have one fermion line), but I am not $100 \\%$ sure.", "raw_input in python without pressing enter", "Binary search (bisection) in Python Is there a library function that performs binary search on a list/tuple and return the position of the item if found and 'False' (-1, None, etc.) if not? I found the functions bisect_left/right in the , but they still return a position even if the item is not in the list. That's perfectly fine for their intended usage, but I just want to know if an item is in the list or not (don't want to insert anything). I thought of using bisect_left and then checking if the item at that position is equal to what I'm searching, but that seems cumbersome (and I also need to do bounds checking if the number can be larger than the largest number in my list). If there is a nicer method I'd like to know about it. Edit To clarify what I need this for: I'm aware that a dictionary would be very well suited for this, but I'm trying to keep the memory consumption as low as possible. My intended usage would be a sort of double-way look-up table. I have in the table a list of values and I need to be able to access the values based on their index. And also I want to be able to find the index of a particular value or None if the value is not in the list. Using a dictionary for this would be the fastest way, but would (approximately) double the memory requirements. I was asking this question thinking that I may have overlooked something in the Python libraries. It seems I'll have to write my own code, as Moe suggested.", "Can a full version of Ubuntu be Installed on a USB Drive?", "Will an iOS reinstall make a jailbroken iOS device \"unjailbroken\" and “supported by Apple” again? Will an Work on any jailbroken-iPhone and Make a jailbroken-iPhone \"unjailbroken\"? Make a jailbroken-iPhone \"supported by Apple\"? Similarly, does such an iOS reinstall reset the iPhone (jailbroken or not) back to a \"clean, factory default\" state? My near-term purpose: I have an iPhone 4S running iOS 5.1 I'd like to jailbreak to at least install better Google Voice integration like .", "I've just recently started playing D&amp;D 4e through the Red Box, and I am confused about how to fill in the power cards. So, take Nimbus of Holy Shielding for instance. I understand the Target and Hit components as well as the effect, but my question is about the Attack component. It reads: Attack: Wisdom vs Will. Does the mean whatever my Wisdom score is, without the modifier, is compared to the Will score of the enemy? Would I then not even have to roll a d20 to see if it works?", "Proof that Pi is constant (the same for all circles), without using limits", "Turn off buffering in pipe I have a script which calls two commands: long_running_command | print_progress The long_running_command prints progress but I'm unhappy with it. I'm using print_progress to make it nicer (namely, I print the progress in a single line). The problem: Connection a pipe to stdout also activates a 4K buffer, so the nice print program gets nothing ... nothing ... nothing ... a whole lot ... :) How can I disable the 4K buffer for the long_running_command (no, I do not have the source)?" ]
medi_sts_stackexchange_dupe
Switching from Windows 7 to Kubuntu - NTFS disk conversion
how to convert NTFS to ext4 in windows?
[ "If I perform RSA on my input 5 times, I get the original input back out. Why is it that often, iterating RSA encryption just a few times cycles yields back the original value, when the public modulus N is small?", "Unable to correct problems, you have held broken packages After upgrading from 10.04 to 12.04 I am trying to install different packages. For instance ia32-libs and skype (4.0). When trying to install these, I am getting the 'Unable to correct problems, you have held broken packages' error message. Output of commands: sudo apt-get install -f Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. After running this: sudo dpkg --configure -a foo@foo:~$ sudo apt-get install -f Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.", "How is the default user avatar generated?", "Detecting absolute motion inside a box This is not a contradiction and I know it is impossible but still consider a thought experiment by me and point out if something is wrong. See the following picture and then the explanation follows. Rest frames are easy to understand. They are just for clarification. Lets move on to the moving frames. The velocity of the box is $0.1\\ c$. Now a photon is emitted (I am not taking a light ray to avoid complication in discussion). After emission the box also moves a certain distance ahead. So the photon takes more than one second to reach the wall. But even the source moves that much distance ahead. When the light is reflected back, the source and the wall again move forward as the box is moving. But after reflection the wall has no role to play. We are concerned about the source. The source moves a certain distance ahead and therefore light takes less than one second to reach back. But the difference of the first case and the second case is not the same. To explain, I will give some equations. Moving frame 1: Velocity of the box: $0.1\\ c = 30,000km/s$ Time taken by light to reach the wall $=\\frac{330,000\\ \\text{km}}{300,000\\ \\text{kms}^{-1}}= 1.1s$ Distance moved ahead by the box from original position: $30,000\\ \\text{km}$ Moving frame 2: distance moved ahead by the box from original position $&gt;30,000\\ \\text{km}$ as the box also moves ahead after reflection. let $d$ be the distance moved ahead by the box after reflection. Time taken by light to reach the source: $\\frac{270,000\\ \\text{km}\\ -\\ d}{300,000\\ \\text{kms}^{-1}} &lt;0.9s$ Therefore we see that this could possibly determine the absolute motion. So in total we see that the light will take lesser time to reach the source. Please correct me if I am wrong and give your opinion why is it so. EDIT 2 for clarification The box is the compartment in space in which you are moving and I am calculating the time the light takes to reach back the source. I am not even adding velocities. Please correct me and tell me where did I add velocities. For clarification just let me give a simple example. Suppose person A is standing still and B is running towards a light source. Obviously he will see the light before person A even though the speed would be the same. So, what I am doing over here is not increasing the speed of light, but instead decreasing the distance to be covered by it.", "Does ReLU layer work well for a shallow network?", "Does the std::stack in the C++ STL expose any iterators of the underlying container or should I use that container directly?", "How to integrate OpenCV Manager in Android App", "solving third-order nonlinear ordinary differential equation", "How can one derive Schrödinger equation? The is the basis to understanding quantum mechanics, but how can one derive it? I asked my instructor but he told me that it came from the experience of Schrödinger and his experiments. My question is, can one derive the Schrödinger equation mathematically?", "As much as I have tried, it doesn't seem possible to use separate labels when using a casesconstruction (from the amsmath package). Ideally, I would like to be able to write something like \\documentclass{article} \\usepackage{amsmath} \\begin{document} \\begin{equation} f(x)=\\begin{cases} 1&amp;x\\geq0\\label{positive}\\\\ 0&amp;x&lt;0\\label{negative} \\end{cases} \\end{equation} \\end{document} and later refer to both cases at different places. What would be the best way to achieve this result?", "Picking random points in the volume of sphere with uniform probability", "403 Forbidden with Java but not web browser?", "Export cycles material to unity I have been experiencing an issue that once I have a material created and looking the way I want it, I cannot seem to export it correctly with the textures mixed. I don't know the correct words to use, but in blender I have the material created using the nodes editor, and I have placed two textures inside of there (one for the rock texture and one for moss, my object is a rock). When I export this model and import to Unity (the game engine I am using), I find a materials folder but the material inside of it does not have the textures assigned, it's just a plain white material? How can I export my material from blender in a way that it will allow me to import it WITH TEXTURES into Unity?", "Are there rules about using \"that\" to join two clauses? He will understand that I was not joking. He will understand I was not joking. Which of the sentences is correct? Are there any specific rules about the use of &quot;that&quot; in the sentences I reported as example?", "I realised, reading another Phys.SE question about that I don't really understand how works. Particularly concerning, for a SCUBA diver. The top answers to that question seem to claim that balloons get their \"sense of down\" from a pressure differential. They continue: when a car accelerates, the air at the back of the car becomes more dense, and at the front less dense, changing the plane of the pressure differential and so also, the balloon's sense of up. I find that extremely hard to credit. However, I realised that I don't really know why less dense things float in more dense things. I'm fairly sure it's something to do with displacement of heavier things by lighter things, and I think pressure acting on the lighter thing's surface has something to do with it, but that's about it.", "How to understand \"with\" in the following sentence? Not every job will end up with a success. What is the meaning of \"with\" here? Why not use other preposition? Could native speakers please describe the scene of this sentence for me? Thx.", "Prove that $\\lim_{t\\to \\infty} t\\mu(\\{x:f(x)\\geq t\\})=0$ Problem Suppose $f$ is a non-negative integrable function on a measure space $(X,\\mathcal{A},\\mu).$ Prove that $$\\lim_{t\\to \\infty} t\\mu(\\{x:f(x)\\geq t\\})=0$$ Attempt Let $E_t=\\{x:f(x)\\geq t\\}$ Note that $f\\chi_{E_t}\\leq f$. Since $f$ is integrable, the Lebesgue dominated convergence theorem tells us that $$\\lim_{t\\to\\infty} \\int f\\chi_{E_t}\\rightarrow \\int \\lim_{t\\to\\infty} f\\chi_{E_t}=0,$$ since $\\lim_{t\\to\\infty} f\\chi_{E_t}=0$ a.e. $\\ ^{(1)}$ The result follows from the fact that $$t\\mu(E_t)\\leq\\int f\\chi_{E_t}.$$ Question I am having trouble proving $(1)$. That is, how can I show that $f\\chi_{E_t}\\rightarrow 0$ a.e?", "Where can I find the source code of Ubuntu? I would like to know where to find the source code of Ubuntu. I'd like to see how far it is \"open source\".", "WINDOWS 10 - Error Windows Update 10 = Error in phase \" SAFE_OS \" with the operator error with \" BOOT \" For days I tried several ways to install Windows 10 . With Windows Update I have always an error and with the media creation tool microsoft I have this message: \" The installation failed in SAFE_OS phase with an error when BOOT operator \" with this code : 0xC1900101 - 0x20017 Having tried everything I do not know what to do ... Can you help me please ? Thank you PS: I migrated my OS with the software \"Paragon migrate OS to SSD\" from my hard disk to my SSD. Maybe I have this errors because I did this....", "Why do the measurements of this object seem erroneous?" ]
medi_sts_stackexchange_dupe
Centering input field
Best way to center a on a page vertically and horizontally?
[ "INSERT takes over 5 hours, when inserting more than specific number of rows When inserting less then about 1,350,000 rows to the table it all takes about 2 minutes, however when number of inserted rows is bigger, then the time needed to insert data grows to about 5 hours. The problem is not connected with query or indexes, because everything has been working fine for a long time and nothing has changed in the structure of query, tables or indexes. Problem appeared for the first time about 2 weeks ago and it appears repeatedly on days, when number of inserted rows is bigger than +-1,350,000. For example on one day number of inserted rows is 1,200,000 and the process takes 2 minutes, on the other day number of rows is 1,450,000 and it takes 5-6 hours to insert data. I tried to rebuild indexes, but it has not helped.", "How to view/erase images from both CF and SD cards on Canon EOS 5D mk3? I've been trying to setup my Canon EOS 5D mk3 to shoot in \"backup mode\". I have two cards: 32GB CF 8GB SD I've set it like the following: SET UP1 menu ------------ Record func.: Rec. separately Playback: 1 [CF] SHOOT1 menu ------------ Image type/size CF: RAW 22M Image type/size SD: JPEG 9,8M It works ok, except I have one problem. Since I have only these two cards, on some large shoots I need to erase some in order to free some space to make the card last till the end of shoot. When viewing images and deleting the ones I want to delete, it seems that I can only see the contents of the CF card, and when I delete an image I delete only the RAW file saved on the CF. Is there a way to delete the JPEG from the SD card along with it's RAW \"parent\" on the CF card?", "How do I prevent widow/orphan lines?", "How can I set mouse sensitivity, not just mouse acceleration?", "A question about eigenvalues of $5\\times5$ matrix $A\\in M_5({R})$ and $A^2-4A-I=0$ If $a_1,a_2,a_3,a_4,a_5$ are eigenvalues of $A$ what is value of $$\\left(a_1-\\dfrac{1}{a_1}\\right)+\\left(a_2-\\dfrac{1}{a_2}\\right)+\\cdots+\\left(a_5-\\dfrac{1}{a_5}\\right)$$ I tried to work with $A^2-4A-I=0$ but get nothing because $A_{5\\times5}$ characteristic polynomial is something like $A^5+k_1A^4+...$ Any hint will be appreciated .", "$n^2 + 3n +5$ is not divisible by $121$ Question: Show that $n^2 + 3n + 5$ is not divisible by $121$, where $n$ is an integer.", "How do I make environment variable changes stick in Python? From what I've read, any changes to the environment variables in a Python instance are only available within that instance, and disappear once the instance is closed. Is there any way to make them stick by committing them to the system? The reason I need to do this is because at the studio where I work, tools like Maya rely heavily on environment variables to configure paths across multiple platforms. My test code is import os os.environ['FAKE'] = 'C:\\\\' Opening another instance of Python and requesting os.environ['FAKE'] yields a KeyError. NOTE: Portability will be an issue, but the small API I'm writing will be able to check OS version and trigger different commands if necessary. That said, I've gone the route of using the Windows registry technique and will simply write alternative methods that will call shell scripts on other platforms as they become requirements.", "Clearing all cookies with JavaScript", "Website with a collection of sci fi stories set in the same universe; powerful AIs being regarded as Gods, one named Gaia, and a \"technopocalypse\" There is a site with lots of stories all set in a future with super powerful AIs regarded as Gods, the most powerful being matrioshka brains. They have a specific terminology but I can't remember their names. Earth has been converted into a similiar godlike computer called \"Gaia\" and has expelled all humans creating a dystopian exodus across the solar system. And something about rogue Von Neumann machines causing a huge crisis dubbed the \"technopocalypse\".", "Unintentional mouse movements, am I paranoid?", "Searching through ODT documents without opening them? Let's say I have 2000 .ODT files. Their names are random numbers. How do I go about searching for, let's say, \"pricing list\"? How do I find the document I need without opening all of them one by one and checking to see if it's the right one? Is there some program to search through the words in the documents without opening them?", "Paperback novel about a man who kills a birdlike alien on his balcony with a watering can", "I am trying to prove this binomial identity $\\sum_{r=0}^n {r {n \\choose r}} = n2^{n-1}$ but am not able to think something except induction,which is of-course not necessary (I think) here, so I am inquisitive to prove this in a more general way. The left side of an identity occurs while solving another problem (concerning binomial theorem) so I am more interested in deriving the right side from the left side, else I have to remember it now onward. EDIT: I am more interested in an algebraic proof rather than combinatorial argument or something involving calculus (however I liked and solution), hence I am removing the combinatorics tag.", "change caption in list of tables I would like to change the caption in the List of Tables in a way it is different from the caption in the corresponding table. How can I do that? Does there exist a command to do that?", "There has been some recent behavior change on SE (around July 2015). I have two accounts I use, one Google openId based for one set of sites (call it Account-A) and another SE login based for a different set of sites (Account-B). Used to be that I could be logged into one set of sites with the first user and a different set with the other users. But now I am logged in with the Account-A on Site-1. When I go to one of the sites I use the other account for and click \"log in\" under the SE menu, I go to a page where I only have an option to confirm creation of an account based on my Google login. It does not present a way to log in with an SE account. How can I log in with my other account here? (and before you flag this as a duplicate, please ensure the other question is recent enough and that the answer is relevant. This behavior has definitely morphed over the years... and I am having trouble finding something that is relevant. For instance this question simply points out how to merge the accounts which is NOT what I want . This question talks about presenting different user info on each site but that's not what I want -- I want totally separate accounts).", "Are \"if\" and \"iff\" interchangeable in definitions? In some books the word \"if\" is used in definitions and it is not clear if they actually mean \"iff\" (i.e \"if and only if\"). I'd like to know if in mathematical literature in general \"if\" in definitions means \"iff\". For example I am reading \"Essential topology\" and the following definition is written: In a topological space $T$, a collection $B$ of open subsets of $T$ is said to form a basis for the topology on $T$ if every open subset of $T$ can be written as a union of sets in $B$. Should I assume the converse in such a case? Should I assume that given a basis $B$ for a topological space, every open set can be written as a union of sets in $B$? This is just an example, I am not asking specifically about this sentence.", "If I calculate the median of a sufficiently large number of observations drawn from the same distribution, does the central limit theorem state that the distribution of medians will approximate a normal distribution? My understanding is that this is true with the means of a large number of samples, but is it also true with medians? If not, what is the underlying distribution of sample medians?", "Why is the sky dark at night? The question is the well-known If there are so many/infinite stars, in every direction, why is it dark at night? Where goes all the light we don't see? Discussing with a friend we found different answers. The first (my friend's answer) is that given the fact that in a finite amount of time (in this case, the age of the universe), light can travel only a certain, finite, distance, we cannot see, if they actually exist, stars farther than such distance (about 13 billions of years, I guess). Then he states (or better, I got him notice he implicitly does this) that within this radius there aren't enough stars to fill the night sky, and that's why we have darkness without sun's light. The second answer (mine, or anyway the one I heard from a minutephysics YouTube video) is that despite of the big size of the observable universe, cosmological expansion red shifts most of the light out of the visible radiation range, so that the majority of light can't be seen by our eyes at night, while if we use, for example, an infrared camera, we should see a brighter sky, and lenghtening more and more the wavelength at which we observe the sky, we come to the uniform background radiation. So my question is, what is the right answer? Is it one of the above-mentioned or even a third one? EDIT: I've seen both answer may be acceptable, but what is the main contributing phenomenon?", "What is a \"hat\"? What exactly is a hat? I have seen a lot of people arguing the significance of hats and the limited edition hats. I know the hats are sort of linked to the Winterbash stuff, but what exactly is a hat, what does it do, how do I get one? Is there a full list of hats?", "Is past simple ever justified with 'by'? Can anyone shed some light on the following aspect? By 5 PM I gave him the book. By 5 PM I had given him the book. In both the sentences the book was given before 5 PM and no later than 5 PM. But I can't understand then what the difference between them is. a Also is it right to use simple past with 'by' at all? If yes, then why and if not, then why is it incorrect to use simple past with 'by'?" ]
medi_sts_stackexchange_dupe
My /User directory permissions always changes… should I be worried?
Permissions of /Users keep changing back to drwxrwxrwx
[ "Why does space expansion not expand matter? I have looked at other questions on this site (e.g. \"why does space expansion affect matter\") but can't find the answer I am looking for. So here is my question: One often hears talk of space expanding when we talk about the speed of galaxies relative to ours. Why, if space is expanding, does matter not also expand? If a circle is drawn on balloon (2d plane), and the balloon expands, then the circle also expands. If matter is an object with 3 spatial dimensions, then when those 3 dimensions expand, so should the object. If that was the case, we wouldn't see the universe as expanding at all, because we would be expanding (spatially) with it. I have a few potential answers for this, which raise their own problems: Fundamental particles are 'point sized' objects. They cannot expand because they do not have spatial dimension to begin with. The problem with this is that while the particles would not expand, the space between them would, leading to a point where the 3 non-gravity forces would no longer hold matter together due to distance Fundamental particles are curled up in additional dimensions a la string theory. These dimensions are not expanding. Same problems as 1, with the added problem of being a bit unsatisfying. The answer seems to be (from Marek in the previous question) that the gravitational force is so much weaker than the other forces that large (macro) objects move apart, but small (micro) objects stay together. However, this simple explanation seems to imply that expansion of space is a 'force' that can be overcome by a greater one. That doesn't sound right to me.", "I have a model similar to below with a continuous outcome, continuous predictor and a categorical variable. the goal of this analysis is to make inferences on the group variable. The issue is that y is bounded by x in the form of y >= -x. When the model makes predictions you can see in the plot below that the predicted value is outside the possible range. See the last plot. How can this be remedied? A custom loss function to penalize going beyond the bound and use gradient descent regression? Or is there some other way? Thank you. x = rep(seq(-10,10,1),each=5) y = rep(0,length(x) ) weights = sample( seq(1,1000,1) ,length(x)) groups = rep( letters[1:5], times =length(x)/5 ) ## the outcome y has the relationship y &gt;= -x for(i in 1:length(x)){ y[i] = sample( seq(-x[i],-x[i]+ ifelse(x[i]&lt;0 , sample(seq(1,10,.1),1), sample(seq(5,40,.1),1) ),1) ,1) } dat =data.frame(x = x, y = y, weights = weights, group = groups) model = lm(dat = dat, y ~ x + group + group * x, weights = weights) dat$FIT= predict(model, dat, allow.new.levels = TRUE) library(ggplot2) ggplot(data = dat, aes(x = x, y = y, color = group))+geom_point( aes(size = weights))+ geom_line(data = dat, aes(x = x, y = FIT, color = group)) #data for new predictions newdata = data.frame( x = seq(-100,100,1) , group = rep(\"c\", length( seq(-100,100,1) )), bound = -seq(-100,100,1) ) ## when pridicting new data the outcome y has the relationship y &gt;= -x ## but the predicted vales are below the bound. See how red line is below blue to the left of zero new_preds = predict(model, newdata, allow.new.levels = TRUE) ggplot(data = newdata, aes(x = x, y = new_preds, color = group))+geom_line() + geom_line(data = newdata, aes(x = x, y = bound, color = \"green\"))", "Change System Language Solaris 8 I have Solaris 8 OS installed in French. Is it possible to switch from French to English without reinstalling the OS ? If yes how ? When locale -a i have this : POSIX common en_US.UTF-8 C iso_8859_1 en_CA en_CA.ISO8859-1 en_US en_US.ISO8859-1 en_US.ISO8859-15 en_US.ISO8859-15@euro fr_CA fr_CA.ISO8859-1 iso_8859_15 th th_TH th_TH.TIS620 Even when I try to edit /etc/default/init with : LANG=en_US.ISO8859-15 LC_COLLATE=en_US.ISO8859-15 LC_CTYPE=en_US.ISO8859-15 LC_MESSAGES=en_US.ISO8859-15 LC_MONETARY=en_US.ISO8859-15 LC_NUMERIC=en_US.ISO8859-15 LC_TIME=en_US.ISO8859-15 LC_ALL=en_US.ISO8859-15 and reboot : nothing happens. To verify the result i always use date and when i reboot : i also have the date in french. P.S : I have to do this configuration in a computer which isn't here in my office, so i have to this manipulation in a an another computer here in my office and if it works, i'll do it to the other computer. So the computer here is configured in English and i have to switch it to French. Here is the content of my ~./dt : C errorlog sessionlogs Desktop errorlog.old sessions Trash errorlog.older simulateur.dtwmrc appconfig help startlog appmanager icons startlog.old asr.dtwmrc outils.dtwmrc startlog.older bin palettes tmp bookmarks sdtfonts types dtwmrc sdtpcaction.conf wsmenu en_US.ISO8859-15 sdtpcaction.conf.bak Thanks", "How can I switch between starting a coroutine vs running the routine all at once? I'm generating a level, and I have an optional delay to show the steps level generation one by one. If my generationDelay boolean is true, I want to use StartCoroutine to spread the generation out over time. If it's false, I want to call the same method but without StartCoroutine. The problem is that the method is type IEnumerator. I can make two methods one type of IEnumerator and one not. But I wonder if there is a way to use one method. In the first script top i did: public bool generationDelay = false; Then in a method: private void BeginGame() { mazeInstance = Instantiate(mazePrefab) as Maze; if (generationDelay == true) { StartCoroutine(mazeInstance.Generate(generationDelay)); } else { mazeInstance.Generate(generationDelay); } } Then the other script where the method Generate is: In the top: public float generationStepDelay = 0.01f; Then the method Generate: public IEnumerator Generate (bool generationDelay) { if (generationDelay == true) WaitForSeconds delay = new WaitForSeconds(generationStepDelay); cells = new MazeCell[size.x, size.z]; List&lt;MazeCell&gt; activeCells = new List&lt;MazeCell&gt;(); DoFirstGenerationStep(activeCells); while (activeCells.Count &gt; 0) { yield return delay; DoNextGenerationStep(activeCells); } } I'm getting an error on the line: WaitForSeconds delay = new WaitForSeconds(generationStepDelay); \"Embedded statement cannot be a declaration or labeled statement\" And an error on the line: yield return delay; \"The name 'delay' does not exist in the current context\" The reason I want to use a bool variable is that when i'm using StartCoroutine it's kind of slow, even if I change the value of generationStepDelay to 0 it's kind of slow. And if I'm not using StartCoroutine and not using the Generate method as IEnumerator it will work fast. So i wonder what should I do and how?", "Live notification shown for own edits When editing an answer, the &quot;new revision&quot; message is shown for a short moment. This makes no sense because the revision you just created is automatically displayed anyway.", "Using the properties of real numbers, verify commutativity on complex numbers. I have just started self-studying Linear Algebra after a 3 year hiatus from mathematics (in an extended neuroscience foray), and I want to ensure that I am sufficiently verifying commutativity of complex numbers by using the properties of real numbers. My attempts... (1) Commutativity of Addition: Verify that $w + z = z + w$ for all $w, z \\in \\mathbb{C}$. $$w + z = (a + bi) + (c + di) \\hspace{10mm}\\text{by definition of }\\mathbb{C}$$ $$\\hspace{13mm} = a + (bi + c) + di \\hspace{10mm}\\text{by associativity in }\\mathbb{R}$$ $$\\hspace{17mm} = a + (c + bi) + di \\hspace{10mm}\\text{by commutativity in }\\mathbb{R}$$ $$\\hspace{16mm} = (a + c) + (bi + di) \\hspace{10mm}\\text{by associativity in }\\mathbb{R}$$ $$\\hspace{19mm} = (c + a) + (di + bi) \\hspace{10mm}\\text{by commutativity in }\\mathbb{R}$$ $$\\hspace{13mm} = c + (a + di) + bi \\hspace{10mm}\\text{by associativity in }\\mathbb{R}$$ $$\\hspace{17mm} = c + (di + a) + bi \\hspace{10mm}\\text{by commutativity in }\\mathbb{R}$$ $$\\hspace{17mm} = (c + di) + (a + bi) \\hspace{11mm}\\text{by associativity in }\\mathbb{R}$$ $$\\hspace{13mm} = z + w \\hspace{34mm}\\text{by definition of }\\mathbb{C}$$ $$\\blacksquare$$ This seems a bit verbose to me - is it acceptable to combine steps? For example, rather than: $$w + z = (a + bi) + (c + di) \\hspace{10mm}\\text{by definition of }\\mathbb{C}$$ $$\\hspace{13mm} = a + (bi + c) + di \\hspace{10mm}\\text{by associativity in }\\mathbb{R}$$ $$\\hspace{17mm} = a + (c + bi) + di \\hspace{10mm}\\text{by commutativity in }\\mathbb{R}$$ can I instead write: $$w + z = (a + bi) + (c + di) \\hspace{10mm}\\text{by definition of }\\mathbb{C}$$ $$\\hspace{48mm} = a + (c + bi) + di \\hspace{10mm}\\text{by associativity and commutativity in }\\mathbb{R}$$? (2) Commutativity of Multiplication: Verify that $wz = zw$ for all $w, z \\in \\mathbb{C}$. $$\\hspace{-14mm}wz = (a + bi)(c + di) \\hspace{24mm}\\text{by definition of }\\mathbb{C}$$ $$\\hspace{4mm} = a \\cdot c + a \\cdot di + bi \\cdot c + bi \\cdot di \\hspace{10mm}\\text{by distribution in }\\mathbb{R}$$ $$\\hspace{9mm} = a \\cdot c + bi \\cdot c + a \\cdot di + bi \\cdot di \\hspace{10mm}\\text{by commutativity in }\\mathbb{R}$$ $$\\hspace{35mm} = c \\cdot a + c \\cdot bi + di \\cdot a + di \\cdot bi \\hspace{10mm}\\text{by multiplicative commutativity in }\\mathbb{R}$$ $$\\hspace{1mm} = c(a + bi) + di(a + bi) \\hspace{20mm}\\text{by distribution in }\\mathbb{R}$$ $$\\hspace{5mm} = (c + di)(a + bi)\\hspace{34mm}\\text{by distribution in }\\mathbb{R}$$ $$\\hspace{4mm} = zw \\hspace{55mm}\\text{by distribution in }\\mathbb{R}$$ $$\\blacksquare$$ This also seems a bit wonky to me. Any and all suggestions on clearing up my verification, reasoning, etc. would be greatly appreciated!", "Prove that $A+I$ is invertible if $A$ is nilpotent Possible Duplicate: Given $A^{2012}=0$ prove that $A+I$ is invertible and find an expression for $(A+I)^{-1}$ in terms of $A$. ($I$ is the identity matrix).", "In the sentence: \"Drinking and driving IS dangerous\", why does the verb \"to be\" need to be singular? In the sentence: \"Drinking and driving is dangerous\". Drinking and driving are both subjects and the word dangerous is the object (I think) but why do I have to use the verb to be in singular?", "The number of divisors I am reading a math book. It states the following rule: For an integer $n$ greater than 1, let the prime factorization of $n$ be $$n=p^a_1p^b_2p^c_3...p^m_k$$ Here $a, b, c,..., m$ are nonnegative integers, and $p_1,p_1,...,p_k$ are prime numbers. Then the number of divisors of $n$ is: $$d(n)=(a+1)(b+1)(c+1)...(m+1)$$ I can use the rule to solve problems correctly, but I don't understand the rule. How to prove it?", "Why didn't Harry Potter tell Aunt Petunia he was rich to improve how he was treated by Dursleys? This is a follow-up question to One reason Aunt Petunia mistreated Harry was that she did not know he was rich. If she knew, she would naturally have treated this golden goose nicely. Her retirement would be secured if Harry financially supported her in old age. Why didn't Harry tell Aunt Petunia he was rich? Surely every boy wants to be treated nicely by his family.", "I've downloaded the new iOS 8 update on my iPhone 5 but am getting second thoughts about actually installing it. Is there a way for me to delete that download or am I at the point of no return?", "Accidental chown under / as root I accidentally run the following command as root chown mike -Rf / backups the point is that I added a space between / and backups my mistake, I stopped the command after 1-2 seconds, how can I recover from this? I have problems with DirectAdmin right now for example when accessing it I recive the error: Unable to determine Usertype user.conf needs to be repaired http://help.directadmin.com/item.php?id=456 Or I stopped recieving emails, I dont even know what else is messed up right now...", "A question about the arctangent addition formula. In the arctangent formula, we have that: $$\\arctan{u}+\\arctan{v}=\\arctan\\left(\\frac{u+v}{1-uv}\\right)$$ however, only for $uv&lt;1$. My question is: where does this condition come from? The situation is obvious for $uv=1$, but why the inequality? One of the possibilities I considered was as following: the arctangent addition formula is derived from the formula: $$\\tan\\left(\\alpha+\\beta\\right)=\\frac{\\tan{\\alpha}+\\tan{\\beta}}{1-\\tan{\\alpha}\\tan{\\beta}}.$$ Hence, if we put $u=\\tan{\\alpha}$ and $v=\\tan{\\beta}$ (which we do in order to obtain the arctangent addition formula from the one above), the condition that $uv&lt;1$ would mean $\\tan\\alpha\\tan\\beta&lt;1$, which, in turn, would imply (thought I am NOT sure about this), that $-\\pi/2&lt;\\alpha+\\beta&lt;\\pi/2$, i.e. that we have to stay in the same period of tangent. However, even if the above were true, I still do not see why we have to stay in the same period of tangent for the formula for $\\tan(\\alpha+\\beta)$ to hold. I would be thankful for a thorough explanation.", "How can I know when my screen was locked last time? Exist a log where I can look for that information? I want to know last days when my PC automatically locked the screen because was idle.", "Prevent Mac Terminal from reverting to default theme I can't find any way to change the Terminal theme and have that theme applied permanently. I want to change to another darker theme other than the default 'basic' theme, and (most importantly) have it remain as the theme every time I open Terminal.", "Show $f$ can't be irreducible over a finite field if $f^\\prime$ is the zero polynomial.", "Shoot, Shoot At I have a question about the difference between the verb \"shoot\" and \"shoot at\": Police shot the suspect. Police shot at the suspect. Are they just the same?", "windows 7 desktop icons: new icon placement When moving/saving/etc a new file on the desktop, the icon appears second (just after \"Computer\"). I find it annoying, since I want my \"special\" icons to be first (such as the recycle bin, \"Network\", etc.). Can this behavior be changed?", "Quick question about curly braces not showing up Ii am writing a short code, so I doubt anything else in the code is causing the problem. This is the problematic line of code: \\[ M_R := \\max {|f(z)|: |z - z_0| = R }\\le M\\] It doesn't show the curly braces. I've tried using \\left{ and \\right} but to no avail. What should I do? Thank you", "The vast majority of intelligent species in the Star Trek universe are bipedal, humanoid creatures. From the lot I've seen of TOS, TNG, DS9, Voyager, Enterprise, and the movies, it seems that this coincidence goes largely unquestioned. Metaknowledge grants that it is much easier to have human actors portray human-like beings, and so this was probably done due to budgetary/technological limitations. However, I'm wondering if an in-universe reason for this was ever given or explored?" ]
medi_sts_stackexchange_dupe
Trying to use setConverter() on my comboBox, but I get a null pointer exception if I put it in my initialize function
What is a NullPointerException, and how do I fix it?
[ "Copy files from a list to a folder", "Deriving Schrodinger equation from Klein-Gordon QFT with the definition $\\psi(\\textbf{x},t)\\equiv \\langle 0|\\phi_0(\\textbf{x},t)|\\psi\\rangle$ In the book \"Quantum Field theory and the Standard Model\" by Matthew Schwartz, , the position space wavefunction is defined as $$\\psi(x)=\\langle 0|\\phi(x)|\\psi\\rangle, \\tag{2.82+2.83}$$ where $|\\psi\\rangle$ is any state in the Fock space. Then he uses the equations (i) $\\partial_t^2\\phi_0=(\\nabla^2-m^2)\\phi_0$ (i.e., the Klein-Gordon equation for the free massive scalar field $\\phi_0(\\textbf{x},t)$) and (ii) $[H,\\phi_0]=-i\\partial_t\\phi_0$ to derive Eq. 2.85, in following 3 steps: $$i\\langle 0|\\partial_t\\phi_0(\\textbf{x},t)|\\psi\\rangle=\\langle 0|\\int \\frac{d^3\\textbf{p}}{(2\\pi)^3}\\frac{\\sqrt{\\textbf{p}^2+m^2}}{\\sqrt{2\\omega_\\textbf{p}}}(a_p e^{-ip\\cdot x}-a^\\dagger_p e^{ip\\cdot x})|\\psi\\rangle\\\\ =\\langle 0|\\sqrt{m^2-\\nabla^2}\\phi_0(\\textbf{x},t)|\\psi\\rangle.\\tag{2.85}$$ This equation is used to successfully derive the Schrodinger equation in quantum mechanics for the state $\\psi(\\textbf{x},t)\\equiv \\langle 0|\\phi_0(\\textbf{x},t)|\\psi\\rangle$. The first equality follows from differentiation of $\\phi_0(x)$ w.r.t $t$. How does the second equality follow from the first? How are the inputs (i) and (ii) are utilized to derive the second equality from the first? Is it true that the operator $$i\\partial_t\\sim\\sqrt{m^2-\\nabla^2}~?$$ If yes, what is the use of doing the middle step?", "Change logo url link I'm trying to change the logo url of the site to \"mywebsite.com/side2\", but it is not working, can anyone tell me where is the error in the code below? add_filter( 'login_headerurl', 'custom_loginlogo_url' ); function custom_loginlogo_url($url) { return home_url( 'side2' ); }", "no border around hyperlinks with hyperref", "What's in a name: hyperparameters So in a normal distribution, we have two parameters: mean $\\mu$ and variance $\\sigma^2$. In the book Pattern Recognition and Machine Learning, there suddenly appears a hyperparameter $\\lambda$ in the regularization terms of the error function. What are hyperparameters? Why are they named as such? And how are they intuitively different from parameters in general?", "Why does the symbol for the multiplication operation change shape?", "$K \\subset \\mathbb{R}^n$ is compact iff it is closed and bounded I want to prove $\\Leftarrow$. I just need one more step, now. If I find a compact set that contains K, then it will finish the proof. Rudin take a k-cell to do that, but before it he proves that every k-cell is compact, and I think I can take a more simple compact to do this step. I has thinked in the closed ball, but don't know how to prove that it is compact. Can anyone help me to find this set, if it really exists? Thanks.", "Why does division by zero with floating point (or double precision) numbers not throw java.lang.ArithmeticException: / by zero in Java", "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.", "How to monitor disk activity? How do I view my Disk Activity on Ubuntu? For example, How can I monitor what is being written and read from disk as well as the percentage of disk usage? I am looking for an application similar to the Resource Monitor in Windows.", "Is the tag info page not available on mobile theme? I was surfing SO on my iPhone, and wanted to see the info (tag-wiki) page for a tag, but didn't find it. Clicking on the tag always leads to the list of question, and there is no other link to the tag wiki. Is it not available on the mobile site?", "Can't login with Google using Internet Accounts", "Energy conservation and interference I have a problem with energy conservation in case of interfering waves. Imagine two harmonic waves with amplitudes $A$. They both carry energy that is proportional to $A^2$, so the total energy is proportional to $2A^2$. When they interfere, the amplitude raises to $2A$, so energy is now proportional to $4A^2$ and bigger than before. The equivalent question is what happens to the energy with the superposition of two waves that interfere destructively. Also, if someone could comment on the statement about this problem in my physics book (Bykow, Butikow, Kondratiew): The sources of the waves work with increased power during the interference because they feel the wave from the other source.", "What HTML tags are allowed on Stack Exchange sites?", "What happened to the voting buttons? Starting from yesterday, the up-/downvote buttons seem to have moved from the left of a post towards above (in the middle) of the bodies of all questions and answers. Here is a screenprint of a sample (containing such buttons for both a question and an answer to it): This happens on an iOS device (running 9.3.5), using various browsers and this in any SE site. No idea so far how it looks like in the most recent iOS version. Same for the (green) checkbox below those voting buttons (to mark an answer as accepted). Is this intended to be like this (IMO it looks ugly ... and a huge waste of available space), or is it rather some sort of CSS related issue that needs to be fixed? PS: Looking at the same page around the same time on a Win PC (using any of the common browsers) seems to work fine.", "Prove $ \\sin x + \\frac{ \\sin3x }{3} + ... + \\frac{ \\sin((2n-1)x) }{2n-1} >0 $ Prove that for $ 0&lt;x&lt; \\pi $, $$ \\quad S_n(x) = \\sin x + \\frac{ \\sin3x }{3} + ... + \\frac{ \\sin((2n-1)x) }{2n-1} &gt;0 \\quad \\forall n = 1,2,... $$ Having trouble with this problem. This is an olympiad-style question, so an answer that doesn't use calculus or analysis would be preferred. A possible approach is induction, but for this we need to find a function in terms of $n$ and $x$ so that we can actually use the inductive step. If anyone has any ideas they would be appreciated. If you really want to go down the calculus route (at this point I don't mind), then $ S_n' (x) = \\cos x + \\cos 3x + ... +\\cos((2n-1)x) $ , which you can find a closed form for, but I don't know how useful that is.", "Volume form on $(n-1)$-sphere $S^{n-1}$ Let $\\omega$ the (n-1) form on $\\mathbb{R}^n$ $$\\omega=\\sum_{j=1}^{n}(-1)^{j-1}x_{j}dx_{1}\\wedge\\cdots\\wedge \\hat{dx_{j}}\\wedge\\cdots dx_{n}$$ Show that the restriction of $\\omega$ to $S^{n-1}$ in precisely the volume for this sphere. What I did was: $\\omega$ never vanish on the sphere, because, defining $\\sigma\\in \\Omega^{n-1}(S)$ for $$\\sigma_{p}(v_{1},...,v_{n-1})=det(p,v_{1},...,v_{n-1})$$ and $i:S^{n-1}\\rightarrow \\mathbb{R}^{n}$ the inclusion function, then $\\omega=i^{\\ast}(\\sigma)$ then $\\omega\\not=0$ and therfore is a volume form. How proof that $\\omega$ is the volume form? The first thing that comes to mind is show that $\\int_{S^{n-1}}\\omega=Vol(S^{n-1})$ but I have serious problems with the definition, I think that is to much. How see that $\\omega$ is invariant on $\\mathbb{R}^{n}$ under action of $O(n)$", "Show that the ring of all rational numbers, which when written in simplest form has an odd denominator, is a principal ideal domain. Show that the ring of all rational numbers $m/n$ with $n$ an odd integer is a principal ideal domain. We haven't really discussed principal ideal domains. I've heard that this is easy, but I just lack the basic knowledge of what a principal ideal domain is.", "iMac disk partion FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF and fusion drive unlinked", "Why is fundamental group insufficient to classify manifolds? I have heard that some issues in group theory prevent classifying all manifolds upto homotopy using the fundamental group invariant. Does anyone know what are those issues? Thanks, K." ]
medi_sts_stackexchange_dupe
Sticky footer & 100% height - force div to get 100% height
How to make a div 100% height of the browser window
[ "Stone-Weierstrass theorem with $p(1/x)$", "Capturing screenshots on the Mac has gotten very slow recently. It used to be nearly instantaneous but now it is taking more than 10 seconds for the image to appear on the desktop. I seem to recall having this problem years ago. The workaround was to delete a large accumulation of log files that the os had built up. After I deleted these log files, the screen capture worked very fast again. Problem is that I cannot remember where these log files are. Searched for quite some time and could not find the information.", "Let $P(x)$ be a degree $n$ polynomial with distinct roots $r_1, r_2, \\cdots r_n$. Prove that $$\\displaystyle\\sum_{i=1}^{n}\\frac{P''(r_i)}{P'(r_i)}=0$$ My proof: We can equivalently rewrite the polynomial as $(x-r_1)(x-r_2)\\cdots(x-r_n)$ and if we plug in the roots in the polynomial, we get that all of them are equal to $0$ so their first derivatives are equal to $1$ and then their second derivatives are equal to $0$ which means that all quotients are equal to $0$ and there for the sum is as well, $Q.E.D$ Don't show the solution please, but if you have a hint, feel free. Thank you.", "How to calculate the exact probability that the second player wins? Consider a game that uses a generator which produces independent random integers between 1 and 100 inclusive. The game starts with a sum S = 0. The first player adds random numbers from the generator to S until S > 100 and records her last random number 'x'. The second player, continues adding random numbers from the generator to S until S > 200 and records her last random number 'y'. The player with the highest number wins, i.e. if y > x the second player wins. Is this game fair? Write a program to simulate 100,000 games. What is the probability estimate, based on your simulations, that the second player wins? Give your answer rounded to 3 places behind the decimal. For extra credit, calculate the exact probability (without sampling). import random CONST_TIMES = 100000 CONST_SMALL = 100 CONST_LARGE = 200 def playGame(): s = 0 while s &lt;= CONST_SMALL: x = random.randint(1, CONST_SMALL) s = s + x; while s &lt;= CONST_LARGE: y = random.randint(1, CONST_SMALL) s = s + y if x &lt; y: return 's' elif x == y: return 'm' else: return 'f' fst = sec = 0 for i in range(CONST_TIMES): winner = playGame() if winner == 'f': fst = fst + 1 elif winner == 's': sec = sec + 1 secWinPro = round(float(sec) / CONST_TIMES, 3) print secWinPro The simulation probability is about 0.524. I want to know how to calculate the exact probability.", "How can I delete an email address from Outlook's email history?", "How to reduce memory usage on a Unix webserver I'm currently using a Joyent Accelerator to host my webapps, and it's working fine, however I need to reduce costs so I'm downgrading my current plan and that imposes some new memory limits (256M rss, 512M swap). I wasn't too far over them yesterday, but after restarting Apache several times today, I'm now 411M rss, 721M swap (prstat -Z -s cpu). Searching in Server Fault only gives me lots of ways and specific tools to monitor the server, but no advice on how to reduce/optimize it's memory usage. I've also seen , but I don't think it's good for this particular (or may I say generic?) situation. The server is running Solaris on a shared CPU, and I'm using a Apache + MySQL + PHP stack. I'm interested in knowing the steps one can take to troubleshot this and solve the issues. However, I'm also running out of time to lower my memory foot print and downgrade the plan before the current ends, so anything that can make magic and save the day is welcome as well :)", "If $f,g$ are continuous at $a$, show that $h(x)=\\max\\{f(x),g(x)\\}$ and $k(x)=\\min\\{f(x),g(x)\\}$ are also continuous at $a$ If $f,g$ are continuous at $a$, show that $h(x)=\\max\\{f(x),g(x)\\}$ and $k(x)=\\min\\{f(x),g(x)\\}$ are also continuous at $a$. Here is my attempt at a proof. It feels very elaborate and I am not sure if it is correct. Can someone please point out any mistakes or places where I may improve. Thanks! By the definition of continuity at $a$ of $f,g$ we have that $\\lim\\limits_{x\\to a}f(x)=f(a)$ and $\\lim\\limits_{x\\to a}g(x)=g(a)$. Suppose that $f(a)&gt;g(a)$. Then there exists a $\\delta&gt;0$ such that $f&gt;g$ for all $x$ satisfying $|x-a|&lt;\\delta$. Then for $x$ satisfying $|x-a|&lt;\\delta$ we have $h(x)=f(x)$ and $k(x)=g(x)$ and thus $h$ and $k$ are continuous at $a$ because $f$ and $g$ are continuous at $a$. Now if $f(a)&lt;g(a)$ we simply relabel $f=\\tilde{g}$ and $g=\\tilde{f}$, so that $\\tilde{f}(a)&gt;\\tilde{g}(a)$ and we apply the previous result to show that again $h$ and $k$ are continuous at $a$.\\ Now if $f(a)=g(a)$ then we can distinguish three cases. $f\\geq g$ in a small neighborhood about $a$, $f\\leq g$ in a small neighborhood about $a$ or $f\\geq g$ on one side of $a$ and $f\\leq g$ on the other side. In the first case we assume that $f\\geq g$ in some small neighborhood about $a$. Then, since $f(a)=g(a)$ we have $h(x) = f(x)$ in this neighborhood and $k(x) = g(x)$ and again we see that $h$ and $k$ are continuous at $a$ due to the continuity of $f$ and $g$ at $a$. Similarly if $f\\leq g$ in a neighborhood around $a$ then $h(x)=g(x)$ and $k(x)=f(x)$ in this neighborhood and $h$ and $k$ are continuous at $a$. Suppose that just to the left of $a$ we have $f\\geq g$ and just to the right of $a$ we have $f\\leq g$. Then $\\lim\\limits_{x\\to a^-}h(x)=\\lim\\limits_{x\\to a^-}f(x)=f(a)=h(a)=g(a)=\\lim\\limits_{x\\to a^+}g(x)=\\lim\\limits_{x\\to a^+}h(x)$. Similarly $\\lim\\limits_{x\\to a^-}k(x)=\\lim\\limits_{x\\to a^-}g(x)=g(a)=k(a)=f(a)=\\lim\\limits_{x\\to a^+}f(x)=\\lim\\limits_{x\\to a^+}k(x)$. So $\\lim\\limits_{x\\to a}h(x)=h(a)$ and $\\lim\\limits_{x\\to a}k(x)=k(a)$ which means that $h$ and $k$ are continuous at $a$. Lastly if $f\\leq g$ just to the left of $a$ and $f\\geq g$ just to the right of $a$ we can relabel $f=\\tilde{g}$ and $g=\\tilde{f}$ and apply the last result to show $h$ and $k$ are continuous at $a$. Again, please point out any mistakes I may have made. Thanks!!", "Integer coefficient polynomial $p(x)$ has no integer roots of $\\,p(0)$ and $p(1)$ are odd [Parity Root Test] This came up an a training piece for the Putnam Competition and also in Ireland and Rosen. The question posed was basically: Let $p(x)$ be a polynomial with integer coefficients satisfying that $p(0)$ and $p(1)$ are odd. Show that $p$ has no integer zeros. I&amp;R give an example: $p(x) = x^2 - 117x + 31$ and show (no problem) that for any $n$ whether even or odd, $p(n)$ will be odd. And claim that this shows $p(n)$ will never be $0$. I can see, e.g., that $x^2 + 2x + 1$ will be odd substituting an even $n$ and even for an odd $n$. But would appreciate help in understanding the underlying math and what is happening here. Also, as a second part, can a general statement about the existence of an integer solution be made if $n$, even and odd, generates an even and an odd as in the last example. I can see that if you look at these equations (mod $2$), you can distinguish whether there is an integer solution. And I would guess this is intimately connected with the question. Thanks as always.", "Why is \"cupboard\" pronounced with a silent \"p\"?", "How to kill the process using the name of the program instead of PID? I started my Python program in the background using nohup as mentioned below - nohup zook.py &amp; Now I am trying to kill this process so I did the ps command as mentioned below root@phxdbx1145:/home/david/zook# ps ax | grep zook.py 16352 pts/6 S+ 0:00 grep --color=auto zook.py But somehow, everytime its PID getting changed, I don't know why. Whenever I do like this - kill -9 16352 It always say, No Such Process. And when I do px command again, I see that PID got changed automatically.. So I am not sure how do I kill this process? Is there any way I can kill the process with the name somehow? UPDATE:- This is what I am getting. I did pkill -9 zook.py and then I did ps command as mentioned below and it is shwoing zook.py constantly? root@dbx1145:/home/david/zook# pkill -9 zook.py root@dbx1145:/home/david/zook# ps ax | grep zook.py 23870 pts/6 S+ 0:00 grep --color=auto zook.py root@dbx1145:/home/david/zook# ps ax | grep zook.py 23872 pts/6 S+ 0:00 grep --color=auto zook.py root@dbx1145:/home/david/zook# ps ax | grep zook.py 23874 pts/6 S+ 0:00 grep --color=auto zook.py root@dbx1145:/home/david/zook# ps ax | grep zook.py 23876 pts/6 S+ 0:00 grep --color=auto zook.py", "How to both display a command line's output on console and save the output into a text file?", "Custom attributes - Yea or nay?", "How do I clone a single branch in Git?", "Install windows 7 through virtual box", "Is the axiom of choice needed in proving that metric spaces in which every infinite subset has a limit point are compact?", "In WPF, what are the differences between the x:Name and Name attributes?", "Prove that a finite union of closed sets is also closed Let $X$ be a metric space. If $F_i \\subset X$ is closed for $1 \\leq i \\leq n$, prove that $\\bigcup_{i=1}^n F_i$ is also closed. I'm looking for a direct proof of this theorem. (I already know a proof which first shows that a finite intersection of open sets is also open, and then applies De Morgan's law and the theorem \"the complement of an open set is closed.\") Note that the theorem is not necessarily true for an infinite collection of closed $\\{F_\\alpha\\}$. Here are the definitions I'm using: Let $X$ be a metric space with distance function $d(p, q)$. For any $p \\in X$, the neighborhood $N_r(p)$ is the set $\\{x \\in X \\,|\\, d(p, x) &lt; r\\}$. Any $p \\in X$ is a limit point of $E$ if $\\forall r &gt; 0$, $N_r(p) \\cap E \\neq \\{p\\}$ and $\\neq \\emptyset$. Any subset $E$ of $X$ is closed if it contains all of its limit points.", "I have some stuff in settings.py that I'd like to be able to access from a template, but I can't figure out how to do it. I already tried {{CONSTANT_NAME}} but that doesn't seem to work. Is this possible?", "Should I keep 32bit or 64 bit Windows 10 on my x64 based Intel Atom Z3735F cpu on 2gb ram non-upgradable laptop I have an Acer Aspire Switch 10 SW5-012 detachable notebook which has 2GB of RAM based on an x64 based processor. I got it with a 32 bit version of windows 8 but upgraded to windows 10 recently. But before I do anything else, I was considering if I'd be having Better performance with the 64 bit version of windows 10. Would it make my notebook perform better since it's based on an x64 based Intel Atom Z3735F? Or should I just stick to the 32 bit version of windows 10?", "Prove that there exists such a set of $n$ positive integers Prove that for any positive integers $m$ and $n$ , there exists a set of $n$ consecutive positive integers each of which is divisible by a number of the form $d^m$, where $d$ is some positive integer not equal to $1$. I don't know how to approach this question." ]
medi_sts_stackexchange_dupe
Cross product in 4 dimensions
Is the vector cross product only defined for 3D?
[ "If $\\sum (a_n)^2$ converges and $\\sum (b_n)^2$ converges, does $\\sum (a_n)(b_n)$ converge? If $\\sum (a_n)^2$ converges and $\\sum (b_n)^2$ converges, does $\\sum (a_n)(b_n)$ converge? Could someone help me to solve this or at least give me a hint?, I have tried using Cauchy's criterion, the Dirichlet test for convergence, etc, but I can´t prove it.Honestly I don´t know where to start. Any help will be appreciated.", "Should I really pay off my entire credit card balance each month or should I maintain some balance?", "I've recently changed to the new Minecraft launcher, and I have noticed a change in the .minecraft folder layout. I can no longer install mods just by copying it over into the versions/1.6.1 jar file, as this file refreshes every time it is launched. For those who don't know what I am talking about, here is the new layout: I am specifically trying to install Optifine, which does work with 1.6.1. Where do I drag in the mod files now? I can't seem to find a jar file that is suited to it, except in the version folder, but as I stated above, this refreshes every time. After copying a recent version and renaming it in the version folder, I get this error in the development console: Unexpected exception refreshing version list java.lang.IllegalArgumentException: Version '1.6.1' is already tracked at net.minecraft.launcher.updater.VersionList.addVersion(VersionList.java:91) at net.minecraft.launcher.updater.LocalVersionList.refreshVersions(LocalVersionList.java:44) at net.minecraft.launcher.updater.VersionManager.refreshVersions(VersionManager.java:47) at net.minecraft.launcher.Launcher$2.run(Launcher.java:164) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)", "Picking a lock typically requires a DC 15 Dexterity check (Basic rules, p. 49). Likewise for manacles (p. 50), which can alternately be escaped with a DC 20 Dexterity check or broken with a DC 20 Strength check. But what happens if you fail? The general rules for ability checks state (p. 58): If the total equals or exceeds the DC, the ability check is a success—the creature overcomes the challenge at hand. Otherwise, it’s a failure, which means the character or monster makes no progress toward the objective or makes progress combined with a setback determined by the DM. As a DM, how can I handle this in practice? In our last session, the players wanted to get inside a locked building to rescue people trapped inside. Picking the lock seemed like an easy enough task for the rogue, but unluckily he failed the check, and I wasn’t prepared for the consequences. There wasn’t much time pressure and no obvious reason why he couldn’t try again, so I allowed another attempt, but it just didn’t feel right. I’m sure that similar situations will come up again, so I’d like some advice on how to deal with checks so that they don’t just turn into a tedious exercise of rolling until you succeed. I presume that was left out of the game for good reason, but I’m not sure what to do instead. I suspect that this was a good occasion to use “progress with a setback” but that’s a fairly new thing for D&amp;D and I’m not sure how to go about it. I’m unsure when I should use setbacks versus lack of progress, and in the latter case I’m unsure when I should allow players to try again versus requiring a different approach. For example, suppose that a manacled player tries to pick the lock and fails the DC 15 Dexterity check. Now, the player could try to pick it again, or he could try one of the other escape methods, or he could wait for somebody else to rescue him, or he could simply succeed with some setback like a minor injury. How do I choose how to proceed? Or do I let the players choose?", "I am trying to use a Bluetooth headset on an Ubuntu PC. I am able to connect phone to pc via BT. I can stream music to PC. But cannot hear call audio. I have checked in Android phone logs, and BT sco link is established. But when making a call or virtual call (play audio through sco path in Android phone) the audio is not audible in PC headset. SCO packets are NOT appearing in btmon logs either. Anyone successfully done this? version- ubuntu 16.04 Installed- bluez, ofono, pulseaudio pactl sink: Name- bluez_sink.22_22_8E_DE_B9_2B, Name: alsa_output.pci-0000_00_1b.0.iec958-stereo pactl source: Name-bluez_sink.22_22_8E_DE_B9_2B.monitor Name: alsa_input.pci-0000_00_1b.0.analog-stereo", "KeyListener not working", "Can't view deleted questions via Android app", "Are we slightly lighter during the day and slightly heavier at night, owing to the force of the Sun's gravity?", "What is the benefit of Krivine's notation? I saw some people uses Krivine's notation for function application when presenting the syntax for the $\\lambda$-calculus. For example, the $\\lambda$-term $\\lambda f . \\lambda x . \\lambda y . f\\ x\\ y$ (with the normal convention that function application associates to the left, so it actually means $\\lambda f . \\lambda x . \\lambda y . ((f\\ x)\\ y)$) is written $\\lambda f . \\lambda x . \\lambda y . (f)\\ x\\ y$ (with a similar convention that it actually means $\\lambda f . \\lambda x . \\lambda y . ((f)\\ x)\\ y$). I do not see the point of having another pair of parentheses around the innermost $f$. Why do people use Krivine's notation instead of the usual one?", "Let $S$ and $W$ be subsets of a vector space $V$. Show that if $S$ is a subset of $W$, then $\\mathrm{span}(S)$ is a subspace of $\\mathrm{span}(W)$ Let $S$ and $W$ be subsets of a vector space $V$. Show that if $S$ is a subset of $W$, then $\\mathrm{span}(S)$ is a subspace of $\\mathrm{span}(W)$. Ok I'm finally understanding what each of these things mean.. but I'm running out of ideas on how to actually show it without using arbitrary vector space examples like Rn. Since sets and subspaces are kind of new its hard to figure out how to write correct proofs with them. I can see how if $V = \\mathbb{R}^3$ and $S = \\{(1,1,1)\\}$ and $W = \\{(1,1,1), (1,1,2)\\}$ then $\\mathrm{span}(S) = R1(line), span(W) = R2(plane)$ and that R1 is a subspace of R2... im just having trouble showing this officially when all vector spaces and sets are completely in general.... I could get as far as writing out $S=(u_1,u_2,\\dots,u_n)$, $u_i \\in V$ and same with $W$, but I can't really figure out what else to do in this sort of proof.", "$$\\lim_{n\\to \\infty}\\frac1{2n}\\log\\left({2n \\choose n}\\right)$$ Now, $\\log(n!) = \\Theta (n\\log(n))$ so I think we could write, $$\\lim_{n\\to\\infty}\\frac{1}{2n}\\left(\\log\\left(2n!\\right) - \\log\\left(n!^2\\right)\\right) = \\frac{1}{2n}\\left(\\log\\left(2n!\\right) - 2\\log\\left(n!\\right)\\right) $$ $$\\lim_{n\\to\\infty}\\frac{1}{2n}\\left(2n\\log\\left(2n\\right) - 2n\\log\\left(n\\right)\\right) $$ $$\\log\\left(2n\\right) - \\log\\left(n\\right) = \\log(2)$$ Is this legitimate? I feel this might be wrong since, the $\\Theta$ notation conceals a constant factor.", "Are there any places to leave luggage in Brussels, for short and/or long periods of time?", "When should I use \"when\" and \"while\"? But you can't find anything while you're crying. But you can't find anything when you're crying. I'll tell you about it while Frank saddles the horse. I'll tell you about it when Frank saddles the horse. When should I use when, and when while? Are these sentences correct?", "Why can't light escape from a classical black hole?", "Would Dr Hannibal Lecter allow himself to be a consultant with Clarice if Miggs hadn't behaved improperly to her?", "Provide an easily discoverable way to get the full URL to an answer", "Why can't I use a type argument in a type parameter with multiple bounds?", "I recently installed an SSD and AFAIK Ubuntu makes a weekly FSTrim on SSD's that support it. Is there a log file of this trims?", "If we map every integer to a string that represents a rational number, and produce a number different from all the ones listed, we are essentially following Cantor's algorithm. But why does it not apply? Is it because we can't be certain that the number produced is a rational number?", "How did Harry become a Horcrux?" ]
medi_sts_stackexchange_dupe
Do you need a visa for layover in US if you’re a Canadian permanent resident?
Do I need a US visa to transit (or layover) through an American airport?
[ "There's a spaceship, nearing the end of its journey. Everybody on board is in cryosleep. For some reason the wake-up system malfunctions, and the ship will fly on indefinitely. The people at the space port realise this, and try to wake someone up. Their last resort is finding someone on board who is telepathic, and wake this person up. They find one, but it turns out to be an unborn baby.", "Change email login to another id", "An idiom to describe someone who thinks he/she is wiser than others", "I would like to use with a video. With ffmpeg I can export some (.jpeg) images from a video. Can I convert a .jpeg into a valid .tiff or export directly .tiff images from the video with ffmpeg?", "How can you convert a byte array to a hexadecimal string, and vice versa?", "Is there a bulletproof way to know a file has been successfully decrypted? I am wondering whether there is a bulletproof way to know if one is successful in decrypting a file. As an example, say I encrypt a text file and protect it with a 3 letter password. I use brute force to decrypt it, but two different passwords lead to a file that contains English intelligible text. Is there a way for me to know which one is the original one? In other words, is there an infallible way to know I've entered the password correctly?", "Skype app in my Ubuntu system work perfectly. But today when I run the app, I see this: How Can I fix this?", "Assume that $f(x),g(x)$ are positive and are in $L^1$. Moreover, they are differentiable and their derivative is integrable. Let $h(x)=f(x)*g(x)$, the convolution of $f$ and $g$. Does the derivative of $h(x)$ exist? If yes, how can we prove that $$ \\frac{d}{dx}(f(x)*g(x)) = \\left(\\frac{d}{dx}f(x)\\right)*g(x)$$ Thanks", "Will I still receive OTA updates after rooting my Nexus 5? I just wanna ask that after rooting Nexus 5 will I be receiving OTA updates by Google ? Or I'll have to install a custom ROM ?", "The pronunciation of the word \"a\" Most times we hear that the letter A is pronounced as [ə], but sometimes I hear that it is pronounced as [eɪ] in American English. Such as the following sentence: From VOA Special English: She says governments must make that goal of a continental free trade area a reality. The first A is pronounced as [eɪ], the second A is pronounced as [ə]. Why? Does it have some regularity in it?", "How to exclude jars generated by maven war plugin?", "How do I add custom validations to Webform? I have created the country and state fields with the Webform module, and I want to add a field validation for the state field when user select US as country. How can I achieve this?", "Proving a function is bounded Hi i was wondering if anyone could help me with my revision This is a question of a past paper i'm stuck on. Let $$f:[a,b]\\to \\Re$$ be Riemann intergrable. Part (a) is to prove that f is bounded and part (b) is to Give an example of a bounded function f that is not Riemann integrable my attempt for part (a) is since f is Riemann intergrable then it is continuous on [a,b] which means that it must also be bounded? or is this incorrect i find this topic rather difficult For part (b) i dont really have a clue i cant recall any function like the one they ask for", "Trying to search for multiple file extensions in command line I am trying to find two extensions in command line but when i do it will only return one of the extensions. can you tell me what I am missing? Here is my command; [root]# find /etc -name \"*.txt\" -o -name \"*.log\" -type f -mtime +7 -exec echo {} \\;", "Occasionally I see constructs like this in English sentences: Not only is this true in this case, but ... What puzzles me is the \"is this\" part of it. The sentence is not a question, yet it seems to have a question-like order. Isn't this correct/preferred: Not only this is true in this case, but ... Are there other cases where non-question sentences contain question-like parts (so to speak)?", "Ubuntu non LTS to LTS in the future", "I am young, just started my career, and looking to begin investing so I can make my money work for me. I'm still living like I did in college (occasional purchase on myself, but most of it goes into savings) and I would like to take the extra money and invest it. What would you suggest are the best options for me to begin? I was considering getting a personal investor [a financial advisor] for perhaps a year or so, but I've heard that they really are not worth the money. I wanted to get the input of the great minds here.", "When to use LinkedList over ArrayList in Java?", "Typical Japanese style anime art, it was a series. It has been around for more than 6 years. I think it mixed fantasy and sci-fi. It was certainly not Isekai and it has no magic, it feels more like revered science. A boy gets a gem embedded into his arm after a terrorist attack and transforms into a white and orange humanoid being. There are more people able to transform into these beings. There is also a red flying ship with a dark yellow underbelly that throws boxes with parachutes. There is also this top-secret laboratory where the scientists study how to battle against the beings. There are some other flying ships of varying colors. If I remember correctly, the protagonist gets amnesia near the end of the plot.", "What is the significance of momentum? I just want to get an idea what is. I know the mathematical meaning that momentum is $mv$ where $v$ is velocity. But I don't know its significance. Like I know that Acceleration is how velocity is changing with respect to time, I wanted to get feel of what momentum really is?" ]
medi_sts_stackexchange_dupe
jquery animation callback called once instead of for each element
Callback animation to begin only after ALL children have finished animating
[ "iPhone, reproduce the magnifier effect", "Irreducible polynomial is always separable in char 0 field", "Render semi-transparent volume with cycles I want to render an image of a fire in cycles, but as a png with a transparent background. Without a transparent background, the output image looks like this: But as soon as I tick the \"Transparent\" checkbox under Render->Film, all the semi-transparent parts of the image are not rendered and it looks like this which is clearly not what I want. I've tried to add a holdout shader or a transparent shader to my smoke domain material nodes, but it didn't help. I've only found answered questions for semi-transparent glass, but none for volumes. My node setup looks like this: but the transparent shader doesn't do anything. Has anyone an idea how to fix this? Thanks Edit: I've just changed the flow type to \"Fire and Smoke\" instead of \"Fire\" and now the semi-transparent parts render too, but I don't want the smoke.", "How to tell a lambda function to capture a copy instead of a reference in C#? I've been learning C#, and I'm trying to understand lambdas. In this sample below, it prints out 10 ten times. class Program { delegate void Action(); static void Main(string[] args) { List&lt;Action&gt; actions = new List&lt;Action&gt;(); for (int i = 0; i &lt; 10; ++i ) actions.Add(()=&gt;Console.WriteLine(i)); foreach (Action a in actions) a(); } } Obviously, the generated class behind the lambda is storing a reference or pointer to the int i variable, and is assigning a new value to the same reference every time the loop iterates. Is there a way to force the lamda to grab a copy instead, like the C++0x syntax [&amp;](){ ... } // Capture by reference vs. [=](){ ... } // Capture copies", "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 &gt;/dev/null 2&gt;&amp;1 &amp; 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 &amp; not work?", "Proving a limit of a trigonometric function: $\\lim_{x \\to 2/\\pi}\\lfloor \\sin \\frac{1}{x} \\rfloor=0$", "De Rham Cohomology of the tangent bundle of a manifold I would like to compute the de Rham cohomology of the tangent bundle $TM$ of a manifold $M$. It seems to me that we can just homotopy each fibre to a point, and that this would give a homotopy equivalence between $TM$ and $M$. Since de Rham cohomology is a homotopy invariant, this would imply that $H^*_{\\text{dR}}(TM) \\cong H^*_{\\text{dR}}(M)$. Is it always true that the tangent bundle of a manifold is homotopic to the manifold itself by the homotopy of each fibre with a point?", "Is trace of regular representation in Lie group a delta function? My major is physics. I need to use some tools in group theory, but I am really confused by the trace in compact infinite groups. The following is my question: In discrete group theory, the irreducible representation of identity group element $e$ is always an identity matrix. So the trace of $e$ under regular representation is the order of the group : $\\chi(e) = |G|$. I hope to get similar result for Lie group. For example, SO(2) has infinite number of irreducible representations, $D^{(m)}$, where $m=0,\\pm 1, \\pm 2,\\cdots $. All of them are 1-dimensional $D^{(m)} = e^{im\\phi}$. Here $\\phi$ is the rotation angle. For element $R(\\phi)$ in SO(2), the trace in $m$th irreducible representation should be $\\chi(R(\\phi))=e^{im\\phi}$, if we sum all these traces up, we get the trace in regular representation. So what is the trace of $e$ in the regular representation ? It seems to be infinite.", "g++ undefined reference to typeinfo", "When is \"seems to be\" used instead of \"seems\"? The baby seems happy/comfortable. The baby seems to be happy/comfortable. Are these both correct? If both are correct, what are the differences between them?", "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...", "Proof on showing if F(x,y,z)=0 then product of partial derivatives (evaluated at an assigned coordinate) is -1 The task is as follows: Given: $$F(x,y,z) = 0$$ Goal: Show $\\frac{\\partial z}{\\partial y}|_x \\frac{\\partial y}{\\partial x}|_z \\frac{\\partial x}{\\partial z} |_y = -1$ Here is my work so far: (1) Differentiate with respect to y, I get: $0 + F_2 + F_3 \\frac{\\partial z}{\\partial y} = 0$ So $ F_3 \\frac{\\partial z}{\\partial y} = - F_2$ (2) Differentiate with respect to x, I get: $F_1 + F_2 \\frac{\\partial y}{\\partial x} + 0 = 0$ So $ F_2 \\frac{\\partial y}{\\partial x} = - F_1$ (3) Differentiate with respect to z, I get: $F_1 \\frac{\\partial x}{\\partial z} + 0 + F_3 = 0$ So $ F_1 \\frac{\\partial x}{\\partial z} = - F_3$ (4) After some manipulations with the $F_i$, I get to the conclusion that $\\frac{\\partial z}{\\partial y}* \\frac{\\partial y}{\\partial x} * \\frac{\\partial x}{\\partial z} = -1$, so when evaluated with x, z, y respectively, conclusion is still true My questions are: (1) Is my proof correct? (2) For example, when I differentiate with respect to y, I \"let\" $F_1$ be 0 and find partials for other coordinates. I had a hard time trying to explain to my friend on the reason(s) why I can do such \"let be 0\" thing. Although I think if I can't do that, then there is no way that I can reach the conclusion, but I somehow feel confused about the fact too. Since my book is doing it that way, my understanding is that I can do such \"let be 0\" thing based on the independece of x with respect to y, when I differentiate with respect to y. But is my thought ok? Would someone please help me on this question? Thank you very much ^_^", "Is Dragonstone unoccupied after Stannis Baratheon's defeat? Is anything known about Dragonstone after: Stannis Baratheon is killed in his bid for the Iron Throne? As the seat of the naval defense of King's Landing and the birthplace of Daenerys Targaryen, she has a vested interest in taking it. At the conclusion of Season 6 Episode 10, is Dragonstone unoccupied?", "The cardinality of the set of all finite subsets of an infinite set", "Ierator and for-each loop both we use for traverse no of items, I have used for-each many times but I am not clear about iterator, means when we should use ierator. I am studying salesforce workbook example.. global class CustomIterable implements iterator&lt;Account&gt;{ public List&lt;Account&gt; accs {get; set;} public Integer i {get; set;} public CustomIterable(){ accs =[SELECT Name fROM Account limit 5]; i = 0; } global boolean hasNext(){ if(i &gt;= accs.size()) { return false; } else { return true; } } global Account next(){ if(i == 8){return null;} i++; return accs[i-1]; } } //------------ @isTest(seealldata=true) global class IteratorClass{ public static testmethod void main(){ IteratorClass obj = new IteratorClass(); Iterator&lt;Account&gt; acs = obj.Iterator(); system.debug(acs); } global Iterator&lt;Account&gt; Iterator(){ return new CustomIterable(); } }", "RSA encryption with private key and decryption with a public key", "How were the solar masses and distance of the GW150914 merger event calculated from the signal?", "I was trying to prove following inequality: $$|\\sin n\\theta| \\leq n\\sin \\theta \\ \\text{for all n=1,2,3... and } \\ 0&lt;\\theta&lt;π $$ I succeeded in proving this via induction but I didn't get \"feel\" over the proof. Are there other proof for this inequality?", "Is it possible to install Office 365 (2013) on Ubuntu 15.04 Vivid Vervet? I would like to install Office 2015/365 on Ubuntu 15.04. I tried to install Office using Wine, but that did not work. Please note that I do not want virtualisation unless it has a -like behaviour, where application windows are treated like regular Ubuntu application windows by the system.", "Group of even order contains an element of order 2 I am working on the following problem from group theory: If $G$ is a group of order $2n$, show that the number of elements of $G$ of order $2$ is odd. That is, for some integer $k$, there are $2k+1$ elements $a$ such that $a \\in G,\\;\\; a*a = e$, where $e$ is the identity element of $G$." ]
medi_sts_stackexchange_dupe
How to install Ubuntu on Dell?
How do I install Ubuntu?
[ "How to change Gnome-Terminal title? I have several instances of terminals running in my working environment, what I would like is to set a specific title for each one, in order to have a clear idea what purpose the specific terminal serves i.e. Apache, editing_ini, postgres etc... Of course from the command line.", "Given any $10$ consecutive positive integers , does there exist one integer which is relatively prime to the product of the rest ?", "So basically in SQL Server a NULL means there is no value and thus can't be compared which returns some unexpected results. For example, the following query doesn't return rows where value IS NULL but I want it to: SELECT * FROM table WHERE (value != 26) AND date IS NULL AND last_modified &gt;= '5/21/2014' I understand I can do the following as a workaround but seriously? Having to add parentheses and check if is null for every single field every single time I want to include it? Seems ugly, not intuitive and crazy. SELECT * FROM table WHERE (value != 26 OR value is null) AND date IS NULL AND last_modified &gt;= '5/21/2014' I mean I know NULL is not a value and thus can't be compared but can't you infer that it is, in fact, definitely not 26? If 26 is something and NULL is nothing and nothing is not something then NULL is not 26. Seems logical to me. Does anyone know how I can, in a cleaner way, include nulls in my results when using comparisons without having to include an explicit check each and every time. Also turning off nulls on my tables is definitely not an option. Edit: My real problem of why I don't want to do it the way I showed was not exposed. So here goes. I am writing a program that let's you build queries to database tables and let's the user dynamically create filters and such which essentially at the end of the day constructs a SQL statement and gets the results to display to the user. The fields chosen by the user can be any and/or all fields in a given database and if I have to literally put that ISNULL check on every single field that would be really inefficient and make looking at the SQL super ugly. My program is table-definition-agnostic meaning I don't care what's in your table and don't want to know what your table's definition is. I just want you to pick a table, choose some fields to filter on with equals, not equals, in, not in, etc ... and then click a button to view the results of that request.", "\"Belongs on\" comments", "I'm really new in using biblatex, compile the sample placed in , but what I get is 1.1 Foo Some text [B02x ]. 1.2 Bar Some text [B02y ]. Do not get the bibliography by chapters, or the global references. Really not remains to be done \\documentclass{report} \\usepackage[style=alphabetic]{biblatex} \\addbibresource{references.bib} \\begin{document} \\chapter{First chapter} \\section{Foo} Some text \\cite{childs_temperature}. \\printbibliography \\chapter{Second chapter} \\section{Bar} Some text \\cite{hashemian}. \\printbibliography \\newpage \\printbibliography \\end{document} And the references.bib @BOOK{childs_temperature, title = {Practical Temperature Measurement}, publisher = {Butterworth - Heinemann}, year = {2001}, author = {Childs, Peter R N}, address = {Great Britain}, edition = {1}, isbn = {0 7506 5080 X} } @PHDTHESIS{hashemian, author = {Hashemian, Hashem Mehrdad}, title = {Measurements of dynamic temperatures and pressures in nuclear power plants}, school = {{The University of Western Ontario}}, year = {2011}, type = {PhD {T}hesis} } I need to obtain references by chapter and global cited references, but i don't know how compile.", "Questions with no close votes appearing in the close vote queue? I've just been offered the wonderful opportunity to review . ... but on closer inspection ? Is this (e.g I'm assuming this post did previous have a close vote, but has now aged away in ways I don't understand), or should questions with no active close votes be removed from the queue. p.s. If it's , please expect my asking for this not to be the case ;).", "Integrate : $\\int \\frac{x^2}{(x\\cos x -\\sin x)(x\\sin x +\\cos x)}dx$ $$\\int \\frac{x^2}{(x\\cos x -\\sin x)(x\\sin x +\\cos x)}\\ dx$$ My approach : Dividing the denominator by $\\cos^2x$ we get $\\dfrac{x^2\\sec^2x }{(x -\\tan x)(x\\tan x +1)}$ then $$\\int \\frac{x^2\\sec^2x}{x^2\\tan x -x\\tan^2x+x-\\tan x}\\ dx=\\int \\frac{x^2(1+\\tan^2x)}{x^2\\tan x -x\\tan^2x+x-\\tan x}dx$$ But I am not getting any relation between numerator and denominator so that I will take any substitution and solve further please suggest whether it is correct and how to proceed in this. Thanks.", "I obtained a licence key for Windows 8 through DreamSpark. Is there a way to download a Windows 8 ISO image like you could for Windows 7? I am on a non-Windows machine, so I cannot use the Secure Download Manager to download Windows 8 directly using DreamSpark.", "When a ball is tossed straight up, does it experience momentary equilibrium at top of its path? This question has been asked many times all over the Internet and answers can be found on places such as yahoo and ask.com, but I'm not satisfied with those answers and I don't trust the validity of those places. This seems like a more appropriate place to ask. So, here's my train of thought and I would like to ask you if you think I'm right or wrong. Even though most of the answers point to the fact that the ball does not achieve equilibrium because the force of gravity is constantly acting upon it, thus causing an acceleration, I still think there's a moment of equilibrium and here's why: When the ball is traveling up, it's accelerating towards the ground and eventually reaches a point at which its speed reaches 0. At this moment, isn't the reason the speed is 0 is due to the fact that net force is 0? The force that made the ball travel in the upward direction was canceled out by the gravitational force. So, the sum of forces at that brief moment is equal to 0, otherwise the ball would be moving. I don't think gravity is the only force acting on the ball at that moment, since the throwing force was acting on it as well, until both canceled each other out for that brief moment. Am I right or wrong?", "Finder search doesn't work properly after Yosemite update Ever since I upgraded to Yosemite, search no longer works properly in Finder. Spotlight works fine but Finder search just gives me a blank window with a spinning ball. I've tried reindexing and I've also tried deleting Spotlight's .plist file. I restart my MacBook Pro after doing either. Finder search will work for one or two queries and stop again. I don't know what else I can do.", "Can a script modify an environment variable of its calling shell? I am setting my JAVA_HOME in my ~/.bashrc file. Now, I need to create a script that will change the JAVA_HOME just for the current terminal, so that I can start an app that needs java 5. I have created this script to do this task, but after finishing, I can see that JAVA_HOME is not updated export JAVA_HOME=/usr/lib/jvm/java-5-oracle/ export PATH=$PATH:$JAVA_HOME Here is the result $ ./javaHome5.sh $ echo $JAVA_HOME /usr/lib/jvm/java-6-oracle/ I think that the reason this is not being applied, is that a script is executing in it's own terminal, so when the script ends, the current terminal will not be affected. Currently, the only way I've found around this is: Edit my ~/.bashrc and change the JAVA_HOME var Run source ~/.bashrc to apply the changes in current terminal. Which again cannot be applied in a script, as the source command needs to be run in the current window. Needless to say, this change applies to all new terminal windows, so I practically need to do this twice: One before starting my app, and one more time right after this, just to restore the environment vars to their default. That's not really convenient. Do you have any ideas how can I change this var using a script?", "What is the definition of a symmetric distribution?", "Disabling Intel Turbo Boost in ubuntu", "Birthday problem: why is this solution wrong? This question is about the birthday problem: the probability that in a group of n people, at least two of them have the same birthday (). An easy way to calculate the probability is to calculate first the probability that no two people have the same birthday. Let's say that I want to calculate the probability that in a group of 20 people, NO two people have the same birthday. So, for 20 people with different birthdays, I can choose the first birthday in 365 ways, the second in 364 ways and so on, while for 20 people who can have the same birthday, I can choose the first birthday in 365 ways, the second also in 365 ways, and so on. At the end: $p={365 \\cdot 364 \\cdot 363 \\cdot ... \\cdot 346 \\over 365 \\cdot 365 \\cdot 365 \\cdot ... \\cdot 365}\\approx 0.59$ This is the right method and I understand it. I don't understand why the following method is wrong: The probability that in a group of 20 people NO two people have the same birthday is the ratio between the combination without repetition of 20 birthdays and the combination with repetition of 20 birthdays: $$p={C_{365,20} \\over C'_{365,20}}={\\binom{365}{20} \\over \\left(\\binom{365}{20}\\right)}={\\binom{365}{20} \\over \\binom{365+20-1}{20}}=\\frac{{{365!}\\over {20!\\cdot(365-20)!}}}{{(365+20-1)!}\\over{20!\\cdot{(365-1)!}}}\\approx 0.35$$ I understand the mistake is in the denominator (as the numerator is the same of the other method, after simplifying that 20!), but why? Isn't it right to calculate the k-combination with repetition of 20 birthdays? Thanks for helping!", "Product of path connected spaces is path connected", "Roll a 6-sided die until the total $\\geq M$. Mean amount by which $M$ is exceeded? Here is the question: You roll a fair 6-sided dice iteratively until the sum of the dice rolls is greater than or equal to M. What is the mean and standard deviation of the sum minus M when M=300? Should I write a code to answer these kind of questions? Please give me some hints on that. thanks!", "I have been hit with a homework problem that I just have no idea how to approach. Any help from you all is very much appreciated. Here is the problem Prove the equation: $a^{\\log_b c} = c^{\\log_b a}$ Any ideas?", "Windows 10 lets you 'schedule' a reboot for later. I want to disable it. Evidently Windows scheduled itself for a reboot last night when I wasn't looking and just closed everything I had been working on the night before. I reboot on the regular; I don't need Windows to do that for me. Can I disable it completely? I don't mind if it downloads everything, and then says \"hey, you should reboot,\" but it should never reboot itself, ever. I'm using the \"Pro\" edition of Windows 10.", "Correct location for piping and redirecting output in find -exec? I'm using find with the -exec option in console, on FreeBSD (for example, find . -exec sha1 {} \\;). How do I correctly place (and if needed, escape) redirect and other execution control symbols that could syntactically apply to either of the exec command or the find command, such as > >> | and &amp;, where I might want the symbol to apply to the find or the exec commands on different occasions? On the same theme, what is the syntax if I want to use tee to view the output of the -exec commands on the console (to watch progress) and also appended to a file (for later use)? (I know shells vary but hopefully the most used shells such as sh/csh are quite similar?) Update: In part, I want to learn if nested find -exec can be done without scripting, as a simple command. Here is the use-case that prompted the questio : outer find: find all subdirs matching DIR_MATCH_TEXT in DIR1 inner find: for each matching subdir found in the outer loop (call it DIR2), execute the commandfind DIR2 -name \"FILE_MATCH_TEXT\" -exec sha1 {} \\; &gt;&gt; DIR1/DIR2_hashes.txt The aim being to create a set of files, one for each matching subdir, containing the output of some find -exec action on that subdir. By this I mean that, if /backups contains /jan2017 and /feb2017, the result will be two files at /backups/jan2017_hashes.txt and /backups/feb2017_hashes.txt, with jan2017_hashes.txt containing the output from sha1 for (say) all .pdf files in /backups/jan2017, and feb2017_hashes.txt containing the output from sha1 for all .pdf files in /backups/feb2017. From replies so far I gather the outer find would have to use a shell call as the argument to -exec?", "Parse DateTime with time zone of form PST/CEST/UTC/etc" ]
medi_sts_stackexchange_dupe
Criteria for the difference of two matrices to be positive semidefinite when the eigenvectors are known
Under what conditions is the difference between a rank $1$, postive semidefinite matrix and a hermitian matrix positive semidefinite?
[ "When clicking &quot;edit&quot; I see: Your edit will be placed in a queue until it is peer reviewed. We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks. Like: Likewise, when I am not logged in, clicking &quot;improve this question&quot; or &quot;improve this answer&quot; shows: You are not . Your edit will be placed in a queue until it is . And when I click 'Save', I get: Thanks for submitting an edit. It is only visible to you until it's been approved by trusted community members Like: Who can suggest an edit? Where do suggested edits go? Who can vote on a suggested edit? How do suggested edits get reviewed? Can I earn reputation? What about abuse or bad edits? Sometimes the Community user approves or rejects my edit. Why is that? When can I not suggest an edit? Is there a minimum change requirement for a suggested edit? How do I check my suggested edit history? I disagree with the reasons why my suggested edit was rejected. What can I do? How do I know whether there are edits waiting for review? Someone suggested an edit to my own post, and the reviewers took the wrong action. What can I do? Are tag wikis included in this scheme? What do the &quot;Improve Edit&quot; and &quot;Reject and Edit&quot; buttons do? Why are apparently valid links to rejected edits resulting in 404 errors? For more information about editing, see &quot;&quot; in the .", "Is there anyway to find and remove ligatures from tex file? Sometimes when I copy/paste a text to Winedt, it shows perfect, but when I compile it to Pdf, some issues appear, e.g. finding becomes nding. I am wondering if there is any way to search and find these characters? Here is an example file (needs utf8 encoding). \\documentclass{article} \\begin{document} fi \\end{document}", "Code: \\documentclass[12pt]{article} \\usepackage{pgfplots} \\usepackage{float} \\pgfplotsset{compat=1.17} \\usepackage{tikz} \\usetikzlibrary{shapes, arrows.meta, automata, positioning, matrix, calc} \\usepackage[RPvoltages, american,siunitx]{circuitikz} \\usepackage[margin=1in]{geometry} \\usepackage{steinmetz} \\begin{document} \\begin{figure}[H] \\centering \\begin{circuitikz} \\draw(0,0) to[V = $\\vec{V}_g$] ++(0, 3) to[R = 50 &lt;\\ohm&gt;] ++(3, 0) to[C = 1&lt;\\micro\\farad&gt;, v = $\\vec{V}_o$] ++(0, -3) to[short] ++(-3, 0); \\end{circuitikz} \\end{figure} \\end{document} Output: As we can see, $\\vec{V}_o$ is almost touching the capacitor. How to adjust the spacing for the voltage label? Actually, can potentially solve the problem? Note that what I am trying to draw is based off of this:", "How can I grep in PDF files? Is there a way to search PDF files using grep, without converting to text first in Ubuntu?", "Can I use virtualbox with a 64 Bit image in a 32 bit host I have Virtualbox 4.1.20 in Ubuntu 12.04 32 Bit (With PAE) and I want to run Ubuntu Server 64 Bit on the Guest. Is this possible?. I ask since I get the following warning: I want to make sure that there is no option to \"emulate\" this. I have a 64 bit CPU that supports virtualization. The Intel DZ68DB motherboard with an Intel I7 2600 CPU.", "I am interested in finding out how confident my model (say Logistic Regression) is in predicting the label of a new data point. For example, if it is not confident, I better abstain from making a prediction. Logistic Regression outputs probabilities, which gives you a notion that there is confidence in prediction. But in fact, it is not. $P(y|x)$ being 0.3, doesn't tell me that the model is confident in its prediction or not. All, we can say is that it believes 100% that class A is 0.3 and other class is 0.7. Can we use confidence intervals of LR as some sort of confidence in prediction? E.g., larger the difference between upper and lower bound for a particular data point, less confident it is, and vice-versa? If not, how can we build confidence in our prediction? Can anybody guide me to some paper or field of study?", "Is there a \"theirs\" version of \"git merge -s ours\"? When merging topic branch \"B\" into \"A\" using git merge, I get some conflicts. I know all the conflicts can be solved using the version in \"B\". I am aware of git merge -s ours. But what I want is something like git merge -s theirs. Why doesn't it exist? How can I achieve the same result after the conflicting merge with existing git commands? (git checkout every unmerged file from B) UPDATE: The \"solution\" of just discarding anything from branch A (the merge commit point to B version of the tree) is not what I am looking for.", "What is the advantage to crushed garlic over minced garlic beyond texture? I use a lot of garlic in my cooking, especially minced garlic. But lately I've been doing some more recipes with crushed garlic and while I love the texture of cooked garlic, I can't see how it could be better than minced garlic for the overall taste. Is there an advantage to crushed garlic over minced garlic, beyond texture?", "How can I maximize the \"blurry background, sharp subject\" (bokeh) effect?", "Can someone give me an example for this question on reflexivity please. How is this reflexive? Can you show an example with numbers from the set? Question 6 Let $X = \\{0,1,2,3,\\dotsc, 9\\}$. Define a relation $\\mathcal R$ from $X$ by \"$x$ is related to $y$ if $x$ and $y$ gives the same remainder on division by $3$\". (a) Show that $\\mathcal R$ is an equivalence relation. Anwser: (a) $\\mathcal R$ is clearly both reflexive and symmetric, for every number has the same (unique) remainder on division by $3$ as itself and if $a$ has the same remainder on division by $3$ as does $b$, then $b$ has the same remainder on division by $3$ as $a$ also. Similarly $\\mathcal R$ is transitive, for if $a\\mathcal R b$ and $b\\mathcal R c$, then $a$, $b$, and $c$ all have the same remainder on division by $3$, so $a\\mathcal R c$ also.", "This is a comic book I read no later than 1993 (so is pre-1993). And probably after 1988 though I can't be certain. The protagonist is a huge barbarian with an axe, who seems like an old man, who is defending a series of gigantic walls against an invading army, apparently single-handedly. They keep having to fall back to inner walls. He has to get a massage at one point (not that kind of comic btw). It's not a super-hero or funny comic, it's more of a serious graphic novel. That's about it, sorry it's so vague.", "Why does find -mtime +1 only return files older than 2 days? I'm struggling to wrap my mind around why the find interprets file modification times the way it does. Specifically, I don't understand why the -mtime +1 doesn't show files less than 48 hours old. As an example test I created three test files with different modified dates: [root@foobox findtest]# ls -l total 0 -rw-r--r-- 1 root root 0 Sep 25 08:44 foo1 -rw-r--r-- 1 root root 0 Sep 24 08:14 foo2 -rw-r--r-- 1 root root 0 Sep 23 08:14 foo3 I then ran find with the -mtime +1 switch and got the following output: [root@foobox findtest]# find -mtime +1 ./foo3 I then ran find with the -mmin +1440 and got the following output: [root@foobox findtest]# find -mmin +1440 ./foo3 ./foo2 As per the man page for find, I understand that this is expected behavior: -mtime n File’s data was last modified n*24 hours ago. See the comments for -atime to understand how rounding affects the interpretation of file modification times. -atime n File was last accessed n*24 hours ago. When find figures out how many 24-hour periods ago the file was last accessed, any fractional part is ignored, so to match -atime +1, a file has to have been accessed at least two days ago. This still doesn't make sense to me though. So if a file is 1 day, 23 hours, 59 minutes, and 59 seconds old, find -mtime +1 ignores all that and just treats it like it's 1 day, 0 hours, 0 minutes, and 0 seconds old? In which case, it's not technically older that 1 day and ignored? Does... not... compute.", "I occasionally update my kernel from this web site I have been always downloading 3 deb files for installing linux header all, linux image and linux headers. I noticed one more deb file recently for 64 bit kernel called Linux-image-extra. I would like to know what does kernel file Linux-image-extra do and should I also install it?", "Javascript to check whether a checkbox is being checked or unchecked", "Inheriting Options?", "Index entries duplicated for captions", "Present-perfect-tense vs. Simple-past-tense", "Zip all files in directory? Is there a way to zip all files in a given directory with the zip command? I've heard of using *.*, but I want it to work for extensionless files, too.", "Saving high-quality graphics through commands", "Can high level Eldritch blast be used with War Caster?" ]
medi_sts_stackexchange_dupe
Rearrange dataframe to a table, the opposite of "melt"
How to reshape data from long to wide format
[ "Application of Liouville's Theorem Let $f(z)$ be an entire function such that $$|f(z)|&lt;\\frac{1}{|\\text{Im}(z)|},\\qquad z\\in\\Bbb C-\\Bbb R.$$ The question asked me to prove that $f(z)=0$. At least looking at it, it really seems to have an application of Liouville's theorem lurking around somewhere, but I haven't found it. My thoughts first led me to think about doing this by contradiction and using Picard's little theorem. So, I've considered a strip containing the real axis (say of width $2$ for simplicity). This will imply the complement maps into the unit disk, which implies that this strip has to map almost everywhere else on the complex plane. Now, on the imaginary axis, I know that $f(z)$ will vanish as $z\\to\\infty$, and this seems like it might be useful. I'm sort of under the impression $f(z)$ might have an essential singularity at $\\infty$, which would mean $f(1/z)$ has an essential singularity at $0$. Either way, it of course can't have a pole at $\\infty$ because of $f(z)$ vanishing on the imaginary axis, and if it is a removable singularity, it must be $0$, which still gives the solution. Therefore, I think it must have something to do with $f(z)$ having an essential singularity at $\\infty$. I was hoping to combine this with the above inequality and deduce a contradiction, but I haven't thought of one yet. Any hints or suggestions? I'm studying for a prelim. exam, so this isn't homework. Update: So, in the spirit of searching methods using the essential singularity at $z=0$, we have $$\\left|f\\left(\\frac{1}{z}\\right)\\right|\\leq\\frac{1}{\\left|\\text{Im}\\left(\\frac{1}{z}\\right)\\right|}=\\frac{|z|^2}{|y|}.$$ Thus, for $|y|&gt;1$, we have $$\\left|f\\left(\\frac{1}{z}\\right)\\right|&lt;|y|\\left|f\\left(\\frac{1}{z}\\right)\\right|&lt;|z|^2.$$ Thus, if I can show that $|f(1/z)|$ is a polynomial, we'll know it can't have an essential singularity at the origin, concluding my proof.", "How do I install additional drivers? I've just installed Ubuntu and I need either video, wireless, or some sort of other manufacturer (non-opensource) driver. How can I run the tool that will fetch all of these for me? I'd like graphical instructions. Related:", "I accidentally posted a question without being logged in. Is there a way to associate that question with my account? For more information, visit &quot;&quot; in the . a.k.a. How can you link a registered account to a cookie-based account? a.k.a. How do I merge an unregistered account with a registered account a.k.a. Merging users a.k.a. How do I associate anonymous questions I’ve asked with my registered account? a.k.a. Is there a way to claim an unregistered user? (in case anyone searches with those terms)", "Prove that $\\mathrm{Res}[f/g,z_0]=\\frac{f(z_0)}{g'(z_0)}$ I need to prove that if $f$ and $g$ are analytic in $D_r(z_0)$ and $g$ has a simple zero at $z_0$, then $$\\mathrm{Res}[f/g,z_0]=\\frac{f(z_0)}{g'(z_0)}$$ When $f(z_0)\\neq 0$ and since $1/g$ has a simple pole at $z_0$ $$\\mathrm{Res}[f/g,z_0]=\\lim_{z\\to z_0}(z-z_0)\\frac{f(z)}{g(z)}=\\frac{f(z_0)}{g'(z_0)}$$ But what do I need to do when $f(z_0)=0$? Any help will be appreciated thanks", "While building things I want to see the overlays from other modes so I can make better decisions. Can I lock an overlay somehow? For example: When building roads I want to see the natural resources overlay. When zoning I want to see the wind overlay", "At I've read that being $\\sin(x)=\\sum_{n=0}^{\\infty}\\frac{(-1)^n}{(2n+1)!}x^{2n+1}$ by using we get $\\sin'(x)=\\sum_{n=0}^{\\infty}(2n+1) \\frac{(-1)^n}{(2n+1)!}x^{2n}=\\sum_{n=0}^{\\infty}\\frac{(-1)^n}{(2n)!}x^{2n}=\\cos(x)$ but the page says that if $f(x)=\\sum_{n=0}^{\\infty}c_n(x-a)^n$ then inside the radius of convergence of the power series we have $f'(x)=\\sum_{n=1}^{\\infty}nc_n(x-a)^{n-1}$ so shouldn't it be $\\sin'(x)=\\sum_{n=1}^{\\infty}(2n+1)\\frac{(-1)^n}{(2n+1)!}x^{2n+1-1}=\\sum_{n=1}^{\\infty}\\frac{(-1)^n}{(2n)!}x^{2n}$? Now I understand that this last result has a missing term due to the index of the series being $1$ and not $0$ but being the $1$ mandatory because of the above theorem and since trying to shift index doesn't help (we get $\\sin'(x)=\\sum_{n=0}^{\\infty}\\frac{(-1)^{n+1}}{(2n+2)!}x^{2n+2}$) how can the result that ProofWiki shows be rigorously justified? (I mean, I think we can't just say \"oh, there's a missing term!\" after having applied the theorem and magically shift the index of the series to obtain the desired result)", "-> 683 -> 678 ??? (Doesn't really bother me too much but figured I'd report the bug...)", "What is *.pkinfo file? What is a *.pkinfo file? Google Search results talk about Package Info files and how they contain map documents and layers, so I don't see how this is different from a .mpk file. I also have not found anything about how to create a *.pkinfo file.", "Let mods see the names of the flaggers for chat offensive flags There have been (not to pick on the Bridge, just that these are the ones I found) occurrences where users abuse chat flags to cause drama. Random stuff gets flagged, and users from other rooms are needlessly summoned into the room. The issue is, while mods can tell the room to stop flagging random things, there's no way to enforce this. Spam/offensive flags in chat are anonymous, and can be abused with impunity without the mods finding out. I don't think there's anything stopping a user from letting out an endless stream of flags, annoying everyone. Can mods have the ability to see who flagged a message in chat?", "Evil thoughts without actions?", "Is there a device that could measure the speed of time? Is there (or can there be) a device that could measure the speed and acceleration of time?", "Does an electrolytic capacitor degrade each time it receives reverse voltage?", "In the following question the notation $c\\in ]a,b[$ is used. What does this mean? I have never seen it before.", "Prove that $||x|-|y||\\le |x-y|$ I've seen the full proof of the Triangle Inequality \\begin{equation*} |x+y|\\le|x|+|y|. \\end{equation*} However, I haven't seen the proof of the reverse triangle inequality: \\begin{equation*} ||x|-|y||\\le|x-y|. \\end{equation*} Would you please prove this using only the Triangle Inequality above? Thank you very much.", "How to make sense out of the $\\epsilon-\\delta$ definition of a limit? The informal intuition for the limit of a function is this: What is the value of the function $f$ as $x$ gets infinitely close to $c$? How on earth does this monster $$ \\lim_{x \\to c} f(x) = L \\iff (\\forall \\varepsilon &gt; 0)(\\exists \\ \\delta &gt; 0) (\\forall x \\in D)(0 &lt; |x - c | &lt; \\delta \\ \\Rightarrow \\ |f(x) - L| &lt; \\varepsilon)$$ capture our intuition? I want the answer to explain and motivate every bit of this formal statement. Remember: I am able to parse the statement, I just don't see how it captures our informal intuition.", "Should I do anything when I see several references that are not used in the text? In a linguistics paper I read, I noticed that several references in the bibliography are not actually used in the text. This is for about 10-15% of the references the case. Should I do anything with this? I always thought that all references must be used in the text, because even if they are just suggestions for further reading you would want some explanation why it is relevant and what you can find where. I only know the author through their work and do not know the editors. The paper is from 2011. The references are rather general. They are relevant to the paper, but you would want page numbers with them unless you are familiar with them. They are all from different authors and different institutes. It is likely that the references were used in previous versions of the text.", "wp_customize_image_control default value I am trying to create a custom theme using Wordpress 3.4's customization options. I would like to create an option to change the theme's logo, but I would like to also display a default logo image. I am using the following code in my function.php page: $defaultbranding = \"get_bloginfo('template_directory') . '/images/logo.png\"; $wp_customize-&gt;add_setting( 'change_branding', array( 'default' =&gt; get_bloginfo('template_directory') . '/images/logo.png', ) ); $wp_customize-&gt;add_control( new WP_Customize_Image_Control( $wp_customize, 'change_branding', array( 'label' =&gt; 'Image Control', 'section' =&gt; 'theme_settings', 'settings' =&gt; 'change_branding', ) ) ); And in the theme's header.php page: src='&lt;?php echo get_theme_mod( 'change_branding' , 'default' ) ?&gt;' I would like the 'default' value on the front end to be: get_bloginfo('template_directory') . '/images/logo.png' Is there some way I can achieve this? Thanks in advance for any help.", "Why bother with the dual problem when fitting SVM?", "Equivalent Definitions of the Operator Norm How do you prove that these four definitions of the operator norm are equivalent? $$\\begin{align*} \\lVert A\\rVert_{\\mathrm{op}} &amp;= \\inf\\{ c\\;\\colon\\; \\lVert Av\\rVert\\leq c\\lVert v\\rVert \\text{ for all }v\\in V\\}\\\\ &amp;=\\sup\\{ \\lVert Av\\rVert\\;\\colon\\; v\\in V\\text{ with }\\lVert v\\rVert\\leq 1\\}\\\\ &amp;=\\sup\\{\\lVert Av\\rVert\\;\\colon\\; v\\in V\\text{ with }\\lVert v\\rVert = 1 \\}\\\\ &amp;=\\sup\\left\\{ \\frac{\\lVert Av\\rVert}{\\lVert v\\rVert}\\;\\colon\\; v\\in V\\text{ with }v\\neq 0\\right\\}. \\end{align*}$$", "When there are X New Questions, the views don't update untill you refresh the page" ]
medi_sts_stackexchange_dupe
What is this white circle on this circuit?
What kind of components are black blobs on a PCB?
[ "Prove that $f'(0)$ exists and $f'(0) = b/(a - 1)$ Problem: If $f(x)$ is continous at $x=0$, and $\\lim\\limits_{x\\to 0} \\dfrac{f(ax)-f(x)}{x}=b$, $a, b$ are constants and $|a|&gt;1$, prove that $f'(0)$ exists and $f'(0)=\\dfrac{b}{a-1}$. This approach is definitely wrong: \\begin{align} b&amp;=\\lim_{x\\to 0} \\frac{f(ax)-f(x)}{x}\\\\ &amp;=\\lim_{x\\to 0} \\frac{f(ax)-f(0)-(f(x)-f(0))}{x}\\\\ &amp;=af'(0)-f'(0)\\\\ &amp;=(a-1)f'(0) \\end{align} I will show you a case why this approach is wrong: \\[f(x)= \\begin{cases} 1,&amp;x\\neq0\\\\ 0,&amp;x=0 \\end{cases}\\] $\\lim_{x\\to0}\\dfrac{f(3x)-f(x)}{x}=\\lim_{x\\to0} \\dfrac{1-1}{x}=0$ but $\\lim_{x\\to0}\\dfrac{f(3x)}{x}=\\infty$,$\\lim_{x\\to0}\\dfrac{f(x)}{x}=\\infty$ Does anyone know how to prove it? Thanks in advance!", "What exactly did mv /tmp/folder/* /* do to my filesystem? It's hard to search for special characters on google, which is why I'm posting this here. I recently ran (as root) a mv /tmp/folder/* /* when I meant to run mv /tmp/folder/* ./ Big mistake! Things broke! A lot of files got mixed up and placed into strange places, none of the normal unix commands worked (ls, dir, cat, etc) and once you logged off, you couldn't ssh back in -- it would give you a prompt, but not accept the old passwords. Running ls /* shows me that it performs ls on every directory in /. If I tried to draw a parallel, then mv should have simply moved (or copied?) the files to every directory in /. Instead, really weird things happened, and I was just curious what exactly was going on. More info: The files in /tmp/folder had been transferred from a windows machine, and had been named file (#).txt, where (#) is a number up to two digits, with a space between file and the parenthesis. There were ~40 of these text files.", "points out that certain key and block lengths were a requirement for the AES submissions: The candidate algorithm shall be capable of supporting key-block combinations with sizes of 128-128, 192-128, and 256-128 bits. My question is this; how can having a key length that is greater than the block size enhance security? If we look at ECB mode for simplicity, when the key length is equal to the block length we have a permutation relationship between the set of all plaintexts and the set of all ciphertexts. Once you increase the key length beyond that, you start to introduce collisions. In fact, you only introduce collisions from then on don't you? Collisions in the sense that a key will create the same ciphertext-plantext relationship as another key. This would lead me to believe that only part of the key-space is unique, and only that part of key-space needs to be brute-forced? I know that I am clearly incorrect, I just don't understand why.", "Space which is connected but not path-connected", "How to completely remove desktop? I wanted to switch to Xfce (I had KDE and GNOME installed), and I did this : sudo apt-get install xubuntu-desktop sudo apt-get remove kubuntu-desktop sudo apt-get remove ubuntu-desktop sudo apt-get autoremove but to my surprise, I could still pick gnome, kde plasma, etc during the log in. So, how do I completely remove KDE and GNOME desktops?", "I have a SRD-12VDC-SL-C relay with this configuration: And I want to trigger it with PIR Motion Sensor Detector Module HC-SR501 The problem with direct connection to PIR is, when I connect PIR with 12v DC the Relay remains always ON, i.e. trigger from PIR does not switch it off. And when I connect it via 5V supply the Relay remains always OFF. The trigger output of PIR is 3.3V how can I rectify this problem? by adding some resistor/FETs, or something else. Edit: The voltage at Relay-In(Green) is 10.5V and the relay is OFF it need to go below 9V in order to switch the Relay ON. When I connect it to PIR trigger it goes down to 2.7V (Thus Switching ON the relay, below 9V). And when the PIR trigger of 3.3V comes it goes up to 7.2V but because it is still below 9V) Relay does not switch.", "Can we have cross-site badges?", "My public website name and AD domain name are the same. How can I get to my external website from inside my network?", "In English, words with a 'g' followed by a front vowel (e, i, y) can be pronounced with a soft g or a hard g: Words with Germanic roots are usually pronounced with a hard g: gear, get, gift, give Words with Latin and Greek roots are usually pronounced with a soft g: gem, general, giraffe, giant But how should a purely English word (if such thing even exists) with a 'g' followed by a front vowel be pronounced? In other words, if an English speaker saw a new word of unknown origin (eg: a neologism) that starts with gi- or ge-, how would they pronounce it?", "Is it better to difference a series (assuming it needs it) before using an Arima OR better to use the d parameter within Arima? I was surprised how different the fitted values are depending on which route is taken with the same model and data. Or am I doing something incorrectly? install.packages(\"forecast\") library(forecast) wineindT&lt;-window(wineind, start=c(1987,1), end=c(1994,8)) wineindT_diff &lt;-diff(wineindT) #coefficients and other measures are similar modA&lt;-Arima(wineindT,order=c(1,1,0)) summary(modA) modB&lt;-Arima(wineindT_diff,order=c(1,0,0)) summary(modB) #fitted values from modA A&lt;-forecast.Arima(modA,1)$fitted #fitted from modB, setting initial value to the first value in the original series B&lt;-diffinv(forecast.Arima(modB,1)$fitted,xi=wineindT[1]) plot(A, col=\"red\") lines(B, col=\"blue\") ADD: Please note I am differencing the series once and fitting arima (1,0,0) then I am fitting arima (1,1,0) to the original series. I am (I think) reversing the differencing on the fitted values for the arima(1,0,0) on the differenced file. I am comparing the fitted values - not the predictions. Here is the plot (red is arima(1,1,0) and blue is the arima (1,0,0) on the differenced series after changing back to the original scale) : Response to Dr. Hyndman's Answer: 1) Can you illustrate in R code what I would need to do in order to get the two fitted values (and presumably forecasts) to match (allowing for small difference due to your first point in your answer) between Arima (1,1,0) and Arima(1,0,0) on the manually differenced series? I assume this has to do with the mean not being included in modA, but I am not entirely sure how to proceed. 2) Regarding your #3. I know I am missing the obvious, but are not $\\hat{X}_t = X_{t-1} + \\phi(X_{t-1}-X_{t-2}) $ and $\\hat{Y}_t = \\phi (X_{t-1}-X_{t-2})$ the same when $\\hat{Y}_t$ is defined as $\\hat{X}_t - X_{t-1}$? Are you saying I am \"undifferencing\" incorrectly?", "Minor \"you have already raised this type of flag\" bug? I flagged something as spam, then was only 90% sure I'd done so, so I clicked the flag link again to check. It showed me this: I had, of course, only raised the spam flag, not the offensive/abusive/hate flag, so the latter probably shouldn't be saying I did. Ah, this may be a duplicate, I didn't search enough: And if so, it's been around a while.", "Mask and inherit the same systemd unit 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?", "Checkout subdirectories in Git? Is it possible to check out subdirectories of a repository in Git? Imagine I am setting up a new WordPress installation. I will create two new directories for my plugin and theme customization: wordpress/wp-content/plugins/myplugins/ wordpress/wp-content/themes/mytheme/ I want to maintain these directories via Git. In Subversion, I would accomplish this by having trunk/myplugins/ and trunk/mytheme/ directories and checking out subdirectories. Does Git have a way to accomplish the same task using a single repository? I could just be missing the boat on some Git paradigm, as a long time SVN user with little exposure to Git. Edit: storing different content is an interesting way to handle this.", "Blender is rendering an older version my project", "Placing null at the end of the List", "Mouse rotated 90 degrees", "I don't understand philosophy very well, and so I am wondering whether you can \"prove\" anything in philosophy. It always seems you can go a layer down, and find another question, almost endlessly until you get to the question of \"why/how/are we here?\" Can you prove, absolutely, and 100% that something is true, in the field of philosophy?", "My question is from Apostol's Vol. 1 One-variable calculus with introduction to linear algebra textbook. Page 57. Exercise 12. Show that the following are polynomials by converting them to the form $\\sum_{k=0}^{m}a_kx^k$ for a suitable $m$. In each case $n$ is a positive integer. $a)$ $(1+x)^{2n}.$ $b)$ $\\frac{1-x^{n+1}}{1-x}, x\\not=1.$ $c)$ $\\prod_{k=0}^{n}(1+x^{2^k}).$ The attempt at a solution: a) part of the problem is pretty easy I guess, it is example of binomial theorem, so the answer would be $(1+x)^{2n}=\\sum_{k=0}^{2n}(^{2n}_{k})x^k.$ Answer to part b) would be the following: $$\\frac{1-x^{n+1}}{1-x}=\\frac{(1-x)(1+x+x^2+\\cdots+x^n)}{1-x}=1+x+x^2+\\cdots+x^n=‌​\\sum_{k=0}^{n}x^k.$$thanks to @DiegoMath's hint. As for part c), we have $$\\prod_{k=0}^{n}(1+x^{2^k})=(1+x)(1+x^2)(1+x^4)(1+x^8)\\cdots(1+x^{2^n})$$ and I have trouble &quot;converting&quot; this to sum which would be of a form of polynomial.", "Get specific GPS location somehow on windows 8", "Setting \"checked\" for a checkbox with jQuery I'd like to do something like this to tick a checkbox using jQuery: $(\".myCheckBox\").checked(true); or $(\".myCheckBox\").selected(true); Does such a thing exist?" ]
medi_sts_stackexchange_dupe
Word for a cushy position awarded to a crony?
Word meaning a job someone is installed in where they don’t do anything
[ "How to get only time from date-time C#", "Why can't I just think the spin as rotating? I'm going mad about the problem. I really don't understand why do electron have 1/2 spin number, why they are not actually spinning. I can accept that the electrons have their own magnetic field, which is certain, but why do they have $\\hbar\\sqrt3/2$ of angular momentum, and I don't know what the heck is spin number. I've read the definition of and more than a hundred times but there is no betterment. I've smashed my head in my desk more than a hundred times either. My question is the title. Why can't I just think the spin as rotating? What I've saw recently, electron's hypothetical surface would have to be moving faster than the speed of light in order for it to rotate quickly enough to produce the necessary angular momentum.", "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.", "How to install and use Ubuntu from a USB flash drive on Windows 8?", "When I cut a layer using marquee tool, I get blur edges to cut side. How do I get sharp edges after cut? I am using rectangular marquee tool to cut a portion of the layer in photoshop cs5, but after cutting, the edges are not sharp, I get blur edges. how can I get sharp edges?", "How to assign the result of the previous expression to a variable?", "I want to dynamically create a sequence of strings by manipulate an array of elements and create some arithmetic procedure. for name in FIRST SECOND THIRD FOURTH FIFTH; do $name = $(( $6 + 1 )) $name = \"${$name}q;d\" echo \"${$name}\"; printf \"\\n\" done The desire outcome would be the below for $6 equals 0. 1q;d 2q;d 3q;d 4q;d 5q;d But I get this error reel_first_part.sh: line 18: FIRST: command not found reel_first_part.sh: line 19: ${$name}q;d: bad substitution reel_first_part.sh: line 18: FIRST: command not found reel_first_part.sh: line 19: ${$name}q;d: bad substitution reel_first_part.sh: line 18: FIRST: command not found reel_first_part.sh: line 19: ${$name}q;d: bad substitution I guess it's something simple. It used to work when I did something like FIRST=$(( $6 + 1 )) FIRST=\"${FIRST}q;d\"", "What are the pros and cons of having a separate home partition?", "When I search for my address on Google Maps it cannot be found which means I can't order takeaway etc. Is there a way of adding my address to Google Maps or even add a street address? I want the address to be publicly available so others can search it.", "Delete all files to which no corresponding file with another extension exists My goal is to find a Linux command sequence, which deletes some files if a special condition is fulfilled: All files with the extensions .cut or .cut.bak in the current directory shall be removed, IF there is no file having the same name, but extension .rec or .mpg in the current directory. Background: I am developing a tool for a Linux-based PVR, that allows cutting of recorded programs. For each recording (extension .rec or .mpg) the segment markers are stored in a .cut-file with the same name. When some recording gets moved/renamed/deleted, then the corresponding cut-file remains orphaned and shall be deleted. I already have implemented the removing of those useless cut-files in C. But I am wondering, whether there may be a (simple) system based solution. In this case it could be run via 'system' and &amp; in the background, which would make my application more responsive... I already asked a similar question for the recursive case (browsing also into subdirectories), . There has been a (nearly) perfect answer by kos - but unfortunately it removes too many files, so it is not usable, and I was not able to figure it out... But the same idea can be used here, IF it is possible to parse and pipe the result of 'ls' linewise...", "I have an odd error that I have been unable to find anything on this. I wanted to change the user comment with the following command. $ sudo usermod -c \"New Comment\" user This will work while logged onto a server but I want to automate it across 20+ servers. Usually I am able to use a list and loop through the servers and run a command but in this case I get a error. $ for i in `cat servlist` ; do echo $i ; ssh $i sudo usermod -c \"New Comment\" user ; done serv1 Usage: usermod [options] LOGIN Options: lists usermod options serv2 Usage: usermod [options] LOGIN Options: lists usermod options . . . When I run this loop it throws back an error like I am using the command incorrectly but it will run just fine on a single server. Looking through the ssh man pages I did try -t and -t -t flags but those did not work. I have successfully used perl -p -i -e within a similar loop to edit files. Does anyone know a reason I am unable to loop this?", "How can I be a good reviewer? Someday, as strange as it feels to me right now, I might be asked to review an article for publication. A while ago my advisor and I were talking about this, and it hit me that I don't really know how to be a good reviewer, beyond the basics: Respond timely to things, Make your report clear and detailed, Have actually read the paper, Etc. Beyond this, though, I'm completely in the dark. So I'd like to ask: What's some good advice for a first-time reviewer? My field is math, but I'm really interested in general advice (although advice specific to math, or another field, would also be interesting and useful). I'd like to make this question \"community wiki\" or analogous, but I can't seem to figure out how - if someone can do so, please do, and then I will delete this paragraph.", "Sometimes we read books rather quickly and don't give them much (or any) thought, so the action 'reading' does not necessarily imply that we have given enough thoughts to any book we read. Is there a word that describes reading a book with great care; usually but necessarily slowly over a long period of time.", "I created a view to show Users. These users can create nodes of the \"Questions\" content type. The view has to render a table to show how many (the total number) Questions the user has created. Something like: User +++ Questions created John --- 10 Ted --- 4 Alf --- 19", "How many ways to arrange people on a bench so that no woman sits next to another woman?", "I have a data frame in python where I need to find all categorical variables. Checking the type of the column doesn't always work because int type can also be categorical. So I seek help in finding the right hypothesis test method to identify if a column is categorical or not. I was trying below chi-square test but I am not sure if this is good enough import numpy as np data = np.random.randint(0,5,100) import scipy.stats as ss ss.chisquare(data) Please advise.", "Is there a (La)TeX distribution running on iPad?", "Example of non-isomorphic structures which are elementarily equivalent", "On my y510p, I set Lenovos battery software to \"Optimize battery health\" while I was in Windows 8.1. I forgot to change it before overwriting that partition with Ubuntu, and now my battery in Ubuntu never charges past 59~60%. I think this is due to something in the BIOS because it persists despite my Windows partition being gone. I've searched the BIOS but there's no mention of battery anywhere! I'm using Ubuntu 14.04 LTS.", "Why is my toilet bubbling? Last night while my washing machine and sink in the master bath was running, my master toilet started having air bubbles come up. Then this morning while I was showering I heard bubbles again, and the shower was draining very slowly. After the bubbles occurred my toilet in the master bath and powder room completely drained of water in the bowl and tank. What is happening?" ]
medi_sts_stackexchange_dupe
Limit of a product sequence for infinite terms
Evaluating the infinite product $\prod\limits_{k=2}^\infty \left ( 1-\frac1{k^2}\right)$
[ "The website I'm working is allegedly going to have a massive hit rate soon after launch. The client is talking about the possibility of around 2500 hits per second over a day or so. Ignoring the fact that this hit rate is probably wild client optimism and apart from getting the largest servers possible, what is the best way that Drupal should be configured to support a large hit rate. I've read Scaling the , , and many other pages, but what I'm looking for is real experience of doing this, what works, what doesn't, and what to expect.", "Allow retracting a moderator flag if the post has been deleted and I don't have enough reputation to see deleted posts Currently, custom flags for moderator attention are not automatically invalidated (marked helpful) when a post gets deleted. Ordinarily, one can retract a moderator flag by going to the post, clicking &quot;flag&quot;, and then &quot;Retract Flag&quot;. This works even if the post has been deleted, provided they can see the post (they have 10,000+ rep, it's their own post, or they have answered it). However, it's not possible to self-remove a flag on a deleted post if they can't see the deleted post, because they can't get to the &quot;flag&quot; button. Is this intended? If not, can this ability please be implemented? As Aurora0001 commented, there is no server-side check, the button is just not visible. Can this please be implemented on the website, or is the fact that it's possible server-side a bug that will soon be fixed by removing it?", "Why GCP Kubernetes Node host location for europe-north1 seems to be in US? I am new to both Google Cloud Platform and K8s. I have launched Kubernetes cluster in GCP and chosen europe-north1 as the region (europe-north1-a as the zone). When I try to run my application on this cluster it fails because it expects the application to run in EU region. I added IP and Geo check (using GeoLite database () and AWS IP check tool ()) into my application and they tell me that the host is located in US. Have I perhaps missed some GCP/K8s configuration option or is this because the europe-north1 region is still quite new and the IP addresses do not correctly show that they are located in EU? In which case I should direct this question to Google?", "Is it possible to download using the Windows command line? Without using any non-standard (Windows included) utilities, is it possible to download using the Windows command line? The preferred version is Windows XP, but it's also interesting to know for newer versions. To further clarify my question: It has to be using HTTP The file needs to be saved Standard clean Windows install, no extra tools So basically, since everybody is screaming , I want simple Wget functionality, without using Wget.", "What kind of things can you take from a hotel? Hotels normally provide a big amount of sets (well, depending on the quality, but however, many!) that can help you feel more comfortable there. So for example you can get towels, slippers, candies, pens, shampoos, shaving kits, sponges, ... The same in the self-service breakfast: pastries, bread, ... They are meant to be used during your stay. However, they can be provided in such an amount that there are some extra by the time you leave... and make you feel like taking some back home. My general rule is to take those things that I used but didn't finish. However, sometimes I may be tempted to take the brand new stuff lying there before I close the door for the last time. So the question that pops is: what kind of things is it correct to take from hotels and what is it not recommended? Else, what items may differ from country to country?", "How can I backup my RAW photos while travelling without Internet access?", "Software gvSIG OA Digital Edition 2010 have tools topology for finding pseudo nodes in linear geometry. I set cluster tolerance 0.00002 and maximum number of errors -10000 for 20000 link count linear geometry. But unsuccessful result. Are there any solutions that find pseudo nodes in free GIS software? I need to layer pseudo nodes (one solution to this problem - to use tools topology of ArcInfo, but priority for me is to use free software). Linear geometry created several users in QGIS 1.8.0 in PostGIS (v. 2.0.1) database. Add new image: 12 linear features with three pseudo nodes in A (line 4/5), B (line 6/7), C (line 9/10). Pseudo nodes should be points instead - two linear features with intersection in one point (node) should be one linear feature (line 4/5 - line 4, ...). Is it possible to make a request in PostGIS, which will result in a layer of pseudo nodes? Add new image of examples pseudo nodes: if I receive for linear layer point layer pseudo nodes (blue rects) I corrected following errors in linear layer: A - add missing geometry, B - snapped line in intersection, C - remove pseudo node.", "Where can I find the status of the released versions of Ubuntu? I want to know where I can find updated information about all the stable and in-development versions of Ubuntu, where I can find this information? This question is meant to be a canonical question. It expects to answer the following questions: Is X version stable yet? Is X version in beta? Is X version still supported? What versions are still supported? What are the versions in Beta/Alpha? Until where X version will be supported? Have X version ceased support? When will be X version released? Where I can download any release? When will the next LTS version of Ubuntu be released? The list is not exhaustive.", "This is a about Hosting multiple SSL websites on the same IP. I was under the impression that each SSL Certificate required it's own unique IP Address/Port combination. But the is at odds with this claim. Using information from that Question, I was able to get multiple SSL certificates to work on the same IP address and on port 443. I am very confused as to why this works given the assumption above and reinforced by others that each SSL domain website on the same server requires its own IP/Port. I am suspicious that I did something wrong. Can multiple SSL Certificates be used this way?", "\"Do you want to continue[Y/n]?\" Why the upper case? I am new to Ubuntu and some little thing start to bug me. Such as when trying to install a program, Ubuntu asks, Do you want to continue[Y/n]? What is bugging me is why the letter \"Y\" is upper case and \"n\" is lower case. Do they have any significant reason why one is upper and the latter is lower? Whatever case I enter it doesn't change the outcome: it either continues or not. Are they trying to notify us that we can enter both and it won't change anything?", "Err http://archive.canonical.com natty InRelease Err http://security.ubuntu.com oneiric-security InRelease Err http://extras.ubuntu.com natty InRelease Err http://security.ubuntu.com oneiric-security Release.gpg Temporary failure resolving ‘security.ubuntu.com’ Err http://archive.canonical.com natty Release.gpg Temporary failure resolving ‘archive.canonical.com’ Err http://extras.ubuntu.com natty Release.gpg Temporary failure resolving ‘extras.ubuntu.com’ Err http://gb.archive.ubuntu.com oneiric InRelease Err http://gb.archive.ubuntu.com oneiric-updates InRelease Err http://gb.archive.ubuntu.com natty-backports InRelease Err http://gb.archive.ubuntu.com oneiric Release.gpg Temporary failure resolving ‘gb.archive.ubuntu.com’ Err http://gb.archive.ubuntu.com oneiric-updates Release.gpg Temporary failure resolving ‘gb.archive.ubuntu.com’ Err http://gb.archive.ubuntu.com natty-backports Release.gpg Temporary failure resolving ‘gb.archive.ubuntu.com’ Reading package lists... Done W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/oneiric/InRelease W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/oneiric-updates/InRelease W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/natty-backports/InRelease W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/oneiric-security/InRelease W: Failed to fetch http://archive.canonical.com/ubuntu/dists/natty/InRelease W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/natty/InRelease W: Failed to fetch http://archive.canonical.com/ubuntu/dists/natty/Release.gpg Temporary failure resolving ‘archive.canonical.com’ W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/oneiric-security/Release.gpg Temporary failure resolving ‘security.ubuntu.com’ W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/natty/Release.gpg Temporary failure resolving ‘extras.ubuntu.com’ W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/oneiric/Release.gpg Temporary failure resolving ‘gb.archive.ubuntu.com’ W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/oneiric-updates/Release.gpg Temporary failure resolving ‘gb.archive.ubuntu.com’ W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/natty-backports/Release.gpg Temporary failure resolving ‘gb.archive.ubuntu.com’ W: Some index files failed to download. They have been ignored, or old ones used instead. This is what I'm seeing when I try to run sudo apt-get update. I did an update on my instance yesterday and am now experiencing this.", "Average distance between two random points in a square", "How to make a modification take affect without restarting nginx? Apache has a graceful option which can scan for modification in http.conf without restarting Apache. What about nginx?", "Prove $\\gcd(a+b,a^2+b^2)$ is $1$ or $2$ if $\\gcd(a,b) = 1$ Assuming that $\\gcd(a,b) = 1$, prove that $\\gcd(a+b,a^2+b^2) = 1$ or $2$. I tried this problem and ended up with $$d\\mid 2a^2,\\quad d\\mid 2b^2$$ where $d = \\gcd(a+b,a^2+b^2)$, but then I am stuck; by these two conclusions how can I conclude $d=1$ or $2$? And also is there any other way of proving this result?", "I realize this is a long shot, but my phone was lost or stolen a few hours ago. At the time it was stolen, I didn't have any specific applications installed to track it or wipe the data. So... my bad. I'm hoping the fact that I have a pattern lock will at least prevent anyone from accessing my data. My question is, do I have any options for tracking or data wipe after the fact? (I'm more interested in tracking.) Note: I have read similar questions, but unless I'm mistaken, they all address the question in terms of preparation before losing the phone. I'm asking about fallback options after losing the phone.", "I would like to read in a number of files and pipe their output to subsequent programs while still maintaining them as individual pipelines of data. program1 *.txt | program2 | program3 folder I know what the above syntax can accomplish for single streams of data, but I am looking at keeping the files separate throughout the entire operation. The above would translate to the following: program1 reads text files and pipes to program2 program2 processes data individually and pipes to program3 program3 writes data to files in folder with the same file names as the original This kind of operation is currently the domain for build tools like Gulp, but I am trying to see if a shell can fully replace them. Since programs are written to handle only one stdin, it doesn't seem feasible. The reading and writing of multiple files isn't an issue as I will just handle that within the programs themselves. I have looked into the following, but they don't seem like the correct solution: the tee command file descriptors substitutions One possible way is to create a process for each individual file, and maintain a list of file names somewhere, but I am hoping for something more elegant.", "I had originally coded the program wrongly. Instead of returning the Fibonacci numbers between a range (ie. startNumber 1, endNumber 20 should = only those numbers between 1 &amp; 20), I have written for the program to display all Fibonacci numbers between a range (ie. startNumber 1, endNumber 20 displays = First 20 Fibonacci numbers). I thought I had a sure-fire code. I also do not see why this is happening. startNumber = int(raw_input(\"Enter the start number here \")) endNumber = int(raw_input(\"Enter the end number here \")) def fib(n): if n &lt; 2: return n return fib(n-2) + fib(n-1) print map(fib, range(startNumber, endNumber)) Someone pointed out in my Part II (which was closed for being a duplicate - ) that I need to pass the startNumber and endNumber through a generator using a while loop. Can someone please point me in the direction on how to do this? Any help is welcome. I'm a learning programmer and I've run into a bit of a jumble. I am asked to write a program that will compute and display Fibonacci's Sequence by a user inputted start number and end number (ie. startNumber = 20 endNumber = 100 and it will display only the numbers between that range). The trick is to use it inclusively (which I do not know how to do in Python? - I'm assuming this means to use an inclusive range?). What I have so far is no actual coding but rather: Write Fib sequence formula to infinite Display startNumber to endNumber only from Fib sequence. I have no idea where to start and I am asking for ideas or insight into how to write this. I also have tried to write the Fib sequence forumla but I get lost on that as well.", "What is the \"canary thread\" and why is it starving?", "I've come across some strange interaction between overlay specification and \\pause. Basically I have an itemize and after some text(or block). I want to step through the itemize and after that show the text/block. I've tried to put a simple \\pause between the itemize and the text, but in this way two slides are created, both with the full itemize and no text. If I don't put the \\pause the text is visible from the start(which I don't want). I've already found a simple work-around: instead of using itemize[&lt;+-&gt;] I can specify the slides on the items(e.g item&lt;1-&gt;, ...item&lt;2-&gt;,... \\pause), but I don't like this solution for some reasons: I have to type more than before I have to hard-code the slide numbers This is solution is not robust. Modification on the item order, removal or addition of new items would break it. I think there has to be some better solution. So, how should I do? By the way, a minimal example: \\documentclass{beamer} \\usepackage[utf8]{inputenc} \\usepackage{default} \\begin{document} \\begin{frame} \\begin{itemize}[&lt;+-&gt;] \\item A \\item B \\item C \\end{itemize} \\pause % double pause here Some text. \\end{frame} \\end{document}", "I can't work out why Altium is doing this, or how to undo it, or how to make it stop doing it. It happens when I use the 'Find Similar Objects... ' option; all of objects that it hasn't found are faded out and I can no longer select them. Anyone know how to fix this? Additionally, if anyone knows how to change, en masse, the components' footprint library to 'Any' through the SCH inspector, that'd be really helpful too." ]
medi_sts_stackexchange_dupe
Is there any difference between "student" or "pupil"?
"Pupil" or "Student", what is the correct use?
[ "If $r,s,t$ are prime numbers and $p,q$ positive integers s.t. $\\text{lcm}(p,q)$ is $r^2s^4t^2$, then the number of ordered pairs $(p,q)$ is? If $r,s,t$ are prime numbers and $p,q$ are the positive integers such that LCM of $p,q$ is $r^2s^4t^2$, then the number of ordered pairs $(p,q)$ is? My attempt to the solution: Let $r^a s^b t^c$ be the LCM where $a=2,b=4,c=2$ Then the cases that arise are I case 1) $p$ has $r^as^bt^c$ then there are a total of $(2+1)(4+1)(2+1)$ options II case 1) $p$ has $r^as^b$ or $s^bt^c$,$r^at^c$ then there are total of $(2+1)(4+1)(2+1)(3)$ options. The answers comes out to be $45*4$ but the answer is $45*5$. Which case am I missing?", "Asking days badges A couple of months ago, I suggested a set of badges for . The responses were... mixed. The can be summarized: In practice, all this would do is encourage people to ask yet more stupid, worthless questions and we have quite enough of that as it is. We believe that one of the main things holding back many of our beta sites is that when people have questions they aren't in the habit of asking on the site. Even our flagship site, Stack Overflow, doesn't get many questions from its most knowledgeable users. Perhaps they don't have questions, but far more likely they find answers without needing to ask. Our subtle bias against asking (questions =&gt; clueless) means we lose out on what might be our best source of excellent questions. So we went back to the drawing board and designed a badge set that should not encourage worthless questions: Asked a well-received question on X separate days, and maintained a positive question record. In order to award badges, we need to define our terms: positive question record (total questions - negative questions - closed - deleted)/total questions &gt;= 0.5 It triple counts a question that is downvoted, closed, and deleted. If you ask one that hits that trifecta, you'll need to ask three better questions to dig yourself out. My own record of asking does not meet the criteria: (44 - 0 - 12 - 12)/44 = 0.4545... My looks a lot better; I had a bunch of questions from the beta period that have been subsequently (and rightfully) deleted. With care, I could bring my record into positive territory with 4 questions. The takeaway is that people can't sweep past indiscretions under the rug by deleting them. And they can recover from a bad start as long as they don't ask more bad questions. well-received question on X separate days A well-received question is one that's open, not deleted, and has a score &gt; 0. If you ask at least one well-received question in a and none of your questions that day are deleted, downvoted, or closed, you get one more day of credit toward the badge. Whenever the badge criteria is checked, previous asking days are re-evaluated so that there's an incentive to fix downvoted and/or closed questions. The no-deleted-questions criteria is to prevent people from asking several questions at once and deleting any that aren't upvoted or answered to ask another day. (Though this is a losing strategy in the long run.) My proposed badge names and levels: Asked a well-received question on 5 separate days, and maintained a positive question record. Asked a well-received question on 30 separate days, and maintained a positive question record. Asked a well-received question on 100 separate days, and maintained a positive question record. In addition, since some outstanding individuals ask on more than 100 days, the gold badge may be awarded multiple times. Over on English, Oishi-sama (now a ) would have a remarkable . Bronze and silver badges are only awarded once. We've decided to hold off on multiple awards for now. See the . Neither the names nor the levels nor even the descriptions are set in stone. Please play around with to get an idea of how the badge works using our public data. Since the query does not account for deleted questions, it's a bit more generous than the actual badges would be. This version of the badge set should encourage a habit of well-received questions over time and encourage people to fix poorly received questions. I'd like to express my gratitude to the Parenting community for participating in our .", "I read it in English in the United States, somewhere in the 1990s. I got it off of the big bookshelf in our family room, which means it could be a good bit older; some of the books were my Dad's. At the beginning, a young boy (maybe an early teen?) leaves his house, where he lives with his parent or parents, and takes a test to become a spaceship pilot for the military. Part of the test judges reaction speed, and he fails the test. He later learns (I think when he's approached by an agent of the government) that he \"failed\" because he has some sort of enhanced fortune that meant that he was actually giving the results before they could be displayed on the screen. At the time, I remember thinking that the book felt a bit like a Star Wars rip-off. Years later, I read that one of the Star Wars books (probably now Legends) had Luke similarly failing the Imperial Academy test because he gave his answers too quickly, and it amused me that I was uncertain as to which had come first. I don't remember anything concrete about the cover, although I have a general impression that it was white. Definitely futuristic. My impression was that the boy was wearing a white uniform for the testing and that the government agent who spoke to him had a grey beard, but I might be mixing bits of Star Wars in there.", "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?", "I tried to install ffmpeg in trusty/Ubuntu 14.04 and got the following message: $sudo apt-get install ffmpeg Reading package lists... Done Building dependency tree Reading state information... Done Package ffmpeg is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'ffmpeg' has no installation candidate Why isn't the package available?", "\"add/show comments\" should dismiss notification", "What if the hard disk is partitioned into more than 26 sections in Windows?", "What is the best introductory Bayesian statistics textbook? Which is the best introductory textbook for Bayesian statistics? One book per answer, please.", "How do I pull from a Git repository through an HTTP proxy? Note: while the use-case described is about using submodules within a project, the same applies to a normal git clone of a repository over HTTP. I have a project under Git control. I'd like to add a submodule: git submodule add http://github.com/jscruggs/metric_fu.git vendor/plugins/metric_fu But I get ... got 1b0313f016d98e556396c91d08127c59722762d0 got 4c42d44a9221209293e5f3eb7e662a1571b09421 got b0d6414e3ca5c2fb4b95b7712c7edbf7d2becac7 error: Unable to find abc07fcf79aebed56497e3894c6c3c06046f913a under http://github.com/jscruggs/metri... Cannot obtain needed commit abc07fcf79aebed56497e3894c6c3c06046f913a while processing commit ee576543b3a0820cc966cc10cc41e6ffb3415658. fatal: Fetch failed. Clone of 'http://github.com/jscruggs/metric_fu.git' into submodule path 'vendor/plugins/metric_fu' I have my HTTP_PROXY set up: c:\\project&gt; echo %HTTP_PROXY% http://proxy.mycompany:80 I even have a global Git setting for the http proxy: c:\\project&gt; git config --get http.proxy http://proxy.mycompany:80 Has anybody gotten HTTP fetches to consistently work through a proxy? What's really strange is that a few project on GitHub work fine ( for example), but others consistently fail ( for example).", "Currently selected indicator's colour in flag summary and help pages, can be the same as the site's colour code", "Could the Infinity Gauntlet be used to make two people fall in love with each other? I am wondering if there is anything in Marvel comic book canon or in the MCU that says that the Infinity Gauntlet has the power to make someone fall in love with the person wearing the Infinity Gauntlet, or that the wearer of the Infinity Gauntlet can use the Infinity Gauntlet to make two strangers fall in love with each other? Perhaps the combined power of the Mind Stone and the Soul Stone would make two people fall in love.", "Convergence of cos, sin, tan functions In Radian mode, continually pressing the $\\cos$ function of a number causes the result to converge to $x=0.739085133$, a fixed point of $\\cos(x)$. Repeating this behavior with the $\\sin$ function causes the result to converge to $x=0$, a fixed point of $\\sin(x)$. What happens if this is done using the tan function? It seems that $x=0$ is a repelling fixed point with no convergence in this case. What would be the best way to explain these results mathematically?", "How to read a windows registry file using java?", "Find where java class is loaded from Does anyone know how to programmaticly find out where the java classloader actually loads the class from? I often work on large projects where the classpath gets very long and manual searching is not really an option. I recently had a where the classloader was loading an incorrect version of a class because it was on the classpath in two different places. So how can I get the classloader to tell me where on disk the actual class file is coming from? Edit: What about if the classloader actually fails to load the class due to a version mismatch (or something else), is there anyway we could find out what file its trying to read before it reads it?", "How to test apex classes with Pagereference? I'm struggling to test a class with pagereference. Following is the class... public with sharing class redirectOrderPartner{ public String currentRecordId {get;set;} public orders__c orderId {get;set;} public redirectOrderPartner(ApexPages.StandardController controller) { } Public Pagereference go(){ currentRecordId = ApexPages.CurrentPage().getparameters().get('orderid'); system.debug('---currentRecordId ---'+currentRecordId ); orderId = [select id from orders__c where name =: currentRecordId limit 1]; system.debug('---orderid---'+orderId); PageReference pageRef = new PageReference('/apex/OrderTrackingClass?id='+orderId.id); pageRef.setRedirect(true); return pageRef; } } Following is what I tried.... @isTest public class redirectOrderPartner_TEST { static testMethod void Test(){ Account acc = new Account(Name='ABC Corp.'); insert acc; orders__c tempOrder = new orders__c(name = '0001234567', account__c = acc.id ); insert tempOrder; Test.startTest(); PageReference pageRef = Page.redirectOrderPartner; Test.setCurrentPage(pageRef); ApexPages.Standardcontroller sc = new ApexPages.Standardcontroller(tempOrder); ApexPages.currentPage().getParameters().put('Id',tempOrder.name); PW_redirectOrderPartner ec = new redirectOrderPartner(sc); ec.go(); Test.stopTest(); } } I get the following error message on testing.. System.QueryException: List has no rows for assignment to SObject What am I missing? Thanks", "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?", "If $x_1=5$, $x_{n+1}=x_n^2-2$, find $\\lim x_{n+1}/(x_1\\cdots x_n)$", "Is there a single word to describe a solution that hasn't been optimized?", "Neatest proof that set of finite subsets is countable? I am looking for a beautiful way of showing the following basic result in elementary set theory: If $A$ is a countable set then the set of finite subsets of $A$ is countable. I proved it as follows but my proof is somewhat fugly so I was wondering if there is a neat way of showing it: Let $|A| \\le \\aleph_0$. If $A$ is finite then $P(A)$ is finite and hence countable. If $|A| = \\aleph_0$ then there is a bijection $A \\to \\omega$ so that we may assume that we are talking about finite subsets of $\\omega$ from now on. Define a map $\\varphi: [A]^{&lt;\\aleph_0} \\to (0,1) \\cap \\mathbb Q$ as $B \\mapsto \\sum_{n \\in \\omega} \\frac{\\chi_B (n)}{2^n}$. Then $\\varphi$ is injective hence the claim follows. (The proof of which is what is the core-fugly part of the proof and I omit it.).", "What kind of passport do I need when entering the USA? I heard that you need a biometric passport if you want to enter USA. However, my friend has a biometric passport, but no fingerprints in it. Is this enough? And how long has the passport to be valid? Is it okay if it expires on the day after his return date?" ]
medi_sts_stackexchange_dupe
MTG - Cards that share names stack abilities?
Identical creatures entering the battlefield
[ "Splitting pieces of a mesh into a new object", "Connect Error (2054) - mysql_old_password issue still not solved", "I'm hoping someone can give me a nudge in the right direction... Let $F$ be a finite field, and let $f(x)$ be a nonconstant polynomial whose derivative is the zero polynomial. Prove that $f$ cannot be irreducible over $F$. I've got that every root of $f$ is a multiple root and that for $F=\\mathbb{F}_{p^r}$, the exponent of every term of $f$ is a multiple of $p$.", "In the Harry Potter series, are wizards capable of creating their own spells, or are they limited to the spells that they're taught/learn? I seem to remember something about Snape creating sectumsempra, but I'm not sure if that really is the case.", "I am wondering if the explanations correct and whether what is the difference between different &quot;seems&quot;. He seems happy. He seems a happy fellow. He seems to be a happy fellow. He seems to work hard. He seemed to be happy &quot;Seem&quot; also enters into an 'impersonal' construction which employs 1) the 'dummy' subject it + an active tensed form with &quot;seem&quot;, followed by 2) a that clause (sometimes called a 'content' clause) which expresses the assertion which is hedged or qualified. It seems that he is happy (but he may not be). It seemed that he was a happy fellow (but he wasn't). It will seem that he is working hard (but he will in fact be spending his time answering questions on ELL instead of working). He is seemed to be something.", "How to use variable inside parameter $_GET? example: ($_GET[$my_var])", "I came across this example when trying to mount a usb device inside a openvz container and I have never seen the construct in the second line before. Can you explain what it signifies? #!/bin/bash . /etc/vz/vz.conf", "Why does main method in Java always need arguments?", "Underworld Connections: Tapping the Land for mana and ability?", "Ubuntu desktop suddenly points to home folder", "Is it possible to have f.lux (software that adjusts display's color temperature) on Ubuntu 14.04? f.lux is software which adjusts temperature of your display according to time of the day. Is it possible to make f.lux work in Ubuntu 14.04? If so, maybe you can share your knowledge or point me to a guide.", "A uniformly continuous function maps bounded set to bounded sets I am trying to prove the following: If $A\\subset\\mathbb R$ is bounded and $\\,f:A\\to \\mathbb R\\,$ is uniformly continuous, then $f[A]$ is bounded. Could you check my proof? Let $A \\subseteq [-K,K]\\subseteq \\mathbb R$. Let $\\varepsilon = 1$. If $f$ is uniformly continuous there is $\\delta$ wuth $|x-y| &lt;\\delta$ imply that $|f(x)-f(y)|&lt;1$ for all $x,y\\in A$. Let $a \\in A$. Then because $A$ is bounded there is a finite number of balls $B(a_n,\\delta)$ that cover $A$. Let the number be $N$. Then $f(a)-N \\le f(x) \\le f(a) + N$ for all $x\\in A$.", "Prove that, if A and B is similar, then $A^T$ is similar to $B^T$. Attempt: I try to use the defn of similarity, and then the rule to transpose in different order, but get nowhere. This should be simple... (Note to self: page 92.)", "When my phone MOTOROLA G3(2015) is updated to Marshmallow, its not showing files when connected to PC. While connecting, it shows options as charing only, PTP, MTP, MIDI. When I select MTP, it shows the external card, but not showing the contents, where as internal memory is detected and all files are shown.", "What causes close votes to be annotated with \"(deleted)\"?", "Routing Applications sound to different sound device? (Windows)", "Given a DateTime object, how do I get an ISO 8601 date in string format? Given: DateTime.UtcNow How do I get a string which represents the same value in an -compliant format? Note that ISO 8601 defines a number of similar formats. The specific format I am looking for is: yyyy-MM-ddTHH:mm:ssZ", "How can I install Whatsapp web app on Ubuntu? I found a similar question , but here I am asking for the WhatsApp desktop webapp so that I can directly access the application without opening a browser.", "How to manipulate 2D plots?", "comment.sty and UTF8 encoding I noted that if I use comment.sty and a there is a block of text containing UTF8 characters inside a comment environment, the compilation aborts! Minimal Example \\documentclass{article} \\usepackage[T1]{fontenc} \\RequirePackage[utf8]{inputenc}%this file is stored as UTF8 file! \\RequirePackage{comment} \\specialcomment{privateSolution} {\\begingroup\\itshape\\noindent\\textbf{Solution}\\\\} {\\endgroup} %\\excludecomment{privateSolution}%Use it to remove solutions! \\begin{document} \\title{Comment.sty and UTF8 test file} \\maketitle \\section{UTF8 character test} In which alphabet characters àìùòè are common? \\begin{privateSolution} The Italian alphabet contains àìùòè. \\end{privateSolution} \\begin{comment} The Italian one! It contains àìùòè. \\end{comment} \\end{document} Has anyone the same problem? Any workaround? Thanks in advance." ]
medi_sts_stackexchange_dupe
What are the performance implications of Hyper-threading for single Nehalem+ CPU?
Can you help me with my capacity planning?
[ "Why does water pouring from a glass sometimes travel down the side of the glass?", "Why are there both Static and Kinetic Friction? When dragging an object, there is a greater start-up force than the force it takes to keep it moving. Why is this? Why are there two different values for friction?", "Accessing derived class property members from base class object in CSharp", "!! c operator, is a two NOT?", "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.", "Why should I avoid multiple inheritance in C++? Is it a good concept to use multiple inheritance or can I do other things instead?", "Global variables in AngularJS", "Experiment to find structure of water Who first determined the structure of water (two hydrogen atoms stuck to an oxygen atom at approx 105 degrees), and, more importantly, how was this done?", "I'm studying molecular biology and I'm trying to understand an experiment which shows the importance of promoters in the relative transcription level (RT). The image below comes from Rolf Knippers' book \"Molekulare Genetik\" (8th edition). The legend says (among other things): Die erste Zeile gibt die normale \"Wildtyp\"-Sequenz der 5'-flankierenden Region wieder. Which, in english, means something like: The first line repeats the normal wild-type sequence of the 5' flanking region. The column on the right gives the relative transcription (RT) level, 1.0 being the highest possible level of transcription. As we can see, the lines where some parts of the \"5' region\" have been deleted give quite low RT levels, since some regions of the promoter are missing. My questions are the following: 1) According to and , I understand that RNA polymerase reads and uses both coding and non-coding strands in order to synthesize RNA. Therefore, how did they manage to use the sequences strands regions had been deleted to make a polymerase \"read them\" and perform transcription? 2) If the polymerase reads the template strand in the 3' -> 5' sense, shouldn't we talk of \"ATAT box\" or \"TAAC box\" instead of \"TATA\" or \"CAAT\" boxes? Does it mean that the \"promoter\" regions they are using on the graphic above are actually on the coding strand? Thanks a lot for your help.", "Round function in Excel, worksheet function vs VBA", "I have several spreadsheets with information I need to consolidate, each with different (and sometimes overlapping) portions of the final data set I'm hoping to create. Typically, combining spreadsheets with similar data is easy to do by dumping all the data into one sheet and using Remove Duplicates. However, I want to make sure that the line items which are left represent the latest version of the duplicates. I will be importing the following data from each spreadsheet: A unique identifier field, (UID) which identifies the subject of the line item and will be used to spot duplicates between the input sheets. A status field, (STATUS) which will have information about the item called out in the unique identifier field. A date field, (DATE) which will contain the date the imported data was originally written. What I need is for my output to contain only one line item for each UID, and have data from the STATUS field which matches the most recent DATE for that UID from the input sheets. What is the easiest way to do this in Excel?", "Java - Method name collision in interface implementation", "How to pack the game files into one without using any file compressor? Well, one example is this file of the game The Sims 2 for PS2: quickdat.arc. The file contains this .arc extension, but it's no one an archive file and it contains some data of the game inside. How can I do this? Put so many files in one? How to do something like this? All the game files inside one without using a file compressor?", "I wanted to show that $X' / U^\\perp \\cong U'$, for $U$ being a closed subspace of the Banach space $X$. Therefore I looked at $l: X' / U^\\perp \\cong U' , x' + U^\\perp=[x'] \\mapsto x'|_U$. It is clear that this map is onto, as we just take a $u' \\in U'$. Then I can use Hahn-Banach to get an appropriate $x'$ such that $x'|_U = u'$ and in particular $||x'||=||u'||$. Now I need to show that is isometric: since we always have $\\|[x']\\|\\le \\|x'\\|$ and by Hahn-Banach we have $\\|x'\\|=\\|x'_{|U}\\|$, this shows $\\|[x′]\\|\\le \\|x'_{|D}\\|$ and it should be always true that $\\forall y' \\in U^\\perp: \\|x'-y'\\| \\ge \\|x'_{|D}\\|$, hence $\\|[x']\\|\\ge \\|x'_{|D}\\|$. Is this reasoning correct? The isometric property follows.", "How can I restrict a user on the SSH server to allow them only the privileges for ? i.e. So they cannot run commands even if they log in via SSH. My Linux servers are Ubuntu 11.04 and OpenWrt.", "How to check if a service is running on Android? How do I check if a background service is running? I want an Android activity that toggles the state of the service -- it lets me turn it on if it is off and off if it is on.", "From the spell description: Sleep (...) Creatures within 20 feet of a point you choose within range are affected in ascending order of their current hit points (ignoring unconscious creatures). Starting with the creature that has the lowest current hit points,(...) Subtract each creature’s hit points from the total before moving on to the creature with the next lowest hit points. A creature’s hit points must be equal to or less than the remaining total for that creature to be affected. Undead and creatures immune to being charmed aren’t affected by this spell. (PH p.276) Now, to build the ascending order of their current hitpoints, the spell instructs to count everyone in area of effect, but only ignore unconscous creatures. Then later on it says that Undead and creatures immune to being charmed aren't affected. Are those two latter kinds of creatures excluded from the roll of current HP by default? Following the \"if they were it would say so\" philosophy of Sage Advice, it doesn't seem so to me.", "Order of items in a context menu", "I would like to do two things Increase the size of inmargin area (i.e., customize inner sidebar so that more contents could fit there) Reduce the empty space between the title of block environment and the slide edge (from the example below, the title of block has too much of wasted space to its left which could be used to create more readable sentences) MWE \\documentclass[xcolor={x11names}]{beamer} \\usecolortheme{structure} \\useinnertheme{rectangles} \\useinnertheme{inmargin} \\usecolortheme{crane} \\usefonttheme{structurebold} \\usepackage{fontspec} \\usepackage{calc} \\usepackage[inline]{enumitem} % Description list defaults % To change font \\newcommand{\\descriptionfont}{\\fontencoding{T1} \\fontfamily{bch} \\selectfont} % Label indentation \\newcommand{\\descLabOffset}{\\widthof{\\hspace{2.6mm}}} % Left of description aligned with the left margin \\newcommand{\\descLeftLabMarInd}{0mm - \\descLabOffset} % Left of description aligned with \\parindent \\newcommand{\\descLeftLabParInd}{\\parindent - \\descLabOffset} % Set the list options \\setlist[description, 1]{font=\\descriptionfont, leftmargin=*, labelsep=3mm, labelindent=\\descLeftLabMarInd, align=left} \\begin{document} \\begin{frame}{Induction Motors} \\begin{block}{Why is induction motor very common?} Induction motors are very practical for the following reasons \\begin{description} \\item[Rigid] Rigid \\item[Cheap] Cheap \\item[Low Maintenance] Low Maintenance \\item[Self-Starting] Self-starting \\item[No Excitation Needed] No Excitation Needed \\end{description} \\end{block} \\end{frame} \\end{document}", "I mean are we certain that they will be able to provide us a huge improvements (in some tasks) compared to clasical computers?" ]
medi_sts_stackexchange_dupe
Is ∅ equivalent to {∅}?
Is $\emptyset \in \emptyset$ or $\emptyset \subseteq \emptyset$?
[ "How do I generate the upper triangular indices from a list?", "Is there a way to check if a file is checked out by another user? I am going trhough a list file by file and would like to avoid the \"file is opened by another user\" error. Something like this would be nice: Guid id = new Guid(slideLibrary); // ID of Slide-Library. List list = ctx.Web.Lists.GetById(id); ListItemCollection items = list.GetItems(CamlQuery.CreateAllItemsQuery()); ctx.Load(items); // Loading all the fields System.Security.SecureString pwd = new System.Security.SecureString(); foreach (char c in \"pwd\".ToCharArray()) pwd.AppendChar(c); ctx.Credentials = new SharePointOnlineCredentials(login, pwd); ctx.ExecuteQuery(); // Iterating through all the entries. foreach (var item in items) { String currentID = item[\"ID\"].ToString(); // Getting the ID of the current item. if (!item.IsCheckedOut()) // This is the part I am looking for. { // Do stuff } else { Console.WriteLine(\"Item is blocked, skipping it.\") } } I have yet not been able to find something fitting.", "Dynamic Server Name in SQL Statements (from clause)", "Why do close votes expire? I nominated to be closed as a dup. I see that two other people upvoted my comment, so they might have voted to close it as well. Now, we didn't gather enough votes, and all close votes expired ... and I can't re-vote to close. What is the motivation behind expiring close votes ... especially for close-as-duplicate? Update: Please take into consideration: Beta Stack Exchange sites have a smaller community, and fewer people with voting privileges Closing as a duplicate is &quot;usually the right thing&quot; IMHO - much less controversial than closing as off topic. After a vote is reset, the original users can't vote again. On a small site, this makes it even harder to get a consensus of five votes.", "So all wizards get an invitation to Hogwarts at 11... How do they know whom to invite? If a wizard is Muggle-born, then nobody would know about their existence. Or do they register some weird magical stuff being done by them before 11?", "Installing \"firmware-b43-installer\" offline How can I install firmware-b43-installer driver if I can't connect to internet by wire?", "Shapefile projections not matching up in QGIS? To start off with, I'm very new to QGIS. I'm attempting to place a shapefile with locations for 3 substations on a map of Peniche, Portugal. The locations for the substations are given in latitude and longitude coordinates. When I start off by importing the substation shapefile, I make sure that both the layer CRS and project CRS are set to EPSG:32629, which gives each substation point the correct coordinates, however the scale is at 1:1, which is not correct. As soon as I then add a raster map of the region or a shapefile of Portugal using the same CRS the position of the substations also becomes incorrect. I'm sure there's a simple solution I'm not getting, but I've been trying for a while and have had no success. Here's a dropbox link to the files", "Why are all of my appliances becoming energized when ground wire is excluded?", "Find the first occurrence/starting index of the sub-array in C#", "Can a union be initialized in the declaration?", "Difference between block size and cluster size", "Different dependencies for different build profiles Is it possible to have a different set of dependencies in a maven pom.xml file for different profiles? e.g. mvn -P debug mvn -P release I'd like to pick up a different dependency jar file in one profile that has the same class names and different implementations of the same interfaces.", "This girl that I'm friends with and have actually seen in person before, keeps posting [on social media] that she \"loves when the transfer goes through\" and gets $2000-$6000 for free quite often. She said you can make up to $6500 a day. She is not very smart and barely spells correctly. She keeps saying that all she is doing is \"transfers\" and that's it. So many of my friends are feeding into this crap. So I asked her what it is. She basically said \"it's legit\" and asked me for my bank username and password so she could see how much money to deposit into my account. I said no way and left it at that. She also said she is not stealing or doing anything illegal. She is getting her friends free money and I think they're naive. What is she actually doing? Is it illegal? I am sure she is incapable of doing crazy money wiring to different countries. Thank you everyone for answering my question. I am not stupid, I did not give her my information. I knew she was up to something illegal, so thank you for giving me some input on what exactly she is doing. I submitted an anonymous tip to my local sheriff's department. I'm hoping they see it and pursue it, or forward it to the right authorities I.e the FBI or something.", "Is there a command where I can teleport myself to a specific kind of block? I can't find my house and I have specific kind of blocks in it like beacons, enchantment tables, furnaces, stuff like that. I didn't put a bed and I never viewed the coordinates.", "How to get from Heathrow Airport to King's Cross, London? My wife and I will be arriving in London via Heathrow Airport (LHR) and are staying at a hotel near King's Cross station. So, we were wondering what the best (which means fastest but also easiest when carrying two large pieces of luggage and two carry-ons) way to get from LHR to King's Cross? I gather that, with only one changeover, we can take the Tube. However, in the interest of other passengers, we thought it would be best to take a taxi, or maybe a bus? Thoughts?", "What is the best way to remove accents (normalize) in a Python unicode string? I have a Unicode string in Python, and I would like to remove all the accents (diacritics). I found on the web an elegant way to do this (in Java): convert the Unicode string to its long normalized form (with a separate character for letters and diacritics) remove all the characters whose Unicode type is &quot;diacritic&quot;. Do I need to install a library such as pyICU or is this possible with just the Python standard library? And what about python 3? Important note: I would like to avoid code with an explicit mapping from accented characters to their non-accented counterpart.", "PHP - Get rid of notation", "Facebook: Ways to preserve image quality of uploaded images? After uploading an image, Facebook converts it to a new image. Their conversion process introduces artifacts and mottling to the magenta-ish parts of the image. Original image: Facebook's conversion: Are there ways to preserve the original quality of this image and have the image appearance on Facebook reflect more of the original quality?", "Can a multi-core processor run multiple processes at the same time? I understand that a multi-core processor can run multiple threads of the same process at the same time using its different cores. Can it also run multiple processes at the same time(each core running a different process)?", "The left-nav is great - I like it, users who don't can disable it. Perfect world. Now it's stickied it's always there too, which is really useful. When I'm navigating in areas not directly linked to in the left nav and have scrolled down, I often want to re-use the other navigation. This means scrolling up. Which is fine, of course it's how websites work. However, if the left-nav had a \"Top\" link which took the user to the very top of the page it would be great for getting back to specific contextual menus and things that are not linked to in the left-nav. For example, if I'm viewing questions on a specific tag and I've scrolled down, I sometimes want to get back up to the top to remove a tag, or change from \"Latest\" to \"Featured\" etc. Although clicking the \"Questions\" link in the left-nav takes me back to the top, it removes the tag(s) I was searching with. There are other use cases where this would be useful, like long questions and answers (Etc). So I think a \"Top\" link in the left nav would be very useful. I think this is different to the as it doesn't mention the left-nav, and my question is suggesting this idea because we have a good place to put it and it'll be a useful addition to the left-nav." ]
medi_sts_stackexchange_dupe
How to cover my handler class in a test class
How do I increase my code coverage, or why can't I cover these lines?
[ "The sequence of triangular numbers is well known. Consider now the triangular numbers modulo some positive natural number $k$. That is, let $T_{n,k}$ be the remainder of dividing $T_n$ by $k$. For the regular sequence of triangular numbers, we can take as convention $T_n = T_{n, \\infty}$. Question: For all values of $k, i &lt; k$, does there exists some $n$ such that $T_{n, k} = i$", "Compile gvim from sources?", "Blending colors in photoshop and illustrator", "How do I check if an integer is even or odd?", "How to \"find and replace\" in a PDF on OS X?", "valueOf() vs. toString() in Javascript", "Suppose that $A$ is an integral domain. If $a,b$ are element of $A$ and $a$ is a unit, then how come the change of variable $X\\mapsto aX+b$ extends to a unique automorphism of the polynomial ring $A[X]$, which equals the identity map when restricted to $A$? Thanks for any ideas or ways to get started.", "Maximum value of $\\sin A+\\sin B+\\sin C$?", "NullReferenceException in Unity Since many users are facing the NullReferenceException: Object reference not set to an instance of an object error in Unity, I thought that it would be a good idea to gather from multiple source some explanation and ways to fix this error. Symptoms I am getting the error below appearing in my console, what does it mean and how do I fix it? NullReferenceException: Object reference not set to an instance of an object", "Occasionally, I get part of an application lingering behind on my desktop: This is part of a context menu for an application. It is always top-most, meaning that it is always on the screen, and I cannot click on it (it just clicks through it). It has happened before, sometimes with whole windows. It remains on screen even if the application it originated from is no longer running. How do I get rid of it without rebooting?", "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.", "How to input open intervals I want to write open and half-open intervals using the following notation: ]a, b[ ]a, b] ]-∞, b] When writing them just like that in the LaTeX source, the spacing doesn't come out right. For example, for this equation: \\(X = ]-\\frac{π}{2}, +\\frac{π}{2}[\\) the minus sign is typeset as a binary operator. I can solve this by surrounding the whole value in braces, but then the spacing around the equal sign is still not correct. For other combinations of intervals and operators, different spacing inconsistencies arise. What is the correct and easy way to input intervals in order to avoid having to take care of this at all?", "Prevent questions with movie/tv shows/game spoilers from appearing in the hot questions list I've noticed that occasionally \"hot questions\" from SciFi and the Movies &amp; TV network contain major spoilers about the movie/show discussed. The Matrix spoilers: (just now there's something about Cypher betraying Morpheus in the Matrix, which is a big deal for people who haven't seen the movie). I like browsing through those but fear that one day one of these questions will spoil a show I'm excited about and yet to finish Breaking Bad spoilers: (like the finale of Breaking Bad, imagine a question asking why did one character betray another at the end or something). Can users posting such questions be asked to label those with a tag (such as 'spoilers') and then somehow have the network hide those from the \"hot questions\" list? Or possibly format them differently? Similarly, this could apply to the Arcade network too. P.S. Love how this question spikes in popularity around the time GoT starts running again. I swear it should be fairly simple technically to ban questions that have a tag that says 'spoilers' from appearing in the Hot Network Questions. P.P.S. Oh, and with every fresh release of Star Wars (The Last Jedi being the most recent one)! P.P.P.S. Another year, another Game of Thrones, another spike in popularity!", "$\\require{enclose}\\enclose{horizontalstrike}{\\rm Greatest}\\!$ Least prime factor of $n$ is less than square root of $n$, proof I remember reading this somewhere but I cannot locate the proof.", "What's the source of \"shipped\" in a romantic sense?", "Database files that are built using SQL 2008 are not compatable with 2005. Is there a work around?", "As you can see from the image below, I have an issue with the text alignment of extra long chapter names. How can I fix it so that the text will not go further left than the start of the chapter name? That is, I don't want any text to be underneath the \"Appendix A\" part. I added that red line just to show how I'd like it aligned, if possible. Here's my MWE: \\documentclass{book} \\let\\cleardoublepage\\clearpage \\RequirePackage{titletoc} \\RequirePackage{tikz} \\RequirePackage[explicit]{titlesec} \\RequirePackage{DejaVuSansCondensed} \\RequirePackage[normalem]{ulem} \\RequirePackage[ left=2.25in, right=0.75in, top=1.25in, bottom=1.25in, marginparwidth=1.75in, marginparsep=.25in, asymmetric]{geometry} \\renewcommand*\\familydefault{\\sfdefault} % Set default font %%% Table of Contents ---------------------------------------------------------- \\setcounter{tocdepth}{1} % Show only Chapters and Sections %%% Change font/color/layout of TOC \\makeatletter \\titlecontents{chapter}[-2em] {\\color{cyan}\\bfseries\\LARGE\\addvspace{3mm}} {\\makebox[4.4em][r]{\\@chapapp}\\contentslabel{-0.25em}\\hspace{1.9em}} {} {\\hspace{3em}\\contentspage} \\g@addto@macro{\\appendix}{% \\addtocontents{toc}{\\protect\\renewcommand*{\\protect\\@chapapp}{\\protect\\appendixname}}% } \\makeatother \\titlecontents{section}[5.3em] {\\color{cyan}\\large\\itshape\\addvspace{3mm}} {\\contentslabel{0em}\\hspace{3.2em}} {} {\\hspace{3em}\\contentspage} [\\addvspace{0mm}] %%% Chapter Header ---------------------------------------------------------- \\makeatletter \\titleformat{\\chapter} {\\normalfont\\sffamily\\Huge\\scshape} {}{0pt} {\\thispagestyle{empty} % Remove page number on new chapters %\\setcounter{definition}{0} \\begin{tikzpicture}[remember picture,overlay] \\node[yshift=-3cm] at (current page.north west) {\\begin{tikzpicture}[remember picture, overlay] \\draw[fill=cyan] (0,-1) rectangle (25cm,3cm); \\draw[fill=cyan] (0,-24) rectangle (25cm,-25cm); \\ifttl@label% &lt;---------------------- Added condition on \\ifttl@label \\node[anchor=west,xshift=.21\\paperwidth,yshift=-.01\\paperheight,rectangle] {\\color{white}\\LARGE \\MakeUppercase{\\@chapapp} \\Huge\\thechapter}; \\fi% &lt;------------------------------- end condition on \\ifttl@label \\end{tikzpicture} }; \\end{tikzpicture}\\endgraf \\vskip-.7cm \\color{cyan}\\Huge\\raggedright\\leftskip-1cm \\noindent\\MakeUppercase{#1}\\endgraf } \\makeatother \\titlespacing*{\\chapter}{0pt}{10pt}{0pt}{} \\titleformat{\\section}{\\color{cyan}\\itshape\\LARGE}{\\llap{\\thesection} #1}{1em}{}[\\titleline{\\color{cyan}\\titlerule[1pt]}] \\titleformat{\\subsection}{\\color{cyan}\\normalfont\\large}{\\; #1}{1em}{} \\begin{document} \\tableofcontents \\chapter{Turing Machines} \\section{The Turing Machine} \\section{Variations of the Turing Machine} %\\subsection{Non-deterministic Turing Machines} \\section{The Church-Turing Thesis} \\chapter{Decidability} \\section{The Universal Turing Machine} \\appendix \\chapter{ON COMPUTABLE NUMBERS, WITH AN APPLICATION TO THE ENTSCHEIDUNGSPROBLEM} \\end{document}", "Sum of two squares modulo p I have heard somewhere that for all primes $p$, for all $k$, there exist $x, y$ s.t. $x^2 + y^2\\equiv k \\pmod{p}$? I recall that the proof is very elementary, but I can't remember such a proof. How would one prove this? One way is to use Cauchy-Davenport, but I don't think that this is the simplest solution.", "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?", "Compute Galois group of $\\mathbb F_q/\\mathbb F_p$ I have to compute Galois group of $\\mathbb F_q/\\mathbb F_p$ where $q=p^n$. I know already that $\\mathbb F_q/\\mathbb F_p$ is galois, so I don't need to prove it. Moreover, I know that \\begin{align*}\\sigma :\\mathbb F_q&amp;\\longrightarrow \\mathbb F_q\\\\ x&amp;\\longmapsto x^p\\end{align*} is an automorphism that fix elements of $\\mathbb F_p$ and thus $\\sigma \\in Gal(\\mathbb F_q/\\mathbb F_p)$. Now, I know that if $k&lt;p^n$ then $\\sigma ^k(x)=(x^{p})^k=x^{pk}\\neq 1$ and thus $\\sigma $ is of order $p^n$. Now if I can prove that $|Gal(\\mathbb F_q/\\mathbb F_p)|=p^n$, then $Gal(\\mathbb F_q/\\mathbb F_p)=\\left&lt;\\sigma \\right&gt;$ and it would be finish, but I can't prove it since even $X^q-X$ split over $\\mathbb F_q$, theis polynomial is not irreducible, and thus, I can't conclude. So how can I find an irreducible polynomial of degree $q$ that split over $\\mathbb F_q$ ?" ]
medi_sts_stackexchange_dupe
How to open .hprof file
How do I analyze a .hprof file?
[ "Organic yet accurate modeling with the golden spiral Foreword First off, let me say that I am profoundly amazed at the orderliness in nature. If you haven't heard about the Fibonacci sequence (0, 1, 1, 2, 3, 5, 8, 13, ...), you should check it out. This mathematical concept of the Fibonacci numbers can be shaped into a set of squares, where the lengths of the sides of the squares follow the Fibonacci sequence: This is sometimes called a golden ratio. It can be formed into a (golden) spiral. (a.k.a. logarithmic spiral): Application I am looking for ways on how to utilize this concept in Blender. Primarily in organic modeling. The golden spiral is found all throughout nature. From flower seed heads, sea shells, and ram horns to hurricanes and spiral galaxies. My question is: how can I model based off of one or multiple golden spirals? Specifically, I'm interested in modeling a sunflower head like the one in the following image. I'm mostly interested in the point of origin of the individual seeds (not worried about the shape). Does Blender have any features related to this?", "How to Redirect Pages with Query String? I want to Redirect as seen below: https://example.com/p1/p2?sort=p.model&amp;order=ASC&amp;page=2 to https://example.com/p3/p4?sort=p.model&amp;order=ASC&amp;page=2 Also, I have this code in my .htaccess file : RedirectMatch 410 ^/p1/p2&amp; I have used below code, but I just see 410 code for that URL : RewriteRule ^/p1/p2?sort=p.model&amp;order=ASC&amp;page=2$ /p3/p4?sort=p.model&amp;order=ASC&amp;page=2 [QSD, R=301,L] So, I have changed RedirectMatch 410 ^/p1/p2&amp; to Redirect 410 ^/p1/p2&amp; , but this time I have seen 404 Code for my Request URI. What should I do?", "Would it be considered cheating to ask for homework help on the internet, if I openly acknowledge the help received?", "I have an object at a fixed position in 3D space. I would like the camera to circle around it while facing it. I want to path of the camera to be circular in 2D, meaning that it does not move up or down. I need this to be pretty accurate. I don't want to manually set a keyframe every frame for position and rotation. I would like to do this maybe with an expression, not with manual keyframing. I am not sure how to go about this but I think it is going to involve Python as well as some trigonometry.", "Light Presets .exr I would like to install light presets for Blender to automate my lightning in my scenes. I have some .exr files (from Greyscalegorilla) but I don't know how to do it on Blender to make it work. Can someone help me? Thank you", "Is $\\mathbb{Q}(\\sqrt{2}) \\cong \\mathbb{Q}(\\sqrt{3})$?", "Showing the sequence converges to the square root For any $a &gt; 0$, I have to show the sequence $x_{n+1}$ $=$ $ \\frac 12$($x_n+ $ $ \\frac {a} {x_n}$) converges to the square root of $a$ for any $x_1&gt;0$. If I assume the limit exists ( denoted by $x$) then, $x$ $=$ $ \\frac 12$($x+ $ $ \\frac {a} {x}$) can be solved to $x^2 = a$ How could I show that it does exist?", "$\\lfloor x\\rfloor + \\lfloor y\\rfloor \\leq \\lfloor x+y\\rfloor$ for every pair of numbers of $x$ and $y$", "Problems with french accents automatically understood by LaTeX", "How do you set the expiry date or a maximum age in the HTTP headers for static resources in IIS", "Almost universal class I so stuck with a problem of set theory. But first a recursive definition: Define $R_0=\\emptyset$ If $R_\\alpha$ is defined, then $R_{\\alpha+1}=\\mathcal{P}(R_\\alpha)$ (the power set). For a limit ordinal $\\gamma$, if $R_\\alpha$ is defined for all $\\alpha&lt;\\gamma$, then define $R_\\gamma=\\displaystyle\\bigcup_{\\alpha&lt;\\gamma} R_\\alpha$ We define $\\text{BF}=\\displaystyle\\bigcup_{\\alpha\\in\\text{OR}} R_\\alpha$ (the class of well founded sets). Next, my problem Take $A\\subseteq \\text{BF}$ a proper transitive class such that $(A,\\in)\\models\\text{ZF}$. Prove that $A$ is almost universal. I think that the exercise is false because if it was true, then we could conclude that the strongly inaccessible cardinals doesn't exists. This because if $\\kappa$ is strongly inaccessible then $R_\\kappa$ satisfies the hypothesis but $R_\\kappa$ isn't almost universal. I really appreciate any hint or/and suggestion. Edit: my counterexample is wrong. But, then, how can I solve the exercise?", "Can we actually discourage downvotes? Before you disagree with me with a downvote, or just want to be funny, please hear me out. From the : The upvote privilege comes first because that's what you should focus on: pushing great content to the top. Downvoting should be reserved for extreme cases. It's not meant as a substitute for communication and editing. I have honestly never seen a downvote reserved for an extreme case. The process is usually 1) downvote post if it's bad and don't comment. (Not much of a process, is it?) As you stay on the site longer and longer, you develop a carelessness towards downvotes (as I have), but for new users, it's really discouraging. question inspired me to [ask balpha to] make , which is a list of users with 1 rep who have the badge. That's the closest I could get to new users who deleted their own posts after downvotes came in. Don't get me wrong, I know the argument about being nice to new users very well, but I still believe it to be an issue. And since , users are much more inclined to go the lazy route and downvote bad questions. No alternative measures (see below) are taken, for the most part. Personally, I leave a comment and don't downvote until the asker shows no interest in fixing their post. The only other measure taken to discourage downvotes (on answers) is the -1 rep punishment to the downvoter, which is absolutely meaningless and inconsequential anyways. How are we supposed to educate new users when we don't teach them what to do, don't direct them to the FAQ, and discourage them with downvotes right off the bat? Instead of voting down: If the post is spammy or offensive — flag it. If the question is duplicate or off-topic — flag it for moderator attention. If something is wrong, please leave a comment or edit the post to correct it. We claim to discourage downvoting, yet I see answers like that encourage us to downvote first and ask questions later when a question is simply unclear or effortless. It's just an awful chain reaction. A new user comes to the site asking a question, but that doesn't work out too well, so they get downvotes, delete the question in shame, and don't get the help they deserve as a fellow writer of code and programmer. Strip away the quality of the site for a moment: the core functionality of this site, and the only reason I and a lot of other users are (still) on it, is to receive and give help to/from others. I enjoy making sure fellow programmers get the answer they need, because this site has helped me get mine when I needed them. Quality can still be maintained if content is fixed rather than downvoted more often. So can we stop discouraging new users from continuing to use this site and actually start to discourage downvoting? I think we need to encourage effort towards teaching and helping new users understand the system and why their post is bad rather than slapping them in the face with downvotes that they don't know how to interpret anyways. I'm leaving ways we can do this up to others. My first thought was to increase the punishment for downvoting answers and to no longer make question downvotes free, but those wouldn't be well-received, judging by the history of similar suggestions. .", "How do you rotate a two dimensional array? Inspired by , say you have a 4x4 two dimensional array, write a function that rotates it 90 degrees. Raymond links to a solution in pseudo code, but I'd like to see some real world stuff. [1][2][3][4] [5][6][7][8] [9][0][1][2] [3][4][5][6] Becomes: [3][9][5][1] [4][0][6][2] [5][1][7][3] [6][2][8][4] Update: Nick's answer is the most straightforward, but is there a way to do it better than n^2? What if the matrix was 10000x10000?", "I've been trying to solve the following problem: Suppose that $f$ and $f&#39;$ are continuous functions on $\\mathbb{R}$, and that $\\displaystyle\\lim_{x\\to\\infty}f(x)$ and $\\displaystyle\\lim_{x\\to\\infty}f&#39;(x)$ exist. Show that $\\displaystyle\\lim_{x\\to\\infty}f&#39;(x) = 0$. I'm not entirely sure what to do. Since there's not a lot of information given, I guess there isn't very much one can do. I tried using the definition of the derivative and showing that it went to $0$ as $x$ went to $\\infty$ but that didn't really work out. Now I'm thinking I should assume $\\displaystyle\\lim_{x\\to\\infty}f&#39;(x) = L \\neq 0$ and try to get a contradiction, but I'm not sure where the contradiction would come from. Could somebody point me in the right direction (e.g. a certain theorem or property I have to use?) Thanks", "Can the category of chain complexes be realized as a functor category? As the title says, is there some sort of category $\\mathsf{C}$ which can be thought of as the \"walking chain complex\", so that the category of chain complexes in some other category $\\mathsf{A}$ can be realized as $\\mathsf{A}^\\mathsf{C}$ (or perhaps some subcategory thereof)?", "I have two questions for you guys. I really appreciate your help. 1.- Is there a way to rename an Availability Group? 2.- Is there a way to get the T-SQL statements in order to re create a Availability Group in case that I need to drop it and create it again? If there's information that you want me to share, please let me know and I will provide it.", "Can an abstract class have a constructor? Can an abstract class have a constructor? If so, how can it be used and for what purposes?", "Alternative IDE for VB6 and VBA I've been spoiled by Visual studio 2008 and Eclipse and have to do a little maintainence work on a VB6 app. Does anyone know of an alternative/ updated IDE for VB6? A rewrite is not an option I'm just fixing a couple of bugs and it's a big codebase.", "Some time ago, I baked a cake (Sachertorte to be exact). The taste and texture was fine, so my recipe is okay. My biggest issue was the shape. In the middle it was really a lot higher than on the sides. I would like to redo it in the near future, but preferably with a flat(ter) surface. (Especially since I put icing on top and I don't want it to drip off this time.) Anyone knows the cause of my problem, or even better a solution? I think I put enough butter on the side of my springform pan, in case this is an option.", "Is it possible to save `bc` command line history? bash has a handy file .bash_history in which it saves the history of commands and on the next execution of bash the history is populated with saved commands. Is it possible to save bc command history to a file in the same way and then load it on startup so that bc history is preserved? I tried reading and it mentions readline and libedit. From ldd /usr/bin/bc I see mine uses readline and readline has and read_history functions. Is this functionality implemented in bc or to do it I'll need to patch bc?" ]
medi_sts_stackexchange_dupe
Regular Expression for a string that should contain only one asterisk (*)
Learning Regular Expressions
[ "Help with table multicolumn", "Does the Great Old One warlock's telepathy from the Awakened Mind feature take an action? Does the Great Old One warlock's telepathy from the Awakened Mind feature take an action? It doesn't seem too clear to our group and we have basically ruled it as equivalent to talking.", "If i try to update node revision like this: $node = node_revision_load(59); $node-&gt;set('publish_on', null); $node-&gt;save(); or simple save: $node = node_revision_load(59); $node-&gt;save(); I have a PHP memory error, (i have 1gb allocated)", "How to change the catcode in a macro", "How can I set desktop defaults for new users? How can I set up desktop defaults, much like most distributions do, for every new user? (ex. default wallpaper, apps, etc)", "Puzzle: Find largest rectangle (maximal rectangle problem)", "E: dpkg was interrupted... run 'sudo dpkg --configure -a' I was running an upgrade with the apt-get command, and it was taking an exceptionally long time because half way through my ISP hit me in the face with their fair usage policy. After sitting outside &amp; watching the rain for awhile my electronics regained consciousness, so I went back to complete the upgrade and my terminal scolds me with \"E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.\" The last bit of legible info was all this: Installing (ri/RDoc) documention for (stuff and such) ERROR: Could not find a valid gem 'watobo-0.9.8.724.gem' (&gt;= 0) in any repository rm: cannot remove `watobo-0.9.8.724.gem': No such file or directory Setting up metasploit (4.3.0-bt1) ... Upgrading Pre-Existing Installation... /opt/metasploit/postgresql/scripts/ctl.sh : postgresql (pid 1191) already running prosvc is running metasploit is running [*] [*] Attempting to update the Metasploit Framework... [*] So on it goes for miles, talking about gem caches, rubies, &amp; stuff I wish I had. All up until: A lib/gemcache/ruby/1.9.1/gems/state_machine-1.1.2/gemfiles/active_record-2.1.2.gemfile.lock ...and there it has sat, all night. If I stop it, will I still get the dpkg error (on the off chance that I won't), or if so what do I need to to resume using apt-get commands and its Super Cow Powers?", "$1,000 is pronounced as \"one thousand dollars\". Reading from left to right, it seems like it would make more sense to write the value as: 1,000$. This way the pronunciation of the value follows the way it's written. Every other numerical value I can think of places the unit after the value: 1 kg 1 L 1 m, etc... I'm not sure if this question fits in with the rest of the questions on this site. But I'd like to know why currencies are so different from other quantities. Not to mention the need to separate groups of three digits with commas.", "How to cite own unpublished work in text and reference?", "Why does this stream return no element?", "Test statistic for follow up procedure (stepwise step down) of Kruskal Wallis When conducting a Kruskall Wallis test, it is possible to follow up the procedure with a post hoc test, looking for homogeneous subsets. My question is which statistic is used to perform this procedure (e.g., is it Chi-Square, z, or the original H)?", "If we have two circles in the plane described by $(x_1, y_1, r_1)$ and $(x_2, y_2, r_2)$ we can determine if they are completely disjoint by simply: $$(x_1 - x_2)^2 + (y_1 - y_2)^2 &lt; (r_1 + r_2)^2$$ Assume this is not the case, we now want to know if one completely overlaps the other. (That is: if the second circles interior is a subset of the first circles interior.) If $(x_1, y_1) = (x_2, y_2)$ than we can trivially compare radii, so lets assume their centers are distinct. The way I have imagined is to create a parametric equation of the line that connects the two centers: \\begin{align} x_p(t) &amp;= x_1 + t(x_2 - x_1) \\\\ y_p(t) &amp;= y_1 + t(y_2 - y_1) \\end{align} Then we calculate the two line segments (represented as two pairs of t values) where the circles intersect this line. One is a subset of the other if and only if the corresponding circles are subsets of each other. Is there a simpler approach I am overlooking?", "Are any of the alien languages in Star Wars real Earth languages? Are any of the alien languages (other than English and binary) in Star Wars movies or TV shows real Earth languages?", "Lock your computer after 5 minutes of inactivity", "Software for measuring internet traffic? I'm interested in finding a free piece of software for Windows XP &amp; 7 that allows us to measure both incoming and outgoing internet traffic, but not traffic between users of the local network. I live in a shared household with three others, and we're interested to see which of us is using the largest amount of our monthly internet quota. We're all happy to install the necessary software. Any suggestions?", "Capitalization of the word \"the\" in \"the Lord\" / \"The Lord\" Should I capitalize the word \"the\" when speaking of God as \"the/The Lord\"? I praise the Lord. or... I praise The Lord.", "Trackpad not working after update to Ubuntu 14.10 on Dell Inspiron 15R", "Affiliation for a retiree This question is similar to and except that I am a retiree. I intend to submit a paper to a journal without mentioning any affiliation because I am no longer employeed. I have been thinking about a footnote in the paper indicating I am a retiree from my former employer for two reasons: I am receiving pension from the company pension fund and it is a well-known company in U.S. Using their name may make me look good. On the other hand, I feel like it's cheating because I am not their employee anymore.", "A bob hanging in an accelerating train moves backward. What is the force moving it backward? When the train accelerates, the bob would also accelerate with the same magnitude and direction as the train. From the free body diagram, only tension and weight are exerted on the bob. I understand how to relate the \"horizontal component\" of the tension to the acceleration of the bob. It moves \"backward\" and in fact its vertical position is different from when the train is not accelerating. I am not sure whether inertia could explain this situation. What is the force moving it backward/ lifting with the height?", "Where to say thanks? Where is the right place to say \"thanks\" to all those that answered my question? In a comment to my original post, or in a comment to the latest answer or where?" ]
medi_sts_stackexchange_dupe
Is Kylo Ren's fizzling lightsaber blade intended by design?
Why does Kylo Ren's lightsaber look different from normal lightsabers?
[ "How does the telepathy supernatural ability work?", "Why aren't logarithms defined for negative $x$? Given a logarithm is true, if and only if, $y = \\log_b{x}$ and $b^y = x$ (and $x$ and $b$ are positive, and $b$ is not equal to $1$), are true, why aren't logarithms defined for negative numbers? Why can't $b$ be negative? Take $(-2)^3 = -8$ for example. Turning that into a logarithm, we get $3 = \\log_{(-2)}{(-8)}$ which is an invalid equation as $b$ and $x$ are not positive! Why is this?", "TimeSpan to String causing an error", "I'm taking Calculus II next semester so I don't have all the tools from it to back me up but something came up in a discussion this evening that asked me to prove that the following sequence converges. As I'm new to formal math I'm hoping someone can verify my proof, especially step $6$. I must prove that $$\\lim_{n\\to\\infty}P_n=b$$ where $$P_{n+1} = P_n + \\frac{b-P_n}{2}$$ $$P_0 = a$$ and $a,b \\in \\mathbb{R}$ such that $a&gt;b$ My proof goes as follows: We must prove that $$\\lim_{n\\to\\infty}P_n=b$$ That is, $\\forall\\epsilon&gt;0$ there exists a $\\delta$ such that there exists an $n$ satisfying $$n&gt;\\delta \\iff b-P_n&lt;\\epsilon$$ First, let us prove that $P_n$ is bounded by $b$ by contradiction. Let us choose an $i$ such that $P_i &lt; b$ and $P_{i+1}&gt;b$. Then we have $P_{i+1} = P_i + \\Delta P$ where $\\Delta P &gt; b-P_i$. but this is impossible because by the definition of the recurrence $\\Delta P = \\frac{b-P_i}{2} &lt; b-P_i$. Therefore, $P_i$ is bounded from above by $b$. Additionally, it is trivial to show that $P_{i+1} &gt; P_i$. With this in mind, choose an arbitrary $\\epsilon$. We need to show that there exists an $n$ such that $P_n &gt; b-\\epsilon$. Assume the contrary, that $P_n$ is bounded by $\\epsilon$. Using a similar argument to what which was used before, assume $P_n$ is bounded by $\\epsilon$ and then there exists a $P_i$ such that $P_{i+1}\\not &gt; P_i$. But this results in a contradiction with (4) Therefore, $P_n$ is not bounded by $\\epsilon$ and we have proved what we want to prove.", "How do I make my document use the Times font, both for the text and the math? I know that I can put \\usepackage{times} in the preamble in order to use the Times font instead of Computer Modern for my document. But this only affects the text; the math is still typeset using Computer Modern. How can I make Latex use Times also for the math?", "Find all integer solutions to $x^2+4=y^3$.", "Getting \"'file' is different from the same file on the system\" when I attempt to update through synaptic Encountered an error while updating through Synaptic Manager. Subsequent updates gave the error at the bottom of the output. I'm a noob so any help is appreciated. al@al:~$ sudo apt-get -f upgrade Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following NEW packages will be installed: libjack-jackd2-0:i386 The following packages have been kept back: linux-headers-generic skype 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded. Need to get 0 B/202 kB of archives. After this operation, 493 kB of additional disk space will be used. Do you want to continue [Y/n]? y (Reading database ... 310056 files and directories currently installed.) Unpacking libjack-jackd2-0:i386 (from .../libjack-jackd2-0_1.9.8~dfsg.2-1precise1_i386.deb) ... dpkg: error processing /var/cache/apt/archives/libjack-jackd2-0_1.9.8~dfsg.2-1precise1_i386.deb (--unpack): './usr/share/doc/libjack-jackd2-0/buildinfo.gz' is different from the same file on the system dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/libjack-jackd2-0_1.9.8~dfsg.2-1precise1_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)", "I thought it was The Tommyknockers by Stephen King, but after a check with Wikipedia, it appears that's not the case. What I remember about the story (a TV movie I think, but definitely based on a book) was that the world is created anew every night, and that the old, used up, Earth was eaten nightly by some scary creatures. The major plot point involved some protagonists not getting onto the new world at midnight, and having to escape from the monsters that were eating up yesterday's planet. Does this ring a bell for anyone? I'm finding it very hard to Google for.", "What is the current state of apple device (iPhone, iPod, etc.) support? What ubuntu applications provide support? (guides, how to's, status) Also, specifically, details on support for syncing music to iPhone's and iPod's with the latest OS version: Can you sync music to apple devices using >iOS4? (iPhone &amp; iPod) What applications allow you to do this and how? (guides, how to's, status) What has already been established is: Apple does not support Linux and has no plans to. provides some support, however it currently does not support music/video synchronization with devices &gt;iOS4. Go to and scroll to the section titled \"\" to see if your device version is supported.", "What's the best way to season a cast iron skillet? I just purchased a new cast iron skillet. What's the best way to season it? And if I need to re-season an old pan, is the process any different?", "What is a good data plan for Internet surfing in northern Italy? I've checked the webpages of some their providers, but franly, just like in the case of those in my own language, I literally cannot find my way around them. So if you wouldn't mind sharing a word of two or advice. I'm looking for a good solution for mobile internet surfing in northern Italy, that can be connected to a laptop (you know, that usb stick with a SIM card inside kind of thing). 15 Gb or so at some decent speed. Can you perhaps give a recommendation or two of what to get? Edit: Just to define what I'm looking for exactly. A data plan of 15 Gb with an internet key (usb stick into which a SMS card goes) that you plug into a laptop. Preferably non-contractual, so I can cancel when I leave. I am not interested in surfing on my mobile phone since due to size I still prefer the smaller Nokia-like models for calls (smaller to carry) - no internet on them.", "How can I change GNOME Shell theme?", "Does it just vanish into space leaving nothing behind or does it expel some material? Also, talking more about black holes, as far as I understand the term \"temperature\", it is defined by the amount of kinetic energy of the particles of a body and from what I have read, there are no particles inside a black hole, I know that you can find the temperature of a black hole by analyzing its Hawking radiation but I cant really understand how the term \"temperature\" can be applied to a black hole. Does it mean that whatever is that it is inside a black hole has kinetic energy? Have physicist already experienced the death of any regular black hole (by regular I mean space-sized black holes not micro ones created in labs)? Also, where is the Hawking radiation form? Because if it is released by the black hole I bet it must have formed outside the event horizon, but how exactly?", "What is the tolerable magnetic field (in Tesla) for a hard disk? I was wondering what would be the safest magnetic field for a hard drive so that the data inside it is safe and not wiped off? For example I have a 2.1 home theatre system and when I take my android phone near it to check the magnetic field range it gives me a reading of 1000 micro Tesla. Would that be considered safe for a nearby hard disk?", "My actual WhatsApp back total size is 474Mb but when I go to I cloud back up it is showing 10GB, how is it possible? I mean I have deleted all media files from my WhatsApp and in WhatsApp application the total space is 474MB and also in iCloud storage it is 474MB, but when I entered further in to Backups and then choose my phone, it shows total backup size is 14GB and WhatsApp itself is taking 10GB. Can someone help with this?", "How can one change an entire document to use bold font?", "What level are spells cast at if a warlock multiclasses as another caster?", "I was reading a textbook. I found that it was mentioned the speed of sound increases with increase in temperature. But sound is a mechanical wave, and it travels faster when molecules are closer. But an increase in temperature will draw molecules away from each other, and then accordingly the speed of sound should be slower. How is it possible that the speed of sound increases if temperature increases? What is the relation of speed of sound and temperature?", "The ideal generated by $2$ and $ x$ in $\\mathbb{Z}[x]$", "I have a folder on my desktop which is named \"..\" (which itself contains subfolders with an empty name). The folder can't be deleted the usual ways, even not when using the CLI. Does anyone know how I can remove this folder on Windows Vista 64-bit? Renaming does not work, either (obviously). This is what \"dir /x\" echoes: 09.10.2009 15:04 &lt;DIR&gt; . 09.10.2009 15:04 &lt;DIR&gt; .. 08.03.2007 11:18 &lt;DIR&gt; cgi-bin 0 Datei(en), 0 Bytes 3 Verzeichnis(se), 45.866.037.248 Bytes frei" ]
medi_sts_stackexchange_dupe
About supported devices under ubuntu touch
What hardware does Ubuntu Touch support?
[ "Logistic regression vs. LDA as two-class classifiers", "Recording claimable expenses in GnuCash", "Understanding the -exec option of `find` I find myself constantly looking up the syntax of find . -name \"FILENAME\" -exec rm {} \\; mainly because I don't see how exactly the -exec part works. What is the meaning of the braces, the backslash and the semicolon? Are there other use cases for that syntax?", "Downgrading from OS X 10.9.2 to 10.9", "When is the order of convergence of Newton-Raphson greater than 2? If some function $f$ has a simple root at $x_*$ then I know that the order of convergence of the Newton-Raphson iteration is at least 2. But when is this order strictly greater than 2?", "How can I dual boot Windows and Ubuntu? I currently have Windows 7 on my computer and I want to install Ubuntu alongside Windows safely. Could someone please provide clear instructions?", "String manipulation with & or + in VB.NET", "Since 17.10 I got familiar with Wayland and I really need the per-monitor-scaling! How can I start a wayland session after dist-upgrade to Bionic? There is no option in GDM available out-of-the-box. I do not see what is described as The Wayland session will still be available, pre-installed", "How can I add a folder to the launcher for quick access to it. In this particular case I wish to drag it to the launcher.", "I am trying to prove the following. Proposition Let $g$ be a Lie algebra such that the first derived algebra $Dg$ is a proper ideal of $g$. Consider the quotient $g/D^1 g$, and show that the preimage of any codimension 1 subspace is an ideal, and has codimension 1. I could show that the preimage is indeed an ideal, but I need some help with the part about the dimensions: So suppose that $\\phi: x \\mapsto [x]$ is the quotient projection. And write $[h] + Dg$ for a codimension 1 subspace of $g$ (here $h\\subset g$). Then the preimage of this subspace is just the linear span $h+Dg\\leq g$. Let $y+z \\in h+Dg$ with $y\\in h$ and $z\\in Dg$. Let $x\\in g$. We want to show that $[x, y+z]\\in h$, ie that $h + Dg \\lhd g$. We can write $x$ as $x_0+x_1$ for $x_0 \\in Dg$, $x_1\\not\\in Dg$. Then $$[x,y+z] = [x_0, y+z] + [x_1, y] + [x_1,z] \\in h + Dg$$ The inclusion follows since $Dg$ is an ideal so the first and third terms belong $Dg$; and $[x_1, y] \\in D_g$, as $g/Dg$ is abelian.", "After installing Ubuntu 12.04 LTS on my HP Folio 13 I cannot get wireless to work. My kernel is 3.8.0-29-generic and my wireless module is a Broadcom BCM4313. After running rfkill list all: 0: hp-wifi: Wireless LAN Soft blocked: no Hard blocked: no 1: hp-bluetooth: Bluetooth Soft blocked: no Hard blocked: no 2: hci0: Bluetooth Soft blocked: no Hard blocked: no The wired connection works fine. The driver activation for Broadcom STA wireless driver fails every time. in the log it says FATAL: Module wl not found. FATAL: Error running install command for wl After running lspci -nnk | grep -iEA3 \"(wireless|network|wlan)\": 02:00.0 Network controller [0280]: Broadcom Corporation BCM4313 802.11bgn Wireless Network Adapter [14e4:4727] (rev 01) Subsystem: Hewlett-Packard Company Device [103c:1795] Kernel modules: bcma 03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader [10ec:5209] (rev 01) I have also tried this method and it did not work: .", "Left/Right across multi-line equation I have a multi-line equation that I want to have matching sized parentheses. The advice I read online was to use \\left( equation \\right. \\\\ left. rest-of-equation \\right) . However, this syntax leaves first half of the equation unaware of what is in the second half. For example, if you include a square root term after the break, the second parenthesis will be larger than the opening parenthesis. When you are using the aligned environment to split a long equation this can look somewhat offputting. Compare the top equation to the bottom one. The parentheses match in size for the bottom equation, but the left hand parentheses for the top one is noticeably smaller. Top Code: \\begin{aligned}[t] \\gamma_{\\text{u}} + \\frac{1}{108} \\left(57\\gamma_{\\text{er}} \\right. &amp;+ 38\\gamma_{\\text{se}}\\\\ &amp; {}\\pm \\left.\\sqrt{2601 \\gamma_{\\text{er}}^2 + 3648 \\gamma_{\\text{er}}\\gamma_{\\text{se}} + 1444 \\gamma_{\\text{se}}^2} \\right) \\end{aligned} Bottom Code: \\begin{aligned}[t] \\gamma_{\\text{u}} + \\frac{1}{16} \\left(9\\gamma_{\\text{er}} + 6\\gamma_{\\text{se}} \\pm \\sqrt{49 \\gamma_{\\text{er}}^2 + 76 \\gamma_{\\text{er}}\\gamma_{\\text{se}} + 36 \\gamma_{\\text{se}}^2} \\right) \\end{aligned}", "How do you factorise $x^3z - x^3y - y^3z + yz^3 + xy^3 - xz^3$? 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!", "When I press Ctrl+Alt+T the Terminal opens after around 30 seconds. That's pretty annoying. If I open it with Alt+F2 and enter gnome-terminal the window appears instantly as usual. I'm using Ubuntu 16.04 with gnome3. Thank you for your help in advance!", "How can I take shallow depth of field photos with a point-and-shoot camera?", "Why does `type which` say that `which is hashed`?", "Kids' fantasy movie from the 80s or 90s?", "Continuity $\\iff$ Preimage is closed whenever set is closed I'm trying to do the following: Prove that a function $f : S\\rightarrow T$ between two topological spaces is continuous iff $f^{-1}(C)$ is closed whenever $C\\subset T$ is closed. To show that the closed-set relationship implies continuity, notice that $T-C$ is open. The preimage of this open set is $f^{-1}\\left(T-C\\right)=S-f^{-1}(C)$, which is open by assumption ($f^{-1}(C)$ is closed). Of course, any open set $G\\subset T$ can be written in the form $T-C$ by letting $C=T-G$. Thus, for every open set $G\\subset T$, the preimage is open. To show the implication in the other way, consider a closed set $C\\subset T$. $T-C$ is open, so $f^{-1}(T-C)=S-f^{-1}(C)$ is open as well ($f$ is continuous), which means that $f^{-1}(C)$ is closed.", "I am trying to do a clean install of the octave3.2 package. To do this, I removed it, then tried to reinstall it. When I reinstalled, an error occurred. It could be a bug in the package, but I want to make sure I have everything removed so that I can do a clean install. Is it enough to do this? sudo apt-get --purge remove octave3.2", "80s-90s anime (movie or series) in which an armored girl exchanges age with a dying man on a beach" ]
medi_sts_stackexchange_dupe
C++: Variable initialization using x{0}
Why is list initialization (using curly braces) better than the alternatives?
[ "My character has a bite attack from his race. What happens if he gains another bite attack from class abilities or spells? Does the damage increase? Can he make more than one attack? Or is it simply that only the better version applies? I would prefer answers from a Pathfinder context but 3.5e is also acceptable.", "I don't believe it's true that all submodules of a finitely generated free module are free just based on results from google. Is there a canonical simple example of a finitely generated free module with a submodule that is not free?", "How do I stop Illustrator from snapping to pixel increments? I am working in Illustrator (15.0.2 (CS5) or 16.0.0 (CS6)) and when I try to move objects small distances, they snap to the nearest two pixels on some invisible grid. I can't find anything in the preferences. Here are some screen shots:", "Why did Dumbledore 'put on' the Resurrection Stone (Ring)?", "Using the definite article before a country/state name The Punjab is a rich state. Is it correct to use the before Punjab?", "Some images shown outside of preview rectange Some images shown outside of preview rectange before uploading, eg:", "Why were the villagers and the axe-wielding hitman brothers crawling towards a shrine? At the start of Season 3 Breaking Bad, we see a bunch of villagers and Tuco's cousins crawling on their bellies towards some shrine where they put a drawing of Walter White as some kind of \"offering\". Why were the villagers and the cousins crawling towards this shrine?", "I have some programs running on start-up like . UAC prompts every time the Windows starts. How can I set a program to make sure that no intervening prompt would appear during start-up?", "Space between 2 paths in Illustrator How can I align 2 paths perfectly? No matter what I do I get a little space (gap between the 2 paths I create, and they are straight lines not as I saw in other questions with pixel problems) An example: Between every triangle is a little space, like in the example. It isn't obvious and it doesn't bother, but if I use the image (as an SVG or something) it is really obvious.", "Let $(X,\\mathcal{M},\\mu)$ be a measure space and $\\{f\\}$ be a sequence of functions on $X$, each of which is integrable over $X$. Show that $\\{f_n\\}$ is uniformly integrable if and only if for each $\\varepsilon \\gt 0$, there is a $\\delta \\gt 0$ such that for any natural number $n$ and measurable subset $E$ of $X$, if $\\mu(E) \\lt \\delta$, $$ \\left|\\int_E f_n~d\\mu\\right| \\lt \\epsilon.$$ I think one direction $(\\Rightarrow)$ is clear. Since $f_n$ being uniformly integrable imply that for every $\\varepsilon\\gt 0,~\\exists \\delta \\gt 0$ such that for any $E\\in \\mathcal{M},~\\mu(E)\\lt \\delta$, $\\int_E |f_n|~d\\mu$ for every natural $n$. But then $$ \\left|\\int_E f_n~d\\mu\\right|\\le \\int_E|f_n|~d\\mu \\lt \\varepsilon.$$ Any suggestions for the other direction? Edit: Following Davide's suggestions, I have $$ \\begin{align*} \\int_E |f_n|~d\\mu &amp; \\le \\int_{E\\cap [f_n \\ge 0]} f_n~d\\mu + \\int_{E\\cap [f_n \\lt 0]} (-f_n)~d\\mu\\\\ &amp; = \\left| \\int_{E\\cap [f_n \\ge 0]} f_n~d\\mu \\right| + \\left| \\int_{E\\cap [f_n \\lt 0]}f_n~d\\mu \\right| \\\\ &amp; \\lt \\varepsilon + \\varepsilon = 2\\varepsilon. \\end{align*} $$", "Please provide a way to download SEDE data via an API I recently suggested on the Stack Apps site that , and it was suggested I reference the feature request here, for visibility. My use case is a query that the API does not support, so I thought it would be interesting to get it programmatically from SEDE instead. I wonder if this feature might be of interest to others here? outlines the current ways that SE data is available via various APIs and UIs. I wonder if my use case (retrieving revisions filtered by user) might have been supported by OData, since April of this year. This question has sort-of , though that was not an explicit feature request, and is now rather out of date. It would be good to find out what the current views are on this topic, and indeed whether there is much demand. My use-case does not urgently require this, since I can use public SE screen scraping or SEDE CSV downloading. From reading around the SE Meta network, both of these approaches seem to be tolerated, as long as it is done with careful regard to frequency and bandwidth.", "Why should I use a private variable in a property accessor?", "i am making a boss battle for my minecraft adventure map, and using a mob spawned with commands as the boss. When the mob gets hit, some command blocks will give the player a potion effect, but I can't figure out how to activate the command block when the mob gets hit. I am in the latest snapshot (16w03a). please help me (the person who answers my question will be given credit for it in my map)", "We're injecting records into a journey using a Salesforce data event. I also want to advance the people in the journey based on updates that happen in Salesforce (e.g., as an Opportunity record advances through the sales process), but I can't figure out how to do that. I've read all the documentation I can find, but there doesn't seem to be a Journey Builder widget that will wait to be prompted by an event in Salesforce before continuing someone on a journey. At the moment, I'm completely stuck. I'd greatly appreciate any advice or information on how I can make journeys event-driven in this way. Thanks very much!", "What statistical test to use for discrete predictor and response variables? I'm doing a statistical analysis of a model for college. It's modelling a bear catching fish and I'm asking will the amount of time taken to digest the fish have an effect on the amount of fish caught? (stupid question I know!) So the predictor variable is the amount of fish the bear can eat before it needs to digest and the response variable is the amount of fish it catches. The predictors varies between 1 and 30 in integers and the response is also in integers. I repeated each level of the predictor 5 times creating a sample size of 150 altogether. I was thinking of just using a simple correlation test such as cor.test in R, but I've read online that this is for continuous data. Does that matter or would this test still be appropriate? Thanks a million, Eamon", "Boot failure : No DEFAULT or UI configuration directive found!", "Most efficient way to check for DBNull and then assign to a variable?", "What's the best solution to check a users country?", "I am new to Drupal. I have been trying to make a slide show on the front page but I am facing an issue on how to upload images of my choice in the slide show. I.e. the images that I have in my computers folder. I have created a view and placed an image field in it, everything is set. I have also added the block to the main page content. All I can see on the front page is the slider title obviously since i have not been able to add any images. Can any body tell me how to set my own images to the slider? I don't want to use fixer slider. I have used views slide show and some other js files for cycle. Edit: Here is a screenprint of the view I defiined so far:", "How to extract a number from a string Im a newbie in Apex and im developing a page using Visualforce. My string format is always like this \"xx-xx-999999\". In this format I need to get only the integer. For example the string is \"RO-W1-445567\". I want to get only the integer 445567 in the string. Can someone willing to share a piece of apex code in my problem. Your help is vey much appreciated. Thanks in advance! Ferdie Banu" ]
medi_sts_stackexchange_dupe
Does a simulacrum'd creature's statblock include its personality and knowledge/memories?
How do simulacra behave?
[ "Recurrence relation for number of ternary strings that contain two consecutive zeros The question is: Find a recurrence relation for number of ternary strings of length n that contain two consecutive zeros. I know for ternary strings with length one, there are 0. For a length of 2, there is just 1 (00), and for a length of 3, there are 5 (000,001,002,100,200). I did a similar problem, finding a relation for the number of bit strings of length n with two consecutive zeros: $$a_n = a_{n-1} + a_{n-2} + 2^{n-2}$$ Since you can add \"1\" to the end of all the $a_{n-1}$ strings, \"10\" to all the $a_{n-2}$ strings, and \"00\" any string of size $n-2$. For the ternary string problem, I'm pretty sure you would replace the $2^{n-2}$ with $3^{n-2}$, but confused about the other terms of the relation. My guess is that it would have the coefficient $2$ in front of the other terms, since you can add either $1$ or $2$ to the end of $a_{n-1}$ and either $01$ or $02$ at the end of $a_{n-1}$. So I believe the answer for the relation is: $$a_n = 2a_{n-1} + 2a_{n-2} + 3^{n-2}$$ How does that look?", "Let $f:\\mathbb{R}\\longrightarrow \\mathbb{R}$ a differentiable function such that $f'(x)=0$ for all $x\\in\\mathbb{Q}$ Let $f:\\mathbb{R}\\longrightarrow \\mathbb{R}$ a differentiable function such that $f'(x)=0$ for all $x\\in\\mathbb{Q}.$ $f$ is a constant function?", "Object created by joining several objects doesn't rotate uniformly consistently Aloha. I'm experiencing a similar problem I had with a prior posting with another object I created by joining 3 objects that doesn't rotate uniformly consistently. I tried clearing and applying rotation of individual objects and joined objects to no avail. I have as well as object by itself in blend file if you need to see them Any ideas? Thanks.", "How can I manage the \"Open with Explorer\" button based on user permissions?", "I write some choice questions into beamer frame, after some research, here is my code: \\documentclass[aspectratio=169]{beamer} \\usetheme{Berkeley} \\usepackage{tasks,CJK} \\begin{document} \\begin{CJK*}{utf8}{bsmi} \\begin{frame} \\transwipe 1.Which one you want to choose? \\begin{tasks}[counter-format=tsk[A].,debug=true](4) \\task A \\task B \\task C \\task D \\end{tasks} \\end{frame} \\end{CJK*} \\end{document} output with pdflatex: But I don't want the D choice goto the second line, I want them stay in one line, what should I do?", "I saw the sentence like Donald Trump to run for president next month. in the newspaper on the internet. But I don't know why we have to use to instead of will. Is there any rule I don't know? Can anyone tell me the reason why we should use to in the news?", "Data inconsistency prohibition if a table refers to another via two many-to-many relationships I have following database design (by =&gt; foreign key constraints are depicted): Company[id] CompanyRealm[id, company_id=>Company.id]many2many Project[id, company_id=>Company.id] ProjectRealm[id, project_id=>Project.id, company_realm_id=>CompanyRealm.id]many2many Problem is that provided database design allows inconsistent data. For example: Company1(id=1) Company2(id=2) CompanyRealm(id=11, company_id=1) Project(id=33, company_id=2) ProjectRealm(id=44, project_id=33, company_realm_id=11) (Company can have many Realms, Project belong to Company and may concern any number of company's Realms) ProjectRealm refers to two different companies: Company1 (via CompanyRealm); and Company2 (via Project). Is something wrong with my DB design? If yes - which prescriptions are violated? If no - how to prevent incorrect data insertion (via constraint? trigger with exception?)", "Beamer: bold math no longer working", "I can't find a definitive answer for this. As far as I know, you can't have multiple __init__ functions in a Python class. So how do I solve this problem? Suppose I have a class called Cheese with the number_of_holes property. How can I have two ways of creating cheese objects... One that takes a number of holes like this: parmesan = Cheese(num_holes = 15) And one that takes no arguments and just randomizes the number_of_holes property: gouda = Cheese() I can think of only one way to do this, but this seems clunky: class Cheese(): def __init__(self, num_holes = 0): if (num_holes == 0): # Randomize number_of_holes else: number_of_holes = num_holes What do you say? Is there another way?", "is it possible to display a Google Earth map INSIDE Excel? Is there any way, using the scripting available to Excel 2007 to display a Google Earth map inside a sheet? I've used Excel to house the data that I've then gone and generated a KML file to load into Google Earth, but now they want to see a pretty little cell with a client address mapped out in Excel directly to pretty up the presentation.", "Current sensing nA to mA I need to sense the current of a target through various periods of its on/sleep/off state and then need to send this data back to another interface MCU to read out the value. They will be both on the same board, powered by 5&nbsp;V USB. However these are the requirements I have: 5&nbsp;V USB PSU Must be able to sense currents in the range of nA to mA with high accuracy/precision. (I figure 1&nbsp;nA to 500&nbsp;mA) Only measure the current of the target MCU and not the interface. Must output maximum 3.3&nbsp;V interface MCU I have looked at available options and current sense amplifiers by Texas Instruments can't sense nA due to higher bias currents. So therefore I feel I would need a precision amplifier. However I am stuck on how to proceed with this because, I need to somehow have a automatic dynamic current range and I am fairly new to current sensing and am not really sure on all the specifics.", "Is there evidence that adding salt to water prior to boiling can damage a stainless steel pan?", "How to remove uninstalled wine app icons from unity dash? I installed (for Windows) using wine but turns out LAN Messenger is also available for linux as well. So.. I uninstalled LAN Messenger from wine. I also removed wine. deleted the .wine directory. after that sudo apt-get autoremove and sudo apt-get autoclean. then I installed LAN Messenger using dpkg -i pkgname.deb and it installed successfully. The problem is that now I get this in dash: Any Help is highly appreciated. [NOTE] I am using ubuntu 12.10", "Thermistor control of peltier voltage with Arduino (for DSLR chill box project) I am mildly familiar with electronics, mostly from playing around with electronics kits as a kid. That was a long time ago, though, maybe as much as 20 years ago. I am currently working on a cold or \"chill\" box for my Canon 5D III, so I can keep it's temperature very low, and very consistent, for doing low noise astrophotography. I have a general design for the box, and I'm using a single 12v 5.8amp peltier (TEC) attached directly to a copper box for cooling. The box is currently insulated with extruded foam board, and the hot plate of the peltier will be cooled with a water cooler from an old computer kit. I'm getting more ambitious with my project, however. I want thermal regulation, to maintain a consistent temperature, and I'd eventually like to get into two-stage cooling to achieve a Delta-T of closer to -55-60°C relative to ambient (the chill box will be cooling the camera, so the sensor will be warmer, probably by as much as 10°C, than the temperature of the copper plating in the box itself.) I want to have two primary modes: Rapid cooling mode, operating the peltier at 12v or higher (max voltage is 15.4v) to quickly cool the box down to the target temperature. Regulated maintenance mode, operating the peltier at lower voltages to maintain a consistent temperature, above the maximum potential cooling the peltier can supply (for headroom as the voltage is adjusted in response to small temperature fluctuations). I'd like to maintain temperature within 2-3°C if possible. I've looked into Arduino (and I've messed with similar things in the past), and it seems perfectly ideal for the task, with one exception: It doesn't seem to handle the kind of current I need top power a single peltier, and certainly not two. I've done some research on how I might achieve this, but I'm falling up short on my understanding of the electronics involved. I've found a two-relay \"shield\" for Arduino Uno that can power two devices with up to 8amps each, and up to 30v each. That can be controlled from the Arduino itself. It seems the design of a relay uses a magnetic coil to actuate a switch that allows an independent power source to be used to power components like a motor, solenoid, or in my case a peltier. I haven't found any way of actually regulating the voltage of the relay with the Arduino, however. So I kept investigating, and I came across some schematics that showed how to use transistors, specific mosfets to be exact, where the base was connected to an Arduino output, and the collector/emitter were connected to the power loop of whatever needed to be powered at a higher voltage (not sure about current here), and this still allowed control of the voltage. It's been so long since I messed with any of these components, my memory is extremely rough, and I'm not quite connecting how it all works. I'd be happy with some references to complete examples of powering, and controlling the voltage of, high powered devices via an Arduino, but if anyone here can explain how all this works and why, that would be most ideal. I'd rather understand the concepts, so I can reapply them later, than just have a pattern to follow.", "Dollar cost averaging - Should I still do it if I have a large pile of cash now? I currently have a large pile of cash savings ($240,000) which I really should have been investing all this time, but the past is past and no point dwelling on it. I am currently 38 years old (2 kids. Wife who is also a high earner - $100,000), with a high salary ($150,000). I have read \"The Intelligent Investor\" and am really sold on dollar cost averaging as a strategy, using the index funds offered by Vanguard. My current dilemma is what to do with the cash I already have. My current plan is to still follow the dollar cost averaging and slowly move it into vanguard over a period of 4 years (~$5000 per month). While leaving the remaining parts of the cash in term deposits. So $50,000 in a 3 year term deposit at 3%, $50,000 in a 2 year term deposit at 2.8% etc. But in someways it feels overly conservative. Should I just move all the money now? Or perhaps in a shorter time frame (3 years? 2 years? 1 year?). There are a few other questions on the site similar to mine, but they are from 2013/2014 etc. Given that currently the stock market is at a high and there is a lot of economic uncertainty on the horizon, putting everything in the stock/bond market at once now seems like a risky move. And it seems to violate the principle of dollar cost averaging. Or am I violating dollar cost averaging by trying to \"time the market\" by looking at it's current value? Reading this section seems to indicate that I should just invest everything now. But the first paragraph also seems to suggest giving more weight to that advice if the market was trending upwards (Which I am not certain the current market is/will be for long). PS: My current investment horizon is long. Basically retirement, about 20 years from now.", "How can I make a rounded indentation on a cylinder? I'm trying to do a cosmetic bottle in blender but i don't how to do this thing in the image. How to do this round edge on the cap. Can anyone help me?", "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", "I have: &lt;?php $file=fopen(date(\"Y-m-d\").\".txt\",\"r+\") or exit(\"Unable to open file!\"); if ($_POST[\"lastname\"] &lt;&gt; \"\") { fwrite($file,$_POST[\"lastname\"].\"\\n\"); } fclose($file); ?&gt; but it overwrites the beginning of the file. How do I make it insert?", "I received a mail today from Academia.edu (a site I wasn't previously aware of), asking me to confirm that I co-authored a paper with a colleague. Having looked into it a little it sounds like it might be a useful site - the idea of a \"social network for scientists\" is one I've seen the need for in the past. However, partly due to bad experiences with the seemingly similar ResearchGate, I'm also skeptical.* Without signing up for an academia.edu account the site doesn't offer much information, so I would like the following information: What specific features does academia.edu offer to its users? Is it genuinely useful for any of the following purposes (each of which seems genuinely needed) as a platform for networking with academics for discovering relevant research as an effective system for post-publication peer review for organising references among a small team of people working on a project Will it send out mails to my colleagues without my express and explicit permission? (I.e. are the mails I received today the result of a deliberate action by my colleague, who is aware that I will be emailed and wishes me to join the site; or are they essentially spam from a social networking site aggressively trying to expand its user base?) It's clear from its that it's a private, venture-capital funded company. What is its business model? In short, is this a site that has some genuine utility for academics, or should I just ignore it? *I've never signed up for ResearchGate but I regularly receive spam from it purporting to be from my colleagues, who aren't aware that it's being sent on their behalf. I would be mortified if my senior colleagues received such mails claiming to be from me, so I won't touch it with a barge pole.", "Assigning values to divergent series I have been looking at divergent series on wikipedia and other sources and it seems people give finite \"values\" to specific ones. I understand that these values sometimes reflect the algebraic properties of the series in question, but do not actually represent what the series converges to, which is infinity. Why is it usefull to assign values to divergent series? The only theory I could come up with, is this: Say you have 2 divergent series, series' A and B, and you assign each a value, Series ($A= \\sum_{n=0}^\\infty a_n$), which I assigned the value Q and series ($B= \\sum_{n=0}^\\infty b_n$ ), which I assigned the value P But it just so happens that series $C=A-B= \\sum_{n=0}^\\infty (a_n-b_n)$ converges. Could that imply that the actual value of series $C$ is the difference of the two assigned values to $A$ and $B$, that is $\\sum_{n=0}^\\infty (a_n-b_n)=Q-P$ ? If so, then that would make some sense to me, as to why people sometimes assign values to divergent series." ]
medi_sts_stackexchange_dupe
How To Enable a User in SQL Server
How do you reset the sa password?
[ "Is the phrase \"for free\" correct?", "I recently saw a question about a problem (or possible bug) with some product on Stack Overflow. At first, I wanted to suggest that the asker post his question to that product's support forum. When searching for the URL of that forum, I noticed that the product developer closed its support forums and now advises users to post all their questions on Stack Overflow instead. Is this within the intended use cases of Stack Overflow, or is this abuse?", "As you can see, the off-topic page isn&#39;t quite right... Could this (minor) issue be fixed?", "Meaning of backtick in floating-point literal", "I just wrote an answer to , which was trying to find numeric strings with or without commas (e.g. 1,234,567.89). I wanted to be thorough because I've seen this problem a lot, both on SO and in real-world code. When I finished, I found 7 other new answers waiting for me, mostly variations on each other. Which would be fine, except for one thing: They're garbage answers. Unless I'm severely mistaken, every answer but mine (so far) is deeply flawed, and I want to downvote all of them. Yeah, I'm a stickler on regex, but IMHO if your pattern lets stuff like  ...,.,,.,,..9 or even ... pass as \"numeric input,\" then you've failed to meet even the bare minimum requirements. Enough venting. The reason I'm whining to Meta about this is that I'm about to do something that'll REALLY look like tactical downvoting, and I'm mildly concerned about the consequences. If I answer a question and then rain downvotes on every competing answer, will I get flagged for abuse? That would certainly seem like suspicious behavior to me. More of an opinion question: At what point does a semi-correct answer deserve a downvote? Obviously, if it were just a typo, I'd edit it myself. Where's the line between \"close enough\" and \"this answer sucks?\" Basically, is it just me? You've seen the question; am I right that these answers deserve downvotes? Seven people thought that [0-9,.]+ was good enough to declare something a number, so why am I the only one who doesn't? Note: I found some related questions, but nothing that seemed like a duplicate: - More of an etiquette question, plus the voter hadn't posted his own answer. - I guess this pretty much covers my second question. Also, as some have noted, my answer ended up pretty long and thorough. I put in a lot of effort because, with all this talk about how the other answers sucked, I wanted to be extra sure mine didn't. I don't expect pages of detail in a normal SO answer.", "Find $\\lim_{n \\to \\infty} \\left[\\frac{(n+1)^{n + 1}}{n^n} - \\frac{n^{n}}{(n-1)^{n-1}} \\right]$ (a question asked at trivia)", "How to select records with maximum values in two columns?", "So I have a 2010 15\" macbook pro (MBP6,1) and I replaced the optical drive with a hard disk. I wanted to install windows 7 on the hard disk with boot camp with a USB and ISO image. After searching I found that I need to modify my plist.info to allow my boot camp to create a bootable USB (since normally it doesn't have the option to create the USB for my model since it came with a disk drive). After doing so and seemingly having a fine (but long) install process onto the USB. I told boot camp how much space to partition windows on and hit install. Then the computer restarted. When it came back up it was stuck on a grey apple logo screen forever (I waited 15 minutes to ensure it wasn't just \"thinking\"). I force restarted and the next time it turned on it got stuck on the grey logo for a bit but then proceeded to go to a black screen that said \" No bootable device - please insert a bootable device and hit any key\". I tried hitting keys with he USB in but nothing happened. I had to eventually remove the USB and reset PRAM to get it to boot into osx again Is there any way to install windows 7 from a usb on my macbook pro using boot camp?", "How to correctly install libpng12-0 on the Ubuntu 19.10? For I need to install libpng12-0 package on the Ubuntu 19.10 system. I know that it is available . So I have decided to download this package manually and install it by hand. On previous Ubuntu versions (such as 18.04 LTS) this trick ends with success, but here on 19.10 it fails in very strange way: wget http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb sudo apt-get install ./libpng12-0_1.2.54-1ubuntu1.1_amd64.deb 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/116 kB of archives. After this operation, 285 kB of additional disk space will be used. Get:1 /home/user/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb libpng12-0 amd64 1.2.54-1ubuntu1.1 [116 kB] Selecting previously unselected package libpng12-0:amd64. (Reading database ... 212864 files and directories currently installed.) Preparing to unpack .../libpng12-0_1.2.54-1ubuntu1.1_amd64.deb ... Unpacking libpng12-0:amd64 (1.2.54-1ubuntu1.1) ... dpkg: error processing archive /home/user/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb (--unpack): unable to install new version of '/lib/x86_64-linux-gnu/libpng12.so.0': No such file or directory No apport report written because the error message indicates an issue on the local system Errors were encountered while processing: /home/user/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) What is wrong here? How can I get libpng12-0 installed on Ubuntu 19.10 system? Note: the same happens on 19.04, but it is near EOL.", "What is the proof that the total number of subsets of a set is $2^n$?", "35km commute possible? Currently, on every other day I commute to work which is a distance of 18km each way. I enjoy this ride but next year I may be moving to a place which will be about 35km from work. Questions: 1) Would it still be reasonable to commute this kind of distance each way once I have moved? 2) Google maps estimates that this distance would take 2 hours to complete. Would it be possible (depending on the bike and fitness) to do this distance in about an hour?", "Preserving signatures of decorated functions", "Can we access class properties dynamically with Object class? Is it possible to access Apex class properties dynamically? While we can create Object's, and assign any other class to an Object, I'm not sure how I can access the properties of these Object's. Can anyone provide some documentation or references to code which would allow me to do this? Example: public class XYZ { public string s1 { get; set; } public string s2 { get; set; } } XYZ testXyzObj = new XYZ(); Object obj = testXyzObj; // Method does not exist or incorrect signature: [Object].get(String) String s1 = obj.get('s1');", "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.", "Why does $x$ divided by zero not equal $x$?", "fontawesome and pdflatex When using pdflatex and the fontawesome package the below error shows up. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ! Fatal fontspec error: \"cannot-use-pdftex\" ! ! The fontspec package requires either XeTeX or LuaTeX to function. ! ! You must change your typesetting engine to, e.g., \"xelatex\" or \"lualatex\" ! instead of plain \"latex\" or \"pdflatex\". ! ! See the fontspec documentation for further information. ! ! For immediate help type H &lt;return&gt;. !............................................... Wish to keep on using \"pdflatex\" instead of \"xelatex\" or \"lualatex\". In fontawesome Version 4.4.0 manual it says \"When using the (pdf)(LA)TEX engine, the fontawesome package doesn’t require any external package\". Tried solutions proposed for this question () without success. MWE: \\documentclass{article} \\usepackage{fontawesome} \\begin{document} {\\faAdjust} \\end{document}", "She don't know that she's a lucky girl Here's from an old song (1963) \"\" by Lesley Gore. She don't know that she's a lucky girl Here's another example, \"Silence is Golden\" (1964) by The Tremeloes [YouTube ] Oh, don't it hurt deep inside to see someone do something to her. I wonder how common it is to say \"She don't\" or \"don't it\". Do native English speakers often use these? By the way, Lesley Gore is American, and the Tremeloes is British.", "Should I flag/down-vote \"Draft Answers\"? I've been finding \"answers\" that are slapped together and submitted, with the sometimes explicit intention of \"I'm going to edit this\". e.g. This seems silly, and I think ought to be discouraged. Is the proper response \"oh, how annoying\", commenting, down-voting, flagging? I'm heistant on the last two becuase sometimes they are edited (sometimes within the 5min grace) and become good answers, and then there's an unnecessary dv or flag.", "Remove a marker from a GoogleMap", "series of young adult science fiction books from early 1980s about last of a race of martial experts that sees the destruction of his home planet I remember that the main character is trying to find the group that destroyed his home planet while he was on a mission. His planet was very difficult to live on and the people became expert in martial arts and were the best soldiers in the galaxy. They were mercenaries and often helped against tyrants. There was a very memorable section in at least one book about an initiation task that the main character had to do in that he had to survive in their wilderness for days. He was at some point surrounded in a old building by thousands of poisonous worm/snake creatures that he managed to survive until rescued by the leaders." ]
medi_sts_stackexchange_dupe
SQL injection reported in script and I can't find it
How can I prevent SQL injection in PHP?
[ "Names of some months don't make sense I'm not a native English speaker but I'm always trying to do my best. Unfortunately I have a real problem with dates for some odd reason, I couldn't learn when was my birthday until I was 12 years old. Anyway, as I was learning names of the months on English, and since I know some Latin from high school I noticed that English months don't match up with their Latin numeral counterparts. For example: September - 9. month October - 10. month November - 11. month December - 12. month While on latin septem, octo, novem and decem are words for 7, 8, 9 and 10. So, does anyone know why is that. At first I thought it had something to do with switch from Julian to Gregorian calendar but I figured it's too small of a difference. Anyone? :)", "PostgreSQL, SELECT from max id", "Please check my simplification for x?", "Show $||Tx||_2 \\leq ||(v_n)||_2 \\cdot ||x||_{\\infty}$ Let $(v_n)_{n \\geq 1} \\in \\ell ^2$ be a fixed bounded sequence of real numbers. Define a mapping $T$ on $\\ell ^{\\infty}$ using the formula $$T(a_1, a_2,...)=(v_1a_1,v_2a_2,...), \\, \\, \\, \\, \\, x=(a_1,a_2,...) \\in \\ell^{\\infty}$$ We can use the fact that, $Tx \\in \\ell^2 $ for every $x \\in \\ell^{\\infty}$ and $T: (\\ell^{\\infty},||\\cdot ||_{\\infty}) \\rightarrow (\\ell^{2},||\\cdot ||_{2})$ is a linear operator. Show $||Tx||_2 \\leq ||(v_n)||_2 \\cdot ||x||_{\\infty}$ for all $x \\in \\ell^{\\infty}$ Here is what I tried: $||Tx||_2 = \\bigg( \\sum v_k^2 a_k^2 \\bigg)^{1/2} \\leq (||x||_{\\infty}^2 \\sum v_k^2 )^{1/2}= (||x||_{\\infty}^2 ||(v_k)||_2^2 )^{1/2} = ||(v_k)||_2 \\cdot ||x||_{\\infty}$ Is this OK?", "I'm interested: What is C#'s analog of std::pair in C++? I found System.Web.UI.Pair class, but I'd prefer something template-based. Thank you!", "Do gravitons interact with each other? I always thought the non-linearity of Einsteins field equations implies that there should be direct graviton-graviton interactions. But I stumbled upon which argues: If gravitons exist, then, like photons and unlike gluons, gravitons do not interact with other particles of their kind. That is, gravitons carry the force of gravitation but are not affected by it. This is apparent due to gravity being the only thing which escapes from black holes, in addition to having an infinite range and traveling in straight lines, similarly to electromagnetism. Is Wikipedia correct? If not, why not? And what then are the arguments that there must be graviton-graviton interactions? (As of this question being asked, the above paragraph has been removed from Wikipedia.)", "The temperature of an electron Does an electron have a temperature, if so, what is it? Imagine an electron (Ke = 1 eV) in a tube at room temperature (300 K) what is its temperature? Imagine now same electron in space (3 K) with same Ke, is it any different from the other? What is the influence of external temperature on electrons? Do those electrons have electric energy, or do we have such energy only when the electron hits something and discharges its Ke?", "I recently installed the apache2 package using the Software Centre, I want to create an alias apacheres which will replace the more cumbersome command /etc/init.d/apache2 restart. I opened the .bashrc file in my home directory, and it contains the following lines: # Alias definitions. # You may want to put all your additions into a separate file like # ~/.bash_aliases, instead of adding them here directly. # See /usr/share/doc/bash-doc/examples in the bash-doc package. if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi So I created a .bash_aliases file in my home directory, and added only this line: alias apacheres ='/etc/init.d/apache2 restart' When I started my terminal, I get this error message: bash: alias: apacheres: not found bash: alias: =/etc/init.d/apache2 restart: not found The shell has obviously read the file, otherwise it wouldn't know of its existence. I have checked the directory path and I can find the file apache2 there. What do I need to do to make this alias work?", "triggered my curiosity for this question. Why most of manga are black and white? Is this because of more cost if they add colors to it?", "How did the AT-ATs get to the surface of Hoth? I'm curious how these beasts got down to the surface of Hoth. Did the Galactic Empire land them in big ships, if so which ones?", "I'm looking at creating a basic ORM (purely for fun), and was wondering, is there a way to return the list of tables in a database and also the fields for every table? Using this, I want to be able to loop through the result set (in C#) and then say for each table in the result set, do this (e.g. use reflection to make a class that will do or contain xyz). Further to this, what are some good online blogs for SQL Server? I know this question is really about using system SPs and databases in Sql Server, and I am ok with general queries, so I'm interested in some blogs which cover this sort of functionality. Thanks", "Why is using \"for...in\" for array iteration a bad idea?", "Connecting to Oracle database with ArcGIS for Desktop?", "Show that $\\int_0^\\pi f(\\sin x)\\,\\mathrm{d}x = 2\\int_0^{\\pi/2}f(\\sin x) \\, \\mathrm{d}x$", "Types of things vs. types of thing", "Do file-extensions have any purpose (for the operating system)? Linux determines the type of a file via a code in the file-header. It doesn't depend on file-extensions for to know which software is to use for opening the file. That's what I remember from my education. Please correct me in case I'm wrong! Working a bit with Ubuntu systems recently: I see a lot of files on the systems which have extensions like .sh, .txt, .o, .c Now I'm wondering: Are these extensions are meant only for humans? So that one should get an idea what kind of file it is? Or does they have some purpose for the operating-system too?", "How to avoid modifications during pg_dumpall", "Assigning values to divergent series I have been looking at divergent series on wikipedia and other sources and it seems people give finite \"values\" to specific ones. I understand that these values sometimes reflect the algebraic properties of the series in question, but do not actually represent what the series converges to, which is infinity. Why is it usefull to assign values to divergent series? The only theory I could come up with, is this: Say you have 2 divergent series, series' A and B, and you assign each a value, Series ($A= \\sum_{n=0}^\\infty a_n$), which I assigned the value Q and series ($B= \\sum_{n=0}^\\infty b_n$ ), which I assigned the value P But it just so happens that series $C=A-B= \\sum_{n=0}^\\infty (a_n-b_n)$ converges. Could that imply that the actual value of series $C$ is the difference of the two assigned values to $A$ and $B$, that is $\\sum_{n=0}^\\infty (a_n-b_n)=Q-P$ ? If so, then that would make some sense to me, as to why people sometimes assign values to divergent series.", "Is \"princessship\" a real word? Are there any other words which have the same letter 3 times consecutively?", "How to mount an ISO file? I'm running into trouble trying to mount a large iso: dev@dev-OptiPlex-745:~$ sudo mount -o loop /home/dev/Hämtningar/matlab2011a_64.iso /cdrom mount: warning: /cdrom seems to be mounted read-only. dev@dev-OptiPlex-745:~$ Can you tell me how I should do it?" ]
medi_sts_stackexchange_dupe
Export to text file
Meaning of backtick in floating-point literal
[ "Centos recently updated to 7.3 and there's been problems with sshd sftp group permissions. I have one user that is chrooted to it's home directory, and that user is in group sftponly. Then i have the /var/www directory, which has 775 permissions and owner is apache and owner group is sftponly. I have a bind link pointing from /home/user/files/web --> /var/www, so the user can access /var/www even though being chrooted to it's home directory. I can view files in /var/www with that user, but impossible to edit or add anything. This worked fine before the big Centos 7.3 update, and now it's stopped working. Any ideas?", "In what occasion could the word “precious” be taken disapprovingly, or sarcastically? I understand that the word “precious” in the following quote of Maureen Dowd’s article “Heart of Darkness” (NYT, March 20) literally means “2. valuable or important and not to be wasted” as defined in OALD: Congressman Jones read an e-mail from a former boss of General Allen’s, giving the congressman this unvarnished assessment: “Attempting to find a true military and political answer to the problems in Afghanistan would take decades. Would drain our nation of precious resources, with the most precious being our sons and daughters. Simply put, the United States cannot solve the Afghan problem, no matter how brave and determined our troops are. But I didn’t know “precious” has another meaning as defined in OALD: 5. (disapproving, people and their behavior) very formal, exaggerated and not natural, and Readers English Dictionary: 2.(colloquial) terrible, almost worthless, until I was told by my respected forum mate a few days ago. Being encouraged by his suggestion for me to “ask another question if I’m not sure of what he means by describing his input as “precious” is actually rather “precious” phrasing, I would like to ask: What is an example of “precious” being used as “disapproving” or sarcastic way (as neither OALD nor CALD provides examples)? Is there an easy way to discern the instance “precious” being used as “disapproving” from the case being used in the sense of genuine “great value” as used in the above quote other than judging from the context?", "Let $a_k:=(-1)^k$ where $k\\in\\mathbb{N}$. $\\mathbb{N}$ is the set of all non-negative integer. And we define the partial sum $S_n:=\\sum \\limits_{k=0}^{n}a_k$. Notice that the sequence $\\{S_k\\}$ diverges which also implies that the infinite series $\\sum \\limits_{k=0}^{\\infty}a_k$ cannot be defined. If I consider the infinite sum $1-1+1-1+1-1+\\cdots$, then this statement is equivalent that I just defined the infinite series $\\sum \\limits_{k=0}^{\\infty}a_k$, which is contradiction. But, suppose that the sum $1-1+1-1+1-1+\\cdots$ exists and let the value of the sum be $S$. Then, we can easily observe that $S=1-S$, therefore $S=1/2$. The supposition of this proposition already proved as false, but if I ignore the definition of infinite series, it holds. Which one is right? Or are these propositions depends on what we define?", "Gradient Boosting for Linear Regression - why does it not work?", "Is there a word to describe words that can be spelled different ways? Is there a word in English to describe words that can be spelled more than one way? For example: colour and color favourite and favorite However, this shouldn't be limited to words spelled differently in different dialects, though I'm not sure what other case there would be.", "Get list of ALL offers from Amazon Product Advertising API", "File.Copy is giving exception", "Feature request - links underlined", "Biblatex citation order I'm facing a problem with biblatex citation order. Using this configuration: \\documentclass {article} \\usepackage[brazil]{babel} \\usepackage[utf8]{inputenc} \\hyphenation{es-ta-bi-li-da-de} \\usepackage{setspace} \\singlespacing \\usepackage[natbib=true,style=numeric]{biblatex} \\addbibresource{frameworks.bib} Being frameworks.bib this: @Article{JONHSON88, author = {Ralph Johnson, Brian Foote}, title = {Designin Reusable Classes}, journal = {Journal of Object-Oriented Programming SIGS}, year = {1988}, key = {Johnson:88}, volume = {1}, number = {5}, pages = {22-35}, month = jun } @book{UML-F:00, author = {Fontoura M., Pree W., Rumpe B.}, editor = {Addison-Wesley}, title = {The UML Profile for Framework Architectures}, year = {2000}, } The PDF is generated with a text like: Something about something[4], and moo foo other children[1]. This citation [4] is the first in all text. How can I order this correctly to [1]...[2] ...?", "Restore open applications, documents, and window state When working on a project, I generally have a couple of Explorer windows open to relevant folders and a couple of applications (e.g. Eclipse and a form development tool) open to specific project-related documents. There's a lot of value in that context, and I'd like to find a way to save a set of open apps under a project name, then restore that state at a later date. Thus far all of the utilities I've found are virtual desktop products that don't save/restore state. I'm specifically looking for something that will run the applications I had running, open the documents I had open, and position the windows as they were. I'm amazed that such a seemingly simple concept as \"Save my workspace state\" doesn't seem to be available. I'm on Windows 7. Any suggestions?", "python multiprocessing on windows, if __name__ == \"__main__\"", "Trying to show that $\\ln(x) = \\lim_{n\\to\\infty} n(x^{1/n} -1)$ How do I show that $\\ln(x) = \\lim_{n\\to\\infty} n (x^{1/n} - 1)$? I ran into this identity on . I haven't been able to find any proof online and my efforts to get from $\\ln(x) := \\int_1^x \\frac{\\mathrm dt}t$ to that limit have been a failure.", "My Ubuntu 12.04 was normally updated through the Update Manager, something about gtk. Then I rebooted and now all that shows after the splash screen is a blue screen that only shows the cursor.", "How To Create A 'Two-Sided' Unique Index On Two Fields? How can I efficiently create a unique index on two fields in a table like this: create table t (a integer, b integer); where any unique combination of two different numbers cannot appear more than once on the same row in the table. In order words if a row exists such that a=1 and b=2, another row cannot exist where a=2 and b=1 or a=1 and b=2. In other words two numbers cannot appear together more than once in any order. I have no idea what such a constraint is called, hence the 'two-sided unique index' name in the title. Update: If I have a composite key on columns (a,b), and a row (1,2) exists in the database, it is possible to insert another row (2,1) without an error. What I'm looking for is a way to prevent the same pair of numbers from being used more than once in any order...", "reconfiguration issues with dpkg I ran into some problems installing a package with apt. The terminal hung up during an install and I saw no other choice but to close the terminal. The problem, however, is that I can't seem to solve the issues that this has caused. As is typical, I get: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? This gets me nowhere and I'm locked out until I run sudo dpkg --configure -a. Makes sense. However, this process spits the following out and then hangs on the last line: Setting up virtualbox-dkms (5.2.10-dfsg-6) ... Removing old virtualbox-5.2.10 DKMS files... -------- Uninstall Beginning -------- Module: virtualbox Version: 5.2.10 Kernel: 4.15.0-23-generic (x86_64) ------------------------------------- Status: This module version was INACTIVE for this kernel. depmod... DKMS: uninstall completed. ------------------------------ Deleting module version: 5.2.10 completely from the DKMS tree. ------------------------------ Done. Loading new virtualbox-5.2.10 DKMS files... Building for 4.15.0-23-generic Building initial module for 4.15.0-23-generic A typical solution I've read is that you need to fix the broken packages. When I try to fix the broken packages (sudo apt install -f), the system also hangs on the same line, although the output is different: Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up virtualbox-dkms (5.2.10-dfsg-6) ... Removing old virtualbox-5.2.1 0 DKMS files... ------------------------------ Deleting module version: 5.2.10 completely from the DKMS tree. ------------------------------ Done. Loading new virtualbox-5.2.10 DKMS files... Building for 4.15.0-23-generic Building initial module for 4.15.0-23-generic I am unable to get out of it unless I kill the process. This I do by checking what is currently running related to apt (ps aux |grep apt), and then I kill the relevant processes with sudo kill -9 process_number_here. If I try to run things after that, it tells me I still need to reconfigure dpkg. I tried looking around for more solutions to dpkg and all I really see is the nuclear option: sudo rm /var/lib/dpkg/lock sudo rm /var/cache/apt/archives/lock sudo rm /var/lib/apt/lists/lock I also delete the files in /var/lib/dpkg/updates because when I did some digging one of the files inside had the exact same text as the above long output... but I fully admit to being out of my league here and I don't know what to do. Taking a look at the error messages, I recognize that it hangs on building something related to the kernel. But I have no idea where to even start solving that. Any help is appreciated. My system is ubuntu 18.04", "How can you prove $\\frac{n(n+1)(2n+1)}{6}+(n+1)^2= \\frac{(n+1)(n+2)(2n+3)}{6}$ without much effort? I will keep it short and take only an extract (most important part) of the old task. $$\\frac{n(n+1)(2n+1)}{6}+(n+1)^2= \\frac{(n+1)(n+2)(2n+3)}{6}$$ What I have done is a lot work and time consuming, I have \"simply\" solved it. But I think with a lot less work, there would be an easier and faster way. It's just I cannot see it : / If anyone wants see, here is my long solution which I'm not happy with: $$\\frac{n(n+1)(2n+1)+6(n+1)^2}{6}=\\frac{(n^2+2n+n+2)(2n+3)}{6} \\Leftrightarrow$$ $$\\Leftrightarrow \\frac{(2n^3+n^2+2n^2+n)+6n^2+12n+6}{6} = \\frac{(n^2+3n+2)(2n+3)}{6} \\Leftrightarrow$$ $$\\Leftrightarrow \\frac{2n^3+3n^2+n+6n^2+12n+6}{6}=\\frac{2n^3+3n^2+6n^2+9n+4n+6}{6} \\Leftrightarrow$$ $$\\Leftrightarrow \\frac{2n^3+9n^2+13n+6}{6}=\\frac{2n^3+9n^2+13n+6}{6}$$", "Are Goodberries affected by the Life domain class features?", "STI vs STD vs Sexually Transmitted Virus", "Reference to undeclared entity exception while working with XML I am trying to set the innerxml of a xmldoc but get the exception: Reference to undeclared entity XmlDocument xmldoc = new XmlDocument(); string text = \"Hello, I am text &amp;alpha; &amp;nbsp; &amp;ndash; &amp;mdash;\" xmldoc.InnerXml = \"&lt;p&gt;\" + text + \"&lt;/p&gt;\"; This throws the exception: Reference to undeclared entity 'alpha'. Line 2, position 2.. How would I go about solving this problem?", "What happened to Startups SE? I really enjoyed that site. I've only posted on it once, but I enjoyed seeing other people's posts and appreciated reading about entrepreneurial dilemmas." ]
medi_sts_stackexchange_dupe
System freezes with every distro I try
System freezes completely with Intel Bay Trail
[ "Horned Mohawk looking insect. What is it? Any ideas? I didn't know any other way to explain it. I live in Indiana, USA if that helps. Someone said it might be a \"stink bug\" but I'm not sure and not willing to find out!", "Database Encryption scan for database was aborted. Reissue ALTER DB to resume the scan", "What is dependency injection?", "How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor version", "OverlapBox() dimensions are huge but are fine when tested in isolation", "$k[x]/(x^n)$ module with finite free resolution is free", "Are parallel calls to send/recv on the same socket valid?", "Python interpreter error, x takes no arguments (1 given)", "Are there any rules in baseball which prohibit teams from \"borrowing\" players via trade? Every season near the trade deadline, we see teams that are out of it trading expensive players and/or free agents-to-be, typically for younger players or prospects. For example, Matt Garza, set to become a free agent after the season, was traded to the Rangers for a few prospects. It made sense for the Cubs to trade Garza, because he wasn't under contract any further than this season, and thus doesn't have much value to them. Compare Garza to someone like Mike Trout, who is likely the most valuable property in baseball, given his skill and inexpensive cost over the next several years. There's no way the Angels would trade him, because he'll be the cost-controlled centerpiece of the team for years to come. However, with the Angels out of it this year, what if they wanted to trade Trout to a contender (say the Pirates), but only for the remainder of this season? That is, they'd get several top prospects now, and would have an agreement with the Pirates that they'd trade him back in the offseason (for something pretty worthless, say for a journeyman minor leaguer). The Pirates get Trout for the stretch run and are happy to give up a few prospects. Trout doesn't have much value to the Angels this year, but he has a ton of value for next year. So they get a few prospects for him, in exchange for the part of his career which has very little value to them. So in effect, the Pirates are renting or borrowing him for the remainder of 2013. Why don't trades like this happen? Are there any rules prohibiting trades like this?", "FM Transmitter oscillation problem I've been trying to get this simple FM transmitter to work over the past few days and I could use some help in a few areas. First iteration was on a breadboard with all parts included. The exception being I didn't have a 0.1uH coil handy but I had another coil rated at 0.7uH (using my LCR meter). I also didn't have a C4 value of 4.7pF but I had a 10pF value. I figured I could just tune it later. I hooked a scope up to it and got no oscillation. I tried connecting the probe to the gate and the collector separately and together. Still no oscillation. Second iteration. I removed the audio component of the circuit. Essentially everything to the left of C2. I had gotten that working no problem anyway so I figured I would concentrate on the oscillator. This time I tried different values for the inductor ranging from 20uH to 1mH and different fixed values for the variable cap (10pf, 20pf, 30pf). These were all ceramic caps. No love. Third iteration. I tested the transistor to make sure that wasn't the issue. Seems fine. PN2222A variety. (Also tried 2N3904 and BC547). I then modeled this up on a piece of perf board. I even found a SMD inductor of 0.1uH so now I thought I would be good. Tested all the pieces on the meter before installation. Still nothing. I'm not seeing anything on the spectrum analyzer either. Questions: Do you think my benchtop power supply is causing a problem? All the various versions of this type of FM transmitter circuit on YouTube and the Internet all seem to use a battery. Any chance the 60Hz main power is messing with things? I've put .1uF and higher caps on the power rails. I have a 200Mhz SIGLENT SDS1202X-E scope. I've built and tested other oscillators up to a few MHz before with no issues. Any thoughts on that being the issue? I would expect to see something on the scope right? Any chance the probe is dampening the oscillations? I know there are a lot better FM transmitter circuits out there I was just experimenting with this (and others like it) and couldn't get any to work.", "Differential equation for Harmonic Motion Particle undergoes simple harmonic motion. Initially Its displacement is $1$, velocity $1$ and acceleration is $-12$ Compute displacement and acceleration when the velocity is square root of $8$. I am not familiar with this kind of application question. So, its displacement is $1$, does that mean that $y=1$ when $x=0$ ?", "PlotRange precision limit?", "Mixing C Structs and Objective-C Properties", "Why does the compiler say \"a constant value is required\" for the first case...the second case works fine... switch (definingGroup) { case Properties.Settings.Default.OU_HomeOffice: //do something break; case \"OU=Home Office\": //do something break; default: break; } also tried... switch (definingGroup) { case Properties.Settings.Default.OU_HomeOffice.ToString(): //do something break; case \"OU=Home Office\": //do something break; default: break; } ...same error Here's the Properties.Setting code [global::System.Configuration.ApplicationScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute(\"OU=Home Office\")] public string OU_HomeOffice { get { return ((string)(this[\"OU_HomeOffice\"])); } }", "Animated textures don't work in Blender viewport playback I am trying to animate in 2d. I do it with planes that have textures on them. I recently came up with the idea of having a plane with an image sequence of mouths because animating actual lip syncing by hand takes too long and isn't really necessary for what I'm trying to acomplish. However, when playing back the animation in textured viewport shading the animated texture stays at the last frame until the animation stops. I can use the arrow keys and it works fine as well as scrubbing through the timeline, just not when playing back the animation with alt+a. Can anyone help me with this problem?", "I just installed ubuntu 11.10 from a usb stick. After installation, none of the software which I had collected and run on 11.10 or 11.04 runs on it. Even my newly downloaded opera or chrome installations does not work. I do not have a internet connection. Whenever i try to install any .deb file by double clicking it,software center opens up but the install button is grayed out.", "Is there a way to get a good human readable error from a COM error in arcEngine?", "Can you cast a spell at a higher level, even if it doesn't have an \"At higher levels\" entry?", "Problem with \\mkbibdateapalongextra of biblatex-apa", "Which ligatures do the fonts used in my document offer? This is a follow-up question to: In order to know which ligatures I might consider disabling (I have in mind microtype's \\DisableLigatures command; some important notes about selective disabling of ligatures are found under ), knowledge about which ligatures might be applied will be very useful. Which ligatures do the fonts used in my document offer?" ]
medi_sts_stackexchange_dupe
A question about gradient direction
Why is gradient the direction of steepest ascent?
[ "How to fake a package version installed? Being an early adopter and using 11.04 daily builds I sometimes meet a situation when some packages require earlier versions of other packages than those I have installed. Usually newer (but refused) versions of needed packages provide all the functionality of their older versions. If I use dpkg -i --force-depends-version to install dependent packages everything works fine, I've never seen a problem. Instead of manually downloading and installing every package, can I just make the system pretend there is a specific package version installed when there is a newer? Or is there a --force-depends-version key equivalent for apt-get?", "I came across a where a comprehensive example would be very useful. So I wrote an example program showing one way to solve their problem. My problem is that when I was done creating it, and testing to make sure it worked, it was over 400 lines in 18 files. My example included source code, header files, and scripts for building the example in a variety of circumstances. It's a working and tested, so it's of huge value to illustrate the tricky solution, but because it's all there, my response was huge! Is there a better way of posting my code dump? Edit: I guess there isn't a current \"best way\" to include a large chunk of code, so I made this a feature request and tried to add some ideas. Perhaps code entries that are longer then a certain number of lines, or ones that have been specifically marked could initially be displayed as \"collapsed\", and someone could expand them if they want to see them? Or maybe, like attaching images, users with enough reputation could attach an archive of files. They could be displayed as \"attached code\" (initially collapsed also). Some problems have simple answers that unfortunately touch disproportionately large parts of the program, or can be solved in slightly different ways depending on the environment. I feel that stackoverflow needs a way of capturing these large solutions. Sometimes, they're large chunks of code. In my case, the code was small, but there were many files. Using github or a similar code repository is great, but we risk linkrot (even for big guys like github) and loose the community editing, commenting, and voting abilities. I understand the problems that could come from with people dumping whole \"I can't get this to work\" packages, but surely we already have a solution for that in moderation. Edit again: I'm starting to see that this may have been already addressed in posts like , and If you feel this a dupe, I'm open to having it \"closed as already addressed\"", "The Chinese government has a really specific list of requirements for visa photos: I had an old unused photo from last time I applied for a visa or passport, and compared it to the requirements (decided not to use it because it was damaged). It seemed to match most of the requirements, except that it seems that they want a photo which isn't square: The required width is less than the required height. Assuming most drugstores are still providing square passport photos, the question becomes: Should I cut the photo to match the specified width? What adds to the confusion is if you look at the the box for the photo is nearly square, not the oblong shape in the requirements. And I have seen other advice that you need to make sure it fully fits the box. Any advice about what to do here?", "After lethal first strike damage to an indestructible creature, will it still do damage? If I were to attack with a 4/4 indestructible creature and it's blocked by a 4/2 creature with first strike, would my indestructible creature still attack during the second combat damage step, or would it just tap, not assigning any damage?", "Should confidence intervals for linear regression coefficients be based on the normal or $t$ distribution?", "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?", "How can I rename many files at once?", "In a complex vector space, $\\langle Tx,x \\rangle=0 \\implies T = 0$", "I have been having extreme difficulties with this integral. I would appreciate any and all help. $$ \\int \\sqrt{\\tan x} ~ \\mathrm{d}{x}. $$", "I have found the command to delete files older than 5 days in a folder find /path/to/files* -mtime +5 -exec rm {} \\; But how do I also do this for subdirectories in that folder?", "Applescript run from menu bar?", "Why am I getting \"line 1: $' :\\r': command not found\"? I use Cygwin on my laptop (DOS). I have a collection of scripts from my colleagues, and my own. I am not an IT person, not knowledgeable in Unix. I am following my colleagues' syntax and able to manage a few simple things. The scripts worked well on my old laptop. I just changed laptop and installed Cygwin. When I run my scripts, they do not work. Here is one example of the error message I get: line 1: $':\\r': command not found line 5: syntax error near unexpected token `$'\\r'' line 5: `fi Here are the top 5 lines of my script : iter=1 if [ -f iter.txt ] then rm ./iter.txt fi Can someone please explain how I can get around this problem?", "How to create script with auto-complete?", "As made clear in update 3 on , this notation: var hash = {}; hash[X] does not actually hash the object X; it actually just converts X to a string (via .toString() if it's an object, or some other built-in conversions for various primitive types) and then looks that string up, without hashing it, in &quot;hash&quot;. Object equality is also not checked - if two different objects have the same string conversion, they will just overwrite each other. Given this - are there any efficient implementations of hashmaps in JavaScript? (For example, the second Google result of yields an implementation which is O(n) for any operation. Various other results ignore the fact that different objects with equivalent string representations overwrite each other.", "Why is it wrong to serial voteup someone you like his answers? Sometimes I just came to stackoverflow to read certain people answers(there are 4 guys currently) I have their profile bookmarked in my browser and in my free time at office I go to their profile and read their answers and learn a lot from them, but because I'm afraid to be a serial voter, I dont voteup them. I think there is nothing wrong with that, if there is, please let me know.", "Android Phone SD Card Problem My Samsung Galaxy Admire phone is saying that an SD card isn't found when the SD card is inside the phone: it shows \"Please insert SD Card\". What could be wrong?", "Conditional sentences not starting with \"if\" Were I rich, I would live on Long Island. If I were rich, I would live on Long Island. Is the first sentence still used, or is used in particular contexts (in example, to give emphasis to the sentence)?", "Is it legal to study while on a tourist Schengen visa? If, say, you acquired a 90-day tourist Schengen visa, would it be legal to use it for the purpose of visiting a language course or a university class? Or do you have to apply for a special education visa if you have such intents? Answers linking to official EU pages on that matter would be highly appreciated :)", "Interpreting exp(B) in multinomial logistic regression This is somewhat of a beginner's question, but how does one interpret an exp(B) result of 6.012 in a multinomial logistic regression model? 1) is it 6.012-1.0 = 5.012 = 5012% increase in risk? or 2) 6.012/(1+6.012) = 0.857 = 85.7% increase in risk? In case both alternatives are incorrect, can someone please mention the correct way? Ive searched many resources on the internet and I get to these two alternatives, and I am not entirely sure which one is correct.", "Check for internet connection with Swift" ]
medi_sts_stackexchange_dupe
Why is a satellite's GPE negative?
Why is potential energy negative when orbiting in a gravitational field?
[ "Is a current transformer appropriate for a voltage step up flyback converter? I am designing a flyback converter, input 170V output 1200V at 2mA. I am having trouble finding an appropriate transformer, most do not have a high enough N. Current transformers seem to have ranges in 1:500, so I could work with that. Is it proper to use a current transformer as a conventional step up voltage transformer?", "How to get glare on \"Quick Smoke\" (Fire & Smoke explosion)", "A word that says a person is both female and your friend", "Why doesn't bash expand this variable when I prefix a command with a \"one time variable assignment\" If I run this bash command and prefix the statement, so that the variable fruit should exist, but only for the duration of this command: $ fruit=apple echo $fruit $ The result is an empty line. why? To quote a comment from wildcard on : parameter expansion is done by the shell, and the \"fruit\" variable is not a shell variable; it's only an environment variable within the environment of the \"echo\" command An environment variable is still a variable, so surely this should still be available to the echo command?", "Should a retrieval method return 'null' or throw an exception when it can't produce the return value?", "Suppose we have functions $f:A→B$ and $g:B→C$. Prove that if $f$ and $g$ are invertible, then so is $g \\circ f$. Suppose we have functions $f:A→B$ and $g:B→C$. Prove that if $f$ and $g$ are invertible, then so is $g \\circ f$. Is the converse true? I.e., if $g \\circ f$ is invertible, does it follow that $f$ and $g$ are both invertible? I know that if $f$ and $g$ are invertible, then they are both injective and surjective. Therefore, I assume from this that I have to show $g \\circ f$ is injective and surjective as well, thus proving it is invertible. However, I don't know how to show $g \\circ f$ is bijective based only on the information I have.", "How to create quizzes with macqtex?", "Using X11 in OSX 10.8.3 : \"ld: library not found for -lX11\"", "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?", "$ \\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.", "USB is a popular standard and I was wondering whether there is some way to connect two or more computers using USB ports rather than the Ethernet ports.", "Find $n$ such that $n/2$ is a square, $n/3$ is a cube, and $n/5$ a fifth power", "My equation is not showing big bracket and not showing in next line", "Given fields $M/E/F$, why does $[M:F] = [M:E][E:F]$? Let $M$ be a finite extension of $E$ and let $E$ be a finite extension of $F$. Then $M$ is a finite extension of $F$ and $[M:F] = [M:E][E:F]$. Is there an easy explanation and/or proof for this theorem? My instructor gave an incomplete proof in class but got stuck and I'm kind of confused of what's going on.", "How to find distance from the latitude and longitude of two locations?", "opengl storing multiple indices into indices buffer After parsing collada files I found out that we have to load two(or more) indices each pointing to say a vertex or normal etc. like this (&lt;p>3 0 2 0 0 0&lt;/p>) Is there a way to load (and use)these indices to indices buffer(ELEMENT_ARRAY_BUFFER) like this (vnvnvn...) ; where v is vertex pointer, n is normal pointer from the above. with vertices loaded to VBO1 like (vvvv...) and in VBO2 like (nnnn...). So that we dont have to repeat the normals in VBO2. VBO like (vnvnvn...) is also ok. (and not something like this ), I'm not trying to use multiple indices buffer. I'm trying to put all the given indices into one index buffer and use them alternately. (If I wasnt clear i will try for more clarification.)", "Looking for help with a proof that n-th derivative of $e^\\frac{-1}{x^2} = 0$ for $x=0$. Given the function $$ f(x) = \\left\\{\\begin{array}{cc} e^{- \\frac{1}{x^2}} &amp; x \\neq 0 \\\\ 0 &amp; x = 0 \\end{array}\\right. $$ show that $\\forall_{n\\in \\Bbb N} f^{(n)}(0) = 0$. So I have to show that nth derivative is always equal to zero $0$. Now I guess that it is about finding some dependencies between the previous and next differential but I have yet to notice one. Could you be so kind to help me with that? Thanks in advance!", "How many solutions for an equation with simple restrictions I'm working on an assignment in which I have to count the number of solutions for this particular equation: $$x_1+x_2+x_3+x_4=20$$for non negative integers with $x_1&lt;8 $ and $x_2&lt;6$ I'm aware that this kind of a task isn't that complicated, but I don't get combinatorics in general that well. So I've tried two following approaches to get this done. Firstly I tried to substitute the variable x: $x_1+x_2+x_3+x_4=20 \\Leftrightarrow y_1+y_2+y_3+y_4=34$ in which $y_1=x_1+8$ and $y_2=x_2+6$ (casue $x_1=y_1-8$ and $x_2=y_1-6$) Following this approach the total number of possible solutions would be $${34+3 \\choose 3} $$ But I'm not sure if its the right solution. The second approach is to sum all of the possible values that $x_1$ and $x_2$ could possibly take, also $x_1=0,1,2,3,4,5,6,7$ and $x_2=0,1,2,3,4,5,6$ And then count all the possibilities for each of the variables $${20 -x_1-x_2+1\\choose 1}$$ and sum them together like this: $${21\\choose 1}+{20\\choose 1}+{19\\choose 1}+{18\\choose 1}+... $$ and so on... I'm sure I'll get the correct number with this one, but I'm not feeling like summing all of this possibilities. There's got to be a better, more elegant way to deal with this. My professor gave me a hint that I should do it using the complement.", "Can the relative pronoun \"whose\" be used for animals, things and countries? When I was a student of English as a foreign language, more years ago than I care to count, I was taught that the relative pronoun “whose” could only be used for human beings, i.e., when someone possesses something. My teachers were native speakers from England, then. Since that time, I’ve seen “whose”, as a relative pronoun, used in several contexts where no human beings are mentioned, e.g. with animals, objects, countries, abstract nouns, etc, in American newspapers and magazines. Unfortunately, I can’t remember any of the sentences and cannot give examples. What is acceptable in written and spoken English, and what isn’t, concerning the use of “whose” ?", "\"A friend of my father\" vs. \"a friend of my father's\" — which one is right? Why? I have seen them both in my reference book, which is written by a native speaker. I wonder why there are two different phrases to describe the same meaning and am looking forward to some reasonable details to explain why this is so." ]
medi_sts_stackexchange_dupe
How does Tex layout engine work
How does TeX actually work?
[ "Seeking QGIS tutorials and web resources?", "This morning, I had eggs for breakfast, and I was looking at the pieces of broken shells and thought \"What is the surface area of this egg?\" The problem is that I have no real idea about how to find the surface area. I have learned formulas for circles, and I know the equation for an ellipse; however, I don't know how to apply that. The only idea I can think of is to put an egg on a sheet of paper and trace it, and then measure the outline drawn, and then try to find an equation for that ellipse and rotate that about the $x$-axis. Now, my problem is how I can find the equation of the ellipse from the graph, and will my tracing method really be the edge of the egg? Also, can I use the ? Will I have to use some techniques to solve the integral that are not covered in the ? There has to be a better method for finding the surface area. Please, help me understand how to find the surface area of an egg; i.e., how to use my mathematical knowledge for something other than passing exams.", "Check out the below program. try { for (String data : Files.readAllLines(Paths.get(\"D:/sample.txt\"))){ String[] de = data.split(\";\"); System.out.println(\"Length = \" + de.length); } } catch (IOException e) { e.printStackTrace(); } Sample.txt: 1;2;3;4 A;B;; a;b;c; Output: Length = 4 Length = 2 Length = 3 Why second and third output is giving 2 and 3 instead of 4. In sample.txt file, condition for 2nd and 3rd line is should give newline(\\n or enter) immediately after giving delimiter for the third field. Can anyone help me how to get length as 4 for 2nd and 3rd line without changing the condition of the sample.txt file and how to print the values of de[2] (throws ArrayIndexOutOfBoundsException)?", "Is \"Five dollars is all I have\" correct? I want to emphasize that I only have 5 dollars, so can I use the sentence: Five dollars is all I have. Or must it be: Five dollars are all I have. Please give the explanation as well.", "\"wait more than\" vs. \"wait FOR more than\" If you make him wait (for) more than ten minutes, he'll just walk away. I found both instances on Google Books: and . So I'm a bid confused.", "Has Marvel commented on the extra Infinity Gauntlet?", "Add Item to Finder Sidebar", "I have read that watchdog timer pushes microprocessor/controller into reset state whenever it experiences any software anomaly like executing in infinite loop. and after some time a very senior prof told us that after reset the processor resumes operation from the next instruction to the erroneous one. when watchdog timer resets the processor, from where does the processor start its next execution? I just wanted to know what is correct or if some other concept is employed?", "Can you make a non-polar electrolytic capacitor out of two regular electrolytic capacitors?", "How do you disable an application specific hotkey, for example, \"Command-P\"? In many applications, Command-P is used to print. My fingers are accustomed to emacs settings and reflexively press Command-P not for printing but for browsing history. It's annoying to see the print pop-up window every time when I press Command-P. I don't need a shortcut to print. How do you block a shortcut globally?", "If we look at light as a collection of little particles, we can say that dimmer light has its photons more spread out. But if we look at light as a wave, then there no gaps unless specifically placed there on purpose. So how can one interpret the formation of gaps between the photons?", "What are the major differences between ANSI C and K&R C?", "How to show $\\lim_{n \\to \\infty} a_n = \\frac{ [x] + [2x] + [3x] + \\dotsb + [nx] }{n^2} = x/2$? This question came from the prelim exam I took last month. I have a proof that seems a bit unwieldy to me (posted as an answer), so I'm opening it up to ask if there are other ways of showing this. Let $x$ be any positive real number, and define a sequence $\\{a_n\\}$ by $$ a_n = \\frac{ [x] + [2x] + [3x] + \\dotsb + [nx] }{n^2} $$ where $[x]$ is the largest integer less than or equal to $x$. Prove that $\\displaystyle{\\lim_{n \\to \\infty} a_n = x/2}$.", "Subgroups of finitely generated groups are not necessarily finitely generated I was wondering this today, and my algebra professor didn't know the answer. Are subgroups of finitely generated groups also finitely generated? I suppose it is necessarily true for finitely generated abelian groups, but is it true in general? And if not, is there a simple example of a finitely generated group with a non-finitely generated subgroup? NOTE: This question has been merged with another question, asked by an undergraduate. For an example not involving free groups, please see Andreas Caranti's answer, which was the accepted answer on the merged question.", "Velocity Maxwell-Boltzmann distribution for dummies I have a volume with $N$ molecules; I need to assign to each particle a velocity vector: $$|\\mathbf{v}_{i}|=[v_{x}, v_{y}, v_{z}]^{T}$$ for the $i$-th molecule; the velocities must follow the Maxwell-Boltzmann distribution; here is the question: I know the definition of the M.B. distribution, how do I extract the velocities that I have to assign to each molecule? Basically what I want to know is how to calculate $$v_{x}=?$$ $$v_{y}=?$$ $$v_{z}=?$$ for each molecule.", "I'm having a hard time finding the solution of the following equation: $$0 = x\\cos(x)+2$$ This is part of showing that $f(x):= x^2e^{\\sin(x)}$ has 3 extremas in $[-\\frac{\\pi}{2},\\frac{\\pi}{2}]$.", "ibus Avro in Ubuntu 14.04 LTS I used the instructions given to install ibus Avro in my ubuntu 14.04 LTS (64 bit) but ibus avro was not installed. Can anyone help me to solve this case? After giving the commands in terminal nothing happens.", "In Random forest algorithm, Breiman (author) constructs similarity matrix as follows: Send all learning examples down each tree in the forest If two examples land in the same leaf increment corresponding element in similarity matrix by 1 Normalize the matrix with number of trees He says: The proximities between cases n and k form a matrix {prox(n,k)}. From their definition, it is easy to show that this matrix is symmetric, positive definite and bounded above by 1, with the diagonal elements equal to 1. It follows that the values 1-prox(n,k) are squared distances in a Euclidean space of dimension not greater than the number of cases. In his implementation, he uses sqrt(1-prox), where prox is a similarity matrix, to convert it to distance matrix. I guess it has something to do with the \"sqaured distances in a Euclidean space\"-quoted above. Can somebody shine a little light on why it follows that 1-prox are squared distances in a Euclidean space and why he uses squared root to get distance matrix?", "Possible Duplicate: Let $X$ be a compact metric space and $f$ be an isometric map from $X$ to $X$. Prove $f$ is a surjective map.", "Adding PDF (especially GeoPDF) to ArcMap as data? I receive a lot of PDF maps (vector, image, with georeference and without) and I am having to convert them to an image file before I can add them to ArcMap and georeference. I can't see any obvious out-of-the-box utility that would allow me to add and georeference a PDF directly without having to convert to an image file first. Any ideas? I would prefer to add a PDF to map directly without any prior \"pdf to image\" conversion" ]
medi_sts_stackexchange_dupe
Every time on start up my pc sets a proxy which is https://127.0.0.1:86/
How can I remove malicious spyware, malware, adware, viruses, trojans or rootkits from my PC?
[ "If my Schengen visa starts on the day of arrival which is one day ahead of departure, would they let me get into the plane? I have a question, I applied for the Schengen visa through Germany, on the form they ask me when I'd arriving (to Germany) and when I'd returning. they take this exact date as the visa period. I wondering if they would let me get into the plane, even though my flight it a day before the arrival. Let get the real deal; let say this: My visa is valid from 02/12/2014 to 02/02/2015. But, my flight is scheduled to be departing on 01/12/2014, but entering Germany 02/12/2014. the flight duration is almost 9hours and there is 7hours difference between Germany and the departing flight country.", "Starting multiple Chrome full screen instances on multiple monitors from (batch) script My goal is to show different web content full screen on multiple monitors automatically after booting from a single computer. The browser I would like to use is Chrome. If Chrome does not support this and Firefox does that would be fine. The OS I would prefer is Windows, if it turns out that Linux is possible that would be fine. On Windows it is possible to set the position of the Chrome browser window (--window-position=) and make Chrome start in full screen mode (--kiosk). Using these options combined you can start Chrome full screen on any of the desktops/screens that you have connected to your computer. I have managed to get this working. However, if I then try to do the same thing a second time to have Chrome full screen on a second screen the second Chrome window will open over the first window, no matter the coordinates I use for the --window-position parameter. I have tried using Chrome profiles and copying the Chrome directory and starting the second chrome.exe. All these things result in the same behaviour.", "Is the below a valid circuit implementation and are there any things to watch out for? It's a simplification of the larger circuit but the crux of it is that I need to sink current into two GPIO input pins. The pins are signified by the 1 and 0. Also, would a diode on the pins be advisable? Edit: Here's the non-simplified circuit. The question relates to the 3.3v part of it. In essence, the timer and decade counter sequentially pulse current, 'activating' the transistors one at a time. The keypad is a simple matrix keypad. What I'm wondering if I can do is to put a GPIO pin on the line between the keypad and ground. The intended effect is that, when a button on the keypad is pressed, 2 pins will change state - this signifies the row and column. Note that some of the resistance and capacitance values are notional at the moment.", "Linear transformation $T:\\mathbb{R}^{n}\\rightarrow\\mathbb{R}^{n}$ such that $T^{2}=\\lambda T.$ Let $T$ be a linear transformation $T:\\mathbb{R}^{n}\\rightarrow\\mathbb{R}^{n}$ such that $T^{2}=\\lambda T$ for some $\\lambda\\in\\mathbb{R}.$ Then which of the following is/are true? $1.\\|T(x)\\|=|\\lambda|\\|x\\|$ for all $x\\in\\mathbb{R}^n.$ $2.$ If $\\|T(x)\\|=\\|x\\|$ for some non-zero $x\\in\\mathbb{R}^{n}$, then $\\lambda=\\pm 1.$ $3.T=\\lambda I$ where $I$ is the identity transformation on $\\mathbb{R}^{n}.$ $4.$ If $\\|T(x)\\|&gt;\\|x\\|$ for a nonzero vector $x\\in\\mathbb{R}^{n},$ then $T$ is singular. According to me since $T^{2}=\\lambda T$ we have $T$ satisfies the polynomial $x^{2}-\\lambda x.$ So choices for its minimal polynomial are $x,x-\\lambda,x(x-\\lambda).$ So $3$rd option is clearly incorrect and $4$th option is not satisfied if $T=I$ and hence correct one. I am confused in first two options . Please help me. Thanks in advance.", "For context, see . In essence: \"This question is protected to prevent \"thanks!\", \"me too!\", or spam answers by new users. To answer it, you must have earned at least 10 reputation (not including the ) on this site.\" Suggested addition to existing message is in bold.", "I'm trying to make a quicklist on the Workspace Switcher launcher that allows for quick switching to a certain workspace. (My friend sometimes uses my computer and just doesn't enjoy keyboard shortcuts, so I want to help him out.) So is there a command one could type in a terminal that would force a certain workspace to be focused on?", "How can I press \"Insert\" on a keyboard without that key?", "I read a very special book a few years back. We follow a boy who lives in a world where, if one moves far enough in a direction, that person gets distended and changed in size. The boy works on laying tracks for the train, on which his city is. The city has to continually keep moving or it also will get squashed. It's like a world like if one end is pinched and then dragged out like a piece of rubber string or bubble gum. The book is not older than 10 years I think. Hope I was clear enough...", "Why does Hermione say she hadn't used a memory charm before? After the wedding, Hermione has to use a memory charm on two Death Eaters, where she states that she has never done it before, but she knows the theory. However, she states that before she left on her adventure, she made her parents forget her, and move to Australia. Is this a contradiction, or is there an explanation?", "Proving $\\sum_{k=1}^n k k!=(n+1)!-1$ 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.", "How can I make my IP address appear to be from another country? How do I make it appear that my IP address is coming from one country while I'm located in another? I live in Germany and some websites (like Hulu or Youtube) don't work because my IP isn't in the US. How do I get around this? Do I have to use a proxy or something? Moderator note Super User does not endorse nor defend any activity which may be used to circumvent local/state/national laws.", "Enlarged partition, filesystem still reports old size", "Wouldn't the thermodynamic cost of creating alternate universes make the Many Worlds interpretation implausible?", "Safari can load internet but none of the other apps cannot! This is by far the weirdest problem I've come across, My mac can perfectly access internet through safari web browser, but when I tried to do ping www.google.com through the terminal, it's requests is being timed out. None of the other apps are able to reach internet either. Dropbox, Skype, Spotify all showing offline, except the browser itself I'm guessing something bad with the DNS, but spend 2 hours trying to fix this with no luck", "Correlating filename with package Say, I'm given a filename like libasound.so.2. Is there a way to query the package manager to correlate the filename with its corresponding package? I'm interested to get answers for any package manager, but my primary focus is on apt and yum.", "I am a dual Australian/British citizen with an expired emergency Aussie passport and a valid UK passport. What are my chances for an Aussie visit? I was going to have to miss my brother's wedding on Jan 4th but he bought me a flight today. But my Aussie passport is expired and was only an emergency passport to begin with. I'm born and bred Aussie, just been away for ten years. I'm hoping to arrive on UK passport, show the expired Aussie one and the wedding invite and my return ticket for two weeks later and hope they understand. What are my chances? Also planning on going to the Aussie embassy on Monday to see what they say but want to know my chances of just entering on a UK passport.", "BeanFactory vs ApplicationContext I'm pretty new to the Spring Framework, I've been playing around with it and putting a few samples apps together for the purposes of evaluating Spring MVC for use in an upcoming company project. So far I really like what I see in Spring MVC, seems very easy to use and encourages you to write classes that are very unit test-friendly. Just as an exercise, I'm writing a main method for one of my sample/test projects. One thing I'm unclear about is the exact differences between BeanFactory and ApplicationContext - which is appropriate to use in which conditions? I understand that ApplicationContext extends BeanFactory, but if I'm just writing a simple main method, do I need the extra functionality that ApplicationContext provides? And just exactly what kind of extra functionality does ApplicationContext provide? In addition to answering \"which should I use in a main() method\", are there any standards or guidelines as far as which implementation I should use in such a scenario? Should my main() method be written to depend on the bean/application configuration to be in XML format - is that a safe assumption, or am I locking the user into something specific? And does this answer change in a web environment - if any of my classes needed to be aware of Spring, are they more likely to need ApplicationContext? Thanks for any help. I know a lot of these questions are probably answered in the reference manual, but I'm having a hard time finding a clear breakdown of these two interfaces and the pros/cons of each without reading thru the manual with a fine-tooth comb.", "I have an expression for a covariance matrix $C$ in terms of the indices $i$ and $j$. In this way I can analytically calculate the elements of my covariance matrix, however when I try to invert $C$ matlab gives a warning about the matrix being close to singular. The inversion therefore doesn't work, by which I mean the multiplying $C$ by the inverse given i do not get the identity. I have tried calculating the pseudo inverse but this also does not work. I have also tried adding a small constant along the diagonal but again the results do not work. In general I'm working with matrices of dimension 1200 but I will give low dimensional example matrix that has the same properties, i.e. the matrices are symmetric about the diagonal and the anti-diagonal 19.9939 19.9954 19.9958 19.9951 19.9933 19.9905 19.9865 19.9954 19.9973 19.9981 19.9978 19.9965 19.9940 19.9905 19.9958 19.9981 19.9993 19.9995 19.9985 19.9965 19.9933 19.9951 19.9978 19.9995 20.0000 19.9995 19.9978 19.9951 19.9933 19.9965 19.9985 19.9995 19.9993 19.9981 19.9958 19.9905 19.9940 19.9965 19.9978 19.9981 19.9973 19.9954 19.9865 19.9905 19.9933 19.9951 19.9958 19.9954 19.9939 As mentioned in the title the matrix isn't positive, however the the negative eigenvalues are very small suggesting that the matrix is not positive only due to machine precision. The negative eigenvalues are $-1.4048e-14$ and $-2.4571e-15$. How can I go about inverting these matrices?", "Who was the piano player that Starbuck met in the bar on Galactica? Towards the end of season four, Starbuck meets a piano player in the makeshift bar on Galactica. Now, it appears that this guy is some kind of ghost/angel like Caprica-6 and the ghost Baltar - but I have an idea that he could also be the original copy of the seventh model (Daniel). It's mentioned right in the episode before that Cavil poisoned all of the bodies that were being prepared to accept a copy of Daniel - but it's ambiguous about the fate of the original cylon with that personality. Daniel was also mentioned as an 'artist' and 'sensitive' person. So - could it have been Daniel that helped Starbuck realise what the music meant?", "Local polynomial regression: Why does the variance increase monotonically in the degree? How can I show that the variance of local polynomial regression is increasing with the degree of the polynomial (Exercise 6.3 in Elements of Statistical Learning, second edition)? This question has been asked but the answer just states it follows easliy. More precisely, we consider $y_{i}=f(x_{i})+\\epsilon_{i}$ with $\\epsilon_{i}$ being independent with standard deviation $\\sigma.$ The estimator is given by $$ \\hat{f}(x_{0})=\\left(\\begin{array}{ccccc} 1 &amp; x_{0} &amp; x_{0}^{2} &amp; \\dots &amp; x_{0}^{d}\\end{array}\\right)\\left(\\begin{array}{c} \\alpha\\\\ \\beta_{1}\\\\ \\vdots\\\\ \\beta_{d} \\end{array}\\right) $$ for $\\alpha,\\beta_{1},\\dots,\\beta_{d}$ solving the following weighted least squares problem $$ \\min\\left(y_{d}-\\underbrace{\\left(\\begin{array}{ccccc} 1 &amp; x_{1} &amp; x_{1}^{2} &amp; \\dots &amp; x_{1}^{d}\\\\ \\vdots\\\\ 1 &amp; &amp; &amp; &amp; x_{n}^{d} \\end{array}\\right)}_{X}\\left(\\begin{array}{c} \\alpha\\\\ \\beta_{1}\\\\ \\vdots\\\\ \\beta_{d} \\end{array}\\right)\\right)^{t}W\\left(y-\\left(\\begin{array}{ccccc} 1 &amp; x_{1} &amp; x_{1}^{2} &amp; \\dots &amp; x_{1}^{d}\\\\ \\vdots\\\\ 1 &amp; &amp; &amp; &amp; x_{n}^{d} \\end{array}\\right)\\left(\\begin{array}{c} \\alpha\\\\ \\beta_{1}\\\\ \\vdots\\\\ \\beta_{d} \\end{array}\\right)\\right) $$ for $W=\\text{diag}\\left(K(x_{0},x_{i})\\right)_{i=1\\dots n}$ with $K$ being the regression kernel. The solution to the weighted least squares problem can be written as $$ \\left(\\begin{array}{cccc} \\alpha &amp; \\beta_{1} &amp; \\dots &amp; \\beta_{d}\\end{array}\\right)=\\left(X^{t}WX\\right)^{-1}X^{t}WY. $$ Thus, for $l(x_{0})=\\left(\\begin{array}{ccccc} 1 &amp; x_{0} &amp; x_{0}^{2} &amp; \\dots &amp; x_{0}^{d}\\end{array}\\right)\\left(X^{t}WX\\right)^{-1}X^{t}W$ we obtain $$ \\hat{f}(x_{0})=l(x_{0})Y $$ implying that $$ \\text{Var }\\hat{f}(x_{0})=\\sigma^{2}\\left\\Vert l(x_{0})\\right\\Vert ^{2}=\\left(\\begin{array}{ccccc} 1 &amp; x_{0} &amp; x_{0}^{2} &amp; \\dots &amp; x_{0}^{d}\\end{array}\\right)\\left(X^{t}WX\\right)^{-1}X^{t}W^{2}X\\left(X^{t}WX\\right)^{-1}\\left(\\begin{array}{ccccc} 1 &amp; x_{0} &amp; x_{0}^{2} &amp; \\dots &amp; x_{0}^{d}\\end{array}\\right)^{t}. $$ My approach: An induction using the formula for the inverse of a block matrix but I did not succeed. The paper by D. Ruppert and M. P. Wand derives an asymptotic expression for the variance for $n\\rightarrow\\infty$ in Theorem 4.1 but it is not clear that is increasing in the degree." ]
medi_sts_stackexchange_dupe
(update to 14.04) unity is not loading after I login to the admin profile after upgrade
Problems after upgrading to 14.04 (only background and pointer after login)
[ "Check whether $\\sum _{m=1}^{\\infty }\\sum _{n=1}^{\\infty }\\frac{1}{\\left(m+n\\right)^2}$ converges or NOT?", "iOS Calendar Access Permission Dialog, force it to appear?", "Splitting raster into smaller chunks using GDAL? I have a raster (USGS DEM actually) and I need to split it up into smaller chunks like the image below shows. That was accomplished in ArcGIS 10.0 using the Split Raster tool. I would like a FOSS method to do this. I've looked at GDAL, thinking surely it would do it (somehow with gdal_translate), but can't find anything. Ultimately, I'd like to be able to take the raster and say how large (4KM by 4KM chunks) I would like it split up into.", "How do I set up a \"secure\" open resolver? This is a about securing public DNS resolvers Open DNS servers seem pretty neat and convenient, as they provide IP addresses that we can use consistently across our company regardless of where they are located. Google and OpenDNS provide this functionality, but I'm not sure that I want these companies to have access to our DNS queries. I want to set up something like this for use by our company, but I hear a lot about this being dangerous practice (particularly in regards to ) and I want to make sure that we do this right. What things do I need to keep in mind when building this type of environment?", "I have a site with Google Maps on most of the pages. When inspecting content keywords in Google Webmaster tools, content keywords identified by Google-bot for the site include \"imagery\", \"sorry\" and \"here\". These turn out to be part of an error message returned by Google Maps: \"Sorry, we have no imagery here\". I cannot reproduce this error with normal clients, nor does \"fetch as Google\" show it. The problem is presumably that Google-bot tries to execute some of the Google Maps Javascript but then shoots itself on the foot and records the error message. A shows that this problem is endemic to sites across the internet, including Yelp and many others. I'd like to convince Google that my site is not about imagery and being sorry, but I'd also like to keep the maps in place. I guess one option would be to transition to , but that's not a great alternative. There's some , no resolution.", "I'm working on an app that requires no user input, but I don't want the iPhone to enter the power saving mode. Is it possible to disable power saving from an app?", "We don't get much snow in the UK, so I don't have much experience photographing it, and when I tried photographing falling snow last year I found it very hard to capture the snowflakes in the air — they either didn't show up or were just streaks. Is there a shutter speed that is best for this? I don't want to use flash to do so. Any other snow photography tips welcome from those in snowier places!", "I used osm2pgsql to import data into my PostgreSQL database and it put gave me the following 4 tables, planet_osm_point, planet_osm_line, planet_osm_polygon and planet_osm_roads. I have looked at the schema for osm2pgsql and inside the planet_osm_point table there is a column 'way' of type point. I tried to query it as an array like it says in the documentation here (): It is possible to access the two component numbers of a point as though the point were an array with indexes 0 and 1. For example, if t.p is a point column then SELECT p[0] FROM t retrieves the X coordinate and UPDATE t SET p[1] = ... changes the Y coordinate. In the same way, a value of type box or lseg can be treated as an array of two point values. Anyone know the correct query the planet_osm tables from osm2pgsql based on long/lat? For example if I wanted to retrieve the information for Big Ben (London) I would query along the lines of: SELECT * FROM planet_osm_point WHERE ST_Y(ST_Transform(way, 4326)) = '-0.12' AND ST_X(ST_Transform(way, 4326)) = '51.5'; There is no error message, it comes out with the table names, but no data is output either. (Its an empty table). What am I doing wrong here? Perhaps it is too precise, i.e. there are no coordinates that match it exactly? Perhaps I need to try being more general, say 51 &lt; long &lt; 52 and -0.5 &lt; lat &lt; 0. Although this would throw back multiple results so would not be quite as accurate.", "Difference of Gamma random variables", "What is the rule for omitting/including the definite article in the following sentences: I used to play piano. I used to play the piano. I would pick the first sentence, but I've heard people say the second sentence even when they are not referring to a specific piano. Which one is correct?", "How does Ubuntu partition the disk when we choose \"Erase disk and install Ubuntu\" during installation?", "Is the set of all unitary matrices in $M_2(\\mathbb{C})$ is compact? I can show that as determinant map is continuous so unitary matrices are closed but how to show they are bounded? Please help.", "Show that the set of functions $\\mathbb{N}\\to\\{0,1\\}$ is not countable Recall that a countable set $S$ implies that there exists a bijection $\\mathbb{N}\\to S$. Now, I consider (0,1). I want to prove by contradiction that $(0,1)$ is not countable. First, I assume the contrary that there exists a bijection $f$, and I can find an element in $S$, but not in the range of $f$. But I can't find such element. How can you construct such $f$?", "Are split infinitives grammatically incorrect, or are they valid constructs? Mark's generosity in this crisis seems to more than make up for his earlier stinginess. Should those sentences always be avoided, or are there cases where they are valid?", "I'm thinking about installing Ubuntu Desktop, but I don't know what flavor is the best for my system. What are the minimum and recommended hardware requirements? What kind of CPU? How much memory? Should I have Hardware Acceleration? What flavor should I use? This is an attempt of a canonical answer. My answers have the &quot;official requirements&quot;, the recommended are a mix of official sources and opinion based (along with the answer it's told the source). You can comment or edit if you feel that the information is obsolete or incomplete. It is a good rule of thumb that any system capable of running Windows Vista, 7, 8, x86 (Intel) OS X will almost always be a lot faster with any Ubuntu flavor even if they are lower-spec than described below.", "I am looking for either an online tool or one that I can download to convert DD to DMS. For example, I want to convert from: 41.590833, -93.620833 to 41° 35′ 27″ N, 93° 37′ 15″ W ... Those are the coordinates, according to , for Des Moines.", "I asked a question but, rather stupidly, added extra information after it had been answered. My additional question is this: I have a table with varying lengths of words. I want to encircle different groups of cells, including diagonals. If possible, it would be great if the rectangles don't overlap each other where possible. I looked at the answer , which, whilst tedious, worked except for the overlap. This is where I've got to so far: \\documentclass[fleqn,12pt,a4paper,landscape]{article} \\usepackage{tikz} \\usepackage{tabularx} \\begin{document} % Introduce a new counter for counting the nodes needed for circling \\newcounter{nodecount} % Command for making a new node and naming it according to the nodecount counter \\newcommand\\tabnode[1]{\\addtocounter{nodecount}{1} \\tikz \\node (\\arabic{nodecount}) {#1};} % Some options common to all the nodes and paths \\tikzstyle{every picture}+=[remember picture,baseline] \\tikzstyle{every node}+=[inner sep=0pt,anchor=base, minimum width=1.8cm,align=center,text depth=.25ex,outer sep=1.5pt] \\tikzstyle{every path}+=[thick, rounded corners] \\begin{table}[ht] \\begin{minipage}[b]{1 \\linewidth}\\centering \\begin{tabular}{cccccc} % Turn the cells needed for defining the circling paths into nodes with our custom command \\tabnode{Long ago}&amp; \\tabnode{A few days ago}&amp; \\tabnode{Day before yesterday}&amp; \\tabnode{Yesterday} &amp; &amp; \\\\ &amp; &amp; &amp; &amp; \\tabnode{Today} &amp; \\tabnode{Now}\\\\ \\tabnode{Long time in the future}&amp; \\tabnode{A few days on}&amp; \\tabnode{Day after tomorrow}&amp; \\tabnode{Tomorrow} &amp; &amp; \\\\ \\end{tabular} \\end{minipage} \\begin{tikzpicture}[overlay] % Define the circle paths \\draw [blue](1.north west) -- (1.north east) -| (7.north east) |- (7.south west) |- (1.north west); \\draw [red](8.south west) -| (2.north east) -| (2.south west) |- (8.south west); \\draw [yellow](9.south west) -| (3.north east) -| (3.south west) |- (9.south west); \\draw [green](8.south west) -| (3.north east) -| (2.south west) |- (8.south west); \\end{tikzpicture} \\end{table} \\end{document} %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% End:", "I am lost in normalizing, could anyone guide me please. I have a minimum and maximum values, say -23.89 and 7.54990767, respectively. If I get a value of 5.6878 how can I scale this value on a scale of 0 to 1.", "Is anti-gravity (i.e. repulsive gravity) possible in theoretical physics? Is (i.e. repulsive gravity) possible in string theory? I have read some articles about scientists making assumptions about the existence of anti-gravity, but is it possible in string theory?", "I'm reading a proof about Lagrangian => Hamiltonian and one part of it just doesn't make sense to me. The Lagrangian is written $L(q, \\dot q, t)$, and is convex in $\\dot q$, and then the Hamiltonian is defined via the Legendre transform $$H(p,q,t) = \\max_{\\dot q} [p \\cdot \\dot q - L(q, \\dot q, t)]$$ Under the right conditions there exists a function $\\dot Q (p,q,t)$ such that $$H(p,q,t) = p \\cdot \\dot Q(p,q,t) - L(q, \\dot Q(p,q,t), t)$$ i.e. when some $\\dot Q(p,q,t)$ satisfies $p = \\frac{\\partial L}{\\partial \\dot q}\\rvert_{(q, \\dot Q(p,q,t), t)} = \\frac{\\partial L}{\\partial \\dot q}(q, \\dot Q(p,q,t), t)$ (Finding this function is usually called \"inverting p\") By taking partials in the $p$ variable and using the relationship, we can obtain the relationship $$\\dot Q = \\frac{\\partial H}{\\partial p}$$ Because of the notation I chose, I get the strong urge to say $\\dot q = \\frac{\\partial H}{\\partial p}$ , and in fact this is what the textbook does. But have we proved this? In other words, how can we deduce that $$q'(t) = \\frac{\\partial H}{\\partial p}(p(t), q'(t), t)$$ for any differentiable vector valued function $q$? (or maybe there are more conditions we need on $q$? Here $$p(t) = \\frac{\\partial L}{\\partial \\dot q}(q(t), q'(t), t)$$ according to Lagrange's equations." ]
medi_sts_stackexchange_dupe
SFDX Can't Pull Source from Scratch Org "Metadata API received improper input" AppMenu and AppSwitcher
SFDX Pull fails because of AppMenu/AppSwitcher
[ "How is (p ∧ q ∧ ¬r) ∨ (p ∧ ¬q ∧ ¬r) ≡ (p ∧ ¬r) ∨ (¬q ∧ q)? Is it really distributive property?", "Explanation of C++ FAQ's unsafe macro?", "How to prove $D^n/S^{n-1}\\cong S^n$? In my textbook it is said that the quotient space $D^n/S^{n-1}$ is homeomorphic to $S^n$. I can imagine it for $n=2$, but fail to make a mathematical proof for any dimension. Can anyone provide a rigorous proof?", "I am using the full pager in views module. I am displaying 40 items per page. The full pager display links like this 1 2 3 4 5 next last I want to change it to this 1-40 41-80 81-120 next How will I do this? Any idea about this?", "Is a closed subset of a compact set (which is a subset of a metric space $M$) compact? Is there a way to prove this using sequential compactness instead of open cover definitions? My first gut reaction was that the fact was obvious since we can show that the closed subset $[a,b]$ is compact in $\\mathbb R$.", "As , the retag privilege serves a lot more confusion and a lot less of its benefit due to the suggested edit system. It must be done away with. It will be done away with. ♪ In light of this decided course of action, we're going to need a new snack for the road between \"Create Tags\" at 300 reputation and \"Established User\" at 1000 reputation. We'd like your help in thinking about some ideas on what would be a nice privilege to sit at this level. Since we're... a bit dry on our end. The primary guideline in deciding what kind of privilege to put here is acknowledging its position in the overall hierarchy of privileges. 500 reputation is an early-intermediate user, one who has started to really get the hang of the site and its function. It can be something that provides convenience in how they currently can act on the site, or it could be some new functionality that fits as an early ability (especially considering there's no new abilities until 2000 reputation's \"Edit Everywhat\" ability). I look forward to hearing what creative ideas y'all can provide.", "How can I make my IP address appear to be from another country? How do I make it appear that my IP address is coming from one country while I'm located in another? I live in Germany and some websites (like Hulu or Youtube) don't work because my IP isn't in the US. How do I get around this? Do I have to use a proxy or something? Moderator note Super User does not endorse nor defend any activity which may be used to circumvent local/state/national laws.", "We now that Fermat's last theorem is true so there are not positive integer solutions to $$x^n+y^n=z^n$$ for $n\\in\\mathbb{N}$ and $n&gt;2$. But what about if $n\\in\\mathbb{R}$ or $n\\in\\mathbb{R}^+$?", "Can I speed up iCloud photo sync between iPhone and Macbook? I have an iPhone 5 running iOS 9.1 and a Macbook Pro running Yosemite. Both devices are set up to sync photos to and from iCloud. When I take a photo on the iPhone (for further processing on the Macbook), it takes an inordinate amount of time until the photo shows up in the Macbook's photos library - sometimes up to 10-20 minutes. Sometimes it seems to work faster if I quit the Photos app on both devices, and start it again. I often end up sending myself photos through E-Mail because it's quicker. That seems ridiculous! Is there a way to force a sync on the iPhone, or to speed up the process some other way?", "How can I work around this TikZ bug: (\\x)^2 and \\x^2 produce different results in TikZ plot? I have some files with TikZ graphics that have suddenly changed appearance since I upgraded to PGF-2.10. Here is a minimal example: \\documentclass{minimal} \\usepackage{tikz} \\begin{document} \\pgfversion\\par \\begin{tikzpicture} \\draw[blue] plot[domain=-1:1] (\\x,{\\x^2 + \\x^3}); \\draw[xshift=4cm,blue] plot[domain=-1:1] (\\x,{(\\x)^2 + (\\x)^3}); \\end{tikzpicture} \\end{document} In PGF 2.00 I had this: while in 2.10 I have this: The one on the left in PGF 2.10 looks like the graph of y=x^3 but could also be y=x^3 + x|x|. This has been on sourceforge and on the pgf-users mailing list. Although I haven't checked myself yet, the bug remains open and some of the commenters below report that problems still exist in the CVS version. Geoffrey Jones notes the bug is in the 2.00 CVS version: Hi Matthew, not an answer, just an FYI that's too large for the comment box. My compile of your code through pgf v2.00 produces the result you see with v2.10, above: I.e., the difference you observe seems to pre-date v2.10. There is a workaround by inserting parentheses. But since I have so many old lecture files I'd rather find a solution that doesn't involve rewriting my TikZ code. And I'm squeamish about using the CVS bleeding edge code even if it were fixed, since I don't want to introduce other problems. Ideally I'd like a simple patch that I can stick at the preamble, or just fix one file in the PGF distro.", "How do methods compare in terms of model variance and bias? My question is partly motivated by this thread: . The answer there suggests that models learned with leave-one-out cross-validation have higher variance than those learned with regular $K$-fold cross-validation, making leave-one-out CV a worse choice. However, my intuition tells me that in leave-one-out CV one should see relatively lower variance between models than in the $K$-fold CV, since we are only shifting one data point across folds and therefore the training sets between folds overlap substantially. Or going in the other direction, if $K$ is low in the $K$-fold CV, the training sets would be quite different across folds, and the resulting models are more likely to be different (hence higher variance). If the above argument is right, why would models learned with leave-one-out CV have higher variance?", "What is the difference between Gödel's completeness and incompleteness theorems?", "Why don’t I have the Get Windows 10 icon? I want to get Windows 10, but I do not see this icon in the notification area (tray): How do I get the icon to get Windows 10?", "How to convince airport security that I am not dangerous when having metallic parts in my body? I had an operation some time ago and now I have small screws in my shoulder which will not be removed anymore. When I decided to fly for vacation, I supposed that these will may bring me into trouble at the airport when going through the metal detector. So I asked my doctor and at the hospital if there is any kind of \"passport\" or something similar which confirms the screws in my shoulder so that I do not get into many problems. Unfortunately, they told me such things do only exist if you get a new knee or something, not if you just have a few screws in your body. When I flew from Vienna to Amsterdam and back, my fears were confirmed: The security staff inspected me very precise, and I had to explain them my story. Thank god I have some scars left so they believed me! However this is not a permanent solution for the future. Is there any international \"passport\" which my doctor and hospital do not know about? If not, what else are my possibilities? I am not that afraid when travelling within the EU, however I fear that this situation might get quite dangerous when I'm in other countries...", "Restrict node list in entity reference field based on node field My \"Article\" nodes have a \"domain\" field that links to a taxonomy term. My \"Article\" nodes also have a repeatable \"entity reference\" field \"more like this\" that links to other \"article\" nodes. How can i restrict the list in the \"more like this\" field to show only the nodes that have the same \"taxonomy term\" that the node i am currently editing ? Thanks a lot !", "Can I use images rendered with blender for commercial use? If I make a scene and then render it with BR or Cycles, am I allowed to use that image in a commercial project? Do I need to include any copyright notice or license?", "Shortcut for toggling between different windows of same app?", "How do I counter-knife an enemy? When you press down the right stick to counter the attack, do you just press it, repeatedly press it, or press and hold? I've been knifed a few times from the front and each time I try to counter I fail. Also, if you believe you are about to be knifed and hold down the right stick until you are knifed, will that counter an attack, or do you have to press it down just at the right time?", "In Google Sheets how do I duplicate a sheet along with its permission In a Google Spreadsheet called Attendance there is a sheet called Template. The user duplicates this sheet, renames the sheet with current date and uses this sheet to mark attendance for students. The Template sheet contains protected cells and the attendance is marked by entering Student's ID number in the space given (unprotected cells). I use the following script to duplicate multiple sheets and rename them everyday: function createDailyAttendance() { var ss = SpreadsheetApp.getActiveSpreadsheet(); var refss = ss.getSheetByName(\"DataPointers\"); // Get the range Row and Column information. var dataRangeRow = refss.getRange(\"K2\").getValue(); //var dataRangeCol = ss.getRangeByName(ColName).getValue(); // Get the range of cells that store Duplicate sheet name. var AttendanceDataRange = refss.getRange(dataRangeRow); var AttendanceObjects = AttendanceDataRange.getValues(); var template = ss.getSheetByName('Template'); for (var i=0; i &lt; AttendanceObjects.length; i++) { // Put the sheet you want to create in a variable var sheet = ss.getSheetByName(AttendanceObjects[i]); // Check if the sheet you want to create already exists. If so, // log this and loop back. If not, create the new sheet. if (sheet) { Logger.log(\"Sheet \" + AttendanceObjects[i] + \"already exists\"); } else { template.copyTo(ss).setName(AttendanceObjects[i]); } } return; } This script helps me create multiple copies of sheets from Template but the duplicate copies do not retain the Cell/Range permissions. Is there a way to add a loop function which extracts permission from Template and applies it every time the loop template.copyTo creates a sheet?", "how to create a roster sheet in sharepoint 2010" ]
medi_sts_stackexchange_dupe
jQuery height animation jumps when animation is complete
jQuery animate()
[ "$a+b+c = 3$, prove that :$a\\sqrt{a+3}+b\\sqrt{b+3}+c\\sqrt{c+3} \\geq 6$ $a, b,c $ are positive real numbers such that $a+b+c = 3$, prove that :$a\\sqrt{a+3}+b\\sqrt{b+3}+c\\sqrt{c+3} \\geq 6$ Any ideas ?", "I have a shapefile and I want to change the order of the features. Is that possible? I want to sort the features in the shapefile because I'm embedding this shapefile in a mobile app. The app will display a list of features, and although I could do the sorting at load time, I'd prefer to have them sorted.", "This might be a completely wrong question, but this is bothering me since many days ago. Given the mass (Sun) curves the space around it, gravitation is the result of such curved space (Correct me if I am wrong, source: A Documentary film). Given any point on a circle with center same as center of the mass, curvature in the space should be equal (Intuition). Planets rotate around the Sun because of the curve in the space they should follow a circular path and the distance between planet and Sun should be at a distance. Given the fact that earth has a elliptical orbit around the sun, and the distance between Earth and Sun varies according to position of the earth. Why do we have a elliptical orbit not a circular orbit.", "I washed and dried my passport by mistake, do I need a new one? Around two years ago I washed and dried my passport by mistake at the laundry room. My ID, my old US student visa and my stamps from european countries are still readable but the pages are not \"flat\" anymore and the front cover is kind of erasing (some parts of the Brazil symbol is gone). In April I'll travel to US for a conference, I'll need to get a new US visa (B1/tourism visa) but I'm worried if my passport is not \"good to go\" anymore because it was \"washed and dried\". Apparently there is an electronic chip in it and I don't know if it is still working. Should I get a new passport or can I save some money and time and use this one? It expires only in 2019.", "Redshift of merging black holes How did they found that the gravitational waves where emitted at redshift $z=0.09$? I understand the measurement of redshift for an electromagnetic wave where we have measured in a lab various transitions and therefore we can make a comparison with the wavelength we receive. But how can they manage to get the redshift for the emitter of gravitational waves, since we have no reference?", "I don't know so much about coordinate systems... In my office we use to deal with spatial data coming from archaeological sites. Each site has its own x-y-z coordinate system (GCS). Three simple ortogonal cartesian axis. In the last years we have been managing this spatial data through GIS software (ArcGIS), without using specific coordinate system (just leave it as \"undefined\") I'd like to know if there exisits any GCS designed to deal with such datasets using simple cartesian orthogonal axis, without grid distortions of the typical GCS. In addition, I'd like to know if this system is suitable for using it in an online mapping application. By the way, we manage 2D (ArcMap) and 3D (ArcScene) environments and work with \"mm\" as length base unit. If such a thing doesn't exists, maybe someone knows how to create it.", "Symbolic links error while creating Ubuntu UEFI bootable USB I have tried to create UEFI bootable USB drive within Ubuntu 14.10 (Startup disk creator didn't help nor I am interested in using it.). I have formated USB with FAT32 and GPT. So the only thing left to do would be just to copy all files from ISO to USB. That method worked when it comes to Linux Mint 17.1 and Clonezilla live CD, but when I tried to create bootable USB for Ubuntu 14.04 or Kubuntu 15.04 beta 1 there was an error copying files. Actually, on several occasions (4 or 5) pop-up window appeared. After ignoring this errors, both Ubuntu and Kubuntu USB boot-up just fine, with no apparent problems in Live mode. Can someone please elaborate what this symbolic links presents? Will this cause some problem when OS is installed?", "I can't get the coordinates on my computer because it keeps changing the brightness. I have a windows 8 Samsung, and I'm playing Minecraft version 1.6.4.", "ASP.NET MVC Custom Error Handling Application_Error Global.asax?", "Is my US visa still valid after change in name? I'm a Malawian national and I got US Visa years back. Recently, due to some reasons, I had to get my first name partially changed on my passport. I have got an affidavit certificate stating the reason and proof. Since the visa on my old passport has still not expired, but there is a difference in first name, will I face any problem?", "How can I get to Iceland on a cargo ship? Planning a low budget and environment friendly trip to Iceland from Helsinki, Finland next summer for me and my friend. Haven't been able to find relevant information on possibility for cargo travel (from where - eg. Norway, Denmark? - timetables, prices etc). Expected departure from Helsinki around June 18th, return at latest on July 7th 2015. I'm very thankful for any related advice (and first time on stackexchange, so apologies if I didn't formulate my question in a best possible way)", "Which of the following polynomials are subspaces of $\\mathbb{P}_n$ for an appropriate value of n? Definition. A subspace of a vector space V is a subset H of V that has three properties (a) The zero vector of V is in H. (b) $\\forall$ u, v $\\in H$, we have u + v $\\in H$. (c) $\\forall$ u $\\in H$, c scalar, we have c u $\\in H$. For $n \\geq$ 0, denote $\\mathbb{P}_n$ to be the set of all polynomials of degree at most $n$. Which of the following are subspaces of $\\mathbb{P}_n$ for an appropriate value of $n$? Support your answer with reason. (a) All polynomials of the form $p(t) = a + t^2$, where $a \\in \\mathbb{R}$. (b) All polynomials of degree at most 3, with integers as coefficients. Solution: Both the statements (a) and (b) above are not subspaces of $\\mathbb{P}_n$. Reason: For part (a), All polynomials of the form $p(t) = a + t^2$, where $a \\in \\mathbb{R}$, is not a subspace because it failed to meet the standards of the first property stated above, that is, the coefficient of the $t^2$ term is always a 1, therefore the zero vector is not in this subspace of polynomials. For part (b), All polynomials of degree at most 3, with integers as coefficents is also not a subspace becuase it as well failed to meet the standards of the third property, that is, integer coefficents, when multiplied by a real scalar, will not necessarily be of integer type leading to integer coefficents. Thusly, the resulting polynomial will not be in the subset of polynomials $\\mathbb{P}_n$. $\\Box$ Can someone please look at this and see if I have the right idea and approach to this question. Thank You", "Let $m$ and $n$ be two integers. Prove that if $m^2 + n^2$ is divisible by $4$, then both $m$ and $n$ are even numbers. I think I have to use the contrapositive to solve this. So I assume $\\neg P\\implies Q$ and I have to derive $\\neg Q$? I know its easier to show odd numbers rather than even... but im still unsure how to do this practice problem.", "How can one refute John Searle's \"syntax is not semantics\" argument against strong AI?", "Why are cryptography algorithms not exported to certain countries? There have been strict laws about the export of crypto software to certain countries. I can understand the intent, but never gauged the fact that there is nothing stopping these countries from developing their own crypto software. So why limit the export? And in light of the recent NSA revelations, of backdoors being engineered into crypto algos, wouldn't the export of such compromised algorithms have helped to unravel secrets?", "How do I boot into a root shell? When booting to the graphical desktop fails we sometimes are recommended to boot into a \"root shell\" or to boot in \"recovery mode\". How do I do that?", "Irreducible conics An algebraic set (not necessairly a variety) $X \\subseteq \\mathbb{A}^2$ defined by a polynomial of degree $2$ is called a conic. The problem is: Show that any irreducible conic is isomorphic either to $Z(y-x^2)$ or to $Z(xy-1)$ after an affine change of coordinates in $\\mathbb{A}^2$. However, with this definition of conic, I only can conclude that if the polynomial is irreducible, then the conic is irreducible (because $f$ irreducible $\\Rightarrow Z(f)=X$ is irreducible) What can I do to prove that if a conic is irreducible, then the polynomial that defines the conic is irreducible? And for the main problem, how can I do the affine change of coordinates? Thanks", "In C# why can't a conditional operator implicitly cast to a nullable type", "Asymptote: when white isn't white I'm trying to display a white 3D ball with Asymptote (3D PDF), but it always turns up gray: import graph3; import solids; defaultrender.merge=true; size(10cm,0); currentprojection=orthographic(-Z); //currentlight=Headlamp; //currentlight=light(-10,1,1); //currentlight=White; currentlight=Viewport; draw(unitsphere,rgb(1,1,1)); I understand it's a lighting issue, and I've tried playing with its settings (the lines commented out in my source are some of my attempts), but I never manage to have white be white. If I understand correctly, I need a whiter diffuse component in my light, but I cannot see how to achieve that. And the documentation is not very clear… This will be part of a molecular model, and the rendering I'm going for it something like this:", "The title kind of says it all. Is it possible to replace C# with C++ on a game using Unity?" ]
medi_sts_stackexchange_dupe
Select and copy all the elements inside Code tag using Jquery
How do I copy to the clipboard in JavaScript?
[ "Number of automorphisms of a direct product of two cyclic $p$-groups", "Can I install items on Ubuntu, without using the command line? Everything I've googled so far has used the command line?", "Opening a context menu (with the Menu key)", "The the title is self explanatory, I guess. Why can two (or more) electric never cross?", "How to pronounce \"Moderators's\"? If I want to use the plural of &quot;moderator&quot; and also add the apostrophe plus S, how do I pronounce it? How do native speakers pronounce it? Moderators = moderatorz Moderators's = moderatorziz or just moderatorz? A sentence is: &quot;I always thought that moderators's decisions seemed fairly arbitrary.&quot; I guess moderatorziz is correct but it sounds weird to me. Do native speakers pronounce it as moderatorziz?", "Should I really have been awarded mortarboard on a Per-site meta?", "Coconut Water from White vs Brown Coconuts", "After using `networksetup -setdnsservers Wi-Fi \"8.8.8.8\" \"8.8.4.4\"` how do I clear them? I'm looking to script a temporary DNS server change to override the DHCP response I get from the network. I've figured out I can use networksetup but once we're done testing. Before I push to production, I figure I should know how to undo this. How can I script to clear these changes and restore the settings the network provides now as if I never ran the following script? networksetup -setdnsservers Wi-Fi \"8.8.8.8\" \"8.8.4.4\" It's not feasible to save any the previous settings and I'm looking to remove the setting so that the actual new values can be retrieved from the network as opposed to saving what the settings were previously so I don't save an old value that is no longer correct. Basically, I'm looking to ipconfig /renew on macOS.", "How to use \"tens of\" and \"hundreds of\"? If I'm not mistaken, tens of means 10 to 99 and hundreds of means 100 to 999. Is this correct? I found in some dictionaries that tens of is actually not correct. I also found that hundreds of could also mean any arbitrary large number. So how would people usually interpret hundreds of? Based on context? In my case, I want to describe numbers of some items that are usually 50-90 but sometimes could be around 100-200, but definitely not as many as 300 or so. I want to really emphasize that there are a lot of these items. In this case, can I say \"... have tens or even hundreds of ...\"? Would people misinterpret what I actually want to say?", "What does [param: NotNull] mean in C#?", "What if the Earth stops in its orbit and instead falls straight towards the Sun? The Earth orbits around the Sun because it has angular momentum. If we stopped the Earth in orbit and then let it fall straight towards the Sun, how long would it take to reach the Sun in seconds? Details and assumptions The mass of the sun is 2*10^30 Kg. The mass of the earth is 6*10^24 Kg. The earth is 149,600,000 Km from the Sun. You may treat the Earth and Sun as point masses.", "Connection between rank and matrix product I have a problem understanding the following: Let $A$ be an $m \\times n$ matrix and let t $\\in \\mathbb{N}$. Prove that $\\operatorname{rank}(A)\\leq t$ if and only if there exists an $m \\times t$ matrix $B$ and a $t \\times n$ matrix $C$ so that $A = BC$. I know what a rank is but I can't make a connection between the rank and the existence of two matrices such that $A = BC$.", "change caption in tufte class full-page figure I've tried to change the caption in a full-width float with tufte-book, but to no avail. I want the caption in this figure to be like more common LaTeX classes. Here is a MWE and the result: \\documentclass[a4paper,nohyper]{tufte-book} %abstracton \\usepackage{fontspec} \\defaultfontfeatures{Ligatures={TeX}} \\setmainfont[Numbers={OldStyle}]{Minion Pro} %or any other font \\setsansfont{Myriad Pro} % or any other font \\setmonofont[Scale=MatchLowercase]{Menlo} \\usepackage{graphicx} \\usepackage{wrapfig} \\usepackage{sidecap} \\usepackage[dvipsnames]{xcolor} \\usepackage{polyglossia} \\setmainlanguage{brazil} \\usepackage[bookmarks]{hyperref} %\\usepackage[font=sf, labelfont={sf}, margin=1cm]{caption} \\newfontfamily{\\A}{Al Bayan} \\begin{document} \\begin{figure*} \\centering \\includegraphics[width=.9\\textwidth]{./camp-scene} \\caption{Cena de Acampamento. Mir Sayyid Ali, séc. XVII. 28,4 x 20 cm. Harvard University Art Museums, 1958.75. Os tecidos preenchiam a vida tanto dos nômades quanto dos habitantes das cidades, cobrindo o chão e definindo o espaço. O papel onipresente dos tecidos é visto numa pintura de um acampamento nômade, atribuído ao pintor persa do século XVI Mir Sayyid Ali.} \\label{fig:camp-scene} \\end{figure*} \\end{document}", "I try to launch Firefox over SSH, using ssh -X user@hostname and then firefox -no-remote but it's very very slow. How can I fix this? Is it a connection problem?", "App Store asks for old Apple ID when installing updates I got a MacBook that a colleague of mine had used previously. It runs OS X 10.10.2. I created a new administrator account for myself and turned off the \"admin\" flag on the old account. I also entered my iCloud / Apple ID account, so that it syncs my calendars and contacts correctly, and even in the App Store, I am signed in with my correct account. But when I try to install pending software updates (that is, OS X system updates!), the window that pops up has the the e-mail address of my colleague filled in and greyed out—and I can't change it. Note that I'm signed in with a different (correct) account in the App Store. When I go to Featured and click Account on the right, it has my correct e-mail address filled in: How do I make the App Store \"forget\" the old Apple ID? I where it just says \"it's not possible\", and that apps are glued to the original account the Mac was set up with, but that doesn't make a lot of sense, especially in a company where laptops may be handed over from one person to another.", "What price should I charge for design services? I was hoping I would find some people in the industry that could help me decide what's the best price to charge to design (in this case) business cards. What are standard prices for professional designers? From a firm point of view? From a freelancer? I don't want to overcharge clients but I don't want to ruin the industry by underselling my services.", "What's is the origin of Orbital Angular Momentum of electrons in atoms? Consider the Hydrogen 1s electron. We know that, in the quantum picture, the electron isn't orbiting or rotating at all, rather we simply state that the electron is spread over the entire space with the probability of finding it being maximum a radial distance $R$ (=Bohr radius) away from the nucleus. This helps explain why the electron does not radiate EM radiation while in the atom. But, with this understanding, I do not understand the source of the orbital angular momentum. Is it intrinsic like the spin?", "What the difference is here? Are you seeing ? VS Do you see? Are you seening family members arriving at the hospital to find some of the miners? ( exact quote from BBC presenter asking someone over the phone ) Do you see ....... Difference in meaning not grammar.", "Editing Gsettings unsuccesful when initiated from cron", "I do love to listen to music while watching text YouTube videos, but I can't because YouTube can't be muted. I use the respect audio focus in Music Player. I have tried App Volume Control but it did nothing!" ]
medi_sts_stackexchange_dupe
paging problem with a 2\columnwith image on a three-column text
Three-columns text with figures of 2\columnwidth
[ "test fails because of TestMethod do not support getContent call My below test fails because of Run Failures: TestRangehoodObjectionSheet.RangehoodObjectionSheetTest Methods defined as TestMethod do not support getContent call. I added the Blob thinking it might resolve but it doesn't work. What could be the problem here? Have I used the Blob correctly? @isTest public with sharing class TestRangehoodObjectionSheet { static testMethod void RangehoodObjectionSheetTest() { String Build = NBATRecords.getIdFromDeveloperName('Plan_Reviews__c','Building_Plan_Review'); Account a = new Account(Name = 'Test1' ,Type = 'Lead Acct',BillingState = 'CA',Industry = 'Business Services'); insert a; Establishment_Record__c er = new Establishment_Record__c(Account__c=a.Id ,Project_Name__c = 'TestPreet',PremiseStreet__c='Manhattan ave',PremiseBorough__c='Manhattan',PremiseState__c='NY',PremisePostalCode__c='11102',Referral_Source__c='311',Data_Source__c='CAMIS',Phase__c='Initiate',Business_Status__c='Open' ); insert er; Application__c ap = new Application__c(Establishment_Record__c=er.Id,Job_Number__c='222222222'); insert ap; Plan_Reviews__c pr = new Plan_Reviews__c(Application__c =ap.Id ,DOB_Job_Number__c='222222222',RecordTypeId =Build,Objections__c='Pipe size not indicated'); insert pr; PageReference pageRef = Page.RangehoodObjectionSheet; Test.setCurrentPage(pageRef); Blob content = Test.isRunningTest() ? Blob.valueOf('UNIT.TEST') : pageRef.getContent(); Plan_Reviews__c p = new Plan_Reviews__c(id=pr.Id); ApexPages.StandardController sc = new ApexPages.standardController(p); System.assertNotEquals(sc,null); RangehoodObjectionExtention ext = new RangehoodObjectionExtention(sc); ext.Savecopy(); } } Actual class for the test: public with sharing class RangehoodObjectionExtention { private final ApexPages.StandardController controller; private final Id planreviewID; public String imageURL{get;set;} public List&lt;String&gt; objlist {get;set;} public string currentdate {get; set;} public RangehoodObjectionExtention (ApexPages.StandardController stdController) { controller = stdController; planreviewID = (Id)controller.getRecord().get('Id'); Date dt = Date.today(); currentdate = dt.format(); list&lt;Plan_Reviews__c&gt; prlist = [select FDNY_Objections__c from Plan_Reviews__c where id = :planreviewID limit 1]; string obj; for(Plan_Reviews__c pr: prlist){ obj = pr.FDNY_Objections__c; } if(obj!=null){ list&lt;string&gt; objections = obj.split(';'); integer i =1; objlist = new list&lt;string&gt;(); for(string o : objections){ objlist.add(i++ +'. '+o); } } imageURL='/servlet/servlet.FileDownload?file='; List&lt; document &gt; documentList=[select name from document where Name='RangehoodObjectionLogo']; if(documentList.size()&gt;0) { imageURL=imageURL+documentList[0].id; } } public PageReference Savecopy(){ PageReference p = Page.RangehoodObjectionSheet; blob b = ApexPages.currentPage().getContentAsPDF (); Attachment a = new Attachment(); a.body = b; a.name = 'Rangehood Objection sheet Issued '+currentdate+'.pdf'; a.parentid = planreviewID; insert a; PageReference pref = new PageReference('/'+planreviewID); return pref; } }", "How come if $\\ i\\ $ not of the following form, then $12i + 5$ must be prime?", "What is the bit size of long on 64-bit Windows? Not to long ago, someone told me that long are not 64 bits on 64 bit machines and I should always use int. This did not make sense to me. I have seen docs (such as the one on Apple's official site) say that long are indeed 64 bits when compiling for a 64-bit CPU. I looked up what it was on 64-bit Windows and found Windows: long and int remain 32-bit in length, and special new data types are defined for 64-bit integers. (from ) What should I use? Should I define something like uw, sw ((un)signed width) as a long if not on Windows, and otherwise do a check on the target CPU bitsize?", "Arduino only works in root I've installed Arduino but as the title says, I can only upload with sudo. And yes my user is part of the dialout group so that's the weird thing. Arduino did function before on my system. What could be wrong? Output ls -l: ls -l /dev/ttyUSB* crw-rw-rw- 1 root dialout 188, 0 apr 2 09:23 /dev/ttyUSB0", "cp -r is meant to copy files recursively, and cp -R for copying directories recursively. But I've checked, and both appear to copy both files and directories, the same thing. So, what's the difference actually?", "Examples and further results about the order of the product of two elements in a group", "I can't seem to find an answer to this simple question, which I need for some compliance documentation. On a default install of CentOS 6.5 (OpenSSH 5.3p1-94.el6), after how long of being idle will a user's SSH session be terminated? I believe the following can be set to increase the idle timeout, but they are commented out by default. $ grep -i alive /etc/ssh/sshd_config #TCPKeepAlive yes #ClientAliveInterval 0 #ClientAliveCountMax 3 Also, is there a command to dump a list of the current sshd settings? I don't see anything in man sshd.", "Asking the position of a person in a sequence", "Why do employers require you to spread your 401(k) contributions throughout the year to get the maximum match? I think the title says it all. I can't see any reason employers have to incentivize employees to contribute to their 401(k) evenly throughout the year. Instead couldn't they use a relatively simple formula that is based on how much of their income the employee has contributed to their 401(k) thus far for the year? If that or their current contribution is over the threshold, they get the match this pay period, even if they didn't contribute anything. EDIT: To clarify, my employer matches 100% of the first 3% of my contribution and 50% of the next 2%. The match is added every pay period along with my contribution. I am pretty sure there is no \"true-up\" feature, so if I were to hit the $17.5K limit early, and not be able to contribute at least 5% of my salary, I would not get the full match. So I have to be careful to make my contributions evenly throughout the year to get the maximum match. Just trying to figure out my employer's motivation for requiring this.", "Permanently remove/disable Touch Keyboard in Windows 8 taskbar?", "Why don't C++ compilers define operator== and operator!=?", "How to generate a simple cartesian plane system? I need to make a cartesian plane for plotting the straight line joining the points (-3,1) and (6,-2). This is a very simple cartesian plane plotting. When I looked at the manual for tikz the graphics for cartesian planes are for more advance plotting, and what I need is very simple. Something like this:", "Powershell Rename Multiple Files with LastWriteTime Prefix I am trying to put together a Powershell script that will: -Search recursively from a root directory -Exclude files with existing \"yyyyMMdd \" file name prefix -Rename the files not excluded above with \"\"yyyyMMdd \" file name prefix based on their specific LastWriteTime Note: ideally, this script should include all file type extensions I have tried myself, but it would seem to be above my head, as my attempts are not going well. Thanks, in advance. #StampMe.ps1 param( [string] $fileName) # Check the file exists if (-not(Test-Path $fileName)) {break} # Display the original name \"Original filename: $fileName\" $fileObj = get-item $fileName # Get the date $DateStamp = get-date -uformat \"%Y-%m-%d@%H-%M-%S\" $extOnly = $fileObj.extension if ($extOnly.length -eq 0) { $nameOnly = $fileObj.Name rename-item \"$fileObj\" \"$nameOnly-$DateStamp\" } else { $nameOnly = $fileObj.Name.Replace( $fileObj.Extension,'') rename-item \"$fileName\" \"$nameOnly-$DateStamp$extOnly\" } # Display the new name \"New filename: $nameOnly-$DateStamp$extOnly\" I am hoping to change the line: $DateStamp = get-date -uformat \"%Y-%m-%d@%H-%M-%S\" To be LastWriteTime instead of get-date, but I have no idea how to make this happen. This code (from another Super User question): Get-ChildItem \"Test.pdf\" | Rename-Item -newname {$_.LastWriteTime.toString(\"yyyyMMdd\") + \" Test.pdf\"} ...successfully renames a single file, but I can't seem to integrate this into the larger script. With regards to running the above recursively, I have tried this (also from ): foreach ($file in get-ChildItem *.* -recurse) { ./StampMe.ps1 $file.name } Which succeeds to apply the PS script to files in the root directory, but fails to apply to any files in the sub-folder tree that propagates from the root directory.", "I have created a C# application which uses a SQL Server database. I have other computers connected to me and to each other in a workgroup. I have shared my C# application with others. When they open the application they get the error A network related or instance-specific error occured while establishing a connection to SQL Server. the server was not found or was not accessible But the application is working fine on my PC. The connection string I am using is Data Source=ASHISHPC1\\SQLEXPRESS;Initial Catalog=ACW;User ID=ash159;Password=ashish159 which is stored in a .config file. The application is working fine on my PC. What must I do? I have enabled the TCP/IP in the server but the same error persists. Some change in connection string or something else?", "Post a Form to Popup window not to the parent", "Is there a difference between \"write\" and \"write down\"?", "Does Find My Mac work if the disk gets erased?", "Best VNC / remote desktop software for assistance Poll on best VNC / remote desktop software for assisting others on Windows/Mac machines from Ubuntu? I've heard good things about TeamViewer and Fog Creek Copilot, but I'm wondering if the included GNOME Vinaigre VNC client is good enough for this. To specify, I'm looking for best option based on: SIMPLEST ease-of-use for client to download/use on their end. See #1. Works cross-platform I am able to control client's mouse and/or keyboard from remote machine.", "combining results of two select statements", "What exactly is a photon? Consider the question, . The answers say, \"an elementary particle\" and not much else. They don't actually answer the question. Moreover, the question is flagged as a duplicate of, &ndash; the answers there don't tell me what a photon is either. Nor do any of the answers to mentioned in the comments. When I search on , I can't find anything useful. Questions such as, look promising, but bear no fruit. say things like, \"the photon is an excitation of the photon field.\" That tells me nothing. Nor does the , which says: The photon is the quantum of the electromagnetic four-potential, and therefore the massless bosonic particle associated with the electromagnetic force, commonly also called the 'particle of light'... I'd say that's less than helpful because it gives the impression that photons are forever popping into existence and flying back and forth exerting force. This same concept is in the too - but it isn't true. As , \"Virtual particles only exist in the mathematics of the model.\" So, who can tell me what a real photon is, or refer me to some kind of authoritative informative definition that is accepted and trusted by particle physicists? I say all this because I think it's of paramount importance. If we have no clear idea of what a photon actually is, we lack foundation. It's like what : Photons seem to be one of the foundation ideas of quantum mechanics, so I am concerned that without a clear definition or set of concrete examples, the basis for understanding quantum experiments is a little fuzzy. I second that, only more so. How can we understand pair production if we don't understand what the photon is? Or the electron? Or the electromagnetic field? Or everything else? It all starts with the photon. I will give a 400-point bounty to the least-worst answer to the question. One answer will get the bounty, even if I don't like it. And the question is this: What exactly is a photon?" ]
medi_sts_stackexchange_dupe
Style bug, for comments tab in user profile in Chrome
Selecting text in profile activity comments causes unexpected clipping
[ "Export iMessages in human readable form for archival I have a long (several months' worth) iMessage conversation with a contact. He lost these messages when he re-installed his OS, but I still have the archive. There is some important information there that we'd like to keep. Is there a simple way to export this conversation for archival in a human readable form, and also keep any images? I can select parts of the conversation, copy it to the clipboard and paste it into a rich text document, but this discards all images. I'm looking for a way that keeps the images. Note: I use iMessage on OS X only, not iOS. (Ideally I'd also like to export all non-image file attachments, but I'm not expecting that this will be possible.)", "Stopping users voting multiple times on a website I'm planning to add some vote up/vote down buttons to a website I run. This seems easy enough but I want to stop people voting multiple times. One solution would be to make them register before allowing them to vote but I'd prefer not to have to force them to register. Is there are a reasonably straightforward way of doing this? Checking the IP address doesn't seem like a good solution, since it's possible that multiple users may come from the same IP address. Cookies might be the answer, but a savvy user could delete the cookie. Any better ideas?", "+ or @ mark after running 'ls -al' In Mac OS X, run 'ls -al' gives me something like this. drwxrwxrwx+ 4 smcho staff 136 May 5 09:18 Public drwxr-xr-x+ 6 smcho staff 204 Feb 1 2010 Sites drwxrwxrwx 9 smcho staff 306 Feb 2 2010 backup drwxr-xr-x@ 36 smcho staff 1224 Sep 4 22:51 bin What's the + or @ at the end of the first column means? Is this unique to Mac, or common in UNIX? ADDED After Michael Mrozek's answer, I ran 'ls -ale' to get the following. drwx------+ 66 smcho staff 2244 Aug 30 13:40 Library 0: group:com.apple.sharepoint.group.3 allow search 1: group:everyone deny delete drwxr-xr-x 3 smcho staff 102 Sep 4 15:01 Mail drwx------+ 13 smcho staff 442 Aug 28 17:55 Movies 0: group:everyone deny delete drwx------+ 6 smcho staff 204 Jul 9 09:37 Music 0: group:everyone deny delete drwx------+ 11 smcho staff 374 Aug 28 16:55 Pictures 0: group:everyone deny delete drwxr-xr-x 3 smcho staff 102 Mar 18 15:43 Projects drwxrwxrwx+ 4 smcho staff 136 May 5 09:18 Public 0: group:everyone deny delete drwxr-xr-x+ 6 smcho staff 204 Feb 1 2010 Sites 0: group:everyone deny delete What those appended messages mean? Why do I have them for some of the files? I don't remember doing anything particular for them.", "Several lines of formulas to the left of one curly brace pointing to equation number How to make several lines of equations under one curly brace from the left side, such that it point to a reference number. Now I do something like this: \\begin{align} \\left. \\begin{array}{ll} a = b + c \\\\ &amp; \\dots \\\\ a = b + c \\\\ &amp; \\dots \\\\ a = b + c \\end{array} \\right\\} \\label{formulas}\\\\ \\end{align} But equation number appears in the bottom of curly brace.", "Should the first word after a colon be capitalized? Which of the following is correct? For example: This. For example: this.", "I'm looking for the fastest way to determine if a long value is a perfect square (i.e. its square root is another integer): I've done it the easy way, by using the built-in function, but I'm wondering if there is a way to do it faster by restricting yourself to integer-only domain. Maintaining a lookup table is impractical (since there are about 231.5 integers whose square is less than 263). Here is the very simple and straightforward way I'm doing it now: public final static boolean isPerfectSquare(long n) { if (n &lt; 0) return false; long tst = (long)(Math.sqrt(n) + 0.5); return tst*tst == n; } Note: I'm using this function in many problems. So no one else will ever have to maintain this code. And this kind of micro-optimization could actually make a difference, since part of the challenge is to do every algorithm in less than a minute, and this function will need to be called millions of times in some problems. I've tried the different solutions to the problem: After exhaustive testing, I found that adding 0.5 to the result of Math.sqrt() is not necessary, at least not on my machine. The was faster, but it gave incorrect results for n >= 410881. However, as suggested by , we can use the FISR hack for n &lt; 410881. Newton's method was a good bit slower than Math.sqrt(). This is probably because Math.sqrt() uses something similar to Newton's Method, but implemented in the hardware so it's much faster than in Java. Also, Newton's Method still required use of doubles. A modified Newton's method, which used a few tricks so that only integer math was involved, required some hacks to avoid overflow (I want this function to work with all positive 64-bit signed integers), and it was still slower than Math.sqrt(). Binary chop was even slower. This makes sense because the binary chop will on average require 16 passes to find the square root of a 64-bit number. According to John's tests, using or statements is faster in C++ than using a switch, but in Java and C# there appears to be no difference between or and switch. I also tried making a lookup table (as a private static array of 64 boolean values). Then instead of either switch or or statement, I would just say if(lookup[(int)(n&amp;0x3F)]) { test } else return false;. To my surprise, this was (just slightly) slower. This is because .", "Who can use magic scrolls? I'm confused about who can use scrolls in 5e. In the DMG, p139 under Magic Item Categories: Scrolls, it states that: Any creature that can understand a written language can read the arcane script on a scroll and attempt to activate it. This implies that anyone can try to cast a spell using a scroll. However, on p.200 in the Spell Scroll entry it states that: If the spell is on your class's spell list, you can use an action to read the scroll and cast its spell without having to provide any of the spell's components. Otherwise, the scroll is unintelligible. Then there is the bit about a DC 10 + scroll spell level ability check if the spell is higher than a spell slot that you can cast. If the spell is on your class's spell list but of a higher level than you can normally cast, you must make an ability check using your spellcasting ability to determine whether you cast it successfully. The DC equals 10 + spell's level. On a failed check, the spell disappears from the scroll with no other effect. So, which is it? Can anyone who can read a language use a scroll (like a fighter) if they make an arcana check, or just a PC with that specific spell in their spell list (only spell casters)?", "Find a recurrence relation for the number of ways to arrange $n$ dominoes to fill a $2$ by $n$ checkerboard. I am having trouble with this question, please take a look at it: Find a recurrence relation for the number of ways to arrange $n$ dominoes to fill a $2$ by $n$ checkerboard. I have just started reading the topic and it is one of the starting problem. Please help. You can give me some hints, a complete answer is also appreciated. Thanks", "In follow up to , it appears that some numbers cannot be represented by floating point at all, and instead are approximated. How are floating point numbers stored? Is there a common standard for the different sizes? What kind of gotchas do I need to watch out for if I use floating point? Are they cross-language compatible (ie, what conversions do I need to deal with to send a floating point number from a python program to a C program over TCP/IP)?", "Feedback for The Loop - May 2020 May’s “The Loop” blog post was just posted, you can read it . A popular response last month to our post about how we receive, prioritize and implement feedback was a question around how this framework gets utilized in the practical sense. We thought that Dark Mode was a great feature to dig down into as it was so widely requested and anticipated. We hope you enjoy this month’s post, please leave any questions or comments you have in this thread and we will respond ASAP.", "Why is apt-get always using proxy, although no proxy is configured?", "Transparent model when exporting fbx file to Unity So I have this shark model which I animated and ready to export it on fbx and transport it to Unity. But When I put it on Unity, It looks transparent like this. Many of the solutions online say that the problem is because of my faces, and they told me to recalculate it or something, but normals are just fine. Is there any other solution? here's the blend file:", "Invalid signature for Kali Linux repositories : \"The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository\"", "How do I eliminate reflection on glass? When I take a picture through a window, I often see a reflection on the glass. I have noticed that this occurs mostly when it is dark or overcast outside or it is especially bright on my side of the glass. How can I stop this?", "Apt-get stuck at 0% [Working]", "Under what assumptions can a semigroup $(S,*)$ be embedded into a group?", "How does a credit card company make any money off of me using their card if there are no fees associated with the card (I don't pay any extra) and I pay off my balance on time every month (so I don't pay any fees ever for this either). Are they just banking on the fact that many people don't do this and end up owing them money?", "I'm no expert in darkroom photography, but it seems a little odd that there is a type of light that doesn't affect film or developing paper etc. The only way that I could think to explain it is: The low frequency red photons don't have enough energy to raise electron states in the film/paper, or Magic either way, I'm curious to know how this handy tool is, as per title, safe.", "Can I convert a string representing a boolean value (e.g., 'true', 'false') into a intrinsic type in JavaScript? I have a hidden form in HTML that is updated based upon a user's selection within a list. This form contains some fields which represent boolean values and are dynamically populated with an intrinsic boolean value. However, once this value is placed into the hidden input field it becomes a string. The only way I could find to determine the field's boolean value, once it was converted into a string, was to depend upon the literal value of its string representation. var myValue = document.myForm.IS_TRUE.value; var isTrueSet = myValue == 'true'; Is there a better way to accomplish this?", "Find a file when you know its checksum?" ]
medi_sts_stackexchange_dupe
Word for liking and not liking something at the same time?
Word for feeling conflicting emotions simultaneously
[ "Old fantasy book with a party finding coloured stones having powers over fire, water, mood I'm trying to remember the name of a book series of which I remember only the following, with Google yielding no results. the name of the author starts with a Z the main character is a knight in an household with a name sounding like Malachai who goes on a quest with six others guys and girls (a bard, another knight, a priest, etc.) and each of them finds a stone of colour which has a power on various things (like fire, their mood or water) and then they set toward a quest to beat some ancient evil. I used to find the book at the local library 10 years ago in France (but it was translated).", "KDB: apply dyadic function across two lists", "How does a one-sided glass work? How does a work? If seen from the outer side, we can see through thinking it is transparent, while if seen from the inside, the glass acts as a mirror. How?", "Induced sequence of global sections I'm reading Differential Analysis on Complex Manifolds by Raymond O. Wells. It states the following in the beginning of section 3 of chapter 2 on page 51: Consider a short exact sequence of sheaves: $$0 \\to \\mathcal{A} \\to \\mathcal{B} \\to \\mathcal{C} \\to 0$$ Then it is easy to verify that the induced sequence $$0 \\to \\mathcal{A}(X) \\to \\mathcal{B}(X) \\to \\mathcal{C}(X) \\to 0$$ is exact at $\\mathcal{A}(X)$ and $\\mathcal{B}(X)$ but not necessarily at $\\mathcal{C}(X)$. After that they give an example of failing exactness at $\\mathcal{C}(X)$. My problem is that Ii dont see why the induced sequence has to be exact at $\\mathcal{A}(X)$ and $\\mathcal{B}(X)$. I tried to find an answer in other books. In the book Sheaf Theory by Bredon they make the same statement in proposition 2.2 but they also state it is easy to verify. I tried to come up with an argument of my own and got something like this (the argument is wrong i think): If we have the zero element $0 \\in \\mathcal{B}(X)$ this should induce a section $\\tilde{0} $ of the stalks of $\\mathcal{B}$ and should take the value of the zero element in every stalk. Then since the sequence of sheaves is exact (and thus exact in stalk level) we get that around every $x \\in X$ there should be an open $V$ such that $\\tilde{0}|_{V}$ is the image of the zero section in $\\mathcal{A}(V)$ and since $\\mathcal{A}$ is a sheaf we can patch these together to get a global zero section. Also while i get the example that shows inexactness at $\\mathcal{C}(X)$ i dont get why this should generally be the case. Any help would be much appreciated", "Find the maximum value of $ f(x) = \\int^{x}_{0} \\sqrt{(x^2-x)^2+y^4}~dy$ Find the maximum value of $f(x)$ when $0 \\leq x \\leq 1$ and $$ f(x) = \\int^{x}_{0} \\sqrt{(x^2-x)^2+y^4}~dy$$ I'm guessing that the Fundamental Theorem of Calculus can't be used because the integrand is a function of $x$. Any help would be greatly appreciated.", "Benefits of using backtick (`) in MySQL queries? In MySQL we can create queries with or without the backtick (`) symbol. Example: SELECT * FROM TEST; SELECT * FROM `TEST`; Both works fine in mysql-console. Is there any technical difference between them? Is there any benefit using (`) over over simple queries?", "What is the correct position of the word 'also'? I would like to also talk about ... I would also like to talk about ...", "I am trying to create a 3d game in unity. I have a cube in unity and I want it to move left or right on swipe . It should move to a distance till where user swipe or take their finger off of a screen. I want it to move fast or the cube should move fast on swipe and cube should flow smooth. Like in the gif there is a circle and the user use their finger to move the circle till wherever the user swipe it and it should be instant and I want my cube to move like that at a distance till where user swipe their finger and it should be instant and fast. I don't know how to do it. Any help is appreciated!", "Do the parent directory's permissions matter when accessing a subdirectory? If I have a root folder with some restrictive permission, let's say 600, and if the child folders/files have 777 permission will everybody be able to read/write/execute the child file even though the root folder has 600?", "Is there any way to script Windows 10's \"color filter\" feature programmatically?", "How many square meters \"twenty feet square\" is? One would assume it to be about 2 square meters, but this is obviously not the case. In fact, I'm reading Illium by Dan Simmons. A quote follows: Much like the room they had faxed into, this space was windowless and about twenty feet square. But unlike the other room, this one was warm, lighted, and free of snow or ice. And unlike the other room, this one was almost filled with an oval metal machine about fifteen feet long. By this description, \"twenty feet square\" seems to mean 20x20 feet aka 400 square feet or 40 square meters. Given that Dan Simmons is a renowned American writer, it's not likely that he just can't speak English correctly. So, who's right and who's wrong here?", "\"Distribution worker\" vs. \"distributed worker\" I cannot differentiate the meanings of the two words. Could you please clarify? In general, when should I use a noun (distribution) or an adjective (distributed) for verbs similar to distribute, like organize, create?", "Not to Mention ≈ [Let Alone ≈ Much Less ≈ Still Less] For brevity, I symbolise synonymity with ≈.  So  X ≈ Y  means  X and Y are synonyms. From : let alone ≈ not to mention From : let alone ≈ much less ≈ still less. Are these all synonyms? What are the similarities and differences between each?", "What is the difference between old style and new style classes in Python? When should I use one or the other?", "I'm going down my huge backlog of unplayed Steam games and I'm thinking the best way to tackle the list is to go through the shortest games first and then concentrate on the 20+ hour ones. I'm wondering if there's a website or something else that has an estimated amount of gameplay time for games. Is there anything like that?", "Why does Google not consider dot in usernames of Gmail addresses?", "Undefined reference to static class member Can anyone explain why following code won't compile? At least on g++ 4.2.4. And more interesting, why it will compile when I cast MEMBER to int? #include &lt;vector&gt; class Foo { public: static const int MEMBER = 1; }; int main(){ vector&lt;int&gt; v; v.push_back( Foo::MEMBER ); // undefined reference to `Foo::MEMBER' v.push_back( (int) Foo::MEMBER ); // OK return 0; }", "Here is my proof, I would appreciate it if someone could critique it for me: To prove this statement true, we must proof that the two conditional statements (\"If $\\mathcal{P}(A)⊆ \\mathcal{P}(B)$, then $A⊆B$,\" and, If $A⊆B$, then $\\mathcal{P}(A)⊆ \\mathcal{P}(B)$) are true. Contrapositive of the first statement: If $A \\nsubseteq B$, then $\\mathcal{P}(A) \\nsubseteq \\mathcal{P}(B)$ If $A \\nsubseteq B$, then there must be some element in $A$, call it $x$, that is not in $B$: $x \\in A$, and $x \\notin B$. Since $x \\in A$, then $\\{x\\} \\in \\mathcal{P}(A)$; moreover, since $x \\notin B$, then $\\{x\\} \\notin \\mathcal{P}(B)$, which proves that, if $A \\nsubseteq B$, then $\\mathcal{P}(A) \\nsubseteq \\mathcal{P}(B)$. By proving the contrapositive true, the original proposition must be true. To prove the second statement true, I would implement nearly the same argument, so that isn't necessary to write. So, does this proof seem correct? Also, was the contrapositive necessary? Or is there another way to prove the initial statement?", "nginx open reverse proxy?", "Why does C# disallow readonly local variables? Having a friendly debate with a co-worker about this. We have some thoughts about this, but wondering what the SO crowd thinks about this?" ]
medi_sts_stackexchange_dupe
Doing a tag only edit on a previous revision doesn't do the expected roll-back
Editing older revision (not most recent) no longer includes older title and tags, and automatic rollback note
[ "Lens upgrade paths (sub $1000) for the EF-S 18-55mm IS kit lens for Canon APS-C cameras", "(mód 1) is not copied correctly Please consider the following MWE: \\documentclass{article} \\usepackage[spanish]{babel} \\selectlanguage{spanish} \\usepackage[utf8]{inputenc} \\usepackage[T1]{fontenc} \\begin{document} Works: áéà Does not work: \\(\\pmod1\\) \\end{document} The áéà text is copied correctly, but if I try to copy (mód 1) it says: (m´od 1). Does anyone know why this happens? How is it solved? Thanks!", "What's the difference between Google Chrome and/or Chromium? What are the advantages/disadvantages to each? I used Google Chrome in Windows, and am now using Chromium in Ubuntu. Is there any difference to the two programs? What are the advantages and disadvantages to each program? Which one seems better?", "Should we write “allow” or ”allows” in “require that the class allow[s]”? Can you explain to me whether I should or should not use ‑s at the end of the verb allow in this sentence? This function requires that the container class allow[s] random access The sentence in the book I read wrote allow without ‑s. However, the container class is a third-person singular, so the ‑s must be required. Is that right?", "What are the most accepted ways to visualize the results of an independent two sample t-test? Is a numeric table more often used or some sort of plot? The goal is for a casual observer to look at the figure and immediately see that they are probably from two different populations.", "I initially thought that dark energy must in some way violate conservation of mass and energy since the component of the energy density of space that comes from dark energy is constant, and space is expanding. Therefore, as space expands the energy in the universe that comes from dark energy would increase. I presumed the source of this energy was not coming from the conversion of other types of energy to dark energy, so it must violate conservation. I decided to Google this and came upon this article: It says that dark energy does NOT violate conservation and quotes Carroll, Press, and Turner (1992): \"…the patch does negative work on its surroundings, because it has negative pressure. Assuming the patch expands adiabatically [i.e. without loss or gain of heat], one may equate this negative work to the increase of mass/energy of the patch. One thereby recovers the correct equation of state for dark energy: P = – ρ c2. So the mathematics is consistent.\" Is there a way to explain this in layman's terms? (The blog attempted to do this, but it was very unclear to me.) More specifically, can you explain where my initial train of thought described above fails when I erroneously concluded that dark energy violates conservation? Thank you.", "Handling circular entity references with Migrate I am using on a Drupal 6 to Drupal 7 migration right now. I have three types: type1, type2, type3. Each of the three types has a entityreference field on it, which is configured to be able to point to all three types. This means that there can be circular references, and when a particular node is being migrated, the destination node may not exist yet and could potentially be any of the three types. My migration class looks like this: class MyNodeMigration extends DrupalNode6Migration { public function __construct(array $arguments) { parent::__construct($arguments); $this-&gt;addFieldMapping('field_legacy_nid', 'nid'); $this-&gt;addFieldMapping('field_the_reference', 'field_the_reference') -&gt;sourceMigration(array('type1', 'type2', 'type3'); } } $node_arguments = array( array( 'class_name' =&gt; 'MyNodeMigration', 'description' =&gt; 'type1', 'machine_name' =&gt; 'type1', 'source_type' =&gt; 'type1', 'destination_type' =&gt; 'type1', 'dependencies' =&gt; array('roles', 'users'), ), array( 'class_name' =&gt; 'MyNodeMigration', 'description' =&gt; 'type2', 'machine_name' =&gt; 'type2', 'source_type' =&gt; 'type2', 'destination_type' =&gt; 'type2', 'dependencies' =&gt; array('roles', 'users'), ), array( 'class_name' =&gt; 'MyNodeMigration', 'description' =&gt; 'type3', 'machine_name' =&gt; 'type3', 'source_type' =&gt; 'type3', 'destination_type' =&gt; 'type3', 'dependencies' =&gt; array('roles', 'users'), ), ); $common_node_arguments = $common_arguments + array( 'user_migration' =&gt; 'users', ); foreach ($node_arguments as $arguments) { $arguments = array_merge_recursive($arguments, $common_node_arguments); Migration::registerMigration($arguments['class_name'], $arguments['machine_name'], $arguments); } When I run the migrations, most nodes are fine, but I get a decent amount of Stubs (*) created. Some of the destination nodes have the entityreference pointing to these Stub nodes. The source nodes are fine. What I have uncovered is that the bundle on the destination nodes that are being made as stubs are incorrect, and look like they are all type1. A node of the proper type does end up being created, but it never gets set as the entityreference target. Another way to explain this is that I end up with node: nid=123, type=type1 node: nid=234, type=type1, field_the_reference=123 node: nid=345, type=type2 where it should be node: nid=234, type=type1, field_the_reference=345 node: nid=345, type=type2 How do I handle this situation? (*): a \"Stub\" in the context of this question here refers to a node which is created for the purpose of being a reference target, but does not get its data initially. The term is used throughout the Migrate documentation and source code.", "What does the @ symbol before a variable name mean in C#? Possible Duplicate: I understand that the @ symbol can be used before a string literal to change how the compiler parses the string. But what does it mean when a variable name is prefixed with the @ symbol?", "Pivot in sql server", "Which preposition in front of \"line\" — \"on\", \"in\", \"at\"?", "Copy files excluding x,y,z causing error in shell script I'm not well versed in shell scripting but I imagine this to be a painfully easy fix but its eluding me. I need to copy the contents of a directory excluding a number of files. I have a command that works when I enter it into the terminal, but when its run in a shell script it fails with a syntax error or just doesn't work. The command in question is: cp -r path/to/!(dir1|dir2|dir3) destination Any help would be greatly appreciated!", "Could someone advise me on how to determine all entire functions $f$ such that $|f'(z)| \\leq |f(z)|, \\forall z\\ ?$ Hints will suffice, thank you.", "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.", "Galactic Rotation Speeds - Ehrenfest Paradox, Gravitational time dilation, Dark Matter - all of the above?", "WPF Binding to Grid Column Width I'm attempting to bind a DependancyProperty in one of my usercontrols to the Width property of a Column in a Grid. I have code similar to this: &lt;Grid x:Name=\"MyGridName\"&gt; &lt;Grid.ColumnDefinitions&gt; &lt;ColumnDefinition x:Name=\"TitleSection\" Width=\"100\" /&gt; &lt;ColumnDefinition Width=\"*\" /&gt; &lt;/Grid.ColumnDefinitions&gt; &lt;Grid.RowDefinitions&gt;...&lt;/Grid.RowDefinitions&gt; &lt;GridSplitter x:Name=\"MyGridSplitter\" Grid.Row=\"0\" Grid.Column=\"0\" ... /&gt; &lt;/Grid&gt; In a separate Usercontrol I have the followingDependancyProperty defined. public static readonly DependencyProperty TitleWidthProperty = DependencyProperty.Register(\"TitleWidth\", typeof(int), typeof(MyUserControl)); public int TitleWidth { get { return (int)base.GetValue(TitleWidthProperty); } set { base.SetValue(TitleWidthProperty, value); } } I am creating instances of the Usercontrol in code, hence I have a binding statement similar to this : MyUserControl Cntrl = new MyUserControl(/* Construction Params */); BindingOperations.SetBinding(Cntrl , MyUserControl.AnotherProperty, new Binding { ElementName = \"objZoomSlider\", Path = new PropertyPath(\"Value\"), Mode = BindingMode.OneWay }); BindingOperations.SetBinding(Cntrl , MyUserControl.TitleWidthProperty, new Binding { ElementName = \"TitleSection\", Path = new PropertyPath(\"ActualWidth\"), Mode = BindingMode.OneWay }); /* Other operations on Cntrl */ The first binding defined works fantastically, although that is binding to an actual UIElement (in this case a Slider), but the Binding to \"TitleSection\" (which is the ColumnDefinition defined in the Grid) fails. Putting a breakpoint in the code and doing a watch on \"TitleSection\" returns the expected object. I am beginning to suspect that a x:Name'd ColumnDefinition can't be bound to. Can anyone suggest how I might be able to bind to the changing width of the first column in my grid? EDIT #1 - To answer comments The databinding 'fails' in the sense that with a breakpoint set on the setter for the TitleWidth property, and using the GridSplitter control to resize the first column, the breakpoint is never hit. Additionally, code I would expect to be fired when the DependancyProperty TitleWidth changes does not get executed. The usercontrol is being created and added to a Stackpanel within the Grid in the Window_Loaded function. I would expect that the Grid has been rendered by the time the Usercontrols are being constructed. Certainly the x:Name'd Element TitleSection is watchable and has a value of 100 when they are being constructed / before the binding is happening. EDIT #2 - Possibly something to do with this? I've been having a sniff round the MSDN pages for the Grid ColumnDefinition documentation and have come across but I can't get my head around how I can use this in a binding expression. I cannot use the associated GridLengthConverter as a converter in the binding code as it does not derive from IValueConverter. I am leaning towards somehow binding to the ActualWidth property of one of the cells in the Grid object. It doesn't seem as clean as binding to the column definition, but at the moment I cannot get that to work.", "Can we start cleaning up [table] tag and burninate it ASAP Related questions: (This led to founding of ) The tag has become cluttered with all kinds of questions ranging from sql tables (for all DBM systems, HTML tag &lt;table&gt;, outputting content in any language (PHP, C#, LaTeX to name a few) as a table and several plugins of various languages and/or IDEs (like jTable, tablesorters and the kind). The current count stands at 18,315 questions having this ambiguous tag. A few of possible suggestions for cleaning process: + to | + to | + to | + to | + other-specific-DBM systems to whatever_DBM_it_is-table + to | Since I've no idea about other languages and their specific features regarding table, I'd ask the community for their input on this (such as , , and ). The other questions are either tagged with arrays or sql and similar tags, and in my opinion, just removing from such questions would be enough!", "Why don't wizards always use multiple wands?", "Deploy Community Builder audience page assignments with ant migration tool?", "$ KC $ spaces imply $ US $ spaces , but vise versa is false.", "When did our universe and the Star Trek universe diverge? Note that my question assumes as a given that Star Trek is in an alternate universe which diverged from ours at some point in history. That seems really, really obvious and undeniable to me. So the question then becomes: at what point in time did the two universes diverge and have different histories?" ]
medi_sts_stackexchange_dupe
How to Upgrade to 15.04 without upgrading to 14.10?
Can I skip over releases when upgrading?
[ "Packed images used as background don't show up when reopening the file I have seen a single (1) mention of View port background images disappearing when the .blend file is saved and reopened. However...the answers are not relative to what I am experiencing. I go through the trouble of setting up four images (top, side, front, back) and then pack these images using External Data &gt; Pack all into .blend and then I save the .blend. I save the file, open it back up, and the background images are all gone. Open up properties panel, look to see background images check box is unchecked, click add image, and choosing the open drop-down arrow...the data paths still show the list of images (packed into a specific folder textures). They are still there, the data set is intact. Why is It that I have to set this up each and every time I open the file. It seems like earlier versions &lt;2.76B saved the images and saved the file with the background images check box checked without the need to set this up each time the file is reopened. This is getting very frustrating due to the fact that a few of the background images mus be set up using Blender's rotate, scale and move tools to align the background image up with the model I have already fabricated. Thanks!", "Apparently, you can speed up your computer by adding more RAM. Is the amount of ram to be added is directly or indirectly related to the amount of hard-disk space, processor speed, Motherboard etc... Can the memory of a RAM be compared with Virtual Memory and Cache Memory? Note: About my PC Configuration: Intel core i5 processor, Motherboard DP55WB 4GB RAM, 700 GB Hard-disk space.", "How can I write % into a file? How can I write % into an auxiliary file? % will not work, because LaTeX thinks that I start a comment with it (in the main file, not in the auxiliary file!), and \\% will write \\% into the file. How can it be accomplished? \\documentclass{article} \\begin{document} \\newwrite\\outfile \\immediate\\openout\\outfile=example.dat \\immediate\\write\\outfile{%}% will not work, of course, but neither \\% \\immediate\\closeout\\outfile \\end{document}", "Who's at fault with this error concerning csquotes and LuaLaTeX? I ran into this with the package lilyglyphs but I'm not sure whose fault this error is. When I compile the following with lualatex: \\documentclass{article} \\usepackage{csquotes} \\MakeOuterQuote{\"} \\EnableQuotes \\begin{document} \\directlua{print(\"hello\")} \\end{document} I get an error saying \\directlua]:1: unexpected symbol near '\\'. l.6 \\directlua{print(\"hello\")} Now suppose that I do not directly write \\directlua in my document, but I include a package that does it internally. Such as \\documentclass{article} \\usepackage{fontspec, csquotes, lilyglyphs} \\MakeOuterQuote{\"} \\EnableQuotes \\begin{document} \\wholeNote \\end{document} I have no knowledge why compilation fails, because the error now becomes ! Missing number, treated as zero. &lt;to be read again&gt; \\begingroup l.7 \\end {document} From my user point of view I did nothing wrong, because I'm using the public API provided by the packages. The csquotes documentation specifically says: Note that all characters are automatically checked for validity as they are allocated. This package will reject characters which are unsuitable as active quotes... In sum, the following characters will be considered as reserved by this package: A–Z a–z 0–9 . , ; : ! ? ' - # $ % &amp; ^ _ ` ~ \\ @ * { } [ ] So my question is whose fault is this error? My fault, the user's fault, because I should have known (but how?) that even though the quote is not listed as unsuitable in the csquotes manual, it actually is? The fault of the implementation or documentation of csquotes for failing to mention \" as unsuitable? The fault of the implementation of the \\directlua command because it doesn't prevent LaTeX catcode changes/active characters from impacting its argument? A shortcoming of TeX itself because of its global state based architecture?", "How do I install Adobe Flash player?", "Which is the biggest object which can interfere with itself?", "How can I get barcode-scan information into my photo metadata, onsite, untethered? I need a DSLR camera with a barcode scanner for on-site tours photography, which means it needs to be untethered! The image would have to contain the barcode scanned information in the image metadata or in the name itself. I've seen solutions like, Foolography and a $2600 Canon Studio Edition launched in 2010. But I'm not sure of either those products! So I'm asking the gurus here how I can get this working, which camera would I need and any accessory necessary? I'm trying to recreate something like I saw the on-site volume photographers do in Disney's parks.", "Neural Network: MLP for regression with 3 continuous features, 1 categorical I am starting to study Neural Network. I want to build a MLP where I will feed it: 3 features which are continuous one feature which is categorical (48 classes) How can I do this? Before adding the categorical feature, I was using 'relu' activation function and 'lbfgs' as a solver in MLPRegrssor in sklearn. I was wondering: how can I integrate this variable into the network? Should I do one-hot encoding? Should I keep relu as activation function or should I try sigmoid, softmax or something like that?", "Why is any pgr_* routing function taking forever based on OSM data in an pgrouting enabled DB", "Fire (at, on, in, to) target How to correctly choose the preposition in \"fire (at, on, in, to) target\"?", "Adding button into a Listview in WinForms Is there a way to add a button control to a cell in inside a ListView in a WinForms app?", "Grub rescue after installing Ubuntu on a external HDD from USB", "How to use \"`\" in the same way it is used on the SE websites?", "I want players to be able to click text to run an OP command even if that player is not an OP. For example something like: Console: Do you want to enable Fly? [If you do, Please click here] *Player1 clicks that text* Console: /fly Player1 Is something like this possible?", "Why is the well ordering principle counter-intuitive? I read that while 'The Axiom of Choice agrees with the intuition of most mathematicians; the Well Ordering Principle is contrary to the intuition of most mathematicians'. I don't understand why this is so. According to Wikipedia, 'the well-ordering principle states that every non-empty set of positive integers contains a least element'. This is quite a straightforward definition. Is it the way you derive the equivalence of the Axiom of Choice and well ordering principle that makes it counter-intuitive or the definition of the least element?", "Why does the wire-frame material fades across the object? Why does the wire-frame material fades across the object? Here is what I did - I created a new material and I selected on \"Wire\" and I made it shadeless. Then, I created a new material and assigned the new material on the on the object. However, doing it that way, it allows me to render both materials - \"Wire\" and \"Surface\". Then I get a fading result like this - But I want all of the edges to be shown, not a fading result. How can I make that? Here is the blend file if anybody wants to check it out -", "This question is essentially the same as one of my , except the only difference is that I am using \"only\" to change the text at the same location (i.e., ). In other words, I am destroying my earlier text as I go, and not adding new ones underneath the previous ones. Since the text for the first \"only\" is shorter than the second \"only\", therefore the image will shift location. I would like for the image to remain at its location. Here is an example it may not be obvious but the second image is higher up than the first. The code is here, can someone find a solution? \\documentclass{beamer} \\usepackage{graphicx} \\title[Title]{Presentation} \\author{Sandro Botticelli} \\institute{Italy} \\date{1484} \\begin{document} \\begin{frame} \\begin{figure} \\includegraphics[scale = 0.8]{Venus} \\caption{Nascita di Venere} \\end{figure} \\only&lt;1&gt;{In the centre the newly-born goddess Venus stands nude in a giant scallop shell. Its size is purely imaginary, and is also found in classical depictions of the subject. } \\only&lt;2&gt;{Alternative identifications for the two secondary female figures involve those also found in the Primavera; the nymph held by Zephyr may be Chloris, a flower nymph he married in some versions of her story, and the figure on land may be Flora. Flora is generally the Roman equivalent of the Greek Chloris; in the Primavera Chloris is transformed into the figure of Flora next to her, following Ovid's Fasti, but it is hard to see that such a transformation is envisaged here.} \\end{frame} \\end{document}", "How can I dual boot Windows and Ubuntu?", "Google street view URL Hi I have the address of a property and my application can launch a browser to go to . If a good match is found it will take it directly there. Is there any thing I can append to the url to make it switch to streetview without having the exact coordinates? I dont't want to code any javascript or flash.", "I'm playing Minecraft on Xbox 360 and I can't find the . I have tried every trick I can think of, including the xray glitch, and recreating the world in Creative mode to dig out the entire stronghold and the surrounding areas. I have found nothing and I am totally lost on where it could be. The seed is 1833758535681455132" ]
medi_sts_stackexchange_dupe
How to differentiate $\lim\limits_{n\to\infty}\underbrace{x^{x^{x^{...}}}}_{n\text{ times}}$?
Derivative of $x^{x^{\cdot^{\cdot}}}$?
[ "I need to somehow retrieve the client's IP address using JavaScript; no server side code, not even SSI. However, I'm not against using a free 3rd party script/service.", "I am trying to install Ubuntu 12.10 for quite some time, and passing hurdles one by one. Now I am in a situation as follows. I have got a PC and 10 GB HDD which will be totally dedicated to Ubuntu so no option of Wubi and dual boot. I was trying to install from DVD, but it is getting stuck at \"Out of frequency\" error. So I had to adapt for USB boot option. But my PC is USB non bootable, so workaround is \"Plop Boot Manager\". So I am doing the installation procedure as follows: starting from a CD drive which is having plop installed. opting for for USB boot in plop options. booting begins from USB. monitor eventually gives \"out of frequency\" error press Shift+Alt+F1 to get the terminal. open the grub with sudo nano /etc/default/grub. do necessary changes. sudo update-grub. Now here I am getting error as follows: /usr/sbin/grub-probe:error:failed to get canonical path of /cow. My system is P4 3.06 GHz, 1 GB ram , 10 GB HDD without an OS, monitor CRT lg StudioWorks (7 years old). Mobo Mercury P4 266a NDMx (865 equivalent). The whole system is perfectly in working condition under XP, but it is USB non bootable, and all other devices working perfectly. What should I do next?", "general solution sum of two uniform random variables aY+bX=Z? is there a general solution to that? I have seen simple examples for Y+X=Z but I was wondering how this would be with rescaling?", "What is `$?` ? Is it a variable? The question is pretty straight forward. I can get the exit code of the previous command by using $?. But what exactly is it? I don't think it is a variable, because you can't have any special characters in the name of variable other than _. foo?foo=10 will result in the error: foo?foo=10: command not found So if it is not a variable, what is it? Are there others like it?", "I am seeking suggestions on what may be going in with an iMac I am currently troubleshooting, as it’s displaying behaviour I do not recall seeing before. Short story This iMac refuses to boot up. It gets the Apple logo, gets past the progress bar, and then gets stuck on the grey screen for about two minutes before rebooting itself. However, what makes this odd is that I can: Start the iMac in Target Disk Mode and use it to successfully boot up other Macs. In doing so everything seems to work perfectly fine. Successfully boot the iMac from an external drive and everything seems to work perfectly fine. Long story I was presented this iMac about 2 weeks ago as it refused to bootup. That is, it would commence booting up and cycle through the Apple logo and progress bar, but after the progress bar completed it would remain on the grey screen for a couple of minutes before rebooting itself and doing the same thing all over again. To address this I undertook the following troubleshooting steps: Resetting SMC - failed Resetting NVRAM - failed Starting up in Safe Mode - failed Starting up in OS X Recovery Mode – failed Starting up in OS X Recovery Mode via the internet – failed Undertook an extensive hardware test using Apple Hardware Test (AHT 3A213) - passed Started iMac in Target Disk Mode and retested hard drive using Scannerz on another iMac - passed Started iMac in Target Disk Mode and reformatted the hard drive and did a clean install of Mac OS X El Capitan 10.11.6 - successful Migrated data from a Time Machine backup - successful After these steps I tested the iMac for four days with no issues in terms of booting up and using the computer. On the fifth day I needed to manually import seven Apple Mail mailboxes. I did these one by one and six of them imported within minutes. The last mailbox was showing as being 270 GB in size. I knew this was inaccurate, but I decided to import the mailbox so I could do a mailbox rebuild to correct whatever corruption had taken place. This import took over 12hrs to do but seemed to work fine and Mail was displaying the emails. I then tested the iMac on and off for another day to ensure it had no problems booting up. This was successful. I then decided to initiate the mailbox rebuild, but as soon as I did the screen went black and stayed that way regardless of any keyboard shortcuts I tried using. I waited an hour, forced a reboot, and ever since the iMac has returned to its original behaviour of not booting up – it would get past the progress bar and stay on the grey screen for a while before rebooting itself and starting the whole vicious cycle again. I have again retested the hard drive, processor, RAM and Video Ram by starting the iMac from an external hard drive and using a combination of the following packages: Apple Hardware Test (AHT 3A213) Scannerz TechTool Pro Memtester (under the Homebrew subsystem) And now I have a situation where I can boot the iMac from external hard drives, and also use it in target disk mode to boot up other Macs, but cannot use it to boot from its own internal drive. At present I have isolated the internal hard drive and am running a scan to check for any malware. In the meantime, I am wondering: Has anyone come across a similar scenario and, if so, what was the cause? Assuming I find no malware, do I go through the reformat/clean install/migration process again, but this time not import the last mailbox and see whether the iMac works fine? Any other suggestions? iMac specs are as follows: iMac (27”, mid 2011) 3.1 GHz Intel Core i5 8 GB RAM AMD Radeon HD 6970M 1024 MB 1 TB 3.5” SATA HD Mac OS X El Capitan 10.11.6", "Where to start learning Linear Algebra? I'm starting a very long quest to learn about math, so that I can program games. I'm mostly a corporate developer, and it's somewhat boring and non exciting. When I began my career, I chose it because I wanted to create games. I'm told that Linear Algebra is the best place to start. Where should I go?", "Is there a way to programmatically determine if a font file has a specific Unicode Glyph? I'm working on a project that generates PDFs that can contain fairly complex math and science formulas. The text is rendered in Times New Roman, which has pretty good Unicode coverage, but not complete. We have a system in place to swap in a more Unicode complete font for code points that don't have a glyph in TNR (like most of the \"stranger\" math symbols,) but I can't seem to find a way to query the *.ttf file to see if a given glyph is present. So far, I've just hard-coded a lookup table of which code points are present, but I'd much prefer an automatic solution. I'm using VB.Net in a web system under ASP.net, but solutions in any programming language/environment would be appreciated. Edit: The win32 solution looks excellent, but the specific case I'm trying to solve is in an ASP.Net web system. Is there a way to do this without including the windows API DLLs into my web site?", "Add a binary to my path I have an executable. I want to execute the executable in terminal with name only like other commands. I can put my executable in /usr/local/bin or I could add its PATH to ~/.bashrc. Both will work. What is better? Is there any difference?", "New top bar doesn't show hot threads across Stack Exchange sites", "Tony's Private life in Spider-Man: Homecoming I really don't know how to do this in terms of spoilers, but here goes... After watching the end of Homecoming, it appears that Tony and Pepper are very much back together. Is there any in-universe explanation for this change from the way the universe seemed to be in Civil War?", "Could I have a hint for testing the convergence of the following series please? $$\\sum_{n=2}^\\infty\\frac{1}{(\\ln n)^{\\ln n}}$$ Edit The integral test does not work because $\\int_1^n\\frac{1}{(\\ln x)^{\\ln x}}dx$ has not an elementary primitive. Thank You.", "How to download all files from Ubuntu One?", "Permutation count of AABBC Given a string: $AABBC=A^2B^2C^1$ I am trying to find the Total Permutations (this may be incorrect): $\\dfrac{5!}{2!\\cdot2!}=30$ My question is how would I find the partial sums (perhaps the wrong choice in words) when added together would give an index such that: $AABBC=1$ $ABABC=2$ $CBABA=29$ $CBBAA=30$ (30 might be the wrong number here but is suppose to be the last) I have tried to draw out a tree structure to get an idea and thought with as the minimum: $CAABB$ $4(\\dfrac{4!}{2!\\cdot2!})$ + 1 And: $CABAB$ I would get something like: $4(\\dfrac{4!}{2!\\cdot2!}) + 0 + 1(\\dfrac{2!}{2!}) + 0 + 0$ But I am missing something here. How would I find the sums needed for $BACAB$ ? More specifically I am trying to find the index of a word that is arbitrarily long in alphanumeric. So the string may also be something like: $AAAAABBBBDDEEFFFGGGGGHIIIIJJJJKLMOOOPZZZZZ$", "How do exchanges match limit orders?", "Why isn't sizeof for a struct equal to the sum of sizeof of each member? Why does the sizeof operator return a size larger for a structure than the total sizes of the structure's members?", "I know what a set is. I have no idea what a class is. As best as I can make out, every set is also a class, but a class can be \"larger\" than any set (a so-called \"proper class\"). This obviously makes no sense whatsoever, since sets are of unlimited size. It's not like you get up to 25 elements and go \"oh, hey, sets are limited to a maximum of 20 elements, so we'll have to call this 25-element thing something else\". Does anybody know what the actual difference between a set and a class is? Several people have pointed out that you can write paradoxes which involve sets. I get that. But where do classes come into the picture?", "setSystemUiVisibility(SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION) does not work", "Why is empty set an open set? I thought about it for a long time, but I can't come up some good ideas. I think that empty set has no elements,how to use the definition of an open set to prove the proposition. The definition of an open set: a set S in n-dimensional space is called open if all its points are interior points.", "Find $\\lim_{n \\to \\infty} \\left[\\frac{(n+1)^{n + 1}}{n^n} - \\frac{n^{n}}{(n-1)^{n-1}} \\right]$ (a question asked at trivia)", "\"She will be visiting\" vs. \"she will visit\" When she goes to Mexico, she will be visiting Chichen Itza. When she goes to Mexico, she will visit Chichen Itza. Is there a particular difference in meaning, or it is just the matter of style?" ]
medi_sts_stackexchange_dupe
Movie or tv show with robots disguised as childen who try to kill progatonist
Movie with killer androids (glowing eyes, screaming)
[ "How do I use the GUI to search for files in GNOME? On the command line I regularly use locate, or more often a locate x | grep y pattern to find a file I know exists but can't find! I'd like something that did this quickly in the GUI. Can't find it if it's there. Here's my confusion In the applications/overview I can see Search and Indexing. This seems to be a configuration tool. But if this is a server, I can't find a client. In applications I find Nepomuk File Indexing -- I think this is a KDE thing? Ditto, no client? I've installed tracker. This is a strange mix of powerful and unreliable/limited. e.g. it doesn't find files like locate does (returns no results where locate returns 96 results), but is will unpack every tag I've added to my photos! And you can't limit by folder for a quick search within a folder. The old Gnome 2 Search for files... thing is not in the Accessories menu anymore. I feel that this is basic/core-level functionality and I can't help feeling I'm missing something obvious.", "How do I get the local machine name?", "VARCHAR size limit in Excel spreadsheets", "Something's been bugging me about SO for a while now, that is the inaccuracy of \"length of time\" strings. The best example I can give at the moment is . If you look at the length of time he's been registered, it says 1 year. He joined the site September 2008, which is only 3 months off two years. It's the same with answers - you can give an answer 50 seconds before anyone else, but at certain times page views will show both as \"5 minutes ago\" or whatever. That's not quite as bad, but with answers being sorted \"randomly by votes\" by default you could lose out on votes or being marked as the correct answer to the slower answer even if they're both the same. There's probably a better method amongst these, IMO: \"Vulgar fraction\" unicode characters Member for 1½ years answered 5¼ minutes ago asked 3⅓ hours ago Different units Member for 21 months (at least it's better than \"1 year\") Answered 306 seconds ago (ugly, I know) Asked 64 minutes ago (also ugly) Combining units Member for 1 year 9 months (fits easily on the profile screen) Answered 5 minutes 6 seconds ago (probably too long) Asked 3 hours 20 minutes ago (also long) Rounding up I personally prefer option 1, unicode fraction characters. \"Member for 21 months\" is pretty good too because it's easy to quickly work out. \"Asked 452 seconds\" ago is horrible though. EDIT: I'm completely aware of the timestamp hover because I am forced into using it so much. It's a great feature, but it's not really in your face so not everyone knows about it. I still think there's a better \"glancing\" solution than having to hover over the time string.", "Why is \"cupboard\" pronounced with a silent \"p\"? According to Google at least, the word \"cupboard\" originated in late Middle English as denoting a board that held cups. Since then, the word has evolved to mean a kind of cabinet. My question is, given its origin and spelling, why do we pronounce \"cupboard\" with a silent \"p\"? Has the pronunciation simply evolved because \"cup-board\" is too awkward to say, or is there a deeper pronunciation rule that I'm not aware of?", "Guinier regime for form factor Why is it such a good idea to plot the logarithm of the form factor vs $Q^2$ in . It seems arbitrary to me.", "How can I make a PATCH HTTP Callout from Apex? I need to make a PATCH http request. I made the rather incredible discovery today that I can't set an HttpRequest to use the PATCH method, as when sending the request I get a callout exception: System.CalloutException \"Invalid HTTP method: PATCH\" The work around I've found on Stack Exchange and elsewhere is only applicable to a Salesforce Rest API request: This is therefore not helpful to me as I'm calling out to a third party. By what manner of magic can I send a PATCH request from Salesforce? The only work around I can think of is to not do it from Apex - this is not an option.", "Understanding a particular evaluation of $\\prod\\limits_{n=2}^{\\infty}\\left(1-\\frac{1}{n^3}\\right)$ I'm having a hard time understanding the following evaluation of the infinite product $$ \\prod_{n=2}^{\\infty}\\left(1-\\frac{1}{n^3}\\right).$$ In particular, I don't understand how you go from line 2 to line 3. Here $\\omega = -\\frac{1}{2}+ i \\frac{\\sqrt{3}}{2}$, which is a primitive third root of unity. $$\\begin{align}\\prod_{n=2}^{\\infty}\\left(1-\\frac{1}{n^3}\\right) &amp;=\\prod_{n=2}^{\\infty}\\frac{(n-1)(n^2+n+1)}{n^3} \\\\ &amp;=\\lim_{m\\to\\infty}\\frac{1}{m}\\prod_{n=2}^m\\frac{(n-\\omega)(n-\\omega^2)}{n^2} \\\\ &amp;=\\lim_{m\\to\\infty}\\frac{\\Gamma(m+1-\\omega)\\Gamma(m+1-\\omega^2)}{m(m!)^2\\Gamma(-\\omega)\\Gamma(-\\omega^2)(1-\\omega)(1-\\omega^2)(-\\omega)(-\\omega^2)} \\\\ &amp;=\\frac{1}{3\\Gamma(-\\omega)\\Gamma(-\\omega^2)} \\\\ &amp;=\\frac{\\sin{\\pi(-\\omega)}}{3\\pi} \\\\ &amp;=\\frac{\\cosh (\\frac{\\sqrt{3}\\pi}{2})}{3\\pi } \\end{align}$$ EDIT: I think I'm starting to make sense out of this by writing out the terms. $$ \\begin{align} \\prod_{n=2}^{m} \\frac{(n- \\omega)(n-\\omega^{2})}{n^{2}} &amp;= \\frac{(2-\\omega)(3-\\omega) \\cdots (m- \\omega)(2-\\omega^{2})(3-\\omega^{2})\\cdots (m- \\omega^{2})}{2^{2} \\cdot 3^{2} \\cdot \\cdots \\cdot m^{2}} \\\\ &amp;= \\frac{1}{(m!)^{2}} \\frac{\\Gamma(m+1-\\omega)}{(1-\\omega)(-\\omega)\\Gamma(-\\omega)} \\frac{\\Gamma(m+1-\\omega^{2})}{(1-\\omega^{2})(-\\omega^{2})\\Gamma(-\\omega^{2})} \\end{align}$$ Now I have to figure out how to take the limit as $m \\to \\infty$.", "EntityFieldQuery display pager How do I display pager using EntityFieldQuery for fetch results? I can't find complete example. I am doing simmilar to: But I miss part to output simple pagination links (1,2,3... for every next page).", "What is the name of this castle part?", "There are lots (an infinitude) of smooth functions that coincide with $f(n)=n!$ on the integers. Is there a simple reason why Euler's Gamma function $\\Gamma (z) = \\int_0^\\infty t^{z-1} e^{-t} dt$ is the \"best\"? In particular, I'm looking for reasons that I can explain to first-year calculus students.", "Can I uninstall and reinstall Ubuntu Software Center? Since migrating to a true install and upgrading to 12.04 I have had several problems that seem to relate to the Ubuntu Software Center. Hanging at applying changes and blank screen on screen lock only when it is running, for instance. My question is: Can I safely uninstall and reinstall Ubuntu Software Center and could this possibly fix those problems or are they just bugs I have to wait for updates for?", "If $u$ is harmonic and bounded in $0 < |z| < \\rho$, show that the origin is a removable singularity This is a reworking of a previous question which was marked as a duplicate. Some nice folks have referred me to solutions to similar problems. I still have a couple of questions, since one of the solutions used the Poisson kernel, which is not the desired solution in the text, because the Poisson kernel has not been introduced yet. The other solutions were for problems that were similar, but whose solutions were only partially applicable, as I understand them. I'm working on a problem from p. 166 of Lars Ahlfors' Complex Analysis: If $u$ is harmonic and bounded in $0 &lt; |z| &lt; \\rho$, show that the origin is a removable singularity in the sense that $u$ becomes harmonic in $|z|&lt;\\rho$ when $u(0)$ is properly defined. My Solution So Far: Here's what I've got for a non-Poisson kernel solution: We want to find a harmonic conjugate for $u$ in the punctured disk, and then we can apply big Picard to show that $0$ is a removable singularity. The problem is that the punctured disc is not simply connected. If we take $\\sigma = (u \\circ \\exp)(z): L \\to \\mathbb{C}$, where $L$ is the left half-plane, now we have $\\sigma$ harmonic, and defined in a simply connected set $L$, so it has a harmonic conjugate $\\tau$. Now we wish to take $v = (\\tau \\circ \\log):\\{0 &lt; |z| &lt; \\rho\\}\\to \\mathbb{C}$, but in order to do so we need $\\tau$ to be $2\\pi i$-periodic. This is where my proof breaks down. One of the similar problems which readers referred me to used the following strategy: note that since $\\sigma$ is $2\\pi i$-periodic, and $\\sigma, \\tau$ satisfy the Cauchy-Riemann equations, we have that $\\nabla\\tau(z) = \\nabla\\tau(z + 2 \\pi i)$ for all $z\\in L$, or in other words, $\\tau(z) - \\tau(z+2\\pi i)$ is a constant function, say, equal to $\\alpha \\in \\mathbb{R}$. Then, the solution suggests, we can set $$g(z) = u + iv - \\frac{c}{2\\pi}z,$$ in order to make $g$ $2\\pi i$-periodic, and then we can use $(g\\circ \\log)$ on $\\{0 &lt; |z| &lt; \\rho\\}$. But the reason why this won't work for my purposes is: now we have changed $u$! On the other hand, we can't simply subtract $\\frac{c}{2\\pi}\\Im{(z)}$, and try to leave $u$ untouched, because now $g$ is not analytic. How can we get around this? Another strategy entirely might be to try to use the mean-value property. Ahlfors discusses that a lot in the preceding section, and his main example is the punctured disc. Since $u$ is harmonic, we know that the average over circles centered at zero is a constant...", "Infinite distinct factorizations into irreducibles for an element Consider the factorization into irreducibles of $6$ in $\\mathbb{Z}[\\sqrt{-5}]$. We have $6=2 \\times 3$ and $6=(1+\\sqrt{-5}) \\times (1-\\sqrt{-5})$, i.e. $2$ distinct factorizations. And, $$6^2=3 \\times 3\\times2\\times2$$ $$=(1+\\sqrt{-5}) \\times (1-\\sqrt{-5}) \\times (1+\\sqrt{-5}) \\times (1-\\sqrt{-5})$$ $$=(1+\\sqrt{-5}) \\times (1-\\sqrt{-5})\\times3\\times2.$$ More generally, $6^n$ will have $n+1$ distinct factorizations into irreducibles in $\\mathbb{Z}[\\sqrt{-5}]$ by a simple combinatorial argument. But, can we construct a ring in which there exists an element that has an infinite number of distinct factorizations into irreducibles? To make life harder, can we construct an extension of $\\mathbb{Z}$ in which this happens? I have been thinking about this for a while and have managed to find no foothold.. Any help is appreciated.", "How does the momentum operator act on state kets?", "We are developing a C# application for a web-service client. This will run on Windows XP PC's. One of the fields returned by the web service is a DateTime field. The server returns a field in GMT format i.e. with a \"Z\" at the end. However, we found that .NET seems to do some kind of implicit conversion and the time was always 12 hours out. The following code sample resolves this to some extent in that the 12 hour difference has gone but it makes no allowance for NZ daylight saving. CultureInfo ci = new CultureInfo(\"en-NZ\"); string date = \"Web service date\".ToString(\"R\", ci); DateTime convertedDate = DateTime.Parse(date); As per : UTC/GMT Offset Standard time zone: UTC/GMT +12 hours Daylight saving time: +1 hour Current time zone offset: UTC/GMT +13 hours How do we adjust for the extra hour? Can this be done programmatically or is this some kind of setting on the PC's?", "Where Android apps store data? Could you list all possible directories where Android apps may store data, providing description what kind of data are stored in each directory?", "Evaluating the integral $\\int_0^\\infty \\frac{x \\sin rx }{a^2+x^2} dx$ using only real analysis Calculate the integral$$ \\int_0^\\infty \\frac{x \\sin rx }{a^2+x^2} dx=\\frac{1}{2}\\int_{-\\infty}^\\infty \\frac{x \\sin rx }{a^2+x^2} dx,\\quad a,r \\in \\mathbb{R}. $$ Edit: I was able to solve the integral using complex analysis, and now I want to try and solve it using only real analysis techniques.", "Android backup/restore: how to backup an internal database?", "\"How are\" or \"How is\" the wife and kid?" ]
medi_sts_stackexchange_dupe
An object reference is required for the non-static field,method,or property 'tblSoftwareImageTestPlan.SoftwareImageTestPlanID'
CS0120: An object reference is required for the nonstatic field, method, or property 'foo'
[ "Showing that the sample mean and variance are independent by showing two distribution are the same", "Is kinetic energy a relative quantity? Will it make inconsistent equations when applying it to the conservation of energy equations? If the velocity is a relative quantity, will it make inconsistent equations when applying it to the conservation of energy equations? For example: In the train moving at $V$ relative to ground, there is an object moving at $v$ relative to the frame in the same direction the frame moves. Observer on the ground calculates the object kinetic energy as $\\frac{1}{2}m(v+V)^2$. However, another observer on the frame calculates the energy as $\\frac{1}{2}mv^2$. When each of these equations is plugged into the conservation of energy, they will result in 2 distinct results (I think).", "having bracket in front of an item", "Query standard input of lightning-input I want to query standard HTML textarea which is wrapped by lightning-textarea. How can I get it? &lt;lightning-textarea name=&quot;secret_field&quot; label=&quot;Secret&quot; value={secretFieldValue}&gt;&lt;/lightning-textarea&gt;", "error tex capacity exceeded log files added I am having a hard time figuring out where the problem is with my code/workflow. I previously posted this question , but then the same problem came straight back. When I run it in tex, I get an error input limit exceeded. The exact log is pasted below: This is pdfTeX, Version 3.14159265-2.6-1.40.17 (MiKTeX 2.9.6210 64-bit) (preloaded format=pdflatex 2017.1.26) 26 JAN 2017 20:45 entering extended mode **./master.tex (master.tex LaTeX2e &lt;2016/03/31&gt; patch level 3 Babel &lt;3.9r&gt; and hyphenation patterns for 75 language(s) loaded. (\"C:\\Program Files\\MiKTeX 2.9\\tex\\latex\\base\\article.cls\" Document Class: article 2014/09/29 v1.4h Standard LaTeX document class (\"C:\\Program Files\\MiKTeX 2.9\\tex\\latex\\base\\size11.clo\" File: size11.clo 2014/09/29 v1.4h Standard LaTeX file (size option) ) \\c@part=\\count79 \\c@section=\\count80 \\c@subsection=\\count81 \\c@subsubsection=\\count82 \\c@paragraph=\\count83 \\c@subparagraph=\\count84 \\c@figure=\\count85 \\c@table=\\count86 \\abovecaptionskip=\\skip41 \\belowcaptionskip=\\skip42 \\bibindent=\\dimen102 ) (\"C:\\Program Files\\MiKTeX 2.9\\tex\\latex\\apacite\\apacite.sty\" Package: apacite 2013/07/21 v6.03 APA citation \\c@BibCnt=\\count87 \\bibleftmargin=\\skip43 \\bibindent=\\skip44 \\bibparsep=\\skip45 \\bibitemsep=\\skip46 \\biblabelsep=\\skip47 ) No file master.aux. \\openout1 = `master.aux'. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 5. LaTeX Font Info: ... okay on input line 5. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 5. LaTeX Font Info: ... okay on input line 5. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 5. LaTeX Font Info: ... okay on input line 5. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 5. LaTeX Font Info: ... okay on input line 5. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 5. LaTeX Font Info: ... okay on input line 5. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 5. LaTeX Font Info: ... okay on input line 5. \\c@maskedRefs=\\count88 (\"C:\\Program Files\\MiKTeX 2.9\\tex\\latex\\apacite\\english.apc\" File: english.apc 2013/07/21 v6.03 apacite language file LaTeX Info: Redefining \\BPBI on input line 129. LaTeX Info: Redefining \\BHBI on input line 130. ) ! TeX capacity exceeded, sorry [input stack size=5000]. \\AtBeginDocument #1-&gt;#1 l.5 \\begin{document} If you really absolutely need more capacity, you can ask a wizard to enlarge me. Here is how much of TeX's memory you used: 641 strings out of 493333 7639 string characters out of 3139188 74825 words of memory out of 3000000 4254 multiletter control sequences out of 15000+200000 3940 words of font info for 15 fonts, out of 3000000 for 9000 1141 hyphenation exceptions out of 8191 5000i,0n,4998p,136b,36s stack positions out of 5000i,500n,10000p,200000b,50000s ! ==&gt; Fatal error occurred, no output PDF file produced! I previously posted this question and thought I solved it but am having the same problem again. The latex code I am trying to execute is below: \\documentclass[11pt,twoside]{article} \\usepackage{apacite} \\nocite{*} \\begin{document} % title page. Edit as needed for future publications. \\title{Research Proposal} \\author{Teererai Marange \\\\ Department of Computer Science \\\\ University of Auckland\\\\ \\texttt{[email protected]}} \\date{January 26, 2017} \\maketitle % end title page. % abstract goes here \\newpage \\begin{abstract} Abstract goes here \\end{abstract} \\newpage % table of contents \\tableofcontents \\newpage %begin introduction \\section {Introduction} Lorem Ipsum Doremifaso %\\cite{Nedakeyword} use to cite %references our biliography. This must go whereever we use our bibtex references \\bibliography{references} \\bibliographystyle{apacite} \\end{document} and the bib file that I am using to build the bibliography is below: @misc{wikipedia1, title = \"Scripting language\", author = \"Wikipedia\", url = {http://en.wikipedia.org/wiki/Scripting_language}, year = 2014, }", "Injecting beans into a class outside the Spring managed context I'm an end-user of one of my company's products. It is not very suitable for integration into Spring, however I am able to get a handle on the context and retrieve the required bean by name. However, I would still like to know if it was possible to inject a bean into this class, even though the class is not managed by Spring itself. Clarification: The same application which is managing the lifecycle of some class MyClass, is also managing the lifecycle of the Spring context. Spring does not have any knowledge of the instance of MyClass, and I would like to some how provide the instance to the context, but cannot create the instance in the context itself.", "What is the correct way to completely remove an application?", "A word for a person who always needs there to be a problem?", "Where in the registry does Windows store with which program to open certain file types? After installing Adobe PDF reader, it opens files with the .PDF file extension. Ones' default web browser opens .html files and notepad opens .txt files, etc. Where exactly in the registry are these filetype - program associations stored in the registry? In other words, how does Windows know with which software/program it must open a certain file(type)?", "I'd prefer as little formal definition as possible and simple mathematics.", "Detect which TeX engine is used How can I detect inside a TeX file which engine (pdftex/xetex/luatex) is used to compile the file? Is there a LaTeX package that provides this functionality?", "A cyclic group is a group that is generated by a single element. That means that there exists an element $g$, say, such that every other element of the group can be written as a power of $g$. This element $g$ is the generator of the group. Is that a correct explanation for what a cyclic group and a generator are? How can we find the generator of a cyclic group and how can we say how many generators should there be?", "Remote login with graphical display manager (GDM, LightDM) Is it possible to remotely (via ssh) make a login to GDM? I'll explain a situation in which I'd need this: I'm on my laptop and connect to my desktop via ssh. I realize there are some updates available. I install them all, but I need to reboot the computer. The problem is that once the desktop has rebooted, there will be no GDM session available, since it's necessary to log in. Can I somehow perform the GDM login remotely from my laptop? Edit: I can't find FreeNX for Maverick, and I haven't been able to configure x11vnc + vncviewer to work. Isn't there an easy way?", "First, my apologies if this has already been asked/answered. I wasn't able to find this question via search. My question comes from Rudin's \"Principles of Mathematical Analysis,\" or \"Baby Rudin,\" Ch 1, Example 1.1 on p. 2. In the second version of the proof, showing that sets A and B do not have greatest or lowest elements respectively, he presents a seemingly arbitrary assignment of a number $q$ that satisfies equations (3) and (4), plus other conditions needed to show that $q$ is the right number for the proof. As an exercise, I tried to derive his choice of $q$ so that I may learn more about the problem. If we write equations (3) as $q = p - (p^2 - 2)x$, we can write (4) as $$ q^2 - 2 = (p^2 - 2)[1 - 2px + (p^2 - 2)x^2]. $$ Here, we need a rational $x &gt; 0$, chosen such that the expression in $[...]$ is positive. Using the quadratic formula and the sign of $(p^2 - 2)$, it can be shown that we need $$ x \\in \\left(0, \\frac{1}{p + \\sqrt{2}}\\right) \\mbox{ for } p \\in A, $$ or, for $p \\in B$, $x &lt; 1/\\left(p + \\sqrt{2}\\right)$ or $x &gt; 1/\\left(p - \\sqrt{2}\\right)$. Notice that there are MANY solutions to these equations! The easiest to see, perhaps, is letting $x = 1/(p + n)$ for $n \\geq 2$. Notice that Rudin chooses $n = 2$ for his answer, but it checks out easily for other $n$. The Question: Why does Rudin choose $x = 1/(p + 2)$ specifically? Is it just to make the expressions work out clearly algebraically? Why doesn't he comment on his particular choice or the nature of the set of solutions that will work for the proof? Is there a simpler derivation for the number $q$ that I am missing?", "From this by orlp: If I strap a rocket booster to a rocket in space and fire it for one second, then the work provided is much higher when the rocket is flying fast compared to when the rocket was stationary. In both cases the rocket fires for the same duration but in the former case the rocket travels a much greater distance during this period. What gives?", "Could someone advise me on how to determine all entire functions $f$ such that $|f'(z)| \\leq |f(z)|, \\forall z\\ ?$ Hints will suffice, thank you.", "How do you convert a byte array to a hexadecimal string, and vice versa?", "SCJP6 regex issue", "Set margins in maketitle", "Can my commander ever not be my commander? Once and for all: Is there anything that can possibly be done to my commander that would cause it to cease being my commander? All of these questions ask the same thing, but aren't general enough to be marked as a duplicate. Is a commander still a commander if it gets turned into a forest? Is a commander still a commander if it gets turned face down?" ]
medi_sts_stackexchange_dupe
I find it easier to get a visa for Portugal, as I have relatives there. But my aim is to spend more time in Italy
Should my first trip be to the country which issued my Schengen Visa?
[ "What would be the associated wavelength of the particle if its velocity is zero?", "What is the best way to iterate over a dictionary?", "Facebook changed how their API serves profile pictures that are requested with a non-application scope UID. Now because before Graph API 2 all applications shared the original UID, if users like me has joined Stack Exchange websites before 2, rolling out their profile pictures are not shown properly. Facebook suggests to use an access token to query those profile pictures, either an application access token or a user access token. A user access token is not a reliable option at all, because it would only work for users who joined website with Facebook and are currently logged in. Application access tokens, by the way, can be used by creating sort of a proxy that would retrieve a profile picture from Facebook and display it. Yet still it's not perfect. I think the best solution is to communicate with Facebook and ask them to offer an opportunity to convert old Graph API 1 UID's to application scope user IDs.", "Working in a group blender project Me and my team are new to blender, we are now planning for a small project. What I want to ask here are some questions regarding the team work: We use git for version control in web projects, Is there any special version control for blender project. Creating object of each file and integrating in the project is one way we saw to complete the project. But is there any good way to work in the group? Please tell us from your experience what might be the best way to work together in a group blender project.", "There are several ways to execute a script. The ones I know are: /path/to/script # using the path (absolute or relative) . script # using the . (dot) source script # using the `source` command Are there any other way? What are the differences between them? Are there situations that I must use one and not another?", "Is there a way to turn option strict off for just a single line of code? I'm doing some maintenance work and I need to \"cheat\" in just one place and I don't want to lower the standard for the entire file.", "What to write in visa application form and what documents to submit as an unregistered freelancer? There are many visa applicants who are working as an unregistered freelancer (photographer, construction contractor, fashion designer, journalist etc ). Some of these freelancers make really handsome monthly income and don't really need to work as a full time employee. Most of them receive variable amount of payments (cash, cheques, demand drafts etc) When it comes to filling a visa application form (USA, UK, Schengen etc), there is always an employment section in all visa form, eg for Schengen visa employment form : This is a very important factor to make an application really strong. Questions: 1 Unregistered freelancers can just simply write their profession? what documents to produce along with the application? 2 Bank statements with variable methods of payments could convince the visa officer that these are all legitimate payments?", "How exactly does curved space-time describe the force of gravity?", "At what age does a toddler stop being a toddler?", "I am wondering why matrix factorization techniques in the machine learning domain almost always expect the provided matrix to be non-negative. What is the advantage of this constraint? Background: I want to use matrix factorization algorithms for a sparse user-item matrix containing positive and negative implicit feedback. Is there any another possibility to set interactions with negative indications apart from fields that denote that no interaction happened between the user and the item?", "How many RSA keys before a collision? I was wondering how many possible private/public keys exist? If a million people – for whatever reason – would try to generate 5 keys each in the same minute (on the same date and time) is there a high chance of collision? I believe GUID would suffer from that problem as many bits are reversed for date/time (and GUID version) and isn't meant to be used in that way. Would RSA suffer from collisions if many keys were to be generated in the same moment? Is the amount of possible keys known? I know RSA is based on prime numbers and small numbers are to be rejected. I’m sure values above a certain amount of digits/bits are rejected because software may not be able to support those large values? So: How many RSA keys before a collision? And if you would try to make many at the same time, would that give you a high chance of collision?", "Makeindex error when ! used in \\index in align environment See MWE below. The symbol ! in the \\index causes an error. This is only the case in align environments (not in equation). So it seems to have to do something with amsmath. If ! is put in an \\mbox there is no error. But then of course the font size is not adjusted to subindices. Curiously enough, \\index{$C_{K!!}$} (two exclamation marks) doesn't cause any error. \\documentclass{article} \\usepackage{amsmath} \\usepackage{imakeidx} \\makeindex \\begin{document} \\begin{align} y\\index{$C_{K!}$} \\end{align} \\printindex \\end{document} Any solutions suggested?", "On citing \"common knowledge\" statements I am an undergraduate student with no experience at all. If you are writing a research paper, that you are planning to submit for publication, how do you state that a particular statement/fact is commonly known to all and it's dicoverer/inventor is not known, and that there exists no research paper that introduced the concept but there do exist various books/websites that discuss the very concepts and a few derivatives of the concept? I am not able to cite a particular statement/bunch of statements as I am not able to find any research paper related to that at all. The particular thing in question is: What should I do?", "Why was Dumbledore worried by the cut in Harry's arm?", "How do I write to NTFS drives in OS X?", "How do you prevent an ENTER key press from submitting a form in a web-based application?", "In the inline math mode ($...$), if the formula is too long, LaTeX will try to break it on operators, e.g. very long text followed by a very long equation like $a+b+c+d+e+f+g+h+i+j+k+l$ etc may be rendered as very long text followed by a very long equation like a+b+c+d+e+f+g+h+i+ j+k+l etc However, the break won't happen if they are separated by commas, e.g. very long text followed by a very long equation like $a,b,c,d,e,f,g,h,i,j,k,l$ etc will overflow the page like very long text followed by a very long equation like a,b,c,d,e,f,g,h,i,j,k,l etc How to make LaTeX able to insert line breaks after a comma too?", "Are used Schengen/UK visas acceptable for Turkish e-visa", "When is mapping $g$ to $g^{-1}$ a group homomorphism? It just means that the map maps the identity to the identity and inverses to inverses. So does that mean it's only a homomorphism if the inverse is itself?", "How to display Trash and Home folder icons? I've googled quite a bit but nothing I've found works. I just want to display the Trash, Home folder, Computer etc icons on my Desktop in Ubuntu. The closest I've come is installing dconf-tools, running it, going to org -&gt; gnome -&gt; desktop -&gt; background and checking show-desktop-icons then org -&gt; gnome -&gt; nautilus -&gt; desktop and checking the icons I want to show. Nothing happens. I've also tried looking in compizconfig-settings-manager and gconf-editor but can't find anything there. Ideas?" ]
medi_sts_stackexchange_dupe
Cannot install VLC in Ubuntu 18.04.4 LTS
Unable to correct problems, you have held broken packages
[ "Why is the observable universe so big? The observable universe is approximately 13.7 billion years old. But yet it is 80 billion light years across. Isn't this a contradiction?", "How do I reverse a list using recursion in Python?", "What Does it Really Mean to Have Different Kinds of Infinities? Can someone explain to me how there can be different kinds of infinities? I was reading \"\" by and came across the concept of countable and uncountable infinities, but they're only words to me. Any help would be appreciated.", "Full Name Requirement of Commit Phase The Commitment form on Area 51 requires your full name to be provided. Is this publicly viewable? Why not just use the existing usernames?", "Geoserver ecw plugin problem I am trying to publish some ecw files with geoserver 2.7.2 on ubuntu 15.04 x64. I downloaded gdal plugin, gdal_data and native libraries for image-io 1.1.11 and set environment variables; GDAL_DATA, LD_LIBRARY_PATH. I can see new store types when adding new one (ECW, EHdr, JP2ECW etc.). But when I try to save an ECW store with a valid ecw file which I tested with ArcMap, geoserver crashes with this error: terminate called after throwing an instance of 'std::length_error' what(): basic_string::_S_create Aborted (core dumped) Do you have any idea about this problem?", "What is a word that could define someone who likes to cause conflict?", "When I press the power button a dialog opens, but I want to shutdown the system without receiving \"Do you really really want to shutdown?\". How can I choose a direct shutdown action on a pressed power button? I had the same problem with the 11.04 version, but I don't remember the solution and yesterday I upgraded to Ubuntu 11.10.", "Duplicate: I want an pseudo random number generator that can generate numbers with no repeats in a random order. For example: random(10) might return 5, 9, 1, 4, 2, 8, 3, 7, 6, 10 Is there a better way to do it other than making the range of numbers and shuffling them about, or checking the generated list for repeats? Edit: Also I want it to be efficient in generating big numbers without the entire range. Edit: I see everyone suggesting shuffle algorithms. But if I want to generate large random number (1024 byte+) then that method would take alot more memory than if I just used a regular RNG and inserted into a Set until it was a specified length, right? Is there no better mathematical algorithm for this.", "How do I show that $X = \\left\\{ (x,y) \\in \\mathbb{R}^2 \\mid x \\in \\mathbb{Q}\\text{ or }y \\in \\mathbb{Q}\\right\\}$ is path connected? Note that $X$ is a topological space with subspace topology $\\tau = \\left\\{ U \\cap X \\mid U\\text{ is open in }\\mathbb{R}^2\\right\\}$. I only know two things (with respect to path connectedness): A topological space $X$ is path connected iff for every $p,q \\in X$, there is a continuous function $f: [a,b] \\to X$ with $f(a)=p$ and $f(b) = q$. Continuity $f$ is defined as for every open set in $X$, its preimage is open in $[a,b]$ (with subspace topology induced by $\\mathbb{R}$ (with standard topology) ) Suppose $X$ and $Y$ are two topological spaces and $f: X \\to Y$ is a continuous surjection. If $X$ is path connected, then $Y$ is path connected.", "How do I install the Intel Graphics driver in my system? Can someone help me out and explain or point me in the right direction on how to check video drivers and see if my video card running okay? I had 10.04 installed on my Thinkpad r61 with Compiz Manager and life was great, until the machine took water damage. I bought an ASUS (X54H) since and am trying out 12.04, but the desktop just doesn't look right. I always struggled with video driver installation. There are no proprietary drivers available in the hardware manager. When I run lspci | grep VGA: 00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) I will greatly appreciate your help. I want to use Linux more, but like I said video drivers appear to be my biggest concern. I have also tried 12.04 on my desktop PC, but again failed to configure video card, so switched back to Windows 7.", "I have $a,b,c\\in\\mathbb{Q}$ not all zero. ($a^2+b^2+c^2\\ne 0$), I want to show that the following determinant is then non-zero. I failed to arrive at an appropriate form of the polynomial. Help please. $$\\left|\\begin{bmatrix} a &amp; 2c &amp; 2b\\\\b &amp; a &amp; 2c\\\\ c &amp; b &amp; a\\end{bmatrix}\\right| = a^3+2 b^3-6 a b c+4 c^3$$ Second question, what is the easiest way to argue that $\\{1,\\sqrt[3]{2},(\\sqrt[3]{2})^2\\}$ is linearly independent in $\\mathbb{Q}$? Motivation: Prove that $\\mathbb{Q}[\\sqrt[3]{2}] = \\{a+b\\sqrt[3]{2}+c(\\sqrt[3]{2})^2\\;|\\;a,b,c\\in\\mathbb{Q}\\}$ forms a field. Proof: Since $\\mathbb{Q}[\\sqrt[3]{2}] \\subset \\mathbb{R}$, we prove $\\mathbb{Q}[\\sqrt[3]{2}]$ is a subfield of $(\\mathbb{R},+,\\cdot)$ $\\forall (a+b\\sqrt[3]{2}+c(\\sqrt[3]{2})^2)\\in \\mathbb{Q}[\\sqrt[3]{2}]\\backslash\\{0\\}.$ We want to find $(a+b\\sqrt[3]{2}+c(\\sqrt[3]{2})^2)$ such that $(a+b\\sqrt[3]{2}+c(\\sqrt[3]{2})^2)(d+e\\sqrt[3]{2}+f(\\sqrt[3]{2})^2) =$ $ (ad+2ec+2bf)+(ae+bd+2cf)\\sqrt[3]{2}+(af+cd+be)(\\sqrt[3]{2})^2 = 1$ Since $\\{1,\\sqrt[3]{2},(\\sqrt[3]{2})^2\\}$ is linearly independent (?) over $\\mathbb{Q}$, we show there is unique solution to: $$\\begin{bmatrix} a &amp; 2c &amp; 2b\\\\b &amp; a &amp; 2c\\\\ c &amp; b &amp; a\\end{bmatrix} \\cdot \\left[\\begin{array}{l l} d\\\\e\\\\f \\end{array}\\right] = \\left[\\begin{array}{l l} 1\\\\0\\\\0 \\end{array}\\right] $$ Which is equivalent in showing the determinant is non-zero $$\\left|\\begin{bmatrix} a &amp; 2c &amp; 2b\\\\b &amp; a &amp; 2c\\\\ c &amp; b &amp; a\\end{bmatrix}\\right| = a^3+2 b^3-6 a b c+4 c^3=(?)$$ By subfield test, 1)2)3)4) is enough to say that $(\\mathbb{Q}[\\sqrt[3]{2}],+,\\cdot)$ is a subfield of $(\\mathbb{R},+,\\cdot)$ therefore a field. EDIT: If you have shorter way that prove the proposition without touching my 2 questions, that is even better.", "Windows Metro apps have wrong icon in search UI", "How many keys does the Playfair Cipher have?", "What do I need to consider to choose between dSLR, mirrorless, or a compact as my first \"serious\" camera? 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?", "We have been using Notes and Attachment to store files related to the record. I also read about Files in salesforce. How are Files different from Attachment? Are there any limitations or benefits of using Files instead of Attachments? Are Files available for all editions of Salesforce? Is it possible to link Files to particular records so they are visible as related list? I tried looking into the content version but cant seem to find anything to relate to a record", "I don't know how to prove this example. Let $y(t):\\mathbb{R}^+\\to \\mathbb{R}$ be a nonincreasing function. Assume that there is a constant $A&gt;0$ such that \\begin{equation} \\int_{s}^{+\\infty}y(t)dt \\leq Ay(s), \\quad 0\\leq s&lt;+\\infty \\end{equation} Then $y(t)\\leq y(0)e^{1-\\frac{t}{A}}$, for all $t&gt;0$.", "Django template how to look up a dictionary value with a variable", "\"May I have a glass of water\" vs. \"Can I have a glass of water\": which is better, \"may I\" or \"can I\", when asking for something? What is the correct sentence when asking for something like while flying asking for a glass of water : May I have a glass of water or Can I have a glass of water", "Hyperref \"enquotes\" metadata EDIT: As Bill B. and Caramdir point out in their comments after Bill B. produced his results posted below, more information is needed in order to make a better call. To remedy, my output was produced using MiKTeX 2.8 pdflatex with no special command line flags or switches. My pdf viewer is Adobe Acrobat Pro 9.0. The platform is Windows 7. All software including hyperref is fully up to date against the latest rev levels and patches. As I'm guessing that this is a pretty normal setup, at least in the Windows world, I'd be very interested (and grateful) in learning whether this problem affects other people or whether it's just some kind of rather weird one-off. My gut feel after seeing Bill B's results (and also after having traversed hyperref's code) is that the culprit is Adobe Acrobat or possibly MiKTeX pdflatex. Can anyone corroborate? I'd be very grateful to know. Original question: I have a problem with hyperref; it \"enquotes\" Author and Keywords (but not Title or Subject) metadata if the data sent to these contain a comma or semi-colon (but not, say, a full stop or a colon). I've included some figures and code that show this below. \\documentclass{article} \\newcommand*\\metadata{% % uncomment all but one line below % a b c% &lt;-- no problem a, b, c% &lt;-- problem % a; b; c% &lt;-- problem % a: b: c% &lt;-- no problem % a* b* c% &lt;-- no problem } \\usepackage[ pdftitle={\\metadata}, % never enquoted pdfauthor={\\metadata}, % enquoted if , or ; is present pdfsubject={\\metadata}, % never enquoted pdfkeywords={\\metadata}, % enquoted if , or ; is present ]{hyperref} \\begin{document} Press ctl-d (in Acrobat Reader) to see pdf file metadata. \\end{document} Not only is this quite ugly but, more importantly, it interferes with metadata extracting programs used by certain document repositories. I've worked my way through hyperref's code without much success. Would anyone have a solution for this problem? Or advice about what I might be doing wrong?", "I need a number of different full-page DOM samples for my qUnit test suite" ]
medi_sts_stackexchange_dupe
How does Dumbledore apparate into Hogwarts grounds in the sixth film?
How did Draco apparate within Hogwarts?
[ "How to remove spikes from switching transistor?", "To be truly standards-compliant, must all functions in C (except for main) have a prototype, even if they are only used after their definition in the same translation unit?", "Drift velocity of electron", "Where to get the full offline-capable installer for macOS Mojave (.1 update)?", "Does priority matter in Magic?", "Is there a way to reorganize the fields/attributes in a data extension? I've added some extra fields that relate to other fields in that extension. I haven't found a way to regroup those fields.", "If router is off for a few days, do you have an ip address as far as ISP is concerned? I have an ISP which assigns IP addresses dynamically. If I go out and turn my router off I am always assigned a new one once I turn it back on. Does that mean that... 1) my previous IP goes elsewhere when my router is turned off? 2) i dont actually have an IP address if my router is off for a day or more?", "Axiom of Choice: Where does my argument for proving the axiom of choice fail? Help me understand why this is an axiom, and not a theorem.", "Possible Duplicate: I have recently seen this image: Should \"a\" have been used instead of \"an\" in the \"...an $100,000 apartment\" part?", "Share the clipboard between bash and X11 In the top answer shows how to copy text that has been previously selected with the mouse on a gnome-terminal, to the clipboard in X11. My question is: Say I copy a piece of text from the terminal using bash set-mark and copy keyboard shortcuts (i.e. set-mark + M-w). Is it possible to share this clipboard with X11? EDIT: In the original question, I talked about sharing the clipboard with GNOME, but as Gilles points out below, GNOME doesn't specifically have a clipboard (it's general to X), so I have updated the question.", "Why can't \"fi\" be separated when being copied from a compiled pdf?", "Can you make a custom mouse cursor for the game engine? I would like the mouse to have a custom look like most games and not just the default white. Is there a way I can make an object as the mouse?", "When in a group chat, if many messages are exchanged between other people in the group, when I check my Whatsapp, the messages are grouped according to sender and not chronologically. I know that my phone isn't the problem as I have recently changed my phone, however, I'm still experiencing the same problem. I have tried uninstalling and re-installing WhatsApp on my phone, and the same problem still occurs.", "Rewrite rules goes away", "Something wrong with monthly user rep - some users show quarterly figures?", "Why is my ethernet interface called enp0s10 instead of eth0? When I run ifconfig -a, I only get lo and enp0s10 interfaces, not the classical eth0 What does enp0s10 mean? Why is there no eth0?", "Speed of neutrinos Everyone knows it is close to $c$, but how close? What are the recent results?", "By default, all browser instances use the same cookie for the same site. Is there a browser that doesn't follow this? Or is there a Firefox plugin that can \"wear\" different cookies for a specific site?", "Lunch Meeting Probability for two person to meet in given 1 hour slot and none would wait more then 15 minute. Two friends who have unpredictable lunch hours agree to meet for lunch at their favorite restaurant whenever possible. Neither wishes to eat alone and each dislikes waiting for the other, so they agree that each will arrive at a random time between noon and 1 pm, and each will wait for the other for 15 minutes or until 1:00. What is the probability that the friends will meet for lunch on a given day?", "Shiny locked Legendaries in ORAS" ]
medi_sts_stackexchange_dupe
How to change the date format?
How do I adjust the Clock Indicator format?
[ "Stack Overflow is getting a Meta of its own", "Calculate the area on a sphere of the intersection of two spherical caps Given a sphere of radius $r$ with two spherical caps on it defined by the radii ($a_1$ and $a_2$) of the bases of the spherical caps, given a separation of the two spherical caps by angle $\\theta$, how do you calculate the surface area of that intersection? To clarify, the area is that of the curved surface on the sphere defined by the intersection. At the extreme where both $a_1,a_2 = r$, we would be describing a spherical lune. Alternatively define the spherical caps by the angles $\\Phi_1 = \\arcsin(a_1/r)$ and $\\Phi_2 = \\arcsin(a_2/r)$.", "If you have a java.io.InputStream object, how should you process that object and produce a String? Suppose I have an InputStream that contains text data, and I want to convert it to a String, so for example I can write that to a log file. What is the easiest way to take the InputStream and convert it to a String? public String convertStreamToString(InputStream is) { // ??? }", "How to determine the architecture of an installation or Live CD/DVD? How can I determine which architecture (x86 or x64) my Ubuntu installation medium is for? I don't have it installed, I just need to know which files on the installation media I can use to determine the architecture.", "I wonder is it legal to register a domain name that contains a company name. For example cococola.cc (considering that this domain name is available). Can I buy and use any domain names that contain a name of a trademark?", "Is it legal to develop a game using D&D rules? For a while now I've been thinking about trying my hand at creating a game similar in spirit and execution to Baldur's Gate, Icewind Dale and offshoots. I'd rather not face the full bulk of work in implementing my own RPG system - I'd like to use D&amp;D rules. Now, reading about the subject it seems there is something called \"The License\" which allows a company to brand a game as D&amp;D. This license seems to be exclusive, and let's just say I don't have the money to buy it :p. Is it still legal for me to implement and release such a game? Commercially or open-source? I'm not sure exactly which edition would fit the best, but since Baldur's Gate is based of 2nd edition, could I go ahead an implement that? in short: what are the issues concerning licensing and publishing when it comes to D&amp;D? Also: Didn't see any similar question...", "Python does not find packages installed without Anaconda", "How to undelete a directory that was just deleted with \"rm -R\" command (in cloud drive)? I deleted an important directory with rm -R command. This is an very populer host data. It was located /var/zpanel/hostdata/ayrintilih After remove ayrintilih directory has gone everything. I tried to undelete with ext4magic program. But it need to another hdd volume for recovery. Error message: ERROR: can not use \"/root/recoveried\" for recover directory. It's the same filesystem : \"/dev/dm-0\" My ISP just replied my request: Unfortunately there is no way to add another Volume to a virtual Instance. If it would be a dedicated Server, we could do it, but not in a Cloudserver. You could try to minimize the partition and create another one, that would count as another Volume. We also recommend to have allways a Backup for your Important files.", "Supporting Multiple Screen Sizes in Storyboards (3.5 and 4 inch screens)", "When should we use proximity rule in \"either/or\", and \"neither/nor\"? According to this , if at least one of the nouns involved is plural then it should take the plural form of the verb. Otherwise, it should take the singular form of the verb. But in the last part it says not all grammars agree to those rules thus proximity rule applies. However, it doesn't explain when to apply the proximity rule and when not to use the former rules.", "Spring's SecurityContextHolder.getContext().getAuthentication() returns null after RedirectView is used in HTTPS/SSL", "how to launch Bluez on Lubuntu Trying to launch a BT adapter/manager(default installed on Lubu)a little window informs me that it cannot because there's no Bluez launched. In terminal: sudo apt install bluez, it answers: Bluez is already the new version (5.46-0ubuntu3) Then invites me to remove a couple of obsolete packages. So where's Bluez Daemon to launch? Writing:systemctl status bluetooth.service ; hcitool dev Answer: bluetooth.service - Bluetooth service Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset Active: inactive (dead) Docs: man:bluetoothd(8) Command:lspci -k | grep -A3 -i \"wireless\\|network\\|bluetooth\" Answer: 04:00.0 Ethernet controller: Qualcomm Atheros AR242x / AR542x Wireless Network Adapter (PCI-Express) (rev 01) Subsystem: Quanta Microsystems, Inc AR242x / AR542x Wireless Network Adapter (PCI-Express) Kernel driver in use: ath5k Kernel modules: ath5k 0f:06.0 CardBus bridge: Texas Instruments PCIxx12 Cardbus Controller oem@oem-Extensa-5220:~$", "In Lubuntu, there's no 'Add New Program...' button in Desktop Session Settings. Is there an easy way to add new autostart programs in Lubuntu?", "My reputation suddenly raised by 10k!", "Ubuntu touchpad issues - mouse pointer jumps around", "How to unzip a zip file from the Terminal?", "What's the meaning of a set to the power of another set?", "Free way to clone HDD to SSD?", "How do I clone a generic list in C#?", "Get most common value for each value of another column in SQL I have a table like this: Column | Type | Modifiers ---------+------+----------- country | text | food_id | int | eaten | date | And for each country, I want to get the food that is eaten most often. The best I can think of (I'm using postgres) is: CREATE TEMP TABLE counts AS SELECT country, food_id, count(*) as count FROM munch GROUP BY country, food_id; CREATE TEMP TABLE max_counts AS SELECT country, max(count) as max_count FROM counts GROUP BY country; SELECT country, max(food_id) FROM counts WHERE (country, count) IN (SELECT * from max_counts) GROUP BY country; In that last statement, the GROUP BY and max() are needed to break ties, where two different foods have the same count. This seems like a lot of work for something conceptually simple. Is there a more straight forward way to do it?" ]
medi_sts_stackexchange_dupe
What is a good Primer on the subject of Physics?
Book recommendations
[ "How to close aberrant tooltips in Windows So, here I am, trying to watch The Cleveland Show (TM). And, as happens from time to time, some program or another has left a modal tooltip. I don't know which program; how can I lose the tooltip, short of logoff/reboot? Currently happening on Windows 10, but I have seen it on other versions.", "Failed to start TSQL debugger I want to debug in TSQL.When I start the debug the following message box popup. In SSMS v17.2 Then I see this message: In Microsoft Visual Studio 2015 Server Explorer same Error: Then I see this message: Thank You!", "How to get div height to auto-adjust to background size? How do I get a div to automatically adjust to the size of the background I set for it without setting a specific height (or min-height) for it?", "Concentric circles with CSS", "Why does the /boot partition get updated when I install software Based on some recommendations I read online, on install of a new (Ubuntu) system, I made my /boot partition separate from / and small in size (only around 50 MB). It makes sense to me that you would only need limited files in that partition, and the boot sequence only needs so much data initial data on boot so no need (or so goes my thinking) to make it much larger. I was surprised as I started using my system and installing software was failing due to the following (or similar) issue: gzip: stdout: No space left on device cpio: write error: Broken pipe E: mkinitramfs failure cpio 1 gzip 1 update-initramfs: failed for /boot/initrd.img-3.2.0-18-generic with 1. I have already seen and am planning on doing a reinstall with a larger /boot partition. My questions are: Why does the /boot partition data get updated when I am only installing software? obviously 50 MB is too small for my needs, so what would be a reasonable /boot partition size? Does it even make sense to have separate boot partition? after all it could simply use all the disk space it wants in the / partition.", "Sometimes it's hard to search for older versions of macOS &amp; OS X on the App Store. This is an attempt to provide the canonical QA for this issue, as per the Meta QA - I expect it to be modified over time to hopefully become a complete information resource. How can I get any older version of a Mac OS to be able to run as a VM, or to reinstall on my Mac?", "I'm testing something in Oracle and populated a table with some sample data, but in the process I accidentally loaded duplicate records, so now I can't create a primary key using some of the columns. How can I delete all duplicate rows and leave only one of them?", "I had the Facebook and Instagram apps installed on my iPhone (latest iOS). I deleted both apps and checked that there was no data from either app stored on iCloud (I went to Settings - iCloud - Manage storage and there was no mention of them storing anything on iCloud). Then I reinstalled Instagram, opened it, clicked on Login and the page still showed “Login as MYFACEBOOKNAME”. How is this possible? How can I delete my FB login info once and for all on my iPhone?", "Solving ODE with negative expansion power series I am solving a series of ODE, such that each DE is equal to some degree of term that I'm expanding to. For instance, one DE is this: $\\xi^r\\partial_r g_{rr}+2g_{tt}\\partial_t\\xi^t=\\mathcal{O}(r)$ $g_{ii}$ are given, from metric, but that's not important. I need to assume that the solution (since I'm looking for components of $\\xi^\\mu$, which is a vector with components $\\xi^t,\\xi^r,\\xi^\\phi$) is given with power series of the form: $\\xi^\\mu=\\sum\\limits_{n}\\xi^\\mu_n(t,\\phi)r^n$, and this is to be seen as expansion around $1/r$ (expansion around $r=\\infty$). Now when I plug this in the ODE I get this $\\frac{2}{l^2}\\sum_n\\xi^r_nr^{n+1}+2\\sum_n\\xi^t_{n,t} r^n+\\frac{2}{l^2}\\sum_n\\xi^t_{n,t}r^{n+2}=\\mathcal{O}(r)$, where $\\xi^\\mu_{n,i}$ is the derivative with the respect to i-th component. What troubles me is, how to expand this? Do I set n=0,-1,-2,... until my $\\mathcal{O}(r)$ terms cancel each other out? Or? I'm kinda stuck :\\", "Can you determine a formula for this problem?", "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.)", "Windows service stops automatically", "REST Service API executor.executeAsync Call Ends in Failure Function in Sharepoint Hosted App Any Answers Will Help me to Forward and Gain Knowledge in SharePoint Development While i am Trying to get the list Items Using Rest API Calls in SharePoint Hosted App Using Below Function function loadingSamples() { var JobListName = \"RRR Jobs #\"; var executor; // Initialize the RequestExecutor with the app web URL. executor = new SP.RequestExecutor(\"/\"); //Fetching the choice values from the Job Status Field, to show in the Dropdown field executor.executeAsync ({ url: \"/_api/web/lists/getbytitle('\" + encodeURIComponent(JobListName) + \"')/fields/getbytitle('Job Status')?$select=Choices\", method: \"GET\", headers: { \"Accept\": \"application/json; odata=verbose\" }, success: successHandlerStatus, error: errorHandler }); } function successHandlerStatus(data) { alert(\"sucesss\") } function errorHandler(data, errorCode, errorMessage) { alert(\"errorMessage\") } It's always going to error function named errorHandler With Error Code as -1002 and Error Message as Bad Request and Inside Data -> Body , the Error message is { \"error\":{ \"code\":\"-1,Microsoft.SharePoint.Client.InvalidClientQueryException\", \"message\":{ \"lang\":\"en-US\", \"value\":\"The expression \\\"web/lists/getbytitle('DWR Jobs \\\" is not valid.\" } } } Note : This is working code in Sharepoint Hosted App that previously hosted in another Windows server. Now i hosted this App in New windows server,it's successfully hosted but it gives above mentioned Error in Rest Service Call.", "SQL Server Dependencies Is there an easy way to chase down table/stored procedure/function dependencies in SQL Server 2005+? I've inherited a giant application with lots of tables and even more stored procedures and functions that are long and interlinked. At the end of the day is there a way to build a dependency tree? Ideally what I'm looking for goes in both directions: For a table/procedure - what depends ON it?: Show me all the stored procedures that eventually reference it (ideally in a tree view such that sub procedures nest out to the bigger procedures that call them) For a procedure - what does IT depend on?: Show me all the procedures and tables that a given procedure will (or could) touch when running. It seems this tool shouldn't be that hard to make and would be incredibly useful for DB maintenance generally. Is anyone aware of such a thing? If this doesn't exist, why the heck not? The built-in functionality in Management Studio is nice but the information does not appear to be complete at all.", "What is the difference between: Rooting, Jailbreak, ROM, Mod, etc.?", "Present Perfect with the word \"ago\"? First, I check that my native language is not English, and the problem described below met on one of the exams. With this sentence: \"The most important news is that my parents [...] a new restaurant a few weeks ago.\" Is the correct tense to use the Present Perfect (have opened) or Past Simple (opened)? I know that the word \"ago\" but rather that time Past Simple, but is it also possible to use the present perfect in some cases? I would be grateful for clarification.", "Will I be able to play my Destiny Characters if I buy Legendary Edition (PS3)", "Between vs. Among - \"Difference [between | among] one thing and other things.\" Consider the following two versions of a question:1 Version 1: What is the difference in meaning between \"[to be] not invited\" and similar negation forms? Version 2: What is the difference in meaning among \"[to be] not invited\" and similar negated forms? Personally, I think Version 1 might subtly suggest a Star Topology (see below) with the target sentence \"[to be] not invited\"at the center. And Version 2 might subtly suggest a more free-form comparison like the Mesh or Fully Connected, with the target sentence simply \"one among many\": Between approx equal \"Star\" and among approx equal \"Fully Connected\"? Don't get me wrong: I do think this is quite subtle, not always applicable, and I don't think anyone would intuit such a \"network topology\" meaning without further explanation. So the main question is, are both grammatically correct? If yes, is there a semantic difference to choose one over another, perhaps as I suggested? Or does the plurality aspect of between and among trump other semantic and stylistic issues? 1. In my question , another user provided a very helpful edit. However, the change of the word between to among prompted this question.", "How to avoid modifications during pg_dumpall", "In Xubuntu 16.04.3 (and several previous versions aswell) it is not possible to have no power icon in the notification area. A power icon is displayed even though 'Show system tray icon' is unchecked in Xfce Power Manager. When 'Show system tray icon' is checked, there are two power icons displayed. (See screenshots) I've searched and I can't find any information related to this in Xubuntu/Xfce. Is there a way to fix or work around this bug?" ]
medi_sts_stackexchange_dupe
Why can't I connection the anode of a battery to the cathode of an other battery and get a current flowing?
Why does connecting a battery's positive terminal to the negative terminal of another battery not create a short circuit?
[ "When I save a file (e.g. Images) to a folder which already exist there, Chrome adds a (N) where N is first available number. This causes I have multiple copies of same file! How can I disable Chrome's auto file renaming? Thanks", "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 install bicycle pedals without a notch on the spindle? I bought a pair of bicycle pedals that to my surprise had no notches on the pedal spindle to use when tightening them. I managed to screw them in by hand, but they are not quite tight since I can't use a spanner on them. So what would be the correct way to tighten them? Are there any special tools or similar that I'm supposed to use? The offending pedals can be seen below. The spindle is, as you can see, completely smooth.", "How to keep VLC player in minimized mode? I'm using VLC media player which can play almost all kinds of audio and video formats. While listening to audio, I keep VLC in minimized mode and can work on other windows. But when I select to listen video songs mixing with audio songs, VLC is maximizing itself to play every video song in the playing list, which is really annoying in the middle of work. So how can I keep always VLC player in minimized mode while playing a list of songs mixed with audio and video songs?", "Would Beetee's electrocution plan work and kill the tributes in the lake? In , the second episode of the Hunger Games trilogy, one of the characters (Beetee) proposes a plan to kill some of the remaining tributes. He proposes wrapping a special wire that he has designed to withstand the vast energy of lightning around a tall tree and running it down to a salt water lake. Then when lightening strikes the tree (which it does predictably every twelve hours) anyone in the lake will be killed. (N.B. This is not Beetee's real plan, but it is the one he wants his allies to believe.) I don't think his plan would work at all. Assuming that his wire can carry the enormous current delivered by a lightening strike (this is fiction after all) surely the current would short to ground through the salt water rather than taking a path through anyone standing or swimming in the water. The analogy I have in mind is that of birds standing untroubled on live electricity wires. They are unharmed because they do not provide a path to earth. But another analogy might be dropping a mains electric heater into a bath when you are in it. I think that kills you (though I'm not sure why.)", "Show that $\\arctan\\frac{1}{2}+\\arctan\\frac{1}{3}=\\frac{\\pi}{4}$ Show that $\\arctan\\frac{1}{2}+\\arctan\\frac{1}{3}=\\frac{\\pi}{4}$. Attempt: I've tried proving it but it's not equating to $\\frac{\\pi}{4}$. Please someone should help try to prove it. Is anything wrong with the equation? If there is, please let me know.", "How to make a FPS-like camera in BGE", "sudo apt-get upgrade installs all updates, not just security updates. I know that I can use Update Manager to select only important security updates, but is there a way to do this from the command line?", "Neatest proof that set of finite subsets is countable? I am looking for a beautiful way of showing the following basic result in elementary set theory: If $A$ is a countable set then the set of finite subsets of $A$ is countable. I proved it as follows but my proof is somewhat fugly so I was wondering if there is a neat way of showing it: Let $|A| \\le \\aleph_0$. If $A$ is finite then $P(A)$ is finite and hence countable. If $|A| = \\aleph_0$ then there is a bijection $A \\to \\omega$ so that we may assume that we are talking about finite subsets of $\\omega$ from now on. Define a map $\\varphi: [A]^{&lt;\\aleph_0} \\to (0,1) \\cap \\mathbb Q$ as $B \\mapsto \\sum_{n \\in \\omega} \\frac{\\chi_B (n)}{2^n}$. Then $\\varphi$ is injective hence the claim follows. (The proof of which is what is the core-fugly part of the proof and I omit it.).", "Should you declare methods using overloads or optional parameters in C# 4.0? I was watching , and it got me thinking about when optional parameters are available in C# what is going to be the recommended way to declare methods that do not need all parameters specified? For example something like the FileStream class has about fifteen different constructors which can be divided into logical 'families' e.g. the ones below from a string, the ones from an IntPtr and the ones from a SafeFileHandle. FileStream(string,FileMode); FileStream(string,FileMode,FileAccess); FileStream(string,FileMode,FileAccess,FileShare); FileStream(string,FileMode,FileAccess,FileShare,int); FileStream(string,FileMode,FileAccess,FileShare,int,bool); It seems to me that this type of pattern could be simplified by having three constructors instead, and using optional parameters for the ones that can be defaulted, which would make the different families of constructors more distinct [note: I know this change will not be made in the BCL, I'm talking hypothetically for this type of situation]. What do you think? From C# 4.0 will it make more sense to make closely related groups of constructors and methods a single method with optional parameters, or is there a good reason to stick with the traditional many-overload mechanism?", "Handling Calls to Remove a Moderator This discussion informed our process for seven years, but eventually required updates and augmentation. For discussion regarding the successors to this process, please see: Stack Exchange has some of the best Moderators around — seriously — and that is due in no small part to the communities who scrutinize and vote in our Moderator elections. We have a rather formal process for electing moderators, but up until now has been quite informal. On those rare, rare occasion when things just aren't working out, you can see why it becomes such a sticky business to remove someone from a democratically elected position. Our current process is one of &quot;we've got your back.&quot; The Community Team routinely monitors moderator activities, so if a moderator violates the or fails to uphold the , we can and do intervene. If the disputes and problems persist without resolution, eventually we can ask someone to step down. That's not good enough. We need a much more transparent and prescribed process for when — and more importantly how — to intervene when on-going problems are going unresolved. In urgent situations, we'll step in to protect a site, but ideally the process should be impartial and not subject to accusations of Stack Exchange simply applying undue influence over a community when the whim strikes. The Question: Before we start bouncing around ideas internally, I'd like to hear what you think. What process should be in place to add some checks and balances to deal with higher issues like possible impeachment of a moderator? When and how would such a process come into play? How should such situations be resolved? How do we keep it from being abused? Have at it. This is a round table vetting of ideas.", "states: Imports are always put at the top of the file, just after any module comments and docstrings, and before module globals and constants. However if the class/method/function that I am importing is only used in rare cases, surely it is more efficient to do the import when it is needed? Isn't this: class SomeClass(object): def not_often_called(self) from datetime import datetime self.datetime = datetime.now() more efficient than this? from datetime import datetime class SomeClass(object): def not_often_called(self) self.datetime = datetime.now()", "As says: [...] the kinetic energy of a non-rotating object of mass $m$ traveling at a speed $v$ is $\\frac{1}{2}mv^2$. Why does this not increase linearly with speed? Why does it take so much more energy to go from $1\\ \\mathrm{m/s}$ to $2\\ \\mathrm{m/s}$ than it does to go from $0\\ \\mathrm{m/s}$ to $1\\ \\mathrm{m/s}$? My intuition is wrong here, please help it out!", "Why are integer GCDs positive? [unit normalization of GCDs] The definition in my text reads, An integer $d$ is said to be the greatest common divisor of two non-zero integers $a$ and $b$ iff, $d|a$ and $d|b$ and if $k$ is any other common divisor of $a$ and $b$ then $k|d$ Now here's the thing, if $d|a$ and $d|b$ then surely $-d|a$ and $-d|b$ as well, also $k|-d$ What I take from this? GCD is not unique! That is if $\\mathrm{gcd}(12,8)= 4$ then by the definition, $\\mathrm{gcd}(12,8) = -4$ as well. Yet I never ever seen a negative gcd. Someone please explain. Maybe, $4&gt;-4$, and we want the &quot;greatest common factor&quot; so...? But that still doesn't justify the definition.", "How to migrate from test environment to production environment? The migration is from the local environment to the production environment. The production environment has run some time and created a lot of articles. In order to add new things to my site, I added a custom theme and installed CCK, Views and other modules in my local test environment. Now that the local test environment is finished, how do I migrate it to the production environment, without destroying the content of its database?", "I currently have an Ubuntu-Windows Dual boot. However, I would like to try out a new OS so I burned Linux Mint to a USB stick. I would like to install Linux Mint and remove Ubuntu while still keeping my windows dual boot. I've already backed up my Ubuntu setup so I can wipe it out. In the Linux Mint installer, should I choosing the \"install alongside windows\" option do this?", "How do I get label of the selected item from a lightning:select drop down list? I would like to get the value of the label of the selected drop down item. In this case, the label is the Name of the Contact. &lt;aura:component&gt; &lt;aura:attribute name=\"contacts\" type=\"Contact[]\"/&gt; &lt;lightning:select label=\"Contact\" aura:id=\"contactList\" name=\"contactList\"&gt; &lt;aura:iteration items=\"{!v.contacts}\" var=\"c\" indexVar=\"index\"&gt; &lt;option value=\"{!c.Id}\"&gt;{!c.Name}&lt;/option&gt; &lt;/aura:iteration&gt; &lt;/lightning:select&gt; &lt;/aura:component&gt; I know how to get the value: component.find(\"contactList\").get(\"v.value\"); But how do I get the label?", "Search in favorited questions?", "I'd like to create a chart where the column titles are rotated, as per this toy example: I used the rotating package to generate the above. It has certain shortcomings: the rotate command doesn't leave space for the titles, so I have to manually space things to prevent overlaps. The turn command, by contrast, creates too much space, where each column is the width of the entire rotated column title. There is also no easy way to have long titles be split into multiple lines. Is there a package for creating tables of this sort, or at least one that would relieve some of the manual placing and spacing that goes into creating such a table? This question is more to make sure I don't miss any easy way of doing what I want than seeking help on manually doing it, but the code for above is included anyways: \\begin{tabular}{r|ccc} &amp; \\begin{rotate}{60} Property 1 \\end{rotate} &amp; \\begin{rotate}{60} Property 2 \\end{rotate} &amp; \\begin{rotate}{60} Property 3 \\end{rotate} \\\\ \\hline System 1 &amp; &amp; &amp; X \\\\ System 2 &amp; X &amp; X &amp; X \\\\ System 3 &amp; X &amp; &amp; X \\\\ \\hline \\end{tabular}", "Listen for incoming request on port on Linux, then run command I am after as lightweight as possible solution to listen on a port for a specific request, then run a command should the port be hit and the correct request be recedved. Eg. Send a request to 192.168.0.10 on port 5432 with the string my_token. On the host (eg. 192.168.0.10), then run a command should that port be hit and the string matched. I was initially thinking of using netstat (eg. nc -l 5000) then running the command on change. However, ideally a string or token of sorts would be ideal alongside this or similar, but without using a full-blown webserver - essentially something that can run in the background with few resources." ]
medi_sts_stackexchange_dupe
Strange behaviour of Stack Exchange websites
Antivirus software is breaking SE web page? (blocking CSS and JS)?
[ "I have a featureclass in an Esri file geodatabase. When I edit the features using the editor in ArcMap, and I delete most of my features and keeping only the ones in the middle, the zoom to layer command doesn't work as expected. Instead of zooming to the extent of the features remaining in the feature class, the extent will be the former one (containing all deleted features). When reviewing the extent values in the properties dialog for the feature class, I can clearly see the old values. So the edit session doesn't seem to alter the full extent values. Is there a way to recalculate these values? I am pretty sure that this problem should occur to everyone editing features in ArcMap...", "I host am ExpressionEngine based website on a single Amazon EC2 instance in the US East (Virginia) region. I use Ubuntu. The website allows members to post their content, and displays it for other members and for users who are not logged in. Goal: I need to begin serving the same website across the globe, equally fast to Hong Kong, New York, and Los Angeles. I considered two solutions: 1.Setting up three separate EC2 instances for three regions: Virginia, Oregon, and Singapore. Use Amazon Rot53 Geo Location to direct traffic to instances based on the browser's IP address. Pro: the website will load fast for the region. Contra: these will be essentially three separate websites. Unless I am mistaken? Setting up one instance in a region equally remote from all three locations: (Ireliand), and boost the server to the highest performance available. Pro: It will be the same website for all regions. Contra: it will cost a lot to make it fast enough. My challenges: a) I do not know a way to sync server settings, database, and content between multiple Ubuntu instances in real time. If a knowledgeable person could explain to me how to do that, I would be most grateful. b) I am not thoroughly familiar with all Amazon AWS resources. Does AWS has a built-in method that would allow me to achieve my goal of serving a single PHP / MySQL based membership website across the globe equally fast in all three chosen locations?", "Why doesn't `sudo cd /var/named` work?", "How do I get started creating an Ubuntu Desktop App? I want to create an Ubuntu desktop app, specifically to replace Gwibber. I can code in Java, Python and a few other technologies. Adobe Flex would have been an option until Adobe decided to suck some more and stopped support for AIR on Linux. Note - I don't care about supporting other OS's. It will be a personal Ubuntu specific app. It can I open-source, I don't mind extra help. It should integrate seamlessly with Ubuntu, notifications and all. I guess Python it is, is that correct? How do I get started?", "jQuery animate()", "Though tangentially related to another post on MathOverflow (), the questions below are mainly out of curiosity. They may be very-well known ones with very well-known answers, but... Suppose $\\Sigma$ is a sigma-algebra over a set, $X$. For any given topology, $\\tau$, on $X$ denote by $\\mathfrak{B}_X(\\tau)$ the Borel algebra over $X$ generated by $\\tau$. Question 1. Does there exist a topology, $\\tau$, on $X$ such that $\\Sigma = \\mathfrak{B}_X(\\tau)$? If the answer to the previous question is affirmative, it makes sense to ask for the following too: Question 2. Denote by ${\\frak{T}}_X(\\Sigma)$ the family of all topologies $\\tau$ on $X$ such that $\\Sigma = \\mathfrak{B}_X(\\tau)$ and let $\\tau_X(\\Sigma) := \\bigcap_{\\tau \\in {\\frak{T}}_X(\\Sigma)} \\tau$. Is $\\Sigma = \\mathfrak{B}_X({\\frak{T}}_X(\\Sigma))$? Updates. Q2 was answered in the negative by Mike ().", "Get OS-level system information I'm currently building a Java app that could end up being run on many different platforms, but primarily variants of Solaris, Linux and Windows. Has anyone been able to successfully extract information such as the current disk space used, CPU utilisation and memory used in the underlying OS? What about just what the Java app itself is consuming? Preferrably I'd like to get this information without using JNI.", "I would like to install Office 2015/365 on Ubuntu 15.04. I tried to install Office using Wine, but that did not work. Please note that I do not want virtualisation unless it has a -like behaviour, where application windows are treated like regular Ubuntu application windows by the system.", "Form action doesn't submit hard-coded variable", "I'm trying to determine if 1317 and 116 can be written as the sum of three squares? I have the condition that if it is not of the form $4^{\\alpha}(8k+7)$ then it can be written as a sum of three squares, but how do I use this condition to work it out? Thank you", "Applying an ellipsis to multiline text", "If $$S=\\frac{1}{1+1^2+1^4}+\\frac{2}{1+2^2+2^4}+\\cdots+\\frac{n}{1+n^2+n^4}\\,$$ find the value of $14S$. The question can be simplified to: Find $S=\\sum\\limits_{k=1}^n\\,t_k$ if $t_n=\\dfrac{n}{1+n^2+n^4}$. As $1+n^2+n^4$ forms a GP, $$t_n=\\frac{n(n^2-1)}{n^6-1}\\,.$$ But I can't figure out how to solve further. It would be great if someone could help.", "How to clone/copy all file/directory attributes onto different file/directory? I want to copy the attributes (ownership, group, ACL, extended attributes, etc.) of one directory to another but not the directory contents itself. This does not work: cp -v --attributes-only A B cp: omitting directory `A' Note: It does not have to be cp.", "Q. Find all pairs $(p,n)$ of positive integers where $p$ is prime and $p^3-p=n^7-n^3$. Rewriting the given equation as $p(p+1)(p-1)=n^3(n^2+1)(n+1)(n-1)$, we see that $p$ must divide one of the factors $n,n+1,n-1,n^2+1$ on the $\\text{r.h.s}$. Now, the $\\text{l.h.s}$ is an increasing function of $p$ for $p\\ge1$. This implies that for any given $n\\ge1$, there is exactly one real $p$ for which $\\text{l.h.s}=\\text{r.h.s}$. For $p=n^2$, we get $\\text{l.h.s}=n^6-n^2&lt;n^7-n^3=\\text{r.h.s}.$ This means that either $p&gt;n^2$ or $p&lt;n^2$ must hold. Assuming $p&gt;n^2$, it follows that the prime $p$ cannot divide any of $n,n+1,n-1$. So $p$ must divide $n^2+1$ and hence $p=n^2+1\\quad (\\because p&gt;n^2)$. Substituting the value of $p$ in the given equation we get, $n^2+2=n^3-n\\implies n^3-n^2-n=2$. As the factor $n$ on the $\\text{l.h.s}$ must divide $2$, the above equation has a unique integer solution $n=2$. Finally, we get $(5,2)$ as the solution to the given equation. But how do I conclude this is the only solution possible? Also, why does'nt $p&lt;n^2$ (the case which I ignored) hold? As a bonus question, I would like to ask for any alternative/elegant solution (possibly using congruence relations) to the problem.", "Non-existence of $\\lim \\limits_{(x, y) \\to (0,0)} \\frac{x^3 + y^3}{x - y} $ How to show that $\\lim \\limits_{(x, y) \\to (0,0)} f(x, y)$ does not exist where, $$f(x, y) = \\begin{cases} \\dfrac{x^3 + y^3}{x - y} \\; ; &amp; x \\neq y \\\\ 0 \\; \\;\\;\\;\\;\\;\\;\\;\\;\\;\\;\\; ; &amp; x = y \\end{cases} $$ I tried bounding the value of the function as $(x, y)$ approaches $(0,0)$ but was not successful. I graphed the function and saw that it was actually approaching $0$ but Microsoft Math failed to render some points around the $x = y$ plane. So I imagine I need to find points $(x, y)$ such that $x$ is extremely close to $y$ but $(x, y)$ is not as close to $(0,0)$ to show that the function does not approach $0$ around the origin. But was unable to think of any. Hints or suggestions would be awesome. Any help is appreciated.", "Stringification of a macro value", "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?", "Why don't self-closing script elements work?", "Holomorphic function $\\varphi$ with fixed point $z_0$ such that $\\varphi'(z_o)=1$ is linear? This is an exercise in complex analysis: Let $\\Omega\\subset{\\Bbb C}$ be open and bounded, and $\\varphi:\\Omega\\to\\Omega$ a holomorphic function. Prove that if there exists a point $z_0\\in\\Omega$ such that $$ \\varphi(z_0)=z_0\\qquad\\text{and }\\qquad \\varphi'(z_0)=1 $$ then $\\varphi$ is linear. I'm trying work out the case $z_0=0$ first, in which $$ \\varphi(z)=z+\\sum_{n=2}^{\\infty}a_nz^2. $$ It suffices to show that $a_n=0$ for all $n\\geq 2$. If let $$ \\varphi(z)=z+a_2z^2+O(z^3) $$ then $$ \\varphi^k(0)=z+ka_2z^2+O(z^3), $$ and $$ \\varphi^k(0)=0,\\quad (\\varphi^k)'(0)=1. $$ If one can show that $\\{ka_2\\}_{k=1}^{\\infty}$ is uniformly bounded, then one at least has $a_2=0$. But I don't know how to go on. Any idea?", "Calculate expected values using logistic regression coefficients The outcome of the logistic model is binary (0;1) - intervention that occurs in hospital (3838 interventions in 51096 cases). I am modeling the effect of age groups (60 to 74; 75 to 89 and 90+) and sex (female) on the outcome. My reference age group is male aged 18-59. My logistic regression coefficients look like this: intercept -4.313 female 0.5117 age 60-74 0.4081 age 75-89 1.1761 age 90+ 1.5612. Corresponding odds ratios: female 1.668 years60_74 1.504 years75_90 3.242 years90 4.764 Now I am trying to obtain a probability of an outcome = 1 for each case. What is the right way to do this?" ]
medi_sts_stackexchange_dupe
Lowest zero degree for nilpotent matrix
How to show that the nth power of a $n \times n$ nilpotent matrix equals to zero $A^n=0$
[ "In \"Tasksel\" how do I select a package? I found a video on YouTube that shows someone using the command tasksel from the server's boot menu after a fresh install of Ubuntu Server. Simple enough it looked like, but when I go to the options I want to choose for installation it has no information on how to select them, and when I click Enter on one of them it takes me back to the command prompt. So how do I make a selection of the items listed under tasksel? I have tried Shift++ to add, but no luck. Anyone know? I want to install Ubuntu Desktop, as Ubuntu GNOME GUI is not an option in the listing for Ubuntu 17.10 Server.", "data.table and table unexpected behavior", "How to run a program without typing the full path? System utilities such as ls don't need to have the full path typed before executing them. However, to execute Netbeans, I have to type /home/chris/netbeans-7.0.1/bin/netbeans. How can I make it so that I only have to type netbeans?", "Where can I find medicine? I know it is possible to be stung by bees in Animal Crossing: New Leaf. I learned that the hard way when I was trying to find my furniture tree. Now, I have an eye swollen shut and all of my towns people are making fun of me. They're all being kind enough to inform me that I need Medicine, but they seem to be enjoying themselves at my expense too much to tell me where to actually find the Medicine. Where can i get medicine? I'd really like it if my townspeople stopped making fun of me.", "(already output) in Debug logs I am trying to add a list into an another nested list before adding values of a list to nested list it is getting the correct value but after adding i am getting (already output) in debug log when i checked. public List&lt;String&gt; fieldName {get;set;} public List&lt;List&lt;String&gt;&gt; fileValuesXML; // To get the field values of xml for(Dom.XMLNode child : SalesforceObjecet.getChildElements()) { objecetName = child.getText(); system.debug('Object Name in XML field ' + objecetName ); for(Dom.XMLNode subchild : child.getChildElements()) { system.debug('Sub child ' + subchild.getText() ); for(Dom.XMLNode subchildfield : subchild.getChildElements()) { system.debug('Sub child Field ' + subchildfield ); fName = subchildfield.getText(); fieldName.add(fName); //fileValuesXML.add(fieldName); //system.debug('Filed Name in XML field ' + fieldName); } system.debug('Filed Name before affing to filevalueXML ' + fieldName); fileValuesXML.add(fieldName); fieldName.clear(); system.debug('Filed Name after affing to filevalueXML ' + fileValuesXML); } } I am getting values in debug log as: Filed Name before affing to filevalueXML (AccountSource, field3) Filed Name after affing to filevalueXML ((), (already output), (already output))", "How to resize array in C++?", "Populate an entire pre-configured workspace in i3wm Is it possible with I3Wm to populate an entire workspace with determined size, position and commands for each window? I know I can do i3-msg \"exec xterm -e 'ls; bash'\" to create a new window, but I can't specify his position and size. Maybe there is also an alternative by declaring via JSON the layout or something like that?", "How to escape text for regular expression in Java Does Java have a built-in way to escape arbitrary text so that it can be included in a regular expression? For example, if my users enter \"$5\", I'd like to match that exactly rather than a \"5\" after the end of input.", "Background My Lenovo X250 is arriving in two weeks, which according to will work well only with \"a special image of Ubuntu pre-installed by the manufacturer.\" points out that the X250 has \"Excellent\" compatibility to the Linux OSes they install. On the other hand, a quick search on or shows that a standard image of Ubuntu on the X250 is rife with hardware problems. Ubuntu Certified Hardware acknowledges this for the X250: \"Standard images of Ubuntu may not work at all on the system or may not work well.\" This clearly shows the difference between an Ubuntu standard image installation and the one that comes pre-installed by the manufacturer. Hardware seems to work fully on the OEM version. Question Any idea where we may access or download these \"special images of Ubuntu\"? (Hopefully not only for the X250, but also for the other systems out there.)", "Installing opencv I've downloaded opencv but unfortunately I've got no idea how to install it. All the pages I found online were only telling me how to download and install it directly from the console, not what to do when you already have it downloaded. Could anybody tell me what to do?", "I would like to have multiple bibliographies (reference lists) as described in (). However, I'd like to use with a single .tex file, which would contain the bibliography database embedded, as in ... Now, I want to use letter documentclass, for which the bibliography needs to be defined () So what I end up is with this example (code below, compiled with just pdflatex, no bibtex(which I'd like to avoid in this case)): ... obviously, something works (multibib recognized primary and secondary cites, assigning them number \"1\" as start) -- however I don't get two, separate primary and secondary list of references; would that be possible in this context? (doesn't have to be with multibib, but I'd like to avoid a separate .bib file and a bibtex call) EDIT: I'd also like separate cite keys (i.e. rendered as [a1] and [b1]; not yet sure if multibib can do that; edit: no it cant, says \"You can also edit the .bbl files created by BibTEX and add 'a', 'b',. . . to the labels, but your changes will be overwritten by subsequent BibTEX runs.\" and recommends \\cite[a]{key}) - how possible would that be? &nbsp; The code is this: \\documentclass{letter} % Environment thebibliography undefined when using letter: http://www.latex-community.org/forum/viewtopic.php?f=4&amp;t=3359 \\makeatletter \\setlength \\labelsep {.5em} \\newcommand\\newblock{\\hskip .11em\\@plus.33em\\@minus.07em} \\let\\@openbib@code\\@empty \\newcommand\\refname{References} \\newcommand\\section{\\@startsection {section}{1}{\\z@}% {-3.5ex \\@plus -1ex \\@minus -.2ex}% {2.3ex \\@plus.2ex}% {\\normalfont\\Large\\bfseries}} \\newenvironment{thebibliography}[1] {\\section*{\\refname}% \\@mkboth{\\MakeUppercase\\refname}{\\MakeUppercase\\refname}% \\list{\\@biblabel{\\@arabic\\c@enumiv}}% {\\settowidth\\labelwidth{\\@biblabel{#1}}% \\leftmargin\\labelwidth \\advance\\leftmargin\\labelsep \\@openbib@code \\usecounter{enumiv}% \\let\\p@enumiv\\@empty \\renewcommand\\theenumiv{\\@arabic\\c@enumiv}}% \\sloppy \\clubpenalty4000 \\@clubpenalty \\clubpenalty \\widowpenalty4000% \\sfcode`\\.\\@m} {\\def\\@noitemerr {\\@latex@warning{Empty `thebibliography' environment}}% \\endlist} \\makeatother \\usepackage{multibib} \\newcites{pri}{Primary sources} \\newcites{sec}{Secondary sources} \\begin{document} \\begin{letter}{Addressee} Blah, blah - content... Primary cite: \\citepri{lamport94} ... Secondary cite: \\citesec{lamport94} ... \\begin{thebibliography}{9} \\bibitem{lamport94} Leslie Lamport, \\emph{\\LaTeX: A Document Preparation System}. Addison Wesley, Massachusetts, 2nd Edition, 1994. \\bibitem{lamport95} Leslie Lamport, \\emph{\\LaTeX: A Document Preparation System}. Addison Wesley, Massachusetts, 2nd Edition, 1995. \\end{thebibliography} \\end{letter} \\end{document}", "Prevent parameter expansion in shell script I often have to do a recursive search in files. Tired of typing the whole \"find/grep\" combination all the time, I just created a script with the following line: find . -name $1 -exec grep $2 {} + 2&gt;/dev/null The idea is that I should be able to run it as, for example: myfind '*' hello The problem is, when '*' gets passed into the script, the script is expanding it to each file in the directory. I tried putting a quote around $1: find . -name '$1' -exec grep $2 {} + 2&gt;/dev/null However, this turns $1 into a literal string. Would appreciate your help in finding the right syntax. Must be something simple that I am missing.", "Why are the endpoint lines of intervals (`|-|`) not shown completely? I use \\draw[|-|] () to (); to draw a few intervals. I expect that each interval is rendered like |----| (see the 2nd and the 3rd intervals in the figure below). However, the top and the bottom intervals below show only a half of their endpoint lines (i.e., |). Why are these endpoint lines (|) not shown completely? How to show them? \\documentclass{standalone} \\usepackage{tikz} \\begin{document} \\begin{tikzpicture} \\draw[|-|, red] (0,0) to (1,0); \\draw[|-|, red, dashed] (0,1) to (1,1); \\draw[|-|, blue, dashed] (0,2) to (1,2); \\draw[|-|, blue] (0,3) to (1,3); \\end{tikzpicture} \\end{document}", "ffmpeg - how to apply filters without losing quality", "What's the typical microclimate in the aircraft passenger cabin? When preparing for a commercial jet flight it'd be nice to know how warm my clothes should be so that I don't freeze after sitting for several hours in say +16 degrees Celsius (61 degrees Fahrenheit). What's the typical temperature in the passenger cabin? Are there air drafts? How cold and how warm can it reasonably get?", "Force NTFS permissions inheritance for newly created files Does anybody know a way to force that all files that get created inside some folder inherit the NTFS permissions of that folder. The problem is the following: I have a third party software that is creating PDF files inside a certain folder, but the problem is that those files get created with only the permissions for that user and for the administrators group, the file doesn't inherit the permissions of the folder it is in (Include inheritable permissions... is not marked on the files that get created), which give access to other groups of users also.", "After the downfall of Voldemort, what happened to the Death Eaters? They committed many crimes, including mass murder and torture. Nothing in the books made mention of their punishments. What happened?", "Thus is a picture of both of my hard-drives: My C Drive and my D drive. I want to put Ubuntu onto my D Drive. Now my question here is if i do install onto my D Drive then how should I do it in order to retain use of the drive. I intend to partition about 60 gigs from it. Now after doing that I should still have about 830 gigs left. I want to still be able to use that in Windows. So how and will I be able to retain use of the drive after Installing? I have installed once before and I believe i did it wrong because not only could Windows not recognize my D drive but I also lost all the data on it. My computer is a Lenovo Y700 It is a UEFI (I believe i got that right).", "Avoiding NullPointerException in Java I use object != null a lot to avoid . What is an alternative to: if (someobject != null) { someobject.doCalc(); }", "It is well-known that empty text files have zero bytes: However, each of them contains , which according to my research, is stored in , and do use space. Given this, it seems logical to me that it is possible to fill a disk by purely creating empty text files. Is this correct? If so, how many empty text files would I need to fill in a disk of, say, 1GB? To do some checks, I run df -i but this apparently shows the % of inodes being used(?) rather than how much they weigh. Filesystem Inodes IUsed IFree IUse% Mounted on udev 947470 556 946914 1% /dev tmpfs 952593 805 951788 1% /run /dev/sda2 28786688 667980 28118708 3% / tmpfs 952593 25 952568 1% /dev/shm tmpfs 952593 5 952588 1% /run/lock tmpfs 952593 16 952577 1% /sys/fs/cgroup /dev/sda1 0 0 0 - /boot/efi tmpfs 952593 25 952568 1% /run/user/1000 /home/lucho/.Private 28786688 667980 28118708 3% /home/lucho" ]
medi_sts_stackexchange_dupe
GUID vs Identity on a table performance
Guid vs INT - Which is better as a primary key?
[ "Prove that $\\sin x+2x\\ge\\frac{3x(x+1)}{\\pi}$ for all $x\\in [0,\\frac{\\pi}{2}]$", "Connected to wifi successfully, but no internet connection", "How do I install Ubuntu? I would like to see a full how-to guide on how to install Ubuntu.", "The Wikipedia article on mentions two methods of sampling \"small\" polynomials namely uniform sampling and discrete Gaussian sampling. Uniform sampling is clearly the simplest, involving simply uniformly selecting the coefficients from the set of small coefficients, thereby guaranteeing they will be small. However, the articles mention that security proofs rely on discrete Gaussian sampling. However, I have a bit of difficulty wrapping my head around Why discrete Gaussian sampling would be better than uniform, security-wise? I mean, usually uniform is preferable - it maximizes the entropy/information in each sample, making the outcome more unpredictable. I could understand it if the Gaussian sampling technique would somehow serve to avoid (at least with high probability) \"weak\" parts of the space of outcomes but I have found no information/justification that this is the case. Another reason I can see why discrete Gaussian might be better is that there is, after all, a chance (albeit a small one) one would select a non-small coefficient, so the space of outcomes is actually larger. However, given that this probability of hitting this extra space is (by design) quite small but also that one would likely immediately reject such a sample (because the algorithm calls for a small polynomial), this seems to be irrelevant. It is not because I am against discrete Gaussian sampling I just want to understand why it is more secure. Also, I want to understand if it really IS more secure or it is simply easier to prove security in that model. I would actually consider that very interesting if it is the case because it raises the question of why is it easier to prove the security under conditions that are intuitively worse (i.e. discrete Gaussian vs the intuitively better uniform case)? If it is so intuitively clear that uniform sampling is better, surely it must be possible to transform that intuition into a security proof of RWE also under uniform sampling. Otherwise, I would fear the intuition must with high likelihood be wrong or at least dubious.", "I've noticed the text of the Hot Meta Posts box is not within its limits. I guess this would happen for any question with a word that's long enough:", "How to include python script inside a bash script", "Why do students go for a PhD even when chances of getting academic jobs on its completion are slim? This is in reference to my question: . I was told in the answer of the above linked question that chances of landing a job as an assistant professor in Mathematics are quite slim. Very few people will actually get a permanent position in academia. An article of 2014 shows only 0.5-3% of PhD graduates will actually get a job as an Assistant Professor. But I have two questions: Why do so many people still apply for a PhD in some reputed institutes in India even knowing the harsh reality? I found there are 1500 applications for four PhD scholarship positions. One answer says that people move to industry, but I still don’t understand how after doing a PhD in suppose differential geometry or algebraic geometry one can do a job in industry if he/she gets no position as an assistant professor. Will one be satisfied to do some managerial work in some Consultancy firm after doing a PhD in Mathematics? Are people jobless after a PhD? Completion of a PhD requires so much effort. So why is there no value after doing it? NOTE: In the most up-voted answer below it has been said that many who enroll for a PhD don't even wish to pursue an academic career. I have been asking my seniors who are currently pursuing a PhD or are in the verge of completing their degree or who have completed it. They said that they all want to be Professors in some Universities and want to be involved in research because that is the dream job for them. I am obviously talking about PhD in Mathematics", "Selenium/PhantomJS raises error", "I am installing Ubuntu 16.04 in an Intel NUC computer with UEFI enabled. I am using an SSD from another computer. During the installation I chose Erase the disk and make a new full install At the end of the process I see: grub-efi-amd64-signed failed installation /target/ Ubuntu 16.04 And the system does not boot. I tried to use boot-repair but apparently it does not solve the problem.", "Precise back-reference target with hyperref and backref", "Division ring if and only if it has no proper left ideals.", "In the movie Interstellar, Cooper (played by ) enters a black hole and sends a message to Murph (his daughter). Later, he is found by rangers, but I don't understand how he gets out of the black hole? As far as I know, nothing can get out of a black hole, as it has extremely high gravity.", "I want to resolve merge conflicts in my Git repository. How to do that ?", "Is floating point math broken?", "When can uncountable nouns be countable?", "Finding the null space of symmetric matrix generated by outer product Let $p, q \\in \\mathbb{R}^n$ such that $\\|p\\| = \\|q\\| = 1$ and define $$A = pq^T + qp^T$$ Find the null space of $A$. I am not having very much luck. I have managed to show that $p + q$ and $p - q$ are eigenvectors, but I can't seem to connect those two. I know that since $A$ is generated by an outer product, it is of rank one. That implies that the rank of the null space is $n - 1$, but I can't seem to get any further. Can anyone help?", "Should my first trip be to the country which issued my Schengen Visa?", "How to connect and disconnect to a network manually in terminal? Since the network manager is troubling me so much I want to replace it (possibly wicd orNM from ppa:volanin). I do not know how to connect and disconnect to the network through the terminal without using network manager. I would like a command-line way of managing the network.", "Remove the most popular tag from the title using JavaScript So, I see that to fight site scrapers. But, this is harmful to User Experience. With browsers like Google Chrome, all I can see is the first few characters of the title, and it becomes annoying to try to find the right tab. So, my request: Can you remove the tag from the &lt;title&gt; using JavaScript? Crawlers will still see the SEO-friendly &lt;title&gt;, and users won't have their user experience hampered by it. We all win.", "How do I get $\\cos{\\theta} \\lt \\frac{\\sin{\\theta}}{\\theta} \\lt 1$?" ]
medi_sts_stackexchange_dupe
Bash export in a script; To next script?
Can a shell script set environment variables of the calling shell?
[ "How can I install Celestia on Ubuntu 18.04.1?", "Recover data from SD card I have a 2&nbsp;GB Kingston card which is about three years old. I put it in a reader today in my Windows Vista computer, wrote a 32&nbsp;MB file onto it, safely removed it, and then tried to read it elsewhere. Nothing. Putting it back in the Windows Vista computer it now says: You need to format the disk in drive F: before you can use it. What should I do? I have access to many computers and OSes if your recommendations need that. I would be very sad if I lost all the contents of the card. Most of the data is backed up, but there are a few things that aren't. :( Doing a # dd if=/dev/sdg of=~/tmp/sd.bin gives me a 2&nbsp;GB file, and the file it seems like lots of my data is still there. How can I put it back together?", "Resistor in series needed with LED string?", "Expected value as a function of quantiles? I was wondering where there is a general formula to relate the expected value of a continuous random variable as a function of the quantiles of the same r.v. The expected value of r.v. $X$ is defined as: $E(X) = \\int x dF_X(x) $ and quantiles are defined as : $Q^p_X = \\{x : F_X(x) = p \\} =F_X^{-1}(p) $ for $p\\in(0,1)$. Is there for instance a function function $G$ such that: $E(X) = \\int_{p\\in(0,1)} G(Q^p_X) dp $", "Suppose that $y_1(x)$ and $y_2(x)$ are solutions of the differential equation $y''+py'+qy=0$ on $I$. How can I show that if $y_1$ and $y_2$ vanish at the same point then they are not linearly independent? Here is my attempt to prove the problem. Since $y_1(x)$ and $y_2(x)$ are solutions of the differential equation $y''+py'+qy=0$ on $I$, it is enough for me to show that the Wronskian of $y_1$ and $y_2$ denoted by $W(y_1,y_2)$ is zero. Now since $y_1$ and $y_2$ vanish at the same point say $p$ we have $y_1(p)=0$ and also $y_2(p)=0$. Solving for $W(y_1,y_2)(p)$ we have: $y_1(p)y_2'(p)-y_2(p)y_1'(p)=0$ since $y_1(p)=0$ and also $y_2(p)=0$. Am I correct? Thanks", "When an option expires does that constitute a buy or sell A similar question recently asked about stock sales and option buys triggering wash sale rules. If an option expires, is that considered a buy/sale ? What I mean is: let's assume I have a call option with a target date of August 16. Now I sell the underlying stock somewhere before that (after July 16th). Does that trigger wash sale rules (if the option expires in the money, exercised by default) ? Is an option expiring out of the money considered a sale ?", "Where should shell tools be installed? Are there Apple guidelines for where user shell tools in Mountain Lion should be installed? Some (e.g. TeX, or Apple's Git) end up in /usr, and others (e.g. X11) seem to end up in /opt (sometimes with a symlink from /usr), while others (e.g., Git) end up in /user/local, and I wonder what the difference is, and whether one is preferred over the other.", "How to print only defined variables (shell and/or environment variables) in bash The bash builtin command set, if invoked without arguments, will print all shell and environment variables, but also all defined functions. This makes the output unusable for humans and difficult to grep. How can I make the bash builtin command set print only the variables and not the functions? Are there other commands which prints only the shell variables, without the functions? Note: bash differentiates between shell variables and environment variables. see here", "Spoilers from the Season 7 finale of Game of Thrones, \"The Dragon and the Wolf\". In one of the final scenes, Jaime and Cersei are discussing Jaime's future with them, at which point Cersei nods her head, signaling the kill order for 'The Mountain', yet 'The Mountain' pulled out his sword but why didn't he kill Jaime?", "How to solve: -bash: : cannot execute binary file I have a file named b1 that contains assembly language. I am trying to execute the file on OSX using $ ./b1 I get the following error: -bash: ./b1: cannot execute binary file I've looked at other similar questions, but to no avail. I'm definitely using a 64 bit architecture. Here are output of relevant info: $ file b1 b1: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped $ uname -a Darwin Anthonys-MacBook-Pro.local 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64 Edit: Ran as b1 which ended up terminating with: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/as: fatal error in /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../libexec/as/x86_64/as", "What is the name of this Ubuntu program? A couple month ago I installed a bunch of clipboard manager programs in Ubuntu, tried them out and then removed them. I must have missed one of these and now it keeps bug me in my daily usage. I need some help to identify the name of this program because the program itself provides very limited information. This clipboard program has below characteristics: 1. It occupies hotkey Ctrl+;. When I press this hotkey, the clipboard history will pop out. It happens in bash, Chrome, Eclipse IDE, and etc, wherever it is text inputable. This is kind of annoying because it overrides my other hotkeys inside these applications. 2. Very laconic UI. Like below picture, with only a line \"Select to paste\", then listing out the clipboard history. There is no program information whatsoever. Right clicking on it and no menu are shown at all. So far I have tried below ways to identify this program: 1. Browse system monitor for processes with names that could be correlated. 2. Browse through my installation log (dpkg.log) to find my installation history. Without luck, the log is lost. But I was not successful.", "Automorphism group of direct product of groups I was working on a problem in group theory, which asks about the automorphism group of a direct product of groups. Okay, so I know that if $G,H$ are two groups whose orders are relatively prime, then $\\operatorname{Aut}(G\\times H)\\cong\\operatorname{Aut}(G)\\times \\operatorname{Aut}(H)$. I also know that if $G,H$ are abelian and simple and isomorphic, then $\\operatorname{Aut}(G\\times H)\\cong \\operatorname{GL}_2(\\mathbf{Z}_p)$ where $p$ is the order of $G$. What I don't know is the following: what if $G,H$ are simple, yet not abelian? Let us for now focus on a more restricted case where $G\\cong H$, in particular, $G=H$. What can we say about the group $\\operatorname{Aut}(G\\times H)$? (I heard something about this group being related to what is called \"wreath product\", which I do not know...) Thanks bunch in advance!", "Is it safe to eat potatoes that have sprouted? I'm talking about potatoes that have gone somewhat soft and put out shoots about 10cm long. Other online discussions suggest it's reasonably safe and the majority of us have been peeling and eating soft sprouty spuds for years. Is this correct?", "Word for \"blissfully oblivious\"?", "'had better not entangle' v 'had better not to entangle' Can I write this sentence: He said Carter had better not entangle the US in problems like those in Afghanistan, Somalia and Iraq. Like this: He said Carter had better to not entangle the US in problems like those in Afghanistan, Somalia and Iraq. ? If so, what's the difference between the meaning of both sentence?", "Possible Duplicate: What book would you recommend for an undergraduate wanting to learn the basics of topology? I've come across several books that claim to give an introduction to the subject, but I wasn't sure which one(s) to pick. Here are some of the books I came across: Introduction to Topology - Bert Mendelson Basic Topology - M.A. Armstrong First Concepts of Topology - William G. Chinn Topology Without Tears - Sidney A. Morris Topology - James Munkres They don't go over the exact same topics, some are more in-depth than others, some seem to target slightly different audiences etc. What would be right for me (not necessarily from that list)? To give some more background, I want to learn topology because I feel it will be somewhat helpful in the field of Computer Vision.", "How to insert an image that also acts as a link", "Skype doesn't work in Ubuntu 14.04", "Add a transparent image on top of a material", "Is there a way to condition output on a given date? I'd like to be able to print text that varies depending on whether the date matches a given date string For example suppose there was a command \\iftoday#1#2#3 which printed #2 if \\today matched the string in #1 and #3 otherwise. So a sample of my proposed usage would be: \\iftoday{February 3, 2016}{There's no garbage today}{Please put out the garbage} I've tried various commands like pdftexcmd's strcmp, to no avail. I suspect the problem may have to do with matching the string generated by \\today. While on screen it appears that \\today returns February 3, 2016. I can't get it to match February 3, 2016 when I compare strings. Obviously, I'd be perfectly happy if I could get this to work by represent today's date in any of the standard date formats. Thanks very much in advance for any suggestions." ]
medi_sts_stackexchange_dupe
Can anyone provide the logic why it is returning true?
Is floating point math broken?
[ "The equation $y^2 = x^3 + k$ for $k = (4n-1)^3 - 4m^2$, with $m, n \\in \\mathbb{N}$ and no prime number that p is congruent to 1 modulo 4 divids m, doesn't have any answer and its proof can be obtained by using quadratic reciprocity law. Do you know answers of this equation for two or three different values of $k$? In addition, do you know any reference about that?", "Prove that $\\lambda = 0$ is an eigenvalue if and only if A is singular. I'm trying to prove that statement: Prove that $\\lambda = 0$ is an eigenvalue if and only if $A$ is singular. I'm not sure if my proof is totally correct: Suppose that $\\lambda = 0$ if det(A) = $\\lambda_1 \\cdot \\lambda_2 . . .\\lambda_n = 0$ then A is singular. If anyone could show me a better proof that would help.", "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...", "Best books for mathematical background?", "Can't kill a sleeping process", "Does this need a comma?", "How to avoid nested With[]?", "I am trying to retrieve list items using date range based on date column. It implicit both 'Fromdate' and 'Todate'.My CAML query is also querying on two other conditions as well. I am using the below query but it is not retrieving the data.when I remove the date range from query data is retrieved fine. But i want date range as well in my query how would i do this. Little help would work for me. camlQuery.set_viewXml('&lt;View&gt;&lt;Query&gt;&lt;Where&gt;&lt;And&gt;&lt;And&gt;&lt;Neq&gt;&lt;FieldRef Name=\"ID\" /&gt;&lt;Value Type=\"Number\"&gt;0&lt;/Value&gt;&lt;/Neq&gt;&lt;Eq&gt;&lt;FieldRef Name=\"_ModerationStatus\" /&gt;&lt;Value Type=\"ModStat\"&gt;0&lt;/Value&gt;&lt;/Eq&gt;&lt;Geq&gt;&lt;FieldRef Name=\"Created\" /&gt;&lt;Value Type=\"DateTime\"&gt;' + fromDate + '&lt;/Value&gt;&lt;/Geq&gt;&lt;Leq&gt;&lt;FieldRef Name=\"Created\" /&gt;&lt;Value Type=\"DateTime\"&gt;' + toDate + '&lt;/Value&gt;&lt;/Leq&gt;&lt;/And&gt;&lt;/And&gt;&lt;/Where&gt;&lt;OrderBy&gt;&lt;FieldRef Name=\"_ModerationStatus\" Ascending=\"True\" /&gt;&lt;/OrderBy&gt;&lt;/Query&gt;&lt;/View&gt;');", "QGIS Align Rasters how to retain pixel values? I am attempting to align and then merge a number of rasters of the same resolution and extent, but where the pixels are slightly misaligned (creating small gaps when merged). This works fine using the Align Rasters tool, except that the pixel values are not retained and instead given a value of something like -3.23879e+8. I mostly want to keep the nodata pixels. Is this possible?", "Is fractional scaling ( ) available in 18.04 LTS yet? I am waiting until this is available before I install.", "When I run LaTeX file its gives error as \"! Package minted Error: You must have pygmentize installed to use this package\", you must have pygments installed. when I go through minted documentation minted itself required pygments, so Tex friend How do I install this pygment, I don't know the procedure to install. Please guid me or any link pygement.exe file", "Each time I changed and saved .config/user-dirs.dirs, and after restarted the system, the XDG_DOWNLOAD_DIR are reverted: diff --git a/.config/user-dirs.dirs b/.config/user-dirs.dirs index 8f6e2db..dcff34e 100644 --- a/.config/user-dirs.dirs +++ b/.config/user-dirs.dirs @@ -7,11 +7,9 @@ # XDG_PUBLICSHARE_DIR=\"$HOME/public\" XDG_TEMPLATES_DIR=\"$HOME/public/template\" - XDG_DESKTOP_DIR=\"$HOME/private/desktop\" XDG_DOCUMENTS_DIR=\"$HOME/private/doc\" XDG_PICTURES_DIR=\"$HOME/private/picture\" XDG_MUSIC_DIR=\"$HOME/private/music\" XDG_VIDEOS_DIR=\"$HOME/private/video\" - -XDG_DOWNLOAD_DIR=\"$HOME/var/downloads\" +XDG_DOWNLOAD_DIR=\"$HOME/\" How to make my changes permanent?", "When to use self references or composition?", "Anvil, extra lines thingies", "Virtualbox Kernel driver not installed", "Is there a way to forget node names between TikZ pictures? I have a document with several TikZ pictures in it. I generally use simple names for the nodes such as: \\node (A) at ..... \\node (B) at ..... and so forth. Because of this I have name clashes between the various pictures. That's generally not a problem. However I find myself in a position where I may or may not have defined a certain node within a given picture. So I use the following snippet to test whether the node has been defined: \\makeatletter \\long\\def\\ifnodedefined#1#2#3{%% \\@ifundefined{pgf@sh@ns@#1}{#3}{#2}} \\makeatother Unfortunately this fails if I've already created a node by the same name in another picture. Is there a way to scope the definitions of nodes or is there a way to undefine nodes once you no longer need them? P.S. I'm aware that I could embed each picture in a standalone file and import it using \\includegraphics. Unfortunately, this approach will not work for the document I'm creating. MWE \\documentclass{article} \\usepackage{tikz} \\usetikzlibrary{calc} \\makeatletter \\long\\def\\ifnodedefined#1#2#3{%% \\@ifundefined{pgf@sh@ns@#1}{#3}{#2}} \\makeatother \\setlength{\\parindent}{0pt} \\pagestyle{empty} \\begin{document} There's no node \\textbf{D} here, so I draw a triangle:\\par \\begin{tikzpicture} \\coordinate (A) at (0,0); \\coordinate (B) at (1,0); \\coordinate (C) at (1,1); % \\coordinate (D) at (0,1); \\ifnodedefined{D} { \\draw (A) foreach \\myn in {B,C,D} { -- (\\myn) } --cycle; } { \\draw (A) foreach \\myn in {B,C} { -- (\\myn) } --cycle; } \\end{tikzpicture} There is a node \\textbf{D} here, so I draw a square:\\par \\begin{tikzpicture} \\coordinate (A) at (0,0); \\coordinate (B) at (1,0); \\coordinate (C) at (1,1); \\coordinate (D) at (0,1); \\ifnodedefined{D} { \\draw (A) foreach \\myn in {B,C,D} { -- (\\myn) } --cycle; } { \\draw (A) foreach \\myn in {B,C} { -- (\\myn) } --cycle; } \\end{tikzpicture} There isn't supposed to be a node \\textbf{D} here. I'm expecting a triangle, but get a square.\\par \\begin{tikzpicture} \\coordinate (A) at (0,0); \\coordinate (B) at (1,0); \\coordinate (C) at (1,1); % \\coordinate (D) at (0,1); \\ifnodedefined{D} { \\draw (A) foreach \\myn in {B,C,D} { -- (\\myn) } --cycle; } { \\draw (A) foreach \\myn in {B,C} { -- (\\myn) } --cycle; } \\end{tikzpicture} \\end{document} produces:", "How to remove local (untracked) files from the current Git working tree How do you delete untracked local files from your current working tree?", "Word style \"keep with next\" except on last item", "Riemann and Darboux Integral of a product of two functions", "Let $f: B(0,1) \\rightarrow \\mathbb{C}$ be holomorphic and suppose $\\exists\\ r \\in (0,1)$ such that $f$ is injective in $A = \\{z \\in \\mathbb{C} : r &lt; |z| &lt; 1\\}$. Prove that $f$ is injective. I tried using Rouché theorem, or the identity theorem, but I don't know what to do. Any hints? :)" ]
medi_sts_stackexchange_dupe
Is there any significance of selecting one Pokémon from the list of nearby Pokémon?
Why should I "watch" a nearby Pokémon?
[ "MATLAB superclass can not be found on the MATLAB's search path", "What is the difference between HTML tags and ? I would like to ask for some simple examples showing the uses of &lt;div&gt; and &lt;span&gt;. I've seen them both used to mark a section of a page with an id or class, but I'm interested in knowing if there are times when one is preferred over the other.", "primes whose difference is a multiple of $n$ Hello everyone this is my first question here so if there are any suggested edits feel free to participate! Is it true that for every $n$ there two prime numbers $p$ and $q$ with $n\\mid p-q$? I have verified this empirically but am not sure if there is a proof for this", "Is it supposed to be a HTML or an HTML I've seen many people who say: This is a HTML page. Yet I've also seen many people who say: This is an HTML page. Are both usages equally correct? Or, which is the grammatically correct one? Possible Duplicates:", "Displaying two XML listings side by side. I have two XML outputs from a program that I would like to include in a LaTeX document. I would like them to appear side-by-side each in its own box. So that a reader can compare the two outputs while reading the document. Can't seem to find a way to do this, without making images for each output and adding both as images/graphics. Could there be a better option?", "(already output) in Debug logs I am trying to add a list into an another nested list before adding values of a list to nested list it is getting the correct value but after adding i am getting (already output) in debug log when i checked. public List&lt;String&gt; fieldName {get;set;} public List&lt;List&lt;String&gt;&gt; fileValuesXML; // To get the field values of xml for(Dom.XMLNode child : SalesforceObjecet.getChildElements()) { objecetName = child.getText(); system.debug('Object Name in XML field ' + objecetName ); for(Dom.XMLNode subchild : child.getChildElements()) { system.debug('Sub child ' + subchild.getText() ); for(Dom.XMLNode subchildfield : subchild.getChildElements()) { system.debug('Sub child Field ' + subchildfield ); fName = subchildfield.getText(); fieldName.add(fName); //fileValuesXML.add(fieldName); //system.debug('Filed Name in XML field ' + fieldName); } system.debug('Filed Name before affing to filevalueXML ' + fieldName); fileValuesXML.add(fieldName); fieldName.clear(); system.debug('Filed Name after affing to filevalueXML ' + fileValuesXML); } } I am getting values in debug log as: Filed Name before affing to filevalueXML (AccountSource, field3) Filed Name after affing to filevalueXML ((), (already output), (already output))", "Is “fortnight” an outdated word? I'm studying English vocabulary books, I find this word in each unit describing time words (days, weeks, months...). There are 2 weeks in a fortnight. Almost I haven't seen this word before in social websites, emails or movies. the only place I heard this word is in historical movies. So, is it a outdated word or native speakers still use it?", "(Fitzpatrick Advanced Calculus 2e, Sec. 2.4 #12) For $c \\gt 0$, consider the quadratic equation $x^2 - x - c = 0, x &gt; 0$. Define the sequence $\\{x_n\\}$ recursively by fixing $|x_1| \\lt c$ and then, if $n$ is an index for which $x_n$ has been defined, defining $$x_{n+1} = \\sqrt{c+x_n}$$ Prove that the sequence $\\{x_n\\}$ converges monotonically to the solution of the above equation. Note: The answers below might assume $x_1 \\gt 0$, but they still work, as we have $x_3 \\gt 0$. This is being repurposed in an effort to cut down on duplicates, see here: . and here: .", "Programmatically open new pages on Tabs", "How can I detect when an Exception's been thrown globally in Java? How can I detect when an Exception has been thrown anywhere in my application? I'm try to auto-magically send myself an email whenever an exception is thrown anywhere in my Java Desktop Application. I figure this way I can be more proactive. I know I could just explicitly log and notify myself whenever an exception occurs, but I'd have to do it everywhere and I might(more likely will) miss a couple. Any suggestions?", "It is company policy for admins to login to the servers via a personal username, and then run sudo -i to become root. Upon running sudo -i, sudo will create an environmental variable called SUDO_USER, which contains the original user's username. Is there a way to log ALL commands within syslog with something akin to the following syntax: ${TIME/DATE STAMP}: [${REAL_USER}|${SUDO_USER}]: ${CMD} An example entry would be: Sat Jan 19 22:28:46 CST 2013: [root|ksoviero]: yum install random-pkg Obviously it doesn't have to be exactly the above syntax, it just has to include a minimum of the real user (eg. root), the sudo user (eg. ksoviero), and the full command that was run (eg. yum install random-pkg). I've already tried snoopy, but it did not include the SUDO_USER variable.", "Say I have a huge text file (>2GB) and I just want to cat the lines X to Y (e.g. 57890000 to 57890010). From what I understand I can do this by piping head into tail or viceversa, i.e. head -A /path/to/file | tail -B or alternatively tail -C /path/to/file | head -D where A,B,C and D can be computed from the number of lines in the file, X and Y. But there are two problems with this approach: You have to compute A,B,C and D. The commands could pipe to each other many more lines than I am interested in reading (e.g. if I am reading just a few lines in the middle of a huge file) Is there a way to have the shell just work with and output the lines I want? (while providing only X and Y)?", "Ubuntu 16.04.1 has appeared as .rar file. How do I burn it to a disk to use to install Ubuntu? I am interested in using Ubuntu for the fist time, so I went to the Ubuntu download page (), to get the download file. When the file downloaded he file, it appeared in WinRAR, so I cannot burn the file to a DVD. Can anybody point me in the right direction as to how to burn this file to a DVD when the file appears as a WinRAR file? Any help would be great appreciated. Thanks :)", "What is the correct vector input for a texture connected to a Cycles lamp so that I can make a projector-like textured light? I am trying to make an projector-like effect with a textured light in Cycles, currently trying it out with a Spot type of lamp, but I am open to any solution involving other lamp types if they work correctly. The problem is that whatever vector input I use, the texture is always projected downwards, towards the global $-Z$ axis in scene world space, no matter where I point my spot light. I would like to have the texture always project \"forward\" towards the the direction the spot light is pointing, in the local $-Z$ axis. The plan would then be to use this spot at several places in my scene, pointing at different directions, and as it currently stands I would have to have a different node setup for each spot instance, manually compensating for each unique rotation in the scene, which would quickly become unpractical. I have searched around the internet and I am currently using a solution similar to the one on this . Is there any better method, perhaps involving some funky Vector Math, or is this not currently supported?", "How to hide TabPage from TabControl", "Was voldemort's body going to die? Voldemort has gained \"immortality\" via his horcruxes, but was his body immortal to age? Looking at all the questions about Voldemort and his horcruxes what was his plan to keep his body alive. We know his first Horcux was created at age 16, yet we see him age still so it seems like eventually his body would die of old age and his soul would be left in the half dead state he was in after his spell rebounded off Harry. What was his plan here, why would he not want something such as the elixir of life to keep his vitality? While the Elixir of Life does indeed extend life, it must be drunk regularly, for all eternity, if the drinker is to maintain his immortality. Therefore, Voldemort would be entirely dependent on the Elixir, and if it ran out, or was contaminated, or if the Stone was stolen, he would die just like any other man. Thereafter, I am convinced, he intended to continue to rely on his Horcruxes: he would need nothing more, if only he could regain a human form. He was already immortal, you see ... or as close to immortal as any man can be.' (Albus Dumbledore) Horcruxes seem to fail at something important, keeping you alive, they stop you from dying truly yes, but they don't keep you alive. Harry is shown over and over again to be able to beat better wizards because hes has faster reflexes both because of youth and his genetics, but presumably by 50 harry will not be as fast as his 16 year old self even considering their longer life expectancy. Why operate in a body of a 50 year old?", "system wide keyboard hook on X under linux", "Determine if a set of tiles on a grid forms an enclosed shape", "Non superscript citations for figures Is it possible to reference figures like so taken from \\emph{ref. \\cite{reference}} with non superscript numbers, while leaving the rest of the references in the bulk of the document untouched? This is using BibTeX and the .", "Determine the number of functions $f: \\{1,2,3....,1999\\}\\to \\{2000,2001,2002,2003\\}$satisfying the condition that $f(1)+f(2)+...f(1999)$ is odd. Problems:Determine the number of functions $$f: \\{1,2,3....,1999\\}\\to \\{2000,2001,2002,2003\\}$$ satisfying the condition that $f(1)+f(2)+...f(1999)$ is odd. My Attempt: Each integer in domain has $4$ choices and therefore the total number of functions is $f$ is $4^{1999}.$ Since there are an equal number of functions that yield odd or even result, we can directly write that the number of functions satisfying the above condition to be $2*4^{1998}.$ I am unsure about this last claim and would like to prove it (if it is true.)Also is the answer to this problem correct? Edit $1$: I tried to proceed further in the following manner: For a given mapping $f$ let the number of integers assigned to $2000,2001,2002$ amd $2003$ be $p,q,r$ and $s$ respectively, where $p,q,r,s\\in \\mathbb{Z}^+$. Therefore the sum in question can be written as $f(1)+f(2)+...+f(1999)=2000p+2001q+2002r+2003s.$ Clearly the sum will be odd iff $q+s$ is odd. Also note that $p+q+r+s=1999\\Rightarrow p+r$ is even. On the other hand if we let $q+s$ as even then $p+r$ must be even. Now the number of values of $p,q,r$ and $s$ for which the above two lemmas hold is the same and therefore if we let $f$ to be the function which maps elements form $\\{1,2,3,...,1999\\}$ to $\\{2000,2001,2002,2003\\}$ such that $q+s$ is even and $g$ to be the function hich maps elements form $\\{1,2,3,...,1999\\}$ to $\\{2000,2001,2002,2003\\}$ such that $p+q$ is even we will get a bijection.(Maybe!)" ]
medi_sts_stackexchange_dupe
undefined variable after ajax request
How do I return the response from an asynchronous call?
[ "A while ago I upgraded from Ubuntu 17.04 to Ubuntu 17.10 and everything is working fine except for the fact that the icon in the window title bar of my Terminal seems to be stretched out to some ridiculous size. This only seems to happen in the Terminal window. The Nautilus icon is completely fine. The problem seems to go away if I login into an Xorg session instead of a Wayland one. I've looked around and didn't find any immediate solution to this. Any help would be greatly appreciated.", "How to set page geometry for a single page only?", "Where can I get an Ubuntu Installation CD/DVD/USB? I need to upgrade my existing Ubuntu system, and I also want to install Ubuntu on a new laptop. I would like to have an installation CD or DVD to do both of these. Where exactly I can order or request an Ubuntu installation CD/DVD/USB?", "Conversion Error setting value for 'null Converter' - Why do I need a Converter in JSF?", "I'm trying to find the name of a lower-budget science fiction film that was available for viewing on demands on MIT student cable in the late 1990s. I suspect the film was made earlier in that decade, and it definitely seemed to have been influenced by RoboCop. The plot involves characters is a somewhat dystopian near future. One of the characters (named Hawkins, I think) is initially in a wheelchair, and that is interfering with his relationship with the woman he loves. (He watches virtual reality simulations of himself having sex with her when he's alone at home.) Maybe halfway through the movie, he decides there's no hope for their relationship, so he lets the bad guys turn him into a RoboCop-like cyborg. I think he ends up fighting the other main characters, but I don't remember how the movie ends. The film was clearly shot cheaply but competently. The color palette was rather drab, I think, and there were few indoor sets. It's possible that the film never got a normal release of any kind, since I don't know where the students at MIT cable got ahold of it. So does anybody know what this film was?", "How can I add vertices to intersection of two edges? I need to put a point at the intersection of two edges. Below is a picture with red circles around where I need points to be placed.", "Add a downvote option in the VLQ review There are many answers that are well-formed and well-formatted but are simply plain wrong or misleading. When reviewing, I often have a hard time deciding which action to take, as: Looks Good: is OK per se but I would never say \"good\" (would work if the wording was changed slightly), Edit: The question is formatted well and editing it to be right would go against the intent of the author, Recommend deletion: this looks like the most reasonable choice, but I wouldn't flag it if I were browsing the site in normal mode, Not sure: I am quite sure what is wrong but I end up clicking this because the other three options do not seem fitting. My proposal is to add a fifth option - Downvote that would make it easier to choose in case of such answers.", "Proof $1+2+3+4+\\cdots+n = \\frac{n\\times(n+1)}2$", "How can I know if a branch has been already merged into master?", "How do you get the index of the current iteration of a foreach loop?", "Here is some information we got : We know the value of $n$, with size $1043$. We know the value of $p$ (size $20$) and $q$ (size $1023$) as the factors. $e = 65537.$ $\\varphi(n)$ = $(q-1)(p-1)$ When I calculated $\\gcd$ and $\\text{modinv}$, I got : $\\gcd(e,\\varphi(n)) = 65537$ $modinv(e,\\varphi(n)) = 1 $ So we can tell that they are not relatively prime. So, how to compute the d, and get the value of m? I'm not that good with math, so I cant understanding well the theory. so can anyone please make an example implementation or write a clear formula?", "\"Have you seen her?\" or \"Did you see her?\" I already knew that we use the present perfect for an action in the past with a result now. Consider the following questions: \"I'm looking for Paula. Have you seen her?\" \"I'm looking for Paula. Did you see her?\" Is there any difference between these two questions for this specific action (verb)? What is the result of \"seeing\" action which can't be represented by simple past?", "Why does division by zero with floating point (or double precision) numbers not throw java.lang.ArithmeticException: / by zero in Java", "How to correctly do a division using a slash? What's the correct way to do division using a backslash? If I write $a/bc + d$, will that be equal to $(a/(bc))+d$? Basically, if I place a slash, will I divide by what's directly behind the slash $(b)$, the term that's behind the slash $(bc)$, or everything after the slash $(bc+d)$?", "\"A friend of my father\" vs. \"a friend of my father's\" — which one is right? Why? I have seen them both in my reference book, which is written by a native speaker. I wonder why there are two different phrases to describe the same meaning and am looking forward to some reasonable details to explain why this is so.", "Android 4.1: How to check notifications are disabled for the application?", "The speed of light is the same in all inertial frames. Does it change from a non-inertial frame to another? Can it be zero? If it is not constant in non-inertial frames, is it still bounded from above?", "I want to be able to pull in the error log from BIOS across a network I want to be able to pull in the error log from BIOS across a network. Looking at Win32_BIOS in MSDN I did not see anything defining the error log. Would love to do this in C# with WMI, but am open to suggestions. Is it possible? Win32_BIOS does not have a property (don't know if that is the right term) that contains the BIOS error log. Is there a library, API, etc. that I can use to pull this information locally or from the network?", "Why are SMD LEDs shipped in a sealed bag containing desiccant? I had a selection of 0805 LEDs in my last Mouser order and was a bit surprised to discover they arrived in heat-sealed (rather than folded and taped with sticker) bags containing a desiccant bag and some sort of litmus-esque paper indicator saying something about baking them if the dots on it went pink (instead of blue). A quantity of through-hole LEDs I had in the same order just came in the regular ESD-protective bag, folded over with a sticker. What's up with SMD LEDs that they work so hard to keep them dry? Surely their dryness can't be assured once they're installed. Does it have to do with their solderability or something? Why would that be different than other SMD parts?", "Is it possible to redirect all of the output of a Bourne shell script to somewhere, but with shell commands inside the script itself? Redirecting the output of a single command is easy, but I want something more like this: #!/bin/sh if [ ! -t 0 ]; then # redirect all of my output to a file here fi # rest of script... Meaning: if the script is run non-interactively (for example, cron), save off the output of everything to a file. If run interactively from a shell, let the output go to stdout as usual. I want to do this for a script normally run by the FreeBSD periodic utility. It's part of the daily run, which I don't normally care to see every day in email, so I don't have it sent. However, if something inside this one particular script fails, that's important to me and I'd like to be able to capture and email the output of this one part of the daily jobs. Update: Joshua's answer is spot-on, but I also wanted to save and restore stdout and stderr around the entire script, which is done like this: # save stdout and stderr to file # descriptors 3 and 4, # then redirect them to &quot;foo&quot; exec 3&gt;&amp;1 4&gt;&amp;2 &gt;foo 2&gt;&amp;1 # ... # restore stdout and stderr exec 1&gt;&amp;3 2&gt;&amp;4" ]
medi_sts_stackexchange_dupe
Linux: exit forked child process when parent exits
How to make child process die after parent exits?
[ "70s UK science fiction TV show with time travel and telepathic cat I'm trying to identify a science fiction series on UK TV during the 70s, but I can only recall the following: A party of adults and children. There was a woman with a telepathic bond to her cat: she could look into its eyes to see what it had seen. Time travel was involved. I think it may have been inadvertent or uncontrolled time travel. On one occasion the party encountered an Elizabethan seaman who demanded to know if Elizabeth was still queen. They party replied \"err... yes\" because they didn't want to have to explain time travel.", "How to record both screen and sound with Quicktime on El Capitan? I'm trying to record both what's happening on screen and the audio being played by the applications. To my surprise, QuickTime did not record the sound. I believe it worked before in previous OS X releases, but that is not something that I use often so I have not bothered to try earlier. What is the current situation on El Capitan ? Have I messed with something that prevents QuickTime from capturing the sound, or has it never worked ? Here is my view of Quick Time / New Screen Recording on a Mac Mini: On my Macbook Pro, I have the option select None or Internal Microphone. Internal microphone actually records the speakers of the Mac Book as heard from its own microphone, which obviously sounds terrible. This is a MacMini 7,1 (late 2014) and there is nothing in Input Sources.", "How to get Lookup ID from Search API with REST I'm trying to get the ID of a lookup field when using search api. My query looks something like this: /_api/Search/query?querytext='ListId:12345678-1234-1234-1234-123456789012'&amp;selectproperties='Title,Company' Where Company is the lookup field, in a specific list. The result looks like this: &lt;d:element m:type=\"SP.KeyValue\"&gt; &lt;d:Key&gt;Company&lt;/d:Key&gt; &lt;d:Value&gt;Some company&lt;/d:Value&gt; &lt;d:ValueType&gt;Edm.String&lt;/d:ValueType&gt; &lt;/d:element&gt; I have created a managed property which looks like this:", "Public-key cryptographic systems are often implemented on top of an existing problem. For example, RSA is built on top of integers and the difficulty of factoring. ECDSA/ECIES are built on top of elliptic curves and the difficulty of the discrete logarithm. My question is, what are, mathematically speaking, the exact primitives needed to implement public-key based signature and encryption cryptography in a generic way?", "Show that $\\sum_{n=1}^{\\infty}(n^{3}\\sin\\left(\\frac{1}{n}\\right)-n^{2}+\\frac{1}{6})$ converges Let $t\\in \\mathbb R$. Prove that $\\displaystyle{\\sum_{n=1}^{\\infty}n^{3}\\sin\\left(\\frac{1}{n}\\right)-n^{2}+t}$ converges iff $t=\\frac{1}{6}$. While the $(\\Rightarrow)$ direction was fairly easy (as $a_n$ should converge to $0$, forcing $t=\\frac{1}{6}$), i'm facing some hard time trying to prove the second direction, that is $\\displaystyle{\\sum_{n=1}^{\\infty}(n^{3}\\sin\\left(\\frac{1}{n}\\right)-n^{2}+\\frac{1}{6})}$ converges. I did notice that $a_n=a_{-n}$ and tried to write this series as a Leibnitz series, but had no luck since the sequence doesn't decrease. I also tried to prove absolute convergence but then again, no luck. Thanks.", "I think it would be nice to have a \"friends list\" on Stack Overflow. This would allow us to be able to follow the questions and answers that are posted by users that we want to watch/monitor. I suggest it be implemented in the same fashion as DotNetKicks.com; where you can add someone to your \"friends list\" without them needing to approve you the way that other social networks do it. It should be completely open for us to add anyone to our \"friends list\" that we like.", "Use spray paint to make mask for pre-sensitised board? I'm about to etch my first simple board for a project. I have a pre-sensitised board that (as I understand the process) you expose to UV light, then develop the board in a sodium hydroxide solution, then etch. The UV light will negatively affect the protective lacquer and developing it after exposing washes away the lacquer, making the board ready to etch. I got the lye and I got sodium persulfate for the etching but I did not have any transparent paper as I thought I did! And it's impossible for me to get a hold of it in time (= this weekend, I live far from the city and it's a small one and I haven't found any place that stocks it so I have to order online and that's sometime next week I'd get it at the fastest). So I am looking for an alternative solution. What I am considering is printing the design to regular paper, cut out a mask carefully from this paper and place it over the board and paint a mask on. Spray paint most likely, then in theory I would have a UV mask. Anyone see any flaws in this plan?", "What are best practices for blocking UI when application is busy I'm writing a web app using Twitter Bootstrap with PHP on server side. My app makes regular ajax requests via jQuery and i want to disable certain parts of the UI until the server completes processing and hands back the control to Client-Side. I wonder what would be best practices for the same?", "I need to graph a rectangle on the Cartesian coordinate system. Is there an equation for a rectangle? I can't find it anywhere.", "Is it lenses which make your photographs, not camera bodies?", "How to install multiple versions of the same software? I manage phone systems for multiple clients. Each system uses the same administrator software, but it runs on different versions depending on what version of firmware is installed on the system controller. The software is downloaded directly from the system controller so it's the right version. For example, if the controller runs on version 5.0.2, you have to run version 5.0.2 of the administrator software. You can't administrate a 5.0.2 controller with a later versions of administrator software. Bottom line, you have to have the right version of software to log into the controller. The software is not executable on its own, you have to install it. So every time I want to log into a different controller, I have to reinstall the right software. Any way to get around this? I'm running Windows 7 Enterprise x86.", "I'm trying to use push with AppInbox/Cloud Pages. I want the Cloud Page that is linked to the push message to be able to display dynamic content based on an attribute for that contact. This page - - says that it is possible to personalise Cloud Page content but doesn't say how. I've already had a Salesforce support case opened and closed with no luck - apparently it's not their job to assist me with how to do something even if they say something is possible but back it up with no documentation for how it might be done. I've tried the normal way you'd do it from an email, using both the _subscriberkey personalisation string as well as the RequestParameter function with fields from the entry source DE, but neither of these work. Given you're selecting a static Cloud Page when you set up the send and there's no visible way to add attributes, how do you actually get a Cloud Page to pick up these values?", "Tony's suit is an engineering marvel, and they explain many facets of the technology to help give legitimacy to the special powers, abilities and weapons it has. I never read the Iron Man comics, but in the movie they really don't have a technological explanation for how he miraculously seems to be unaffected by crushing G-forces of sudden acceleration, the inertia of sudden stops and hair-pin turns, and especially the blunt force trauma from getting smashed in the face with Thor's hammer. Certainly it appears the suit takes punishment, but Tony always remains unscatched, never a collapsed lung, broken bone or even a bloody nose. In my infantile understanding of theoretical physics, the same technology that would be used to counter G-forces and sudden blunt force trauma to the body inside would be the very same technology used for which in my honest opinion would be a much more stunning technological achievement than his heralded Arc Reactor. Was their ever an explanation proferred for this and if so was it indeed attributed to Anti-Gravity?", "Prove divisibility law $\\,b\\mid a,c\\,\\Rightarrow\\, b\\mid ka + lc$ for all $k,l\\in\\Bbb Z$", "When I create a clan in the multiplayer menu, it says clan created but I cannot add or invite people to my clan. I go to create a new one assuming the request was canceled or not entered correctly, it says clan name already exists as if someone else created it. Is this a bug? Did I do it wrong? Or am I missing something? I'm on the PS3. Will this also happen on my Xbox 360 Version?", "I have a filter using pre_get_posts to change the number of posts per page from 4 on the news landing page to 8 on all other pages (page 2, 3, etc). However I don't seem to have got the offset correct, or something, because my get_next_posts_page_link doesn't show a page 3, even though it does exist if I go to the url manually. The current offset is something I somehow managed to conjure up accidentally, I thought it worked as page 2 was correct but as I added more test posts, I realised it didn't work. function page_2_posts_per_page_filter( $query ) { $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; if ( !is_admin() &amp;&amp; $query-&gt;is_paged &amp;&amp; $query-&gt;is_main_query() ) { $offset = 4 + (($paged - 2) * 8); $query-&gt;set( 'offset', $offset ); $query-&gt;set( 'posts_per_page', 8 ); } else if (!is_admin() &amp;&amp; $query-&gt;is_main_query()) { $query-&gt;set( 'posts_per_page', 4 ); } return; } add_action( 'pre_get_posts', 'page_2_posts_per_page_filter', 1 ); EDIT: SOLUTION function page_2_posts_per_page_filter( $query ) { $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $offset = 4; if ( !is_admin() &amp;&amp; $query-&gt;is_paged &amp;&amp; $query-&gt;is_main_query() ) { $offset = (($paged - 1) * 8) - $offset; $query-&gt;set( 'posts_per_page', 8 ); $query-&gt;set( 'offset', $offset ); } else if (!is_admin() &amp;&amp; $query-&gt;is_main_query()) { $query-&gt;set( 'posts_per_page', 4 ); } return; } add_action( 'pre_get_posts', 'page_2_posts_per_page_filter'); function found_offset( $found_posts, $query ) { $offset = 4; if( !is_admin() &amp;&amp; $query-&gt;is_main_query() ) { $found_posts = $found_posts + $offset; } return $found_posts; } add_action( 'found_posts', 'found_offset', 10, 2 );", "How can Finder empty Trash more quickly than \"rm -rf /Volumes/Foo/.Trashes/501/*\"? The \"Trash\" of a 16-GB usb2 flash drive had 3.4-GB of data. I emptied it as such: $ cd /Volumes/FooDrive/.Trashes/501 $ rm -rf * This took over 5-seconds. That seemed pretty long. So, as a test I just decided to empty the Trash of all of my drives via Finder. Other drives: 2-TB usb3 500-GB usb2 16-GB usb2 250-GB ssd I measured the size of the Trash as such: $ du -ch /Volumes/WhateverDrive/.Trashes There was 15-GB in the Trash of the 500-GB drive, and 5-GB in the Trash of my other 16-GB flash drive. I didn't measure the other drives. Finder appeared to take much less than 5-seconds to empty the Trash for all those drives. Does Finder really empty the Trash so much more quickly than /bin/rm? How? Does Finder just make the \"clicking sound\" (signaling the trash is empty) before the Trash on all the drives is really empty?", "Show/Hide dropdown, with jQuery, based on value", "I can't play Pokemon GO! What's wrong?", "HtmlSpecialChars equivalent in Javascript?" ]
medi_sts_stackexchange_dupe
Junit4 throws an Exception when test run
JUnit @Test expected annotation not working
[ "I would like to create a virtual device in Android Studio but I can't because hardware acceleration is disabled. I went to the BIOS and there are two option : AMD-SVM AMD-IOMMU Both are enabled. I also downloaded the HAXM installer from the SDK manager and tried to run it from the C:\\Users\\%user%\\AppData\\Local\\Android\\Sdk\\extras\\intel\\Hardware_Accelerated_Execution_Manager with intelhaxm-android file. I got an error telling me : This computer does not support Intel Virtualization technology VT X or it is exclusively used by Hyper V. HAXM cannot be installed. Please ensure that hyper V is disabled in windows feature It makes sense that I can't activate Intel Virtualization technology because I have AMD Ryzen 7 2700U. With my previous computer it worked just fine but I had an Intel processor. Some tutorials online suggested to enable windows Hyper-V feature but it's only available for windows 10 pro. Does anyone know a way to activate hardware acceleration with AMD processor and without Hyper-V feature?", "Why can't the Klein-Gordon equation with a Couloumb potential describe the hydrogen atom? Why can the first order Dirac equation explain it? What are the failures?", "Inequality between $\\ell^p$-norms", "Show that $$\\int_{0}^{\\infty} \\frac{x - \\sin(x)}{x^3} \\, dx = \\frac{\\pi}{4}$$ My attempt is as follows: Let $$f(z) = \\frac{z - i e^{iz}}{z^3}$$ and consider the contour on $[\\epsilon, R]$ followed by a semicircular arc in the counter clockwise direction, then on $[-R, -\\epsilon]$, then the semicircular clockwise contour avoiding the origin. We have, then, that $$0 = \\int_{\\Gamma} f(z) dz = \\int_{[\\epsilon, R]} f(t) dt + \\int_{C_R}f(Re^{it})Rie^{it}dt + \\int_{[-R, -\\epsilon]}f(t)dt + \\int_{C_{\\epsilon}}f(\\epsilon e^{-it})\\epsilon i e^{-it} dt$$ Then the first and third integrals ( $I_1$ and $I_3$) combine so that $$I_1 + I_3 = 2\\int_{\\epsilon}^R \\frac{t - \\sin{t}}{t^3}\\,dt$$ Further, $$|I_{C_R}| \\leq \\int_0^\\pi \\left|\\frac{Re^{it} - ie^{-R\\sin{t}}e^{iRcos{t}}}{R^2 e^{2it}} \\right|dt \\rightarrow 0 \\text{ as } R\\rightarrow \\infty$$ (I've omitted the details, it isn't too bad to bound) However, I'm having trouble computing the limit $$\\lim_{\\epsilon \\rightarrow 0}\\int_{C_{\\epsilon}} f(\\epsilon e^{-it})\\epsilon i e^{-it} dt$$ No matter which way I look at it, it seems like this limit does not exist. Perhaps I'm seeing something wrong or have I chosen a bad $f(z)$?", "How do people who do not speak Indian English \"prepone\" things?", "Show that $ \\sum_{n=2}^m \\binom{n}{2} = \\binom{m+1}{3}$ I need a hand in showing that $$ \\sum_{n=2}^m \\binom{n}{2} = \\binom{m+1}{3}$$ Thanks in advance for any help.", "macro definition containing #include directive Is there a way to define a macro that contains a #include directive in its body? If I just put the \"#include\", it gives the error C2162: \"expected macro formal parameter\" since here I am not using # to concatenate strings. If I use \"\\# include\", then I receive the following two errors: error C2017: illegal escape sequence error C2121: '#' : invalid character : possibly the result of a macro expansion Any help?", "Pokemon Go login issues after update I downloaded the July 30th update for Pokemon Go and when I open the app I'm prompted to login, But once I login, it redirects me to this page on Cookies:: If I click \"Done\" in the top left, it prompts me to login again! I've tried reinstalling the game, restarting my phone, etc. I can't much enable Cookies on the inline Safari browser. It doesn't make sense, and cookies are on in Safari (because I don't use Safari and they're enabled by default). How can I fix this?", "How do you detect where two line segments intersect?", "How to disable Ctrl+Shift+U?", "What's a word for lack of confidence?", "How to get class object's name as a string in Javascript?", "Let $G$ be a matrix Lie group and let $H$ be a Lie subgroup of $G$. My understanding is that all $g \\in G$ are matrices, since $G$ is a subgroup of the general linear group. Then aren’t all elements $h \\in H$ matrices, since $h \\in G$? From what I can gather $H$ is a matrix Lie group if $H$ is a closed subset of $G$. But if $H$ is not a closed subset of $G$, why is it not a matrix Lie group? Is the reasoning in the first paragraph wrong?", "How to troubleshoot unwanted white spaces smartly? Why is there a white space on the left side? \\documentclass{standalone} \\usepackage{asymptote} \\begin{document} \\noindent \\begin{asy} size(10cm,10cm); draw((0,0)--(100,100)); draw((0,100)--(100,0)); dot((50,50)); \\end{asy} \\end{document}", "Why the following example prints \"0\" and what must change for it to print \"1\" as I expected ? #include &lt;iostream&gt; struct base { virtual const int value() const { return 0; } base() { std::cout &lt;&lt; value() &lt;&lt; std::endl; } virtual ~base() {} }; struct derived : public base { virtual const int value() const { return 1; } }; int main(void) { derived example; }", "iSight cable for mid 2009 macbook pro 13\" help If my iSight camera no longer works and neither does my bluetooth, should my wifi still technically be working? Aren't they all co-dependent(if that makes sense) or can the fact that my wifi is still functional mean that the iSight camera still works and it's a software problem.", "Mechanism of Screenshot Basically I with my team are figuring out a way to block screenshots taken on our corporation's computers (Mac mostly). I have searched it extensively and found that there is something called Screen buffer which is being accessed by any screenshot taking software (eg. Snipping Tool etc). I tried to find the exact mechanism and the actual implementation of such softwares but with no luck. Also I found out that Netflix uses some kind of technology which corrupts screenshot image and blackens it. I did not find any actual mechanism or implementation to study it further. I also came across something called Hardware overlays but did not understand it properly in order to use it for actual implementation. I have considered a way to edit scancode maps in registry but I am looking for a more general way. I read a few articles for apple's FPS though. Can somebody please guide me through this? Some good resources for the same would be highly appreciated. Any particular or relevant forums or subs to discuss this are also welcome", "Is it possible to connect two monitors on a laptop, one through HDMI and the other through DisplayPort? For example the Alienware m17x offers 3 connections, HDMI, DisplayPort, and VGA. Is it possible to connect two independent external monitors, one through the DisplayPort and one through the HDMI port?", "How to completely delete the head of a function expression", "How to show that if $\\phi(n)$ equals to n itself, then n must be 1?" ]
medi_sts_stackexchange_dupe
how can I update ubuntu v12.04 to v13.04 without using a internet connection?
How do I upgrade to a newer version of Ubuntu?
[ "an \"X is an X is an X\" what does this mean? I am reading (I must say, with great delight but that's not relevant) and Canadian is a Canadian is a Canadian A citizen is a citizen is a citizen. I do not understand this structure. Why not just &quot;A citizen is a citizen&quot;? What is the meaning of repeating this?", "$\\mathbb R = X^2$ as a Cartesian product I wonder if it is possible to consider $\\mathbb R$ as a Cartesian product $X\\times X$ for some set $X$. From the point of view of the dimensionality, there are spaces with a Hausdorff dimension $1/2$ (sort of Cantor sets), but I guess there are other problems in this construction unrelated to the dimension. Edited: replying on the comment by Asaf. I want that for all $r\\in\\mathbb R$ there exists a unique representation $r=\\langle x,y\\rangle$ where $x\\in X$ and $y\\in X$. Also, what if we want to have $X$ to be a topological space and $h:X\\times X\\to\\mathbb R$ to be a homeomorphism?", "It has come to the point in my computing program now where I have 5 swinging pendulums that are all modified at once by slider values. These values are drawn onto the from and passed through the class pendulum. To change the values the update button is run, and their is a default option to use a setup that works. The values are also shown on screen through some simple labels. The zero button sets all values (except length) to zero. The values for each pendulum drawn is: String length angle Acceleration (angular) Angluar velocity Damping or friction Gravity My calcuations for these values: (Bob = the weight at the end of the string, and there are X and Y Co-ordiantes for it. bobX = originX + (Math.Sin(angle) * length); bobY = originY +(Math.Cos(angle) * length); Caclulate Acceleration: Angular Acceleration = (-1 * gravity / length) * Math.Sin(angle); Increment Velocity: Angular Velocity += Angluar Acceleration; Increment Angle angle += AngularVelocity; Friction action, pendulum eventually 0's AngularVelocity*= damping; Now my next task is to make the pendulums collide \"realistically\" and recreate a newtons cradle type effect. I've looked into elastic collision solutions on particle e.g. here is an excellent example: I've also looked at the raw physics behind it but my brain couldn't get to grips with the raw physics side of things. So I'm wondering if anybody could help me figuring out the theory for the collisions. My current idea is when the co-ordinates meet the velocity will simply change polarity e.g. +10 to -10 in the opposing pendulum. Am I correct here? If you are into code I've posted the code on stack overflow", "How to run scripts on start up?", "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 do I say what is the current UTC in eastern zone", "Over the years I've written some libraries. These libraries sometimes depend on each other. As a result, the \"tex\" directory is structured as follows: tex ├── library | ├── library1.sty | ├── library2.sty | └── library3.sty ├── project1 | ├── master.tex | ├── chapter1.tex | └── chapter2.tex ├── project2 | └── article.tex └── project3 └── paper.tex The libraries depend on each other. As a result, in every library that depends on another library, this is part of the header: %library2.sty \\ProvidesPackage{library2} \\RequirePackage{../library/library1} In other words, the library is imported from the \"root of every project\". This is not a good design choice. What if someone copies the libraries in the folder of the root of a project, or what if the folder \"library\" is renamed... It is however reasonable the \"active directory\" still remains in the project root. What can be done to resolve such library dependencies?", "How to make a figure span on two columns in a scientific paper?", "Can the 5E abjurer wizard recover temp hp on his arcane ward any time it is below max or only when it reaches 0? On p115 of the PHB under Arcane Ward there are a few facts that I think are clear: The ward is created by the first abjuration spell you cast in a day It has a max hp of level &times; 2 + int modifier. The ward does not absorb damage once it reaches 0 hp, but it remains until you take a long rest The ward can be recharged by casting abjuration spells, at a rate of 2 x spell level worth of hp 3. However, the way they wrote the paragraph about recharging seems unclear to me. Can you recharge the ward whenever it is below max hp or only when it is at 0? My understanding of temporary hp would say it is the latter, but the writing on this ability infers the former. An example. If I were a level 10 abjurer with 20 int and cast Mage Armor, it would give the ward 25 hp. If I took 30 damage from an enemy, the ward would absorb 25 damage, leaving it at 0, and I would take the remaining 5 damage. If I cast Stoneskin (level 4 abjuration) the ward would be recharged with 8 hp. If I then cast Planar Binding (level 5 abjuration) which would be correct? The ward remain at 8 hp The ward would recharge an additional 10 hp to a total of 18 hp", "What's this? What is it? but not What's it? - Why? Can anyone give a cogent, simply described explanation of why the verb BE in: What is it? ... doesn't seem to be able to be contracted with the subject: What's it? * Compare the sentences above with: What's this? What's that? These are perfectly fine. In fact, the contractions here should be expected in almost all examples of spoken English. Answers with references to authoritative vetted sources would be greatly appreciated.", "I know that for a Banach space $X$ and a linear functional $T:X\\rightarrow\\mathbb{R}$ in its dual $X'$ the following holds: \\begin{align}T \\text{ is continuous } \\iff \\text{Ker }T \\text{ is closed}\\end{align} which probably holds for general operators $T:X\\rightarrow Y$ with finite-dimensional Banach space $Y$. I think the argument doesn't work for infinite-dimensional Banach spaces $Y$. Is the statement still correct? I.e. continuity of course still implies the closedness of the kernel for general Banach spaces $X,Y$ but is the converse still true?", "When will my device get the Android 5.0 update (Lollipop)?", "parallel thermostat I have a venter room heater in a cabin. It uses a milivo;t thermostat. I am hooking it up to a wifi thermostat using a relay and 24 volt power supply. My concern is that if the power goes off that the thermostat will not power the unit on. I currenty have a digital thermostat that controls the unit and works great. can I wire the current thermostat to the wifi in parallel so if power goes off it will still allow the heater to turn on. If I can how do I wire it?", "Can you claim a Double Sacrifice Bonus? Two very closely related questions: If a card has two different \"Sacrifice this creature for X\" abilities on it, does sacrificing it give both benefits? Likewise, if a card requires a creature to be sacrificed, but that creature has a \"Sacrifice this creature for X\" ability, do you get the sacrifice benefit when you sacrifice it for the other requirement?", "I would like to restore LightDM to its default state, because for some reason /etc/lightdm/unity-greeter.conf is now an empty file. Deleting /etc/lightdm/unity-greeter.conf and then running sudo apt-get install --reinstall unity-greeter doesn't create a new config file as you might expect. How can I restore a missing config file?", "What is the difference between Set and SetDelayed?", "How to count the number of occurrences of an element in a List I have an ArrayList, a Collection class of Java, as follows: ArrayList&lt;String&gt; animals = new ArrayList&lt;String&gt;(); animals.add(\"bat\"); animals.add(\"owl\"); animals.add(\"bat\"); animals.add(\"bat\"); As you can see, the animals ArrayList consists of 3 bat elements and one owl element. I was wondering if there is any API in the Collection framework that returns the number of bat occurrences or if there is another way to determine the number of occurrences. I found that Google's Collection Multiset does have an API that returns the total number of occurrences of an element. But that is compatible only with JDK 1.5. Our product is currently in JDK 1.6, so I cannot use it.", "How to draw Brownian motions in tikz/pgf", "Can I make my Ubuntu make sounds when I press Caps Lock etc.?", "How to customize the package editor interface?" ]
medi_sts_stackexchange_dupe
Can we optimize regression problems that have categorical variables by encoding them if on the other hand we are inserting multicollinearity?
Why do we need to discard one dummy variable?
[ "What is the word that describes the absence of bureaucracy? What is the word which describes the absence of formless, of long procedure with bureaucrats? I was thinking about formsless but it sounds weird...", "In grade school we learn to rationalize denominators of fractions when possible. We are taught that $\\frac{\\sqrt{2}}{2}$ is simpler than $\\frac{1}{\\sqrt{2}}$. says that \"there is a bias against roots in the denominator of a fraction\". But such fractions are well-defined and I'm failing to see anything wrong with $\\frac{1}{\\sqrt{2}}$ - in fact, IMO it is simpler than $\\frac{\\sqrt{2}}{2}$ because 1 is simpler than 2 (or similarly, because the former can trivially be rewritten without a fraction). So why does this bias against roots in the denominator exist and what is its justification? The only reason I can think of is that the bias is a relic of a time before the reals were understood well enough for mathematicians to be comfortable dividing by irrationals, but I have been unable to find a source to corroborate or contradict this guess.", "What should main() return in C and C++? What is the correct (most efficient) way to define the main() function in C and C++ — int main() or void main() — and why? And how about the arguments? If int main() then return 1 or return 0? There are numerous duplicates of this question, including: — For C++, with a very good answer indeed. Related:", "Mouse Pointer Locator Due to a stroke, I have had some vision impairment in that I sometimes have a hard time locating my mouse pointer on the screen. I have tried making the mouse pointer larger which helps but is still not the solution. I am new to the Mac world and would appreciate your help. In Windows, there is an option where pressing the CTRL key will help to identify the mouse pointer using a temporary display of several radiating concentric circles around the mouse pointer. Is there something like this on OS X?", "Prove: If $a\\mid m$ and $b\\mid m$ and $\\gcd(a,b)=1$ then $ab\\mid m$", "I use Windows 10 with the same Microsoft account on 3 different computers, each one with a different physical keyboard layout: ITA, UK, DE. In \"Control panel - Clock and International settings - Language\" I have ITA as display language with ITA/DE/UK keyboard layouts, followed by ENG(US) with only UK layout. In the same window I opened \"Advanced settings\" where I set an override (second drop-down list) to the default (\"the first one on the list\") language/keyboard: that would be ITA/ITA, while I want (on this computer) ITA/DE. However, when now I log in in the other computers, I get ITA/DE there as well, while each computer should have a different one, being the physical keyboards different: ITA/DE here, ITA/UK on the second one and ITA/ITA on the third one. If I change one, they all change. And if I don't apply the override, the issue seems to be the same. Basically the last used language AND keyboard settings are stored on the cloud and applied wherever I log in. How to set Windows 10 to remember, PER computer, the last used language/keyboard layout settings, without having that setting follow me?", "Is there software on Macintosh for adding GPS data to RAW files?", "How many outlets can you have on one 15 amp circuit? In my rebuilding project I have counted 18 outlets and lights on one bedroom circuit that travels through 3 rooms. Is that ok?", "How do you add a timed delay to a C++ program? I am trying to add a timed delay in a C++ program, and was wondering if anyone has any suggestions on what I can try or information I can look at? I wish I had more details on how I am implementing this timed delay, but until I have more information on how to add a timed delay I am not sure on how I should even attempt to implement this.", "Reprojecting vector layer in QGIS? I have a series of layers of lines (shapefiles) in My Project. The CRS of some are different and to merge them they all must have same CRS. When I use Processing/Toolbox/Qgis_algorithims/Reproject_layer the reprojection only works if it is allowed to save to temporary file somewhere (it will not change the CRS when I reproject if I try to save and replace it in My Project directory); I must remove the original from the layer list and reproject the temp file (without changing the CRS) to get it into my project and name it appropriately. Is there a better way to reproject a layer in Qgis?", "Changing ChildOf constraint influence to 0, but keeping the position it had as a child I had a sword object rigged with a single bone, with a ChildOf constraint making it a child of a sheath (with an influence of 1). Throughout an animation i move the sheath, and the sword bone follows as expected. However, i cant seem to lower the influence of the sheath to zero and still have the sword retain the position it was just at, and I am wondering how i should go about making this happen. Thanks for your time.", "What's the difference between \\usepackage{ngerman} and \\usepackage[ngerman]{babel}", "Creating label in QGIS? I am using QGIS 2.18.16 on Windows 10. What I want is a label to appear within the boundaries of a polygon. I select a layer, then select command Layer>Labelling, and I get: From here, I can change \"No Labels\" to \"Show labels for this layer\". But I can't actually create label text. I find a clue in a prior question: “Labelling polygon using QGIS?” The answer was: The layer you are trying to label must have at least one attribute field populated with data. You can then turn on labelling in Layer Properties and select which attribute field to use for your labels. I can enter command Layer>Open Attribute Table, and what I get is: If I need something in the attribute table in order to apply a label, how do I accomplish that?", "Nautilus bookmarks are missing since upgrade to 13.04 My bookmarks are not shown anymore after upgrading to 13.04 Raring ringtails and I can't add any new bookmarks. The function is not shown and the shortcut Ctrl+D isn't working either. Is this functionality just gone for some reason (as the split screen with F3) or is there something wrong with my upgrade? Thanks for any hints.", "How do I study the \"correlation\" between a continuous variable and a categorical variable?", "Voldemort couldn't kill Harry as long as he called the Dursleys home. Why didn't he just murder the Dursleys? This would prevent Harry from being able to live there.", "I am using cURL to insert data into salesforce. It works with single record but I need to insert multiple records at a time. Is it possible to do so and is it possible via a REST interface?", "Given $\\int_0^{\\infty}e^{-x^2}dx = \\frac{\\sqrt{\\pi}}{2}$, evaluate $\\int_0^{\\infty}e^{-a^2x^2-\\frac{b^2}{x^2}}dx $ Given $$\\int_0^{\\infty}e^{-x^2}dx = \\frac{\\sqrt{\\pi}}{2}$$ evaluate: $$\\int_0^{\\infty}e^{-a^2x^2-\\frac{b^2}{x^2}}dx. $$ I can find that $$\\left(ax+\\frac{b}{x}\\right)^2 = a^2x^2+2ab+\\frac{b^2}{x^2}$$ therefore: $$\\int_0^{\\infty}e^{-a^2x^2-\\frac{b^2}{x^2}}dx = e^{2ab}\\int_0^{\\infty}e^{-\\left(ax+\\frac{b}{x}\\right)^2}dx$$ but I can't find any clue then.", "Honey changing into unusable, hardened clump", "How to change IP address to point to localhost?" ]
medi_sts_stackexchange_dupe
Python: call to self function not working correctly
What is the difference between class and instance attributes?
[ "Can I use a charger with more output amperage than the device needs?", "How can I increase my disk space when Ubuntu is installed inside Windows?", "Sum of a Hyper-geometric series. (NBHM 2011) How to find the sum of the following series $$\\frac{1}{5} - \\frac{1\\cdot 4}{5\\cdot 10} + \\frac{1\\cdot 4\\cdot 7}{5\\cdot 10\\cdot 15} - \\dots\\,.?$$ I have no idea. I have written the general term and tested its convergence by Gauss' test for convergence, but they are neither the question nor the answer.", "How do I restrict my kids' computing time? Access to our computer (not only to the internet) needs to be restricted for the accounts of my kids (7, 8) until they are old enough to manage this by themselves. Until then we need to be able to define the following: the hours of the day when computing is o.k. (e.g. 5 - 9 pm) the days of the week when computing is not o.k. (e.g. mondays to fridays) the amount of time allowed per day (e.g. 2 hours) In 11.10 all of the following that used to do the job don't work any more: : for > 11.10 no more available through the ppa. : command line alternative, but from 11.10 removed from the repositories. : Looks great but repeatedly crashes to force restarting X-server. So we can't use or recommed this program at the moment. Are there any other alternatives?", "Why can't I just think the spin as rotating? I'm going mad about the problem. I really don't understand why do electron have 1/2 spin number, why they are not actually spinning. I can accept that the electrons have their own magnetic field, which is certain, but why do they have $\\hbar\\sqrt3/2$ of angular momentum, and I don't know what the heck is spin number. I've read the definition of and more than a hundred times but there is no betterment. I've smashed my head in my desk more than a hundred times either. My question is the title. Why can't I just think the spin as rotating? What I've saw recently, electron's hypothetical surface would have to be moving faster than the speed of light in order for it to rotate quickly enough to produce the necessary angular momentum.", "Can I use virtualbox with a 64 Bit image in a 32 bit host I have Virtualbox 4.1.20 in Ubuntu 12.04 32 Bit (With PAE) and I want to run Ubuntu Server 64 Bit on the Guest. Is this possible?. I ask since I get the following warning: I want to make sure that there is no option to \"emulate\" this. I have a 64 bit CPU that supports virtualization. The Intel DZ68DB motherboard with an Intel I7 2600 CPU.", "How to initialize private static members in C++? What is the best way to initialize a private, static data member in C++? I tried this in my header file, but it gives me weird linker errors: class foo { private: static int i; }; int foo::i = 0; I'm guessing this is because I can't initialize a private member from outside the class. So what's the best way to do this?", "How do I install the Tor Browser Bundle in Ubuntu? In Ubuntu 13.04 I used to use the ppa:upubuntu-com/tor64 PPA to install the 64-bit Tor Browser Bundle. However, in Ubuntu 13.10 it doesn't work anymore. How do I install the Tor Browser Bundle in Ubuntu?", "How to start/stop/restart a thread in Java?", "What is the Python equivalent of Perl's chomp function, which removes the last character of a string if it is a newline?", "Is there a systematic way of solving cubic equations? In my text book, to solve cubic equations, I need to find by trial &amp; error what $f(a)$ will make the equation 0. The factor will be $(x-a)$ then the other factor will be $Ax^2+Bx+C$ then I can solve using compare coefficient But for te first part, is there any other way apart from trail &amp; error? Or is there some technique to guess the factor of an equation? The question I am currently doing happens to be $2x^3+3x+4=9$ UPDATE: $2x^3+3x+4=9$ should be $2x^3+3x+4=9x^2$ UPDATE 2 So I am going to try substituting $x=\\pm{1}, \\pm\\frac{1}{2}, \\pm{2}, \\pm{4}$ When $x=-\\frac{1}{2}$, one of the provided answers, $2(−0.5)^3−9(−0.5)^2+3(−0.5)+4=-18.75\\neq 0$ did I make a mistake?", "Operators can be cyclically interchanged inside a trace: $${\\rm Tr} (AB)~=~{\\rm Tr} (BA).$$ This means the trace of a commutator of any two operators is zero: $${\\rm Tr} ([A,B])~=~0.$$ But what about the commutator of the position and momentum operators for a quantum particle? On the one hand: $${\\rm Tr}([x,p])~=~0,$$ while on the other hand: $$[x,p]~=~i\\hbar.$$ How does this work out?", "How do I calculate the resistor value for a simple LED circuit? I have a simple circuit: The max rating (current) of the LED is 30mA. How can I work out what the resistance of the resistor needs to be? By using ohm's law I found it to be \\$3V/0.03A = 100 \\Omega\\$. However using software called , and trial and error I got the minimum possible resistance to be 36&Omega;. However, if I use a 35&Omega; resistor, then the LED breaks. Is the software wrong, or (more likely) am I doing something wrong?", "How do you mark a struct template as friend?", "\"Install VMware Tools\" greyed out after installing ubuntu 15.04 on vmware player 7.1 \"Install VMware Tools\" greyed out after installing Ubuntu 15.04 on VMware Player 7.1. I tried checking \"No proxy\" instead of default \"Windows proxy settings\" at \"File->Preferences->Software updates-> Connection Settings\". This did not work either. Is there a way to install VMware Tools?", "I was wondering in C++ if I have an enum can I access the value at the second index? For example I have enum Test{hi, bye}; if I want 'hi', can I do something like Test[0], thanks.", "uwsgi errno 24 too many open files on CentOS / nginx", "Typesetting long division with tabular and overlining repeating part", "The security guard problem There was a security guard in a bank. In front of him were 100 lockers in rows of 10. He thought of something as he saw all the lockers were closed. He started opening all the lockers whose lock numbers were multiples of 1, then closed all lockers whose number was a multiple of 2,and did the same for 3 and so on. If the locker was open, he closed it, if closed, opened it. He went to open multiples of 1 (all),then 2,4,6,8...and then 3,6,9.. And then finally reached 100. After all the opening and closing,in the end, how many lockers are open and how many closed?", "Custom kernel: fails to load firmware when module built-in I'd like to have all my modules built-in, but this fails with iwlagn: iwlagn 0000:03:00.0: request for firmware file 'iwlwifi-6000-4.ucode' failed. iwlagn 0000:03:00.0: no suitable firmware found! The microcode file exists in /lib/firmware and the whole thing works just fine if I compile iwlagn as module. I have no idea where it's looking for the file or what's wrong - any ideas?" ]
medi_sts_stackexchange_dupe
How to center the map?
How to horizontally center an element
[ "Preserving changed Output style", "Objects disappear when looking through camera", "Redirect after user login", "How do I extract all the external links of a web page and save them to a file? How do I extract all the external links of a web page and save them to a file? If you have any command line tools that would be great.", "Is there a way to transfer money and items from iOS to Android? I've been playing Jetpack Joyride on iOS, and I just got an Android device. Can I move my things, such as money and unlocks, from my iOS device to Android?", "I have been wanting to understand how to find the sum of this series. $$1^p + 2^p + 3^p +{\\dots} + n^p$$ I am familiar with Gauss' diagonalised adding trick for the sum of the first $n$ natural numbers. I can prove the formulas for $$\\begin{align} \\sum_{1}^{n} k^2 &amp;= \\frac{n(n+1)(2n+1)}{6}\\\\ \\sum_{1}^{n} k^3 &amp;= \\frac{n^2(n+1)^2}{4}\\\\ \\sum_{1}^{n} k^4 &amp;= \\frac{n(n+1)(2n+1)(3n^2+3n-1)}{30} \\\\ \\end{align}$$ With mathematical induction. But, beyond that even proofs with mathematical induction are difficult. I'm interested in learning the theory and the proof behind Faulhaber's formula. What is the knowledge required to understand this proof ?", "Tracking Object Position - Firing on a Trajectory", "Is there way to move one vertex and make another move with it proportionally? I'll try to explain in this gif. I am doing this manually in 2 steps - rotate, scale. And I select all vertexes. Is there instrument rotate them in one step or can I move one and make other move too?", "Where can I rent a decent mountain bike in Zürich? I am going for a 4 day trip in Zürich and I would like to bike quite a lot. Though biking is quite advertised, I failed to find a decent bike rental shop in the city. Would highly appreciate some tips!", "C++ virtual function from constructor", "Why would you not want to rollover a previous employer's 401(k) when changing jobs? Are there any valid reasons to not rollover a former 401(k) when changing jobs? I have several little ones that I never quite got around to rolling together - with an upcoming job change, should they all be combined into my new employer's retirement plan? If not, what else might be considered?", "I am running 12.04 LTS. It's a pretty default installation and is the only OS on this machine. I have two users one has administrator rights the other does not. I accidentally removed administrator rights from the \"admin\" user. I tried to but that requires reaching GRUB during boot but I cannot get there because my /etc/default/grub has GRUB_HIDDEN_TIMEOUT=0 and changing that to a positive integer requires admin privileges to save the changes and run sudo update-grub. Should I boot from LiveCD? The discouraged my a bit. Right now all I have handy is an install DVD from 11.10, but that did not help me much. Not sure what to do now. Any suggestions? NOTE: 12.04 does not have an admin group and I have not enabled root", "Is char *envp[] as a third argument to main() portable", "What else can you do in the turn you ready an action?", "Why isn't temperature frame dependent?", "Apt sources.list problem , packages not found? I am trying to install WICD but getting following errors on my ubuntu 10.04 box sudo apt-get install wicd Err http://archive.ubuntu.schoolnet.lk/ubuntu/ lucid/universe python-wicd 1.7.0+ds1-2 Could not connect to archive.ubuntu.schoolnet.lk:80 (103.29.60.18). - connect (111: Connection refused) Err http://archive.ubuntu.schoolnet.lk/ubuntu/ lucid/main python-iniparse 0.3.1-1 Unable to connect to archive.ubuntu.schoolnet.lk:http: Err http://archive.ubuntu.schoolnet.lk/ubuntu/ lucid/universe wicd-daemon 1.7.0+ds1-2 Unable to connect to archive.ubuntu.schoolnet.lk:http: Err http://archive.ubuntu.schoolnet.lk/ubuntu/ lucid/universe wicd-gtk 1.7.0+ds1-2 Unable to connect to archive.ubuntu.schoolnet.lk:http: Err http://archive.ubuntu.schoolnet.lk/ubuntu/ lucid/universe wicd 1.7.0+ds1-2 Unable to connect to archive.ubuntu.schoolnet.lk:http: Failed to fetch http://archive.ubuntu.schoolnet.lk/ubuntu/pool/universe/w/wicd/python-wicd_1.7.0+ds1-2_all.deb Could not connect to archive.ubuntu.schoolnet.lk:80 (103.29.60.18). - connect (111: Connection refused) Failed to fetch http://archive.ubuntu.schoolnet.lk/ubuntu/pool/main/p/python-iniparse/python-iniparse_0.3.1-1_all.deb Unable to connect to archive.ubuntu.schoolnet.lk:http: Failed to fetch http://archive.ubuntu.schoolnet.lk/ubuntu/pool/universe/w/wicd/wicd-daemon_1.7.0+ds1-2_all.deb Unable to connect to archive.ubuntu.schoolnet.lk:http: Failed to fetch http://archive.ubuntu.schoolnet.lk/ubuntu/pool/universe/w/wicd/wicd-gtk_1.7.0+ds1-2_all.deb Unable to connect to archive.ubuntu.schoolnet.lk:http: Failed to fetch http://archive.ubuntu.schoolnet.lk/ubuntu/pool/universe/w/wicd/wicd_1.7.0+ds1-2_all.deb Unable to connect to archive.ubuntu.schoolnet.lk:http: E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?", "How to delete the files in one folder which are more than 60 days old in UNIX?", "How to reduce the spacing in chemical symbols? Currently, if want to write a chemical symbol, for example, ${}^{239}Np$, this is what I type in: {}^{239}Np. The result: But it looks bad, I feel as if the \"N\" and \"p\" should be closer, or a different font should have been used. How could I make better looking chemical symbols? Currently I am using mainly the MathJax of the SE, but sometimes I use other TeX as well.", "Some irreducible character separates elements in different conjugacy classes Let $x$ and $y$ be elements that are not conjugate in $G$. Then there is some irreducible character $\\chi$ such that $\\chi(x) \\not = \\chi(y)$. Clearly the \"irreducible\" part isn't important, since any character can be written as the sum of irreducible characters, but I'm having trouble going beyond that. I'd appreciate a good hint over a full answer, and I'd be most interested in a way to construct a group representation $\\varphi:G \\to GL(V)$ of $G$ such that the character of the representation takes different values on $x$ and $y$.", "Is infinite scrolling justifiable? Recently I've noticed a new trend in user interfaces. Facebook and Twitter do this, and I've come across it on other random, less famous sites. However, to keep things simple, I'll just use Facebook as an example. When you first log into Facebook, you are presented with a \"News Feed\" that has a certain amount of posts from your friends. The feed extends down past the bottom of the viewport. Then, when you scroll down, to see the feeds \"below the fold\", at some point as you move downward, it loads in more items. Apparently, this is called \"infinite scrolling\". On my computer, this often causes my position in the feed to jump while I'm in the action of scrolling, which is really annoying. What's particularly egregious about this UI concept is that there is footer information at the bottom of the page. I advertise on Facebook, and use the link at the bottom of the page to get to the advertisement management interface. Because of this incremental load feature I'm describing, I often scroll down to the bottom to get to the link I want, when I reach the bottom of the page, it will suddenly load in new data, pushing the footer down again, and I have to scroll down again. This whole thing seems completely pointless to me. What's the upside? A Facebook page is near a megabyte of data, so saving the few extra kilobytes of feed data for when the user scrolls down is just not worth it. What's wrong with a link that just says \"show more\"? Since this additional data retrieval thing seems to happen as soon as I start scrolling even a little anyway, why not just load that data in the first place? To me this minor annoyance reeks of some engineers concept of a \"neat trick\" that does not have any actual appreciable upside. Or am I wrong about that? Is there an advantage that I'm not seeing? Am I the only one who thinks it's stupid? Do some people like it?" ]
medi_sts_stackexchange_dupe
How to change source in html5 video with jQuery
Can I use javascript to dynamically change a video's source?
[ "When I use ssh -X on my Mac (running OS X 10.6.7) to connect to my Ubuntu (11.04) box, I get the following warning: Warning: untrusted X11 forwarding setup failed: xauth key data not generated Warning: No xauth data; using fake authentication data for X11 forwarding. Is there something I can do to make this warning go away? If not, can I safely ignore it? X11 forwarding seems to work fine, though I do see this message: Xlib: extension \"RANDR\" missing on display \"localhost:10.0\". Is that related to the warning? (I'm guessing not. If it's not, I'll file a new question about that.)", "Supernatural sites on Stack Exchange Is there any Q&amp;A site under the Stack Exchange network where we can discuss about supernatural incidents? If not, then whom should I petition to create it?", "Aware abbreviating those commands need not always be helpful, I would like to know how to abbreviate them? The following is what I tried, which does not work: \\documentclass[11pt,handout]{beamer} \\newcommand{\\bframe}{\\begin{frame}} \\newcommand{\\eframe}{\\end{frame}} \\newcommand{\\ftitle}{\\frametitle} \\author{Author} \\title{Title} \\begin{document} \\maketitle \\begin{frame} \\frametitle{Outline} \\end{frame} \\bframe \\ftitle{Introduction} \\eframe \\end{document} At first I thought it might be the case that commands such as \\bframe was already defined. But using \\def instead still gives no desired result.", "Is it a bad practice to catch Throwable?", "Let $X_1,...,X_n$ be mutually independent RVs. Suppose $X_i \\perp \\mathcal F $ for $1\\ \\leq \\forall i \\leq n$. How can I show that: $$\\sigma (X_1,...,X_n) \\perp \\mathcal F$$ ? What I have tried: $\\sigma (X_1...X_n) = \\sigma(\\cup_{i=1} ^n \\sigma(X_i))$ holds. I think I need some Dynkin's lemma-ish argument but can't see how.", "Search All Fields In All Tables For A Specific Value (Oracle)", "\"Dummy Output\" No sound in Ubuntu 16.04 None of the HDMI output are working, all saying \"dummy output\", it was working yesterday, but when I use the headphones it became soundless, with or without the headphones. Thank you already!", "Why is the plural of \"basis\" \"bases\" and not \"baseis\"? Looking at the , it indicates that the plural is either bases or baseis. It looks like the rare comes from the Greek, but the common just refers back to basis and that does not explain the plural etymology. Is there a standard rule at work here, or is this just an exceptional case that arose over time by convention?", "What's the deal with a leading underscore in PHP class methods? While looking over various PHP libraries I've noticed that a lot of people choose to prefix some class methods with a single underscore, such as public function _foo() ...instead of... public function foo() I realize that ultimately this comes down to personal preference, but I was wondering if anyone had some insight into where this habit comes from. My thought is that it's probably being carried over from PHP 4, before class methods could be marked as protected or private, as a way of implying \"do not call this method from outside the class\". However, it also occurred to me that maybe it originates somewhere (a language) I'm not familiar with or that there may be good reasoning behind it that I would benefit from knowing. Any thoughts, insights and/or opinions would be appreciated.", "How to disprove this fallacy that derivatives of $x^2$ and $x+x+x+\\dots\\quad(x\\text{ times})$ are not same. Possible Duplicate: \\begin{align*} x^2 &amp;= \\underbrace{x + x + x + \\dots + x}_{x \\text{ times}}, \\\\ \\therefore \\frac{\\mathrm{d}}{\\mathrm{d}x} (x^2) &amp;= \\frac{\\mathrm{d}}{\\mathrm{d}x} (\\underbrace{x + x + x + \\dots + x}_{x \\text{ times}}) \\\\ &amp;= \\underbrace{1 + 1 + 1 + \\dots + 1}_{x \\text{ times}} \\\\ &amp;= x. \\end{align*} But we know that $$ \\frac{\\mathrm{d}}{\\mathrm{d}x} (x^2) = 2x. $$ So what is the problem? My take is that we cannot differentiate both sides because $\\underbrace{{x+x+x+\\cdots+x}}_{x \\text{ times}}$ is not fixed and thus $1$ is not equal to $2$.", "What should I do after a suspected compromisation of my system?", "How to convert a column number (e.g. 127) into an Excel column (e.g. AA)", "Just installed Ubuntu for the first time... Is there any simple way to browse installed programs? On Mac there is the Applications top-level folder... here I see Desktop, Documents, Downloads etc but no Apps? That'd be a good idea, no? (is there some way to create this myself?) On Windows there is the Start menu... Here it seems like I have to click the 'Dash Home' and then I can see 'Recent Apps' ... I can search for them (I'd rather not) ...or I can click the ruler/pencil icon at the bottom and see 'Recent Apps' and click to expand 'Installed Apps' ...ok that's all of them - is it possible to get a straight list view instead of the hard-to-scan wrapped rows? Also, is there any way to get rid of the pointless random selection of 'Apps available for download' at the bottom?", "How to Straighten Curved UVs into Straight Belt", "Why is carbon dating limit only 40,000 years?", "As homework, I have to prove that $\\forall n \\in \\mathbb{N}: n^3-n$ is divisible by 6 I used induction 1) basis: $A(0): 0^3-0 = 6x$ , $x \\in \\mathbb{N}_0$ // the 6x states that the result is a multiple of 6, right? 2) requirement: $A(n):n^3-n=6x$ 3) statement: $A(n+1): (n+1)^3-(n+1)=6x$ 4) step: $n^3-n+(n+1)^3-n=6x+(n+1)^3-n$ So when I resolve that I do get the equation: $n^3-n=6x$ so the statement is true for $\\forall n \\in \\mathbb{N}$ Did I do something wrong or is it that simple?", "Attorney at law, is there any other kind? I have wondered from time to time about the phrase \"attorney at law.\" Are there other kinds of attorneys? Attorneys at arms? If not, why do we specify?", "Can I publish without affiliation?", "Print file content without the first and last lines Is there a simple way I can echo a file, skipping the first and last lines? I was looking at piping from head into tail, but for those it seems like I would have to know the total lines from the outset. I was also looking at split, but I don't see a way to do it with that either.", "PHP: How do I loop through every XML file in a directory?" ]
medi_sts_stackexchange_dupe
Re-writing $f(x, y)$ as $g(x)h(y)$
How can I separate a separable function
[ "Pausing a long running program in the terminal? Is there a keyboard key combination that I can use to pause a program running in the terminal? In case it matters, I don't intend to run anything else inside that terminal while the program is paused. I just want to pause the program execution, and resume it later. How can I do this?", "Is there a way of finding a formula for $\\sum\\limits_{k=1}^n k^k$? Maybe I'm missing something really obvious, but I've looked around a bit on the Internet and I haven't been able to find anything. So, what I'm looking for is a formula in closed form to generate the sequence $1,5,32,288,3413,\\dots$", "How to get the last date of a particular month with JodaTime?", "In (2014) the human race seemed to be facing pretty poor odds until they discovered a convenient wormhole placed by an unknown entity expressed as \"they\". Later in the movie, we discover that \"they\" are actually the human race in the future, reaching back in time to save itself. The end of the movie gets a little wild on the physics end, and I'm happy to take that ending as is - no need for it to make sense - but one very basic detail does bother me: How could the human race have gone back in time to save itself from circumstances that would have caused us to go extinct without our own help (the convenient wormhole)?", "Sell your home and invest in growth stock mutual fund I purchased a home and I made an agreement with a guy who is living in that home and paying me monthly rent. Since I live with my brother I don't have to live in my purchased home. The rent I'm getting is only 10% of total cost of home while stock fund industry (mutual fund) is paying 20% minimum i.e. I'm getting 10% loss every year and that is a big amount. I'm not really sure if my home also increase it's value by 10% every year. But I don't think it will be. Now I'm thinking of selling that home and investing all of my money in a growth mutual fund. Any advice?", "Edge won't connect to internet, Skype for business won't screen-share, Windows Store won't update apps after Windows 10 version 1809 installed", "I just installed Ubuntu and it is great. However, I installed in beside the Windows Vista OS. I now want to remove Windows in an effort to improve performance. What is the easiest way to do this?", "How to create tagged PDF such that they will be: good enough for PDF/UA \"reflowable\" on smaller screens and ebook readers Any syntax &amp; any engine are of interest, but I'm most interested in using LaTeX with [Xe|pdf]latex engines.", "Why do we need sigma-algebras to define probability spaces? We have a random experiment with different outcomes forming the sample space $\\Omega,$ on which we look with interest at certain patterns, called events $\\mathscr{F}.$ Sigma-algebras (or sigma-fields) are made up of events to which a probability measure $\\mathbb{P}$ can be assigned. Certain properties are fulfilled, including the inclusion of the null set $\\varnothing$ and the entire sample space, and an algebra that describes unions and intersections with Venn diagrams. Probability is defined as a function between the $\\sigma$-algebra and the interval $[0,1]$. Altogether, the triple $(\\Omega, \\mathscr{F}, \\mathbb{P})$ forms a probability space. Could someone explain in plain English why the probability edifice would collapse if we didn't have a $\\sigma$-algebra? They are just wedged in the middle with that impossibly calligraphic \"F\". I trust they are necessary; I see that an event is different from an outcome, but what would go awry without a $\\sigma$-algebras? The question is: In what type of probability problems the definition of a probability space including a $\\sigma$-algebra becomes a necessity? provides a plain English accessible explanation. The idea is a spinning pointer rotating counterclockwise on a circle of unit perimeter: We begin by constructing a spinner, which consists of a circle of unit circumference and a pointer as shown in [the] Figure. We pick a point on the circle and label it $0$, and then label every other point on the circle with the distance, say $x$, from $0$ to that point, measured counterclockwise. The experiment consists of spinning the pointer and recording the label of the point at the tip of the pointer. We let the random variable $X$ denote the value of this outcome. The sample space is clearly the interval $[0,1)$. We would like to construct a probability model in which each outcome is equally likely to occur. If we proceed as we did [...] for experiments with a finite number of possible outcomes, then we must assign the probability $0$ to each outcome, since otherwise, the sum of the probabilities, over all of the possible outcomes, would not equal 1. (In fact, summing an uncountable number of real numbers is a tricky business; in particular, in order for such a sum to have any meaning, at most countably many of the summands can be different than $0$.) However, if all of the assigned probabilities are $0$, then the sum is $0$, not $1$, as it should be. So if we assigned to each point any probability, and given that there is an (uncountably) infinity number of points, their sum would add up to $&gt; 1$.", "I've searched for multiple forums for this questions and have seen different answers but so far, nothing have worked yet even from the ones I've seen here. I want to extract a single file from a tar to a different directory. I've tried this: tar xvf file.tar -C /home/dir/ filename or this: tar -x filename -f file.tar -C /home/dir But got these errors respectively: x filename, 14826 bytes, 29 media blocks. File -C not present in the archive. File /home/dir not present in the archive. and: tar: /dev/rmt0: A file or directory in the path name does not exist. The first extracted the file but in the same directory, not to the folder I wanted.", "Overriding \"+=\" in Python? (__iadd__() method)", "Where are the default settings saved for the Command prompt defaults?", "So I'm at that step where I am finally ready to Render my first big project. Aaaaaand it's been stuck on the first 4 tiles for the last 2 hours? I am using a MacBook Pro Processor: 2.5 GHz Intel Core i5 Memory: 4 GB 1600 MHz DDR3 Graphics: intel HD Graphics 4000 1024 MB (I include these because I have no idea what affects a computers ability to render but I assume it's one of them, most liekly the graphics card). So anyways here are the pictures, as you can see I played with changing the resolution, the sample size and the max steps to see if I got different results but it just keeps getting stuck at those 1st four tiles. I've rendered a few other small projects successfully but this was my first time changing some values. I assume i've managed to accidentally change the wrong values and thats causing some conflict thats either stopping the render itself or is making it just too much for my computer. My goal was the render this particular picture at a good enough resolution and clarity that it could then be made into a poster. So i wanted the resolution to be good and the sampling to be high. Since writing this there has been no change to any of the numbers at the top of the render result (the time left, etc)", "The default font is too small on my screen at the resolution I have it, so I like to reset the font to size 12, but it appears I have to do this everytime I launch the program. How do I make it remember my preferences?", "I have been thinking on and off about a problem for some time now. It is inspired by an exam problem which I solved but I wanted to find an alternative solution. The object was to prove that some sequence of functions converges weakly to zero in $L^2$. I managed to show (with some help) that the limit $f$ (of a subsequence) satisfies $\\int_0^x f \\ dm=0$ for all $x&gt;0 $. From this I want to conclude that $f=0$ a.e. I can do this with the fundamental theorem of calculus in its Lebesgue version but there ought to be a more elementary proof. Can someone here help me out?", "Spacial curvature and expanding space If we take the analogy that in an empty space the space is just a flat sheet then if there is a single planet or a star then the flat sheet will curve below the planet leaving a curvature shaped like a hemisphere below the object, my question is, Does this curvature change as space expands?", "Multiple domains for different products? I have a website with software applications. Is it good for SEO to choose one keyword rich domain name for each of our software products or should we stick to a single domain? From a user's perspective I think it would be easier to remember a domain that is keyword rich as the user will instantly know what this product is for. But I have read articles that the latest trend in SEO is to stick to one domain for all of your products and invest on this single domain website. Is that true? What do you advise? Should I register a separate domain for each of our products or should I use only one single domain? Should I do a 301 redirect with a .htaccess to a single domain? And what about the sitemaps? Should I register all sites in Google Webmaster Tools and post a separate sitemap for each one of them? should my main site sitemap include all pages or should separate domains have their own sitemaps?", "Make flash drive bootable with MULTIPLE Windows Installers I have seen many ways to make a USB an installer for about any Windows OS. But how can I (using grub or something like that) make it bootable to all editions on Windows XP and 7? I have tried Googling it and researching, I've even tried to do it, But I dont understand much about GRUB or linux at all. Please keep in mind that I am not very good with linux, so please use as many details as possible.", "Does \"notified by [date]\" include the end date? I have read the Rules of a competition. The text of the Rules include a sentence as follows: As per stated in the Rules the entrants will be notified by May 30th 2010. Does the sentence above mean that May 30th is included in the term of notification or not?", "Down vote changed to up vote caused reputation meter to pass daily maximum I just experienced a minor visual bug. I had an answer that earned 2 down votes and 22+ upvotes, earning me the daily maximum of +200. Upon making some edits to the answer at the behest of the comments, one of the users who down voted changed their vote. Now my reputation meter shows that I gained +202 for the day. This correctly did NOT affect my reputation, as I still only gained 200, so it is merely a minor display bug. This appears in the achievements drop down and my reputation tab on my profile." ]
medi_sts_stackexchange_dupe
how do i get the dream suite in acnl 2019
How do you unlock the Dream Suite?
[ "What does \"can only heal so much\" mean in this sentence? I found the following sentence in an American novel (this one: you can read the whole paragraph). A woman broke her wrist and just had her cast removed. She thinks she can start playing piano again, but her wrist still hurts too much. I'm not sure I understand the meaning of the final sentence: But a body can only heal so much, so fast. Can someone help me, please?", "\"An SQL Server database schema\" or \"a SQL Server database schema\"? Possible Duplicate: I got the following sentence from the book I'm reading: You can take a database-first approach by first creating a SQL Server database schema. From what I learned, I think it should be \"an SQL Server database schema\", not \"a SQL Server database schema\". So which one is correct?", "Dragging layer into new file changes its size Let's say I have a file that's 4'x12' and represents a space on an actual wall. I want to open certain files (of different sizes) and drag each file into the large file in order to arrange the images correctly on the computer before physically hanging the framed finals. When I drag a new image into the larger file, the new image's size and the size of its copy don't match. That is, Say I drag an 8x10 into the large file, well on the large file (trying to control size with guides and rulers) the new image is some other size, but not the right one. What am I doing wrong? How do I make sure that when I click and drag the new image that it will be properly represented?", "Taking advantage of one-time pad key reuse? Suppose Alice wants to send encryptions (under a one-time pad) of $m_1$ and $m_2$ to Bob over a public channel. Alice and Bob have a shared key $k$; however, both messages are the same length as the key $k$. Since Alice is extraordinary lazy (and doesn't know about stream ciphers), she decides to just reuse the key. Alice sends ciphertexts $c_1 = m_1 \\oplus k$ and $c_2 = m_2 \\oplus k$ to Bob through a public channel. Unfortunately, Eve intercepts both of these ciphertexts and calculates $c_1 \\oplus c_2 = m_1 \\oplus m_2$. What can Eve do with $m_1 \\oplus m_2$? Intuitively, it makes sense that Alice and Bob would not want $m_1 \\oplus m_2$ to fall into Eve's hands, but how exactly should Eve continue with her attack?", "Explanation behind Second Derivative of a Parametric Equation Formula I am looking to find out how the second derivative formula works. I can blindly apply it but I don't have a grasp of what is going on or why. The first derivitive has the formula $\\frac{dy}{dx} = \\frac{\\frac{dy}{dt}}{\\frac{dx}{dt}}$. I told this was because if you divide them you cancel out the dts and get dy/dx. The second derivative has the formula $\\frac{d^2y}{dx^2} = \\frac{d}{dx} \\left(\\frac{dy}{dx}\\right) = \\frac{ \\frac{d}{dt}\\left(\\frac{dy}{dx}\\right) }{\\frac{dx}{dt}}$. Is this something that can be explained with only a knowledge of calculus or is this something I would have to take on faith until I learn more. Any help would be greatly appreciated.", "Standard formula for quick calculation of scores I have three datasets as follows: Dataset A can have a maximum score of 30. (Individual scores can be from 1 to 30) Dataset B can have a maximum score of 45. (Individual scores can be from 1 to 45) Dataset C can have a maximum score of 25. (Individual scores can be from 1 to 25) The three datasets contribute equally to a final score, hence it is 33.33% each. i.e. (33.33% for dataset A + 33.33% for dataset B + 33.33% for dataset C) = 100% (final score) I have the following scores in each dataset: Dataset A: 22 Dataset B: 15 Dataset C: 10 Is there a quick formula that I can use to work out the final score, based on the above datapoints? (This is not a homework question.)", "At college we use ArcGIS Desktop 10, but that does not function on my Mac so I have QGIS there instead. I want to do my exercises with QGIS, but in ArcGIS Desktop we use .lyr files with ArcMap and .lyrx files with ArcGIS Pro, and they are not supported by QGIS. Does anyone know, how I can connect the *.lyr files to my *.shp files to use them on my Mac with QGIS?", "How to get Ubuntu download for a Mac?", "bash fork: retry: Resource temporarily unavailable I am trying to run a shell script which will create process using a shell script. I get Resource temporarily unavailable error. how to identify which limit (memory/process/filecount) is creating this problem. Below is my ulimit -a results. core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 563959 max locked memory (kbytes, -l) unlimited max memory size (kbytes, -m) unlimited open files (-n) 65535 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) unlimited cpu time (seconds, -t) unlimited max user processes (-u) 10000000 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited", "I made up some integrals to do for fun, and I had a real problem with this one. I've since found out that there's no solution in terms of elementary functions, but when I attempt to integrate it, I end up with infinite values. Could somebody point out where I go wrong? So, I'm trying to determine: $$ \\int{\\frac{e^x}{x}} \\, dx $$ Integrate by parts, where $u = 1/x$, and $v \\, ' = e^x$. Then $u \\, ' = - 1/x^2$, and $v=e^x$. So, $$\\int{\\frac{e^x}{x}} \\, dx = \\frac{e^x}{x} + \\int{\\frac{e^x}{x^2}} \\, dx$$ Integrate by parts again, $u = 1/x^2$, $v \\, ' = e^x$, so that $u \\, ' = -2/x^3$ and $v=e^x$. So, $$\\int{\\frac{e^x}{x}} \\, dx = \\frac{e^x}{x} + \\frac{e^x}{x^2} + 2\\int{\\frac{e^x}{x^3}} \\, dx$$ Repeat this process ad infinitum to get, $$\\int{\\frac{e^x}{x}} \\, dx = \\frac{e^x}{x} + \\frac{e^x}{x^2} + 2 \\left( \\frac{e^x}{x^3} + 3 \\left( \\frac{e^x}{x^4} + 4 \\left( \\frac{e^x}{x^5} + \\, \\cdots \\right) \\right) \\right) $$ Expanding this gives, $$\\int{\\frac{e^x}{x}} \\, dx = \\frac{e^x}{x} + \\frac{e^x}{x^2} + \\frac{2e^x}{x^3} + \\frac{6 e^x}{x^4} + \\frac{24 e^x}{x^5} + \\cdots $$ And factoring that gives, $$\\int{\\frac{e^x}{x}} \\, dx = \\frac{e^x}{x} \\left( 1 + \\frac{1}{x} + \\frac{2}{x^2} + \\frac{6}{x^3} + \\frac{24}{x^4} + \\cdots \\right) $$ Now, considering the series itself, the ratio between the $n^{th}$ term and the $(n-1)^{th}$ term = $\\Large \\frac{n}{x}$. Eventually, $n$ will be larger than $x$, so the ratio between successive terms will be positive, so (assuming $x$ is positive), the series diverges, meaning (and I'm sure everybody will cringe upon seeing notation used like this), that: $$\\int{\\frac{e^x}{x}} \\, dx = \\frac{e^x}{x} \\left( \\infty \\right) = \\infty $$", "Pytest is in PATH but not found", "Calculating projected area of polygons with field calculator in ArcMap?", "White regions in DensityPlot — is this a bug with ColorFunctionScaling?", "Default Class Accessibility in C# by default is a class: private ? internal ? sealed ?", "Why is it important to apply transformation to an objects data? I've watched several tutorials and very often they applied the location, rotation or scale to the object when they transformed it in Object Mode. They always said it is important, but why?", "MySQL Database User: Which Privileges are needed? The short installation instruction for WordPress () state that: Create a database for WordPress on your web server, as well as a MySQL user who has all privileges for accessing and modifying it. While setting up a new blog professionally I was wondering how that maps to what the MySQL database user privileges/permissions configuration offers me: Data: SELECT, INSERT, UPDATE, DELETE Definition: CREATE, ALTER, DROP Extra: INDEX More: LOCK TABLES REFERENCES CREATE TEMPORARY TABLES CREATE VIEW SHOW VIEW CREATE ROUTINE EXECUTE ALTER ROUTINE I'm pretty sure for the first three groups, I named them Data, Definition and Extra here. But what about the others below the More entry? Normally I would say, those are not needed, but I would like to get a second opinion.", "Output two sided, but only on recto page -- occasional images on verso I am preparing a thesis. In order to reduce the number of physical sheets of paper, I need to print certain figures/tables on the verso side. However the university regs state that, while figs/tables may appear on the verso, the body text must appear on the recto side. I would like to therefore output the vast bulk of the work on the recto page, but with occasional verso pages. Ideally they would be numbered as a \"subpage\" of the preceeding recto page (e.g. 131, 131a, 132...) or similar. The approach which I will tentatively adopt is to use a \"twoside\" flag, then have \"empty\" and non-numbered verso pages until a page with content is required. I'm sure I'm not the first person to have had a similar issue, but am unable to imagine other ways of posing the question.", "What is code coverage and how do YOU measure it? I was asked this question regarding our automating testing code coverage. It seems to be that, outside of automated tools, it is more art than science. Are there any real-world examples of how to use code coverage?", "Does a GFCI receptacle provide overcurrent protection? Does a GFCI receptacle provide over-current protection? (note that I'm not referring to GFCI circuit breakers as may be found in a service panel, nor to specialty devices such as an inline plug-in GFCI that may offer over-current protection) I've checked some GFCI (note, this link opens a PDF) but haven't found any that mention overcurrent protection, or provide trip curves as would be expected in a circuit breaker datasheet. So, does a GFCI receptacle provide any inherent over-current protection or must it always be used with a circuit breaker for over-current protection? This question was prompted by where the answer suggests using a GFCI outlet as a circuit breaker. This seems like very big misconception of the protection offered by a GFCI, and is potentially dangerous if it leads someone to think that GFCI outlets are the same as circuit breakers.", "What does it \"they like me for me\" mean?" ]
medi_sts_stackexchange_dupe
installing imsart
Create a local texmf tree in MiKTeX
[ "Out of Bag Error makes CV unnecessary in Random Forests?", "Why can we apply the $E=hf$ equation for electrons? So in my textbook, it states that the $E=hf$ equation applies to electrons, and all particles, not just photons. But in order to prove this, wouldn't these particles need to have zero mass, to satisfy $E=pc$ from Einstein's equation? In Einstein's theory of relativity $E^2= p^2c^2 + m^2c^4$, we get $E=pc$ because we consider the mass to be zero. For $E=hf$ to work for other particles, don't we need to assume electrons have zero rest mass?", "Is it possible to use a laptop as an external monitor? I need to create a multi-monitor setup for my desktop computer but I have no additional monitors with me right now, aside from my laptop. Is it possible to use my laptop screen as an external monitor? Note that I am not trying to connect a monitor to my laptop, rather, I am trying to connect my laptop screen to a desktop video card (if this is possible).", "Does \"a couple\" always mean two?", "How can I multiply each item in an array easily with PHP?", "How can I program a simple chat bot AI?", "Vandermonde determinant for order 4", "Differences in development between .NET and Mono", "Is it possible to \"hack\" a MacBook so as to be able to install macOS Mojave?", "Display each sub-directory size in a list format using one line command in Bash? I want to get a list of the directories and their sizes in a list format like how you get when you do a ls -l. The thing is that is there a one line command that can do this? I see others have long commands just to output this. That's just too long. What command can do this or combination of commands that can be easily typed? du -h gives it, but it displays all of the sub-folders which is not what I want. just the current directories folders.", "Close and flag links do nothing on mobile site", "How to Expand , Resize \"extended partition\"?", "Can you grapple/shove with the Hunter Ranger's Whirlwind Attack?", "Why girth of Petersen Graph is five? (Proof) I want to know, what is the mathematical proof that shows the shortest cycle in Petersen Graph has length five?", "Converge or diverge? : $\\sum_{n=1}^{\\infty}\\frac{\\tan{n}}{2^{n}}$", "What's this? What is it? but not What's it? - Why? Can anyone give a cogent, simply described explanation of why the verb BE in: What is it? ... doesn't seem to be able to be contracted with the subject: What's it? * Compare the sentences above with: What's this? What's that? These are perfectly fine. In fact, the contractions here should be expected in almost all examples of spoken English. Answers with references to authoritative vetted sources would be greatly appreciated.", "If I have the following code: MyClass pClass = new MyClass(); pClass.MyEvent += MyFunction; pClass = null; Will pClass be garbage collected? Or will it hang around still firing its events whenever they occur? Will I need to do the following in order to allow garbage collection? MyClass pClass = new MyClass(); pClass.MyEvent += MyFunction; pClass.MyEvent -= MyFunction; pClass = null;", "What is the music on S3E16 when Todoroki was fighting group of ninjas?", "How do I install the latest OpenOffice?", "Split a string with delimiters but keep the delimiters in the result in C#" ]
medi_sts_stackexchange_dupe
Ubuntu phone release in India
Where can I get a device with 'Ubuntu for phones' pre-installed?
[ "The \"proper\" way to test if a service is running in a script My problem: I'm writing a bash script and in it I'd like to check if a given service is running. I know how to do this manually, with $ service [service_name] status. But (especially since the move to systemd) that prints a whole bunch of text that's a little messy to parse. I assumed there's a command made for scripts with simple output or a return value I can check. But Googling around only yields a ton of \"Oh, just ps aux | grep -v grep | grep [service_name]\" results. That can't be the best practice, is it? What if another instance of that command is running, but not one started by the SysV init script? Or should I just shut up and get my hands dirty with a little pgrep?", "Two logos in beamer after certain frame I am making a presentation which is devided in two parts. The first part is about experiments held in instute A and the second part is about experiments held in instute A and institute B. Is it possible to add a second logo in a beamer presentation after a certain frame? Let's say that this is a previous slide This is a next slide", "I am trying to prove some theorem, and in the proof of it I have to check the fact that if the sequence $\\{a_n\\}_{n\\in \\mathbb{N}}$ converges, then $$\\lim_{n\\to \\infty} n(a_n - a_{n-1}) = 0. $$ I think that this is true because I have tried with many different sequences and it holds, but I do not know how to prove it. If this is not true, what is a counterexample for it?", "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?", "Currently, Stack Exchange’s Markdown parser only allows four-space indents to represent code blocks: // some code // another line of code and other Markdown implementations allow for an alternative syntax, that doesn’t require indenting each code line: ``` // some code // another line of code ``` This is much more convenient to type out. It would be super useful if Stack Exchange could support this syntax. By extension, this syntax also allow you to specify the source language right after the opening ```: ```js // some code // another line of code ``` …which would then enable syntax highlighting for that specific language. Although it’s interesting metadata, I don’t think this feature is needed on Stack Overflow, as the syntax highlighting library works pretty well for various languages. So, even if you would allow this syntax but ignore the ```language, this would greatly improve my productivity on Stack Exchange. What do you think? The moderators are currently collecting feedback regarding this feature, so please post a comment with your thoughts. Good idea? Bad idea? Don’t really care? What do you think are the benefits/drawbacks? Experiences? Let them know! Thanks!", "In bash, how do I escape an exclamation mark? I want to do something like bzr commit -m \"It works!\". I can sort of escape the exclamation mark by doing bzr commit -m \"It works\\!\". However, then my commit message includes the backslash. How do I escape the exclamation mark, while still ignoring the backslash?", "80's/90's movie: man and woman driving through a red desert planet I am trying to identify a sci-fi movie from the 80's or 90's, with the following parameters: Setting: Scenes of a red desert planet Culture: Either people roam fairly solo and try to acquire resources to survive, or you live in a weird society where if a stranger is captured he needs to play in a game of fight to the death. Mobility: One foil character has a giant battle-bot-looking tank as his form of transportation through the desert. Protagonist has a car that has a plastic half bubble on top to look out from. Robot: The protagonist runs around in the beginning of the film with a female robot/android whose face is melted off after it has acid touch its face.(This scene happens next to the protagonist's rover) Love interest: Somehow protagonist comes across female protagonist in desert. She smells really bad and is hungry. They sleep outside, and he tells her to sleep away from him. He uses a thermal blanket(the first I ever saw in my life). She wakes up next to him, smelling horrible. He bathes her in some water hole they find(as if water were not scarce and they could just waste water.) Pupa monsters: Scene where they are in a building and they are trying to get out. They come across a room that is white, in which multiple giant, white, snot, pupa are hanging securely from the ceiling. Through curiosity, they disturb them, and now they have to get out of that room fast. Boss Antagonist: Pervert bionic man, that is actually attached to a giant robotic arm, as only form of movement. He is in black and has a pale bald head as his most human looking part.", "How do simulacra behave?", "Variable with colon dash ${VAR:-}", "How to update textbox in form1 from form2?", "In my bedroom the bottom half of all receptacles are controlled by one switch. Is it possible to have just one receptacle with top and bottom hot all the time? The top half is hot all the time the bottom half is controlled by one switch. Keep in mind there are six other receptacles in this room that are the same way controlled by the same switch. When I took the receptacle out the right side tab had been removed. The top right screw had a black wire, the bottom right had a red wire, the top and bottom left screws had separate white wires. I changed the receptacle out as suggested, I capped off the red wire and I capped off the white wire that was attached to the bottom left screw. I attached the other white wire to the top left screw and attached the black wire to the top right screw. I now have none of the receptacles working at all. What did I do wrong?", "Why is ${x^{\\frac{1}{2}}}$ the same as $\\sqrt x $? I'm currently studying indices/exponents, and this is a law that I was told to accept without much proof or explanation, could someone explain the reasoning behind this. Thank you.", "How to assign the result of the previous expression to a variable?", "Truly destroying a PHP Session?", "Do I need a transit visa for a technical stop in Australia? I'm travelling to New Zealand, and my itinerary mentions a technical stop in Australia. Will I need to apply for an Australian transit visa for this?", "What issues should be considered when overriding equals and hashCode in Java? What issues / pitfalls must be considered when overriding equals and hashCode?", "This is probably a silly question, but how can I run ANOVA using only the mean, standard deviation, and the sample size? i.e. Group mean sd n 1: 200 5 5 2: 100 22 5 3: 150 14 5 I am using Statsoft Statistica software. I know how to run it using the spreadsheet with all the data, but I have never done this using only the information listed above. Any information would be greatly appreciated.", "Unable to install Springseed 2 on Ubuntu 15.04", "Are there any age limits (formal, informal, or guidelines) that schools use when deciding to accept someone into a PhD program? I'm most curious about the upper age limits. For example, will most schools accept someone in their 40's? How about their 50's?", "UISearchDisplayController - how to preload searchResultTableView" ]
medi_sts_stackexchange_dupe
'variable' not defined in Python
Best way to return multiple values from a function?
[ "A book I once owned and read back in late-80's or early-90's that I have not been able to identify title &amp; author for: It was a SF story concerning tiny native lifeforms, living on either a planetoid or possibly a dead/neutron star, that evolve at a seemingly accelerated time rate. Most of their story is told in the few days of observation (from orbit) by a human expedition to the planet, during which time-frame the race below progresses from stone-age tech level to being more advanced than the human observers, and eventually flying up to meet the humans in small advanced craft powered by micro-singularities... one of which accidentally 'disintegrates' the tip of a human scientist's nose in the process.", "Compare nullable types in Linq to Sql I have a Category entity which has a Nullable ParentId field. When the method below is executing and the categoryId is null, the result seems null however there are categories which has null ParentId value. What is the problem in here, what am I missing? public IEnumerable&lt;ICategory&gt; GetSubCategories(long? categoryId) { var subCategories = this.Repository.Categories.Where(c =&gt; c.ParentId == categoryId) .ToList().Cast&lt;ICategory&gt;(); return subCategories; } By the way, when I change the condition to (c.ParentId == null), result seems normal.", "How to move boot and root partitions to another drive", "Showing that the sample mean and variance are independent by showing two distribution are the same", "Is there some sort of classification of all minimal non-cyclic groups? Does there exist some sort of classification of all minimal non-cyclic groups (non-cyclic groups, such that all their proper subgroups are cyclic) I know the following classes of such groups: 1) $C_p × C_p$, where $p$ is a prime 2) $Q_8$ 3) $\\langle a,b | a^p = b^{q^m} = 1, b^{−1}ab = a^{r}\\rangle$, where $p$ and $q$ are distinct primes and $r ≡ 1 \\pmod q$, $r^q ≡1 \\pmod p$. (These three classes completely cover the case, when our group is finite: ) 4)$C_{p^{\\infty}}$, where $p$ is a prime 5)$(\\{ \\frac{n}{p^m}| m, n \\in \\mathbb{Z} \\}, +)$, where $p$ is a prime (These two classes completely cover the case, when our group is infinite abelian: ) 6)Infinite non-abelian groups, such that all their nontrivial proper subgroups are isomorphic to $C_{p}$ for a fixed prime $p$ (Tarski monster groups) 7)Infinite non-abelian groups, such that all their nontrivial proper subgroups are isomorphic to $C_{\\infty}$ (). However, I do not know, whether there exists anything, that does not fall into these classes. I only know, that if such groups exist, they have to be infinite non-abelian.", "Problem The sequence $(a_n)_{n=1}^\\infty$ is given by recurrence relation: $a_1=\\sqrt2$, $a_{n+1}=\\sqrt{2+a_n}$. Evaluate the limit $\\lim_{n\\to\\infty} a_n$. Solution Show that the sequence $(a_n)_{n=1}^\\infty$ is monotonic. The statement $$V(n): a_n &lt; a_{n+1}$$ holds for $n = 1$, that is $\\sqrt2 &lt; \\sqrt{2+\\sqrt2}$. Let us assume the statement holds for $n$ and show that $V(n) \\implies V(n+1)$. We have that $$a_n &lt; a_{n+1}.$$ Adding 2 to both sides and taking square roots, we have that $$\\sqrt{2+a_n} &lt; \\sqrt{2+a_{n+1}},$$ that is $a_{n+1} &lt; a_{n+2}$ by definition. Find bounds for $a_n$. The statement $$W(n): 0 &lt; a_n &lt; 2$$ holds for $n=1$, that is $0 &lt; \\sqrt2 &lt; 2$. Let us assume the statement holds for $n$ and show that $W(n) \\implies W(n+1)$. We have that $$0 &lt; a_n &lt; 2.$$ Adding two and taking square roots, we have that $$0 &lt; \\sqrt2 &lt; \\sqrt{2+a_n} &lt; \\sqrt4 = 2.$$ The limit $\\lim_{n\\to\\infty} a_n$ exists, because $(a_n)_{n=1}^\\infty$ is a bounded monotonic sequence. Let $A = \\lim_{n\\to\\infty} a_n$. Therefore the limit $\\lim_{n \\to\\infty} a_{n+1}$ exists as well and $\\lim_{n \\to\\infty} a_{n+1} = A$. (For $(n_k)_{k=1}^\\infty = (2,3,4, \\dots)$, we have that $(a_{n_k})_{k=1}^\\infty$ is a subsequence of $(a_n)_{n=1}^\\infty$, from which the statement follows.) We have that $a_{n+1} = f(a_n)$. That means that $A = \\lim_{n\\to\\infty} a_n = \\lim_{n \\to\\infty} {f(a_n)} = f(\\lim_{n \\to\\infty} a_n) = f(A) = \\sqrt{2 + A}$. Solving the equation $A = \\sqrt{2 + A}$, we get $A = -1 \\lor A = 2$. Putting it all together, we get that $A = 2$, because the terms of the sequence are increasing and $a_1 &gt; 0$. Is my solution correct?", "$\\mathbb Q[x]/(x^2+1)$ is not isomorphic to $\\mathbb Q[x]/(x^2+2)$", "How to create a Wi-Fi Hotspot (in Access Point mode)? How to setup an Access Point (AP) mode Wi-Fi Hotspot? Point to be noted: Wireless access points aren't the same as ad hoc networks. They differ significantly. In short, ad hoc networks aren't supported on newer devices and most Android, Windows Phone and Blackberry devices (and maybe iOS devices too), whereas AP mode Wi-Fi hotspots are. To get an idea about AP mode hotspots, ad hoc networks and their difference, refer to .", "JavaScript: Bitwise shift of long long number I need to bitwise shift a value 64 times in JavaScript. But JavaScript starts rounding after 32. For example: for(var j = 0; j &lt; 64; j++) { mask = mask &lt;&lt; 1; console.log(mask); } This prints value from 0 to 1073741824 but then rounds of and starts printing 0.", "When you earn one tag badge, and then don't click \"Track the next one\" in the tag badge progress tracking box for a while, and then earn a second tag badge, that box continues to show \"Congratulations, you earned [the same badge as before]\", rather than updating to show that you've actually earned another tag badge since then. For instance, right now looks like this: Even though I a few weeks ago and then yesterday, my profile hasn't updated to show the new achievement. I also didn't get the \"cipher\" tag badge until after the 3am watershed, even though tag badges usually appear as soon as I visit my profile after earning them (for instance, I earned the \"tags\" tag badge on meta.SFF.SE today the very instant I clicked on my own profile there after having become eligible for the badge). Even when I went to look at the list of my progress towards different tag badges on Puzzling, which I thought would jog the system into realising I'd actually earned the badge, \"cipher\" still showed up as 99/100 score even after I'd gone well past 100, until last night when the badge was finally awarded and \"cipher\" disappeared from my list of badges to track. TL;DR: if I don't click \"Track the next one\", my tag badges update slower than they should. It's a very unimportant bug, but there must be more people than just me who like to see the \"Congratulations\" thing there for a while and rest on their laurels before moving on to track their progress towards the next milestone.", "NSInvocation for Dummies? How exactly does NSInvocation work? Is there a good introduction? I’m specifically having issues understanding how the following code (from Cocoa Programming for Mac OS X, 3rd Edition) works, but then also be able to apply the concepts independently of the tutorial sample. The code: - (void)insertObject:(Person *)p inEmployeesAtIndex:(int)index { NSLog(@\"adding %@ to %@\", p, employees); // Add inverse of this operation to undo stack NSUndoManager *undo = [self undoManager]; [[undo prepareWithInvocationTarget:self] removeObjectFromEmployeesAtIndex:index]; if (![undo isUndoing]) [undo setActionName:@\"Insert Person\"]; // Finally, add person to the array [employees insertObject:p atIndex:index]; } - (void)removeObjectFromEmployeesAtIndex:(int)index { Person *p = [employees objectAtIndex:index]; NSLog(@\"removing %@ from %@\", p, employees); // Add inverse of this operation to undo stack NSUndoManager *undo = [self undoManager]; [[undo prepareWithInvocationTarget:self] insertObject:p inEmployeesAtIndex:index]; if (![undo isUndoing]) [undo setActionName:@\"Delete Person\"]; // Finally, remove person from array [employees removeObjectAtIndex:index]; } I get what it’s trying to do. (BTW, employees is an NSArray of a custom Person class.) Being a .NET guy, I try to associate unfamiliar Obj-C and Cocoa concepts to roughly analogous .NET concepts. Is this similar to .NET’s delegate concept, but untyped? This isn’t 100% clear from the book, so I’m looking for something supplemental from real Cocoa/Obj-C experts, again with the goal that I understand the fundamental concept beneath the simple(-ish) example. I'm really looking to be able to independently apply the knowledge -- up until chapter 9, I was having no difficulty doing that. But now ... Thanks in advance!", "Remount drive without physically disconnecting? So I have unmounted a usb external hard drive but I went to re-mount it. Is there a command that I can use to remount the drive? Only way I know to re-mount a drive is to disconnect the usb cable from my Mac and reconnect it.", "How do I get the number of days between two dates in JavaScript? How do I get the number of days between two dates in JavaScript? For example, given two dates in input boxes: &lt;input id=\"first\" value=\"1/1/2000\"/&gt; &lt;input id=\"second\" value=\"1/1/2001\"/&gt; &lt;script&gt; alert(datediff(\"day\", first, second)); // what goes here? &lt;/script&gt;", "Was the blue fire from Crimes of Grindlewald Fiendfyre? In Crimes of Grindlewald, Grindelwald uses a powerful blue flame that takes on the shape of monsters. Was this Fiendfyre?", "Story about protagonist finding a world that has died with a museum", "Why is \"bicycle\" pronounced differently from other obviously related words?", "How can I display additional boot and shutdown information on the Windows 7 welcome screen? There is a small tweak, I believe it is a registry key, that allows to display additional information on the Welcome and Shutting down screens of Windows 7 (and most likely Vista, too). I have activated this tweak on one of my systems; unfortunately I forgot how I did it, and I can't seem to find the website that originally gave me that information. Usually, the Windows 7 welcome screen will just display \"Welcome\" when logging in. With the tweak activated, my Welcome screen gives status information such as \"Loading user settings\" or \"Preparing desktop\". When shutting down, the default screen simply says \"Shutting down\". With the tweak activated, it gives additional status information such as \"Stopping Windows services\". This appears the same way that Windows gives information when updates are installed or configured during the startup or shutdown procedure, and I find them quite helpful in getting a feel for what task takes how long during that process. The only setting I was able to find is the Boot log checkbox on the Boot tab of the msconfig application. However, this results in Windows displaying console logs of drivers it is loading, etc., instead of the animated Windows title. This is NOT the setting I am looking for. The \"additional boot information\" setting that I have activated on this system still displays the regular animated Windows logo, and only replaces the strings displayed on the blue Welcome and Shutdown screens. Could someone direct me to the registry key (or whatever setting) that is used to get this behaviour? Edit: Here are a few pictures of the enhanced Welcome and Shutdown screens taken with my mobile phone—they're in German though. Login screen \"Waiting for User Profile Service\" Login screen \"Preparing desktop\" Logout screen \"Stopping Windows services\":", "How do I export the code documentation in C# / VisualStudio 2008? I have always made a point of writing nice code comments for classes and methods with the C# xml syntax. I always expected to easily be able to export them later on. Today I actually have to do so, but am having trouble finding out how. Is there something I'm missing? I want to go Menu->Build->Build Code Documentation, but there is no option to do that, there.", "Is it permissible to use somebody else's words (without quotations) to describe a concept once their work is cited? Quite often one comes across a really succinct and precise explanation of a concept. I'm wondering if it is permissible to use this explanation verbatim, if the source work is cited in your paper (next to the explanation)? What's in question here is at most 3 sentences.", "Can't do comparison on PageReference" ]
medi_sts_stackexchange_dupe
fsck not working to fix corrupted external drive
Repair disk from single user mode (fsck fails)
[ "How do I prevent widow/orphan lines?", "set of almost complex structures on $\\mathbb R^4$ as two disjoint spheres The set of almost complex structures on $\\mathbb R^{2n}$ is given by $$ M_n = \\frac{GL(2n,\\mathbb R)}{GL(n,\\mathbb C)} = \\mathcal C_+ \\sqcup \\mathcal C_-,$$ taking into account that $\\det = \\pm 1$ gives two disjoint sets. How do we show that $M_2=S^2 \\sqcup S^2$? Moreover, I'm a bit confused by dimensions: how does $\\dim_{\\mathbb R}M_2=8$ relates with the latter decomposition? This is exercise 1.2.1 from the book Complex geometry by Huybrechts.", "Why are orbits elliptical?", "How does Fermat's principle make light choose a straight path over a short path? This is a thought experiment where I have made a &quot;C&quot; shaped hole inside diamond. The refractive index $(\\mu)$ of diamond is 2.45. Say we shine a laser from top of the &quot;C&quot; as shown. My calculations show that light reaching A can reach B in the least possible time if gone through the &quot;C&quot;. but I'm pretty sure the perpendicular laser beam travels undeflected and straight down. Though I don't have experimental evidence, I see something wrong either with my intuition or with the theory. It would be great if someone could clarify. * 'a' in the diagram is the thickness of the cutout and all comparable distances can be taken 'a'.", "Can I connect to SQL Server using Windows Authentication from Java EE webapp?", "Sometimes, on the internet, particularly in online games, I see people using the indefinite article before someone's name: \"I see a Joey\" or \"I hug a Polly\". I know some of these people and I'm positive that they are from English-speaking countries, which means it is not a mistake, they do it intentionally. I was always taught that articles are not used in front of people's names. Maybe it is some sort of slang? What does it mean, when the indefinite article is put in front of someone's name? Edit: There is a group of people standing somewhere. And somebody, named Joey, appears. They all know Joey. And someone in this group says \"I see a Joey\". So it is used when someone sees his or her friend. But I don't understand why they use the indefinite article here.", "How to apply for a UK standard visitor visa as a family?", "How do you handle uneven tiles while rendering a tile map? Here is what I want to do with my tile map that I am unsure of. As you can see the top walls are way larger then the bottom and side ones (this is also an issue with my corners which are odd shapes [more like an L then a square] as well as larger then the 40x40px that my current tiles are). I have also attached the tile sheet I am using for the tiles to show you what the corners and tops look like compared to the rest of the tiles. What I’m thinking is I might be able to just draw them using the same array I have if I use the tiles width and height instead of a set WxH? I dont know how well this will work, but were the blocks that will have different values will be blocks the player/NPCs can’t step on then it may not be an issue, again I’m not even sure if that is a viable solution. My code in case you want to see how I'm currently handling it: (pastebin) (edit:im not handling it, meant how I'm currently doing the map) tl;dr - how can I take take my 2d looking tile map and change it to have different size tiles? or is there a better way to do what I am trying to do? Is there a name of a method that I should be looking for while googling?", "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}", "Why are two different concepts both called \"heap\"?", "Cost Distance Analyst In QGIS? Are there any tools, plugins or methods in QGIS which allows for an analysis of the best path between two points using least cost path method? As shown below ArcGIS has several distance tools.", "Is there a test to determine whether solder is leaded or lead-free? Perhaps conductivity/resistance?", "Variable doesn't get returned from AJAX function", "Converting a DC motor to a generator Can ANY DC motor become a generator if torque is applied to the shaft? example: And by any, I mean the really cheap ones too. Or is there a specific type of motor (of which I do not know the name) that can work in both directions (battery to power the shaft OR torque-on-shaft to create a voltage difference between the terminals).", "Why do we say \"is it\" when asking a question rather than \"it is\"? What it says on the tin, a foreign friend of mine has asked and I can't tell him; apart from it sounding horrible. For example: \"Why is it raining today?\" Instead of: \"Why it is raining today?\"", "Watching The Lord of the Rings movies I was really captivated by the elephant riders and the men in brazen scale armor who aided the orcs against the forces of Gondor and Rohan. From what I know they are from the cultures that worship Sauron. I'd like to know what Tolkien wrote about them, their religion, their way of life, and so on. From", "Can I use set instead of List to resolve the duplicate id issue If you take a look into this issue I have provide an answer of using set&lt;Sobject&gt; instead using list&lt;Sobject&gt; i.e. if( !contacts.values().isEmpty() ){ set&lt;Contact&gt; setContacts = new set&lt;Contact&gt;(); for( Contact objCon : contacts.values() ){ if(!setContacts.contains(objCon)){ setContacts.add( objCon ); } } update new list&lt;Contact&gt;(setContacts); } even if(!setContacts.contains(objCon)) is not needed if( !contacts.values().isEmpty() ){ set&lt;Contact&gt; setContacts = new set&lt;Contact&gt;(); for( Contact objCon : contacts.values() ){ setContacts.add( objCon ); } update new list&lt;Contact&gt;(setContacts); } So is there any condition/use case where this answer might fail?", "Helpless after exhausting daily limit for reviewing Suggested Edits", "How can you depend on test code from another module in Maven? Example, I have 2 modules: Base Main I would like a test case in Main to extend a base test class in Base. Is this possible? Update: Found an , which involves creating a test jar.", "What's the difference between 'allow' and 'allow for'?" ]
medi_sts_stackexchange_dupe
I have 4TB hard drive, how to use it under both OSX, windows and linux?
Is exFAT now the best choice for an external hard drive that will be used for Windows, Mac, and Linux?
[ "What is the difference between test set and validation set? I found this confusing when I use the neural network toolbox in Matlab. It divided the raw data set into three parts: training set validation set test set I notice in many training or learning algorithm, the data is often divided into 2 parts, the training set and the test set. My questions are: what is the difference between validation set and test set? Is the validation set really specific to neural network? Or it is optional. To go further, is there a difference between validation and testing in context of machine learning?", "How can I get a pure white background in jewelry photography, without losing sparkle and shine? I've read through several threads similar to this, but I'm looking for a comparison of two options here. I currently take photos on a raised glass platform against a white foam board background and run about 300w of lights (3 100x LEDs @ 5000k, Home Depot Specials in softboxes and umbrellas). As you can imagine, it takes me about 15 minutes of post processing to achieve a perfect white background, and sometimes I have a particular photo that I am unable to get there. I want to upgrade to either a photography table with a translucent background that I can place a speedlight under, or a cyclorama infinity background such as the MyStudio MS20. The latter option may require an upgrade to my lighting, which I am planning to do anyways. The idea of course is to get a blown out 255 background with no post processing, other than color correction on the jewelry or product as needed. This would cut my time after the shoot to a ridiculously small amount of time. Which option would make my life easier? For reference, I currently use a D5300 with a Tamron 90mm f2.8 macro lens. This is the best shot I got after quite a lot of effort, before and after processing: Note that the silver is not shiny like it should be, and the sparkle on the gems is lost.", "There is a book I read in the 1980s or 1990s from a Ca. library. It was a hard copy not a paperback. It is not \"To Outlive Eternity/Tau Zero\" by Poul Anderson (I have that one). It may have been written by a woman or someone whose last name starts with an \"L\". A large crew of men and women are in a new super fast space ship. They are being chased by someone and they outrun the collapse of the universe, but they have lost their home planet. They watch as the universe is reborn. They go into orbit around a planet that looks like it can support life like theirs. They are moving super fast. They look like a ring of radiation going around the planet. They put down 10 super metal markers with scientific info onto the surface of the planet. They watch the planet develop and form life like the dinosaurs and then evolve into human like life forms. There are 2 warring countries on the planet. They block or turn off the sun to freeze the planet and force the countries to form one world government. The planet gets freezing cold and the people start to freeze. The countries agree to form one world government. The people on the ship are welcomed to the planet.", "Evolution of the Redundancy of the Genetic Code", "addtocontents not working with certain other packages This is a follow up question on How do I change the toc dept mid document while using packages (in this case only mathtools). An example: \\documentclass[a4paper,10pt,oneside]{book} \\usepackage{mathtools} \\begin{document} \\frontmatter \\chapter{hello} \\section{hello} \\subsection{hello} \\subsubsection{hello} \\setcounter{tocdepth}{3} \\tableofcontents \\mainmatter \\chapter{hello} \\section{hello} \\subsection{hello} \\subsubsection{hello} \\chapter{hello} \\section{hello} \\subsection{hello} \\subsubsection{hello} \\appendix \\addtocontents{toc}{\\setcounter{tocdepth}{0}} \\chapter{hello} \\section{hello} \\subsection{hello} \\subsubsection{hello} \\chapter{hello} \\section{hello} \\subsection{hello} \\subsubsection{hello} \\end{document} This example generates an error and very strangely puts an exclamation mark in the ToC as you can see here however when I comment out the \\usepackage{mathtools} it suddenly works again or replacing it with a different package such as \\usepackage[T1]{fontenc} also generates no errors. But this is not limited to just this specific package, certain other packages also introduce the same behavior (I just took this package to keep the example small).", "Proving question on sets I am unable to understand this question. I have to say whether its true of false and then prove it but I can't proceed with the question unless I understand it. Let $S$ be the set of stars in our galaxy. There is exactly the same number of subsets of stars in our galaxy as there are functions $f:S\\rightarrow\\{\\alpha,\\beta\\}$", "Infinite DeMorgan laws Let $X$ be a set and $\\{Y_\\alpha\\}$ is infinite system of some subsets of $X$. Is it true that: $$\\bigcup_\\alpha(X\\setminus Y_\\alpha)=X\\setminus\\bigcap_\\alpha Y_\\alpha,$$ $$\\bigcap_\\alpha(X\\setminus Y_\\alpha)=X\\setminus\\bigcup_\\alpha Y_\\alpha.$$ (infinite DeMorgan laws) Thanks a lot!", "How do I install nVidia graphics drivers from “X-Swat” ppa? How am I supposed to install nvidia drivers from xorg-edgers? I try sudo add-apt-repository ppa:xorg-edgers/ppa -y sudo apt-get update sudo apt-get install nvidia-graphics-drivers-331 and I get E: Unable to locate package nvidia-graphics-drivers-331 The nvidia-graphics-drivers-331 for trusty, why wouldn't it install?", "I just installed Ubuntu 18.04 and one of my first negative impressions is the long animation of flying-in icons when opening the app menu. Can I speed this up or disable it?", "Suppose $X$ and $Y$ are independent positive random variables with probability density functions $f_X$ and $f_Y$ respectively. Show that $Z=X/Y$ is absolutely continuous and find its probability density function. $\\textbf{My Thought:}$ In order to show that $Z$ is absolutely continuous, I need to show that it has a commulative distribution function. Then I can also differentiate the latter to obtain the probability density function of $Z$. I have the following calculation \\begin{align*} P(X/Y\\leq z)&amp;=P(X\\ge zY,Y&lt;0)+P(X\\le zY,Y&gt;0)\\\\ &amp;=\\int_{-\\infty}^{0}\\left(\\int_{yz}^{\\infty}f_{X}(x)dx\\right)f_{Y}(y)dy+\\int_{0}^{\\infty}\\left(\\int_{-\\infty}^{yz}f_{X}(x)dx\\right)f_{Y}(y)dy\\\\ &amp;=\\int_{0}^{\\infty}\\left(\\int_{0}^{yz}f_{X}(x)dx\\right)f_{Y}(y)dy. \\end{align*} Also, if $z&lt;0$, then we have that $F_Z(z)=0,$ since $X,Y$ are positive random variables. Therefore the random variable $Z$ is continuous, and we can differentiate it to obtain the probability distribution function of $Z$. We have that $f_Z(z)=0$ if $z\\leq 0,$ and otherwise we have $$f_Z(z)=\\int_{0}^{\\infty}yf_{X}(yz)f_Y(y)dy.$$ Is my reasoning above correct? Any feedback is much appreciated. Thank you for your time.", "How to resume baking fluid simulation? It happens sometimes that after finishing bake (e.g., for fluid simulation) we wish we could continue the simulation for two more seconds :( How to use the cached bake to continue the simulation? We played with the settings, but with no success.", "Why I cannot ping 192.168.0.108 (my computer IP?) Ipconfig says that my IP is 192.168.0.108 C:\\Users\\vbcbu&gt;Reply from 192.168.0.108: Destination host unreachable.ip 'Reply' is not recognized as an internal or external command, operable program or batch file. C:\\Users\\vbcbu&gt;ipconfig Windows IP Configuration Ethernet adapter Ethernet: Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : Wireless LAN adapter Local Area Connection* 12: Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : Wireless LAN adapter Local Area Connection* 13: Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : Wireless LAN adapter Wi-Fi 2: Connection-specific DNS Suffix . : www.tendawifi.com Link-local IPv6 Address . . . . . : fe80::3804:2d04:a591:7142%6 IPv4 Address. . . . . . . . . . . : 192.168.0.108 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.0.1 Ethernet adapter Bluetooth Network Connection: Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : C:\\Users\\vbcbu&gt; I can ping router at 192.168.0.1 I can't ping 192.168.0.108 C:\\Users\\vbcbu&gt;ping 192.168.0.1 Pinging 192.168.0.1 with 32 bytes of data: Reply from 192.168.0.1: bytes=32 time=2ms TTL=64 Reply from 192.168.0.1: bytes=32 time=24ms TTL=64 Ping statistics for 192.168.0.1: Packets: Sent = 2, Received = 2, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 2ms, Maximum = 24ms, Average = 13ms Control-C ^C C:\\Users\\vbcbu&gt;ping 192.168.0.8 Pinging 192.168.0.8 with 32 bytes of data: Reply from 192.168.0.108: Destination host unreachable. Reply from 192.168.0.108: Destination host unreachable. Reply from 192.168.0.108: Destination host unreachable. Reply from 192.168.0.108: Destination host unreachable. Ping statistics for 192.168.0.8: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), C:\\Users\\vbcbu&gt;ping 192.168.0.8 Pinging 192.168.0.8 with 32 bytes of data: Reply from 192.168.0.108: Destination host unreachable. Reply from 192.168.0.108: Destination host unreachable.", "We're planning to upgrade an existing farm from 2007 to 2013. I learned that the best way and maybe the only way to achieve this is by migrating in two steps. 2007 to 2010 and 2010 to 2013. The actual farm is a sql-server(2008r2 64 bit) and a sperate sharepoint-server(web-frontend, etc....) I want to keep the sql-server as it is, if possible and we want to install a new 64bit host for sharepoint 2013. We will design a new branding for 2013 afterwards, so we need to keep the content, but not the layout. There's so much about migration available on the web, but Can I find something like best practises?", "I'm trying to install Anbox in my new Ubuntu 16.04 using instructions from . It seemed to work, but I got no icon in my dash, so I suspect that the installation is not complete. With Synaptic Package Manager I can see that anbox-common &amp; anbox-modules-dkms are installed, but I have no icon in my dash, so I tried running sudo snap install --edge --devmode anbox and got this error: error: cannot install \"anbox\": Get https://search.apps.ubuntu.com/api/v1/snaps/details/core?channel=stable&amp;fields=anon_download_url%2Carchitecture%2Cchannel%2Cdownload_sha3_384%2Csummary%2Cdescription%2Cdeltas%2Cbinary_filesize%2Cdownload_url%2Cepoch%2Cicon_url%2Clast_updated%2Cpackage_name%2Cprices%2Cpublisher%2Cratings_average%2Crevision%2Cscreenshot_urls%2Csnap_id%2Csupport_url%2Ccontact%2Ctitle%2Ccontent%2Cversion%2Corigin%2Cdeveloper_id%2Cprivate%2Cconfinement%2Cchannel_maps_list: dial tcp: lookup search.apps.ubuntu.com on [::1]:53: read udp [::1]:54255-&gt;[::1]:53: read: connection refused What am I doing wrong? Why was the connection refused? According to the instructions, it seems this is the correct command to install it. ps: I'm not that familiar with Linux, I'm more of a Windows guy, trying to learn Linux.", "Some people have a diamond after their username (e.g. ) What special privileges do diamond moderators have? How can I become a diamond moderator? Who are the diamond moderators? How many are there? For more information, see in the . Note: not to confuse with certain Stack Exchange employees, for example members or \"community managers\", who often have diamonds as well, but are not ordinary moderators.", "When is it appropriate to end a sentence in a preposition?", "Can I apply for two Schengen visas if I have two subsequent trips within a short period? I am traveling to Germany on May 1st for an exhibition for which I have already obtained a visa and its validity is up to May 13th. I am returning on May 12th and then traveling on May 17th to UK, and from UK to Switzerland for vacation with family. As time is very short for applying for a Schengen visa again after returning on the 12th with May 13-14 being a Saturday and Sunday, can I apply for Schengen visa again and can I get 2 valid Schengen visa?", "Calling future method from batch class?", "I'm trying to install the IDE in my Ubuntu and in the process it's asking for my root password which I don't remember. I know my user password. How can I recover my root password?", "There are Recurrent Neural Networks and Recursive Neural Networks. Both are usually denoted by the same acronym: RNN. According to , Recurrent NN are in fact Recursive NN, but I don't really understand the explanation. Moreover, I don't seem to find which is better (with examples or so) for Natural Language Processing. The fact is that, although Socher uses Recursive NN for NLP in his , I can't find a good implementation of recursive neural networks, and when I search in Google, most of the answers are about Recurrent NN. Besides that, is there another DNN which applies better for NLP, or it depends on the NLP task? Deep Belief Nets or Stacked Autoencoders? (I don't seem to find any particular util for ConvNets in NLP, and most of the implementations are with machine vision in mind). Finally, I would really prefer DNN implementations for C++ (better yet if it has GPU support) or Scala (better if it has Spark support) rather than Python or Matlab/Octave. I've tried Deeplearning4j, but it's under constant development and the documentation is a little outdated and I can't seem to make it work. Too bad because it has the \"black box\" like way of doing things, very much like scikit-learn or Weka, which is what I really want." ]
medi_sts_stackexchange_dupe
Is there a standard term for tests run against production?
What would be a good term for continuous testing post-deployment?
[ "Is it acceptable to take photos of slides at a conferences for private use? Is it accepted/appropriate to take pictures of presentation slides at conferences for private use? I am not talking about putting those pictures out in the public afterwards, I know this is illegal without consent of the presenter. Should it matter, I am talking about math conferences. And I am asking because I don't see anyone taking pictures.", "After I deleted my Ubuntu partition, I rebooted my computer and I only get a prompt: grub rescue &gt; The command ls lists (hd0) (hd0,msdos5) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1) (hd1) (hd1,msdos1) I check them one by one: ls (hd0,msdos5)/ ls (hd0,msdos1)/ But I cannot find the right partition.", "Show that the cardinality of $\\mathbb N$ is the same as the cardinality of $\\mathbb N \\times \\mathbb N$ Show that $| \\mathbb N | = | \\mathbb N \\times \\mathbb N |$, i.e., the cardinality of $\\mathbb N$ is the same as the cardinality of $\\mathbb N \\times \\mathbb N$. How do I show it using the Fundamental Theorem of Arithmetic and the Schröder–Bernstein Theorem?", "I'm trying to send an E-mail message using Gmail to a contact group where some of the contacts have more than one E-mail address and I want to send the mail to all of them. Is there a way for me to do that?", "What is the difference between implication symbols: $\\rightarrow$ and $\\Rightarrow$?", "SSMS wont give up file associations", "My book (Concepts of Physics by H.C. Verma) writes: It has been reported () that the force between two masses may be better represented by $$F = \\frac{G_{\\infty} m_{1} m_{2}}{r^2} \\left[1 + \\left(1 + \\frac{r}{\\lambda} \\right) \\alpha e^{-\\frac{r}{\\lambda}}\\right]$$ where $\\alpha \\approx - 0.007$ and $\\lambda \\approx 200~\\mathrm{m}$. What is this? Such a horrendous formula! So, what about Newton's? And what's the difference between $G$ &amp; $G_{\\infty}$?", "I want to clear all previous commands from the history of my server. I used history -c and it seems all things are cleared but when I ssh to the server, all the commands are still there. How can I clear them permanently?", "Stack Exchange Android app keeps replaying notifications Version of the app: 1.0.51. (It is up to date at the time of writing according to Google Play.) This started happening after the network problem that happened earlier this morning. Both my tablet and my phone are popping up notifications for events (comments, and probably edits too) that happened prior to the network issue. I had received notifications for these events already and had already cleared them before the network issue happened. The repeated notifications do not show up in the bar displayed at the top of the Stack Exchange sites. In other words, I get notified again in Android but do not get notified again on the SE web sites.", "Given function $g$ continuous in line $[0,\\infty)$, positive and strongly increasing that upholds $\\lim_{t\\to\\infty} g(t) = L$. Calculate the limit: $$ \\lim_{n\\to\\infty} \\int\\limits_1^2 g(nx) \\, dx. $$ At the moment what I think that I should do is swap the $g(nx)$ with $L$ as it approaches infinity but from there on I am just not sure whats my next step is.", "In Ubuntu 17.10 ubuntu upgraded Nautilus (File Browser) to version 3.26.0. New nautilus is not using file-roller anymore, it has to an integrated compression mechanism. This makes it complicated to create encrypted archives and/or different types compression archives that file-roller does provide. How to make nautilus use file-roller as before? Related question:", "Can't Add css-columns Tag I've tried at least 4 times on to add the tag css-columns, but each time after I save it disappears. When I type it in the tag box, it shows up and even has a tag wiki associated with it, but it will not stick when I save.", "I want to create a scratch-card-like effect in new Unity UI's new Image tag. I know it's possible with setPixels, but that's prohibitively expensive on mobile devices. Something like this: I'd like the user to be able to drag on any part of the image to \"scratch off\" the top layer and reveal the content underneath it. How can I do this?", "Is there a way to truly delete all deleted files? I know that on the windows operating system, when you delete a file it's still recoverable. I'd like to avoid simply paving the harddrive with zeros as I would like to keep my OS installation as is, but is there a way to truly delete files that have been previously deleted?", "Does That's very sweet of you in the US sound like That's very sweef you? the of is only speak f and link with swee", "Questions about right ideals", "Run a batch file in a completely hidden way I'm looking for some way to run a batch file (.bat) without anything visible to the user (no window, no taskbar name, .etc..). I don't want to use some program to do that, I'm looking for something cleaner. I've found that uses VBScript, but I don't really like using VBS, either.", "\"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.", "Why is it impossible to override a getter-only property and add a setter? Why is the following C# code not allowed: public abstract class BaseClass { public abstract int Bar { get;} } public class ConcreteClass : BaseClass { public override int Bar { get { return 0; } set {} } } CS0546 'ConcreteClass.Bar.set': cannot override because 'BaseClass.Bar' does not have an overridable set accessor", "Can I bypass iTunes Parental Restrictions on iOS devices?" ]
medi_sts_stackexchange_dupe
Do "who" questions not get auxiliary verb?
Do I have to use “do” in any “wh-” question?
[ "Please excuse the selfishness of the following question: Let $G$ be a group and $H \\le G$ such that $|G:H|=2$. Show that $H$ is normal. Proof: Because $|G:H|=2$, $G = H \\cup aH$ for some $a \\in G \\setminus H$. Let $x\\in G$. Then $x \\in H$ or $x \\in aH$. Suppose $x \\in H$. Then $xhx^{-1} \\in H$ because $H$ is a group. Suppose $x \\in aH$. Then $ahH(ah)^{-1} = ahHh^{-1}a^{-1} = a(hHh^{-1})a^{-1}$ ***1 ***1: Can I say now that $x \\in H$, based on the that $hHh^{-1} \\in H$ and that $aa^{-1} = e$ ? Thank you for the time you spent reading my doubts.", "Set \"this\" variable easily?", "Assigning Float Pointers in C", "Using the properties of real numbers, verify commutativity on complex numbers. I have just started self-studying Linear Algebra after a 3 year hiatus from mathematics (in an extended neuroscience foray), and I want to ensure that I am sufficiently verifying commutativity of complex numbers by using the properties of real numbers. My attempts... (1) Commutativity of Addition: Verify that $w + z = z + w$ for all $w, z \\in \\mathbb{C}$. $$w + z = (a + bi) + (c + di) \\hspace{10mm}\\text{by definition of }\\mathbb{C}$$ $$\\hspace{13mm} = a + (bi + c) + di \\hspace{10mm}\\text{by associativity in }\\mathbb{R}$$ $$\\hspace{17mm} = a + (c + bi) + di \\hspace{10mm}\\text{by commutativity in }\\mathbb{R}$$ $$\\hspace{16mm} = (a + c) + (bi + di) \\hspace{10mm}\\text{by associativity in }\\mathbb{R}$$ $$\\hspace{19mm} = (c + a) + (di + bi) \\hspace{10mm}\\text{by commutativity in }\\mathbb{R}$$ $$\\hspace{13mm} = c + (a + di) + bi \\hspace{10mm}\\text{by associativity in }\\mathbb{R}$$ $$\\hspace{17mm} = c + (di + a) + bi \\hspace{10mm}\\text{by commutativity in }\\mathbb{R}$$ $$\\hspace{17mm} = (c + di) + (a + bi) \\hspace{11mm}\\text{by associativity in }\\mathbb{R}$$ $$\\hspace{13mm} = z + w \\hspace{34mm}\\text{by definition of }\\mathbb{C}$$ $$\\blacksquare$$ This seems a bit verbose to me - is it acceptable to combine steps? For example, rather than: $$w + z = (a + bi) + (c + di) \\hspace{10mm}\\text{by definition of }\\mathbb{C}$$ $$\\hspace{13mm} = a + (bi + c) + di \\hspace{10mm}\\text{by associativity in }\\mathbb{R}$$ $$\\hspace{17mm} = a + (c + bi) + di \\hspace{10mm}\\text{by commutativity in }\\mathbb{R}$$ can I instead write: $$w + z = (a + bi) + (c + di) \\hspace{10mm}\\text{by definition of }\\mathbb{C}$$ $$\\hspace{48mm} = a + (c + bi) + di \\hspace{10mm}\\text{by associativity and commutativity in }\\mathbb{R}$$? (2) Commutativity of Multiplication: Verify that $wz = zw$ for all $w, z \\in \\mathbb{C}$. $$\\hspace{-14mm}wz = (a + bi)(c + di) \\hspace{24mm}\\text{by definition of }\\mathbb{C}$$ $$\\hspace{4mm} = a \\cdot c + a \\cdot di + bi \\cdot c + bi \\cdot di \\hspace{10mm}\\text{by distribution in }\\mathbb{R}$$ $$\\hspace{9mm} = a \\cdot c + bi \\cdot c + a \\cdot di + bi \\cdot di \\hspace{10mm}\\text{by commutativity in }\\mathbb{R}$$ $$\\hspace{35mm} = c \\cdot a + c \\cdot bi + di \\cdot a + di \\cdot bi \\hspace{10mm}\\text{by multiplicative commutativity in }\\mathbb{R}$$ $$\\hspace{1mm} = c(a + bi) + di(a + bi) \\hspace{20mm}\\text{by distribution in }\\mathbb{R}$$ $$\\hspace{5mm} = (c + di)(a + bi)\\hspace{34mm}\\text{by distribution in }\\mathbb{R}$$ $$\\hspace{4mm} = zw \\hspace{55mm}\\text{by distribution in }\\mathbb{R}$$ $$\\blacksquare$$ This also seems a bit wonky to me. Any and all suggestions on clearing up my verification, reasoning, etc. would be greatly appreciated!", "Is there a way to create synchronization profiles for Google Chrome? For example I want to tag some of my browsers as \"home browser\"s and others as \"work browser\"s and I want: my bookmarks to be synced with all browsers, my extensions to be synced only within browsers of the same type (home with home, work with work)", "Better way of saying \"those who are curious\"? I am writing a note in which I want to ask (curious) readers to refer another paper. The phrase curious minded comes to mind, but it seems somewhat awkward. Is there a better way to convey similar import?", "Are global variables thread-safe in Flask? How do I share data between requests?", "When I run LaTeX file its gives error as \"! Package minted Error: You must have pygmentize installed to use this package\", you must have pygments installed. when I go through minted documentation minted itself required pygments, so Tex friend How do I install this pygment, I don't know the procedure to install. Please guid me or any link pygement.exe file", "What is the difference between \"INNER JOIN\" and \"OUTER JOIN\"? Also how do LEFT JOIN, RIGHT JOIN and FULL JOIN fit in?", "Software center disappeared [19.10] I have had trouble with sound (now fixed) since upgrading to 19.10, and in the middle of trying the common solutions, the Software Center \"disappeared\". I got aware of quite late, so I don't know what caused it. Anyway, would you know how to reinstall it ? Trying sudo apt-get install software-center doesn't work.", "Is it possible to set the GPU fan speed using the default free ati driver? My card (X1900) was deprecated in the fglrx drivers a while back. The free drivers seem to work with 3D, Compiz and such, but running graphics intensive programs makes my GPU heat up and produce artifacts, while the GPU fan never seems to increase. (When set to 100% in Windows it makes a massively louder noise.)", "the least possible value for :$ \\lfloor \\frac{a+b}{c}\\rfloor +\\lfloor \\frac{b+c}{a} \\rfloor+\\lfloor \\frac{c+a}{b} \\rfloor $ If we know that for every $a,b,c&gt;0$ ,how we can find the least possible value for : $$ \\lfloor \\frac{a+b}{c}\\rfloor +\\lfloor \\frac{b+c}{a} \\rfloor+\\lfloor \\frac{c+a}{b} \\rfloor $$", "Why doesn't saturation current in the photoelectric effect depend on the frequency of light absorbed ny the metal emitter?", "I'm trying to recall the title of a young adult-targeted book. It was probably published by Scholastic, or at least sold through their take-home pamphlets, which means it was probably published before I started high school in 1996. It's about a group of teenagers who receive invitations to play a game at an invitation-only arcade. When they go there, they are put in an immersive VR game in which they must learn to survive on an alien planet. I believe the game ends and they wake up back in the real world after they fall asleep on the alien one. They are invited back the the game a couple times, and then it turns out… …they go to play the game again, but they are unable to exit it. Eventually they realize that they actually are on an alien planet now, and that the previous game-playing sessions were just training for the real thing. I believe the epilogue states that all of the players have coupled up and the females have become pregnant, and they are optimistic about populating the new planet. I think it was told in the first-person perspective of a female player. I don't think there was a real protagonist or strong conflict; just the group of players learning how to survive in the game. One of the other players had a photographic memory and used it to map the planet's surface. I think the cover art featured of a girl wearing a VR headset over her eyes, with her hair being blown back and her mouth open in surprise.", "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.", "The runtime arguments are as follows: $1 is the path to the file containing the list of files $2 is the path to the directory containing the files What I want to do is check that each file listed in $1 exists in the $2 directory I'm thinking something like: for f in 'cat $1' do if (FILEEXISTSIN$2DIRECTORY) then echo '$f exists in $2' else echo '$f is missing in $2' sleep 5 exit fi done As you can see, I want it so that if any of the files listed in $1 don't exist in the directory $2, the script states this then closes. The only part I can't get my head around is the (FILEEXISTSIN$2DIRECTORY) part. I know that you can do [ -e $f ] but I don't know how you can make sure its checking that it exists in the $2 directory.", "IF/ELSE script in sender profile I'm trying to create a dynamic sender profile where the from name and from email change if a value is present in a specific field of the data extension. I want the Lead First Name value and Lead Last Name values to appear. I'm trying to keep all the logic in the sender profile. %%=IIF(EMPTY(AttributeValue(&quot;X&quot;)), &quot;Bill&quot;, AttributeValue(&quot;LeadFirstName&quot;) AttributeValue(&quot;LeadLastName&quot;))=%% Not sure why, but doing the test, the script shows up as the sender and isn't resolving.", "Show that any prime ideal from such a ring is maximal. Let R be a commutative ring with an identity such that for all $r\\in$ R, there exists some $n&gt;1$ such that $r^n = r$. Show that any prime ideal is maximal. (Atiyah and MacDonald, Introduction to Commutative Algebra, Chapter 1, Exercise 7.) Any hints?", "Delete with Join in MySQL Here is the script to create my tables: CREATE TABLE clients ( client_i INT(11), PRIMARY KEY (client_id) ); CREATE TABLE projects ( project_id INT(11) UNSIGNED, client_id INT(11) UNSIGNED, PRIMARY KEY (project_id) ); CREATE TABLE posts ( post_id INT(11) UNSIGNED, project_id INT(11) UNSIGNED, PRIMARY KEY (post_id) ); In my PHP code, when deleting a client, I want to delete all projects posts: DELETE FROM posts INNER JOIN projects ON projects.project_id = posts.project_id WHERE projects.client_id = :client_id; The posts table does not have a foreign key client_id, only project_id. I want to delete the posts in projects that have the passed client_id. This is not working right now because no posts are deleted.", "\"(\" or \"\\left(\" parentheses? What is the difference between ( and \\left( in LaTeX? Sometimes, when the content is small, it does not seem to matter which pair I use. What is the best practice when it comes to which parentheses use?" ]
medi_sts_stackexchange_dupe
How do I revert back from sudo add-apt-repository ppa:xorg-edgers/ppa?
How can PPAs be removed?
[ "How to install packages in ubuntu without internet connection?", "Sometimes writing braces and omitting them produces the same result: \\tilde{\\psi} \\mathrm{e}^{\\mathrm{i} \\pi} vs \\tilde \\psi \\mathrm e^{\\mathrm i \\pi} Or (taken from Werner's comment below) \\frac{1}{2} vs \\frac12 If that's the case, how bad for the quality of my code is omitting them? Of course, if one compiles a pair of formulas, there is no difference. But, since I ignore how TeX works, my point is: if one writes long codes with these habits, doesn't TeX go somehow crazy because I'm not writing as it expects? For instance, does it have any effect on how fast are long documents compiled? Any reason to keep them?", "Well today as I was going home I got a strange email, in my private inbox (email associated with S.O.) asking me if I had solved a question on S.O. that I didn't ask. To be more precise I had given an answer. After reading: and several other email related issues on S.O. I decided to let you all know about this because probably I am not the only one. So the mail subject was: Re: Deleted facebook account - Cannot access my apps? which refers to And the body (masked last name of sender): Hi Jimmy, Just wondering if you ever got this question answered. If not, maybe a brief chat with a html wizpert could help: link . Good luck getting this resolved! Cheers, Michael ------------------------- Michael W%^%^GF Founder, CEO @ Wizpert Now I know that my email address is not visible and I read about the MD5 regarding gravatar but I don't think this is the case. I thought about some methods and sure it's possible via metadata, github, etc for someone to get my mail, but I do not dare to think that this has reached an automated level, so that some service could easily get the email of S.O. members. I didn't get annoyed by the message, since the CEO took the time to contact me :-p but someone else could get annoyed by these kinds of messages, since they come in the important inbox of gmail. What is more strange is that Wizpert seems to be a nice site and also is active in the Careers 2.0 if I am not mistaken. Another thing that crossed my mind is that since Wizpert needs unanswered questions to promote their services, possibly this is an action of Wizpert trying to attract people into their services. Well that's it, I hope I did good to let you know (maybe I did't include the correct tags).", "Why doesn't my Bash script recognize aliases?", "In a letter-class document that had no previous errors I am suddenly getting the error message: \"There's no line here to end\" \\opening{text} I've used this file many times and today it starts giving this error. How do I troubleshoot this?", "When running umount /path I get: umount: /path: device is busy. The filesystem is huge, so lsof +D /path is not a realistic option. lsof /path, lsof +f -- /path, and fuser /path all return nothing. fuser -v /path gives: USER PID ACCESS COMMAND /path: root kernel mount /path which is normal for all unused mounted file systems. umount -l and umount -f is not good enough for my situation. How do I figure out why the kernel thinks this filesystem is busy?", "Stopping xcode from indexing", "Is there an optimal setting for the number of CPU cores exposed to a VM? VirtualBox, and possibly other VM software, allows the user to specify the number of CPUs exposed to the VM. In my particular case, I have a dual core CPU, with Windows 7 64-bit running natively, and Ubuntu 9.04 64-bit as the VM. The help file suggests not setting this above the number of physical cores available. This makes sense. So, is it best allocating 1 or 2 CPU cores? Does this depend entirely on the native CPU load?", "I am wondering what sudo apt-get update does? What does it update?", "Can I watch the progress of a `sync` operation?", "Why doesn't console.log work when passed as a parameter to forEach?", "How are constraint forces represented in Lagrangian mechanics?", "Old title - \"change resolution to 1280x1024 using xrandr gives: X Error of failed request: BadValue (integer parameter out of range for operation)\" I have installed a fresh Ubuntu 17.10 and have a monitor with 5:4 resolution. settings has no resolution higher than 1024x768. But I need the resolution 1280x1024 (5:4). I use the default motherboard graphics card: # lspci|grep VGA 00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) Also xrandr gives the following: $ xrandr Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192 XWAYLAND0 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm 1024x768 59.92*+ I tried to add the 1280x1024 resolution using xrandr. so first created the resolution information using gtf: $ gtf 1280 1024 60 # 1280x1024 @ 60.00 Hz (GTF) hsync: 63.60 kHz; pclk: 108.88 MHz Modeline \"1280x1024_60.00\" 108.88 1280 1360 1496 1712 1024 1025 1028 1060 -HSync +Vsync Then added to resolutions: xrandr --newmode \"1280x1024_60.00\" 108.88 1280 1360 1496 1712 1024 1025 1028 1060 -HSync +Vsync then again did the command: xrandr --addmode XWAYLAND0 1280x1024_60.00 Then nothing changed. When I tried to change it using xrandr --output XWAYLAND0 --mode 1280x1024_60.00 --rate 60 But an error occurred: $ xrandr --output XWAYLAND0 --mode 1280x1024 --rate 60 X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 140 (RANDR) Minor opcode of failed request: 7 (RRSetScreenSize) Value in failed request: 0x0 Serial number of failed request: 21 Current serial number in output stream: 22 I don't know what did I do wrong. Or how to change resolution to the correct one: 1280x1024", "How can I tell if an iOS device has a GPS?", "Commutator of a group", "I'd like to make commands I've typed (input) into terminal stand out from all the output. For example: imac:~ buster$ chmod -R g-w myfolder imac:~ buster$ cd myfolder imac:myfolder buster$ ls -l total 0 drwxr-xr-x 9 root admin 306 Apr 20 2010 bin drwxr-xr-x 7 root admin 238 Apr 20 2010 include drwxr-xr-x 73 root admin 2482 May 18 17:16 lib drwxr-xr-x 6 root admin 204 Apr 20 2010 man imac:myfolder buster$ echo Go Giants! Go Giants! bold jumps to mind but I'd accept a color or even highlighting the whole line... I'm sure there's a way to do this but it's not obvious to me... thanks!", "How long should it take to refresh a Developer Sandbox? I refreshed a Developer Sandbox, and almost 24 hours it is still \"pending\". Is this normal? Are there any actions I can take to speed up the process? When I created the Sandbox it took barely more than 10 minutes to create. Thanks, Adrian", "If i try to update node revision like this: $node = node_revision_load(59); $node-&gt;set('publish_on', null); $node-&gt;save(); or simple save: $node = node_revision_load(59); $node-&gt;save(); I have a PHP memory error, (i have 1gb allocated)", "\"A friend of my father\" vs. \"a friend of my father's\" — which one is right? Why? I have seen them both in my reference book, which is written by a native speaker. I wonder why there are two different phrases to describe the same meaning and am looking forward to some reasonable details to explain why this is so.", "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
Econometrics Problem. Proving Regressions have both R squared
R-squared: X "explains" the percentage of variation of the Y values. Does axis order matter?
[ "Is this arthropod non-intrusive and recommended to be left alive?", "Open program/windows on specific monitor Is there a way to tell Windows on which monitor it should open a windows independently of where it was closed?", "Does $\\langle\\Omega|\\mathrm{e}^{\\mathrm{i}Px}=\\langle\\Omega|\\mathrm{e}^{\\mathrm{i}0x}$? $(\\langle\\Omega| =$ ground state of the interacting theory) Let $\\langle\\Omega|$ be the ground state of an interacting theory, just as Peskin &amp; Schroeder(PS) describes on page 82 and page 213. On page 213 PS do the following $$\\tag{1}\\langle\\Omega|\\phi(x)|\\lambda_{\\vec{p}}\\rangle = \\langle\\Omega|\\exp(+\\mathrm{i}Px)\\phi(0)\\exp(-\\mathrm{i}Px)|\\lambda_{\\vec{p}}\\rangle \\\\ =\\langle\\Omega|\\phi(0)|\\lambda_{0}\\rangle\\exp(-\\mathrm{i}px)\\bigg|_{p^0=E_{\\vec{p}}} $$ In the above $|\\lambda_0\\rangle$ is an eigenstate of the full interacting hamiltonian $H$. The ket $|\\lambda_{\\vec{p}}\\rangle$ is the boost of $|\\lambda_0\\rangle$ with momentum $\\vec{p}.$ Furthermore $E_{\\vec{p}} = \\sqrt{p^2+m_\\lambda^2}$ and $\\vec{P}|\\lambda_0\\rangle = 0.$ I assume PS used $$\\tag{2}\\langle\\Omega|\\mathrm{e}^{\\mathrm{i}Px}=\\langle\\Omega|\\mathrm{e}^{\\mathrm{i}0x}$$ in $(1)$. Is $(2)$ true? I thought $\\langle0|\\mathrm{e}^{\\mathrm{i}Px}=\\langle0|\\mathrm{e}^{\\mathrm{i}0x}$ where $\\langle0|$ is the ground state of the free theory. I hope I have provided enough info for the question to make sense.", "Connecting subplots Is there a way to draw a sort of connection between subplots in TiKz/pgfplot, like in this ? I'm looking to achieve something like this: But I would need to draw the \"x 2000\" line between the plots. EDIT: So right now I have something like this: Coming from my main.tex: \\input{aipcheck} \\documentclass[final]{aipproc} \\layoutstyle{8x11single} \\usepackage[utf8]{inputenc} \\usepackage{algorithm2e} \\usepackage{color} \\usepackage[usenames,dvipsnames]{xcolor} \\usepackage{cleveref} \\usepackage{pgfplots} \\pgfplotsset{ tick label style={font=\\tiny}, %axis numbers label style={font=\\small}, %axis labels legend style={font=\\tiny} } \\begin{document} (...) \\begin{figure} \\centering \\newlength\\figureheight \\newlength\\figurewidth \\setlength\\figureheight{5cm} \\setlength\\figurewidth{5cm} \\input{figs/_ddmp2d.tikz} \\label{fig2D} \\end{figure} with _ddmp2d.tikz, originally created from matlab2tikz, but already modified, containing: % This file was created by matlab2tikz v0.3.3. % Copyright (c) 2008--2013, Nico Schlömer &lt;[email protected]&gt; % All rights reserved. % % The latest updates can be retrieved from % http://www.mathworks.com/matlabcentral/fileexchange/22022-matlab2tikz % where you can also make suggestions and rate matlab2tikz. % % % \\begin{tikzpicture} \\begin{axis}[% width=\\figurewidth, height=\\figureheight, scale only axis, xmin=0, xmax=15, xlabel={Number of iterations}, ymin=0, ymax=16000000000000, name=plot1, after end axis/.append code={\\coordinate (a) at (axis description cs:1,0);}] \\addplot [ thick, color=red, dash pattern=on 1pt off 3pt on 3pt off 3pt, forget plot ] table[row sep=crcr]{ 1 15841000000000\\\\ (...) 15 25160000000\\\\ }; \\addplot [ thick, color=black, dashed, forget plot ] table[row sep=crcr]{ 1 15841000000000\\\\ (...) 15 52501000000\\\\ }; \\addplot [ thick, color=blue, dotted, forget plot ] table[row sep=crcr]{ 1 15841000000000\\\\ (...) 15 5324200000\\\\ }; \\addplot [ thick, color=green, solid, forget plot ] table[row sep=crcr]{ 1 15841000000000\\\\ (...) 15 551920000\\\\ }; \\addplot [ thick, color=green, solid, forget plot ] table[row sep=crcr]{ 3 0\\\\ 3 16000000000000\\\\ }; \\addplot [ thick, color=blue, dotted, forget plot ] table[row sep=crcr]{ 4 0\\\\ 4 16000000000000\\\\ }; \\addplot [ thick, color=black, dashed, forget plot ] table[row sep=crcr]{ 5 0\\\\ 5 16000000000000\\\\ }; \\addplot [ thick, color=red, dash pattern=on 1pt off 3pt on 3pt off 3pt, forget plot ] table[row sep=crcr]{ 8 0\\\\ 8 16000000000000\\\\ }; \\end{axis} \\begin{scope}[xshift=5cm] \\begin{axis}[% width=0.35\\figurewidth, height=\\figureheight, scale only axis, xmin=995, xmax=1000, xtick={997,998,999,1000}, xticklabels={$997$,$998$,$999$,$1000$}, ymin=0, ymax=8000000000, at=(plot1.right of south east), anchor=left of south west, yticklabel pos=right, axis x discontinuity=crunch, after end axis/.append code={\\coordinate (b) at (axis description cs:0,1);} ] \\addplot [ thick, color=red, dash pattern=on 1pt off 3pt on 3pt off 3pt ] table[row sep=crcr]{ 995 6093100000\\\\ 996 6093100000\\\\ 997 6093100000\\\\ 998 6093100000\\\\ 999 6093100000\\\\ 1000 6093100000\\\\ }; \\addplot [ thick, color=black, dashed ] table[row sep=crcr]{ 995 1577100000\\\\ 996 1598000000\\\\ 997 1598500000\\\\ 998 1628600000\\\\ 999 1631000000\\\\ 1000 1595900000\\\\ }; \\addplot [ thick, color=blue, dotted ] table[row sep=crcr]{ 995 2592000000\\\\ 996 2591900000\\\\ 997 2591700000\\\\ 998 2591600000\\\\ 999 2591500000\\\\ 1000 2591400000\\\\ }; \\addplot [ thick, color=green, solid ] table[row sep=crcr]{ 995 391810000\\\\ 996 391810000\\\\ 997 391810000\\\\ 998 391810000\\\\ 999 391810000\\\\ 1000 391810000\\\\ }; \\end{axis} \\draw[gray] (a) -- (b) node[pos=0.5,sloped,fill=white] {$\\times$2000}; \\end{scope} \\end{tikzpicture}%", "IANAL et al. is usually the start of answers to [legal] questions on any SE site (e.g. ). You usually end up with personal opinions which sound sensible and the accepted answer is often the one closest to the OP's hopes. But it's probably often not correct. I know the situation can be rather complicated and even differ by location, but it would be really helpful if the SE team were providing official lawyers (indicated maybe by using a § in the username, forbidden for everyone else, just like the mod ♦) to provide some orientation that one could actually rely on beyond much doubt...", "What is the correct way to pluralize an initialism in which the final word is not pluralized by adding the letter \"s\"?", "How do I write content to another browser window using Javascript? I've opened a new window with window.open() and I want to use the reference from the window.open() call to then write content to the new window. I've tried copying HTML from the old window to the new window by using myWindow.document.body.innerHTML = oldWindowDiv.innerHTML; but that's doesn't work. Any ideas?", "I was viewing question in the Android app. As shown in the below screenshot, while the top shows \"4 answers\", the bottom button will ask to \"View 6 Answers\". After checking the question, there are indeed six answers to the aforementioned question. I am using Android 4.3 with the 0.1.64 version of the app. EDIT: The changes to the UI made this question obsolete.", "How to simulate data that satisfy specific constraints such as having specific mean and standard deviation? This question is motivated by . But I imagine that it would also be useful in teaching contexts where you want to create a dataset that exactly mirrors an existing published dataset. I know how to generate random data from a given distribution. So for example, if I read about the results of a study that had: a mean of 102, a standard deviation of 5.2 , and a sample size of 72. I could generate similar data using rnorm in R. For example, set.seed(1234) x &lt;- rnorm(n=72, mean=102, sd=5.2) Of course the mean and SD would not be exactly equal to 102 and 5.2 respectively: round(c(n=length(x), mean=mean(x), sd=sd(x)), 2) ## n mean sd ## 72.00 100.58 5.25 In general I'm interested in how to simulate data that satisfies a set of constraints. In the above case, the constaints are sample size, mean, and standard deviation. In other cases, there might be additional constraints. For example, a minimum and a maximum in either the data or the underlying variable might be known. the variable might be known to take on only integer values or only non-negative values. the data might include multiple variables with known inter-correlations. Questions In general, how can I simulate data that exactly satisfies a set of constraints? Are there articles written about this? Are there any programs in R that do this? For the sake of example, how could and should I simulate a variable so that it has a specific mean and sd?", "Why do my images look different on my camera than when imported to my laptop? I have been taking some photos with my new camera, and have found that once I import them to my laptop, the colors look washed out, and not as nice and vivid as on the camera LCD display. It's a Sony HX60, and I am importing them into an HP dm4, running Fedora. I've read about color profiles, and made sure that the calibration on my monitor was set. The thing is that the issue arises with just importing them from the camera iteself (using Shotwell) and diplaying them with the standard Image Viewer, it's not even an issue with Gimp or an image editor with a color profile not set. I am wondering if my camera is using some of color profile that is being lost when imported, or is it that the display on my camera is much better than the one my laptop? I can then open the image in Gimp, and then use some enhancements to make the image look better, but I just want them to look the same as on my camera. Any ideas? Update: Here is an example image I took: And here is a photo of the comparison of how the Sony HX60 &amp; the HP dm4 render the output. This photo was taken with a cheap Lumix, but still clearly shows the difference:", "Understanding imaginary exponents", "While doing some flagging (yes, I'm a little bit addicted) I stumbled upon the user . At first the case seemed clear, Spammer, but...and that's a big one, he seems to be a productive member of SU and SO (his account on SF isn't there anymore, but it's still in the Data-Dump of the explorer, not sure what happened). He does never seem to link against StarWind-Software, except with his name and profile. He also that he's a developer there...so...at what am I looking here? I can't really place him somewhere.", "Noticing that the \"Human Verification\" image did not show, I found that the src, , shows that sstatic.net is giving an SSL vertificate for *.stackexchange.com..", "Say I want a random 1024-bit prime $p$. The obviously-correct way to do this is select a random 1024-bit number and test its primality with the usual well-known tests. But suppose instead that I do this: select random odd 1024-bit number $n$ if $n$ is prime, return $n$ $n \\leftarrow n+2$ goto 2 (This approach allows faster selection of primes via sieving.) Since primes are not uniformly distributed on the number line, it would seem that this algorithm prefers primes that lie after long runs of composites. Take a piece of the number line around $2^{1024}$ with x denoting a prime: ---x-x----------------------------x------------------------x---x Clearly our algorithm above is much more likely to find the 3rd prime above than to find the 2nd one. Question: Is this a problem?", "Cannot change backlight brightness Ubuntu 14.04", "Why does shrinkage work? In order to solve problems of model selection, a number of methods (LASSO, ridge regression, etc.) will shrink the coefficients of predictor variables towards zero. I am looking for an intuitive explanation of why this improves predictive ability. If the true effect of the variable was actually very large, why doesn't shrinking the parameter result in a worse prediction?", "How to scan an entire network using Nmap? Is there a way to scan an entire network using ? What I want to do is scan my network for all the devices that are currently connected to it.", "Lagrange's theorem I don't understand left coset and Lagrange's theorem... I'm working on some project so please write me anything what could help me understand it better", "Router to router setup works fine with straight cable up to 2-3 meter it is not working for 45 meter why?", "I have a problem analysing this sentence from the point of finite/nonfinite clauses, clause elements and their functions: He does not want to destroy his parents' dream of him achieving a Cambridge degree. I am especially interested in the: dream of him achieving a Cambridge degree. I know that 'achieving a Cambridge degree' is a non-finite -ing participle clause. However what is its function? And what is the function of 'of him'? Is it a postmodification?" ]
medi_sts_stackexchange_dupe
Converting a specific JSON to java object format?
How to parse JSON in Java
[ "Is my Geoserver \"Direct WMS Integration\" working?", "GNU find and masking the {} for some shells - which? The man page for GNU find states: -exec command ; [...] The string `{}' is replaced by the current file name being processed everywhere it occurs in the arguments to the command, not just in arguments where it is alone, as in some versions of find. Both of these constructions might need to be escaped (with a `\\') or quoted to protect them from expansion by the shell. That's from the man to find (GNU findutils) 4.4.2. Now I tested this with bash and dash, and both don't need to have the {} being masked. Here is a simple test: find /etc -name \"hosts\" -exec md5sum {} \\; Is there a shell, for which I really need to mask the braces? Note, that it doesn't depend upon whether the file found contains a blank (invoked from bash): find ~ -maxdepth 1 -type d -name \"U*\" -exec ls -d {} \\; /home/stefan/Ubuntu One This changes if the found file is passed to a subshell: find ~ -maxdepth 3 -type d -name \"U*\" -exec bash -c 'ls -d {}' \\; ls: cannot access /home/stefan/Ubuntu: No such file or directory ls: cannot access One: No such file or directory which can be solved by: find ~ -maxdepth 3 -type d -name \"U*\" -exec bash -c 'ls -d \"$0\"' {} \\; in contrast to: find ~ -maxdepth 3 -type d -name \"U*\" -exec bash -c 'ls -d \"{}\"' \\; /home/stefan/Ubuntu One but that's not what the man page is talking about, is it? So which shell treats {} in a different way?", "How to redirect output to screen as well as a file?", "How exactly is Arda supposed to be an ancient Earth? As most Tolkien fans know, Arda (Tolkien's world) is supposed to be Earth in its past, and all its stories are supposed to have happened long ago on this very same planet. Of course, this is fiction, so this is not supposed to be actually true. But, if one wanted to roll with it... how could it possibly make sense from a geographical standpoint? All maps of Middle Earth (before or after the destruction of Beleriand and Numenor) just don't match anything on Earth, even when considering continental drift. Of course, one could simply say \"the Valar reshaped it (again)\", but not only this is a bit unsatisfactory, it also doesn't make much sense in context, as Valar are well known for not wanting to meddle with Arda unless absolutely needed, and even then, as little as possible. Update: Hey, please calm down, guys. Mine was not a rant at all. And I know perfectly well this is fiction (and I've stated it plainly). The sense of my question was: \"If one wanted to follow this line of thought and assume Arda should be related to Earth as Tolkien said, then how could this relationship be explained?\".", "Proving that the tangent to a convex function is always below the function", "Flag counter is missing sporadically I noticed that on both sites where I am a moderator the flag counter is occasionally not showing any flags even when there are flags in the queue. A refresh of the page leads to the correct flag count to be displayed. I noticed this happening when I visited the site for the first time in a few hours, when I was recently active on the site the counter seems to stay accurate.", "Windows 10 changes UEFI boot order every time I have an HP 500-413nl (a desktop) and Windows 10 keeps changing the boot order in UEFI/BIOS every time, so that if I want to boot Ubuntu 16.10 (64-bit) I always have to press F10, thus entering the BIOS setup and changing boot order… Is there a workaround for my PC? What should I do? I'm a little desperate. P.S.: I have already disabled \"Secure boot\" and \"Fast/quick boot\" in the BIOS and \"Fast startup\" in Windows options / Control panel.", "What are the difference between the following sentence? I ate apples. I have eaten apples. When should we use simple past tense? When should we use perfect past tense?", "Problem 4.6, I. Martin Isaacs' Character Theory", "I installed Ubuntu 14.04 onto my Acer Aspire E15. The PC has a 500 Gigabyte HDD. During the installation it divided the HDD into separate partitions. However every time I turn on the PC it goes directly into Windows 8.1. It doesn't allow you the opportunity to select which OS you want to use. Question 1: How do I set the PC so it will allow me to select the OS? Question 2: And if #1 isn't possible. How to I remove Ubuntu from the PC and recover the partition for Windows", "In what situations is octal base used?", "Using the itemize environment inside a caption", "The following example must be compiled with XeLaTeX to reproduce the issue. % arara: xelatex \\documentclass{article} \\usepackage{fontawesome} \\begin{document} Text Text \\faMobilePhone\\ Text Text \\end{document} Normally I am using TeXworks to compile and view the output. With the internal viewer I am getting the desired result. The following image demonstrates it: However if I open the pdf with Preview (viewer of Mac) the scaling of the icon fails. If I open the pdf file with Adobe Acrobat Reader the icon is still scaled correctly. If I print the page my printer is also not able to scale the icons correctly. If I use LuaLaTeX everything seems to work correctly. Can you reproduce the issue and do you know a solution?", "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", "For each positive even integer $n$, set $$P_n = \\displaystyle {{n} \\choose {\\frac{n}{2}}}\\frac{1}{2^n}.$$ Show that $\\displaystyle \\lim_{n \\to \\infty} P_n$ exists and determine its value. Here's what I have so far: each $P_n$ can be thought of as the probability of tossing a fair coin $n$ times, and obtaining exactly $\\frac{n}{2}$ heads. My expectation is that $P_n \\to 1$, since in any large trial, one would expect to record just about as many heads as tails. But I'm not sure how to mathematically justify this hunch. Hints or solutions are greatly appreciated.", "Math Induction Proof: $(1+\\frac1n)^n < n$ So I have to prove: For each natural number greater than or equal to 3, $$(1+\\frac1n)^n&lt;n$$ My work: Basis step: $n=3$ $$\\left(1+\\frac13\\right)^3&lt;3$$ $$\\left(\\frac43\\right)^3&lt;3$$ $$\\left(\\frac{64}{27}\\right)&lt;3$$ which is true. Now the inductive step, assume $P(k)=\\left(1+\\frac1k\\right)^k&lt;k$ to be true and prove $P(k+1)=\\left(1+\\frac1{k+1}\\right)^{k+1}&lt;k+1$. This is where I am stuck because usually you add or multiply by $k+1$ or some similar term.", "Resistors in series vs parallel", "Asymptotic expansion of $u_{n + 1} = \\frac12 \\arctan(u_n)$", "How to watch live youtube stream using vlc? Is it possible for now to watch live youtube video streams using vlc? I just don't want to use flash player. I know that vlc can play youtube videos using link for the page where that video is located, but how about live youtube videos?", "I won a Samsung Galaxy S6 Edge, signed into it with my Google account, played around with it, wiped it, and sold it. Now the person can't get past setup because it's saying he must login with an account previously synced to the phone. Is there anything I can do from my side to remove this lock?" ]
medi_sts_stackexchange_dupe
Printing a block of elements in a list
How do you split a list into evenly sized chunks?
[ "Why did the slaver in Astapor think Daenerys wouldn't do exactly what she did? Spoilers! (do I have to even say that here?) I recently rewatched the episode of Game of Thrones where Daenerys is in Astapor. She makes the deal with the master slaver guy, where she trades him one of her dragons for 8,000 of his very tough slaves. I immediately thought this was stupid for two reasons: Why would he think the dragon would immediately obey him rather than her? Maybe he doesn't quite believe the 'Mother of Dragons' lore, but it's still basically a pet at the very least. This one isn't as bad though, as... Why would he possibly think she wouldn't betray him and use her freshly bought slaves to take back her dragon? He just traded her literally all his slaves and he has not been kind to her so far. He has motivation to not go back on the deal -- he's running a business, basically... but she has no reason not to. I guess you could argue that he was blinded by greed, but I think that would be poor writing -- he's in a vicious trade, I can't imagine he would've survived long thinking so naively. Does anyone have a good explanation?", "Looks like there is something wrong with reputation calculation: +2*5 -6*2 = -2... why there is +6 in reputation popup? As @Catija said in comment calculation is OK in the profile: Perhaps the issue is in the top-bar.", "$-1$ is a quadratic residue modulo $p$ if and only if $p\\equiv 1\\pmod{4}$ I came across this problem and I believe Lagrange's theorem is the key to its solution. The question is: Let $p$ be an odd prime. Prove that there is some integer $x$ such that $x^2 \\equiv −1 \\pmod p$ if and only if $p \\equiv 1 \\pmod 4$. I appreciate any help. Thanks.", "I'm taking my first crack at with jQuery. I'm getting my data onto my page, but I'm having some trouble with the JSON data that is returned for Date data types. Basically, I'm getting a string back that looks like this: /Date(1224043200000)/ From someone totally new to JSON - How do I format this to a short date format? Should this be handled somewhere in the jQuery code? I've tried the jQuery.UI.datepicker plugin using $.datepicker.formatDate() without any success. FYI: Here's the solution I came up with using a combination of the answers here: function getMismatch(id) { $.getJSON(\"Main.aspx?Callback=GetMismatch\", { MismatchId: id }, function (result) { $(\"#AuthMerchId\").text(result.AuthorizationMerchantId); $(\"#SttlMerchId\").text(result.SettlementMerchantId); $(\"#CreateDate\").text(formatJSONDate(Date(result.AppendDts))); $(\"#ExpireDate\").text(formatJSONDate(Date(result.ExpiresDts))); $(\"#LastUpdate\").text(formatJSONDate(Date(result.LastUpdateDts))); $(\"#LastUpdatedBy\").text(result.LastUpdateNt); $(\"#ProcessIn\").text(result.ProcessIn); } ); return false; } function formatJSONDate(jsonDate) { var newDate = dateFormat(jsonDate, \"mm/dd/yyyy\"); return newDate; } This solution got my object from the callback method and displayed the dates on the page properly using the date format library.", "In my situation, it's for a local build/staging server running ubuntu server. Things I'd like to know are: Why I should/shouldn't use LVM? What problems might it cause in terms of either regular server operation or things I might want to do later? (ex. partitioning) Why I should/shouldn't use encrypted LVM instead of LVM? What problems might encrypted LVM cause in terms of either regular server operation or things I might want to do later? (ex. partitioning)", "When to use \"If I was\" vs. \"If I were\"?", "MacOS High Sierra: An error occurred while verifying firmware", "32-Bit UEFI Boot Support", "What is the historic present tense? I learned that the historical present may be used to create an effect of immediacy in narratives. I have a question about the historic present tense. Why don't we use the progressive tense instead of the simple present tense? ※My English skill is poor, so my question might sound rude. But I don't mean to offend anyone. I'd be glad if someone could reply to my question.", "What do they do with all the plates and cups in Star Trek?", "NVMe PCIe x4 SSD on M.2 PCIe x2 slot? i'm about to get a new SSD for my PC, and before spending the money i have some doubts about my decision i would like to clarify First, my mobo is a B450 Aorus Pro Wifi, it has 2 M.2 slots, one of them full length (22110) compatible with PCIe 3.0 x4 and the other one standard length (2280) and support only for PCIe 3.0 x2 About the drive, i'm aiming for a 1tb XPG SX8200 Pro , which is a PCIe 3.0x4 SSD My first M.2 slot is already taken by the main SSD, which i use for the OS and other stuff, i can't really use it. Will a PCIe x4 SSD work on a PCIe x2 slot? How much performance will be lost if it does? Will it be worth it?", "Why does latex stretch small sections across the whole page vertically?", "Is B1 visa in perfect condition valid on old damaged passport? I got my US B1 visa last month on my Indian passport. Someone in my family wrote a phone number on one of the blank page of my passport. As my passport is damaged now, can I travel with my current passport to US or I should apply for new passport? Also, will B1 visa be valid on old damaged passport if I get new passport?", "Suppose all the Associated Primes are Minimal. Let $R$ be a commutative Noetherian ring with unit and let $I$ be a fixed ideal. I am sorry if the following turns out to be a very silly question. 1) Suppose $\\operatorname{Ass}(R/I)$ are all minimal, then what can we say about $R/I$? One conclusion is that $I$ has a unique primary decomposition. If $R/I$ is CM, then $\\operatorname{Ass}(R/I)$ are all minimal, but I don't think the converse is true. Can someone provide a counterexample? 2) Suppose $\\operatorname{Ass}(R/I)$ are all minimal and have the same height. I still dont think we can conclude that $R/I$ is CM. Can someone provide a counterexample? Theorem 2.1.6 of Bruns and Herzog, CM Rings, gives a result in this direction but it needs additional hypothesis. It says that if every ideal $I$ is generated by height $I$ elements and $\\operatorname{Ass}(R/I)$ are all minimal, then $R$ is CM. It would be nice if someone can say something nice about the ring in the special situation described in 1) and 2). Thanks.", "Good reading on the Keldysh formalism I'd like some suggestions for good reading materials on the Keldysh formalism in the condensed matter physics community. I'm familiar with the imaginary time, coherent state, and path integral formalisms, but lately, I've been seeing Keldysh more and more in papers. My understanding is that it is superior to the imaginary time formalism at least in that one can evaluate non-equilibrium expectations.", "How am I supposed to install El Capitan on a new SSD without recovery partition?", "Let $A,B \\in \\mathbb{M}_n (\\mathbb{C})$. If $A^2B + BA^2 = 2ABA$ then exist $k \\in \\mathbb{N}$ where $(AB-BA)^k = 0$. I tried solve with minimal polynomial, but I did not have much effect.", "Proof using Prüfer encoding The question is as below: Show that each vertex $v$ of a tree $T$ appears $deg(v)-1$ times in the Prüfer encoding of $T$, where $deg(v)$ is the degree of $v$ in $T$. For this, I think there are 3 scenarios a leaf should be considered for: (1) when it is a leaf as part of a tree; (2) a leaf that has been discarded; (3) the remaining edge. I feel like this will result in a short proof which is only two (or so) statements long, but at the same time, feel it is too simple. EDIT: I've had a look at this again and narrowed it down to 2 cases: Case 1: The vertex $v$ in question has $deg(v)\\ge2$. $v$ then loses its neighbours as the algorithm is applied repeatedly until $v$ becomes a leaf itseelf. At this point, $v$ is attached to another neighbour, leaving an edge. This means the algorithm can no longer be applied and we have obtained the final Prüfer Encoding for the tree $T$. Case 2: The vertex $v$ has $deg(v)\\ge 2$. It loses its neighbours as the algorithm is applied repeatedly but is deleted itself at some point in the process. Have I gone about this wrong? Thank you.", "I am asking this question from an educational/hacking point of view, (I wouldn't really want to code like this). Is it possible to implement a while loop only using C preprocessor directives. I understand that macros cannot be expanded recursively, so how would this be accomplished?", "How is the electostatic field propagated by the vacuum? How does a charge feel the presence of another charge when there is NOTHING between them? Is the word \"vacuum\" equal to \"nothing\"? Imagine two charges of opposite sign, far from one another in vacuum, and moving with constant velocity - s.t. none radiates energy, none emits photons. At some time though, the course of their movement brings them closer. They begin to accelerate toward one another. How do they feel the presence of one another? During their constant movement no photons are emitted, no \"information\" spreads in the universe about their presence." ]
medi_sts_stackexchange_dupe
Ito's process and martingale
martingale and stochastic Integral
[ "fsck error on boot: /dev/sda6: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY I dual boot Ubuntu and Windows 7. I was browsing on FireFox in Ubuntu and all of a sudden I get some error message, so I rebooted. Now when I try to boot into Ubuntu I get this message: fsck from util-linux 2.26.2 /dev/sda6 contains a file system with errors, check forced. /dev/sda6: Inodes that were part of a corrupted orphan linked list found. /dev/sda6: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. (i.e., without -a or -p options) fsck exited with status code 4 The root filesystem on /dev/sda6 requires a manual fsck Busybox v1.22.1 (Ubuntu 1:1.22.0-15ubuntu1) built in shell (ash) Enter 'help' for a list of built-in commands. (initramfs) _ How can I fix this?", "Find all functions $f:\\mathbb{N_{0}} \\rightarrow \\mathbb{N_{0}}$ satisfying the equation $f(f(n))+f(n)=2n+3k,$ for all &amp; $n\\in \\mathbb{N_{0}}$, where $k$ is a fixed natural number. A friend of mine suggested me to use recurrence relation. While it is unfortunate that I have problems understanding recurrence relation. Please refer information to understand difference equation, homogeneous equation &amp; auxillary equation. Thanks in advance! Kindly don't down vote for not showing my attempt. I am seriously not able to understand the question and the process suggested to use.", "How do I render a Twig template and load a CSS file from a controller? Is this considered a good practice for rendering a Twig template and loading a CSS file from a controller? DefaultController.php namespace Drupal\\acme\\Controller; use Drupal\\Core\\Controller\\ControllerBase; use Drupal\\Core\\DependencyInjection\\ContainerInjectionInterface; use Symfony\\Component\\DependencyInjection\\ContainerInterface; use Drupal\\Core\\Template\\TwigEnvironment; class DefaultController extends ControllerBase implements ContainerInjectionInterface { /** * @var Drupal\\Core\\Template\\TwigEnvironment */ protected $twig; public function __construct(TwigEnvironment $twig) { $this-&gt;twig = $twig; } public static function create(ContainerInterface $container) { return new static( $container-&gt;get('twig') ); } /** * hello * @param string $name * @return string */ public function hello($name) { $template = $this-&gt;twig-&gt;loadTemplate( drupal_get_path('module', 'acme') . '/templates/hello.html.twig' ); $markup = [ '#markup' =&gt; $template-&gt;render([ 'name' =&gt; $name ]), '#attached' =&gt; [ 'css' =&gt; [ drupal_get_path('module', 'acme') . '/assets/css/acme.css' ] ] ]; return drupal_render($markup); } } acme.routing.yml acme_hello: path: '/acme/hello/{name}' defaults: _content: '\\Drupal\\acme\\Controller\\DefaultController::hello' _title: 'acme Title' requirements: _permission: 'access content' hello.html.twig &lt;div class=\"acme-hello-text\"&gt; &lt;h1&gt;Hello {{ name }}!&lt;/h1&gt; &lt;/div&gt;", "On Windows 7 can one make UAC on an admin account prompt for the password, just like a limited account? I am one of the very few who likes the security of UAC and so I have the UAC set to \"Always Notify\" on my Admin account. But I would be even happier if the system would prompt me for a password, when notifying me. I can get what I want by adding a second non-admin user and using that account. But somehow it seems wasteful to have two accounts set up when I will always use the non-admin account day-to-day. So I am wondering if there is any setting that would cause an Admin account to behave password-prompting-wise as a standard account?", "\"Failed to download repository information\" error", "According with Mumford the answer is yes, but there are some obscure points in the proof. We know that there exists a very ample line bundle on $A$ since every abelian variety is projective. Hence, via some corollaries of the Theorem of the Cube, we get an ample line bundle whose restriction to the kernel of $n_A$ is both the trivial bundle and very ample. This should imply that the dimension of $\\ker n_A$ is $0$. Furthermore, Mumford says that the fact that the dimension of the kernel is $0$ implies the surjectivity of $n_A$. Is anybody able to clarify these two points to me? Thanks in advance!", "How to correctly install libpng12-0 on the Ubuntu 19.10? For I need to install libpng12-0 package on the Ubuntu 19.10 system. I know that it is available . So I have decided to download this package manually and install it by hand. On previous Ubuntu versions (such as 18.04 LTS) this trick ends with success, but here on 19.10 it fails in very strange way: wget http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb sudo apt-get install ./libpng12-0_1.2.54-1ubuntu1.1_amd64.deb 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/116 kB of archives. After this operation, 285 kB of additional disk space will be used. Get:1 /home/user/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb libpng12-0 amd64 1.2.54-1ubuntu1.1 [116 kB] Selecting previously unselected package libpng12-0:amd64. (Reading database ... 212864 files and directories currently installed.) Preparing to unpack .../libpng12-0_1.2.54-1ubuntu1.1_amd64.deb ... Unpacking libpng12-0:amd64 (1.2.54-1ubuntu1.1) ... dpkg: error processing archive /home/user/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb (--unpack): unable to install new version of '/lib/x86_64-linux-gnu/libpng12.so.0': No such file or directory No apport report written because the error message indicates an issue on the local system Errors were encountered while processing: /home/user/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) What is wrong here? How can I get libpng12-0 installed on Ubuntu 19.10 system? Note: the same happens on 19.04, but it is near EOL.", "Footnotes in tables? I would like to have footnotes in tables, but the \\footnote command does not work inside a table environment. Googling one finds that this is , at least in the UK. That link contains a list of solutions to the problem, but since the author of the FAQ does not believe that this is good style, no comparison is made between the different methods. I am sure that there are good typographical reasons why in most situations it is undesirable to have footnotes in tables (although I have never come across them), however I have recently felt the need to do just this in a paper I am currently writing. Therefore I'd like to ask two questions: What are the arguments against footnotes in tables? If one really must go against the advice in 1., which method (whether considered in the or not) would you recommend? Thanks in advance. Added In response to ShreevatsaR's comment: I do not much care for where the text of the footnote appears. I do however insist on the footnote marks being attached to the relevant entries in the table, so that I can avoid having to reference \"the second entry in the eighth line of the table\", etc...", "I've read a great article about the . But there are still some points that are unclear. Why do we say... school project but not school's project? car service but not car's service or even cars' service (plural form)? apostrophe usage but not apostrophe's usage or apostrophes' usage?", "Alignment issue in 'Your Sites' section in the Android app There is some unwanted extra spaces in between each site in the Your Sites section. Steps to reproduce: Touch the Nav Icon in the left top corner Touch the EDIT link in YOUR SITES Scroll the screen; there is unwanted spaces in between the each site For reference I recorded the same: Configurations: App Version: 1.0.85 Device Manufacturer: Motorola Device Model: XT1033 OS Version: 5.1 (2)", "Which package can be used to write BNF grammars?", "My kids are playing Minecraft on 2 PCs, creative mode. They are connected by the way of one of them starts a single player game on the other one than joins that game over the LAN. Can I, using Minecraft PE on my iPad, join their game as well?", "Add new JDBC Driver to connect Mathematica to SQL database", "Locking an iPhone if button is broken? My friend's iPhone's sleep/wake button no longer works. Is there any way to turn off the screen besides setting up auto-lock and waiting a few minutes?", "A book on quantum mechanics supported by the high-level mathematics I'm interested in quantum mechanics book that uses high level mathematics (not only the usual functional analysis and the theory of generalised functions but the theory of pseudodifferential operators etc, certainly the modern mathematics). If there isn't something similar please give me a reference to the book that is strictly supported by mathematics (given a set of mathematically descripted axioms author develops the theory using mathematics as a main tool).", "The scroll bar is hidden on MacBook if the user doesn't move the mouse for some time. This pattern is also used in other devices too, for example Android devices. The scroll bar does not take much place but it informs a user of where on page he is. Is it a good approach hiding the scroll bar when the user is presumed viewing the content?", "In my object record type i have created formula field. Now i want my formula field to work as below. If Basement__c = NA and Property__r.Basement__c = NA OR Basement__c = Crawl and Property__r.Basement__c = Crawl OR Basement__c = Slab and Property__r.Basement__c = Slab Then it will return Type__c(formula field) = \"MAtch\" And (Another rule) Basement__c DOES NOT contain any of the following \"N/A,Crawl,Slab,None and Property__r.Basement__c Does not contain any of this then formula field will return \"HAs basement\" How can i achieve this? Please help.", "Custom 500 Error page: Is there a way to theme a fatal error? In /core/includes/errors.inc, when there is a fatal error it outputs a response with the message \"The website encountered an unexpected error. Please try again later.\" and a back-trace, if error_level is set to verbose, and without the back-trace otherwise. It seems like at this point, there's no way, with an event subscriber to capture the response and alter it. Is that correct? Or is there a way to wrap the output from line 268 of errors.inc in Drupal 8.4 with markup? Note, there's another , but that doesn't offer a complete solution. Also, I looked into .htaccess and Apache ErrorDocument directive, but that . Once Apache passes off to PHP, it can no longer use that directive. That's for real server errors.", "How to prove reflexivity, symmetry and transitivity for the following relation?", "To env or not to env" ]
medi_sts_stackexchange_dupe