query
stringlengths
6
215
document
stringlengths
50
1.23k
negative
sequencelengths
15
209
dataset
stringclasses
1 value
Normalization Interval variable
When conducting multiple regression, when should you center your predictor variables & when should you standardize them?
[ "How do I have a camera follow my object in Unity? I have an object that automatically moves by itself and I want the main camera to automatically follow it.(Like in games such as geometry dash and jetpack joyride) This is the code for the automatic moving object in case it is needed: using UnityEngine; using System.Collections; public class automove : MonoBehaviour { public static int movespeed = 5; public Vector3 userDirection = Vector3.right; public void Update() { transform.Translate(userDirection * movespeed * Time.deltaTime); } } So does anyone know any good scripts I could add to the main camera to follow this object that automatically moves? Thanks in advance!", "Proper analyses for 2x2 contingency tables So I have multiple questions about the different types of analyses that can be used on a 2x2 contingency table and when different analyses should be used. To open, I'll note that this stems from my efforts to find the appropriate analyses to run for research using categorical data in a 2x2 contingency table. In my case I have two conditions: control and experimental and within the experimental group there are two items of interest (say, Item A and Item B). In all cases I'm investigating whether an outcome occurs or not: How many experimental participants show the outcome on Item A? How many experimental participants show the outcome on Item B? How many control participants show the outcome? So in addition to comparing Item A with the Control group (A vs. C) and Item B with the Control group (B vs. C), I also want to compare Item A with Item B (A vs. B). My understanding is that for between-subjects comparisons (e.g., A vs. C & B vs. C) a is traditionally used and that for within-subjects comparisons (e.g., A vs. B) that is a common choice. Question 1: is this an accurate understanding of the common choices for statistical tests using 2x2 contingency tables? My follow-up questions, and where most of my confusion lies, are related to what to do when multiple observed cell counts are low (less than 10). I've explored numerous threads here, the Wikipedia pages for different topics (Yates's correction, Fisher's exact, etc.), a few journal articles, and descriptions in R-packages, but I have found conflicting views. Some sources indicate that you should use , others say it's out-dated because, in addition to being overly conservative, it was only preferred because the other options were computationally intense. Others say that you should use , but I've seen additional information suggesting that Fisher's exact test is only appropriate if you know both the row and column totals and that other options (Boschloo, Barnard, etc.) are generally more powerful. However, which of those to use is also not clear. Finally, even others suggest that the Pearson's $\\chi^{2}$ test is appropriate as long as the expected cell counts are not low. I've seen some indication that these arguments occur for McNemar's test as well (e.g., continuity correction & McNemar's exact test). Question 2: Is the assumption regarding cell counts about expected cell counts or observed cell counts? If the observed cell counts are low, does that matter to the type of test that should be used? Question 3: What is an exact test and when should exact tests be used? In addition to answers to these questions, I would also greatly appreciate any suggestions as to books or articles I can read to learn more about this. Part of my struggle with all of this has been just general difficult finding clear information about these topics and how they relate to one another.", "Club filter of $\\kappa$ is $\\kappa$-complete I'm trying to show that club filter of $\\kappa$ is $\\kappa$-complete for uncountable regular cardinal $\\kappa$: Let $\\kappa$ be uncountable regular cardinal, let $C(\\kappa)$ be the club filter generated by $\\kappa$. To show that $C(\\kappa)$ is $\\kappa$-complete it is enough to show that for every sequence $\\langle \\alpha_i\\mid i<\\gamma\\rangle$ with $\\gamma<\\kappa$ and $\\alpha_i$ club of $\\kappa$ the set $\\alpha=\\bigcap_{i<\\gamma}\\alpha_i$ is a club of $\\kappa$. Showing that $\\alpha$ is close is easy: If $\\beta_n$ is a sequence in $\\alpha$ then for every $i$ we that $\\beta_n$ is a sequence in $\\alpha_i$, because $\\alpha_i$ is a club it is close hence $\\lim \\beta_n$ is in $\\alpha_i$ for every $i$ so it is also in $\\alpha$ But I have a problem with unboundedness, my guess will be for each $\\lambda<\\kappa$ to find a sequence for each $\\alpha_i$ such that all of the sequences converge to some $\\mu>\\lambda$, that way $\\beta<\\mu\\in\\alpha$. I think I'll have to use the fact $\\kappa$ is regular, but I don't know how to proceed and prove my idea. So, is my idea correct, and if yes how can I proceed?", "I don't know the command to set our spawn in Minecraft 1.12.1. Is it /set spawn? I honestly can't figure it out. Thanks!", "Shape with a slanted side (responsive)", "Inspired by which states limb loss as a recurring theme, I started thinking about the final lightsaber battle. After watching The Force Awakens the second time, I was not sure if Kylo Ren lost a limb or just lost his lightsaber. We definitely see Rey slash at Ren’s right hand. So knowing that context: Did Kylo Ren actually lose his arm/hand?", "Ignored and watched tags seem broken For the longest time my ignored tags have been working but today they are not. They work on the home page but not the /questions page. However, if you choose the "Gray out questions" option then that fails. Arqade is the only site I've ever had a long-standing ignore list so I don't think I can blame cache. The same behavior seems to be exhibited on Stack Overflow but I added those ignore tags just moment ago so cache could be an issue. If it matters, I am using Chrome x64 v91.0.4472.77 on Windows 10 Via comments, this issue has been confirmed for Watched Tags as well.", "What do parentheses surrounding an object/function/class declaration mean? I'm new to both JavaScript and . In YUI library examples, you can find many uses of this construct: (function() { var Dom = YAHOO.util.Dom, Event = YAHOO.util.Event, layout = null, ... })(); I think the last couple of parentheses are to execute the function just after the declaration. ... But what about the previous set of parentheses surrounding the function declaration? I think it is a matter of scope; that's to hide inside variables to outside functions and possibly global objects. Is it? More generally, what are the mechanics of those parentheses?", "Why is it necessary to sample from the posterior distribution if we already KNOW the posterior distribution? My understanding is that when using a Bayesian approach to estimate parameter values: The posterior distribution is the combination of the prior distribution and the likelihood distribution. We simulate this by generating a sample from the posterior distribution (e.g., using a Metropolis-Hasting algorithm to generate values, and accept them if they are above a certain threshold of probability to belong to the posterior distribution). Once we have generated this sample, we use it to approximate the posterior distribution, and things like its mean. But, I feel like I must be misunderstanding something. It sounds like we have a posterior distribution and then sample from it, and then use that sample as an approximation of the posterior distribution. But if we have the posterior distribution to begin with why do we need to sample from it to approximate it?", "Proving the series $\\sum_{n=0}^{\\infty}\\sin(e\\pi n!)$ converges", "Did all Headmasters get a portrait in Hogwarts? Throughout the Harry Potter series, we see that deceased Headmasters of the school get a semi-sentient portrait of themselves in the Headmaster's Office, at the service of the current Headmaster. Do all Headmasters get a portrait? What are the conditions of getting one? For instance, there are a couple of times when Dumbledore is temporarily deposed as Headmaster: Dolores Umbridge takes over the job in Order of the Phoenix, and Minerva McGonagall takes the job in Chamber of Secrets and Half Blood Prince. Will Umbridge and McGonagall have portraits in the Headmaster's Office when they expire?", "Can I change directory to a Windows drive in Ubuntu Bash on WSL? I am a super newbie for Ubuntu and basically need Ubuntu for a Python package. I would like to run a Python file in say e:/username/folder1/folder2/python.py. I tried every method online and the only reply is bash: cd./e: No such file or directory. I am not sure whether it is because of the bash windows or virtualenv. When I use bash on Ubuntu on Windows, ls, it says VIRTUALENV_DIR. cd, it says /home/username. The cd .. etc changes the directory a little, but not another drive, nor the folder I would like it to find.", "Here is the documents needed. Here are the documents needed. Which is grammatically correct and why? My guess would be the second one because of the plural form.", "Why is diamond transparent while graphite is not? Diamond and graphite are both made of the same atom, carbon. Diamond has a tetrahedron structure while graphite has a flat hexagonal structure. Why is diamond transparent while graphite is not (at least not with more than a couple of layers)?", "In many situations, JavaScript parsers will insert semicolons for you if you leave them out. My question is, do you leave them out? If you're unfamiliar with the rules, there's a description of semicolon insertion on the . Here's the key point: If the first through the nth tokens of a JavaScript program form are grammatically valid but the first through the n+1st tokens are not and there is a line break between the nth tokens and the n+1st tokens, then the parser tries to parse the program again after inserting a virtual semicolon token between the nth and the n+1st tokens. That description may be incomplete, because it doesn't explain @Dreas's example. Anybody have a link to the complete rules, or see why the example gets a semicolon? (I tried it in JScript.NET.) is related, but only talks about a specific scenario.", "This comes from a brain teaser but I'm not sure I can solve it: You are in a rowing boat on a lake. A large heavy rock is also in the boat. You heave the rock overboard. It sinks to the bottom of the lake. What happens to the water level in the lake? Does it rise, fall or stay the same? I'd say that the water level drops, because when you drop the stone in the lake, the water level rises according to the volume of the stone, BUT the water level decreases by a volume of water weighting the stone's weight, when you take it off the boat. Is that correct?", "We put all of our unit tests in their own projects. We find that we have to make certain classes public instead of internal just for the unit tests. Is there anyway to avoid having to do this. What are the memory implication by making classes public instead of sealed?", "Find all number $n\\in \\mathbb N$ such that $\\varphi (n)=14$", "I am looking for the combinatorial argument for the identity: \\begin{equation} k\\binom{n}{k} = n\\binom{n-1}{k-1} \\end{equation} This is easy to show algebraically as: \\begin{equation} \\binom{n}{k} = \\dfrac{n(n-1)(n-2)(n-k+1)}{k(k-1)!} \\end{equation} What is the combinatorial argument? What are some general ideas to get started? Here is a clarification of 2. From what I have seen so far, proving (combinatorially) an identity with an addition sign usually implies that we need to partition a set (this makes sense because of the addition rule and provides a nice visual). On the contrary, the previous observation leads me to believe that multiplication in identities can be resolved with the multiplication principle, but what is the \"visual/interpretation\" for this? Could someone provide such an interpretation for the example identity given above?", "Determine wether the differential equation is stable or not for the following conditions: $x'''(0) = x''(0) = x'(0) = x(0) =0$ $\\frac{d^3x(t)}{dt^3}+\\frac{d^2x(t)}{dt^2}+4\\frac{dx(t)}{dt}+4x(t) = e^t(H(t)-H(t-3))$ Now, I got that the solution to this differential equation reduces x(t) by use of Laplace Transforms, however, how do I determine whether or not it is stable? $x(t) = 0.1e^{-t} + 0.1e^t - 0.1\\sin(2t) + 0.1e^3 (\\sin(2(t-3)) + e^{-t+3}-e^{t-3})*H(t-3)$ Now I first thought I would look at it graphically and I used Matlab software to get a plot as shown below: And from the plot above it clearly appears to diverge (though this is not a proof). Anyone have an idea as to an elegant proof to show the solution is unstable? Anyone help would be greatly appreciated!" ]
medi_sts_stackexchange_dupe
How to get list of installed/enabled modules ready for repopulating new site with drush module installation?
List of all active modules used in a site
[ "Mid 2012 MBP shuts down claiming no power with charge at 30% or 40% or more", "crossfade between 2 videos using ffmpeg", "80's Animated movie: An old man joins mission to save a boy stranded on a hostile world A guy on a space ship picks up a distress call, a boy is stranded on a planet with a hostile environment. He & his crew go to the rescue, stopping on the way to pick up an old man who comes with them. Most of the top of the old guy's skull is metal, from an old injury. They've various adventures on the way (their ship is boarded by pirates/bandits/hostile forces at one point). They get to the planet with the boy. They've limited time to save him as the planet is being moved back in time. (I can't remember why) When they find the boy, he's being attacked by giant wasp-type-things. The boy is injured on the top of his head. The old guy dies protecting him. The boy gets shifted back in time with the planet and - you guessed it - survives, grows up and turns out to be the old guy. Now that I've remembered some of it, the bits I can't remember are driving me crazy. I'd love to see this again, if I could identify it I might be able to track down a copy. I'd swear I saw this mid 80's on morning TV, but it I could be out by 5 years either way. Thanks", "I'd like to typeset documents using the '' of page layout. Good examples are on pages 40-53 of . The package is helpful for this, but two additional features would be useful: Automatic flow of text across (arbitrarily placed) columns / textpos blocks. Vertical line spacing enforced to be an integer multiple of a base line spacing, even when interrupted (for example) by an equation of arbitrary height. Any ideas as to how either or both of these could be accomplished?", "MySQL 5.5.16 allows anonymous connections Apparently, I can connect to MySQL (at least from my localhost) without having to provide any username or password. I can even put anything as username, as long as the password is empty. I have access to the information_schema and test databases. I can create tables. If I run SELECT USER() it returns the proper value randomstring@localhost, where the random string is whatever I used for username when I connected. The mysql.user table contains root@localhost, [email protected], @localhost and pma@localhost. I manually set encrypted passwords to all the records (UPDATE user SET password=...) and only root has any privileges, the other two records have \"N\" for all privileges. That record with the empty username looks suspicious, but I don't think it has anything to do with this and I think it was there from the beginning. To make matters worse, if I add a user with a password, I can only connect using empty string as password (just like if I put anything as username). If I try to connect using the username I created and password I supplied when creating it (CREATE USER .. IDENTIFIED BY ..) it doesn't work. Does anyone know what is wrong and how I can fix this? Note: I am using MySQL 5.5.16 for Windows, provided by the XAMPP package.", "Variable substitution with an exclamation mark in bash", "What causes close votes to be annotated with \"(deleted)\"? In the \"Votes Cast\" section of my profile, my vote to close is annotated with \"(deleted)\": However, the close vote does not appear to have been deleted: it successfully closed the question: Why was this vote marked as \"(deleted)\"? If the vote was deleted my some internal process after the question was closed and the closers were recorded, I call that a . Regardless of what happens internally, it's irrelevant to users if close votes are deleted after they have taken effect.", "Why do some materials reflect (metals) and other materials reflect and refract (glass) from the quantum perspective? Recently I was asked to explain the difference between reflection and total internal reflection from a purely conceptual standpoint (no math). Let me explain what I already know. Reflection and refraction at the quantum level are the same thing. Light is a photon. A photon is a discrete particle that has wave characteristics (a finite wave traveling like a bullet). As the photon travels it collides with electrons in the matter of the medium it is traveling in. Depending on the energy of the photon and the allowed energy bands of the medium the photon cause the electron to jump up a level. If the photon is absorbed then the medium will increase its motion (at the macro scale increasing its temperature). If the photon is not absorbed it will be re-emitted (really as a new photon). I have read and watched Feynman's QED lectures and book and have a pretty good understanding of his process for determining how all these paths come together to give the net path of the photon. The general rule of thumb is that the photon wants to take the path which requires the least amount of time. I understand how this principle goes to explain refraction and reflection. What I don't seem to understand is why does one material seem to cause a higher percentage of refraction compared to another (metal vs. glass). What about the electron configuration of a the medium changes the net effect of the absorption and re-emissions of the photons? Is there a change in the probability of the photon being re-emitted in a reverse direction? Is there a farther distance the photon can travel before being incident onto an electron? This is the part where my understand breaks down. When you have hit the critical angle in a medium that refracts and the light completely reflects, are the photons moving is the same manner as they would be in a material that always reflects? How does this connect to the question in the previous paragraph? I know I have a bunch of mini questions embedded in answering this one larger question. Any help on any of the parts would be greatly appreciated?", "I am trying to model a violin belly and I am intrigued, how is it possible to make faces with soft / rounded edges? The edges I do are totally straight (see the blue amoeba). Also, do you have some idea on how to avoid the edge loops getting too \"compressed\" in the middle of the model (see the red amoeba) ? I know the Subdivision surface modifier, but I want curved edges after applying the modifier... like in this picture : Any help will be very appreciated. Thank you in advance! Marcos 2nd part In fact, I've tryied to model using nurbs and bezier curves, but I wasn't able to find any tool similar to loft that works with curves, then I was forced to convert it in meshes, the results were not terrific and I've started to move the vertices manually, a real pain... Unlike a guitar, each edge loop is on a diferente elevation on z axis and I have to keep the original dimensions, So I have to be extremely careful when using the subdivision suface modifier. I've already modeled this think on three different CAD softwares, but the meshes are far from good... I want to improve the edge loops, but it will be a long path... Thank you again.", "Using separation of variables to solve the wave equation I'm trying to teach myself separation of variables and have been following some notes for the wave equation, but there's one part which really confuses me and I'm not exactly sure how it makes the step. For the wave equation $$u_{tt} - c^2 u_{xx} = 0$$ with length $l$ and fixed ends, $u(0,t)=u(l,t)=0$ we seek a solution in the form $$u(x,t)=v(x)q(t)$$ and substituting this into the equation gives $$\\frac{1}{q(t)}\\frac{d^2 q}{dt^2}=c^2 \\frac{1}{v(x)}\\frac{d^2 v}{dx^2}=-\\omega ^2$$ and I understand all of this so far. But when solving the equation $$q''+\\omega ^2 q = 0$$ the general solution is $$q(t)=A \\cos(\\omega t +\\alpha)$$ where $A$ and $\\alpha$ are constants - which is the part which I'm not exactly sure on how it gets to. Could someone explain this step to me? Thanks!", "How did Draco apparate within Hogwarts?", "I followed Mike's solution from my first question: My next question is how to add entries (for the abstract and acknowledgements pages) into the table of contents.", "How to escape quotes in shell? I'm having trouble with escaping characters in bash. I'd like to escape single and double quotes while running a command under a different user. For the purposes of this question let's say I want to echo the following on the screen: 'single quote phrase' \"double quote phrase\" How can I escape all the special chars, if I also need to switch to a different user: sudo su USER -c \"echo \\\"'single quote phrase' \\\"double quote phrase\\\"\\\"\" Of course, this doesn't produce the right result.", "Using the itemize environment inside a caption", "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.", "What exactly is the difference between a parametric and non-parametric model? I am confused with the definition of non-parametric model after reading this link and . Originally I thought \"parametric vs non-parametric\" means if we have distribution assumptions on the model (similar to parametric or non-parametric hypothesis testing). But both of the resources claim \"parametric vs non-parametric\" can be determined by if number of parameters in the model is depending on number of rows in the data matrix. For kernel density estimation (non-parametric) such a definition can be applied. But under this definition how can a neural network be a non-parametric model, as the number of parameters in the model is depending on the neural network structure and not on the number of rows in the data matrix? What exactly is the difference between parametric and a non-parametric model?", "Comparison theorem for ODE Here is something I'm trying to prove: Conjecture: Suppose $f'(x) \\leq \\phi(f(x), x)$ and $f(a)=\\alpha$. Suppose $g'(x)=\\phi(g(x),x)$ and $g(a)\\geq \\alpha$. Then $f(x)\\leq g(x)\\,\\,\\forall x$. It definitely seems like it should be true, and I don't think we even need continuity of $\\phi$. (Edit: a user has correctly pointed out that we should require $\\phi$ be locally Lipshitz in the first variable, uniformly with respect to the second variable. Let's add that assumption.) I can prove it in the case that the inequality is strict. I'll place my proof below the fold. How can I extend it to weak inequality? If it's wrong, I'd love to see a counterexample. A reference is fine; I have the book by Teschl, for example. A similar question with stronger assumptions was asked . Proposition: Suppose Suppose $f'(x) < \\phi(f(x), x)$ and $f(a)=\\alpha$. Suppose $g'(x)=\\phi(g(x),x)$ and $g(a)\\geq \\alpha$. Then $f(x)\\leq g(x)\\,\\,\\forall x$. Proof: Suppose not. Suppose WLOG there is a $b>a$ such that $f(b)>g(b)$. Let $c:=\\inf \\{x>a:f(x)>g(x)\\}$. By definition of the derivative we have $f'(c)\\geq g'(c)$, a contradiction, since $f'(c)<\\phi(f(c),c)=\\phi(g(c),c))=g'(c)$.", "What is a word/idiom for 'unable to decide'? Let's say I have an important decision to make and I can't decide between two competing things (like break up with a girl or not break up with her). What would be a word/idiom to express that?", "Show that computation of all such expressions will result in the same element of $X$", "conjunction of disjunctions and disjunction of conjunctions $(p∨q) ∧ (p∨r) ∧ (q∨r) \\iff (p∧q) ∨ (p∧r) ∨ (q∧r)$ Without using set theory, how can I prove this using logical equivalences? I've tried to approach this problem with De Morgan and I've also tried the property of distributivity but I keep reaching a dead end. How should I approach this problem? Thank you." ]
medi_sts_stackexchange_dupe
Do Trigger DMLs count on Batch Callouts?
Getting CalloutException when testing Batchable class with Callouts and HttpCalloutMock
[ "I´d like to enable the ssh root access on Ubuntu 14.04. Editing the /etc/ssh_config (PermitRootLogin yes) didn't affect anything.", "Will reformatting my hard drive fix bad sectors on it?", "I'm calculating the covariance of a distribution in parallel and I need to combine the distributed results into on singular Gaussian. How do I combine the two? Linearly interpolating between the two almost works, if they are similarly distributed and sized. provides a forumla at the bottom for combination but it doesn't seem right; two identically distributed distributions should have the same covariance, but the formula at the bottom of the page doubles the covariance. Is there a way to combine two matrices?", "How to align content of a div to the bottom", "$\\mathbb{Q}(\\sqrt{n}) \\cong \\mathbb{Q}(\\sqrt{m})$ iff $n=m$ Page 105 of D. Burton's A First Course in Rings and Ideals reads It is not difficult to show that if (I'll call them $n$ and $m$ instead of $n_1$ and $n_2$) $n$, $m$ are square free integers, then $\\mathbb{Q}(\\sqrt{n}) \\cong \\mathbb{Q}(\\sqrt{m})$ if and only if $n=m$. Well, it is getting difficult for me, any help or would be appreciated. My progress so far: Suppose $\\phi :\\mathbb{Q}(\\sqrt{n})\\to\\mathbb{Q}(\\sqrt{m})$ is an isomorphism. Then $\\phi(u)=u$ for every $u \\in \\mathbb{Q}$, so that $\\phi(\\sqrt{n})^2=\\phi(n)=n$. If $\\phi(\\sqrt{n})=a+b\\sqrt{m}$ for some $a,b\\in\\mathbb{Q}$, then $(a+b\\sqrt{m})^2=a^2+b^2m + 2ab\\sqrt{m}=n$ implies $$a^2+b^2m = n$$ and $$2ab=0.$$ Then $b=0$ cannot happen since that would imply that $\\sqrt{n}\\in\\mathbb{Q}$, where $n$ is a square-free integer. Also $a=b=0$ cannot happen. Hence $a=0$ and we have $$b^2m=n.$$ If $\\psi:\\mathbb{Q}(\\sqrt{n})\\to\\mathbb{Q}(\\sqrt{m})$ were an isomorphism then there would exist some $s\\in\\mathbb{Q}$ such that $$s^2m=n,$$ then $s=b$ or $s=-b$. Therefore the only isomorphisms from $\\mathbb{Q}(\\sqrt{n})$ to $\\mathbb{Q}(\\sqrt{n})$ are $\\phi(u+v\\sqrt{n})=u+vs\\sqrt{m}$ and $\\psi(u+v\\sqrt{n})=u-vs\\sqrt{m}$. I don't know if there's an easier way and I don't know if I'm in the correct way here. Thanks beforehand :)", "I am trying to prove that if I have $f:\\mathbb{R} \\to \\mathbb{R}$ satisfying $\\forall x,y\\in\\mathbb{R},f(x+y) = f(x) + f(y)$. Which is assumed continuous at $0$, that $f$ is continuous on $\\mathbb{R}$ I am fairly sure it is, for that property seems to be a property of polynomials, and we know polynomials are continuous where defined(all reals) Any ideas for rigor? $|x-a| \\lt \\delta \\implies |f(x+a)-f(x)-f(a)| \\lt \\epsilon$ No idea where to go from here, this is my first time doing $\\epsilon-\\delta$ stuff.", "How do you start Windows 10 in safe mode?", "How does a graduate program's admissions committee operate? How does a typical graduate program's admissions committee operate? (In the US --- I understand that in Europe admissions are often structured differently.) My mental model at the moment is several professors sitting in a conference room with a stack of printed applications and a few piles: accept, maybe, and reject. Three or so professors will read an application and then make a decision. If the volume of applications is large enough, multiple meetings might be required. This is purely my imagination --- I don't know how accurate this model is. Of course, I'm sure that how admissions are handled depends greatly on the school, program, and department. I'm interested in a few data points to get a rough idea of what the average is. A few more specific related questions: How much time does a typical committee spend on each application? I suspect there's a distribution. Obviously unqualified applicants will probably have their applications tossed into the reject pile pretty quickly. Qualified applicants' applications might receive more attention. Do admissions committees look online for more information about an applicant? I've read some professors (in CS --- not my field) will look at a student's research/project website, but I have no idea how common this is.", "How can I block app and game invitations once and for all in Facebook? I want to block app and game invitations once and for all in Facebook. How can I do it so they cannot disturb me anymore?", "Add existing ssh key for git", "Recursively delete empty directories in Windows I have a directory on my Windows 7 machine that has hundreds if not thousands of sub-directories. Some of them have files, some do not. I want to delete all the empty directories. Looking at the del and rmdir DOS command, it does not look like you can recursively do this without deleting all the files. Is there a way to do this from the command line?", "I have some HTML menus, which I show completely when a user clicks on the head of these menus. I would like to hide these elements when the user clicks outside the menus' area. Is something like this possible with jQuery? $(\"#menuscontainer\").clickOutsideThisElement(function() { // Hide the menus });", "Can I travel to the UK on different dates from those on my entry clearance? I have a \"Standard Visitor Entry Clearance\" for the UK and will be traveling there from Saudi Arabia. Is it necessary to travel on the same date I provided on my application? Will the Immigration Officer check? Will it make problems if I travel on a different date?", "In many experiments in quantum mechanics, a single photon is sent to a mirror which it passes through or bounces off with 50% probability, then the same for some more similar mirrors, and at the end we get interference between the various paths. This is fairly easy to observe in the laboratory. The interference means there is no which-path information stored anywhere in the mirrors. The mirrors are made of 10^20-something atoms, they aren't necessarily ultra-pure crystals, and they're at room temperature. Nonetheless, they act on the photons as very simple unitary operators. Why is it that the mirrors retain no or very little trace of the photon's path, so that very little decoherence occurs? In general, how do I look at a physical situation and predict when there will be enough noisy interaction with the environment for a quantum state to decohere?", "Proof a $2^n$ by $2^n$ board can be filled using L shaped trominoes and 1 monomino", "A weighted version of random.choice", "I need to group 400 points in 10 groups with 40 points each. The goal is to get the 40 points geographicly together like this: Any idea how to do this with QGIS?", "Excessive fields in biblatex could not be removed if using \\fullcite Combination of biblatex-chicago and Zotero produces many excessive fileds in the bibliography. This problem could be solved by adding to the preambule caveats like this: \\AtEveryBibitem{% \\ifentrytype{online} {} {\\clearfield{urlyear}\\clearfield{urlmonth}\\clearfield{urlday}}} (Described in detail in the answer to my previous question: .) This solution worked well for me, but now I have to produce a syllabus using \\fullcite command. Unfortunately, this solution does not solve the problem for full bibliographic entries outside of the bibliography itself. Here is the code with bibliography inside (to get the author's first and last name in the right order I use the following solution: ): \\begin{filecontents*}{database.bib} @book{dalton_apartisan_2012, title = {The Apartisan American: Dealignment and Changing Electoral Politics}, isbn = {9781452216942}, url = {http://books.google.com/books?id=eYkczUyX5wMC}, shorttitle = {The Apartisan American}, pagetotal = {241}, publisher = {{CQ} Press}, author = {Dalton, Russell J.}, urldate = {2014-04-03}, date = {2012-02-22}, langid = {english}, keywords = {Political Science / Political Process / Elections, Political Science / Public Policy / General} } \\end{filecontents*} \\documentclass[11pt]{article} \\usepackage[hmargin=3cm,vmargin=3cm]{geometry} \\usepackage[onehalfspacing]{setspace} \\usepackage{amssymb,amsmath,amsthm} \\usepackage{booktabs,graphicx} \\usepackage{paralist} \\usepackage{cancel,soul} \\usepackage{enumitem} \\usepackage[authordate,backend=biber,bibencoding=utf8,bookpages=false,doi=only,isbn=false,footmarkoff]{biblatex-chicago} \\usepackage[colorlinks, pdfstartview={XYZ null null 1.25},bookmarksopen=true,bookmarksopenlevel=\\maxdimen,citecolor={blue},urlcolor={blue}]{hyperref} \\addbibresource{database.bib} \\DeclareCiteCommand{\\fullcite} {\\usebibmacro{prenote}} {\\usedriver {} {\\thefield{entrytype}}} {\\multicitedelim} {\\usebibmacro{postnote}} \\AtEveryBibitem{% \\ifthenelse{\\ifentrytype{article}\\OR\\ifentrytype{book}\\OR\\ifentrytype{collection}\\OR\\ifentrytype{incollection}\\OR\\ifentrytype{mvbook}\\OR\\ifentrytype{mvcollection}\\OR\\ifentrytype{mvincollection}} {\\clearfield{month}\\clearfield{url}\\clearfield{doi}\\clearfield{urlyear}\\clearfield{urlmonth}\\clearfield{urlday}}} \\begin{document} \\begin{center} {\\huge Partisanship in Old, New and Non-Democracies}\\\\ \\end{center} \\vspace{30pt} \\noindent\\textbf{Instructor: } \\hfill \\textbf{Time and Location:} TBA\\\\ \\textbf{Contact:} \\hfill \\hfil \\textbf{Office Hours:} TBA\\\\ \\vspace{-20pt} \\subsection*{Partisanship in the United States} \\begin{enumerate} \\item \\parencite{dalton_apartisan_2012} \\item \\fullcite{dalton_apartisan_2012} \\end{enumerate} \\printbibliography[heading=bibintoc] \\end{document} Here is the output. Note the excessive fileds in the in-text full citation (they are absent in the References): Any help, especially simple acessible solutions would be greatlly apreciated.", "I would like to open 4 Notepad++ windows at once, in the same pannel. Currently, I am only able to split it into two, and would like to know if there is a plugin that enables 4 views at at same time, or 3. thanks", "Well, may be this is not really useful, but I've thought if it was possible to put all the document in one long page. I mean, if your document is going to be read in a computer, mix all the pages in a continuous page. If your document has 90 pages (A4), where each one is 21cm by 29.7cm the continuous document should be (more or less) one page which is 21cm by 90 · 29.7 = 2673cm. Is this possible? EDIT: Some things I would like to achieve: The \\newpage, \\chapter{}, \\part{}, etc. shouldn't go to a new page, they should only add more vertical space. The package pdfpages should add the pages continuously with almost no space between them. The titlepage, in this case, has a different color, so it could go alone in a basic A4 page (just to make things easier). Question Is this possible?" ]
medi_sts_stackexchange_dupe
Why doesn’t Quicksilver’s speed cause a sonic boom, lethal to anyone around him?
Why doesn't Quicksilver create sonic booms?
[ "How can I sum two values and store the result in other variable?", "find() function in python2.7.5", "Solder new RAM in a 2015 Retina MacBook Pro I know that the new rMBPs have no \"user-serviceable\" RAM. But is it possible to solder a new RAM chip onto a 2015 rMBP? Given that the technician doing this is able to install the new chip without damaging anything, would it work?", "Can I travel to Germany from a country different from the one I got the visa from?", "How to delete all lines that do NOT contain a certain word in Vim? In vim I can delete all lines that contain the word \"price\" with this :g /price/d How can I delete all lines that do NOT contain the word \"price\"?", "What makes frictional force the centripetal force of a car turning along a curve? As friction is the opposing force and acts anti-parallel so there is no component of frictional force towards the center,right? Then how can frictional force be centripetal force?", "How do I go about porting Ubuntu Touch to different devices?", "High CPU usage by \"System\" and \"System interrupts\" (caused by ACPI.sys) I have a laptop, which was running Windows 8.1 x64 without any problems. Now with Windows 10 x64 installed, Task Manager constantly shows unusual CPU usage by \"System\" and \"System interrupts\". To solve this, I already tried the following, without success: Disabling and uninstalling all non-essential drivers. Installing newer drivers than the ones that were automagically installed (if available). Disabling/enabling fast boot option. Disabling all of the non-essential services. Sysprep. Resetting BIOS to defaults and various combinations of settings. Flashing BIOS to the latest available version. Clean install from the same media that I use for other PCs. Installing all of the updates offered in Windows Update to this day. Windows Performance Recorder / Analyzer. I'm not very familiar with Windows Performance Analyzer, so I'm hoping someone here can point me in the right direction - what exactly should I look for, to figure out which device/driver is the culprit. Or, if there's any other approach to figuring out this problem? For the brave souls, here's my and a screenshot of the problem:", "Finding where source has branched from git", "cardinality of the set of $ \\varphi: \\mathbb N \\to \\mathbb N$ such that $\\varphi$ is an increasing sequence I know that the set of functions $ f:\\mathbb N \\to \\mathbb N$ is uncountable, but what if we consider only $f$ such that $f$ is increasing? I want to know if this set is countable D: and also the case of bijective and increasing (clearly if the firstone holds then this too). I think that it could be possible that it's countable", "What is the relationship between the focal length and field of view for an equal-area (\"equisolid\") projection fisheye lens? Alternatively, what is the relationship between the 180-degree image circle size and the focal length for such a lens? Ultimately I want to find the field of view of a Tokina 10-17 mm fisheye zoom at focal lengths other than 10 mm on APS-C ().", "Stein's lemma condition (Apologies if I break some conventions, this is my first time posting!) I am working on proving Stein's characterization of the Normal distribution: for Z $\\sim N(0,1)$ and some differentiable function $f$ with $E[|f'(Z)|] < \\infty$, $$E[Zf(Z)] = E[f'(Z)]$$ Writing the LHS expression in integral form and integrating by parts, I eventually obtain: $$E[Zf(Z)] = \\frac{1}{\\sqrt{2\\pi}} \\left[ -f(z) \\cdot \\exp \\left\\{ \\frac{-z^2}{2} \\right\\} \\right] \\Bigg|_{-\\infty}^{\\infty} + E[f'(Z)]$$ Now I need to show that the first expression on the right hand size is zero. Intuitively, this seems clear because of the exponential term, but I am having trouble explicitly applying the condition on $f'$ to prove this rigorously. Any ideas?", "Why do not we ask negative questions without a contraction on the not after the verb? I have found multiple questions touching on this but not a single one that has a comprehensive answer. The information is all there but in little bits. etc. Exactly why is \"Do not you sleep?\" ungrammatical (except in poetry/with artistic license)? I understand that not can't contract after you: \"Do you not sleep?\" because not can only contract after a verb, and that it always does after do: \"Don't you sleep?\" but why does it (why must it) contract if it's placed after the verb in a question? Don't you sleep? (common form) Do not you sleep? (ungrammatical) Do you not sleep? (less common form)", "How to install Windows 7 from the network? Is it possible to install Windows 7 (Current RTM Version) on a computer without using removable media like DVD or USB? The first thing that comes to my mind is through the network, but I don't have experience of doing a fresh install of Windows 7 via the network. How to install Windows 7 via the network without any removable media? P.S. I know some may think that doing so, is just a waste of time and it's easier to do it with removable media, but in the current situation the target PC neither has CD/DVD Drive nor supports booting from USB. And in addition to that, the target computer is connected to the network via a wireless connection (I don't know if it will cause any problems with the installation).", "Displaying row/column of point in raster using QGIS?", "My Prof wrote that $\\sum_{n=2}^{\\infty} n(n-1)x^{(n-2)} = \\frac{2}{(1-x)^3}$ when $-1< x<1$ I do not understand where the above formula comes from. Can someone please explain the steps or provide a hint? Thanks!", "I'm asked to show that $a^{61} \\equiv a\\pmod{1001}$ for every $a \\in \\mathbb{N}$. I've tried to tackle this using Fermat's Little Theorem and Euler's Theorem, but I can't even get started. My main problem seems to be the \"for every $a \\in \\mathbb{N}$\" part, because if it restricted $\\gcd(a, 1001) = 1$ I would be able to factor out 1001 and try to show that it's factors divide $a^{61} - a$. I'm kinda lost here. Any help is appreciated.", "I am trying to rotate a dual monitor which is attached to the VGA output of my laptop. My system is Ubuntu 15.10. However, here is the outcome I get when I use xrandr: xrandr --output VGA-1-0 --rotate right xrandr: output VGA-1-0 cannot use rotation \"right\" reflection \"none\" I have seen other posts on this subject, which all recommend editing xorg.conf. I have tried that, too. Here's my current xorg.conf file: Section \"ServerLayout\" Identifier \"layout\" Screen 0 \"nvidia\" Inactive \"intel\" EndSection Section \"Device\" Identifier \"intel\" Driver \"modesetting\" BusID \"PCI:0@0:2:0\" Option \"AccelMethod\" \"None\" Option \"RandRRotation\" \"True\" EndSection Section \"Screen\" Identifier \"intel\" Device \"intel\" EndSection Section \"Device\" Identifier \"nvidia\" Driver \"nvidia\" BusID \"PCI:1@0:0:0\" Option \"ConstrainCursor\" \"off\" Option \"RandRRotation\" \"True\" EndSection Section \"Screen\" Identifier \"nvidia\" Device \"nvidia\" Option \"AllowEmptyInitialConfiguration\" \"on\" Option \"IgnoreDisplayDevices\" \"CRT\" Option \"RandRRotation\" \"True\" EndSection Still, I keep getting the same error when trying to use xrandr to rotate that screen. Is there another way of doing so?", "Determining \"level\" of an NPC ally for purpose of budgeting encounter XP", "Photoelectric effect intensity I understand the PE effect quite well but I'm failing to understand one thing. Intensity is the amount of energy per second incident to a given area. So can you can increase the intensity by either increasing the electrical energy or making the area smaller? By increasing the electrical energy, what exactly is happening? I assume that by increasing intensity you are increasing the number of photons incident to an area of the metal thus increasing the rate of photoelectric emission. But why doesn't increasing intensity via more electrical power lead to greater energy of the electrons, if by increasing intensity you are increasing the energy of the incident waves? I understand the results but I'm trying to understand why the intensity works the way it is thanks" ]
medi_sts_stackexchange_dupe
How to create a directory for everybody?
How can I share a directory with an another user?
[ "I'm trying to prove commutativity of addition for vector spaces, using the axioms for vector spaces. Apparently commutativity can be proven! Im having trouble getting a good feel for what is allowed and what is not. Here's my work so far: $u+v+u+v = 2(u+v) = 2u + 2v = u+u+v+v = u+(u+v)+v$ Here I just wanna claim that $u+(v+u)+v = u+(u+v)+v$ $\\Rightarrow -u+u+(v+u)+v+(-v) = -u+u+(u+v)+v+(-v)$ : here im just adding -u to the right, and -v to the left. Question: is this \"adding to both sides\" really legit in this context? Why? Quick help proof: $-v+v = (-1)v+(1)v = (-1+1)v = 0v = 0 = v-v$ And another: $ 0+v = v+(-v) + v = (1)v + (-1)v + v = (1-1)v + v = v = v+0$ We have $0 + (u+v) + 0 = 0+(v+u)+0 \\Rightarrow u+v = v+u$ This feels ugly and not at all elegant, especially the great leap \"add -u to both sides\" feels completely out of place. Do I need more lemmas? Is there a more elegant way? //not homework or anything, just for my own pleasure, feel free to provide theory, as it is more insightful than solutions. :) Thanks! EDIT: corrected notation a little.", "How to prevent click events on the document body (maybe a bug in Cordova?)", "How to dismiss the Windows 8.1 Upgrade banner? As of today, my Windows 8 system is displaying a large banner covering about a quarter of the screen, demanding that I upgrade to Windows 8.1 for free. The banner helpfully informs me that that I can continue to use the computer while the upgrade is downloading. There's a button to go to the store for the upgrade, but no other choices, such as No Thanks, Maybe Later, or Absolutely Not. I can't find a way to dismiss the banner, and I can start programs but can't give them focus while the banner is present. So I'm dead in the water. How can I fix this? Bringing up Task Manager doesn't give me any options. My employer doesn't yet support Windows 8.1 (which is also an issue, but beyond my control) so I won't be able to connect to work if install the upgrade. So there is no way on God's green earth that I'm going to install this upgrade now. UPDATE: The banner went away after the second restart and I was able to run regedit as @magicandre suggested. The banner hasn't reappeared. So far, so good.", "Storing two kinds of point geometry in shapefile or creating multipoint shapefiles? Following , can I have a mixture of two kinds of geometry in a shapefile of type point. Just like I have about shapefiles of type polygon or I should always create a shapefile of type multipoint in order to support multipoints in my layer? My problem is as you see at , I can't use ogrinfo in order to understand that the geometry type of a multipoint shapefile will be known as wkbMultipoint or wkbPointwhen I use this line of code: OGRwkbGeometryType GeometryType = poLayer ->GetGeomType(); for a layer of type multipoint before programming. Will OGR know a layer of type multipoint as wkbpoint or wkbmultipoint? When we create a shapefile in ArcCatalog, we have point and multipoint, but not multipolyline or multipolygon for polyline and polygon.Why?", "What is the correct output of cat /etc/apt/sources.list?", "Is there ever a time to create a user for a company? I'm wondering if there's ever a reason or time when a company should have its own user (like say, Stack Overflow), instead of users that make it up (like, Jeff Atwood). I figure this is kind of a bad idea as someone with access to multiple accounts could upvote himself over and over.... but is there any point this is okay and/or a good idea?", "What is color temperature and how does it affect my photography?", "In indirect speech we generally backshift the tense. For ex - Direct speech : \"I am the most powerful person.\" Indirect speech : \"He said that he was the most powerful person.\" What if someone reports like - He denied the charges claiming that he is/was the most powerful person. So here which is correct- is or was ? Thanks in advance.", "Show that if $\\lim_{x\\to a}f'(x) = A$ then $f'(a)$ exists and equals A I ran across this problem in my Analysis class and can't seem to come up with a good solution. Here's the question: Show that if $\\lim_{x\\to a}f'(x) = A$ then $f'(a)$ exists and equals $A$. $f$ is continuous on $[a,b]$ and differentiable on $(a,b)$. I tried applying the Mean Value theorem like this: There exists a $c \\in (a, x)$ st $f(x)-f(a)=f'(c)(x-a) \\implies \\frac{f(x)-f(a)}{x-a}=f'(c) \\implies f'(a)=\\lim_{x\\to a}\\frac{f(x)-f(a)}{x-a}=\\lim_{c\\to a}f'(c)=A$ However, I think this is wrong. I am pretty sure the Mean Value theorem is needed, but my application of it seems to be incorrect. Would somebody be able to point me in the right direction?", "Conjugate Variables, Noether's Theorem and QM", "How to show this property of $\\mathbb{RP}^{n}$. To prove that: The $n$-dimensional projective space can be presented as: $\\mathbb{RP}^n=\\bigcup_{i=0}^{n} A^{i}$. (The intersection of each two $A^{i}$ is empty)، $A^{i}$ is isomorphic to $\\mathbb R^{i}$ ($A^{0}$ includes only one point). The definition of $\\mathbb{RP}^n$ is: $\\mathbb{RP}^n= (\\mathbb R^{n+1} \\setminus \\{0\\})/ \\sim$ , $\\sim$ is defined as: $x \\sim \\lambda x$for all $\\lambda\\in \\mathbb R^\\times$ and $x\\in \\mathbb R^{n+1} \\setminus \\{0\\}$. $\\mathbb R^\\times $ is the productive group of scalars $\\ne0$ in the field $\\mathbb R$. I'm just a beginner in this field so any help would be appreciated.", "How does Intel Turbo Boost work? I just got a new Intel CPU, and the specifications say 3.5GHz but with turbo boost to 3.9GHz. What does Intel Turbo Boost do? From the description it sounds like they are saying \"The road's speed limit is 100 km/hr, but if you get to that speed then the new speed limit is 140 km/hr\". Why not just set the clock speed to 3.9GHz to start with? So what is Intel Turbo Boost actually doing?", "Is $n^{th}$ root of $2$ an irrational number? Possible Duplicate: Will every $n^{th}$ root of $2$ be an irrational number? If yes, how can I prove that?", "php function for collating external variables into a single object regardless of GET or POST I recall reviewing someone else's PHP code once and he had a function or class method that rolled all GET and POST variables into a single plain old object that could then be passed around. If the same name-value pair appeared in both GET and POST, POST would win. Is there a well-coded PHP add-on out there of any sort that does exactly this?", "Recently, I was doing my homework and I found out that Torque can be calculated using $\\tau = rF$. This means the units of torque are Newton meters. Work & Energy are also measured in Newton meters which are Joules. However, torque isn't a measure of energy. I am really confused as why it isn't measured in Joules.", "Converting ArcGIS (*.mxd) file to QGIS (*.qgs) file?", "My wireless has suddenly became disabled by hardware switch, BIOS, rfkill, fn+f8 do nothing", "Using Regular Expressions to Extract a Value in Java I have several strings in the rough form: [some text] [some number] [some more text] I want to extract the text in [some number] using the Java Regex classes. I know roughly what regular expression I want to use (though all suggestions are welcome). What I'm really interested in are the Java calls to take the regex string and use it on the source data to produce the value of [some number]. EDIT: I should add that I'm only interested in a single [some number] (basically, the first instance). The source strings are short and I'm not going to be looking for multiple occurrences of [some number].", "When abstract logic circuits get translated to the electrical equivilant, how are conversions from 0 to 1 handled? I've searched around and there's lots of good information out there, but I'm a bit of a n00b when it comes to the precise meanings of words like current, voltage, amplify, resistor, diode etc. So what at first presents itself as a simple explanation quickly turns into a wikipedia tabfest of ever increasing complexity. With that in mind please forgive my probably inaccurate use of these terms in this post. The basic problem for me is that gates on a logic circuit appear to be creating power from nothing, which is impossible. For example imagine two NOT gates connected in sequence: To my uninitiated mind what seems to be happening is that the first NOT gate cuts the power to the second NOT gate, which responds by magically conjuring new power out of thin air and sending it on it's way. The only explanation I can come up with feels a bit redundant and absurd (That every single gate on the diagram is implied to be directly connected to a power source) The closest I've come to an answer is something to do with changing the \"signal\" from \"high\" to \"low\" but again, I'm not familiar enough with the language. It still suffers from the same problem, if you've got a low signal how is it that a NOT gate can turn it into a high one without directly drawing on a power source? To wrap up and present the question in all it's rookie glory: How do logic gates physically convert 0 to 1 without violating the law of conservation of energy?", "I install virtualBox on Ubuntu 16.04, but after install and create new virtual Host shows this error: Kernel driver not installed (rc=-1908) The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please install virtualbox-dkms package and load the kernel module by executing modprobe vboxdrv as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary. where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT. How to address this modprobe vboxdrv error?" ]
medi_sts_stackexchange_dupe
Ajax click function doesn't work after load content
Event binding on dynamically created elements?
[ "How to get my own IP address and save it to a variable in a shell script?", "How to prove this sequent using natural deduction? How do I prove $$S\\rightarrow \\exists xP(x) \\vdash \\exists x(S\\rightarrow P(x))$$ using natural deduction? Just an alignment of which axioms or rules that one could use would be much appreciated.", "How exactly does Knuth's Up-Arrow notation work? I've done some research, and found this on Wikipedia. \\begin{matrix}a\\uparrow b=a^{b}=&\\underbrace {a\\times a\\times \\dots \\times a} \\\\&b{\\mbox{ copies of }}a\\end{matrix} \\begin{matrix}a\\uparrow \\uparrow b&={\\ ^{b}a}=&\\underbrace {a^{a^{{}^{.\\,^{.\\,^{.\\,^{a}}}}}}} &=&\\underbrace {a\\uparrow (a\\uparrow (\\dots \\uparrow a))} \\\\&&b{\\mbox{ copies of }}a&&b{\\mbox{ copies of }}a\\end{matrix} I'm still a bit confused on this topic. I've done a lot of research, but I can't seem to understand this. Could somebody explain this in an understandable way? From what I can gather, for example 2↑↑3 would be 2^2^2 = 16? Then 2↑↑↑3 would be 2^2^2^2 = 256? Am I correct, or have I mis-interpreted this?", "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?", "Could give some examples of nonnegative measurable function $f:\\mathbb{R}\\to[0,\\infty)$, such that its integral over any bounded interval is infinite?", "We login to applications almost every day. The password is stored in our fingers, as an automated process (if they have used it long enough). When users realize they have entered a wrong character (before hitting login-button) they erase the whole password, and retype the entire password – instead of just the last wrong character. Question is why? – Wireframes created with", "This is a question that arose in the comments here: I normally hide footnotes from the TOC by doing this: \\section[title]{title\\footnote{This is a footnote.}}. This works in a lot of document classes (memoir, article, ...), but not in all of them. amsbook, for example, uses the optional argument only for the running heads so the footnote mark still ends up in the TOC. So what is the 'universal solution'?", "Are neutrinos affected by electromagnetic forces? I know they don't interact with matter nor any electromagnetic forces, but I know they have mass, very little mass but they have. When something has mass it must be attracted by gravity and other objects (electromagnetic) right?", "Copying protected files between servers in one line? I'd like to copy squid.conf from one server to another. The servers don't talk to each other. I'd like to go through my workstation. Both servers have the file, so it will be overwritten on the target. The files have 600 permission and are owned by root. root login via ssh is disabled (PermitRootLogin no). I'd like to do it in one line, if possible, since it will be a part of a setup guide. I know to do ssh source 'tar czpf - -C /etc/squid/ squid.conf' | \\ ssh target 'tar xzpf - -C /etc/squid/' to copy files between servers and preserve permissions. However, in this case I will get \"Permission denied\". I also know I can do this: ssh -t source 'sudo cat /etc/squid/squid.conf' This way the -t allows sudo to ask for the admin password before outputing the content of the file. The problem is, I don't know how to combine those techniques into something that will ask for the sudo password on each server, and transfer the file to its destination. Is this possible? UPDATE: Here's the best I could come up with: ssh -t source 'sudo tar czf /tmp/squid.tgz -C /etc/squid squid.conf' && \\ ssh source 'cat /tmp/squid.tgz' | \\ ssh target 'cat >/tmp/squid.tgz' && \\ ssh -t source 'sudo rm /tmp/squid.tgz' && \\ ssh -t target \\ 'sudo tar xzf /tmp/squid.tgz -C /etc/squid && sudo rm /tmp/squid.tgz' Calling this a one-liner seems like a stretch. I think I'll just break it down to separate steps in the setup guide.", "Executing .bat file", "Explain why $\\mathbb{Z \\times Z}$ and $\\mathbb{R \\times R}$ is not a field and that why any external direct sum of two fields cannot be a field. I believe it has much to do with the lack of every non-zero element having an inverse, however I am having difficulty seeing it.", "The earth is not a sphere, because it bulges at the equator. I tried fiddling with centripetal force equations and gravity, but I couldn't derive why this bulge occurs. Is there (a) a mathematical explanation using forces (not energies) and (b) a simple intuitive explanation to explain to others why the bulge occurs?", "How is the optimal probability cut-off in a ROC defined by the R package Epi? The plot below was created by R package Epi::ROC for a binary classification problem. There is an optimal cut off or threshold for the classification probability at which sensitivity and 1-specifitiy are balanced in some optimal way (called ps3 in the plot). My question is how this point is defined mathematically in this case and if there are other ways to define it.", "How to get information about deb package archive? How to get information about .deb package archive? Like: package information, version, installed-size, architecture, description and licensing information etc. from .deb package archive?", "Researching English/Christian families in India during first half of 19th century?", "How can I make my local repository available for git-pull?", "Is my sugar daddy scamming me", "Why should the minimal class be avoided?", "Just noticed a minor css issue on this question: The related questions on the right hand side have some overlapping text in Chrome: (This only applies to this very site, Meta Stack Exchange)", "Is it possible to get a fully transparent window in Pygame (see the desktop through it)? I've found how to create a window without a frame, but there doesn't seem to be any obvious way to make it transparent. I'd be willing to tie into system-specific technology/frameworks as long as there are solutions for both Windows and Mac OS X, but I'm not sure which direction to be looking. The only topic I was able to find , which isn't something I can do for this particular project (needs to be Pygame)." ]
medi_sts_stackexchange_dupe
Backup Fails after upgrade to 20.04
How do I restore the default repositories?
[ "Checkbox in listview control Can you have a multicolumn listview control where one of the columns is a checkbox? Example code or links would be greatly appreciated. I am using visual studio 2005", "Ephemeral error message: \"cryptsetup: unknown fstype, bad password or options?\"", "If a SHA256 hash with high entropy is then hashed with one made from low entropy, is the resulting hash higher/same/lower entropy? If one were to create a SHA256 hash using 256 coin flips converted to hex (which, as I understand it, is as \"entro-phized\" as one can capture in SHA256) then take that hash as a string, combine that with a hash of the word \"cat\" and hash the resulting 512 character string, would the resulting hash from that exercise be any less random than our \"perfect\" hash we began with? My thinking is the final string would capture the same amount as the original randomness as what we started with because the \"extra\" entropy can not be captured and is lost. Is this the case and am I thinking about this correctly? Would hashing something with high entropy with something simpler ever cause a lower amount of randomness or does it only go up? Thanks to anyone who can help explain this a little better.", "Is \"I am sat\" bad English? I believe it is incorrect and instead either the present continuous I am sitting or the predicate adjective I am seated should be used. I hear this quite often, however, and ultimately usage overrules formality. Does anybody know where this originated or how to describe it grammatically?", "Fortunately, I can still login with this email address that I have lost access to. I have been searching around here for a way to update it to the current one I use. I have found many answers. But they all give instructions to click on something not displayed or in one case, a page that prompts me to login via another email I no longer have the password for. I need current up to date instructions on how to change my email address or add another email-based login for this same user name that I am posting this with.", "How to disable X server autostart in Debian Jessie?", "Spaces in variable assignments in shell scripts What is the difference between below variables assignments? var=23 var =23 var= 23 var = 23 Is there any difference in space around the assignment operator?", "Given two ciphertexts $c_1 = enc(p_1)$ and $c_2= enc(p_2)$ using any additive homomorphic encryption scheme (or specifically Paillier). Can we find out whether the underlying plaintexts $p_1,p_2$ are equal without decrypting $c_1,c_2$ i.e. homomorphically?", "If two coins are flipped and one gets head, what is the probability that both get head?", "How to fix very slow Ubuntu booting?", "Linear regression in a loglog-plot with fixed slope Goal: create a plot to compare the empirical convergence rate of a numerical method with the one expected from the theory. Accordingly, given a loglog-plot, I would like to add the line which has a prescribed slope (in this case, the convergence of the method) and the best intercept to fit the data (e.g., in a least-square sense). Question: how to do a linear regression with fixed slope in pgfplots? What I have done so far is the following: (1) compute the regression line (of the logarithm of the quantities), (2) save the intercept, (3) plot the line with the slope expected from the theory and this intercept. This is a good approximation of what I am looking for, provided the data are in agreement with the theory. Thanks MdFB", "Other explanation for cosmological redshift?", "How do I calculate areas of an area shapefile in square meters (m²) or in acres (ha)? I didn't find that functionality in the Vector Tools.", "Number of pairs of strings satisfying the given condition We are provided with a string A (may contain repeated characters as well ). One needs to make all possible permutations of A , and find out how many pairs of strings chosen from these permutations are not similar. Two strings are similar if we can make both of them exactly same by carrying out at most 1 swap in each of them . Example :- if we are provided with string abcd , then for permutation abcd , the permutations which are not similar to it are bcda , bdac , cadb , cdba , dabc , dcab . Similar is the case for other permuations as well. So overall number of desired pairs are 24*6=144 . I tried solving it for each possible pair by approach mentioned here But as the permutations can be large enough , I need a better approach of solving this.", "One confusion over conditional expectation Suppose for two random variables $X_1$ and $X_2$ $\\sigma(X_1) = \\sigma(X_2)$. Why $E[Y | X_1] = E[Y | X_2]$ a.e. ? the set where $X_1= X_1(\\omega)$ can be different from the set $X_2= X_2(\\omega) $. How can then conditional expectation conditioned on the event can be equal ?", "Recently I have been working on a mini-game that gives a few players custom spawn eggs. I want the mob to simply have a name and be on a team. I'm attempting to use this command: /give @p[x=-102,y=48,z=81,distance=..1] shulker_spawn_egg{Team:PurpleTeam,CustomName:\"\\\"Purple Turret\\\"\"} It does give the player a spawn egg, but the resulting shulker spawn does not have a team or a name. Any ideas why this isn't working?", "If $f:E\\rightarrow S$ is an elliptic curve over a scheme $S$ (so $f$ is proper and smooth of relative dimension one with geometrically connected fibers of genus one, equipped with a section $0:S\\rightarrow E$), then is the sheaf $\\underline{\\omega}_{E/S}:=f_*\\Omega_{E/S}^1$ actually free of rank one? According to the statement of Grothendieck-Serre duality in Hida's book Geometric Modular Forms and Elliptic Curves, there should be a canonical isomorphism $\\underline{\\omega}_{E/S}\\cong\\mathcal{Hom}_{\\mathscr{O}_S}(R^1f_*\\mathscr{O}_E,\\mathscr{O}_S)$, and the first result on elliptic curves in this book is that $R^1f_*\\mathscr{O}_E\\cong\\mathscr{O}_S$. It's also not clear to me whether $S$ is being assumed (locally) Noetherian, but if that's necessary for Grothendieck-Serre duality to hold, then I'm fine with assuming it. I can't find another reference with a statement of Grothendieck-Serre duality in this generality which does not use the language of derived categories (which I unfortunately don't understand). The reason I'm kind of skeptical about this is that in Hida's book, as well as in Katz-Mazur, it is said that $\\underline{\\omega}_{E/S}$ is invertible, so that an $\\mathscr{O}_S$-basis $\\omega$ for $\\underline{\\omega}_{E/S}$ can be found locally on $S$. If the invertible sheaf in question were really trivial then one would be able to choose a global $\\mathscr{O}_S$-basis for $\\underline{\\omega}_{E/S}$, and there would be no reason to talk about doing so locally. Hida goes on to say that, choosing an $\\mathscr{O}_S$-basis $\\omega$ locally on $S$ allows one to regard $(\\Omega_{E/S}^1,\\omega)$ as a relative effective Cartier divisor in $E/S$, which also doesn't make complete sense to me because if we can only find $\\omega$ locally, how are we getting a global section $\\omega\\in H^0(E,\\Omega_{E/S}^1)=H^0(S,\\underline{\\omega}_{E/S})$ (unless $\\underline{\\omega}_{E/S}$ really is trivial)?", "Book series about aliens who put \"caps\" on people to control them", "Why is the Star Trek 2009 reboot called a reboot? Doctor Who (2005) isn't called a reboot. It is called a continuation of the old series. This was made possible by that regeneration ju-ju and stuff. On the other hand, Star Trek 2009 reincarnation is often called a reboot. Nobody dared call it continuation. I don't think I need to do citation because it's common. Now, if we actually go into the details: The new universe contains two Spock. One is from the original timeline. The Spock Prime even gives data from the original timeline like trans-warp equation, Khan etc. We see other past data from before the timeline diverged. For example, Scott told that he transwarped Admiral Archer's dog. \"Archer's dog\" existed in Star Trek: Enterprise TV series. So, why didn't the legacy survive in-universe? Why isn't it considered a continuation of the old Star Trek TV shows and movies? Or, is the reboot word used by mistaken fans and media only? Update: After the release of Star Trek: Beyond (2016), this is no longer a confusion as the movie showed a photo from original timeline.", "When to use static classes in C# Here's what : static class CompanyInfo { public static string GetCompanyName() { return \"CompanyName\"; } public static string GetCompanyAddress() { return \"CompanyAddress\"; } //... } Use a static class as a unit of organization for methods not associated with particular objects. Also, a static class can make your implementation simpler and faster because you do not have to create an object in order to call its methods. It is useful to organize the methods inside the class in a meaningful way, such as the methods of the Math class in the System namespace. To me, that example doesn't seem to cover very many possible usage scenarios for static classes. In the past I've used static classes for stateless suites of related functions, but that's about it. So, under what circumstances should (and shouldn't) a class be declared static?" ]
medi_sts_stackexchange_dupe
Why doesn't reputation update on my Careers page?
why is my careers profile reputation lower than my actual repuation?
[ "As I navigate through physics stackexchange, I noticed . Electrons radiate light when revolving around nucleus? Why is it so obvious? Note that I do not know anything about quantum mechanics - and I just want classical stories.", "How do I create a public view from a private view It seems like I can't modify a private view to be public, or duplicate a private view to be public. Am I restricted to copying by hand all the settings of my private view, then creating a fresh public view and selecting all the right columns in the same order with all the sort and filter options?", "Is there a way to show that $\\sqrt{p_{n}} < n$? Is there a way to show that $\\sqrt{p_{n}} &lt; n$? In , I show that $f_{2}(x)=\\frac{x}{ln(x)} - \\sqrt{x}$ is ascending, for $\\forall x\\geq e^{2}$. As a result, $\\forall n \\geq 3$ $$\\frac{p_{n}}{ln(p_{n})} - \\sqrt{p_{n}}\\leq \\frac{p_{n+1}}{ln(p_{n+1})} - \\sqrt{p_{n+1}}$$ Also (and as a result), $\\forall n \\geq 3$ $$ \\frac{p_{n}}{ln(p_{n})} - \\sqrt{p_{n}} &gt; 0$$ Or $$ \\frac{\\pi (p_{n})}{p_{n}/ln(p_{n})} &lt; \\frac{\\pi (p_{n})}{\\sqrt{p_{n}}}$$ According to $$\\displaystyle\\smash{\\lim_{n \\to \\infty }}\\frac{\\pi (p_{n})}{p_{n}/ln(p_{n})}=1$$ Or, $\\forall \\varepsilon &gt;0$, $\\exists N(\\varepsilon )$: $\\forall n&gt;N(\\varepsilon )$ $$1- \\varepsilon &lt; \\frac{\\pi (p_{n})}{p_{n}/ln(p_{n})} &lt; 1+ \\varepsilon$$ Or $$1- \\varepsilon &lt; \\frac{\\pi (p_{n})}{p_{n}/ln(p_{n})} &lt; \\frac{\\pi (p_{n})}{\\sqrt{p_{n}}}$$ As a result $\\forall \\varepsilon &gt;0$, $\\exists N(\\varepsilon )$: $\\forall n&gt;N(\\varepsilon )$ $$(1 - \\varepsilon ) \\cdot \\sqrt{p_{n}} &lt; \\pi (p_{n}) = n$$ But this is not enough. Interestingly, is true iff function $f_{4}(x)=\\pi (x) - \\sqrt{x}$ is strictly ascending ($x &lt; y \\Rightarrow f(x) &lt; f(y)$) for prime arguments. If $f_{4}(p_{n}) &lt; f_{4}(p_{n+1})$ then $$\\pi (p_{n}) - \\sqrt{p_{n}} &lt; \\pi (p_{n+1}) - \\sqrt{p_{n+1}}$$ Or $$\\sqrt{p_{n+1}} - \\sqrt{p_{n}} &lt; \\pi (p_{n+1}) - \\pi (p_{n}) =1$$ And vice-versa, if $$\\sqrt{p_{n+1}} - \\sqrt{p_{n}} &lt; 1$$ Then $$-\\sqrt{p_{n}} &lt; -\\sqrt{p_{n+1}} + 1$$ Or $$\\pi (p_{n})-\\sqrt{p_{n}} &lt; \\pi (p_{n}) + 1 -\\sqrt{p_{n+1}} = \\pi (p_{n+1}) -\\sqrt{p_{n+1}}$$ So, if Andrica's conjecture is true then $\\forall n \\geq 3$ $$\\pi (p_{n})-\\sqrt{p_{n}} &gt; 0$$ Or $$\\sqrt{p_{n}} &lt; \\pi (p_{n})= n$$", "How can I draw a graph like the diagram below? I'm trying, but something is wrong with my code in LaTeX: \\begin{asy} pair dynkinMark(real x, real y, string s = &quot;&quot;, pen p = defaultpen, pair B = dir(45)) { if (s != &quot;&quot;) { dot(&quot;$&quot;+s+&quot;$&quot;, (x,y), B, p); } else { dot((x,y), p); } return (x,y); } dynkinMark(0,1, &quot;1&quot;, dir(135)); dynkinMark(0,2, &quot;2&quot;, dir(135)); dynkinMark(0,3, &quot;3&quot;, dir(135)); dynkinMark(0,4, &quot;4&quot;, dir(135)); dynkinMark(7,1, &quot;1'&quot;); dynkinMark(7,2, &quot;2'&quot;); dynkinMark(7,3, &quot;3'&quot;); dynkinMark(7,4, &quot;4'&quot;); path p1 = (0,1)..(2,2.0)..(5,3.5)..(7,4); path p2 = (0,2)..(2,1.2)..(5,2.5)..(7,3); path p3 = (0,3)..(2,2.8)..(5,1.5)..(7,1); path p4 = (0,4)..(2,3.8)..(5,3.5)..(7,2); draw(p1, blue); draw(p2, heavycyan); draw(p3, mediumcyan); draw(p4, lightblue); dot(&quot;$12$&quot;, IP(p1, p2), dir(90), heavygreen); dot(&quot;$13$&quot;, IP(p1, p3), dir(90), heavygreen); dot(&quot;$23$&quot;, IP(p2, p3), dir(90), heavygreen); dot(&quot;$14$&quot;, IP(p1, p4), dir(90), heavygreen); dot(&quot;$24$&quot;, IP(p2, p4), dir(90), heavygreen); real y = 0.8; label(&quot;$s_1$&quot;, (IP(p1,p2).x, y), heavygreen); label(&quot;$s_2$&quot;, (IP(p1,p3).x, y), heavygreen); label(&quot;$s_1$&quot;, (IP(p2,p3).x, y), heavygreen); label(&quot;$s_3$&quot;, (IP(p1,p4).x, y), heavygreen); label(&quot;$s_2$&quot;, (IP(p2,p4).x, y), heavygreen); \\end{asy}", "I have Ubuntu budgie 17.04 (budgie-desktop 10.2.9). While pressing Alt+Tab to switch between the windows, the windows are switched randomly and I am not able to select which window to shift. This feature was available in Ubuntu 16.04 but not in Ubuntu-budgie-17.04. How to resolve this?", "I ride regularly in the city with my a few valuables with me. My purse, phone, keys, company ID card etc. I hate having a bag on me while ride so I am looking for a solution to have these few items in a bike bag, but also have them safe if I stop somewhere to run into a shop or a cafe for 15 minutes. My original idea was to look for a small saddle or top tube bag that is lockable and also safely locked to the frame, and I can simply leave it there. As it turns out there is no such thing! Or I just did not find it? My second idea was to search for a similar bag, but which is easily detachable and I can take it with myself as a waist bag for example. Same story, I couldn't find anything like this on the market. Do you know any bag that could work for me? Or do you have an alternate suggestion for my conundrum? Thank you very much if you take the time to answer! Ride safe! János", "spectral radius in normed space is subadditive. I am reading the book \"characterizations of c*-algebras\" by Doran and Belfi. On the page 299, the book reads \"It can also be shown that if $xy=yx$, then $\\nu(x+y)\\le\\nu(x)+\\nu(y)$.\" The definition of $\\nu$ is as follows: in normed algebra, $$\\nu(x)=\\limsup_{n\\to\\infty}\\|x^n\\|^{\\frac1n}$$ Note that the algebra is not assumed to be complete and is also not assumed to be complex scalar(we can have real scalars) This is my trial: I just tried to mimic the proof of the Minkowski inequality, but failed. Thank you", "\"At least one\" - singular or plural subject?", "Does $x^2 - y^2 = 12345678$ (x,y are integers) have any solutions?", "What is the format for e-mail headers that display a name rather than the e-mail?", "How to view network traffic requested by a specific app? There are lots of discussion on how to see which app is requesting network connection. I have tried the following apps: tcapturepacket wifi monitor connection tracker However, none of them was useful. For example, for a short period of time, I uploaded a 30KB pcap file which can be viewed . Still I haven't find out which app is requesting connection and to where it is trying to connect. I also tried to look at adb logcat, but didn't find useful information. Maybe something has been missed here. Any guess?", "In comments, moderators have their diamonds in the OP rectangle: And in the review (suggested edits), mods have their diamonds outside the blue OP background highlight rectangle: Of course, it Doesn't Really Matter At All, but it is a small discrepancy (I am not saying that in the review, OP rectangles have a bigger padding).", "Analogy of Pearson correlation for 3 variables", "File list command line (hidden and subfolders)", "How assign shortcut to custom function?", "How to call Apex REST API from Javascript? I have two different developer orgs. One contains apex REST web service, and I want to call that REST service from my second org. I have tried to call that REST service using normal ajax post request and forcetk.js, But I got following error XMLHttpRequest cannot load . Origin is not allowed by Access-Control-Allow-Origin. I searched about this problem then I got to know that Salesforce never allows CORS (Cross-Origin-Resource-Sharing). Initially I was using apex to call that REST web service, that time I was able to post data from apex. But as we have callout limitation in salesforce, I want to use javascript. Can anybody please help me?", "Selecting the size of a System.Drawing.Icon?", "How to make terminal autocomplete when there are several files/directory? If I have several directories, like: afoo abar sometimes my terminal will refuse autocomplete when I press tab (e.g. \"cd a\" then tab), and print the list of directories instead. Sometimes it even throws a noisy, annoying sound. Any idea how to make it autocomplete in cases like this? E.g it can show abar first, and then afoo if I press tab again. I saw this is the case in windows, or some applciation in Ubuntu", "What's a concise way to check that environment variables are set in a Unix shell script?", "What does capital letter I mean in this formulas? Hello I don't understand meaning of the symbol represented by a capital letter \"I\" in the formulas below. There is to the paper with the formulas. At the beginning I thought it mean \"where c is not equal to the result of classifier T(m)\", however in step (d) there is a multiplication symbol before it, so it probably mean that \"I\" should \"return\" a value." ]
medi_sts_stackexchange_dupe
jquery multiple url replace regex
What is the best regular expression to check if a string is a valid URL?
[ "GCD in polynomial rings with coefficients in a field extension", "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?", "Don't worry, I have written your name on the attendance sheet. Or Don't worry, I wrote your name on the attendance sheet.", "Notification for reviews shows way too many", "Want to delay startup of program but can't find it in Task Scheduler I'm trying to delay the startup of a specific program that loads at login. As per an answer in , I should be able to do it using Task Scheduler. The problem is, I can't find the program listed anywhere. Is there a particular pane I should be looking in? The program is Razer Synapse so I don't think it would be in the Microsoft or Western Digital folders. If it's not in Task Scheduler, is there another way I can delay it at startup? Out of curiosity how many ways are there for a program to be run at Startup in Windows?", "Why use apparently meaningless do-while and if-else statements in macros? In many C/C++ macros I'm seeing the code of the macro wrapped in what seems like a meaningless do while loop. Here are examples. #define FOO(X) do { f(X); g(X); } while (0) #define FOO(X) if (1) { f(X); g(X); } else I can't see what the do while is doing. Why not just write this without it? #define FOO(X) f(X); g(X)", "Recovering Crashed Flash drive? So my friend has a USB flash drive that isn't working. I don't know a whole lot about \"recovery\" software so I figured I'd ask you guys. What steps can I try (I have access to a Linux machine as well) to see....if I can get ANYTHING off the flash drive? I've google'd around, but most of the stuff seems for windows.", "How do I merge 2 VMware disks in to a single one? I have installed an Ubuntu server on a VMWare workstation with a space of 20GB storage as seen below: After the installation I've attached another 40GB worth storage to the existing Ubuntu server installation (seen below): Now I want to add this 40GB to my / (root) directory it mean's I want that my / directory became to 60G , like it will be resize from 20G to 60G (20G + 40G), i don't know what should i do, can any body help me ? , my df -h result shows; root@Userver:~# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 18G 900M 16G 6% / udev 990M 4.0K 990M 1% /dev tmpfs 400M 308K 399M 1% /run none 5.0M 0 5.0M 0% /run/lock none 999M 0 999M 0% /run/shm none 100M 0 100M 0% /run/user root@Userver:~# it must be 60G ! i have no graphic mode, then i can't use Gparted tools, i'm just have ssh access !", "This is my last homework problem and I've been looking at it for a while. I cannot nail down what is wrong with this proof even though its obvious it is wrong based on its conclusion. Here it is: Find the flaw in the following bogus proof by strong induction that for all $n \\in \\Bbb N$, $7n = 0$. Let $P(n)$ denote the statement that $7n = 0$. Base case: Show $P(0)$ holds. Since $7 \\cdot 0 = 0$, $P(0)$ holds. Inductive step: Assume $7·j = 0$ for all natural numbers $j$ where $0 \\le j \\le k$ (induction hypothesis). Show $P(k + 1)$: $7(k + 1) = 0$. Write $k + 1 = i + j$, where $i$ and $j$ are natural numbers less than $k + 1$. Then, using the induction hypothesis, we get $7(k + 1) = 7(i + j) = 7i + 7j = 0 + 0 = 0$. So $P(k + 1)$ holds. Therefore by strong induction, $P(n)$ holds for all $n \\in \\Bbb N$. So the base case is true and I would be surprised if that's where the issue is. The inductive step is likely where the flaw is. I don't see anything wrong with the strong induction declaration and hypothesis though and the math adds up! I feel like its so obvious that I'm just jumping over it in my head.", "Making an invisible pressure plate I'm trying to build a teleporter. I want the player to be teleported from the first sign(left) to the right sign(right). So, when the player steps on the red wool on the left, he will automatically be teleported to the red wool on the right. I do not want to use any pressure plats.It might work with the testfor comment, but I didn't figure out, put that only works with a radius. BTW I'm in 1.10.2 bou I could probably change the version if necessary. The testfor command block should activate the teleport command block,when the player is detected. Now, I'm not really the expert, so I know non of the commands that you would need to build this construction. Please help, I would highly appreciate it! If you need any more details, ask me!", "Use a .jar java library API in C#? I'm an entry level programmer so please be descriptive in your responses. I am trying to use a Java API given as a .jar file in my C# .net application. I don't know much Java, but this .jar file says \"no main-class manifest attribute\" when I try to run it so this means its a library? This Java API also comes with a .java file which shows how to use the library but I cannot see the code inside the .jar. I found on this site, and one of the answers reads, \"In simple way you can pack your java classes to jar file then In C# use Process class for execute and map IO stream.\" I am semi-familiar with the Process class in C# but I don't understand how I could use it to use a Java library in my C# .net project. Is this possible? or was that answer incorrect? If so, could you explain how I can use the .jar library in my C# app.", "Square bracket notation for dimensions and units: usage and conventions", "Proving $1^3+ 2^3 + \\cdots + n^3 = \\left(\\frac{n(n+1)}{2}\\right)^2$ using induction How can I prove that $$1^3+ 2^3 + \\cdots + n^3 = \\left(\\frac{n(n+1)}{2}\\right)^2$$ for all $n \\in \\mathbb{N}$? I am looking for a proof using mathematical induction. Thanks", "How does leave-one-out cross-validation work? How to select the final model out of $n$ different models? I have some data and I want to build a model (say a linear regression model) out of this data. In a next step, I want to apply Leave-One-Out Cross-Validation (LOOCV) on the model so see how good it performs. If I understood LOOCV right, I build a new model for each of my samples (the test set) using every sample except this sample (the training set). Then I use the model to predict the test set and calculate the errors $(\\text{predicted} - \\text{actual})$. In a next step I aggregate all the errors generated using a chosen function, for example mean squared error. I can use these values to judge on the quality (or goodness of fit) of the model. Question: Which model is the model these quality-values apply for, so which model should I choose if I find the metrics generated from LOOCV appropriate for my case? LOOCV looked at $n$ different models (where $n$ is the sample size); which one is the model I should choose? Is it the model which uses all the samples? This model was never calculated during the LOOCV process! Is it the model which has the least error?", "Show that $\\partial_\\nu T^{\\mu\\nu} = - j_\\nu F^{\\mu\\nu}$ In a theoretical physics homework problem, I have to show the following: $$\\partial_\\nu T^{\\mu\\nu} = - j_\\nu F^{\\mu\\nu}$$ Where $T$ is the Energy-Momentum-Tensor, $j$ the generalized current and $F$ the Field-Tensor. We use the $g$ for the metric tensor, I think in English the $\\eta$ is more common. I know the following relationships: Current and magnetic potential with Lorenz gauge condition: $$\\mathop\\Box A^\\mu = \\mu_0 j^\\mu$$ Energy-Momentum-Tensor: $$T^{\\mu\\nu} = \\frac1{\\mu_0} g^{\\mu\\alpha} F_{\\alpha\\beta} F^{\\beta\\nu} + \\frac1{4\\mu_0} g^{\\mu\\nu} F_{\\kappa\\lambda} F^{\\kappa\\lambda}$$ Field-Tensor: $$F^{\\mu\\nu} = 2 \\partial^{[\\mu} A^{\\nu]} = \\partial^{\\mu} A^{\\nu} - \\partial^{\\nu} A^{\\mu}$$ d'Alembert operator: $$\\mathop\\Box = \\partial_\\mu \\partial^\\mu$$ Bianchi identity: $$\\partial^{[\\mu} F^{\\nu\\alpha]} = 0$$ So far I have set all the definitions into the formula I have to show, but I only end up a lot of terms from antisymmetrisation and product rule. I also drew all what I have in , but I still cannot see how to tackle this problem. Could somebody please give me a hint into the right direction?", "I need a way to determine the type of an HTML element in JavaScript. It has the ID, but the element itself could be a &lt;div&gt;, a &lt;form&gt; field, a &lt;fieldset&gt;, etc. How can I achieve this?", "Proper Installation of Kali linux tools in Ubuntu I think everyone has known - we need to install katoolin to use Kali Linux Tools on Ubuntu. Before did anything I had looked through the internet and also found out these solutions: , So here are my steps: apt-get install git git clone https://github.com/LionSec/katoolin.git &amp;&amp; cp katoolin/katoolin.py /usr/bin/katoolin chmod +x /usr/bin/katoolin sudo katoolin Then, to add Kali Linux repositories and update them, I selected option 1 from the katoolin Menu Then, to view the available categories and install all available tools, I selected option 2 from the main menu of katoolin and then pressed 0. But after that I got this: What do you want to do ?> 1) Add Kali repositories & Update 2) View Categories 3) Install classicmenu indicator 4) Install Kali menu 5) Help kat > 2 ************************** All Categories ************************** 1) Information Gathering 8) Exploitation Tools 2) Vulnerability Analysis 9) Forensics Tools 3) Wireless Attacks 10) Stress Testing 4) Web Applications 11) Password Attacks 5) Sniffing & Spoofing 12) Reverse Engineering 6) Maintaining Access 13) Hardware Hacking 7) Reporting Tools 14) Extra 0) All Select a category or press (0) to install all Kali linux tools . Furthermore, I got an error in Software Updater - it didn't let me do anything. Ubuntu just hung up. I solved this problem by deleting kali linux repositories in katoolin and then in Software Updater. Does anyone know how to install Kali Linux tools in Ubuntu 16.04 in a proper way?", "Should you set all the objects to null (Nothing in VB.NET) once you have finished with them? I understand that in .NET it is essential to dispose of any instances of objects that implement the IDisposable interface to release some resources although the object can still be something after it is disposed (hence the isDisposed property in forms), so I assume it can still reside in memory or at least in part? I also know that when an object goes out of scope it is then marked for collection ready for the next pass of the garbage collector (although this may take time). So with this in mind will setting it to null speed up the system releasing the memory as it does not have to work out that it is no longer in scope and are they any bad side effects? MSDN articles never do this in examples and currently I do this as I cannot see the harm. However I have come across a mixture of opinions so any comments are useful.", "What is the difference between String and string in C#? Example (note the case): string s = \"Hello world!\"; String s = \"Hello world!\"; What are the guidelines for the use of each? And what are the differences?", "Calling PHP functions within HEREDOC strings In PHP, the HEREDOC string declarations are really useful for outputting a block of html. You can have it parse in variables just by prefixing them with $, but for more complicated syntax (like $var[2][3]), you have to put your expression inside {} braces. In PHP 5, it is possible to actually make function calls within {} braces inside a HEREDOC string, but you have to go through a bit of work. The function name itself has to be stored in a variable, and you have to call it like it is a dynamically-named function. For example: $fn = 'testfunction'; function testfunction() { return 'ok'; } $string = &lt;&lt;&lt; heredoc plain text and now a function: {$fn()} heredoc; As you can see, this is a bit more messy than just: $string = &lt;&lt;&lt; heredoc plain text and now a function: {testfunction()} heredoc; There are other ways besides the first code example, such as breaking out of the HEREDOC to call the function, or reversing the issue and doing something like: ?&gt; &lt;!-- directly output html and only breaking into php for the function --&gt; plain text and now a function: &lt;?PHP print testfunction(); ?&gt; The latter has the disadvantage that the output is directly put into the output stream (unless I'm using output buffering), which might not be what I want. So, the essence of my question is: is there a more elegant way to approach this? Edit based on responses: It certainly does seem like some kind of template engine would make my life much easier, but it would require me basically invert my usual PHP style. Not that that's a bad thing, but it explains my inertia.. I'm up for figuring out ways to make life easier though, so I'm looking into templates now." ]
medi_sts_stackexchange_dupe
Nilpotent elements of a quotient ring
Find the nilpotents in $\mathbb{Z}_3[x]/(x^2-1)$
[ "Why do some games allow offline Steam achievements? I know of where it is asked if you can get Steam achievements offline. The accepted answer to that was no. But I do earn achievements for some Steam games while playing in offline mode! For example, right now I am earning achievements for Cave Story+ as I play in offline mode. In other games I also earn achievements while playing in offline mode. Not just when I am disconnected but still in \"online\" mode as might be suggested in the linked question. But what is really bugging me is that this does not happen with all games that have Steam achievements. So, is allowing offline achievements something that Steam allows, the game devs allow, or is it something decided by a magical elf in the steam servers rolling some d20 dice around? Edit: As per request, I was able to attain visual evidence: You should be able to see the achievement-get in action while in offline mode. What is worth noting, (and something that I forgot to mention before) is that I only started earning achievements after I had went into online mode with the game installed. This is why I was able to earn this achievement with the ones after unlocked. I had started the game for the first time in offline mode, and did not notice that I was not earning achievements. When I had connected once, I did not have to start the game while online. I was able to earn achievements offline. I also must state publicly: I do not play on easy. This was for testing purposes only people. It was for Science!", "List has no rows for assignment to SObject", "How to change kernel at boot I installed the latest kernel (4.1) and want to boot into it instead of 3.9. How can i do this on ubuntu 15.04?", "Java error: Implicit super constructor is undefined for default constructor", "Over the past couple of days there have been a few questions about overlapping proposals and questions that could belong on multiple sites: What is the best practice before / after asking a question if you think your question might be better on another site? or If I think my question might belong on multiple sites as per the above posts?", "Questions about a commutative ring with exactly three ideals Let $R$ be a commutative ring with identity. Assume that $R$ has exactly three distinct ideals: $\\{0\\},I, R.$ 1) Show that if $a \\in R-I$, then $a$ is a unit in $R$. 2) Let $a,b\\ne0$ in $I$. Show that $ab=0$.", "Proof of property of abelian group", "Can you use external money to pay trading commissions in tax-free and tax-deferred accounts?", "How to use hook_node_presave to change field's value Basically, I want to put first name &amp; surname together into $node->field_par_contact_name But it gives me warning. (See below) function partnership_node_presave($node) { if($node->type == 'partnership') { $first_name = $node->field_par_contact_first_name['und'][0]['name']; $surname = $node->field_par_contact_surname['und'][0]['name']; // https://drupal.org/project/field_hidden // Hidden variable $node->field_par_contact_name['und'][0]['value'] = $first_name. ' '. $surname; // Warning after save: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 173 of .../drupal-7.23/includes/entity.inc } } Updated, please see image:", "How to show a group is cyclic? One question asking if $\\mathbb{Z}^*_{21}$ is cyclic. I know that the cyclic group must have a generator which can generate all of the elements within the group. But does this kind of question requires me to exhaustively find out a generator? Or is there any more efficient method to quickly determine if a group is a cyclic group?", "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?", "The characteristic and minimal polynomial of a companion matrix", "I am using \\if condition in a custom command in my LaTeX document. I would like to know where I can find some good explanation about \\if command. I followed a but it's just an example; there are not any explanation.", "Some conditions require that a person lie in bed all the time until recovered. Is there a name for such conditions or people experiencing them at the moment? For example, I am currently &lt;bed sick&gt; and can't help you with your homework. I tried looking for bed sick but hit a dead end.", "dpkg-divert: error: rename involves overwriting `/usr/lib/xorg/protocol.txt' with different file `/usr/lib/xorg/protocol-precise.txt', not allowed", "Is 512 bits a more secure hashing than 256 bits?", "Taylor Series type inequality", "Why would parametric statistics ever be preferred over nonparametric? Can someone explain to me why would anyone choose a parametric over a nonparametric statistical method for hypothesis testing or regression analysis? In my mind, it's like going for rafting and choosing a non-water resistant watch, because you may not get it wet. Why not use the tool that works on every occasion?", "Product rule intuition Can anyone think of an intuitive explanation of the product rule? I'm not asking for a derivation. To me it seems like quite an un-untuitive result, as apposed to the chain-rule (which is ironically harder to derive).", "How to remove the left part of a string? I have some simple python code that searches files for a string e.g. path=c:\\path, where the c:\\path part may vary. The current code is: def find_path(i_file): lines = open(i_file).readlines() for line in lines: if line.startswith(\"Path=\"): return # what to do here in order to get line content after \"Path=\" ? What is a simple way to get the text after Path=?" ]
medi_sts_stackexchange_dupe
Why is there a difference between using c++ string+string temporary object by different compilers?
Why does this work: returning C string literal from std::string function and calling c_str()
[ "Biasing circuit - Voltage follower circuit I am using , which is and Bias controller/sequencer. I am using this for Providing gate voltage and drain voltage to the . In the datasheet, it is mentioned that the module with combination of EVM can be used in two applications. Application Option 1: Fixed negative gate biasing with pulsed drain biasing. Application Option 2: Pulsed negative gate biasing with pulsed drain biasing. I am trying to design both applications on a single board. The second option for future use. For the 1st application option, he has mentioned a few pins as No connection and he has used those NC pins on the 2nd application. The issue I am facing:- They have used voltage followers for providing a low impedance output path for pin number 3(GCO). I have reverse-engineered the Ckt from the below-attached image, but I am unable to identify the voltage follower they have used. Pin number 2 of the voltage follower has been connected to pin number 2 (NC/GCP) of the Module. There has been no description of this pin number. I am guessing these:- Pin numbers 1 and 4 are connected together and output is provided through them. Pin number 5 is +Ve supply hence connected to GND(Highest +Ve supply)? Pin number 3 is connected to -8V Pin number 2 is connected to pin number 2 of MABC-001000-DP000L, which I am unable to understand. I have mailed component manufacturer regarding full schematic, till now I haven't heard from them. Can anybody help me with this? Thanks in Advance. Low-resolution pic of EVM. I don't think it helps in any way. Layout Image", "How to find sum of the infinite series $\\sum_{n=1}^{\\infty} \\frac{1}{ n(2n+1)}$ $$\\frac{1}{1 \\times3} + \\frac{1}{2\\times5}+\\frac{1}{3\\times7} + \\frac{1}{4\\times9}+\\cdots $$ How to find sum of this series? I tried this: its $n$th term will be = $\\frac{1}{n}-\\frac{2}{2n+1}$; after that I am not able to solve this.", "Reading the reviews of the on Google Play, said that since Chrome supports HTML5, he had managed to persuade the BBC iPlayer website to play him streams meant for iPad/iPhone devices by spoofing an IOS user agent string on his Nexus 7. How might I go about getting the same thing to work myself? I have looked at and but both seem to concentrate on the Dolphin browser. Also, please mention if a solution will require me to root my Nexus-7. Incidentally, I also tried using with Firefox, but although Firefox supports HTML5 and the iPlayer website shows pages without either install flash or use external app messages, it still won't play the streams (it just sits swirling its progress wheel), hence looking for a solution for Chrome.", "The screen of my phone is physically broken, so it doesn't display anything, but the touch aspect does seem to be working, as I can unlock my phone, and get haptic feedback. Before I go to get it replaced, I'd like to back up some personal data from the built-in memory to the SD card. I'm fairly certain that if I can get adb to recognize the device, then I can use to see where I am touching the screen and do what I need to do. Problem is, when I plug it in, it's not recognized, while my emulator is. I suspect that I might not have USB debugging enabled, which I think is necessary for adb to work. If this is the case, can someone give me screenshots of their Droid X (running 2.3.X) going from the home screen, through all the menus, to activating debug mode? Hopefully I can do it by dead reckoning and adb from there. Edit: I haven't changed anything about the ROM or launcher; it's all stock.", "Why can't enum's constructor access static fields? Why can't enum's constructor access static fields and methods? This is perfectly valid with a class, but is not allowed with an enum. What I'm trying to do is store my enum instances in a static Map. Consider this example code which allows lookup by abbreivation: public enum Day { Sunday(\"Sun\"), Monday(\"Mon\"), Tuesday(\"Tue\"), Wednesday(\"Wed\"), Thursday(\"Thu\"), Friday(\"Fri\"), Saturday(\"Sat\"); private final String abbreviation; private static final Map&lt;String, Day&gt; ABBREV_MAP = new HashMap&lt;String, Day&gt;(); private Day(String abbreviation) { this.abbreviation = abbreviation; ABBREV_MAP.put(abbreviation, this); // Not valid } public String getAbbreviation() { return abbreviation; } public static Day getByAbbreviation(String abbreviation) { return ABBREV_MAP.get(abbreviation); } } This will not work as enum doesn't allow static references in its constructor. It however works just find if implemented as a class: public static final Day SUNDAY = new Day(\"Sunday\", \"Sun\"); private Day(String name, String abbreviation) { this.name = name; this.abbreviation = abbreviation; ABBREV_MAP.put(abbreviation, this); // Valid }", "ArcGIS Serious Application Error I'm a complete novice to GIS and just began an Introductory course. I am having an issue when I try to access the Symbology tab on a layer. Specifically, when I click on the 'Categories' field and 'Unique Values' subfield, ArcMap crashes and comes up with a report window to send to ESRI. The message is ArcGIS for Desktop has encountered a serious application error and is unable to continue. What could be the problem?", "Do we have different badges in different SE sites", "Condition on a,b and c satisfying an equation(TIFR GS 2017) Let $a,b,c$ be positive real numbers satisfying $$(1+a+b+c)\\left(1+\\frac{1}{a}+\\frac{1}{b}+\\frac{1}{c}\\right)=16,$$ then $a+b+c=3$. I thought about the application of the AM-GM-HM inequality, but in vain. I also thought about splitting 16 into factors and comparing but went nowhere. Any ideas. Thanks beforehand.", "In the Stack Overflow podcast #36 (), this opinion was expressed: Once you understand how easy it is to set up a state machine, you’ll never try to use a regular expression inappropriately ever again. I've done a bunch of searching. I've found some academic papers and other complicated examples, but I'd like to find a simple example that would help me understand this process. I use a lot of regular expressions, and I'd like to make sure I never use one &quot;inappropriately&quot; ever again.", "How can momentum but not energy be conserved in an inelastic collision?", "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", "Gmail filters/labels: Force email to stay in Inbox?", "Why are C# interface methods not declared abstract or virtual?", "Blender 2.80 AV Sync missing? I just installed Blender 2.8 and for the life of me I can not find AV Sync anywhere and video editing has become impossible. Is there some new setting I am unaware of?", "Find all entire functions such that $|f(z)|\\leq |\\sin(z)|$ for all $z\\in\\mathbb C$.", "Override iTunes \"media\" keys (play, pause, etc) for Spotify?", "This is a general, community wiki question to address non-specific \"I need a CMS or Wiki that does x, y, and z...\" questions. If your question was closed as a duplicate of this question and you feel that the information provided here does not provide a sufficient answer, please open a discussion on . I have a list of features that I want for my website's Content Management System (CMS) - where can I find a [free] script that includes all of them?", "Why are my fields initialized to null or to the default value of zero when I've declared and initialized them in my class' constructor?", "Host alias for ssh There are a few SSH destinations I will frequently be connecting to and I'm wondering if rather than remember the IP address I can create a host alias for them. I'd like to be able to use... ssh -p xx [email protected] I've tried establishing this host in /etc/hosts and unless there's a service I needed to restart it had no effect.", "Implements vs extends: When to use? What's the difference?" ]
medi_sts_stackexchange_dupe
How to print to console in color?
How to print colored text to the terminal?
[ "I read this at least 20 years ago, and I believe it was originally published in the '60s. The main character is a human, but somehow \"inherits godhood\" from an alien, whose species is very long lived. IIRC this is one of the old-style god thingies, i.e. \"god of thunder\" not \"omniscient omnipotent omnipresent transcendent being\". The plot somehow revolved around identifying and fighting some enemy which, I believe, was in turn a member of the alien species who acted as the avatar of the opposite god in the alien pantheon. The only thing I remember for sure is that the enemy was identified as \"green green\" or \"gringrin\" (sadly, I read this in translation so I am not sure what the original meant)", "Standard concise way to copy a file in Java?", "I am running a fresh install of Linux Mint Nadia (14). I am following the instructions on Vagrant but have gotten stuck on the . It seems the Vagrant box cannot connect outside and so I can't install anything using either Chef or Puppet. In the basic Vagrant resolve.conf contains nameserver 10.0.2.3. But with that set I can't ping us.archive.ubuntu.com. If I change it to 8.8.8.8 then I can ping us.archive.ubuntu.com but it does not stay set, and after a reboot it changes back to 10.0.2.3 - so provisioning fails again. Ideally I would like for 10.0.2.3 to work on my setup. Failing that I would like a way to permanently change resolv.conf so that I can do provisioning.", "\"As a beginner, I am happy that I learned a new thing.\" You will recognize this as your DoReMi-s.( at 4:52) What is the meaning of the \"AS\" there and when do we use that? In depth answers would be appreciated. Similarly: Do I have your word as a lawman not to shoot me down like a dog in the street? Can you explain this sentence? Can I understand it as a lawman wouldn't shoot down people on the street or wouldn't have his word or what?", "How to ask \"If you have any problem then ask me\" in polite manner", "Design review - RGB LED color mixer using PWM", "Appropriate data transformation", "I installed the on my Ubuntu&nbsp;11.04 (Natty Narwhal) with sudo apt-get install lamp-server^ Now I navigate to /var/www and use wget http://ftp.drupal.org/files/projects/drupal-7.x-dev.tar.gz I get the following error. --2011-08-03 13:59:00-- http://ftp.drupal.org/files/projects/drupal-7.x-dev.tar.gz Resolving ftp.drupal.org... 64.50.233.100, 64.50.236.52 Connecting to ftp.drupal.org|64.50.233.100|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 2757101 (2.6M) [application/x-gzip] drupal-7.x-dev.tar.gz: Permission denied Cannot write to `drupal-7.x-dev.tar.gz' (Permission denied). How do I resolve this error? I tried to download the same file in the downloads folder, and it went on without an issue. So it seems to be some permission error, but I'm not sure about that or how to solve it.", "What is the definition of $2.5!$? (2.5 factorial) I was messing around with my TI-84 Plus Silver Edition calculator and discovered that it will actually give me values when taking the factorial of any number $n/2$ where $n$ is any integer greater than $-2$. Why does this happen? I thought factorials were only defined for positive integers and $0$, so what is my calculator doing to get the answer $3.32335097$ when I enter $2.5!$? Is there actually a definition of $2.5!$ or is my calculator just being weird? How is the factorial function implemented? I understand the binary implications of $2.5$, so that could possibly have something to do with it. I get a domain error when trying to take the factorial of $-1, 2.3, e$, and any number that is not of the form $n/2$ where $n$ is any integer greater than $-2$.", "$K\\subseteq \\mathbb{R}^n$ is a compact space iff every continuous function in $K$ is bounded. I need to prove that $K\\subseteq \\mathbb{R}^n$ is a compact space iff every continuous function in $K$ is bounded. One direction is obvious because of Weierstrass theorem. How can i prove the other direction? I tried to assume the opposite but it didn't work for me. Thanks a lot.", "Replace Builtin commands with Custom Commands for CMD.exe", "Can Selenium interact with an existing browser session?", "How can metagaming retries on poor skill checks be prevented?", "How do I define global variables in CoffeeScript?", "Let's take the numbers 0-10. Their mean is 5, and the individual deviations from 5 are -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5 And so the average (magnitude of) deviation from the mean is $30/11 \\approx 2.72$. However, this is not the standard deviation. The standard deviation is $\\sqrt{10} \\approx 3.16$. The first mean-deviation is a simpler and by far more intuitive definition of the \"standard-deviation\", so I'm sure it's the first definition statisticians worked with. However, for some reason they decided to adopt the second definition instead. What is the reasoning behind that decision?", "Copy and set-mark in Bash as in Emacs? I would like to be able to copy and paste text in the command line in Bash using the same keyboard bindings that Emacs uses by default (i.e. using C-space for set-mark, M-w to copy text, C-y, M-y to paste it, etc.). The says that Bash comes with some of these key bindings set up by default. For example, yanking (C-y) works by default on my terminal. However, I can't get the set-mark and copy commands to work, and they don't seem to be bound to any keys by default. Usually, the way a user can define her own key bindings is to add them to .inputrc. So I looked and found the following bash functions in the documentation that I presume can help me define the Emacs-like behavior that I want (i.e. set-mark with C-space and copy with M-w). copy-region-as-kill () Copy the text in the region to the kill buffer, so it can be yanked right away. By default, this command is unbound. and set-mark (C-@) Set the mark to the point. If a numeric argument is supplied, the mark is set to that position. If I understand correctly, the above means that copy-region-as-kill is not bound to any keyboard sequence by default, while set-mark is bound to C-@ by default. I tried C-@ on my terminal, but I don't think it runs set-mark because I don't see any text highlighted when I move my cursor. In any case, I tried adding keyboard bindings (M-w and C-) to the functions copy-region-as-kill and set-mark above in my .inputrc and then reloading it with C-x C-r, but this didn't work. I know that my other entries in .inputrc work because I have other user-defined keybindings defined in it. Is there anything I am doing wrong? Am I missing anything?", "Last digits, numbers Can anyone please help me? 1) Find the last digit of $7^{12345}$ 2) Find the last 2 digits of $3^{3^{2014}}$. Attempt: 1) By just setting the powers of $7$ we have $7^1 = 7$, $7^2=49$, $7^3=343$, $7^4 = 2401$, $7^5 = 16807$, $7^6 = 117649$, $\\dots$ After the power of $4$, the last digits will repeat. Then by noticing the pattern the digits will end in $7,9,3$ and $1$. Then we can divide the exponent $(12345)$ by $4$ since this is the cycle that makes it repeat. Then $12345 : 4$ has remainder $1$. So $7^1 = 7$ is the unit digit to $7^{12345}$. So the last digit is $7$. I know how to do it like this, the problem does not state how to find the last digit, but I know it has something do do with Euler's theorem. for part $2$) I don't know how to start. Can anyone please help me? Thank you for the help.", "Short-cut for switching to a given directory In the Ubuntu terminal I find myself spending considerable time to switch to a particular directory every time the computer starts up. Is there some way I can make this process easier? Is there some hotkey or some quick directory change that I can use (like speed dial on a phone)? eg: cd 1:Changes to saved directory one", "easy_install: command not found", "Kali Linux: apt update returns \"Hash Sum mismatch\" error I'm experiencing exactly the same issue as described in this question: . Before you mark this as a duplicate however, I have tried the solutions posted there, as well as on numerous other sites, including: sudo apt-get clean sudo rm -rf /var/lib/apt/lists/* sudo apt-get update Editing /etc/apt/sources.list with alternate official mirrors, such as deb http://mirrors.ocf.berkeley.edu/kali kali-rolling main non-free contrib or deb https://http.kali.org/kali kali-rolling main non-free contrib Everything worked after I first imported the VM. I ran sudo apt update and it found some ~650 packages to upgrade. I ran sudo apt upgrade and it encountered an error partway through. That error was solved using sudo apt --fix-broken install, but that is when this hash sum error began. Unfortunately due to hours of troubleshooting I no longer have the details of the earlier error, but I believe it was an error extracting a package due to corrupt data. I've tried multiple official mirrors, but I get the same error. Additionally, when I downloaded the Packages.gz file on my Windows machine (VM host) and computed the SHA256 hash, I got the exact hash that apt printed as the expected value. This led me to believe that the error was not with the mirror but with my VM. The next thing I tried was wget https://mirrors.ocf.berkeley.edu/kali/dists/kali-rolling/main/binary-amd64/Packages.gz followed by sha256sum Packages.gz, which provided yet another different hash output. To be clear, I have seen 3 different hashes for the same file: The \"correct\" hash shown by apt as expected, which is the one that windows also produced after downloading the file using a browser The incorrect hash calculated by apt, which led to the error A different hash calculated by sha256sum after downloading the file using wget using the same URL as for the browser download I should also note that I have only been referencing the SHA256 hash in each step. The other hash functions are also mismatched when I run sudo apt update, but the file size is the same. I had considered that downloads might be failing due to limited disk space (it is a VM after all) but I don't think that's the case. What am I missing?" ]
medi_sts_stackexchange_dupe
Graphics, graphicx, and Texlive2014
Letter class alternatives with support for figures, tables, and labels
[ "How do I write a correct micro-benchmark in Java?", "My objective here is really simple -- I'm trying to set an NSString to some test data, then return the class, which should be NSString. Here's my code: NSString* stringer = [NSString stringWithFormat: @\"Test\"]; NSLog(@\"%@\", [stringer class]); The log says that the class is NSCFString, not NSString. What's going on here?", "Recently I had to change the folder permissions of /usr folder. Now the whole sudo is not working. If I try to update my system using this command: sudo apt-get update I get the following message: sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner sudo: fatal error, unable to load plugins So I tried to change the folder permissions by opening Nautilus as root by using this command gksudo nautilus But nothing happened. Nautilus didn't open. This is an emergency as the whole of sudo is not working. when I tried searching the solution from Google many suggested re-installation. I don't prefer re-installation. so is there any other solution?", "Change the Python3 default version in Ubuntu I am using Ubuntu 16.04 LTS . I have python3 installed. There are two versions installed, python 3.4.3 and python 3.6 . Whenever I use python3 command, it takes python 3.4.3 by default. I want to use python 3.6 with python3. python3 --version shows version 3.4.3 I am installing ansible which supports version &gt; 3.5 . So, whenever, I type ansible in the terminal, it throws error because of python 3.4 sudo update-alternatives --config python3 update-alternatives: error: no alternatives for python3", "I want to print the floating point number with exactly two significant digits in bash (maybe using a common tool like awk, bc, dc, perl etc.). Examples: 76543 should be printed as 76000 0.0076543 should be printed as 0.0076 In both cases the significant digits are 7 and 6. I have read some answers for similar problems like: but the answers focus on limiting the number of decimal places (eg. bc command with scale=2 or printf command with %.2f) instead of significant digits. Is there an easy way to format the number with exactly 2 significant digits or do I have to write my own function?", "How to disable phone number linking in Mobile Safari?", "Why, logically, is proof by contradiction valid?", "When to use an object pronoun or a possessive adjective before a gerund The rule says that we can use a possessive adjective or an object pronoun before a gerund. Is there a rule that says when to use each or are they interchangeable? Some say that it's wrong to use an object pronoun before a gerund.", "Which manga chapters correspond to the 2nd season (or \"Season 3\" on Netflix) of the anime, \"Revival of the Commandments\"?", "I want to unwrap a label which has a transparent area", "Salesforce REST API authentication? I feel like this should be really easy to do, but I can't find anything about it on the web. Is there a way, through either javascript or a java web servlet, to skip the subsequent authentication? We are trying to use the REST Api in production, but the problem is, that each time you refresh the page in javascript, or delete the cookies in java, you have to login again to salesforce. Is there some way to do an ajax call or the login in the background or whatever, so that you can have your application connecting to salesforce right away?", "How to emulate titletoc with tocloft I was using titletoc until I realized that it has some incompatibilities with hyperref. The thing is, that titletoc can do the same thing in a easier way, less one. \\titlecontents*{subsection}[5.4em] {\\small} {\\thecontentslabel~ } {} {} [.~\\textbullet\\ ] [.] this part does the subsection as a paragraph (with section number and without page number). I have realized that the problem is the pseudo-code used by tocloft for the entries in the TOC {\\cftXfont {\\cftXpresnum SNUM\\cftXaftersnum\\hfil} \\cftXaftersnumb TITLE}% {\\cftXleader}{\\cftXpagefont PAGE}\\cftXafterpnum\\par I mean, the last command \\par make impossible to leave two subsection entries in the same textline. Any idea? Another interesting solution is with etoolbox, some examples with that package are awesome, but it's not on my hands. This is a MWE: \\documentclass{book} \\usepackage{titletoc} \\titlecontents*{subsection}[5.4em]{\\small} {\\thecontentslabel~ }{}{}[.~\\textbullet\\ ][.] \\begin{document} \\tableofcontents \\chapter{Test Chapter 1} \\section{Test Section 1.1} \\subsection{First Test Subsection} \\subsection{Second Test Subsection} \\subsection{Third Test Subsection} \\subsection{Fourth Test Subsection} \\section{Test Section 1.2} \\subsection{First Test Subsection} \\subsection{Second Test Subsection} \\chapter{Test Chapter 2} \\section{Test Section 2.1} \\subsection{First Test Subsection} \\subsection{Second Test Subsection} \\subsection{Third Test Subsection} \\subsection{Fourth Test Subsection} \\section{Test Section 2.2} \\subsection{First Test Subsection} \\subsection{Second Test Subsection} \\end{document}", "Anamorphic Perspective in Illustrator or Photoshop?", "Recently I created a website with hundreds of thousands of unique pages. A week ago, Google had indexed about 250,000 pages. It has now decreased to 90k URLs (using a site:domain.com query). What should I do to have Google index all the pages again? Why did all these pages get de-indexed from Google?.", "I've been trying to play with a rigid body simulations. I prepared a project of a building made of domino tails. I've placed all objects very tight, but as soon as I start animation it looks like there was some tiny gap between objects, so they all fall down a little bit. For a high building it leads to a construction disaster as the whole building colapses. Here is an example: (I'd suggest to use 0.25x speed). How can I fix it?", "What are the differences between \"to talk\" and \"to speak\"? Both verbs \"to talk\" and \"to speak\" refer to the same action. Is their meaning exactly the same? When is more appropriate to use one, or the other verb?", "What are the answers for these basic quetions?", "How can I make Windows Paint save by default as JPEG format? Every time I want to save an image I've pasted into the application, it chooses a BMP/DIB format (which is the worst for saving things from the clipboard). How can I hack Paint into defaulting to the JPEG format when saving images? I am using Windows XP SP3 and Paint 5.1 at the moment. I hope though that any hacks might be generic and I'd be able to use them across all my Windows machines.", "Incorrect icons on hot network questions I see the same problem has occurred in the past, the most-linked one being Is this happening for anyone else? I've marked the icons I could recognize as incorrect. This exists on every page, is on both chrome and firefox (from Ubuntu 16.04), and persists after hard-refreshes in each. Edit: The icons in Meta's Hot Network Questions tab appear to be consistently accurate. Every other page I checked (including Unix, Workplace, English Language &amp; Usage, Money, and Sci-fi) have a handful of incorrect ones, even for some of the same questions that are displayed correctly in Meta. Further note: if it matters, the icons are also incorrect in the drop down community-search feature on the right end of the header. Again, they appear correct on this Meta page, and incorrect on all other pages I've checked. Some of the ones that are consistently incorrect: computational science constructed languages movies and TV raspberri pi rpg russian language science fiction and fantasy sitecore skeptics super user latex workplace That distribution seems skewed, but I may just be disproportionately familiar with the sites at the end of the alphabet. Many others could be wrong, those are just the ones I could recognize. Last edit: apparently my Google skills were lacking - was asked an hour prior.", "When in a browser (Chrome or Safari), the following keyboard shortcut will always bring up a window that says \"Welcome To Mail\": Command+Shift+I I would like to use this shortcut for another purpose. Is there any way to disable this shortcut?" ]
medi_sts_stackexchange_dupe
How do they film an actor talking to themselves?
How are dual-role films shot?
[ "A particular big Delta I would like to insert the below mathematical symbol, it looks like a big Delta but different. Is there command to obtain a similar shape?", "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 tool can I use to manage the configuration of my Windows Server environments I help manage environments for an application that uses cloud-based Windows server VMs. The application stack consists of Windows Server 2008 and Windows Server 2012, SQL Server 2008, IIS, and SharePoint 2010. I have several environments Dev/Test/Stage/Prod. I am looking for a way to do configuration management of those environments to make sure any environmental changes are applied in a consisent way and there is a way to verify that no changes have been made to one environment that have not been made to other environments. I have been reading up on Puppet, Chef, etc and I like the idea of doing delcarative configuration management. What is a good method or tool to use to help manage the configuration of these environments. I know a little about SCCM but it is too expensive for this particular situation although I would still be interested in knowing if it has the capabiltiy to do those things.", "How do you subtract Dates in Java?", "The bottom bracket of my bike was completely stripped to the point that when you push the left side crank arm, the right crank moves and you can see the bottom bracket lock move out the frame. The bike shop tried putting Teflon tape but it's temporary. It's a 26' xc hard tail. For all I know both sides of the bottom bracket(square tapered) are stripped clean hence the Teflon tape put by the previous owner. Can I fix the problem by changing into a hallow tech cranks because it works like a thread less bb, or should I just buy a thread less square tapered bb? Any suggestion on what to do?", "Where is the New Oxford American Dictionary stored?", "Which site deals with career development questions for programmers? Is there any site in the network where career development questions about the programming profession can be asked ? I thought Programmer's was the site for it, but that doesn't appear to be the case.", "I came upon an interesting way to relatively quickly compute modular exponentiation with large numbers. However, I do not fully understand it and was hoping for a better explanation. The method basically states if you have $x^y \\bmod N$, it can be computed by repeatedly multiplying by $x$ modulo $N$: $$x \\bmod N \\rightarrow x^2 \\bmod N \\rightarrow x^4 \\bmod N \\rightarrow x^8 \\bmod N \\rightarrow \\ldots \\rightarrow x^{2[\\log y]} \\bmod N$$ This is supposed to calculate in $\\mathcal{O}(\\log_2 N)$ time. An example is given: $$x^{25} = x^{11001_2} = x^{10000_2} * x^{1000_2} * x^{1_2} = x^{16} * x^8 * x^1$$ I don't really understand how this is faster. Aren't you just doing the same thing? You're just breaking down the exponents into representations of base $2$. Also where does $x^{2[\\log y]}$ come from? If you're breaking it down into exponents of two where does a logarithm come from? (Aren't logs representations of numbers in exponents of $10$?) I'm sorry if this appears to be a really stupid question - I have minimal knowledge in math. Also, I wasn't sure if this belongs here or on stack exchange, so give me the word and I'll move it.", "what are the meanings of &quot;treated observation&quot; and &quot;non-treated observation&quot; in this context ? Further, propensity score matching is a more robust method of matching that quantitative accounting researchers frequently use (Rosenbaum &amp; Rubin, 1983). With this technique, the researcher first estimates a logit or probit regression with the treatment effect as the dependent variable (i.e., S&amp;P 500 membership, continuing with our earlier example) and independent variables that are known determinants of the treatment (possibly economic performance, firm size, age, industry, etc. in our example). From this first-stage regression, the researcher obtains propensity scores. 6 The researcher then matches each treated observation to a non-treated observation based on the distance between their propensity scores (i.e., those observations with the closest propensity scores are matched). 7 Hoi et al. (2013) utilize propensity score matching in their study that links irresponsible CSR activities with tax aggressiveness. They first generate predicted propensity scores for each firm-year using a model of the determinants of a firm engaging in a high level of negative, irresponsible CSR activity. Then, they match a treatment firm (one with a high level of negative CSR activities) to a non-treatment firm (one with a low level of, or no, negative CSR activities) by matching observations with the closest propensity scores. Hoi et al. (2013) then re- test the relation between negative CSR activities and tax aggressiveness using this matched sample. These matching techniques help mitigate the researcher’s potential failure to consider certain firm characteristics that differ between treatment and non-treatment firms (Dhaliwal et al., 2012).", "Baire: Show that $f\\colon \\mathbb{R}\\to\\mathbb{R}$ is a polynomial in an open bounded set Let $f\\colon\\mathbb{R}\\to\\mathbb{R}$ be an infinitely differentiable function, and suppose that for each $x\\in\\mathbb{R},$ $\\exists\\ n=n(x)\\in\\mathbb{N}$ such that $f^{(n)}(x)=0$. For each fixed $n\\in\\mathbb{N}$, consider the sets $F_n=\\{x\\in\\mathbb{R} : f^{(n)}(x)=0\\}$ and let $I=[a,b]$ a finite closed interval. Show that $$I=\\bigcup_{n=0}^\\infty(I\\cap F_n).$$ Show that there is a non empty open set $A\\subset I$ where $f$ is a polynomial. My attempt: If $x\\in I$ then by hypotesis there is $n$ such that $f^{(n)}(x)=0$ then $x\\in F_n$ so then $\\bigcup F_n\\supset I$ then $$I=I\\cap\\bigcup_{n=0}^\\infty F_n=\\bigcup_{n=0}^\\infty(I\\cap F_n).$$ Let $$B_k=\\bigcap_{n=k}^\\infty F_n.$$ I want to show that $I\\cap B_k$ has non-empty interior for some $k\\in\\mathbb{N}$. Then there is $A\\subset B_k$ and by Taylor's Theorem $f$ will be a polynomial. But I didn't know how to prove this. I tried using the following bigger set: $$B=I\\cap\\bigcup_{k=0}^\\infty B_k=I\\cap\\bigcup_{k=0}^\\infty \\bigcap_{n=k}^\\infty F_n.$$ I think that it suffices to show that $B^o\\neq\\emptyset$ maybe using the Baire's Theorem proving that $B$ is a not meagre set. More general Problem Let $f$ be an infinitely differentiable function on $[0,1]$ and suppose that for each $x \\in [0,1]$ there is an integer $n \\in \\mathbb{N}$ such that $f^{(n)}(x)=0$. Then does $f$ coincide on $[0,1]$ with some polynomial? If yes then how. I thought of using Weierstrass approximation theorem, but couldn't succeed. Answer: The proof is by contradiction. Assume $f$ is not a polynomial. Consider the following closed sets: $$ S_n = \\{x: f^{(n)}(x) = 0\\} $$ and $$ X = \\{x: \\forall (a,b)\\ni x: f\\restriction_{(a,b)}\\text{ is not a polynomial} \\}. $$ It is clear that $X$ is a non-empty closed set without isolated points. Applying Baire category theorem to the covering $\\{X\\cap S_n\\}$ of $X$ we get that there exists an interval $(a,b)$ such that $(a,b)\\cap X$ is non-empty and $$ (a,b)\\cap X\\subset S_n $$ for some $n$. Since every $x\\in (a,b)\\cap X$ is an accumulation point we also have that $x\\in S_m$ for all $m\\ge n$ and $x\\in (a,b)\\cap X$. Now consider any maximal interval $(c,e)\\subset ((a,b)-X)$. Recall that $f$ is a polynomial of some degree $d$ on $(c,e)$. Therefore $f^{(d)}=\\mathrm{const}\\neq 0$ on $[c,e]$. Hence $d&lt; n$. (Since either $c$ or $e$ is in $X$.) So we get that $f^{(n)}=0$ on $(a,b)$ which is in contradiction with $(a,b)\\cap X$ being non-empty.", "Fundamentally, what does a friction force do for a rolling object? I am very confused by the way my textbook explains it. In my textbook , it says: A wheel rolling on a horizontal flat surface at a constant velocity experiences no friction force. Why? On the same surface, there is an acceleration of the wheel pointing to the right (probably caused by a force), so the ball is angularly accelerating in the clockwise direction. In this case, a friction force appears, and it is also pointing to the right. How come? What does the friction do for this wheel? On an inclined plane, a ball freely rolls down the surface. The direction of friction is up the ramp, which confuses me because in the previous example the friction force was in the direction of the wheel's acceleration. And there is a difference if a wheel is freely rolling and if there is a torque acting on the ball's center of mass. WHY??? What does friction do in these cases? How does it cause an object to roll?", "Can fresh pasta sheets be used to assemble a lasagne, then left in the fridge overnight before baking? Or will this make them mushy or otherwise degrade them? I have recently gotten into making fresh pasta, and I want to prep a lasagne the night before. I have done this before with store-bough dried noodles, but I'm not sure if doing this will have a negative effect on fresh, more delicate pasta.", "How do I get: $$\\cos{\\theta} \\lt \\frac{\\sin{\\theta}}{\\theta} \\lt 1$$", "Find a bijection to prove a fact about integer partitions Prove that for fixed positive integers $k$ and $n$, the number of partitions of $n$ is equal to the number of partitions of $2n + k$ into $n + k$ parts. I tried this with different values of n but can't seem to get a bijection between the two partitions.", "There are no interfaces on which a capture can be done", "Looking for book: contact with aliens, five different races, mismatched claws, biological imperative to breed", "Why there is \"the\" before some names but not others Is there a rule beyond the common \"no the with proper nouns and names\" for the following problem? I saw the Empire State Building. We went to the White House. We saw the Golden Gate Bridge. but I went to Death Valley National Park. I crossed Brooklyn Bridge.", "When can you switch the order of limits?", "How to create custom config section in app.config?", "How to get vertex normals from a shape-key in Python? I'm trying to create an exporter for a format, which includes shape key support. This format requires both vertex coordinates and normals to be specified. This should be logical, because the vertex selected on the image below won't have the same normals: Comparing it to this one: But I actually haven't found any way to export shape key normals. Both Bmesh Vertex and ShapeKey Vertex only store the coordinates. Is there any way to get them?" ]
medi_sts_stackexchange_dupe
Is the current rating of the buck converter must match the dc load current?
Choosing power supply, how to get the voltage and current ratings?
[ "Python Argument Binders How can I bind arguments to a Python method to store a nullary functor for later invocation? Similar to C++'s boost::bind. For example: def add(x, y): return x + y add_5 = magic_function(add, 5) assert add_5(3) == 8", "What other languages have features and/or libraries similar to Perl's format?", "How to Tail -f output with colors using only Awk and show the rest of the output? I was able to do a tail -f output with colors using the awk command. But I'm unsure how to output the rest of the log as it seems to be filtering only those 2 lines. I also want to see the other lines as the log is written. What do I need to put in the awk command to show the rest of the output? Image of my issue. The red text above is without using awk and displays the entire tail -f log. And below that is the same command with the awk color filtering.", "Which meta am I supposed to post on? I'm mostly active on and we have a separate . Most of my questions on IT Security meta have answers with links here. So my question is, where am I supposed to post what i.e. feature request, bug report, behavior questions?", "When looking at a PDF document I often want to zoom-out to scroll quickly to its contents and get an overview. However, when I zoom-out past a certain threshold (it seems to differ per PDF) Safari thinks I want to see the tab overview: I have never found a use for this function, so it only causes annoyance. Can I turn this tab overview off somehow? A solution that uncouples the pinch-to-zoom gesture from the functionality would also work. I'm on Mountain Lion 10.8.5 with Safari 6.1.3.", "Allow the owner of a post to approve a suggested edit even if it was rejected by reviewers", "How to print the longest line in a file? I'm looking for the simplest method to print the longest line in a file. I did some googling and surprisingly couldn't seem to find an answer. I frequently print the length of the longest line in a file, but I don't know how to actually print the longest line. Can anyone provide a solution to print the longest line in a file? Thanks in advance.", "I would like to know if anyone can help me with installing Ubuntu on VirtualBox", "How can I write a program that can detect by itself that it has been changed? I need to write a small program that can detect that it has been changed. Please give me a suggestion! Thank you.", "How do I create a script file for terminal commands?", "EM with Binomial", "How to generate XML file dynamically using PHP? I have to generate a xml file dynamically at runtime. Please help me in generating the below XML file dynamically using PHP. &lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt; &lt;xml&gt; &lt;track&gt; &lt;path&gt;song1.mp3&lt;/path&gt; &lt;title&gt;Track 1 - Track Title&lt;/title&gt; &lt;/track&gt; &lt;track&gt; &lt;path&gt;song2.mp3&lt;/path&gt; &lt;title&gt;Track 2 - Track Title&lt;/title&gt; &lt;/track&gt; &lt;track&gt; &lt;path&gt;song3.mp3&lt;/path&gt; &lt;title&gt;Track 3 - Track Title&lt;/title&gt; &lt;/track&gt; &lt;track&gt; &lt;path&gt;song4.mp3&lt;/path&gt; &lt;title&gt;Track 4 - Track Title&lt;/title&gt; &lt;/track&gt; &lt;track&gt; &lt;path&gt;song5.mp3&lt;/path&gt; &lt;title&gt;Track 5 - Track Title&lt;/title&gt; &lt;/track&gt; &lt;track&gt; &lt;path&gt;song6.mp3&lt;/path&gt; &lt;title&gt;Track 6 - Track Title&lt;/title&gt; &lt;/track&gt; &lt;track&gt; &lt;path&gt;song7.mp3&lt;/path&gt; &lt;title&gt;Track 7 - Track Title&lt;/title&gt; &lt;/track&gt; &lt;track&gt; &lt;path&gt;song8.mp3&lt;/path&gt; &lt;title&gt;Track 8 - Track Title&lt;/title&gt; &lt;/track&gt;", "What did my neural network just learn? What features does it care about and why?", "Beamer consists of multiple frame layouts", "How can I move files and view the progress (e.g. with a progress bar)? When moving large directories using mv, is there a way to view the progress (%)? The cp command on gentoo had a -g switch that showed the progress.", "Why can't a single photon produce an electron-positron pair? In reading through old course material, I found the assignment (my translation): Show that a single photon cannot produce an electron-positron pair, but needs additional matter or light quanta. My idea was to calculate the wavelength required to contain the required energy ($1.02$ MeV), which turned out to be $1.2\\times 10^{-3}$ nm, but I don't know about any minimum wavelength of electromagnetic waves. I can't motivate it with the conservation laws for momentum or energy either. How to solve this task?", "Limit of derivative is zero. Does it imply a limit for f(x)?", "Let's say that a player uses the ready action and says \"If a character aims at me with a weapon, I'll use Teleport to move behind cover.\" What happens? Does this work? If not, please cite the rules to explain why not.", "What is the distinction between \"among\" and \"amongst\"?", "How to prove two equivalence classes are disjoint?" ]
medi_sts_stackexchange_dupe
Java: collection that cannot be converted to List
How to convert a Collection to List?
[ "ZFC + $\\exists$ Standard model $\\rightarrow$ Con(ZFC + $\\exists \\omega$-model) $ZFC + \\exists V_\\alpha$ model of $ZFC \\vdash Con(ZFC + \\exists$ transitive standard model of $ZFC)$ and then $ZFC + \\exists$ transitive standard model of $ZFC \\vdash Con(ZFC + \\exists \\omega-model$ of $ZFC)$ For the first one : We can always find a countable extentional $M \\subset V_\\alpha$ elementary equivalent to $V_\\alpha$. Let $M&#39;$ be the mostowski collapse of $M$. $M&#39; \\approx M$ so $M&#39;$ is model of ZFC. And because $M&#39;$ is countable and transitive then $M&#39; \\in V_\\alpha$ (since $H_{\\omega_1} \\subset V_{\\omega_1}$ and $\\alpha$ is surely far larger than $\\omega_1$). So $V_\\alpha$ is the model of '$\\exists$ a standard transitive model of ZFC'. For the second one : I don't really know how to do it... Does anyone have an idea ?", "Series of books featuring dragons, enchanted forests, magic swords, etc When I was younger I read a series of 3 or 4 books involving largely traditional mages/dragons/enchanted forests. I'd like to buy it for some of my younger extended family members but I can't remember the name of it. Here's what I remember from this: I read the last book first, in which the son of a woman turned out to be largely one of the main characters in the other books takes an enchanted sword into a forest on a quest to do something. At one point in one of the earlier books the group was travelling through a swamp like area to get to a tower where a witch(or mage lived). There was a king (possibly the son's father) who was frozen in a castle during the last book. The evil mages/witches would melt (but not die) when some spell was cast on them. I read the series circa 1992 (estimated), comparable to the DragonLance series it was geared towards a younger audience (I don't remember any sex/brutal slayings of anyone). I believe in the first book the mother of the son in the last book runs away from home and becomes something of a maid to a dragon. I can't remember if there were evil dragons or not, I seem to remember that at least some of them were good (or at least largely neutral). If I think of any other details I'll add them.", "I can't create more than 4 partitions", "Is there a function to extract the extension from a filename?", "The bijection between homogeneous prime ideals of $S_f$ and prime ideals of $(S_f)_0$", "setSystemUiVisibility(SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION) does not work", "was closed as \"Not constructive\" a little while ago by CasperOne. I'm not here to argue about the closure; in fact, I'm forced to agree that, as it stands, the question is explicitly a polling question and eligible to be closed for that reason. I'd like to see it preserved, however; it's got a fair bit of useful in-depth information for ObjC/Cocoa developers on the \"singleton\" topic.* It's also (possibly more importantly) a great duplicate target -- have a look at the list of linked questions. I want to try to stave off deletion, and hopefully get it reopened.** (I did vote for reopening, but it expired.) My thought is to edit the question itself into a \"constructive\" form, but after spending some time pondering how to do so, I'm not crazy about any of the ideas that I've come up with. Essentially they all involve reworking the question to fit the answers: Rewrite the question so that the accepted answer fits exactly. \"I've got this singleton implementation, but I really want the creation to happen earlier in my app's execution. How can I make that happen?\" This is artificial and (in my opinion) doesn't make a particularly good question. Make the question still general, but more concrete and focused on the implementation give in the body. \"What are the pitfalls associated with this singleton creation procedure? Are there other features that my singleton should have?\" This is still skirting the border of discussion->NC, and none of the answers really respond to this exactly. Remove the implementation from the question and just ask for the \"best\" implementation. This obviously requires coming up with stringent criteria for \"best\", and, while it would preserve the relationship between the Q and A's best, might not even move it out of NC territory. I'm looking for suggestions of ways to re-write this so that it can stick around. Alternatively, if you think I should just be advocating for a historical lock, say so. If you think my basic premise is faulty and don't think the question should be preserved at all, I respectfully request that you just downvote me instead of answering -- I'd prefer not to turn this into an argument about the merits of the question, and I definitely don't want it to become a(nother) \"deletionist\"/\"inclusionist\" skirmish (and I am not infrequently ). *Quite a bit of it unfortunately in comments. **Historical locking would also be an acceptable solution to me, but it doesn't seem to fit the \"controversial\" criterion.", "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 aren't there any fighter carriers in the Star Trek universe? All of the ships of every species seem to be medium to large vessels with multiple crew members. Why aren't there single fighter craft and carrier ships to transport them in mass? I've just noticed the difference between Battlestar Galactica and Star Trek, where the former has primarily aircraft carriers, and the latter has battleships. Wouldn't a huge fleet of small fighters be extremely maneuverable and possibly stealthy? Update: For clarity, my question is not about the Federation and their choice of ships, but the universe at large. I would think there would be some diversity in space warfare strategy, such as huge armadas of fighters with base stations / carriers.", "How to send parameter from jsp page to jasper file", "A Terms of Service update restricting companies that scrape your profile information without your permission", "I understand that when I press and release the power button on the top of my iPhone or iPad, it stays on but turns off the screen. Whereas if I press and hold the power button, a \"slide to turn off\" control appears on the screen. Sliding this, as I was told, does turn the unit off, but it does so by suspending the RAM to disk (flash memory, actually.) So, when turning on the iPhone or iPad, it isn't so much rebooting the OS as it is resuming it from flash storage. How to force the OS to completely reboot on these devices?", "Is there a way to check if a file is in use?", "Are repository updates secure? As a bear of little brain from the developer side, I cannot understand why the repository list is http://security.ubuntu.com and the other http(unsecured) sites listed in /etc/apt/sources.list. Without a certificate chain match this appears as \"ask any responder for a list of packages to update\" instead of \"ask the ubuntu.com site...\" Can any network choose to spoof the update sites, and is this a common practice to provide a locally cached and vetted copy?", "biblatex – et al. beginning from second citation? Basically all I need to know is how I can use \"et. al\" beginning from the second citation of a source. I am using the following \\usepackage[ natbib=true, style=authoryear ]{biblatex} I need citations to look like this: First citation of a source Drobetz, Schillhofer, and Zimmermann (2004) Second and further citations Drobetz et al. (2004) Right now, every citation looks like the first one. With the biblatex option maxcitenames I can only adjust all citations and not all but the first one. Any help?", "What are routed events and how it's different from normal events", "Customizing tray/taskbar date display in Ubuntu with GNOME 3", "What's the de-facto way of reading and writing files in Rust 1.x?", "Formula for prime counting function I saw this formula on page 2 $$\\pi (n)=\\sum_{j=2}^{n}\\frac{\\sin^{2}\\left(\\pi \\frac{(j-1)!^{2}}{j}\\right)}{\\sin^{2}(\\frac{\\pi }{j})}$$ Where $\\pi(n)$ is the prime counting function. Is this true? How to prove it?", "When did the word \"so\" begin to be used to start a sentence? In the last few years, I've noticed a growing usage of the word \"so\" to begin a sentence, especially in the context of higher education. For example: Interviewer: \"What is the nature of your research\" Researcher: \"So, what we wanted to find out is...\" It seems to be a replacement the word \"well\", or, more informally, \"ok\". Has this usage of the word been around for a long time and I'm just now noticing it? Do you think that is a valid use of the word?" ]
medi_sts_stackexchange_dupe
How to get the Json format in android
What is a NullPointerException, and how do I fix it?
[ "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?", "Prove the following $A \\setminus (B\\setminus C) = (A\\setminus B)\\cap (A \\cup C)$ I want to prove the following so I decide to rewrite the RHS $$A \\setminus (B\\setminus C) = (A\\setminus B)\\cap (A \\cup C)$$ $$ A\\setminus(B\\setminus C) = A\\setminus (B \\cap C^c) = A\\cap (B\\cap C^c)^c = A\\cap(B^c\\cup C) = (A\\cap B^c)\\cup(A\\cap C) $$ there is way that $(A\\cap B^c)\\cup(A\\cap C)\\rightarrow (A\\setminus B)\\cup(A\\cap C) = (A\\setminus B)\\cap (A \\cup C)$? thanks. EDIT LHS: $$x\\in A \\vee x\\in A\\cap C \\rightarrow x\\in A \\wedge x\\in C$$ RHS: $$x\\in A \\wedge x\\in A\\cup C \\rightarrow x\\in A \\vee x\\in C$$ how it can help me?", "How to remove Windows 10 from Windows Boot Manager after uninstalling it? I installed Windows 7 on one partition and formatted the other where I had Windows 10 installed leaving only that one Windows 7 OS on my drive, but I still have two OSs offered in Windows Boot Manager. What is even weirder is that their names are reversed, when I choose Windows 10, it's Windows 7 that gets loaded.", "How do I install Java?", "Integral representation $B_T^3$ I have to find a $F_t$ such that $B_T^3=E[B_T^3]+\\int_0^T F_t dB_t$. I have shown by ito formula that $B_T^3=\\int_0^T 3 B_s^2 dB_s+\\int_0^T 3 B_s ds$. Could you please help me?", "Converting a list of tuples into a dict I have a list of tuples like this: [ ('a', 1), ('a', 2), ('a', 3), ('b', 1), ('b', 2), ('c', 1), ] I want to iterate through this keying by the first item, so, for example, I could print something like this: a 1 2 3 b 1 2 c 1 How would I go about doing this without keeping an item to track whether the first item is the same as I loop around the tuples? This feels rather messy (plus I have to sort the list to start with)...", "I was wondering if there is a simpler way to find the last to digits of a power such as $3^{45}$. I reduced it modulo 100 to get the answer, which is 43. But I was curious if there was a simpler, or more eloquent way to get this result. Here's my method: Using the fact that $3^4=81\\equiv -19 \\pmod{100}$ and $19^5=2,476,099\\equiv -1 \\pmod{100}$ $$ 3^{45}\\equiv 3(3^4)^{11}\\equiv 3(-19)^{11}\\equiv 3(-19)(19^5)^2\\equiv 3(-19)(-1)^2 \\equiv -57 \\equiv 43 \\pmod {100} $$ I just felt like this was sort of a messy way to find out that the last two digits are 43.", "I have an existing windows application, for which I have decided to create a Mac version. The problem is that the current UI involves a lot of buttons, tabbed panels, multiple windows etc. This UI had been rated as intuitive and easy to use and straightforward by many customers and editors. But a beginner (very less experience) may find in confusing a little, but it has been complemented with tutorial. When creating the Macintosh variant, should I focus on creating a simplified and minimalistic UI (this does not mean the current UI is complex, but I think Mac user's prefer a simple UI right?) or should I try to copy the exact same thing? By reducing the UI some of the features may be missing. But it can be added later if needed. Should I focus on a fresh approach (this is easier rather than copying the complex UI pattern) or should I go with the old recognized setup?", "I have unistalled and reinstalled the Ubuntu Software Center as per info I found in a similar thread and I got the same response about line 91 or something like that. I just tried to upload a screen shot but since I'm new it won't allow me to. I also can not figure out how to cut and paste anything so I have to hand type what the error screen says, both when I attempt to open the software center and nothing happens, when I try to enter commands into the terminal to uninstall, reinstall, whatever I get the same following: COULD NOT INTITIALIZE THE PACKAGE INFORMATION An unresolvable problem occured while initializing the package information Please report t:his bug against the 'update-manager' package and include the following error message: 'E: Malformed line 91 in source list/etc/apt/sources.list (dist parse) E: The list of sources could not be read., E: The package list of status file could not be parsed or opened. How do I report bugs? What can be done about this. I have searched and everything everyone says to do leads me back to the same line error message. So, I don't know how to get to line 91 in the source list; to tell you what it says. Sorry, I'm really new to this. That is what I need is to find out how to get there and fix what it says. I would really like to NOT have to re partition my hard drive and start from scratch, so I'm really looking forward to getting this problem solved. I need to be able to install new software.", "Mathematica not plotting whole logarithmic function", "Is it possible to add new predictions/autofill in Overleaf? For example, when I use the command (in Overleaf/ShareLaTex): \\begin{figure}[H] \\centering \\includegraphics{some_graphic} \\caption{some_caption} \\label{fig:some_label} \\end{figure} the \\includegraphics{} comes without the [] parameter to change the size of the image, and \\begin{figure} without the [H] option by default. Is it possible to renew the command to make it default? By that I mean that when I type the \\begin{figure} command it adds the [H] and [h] as well as [width=\\textwidth] in the \\includegraphics command, rather than making a global change in the preamble e.g.", "Ralink MT7601U (148f:7601) Wi-Fi adapter installation I am trying to install a Ralink wifi adapter in Ubuntu Desktop 14.04. The system is not detecting the wifi. lsusb lists the device as: Bus 002 Device 004: ID 148f:7601 Ralink Technology, Corp. I have the rt2800 USB driver listed in \"/etc/modules\"; Following some instructions on the web, I tried this command: echo 148F 7601 | sudo tee /sys/bus/usb/drivers/rt2800usb/new_i lsmod | grep rt2800 returns the following: rt2800usb 26581 0 rt2x00usb 20041 1 rt2800usb rt2800lib 83150 1 rt2800usb rt2x00lib 48886 3 rt2x00usb,rt2800lib,rt2800usb mac80211 545990 3 rt2x00lib,rt2x00usb,rt2800lib crc_ccitt 12627 1 rt2800lib", "Uniform vs discrete Gaussian sampling in Ring learning with errors 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.", "Is it possible to recover an email that has been clicked \"delete forever\" in the trash folder?", "How do they express the time, in American and British English? I don't know if this is a good question. But as far as I know, and as I do it, American English also say \"after\" other than \"past\" in expressing times. For example, a quarter after six instead of, a quarter past six as in British English. The other difference I know, so far, is that the British use dots to separate \"hour\" and \"minute\" in digital times like \"08.35\" while Americans use a colon e.g; \"08:35\". So is what I know, so far, correct? Or are there any other differences that I don't know about?", "Deleting external/auxiliary files?", "Correcting projection of 360° content onto a sphere - distortion at the poles I'm using the Autopano Giga 4.4 and Autopano Video Pro 2.6 to stitch and create spherical content, but I've recently moved into wanting to create 360° tours via Unity. I know this is partly a developers question, but if anyone out there can help me with the right specs for exporting a spherical image or video from Giga to use to create the image for the inside of the sphere on Unity, I'd appreciate it! Experimenting with Premiere and FCPX to edit highlight reels of spherical content, I've had seamless experiences created. For some reason in Unity, the images appear to be stretched around the sphere wrong and it's creates issues on the top and bottom of the image: The image shown is the bottom of the sphere. I'm using the Android platform to hopefully turn these tours into apps when completed. Thank you for any help!", "How is momentum conserved in this example?", "Diminishing returns / non-linear reputation from “great” answers Over time I realized a very annoying property of the Stack Overflow reputation system: Easy answers to popular question are rewarded with a lot more reputation points than actually great answers. In case anybody actually needs examples for this, here are two examples from : gained me 420 rep, I invested 2 minutes writing it, and it only was a wild guess. took me about an hour for the research and the math and gained me 40 rep. Now I know that you are bound to get more rep for answers that are useful to more people, and I'd say that's fine. But the current situation is quite extreme: 30% of my reputation is from 5 of my 330 answers, and they are definitely far from being my best ones. A final example that is not from my profile, but more extreme: Do you really think is worth 40000 reputation? My proposition to improve that situation would be to make the reputation gain from a single answer non-linear, maybe even have it capped at a certain point. I'm not sure on how that non-linear function should look exactly, and would leave good proposals for that to users with more experience than me.", "\"can't\" versus \"couldn't\", what is the difference? That can't be Obama at the door, it's too early. That couldn't be Obama at the door, it's too early. What is the difference between them? Are they almost the same?" ]
medi_sts_stackexchange_dupe
Struggling with a Bayes theorem/conditional probability question
The Monty Hall problem
[ "Is it possible to include one CSS file in another? Is it possible to include one CSS file in another?", "What is the typical orbital life of an artificial satellite? The orbit of satellites around Earth eventually decays, or so I read. This is typically caused either by atmospheric drag, or by tides. I would assume most satellites have a limited service life in orbit. Hence the question - What is the typical orbital life of a satellite? How long before it's successor must be launched into orbit ? EDIT: For instance, a weather satellite", "Prove that $\\left | \\frac{a-b}{a+b}+\\frac{b-c}{b+c}+\\frac{c-a}{c+a} \\right | < \\frac{1}{8}.$", "Finding a basis for a certain vector space of periodic polynomials", "Google Chrome won't install on 17.04 I had to remove Chrome to have enough space to upgrade from 16.10 to 17.04. I downloaded the latest version from Google. But when it opens in the Ubuntu Software Manager, and I click on \"Install\", nothing happens.", "What is the correct way to use infinitive after the verb \"help\": with or without \"to\"? What is the correct way to use infinitive after the verb \"help\": with or without \"to\"? For example: Please, help me to understand this. or: Please, help me understand this.", "Commutator Subgroup of Direct Product equals the Direct Product of the Commutator Subgroups I need to prove that $(G_{1}\\times G_{2})^{\\prime} = G_{1}^{\\prime} \\times G_{2}^{\\prime}$, where $G^{\\prime}$ denotes the commutator subgroup of $G$ - i.e., $G^{\\prime}=[G,G]$, the subgroup generated by all commutators of elements of $G$. Recall that the commutator of two elements $x$ and $y$ in a group $G$, denoted $[x,y]$ is defined to equal $x^{-1}y^{-1}xy$. I have posted my proof as an answer below. Could somebody please take a look at it and let me know if it's okay? If not, please let me know what I need to do in order to fix it. Thank you. :) Edit: I have been informed that my answer given below actually shows only equality of the set of commutators, and that $G^{\\prime}$ consists of products of commutators. So, this question is no longer a proof check, but I am asking specifically how to fix what I have written below in order to make it actually answer the thing I set out to prove. I am having a bit of trouble understanding some of the hints given me thus far, and am going to need more detail in any answers given in order for them to be helpful.", "About $\\lim \\left(1+\\frac {x}{n}\\right)^n$ I was wondering if it is possible to get a link to a rigorous proof that $$\\displaystyle \\lim_{n\\to\\infty} \\left(1+\\frac {x}{n}\\right)^n=\\exp x$$", "I am trying to prove the summation formula using induction: $$\\sum_{k=1}^n \\frac{1}{k(k+1)} = 1-\\frac{1}{n+1}$$ So far I have... Base case: Let n=1 and test $\\frac{1}{k(k+1)} = 1-\\frac{1}{n+1}$ $\\frac{1}{1(1+1)} = 1-\\frac{1}{1+1}$ $\\frac{1}{2} = \\frac{1}{2}$ True for n=1 Induction Hypothesis: Assume the statement is true for the n-th case $\\sum_{k=1}^n \\frac{1}{k(k+1)} = 1-\\frac{1}{n+1}$ Inductive Step: Prove, using the Inductive Hypothesis as a premise, that $$\\sum_{k=1}^{n+1} \\frac{1}{k(k+1)} = \\sum_{k=1}^{n} \\frac{1}{k(k+1)} + \\frac{1}{(n+1)(n+2)} = 1-\\frac1{n+1} + \\frac{1}{(n+1)(n+2)} = \\frac{(n+1)(n+2)}{(n+1)(n+2)}+\\frac{-2-n}{(n+1)(n+2)}+\\frac{1}{(n+1)(n+2)} = \\frac{(n+1)(n+2)-2-n+1)}{(n+1)(n+2)} = \\frac{(n+1)(n+2)-n-1}{(n+1)(n+2)} = \\frac{n^2+2n+1}{(n+1)(n+2)} = \\frac{(n+1)(n+1)}{(n+1)(n+2)} = \\frac{n+1}{n+2}$$ To prove $$ 1-\\frac{1}{n+2} = \\frac{n+1}{n+2} $$ Multiply both sides by $n+2$ to get an equivalent expression. $$ (1-\\frac{1}{n+2}) * (n+2) = (\\frac{n+1}{n+2}) * (n+2) $$ $$ n+1=n+2−1 $$ Does this all make sense? How can this be improved upon?", "What is the difference between the three sentences below? I have been married with her for three years. I was married with her for three years. I married her for three years.", "(Re?)Install Ubuntu on a Dell laptop that had Ubuntu preinstalled I have Dell Laptop that is 15 5567 7th Generation. So it was maybe pre-installed as Dell says and I can see in the product information that this laptop is Ubuntu built in and based not Windows. So I want to get my Ubuntu OS again. How can I do that?", "I think we can all agree, this sucks: If you've been around a little while, you've probably encountered hundreds of answers like this in various forums, some of them even marked as &quot;The Answer&quot; by well-meaning1 forum admins looking to close a thread. We could try to enumerate the commonly-observed problems with it... Link is probably broken If link isn't broken, it's spam If link isn't spam, it's to some broadly-related resource that the answerer found by pressing &quot;I'm feeling lucky&quot; when googling the question's title. ...but the real issue here is that we don't know! Even if the link was originally pointing directly to the most awesomeest answer ever for exactly the question being asked, there's nothing in the answer itself to even hint at what direction we're being pointed in. Strip the markup, and this is what you're left with: i think you should take The tutorial HERE! This will help you a lot Is there even one tiny speck of information there? No. Even the title of the page being linked to would have provided something to go on, but that was entirely too much work. So let me be clear: this sort of response is not an answer. If you see this, flag it. Moderators, if you see it flagged, delete it. There's really only one valid exception to this rule, and that's when the question is: Suggest me some tutorials where i can learn quick. Don't get me wrong, it's still a bad answer - but when the question is kinda asking for bad answers this is to be expected. Close or flag the question and move on - this is much more efficient than hanging around to babysit it by deleting every crap answer that inevitably shows up. If you're still reading, you're probably getting really bored by now. &quot;Gee, Shog - answers that contain ZERO information are terrible, horrible, very-bad things? What shocking revelations will you share next?&quot; Yeah. It's really simple... Except, . See, the problem is that once you step away from black-and-white &quot;answers / doesn't answer&quot; decision-making, things get... Interesting. And all those other answers with links in them See, this is an answer: And so is this: Yes, they're both very short, and yes, they contain links. But strip the markup, and you still get at least a little bit of useful information. Does that mean these answers should forever hang around the site? No, not necessarily - if it turns out they're just not that useful, they should probably still be removed - or at very least, down-voted so that they rank below other answers. Just remember: if the text of the post contains an honest attempt at answering the question, then it is an answer - so don't flag it otherwise, and if you do, don't complain if your flag gets declined. Answers &amp; Apples If you're still confused, forget about answers. Think about apples instead: Answers are just like that, but less tasty in pies. 1 By which I mean to say, &quot;criminally lazy&quot;", "A recent downvote drew my attention to my four years ago to . I edited the answer to update the links and to (very slightly) change the tone of the answer. I was in a very bad mood at the time of the answer. Still, reading the comments, I think I was largely correct: it's better for the site if we encourage people to do a little research before posting. Maybe even just the \"two minutes of searching\" that I refer to in the answer. I was considering deleting the answer, but decided to bring the old debate back to Meta, instead. \"Was I right, or was I right?\"", "Optimal estimation of a single parameter given data at different scales Let $A,B,C,D$ be independent normal random variables distributed according to $\\mathcal{N}(0,\\sigma^2)$ and $E = A+B+C+D$. The goal is to provide an optimal estimate of $\\sigma^2$ given samples of $A,B,E$ but not $C,D$. In this case optimal refers to minimising the root-mean square deviation of the estimate $\\hat{\\sigma}^2$: $$RMSD(\\hat{\\sigma}^2) = \\sqrt{\\mathbb{E}\\left[\\left(\\hat{\\sigma}^2-\\sigma^2\\right)^2\\right]}$$ I can think of a simple approach to estimate $\\sigma^2$ given samples of $A,B$ which is to simply compute the sample variance. Also I know that the variance of $E$ is $4\\sigma^2$ so I could compute the sample variance of $E$ and divide it by 4 to get an estimate of $\\sigma^2$. However it should be possible to combine the information from both $E$ and $A,B$ to improve estimation $\\sigma^2$. Could you outline the approach to use both sets of information?", "Are InnoDB Deadlocks exclusive to INSERT/UPDATE/DELETE?", "Consider a complete metric space $(X,d)$ and $T\\colon X\\to X$. Suppose there exists $n\\in\\mathbb{N}$ such that the n-th power of $T$ is $q$-contractive. Show that then $T$ has exactly one fixed point $\\overline{x}\\in X$. The n-th power is defined inductively: $$ T^{n+1}(x):=T(T^{n}(x)), n\\in\\mathbb{N}. $$ And for a function $T\\colon X\\to X$, $q$-contractive means $$ \\exists 0\\leq q&lt;1~\\forall~x,y\\in X: d(T(x),T(y))\\leq q d(x,y). $$ Now to the proof. I think I have to show, that $T$ is q-contractive, because then it follows with Banach, that $T$ does have exactly one fixed point. So I have to show, that there exists a $0\\leq q&lt;1$ so that for all $x,y\\in X$ it is $$ d(T(x),T(y))\\leq q\\cdot d(x,y). $$ And most likely I have to use the q-contractivity of $T^n$, i.e. that there exists a $0\\leq q &lt;1$ so that for all $x,y\\in X$ it is $$ d(T^n(x),T^n(y))\\leq q\\cdot d(x,y). $$ Can you help me?", "Somewhere in the provided answer: $$\\int \\frac{1}{\\sqrt{2-x^2}} dx = \\sin^{-1}{\\frac{x}{\\sqrt{2}}}$$ How did they get that? What I have: $$\\frac{1}{\\sqrt{2-x^2}} = \\frac{1}{\\sqrt{2(1-\\frac{x^2}{2})}} = \\frac{1}{\\sqrt{2} \\sqrt{1-\\frac{x^2}{2}}}$$ $$\\frac{1}{\\sqrt{2}} \\int \\frac{1}{\\sqrt{1-(\\frac{x}{\\sqrt{2}})^2}} = \\frac{1}{\\sqrt{2}} \\sin^{-1}{\\frac{x}{\\sqrt{2}}}$$ So I have an extra $\\frac{1}{\\sqrt{2}}$ ... I probably had some stupid mistakes?", "Proving Invertibility and Eigenvalues If matrix $A$ is an $n\\times n$ matrix such that $A^2 -A -2I=0$. How can I show that $A$ is invertible and that $A^{-1} = \\frac12(A-I)$? Also, how do I show that one of the eigenvalues of $A$ is $2$ or $ -1$? I appreciate any help on this question.", "Is a \"split plot\" ANOVA with two factors the same as two-way ANOVA with repeated measures in one factor? Is a \"split plot\" ANOVA with two factors identical to two-way ANOVA with repeated measures in one factor? if not, what is the distinction?", "Why is integration the inverse of differentiation" ]
medi_sts_stackexchange_dupe
How to apply self in method parameter in Python
Initialize parameter of method with default value
[ "Why are SO participants so unfriendly?", "Changing order of features in shapefile", "Get full path of the files in PowerShell", "How to search based on part of file name in Google Drive I'd like to be able to find all files in my Google drive that contain the string \"_INSTRUCTION_\" in the file name. Is there a way to do this? EDIT 1: When I search for \"RMA2013\", I should get a dropdown with several options. As you can see, there are several Word and .pdf files with the phrase \"RMA2013\". Still I get no dropdown help: And even if I click the search button, I get nothing:", "We've just been learning about complex numbers in class, and I don't really see why they're called numbers. Originally, a number used to be a means of counting (natural numbers). Then we extend these numbers to instances of owing other people money for instance (integers). After that, we consider fractions when we need to split things like 2 pizzas between three people. We then (skipping the algebraic numbers for the purposes of practicality), we use the real numbers to describe any length; e.g. the length of a diagonal of a unit square. But this is when our original definition of a number fails to make sense- when we consider complex numbers, which brings me to my main question: what is a rigorous definition of 'number'? Wikipedia claims that \"A number is a mathematical object used to count, label, and measure\", but this definition fails to make sense after we extend $\\mathbb{R}$. Does anyone know of any definition of number that can be generalised to complex numbers as well (and even higher order number systems like the quaternions)?", "Isometry from Manhattan plane to Euclidean plane? Does there exist an isometry from a Manhattan plane $A$ to a Euclidean plane $B$? I.e. a function $\\varphi:A \\to B$ that suffices $\\|\\varphi(a)\\|_B = \\|a\\|_A$ for all $a \\in A$, where $\\| \\cdot \\|_A$ is the Manhattan norm and $\\| \\cdot \\|_B$ the Euclidean norm.", "Pointer to class data member \"::*\" I came across this strange code snippet which compiles fine: class Car { public: int speed; }; int main() { int Car::*pSpeed = &amp;Car::speed; return 0; } Why does C++ have this pointer to a non-static data member of a class? What is the use of this strange pointer in real code?", "Visiting Russia as an Arab. Am I going to be hassled?", "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.", "The Definitive C++ Book Guide and List This question attempts to collect the few pearls among the dozens of bad C++ books that are published every year. Unlike many other programming languages, which are often picked up on the go from tutorials found on the Internet, few are able to quickly pick up C++ without studying a well-written C++ book. It is way too big and complex for doing this. In fact, it is so big and complex, that there are very many very bad C++ books out there. And we are not talking about bad style, but things like sporting glaringly obvious factual errors and promoting abysmally bad programming styles. Please edit the accepted answer to provide quality books and an approximate skill level — preferably after discussing your addition in . (The regulars might mercilessly undo your work if they disagree with a recommendation.) Add a short blurb/description about each book that you have personally read/benefited from. Feel free to debate quality, headings, etc. Books that meet the criteria will be added to the list. Books that have reviews by the Association of C and C++ Users (ACCU) have links to the review. *Note: FAQs and other resources can be found in the and under .", "Does the PHB+1 character-building limit in Adventurers League include spells? I’m thinking of trying out a Hexblade Warlock in Adventurers League, which limits players to PHB+1 for character-building. The problem I have with this is that the Hexblade is from Xanathar's Guide to Everything, but I really want the booming blade cantrip as well from the Sword Coast Adventurer's Guide. Is this legal in Adventurers League play?", "Fancy vertical timeline I'd like to have a timeline as similar as possible to this with the addition of being able to add a logo at the left of each textbullet, but I've got no clue at all: Thanks very much in advance for any help :) p.s. I've stumbled upon this answer () but I don't how to modify it to get what I want!", "not able to execute multiple commands on multiple linux machines?", "Converting PostGIS point to text causing loss of data? I have a road network and want to test connectivity between the features. I am having trouble with two specific features, the rest of the dataset is functioning just fine. When I get those 2 links' start &amp; end locations using ST_StartPoint and ST_EndPoint, the result is that they are slightly different. However, when I convert the result to text by wrapping it like so: ST_AsText(ST_StartPoint(geom)) and ST_AsText(ST_EndPoint(geom)) then the results are exactly the same. Is it possible they are actually off by a tiny amount like .000000001 and the ST_AsText loses a decimal point?", "I have a dataset with a large number of Yes/No responses. Can I use principal components (PCA) or any other data reduction analyses (such as factor analysis) for this type of data? Please advise how I go about doing this using SPSS.", "I want to prove that: $\\ln(x+1)&lt; x$. My idea is to define: $f(x) = \\ln(x+1) - x$, so: $f'(x) = \\dfrac1{1+x} - 1 = \\dfrac{-x}{1+x} &lt; 0, \\text{ for }x &gt;0$. Which leads to $f(x)&lt;f(0)$, so $\\ln (x+1)-x&lt;0$. Is that a valid proof? Any other ideas? Thanks.", "Why do we use the object instead of the subject pronoun in constructions like \"stupid me\"? I'm trying to find out how come we say lucky me and stupid us rather than lucky I and stupid we. My understanding is that this is not a recent invention, but a relic from the distant past where it was a dative construction. However, I don't see the reason for using any case other than the nominative in this construction to begin with. He went surfing. → Lucky him went surfing. I got pulled over. → Stupid me got pulled over. They bought a house. → Thoughtless them bought a house. This is rather intriguing. After thinking about it for a while, I couldn't come up with any other language, Germanic or otherwise, where simply introducing an adjective would dictate a change of grammatical case. This appears to be an English peculiarity. How far can it be traced back? Can anyone comment on its background?", "highest power of prime $p$ dividing $\\binom{m+n}{n}$", "Installing \"firmware-b43-installer\" offline How can I install firmware-b43-installer driver if I can't connect to internet by wire?", "Confused About Trigonometric Substitution" ]
medi_sts_stackexchange_dupe
What's the use of the .eh_frame section in C programs?
What do the .eh_frame and .eh_frame_hdr sections store, exactly?
[ "Why is the sun brighter in Australia compared to parts of Asia?", "Can you teleport farther away with misty step if you have a double from Invoke Duplicity? The Channel Divinity feature says: you can cast spells as though you were in the illusion's space, but you must use your own senses. (PHB 63) If you were where your duplicate is, you could step to a space 30ft from its position. So if it is 60ft from you, you could teleport to a space 90ft from your actual position. But the spell says that: you teleport up to 30 feet (PHB 260) This would put a hard limit on the distance you can travel. Which rule takes precedence here?", "Today I found my first ever (to the best of memory) emoji in a post. Having no idea this was even possible I came here looking for some history. I found there is an tag. There seems to be consensus that they add little to no value on SE per &amp; we also know they don't translate well on all devices I don't find any history other then this one post where there is any focused attempt to support them. I don't find any history of discussion on supporting them. Two questions Is it possible to disable emojis across Stack Exchange? If yes Should we disable emojis across Stack Exchange?", "Find the MLE of the unknown parameter $\\theta$ when $X_1,X_2,...,X_n$ is a sample from the distribution whose density function is: $$f_X(x) = \\frac12e^{-|x-\\theta|}, -\\infty&lt;x&lt;\\infty$$ What I did so far: $$\\text{maximize }(\\frac12)^ne^{-|x_1-\\theta|-|x_2-\\theta|-...-|x_n-\\theta|} \\\\ \\text{thus we want to minimize }|x_1-\\theta|+|x_2-\\theta|+...+|x_n-\\theta|$$ Since $|x_i-\\theta|$ is positive for all $i$, we want to solve for $\\theta$ so: $$|x_1-\\theta|+|x_2-\\theta|+...+|x_n-\\theta|=0$$ What do I do from here?", "How to save the render result within Blender Is it possible to render an image and have blender remember it, so that next time I open the file the render result will not be blank? I am not talking about saving to an external file. Specifically I would like to render an image, close blender, and come back later and be able to do some compositing on the render without having to waste a half an hour rendering it again (my GPU drivers are messed up so I have to use the CPU). Currently the render result is blank when ever I open a file.", "Where to start with Oracle?", "When programming interfaces, I've found I'm doing a lot of casting or object type conversion. Is there a difference between these two methods of conversion? If so, is there a cost difference or how does this affect my program? public interface IMyInterface { void AMethod(); } public class MyClass : IMyInterface { public void AMethod() { //Do work } // Other helper methods.... } public class Implementation { IMyInterface _MyObj; MyClass _myCls1; MyClass _myCls2; public Implementation() { _MyObj = new MyClass(); // What is the difference here: _myCls1 = (MyClass)_MyObj; _myCls2 = (_MyObj as MyClass); } } Also, what is \"in general\" the preferred method?", "Max Block Height for a Redstone Contraption What's the max height of blocks for a redstone contraption to still work even I'm in the surface below? Like if I build a pillar to the max height of blocks and build a redstone contraption there, is it still going to work even I'm on the surface below?", "Enable USB debugging (under settings/applications/development) programmatically from within an app", "Drawing on an image with TikZ", "What a pluperfect a##hole", "\"Effect\" vs. \"Affect\"", "How to prove $\\sum\\limits_{r=0}^n \\frac{(-1)^r}{r+1}\\binom{n}{r} = \\frac1{n+1}$? Other than the general inductive method,how could we show that $$\\sum_{r=0}^n \\frac{(-1)^r}{r+1}\\binom{n}{r} = \\frac1{n+1}$$ Apart from induction, I tried with to check the validity, but I can't think of an easy (manual) alternative. Please suggest an intuitive/easy method.", "Mcrypt extension is missing in 14.04 server for mysql The php mcrypt extension on ubuntu 14.04 shows that it is installed properly, but phpmyadmin says: The mcrypt extension is missing. Please check your PHP configuration. My current php config is . If you need anymore information, please contact me through the comments. $ sudo apt-get install php5-mcrypt Reading package lists... Done Building dependency tree Reading state information... Done php5-mcrypt is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.", "Forcing linebreaks in \\url", "How many generator has a cyclic group of order n?", "I think I accidentally pressed something to make it like this: See how the XYZ arrows are at the 3D cursor instead of those vertexes I've selected? How do I fix that? Whenever I select on a vertex or something, those blue, red, green arrows would always be where I selected, now it just keeps going to the 3D cursor.", "Let $G = (\\mathbb{C} - \\{0\\}, \\cdot)$, a subgroup $U = \\{x+yi \\mid x^2 + y^2 = 1\\}$. Use the Fundamental Theorem to show that $G/(\\mathbb{R}_{&gt; 0},\\cdot)$ is isomorphic to $U$ where $\\mathbb{R}_{&gt; 0}$ denotes the positive reals. I am struggling to find the correct mapping from $G$ to $U$ that results in the the kernel being the nonnegative reals under multiplication. I'm hoping to get help with this mapping then I can show it is a homomorphism and onto and can use the Fundamental Theorem.", "Rerouting stdin and stdout from C", "What's the Best Practice reinstalling windows 7 on a dual boot with ubuntu 11.04 I've posted a question that I have a 32bits windows 7 on a dual boot machine with ubuntu 10.04 upgraded to 11.04. From the responses I had from the questions, I decided to reinstall the windows 7 but this time a 64bits version. I've install the grub on the first section of the HDD on which ubuntu is install, meaning the 2nd Drive. I still want guidance before I proceed. What would you suggest me as best way to achieve that without disturbing the boot loading. thank you for reading this." ]
medi_sts_stackexchange_dupe
Is there a black 'dot' symbol that I can use?
How to look up a symbol or identify a letter from a math alphabet or other character?
[ "How to squeeze error message out of PDO?", "How can I stream the same music to multiple computers? Is there a way to stream the same playlist on multiple computers at the same time? I want to be able to sync what's playing on multiple computers (for parties etc).", "How can the contact point of rolling body have zero velocity? They say that for a rolling body, the velocity of the contact point is zero. I'm not getting this. How can it be zero when it's in continuous motion?", "I was hoping someone could give an overview as to how the Lie groups $SO(3)$ and $SU(2)$ and their representations can be applied to describe particle physics? The application of Lie groups and their representations is an enormous field, with vast implications for physics with respect to such things as unification, but I what specifically made these groups of physical importance and why there study is useful. I have just started studying these two groups in particular, but from a mathematical perspective, I'd very much appreciate understanding some sort of physical motivation.", "Is the orbit in Schwarzshild metric a path with maximal proper time? In curved spacetime particles follow timelike geodesics, which should have maximal proper time (at least locally). I thought this path usually corresponds to a global maximum, and there are only strange exceptions. Propably I was wrong, or I really don't understand something, because it doesn't seem to be true for the case of orbitals in Schwarzschild geometry. The Schwarzschild metric is (with +--- signature) $$ g_{\\mu\\nu} = \\textrm{diag}\\left(1-\\frac{2GM}{r},-\\left(1-\\frac{2GM}{r}\\right)^{-1},-r^2,-r^2\\sin^2\\theta\\right) $$ An observer with fixed $r,\\theta,\\phi$ coordinates will age according to $d\\tau_1 = \\sqrt{g_{tt}}dt$. An observer, which orbits the center at the same constant radius with $\\theta=\\pi/2$ will age according to $d\\tau_2 = \\sqrt{g_{tt}-\\omega^2r^2\\sin^2\\theta}dt$, so he ages slower during the same amount of coordinate time $dt$. If the two observers start from the same point, they will meet again after a full rotation of the orbiting observer, and the orbiting observer will age less. What I don't understand is that the orbit is the geodesic (if the angular velocity is set properly), so why didn't he age more? He should have been on the path with maximal proper time.", "I get every few minutes on Kubuntu (KDE), and the panels disappear. It restarts itself automatically, so it's not a real problem, just an annoyance, but it is a big annoyance. I've tried sudo apt install --reinstall plasmashell plasma-desktop, but that made no difference. When I try a backtrace from the error message, it says it's unable to produce a useful backtrace.", "How to get Scilab 6.0.1 working on Ubuntu 18.04 LTS? I have installed clean Ubuntu MATE 18.04 LTS and installed Scilab from repository here with sudo apt-get update sudo apt-get install scilab After installation I tried to launch it from GUI (Applications → Other → Scilab) - it does not start. Then I tried to launch it from terminal with scilab command. Terminal output is as follows: $ scilab /usr/bin/scilab-bin: error while loading shared libraries: libjava.so: cannot open shared object file: No such file or directory so it can't find Java. I reported about this problem. I checked existence of libjava.so: $ dpkg -S libjava.so openjdk-11-jre-headless:amd64: /usr/lib/jvm/java-11-openjdk-amd64/lib/libjava.so so it is in place. What should I do to get Scilab 6.0.1 working on Ubuntu 18.04 LTS?", "Which of the following is also an ideal? If $U,V$ are ideals of a ring $R$, then which of the following is also an ideal of $R$? $U+V=\\{u+v\\mid u\\in U,v\\in V\\}$ $U\\cdot V=\\{u\\cdot v\\mid u\\in U,v\\in V\\}$ $U\\cap V$ My attempt: I have proved $U+V$ and $U\\cap V$ are ideals of $R$. My problem: I have problem about the second option. I think it is not ideal of $R$. If I am wrong then please prove this otherwise give one counter example to show that $U\\cdot V$ is not ideal of $R$.", "What are the differences between git pull and git fetch?", "LED light needs replacing every few weeks I have two GU5.3 bulbs in my bathroom - one of them went off a month or so ago so I bought the following 3 pack: I've gone through 2 of the new bulbs in the space of weeks. I have never seen the bulbs fade out while being on, it's only when we turn the light switch on that they don't come back on (like this morning, I was first in the bathroom and the bulb was off again). No fuses blown or any indication of tripping. How should I approach this?", "Resolving ambiguous overload on function pointer and std::function for a lambda using +", "What happens if my ESTA expires on the day of arrival? I'm French and will travel the 14th of June to the US. My ESTA expires the 14th of June 2013 and I'm wondering if my ESTA will be valid when I'll land in the US on the 14th of June 2013. Does someone know anything about that?", "Include the \"People Reached\" and \"Helpful Flags (count)\" data in SEDE", "I know mathematically the answer to this question is yes, and it's very obvious to see that the dimensions of a ratio cancel out, leaving behind a mathematically dimensionless quantity. However, I've been writing a (the specifics of which are out of scope), which has me thinking about the problem because I decided to handle angle units as dimensioned quantities, which seemed natural to enable the unit conversion with degrees. The overall purpose of the library is to disallow operations that don't make sense because they violate the rules of dimensional analysis, e.g. adding a length quantity to an area quantity, and thus provide some built-in sanity checking to the computation. Treating radians as units made sense because of some of the properties that dimensioned quantities seemed to me to have: The sum and difference of two quantities with the same dimension have the same physical meaning as both quantities separately. Quantities with the same dimension are meaningfully comparable to each other, and not meaningfully comparable (directly) to quantities with different dimensions. Dimensions may have different units that are scalar multiple (sometimes with a datum shift). If the angle is treated as a dimension, my 3 made up properties are satisfied, and everything &quot;makes sense&quot; to me. I can't help thinking that the fact that radians are a ratio of lengths (SI defines them as m/m) is actually critically important, even though the length is cancelled out. For example, though radians and steradians are both dimensionless, it would be a logical error to take their sum. I also can't see how a ratio of something like (kg/kg) could be described as an &quot;angle&quot;. This seems to imply to me that not all dimensionless units are compatible, which seems analogous to how units with different dimensions are not compatible. And if not all dimensionless units are compatible, then the dimensionless &quot;dimension&quot; would violate made-up property #1 and cause me a lot of confusion. However, treating radians as having dimension also has a lot of issues, because now your trig functions have to be written in terms of $\\cos(\\text{angleUnit}) = \\text{dimensionless unit}$ even though they are analytic functions (although I'm not convinced that's bad). Small-angle assumptions in this scheme would be defined as performing implicit unit conversions, which is logical given our trig function definitions but incompatible with how many functions are defined, especially since many authors neglect to mention they are making those assumptions. So I guess my question is: are all dimensionless quantities, but specifically angle quantities, really compatible with all other dimensionless quantities? And if not, don't they actually have dimension or at least the properties of dimension?", "What bizarrities lurk within the decimal expansion of an irrational number? i.e. can we write $\\pi = 3.14159\\dots X\\dots$ where $X$ consists of (say) $10^{100}$ consecutive zeroes? [Originally asked on reddit without response :-( ]", "How does the Higgs mechanism work?", "CreateService get error: ERROR_INVALID_ADDRESS (0x000001e7)", "$\\mathbb R$ has the same cardinality of any interval", "How can I determine if someone's SSH key contains an empty passphrase? Some of my Linux &amp; FreeBSD systems have dozens of users. Staff will use these \"ssh gateway\" nodes to SSH into other internal servers. We're concerned that some of these people use an unencrypted private SSH key (A key without a . , because if a cracker ever gained access to their account on this machine, they could steal the private key and now have access to any machine which uses this same key. For security reasons, we require all users to encrypt their private SSH keys with a passphrase. How can I tell if a private key is not-encrypted (e.g. Does not contain a passphrase)? Is there a different method to do this on an ASCII-armored key vs. a non-ASCII-armored key? Update: To clarify, assume I have superuser access on the machine and I can read everybody's private keys.", "Set shortcuts to change keyboard layout in Windows 10? Is there any way to set keyboard shortcuts to quickly change to a different language/keyboard layout? The old shortcuts still seem to work (when set back in Windows 7), but I can't seem to find anything to change it in Windows 10." ]
medi_sts_stackexchange_dupe
Run another binary/exe file using Lua?
How do I run an executable using Lua?
[ "Javascript for multiple elements", "Let $\\mathbb F$ be a field and $\\mathbb K $ be an extension field of $\\mathbb F$ such that $\\mathbb K$ is algebraically closed. Let $\\mathbb L$ be the field of all elements of $\\mathbb K$ which are algebraic over $\\mathbb F$. Then $\\mathbb L_{|\\mathbb F}$ is an algebraic extension. My question is : Is $\\mathbb L$ algebraically closed ? I am trying to prove the existence of algebraic closure, so please don't assume that every field has an algebraic closure.", "Selecting and manipulating CSS pseudo-elements such as ::before and ::after using javascript (or jQuery)", "How to write a Hello World application in Java?", "Deleting Individual SE Accounts", "Specify CSS class names on SVG paths using Illustrator Is there a way to edit SVG files in Illustrator where you can specify a CSS class for each path? I already know in Illustrator that if you give the layer name an actual name, Illustrator will use that name as the path's ID, which is fine if you don't plan on reusing the icon more than once on the same page. My current workaround is to just use the IDs method, but then later convert the IDs to classes in my code editor, but it's pretty annoying to have to do every time I generate my SVG sprite. If that's currently not possible in Illustrator, are there any other apps that will allow you to specify that? Or maybe a Grunt or Gulp package? It looks like you might be able to do it with Inkscape with a , so I might look at that if there's no other good solutions out there.", "I would like to increase the size of pretty much every headlines, so that it is more prominent than the normal text. I read about the package, but can't seem to find good example how to use the package. Using Gonzalo Medina does in fact change the font size, however, it changes the default font as well. Before: After:", "Is there a difference between taking a far shot on a 50mm lens and a close shot on a 35mm lens?", "Elsarticle - Abstract two columns wide I am currently trying to create an article in elsarticle style, twocolumn. The title and text end up in two columns, the abstract however is made two columns wide. Any ideas what I am doing wrong? Obviously I want my abstract to also be only in the first column. \\documentclass[a4paper,10pt,twocolumn,preprint]{elsarticle} \\usepackage{lipsum} \\journal{TexExchange} \\begin{document} \\begin{frontmatter} \\title{Two-column abstract} \\begin{abstract} \\lipsum[1] \\end{abstract} \\begin{keyword} abstract \\end{keyword} \\end{frontmatter} \\section{Outline} \\lipsum[2-3] \\end{document}", "How many subgroups of order $n$ does $D_n$ have? How many subgroups of order $n$ does $D_n$ have? My work: Since subgroups of $D_n$ are either cyclic or dihedral, the subgroups of order $n$ of $D_n$ are $\\left&lt; r \\right&gt;$ (cyclic) and $D_{n/2}$ (dihedral). However, this works only for $n$ is even and $n\\geq 2$. I don't know how to do when $n$ is odd.", "How much creative independence are the Show runners accorded in Game of Thrones? Since Season 3, we have been observing that the show was taking a different direction than the books. Many important characters never made it into the show, others who are still alive were killed off. As we know the show is supposed to be based on the books, not to be direct adaption of the books from print to television media, there's bound to be a certain degree of creative independence accorded to them by the author of the series, George R.R. Martin. The question is, how much independence do they have? Do they still have to take GRRM on board with whatever changes they might intend to make? By \"they\" I mean D&amp;D and the whole writers crew for the show. Given the number of significant changes they have made, I reckon the answer would be a lot. Has GRRM or HBO ever commented on that?", "Accepting an answer should automatically upvote it as well Is there ever a case where you would want to accept an answer, but not upvote it? I can't think of a single situation where this would be the case.. So would it not make sense to have the \"Accept\" button upvote the answer too?", "Sum of reciprocals of numbers with certain terms omitted I know that the harmonic series $1 + \\frac12 + \\frac13 + \\frac14 + \\cdots$ diverges. I also know that the sum of the inverse of prime numbers $\\frac12 + \\frac13 + \\frac15 + \\frac17 + \\frac1{11} + \\cdots$ diverges too, even if really slowly since it's $O(\\log \\log n)$. But I think I read that if we consider the numbers whose decimal representation does not have a certain digit (say, 7) and sum the inverse of these numbers, the sum is finite (usually between 19 and 20, it depends from the missing digit). Does anybody know the result, and some way to prove that the sum is finite?", "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.", "Every real number in $[0,1]$ has a decimal expansion $0.d_1d_2d_3...$, so construct an infinite tree rooted at 0 where each node has branches leading to $\\{0,1,2,3,4,5,6,7,8,9\\} $, and let each path through the tree represent the successive decimal digits of a real number. To enumerate them, go through the tree breadth-first i.e. layer-by-layer.", "Find Nearby Accounts migration to Google Maps API v3 we have been using the Find Nearby Accounts app from appexchange for a while now. The app uses the Google Maps API vs 2 which is now deprecated and hence has rendered the app ineffective. I have tried migrating the Google maps API version for the app from v2 to v3 by generating a v3 API key. The URL for my salesforce instance was included in the creation of the Client ID under API Access. After all these steps, I still get the error \"Problem with Address. I know the address is right. Has anyone been able to get this working? Thanks.", "options for appearance of links in hyperref If I use \\usepackage[colorlinks]{hyperref} I get colored links for \\cite (not good for printing or even viewing) but table of content looks fine. If I use \\usepackage[colorlinks=false]{hyperref} I get \\cite links in black with a colored frame (this looks very good) but the table of content looks strange with extra long boxes. What are my other options? Can you have two styles in different parts of a document? How do you make the page numbers in TOC to be the links instead of the section headers?", "Will there be data loss if I upgrade?", "Please help me out with this problem: Let $f_n(x) : [0,1] \\to \\mathbb R$ be a sequence of continuous functions convergent at every $x \\in [0,1]$ to a continuous function $f: [0,1] \\to \\mathbb R$ . Does $f_n$ converge uniformly to $f$? My first solution: I read this example in posted earlier and I think it works: Take a sequence $f_n:[0,1] \\to \\mathbb R$ such that $f_n$ increases linearly from $0$ to $1$ on the interval $\\left[ 0,\\frac{1}{n} \\right]$, decreases linearly from $1$ to $0$ on the intreval $\\left[ \\frac{1}{n}, \\frac{2}{n} \\right]$, and is $0$ on $\\left[ \\frac{2}{n},1 \\right]$. Then $f_{n} \\to 0$ nonuniformly. Is this answer true? Also, if anyone can give some examples of such function with detailed proof, I will very appreciative?", "Would time freeze if you could travel at the speed of light? I read with interest about Einstein's Theory of Relativity and his proposition about the speed of light being the universal speed limit. So, if I were to travel in a spacecraft at (practically) the speed of light, would I freeze and stop moving? Would the universe around me freeze and stop moving? Who would the time stop for?" ]
medi_sts_stackexchange_dupe
"I've lived in __ two years" vs "I lived in __ two years"
Present-perfect-tense vs. Simple-past-tense
[ "I wrote a DLL in .NET and I want to access it in VBScript. I don't want to add it to the assembly directory. Is there a way to point too the DLL and create an instance of it?", "More section headings? I am a novice in LaTeX and I have one question. Can someone tell me what if you want more heading's in LaTeX. Like 5 or 10 or even 15. Is there a package for that?", "Cardinality of cartesian square Given an infinite set $A$ - does the cardinality of $A$ equal to the cardinality of $A^2$?", "Select from list of reasons when performing downvotes", "form_state->setRedirect(to_a_new_node_page) from the submitForm function, route \"does not exist\" issue I created a custom module, It generate a custom Form in a page. When I submit my form, I create a new node. So, I am redirect to the form page but I would like be redirect to the new node page. I add this line at the end of my submitForm function : $form_state-&gt;setRedirect('node/'.$mynewnode-&gt;id()); But when I submit my form from the website, I get the empty-white-screen-of-the-death. My apache log : ... Uncaught PHP Exception Symfony\\\\Component\\\\Routing\\\\Exception\\\\RouteNotFoundException: \"Route \"node/153\" does not exist. ... And then, when I go manually to the node/153 page, there isn't any problem. The page work well. My question : where is my mistake ? How can I set the redirection after create the new node ? Is it possible from the submitForm function ?", "Is it possible to set the default size of the Empty Object? The problem is since I switched my blender scale to metric, the Empty's default size is kinda large for most times I need it.", "sqlite database default time value 'now'", "jquery stop child triggering parent event", "Why is \"improve this question / answer\" shown to anonymous users instead of \"edit\"? If I browse a site as an anonymous user, instead of \"edit\" I see: \"improve this question / answer\". I don't get it, are anonymous users considered to be kinda dumb and don't understand \"edit\"? Why to reword this action?", "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?", "How do form? Why are they called the \"time-reversed\" versions of a black hole? What's an \"eternal\" black hole? How come a white hole is only encountered if you remove the star from the space-time surrounding the black hole? Why is it that if you add any matter to the area that the white hole disappears? Any explanation greatly appreciated.", "My phone was just stolen an hour or so ago. Are there any options for tracking? 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.", "How do I locate all files that include specific word as part of name and end with specific extension?", "This is a follow up question to . My reference database contains some DOI codes, but mainly normal URLs and some ISBN/ISSN codes. What I would like to achieve is extending the code from Herbert and hyperlink the title of the entry with the following priority: 1. DOI, 2. URL, 3. ISBN/ISSN. What I mean is, if both DOI and URL is available, use DOI. If URL and ISBN is available use URL. If only ISBN is available use that. There are two further isses: The URL field might contain several URLs, which are just seperated by a white space. In that case just the first URL should be used. Herbert's code just extends to articles. I would like to extend this to all entry types. The code from Herbert to Hyperlink the Title with DOIs is: \\newbibmacro{string+doi}[1]{% \\iffieldundef{doi}{#1}{\\href{http://dx.doi.org/\\thefield{doi}}{#1}}} \\DeclareFieldFormat{title}{\\usebibmacro{string+doi}{\\mkbibemph{#1}}} \\DeclareFieldFormat[article]{title}{\\usebibmacro{string+doi}{\\mkbibquote{#1}}} This far surpasses my skill, so it would be great if someone could give me some guidance how to achieve that.", "Does scaling lead to weak convergence to the null function? Let $f\\in L^p(\\mathbb{R}^d)$, with $1&lt;p&lt;\\infty$. Is it true that $$\\lambda^{\\frac{d}{p}}f(\\lambda x ) \\rightharpoonup 0\\quad \\text{ weakly in }L^p\\text{ as }\\lambda\\to+\\infty?$$ One has the easy case for $f\\in L^{p-\\epsilon}\\cap L^p$. This condition allows the use of Hölder's inequality as follows (here $\\frac{1}{p}+\\frac{1}{p'}=1$ and $\\phi$ is a continuous function with compact support): $$\\begin{split}\\left\\lvert \\int_{\\mathbb{R}^d} \\lambda^{\\frac{d}{p}} f(\\lambda x)\\phi(x)\\, dx\\right\\rvert&amp; \\le \\lambda^{\\frac{d}{p}}\\lVert f(\\lambda x)\\rVert_{L^{p-\\epsilon}}\\lVert \\phi\\rVert_{L^{(p-\\epsilon)'}} \\\\ &amp;= \\lambda ^{\\frac{d}{p}- \\frac{d}{p-\\epsilon} } \\lVert f\\rVert_{L^{p-\\epsilon}}\\lVert\\phi\\rVert_{L^{(p-\\epsilon)'}}\\to 0. \\end{split} $$ But what happens if that condition is removed? I carried out an explicit check on the standard example of a function $f$ that belongs to $L^2(\\mathbb{R})$ and does not belong to $L^{2-\\epsilon}(\\mathbb{R})$ for any $\\epsilon &gt; 0$, namely $$f(x)=\\begin{cases} 0 , &amp; x&lt;2 \\\\ \\frac{1}{\\sqrt{x}\\log x}, &amp; x \\ge 2\\end{cases}.$$ Taking $\\phi=\\chi_{[a, b]}$ with $2&lt;a&lt;b$ one has $$\\left \\lvert \\int_{\\mathbb{R}} \\lambda^{\\frac{1}{2}}f(\\lambda x)\\phi(x)\\, dx \\right\\rvert = \\dfrac{ \\int_{\\lambda a }^{\\lambda b} \\frac{dy}{\\sqrt{y}\\log(y)} } {\\lambda^{\\frac{1}{2}}}, $$ and an application of l'Hôpital's rule shows that the right hand side tends to $0$ as $\\lambda \\to \\infty$. This implies weak convergence to $0$ by a standard density argument. This seems to point towards an affirmative answer to the question in the gray box.", "Send Blob file via Apex Rest Callout I'm trying to send a Blob Apex REST callout and it is keep failing. I tried all the examples in the web but didn't work. What is the standard and correct way to send Blob data via REST callouts? //Parameters String strBody = 'flowIdentifier=1&amp;flowFilename=test.jpg&amp;flowTotalSize=14893&amp;flowCurrentChunkSize=14893&amp;flowChunkSize=14893&amp;flowChunkNumber=1&amp;flowTotalChunks=1'; bodyBlob = //Blob data HttpRequest request = new HttpRequest(); request.setEndpoint(END_POINT); request.setMethod('POST'); request.setHeader('content-type', 'multipart/form-data'); request.setBodyAsBlob(bodyBlob); request.setBody(strBody); try{ Http http = new Http(); HttpResponse response = http.send(request); System.debug(response.getBody()); } catch(Exception e) { System.debug('ERROR:'+e); }", "How does Linux handle multiple consecutive path separators (/home////username///file)?", "Showing $\\sum\\limits_{p \\in P} \\frac{1}{p}$ where $P$ is the set of all primes is divergent", "Compute $ \\int_{0}^{ \\infty }\\frac{\\ln xdx}{x^{2}+ax+b}$", "Frobenius Inequality Rank I was looking for an answer for this problem in terms of matrices, but I really don't know how to prove this result. The proposition says that: Let $A\\in M_{m\\times k}(\\mathbb{C})$, $B\\in M_{k\\times p}(\\mathbb{C})$ and $C\\in M_{p\\times n}(\\mathbb{C})$, then $\\textrm{rank}(AB)+\\textrm{rank}(BC)\\leq \\textrm{rank}(B)+\\textrm{rank}(ABC)$" ]
medi_sts_stackexchange_dupe
"in which" vs "where"
“situation where” vs. “situation in which”
[ "leaflet geojson coordinate problem I just started to play with leflet/geojson a little. But my coordinates are not rendered properly and I have no clue what is going on. My coordinates are: 52.23943, 4.97599. They work correct with the setView function. var map = L.map('leaflet_map').setView([52.23943, 4.97599], 15); But using a geojasonFeature they are, hmmm, 'projected', somewhere east of Somalia. var geojsonFeature = { \"type\": \"Feature\", \"properties\": { \"name\": \"Coors Field\", \"amenity\": \"Baseball Stadium\", \"popupContent\": \"This is where the Rockies play!\" }, \"geometry\": { \"type\": \"Point\", \"coordinates\": [52.23943, 4.97599] } }; var myLayer = L.geoJson().addTo(map); myLayer.addData(geojsonFeature).bindPopup(\"I am a gjson point.\"); Anyone who knows what is happening here? EDIT Out of pure curiosity I changed the coordinates around [4.976143930893815,52.23925499011473] and the point appears at its correct location. A known bug!?", "How can I remap a keyboard key?", "What packages do people load by default in LaTeX?", "Prove that $f$ continuous and $\\int_a^\\infty |f(x)|\\;dx$ finite imply $\\lim\\limits_{ x \\to \\infty } f(x)=0$", "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.", "sed fails to remove newline character", "Computing convex hull of points using shapely", "Disk Utility won't Unmount HD for formatting", "Jumping in an elevator?", "Can I use one Apple ID for Apple Music and another for iTunes & App Store? Let us suppose I want to use a shared Apple ID for logging into iTunes &amp; App Store, in order to share music and app purchases with a friend. But let us also suppose that, despite this, my friend and I have very different tastes in music, so I don't want to share Apple Music playlists and \"like\" assertions with my friend. In other words, I don't want Apple Music to think I like the music my friend likes, and vice versa. Is there a way that my friend and I can share an Apple ID for logging into iTunes &amp; App Store, but use different Apple IDs for Apple Music? I suspect the answer is no, but I just wanted to ask.", "Prove that $\\lim_{n\\to\\infty}a_n\\le \\lim_{n\\to\\infty}b_n$ Theorem Let $\\{a_n\\}$ and $\\{b_n\\}$ be convergent real sequences. Assume that there exists a $N\\in\\mathbb{N}$ so $a_n\\le b_n$ (eq. 1) for all $n\\ge N$. Then $\\lim_{n\\to\\infty}a_n\\le \\lim_{n\\to\\infty}b_n$. My attempt at proving Let $a=\\lim_{n\\to\\infty}a_n$ and $b=\\lim_{n\\to\\infty}b_n$. $a$ and $b$ are real numbers because the limit of a sequence of real numbers is a real number (which is a corollary in my textbook). For proof by contradiction, assume $b&lt;a$. Let $\\epsilon=\\frac{a-b}{2}$. Then we can find $N_a,N_b\\in\\mathbb{N}$ so $|a-a_n|\\le\\frac{\\epsilon}{2}$ when $n\\ge N_a$, (eq. 2) $|b-b_n|\\le\\frac{\\epsilon}{2}$ when $n\\ge N_b$. (eq. 3) In a textbook I found that I should do the following: Choose a $n$ so $n\\ge\\max(N,N_a,N_b$), then eqs. (1-3) are satisfied. Then $a-\\epsilon\\le a_n+\\frac{\\epsilon}{2}-\\epsilon$ How do I get that last thing? Is it necessary to do a proof by contradiction or can one do a direct proof?", "Help evaluating a gamma function", "Interfaces with static fields in java for sharing 'constants' I'm looking at some open source Java projects to get into Java and notice a lot of them have some sort of 'constants' interface. For instance, has an interface called , and most other core classes implement this interface. The interface is riddled with static members. Is there a reason for this approach, or is this considered bad practice? Why not use enums where it makes sense, or a static class? I find it strange to use an interface to allow for some sort of pseudo 'global variables'. public interface PConstants { // LOTS OF static fields... static public final int SHINE = 31; // emissive (by default kept black) static public final int ER = 32; static public final int EG = 33; static public final int EB = 34; // has this vertex been lit yet static public final int BEEN_LIT = 35; static public final int VERTEX_FIELD_COUNT = 36; // renderers known to processing.core static final String P2D = \"processing.core.PGraphics2D\"; static final String P3D = \"processing.core.PGraphics3D\"; static final String JAVA2D = \"processing.core.PGraphicsJava2D\"; static final String OPENGL = \"processing.opengl.PGraphicsOpenGL\"; static final String PDF = \"processing.pdf.PGraphicsPDF\"; static final String DXF = \"processing.dxf.RawDXF\"; // platform IDs for PApplet.platform static final int OTHER = 0; static final int WINDOWS = 1; static final int MACOSX = 2; static final int LINUX = 3; static final String[] platformNames = { \"other\", \"windows\", \"macosx\", \"linux\" }; // and on and on }", "In my experimentation, I've used only BJTs as switches (for turning on and off things like LEDs and such) for my MCU outputs. I've been repeatedly told, however, that N-channel enhancement-mode MOSFETs are a better choice for switches (see and , for examples), but I'm not sure I understand why. I do know that a MOSFET wastes no current on the gate, where a BJT's base does, but this is not an issue for me, as I'm not running on batteries. A MOSFET also requires no resistor in series with the gate, but generally DOES require a pull-down resistor so the gate doesn't float when the MCU is rebooted (right?). No reduction in parts count, then. There doesn't seem to be a great surplus of logic-level MOSFETs that can switch the current that cheap BJTs can (~600-800mA for a 2N2222, for example), and the ones that do exist (TN0702, for example) are hard to find and significantly more expensive. When is a MOSFET more appropriate than a BJT? Why am I continually being told that I should be using MOSFETs?", "$D_8$ as a derived subgroup Every undergraduate student knows that there are (exactly) two non-abelian groups of order 8: Dihedral ($D_8$) and Quaternion ($Q_8$). The group $Q_8$ has many interesting properties; simple of them are: it has unique element of order $2$, all subgroups are normal, etc. A property, which is strange and not obvious, the group $Q_8$ has, is that there is no group $G$ such that $G/Z(G)$ is isomorphic to $Q_8$. On the other hand, $D_8$ has no such property; there are (infinitely many) groups $G$ such that $G/Z(G)$ is isomorphic to $D_8$; example - $D_{16}$. The question, I would like to ask, is related to a property of $D_8$, which is not shared by $Q_8$. There are (infinitely many) groups whose derived subgroup is $Q_8$; example- $SL_2(3)$. For groups $G$ of order &lt;100, one can check on GAP that $D_8$ is not a derived subgroup of any group. The natural question is then: Question 1: Does there exist a finite/infinite group whose derived subgroup is equal to $D_8$? Question 2: Does there exist a finite/infinite group whose derived subgroup is equal to (general) dihedral group $D_{2n}$ of order $2n$ ($n&gt;2$)?", "Is there any Stack Exchange site where I can ask others to recommend me good web sites for solving specific problems? For example I would like to know if there is any URL shortening website that can allow me to define the url. For example instead of http://bit.ly/1gX2dD0 I would like it to be http://bit.ly/superflow - if \"superflow\" is not available then I will invent another word. I can imagine that such services are paid but I don't need the link to last more than one day, and maybe there is such a website.", "How does new shield system work? After the upgrade I can't figure out how the new shield system works. I have the option to discard the shield, and I notice I have a new potion in the inventory. More importantly, I got attacked (and lost) twice in a short amount of time and don't have a shield. When do you now get shield?", "Is there a way to override class variables in Java?", "How to trim whitespace from a Bash variable?", "Compute the integral $\\int_{A} x^m y^n z^p (1-x-y-z)^q dx dy dz$ Let $A =$ {$(x,y,z) \\in \\mathbb{R}^3 |$ $x,y,z \\geq 0$ and $x+y+z \\leq 1$}. Compute the integral $$\\int_{A} x^m y^n z^p (1-x-y-z)^q dx dy dz$$ using new variables $u = x+y+z$, $v=\\frac{y+z}{x+y+z}$, $w=\\frac{z}{y+z}$. Also, although it was not stated in the problem, I'm assuming that $m,n,p,q \\in \\mathbb{Z}$. Since $f(x,y,z)=(x+y+z, \\frac{y+z}{x+y+z}, \\frac{z}{y+z}) = (u,v,w)$, $f^{-1}(u,v,w) = (u(1-v), uv(1-w), uvw)$ Thus J $= \\begin{vmatrix} 1-v &amp; -u &amp; 0\\\\ v(1-w) &amp; u(1-w) &amp; -uv\\\\ vw &amp; uw &amp; uv\\\\ \\end{vmatrix} = u^2v$ Skipping the part where I find the new limits of integration, and skipping some algebraic simplification we have: $$\\int_{A} x^m y^n z^p (1-x-y-z)^q dx dy dz$$ $$= \\int_{0}^1 \\int_{0}^1 \\int_{0}^1 u^{m+n+p+2}(1-u)^q v^{n+p+1}(1-v)^mw^p(1-w)^n du dv dw$$ However, I have no idea where to go from here. Any help would be much appreciated." ]
medi_sts_stackexchange_dupe
How to keep playing online videos when screen is locked?
How to play a YouTube clip in background/minimised?
[ "OS X Internet Recovery doesn't see SSD drive I wanted to do a clean install and booted from OS X recovery partition. In disk utility I selected \"erase\" option. SSD was working correctly before that. Now, if i startup, the only way to proceed is with Internet Recovery since I cannot boot from hidden recovery partition. After I wait several hours for the recovery image download, I cannot see the SSD either in disk utility or OSX reinstallation. In terminal diskutil list Shows only recovery image 1.8 Gb or so. So did erase option destroy my ssd?", "What level are spells cast at if a warlock multiclasses as another caster?", "Product of path connected spaces is path connected", "I am used to Turbo C++ and I am new to Ubuntu. I really need Turbo C++ to get started. Can somebody please help me to install Turbo C++ on Ubuntu.", "Big-O proof showing that t(n) is O(1) Let t(n) = $\\sqrt{n^2+100n} - n$ Show that $t(n)$ is $O(1).$ I tried solving this using the formal definition of O( ) but am not getting anywhere. Quite confused on how to tackle this question.", "I know that the gravitational interaction of antimatter is expected to be the same as normal matter. But my question is, has it ever been experimentally validated? I think it would not be a trivial experiment, because electromagnetic effects have to be eliminated, so neutral particles would be needed. Maybe diamagnetically trapped antihidrogen atoms could be examined as to which direction they fall?", "I have tried using glm::rotate and such. glm::translate works fine, but rotate doesn't work (if I rotate before/after a translation). Here is my current setup: glm::vec4 Off = glm::vec4(0, 0, 0, 1); glm::vec4 result = Util::createTransform(offset) * Off; for (int i = 0; i &lt; Tvertex.size(); i++) { Tvertex[i] += glm::vec3(result.x, result.y, result.z); Tcolors[i] = currentColor; } And here is my Util::createTransform: glm::mat4 Util::createTransform(glm::vec3 pos) { glm::mat4 trans = glm::mat4(1.0); trans = glm::translate(trans, pos); return trans; } glm::mat4 Util::createTransform(glm::vec3 pos, glm::vec3 rot) { glm::mat4 trans = glm::mat4(1.0); trans = glm::rotate(trans, glm::radians(rot.x), glm::vec3(1, 0, 0)); trans = glm::rotate(trans, glm::radians(rot.y), glm::vec3(0, 1, 0)); trans = glm::rotate(trans, glm::radians(rot.z), glm::vec3(0, 0, 1)); trans = glm::translate(trans, pos); return trans; }", "How to allow certain html tags?", "Buffering GeoJSON file using Python?", "Improving how suggested edits are displayed in your activity history Issue 1: I find it a bit irritating that when I click the Improve button and further edit it, even if I mark it as helpful, only Community takes the credit for the approval. I know the topic itself will contain the link to the suggested edit, but my activity history only says that I made an edit, and not approved a suggested edit. The same holds true for marking one as unhelpful. The activity history should say I rejected an edit, and then made an additional edit. I know it's not often, but sometimes I do try to go back to a suggested edit I've rejected, but when I improved and rejected, it's not traceable for me as it doesn't show in my history or in the question's revision history. So if I don't remember what user suggested it, it's lost to me. This issue also plagues the which are awarded for approving and rejecting suggested edits, which essentially you have done, you're just not receiving credit for it. I suggest that when I mark an edit as helpful or not helpful, both me and Community be listed as the approvers or rejecters, unless another user is already listed in the appropriate place. Update: Here is of the confusion this causes. Update 2: Also, when improving a post and marking it as \"not helpful\", it would be nice to be able to along with it. Issue 2: Expanding off the idea that users need more notice for suggested edits that get rejected, the activity history page is much too useless when it comes to listing the suggested edits a user has made. Literally all it does is list them. A user still has to click through to each one in order to find out if it was approved or rejected, or even if it's still pending. Take, for example, this screen shot of the suggested edit history: Is it really necessary to say I suggested a suggested edit? Really? Of course I suggested it, it's a suggested edit. This isn't ! A good way to fix this would be to change the second \"suggested\" word into one of: pending, approved, or rejected. This would be a quick way to tell which edits have been approved or rejected and which ones are still pending. Users would be able to target out rejected edits and review them for the reasons. Something like this:", "Statement: There are uncountably many surjections from $\\mathbb N$ to $\\mathbb N$. Is the following proof valid: The real numbers are uncountable. There exists a bijection between the set of real numbers and the set of all functions from $\\mathbb N$ to $\\{0,1\\}$. Given a function, $f$, from $\\mathbb N$ to $\\{0,1\\}$, construct a surjection from $\\mathbb N$ to $\\mathbb N$, denoted $g$, as follows: We map the $n$th composite number to $n$, and the nth prime, to $f(n)$. Clearly this is a surjection since the composite numbers are countable. Clearly different functions $f$ lead to different surjections $g$. Since there are uncountably many $f$s, there are uncountably many surjections $g$.", "I know that the Naruto movies are outside the timeline in the sense that they don't affect whatever happens after them. However, they must fall somewhere in the Naruto timeline — based on who are in the movies and how the characters look like, etc. For example, if Sasuke isn't in the movie, it should take place after he left. For each of the movies, approximately what timeframe (between episodes/arcs) are they set? The movies: Ninja Clash in the Land of Snow Legend of the Stone of Gelel Guardians of the Crescent Moon Kingdom Naruto Shippuden the Movie Bonds The Will of Fire The Lost Tower Blood Prison Road to Ninja The Last - Naruto the Movie Boruto: Naruto The Movie", "Why do function pointers all have the same value?", "Explain why $E(X) = \\int_0^\\infty (1-F_X (t)) \\, dt$ for every nonnegative random variable $X$ Let $X$ be a non-negative random variable and $F_{X}$ the corresponding CDF. Show, $$E(X) = \\int_0^\\infty (1-F_X (t)) \\, dt$$ when $X$ has : a) a discrete distribution, b) a continuous distribution. I assumed that for the case of a continuous distribution, since $F_X (t) = \\mathbb{P}(X\\leq t)$, then $1-F_X (t) = 1- \\mathbb{P}(X\\leq t) = \\mathbb{P}(X&gt; t)$. Although how useful integrating that is, I really have no idea.", "Pumpkin Noodles is a thing or are a thing? Which of the following is correct? How come pumpkin noodles is not a thing? or How come pumpkin noodles are not a thing? I want to post one of the above statements to Twitter with a picture of a bowl of pumpkin noodles i.e. the stuff that comes out of a hollowed out pumpkin.", "Open more than one instance of Windows 10 settings How can I open more than one instance of the Windows settings? It wasn't a problem with the old style, but with the new one I can't seem to open multiple settings simultaneously and side by side. Example of the new settings window:", "String vs. StringBuilder I understand the difference between String and StringBuilder (StringBuilder being mutable) but is there a large performance difference between the two? The program I’m working on has a lot of case driven string appends (500+). Is using StringBuilder a better choice?", "Present Perfect or simple past?", "Correlation between a nominal (IV) and a continuous (DV) variable I have a nominal variable (different topics of conversation, coded as topic0=0 etc) and a number of scale variables (DV) such as the length of a conversation. How can I derive correlations between the nominal and scale variables?", "I'm a little confused about the following sentences. Could you please tell me which one(s) is/are correct? The first and the second chapter are difficult. The first and the second chapters are difficult. The first and second chapters are difficult. The first and second chapter are difficult. I believe #1 &amp; #3 are correct, while #2 &amp; #4 are incorrect. But when seeing the answers to the Quora question , I wonder why they say #2 is correct." ]
medi_sts_stackexchange_dupe
What is a single word for someone who is easily discouraged?
How can you describe someone who gives up too easily?
[ "Prove that the derivative of $x^w$ is $w x^{w-1}$ for real $w$ Can anyone give a proof of the derivative of this type of function? Specifically showing that $\\dfrac{d(x^w)}{dx} = wx^{w-1}$ for a real $w$? I tried to use the Taylor series expansion for $(x+dx)^w$ and got the correct result. However, the proof of the Taylor series requires knowledge of the derivative of these functions. So this is essentially circular reasoning. I know that the same series is also given by the binomial expansion, but that's not entirely satisfactory either, because where's the proof that the binomial expansion works for all reals (isn't it only apparent for integers)? So far all of the arguments I've come across involve circular reasoning. I was thinking of showing that the binomial expansion is true for all reals using some form of proof by induction e.g. something like this. I'm really not sure.", "Align multiline equation with expression after equal sign I am trying to align a multiline equation using array within the equation but it turns out it doesn't do very well. The code I am using is as follows: \\begin{equation} \\begin{array}{lcl} \\mathcal{L}^{-1}\\left\\{f(d)\\right\\} &amp;= \\mathcal{L}^{-1}\\left\\{f_1(\\delta).f_2(\\delta)\\right\\} \\\\ &amp; = exp(mt) \\star \\left\\{\\frac{l}{2\\sqrt{\\pi t^3}} exp(-l^2/{4t})\\right\\} \\\\ &amp; = F_1 * F_2 \\end{array} \\end{equation} Can anyone suggest better way to deal with it ?", "XML - Data At Root Level is Invalid", "How can we prove that $D(f)\\backsimeq\\operatorname{Spec} A_f$? Let $$D(f)=\\operatorname{Spec}A - V(f)=\\{p\\in \\operatorname{Spec} A:f\\notin p\\}$$ be the principal open subsets of $\\operatorname{Spec}A$ with the Zariski topology. I'm trying to prove that $D(f)\\backsimeq \\operatorname{Spec} A_f$, where $A_f$ is the localization of $A$ at $f$. If we consider the canonical homomorphism $\\varphi:A\\to A_f$ given by $\\varphi (a) = \\frac {a}{1}$, we can define $\\varphi':\\operatorname{Spec} A_f\\to \\operatorname{Spec} A$, given by $\\varphi'(p)=\\varphi^{-1}(p),\\forall p\\in \\operatorname{Spec}A_f$. I'm having trouble proving that this map is surjective. Thanks.", "Is the unit sphere in $\\Bbb R^4$ path connected?", "What is the daily reputation cap and how can I hit it? I've found some questions and those two badges \"Epic\" and \"Legendary\" regarding the \"daily reputation cap\". What is it and how can I hit it?", "Custom Gmail labels sort I want to sort the labels in my own order instead of the default abc order, so that, for example, the label named bills should come up first. Any way to do that?", "I once saw watch a sci-fi movie or an episode of a tv series (not sure) in which: Every police officer was a judge, and hence could act by themselves on the streets. Each \"judge\" had a gun, which appended their DNA to the bullet. This was used later in investigations about a crime scene, and I think was confidential before the trial was held. Only a judge could use the gun, try to use it and you've been electrified. Also the guns had a self-destruction feature. The main villain was an ex-judge who purchased and activated a very old \"killer robot\" which was a residue of a long-ended war. When a judge was exiled, they were given a copy of the book of law, and sent outside the city to enlighten the people outside cities. Can you help me find it? PS: It was difficult to select a title", "How can i integrate one SFDC org to another SFDC using Rest Api I am trying to integrate one Salesforce org to other org by using Oauth setup, I wanted to use use consumer key and consumer secret key in my REST class to connect with the org, after connection part completion, I want to access Get(), Put(), Post(), etc. Including the ability to set Oauth and Authorization headers needed for Salesforce Rest API calls. Actually I'm new in REST implementation so can you please explain me by using code samples.", "How to place an image at the right top of a document? I've been learning LaTeX and this community has been very helpful. Currently, I'm trying to set up corporate letters but as a newbie I'm encountering a of , so I'm posting them one by one instead of putting it in the comments... maybe this helps others as well. Anyway, I am trying to implement this that indicates that I can use vbox to float an image to the right of my header. I almost have this working, but I now try to adjust this to get my logo to stick to the top of the page. So I want to have this at the right top of my document. This is quite difficult! When I place the vbox, it creates unwanted spacing, for some odd reason. So I can not get the logo to be at the right top, even though I 'reset' every possible margin to 0 (in my opinion). Here is my distilled code: \\documentclass[a4paper]{article} \\usepackage{graphicx} \\graphicspath{{./img/}} \\usepackage{color} \\usepackage{xcolor} \\definecolor{orange}{HTML}{DD4616} \\definecolor{white}{HTML}{FFFFFF} \\usepackage{fullpage} \\usepackage[margin=0cm, paperwidth=215.9mm, paperheight=30mm,top=0cm]{geometry} \\parindent=0pt \\begin{document} \\fboxsep0pt \\pagecolor{orange} \\fbox{\\vbox to 0pt{\\hfill\\fbox{\\includegraphics[height=3cm]{logo}}}} \\end{document} I've used a full black logo for illustrative purposes. Here you can see this: The black line is the vbox border. For some reason, it jumps down. The only way to get rid of this that I found out about is this: Which means that I need to add: \\edef\\theprevdepth{\\the\\prevdepth}\\nointerlineskip \\vbox to 0pt{...}\\prevdepth=\\theprevdepth But there are two problems with this: I get an error with I try this (Improper \\prevdepth.) More importantly, I really want to understand my code at this point, and get to master the basics of positioning elements. This feels overcomplicated and I do not understand it at all. Is there any easy way to position an image at the right top of a document?", "Show that if $u$ is harmonic in $\\mathbb R^n$ and $u=o(|x|)$, then $u$ is a constant.(Hint: use the solid version of the mean value property $u(x)=\\frac{1}{\\omega R^n} \\int _{B_{R(x)}} u(y)dy$, and estimate $|u(x)-u(x')|$.) Can anyone tell me how to use this hint?", "Can I get a postdoc in China more than 3 years after having received my PhD?", "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$$", "My inline-block elements are not lining up properly", "I'm new to Linux (currently running Ubuntu 10.04) and I have just finished setting up SSH access to my Linux Machine. Currently, I have to use ssh [email protected] to connect but would much rather be able to swap the IP for the computer name (like in Windows with \\\\name) or a domain name (like computername.example.com). I don't really know where to start so any help would be most appreciated. Please go slowly, as mentioned - I am still new to this. EDIT 1 Completely forgot to mention that I am trying to connect from Windows 7 (via PuTTY) - sorry.", "Is it possible for a foreigner to drive through (mainland) China in a foreign-registered car? Is it possible to drive through mainland China, for example for transit from Kazakhstan to Vietnam, as a non-Chinese citizen, in an own car/van/truck? This is about an European Union citizen, trying to make a tourist trip overland by car from the EU to Vietnam. This is about a special (equipped with sleeping, cooking and other facilities) vehicle, that the owner intends to keep and use in Vietnam, so buying/renting a vehicle inside China and selling it before leaving is not an option - the question is about driving a specific vehicle the owner already has in the EU to Vietnam. getting new licence plates is OK, as long as it is allowed to put back the old ones when the vehicle gets back to the EU. What legal issues are there with getting in an own car over China, and how to overcome them? Is it possible to drive a car with EU licence plates through China, or would one have to get something like temporary Chinese plates? Is an EU driving licence valid? Are there any customs issues one has to know about, and how long one can keep a foreign motor vehicle in China without having to pay import taxes on it?", "Dealing with a whole bunch of two-line config files, I'd like a way to exclude any files that have a different number of lines. So, something like: mv * destdir only if file contains exactly two lines Or: wc -l * | grep '^ *2' | xargs mv {} destdir Except that neither of those is actual working code. While writing this I realized I do have a way to do this, which is ugly as heck, and I've included it below as an answer. Is there an easy/clean way to do this?", "What constitutes an observation/measurement in QM? Fundamental notions of QM have to do with observation, a major example being The Uncertainty Principle. What is the technical definition of an observation/? If I look at a QM system, it will collapse. But how is that any different from a bunch of matter \"looking\" at the same system? Can the system tell the difference between a person's eyes and the bunch of matter? If not, how can the system remain QM? Am I on the right track?", "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?", "Hi this must be a basic question but I haven't seen an answer with cerbot considerations (if there are any considerations). How do I get https www to redirect to non-www instead of timing out? The https www version of my site times out instead of redirecting to non-www, whereas all other versions (http and https non-www) work fine. Preferably I would like to future proof so that I can renew the certs through certbot and not need to manually change the nginx config afterwards. The nginx server config is shown below: server { listen 80 default_server; listen [::]:80 default_server ipv6only=on; server_name www.mydomain.com mydomain.com; listen 443 ssl; # managed by Certbot ssl_certificate &lt;path_to_cert&gt; # managed by Certbot ssl_certificate_key &lt;path_to_key&gt;; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam &lt;path_to_this&gt; if ($scheme != \"https\") { return 301 https://$host$request_uri; } # managed by Certbot }" ]
medi_sts_stackexchange_dupe
Accidental Serial-Voting, What Happens?
What is serial voting and how does it affect me?
[ "Consider repeated measures ANOVA (RM-ANOVA) with one within-subject factor A and several measurements per subject for each level of A. It is closely related to two-way ANOVA with two factors: A and subject. They use identical decomposition of the sum of squares into four parts: A, subject, A⋅subject, and residual. However, two-way ANOVA tests the effect of A by comparing SS of A with the residual SS, while RM-ANOVA tests the effect of A by comparing SS of A with the A$\\cdot$subject interaction SS. Why the difference? Does this difference automatically follow from the repeated-measures structure of the data, or is it some convention? Does this difference between two-way ANOVA and RM-ANOVA correspond to testing two different nulls? If so, what exactly are they and why would we use different nulls in these two cases? Two-way ANOVA's test can be understood as an F-test between two nested models: the full model, and the model without A. Can RM-ANOVA be understood in a similar way? (If there is only one measurement per subject for each level of A, then the distinction sort of disappears because A$\\cdot$subject and residual variation cannot be disentangled: ) Demonstration I will use toy data d2 generated in . The same webpage shows correct syntax for RM-ANOVA. # Discarding between-subject factors and leaving only one within-subject factor d = d2[d2$Xb1=='CG' &amp; d2$Xb2 == 'f', c(1,4,6)] (See reproducible version .) Data look like that: id Xw1 Y 1 s1 A 28.6 2 s1 A 96.6 3 s1 A 64.8 4 s1 B 107.5 5 s1 B 77.3 6 s1 B 120.9 7 s1 C 141.2 8 s1 C 124.1 9 s1 C 88.0 10 s2 A 86.7 ... Here is two-way ANOVA: summary(aov(Y ~ Xw1*id, d)) Df Sum Sq Mean Sq F value Pr(&gt;F) Xw1 2 95274 47637 16.789 3.73e-07 *** id 19 31359 1650 0.582 0.913 Xw1:id 38 71151 1872 0.660 0.929 Residuals 120 340490 2837 Here is RM-ANOVA: summary(aov(Y ~ Xw1 + Error(id/Xw1), d)) Error: id Df Sum Sq Mean Sq F value Pr(&gt;F) Residuals 19 31359 1650 Error: id:Xw1 Df Sum Sq Mean Sq F value Pr(&gt;F) Xw1 2 95274 47637 25.44 9.73e-08 *** Residuals 38 71151 1872 Error: Within Df Sum Sq Mean Sq F value Pr(&gt;F) Residuals 120 340490 2837 Note the identical SS decomposition, but two-way ANOVA tests Xw1 against the residual, while RM-ANOVA tests Xw1 against the Xw1:id interaction. Why? This question is related to . If we try using Error(id) instead of Error(id/Xw1) in the example above, then Xw1 will get tested against Xw1:id interaction lumped together with the residual variation. (The same issue arises in factorial RM-ANOVA with multiple within-subject factors, where each factor or interaction is tested against its own \"error term\" aka \"error stratum\". These error strata are always given by the corresponding interaction with the block/plot/subject variable id.)", "These two operators commute...but their eigenvectors aren't all the same. Why?", "How do I rename a directory via the command line?", "Who should I be damage buffing as Mercy I just started playing Overwatch (played a few games during open beta, but wasn't able to play much). I'm enjoying Mercy, but who (in a group situation) should be getting the damage buff? Additionally, when my team splits up, who should I follow to support?", "Accepted an answer message When you accept an answer on one of your questions, you get 2 reputation for it. The achievements dropdown tells you with a shiny green +2 on the topbar, and shows this: Why did I get +2 for it again? It would be better if the message told you it was because you accepted an answer, right there in the dropdown, without the need to go into your profile to see more details.", "Calculate time elapsed in php - spans over 24 hours", "I know that contents of double quotes are expanded, whereas the contents of single quotes are not, such that echo '$1' gives $1 where as echo \"$1\" gives &lt;the argument - blank in this particular example&gt; the same as echo $1 However, the question led me to wonder why double quotes and not single quotes were used when declaring the alias, thus: alias cutf=\"_cutf\" instead of alias cutf='_cutf' I would have employed single quotes as in the latter example. Most examples on the web use single too, unless there is some expansion required. However, in this case, no expansion, to my eyes, is apparent. Is it that, in this case, they are interchangeable, or are the double quotes necessary because a function definition is employed?", "Disclaimer Yes, I am fully aware that what I am asking about is totally stupid and that anyone who would wish to try such a thing in production code should be fired and/or shot. I'm mainly looking to see if can be done. Now that that's out of the way, is there any way to access private class members in C++ from outside the class? For example, is there any way to do this with pointer offsets? (Naive and otherwise non-production-ready techniques welcome) Update As noted in the comments, I asked this question because I wanted to write a blog post on over-encapsulation (and how it affects TDD). I wanted to see if there was a way to say &quot;using private variables isn't a 100% reliable way to enforce encapsulation, even in C++.&quot; At the end, I decided to focus more on how to solve the problem rather than why it's a problem, so I didn't feature some of the stuff brought up here as prominently as I had planned, but I still left a link. At any rate, if anyone's interested in how it came out, here it is: (I suggest reading it before you decide that I'm crazy).", "Restoring backups failing Ubuntu 16.04", "On average, how many times must I roll a dice until I get a $6$? I got this question from a book called Fifty Challenging Problems in Probability. The answer is $6$, and I understand the solution the book has given me. However, I want to know why the following logic does not work: The chance that we do not get a $6$ is $5/6$. In order to find the number of dice rolls needed, I want the probability of there being a $6$ in $n$ rolls being $1/2$ in order to find the average. So I solve the equation $(5/6)^n=1/2$, which gives me $n=3.8$-ish. That number makes sense to me intuitively, where the number $6$ does not make sense intuitively. I feel like on average, I would need to roll about $3$-$4$ times to get a $6$. Sometimes, I will have to roll less than $3$-$4$ times, and sometimes I will have to roll more than $3$-$4$ times. Please note that I am not asking how to solve this question, but what is wrong with my logic above. Thank you!", "What would you call someone who makes no lasting impression?", "Showing that $\\lnot Q \\lor (\\lnot Q \\land R) = \\lnot Q$ without a truth table I've done a truth table after reducing it to this and it seems to be equal to $\\neg Q$: $$\\lnot Q \\lor (\\lnot Q \\land R) = \\lnot Q$$ But when I try to show it without a truth table (with just transformations), I end up in a loop between that and: $$\\lnot Q \\land (\\lnot Q \\lor R)$$ Is there a way to show this is true without using a truth table? What am I missing?! Thanks in advance!", "There's a new popup helping you with searching, but one of the hints is wrong: Searching for will return answers as well as questions, and it's not the number of (up/down)votes which counts, it's the score. Better would be \"posts with a score of 3 or higher\" or \"questions and answers with a score of 3 or higher\".", "Should I use static_cast or reinterpret_cast when casting a void* to whatever Both static_cast and reinterpret_cast seem to work fine for casting void* to another pointer type. Is there a good reason to favor one over the other?", "Adding Custom Menu \"Run Script\" Button Causes Duplicate Is there a way to use the Blender Text Editor for adding a custom menu and not get a duplicate every time I click on \"Run Script\" to test the menu? For example, in the text editor, load the template like so: Template -> Python -> UI Menu Then notice every time you press \"Run Script\" you get another menu in your main menu bar. How can I update my menu without getting a duplicate? I tried simply commenting out register() but then new updates don't show up.", "PostgreSQL create line from points", "How can I upgrade to Java 1.8 on an Amazon Linux Server? I tried sudo yum update but it just keeps java \"1.7.0_75\". I need 1.8 for it to work with another application but can't figure out how to upgrade it. Do I need to manually install it somehow? There's not much information on this on the internet as far as I can see. Specs: java version \"1.7.0_75\" OpenJDK Runtime Environment (amzn-2.5.4.0.53.amzn1-x86_64 u75-b13) OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode) When I try update now: [ec2-________]$ sudo yum update Loaded plugins: priorities, update-motd, upgrade-helper amzn-main/latest | 2.1 kB 00:00 amzn-updates/latest | 2.3 kB 00:00 No packages marked for update Is there anything else I need to do? Thanks.", "How can I (in order of preference, descending): Disable file-server access to a specific share for a user or group based on the time of day. Disable file-server access entirely for a user or group based on the time of day Disable file-server access entirely (server-scope) based on the time of day. This is not at all related to Remote Desktop/RDP access. For example, Bob is in the group WorkHours. The share \"Documents\" grants access to users in the group WorkHours. How do I deny access to all files in the share \"Documents\" from 7PM to midnight, every day, automatically?", "Functions vs. patterns", "I was working on a problem that resulted in the calculation: $20 \\equiv 10x \\pmod{11}$. I got the answer $x \\equiv 2 \\pmod{11}$ with the thought process: Since $10$ is a factor of $20$ I can rewrite $20 \\pmod{11}$ as $10x \\pmod{11}$ with $x=2$. But isn't this basically the same as using division, which we aren't supposed to do in modular spaces? If I solve by multiplying $20$ by the multiplicative inverse of $10 \\pmod{11}$ which is $10$, I get $200 \\pmod{11}$ which simplifies to $2 \\pmod{11}$ anyway. Did these numbers just happen to be the same or is my original method valid?" ]
medi_sts_stackexchange_dupe
How to extract array from dataset string?
Safely turning a JSON string into an object
[ "Why wont my 'background' render? I'm having this problem in Blender that it is only loading the text, I am very new to this and don't know why it is cutting out what is even in the camera view and making it black. If you could help me, I would really appreciate it. It's only rendering 'Kenny Miller\" and not the green/black back: [", "Short circuit or disconnect to bypass a compressor I have an Altec Lansing ATP3 2.1 audio system PCB which I reverse-engineered, and I would like to bypass the JFET compressor that's on it. Its active components are a JFET and four op-amps. I will connect the input to the output so it gets forwarded to the next stage. My question is: should I disconnect the input and output from the compressor (in that case should I remove power supply as well, which would be very annoying), or can I leave it connected but short-circuited? The block I want to short-circuit is the pink one on the left. I realize the image is very small. The sound comes in on the right, in the green box. In the middle yellow box there's some trebble/volume/bass control. The small green box on its left merges the left and right channels to forward it to the subwoofer section, which is the complete left half of this diagram (except the red box on the left, which is just power). Signal then goes through a low-pass, a small equalizer and a compressor (the big purple box). It finally gets amplified in the brown power amp.", "Understanding relation between Quotient Space and $S^1$ There is this example at the Wikipedia article on Quotient spaces (QS): Consider the set $X = \\mathbb{R}$ of all real numbers with the ordinary topology, and write $x \\sim y$ if and only if $x−y$ is an integer. Then the quotient space $X/\\sim$ is homeomorphic to the unit circle $S^1$ via the homeomorphism which sends the equivalence class of $x$ to $\\exp(2πix)$. I understand relations, equivalence relation and equivalence class but quotient space is still too abstract for me. This seems like a simple enough example to begin with. I understand (sort of) the definition but I can't visualize. And by this example and others, there is a lot of visualizing going on here! torus, circles etc.", "How would one create an iterative function (or iterator object) in python?", "Split string on spaces in Java, except if between quotes (i.e. treat \\\"hello world\\\" as one token)", "Hamiltonian Monte Carlo for dummies Could you provide a step-by-step for dummies explanation of how Hamiltonian Monte Carlo work? PS: I've already read the answers here, , and here, , and here, and they do not address it in a step-by-step way.", "How can I make 3D Text in Russian? I've seen a similar question on BSE about entering foreign languages into 3D Text, but it doesn't help. I've tried using two different fonts (both of which support Russian). I've tried enabling International Fonts in Blender's User Preferences, but it doesn't work as well. It either types English text with Greek letters or displays empty vertical rectangles. If anyone has been able to add text in any foreign language, please let me know. I actually found out that it can be easily done through Text Editor, which would be probably the best way for me since I would prefer to paste my text. Can anyone perhaps guide me through?", "Reinhardt's main strength is his shielding abilities and the protection he provides for his team, but Are there any abilities that cannot be blocked by Reinhardt's barrier field?", "Enable HTML5 tags on Eclipse I really love Eclipse (PDT)... But i'm developing sites using HTML5 and CSS3 and it mark the HTML5 tags like &lt;nav&gt;, &lt;section&gt; and &lt;article&gt; as invalid tags (inexistent). How can I add those new tags to it? And what about CSS3 rules? I read something about remove the \"invalid tag\" check... and that's not what I want. :(", "Finder sidebar flashing text and high CPU load since El Capitan After update to OS X 10.11 I started having these bugs: Finder sidebar text flashing Very high CPU load: I have Macbook Pro Retina 13\" Mid 2014 I reset NVRAM. I deleted com.apple.finder.plist, it didn't help. Also I did this: , no longer flashes.", "Automating \"Stay Awake\" I use my personal Android smartphone for development. Every morning, I go to Settings \\ Developer Options \\ Stay Awake and check the box. At the end of the day, I uncheck the box — since otherwise any notification (including the \"fully charged\" one) will trigger the screen on, and it will stay on from that point on. How can these two operations be automated?", "I'm currently working on some logging code that supposed to - among other things - print information about the calling function. This should be relatively easy, standard C++ has a type_info class. This contains the name of the typeid'd class/function/etc. but it's mangled. It's not very useful. I.e. typeid(std::vector&lt;int&gt;).name() returns St6vectorIiSaIiEE. Is there a way to produce something useful from this? Like std::vector&lt;int&gt; for the above example. If it only works for non-template classes, that's fine too. The solution should work for gcc, but it would be better if I could port it. It's for logging so it's not so important that it can't be turned off, but it should be helpful for debugging.", "OED says: doobie: a marijuana cigarette Origin unknown. A relationship with dobby has been suggested. dobby/dobbie: A silly old man, a dotard, a booby. Dialectal. First citations: 1967 J. B. Williams Narcotics &amp; Hallucinogenics. Dubbe, Negro slang for a marijuana roach. 1982 A. Maupin Further Tales of City 95, I smoke a doobie at lunch. But I just chanced upon in Yahoo Answers (don't laugh! :) where someone posted: \"It's obvious that Shaggy's a , I'm sure he's been feeding Scoob a bit of his hash and whatnot.\" Scoob = , cartoon \"pet\" dog of constantly-hungry hippie/village idiot Shaggy (from 1969) I'm not entirely convinced that 1967 dubbe was necessarily a significant factor in the appearance of since around 1970 (the hippie era, some might say). So I'd like to know whether it's credible to claim the usage arose (primarily?) through association with the TV show (specifically, the two characters therein closely associated with marijuana).", "Keyboard shortcut to autocomplete the user in comments", "How to get the list of IP addresses in a LAN?", "Why does Gandhi want to nuke me? Different civilizations obviously have different priorities. For example, Gandhi always seems to rush nuke technology and the Mongols will most likely start invading and spread like mad. Are these variables public knowledge? Can you tell by who you are playing what strategy they will adopt during the game?", "How many solutions has the equation $\\sin x= \\frac{x}{100}$ ? How many solutions has the equation $\\sin x= \\frac{x}{100}$ ? Usually when I was asked to solve this type of problem, I would solve it graphically but this one seems to be trickier. It doesn't seem wise to put $f(x)=\\sin x$ and $g(x)=\\frac{x}{100}$ in the same graph and then counting all the intersection points. What would be some algebraic methods to solve this?", "$A \\cup B$ and $A \\cap B$ connected $\\implies A$ and $B$ are connected Let $X$ be a topological space. Let $A$ and $B$ be two subsets of $X$ such that: $A$ and $B$ are closed, $A \\cup B$ is connected, $A \\cap B$ is connected Prove that $A$ and $B$ are connected. Thoughts: Suppose that $A$ is disconnected. Since $A$ is closed, there are two non-empty, disjoint, closed sets $E$ and $F$ in $X$ such that $A = E \\cup F$. Then I attempted many things but all were not really useful. Please help. Thanks.", "How can I set CSS only for specific IE browsers?", "Which external Javascript libraries work with Lightning Locker Service? Components often seem to work with external libraries until the Locker Service is enabled. What libraries work with locker service enabled and where can I go to find out?" ]
medi_sts_stackexchange_dupe
Don't fail audit right away when improving a suggested edit
"Improve" treated as improper response to proper response to audit
[ "Does IBIS reduce image resolution? How does it compare to lens based IS?", "Compatible version of \"Adobe Shockwave Player?\" Is there a Ubuntu compatible version of the \"Adobe Shockwave Player?\" I'm running Firefox and when I try to bring up one of my School's websites it says missing plugin. When I click on \"Install missing plug-in\" it says none found, so when I click on manually install plug-in it takes me to Adobe Shockwave Player installation, but there is no ubuntu version to install??? On the Firefox plug-in finder service it says \"Unknown Plugin (application/x-director)", "How do we see? Where do the photons disappear? I know that the light is reflected from a object to my eyes, but I don't understand exactly how. The photons appear from the light source and disappear in my eye! Can someone explain the phenomenon of where the photons go and do to allow us to see?", "How does ssh run a command? I'm using Bash on both client and server. When running a command over SSH: ssh &lt;host&gt; 'declare' gives a list of shell variables. ssh &lt;host&gt; 'mount' gives a list of mountpoints. However, declare is a Bash builtin, while mount is an external command. How does SSH know which to run if there is a shell builtin and an external command with the same name on the server?", "If I can generally reach web pages on the Internet but can't reach a specific one, how do I troubleshoot what the cause is as an end user? This question was a . Read the for more details or yourself", "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.", "No hats on the mobile version?", "How would I connect to a proxy on Ubuntu Studio? So I am running Ubuntu Studio on my laptop and what do I do to connect to a proxy? I search for proxy and in network settings their is no PROXY tab. What are key words in the tabs to look for?", "Labeling linguistic examples with language information", "What is the difference between \\em and \\emph? What is the difference between \\emph{...} and {\\em ...}? When to use each of them?", "How to add keyboard shortcuts? I want Ctrl+Alt+B bring up a browser. Ctrl+Alt+Delete is handy. Can I set up Ctrl+Alt+B to bring up a browser (either default or specific)?", "Asymptotes in a plot I'm using TikZ to plotting some functions for a document. For example, I want to plot 1/(x+1). So I did something like this: \\begin{tikzpicture}[&gt;=stealth,x=3mm,y=3mm] \\draw (0,5) node[above]{\\fimg $y=f(x+1)=\\dfrac{1}{x+1}$}; \\clip (-5,-5) rectangle (5,5); \\ejes[1]{-4}{4}{-4}{4} \\draw[samples=100] plot(\\x,{1/(\\x+1)}); \\end{tikzpicture} where \\ejes[style]{xmin}{xmax}{ymin}{ymax} is command, that I have defined before to draw the axes (join with \\fimg). My expected output for the code below was just the function, but I get this: So, TikZ automagically put the vertical asymptote at x=-1. That isn't a bad thing, but now I want to have some control over it. For example I want dotted lines for vertical asymptotes. How can I do that?", "Poisson Distribution of sum of two random independent variables $X$, $Y$", "My question isn't how they receive the energy to jump, but why. When someone views an element's emission spectrum, we see a line spectrum which proves that they don't exist outside of their orbitals (else we would see a continuous spectrum). Electrons can be released in the form of beta decay, thus proving that they are capable of traveling outside of orbitals contrary to the statement my teacher said that they stay within orbitals. Then, to add to the confusion, the older model of rings floating around a nucleus has, from what I can tell, been outdated, which would support this model. My teacher's explanation was that the electrons made a quantum jump of some kind. How do electrons move between orbitals or do we know how they jump, excluding the reason that energy causes them to jump, and why are positrons formed sometimes instead of electrons in Beta decay? When I'm asking \"how do electrons jump\" I would like to know how an electron can jump between each orbital such as how it moves and how it knows where to jump since it appears to be a jump where the electron doesn't slow into a orbital position. Specifically how they jump what is this Atomic electron transition, I understand that they jump and that they do this through absorbing and releasing energy but what is this Atomic electron transition other than what is already on the wikipedia article .", "I have to show by induction that this function is a multiple of 8. I have tried everything but I can only show that is multiple of 4, some hints? The function is $$5^{n+1}+2\\cdot 3^n+1 \\hspace{1cm}\\forall n\\ge 0$$, because it is a multiple of 8, you can say that$$5^{n+1}+2\\cdot 3^n+1=8\\cdot m \\hspace{1cm}\\forall m\\in\\mathbb{N}$$.", "How to add a new kernel to grub2 How can we add a kernel to grub2? i knew the stuff we could do with the former versions, but it seems to have changed. What files should we edit?", "Solving $x^p + y^p = p^z$ in positive integers $x,y,z$ and a prime $p$ The question is from Zeitz's ''The Art and Craft of Problem Solving:\" Find all positive integer solutions $x,y,z,p$, with $p$ a prime, of the equation $x^p + y^p = p^z$. One thing I noticed is that $$ \\frac{x^p + y^p}{x + y} = \\sum_{i=0}^{p-1}x^{(p-1)-i}(-y)^i \\implies (x+y) |p^z \\implies x + y = p^n, \\text{ }n &lt; z $$ It is also not hard to determine all solutions for $p =2$. After this, however, I am at a loss. I don't know what restrictions I can impose to try to narrow down the solution set; for example, the class of solutions $$ p=3, x = 3^n, y = 2\\cdot3^n, z = 2 + 3n $$ for $n \\ge 0$ show that $x+y = p^n$ cannot be sharpened. (Let me note that these are the only other solutions I have found besides the ones for $p = 2$.) Could anybody give me a push in the right direction on this problem?", "Forcing SSL and www in .htaccess I'm looking for a way to force SSL and www. I've been able to force both separately but together I keep running into redirection issues. The following code works when handling a URL in this format: http://example.com and properly redirects to https://www.example.com but when the incoming URL is https://example.com it will not forward to https://www.example.com - Any suggestions? EDIT: it should also send http://www.example.com to https://www.example.com. RewriteCond %{REMOTE_ADDR} !127\\.0\\.0\\.0 RewriteCond %{SERVER_PORT} 80 RewriteCond %{HTTP_HOST} !^www.example\\.com$ RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]", "Is there a way to get new dwellers with higher than normal stats?", "How to activate the Gedit terminal plugin? I have the following packages installed: gedit gedit-common gedit-plugins In Ubuntu 12.04 with these packages installed all that was needed was to activate the terminal plugin and the press Ctrl+F9 to show the bottom panel. This isn't the case with Ubuntu 13.10 (Gedit 3.8.3) and I can't figure out how to do it." ]
medi_sts_stackexchange_dupe
Alert users of max question limit BEFORE writing the question!
Please warn about exceeding 50 question limit prior to asking a new question
[ "Why is $\\mathbb{R}^2$ not a subspace of $\\mathbb{R}^3$? I cannot understand why $\\mathbb{R}^2$ is not a subspace of $\\mathbb{R}^3$. My reasoning is as follows: Choose any elements $v_1$ and $v_2$ from $\\mathbb{R}^2$, add them together you get an element of $\\mathbb{R}^2$ and same for scalar multiplication and $0$ vector is an element of $\\mathbb{R}^2$. So where did I go wrong?", "Windows 10 Start Menu can't have multiple shortcuts with the same target Problem If you create two shortcuts with the same target then only one of them is displayed in the Start Menu. This is true for: search results within the Start menu manually browsing program folders within the Start menu pinned shortcuts within the Start menu This is important because: the shortcuts might have different settings defined in the Properties dialog, such as different compatibility settings, or be set to start in different directories. some programs install a shortcut to a command prompt which is set to open in the program's installation folder. This enables easy access to the program from the command line without having to modify %PATH%, but it means that users who are unaware of this \"lose access\" to CMD. Programs that do this: Things I've tried Renaming shortcuts Only the shortcut that comes first alphabetically is displayed Using folders doesn't help Only the shortcut in the folder that comes first alphabetically is displayed Pinning shortcuts doesn't help the pinned shortcut updates to point to the displayed shortcut Steps to reproduce Fully up-to-date Windows 10 Home. Start → search for \"Command Prompt\" (or \"cmd\"). (Optional) Right-click on Command Prompt → Pin to Start. This makes Command Prompt available when you open the Start menu without searching for anything. Right-click on Command Prompt → Open file location This opens a File Explorer window in %APPDATA%\\Microsoft\\Windows\\Start Menu\\Programs\\System Tools Copy the Command Prompt shortcut and rename the copy \"AAA Command Prompt\" This ensures it appears before Command Prompt when files are listed alphabetically. (Optional) Right-click on the new AAA Command Prompt shortcut → Properties Change something. (E.g. set the \"Start in\" directory to a different location, such as C:\\) Notice that it is now not possible to access Command Prompt from the Start menu - it has been replaced with AAA Command Prompt everywhere. If you rename AAA Command Prompt to ZZZ Command Prompt then you get back the ordinary version and lose the customised version. Moving the shortcuts to different folders within %APPDATA%\\Microsoft\\Windows\\Start Menu\\Programs\\ doesn't help. Any ideas?", "Can I travel within the Schengen area without a passport if I have my residency permit card?", "How about a \"Vote not to close\" option to counter the \"Vote to close\"? My request is simple: Many times, there will be a question where some people feel like it should be closed. At the same time, I'll feel like it's a perfectly legit question, and it should therefore NOT be closed. Right now, I have to wait till it gets enough close votes (which it always does for some reason, as soon as 1 or 2 people vote to close, e/o else decides to vote as well) and then vote to re-open. How about, as soon as there's one vote to close, there should be an option to counter the close vote, something like \"vote not to close\" or whatever. This would then bring the \"Vote to close\" number down by one. Only when the vote to close outnumbers the vote not to close by 5, that's when a question is indeed closed. Any thoughts?", "Is there any noun in English which changes the first letter in the plural? Plenty of nouns change the second letter to become plural (man->men, goose->geese) but does anything change its first letter. I've hunted high and low over the internet, and spent ages browsing the questions at but I can't find anything.", "broadcast receiver for missed call in android", "The program ed, a minimal text editor, cannot be exited by sending it an interrupt through using Ctrl-C, instead printing the error message \"?\" to the console. Why doesn't ed just exit when it receives the interrupt? Surely there's no reason why a cryptic error message is more useful here than just exiting. This behavior leads many new users into the following sort of interaction: $ ed hello ? help ? exit ? quit ? ^C ? ^C ? ? ? ^D $ su # rm -f /bin/ed Such a tragic waste—easily avoidable if ed simply agreed to be interrupted. Another stubborn program exhibiting similar behavior is less which also doesn't appear to have much reason to ignore C-c. Why don't these programs just take a hint?", "Buffering in meters/km using WGS84 layers using QGIS I am using QGIS 1.7.4-Wroclaw and working with an SHP layer in WGS84. I want to buffer out to a certain number of kilometers from this layer using the ftools buffer tool. I understand that the buffer tool always uses the layer units, which for WGS84 are decimal degrees. We all know that degrees don't convert consistently to meters, so how should I go about making my buffers? Is it necessary for me to convert the shapefiles to a different CRS that natively uses meters? If so, how do I choose one?", "Why are all snaps being mounted and listed as block devices or partitions for Ubuntu 18.04? As of Ubuntu 18.04 running lsblk shows 16 snap loops (2-3 times for each snap). The question is, why are they being listed as results for lsblk, fdisf-l, and blkid? It creates a lot of clutter from the actual disks drive partitions I need to see, namely /dev/ partitions. I know a purported duplicate of this question exists, but it only asks why three loops are being listed per snap. I want to know why these snaps are being listed in the first place, and the purported duplicate does not answer this (perhaps those marking this as duplicate could help me by explaining why it is a duplicate). Technically, they qualify as file systems (which I neither created nor asked for), but they are getting in the way of the information output for the /dev/ partitions I am interested in. This becomes a problem when fdisk -l outputs a three page+ list filled mainly with snaps. The output of a recent (1 week old) Ubuntu install and I have not installed any snaps: $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 14.5M 1 loop /snap/gnome-logs/37 loop1 7:1 0 2.3M 1 loop /snap/gnome-calculator/170 loop2 7:2 0 86.6M 1 loop /snap/core/4486 loop3 7:3 0 86.6M 1 loop /snap/core/4650 loop4 7:4 0 1.6M 1 loop /snap/gnome-calculator/154 loop5 7:5 0 14.5M 1 loop /snap/gnome-logs/34 loop6 7:6 0 3.3M 1 loop /snap/gnome-system-monitor/36 loop7 7:7 0 2.3M 1 loop /snap/gnome-calculator/178 loop8 7:8 0 13M 1 loop /snap/gnome-characters/101 loop9 7:9 0 3.7M 1 loop /snap/gnome-system-monitor/45 loop10 7:10 0 139.5M 1 loop /snap/gnome-3-26-1604/64 loop11 7:11 0 140M 1 loop /snap/gnome-3-26-1604/59 loop12 7:12 0 3.7M 1 loop /snap/gnome-system-monitor/41 loop13 7:13 0 21M 1 loop /snap/gnome-logs/25 loop14 7:14 0 12.2M 1 loop /snap/gnome-characters/69 loop15 7:15 0 13M 1 loop /snap/gnome-characters/96 sda 8:0 0 298.1G 0 disk ├─sda1 8:1 0 512M 0 part /boot/efi └─sda2 8:2 0 297.6G 0 part / sr0 11:0 1 1024M 0 rom (supplemental screen capture of above text): My snap list shows 6 results: core gnome-3-26-1604 gnome-calculator gnome-characters gnome-logs gnome-system-monitor Meanwhile, gnome-disk-utility shows nothing at all for snaps, only showing my HDD and optical drive. It won't be very efficient if every installed snap gets listed as a block device (2-3 times each to add). Should I expect future updates to deal with this? Edit: fdisk-l also dumps out a very long list with 16 instances of these \"disk loops\" (Disk /dev/loop0, Disk /dev/loop1, etc., each with details which I won't show here because it's too long). This can't be intended behaviour, can it? blkid also lists 16 loops, as TYPE=\"squashfs\". At least parted -l works as expected, only outing my actual disk partitions. I just tested this, and installing more snaps does add more to the lsblk output. Therefore, fdisk, lsblk, blkid could have potentially huge output lists, according to the number of snaps available, and installed.", "Example of $f,g: [0,1]\\to[0,1]$ and Riemann-integrable, but $g\\circ f$ is not?", "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.", "Non-Exchange address in Exchange GAL We just made the switch to Google Apps for part of our domain. We disabled the accounts that are now on Google Apps and mail routes correctly. Our problem is that now we have no way of seeing those users in the Global Address List. So we have these users in our Active Directory, they have no mailbox on Exchange, and we want to be able to see/search for their addresses in the GAL. Is there any way to do this? This is Exchange 2007, if that matters.", "Why doesn't the Sun appear green to our eyes?", "This is an idea I have seen around, but I have not seen a feature request for it, so here it is. Downvotes that have no comments are frustrating and difficult to manage. This is a way to help improve that: Have a downvote initially cost more to cast for the downvoter (5 points for example) When a comment (from the downvoter) on the downvoted question/answer gets an upvote, you get your points back. All points (ie all 5) could be refunded or just up till the traditional -1 that is in place now (ie 4 points refunded). This would encourage good comments and downvotes for real reasons. (Because comments for questions/answers that are bias related will not get the upvotes as readily.) This could/should be limited to non-subjective tags. (ie tags where a downvote just because you \"don't like it\" is not appropriate.)", "Hide c# windows application source code I wrote a windows application using C# .Net 2.0 and i want to do something which hide the source code, so when any one use refactor tool can't see the source code. I used dotfuscator but it just changed the function names but not all the source code. UPDATE: I want to hide the source code, not because of hiding the key, but to hide how the code is working. Thanks,", "How can I integrate $\\ln \\left( x+\\sqrt{1+x^2} \\right) $?", "From Every linear function on a finite-dimensional space is continuous. I was wondering what the domain and codomain of such linear function are? Are they any two topological vector spaces (not necessarily the same), as along as the domain is finite-dimensional? Can the codomain be a different normed space (and may not be finite-dimensional)? I asked this because I saw elsewhere the same statement except the domain is a finite-dimensional normed space, and am also not sure if the codomain can be a different normed space (and may not be finite-dimensional). Thanks and regards!", "Converting case of all values in all fields of table using ArcPy & Python?", "Pages: How to put a word between horizontal rules How can I make something that looks like this? -------- Text --------- where the horizontal rules extend to the margin on either side?", "In a table of contents that has been generated with LaTeX's \\tableofcontents command, I would like to add a vertical space before a Chapter item in the table of contents. One way that I have in my notes is to use \\addtocontents{toc}{\\protect\\vspace{10pt}} at a desired location in the document so that this gets processed by \\tableofcontents to include an appropriate vertical space in the table of contents. I have two questions: Is the above the correct way to get a vertical space in a table of contents? Why is it necessary to use the \\protect command here? Thank you..." ]
medi_sts_stackexchange_dupe
I made a fluctuating circuit that controls an LED to be on or off, How does it work?
BJT Astable Multivibrator
[ "When am I entitled to participate in a stock split? — record date, split date, ex date Stock split announcements usually mention a few dates — record date (&quot;date of record&quot;), split date (&quot;distribution date&quot;, &quot;pay date&quot;, or &quot;payment date&quot;), ex date (&quot;ex-split date&quot;). Examples: : Each Apple shareholder of record at the close of business on August 24, 2020 will receive three additional shares for every share held on the record date, and trading will begin on a split-adjusted basis on August 31, 2020. : Each stockholder of record on August 21, 2020 will receive a dividend of four additional shares of common stock for each then-held share, to be distributed after close of trading on August 28, 2020. Trading will begin on a stock split-adjusted basis on August 31, 2020. In the case of the Tesla split, the record date is August 21, the split date is August 28 (Friday), and the ex date is August 31 (Monday). Apple's provides definitions of these dates: What is the effective date of the split? There are several key dates. The Record Date – August 24, 2020 - determines which shareholders are entitled to receive additional shares due to the split. The Split Date – August 28, 2020 - shareholders are due split shares after the close of business on this date. The Ex Date – August 31, 2020 - the date determined by Nasdaq when Apple common shares will trade at the new split-adjusted price. However, further down in the FAQ, there is an explanation that seems to contradict the definition of the record date given above: What happens if I buy or sell shares on or after the Record Date and before the Ex Date? [...] If you buy shares on or after the Record Date but before the Ex Date, you will purchase the shares at the pre-split price and will receive (or your brokerage account will be credited with) the shares purchased. Following the split, you will receive (or your brokerage account will be credited with) the additional shares resulting from the stock split. Judging by the Apple FAQ, the way the record date works for stock splits is completely different from the way the record date works for cash dividends. With cash dividends, people who become shareholders of record after the record date are not entitled to the dividends. With stock splits, however, people who purchase shares after the record date (but before the ex date) are entitled to the stock split. Furthermore, for stock splits, the record date comes before the ex date, whereas for cash dividends, the record date comes after the ex date. It appears that I am not the only one confused about this. A quick internet search reveals years and years of confusion regarding the record date for stock splits. An extremely common point of confusion is the apparently incorrect assumption that the record date for stock splits works in the same way as the record date for cash dividends. A few questions: Am I right that the record date for stock splits works differently from the record date of cash dividends? The only relevant dates for a stock split seem to be the split date (on which I will receive new shares after the market closes), and the ex date (on which I can sell the new shares on stock exchanges at a post-split price). It seems that the record date is completely irrelevant. What is the record date for? From my understanding, the price of the stock will be reduced at the instant the new shares are distributed (on the split date). Is this correct?", "I have a desktop (Ubuntu 13.04 &amp; Win 7 Home Premium) and a Laptop (Ubuntu 12.04), both having WiFi adapters. I also have a WiFi router connected to internet which both my computers can access. I want to share files between my desktop and my laptop using WiFi (similar to Homegroup on Windows 7 but without using Ethernet cables). How do I set-up that? I want to share files using both OSs, if anyone have have information about sharing files with any of the OS please answer!", "What are the fault tolerances on the FDA food handling guidelines? Sometimes I have suggested that food that sat out a little longer than optimal may be safe to eat. Granted, this is based on my experience, and I always qualify that it shouldn't be served to guests (and by extension, customers) and that one should determine their own tolerance to risk, but I want to know if there is information as to the methodology of the FDA guidelines. Specifically, what is the contamination rate at n hours, and what are the initial conditions of the food and environment? How much risk is there REALLY (in incidences per n-population and such) in a standard kitchen for food that has sat out 50%, 100%, 200%, etc. longer than recommended?", "Prove that $ AB$ is a subgroup of order $mn$ if $m$ and $n$ are relatively prime.", "It seems like I'm doing something wrong when using foreach variables to indicate node numbers. The two foreach loops are anchoring the paths to the east of each node. Why does this happen? \\documentclass{article} \\usepackage{tikz} \\usetikzlibrary{backgrounds,fit,patterns,decorations.pathreplacing,calc} \\makeatletter \\tikzset{ labelnode/.style={draw=none, fill=none, black}, latentnode/.style={draw, minimum width=5mm, shape=circle, ultra thick, black}, dagconn/.style={arrows=-&gt;, black, thick}, } \\makeatother \\begin{document} \\begin{tikzpicture}[scale=1] \\pgfmathsetmacro{\\colgap}{1.6} \\pgfmathsetmacro{\\rowgap}{1.3} \\node[labelnode] (x1) at (\\colgap*0,\\rowgap*1) {$X_1$}; \\node[labelnode] (x2) at (\\colgap*1,\\rowgap*1) {$X_2$}; \\node[labelnode] (x3) at (\\colgap*2,\\rowgap*1) {$X_3$}; \\node[latentnode,blue] (x4) at (\\colgap*0,\\rowgap*0) {$X_4$}; \\node[latentnode,red] (x5) at (\\colgap*1,\\rowgap*0) {$X_5$}; \\node[labelnode] (x6) at (\\colgap*2,\\rowgap*0) {$X_6$}; \\foreach \\c in {1,...,2} { \\foreach \\r in {1,...,2} { \\pgfmathsetmacro{\\st}{(((\\r-1)*3)+\\c)} \\pgfmathsetmacro{\\en}{\\st+1} \\draw[dagconn] ([xshift=0.2cm]x\\st) to ([xshift=-0.9cm]x\\en); } } \\foreach \\c in {1,...,3} { \\foreach \\r in {1,...,1} { \\pgfmathsetmacro{\\st}{((\\r-1)*3)+\\c} \\pgfmathsetmacro{\\en}{\\st+3} \\draw[dagconn] (x\\st) to (x\\en); } } \\end{tikzpicture} \\end{document}", "Is ignoring emails acceptable in academia? As a grad student, I just find it tremendously frustrating when emails are ignored by faculty (both at my institution and at other places). Is this acceptable? I'd be content with a simple response with one line along the lines of \"I have read this email and am busy right now, will respond in X days when I can write a more detailed email.\" I understand that, as a first year student in my field, I'm not really in a position to request anything of anyone, but it just seems like common decency. Instead, I never hear back, as if my email has been jettisoned off into oblivion.", "What is the optimum pattern to place crops in Minecraft? What factors affect soil hydration and crop growth time? What is the most efficient layout of dirt and water to grow crops?", "When I'm looking down the front page on , I often wish I could tell at a glance what happened to the question to bump it there. Sometimes it is obvious from looking at the number of answers, other times you have to follow a link to find out if it has been edited or if an answer has been added or updated. I'm guessing this is just as applicable on other SE sites - this is the kind of thing I'm suggesting: A couple of suggestions from the comments that might be good: To reduce clutter the word 'ago' could be removed at the same time. The new text could be visible only to established users - ie users who are likely to be reviewing/editing and would benefit from seeing at a glance what kind of change has occurred.", "How can I prove that the Cartesian product of two countable sets is also countable?", "I am making a test where I am asked to add the missing words. [...] chair is [...] useful piece of furniture. I would have said that a is the missing word in both the cases, but the test says the words I should have added are the and a respectively. [...] last time I saw [...] bear, I was travelling in [...] Europe. I would have added: nothing, a, nothing. The correct answer is: the, a, nothing. Why is the the correct article to use in both the sentences?", "How to prove that exponential grows faster than polynomial?", "One of my friends said that I would die if I drank distilled water (we were using it in a chemistry experiment) I gave it a go and surprisingly did not die. I did a bit of and found It said that drinking only this kind of water could definitely cause death, as distilled water was highly hypotonic and it would make the blood cells expand and finally explode and ultimately cause death. I wanted to know exactly how much of this water on an average was needed to be consumed to cause death.", "Don't remember the exact start to the story, but it went something like \"walking along a path\" or something, and when he hears what sounds like a shotgun blast behind him, he then feels something strike him in the butt. He passes out, and when he awakens, he discovers that the \"shotgun blast\" was actually a miniature spaceship that exploded and shot miniature aliens into his body. The aliens prove to be very beneficial because they clean up all the toxins and other poisons in his body. They can be transmitted through kissing or sexual activity. Any help with the name of the story would be greatly appreciated. Dan", "Render looks darker than Look Dev mode I have been texture painting in look dev mode. But when i try to render it, everything looks very dark. I have 3 sun lights in my scene, ambient turned on in Eevee settings. What am i missing? I really like the look of my scene in Look Dev mode, how can i achieve the same look when my scene is rendered too?", "Problem with long chapter title and arsclassica", "Real life uses of Moment generating functions In most basic probability theory courses your told moment generating functions (m.g.f) are useful for calculating the moments of a random variable. In particular the expectation and variance. Now in most courses the examples they provide for expectation and variance can be solved analytically using the definitions. Are there any real life examples of distributions where finding the expectation and variance is hard to do analytically and so the use of m.g.f's was needed? I'm asking because I feel like I don't get to see exactly why they are important in the basic courses.", "I would like to remove page numbering on a specific page. However, the header and footer should remain intact. If I try: \\thispagestyle{empty} The header and footer disappear. What is the recommended way of removing just the page number?", "If you have a glass of water, say, three quarters full and you pour it at an angle of say, $45^{\\circ}$ with respect to the the table, the water comes out of the glass and goes directly down towards the floor. However, when the glass is more full, or even three quarters full and the 'angle of pouring' is far less with respect the table, when the water comes out of the glass, rather than going straight down it kind of stays stuck to the glass and travels down the outside of it. Why does this happen? (I'm sure many of you have observed it yourself by accident and ended up making a mess).", "Extract substring in Bash Given a filename in the form someletters_12345_moreleters.ext, I want to extract the 5 digits and put them into a variable. So to emphasize the point, I have a filename with x number of characters then a five digit sequence surrounded by a single underscore on either side then another set of x number of characters. I want to take the 5 digit number and put that into a variable. I am very interested in the number of different ways that this can be accomplished.", "I accidentally installed some USB drivers to my Windows 7 system, they were the wrong ones and now my keyboard and mouse won't work. A system restore would get rid of them, but obviously I can't control my computer to make that happen. Keyboard and mouse still work before windows has loaded, in the BIOS and boot system, so can I do anything from there? I've already tried booting into another OS, accessing my windows filesystem and deleting the Program Files entry, but it didnt work so they must go deeper than that. Or could i launch it from a remote machine? I've got some VNC server insalled so if i could get that running that could work." ]
medi_sts_stackexchange_dupe
“COVID-19 changed / has changed / has been changing the everyday life of people”
How do the tens­es and as­pects in English cor­re­spond tem­po­ral­ly to one an­oth­er?
[ "Why would I want to use Interfaces? I understand that they force you to implement methods and such but what I cant understand is why you would want to use them. Can anybody give me a good example or explanation on why I would want to implement this.", "What is object serialization? What is meant by \"object serialization\"? Can you please explain it with some examples?", "What IDE to use for Python?", "Fill the area under minimum of two functions using tikz and pgfplots", "Standard and/or common directories on Unix/Linux OSes", "How Do I Compute the Eigenvalues of a Small Matrix?", "Is there a way to show that $\\sqrt{p_{n}} < n$? Is there a way to show that $\\sqrt{p_{n}} &lt; n$? In , I show that $f_{2}(x)=\\frac{x}{ln(x)} - \\sqrt{x}$ is ascending, for $\\forall x\\geq e^{2}$. As a result, $\\forall n \\geq 3$ $$\\frac{p_{n}}{ln(p_{n})} - \\sqrt{p_{n}}\\leq \\frac{p_{n+1}}{ln(p_{n+1})} - \\sqrt{p_{n+1}}$$ Also (and as a result), $\\forall n \\geq 3$ $$ \\frac{p_{n}}{ln(p_{n})} - \\sqrt{p_{n}} &gt; 0$$ Or $$ \\frac{\\pi (p_{n})}{p_{n}/ln(p_{n})} &lt; \\frac{\\pi (p_{n})}{\\sqrt{p_{n}}}$$ According to $$\\displaystyle\\smash{\\lim_{n \\to \\infty }}\\frac{\\pi (p_{n})}{p_{n}/ln(p_{n})}=1$$ Or, $\\forall \\varepsilon &gt;0$, $\\exists N(\\varepsilon )$: $\\forall n&gt;N(\\varepsilon )$ $$1- \\varepsilon &lt; \\frac{\\pi (p_{n})}{p_{n}/ln(p_{n})} &lt; 1+ \\varepsilon$$ Or $$1- \\varepsilon &lt; \\frac{\\pi (p_{n})}{p_{n}/ln(p_{n})} &lt; \\frac{\\pi (p_{n})}{\\sqrt{p_{n}}}$$ As a result $\\forall \\varepsilon &gt;0$, $\\exists N(\\varepsilon )$: $\\forall n&gt;N(\\varepsilon )$ $$(1 - \\varepsilon ) \\cdot \\sqrt{p_{n}} &lt; \\pi (p_{n}) = n$$ But this is not enough. Interestingly, is true iff function $f_{4}(x)=\\pi (x) - \\sqrt{x}$ is strictly ascending ($x &lt; y \\Rightarrow f(x) &lt; f(y)$) for prime arguments. If $f_{4}(p_{n}) &lt; f_{4}(p_{n+1})$ then $$\\pi (p_{n}) - \\sqrt{p_{n}} &lt; \\pi (p_{n+1}) - \\sqrt{p_{n+1}}$$ Or $$\\sqrt{p_{n+1}} - \\sqrt{p_{n}} &lt; \\pi (p_{n+1}) - \\pi (p_{n}) =1$$ And vice-versa, if $$\\sqrt{p_{n+1}} - \\sqrt{p_{n}} &lt; 1$$ Then $$-\\sqrt{p_{n}} &lt; -\\sqrt{p_{n+1}} + 1$$ Or $$\\pi (p_{n})-\\sqrt{p_{n}} &lt; \\pi (p_{n}) + 1 -\\sqrt{p_{n+1}} = \\pi (p_{n+1}) -\\sqrt{p_{n+1}}$$ So, if Andrica's conjecture is true then $\\forall n \\geq 3$ $$\\pi (p_{n})-\\sqrt{p_{n}} &gt; 0$$ Or $$\\sqrt{p_{n}} &lt; \\pi (p_{n})= n$$", "Explanation of method for showing that $\\frac{0}{0}$ is undefined", "One server with multiple desktops \"heads\" with VNC I am managing a system of kiosks. Each kiosk currently is running a web browser with the application for the kiosk running in the browser. Each kiosk needs to be able to display separate content. At times, the application running in the web browser freezes. Thus, I have to go out to the site to refresh the page. I want to see if there is a way to have one central server that has multiple browser heads. Then each kiosk would run a program like VNC to display one of the heads. This way when the program freezes, I just have to login to the central server and refresh the page. Getting VNC or another remote desktop software installed on the clients is no problem. What I am looking for is a way to have VNC remote into a specific head of a head of a web browser. Does such a thing exist? Or do I have to run a VM for each kiosk to remote into? Any advice, pointers, or solutions would be helpful.", "Because of past conflicts, I don't believe my advisor will write me a good LOR for postdoc positions. What should I do?", "How do I reset my Unity configuration? I've been messing around with Unity and broke something, how do I \"start over\"?", "Show that $\\frac 1{1+x+y^{-1}}+\\frac1{1+y+z^{-1}}+\\frac1{1+z+x^{-1}}=1$ if $xyz=1$ If $x.y.z=1$ show that $\\dfrac 1{1+x+y^{-1}}+\\dfrac1{1+y+z^{-1}}+\\dfrac1{1+z+x^{-1}}=1$ My attempt - L.H.S$=\\dfrac 1{1+x+y^{-1}}+\\dfrac1{1+y+z^{-1}}+\\dfrac1{1+z+x^{-1}}$ $=\\dfrac y{y+xy+1}+\\dfrac z{z+yz+1}+\\dfrac x{x+zx+1}$ $=\\dfrac{yz}{yz+xyz+z}+\\dfrac z{z+yz+1}+\\dfrac x{x+zx+1}$ What to do next?", "Rendered image doesn't show what Rendered Viewport shows... (pictures below)", "this is my first question on PhysicsSE (I'm already an user of MathSE). I'm a mathematics students trying to understand Faraday's law, that is $$\\varepsilon= -\\frac{d \\Phi_B}{dt}$$ where $\\varepsilon$ means electromotive force and $$\\Phi_B=\\iint \\mathbf{B}\\cdot d\\mathbf{S}$$ means flux of magnetic field. As my textbook points out, there is an interpretation problem here: if the change in magnetic flux is due to movement of the conductor, then free charges in it are subject to Lorentz force, which then causes a current. On the contrary, if the conductor holds steady in a changing magnetic field, the induced current must be explained in terms of an electric field $\\mathbf{E}$, described by the equations $$\\begin{cases} \\nabla \\cdot \\mathbf{E}=\\frac{\\rho}{\\varepsilon_0} \\\\ \\nabla \\times \\mathbf{E} = - \\frac{\\partial \\mathbf{B}}{\\partial t}\\end{cases}.$$ Question Do those equations hold if we have a moving conductor in a stationary magnetic field? I guess not: this would mean $\\mathbf{E}=\\mathbf{0}$. How to solve this?", "Is the universe fundamentally deterministic? I'm not sure if this is the right place to ask this question. I realise that this maybe a borderline philosophical question at this point in time, therefore feel free to close this question if you think that this is a duplicate or inappropriate for this forum. Anyway, I'm an electrical engineer and I have some basic knowledge of quantum mechanics. I know that Schrödinger's equation is deterministic. However, quantum mechanics is much deeper than that and I would like to learn more. If this question is not clearly answerable at this point than can anyone point out some recognized sources that try to answer this question. I would appreciate it if the source is scientific and more specifically, is related to quantum theory.", "I have unistalled and reinstalled the Ubuntu Software Center as per info I found in a similar thread and I got the same response about line 91 or something like that. I just tried to upload a screen shot but since I'm new it won't allow me to. I also can not figure out how to cut and paste anything so I have to hand type what the error screen says, both when I attempt to open the software center and nothing happens, when I try to enter commands into the terminal to uninstall, reinstall, whatever I get the same following: COULD NOT INTITIALIZE THE PACKAGE INFORMATION An unresolvable problem occured while initializing the package information Please report t:his bug against the 'update-manager' package and include the following error message: 'E: Malformed line 91 in source list/etc/apt/sources.list (dist parse) E: The list of sources could not be read., E: The package list of status file could not be parsed or opened. How do I report bugs? What can be done about this. I have searched and everything everyone says to do leads me back to the same line error message. So, I don't know how to get to line 91 in the source list; to tell you what it says. Sorry, I'm really new to this. That is what I need is to find out how to get there and fix what it says. I would really like to NOT have to re partition my hard drive and start from scratch, so I'm really looking forward to getting this problem solved. I need to be able to install new software.", "nodejs vs node on ubuntu 12.04", "Ubuntu Server 18.04 LVM out of space with improper default partitioning", "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?", "I use Gedit a lot and thus tend to have a lot of tabs open at any one time. In Gedit 2.* I could switch between tabs using my mouse wheel but since Oneiric I can't. I assume this is because of various GTK \"upgrades\". Does anybody know of a plugin (or workable fix -- that doesn't require me to recompile everything and its brother) that will see me back to mousewheeling my day away?" ]
medi_sts_stackexchange_dupe
Create a nested lists out of another nested lists with while loop
How do you split a list into evenly sized chunks?
[ "Function always continuous in a Sobolev Space? Hy everybody got a quick question. I know that all function F in a Sobolev Space has a continuous representative called U such as U=F almost everywhere. Lets take for example: The Sobolev space on ]-1,1[ the function F(x)=0 on x&lt;0 and F(x)=1 x>0 we can't find a continuous representative because it would be on a larger interval let say ]-eps ,eps[ so not in a Sobolev space the function F(x)=x on x&lt;0 and x>0 and F(0)=1 where we could find the representative U=x My question is: if F isn't continuous is it sure that it isn't an element of a Sobolev Space? It was given was given as a necessary condition in my course. Thanks for the help.", "I am looking for one word to describe someone who always does what he loves. Loving means enjoying something very much, free-spirited means not restrained by convention. Is there a hybrid word? I mean a word that describes someone who is independent and always does what he loves. Please also try to not make the word too esoteric. Also, the word needs to be positive. How will it be used? I am submitting an application for college, and they require me to supply a word to describe myself. I have always done what I love. So, I require a word to describe someone who loves what they want. There is no sentence, in particular, just a prompt asking me to describe myself in one word.", "how to sort by the day of the week? I have two files. file1: Dave 734.838.9800 Bob 313.123.4567 Carol 248.344.5576 Mary 313.449.1390 Ted 248.496.2204 Alice 616.556.4458 file2: Bob Tuesday Carol Monday Ted Sunday Alice Wednesday Dave Thursday Mary Saturday I merged the two files. file3 should look like this: Name On-Call Phone Carol MONDAY 248.344.5576 Bob TUESDAY 313.123.4567 Alice WEDNESDAY 616.556.4458 Dave THURSDAY 734.838.9800 Nobody FRIDAY 634.296.3356 Mary SATURDAY 313.449.1390 Ted SUNDAY 248.496.2204 But I cannot get the weekdays to be in order. How do I go about doing that?", "g++ undefined reference with a shared library", "For each $y \\in \\mathbb{R}$ either no $x$ with $f(x) = y$ or two such values of $x$. Show that $f$ is discontinuous. This is from Apostol's Mathematical Analysis. Let $f$ be a function defined in $[0, 1]$ such that for each real number $y$ either there is no value of $x \\in [0, 1]$ such that $f(x) = y$ or there are exactly two such values of $x$. Prove that a) $f$ must be discontinuous on $[0, 1]$. b) $f$ has an infinite number of discontinuities in $[0, 1]$. Long back I had tried to solve the problem. I reasoned for a) as follows: Suppose that $f$ is continuous and let $m, M$ be its minimum and maximum values on $[0, 1]$. Clearly if $m = M$ then $f$ is constant and clearly for every $x \\in [0, 1]$ we have $f(x) = m = M$ which contradicts given property of $f$. So we must have $m &lt; M$. Clearly there are now four distinct points $a, b, c, d$ in $[0, 1]$ such that $f(a) = f(b) = m, f(c) = f(d) = M$. By checking possible linear orderings of $a, b, c, d$ I could find a find a value of $y \\in (m, M)$ for which there exist more than 2 values of $x$ such that $f(x) = y$. However this approach looks very clumsy and I suspect much simpler and easier proof is possible. Part b) seemed bit complex and my only guess was that probably $f$ was discontinuous on each subinterval of $[0, 1]$ but I could not prove this claim (may be the claim is wrong!). Perhaps there is a simpler solution to this part of the problem. Apostol's also asks to provide an example of such a function. Any hints on the overall problem will be appreciated. Update: After looking at Marc's answer, I think I have found a way to show that there are infinitely many discontinuities. Earlier the solution was a part of the question itself but it made the question look quite lengthy hence I moved it to a separate answer.", "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:", "Making adult decisions \"is\" or \"are\" really not fun: Which is correct? Making adult decisions are/is really not fun. What is the proper answer and why? My gut says \"is\" but I can't explain why.", "How to ignore the first line of data when processing CSV data?", "Make a momentary switch control a toggle What are the simplest, cheapest, smallest ways to make a momentary switch produce a 2-state toggling output (latching momentary switch)? In other words, the output is continuously low, and when you momentarily press the button/tact switch, the output changes to continuously high, and then when you press it again, it switches back to low.", "I want to use Windows 7 or 8 but I don't know to install a software like VirtualBox which we have to do with the use of terminal. I don't want to use Windows as a main OS so I want to use it in VirtualBox. Can you tell me how to install downloaded files in Ubuntu. I once installed java runtime but don't know the meaning of the lines which I have written in terminal, I just did as the blog posted by a man says.", "Open local folder from link", "Let $X \\ge 0$. Show \\begin{align} \\lim_{y\\to\\infty} y\\,\\Bbb{E}\\left[ \\frac1X \\cdot1_{X&gt;y} \\right] &amp;= 0 \\quad\\text{and} \\\\ \\lim_{y \\downarrow 0} y\\,\\Bbb{E}\\left[ \\frac1X \\cdot1_{X&gt;y} \\right] &amp;= 0. \\end{align} N.B.: The author doesn't assume $\\Bbb{E}[1/X] &lt; \\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&gt;y} \\right] &amp;= \\Bbb{E}\\left[ \\frac{y}{X} \\cdot1_{X&gt;y} \\right] \\\\ &amp;&lt; \\Bbb{E}\\left[ 1 \\cdot1_{X&gt;y} \\right] \\\\ &amp;= \\Bbb{P}(X &gt; y) \\\\ &amp;\\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 &gt; y)$ in \\eqref{1}, so that $$\\Bbb{P}(X &gt; y) \\le \\frac{\\Bbb{E}[X]}{y} \\xrightarrow[y\\to\\infty]{} 0?$$ But I don't have $\\Bbb{E}[X] &lt; \\infty$. Thanks for any help.", "Why do the Jedi say \"May the Force be with you\"?", "Why does the Community user approve and reject edits? Why does the Community user sometimes approve or reject edits? How does a machine know if my edit is valid? What does it mean if my edit was rejected by Community? See also:", "Linux / Bash, using ps -o to get process by specific name?", "Upgrade or replace a Wubi installation? I've got Windows 7 with Wubi 11.10 installed. I would like to upgrade to 12.04 but I'm not sure what the best path would be. I'm not skilled enough to use Ubuntu all the time, and my iPhone requires me to run some Windows version for the damn iTunes software. I would love to run Windows XP but I can't figure out how to install it via USB -- my computer has no cd drive. I'd like to run Windows XP and Wubi 12.04 on top of that. Or, perhaps, Ubuntu 12.04 natively and Windows XP alongside of that. So I guess I have 2 questions: (lazy) Should I upgrade my Wubi from inside Ubuntu, or should I remove Wubi 11.10 from within Windows and install a brand new Wubi 12.04? (proper) How can I install Windows XP and Ubuntu 12.04 alongside each other? Update: I am going to create a separate question post about the above #2 question... I realize it's wrong to ask two questions in one post when they are that different.", "How to set up RAID 1?", "Proofs involving $ (A\\setminus B) \\cup (A \\cap B)$ Give short arguments for each part below to complete the reasoning. Please do not use Venn diagrams. a. Prove that $A = (A\\setminus B) \\cup (A \\cap B)$. (Hint: You should prove that $(A\\setminus B)\\cup (A\\cap B) \\subseteq A$ and vice-versa) b. Prove that $(A \\setminus B) \\cap (A \\cap B) = \\emptyset$ (Hint: Try a proof by contradiction for this statement.). I'm not too sure exactly where to start on this. Both statements make sense logically, but I don't know how exactly to prove them. Can anyone point me in the right direction?", "I'm travelling from Madrid to Brisbane, but I have a 9 hours layover at Dubai Airport. I do not plan to leave the airport, and the connection is with the same airline (Emirates). I'm from El Salvador. Do I need a transit visa?", "Sneak Attack has the same type , this is easy, unless there are multiple damage types. A Flame Tongue does slashing (or piercing) damage, and fire. Can I chose the Sneak Attack damage in this case to be fire too?" ]
medi_sts_stackexchange_dupe
By what means is space expanding?
What causes the expansion of space?
[ "If $f$ is entire and $|f|\\geq 1$, then show $f$ is constant.", "Intuition behind why order of a subgroup divides order of a group.", "I'm trying to setup a image decal in cycles, and I can't figure how to setup the nodes to work fine. Does anyone know the solution?", "Show that if $ R $ is an integral domain then a polynomial in $ R[X] $ of degree $ d $ can have at most $ d $ roots Show that if $ R $ is an integral domain then a polynomial in $ R[X] $ of degree $ d $ can have at most $ d $ roots. Thoughts so far: I feel like I might be missing something here. If $ R $ is an integral domain, then so is $ R[X] $. The factor theorem gives a correspondence between roots and factors. Clearly (is this clear?) a polynomial of degree $ d $ can't have more than $ d $ irreducible factors.", "TikZ: What EXACTLY does the the |- notation for arrows do? I am currently trying to work out how the perpendicular arrows work, and I fail. Taking: \\draw [arrow] (node1) -- node[sloped, above] {Caption} (node1 |- node2.north west); I suspected that the notation meant: Draw an arrow from node 1, to the north-west corner of node 2. Make the arrow perpendicular to node 1. Further attempts to draw arrows told me: No, that's not it. I have sadly failed to figure out what exactly the notation is supposed to be doing though! Is there any \"explanation for dummies\" that will lead me to understand what exactly node1 |- Is supposed to do? Thanks!", "What is the title of a 80's (i believe?) movie where humans in the far future are going extinct, and are aquiring new humans by going back in time to todays world, kidnapping air travelers that are known to have died that day, from the flying passenger aircraft just before its crashing. A key visual: Inside a hangar, a time portal opened, and a tail of a (flying) passenger aircraft extruded into the hangar where a stairs provided access to the back door of the aircraft. The kidnappers made sure the surviving passengers remain seated and would forget about the whole ordeal. Kidnapped humans got replaced by lookalike dummies, including things they had on them. They tried hard not to alter the timeline.", "Lower the amount of reputation needed to comment is a great example of people coming from Google and using answers as comments. I understand the reputation threshold is there to prevent spam, but Answers are just as prone to spam as comments and you can post them at reputation 1. Furthermore there are already flags in place as a preventive measure for both. Essentially the reputation threshold of comments is forcing people to use the site in ways the designers did not intend. Removal of the reputation cap would also make the site more new user friendly as newbies that use the site in this manner are commonly given a unfriendly welcome in the form of downvotes from people who forget you need 50 rep to post comments.", "Prevent Photos app on OSX from launching when plugging in device The Photos app opens whenever I plug in my phone. How can this be prevented? I have seen many solutions for the old iPhoto app that involve changing the \"Connecting camera opens\" option, but the new app has no such option.", "Closed form for the sequence defined by $a_0=1$ and $a_{n+1} = a_n + a_n^{-1}$", "What I am working with: I am running my self-made Arduino board (in the sense that I use the Arduino bootloader and code editor) at 3.3V, and powered from a Lithium ion battery, which is USB-charged by a corresponding Microchip charger IC. What I am trying to achieve: I want to measure battery capacity once every minute or so. I have an LCD attached, so the idea is that the overall setup lets me know how the battery is doing at a given moment. The datasheet of the battery has a voltage versus discharge-level curve, and so by measuring the voltage of the battery, I can estimate the remaining capacity (very roughly but enough for me!). What I did: (EDIT: Resistor values updated and P-MOSFET switch added based on @stevenvh and @Jonny's suggestions). I connected a voltage divider from the battery V_plus, with the larger \"portion\" going to an analog-read-pin (i.e., ADC) on the Arduino/Atmega chip. The divider is 33 KOhm-to-10 KOhm, thus allowing measurement up to 4.1 Volts maximum of the Li-ion battery from my 3.3V level microcontroller. Also, using one of the I/O pins connected to an n-channel MOSFET, I can switch the current through the divider only when I need the measurement. Here is a rough schematic (updated for a 2nd time based on suggestions of @stevenvh and @Nick): My question: How is my current setup? My only constraints are: (1) I would like to make a rough measurement of the battery capacity based on the voltage reading, as described above. (2) I would like to prevent the voltage divider from interfering with my charging IC's reading of battery presence (in my original setup, the divider sometimes caused the IC to misread presence even when the battery was absent).", "Let's say we have $2$ particles facing each other and each traveling (almost) at speed of light. Let's say I'm sitting on #$1$ particle so in my point of view #$2$ particle's speed is (almost) $c+c=2c$, double light speed? Please say why I am incorrect :) EDIT: About sitting me is just example, so in point of view of #1 particle, the second one moves at (almost) $c+c=2c$ speed?", "There are several things that I don't understand. I know that zero is a real number, but I'm confused on the how and why aspects. What defines a real number, compared to a number that's considered non-real? For what reason is zero real, and how is it that a value such as infinity isn't when zero is? Also, what purpose does zero even have? It's obvious that it's used as a place holder, but what value does it have alone? What makes it any different from other numbers? I realize that it is typically interchanged with nothing, but that would technically mean that zero is nothing—and that's not true. People have told me already so many times that zero does not necessarily mean nothing, and I figured it out a long while ago anyway. So, what I want to know is the actual value that can be associated with zero. However, my question brings up another topic that has been argued and disputed about and disagreed on for years. Zero divided by zero, or 0/0. There are a lot of varying answers about this, but what's been constant throughout everything is that people claim 0/0 is not a real number. So, if I may ask, why is it that zero is considered a real number, and not 0/0? And why is it considered non-real in the first place? True, there is no defined value, but the expression is anything but meaningless; if it was, then there wouldn't be so many people trying to understand it. I guess what I'm trying to figure out is the reason behind the expression's classification as non-real—especially when the sole number of zero is real, despite not having an evident value. This covers a few different things, so I was uncertain about what to make the title of these questions. I apologize for that. If anyone can answer, though, I'd be extremely grateful!", "Redefining \"cited on\" string (and others) in biblatex", "What should i use for better performance, nine-patch or drawable xml resource?", "Normalising Constant for exponentiated function What would the normalising constant be of the following, or atleast an approximation? I would like to avoid sampling. $$f(\\theta)=\\exp(-k_1e^{-k_2\\theta^2}-\\theta^2)\\qquad\\theta\\in(-\\infty,\\infty), \\quad k_1,k_2&gt;0$$ In the event that its not possible, what would be a valid polynomial lower bound on $\\log(f(\\theta))$, that would take into account $k_1$ For anyone, who is interested, I end up with this expresssion because I place a Gaussian prior over (a squared exponential) kernel parameters, and trying to use variational bayes (hence, a lower bound).", "I may not be coming in tomorrow... I might not be coming in tomorrow... When should I use \"may\" and \"might\"?", "When mounting an NFS share manually using mount and a path of the form &lt;domain/ip&gt;:&lt;path&gt;/&lt;path&gt; or &lt;domain/ip&gt;:/&lt;path&gt;/&lt;path&gt;, umount fails to find the path in /proc/mounts, despite the fact that the path is in fact listed in /proc/mounts. This is the same problem as in this question: Steps to reproduce: # mount --version mount from util-linux 2.24.1 (libmount 2.24.0: debug, assert) # mkdir mountpath # mount 192.168.2.101:/devices mountpath # umount mountpath /home/.../mountpath was not found in /proc/mounts # grep mountpath /proc/mounts 192.168.2.101://devices /home/.../mountpath nfs4 rw,[snip],addr=192.168.2.101 0 0 How can I unmount this mount?", "What is causing disabled options when adding a mesh/curve object to the scene?", "Removing a list of characters in string", "How to interpret the significant interaction of two non-significant main predictors? I have two non-significant main binary variables in my binary logistic regression model, but their interaction is significant. The variables are centered and no multicollinearity is the case (all VIFs about 1.0). The main variables are nonsignificant, but their interaction is. I want to interpret that significant interaction of two non-significant estimates. It would read something like this: the effect of the variable A is less visible in the level 1 of the variable B (B1) and more visible in the second level of B (B2). Or I can say the same thing about the effect of B being less visible in A1 and more visible in A2... However, the problem is that neither the effect of A, nor the effect of B are significant! So the above interpretation, although seemingly correct, sounds inconsistent or strange. (How a non-significant effect is supposed to be boosted by the other variable?)... On a second thought, it seems that it is actually possible. For example, if I exclude cases with B2 from my sample, now the effect of A in the sample would show up as significant (it is B2 cases in the sample that disallow A to appear as significant)... This is getting more clear in my head now, but do you still have something other than the above interpretation in mind?" ]
medi_sts_stackexchange_dupe
How to reference static member variables from a struct within another class
Undefined reference to static class member
[ "Creating square buffer around point feature using ArcGIS for Desktop? I would like to create a square buffer from a point feature but I do not understand the code that goes into it. Similar questions have been asked on the forums.esri website but that was over 10 years ago, and it did not work when I tried the code. How do I create a square buffer from a point feature?", "What counts as a 'large' raid 5 array?", "How to install Anaconda on Ubuntu? How to install on Ubuntu? Is there a way to use apt-get install? I only have command line access to my server. How do I install Anaconda on Ubuntu 14.04 from the command line?", "\"Unanswered\" question sort order on profile pages To help users keep track of (and hopefully get answers to) unanswered questions, it would be useful to have an \"unanswered\" sort order on a user's profile page. It would order the list of questions with unanswered questions first. This would be in addition to the \"recent,\" \"views,\" \"newest,\" and \"votes\" sort orders.", "How to find the real user home directory using python?", "I only read part of the second book in this series years ago, and am unsure of how many books were in it. It was about a teenage or young adult boy, who was part of the ruling class of this fantasy world. He was gay, and his lover was the heir to the throne. The antagonist of the first book - I haven't read it, but I got the gist from comments in the second - was the current queen, who tricked the boy and his lover into leaving the kingdom for remote outer regions, thus enabling her son to take the throne. She then married her own son to keep herself in power. The second book had the boy and his lover slowly becoming enemies, as the lover began to corrupt the simple tribesmen they were sheltering with in his quest to regain his throne. He wanted to build an empire in the hinterland and use the army to attack his homeland, killing the queen in the process, and didn't care about the long-term effects his actions were having on the culture or environment of his new followers. The lover defeats a tribesman by breaking his neck in unarmed combat, then later takes a young boy as his \"willing catamite.\" He also leads raids on neighbouring tribes, establishes alliances with other neighbouring tribes and organises daring and successful raids on the eggs of dinosaurs living in the middle of a swamp. He enslaves the first tribe to turn against him, and gives their children to slavers from the empire in place of those of allied tribes, thus weakening his enemies while ensuring the loyalty of his allies. The series involved dinosaurs living among humans, being both domesticated and wild, used as livestock, for hunting and as transport. The boy and his lover were much taller than the average humans who were forced to pay tribute to this pseudo-magical empire they came from; all the humans from the empire were much larger than their subjects. The tribesmen have a tradition about not touching the ground with bare feet, as it is an insult to nature, or their god. The boy and his lover both ignore this superstition, but the catamite also begins to ignore it, despite looking ashamed as he does so. I have absolutely no idea when this series was written, what it is called or who wrote it. All I know is that I read it in 2005-06, though it probably wasn't new. I'm hoping the long description I've given will help someone work it out.", "Is this correct? That is a real cool answer. I learned that that was incorrect, since \"real\" is an adjective which can describe a noun, e.g. \"real answer\" but it is not an adverb which can describe an adjective, \"real cool\". Instead you would have to say: That is a really cool answer. Since \"really\" is an adverb.", "How to model this odd-shaped distribution (almost a reverse-J) My dependent variable shown below doesn't fit any stock distribution that I know of. Linear regression produces somewhat non-normal, right-skewed residuals that relate to predicted Y in an odd way (2nd plot). Any suggestions for transformations or other ways to obtain most valid results and best predictive accuracy? If possible I'd like to avoid clumsy categorizing into, say, 5 values (e.g., 0, lo%, med%, hi%, 1).", "Mysterious cord running from wall. Safe? My wife and I are preparing to sell our home and are discovering some weird things. Our home was built in 1958, so it is older. We found this in a corner that had some furniture in front of it. We are wondering What kind of wiring is this? Is it safe to handle or remove?", "Given the following components DECLARE @D DATE = '2013-10-13' DECLARE @T TIME(7) = '23:59:59.9999999' What is the best way of combining them to produce a DATETIME2(7) result with value '2013-10-13 23:59:59.9999999'? Some things which don't work are listed below. SELECT @D + @T Operand data type date is invalid for add operator. SELECT CAST(@D AS DATETIME2(7)) + @T Operand data type datetime2 is invalid for add operator. SELECT DATEADD(NANOSECOND,DATEDIFF(NANOSECOND,CAST('00:00:00.0000000' AS TIME),@T),@D) The datediff function resulted in an overflow. The number of dateparts separating two date/time instances is too large. Try to use datediff with a less precise datepart. * The overflow can be avoided in Azure SQL Database and SQL Server 2016, using . SELECT CAST(@D AS DATETIME) + @T The data types datetime and time are incompatible in the add operator. SELECT CAST(@D AS DATETIME) + CAST(@T AS DATETIME) Returns a result but loses precision 2013-10-13 23:59:59.997", "How did planets have an elliptical orbit in the first place? I know that planets speed up when getting closer to the sun, but they speed up because they have an elliptical orbit, and they have an elliptical orbit because they speed up. Why did they have an elliptical orbit in the first place?", "Last night I was grilling chicken thighs on a barbecue and I was told that if there was any pink inside them, they are not safe to eat. My question is twofold: (a) Is this true? (b) Is there a way to tell that doesn't involve cutting the thighs open to have a look at the colour?", "Make 15 lines / ticks with Photoshop, each of them rotated of 20°", "Is there a limit to a total number of months a holder of UK multiple entry visitor visa can spend in UK per calendar year? A relative of mine has received a multiple-entry UK visa for 2 years. Is there a particular limit on how many months in total per year she can stay in UK? The way I understand the current rule is that such visitors can enter UK as many times as they want as long as they do not stay for longer than 6 months per single visit. However, does this mean that if she stayed with us for 5 months and went back home for 1-2 months, she could come and stay for another 5 months? I heard that it is advisable to spend only 180 day per calendar year in UK and not more, but I could not find that rule in any official UK Home Office documents. Thanks in advance for any info about this.", "By conservation of energy, the solid is left in a lower energy state following emission of a photon. Clearly absorption and emission balance at thermal equilibrium, however, thermodynamic equilibrium is a statement of the mean behaviour of the system, not a statement that the internal energy is constant on arbitrarily short timescales. The energy has to come from somewhere during emission, and go somewhere during absorption. Energy in a solid can be stored as kinetic and potential energy of electrons and nuclei, either individually or in collective modes such as phonons and plasmons. In thermal equilibrium energy will be stored more or less in various forms depending on the temperature and material. However, even if most of the thermal energy in a particular solid at temperature $T$ is stored in the form of phonons, it could be that phonons primarily interact with light indirectly via electrons, e.g. a phonon excites an electron in a phonon-electron interaction, which can interact with light via the EM field. Given that light is an EM field, it makes sense to me that it is emitted and absorbed by charged particles. The electron-photon interaction is probably dominant for visible and ultraviolet light, given that metals are opaque, while semiconductors and insulators are transparent to (visible and UV) light with energy lower than their bandgap. However, once you get into energies in the IR and below, or X-rays and above, other mechanisms apparently take over. For example, on the high-energy end of the spectrum I've heard that gamma rays can interact directly with nuclear degrees of freedom, which is reasonable considering that gamma rays are emitted during a lot of nuclear reactions. A review of might give clues to important light-matter interactions over a broad range of wavelengths. Whether all of the these processes are involved in blackbody emission is a somewhat different question. What physical processes mediate energy transfer during blackbody emission, and in which energy ranges are the various processes dominant?", "I just found out about the Mesh Display : Length feature in the \"N\" panel (thanks to ) that allows one to measure the length of a face or vertice. But my first encounter with this tool gives me complex feelings of love and hate, see how, as I was trying to measure the aspect ratio of this TV screen, I am getting WIDTH = 20.33 and HEIGHT = 37.57. These values seem awfully wrong, since my betrusted eyes tell me the height should be shorter than the width. I have tried measuring the single vertices as well, to identical results.", "Subdivision Surface not making things smooth as they are in the tutorial I am following", "UK Visa Refused - can I reapply immediately?", "My Déjà Dup backups have become quiet large and I noticed they contain a huge number of unnecessary files (e.g. *.pyc files, **__pycache__ folders and other build related temporary stuff). I know that I can ignore specific folders, but is there a way to exclude files and or folders by patterns? I thought there might be more options usable trough a configuration file, but Déjà Dup doesn't use one. So I looked at duplicity (the CLI it is based on), but the man page doesn't mention a configuration file either. I know that duplicity can ignore files and folders based on patterns (--exclude, --exclude-filelist), but I have no idea how to combine this with Déjà Dup. Do I have to ditch Déjà Dup and use duplicity manually? Or is there a way to set the needed options, so that they are used automatically, when duplicity is used by Déjà Dup?", "How does Newtonian mechanics explain why orbiting objects do not fall to the object they are orbiting?" ]
medi_sts_stackexchange_dupe
Combining two means and SDs of one group
Combining two covariance matrices
[ "Hello, I create an app using the Promoted Links in Sharepoint 2013. I chose to do this because the feature has the awesome hover effect and is easy to customize the image. The issue is that I have been trying to figure out how to change the tile sizes. They are awesome the way they are, however I just need them smaller. I still want the hover effect as well and for the text to match the same ratio as the tile. I have tried web zones, I have done each ID but with no luck. I have attached a sample image of the tiles I'm referring to. Please help.", "WinForms: How to programmatically fire an event handler?", "Size commands do not work in mathmode MWE: \\documentclass{article} \\begin{document} $\\wedge{\\small\\wedge}{\\tiny\\wedge}$ \\end{document} All the \\wedges have the same size...", "I get how a normal fork bomb works, but I don't really understand why the &amp; at the end of the common bash fork bomb is required and why these scripts behave differently: :(){ (:) | (:) }; : and :(){ : | :&amp; }; : The former causes a cpu usage spike before throwing me back to the login screen. The latter instead just causes my system to freeze up, forcing me to hard reboot. Why is that? Both continually create new processes, so why does the system behave differently? Both of the scripts also behave differently from :(){ : | : }; : which doesn't cause any problems at all, even though I would have expected them to be alike. The bash manual page states that the commands in a pipeline are already executed in a subshell, so I'm led to believe that : | : should already suffice. I belive &amp; should just run the pipeline in a new subshell, but why does that change so much? Edit: Using htop and limiting the amount of processes, I was able to see that the first variant creates an actual tree of processes, the second variant creates all the processes on the same level and the last variant doesn't seem to create any processes at all. This confuses me even more, but maybe it helps somehow?", "How do I format a number in Java? How do I format a number in Java? What are the &quot;Best Practices&quot;? Will I need to round a number before I format it? 32.302342342342343 =&gt; 32.30 .7323 =&gt; 0.73 etc.", "Quick directory navigation in the bash shell", "Why can't a Federation Starship's transporter history be used to bring someone back to life?", "How to secure Elliptic Curve ElGamal encryption against known plaintext attacks? If I have an encoding function $f(x)$ that maps a message $m$ to a point $P$ on a suitable Elliptic Curve $E$ . If I have the public key $Q$ of my recepient then I can encrypt the message as follows: Choosing a random number $k &lt; n -1 $ where $n$ is the order of the curve E . Calculating $C = [k] G $ where $G$ is the generator point of the curve E Calculating $R = [k]Q $ where $Q$ is the recipient's public key Now the message is encrypted by adding $P$ to $R$ to get $C_e$ $( = R + P)$ which is sent along with $C$ to the recepient. DECRYPTION: Now for the recepient to decrypt my message they compute $R = [privatekey] C $ (where $C = [k]G $) and simply subtract $R$ from $C_e$ to get the encoded point $P$ back which is then decoded by an inverse function $f^{-1}(x)$ to recover $m$. Now , two problems arise : If the attacker knows the plaintext (suppose if I follow a particular format of data while sending messages ) he could encode his guessed plaintext and subtract it from $C_e$ to recover $ R $ back ! . If I used that same $ R $ to encrypt further \"blocks\" of my message then the security of the later parts of my message has been breached! I realize that doing something like a scalar multiplication over and over again for every block of data, would be a huge drawback in efficiency and speed. Is there any way to compute a different $ R $ for every block of data, without using much resources and that too quickly ? Does reusing the same $R$ for another message break security ? NOTE: This question is for educational purposes only. It's for the sake of expanding my knowledge on Crypto.", "If $\\sum_na_n=\\infty$ and $a_n\\downarrow 0$ then $\\sum\\limits_n\\min(a_{n},\\frac{1}{n})=\\infty$ If $\\sum_na_n=\\infty$ and $a_n\\downarrow 0$ then $\\sum\\limits_n\\min(a_{n},\\frac{1}{n})=\\infty$ My idea: $$b_{n}=\\min(a_{n},\\tfrac{1}{n})\\Longrightarrow b_{n}\\le a_{n},b_{n}\\le\\tfrac{1}{n}$$ then I don't know how to go on.", "Three linked question on non-negative definite matrices. 1.a symmetric matrix in $\\mathbb{M}_n(\\mathbb{R})$ is said to be non-negative definite if $x^Tax≥0$ for all (column) vectors $x\\in \\mathbb{R}^n$. Which of the following statements are true? (a) If a real symmetric $n\\times n$ matrix is non-negative definite, then all of its eigenvalues are non-negative. (b) If a real symmetric $n\\times n$ matrix has all of its eigenvalues are non-negative , then it is non-negative definite. (c) If $ A\\in \\mathbb{M}_n(\\mathbb{R})$, then $AA^T$ is non-negetive definite. 2. only one of the following matrices is non-negetive definite. Find it. (a) $\\begin{pmatrix} 5 &amp; -3 \\\\ -3 &amp; 5 \\end{pmatrix}$. (b) $\\begin{pmatrix} 1 &amp; -3 \\\\ -3 &amp; 5 \\end{pmatrix}$. (c) $\\begin{pmatrix} 1 &amp; 3 \\\\ 3 &amp; 5 \\end{pmatrix}$. 3.let $B$ be the real symmetric non-negative definite $2×2$ matrix such that $B^2=A$ where $A$ where is the non-negetive definite matrix in question $2$.write down the characteristic polynomial of $B$. My thoughts.. For1. (a) &amp; (b) are true but not sure about (c). For 2. (a) is the correct option since it has all positive eigen values.they are $2,8$. For 3. Eigen values of $B$ will be $\\sqrt{2}$ and $\\sqrt{8}$. So the answer is $x^2-3√2x+4=0$. Can anybody help me to verify the solutions of the above problems.", "How do you increase MAXSYMLINKS In a python script, I am creating a bunch of symbolic links chained together. example: link1->link2->link3->.......->somefile.txt I was wondering how you can change the max number of symlinks to be greater than 20?", "Is there any advantage to using pedal straps over clipless pedals?", "Change Error Message on FBA Login page On the default FBA Login Page, when a user enters wrong username/password an error message gets displayed: \"The server could not sign you in. Make sure your Username and Password are correct, and then try again.\". I want to change this error message to simple text \"Invalid Username and Password\". How can I achieve this?", "How can I vertically center a \"div\" element for all browsers using CSS?", "I can't use the terminal while gedit command is running", "calculate slope for a road network I am working on a road network for routing operations using postgis and QGIS. I am new to both of these tools and need to calculate the slope for each edge (by retrieving the Z value for the start and end node for the edge from a raster). Any ideas of the best approach to this? I know postgis can dump points and get the value from a raster, but can I get the slope attribute to the edge without breaking the network topology (with edges that have corresponding start/end nodes) using this method? thanks", "How is the derivative of $\\mbox{Trace}\\left\\{ X^T A X B\\right\\}$ with respect to matrix $X$ equal to $AXB + A^TXB^T$? \\begin{align} \\nabla_X \\ \\textrm{Trace}\\left\\{ X^T A X B\\right\\} = AXB + A^TXB^T \\end{align} where $A$ and $B$ matrices are given.", "I am a novice user and I am trying to install Oracle Java. The process calls for me to access /usr/local/java, but here is the problem. I get as far as /usr/local, then this is the message I get: leonard@leonard-MT6452:/usr/local$ dir bin etc games include java lib man sbin share src leonard@leonard-MT6452:/usr/local$ cd /java/ bash: cd: /java/: No such file or directory leonard@leonard-MT6452:/usr/local$ rm -r ~/java rm: cannot remove ‘/home/leonard/java’: No such file or directory Help?", "Cannot translate vertice/edge will duplicate Most of the time when I try to move a vertex or an edge, instead of translating that, it extrudes it, it creates another face or, vertiex or whatever. I do not really get why it behaves like that. I hope I explained it in depth. I am sorry if this is a duplicate post but I could not find anything!", "Determinant of a square matrix in a field \\begin{array}{rrrrr|r} b &amp; a &amp; a &amp; \\cdot \\cdot \\cdot &amp; a \\\\ a &amp; b &amp; a &amp; \\cdot \\cdot \\cdot &amp; a \\\\ a &amp; a &amp; b &amp; \\cdot \\cdot \\cdot &amp; a \\\\ \\cdot &amp; \\cdot &amp; \\cdot &amp; \\space &amp; \\cdot\\\\ \\cdot &amp; \\cdot &amp; \\cdot &amp; \\space &amp; \\cdot\\\\ a &amp; a &amp; a &amp; \\cdot \\cdot \\cdot &amp; b \\end{array} I have the above matrix $A\\in M_{n\\times n}(F)$ where $F$ is a field and $n\\geq1$, $a,b\\in F$. I'm trying to find out how to use row operations to make it into an upper triangular matrix in order to figure out the determinant. But I'm not sure how I would approach it." ]
medi_sts_stackexchange_dupe
Strange Biblatex behaviour when citing two different entries with the same first author
Set limit to one author when using "et al." in biblatex
[ "Prove that the only automorphism of $\\mathbb{Q}(\\sqrt[3]{2})$ is the identity automorphism. I am having difficulty with this proof. I have previously proved that for an automorphism on the extension field $K$ of $F$ that when restricted to $F$ is the identity automorphism must take roots of $f(x)\\in F[x]$ in $E$ to roots of $f(x)$ in $E$. I was thinking of using the minimal polynomial $x^{3}-2\\in\\mathbb{Q}[x]$ and the result of previous problem I solved, but I suspect there are automorphisms that don't fix the subfield, so the result can't be used or I need to prove that any automorphism of an extension field must fix the subfield that is being extended or always sends roots in $E$ to roots in $E$. I am not asking for a solution to this, but maybe a hint or pointer in the right direction. This problem is introduced in the text prior to Galois theory, so please keep that in consideration.", "How do I get a book graphic and description from the Amazon Book API? sends an ISBN number to Amazon and gets back a small bit of XML including author, title, and publisher. However, I also want to get small, medium and large graphic and book descriptions of the title. Problem: I can find no REST URL examples/documention that work, either at Google or when logged into my \"AWS Account\" at Amazon Associates. I find a lot of examples from 2003-2005 but they are all out-of-date and give errors, it seems that Amazon's cloud web services have obfuscated their simple REST API documentation for their books. Can anyone point me to some documentation on how I can get detailed information about books at Amazon via REST/XML? Here's what I have tried so .", "Expectation and variance of the geometric distribution How can one use memorylessness and the and the to find the expectation and variance of the geometric distribution? I will post my own answer, but as always, that shouldn't stop anyone else from posting theirs.", "Show that if $(b,c)=1$, then $(a,bc)=(a,b)(a,c)$.", "Why is setting a variable before a command legal in bash? I've just encountered several answers such as to that use the construct: while IFS=, read xx yy zz;do echo $xx $yy $zz done &lt; input_file where the IFS variable is set before the read command. I've been reading through the but can't figure out why this is legal. I tried $ x=\"once upon\" y=\"a time\" echo $x $y from the bash command prompt but got nothing echoed. Can someone point me to where that syntax is defined in the reference that allows the IFS variable to be set in that way? Is it a special case or can I do something similar w/ other variables?", "The school where I work has an S when it is an acronym (NEGS) it looks odd with an apostrophe to show ownership e.g. NEGS' tennis team...any thoughts?", "How can I import Opera bookmarks into Chrome?", "Real Roots and Differentiation Prove that the equation $x^5 − 1102x^4 − 2015x = 0$ has at least three real roots. So do I sub in values of negative and positive values of $x$ to show that there are at least three real roots? The method to do this question is not by finding the factors of $x$ right? Because it will be too tedious so I want to ask whats the other solution to prove this? Help appreciated. Thank you very much.", "Is there a systematic way to obtain all conserved quantities of a system? I'd like to know whether, given a system, there's a way to obtain all the conserved quantities. For instance if the system consists of electric and magnetic fields, the fields must satisfy Maxwell's equations. These equations are invariant under many transformations (Lorentz transformation, rotations, spatial and temporal translations, etc. By the way is there a way, maybe from group theory, to find all the possible transformations that leaves the equation(s) invariant?) which imply as many conserved quantities thanks to Noether's theorem. In wikipedia I can see an equation that seems to give all the conserved quantities () but it involves the Lagrangian and I'm not sure whether the formula is valid for all systems whose Lagrangian is possible to obtain.", "Why does my Nikon D3100 give the error \"Lens not attached\" with a Vivitar 200 telephoto lens?", "Distance Between Two Points in Matlab", "Why were there so many spells cast in the movies without saying the words to the spell? From my memory of the last Harry Potter movie I saw, I've seen many wizards cast spells without saying the spell at all. During the final battle in Hogwarts, many wizards just swung their wands and their enemies were knocked out. I am 100% sure about this! The most remarkable spells were the ones that emit a green or red beam in the final battle of Harry Potter against Voldemort when they pushed their beams towards each other. So, the question is, are they cheating? Because, unless there are wordless spells, they must say the words for a spell.", "Is it possible for more than two particles to be entangled in a quantum way? So I know that two particles can be entangled in a quantum way, but is it possible that more than two particles be entangled in a quantum way? Most descriptions provide with two-particles cases, so I wonder. (It's hard to think of three particles entangled in spin, or so.)", "Convert a string representation of a hex dump to a byte array using Java? I am looking for a way to convert a long string (from a dump), that represents hex values into a byte array. I couldn't have phrased it better than the person that posted . But to keep it original, I'll phrase it my own way: suppose I have a string \"00A0BF\" that I would like interpreted as the byte[] {0x00,0xA0,0xBf} what should I do? I am a Java novice and ended up using BigInteger and watching out for leading hex zeros. But I think it is ugly and I am sure I am missing something simple.", "Hypernym for “import” and “export”?", "I know that packages installed with apt-get are stored in /var/cache/apt/archives. I just installed mariadb server in Ubuntu 16.04 with following command: sudo apt install mariadb-server When I tried to find packages in /var/cache/apt/archives, there are no packages. Where are they stored if it's not in this directory?", "Correct position of \"only\" Which is grammatically correct? I can only do so much in this time. or I can do only so much in this time.", "How can I make Firefox open magnet-links in Transmission?", "When should you push variables in quotes in boolean conditions? Are the following two boolean expressions the same? if [ -n $1 ] ; then if [ -n \"$1\" ] ; then If not - When should you put a variable in quotes?", "power outage/frozen meat We were on vacation for a week. The neighbor said we were out of power the whole time. We have a chest freezer full of beef. It thawed but remained in the freezer unopened the whole time. Is the meat bad if it is thawed but still cold? Can we refreeze it and eat it?" ]
medi_sts_stackexchange_dupe
What is meant by May?
What does "may they rot there" mean?
[ "Imagine that you want to develop a non-trivial end-user desktop (not web) application in Python. What is the best way to structure the project's folder hierarchy? Desirable features are ease of maintenance, IDE-friendliness, suitability for source control branching/merging, and easy generation of install packages. In particular: Where do you put the source? Where do you put application startup scripts? Where do you put the IDE project cruft? Where do you put the unit/acceptance tests? Where do you put non-Python data such as config files? Where do you put non-Python sources such as C++ for pyd/so binary extension modules?", "Why do you cast downvotes on answers? This is a question which started off with a , then turned into an , and now it's a question in its own right (as suggested by Jeff). I'm not sure where it could go from here :) It's obvious that different people cast downvotes for different reasons. (Upvotes are less controversial, generally.) Here are some possible reasons: Answer is wrong Answer is misleading (may be technically accurate, but will lead to readers making mistakes) Answer doesn't match the question (e.g. a C# answer to a question about Java) Answer doesn't really address the question, e.g. suggesting a completely different solution, even if the question specifies that there are good reasons why the current approach has to be followed Answer is okay, but not as good as another one which currently has fewer votes Answer appears to be plagiarised from existing answers. Answer is by someone I don't like. Answer is abusive (profanity, spam etc). No reason, I just felt like it. I'm a , and prefer down to up. Have you considered down? Ideological grounds: answer suggests a technology I don't like, or expresses a negative opinion of a technology I do like Personally I go with 1, 2 and 8 - although I'll add comments suggesting changes in various other situations. Have I missed anything? What do you do, and why? What are the net benefits (to you, the world in general, and the answerer) from your approach?", "Cycle option when drawing between nodes in TikZ Cycle lets you close curves when drawing, and \\coordinate (a) at (0,0); \\coordinate (b) at (1,0); \\coordinate (c) at (0.5, -1); \\draw (a) -- (b) -- (c) -- cycle; works fine. Shouldn't also \\node (a) at (0,0) {}; \\node (b) at (1,0) {}; \\node (c) at (0.5, -1) {}; \\draw (a) -- (b) -- (c) -- cycle; give the same result? The former gives a triangle, while the second doesn't close up. Is this a bug or am I missing something regarding the cycle option? (Of course, as a workaround I could use the coordinates to draw the cycled path, and then draw the nodes at the same coordinates, but still...)", "Showing $\\gcd(2^m-1,2^n+1)=1$", "Physically what does warping (of space-time) mean? So there's general relativity and Einstein's field equations that tell us \"mass(or equivalently energy) warps space-time, and the warping tells mass how to move\", but I'm still having trouble understanding how space (a thing I conceive to be 'empty' or nothingness) can be 'warped'. After researching books, on-line articles, and this stack exchange itself I can't seem to find any descriptions or discussions that don't immediately resort to jumping into GR and its mathematics to provide a more physical intuitive understanding of what it means to for space to be warped. Is it space, this empty thing, that's getting warped. Or rather is it some field (Higgs field?) that exists around matter that's getting warped? Although this question appears similar to , it's asking if it's empty space that's being warped by matter or rather a field in space that's being warped (the Higgs Field?). The other question and all 10 answers addressing it do not address fields vs. empty space - What's really getting warped?", "I am thinking of moving my extensive eBook library to iBooks or Kindle. Has anyone done this, and what does it take? I just don't want book libraries in multiple proprietary formats, and have to look for content across apps.", "sudo on Windows 10 Linux subsystem cannot resolve local machine name I installed Windows 10 Anniversary update and the Linux subsystem. When running anything with sudo it takes ages and then I get this error message: sudo: unable to resolve host MYMACHINE How to get rid of this and make sudo fast?", "Idempotent linear operators are projections", "Is doing two PhDs a good path?", "How can I create or use a global variable in a function? If I create a global variable in one function, how can I use that global variable in another function? Do I need to store the global variable in a local variable of the function which needs its access?", "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).", "Comments can now be upvoted and flagged. How do those features work? Do users get rep for their upvoted comments? Do upvoted comments have any effect on comment sorting? And can users see their own comment upvote number somewhere? Related: The about comments", "DXF file not to scale in Blender When I open the DXF file in LibreCAD, then it shows the correct size of an object, but when I import that file in Blender, then the size of that object becomes very large.", "Individual ColorFunction with RGBColor", "addSMA not drawn on graph when called from function", "Making data points different sizes based on data using QGIS? I am trying to plot sales data on a map using QGIS. I will add the disclaimer that I am a rookie at using the program. I added the different sales types by adding delimited text layers (utf16). The data included Longitude, Latitude, and Amount. I want to make the dots on the map scale with the value of the sale. Ive had no luck with trying to use Simple Marker->Data defined properties-> size and writing case functions. Some data points show up at different sizes while others show up at all data points. Here are my functions under different simple markers: CASE WHEN Amount &lt;= 10000 THEN '.2' END CASE WHEN 10000 &lt; Amount &lt; 75000 THEN '.4' END CASE WHEN 75000 &lt; Amount &lt;= 250000 THEN '.6' END CASE WHEN Amount &gt;= 250000 THEN '1' END The majority of my data set falls into the 10-75k range. However the .4 and .6 size circles show up at every data point on the map, while the .2 and 1 sizes only show up where the data specifies (along with the .4 and .6 sizes). At this point I am trying to figure out what is wrong with the equations, however I am stuck. Is there a better way to go about this or am I just simply messing up the equations? I wish I could share my whole map with you but it is looking great. I went with U/Joseph 's solution and here is an excerpt of the results for those interested.", "Transitive subgroup of symmetric group $S_n$ containing an $(n-1)$-cycle and a transposition", "Why is disk usage greater than the size of all files on it?", "No Dropbox top panel icon since update to 18.04", "How do I concatenate JavaScript files into one file?" ]
medi_sts_stackexchange_dupe
Dual Boot Ubuntu with Windows
How can I repair grub? (How to get Ubuntu back after installing Windows?)
[ "How can a photon have no mass and still travel at the speed of light?", "Cleaning Circuits with Compressed Air I've been arguing with a colleague whether it is a sensible solution to clean dusty PCBs with compressed air. While I think this is the best solution (nothing touches the PCB), he claimed that spraying off the dust can cause ESD, because the charges that may have accumulated in the dust win't bleed off in the process (and it's better to leave everything as it is). I'm not really convinced by this argument and my (limited) knowledge of ESD production doesn't help getting peace of mind in this matter. What is your input?", "How to set up RAID 1?", "Access images inside jar", "Atmospheric pressure experiment using a cup with a fluid to hold a glass plate When I was in high school, my teacher did an experiment to show the power of atmospheric pressure. Experiment: Prepare a glass bottle, fill with water, put a glass plate on the bottle, make sure there is no air in the bottle, just water. Hold the glass bottle and plate, and invert them. Slowly, release the hand which hold the plate. Because the atmospheric pressure, the glass plate will not fall down. Question 1: As we know, if we didn't put water into the glass bottle, just air in the glass bottle the glass plate will fall down. So, If we use other liquid instead of water, this liquid has smaller density than water, like alcohol, the plate will not fall down. But, if we continue to chose the smaller density liquid until the liquid has density like air the plate will fall down. So, if there is a threshold density of liquid make the plate between falling down and not falling down? Question 2: If we put the bottle and plate into water slowly, when the plate and part of bottle are in the water but part of the bottle still above the water, will the plate fall down? Question 3: Continuing question 2, when both bottle and plate are in the water I know the plate will fall down. So, how does the pressure of water and atmosphere change? Is there a good description of this phenomena? Why does the trick continue to work with lower density fluids and why does placing the plate in the water cause it to fall?", "Gummy residue from baking spray/oil I'm sure everyone's seen this - that brownish stuff left behind when you grease an area of a baking dish that gets left exposed to the heat. Soap doesn't bother it too much, and it likes to gum up my scrubber. What's going on there, and are there any easy ways to get it off?", "Should I use a categorical cross-entropy or binary cross-entropy loss for binary predictions? First of all, I realized if I need to perform binary predictions, I have to create at least two classes through performing a one-hot-encoding. Is this correct? However, is binary cross-entropy only for predictions with only one class? If I were to use a categorical cross-entropy loss, which is typically found in most libraries (like TensorFlow), would there be a significant difference? In fact, what are the exact differences between a categorical and binary cross-entropy? I have never seen an implementation of binary cross-entropy in TensorFlow, so I thought perhaps the categorical one works just as fine.", "Installing Ubuntu with Fake RAID 1", "Is there a way to have a 64 bit enum in C++? Whilst refactoring some code I came across bunch of #defines which would be better as an enum, but being greater than 32 bit causes the compiler to error. For some reason I thought the following might work: enum MY_ENUM : unsigned __int64 { LARGE_VALUE = 0x1000000000000000, };", "CSS transition shorthand with multiple properties?", "Sometimes after I fry something, I wash it immediately in water because it's a bit easier to wash (before the remains stick to the pan). Does this damage the pan in any way?", "How do I cash a USD cheque in Europe, quickly? I'll receive a USD cheque shortly. I prefered payment by money transfer, but all attempts to do so - i.e. SWIFT/IBAN, Payoneer, transferwise - failed. Now I will receive a cheque by mail. I contacted my bank and they say that they can cash a cheque for me, given a (prob hefty) fee. The bank employee was so kind to warn me, that in case of a cheque the funds are cashed, but reserved until the legal reimbursement period ends, which apparently is between 3 and 6 months. Is there really no quicker way to receive payments by cheque and have access to the funds quickly?", "How can I do development on my Android device? I have a pretty long commute to work and own an android phone. I figure it would be nice to do some simple programming on the way. I'm not picky on which language to code on. I usually have an internet connection on the train. I've been looking through the android market but haven't found any apps that offer a \"development environment\" or an editor with a compiler. Is any development ON the Android possible? Does an app for this exist?", "C# 4.0 optional out/ref arguments", "What is a decoupling capacitor and how do I know if I need one? What is a decoupling capacitor (or smoothing capacitor as referred to in the link below)? How do I know if I need one and if so, what size and where it needs to go? mentions many chips needing one between VCC and GND; how do I know if a specific chip is one? Would an 4-bit parallel access shift register used with an Arduino need one? (To use my current project as an example) Why or why not? I feel like I'm starting to understand the basics of resistors and some places they're used, what values should be used in said places, etc, and I'd like to understand capacitors at the basic level as well.", "When is a CDATA section necessary within a script tag? Are CDATA tags ever necessary in script tags and if so when? In other words, when and where is this: &lt;script type=\"text/javascript\"&gt; //&lt;![CDATA[ ...code... //]]&gt; &lt;/script&gt; preferable to this: &lt;script type=\"text/javascript\"&gt; ...code... &lt;/script&gt;", "I am looking for a reference which has a self-contained (elementary, that is, at the \"undergraduate algebra level\") proof of the the fact that any one-dimensional Noetherian UFD is a PID. Does anyone know such a reference? (Note: I have looked at the similar questions on this website but don't find them particularly useful).", "How long does it take for badges to be awarded? How are they generated? Do badges get calculated in real time, or do they get calculated by an external service? How long does it take for a badge to be awarded, once its requirements are met? Does Stack Overflow use any external services to do things, like maintenance, e-mailing or badge calculation?", "How do I run wireshark, with root-privileges? A standard installation of Wireshark doesn't give the program permission to access the network interface. I suppose I have to run the program with sudo, but do not know how to add it to the icon - if that's the way to do it.", "Set same icon for all my Forms Is there any way to set the same icon to all my forms without having to change one by one? Something like when you setup GlobalAssemblyInfo for all your projects inside your solution." ]
medi_sts_stackexchange_dupe
Can I move the contents of the boot partition to the root drive?
How to move boot and root partitions to another drive
[ "Is it possible to serialize and deserialize a class in C++?", "Block error on CMI I have two identical sites on Drupal 8 (A and B), on (A) I created a custom block(block/add), and then I export the configuration(drush config-export) and import this config on (B) (drush config-import), no error, but on the site (B) the block that I imported said on any region that I put \"This block is broken or missing. You may be missing content or you might need to enable the original module.\" And I cant edit the content of this block. How I can fix that? Site A: Site B:", "Find $P(n+1)$ for a polynomial P Fix a nonnegative integer $n$. Let $P(x)$ be a polynomial of degree $n$ (over the real numbers) such that for all $k\\in\\left\\{0,1,\\ldots,n\\right\\}$, we have $P(k)=\\dfrac{k}{k+1}$. Find $P(n+1)$. My attempt: I consider a new polynomial $Q(x)=(x+1)P(x)-x$. This $Q$ is a polynomial of degree $\\leq n+1$ satisfying: $Q(k)=0\\quad\\forall k\\in\\{0,1,2,\\ldots,n\\}$. Therefore $Q(x)=\\lambda x(x-1)\\cdots(x-n)$ for a certain real $\\lambda$. Hence, $Q(-1)=\\lambda \\cdot (-1)^{n+1}(n+1)!$, but also $Q(-1)=(-1+1)P(-1)+1=1$. Comparing these, we get $\\lambda \\cdot (-1)^{n+1} (n+1)! = 1$, thus $\\lambda=\\dfrac{(-1)^{n+1}}{(n+1)!}$. Since $Q(n+1)=\\lambda(n+1)!$ then $Q(n+1)=(-1)^{n+1} $, and from $P(x) = \\dfrac{Q(x)+x}{x+1}$ we deduce: $$P(n+1)=\\dfrac{(-1)^{n+1}+n+1}{n+2}.$$ I doubted that the answer were $P(n+1)=\\frac{n+1}{n+2}$ but the term $(-1)^{n+1}$ wasn’t expected. Is there any mistake here? Does someone have an alternative proof?", "Why doesn't a fly fall off the wall?", "Mirror modifier is not working, no mirrored object?", "What is the word for the order of succession in which son assumes the throne after father? It can be any son-younger son after elder son after father. Also, what can be the term for only a single family in power? Please answer.", "Imputing missing observation in multivariate time series", "Bump right-aligned text to next line iff no room", "How to integrate $\\int_0^{\\pi/2}\\frac{\\sin^nx}{\\sin^nx+\\cos^nx}dx$? Possible Duplicate: How can we integrate $$\\int_0^\\frac{\\pi}2\\frac{\\sin^nx}{\\sin^nx+\\cos^nx}\\,\\mathrm dx , \\,\\,\\,\\,\\,\\,\\,\\,\\, n\\in N \\quad?$$ Thanks for any hint.", "How to embed a text file in a .NET assembly? I would like to embed a text file in an assembly so that I can load the text without having to read it from disk, and so that everything I need is contained within the exe. (So that it's more portable) Is there a way to do this? I assume something with the resource files? And if you can, how do you do it and how do you programaticaly load the text into a string?", "Let's say I want a way to display just the the center 50x50px of an image that's 250x250px in HTML. How can I do that. Also, is there a way to do this for css:url() references? I'm aware of clip in CSS, but that seems to only work when used with absolute positioning.", "What is the correct definition and usage of \"for all I know\"? I saw some sentences using this phrase \"for all I know\" but wasn't quite sure what is its exact definition and also whether a modal verb such as \"could, may or might\" expressing uncertainty must be present in the sentence. The following are some possible definitions: According to the information I have; I think; probably. (usually implies uncertainty) Based on what I know (usually expressing displeasure) As far as I know (used to show indifference) I really don't know (used to show complete ignorance) And these are statements containing the phrase: For all I know, the mayor has resigned already. She may have gone to town for all I know. He wears a ring, but he may be single, for all I know. For all I know, there may be someone with you now. The man I met on the beach yesterday seemed friendly, but he could be a thief, for all I know. For all I know, the girl was buried alive in the Arabian sands. They've decided to hire Jack for all I know. References: What does the phrase \"for all I know\" mean exactly?", "Injecting variables into an import namespace", "wanted to get end date for Current Fiscal Quarter in apex any ideas, how to get this information.", "How do I concatenate JavaScript files into one file?", "What is the correct formula for gravitational time dilation for a satellite in a circular orbit?", "What is an \"index out of range\" exception, and how do I fix it?", "I was browsing PhD position offers in Europe on different websites and I was quite surprised to find that several offers contained sentences such as University of X value equality and diversity. We strongly encourage women and BAME applicants for this position. where BAME stands for Black, Asian and Minority Ethnicities; or The research group aims to increase the number of women in scientific positions. Female candidates are therefore encouraged to apply. Is it considered normal in the academic environment to discriminate between candidates according to their race and/or gender for \"egalitarian\" reasons? How is the choice of a candidate based on their gender and/or race considered \"egalitarian\"?", "UV coordinates on a deformed plane I added a plane to a scene, subdivided it, and deformed it with proportional editing: I'd like to UV unwrap this plane, making the mapping what the would have been without the edit mode deformations. In other words, I'd like my UV map to look like a square grid. Is it possible to UV map this deformed plane to a square grid? Or do I need to start from scratch, and make sure I unwrap it before I do the edits?", "Calculating a spherical polygon centroid" ]
medi_sts_stackexchange_dupe
Defining a Function inside of main()
Are nested functions a bad thing in gcc ?
[ "My Windows folder takes up too much space - how can I reduce it? In typical PCs the Size of Windows Folder is 6 to 8 GB but in my Case its 25GB. How can I delete the unwanted files from the Windows Folder (which, in turn, will optimize my C Drive size). My system is Windows 7 with 60 GB in C Drive with 59 GB occupied.", "Let f:G to H be 1-1 homomorphism show that order of f(a) divides the order of G. Let $f:G \\to H$ be an injective homomorphism. Show that order of $f(a) \\in H$ divides the order of G. Let the order of $|G|=n$. I'm not sure where to go from here. I've seen examples showing it divides an element $g$ but not $G$.", "How to fix \"Notification access is not available\" on Android Go?", "How to loop through all the properties of a class? I have a class. Public Class Foo Private _Name As String Public Property Name() As String Get Return _Name End Get Set(ByVal value As String) _Name = value End Set End Property Private _Age As String Public Property Age() As String Get Return _Age End Get Set(ByVal value As String) _Age = value End Set End Property Private _ContactNumber As String Public Property ContactNumber() As String Get Return _ContactNumber End Get Set(ByVal value As String) _ContactNumber = value End Set End Property End Class I want to loop through the properties of the above class. eg; Public Sub DisplayAll(ByVal Someobject As Foo) For Each _Property As something In Someobject.Properties Console.WriteLine(_Property.Name &amp; \"=\" &amp; _Property.value) Next End Sub", "When you click on the Opportunities tab, (assuming you haven't modified standard salesforce layout), you see a \"Recent Opportunities\" list. At the top of the list, there is a \"New\" button. Is there a way to hide the \"New\" button displayed on this page? I have tried disabling the button on the \"Opportunity List View\" Search Layout[Setup -> App Setup -> Opportunities -> Search Layouts], but it does not remove the button from this particular view.", "I'd like to generate unique random numbers between 0 and 1000 that never repeat (i.e. 6 doesn't show up twice), but that doesn't resort to something like an O(N) search of previous values to do it. Is this possible?", "Subsubsection: remove the newline (like paragraph) Using the article document class, how can one remove the newline at the end of a subsubsection title? I am using \\documentclass{article}; I do not currently use titlesec or any of the alternatives; I do use fancyhdr.", "yum install error I can't run a yum command on my server without getting this: CRITICAL:yum.cli:Config Error: Error accessing file for config file:///etc/yum.conf This is what my yum.conf looks like: # This is the fedorafaq.org yum.conf for Fedora Core 5. # # Note that you also need the rest of the configuration # as described at http://www.fedorafaq.org/#yumconf [main] cachedir=/var/cache/yum keepcache=0 debuglevel=2 logfile=/var/log/yum.log exactarch=1 obsoletes=1 gpgcheck=1 plugins=1 metadata_expire=1800 # PUT YOUR REPOS HERE OR IN separate files named file.repo # in /etc/yum.repos.d This is what my yum.repos.d looks like: fedora.repo fedora-updates.repo fedora-updates-testing.repo The permissions on those files are 0666 and it won't allow me to make them root:root", "In the movie Harry Potter and the Goblet of Fire, there's a scene where the students are preparing for the Yule Ball. Professor McGonagall is instructing the boys and girls, while Filch is choosing a vinyl record to place in an enormous turntable phonograph with a horn as big as Hagrid. This has me wondering if the wizarding world, in general, plays vinyl records. Or, if this was just a Muggle artifact that Hogwarts kept as a novelty. Are there other instances of witches or wizards using or owning phonographs or record players in either the books or movies? If so, what are they? (Examples help to illustrate if this was a one-off or a trend)", "Trying to use \"Difference\" tool gives out \"'QgsWKBTypes' is not defined\" error I am trying to separate two overlapping vector layers and find out the difference in QGIS 2.18. I have tried finding difference with layers with points and also with buffers. Both of them give following error: global name 'QgsWKBTypes' is not defined See log for more details I have searched the web for this but can't seem to find a solution.", "Doubt related to a theorem in congruences of Chapter 5 of Apostol Introduction to analytic number theory I am self studying number theory from Introduction to Analytic number theory by Apostol. I have a doubt in one argument of proof of Theorem 5.14 and I am posting its image. My doubt is in 2nd line of 2 nd paragraph how Apostol writes - If y is a solution of (5) then ay $\\equiv $ at ( mod m) . How does y being a solution of (5) implies that? Can someone please help", "I have a question on Holder space.Is the space $C^2(\\mathbb{R}^n)$ embedded in $C^{1,\\alpha}(\\mathbb{R}^n)$? I think in the bounded domain case, this should be true. But what if in the case where the domain is not bounded? Thanks for any hint!", "What are Harry, Ginny, Ron and Hermione's professions? After the end of the Second Wizarding War Harry Potter later married Ginny Weasley, and the couple had three children of their own: two sons James Sirius, Albus Severus, and one daughter Lily Luna. What are Harry and Ginny's professions? I heard that Harry became an Auror, but what about Ginny, Ron, and Hermione?", "I have a dictionary: keys are strings, values are integers. Example: stats = {'a':1000, 'b':3000, 'c': 100} I'd like to get 'b' as an answer, since it's the key with a higher value. I did the following, using an intermediate list with reversed key-value tuples: inverse = [(value, key) for key, value in stats.items()] print max(inverse)[1] Is that one the better (or even more elegant) approach?", "Comparison of backup tools", "Given two separate annulus with centers $[C_1,C_2]$ and their corresponding radii being $[R_1,r_1]$ and $[R_2,r_2]$ respectively, larger radius being $R$. There are methods to look at whether they are overlapping or not. If they overlap how to find the overlapping area. Is there any close form expression for it? equation of first annulus $r_1^2&lt;(x-x_{c1})^2 + (y-y_{c1})^2 &lt;R_1^2$ equation of second annulus $r_2^2&lt;(x-x_{c2})^2 + (y-y_{c2})^2 &lt;R_2^2$ If there are three circles overlapping, we get overlapping area as solution to set of 4 in-equations by least squares approach(Though we don't end up getting total area but, area within tangents of circles ).", "Am I able to change my GPA once I submit a graduate school application?", "I have Ubuntu on my MacBook 2007 with a Spanish keyboard, on MacOS the @-sign was typed using Alt (Option) + 2, but on Ubuntu I have no idea. I have to copy and paste it every time. How do I type an at sign?", "By Cauchy's theorem, if a prime number $p$ divides the order of a group $G$, then there is an element $g$ in $G$ whose order is $p$. In addition, if $|G|$ admits a prime decomposition with a factor $p^k$, then Sylow's theorem tells us that a subgroup of order $p^k$ must exist. My question is the following. If $|G|$ admits a prime decomposition with a factor $p^k$, does this imply that an element of order $p^k$ must exist in $G$? Update: As explained in Mindlack's answer (among others), the implication does not hold and simple counterexamples exist. In the comments, Mindlack discusses special cases where such an element exists.", "How do I SSH to machine A via B in one command?" ]
medi_sts_stackexchange_dupe
Winforms ComboBox autocomplete search multiple parts of string
C# AutoComplete
[ "Since the version of the word \"that\" might matter to the correct answer, I'll provide the actual title in question: Title: Existing Solutions that Didn't Work If someone could explain the why of the answer, I would be appreciative. EDIT: It has been suggested that this is a duplicate, and that may be, in a sense. However, the after reading the suggested prior question, I'm no closer to my answer. I think it may have to do with my use of the word \"that.\" Perhaps it is incorrect? Using these definitions of the word \"that:\" I'm having trouble figuring out which definition of that matches my title. Am I even using it correctly? Perhaps I should use which instead: Possible Title: Existing Solutions which Didn't Work If my original usage is incorrect, and I should use which, then the answer is simple since which is always a pronoun or adjective, and those are both capitalized in a title. However, I'm having difficulty understanding which part of speech that is in my original title.", "Possible Duplicate: Can anyone offer me advice on how to clean my camera's sensor? Should I do this myself, or take the camera to a professional? Is it precarious, or easy with the right amount of care? I have a Nikon D3000 that has a small dot off-center of the sensor. I believe it is dirt, and I would like to remove it. I'm tempted to use a cotton-bud, but I'm afraid that I might damage the sensor. The dot appeared after a trip to a tropical area where the camera became wet. I took the lens off and a lot of moisture, and possibly some dirt, went into the camera. The lens became fogged-up. When I returned from my trip I ran a hair dryer for (air only, without heat) 10 minutes through the battery compartment, believing this would circulate around and dry the camera. Consequently, I noticed many speckled dots around the sensor. I also believe there's a subtle but persistent haze when I look through the lens, but I could be wrong. It's worth noting that the photos are fine, with no evidence of distortion or blurring. The camera is now dry and it's been months since this happened. But the dot on the sensor has been there since, like an itch I can't rub.", "What to do when the correct answer to a question changes over time? My question concerns . I asked the question, and at the time selected the correct answer. However, time passes and libraries get updated, and now a different answer is actually correct. I should probably select this new answer as the correct answer, but I feel bad for the person that will lose 15 reputation points even though is answer was the a good answer at that given point in time. Any suggestions?", "(Built-in) way in JavaScript to check if a string is a valid number", "Blade of the Ruined King Vs. The Bloodthirster Effects: +25 attack damage +15% life steal +40% attack speed Passive Unique: Your attacks deal 5% of the target's current health in physical damage (60 max vs minions and monsters). Active Unique: Drains target champion, dealing 15% of the champion's maximum Health in physical damage and healing you by the same amount. Additionally you steal 30% of their movement speed for 4 seconds - 60 second cooldown. (500 range) Cost: 3200g VS. Effects: +70 attack damage +12% life steal Passive: Gain +1 attack damage and +0.2% life steal per kill (maximum +30 attack damage and +6% life steal). Half of the bonuses are lost upon death. Cost: 3200g What is better for what situations, and when should you build BT instead of BotRK and Vice Versa. Which provides more lifesteal, the only variable being the stats of the weapon? I find myself constantly questioning my decision on which weapon to get and would really love some in depth answers. Would be great if any examples given were given from the ADC side of the house.", "Adding my launcher to the Unity Launcher automatically. How?", "Simple logic problem: Finding largest and smallest number among 3 numbers", "I have a 3-wire that looks like this: I'm trying to wire it up to my Arduino to detect changes in weight. From what I understand, the changes in voltage are so small that the Arduino can't detect the changes without amplifying the voltage. So I bought an at that looks something this: I found that shows how to wire everything up. However, I can't figure out the schematic and why they are using two load sensors instead of just one. They also mention resistors but I'm not sure why they are using them (and why the sizes they chose), or where in the circuit to put them. Can someone please help me figure out how to wire this thing up to detect changes in voltage? Also, is there a way to do this by using only one of these sensors? This is what I've done so far: The amp also has some pins that I don't understand: Offset null, NC. What are these pins for? Should I be using them? Update: Now I am working with an Instrumentation Amplifier (). I also now have a 4-wire load sensor that I am playing with. Still can't get it to work, but I thought I would try to understand that before moving to the 3-wire load sensor.", "Proper use of the IDisposable interface", "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 do you integrate $\\int \\frac{1}{a + \\cos x} dx$? How do you integrate $\\int \\frac{1}{a + \\cos x} dx$? Is it solvable by elementary methods? I was trying to do it while incorrectly solving a homework problem but I couldn't find the answer. Thanks!", "What is the word for when someone is overly nice and actually isn't nice at all because of the unnecessary added information/comments? For example, they will say things like \"Your hair looks so good that wayyyy omg you should do it that way ALL the time! Looks way better than how you usually do it.\" And the word I'm looking for is not passive aggressive and it is not sarcasm. There is a word for these types of people. What is it? These people think they're being kind but actually blunt and rude. Another example would be for someone to say \"hey you're beautiful, but maybe if you didn't wear harsh makeup you would look better\" and they intend to sound like they're being nice when you know they don't like you and are saying in out of spite.", "Suppose $X, Y$ are independent random variables with $X\\sim NB(r,p)$ and $Y\\sim NB(s,p)$. Then $$X + Y \\sim NB(r+s,p)$$ How do I go about proving this? I'm not sure where to begin, I'd be glad for any hint.", "Does encrypting my home folder make my computer more secure? Do I have to enter my password more if my home folder is encrypted? What else should I know about encrypting my home folder?", "How to run xrandr commands at startup in Ubuntu How can I run the following xrandrcommand on startup? xrandr cvt 1368 768 xrandr --newmode \"1368x768_60.00\" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync xrandr --addmode VGA1 1368x768_60.00 xrandr --output VGA1 --mode 1368x768_60.00", "How can I change the colors of lightning-button? I tried doing this in my css: .my-button { background-color: #14a6bc; color: #ffffff; } and applying that class to my &lt;lightning-button&gt; and removing the variant but I still get the base colors? I am trying to use these examples:", "I've posted a lot to StackOverflow, and I've noticed something kind of irritating with the formatting in writing questions and comments. If I need to put something inside a &lt; and a >, without spaces in the middle (like right there), it will think it's code and not show up, like this (obviously it won't come up what I wrote there, or else this wouldn't be an issue, but if you open up the question to edit you can see what's written there.) If I want it to show up, right now I have to add an extra set of brackets inside of the originals with a junk variable, like right &lt;here> (again, open in edit window to see). This is really annoying when trying to show variables like lists that require those brackets, and I feel like the junk variables could confuse people looking at the edits. Is there a way to get around this formatting? Thanks!", "How to find regression coefficients $\\beta$ in ridge regression? In ridge regression, the objective function to be minimized is: $$\\text{RSS}+\\lambda \\sum\\beta_j^2.$$ Can this be optimized using the Lagrange multiplier method? Or is it straight differentiation?", "Pointer to class data member \"::*\" I came across this strange code snippet which compiles fine: class Car { public: int speed; }; int main() { int Car::*pSpeed = &amp;Car::speed; return 0; } Why does C++ have this pointer to a non-static data member of a class? What is the use of this strange pointer in real code?", "In university last semester I was asked to prove that $\\sin1$ (1 radian that is) is irrational, and ended up simply using the Taylor Series Expansion. This method provides a very quick solution, but I am curious as to whether anyone has a method for proving this without making use of the Taylor Series Expansion. I feel as though doing so must be possible using some number theory, but am low on ideas as to an alternative approach to the question. Note: If anyone is interested in my solution using Taylor Series Expansion (although it is not the focus of my question), here it is : From $$ \\sin x = x - \\frac{x^3}{3!} + \\frac{x^5}{5!} - \\dots$$ We see that $$ \\alpha = \\sin 1 = 1 - \\frac{1^3}{3!} + \\frac{1^5}{5!} - \\dots $$ Given integers $a$ and $b$, if $\\alpha = \\frac{a}{b}$ then it follows that $b!\\alpha \\in \\mathbb{Z}$, and $b!\\alpha = C + D$ where $C \\in \\mathbb{Z}$ and we have : $$ D = \\begin{cases} \\pm(\\frac{1}{b+1} - \\frac{1}{(b+1)(b+2)(b+3)} + \\dots) \\text{ if $b$ is even}\\\\ \\pm(\\frac{1}{(b+1)(b+2)} - \\frac{1}{(b+1)\\dots(b+4)} + \\dots ) \\text{ if $b$ is odd}\\\\ \\end{cases} $$ In each case we can see that $0 &lt; D &lt; 1$, giving us a contradiction. Thus, we have that $\\sin 1 $ is irrational. $$ \\blacksquare $$" ]
medi_sts_stackexchange_dupe
Conclude the number of elements in $H$ divides the number of elements in $G$.
Intuition behind why order of a subgroup divides order of a group.
[ "A regular expression to exclude a word/string", "How do i know which wheels will fit my bike? my bike is: and everything I have came with the bike, only now the axle of the rear wheel bent and the skewer has lost its grooves. and I would like to replace the rear wheel with the 12 x 142mm version of: I want to reuse the old casettes and disc break. I was told to buy new rotor bolts, will these do? Will I be able to migrate all my previous parts onto this new wheel and will the wheel fit onto my bike? update: A replacement axle would be prefered. What axle would work for my bike?", "Bootable USB of Ubuntu Minimal CD I want to burn Ubuntu Minimal CD ISO to an old, 1 GB USB thumbdrive. Regular ISO doesn't fit. I already tried Startup Disk Creator and Unetbootin but both failed. I tried installing GRUB and pointing it to boot like this: insmod part_msdos linux /linux initrd /initrd.gz but it doesn't work. I also tried dd but I ended up with not bootable drive. Rufus worked on Windows with the same thumbdrive but I no longer use Windows. What else can I do?", "Why are these numbers not equal?", "has been solved, in XeTeX, by this code: \\def\\kright#1{\\leavevmode #1\\kern-\\XeTeXglyphbounds3 \\the\\XeTeXcharglyph`#1 } \\def\\kleft#1{\\leavevmode \\kern-\\XeTeXglyphbounds1 \\the\\XeTeXcharglyph`#1 #1} which allows me to align text more precisely to the ink by accessing the side-bearing measurements (\\XeTeXglyphbounds1 and 3). This XeTeX dependency is currently the only thing stopping me from moving to LuaTeX (mainly for microtype). Is an equivalent function available in LuaTeX, or planned? After reading a bit more on microtype, could the equivalent effect be achieved by an appropriately-tailored set of character protrusions? That way, my move to LuaTeX might be a lot simpler.", "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?", "When playing as a spellcaster, is it valid the use of the Ready action to prepare Dispel Magic to counter a spell cast by an opponent? In the same vein, when declaring said action, do I have to specify which spell slot I will use when Readying the Dispel Magic spell? If that is the case, does this tactic nullify an opponent's spell? I get the impression that this is basically turning Dispel Magic into a spell with a casting time of &quot;1 reaction&quot;. Is my reading of the rules accurate?", "Genes and Intelligence Assuming that intelligence has a genetic component, • do we know which genes contribute to it? and, if so, • can we predict intelligence from genomic analysis?", "What happens when ability scores reach 0? D&amp;D 5E does not seem to have rules for ability score damage (that I could find), although it does mention that if CON is decreased, your maximum HP is reduced. In addition, the Shadow monster in the Monster Manual has a Strength Drain attack that deals 2 Strength damage. The attack says that if a character's Strength reaches 0, the character dies. Are there any general rules for ability damage in 5th Edition?", "How can I find out which process is locking a file or folder in Windows? For instance, when trying to delete a folder, Windows reports this: The action can't be completed because the folder is open in another program Happens the same with a file, but how do I find out what program or application is currently using it and preventing me from deleting the file or folder?", "Extending an enum via inheritance I know this rather goes against the idea of enums, but is it possible to extend enums in C#/Java? I mean \"extend\" in both the sense of adding new values to an enum, but also in the OO sense of inheriting from an existing enum. I assume it's not possible in Java, as it only got them fairly recently (Java 5?). C# seems more forgiving of people that want to do crazy things, though, so I thought it might be possible some way. Presumably it could be hacked up via reflection (not that you'd every actually use that method)? I'm not necessarily interested in implementing any given method, it just provoked my curiosity when it occurred to me :-)", "Is list::size() really O(n)? Recently, I noticed some people mentioning that std::list::size() has a linear complexity. According to , this is in fact implementation dependent as the standard doesn't say what the complexity has to be. The comment says: Actually, it depends on which STL you are using. Microsoft Visual Studio V6 implements size() as {return (_Size); } whereas gcc (at least in versions 3.3.2 and 4.1.0) do it as { return std::distance(begin(), end()); } The first has constant speed, the second has o(N) speed So my guess is that for the VC++ crowd size() has constant complexity as Dinkumware probably won't have changed that fact since VC6. Am I right there? What does it look like currently in gcc? If it is really O(n), why did the developers choose to do so?", "I have a class like this: public class myClass { public List&lt;myOtherClass&gt; anewlist = new List&lt;myOtherClass&gt;; public void addToList(myOtherClass tmp) { anewList.Add(tmp); } } So I call \"addToList\" a hundred times, each adding a unique item to the list. I've tested my items to show that before I run the \"addToList\" method, they are unique. I even put a line in to test \"tmp\" to make sure it was what I was expecting. However, when I do this (lets say myClass object is called tmpClass): int i = tmpClass.anewList.Count(); for (int j = 0; j&lt;i; j++) { //write out each member of the list based on index j... } I get the same exact item, and it's the last one that was written into my list. It's as if when I add, I'm overwriting the entire list with the last item I've added. Help? This makes no sense. I've also tried List.Insert, where I'm always inserting at the end or at index 0. Still no dice. Yes, I'm doubly source my indexing is correct and when I do my test I'm indexing through each of the elements. :) UPDATE: Okay, I tried this and still had the same problem: foreach(myOtherClass tmpC in tmpClass.anewList) { Console.WriteLine(tmpC.theStringInMyClass.ToString()); } and still for each of the 100 items, I got the same string output... I'm sure I'm doing something completely stupid, but I don't know what yet. I'm still 100% sure that the right string is getting passed in to begin with. -Adeena Okay, I tried this and still had the same problem: foreach(myOtherClass tmpC in tmpClass.anewList) { Console.WriteLine(tmpC.theStringInMyClass.ToString()); } and still for each of the 100 items, I got the same string output... I'm sure I'm doing something completely stupid, but I don't know what yet. I'm still 100% sure that the right string is getting passed in to begin with. -Adeena", "What is the definition of a \"feature map\" (aka \"activation map\") in a convolutional neural network? Intro Background Within a convolutional neural network, we usually have a general structure / flow that looks like this: input image (i.e. a 2D vector x) (1st Convolutional layer (Conv1) starts here...) convolve a set of filters (w1) along the 2D image (i.e. do the z1 = w1*x + b1 dot product multiplications), where z1 is 3D, and b1 is biases. apply an activation function (e.g. ReLu) to make z1 non-linear (e.g. a1 = ReLu(z1)), where a1 is 3D. (2nd Convolutional layer (Conv2) starts here...) convolve a set of filters along the newly computed activations (i.e. do the z2 = w2*a1 + b2 dot product multiplications), where z2 is 3D, and and b2 is biases. apply an activation function (e.g. ReLu) to make z2 non-linear (e.g. a2 = ReLu(z2)), where a2 is 3D.  The Question The definition of the term &quot;feature map&quot; seems to vary from literature to literature. Concretely: For the 1st convolutional layer, does &quot;feature map&quot; corresponds to the input vector x, or the output dot product z1, or the output activations a1, or the &quot;process&quot; converting x to a1, or something else? Similarly, for the 2nd convolutional layer, does &quot;feature map&quot; corresponds to the input activations a1, or the output dot product z2, or the output activation a2, or the &quot;process&quot; converting a1 to a2, or something else? In addition, is it true that the term &quot;feature map&quot; is exactly the same as &quot;activation map&quot;? (or do they actually mean two different thing?)  Additional references: Snippets from : *The nomenclature is being used loosely here. In particular, I'm using &quot;feature map&quot; to mean not the function computed by the convolutional layer, but rather the activation of the hidden neurons output from the layer. This kind of mild abuse of nomenclature is pretty common in the research literature. Snippets from : In this paper we introduce a visualization technique that reveals the input stimuli that excite individual feature maps at any layer in the model. [...] Our approach, by contrast, provides a non-parametric view of invariance, showing which patterns from the training set activate the feature map. [...] a local contrast operation that normalizes the responses across feature maps. [...] To examine a given convnet activation, we set all other activations in the layer to zero and pass the feature maps as input to the attached deconvnet layer. [...] The convnet uses relu non-linearities, which rectify the feature maps thus ensuring the feature maps are always positive. [...] The convnet uses learned filters to convolve the feature maps from the previous layer. [...] Fig. 6, these visualizations are accurate representations of the input pattern that stimulates the given feature map in the model [...] when the parts of the original input image corresponding to the pattern are occluded, we see a distinct drop in activity within the feature map. [...] Remarks: also introduces the term &quot;feature map&quot; and &quot;rectified feature map&quot; in Fig 1. Snippets from : [...] One dangerous pitfall that can be easily noticed with this visualization is that some activation maps may be all zero for many different inputs, which can indicate dead filters, and can be a symptom of high learning rates [...] Typical-looking activations on the first CONV layer (left), and the 5th CONV layer (right) of a trained AlexNet looking at a picture of a cat. Every box shows an activation map corresponding to some filter. Notice that the activations are sparse (most values are zero, in this visualization shown in black) and mostly local. Snippets from [...] Every unique location on the input volume produces a number. After sliding the filter over all the locations, you will find out that what you’re left with is a 28 x 28 x 1 array of numbers, which we call an activation map or feature map.", "How do I copy a folder keeping owners and permissions intact? So I was going to back up my home folder by copying it to an external drive as follows: sudo cp -r /home/my_home /media/backup/my_home With the result that all folders on the external drives are now owned by root:root. How can I have cp keep the ownership and permissions from the original?", "All I want to see are the specs Is there a way to see the processor and speed of a Cisco UCS B230 Blade Server without the enclosure that runs it? The enclosure that we have does not power on and all I need is to see what cpu and processor speed is in it.", "Why don't the Ubuntu repositories have the latest versions of software? Why are packages in the official Ubuntu repositories older than the latest (upstream) versions from Debian Sid, PPAs, the authors, etc.?", "Is $\\mathbb{Z}[\\sqrt{-7}]$ a UFD or not? Is $\\mathbb{Z}[\\sqrt{-7}]$ a UFD or not? I feel like there should be some easy example showing that it is not, but I can not think of one.", "Implement MicroController Power Switch and re-use the button for other features This is similar to other questions, but I feel it is different because of the reuse of the \"power\" button. I want a \"latching\" Momentary Power button. Behavior: User Pushes momentary button, holds down as long as necessary and the device powers up. Between Power On and Off the same button will be re-used for other functions When it is held down for 5 +/- seconds the MicroController will turn itself off. Design Constraints: Battery provides between 3.7V to 2.9V during it's usable life The Voltage regulator requires Vin +/- 0.3V on the Enable Pin, 3.1V output. MicroController operates at 3.1V MicroController Output Pin High state is 2.7V Max Debouncing: In this case I'm not concerned about debouncing the switch, if the user doesn't hold it down long enough for the MicroController to set it's Digital Output pin High the device doesn't power on. I've worked up the following schematic, which kind of works. It assumes 3.7V from the battery. Uses an Analog Input for the Power button, which then uses the variation in voltage to determine if the button has been pressed. In the current design the difference is 0.12 V (from 3.4 to 3.52), but the MicroController has a 12 bit ADC so that shouldn't be a problem, in addition I can adjust the sensitivity range of the ADC. Questions: What is the difference between reality and the simulator? Is there a better way? How can I get a greater voltage difference on the button input? I've tried many different combinations but they increase the voltage range above the 3.6V Input High Maximum specified in the datasheet. I'm not excited about the \"Leakage current\" when the uC Controlled Power Pin is Low, any suggestions? Thank you for any ideas/suggestions/answers.", "Travelling as unmarried couple in Dubai I'd wish to visit Dubai with my girlfriend, but after reading and I started to get a little worried about it. How should I book an hotel? Must I book two singles? Could it be a problem if we walk together in the city and go together to restaurants and malls without being married?" ]
medi_sts_stackexchange_dupe
Rename user account on Windows 7 Home
How do I change a user name in Windows 7?
[ "I am having a lot of trouble with these series questions. Up until this point, I had relatively little trouble with all the questions in the book. These seem to require knowledge about approximations of functions and other external experience-based knowledge, which I just don't have yet. Determine convergence or divergence of the given series. In the case of convergence, determine whether the series converges absolutely or conditionally. $$\\sum_{n=1}^\\infty (-1)^n\\left[e-\\left(1+\\frac 1 n \\right)^n\\right]$$ It's easy to see that $$\\lim_{n\\to\\infty}\\left[e-\\left(1+\\frac 1 n\\right)^n\\right]=0$$ however, in order to apply Leibniz's Rule and show conditional convergence I need to show that the sequence is monotonically decreasing. This doesn't seem doable with straight inequalities, so I tried taking the derivative, which just resulted in an uninterpretable mess. This doesn't even begin to address the question of absolute convergence/divergence. There are 54 of these questions... I must be missing something really fundamental if they all take this long.", "Is it always better to use the whole dataset to train the final model? A common technique after training, validating and testing the Machine Learning model of preference is to use the complete dataset, including the testing subset, to train a final model to deploy it on, e.g. a product. My question is: Is it always for the best to do so? What if the performance actually deteriorates? For example, let us assume a case where the model scores around 65% in classifying the testing subset. This could mean that either the model is trained insufficiently OR that the testing subset consists of outliers. In the latter case, training the final model with them would decrease its performance and you find out only after deploying it. Re-phrasing my initial question: If you had a one-time demonstration of a model, such as deploying it on embedded electronics on-board an expensive rocket experiment, would you trust a model that has been re-trained with the test subset in the final step without being re-tested on its new performance?", "Calculate relative time in C# Given a specific DateTime value, how do I display relative time, like: 2 hours ago 3 days ago a month ago", "Probability of Obtaining the Roots in a Quadratic Equation by Throwing a Die Three Times", "relation between $R^2$ of simple regression and multiple regression A very basic question concerning the $R^2$ of OLS regressions run OLS regression y ~ x1, we have an $R^2$, say 0.3 run OLS regression y ~ x2, we have another $R^2$, say 0.4 now we run a regression y ~ x1 + x2, what value can this regression's R squared be? I think it's clear the $R^2$ for the multiple regression should be no less than 0.4, but is it possible for it to be more than 0.7?", "Why does Linux show both more and less memory than I physically have installed?", "Different methods to compute $\\sum\\limits_{k=1}^\\infty \\frac{1}{k^2}$ (Basel problem) As I have heard people did not trust Euler when he first discovered the formula (solution of the ) $$\\zeta(2)=\\sum_{k=1}^\\infty \\frac{1}{k^2}=\\frac{\\pi^2}{6}.$$ However, Euler was Euler and he gave other proofs. I believe many of you know some nice proofs of this, can you please share it with us?", "After I read that companions don't drain the fusion core of a Power Armor when wearing it, I decided to try giving my armor to Nick so I'll always have it close by if I need it. But I was wondering if there are any other drawbacks to that. For example, does the Armor get damaged or destroyed when the companion is under fire?", "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.", "I'm wondering about the period character . used as a shortcut for the local computer name. You can use it when logging into Windows 7, for example, to specify that the user account you're entering belongs to the local computer rather than to a domain: .\\MyLocalUserAccount And you can use it within a Windows Management Instrumentation (WMI) query to indicate that the target is the local computer rather than a remote computer. You can also use it when working with named pipes to for similar purposes. However, you cannot use it as the UNC network name for the computer, like this: \\\\.\\MyShare Does this character have an official name (e.g. \"LocalHostToken\") and when and where can it be used for this purpose?", "How does HOTP keep in sync?", "creating a csv file from two csv files I have two csv files: sub_compiler.to_csv('sub_compiler.csv') sub_compiler.head() and sub_opt = pd.read_csv('sub_opt.csv') sub_opt.head() and what I would like to do is to create a csv file where I have something of the form compiler, opt How could I do this? I need to do this to make a submission. Thank's in advance. [EDIT] Thank you for the answers. Now I have obtained : don't understand why I have the columns called unnamed. My objective is to get a csv file that contains only the columns compiler and opt. How could I do this? Thank's again. [EDIT 2] I have solved my problem but if I open the csv file manually, so just click on the file, I have the following: s it contains only 11 lines, but it contains 3000 lines in jupyter. Is it there something wrong? [EDIT 3] I tried to to the following: import pandas as pd test = pd.read_csv('1495927.csv') test and I have: where 1495927.csv is the csv file I have created and that is in the image where I have 11 elements.", "Does math have an incorrect notation / syntax? I don't mean writing misaligned notation (google), but when you take something like a number to powers to powers to powers, $${{2^2}^2}^3$$ (I was told this is incorrect notation by a teacher). Is it really incorrect, or does it just need to be simplified with parentheses? Do people write maths like this? a radical expression with the root being a radical expression? $$\\sqrt[\\sqrt{2^3}]{2}$$", "I just installed Dufour on my Windows 7 Lenovo ThinkCentre desktop. When I open 2.0.1 I get this error window: And when I try to add the 'Add Delimited Text Layer' plugin I get this message: When I click 'OK' the program closes. Any help is greatly appreciated - thanks.", "Efficient computation of $\\sum_{k=1}^n \\left\\lfloor \\frac{n}{k}\\right\\rfloor$ I realize that there is probably not a closed form, but is there an efficient way to calculate the following expression? $$\\sum_{k=1}^n \\left\\lfloor \\frac{n}{k}\\right\\rfloor$$ I've noticed $$\\sum_{k=1}^n \\left\\lfloor \\frac{n}{k}\\right\\rfloor = \\left\\lfloor\\frac{1}{2}\\sum_{k=1}^{\\left\\lfloor\\frac{n}{2}\\right\\rfloor} \\left\\lfloor\\frac{n}{k}\\right\\rfloor\\right\\rfloor + \\sum_{k=1,\\ odd(k)}^n \\left\\lfloor \\frac{n}{k}\\right\\rfloor$$ But I can't see an easy way to let the second term enter in a recursion.", "How to show that the commutator subgroup is a normal subgroup It is suggested as an exercise in Serge Lang's book \"Algebra\" to show that the commutator subgroup $G^c$ of a group $G$ is a normal subgroup. I'd like to do that but I am afraid I need help, I think the first thing I need to figure out is how a general element in the commutator subgroup looks like, so that I can check that the defining condition for normality is satisfied. That is, supposing for a moment that a general element in $G^c$ is denoted by $g$, I need to show that $aga^{-1} \\in G^c,$ for all $a \\in G$. But here I get stuck, first because I am unsure how to write a general element in $G^c$ - a simple product in $G^c$ is of the form $xyx^{-1}y^{-1}aba^{-1}b^{-1}$ where $a,b \\in G$. I cannot see a way to simplify this - I am sure there is one, but somehow I am blind today. The second thing then is, even if one tries out the conjugation of a simple element like $xyx^{-1}y^{-1}$ in $G^c$, again not simplification offers itself easily I think .. what am I missing ? An alternative would be to find a homomorphism of $G$ whose kernel is precisely $G^c$ - here I tried to think of this as a map $G \\times G \\to G$ but whatever I cook up is not a homomorphism. Thanks for your hints !!", "Remotely changing hard drive boot order, windows 7", "Do companies have IT \"spyware\" on corporate iPhones?", "How to detect end of line with sed I'm looking for a way to only execute replacement when the last character is a newline, using sed. For instance: lettersAtEndOfLine is replaced, but this is not: lettersWithCharacterAfter&amp; Since sed does not work well with newlines, it is not as simple as $ sed -E \"s/[a-zA-Z]*\\n/replace/\" file.txt How can this be accomplished?", ".NET Process.Start default directory? I'm firing off a Java application from inside of a C# console application. It works fine for the case where the Java application doesn't care what the \"default\" directory is, but fails for a Java application that only searches the current directory for support files. Is there a process parameter that can be set to specify the default directory that a process is started in?" ]
medi_sts_stackexchange_dupe
Deep Copy of Complex Third Party Objects/Classes
Deep cloning objects
[ "python: restarting a loop", "Here is my question: Is a homeomorphism, that is, a continuos function whose inverse function is also continuous, always bijective?", "How can I make my laptop boot automatically from the hard drive without having to press F10 each time?", "How can I stop fish from sticking to a stainless steel pan? I think Anne Burrell lied to me. She said fish will always stick to a stainless pan. This is true. No matter how well I lubricate my pan, my fish will always adhere like cement. She also said that the pan will release the fish \"when it's ready.\" Maybe meaning it will eventually become unstuck when the fish is done cooking? Well, I've tried that, and it never works. No matter how long I wait, it never becomes unstuck. Most recently I gave it as much time as I could. When I finally chiseled it off the pan, tearing it apart in the process, I saw that it was starting to burn on that side. I've started going back to non-stick until I get this figured out. Are there any tips? Am I heating the pan wrong? Does it help to slide the fish around a bit after putting it in the pan?", "convergence of $\\sum_{n=1}^{\\infty }\\frac{(-1)^{[\\sqrt{n}]}}{n}$ where $[a]$ means floor function of $a$ I have a problem with solving the convergence of $\\sum_{n=1}^{\\infty }\\frac{(-1)^{[\\sqrt{n}]}}{n}$ where $[a]$ means floor function of $a$. I've already made the first thep and rewrote it with the $\\sum_{n=1}^{\\infty }(-1)^{n}\\sum_{k=n^2}^{(n+1)^2-1}\\frac{1}{k}$, which converges if and only if the previous one converges. Now I want to use Leibniz criterion, but I cannot prove that the second sum in the previous expression is monotonic. Does anyone know how to do it? (I cannot use Riemann integral, we haven't defined it yet)", "Is a hexagonal house feasible? Recently I have been considering the economics and feasability of building a house versus buying a used one. In my design I settled on a hexagon as the logical shape for the frame, which I am considering for masonry construction. This would be a big house, each side being at least 30 feet wide (footprint 2340 sq ft). The advantages of a hexagon are obvious: simple roof shape, no valleys, space efficient, heat efficient (this would be in New England and subject to cold winters), good wind resistance. What I can't understand is why there seems to be no-one building hexagonal houses? The only notable building I could find at all was the Supreme Court. Possible explanations would be that the shape is expensive for small houses due to the 6 corners, but for a large house like mine the room shapes work out fine, in fact they are better than a box house. Maybe its just tradition? People don't like it because it looks like church? Builders have some objection to 60-degree angles? What is the reason there are no hexagonal houses?", "Use Stack Exchange icon for Stack Exchange blog posts in the Community Bulletin is used to host global Stack Exchange blog posts and is using favicon of Stack Exchange itself. All good. However, when published in the bulletin, the Meta Stack Exchange icon is used for some reason: Can it be changed please to using the &quot;full&quot; icon?", "Launcher Icons disappear Some Launcher icons disappear. I locked them but they have disappeared again after boot. I have Ubuntu 12.04.2 LTS which I have installed today and updated.", "A phonon is a quantized unit of sound; they are encountered when quantizing lattice vibrations in solids. Now, even an ideal gas supports sound waves, but in this case, interactions between atoms are weak. That makes it hard to imagine what a quantized vibration would look like, since at small scales, the particles are free! Is there a phonon picture for sound in an ideal gas? Is it ever useful?", "Is their a way to move multiple vertices gradually at a time? I have moved multiple vertices gradually but a set of vertices at a time not all at a time, as shown in the animation below (First I moved the four vertices from top, then three, then two and at last the last vertex). I wanted to do the same thing as shown in the animation below but all at a time.", "Showing that the product of all $n$th Roots of Unity is $(-1)^{n+1}$ I need to show that the product of all the $n$th roots of unity is $(−1)^{n+1}$. Is there a way to do this by induction? If there is, I can't seem to figure it out. Are there other, perhaps more efficient, methods of proof?", "What is the solution to the following recurrence relation with square root: $T(n)=T (\\sqrt{n}) + 1$?", "How to substantiate the claim that something is not known? I am writing a master's thesis (in Number Theory) and there are multiple places where I need to claim that something is not yet known. Since I am not an expert (and even if I were) I would like to reference some more authoritative source than myself or, say, Wikipedia. For example, consider the following statement: In 1980 Schmidt proved that [some property holds]. No other necessary or sufficient conditions are currently known, though. For the first sentence I can cite Schmidt's original paper, but how can I substantiate the second claim?", "UFW Allows 22 for IPv4 and IPv6 but SSH Disconnects When Enabling sudo ufw disable followed by sudo ufw enable kicks me out of SSH DMESG reports [UFW BLOCK] IN=eth0 OUT= MAC=30:........ SRC=192.168.1.me DST=192.168.1.server LEN=52 TOS=0x00 PREC=0x00 TTL=128 ID=15776 DF PROTO=TCP SPT=55640 DPT=22 WINDOW=253 RES=0x00 ACK URGP=0 I can log back in without having to change rules via the console (UFW still enabled). This started after upgrading Xenial (16.04) from kernel 4.4 to 4.15 (HWE). Upgrading to 18.04.1 did not solve the issue. Versions: iptables v1.6.1 ufw 0.35 4.15.0-29-generic #31-Ubuntu Ubuntu 18.04.1 LTS UFW status verbose is (some rules were omitted, but they are all ALLOW) Logging: on (low) Default: deny (incoming), allow (outgoing), disabled (routed) New profiles: skip To Action From -- ------ ---- 22 ALLOW IN Anywhere 22 (v6) ALLOW IN Anywhere (v6) Why is this happening, or at least, how to revert to the expected behavior? I looked at , and I am not sure it applies, but here's /etc/ufw/before.rules # # rules.before # # Rules that should be run before the ufw command line added rules. Custom # rules should be added to one of these chains: # ufw-before-input # ufw-before-output # ufw-before-forward # # Don't delete these required lines, otherwise there will be errors *filter :ufw-before-input - [0:0] :ufw-before-output - [0:0] :ufw-before-forward - [0:0] :ufw-not-local - [0:0] # End required lines # allow all on loopback -A ufw-before-input -i lo -j ACCEPT -A ufw-before-output -o lo -j ACCEPT # quickly process packets for which we already have a connection -A ufw-before-input -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT -A ufw-before-output -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT -A ufw-before-forward -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT # drop INVALID packets (logs these in loglevel medium and higher) -A ufw-before-input -m conntrack --ctstate INVALID -j ufw-logging-deny -A ufw-before-input -m conntrack --ctstate INVALID -j DROP # ok icmp codes for INPUT -A ufw-before-input -p icmp --icmp-type destination-unreachable -j ACCEPT -A ufw-before-input -p icmp --icmp-type source-quench -j ACCEPT -A ufw-before-input -p icmp --icmp-type time-exceeded -j ACCEPT -A ufw-before-input -p icmp --icmp-type parameter-problem -j ACCEPT -A ufw-before-input -p icmp --icmp-type echo-request -j ACCEPT # ok icmp code for FORWARD -A ufw-before-forward -p icmp --icmp-type destination-unreachable -j ACCEPT -A ufw-before-forward -p icmp --icmp-type source-quench -j ACCEPT -A ufw-before-forward -p icmp --icmp-type time-exceeded -j ACCEPT -A ufw-before-forward -p icmp --icmp-type parameter-problem -j ACCEPT -A ufw-before-forward -p icmp --icmp-type echo-request -j ACCEPT # allow dhcp client to work -A ufw-before-input -p udp --sport 67 --dport 68 -j ACCEPT # # ufw-not-local # -A ufw-before-input -j ufw-not-local # if LOCAL, RETURN -A ufw-not-local -m addrtype --dst-type LOCAL -j RETURN # if MULTICAST, RETURN -A ufw-not-local -m addrtype --dst-type MULTICAST -j RETURN # if BROADCAST, RETURN -A ufw-not-local -m addrtype --dst-type BROADCAST -j RETURN # all other non-local packets are dropped -A ufw-not-local -m limit --limit 3/min --limit-burst 10 -j ufw-logging-deny -A ufw-not-local -j DROP # allow MULTICAST mDNS for service discovery (be sure the MULTICAST line above # is uncommented) -A ufw-before-input -p udp -d 224.0.0.251 --dport 5353 -j ACCEPT # allow MULTICAST UPnP for service discovery (be sure the MULTICAST line above # is uncommented) -A ufw-before-input -p udp -d 239.255.255.250 --dport 1900 -j ACCEPT # don't delete the 'COMMIT' line or these rules won't be processed COMMIT PS: I didn't expect this to \"fix\" the issue but just for reference I changed the port SSHD listens on (and the corresponding rule) and the problem persists.", "Avoid footnotes from appearing before mark", "I saw her dance/dancing? I saw a flash of lightning strike/striking? I caught her steal/stealing?", "How long do black olives last once opened? I opened a can of sliced black olives for my pizza and only used half. I put the leftovers into a sealed container with the liquid and put it in the fridge. Under those conditions how long will the olives last? Is there a better way to store leftover olives?", "Here is the proof I tried to weave while trying to prove this theorem: Theorem. Every infinite subset of a countable set is countable. Proof. Let $A$ be a countable set and $E\\subset A$ be infinite. Then $A\\thicksim\\mathbb{N}$. This implies that there is a sequence $\\left\\{x_{n}\\right\\}_{n\\in\\mathbb{N}}$ where $x_{n}\\in A$. Construct a sequence $\\left\\{n_{k}\\right\\}_{k\\in\\mathbb{N}}$ where $x_{n_{k}}\\in A$, $n_{1}$ is the smallest positive integer such that $x_{n_{1}}\\in A$, and $n_{k+1}&gt;n_{k}$. Then $$ E=\\bigcup_{k=1}^{\\infty}x_{n_{k}}, $$ and $E$ is countable, because $E\\thicksim\\mathbb{N}$. $\\blacksquare$ Is it convincing?", "I would like to ask a question about Java that doesn't have a specific answer. It's a question to see what people think and to share their opinion. Will Stack Overflow tolerate this, or is there another Stack Exchange resource where I may ask a question like this?", "What overwrites /etc/resolv.conf on every boot? I was given the files for a mini linux, that boots directly into firefox. It works for all it should be doing, only that I do not get an internet connection. We have 3 DNS servers in the network, which all work. I can ping them, too. But when trying to ping google.de or wget google.de I get a bad address error. nslookup google.de works for some reason. I tracked the issue down to my resolv.conf on the booted system not having the same contents as the resolv.conf that I put into the .iso file. I tried understanding all the factors that go into creating and modifying resolv.conf. I'm not quite sure I got it all, but I definitely didn't find my solution there. So as a last ditch effort, I tried making the resolv.conf file immutable using :~# chattr +i /etc/resolv.conf When rebuilding and booting again to my surprise my file was renamed to resolv.conf~ and in its place was the same standard file that has been haunting me. The file contents make me believe it gets the information from the network itself. When starting the .iso in Virtualbox without internet access, my file is being kept as it is. I tried changing /etc/dhcp/dhclient.conf to not get the information from the net, by deleting domain-name-server and domain-name-search from the request part of the file. Didn't work unfortunately. I don't have the NetworkManager installed. The iso is based on Ubuntu 14.04. There is probably vital information missing. I'm happy to provide it. UPDATE: I think I found the file that clears resolv.conf. It seems to be /usr/share/udhcpc/default.script #!/bin/sh # udhcpc script edited by Tim Riker &lt;[email protected]&gt; [ -z \"$1\" ] &amp;&amp; echo \"Error: should be called from udhcpc\" &amp;&amp; exit 1 RESOLV_CONF=\"/etc/resolv.conf\" [ - n \"$broadcast\" ] &amp;&amp; BROADCAST=\"broadcast $broadcast\" [ -n \"$subnet\" ] &amp;&amp; NETMASK=\"netmask $subnet\" case \"$1\" in deconfig) /bin/ifconfig $interface 0.0.0.0 for i in /etc/ipdown.d/*; do [ -e $i ] &amp;&amp; . $i $interface done ;; renew|bound) /bin/ifconfig $interface $ip $BROADCAST $NETMASK if [ -n \"$router\" ] ; then echo \"deleting routers\" while route del default gw 0.0.0.0 dev $interface ; do : done metric=0 for i in $router ; do route add default gw $i dev $interface metric $((metric++)) done fi echo -n &gt; $RESOLV_CONF # Start ---------------- [ -n \"$domain\" ] &amp;&amp; echo search $domain &gt;&gt; $RESOLV_CONF for i in $dns ; do echo adding dns $i echo nameserver $i &gt;&gt; $RESOLV_CONF done for i in /etc/ipup.d/*; do [ -e $i ] &amp;&amp; . $i $interface $ip $dns done # End ------------------ ;; esac exit 0 It's part of the udhcpc program. A tiny dhcp client, that is part of busybox Will investigate further. UPDATE2 AND SOLUTION: I commented the part out (#Start to #End), that seemingly overwrites the /etc/resolv.conf file and sure enough. That was the culprit. So an obscure script caused all this trouble. I changed the question to reflect, what actually needed to be known to solve my problem, so it would be easier to find for people with the same problem and so I could accept an answer. Thanks for the help here in figuring things out." ]
medi_sts_stackexchange_dupe
Error: (sudo: unable to change to root gid: Operation not permitted)
Sudo not available in guest login
[ "When a ball moves to the right, friction acts to oppose the motion, in other words, to the left. However, when a car travels around a bend, the friction acts in the perpendicular direction to the car's velocity and provides the centripetal force. I just cannot understand why friction would act in that direction.", "Prepositions used with \"inquire\"", "Can I travel to Schengen countries that were not on my itinerary when I applied?", "I recently found out about Ubuntu for Android Multi-Core Smartphones and was digging around on the Ubuntu website as well as the Canonical website but have yet to find any information on if it available to the public yet ? I am very interested to try it our on my Android and if it is available for the public am wondering where and how I can get a copy of \"Ubuntu for Android\" ? If it is not available then perhaps someone can shed some lite on what sort of timeframe it will be until it is available to the general public?", "As a mod when should I vote to close content that is not flagged?", "Auto mount a disk drive in ubuntu 14.04 LTS (Bookmark directory not found) I'm using ubuntu 14.04 LTS. When I start my pc and click on any bookmark from the file manager it shows this error: Unable to find the requested file. Please check the spelling and try again. Unhandled error message: Error when getting information for file '/media/angel/DOC/edu': No such file or directory But when I open DOC drive and again clink on the same bookmark it works properly. Can anybody tell me why is this happening and how to solve this issue? Edit: Output of lsblk is following: (ubuntu is installed in sda5) NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 119.2G 0 disk ├─sda1 8:1 0 91.3G 0 part ├─sda2 8:2 0 1K 0 part ├─sda5 8:5 0 24.1G 0 part / └─sda6 8:6 0 3.8G 0 part [SWAP] sdb 8:16 0 465.8G 0 disk ├─sdb1 8:17 0 93.2G 0 part ├─sdb2 8:18 0 1K 0 part ├─sdb5 8:21 0 93.2G 0 part ├─sdb6 8:22 0 89.3G 0 part ├─sdb7 8:23 0 93.2G 0 part ├─sdb8 8:24 0 93.2G 0 part └─sdb9 8:25 0 3.8G 0 part sr0 11:0 1 1024M 0 rom After opening the disk drive the output of lsblk is bellow: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 119.2G 0 disk ├─sda1 8:1 0 91.3G 0 part ├─sda2 8:2 0 1K 0 part ├─sda5 8:5 0 24.1G 0 part / └─sda6 8:6 0 3.8G 0 part [SWAP] sdb 8:16 0 465.8G 0 disk ├─sdb1 8:17 0 93.2G 0 part ├─sdb2 8:18 0 1K 0 part ├─sdb5 8:21 0 93.2G 0 part ├─sdb6 8:22 0 89.3G 0 part /media/angel/DOC ├─sdb7 8:23 0 93.2G 0 part ├─sdb8 8:24 0 93.2G 0 part └─sdb9 8:25 0 3.8G 0 part sr0 11:0 1 1024M 0 rom The output of sudo blkid gives the following information about sdb6: /dev/sdb6: LABEL=\"DOC\" UUID=\"04280A22280A12FA\" TYPE=\"ntfs\"", "I want to plot this graph, but I don't know how to code the words in the nodes. Here is my code: \\documentclass{article} \\usepackage{amsmath} \\usepackage{titletoc} \\usepackage{tikz} \\usetikzlibrary{trees,positioning,fit} \\begin{document}{\\allowdisplaybreaks[4]} \\tikzstyle{bag} = [text width=2em, text centered] \\tikzstyle{end} = [] \\begin{center} \\begin{tikzpicture}[sloped] \\node (a) at ( 0,0) [bag] {$\\ln r_0$}; \\node (b1) at ( 3,1.5) [bag] {$\\ln r_{10} + \\sigma_1\\sqrt{\\Delta t_1}$}; \\node (b2) at ( 3,-1.5) [bag] {$\\ln r_{10}$}; \\node (c1) at ( 6,3) [bag] {$\\ln r_{20} + 2\\sigma_2\\sqrt{\\Delta t_2}$}; \\node (c2) at ( 6,1.5) [bag] {$\\textrm{Mean} = \\ln r_{20} + \\dfrac{3}{2}\\sigma_2\\sqrt{\\Delta t_2}$\\\\$\\textrm{Mean Change} = \\mu_{11}\\Delta t_2 = \\ln\\dfrac{r_{20}}{r_{10}} + \\dfrac{3}{2}\\sigma_2\\sqrt{\\Delta t_2} - \\sigma_1\\sqrt{\\Delta t_1}$}; \\node (c3) at ( 6,0) [bag] {$\\ln r_{20} + \\sigma_2\\sqrt{\\Delta t_2}$}; \\node (c4) at ( 6,-1.5) [bag] {$\\textrm{Mean} = \\ln r_{20} + \\dfrac{3}{2}\\sigma_2\\sqrt{\\Delta t_2}$\\\\$\\textrm{Mean Change} = \\mu_{11}\\Delta t_2 = \\ln\\dfrac{r_{20}}{r_{10}} + \\dfrac{3}{2}\\sigma_2\\sqrt{\\Delta t_2} - \\sigma_1\\sqrt{\\Delta t_1}$}; \\node (c5) at ( 6,-3) [bag] {$\\ln r_{20}$}; \\draw [-&gt;] (a) to node [below] {} (b1); \\draw [-&gt;] (a) to node [above] {} (b2); \\draw [-&gt;] (b1) to node [below] {} (c1); \\draw [-&gt;] (b1) to node [below] {} (c2); \\draw [-&gt;] (b1) to node [below] {} (c3); \\draw [-&gt;] (b2) to node [below] {} (c3); \\draw [-&gt;] (b2) to node [below] {} (c4); \\draw [-&gt;] (b2) to node [below] {} (c5); \\end{tikzpicture} \\end{center} \\end{document} Update code use \\draw [-&gt;] (a) to node [below] {} (b1.south east); \\draw [-&gt;] (a) to node [above] {} (b2.north east); \\draw [-&gt;] (b1.south east) to node [below] {} (c1.west); \\draw [-&gt;] (b1.south east) to node [below] {} (c2.west); \\draw [-&gt;] (b1.south east) to node [below] {} (c3.west); \\draw [-&gt;] (b2.north east) to node [below] {} (c3.west); \\draw [-&gt;] (b2.north east) to node [below] {} (c4.west); \\draw [-&gt;] (b2.north east) to node [below] {} (c5.west);", "How to calculate stays against 90/180 visa rules? Some destinations have a \"90/180 rule\" which says you can come and go but you must not spend over 90 days out of any 180 days in the area. concerns this rule. At least Schengen and Turkey have this rule, probably depending on where the traveller is from and what kind of visa they apply for. Maybe I'm a dummy but I've always had a lot of trouble trying to add up how many days I've spent in such places when I've entered and left several times over recent months. Is there an easy way to do this I'm missing or is it difficult for everybody? I'm guessing something based on counting backwards from the end date might be the trick? Maybe you know of an app or website that can do this for you.", "Multiple TikZ keys with foreach", "Can a possessive S be attached to nouns that are not human beings (or animals)? Can a possessive S be attached to nouns that are not human beings (or animals)? For example, instead of saying \"the back of the chair\", can I say \"the chair's back\"? I remember learning that not everything can get a possessive s, but this issue is not clear to me.", "How can I set the box plot (i.e. axis) ratio of a usual 2D plot to a given value, say 4:3. I don't want to use unit vector ratio since the quantities of the independent and dependent variables are of completely different orders of magnitude.", "How many digits does $2^{1000}$ contain? I tried this way, I only need to know if this is correct or if there are better ways to solve this: $2^{1000}$ does not have a factor of $5$ obviously therefore we can assume $$ 10^{m} &lt; 2^{1000} &lt; 10^{m+1}$$ for some $m$ Assume $ k = 2^{1000}$, then take log on both sides $\\log k = 1000 \\log 2 \\approx 301.02999 &gt; 301$ Therefore $2^{1000}$ has $302$ digits.", "Normality of subgroups and Sylow groups under homomorphisms... Prove or disprove: if $f:G \\rightarrow H$ is a surjective group homomorphism, then 1) $f(A)$ normal implies $A$ normal. 2) $S$ is a p-Sylow subgroup of $G$ implies $f(S)$ is a Sylow-p subgroup of $H$. I believe 1 is false since I believe we need injectivity, but I cannot think of a counterexample... I believe 2 is true but do not know how to show it...", "I installed Linux Mint in 2 partitions: / and /home Windows 8 is under UEFI boot mode. How to hide those linux partitions in Explorer? When I click on them:", "Find Documents in MongoDB whose with an array field is a subset of a query array", "HTTP vs HTTPS performance Are there any major differences in performance between http and https? I seem to recall reading that HTTPS can be a fifth as fast as HTTP. Is this valid with the current generation webservers/browsers? If so, are there any whitepapers to support it?", "What would you call a word that doesn't exist in or translate well into another language? I've run into this situation several times, being a native Spanish speaker. There are some words you just can't translate into another language. Is there a particular word to describe this? I'm not refering to idioms. Also, if its a noun, people tend to use them by surrounding them in quotes. Is this appropiate? Example: I arrived at around 5 pm and had some quesadillas. Edit: I also meant to cover words that exist in English, but cannot be translated into another language. Example: There isn't a word for \"drive-thru\" in your language.", "Use 'import module' or 'from module import'?", "Predicting the number of decimal digits needed to express a rational number The number $1/6$ can be expressed with only two digits (and a repeat sign denoted as $^\\overline{}$), $$ \\frac{1}{6} = \\,.1\\overline{6}$$ Meanwhile, it takes 49 digits to express the number $1/221$, since a string of 49 digits repeats: $$\\frac{1}{221} = .\\overline{004524886877828054298642533936651583710407239819}$$ Yet for $1/223$, 222 digits repeat, giving a total of 224 digits needed to express the number. If $f:\\mathbb{Q}\\rightarrow\\mathbb{N}$ is a function that gives the smallest number of digits needed to express a rational number in decimal notation, what can we say about $f$? For example, if we do not consider the negative sign to be a digit, then $f$ is an odd function. Other than that, is there any pattern to it at all?", "Icon for pinned tabs in Safari? It would be nice to for . As it is, SE kind of stands out (in a not cool way):" ]
medi_sts_stackexchange_dupe
Python 3 Timed Input
Timeout on a function call
[ "I've been messing around with Unity and broke something, how do I \"start over\"?", "Why redirect output to 2>&1 and 1>&2? I have come across several commands that use 2&gt;&amp;1 and 1&gt;&amp;2, but I quite can't get my head around the purpose of using it and when I should be using it. What I understand I know that 1 represents standard out and 2 represents standard error. I understand that 2&gt;&amp;1 combines the output of 2 to 1 and vice versa. What I don't get When should I be using it? What purpose does it serve?", "I need to check CPU and memory usage for the server in java, anyone know how it could be done?", "Subdividing Causes Strange Edges / Issues on Shape", "Problems with Groups in Traminer I'm having a problem using the group function in TraMineR. I have a data set that contains SPELL data, so multiple rows per case. I also have demographic data per case, at one row per case. I merge these together and end up with data that has a demographic covariate per row, so multiple rows per case. An example of this data would be: id startmin stopmin activity educ4 4 1 20 work HS 4 20 40 play HS 8 1 15 sleep College 8 15 40 work College I can make sequence data from this, but when I try to run a plot using the group command seqiplot(atus.seq, group = atus.seqdata$educ4, border=NA, withlegend=\"right\", cex.plot=.55) it tells me: &gt;\"Error: group must contain one value for each row in the sequence object\". I have gotten this to work with the example of the mvad data in the training manual, but I can't seem to get it to work with the groups, whether I link to the original demographic data, the merged data, or try to pass the covariates by seqformat and seqdef. Ideas?", "How to derive addition of velocities without the Lorentz transformation? Lorentz contraction and time dilatation can be deduced without Lorentz transformation. Can you deduce also the theorem of $$w~=~\\dfrac{u+v}{1+uv/c^2}$$ without Lorentz transformation? Using just the constancy of light speed.", "What hash is concatenating with the data to be signed in TLS 1.3 CertificateVerify message? According to specification, to create data that will be signed with server private key for CertificateVerify message, we need to concatenate 64 space characters, the string &quot;TLS 1.3, server CertificateVerify&quot;, null and the hash of all handshake messages to this point. During the handshake process, we choosing the cipher suite and signature scheme... So, if the cipher suite is, for example, TLS_AES_256_GCM_SHA384 and the signature scheme is rsa_pss_rsae_sha256 (different hash algorithms), hash of which algorithm should be used as handshake hash in data to sign, SHA-384 or SHA-256?", "How to read value of variable, where the name of variable is the value of another variable I think an example is in order. Consider I have these two environment variables setup (by a Continuous Delivery tool): PACKAGE_VER=1.2.3 and USE_VERSION_FROM=PACKAGE_VER. What I want now is a script that can't predict the name of the variable pointing out 1.2.3, only USE_VERSION_FROM. And so, I'm looking for a way to get my script to know the version to use (1.2.3) without knowing anything other than that USE_VERSION_FROM points out the name of the variable that holds the version number. My naïve non-working first attempt: #!/bin/bash VERSION_TO_USE=\"${${USE_VERSION_FROM}}\"", "Let $ f: \\mathbb {R} \\rightarrow {\\mathbb {R}} $ be given by $$ f (x) = \\left \\{\\begin {matrix} \\sin ({\\frac {1} {x}}), &amp; \\text {if} \\phantom {a} x \\neq 0; \\\\  c, &amp; \\text {if} \\phantom {a} x = 0 \\end {matrix} \\right. $$ where $ c \\in [-1,1]$. For what values ​​of $c$ is there an antiderivative of $f$? I do not know of a theorem of the form \"if and only if\" that it tells me when a function $ f $ has no antiderivative. Anyone have a suggestion?", "Stuck on two valid squares in minesweeper How to solve? The 1 indicates that ones of the two questioned flags is a mine and 3 also indicates the same. How to choose logically between any one of them?", "I have recently noticed a huge (>3.5GB) file in the DCIM/.thumbnails folder. I have tried deleting it, but the next time I open the Camera app it rebuilds the file (and locks up the phone, sometimes displaying a \"media scanning in progress\" message, in the process.) The total file size of all the (approximately 2,000) photos displayed in the Gallery is around 500MB. There are in addition around 35,000 images in folders which contain .nomedia files to instruct Android to ignore the media therein. The total file size of these is around 1.5GB. The Gallery app is correctly ignoring these images, but I wonder whether the Camera app is misbehaving and actually processing them. I think this problem has emerged since the ICS upgrade ... either when the phone (Samsung Galaxy Note) was first updated from Gingerbread or at some later date. Any ideas, please?", "If $|\\lbrace g \\in G: \\pi (g)=g^{-1} \\rbrace|>\\frac{3|G|}{4}$, then $G$ is an abelian group. Assume that $\\pi$ is an automorphism of a finite group $G$. Let $S$ denote the set $\\lbrace g \\in G: \\pi (g)=g^{-1} \\rbrace$. Show that if $|S|&gt;\\frac{3|G|}{4}$, then $G$ is an abelian group. Anyone has any idea on how to solve this ? I have no idea how to start.", "How to watch videos in Amazon Prime Instant Video?", "How to \"pretty\" format JSON output in Ruby on Rails I would like my JSON output in Ruby on Rails to be \"pretty\" or nicely formatted. Right now, I call to_json and my JSON is all on one line. At times this can be difficult to see if there is a problem in the JSON output stream. Is there way to configure to make my JSON \"pretty\" or nicely formatted in Rails?", "In the Law of Reflection, the angle of incidence is equal to angle of reflection. Why is this true? This is clearly true experimentally, but how does one prove this true mathematically?", "Find all functions $ f : \\Bbb R \\to \\Bbb R$ which satisfy $f(x)f(y) = f(x + y) + xy$ for all $x, y ∈ \\Bbb R$. Find all functions $f : \\Bbb R \\to \\Bbb R$ which satisfy $f(x)f(y) = f(x + y) + xy$ for all $x, y \\in \\Bbb R$.", "Sketching base characteristics of first order pde $$xu_{x} - uu_{t} = t$$ with intial data: $u(1,t) = t, −\\infty &lt; t &lt; \\infty$ So I want to sketch the base characteristics and I'm not too sure what I'm doing. characteristic equations: $\\frac{\\partial{x}}{\\partial{\\tau}}=x$, $\\frac{\\partial{t}}{\\partial{\\tau}}=-u$, $\\frac{\\partial{u}}{\\partial{\\tau}}=t$ initial conditions: $x(0)=1$, $t(0)=\\xi$, $u(0)=\\xi$ $x=e^\\tau$ so $\\tau=lnx$ Notice that: $\\frac{\\partial^2{u}}{\\partial{\\tau^2}}=\\frac{\\partial{t}}{\\partial{\\tau}}=-u$, This gives me the second order ODE $\\frac{\\partial^2{u}}{\\partial{\\tau^2}}+u=0$ Solving I get: \\begin{align} u&amp;=c_{1}\\cos(\\tau) + c_{2}\\sin(\\tau)\\\\ t&amp;=c_{1}\\sin(\\tau) - c_{2}\\cos(\\tau) \\end{align} From here I don't know what I'm doing?", "I've tried to construct examples of rings that match all except one of the properties in the definition of a Dedekind domain. (This is an old number theory qual question from Berkeleys MGSA website). The only starting point that I can think of would be $R:=K[X_1,X_2,\\ldots]$ for $K$ a field. This is clearly integrally closed as any polynomial relation is contained in $K(X_1,\\ldots,X_n)$ for some large enough $n$ and $K[X_1,\\ldots,X_n]$ is integrally closed being a UFD. The problem is then to get rid of enough ideals from this ring $R$, so that its dimension would be 1, but I can't seem to figure out what to do. Anyone have any other ideas for rings that could work as a starting point? The polynomial ring with an infinite number of variables is pretty much the only example that I know of for how to construct a non-noetherian ring that's still a domain.", "What potions actually grant fame or glory, or put a stopper in death? Are there any? ‘You are here to learn the subtle science and exact art of potionmaking,’ [Snape] began. He spoke in barely more than a whisper, but they caught every word – like Professor McGonagall, Snape had the gift of keeping a class silent without effort. ‘As there is little foolish wand-waving here, many of you will hardly believe this is magic. I don’t expect you will really understand the beauty of the softly simmering cauldron with its shimmering fumes, the delicate power of liquids that creep through human veins, bewitching the mind, ensnaring the senses ... I can teach you how to bottle fame, brew glory, even stopper death – if you aren’t as big a bunch of dunderheads as I usually have to teach.’&#185; Philosopher's Stone - page 102 - Bloomsbury - chapter 8, The Potions Master Are there any canon potions that actually grant fame or glory, or stopper death? I'm looking for specific canon-based answers from sources such as the Harry Potter books, interviews with J.K. Rowling, or information from Pottermore. Maybe because it's early I'm overlooking the obvious, but offhand I can't think of any canon potions that fit this criteria exactly. &#185;I edited in the entire paragraph that I can teach you how to bottle fame, brew glory, even stopper death comes from for clarity. Hopefully this will be helpful and provide a better context for the comment in question.", "How to reduce space between image and its caption?" ]
medi_sts_stackexchange_dupe
Can I get original JPEG image from CR2 file format?
Cheap/free tool to view/convert Canon CR2 RAW format photo files on Windows?
[ "Given that indexing is so important as your data set increases in size, can someone explain how indexing works at a database-agnostic level? For information on queries to index a field, check out .", "How to concatenate a variable number of csv, removing their header rows?", "Card game probability 3 players I don’t know how to handle this 3 players case, may anyone give a hand? Thanks! When playing card game, there are 3 players playing 32 cards, each receive 10 cards, 2 remind on the table. Overall are 4 aces and 4 kings in the game. How likely is P (E | D)? D = \"The table remains 2 aces\" E = \"I (at least) get one king\". I guess I should have steps as follows. P(E) = P(1King)+P(2K)+P(3K)+P(4K) P(D) = (4/32) * (4/32) = 1/256 P (E | D) = P(E) + P(D) Equations may be used: Counting combinations The number of combinations of n objects taken r at a time is nCr = n(n - 1)(n - 2) . . . (n - r + 1)/r! = n! / r!(n - r)! Number of favorable outcomes P(I) = Total number of possible outcome", "Stop sound from speakers when connecting headphones I guess this question already had the answer here but I can't find it. I'm using 12.04. Update: The problem is that I can hear the sound from my laptop's speakers even if I plugged in my headphones. Headphones is just standard stereo headphones. And the most interesting thing is that all was working just a week ago. I tried to play with pulseaudio and alsamixer settings - no results.", "Suppress system() output", "Speed of light in a gravitational field? How do I solve the speed of light in gravitational field? Should I just add gravitational acceleration in speed of light? $$c'=c_0+g(r)t~?$$", "How to change the starting reference number in Natbib in a given bibunit? I'm using bibunit and Natbib packages with a numerical numbering. \\begin{bibunit}[plainnat] \\nocite{ref1,ref2} \\putbib[mybiblio] \\end{bibunit} \\begin{bibunit}[plainnat] \\nocite{ref3,ref4} \\putbib[mybiblio] \\end{bibunit} How can I set the starting number for ref3 and ref4 to be different from 1 (say 15), without affecting the starting number for ref1 and ref 2? The desired result is the following: [1] ref 1 [2] ref 2 [15] ref3 [16] ref4", "What kind of construct is 'would that that were all'? There is a place in Bram Stoker’s Dracula where I can’t quite parse the grammar: 8 May. — I began to fear as I wrote in this book that I was getting too diffuse. But now I am glad that I went into detail from the first, for there is something so strange about this place and all in it that I cannot but feel uneasy. I wish I were safe out of it, or that I had never come. It may be that this strange night existence is telling on me, but would that that were all! I understand the meaning of the text in bold (it’s equivalent to if only that was all!), but I don’t understand the grammar being used. What kind of construct is this?", "How do I make an Bootable Ubuntu USB containing the the latest version of Ubuntu? For completeness, how would I be able to do this on Ubuntu, Windows, OS X or another Linux distro?", "After swapping the positions of the hour and the minute hand, when will a clock still give a valid time? At 12 o'clock, the hour hand and minute hand of the clock can be swapped, and the clock still gives the same time, but at 6 o'clock, it can not be swapped. So in what cases when we swap the hour and the minute hand position does a clock still give a valid time?", "There are so many questions on this website. There is so many questions on this website. The former &quot;sounds right,&quot; but the contracted form of the latter does as well: There's so many questions on this website. Which is correct?", "When I try to launch Minecraft 1.7.4 or newer, the game crashes on startup, and the game output screen says this: # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=*, pid=*, tid=* # # JRE version: Java™ SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13) # Java VM: Java HotSpot™ Client VM (* mixed mode, sharing windows-* ) # Problematic frame: # C [ig4dev32.dll+0x3e88] OR # C [ig4dev64.dll+0x55ec] OR # C [ig4icd32.dll+0x104a77] OR # C [ig4icd64.dll+0x84930a] This happens with both Java 7 and 8. What causes this error, and what can I do to fix the issue?", "What are the guidelines for using version-specific tags? I believe that some of my questions were asked before but I didn't find any satisfying guidance. I just found only . I hope senior members will help me to understand the situation and use tags correctly. I have several questions which are related to following explanation: What is current community's attitude towards version specific tags on Stack Exchange? How to correctly use version specific tags? When is it good to create version specific tag? Should any version specific tags be at least marked as synonyms to version unspecific tags? Should I use version specific tags if I re-tagging questions? Should I re-tag questions if I think that incorrect version specific tag is used? For example, I mainly visiting questions related to two main topics: WCF and Entity framework. Tagging questions in these topics follow very different rules. WCF uses single main tag sometimes combined with currently proposed as synonym to WCF, whereas Entity framework currently have: - version 2 and 3 never existed - I started this tag myself but now I think it was a mistake and two ridiculous tags (both for CTP5 of EF 4.1 – their meaningful lifetime was about 3 months): I've already several times retagged questions introducing tag for EF 4.1 RC. Separate problem is in Code-first approach related strictly to where 5 other tags are used to describe the same: I asked for merging these tags in . As you can see that EF topic currently contains too many tags to describe the same. There are other related tags to EF but they are mainly used as supporting tags for specific features. First I thought this is a common situation because ASP.NET MVC uses also new tag for each version even questions usually asks for general problems related to any version but then I was informed by @Richard in that EF is probably tag polluted. I regularly retag questions in EF topic. Currently I'm using: as general topic's tag because I was already informed by @Slauma that people usually have only this tag between their favorites and I should not remove it. It was a good point. for questions related directly to EFv4 features for questions related directly to EF 4.1 features for questions related to fluent and annotations mapping from EF 4.1 But still I think that and are somehow redundant but I'm not sure if my opinion is shared by other participants in these tags. WCF also has 3 versions and almost twice as more questions than EF and it still uses only single main tag without any problem. I think the used version should be information included in a question. Are there any general rules? What about version related tags to C#, .NET and ASP.NET MVC? I first thought that it is common and accepted approach to create version specific tags just because users around ASP.NET MVC (strong tag) do the same. Sometimes I think I received privileges too early and I don't use them correctly. I need some guidance.", "I am new to this and not sure what to make of all the options available. I am interested in putting a machine-learning-related preprint, which will potentially be submitted to places like NIPS/ICLR/ICML in the future. arXiv.org perpetual, non-exclusive license to distribute this article (Minimal rights required by arXiv.org) Creative Commons Attribution license (CC BY 4.0) Creative Commons Attribution-ShareAlike license (CC BY-SA 4.0) Creative Commons Attribution-Noncommercial-ShareAlike license (CC BY-NC-SA 4.0) Creative Commons Public Domain Declaration (CC0 1.0)", "How do I list all of the files in a commit? I am looking for a simple Git command that provides a nicely formatted list of all files that were part of the commit given by a hash (SHA-1), with no extraneous information. I have tried: git show a303aa90779efdd2f6b9d90693e2cbbbe4613c1d Although it lists the files, it also includes unwanted diff information for each. Is there another git command that will provide just the list I want, so that I can avoid parsing it from the git show output?", "Convert from MySQL datetime to another format with PHP I have a datetime column in MySQL. How can I convert it to the display as mm/dd/yy H:M (AM/PM) using PHP?", "How do I left-align entries in a matrix with \\begin{matrix}? I'd like to left align the -1 entry in the following matrix so that the 1s line up. Is there a way to get matrices to ignore signs in that way? \\begin{matrix} 1 &amp; 1 \\\\ 1 &amp; -1 \\\\ \\end{matrix} Using \\flushright{-1} doesn't seem to work.", "Inductive proof of the closed formula for the Fibonacci sequence Fibonacci numbers $f(n)$ are defined recursively: $f(n) = f(n-1) +f(n-2)$ for $n &gt; 2$ and $f(1) = 1$, $f(2) = 1$. They also admit a simple closed form: $$\\sqrt 5 f( n ) = \\left(\\dfrac{1+ \\sqrt 5}{2}\\right)^n- \\left(\\dfrac{1 - \\sqrt 5}{2}\\right)^n \\tag1$$ How to prove (1) using induction? Remarks One could get (1) by the general method of solving recurrences: look for solutions of the form $f(n)=r^n$, then fit them to the initial values. But there should be a more concrete proof for this specific sequence, using the principle of mathematical induction.", "Ready-to-Use Database models example Where can I find ready-to-use database models ? I don't need a database with data in it, but only schemas (UML diagrams). Perhaps something like the , but much more complex and real world.", "\\documentclass{article} \\usepackage{algorithm} \\begin{document} \\setcounter{section}{54} \\section{A section with no label} \\begin{algorithm} \\label{myalg} \\caption{An algorithm with the label `myalg'.} \\end{algorithm} Reference to myalg: \\ref{myalg}. \\end{document} With this code, the reference givens 55 (the section number); if I move the label after the caption command, I get the correct reference (1). Why should this be the case? I find it confusing: when thinking about an algorithm as an environment, you expect to be able to label it right after you began it. At the very least I would expect some kind of error or \"??\" to appear, rather than the previous environment or reference-able entity being used." ]
medi_sts_stackexchange_dupe
Python : Idiomatic way to get list with the lesser size
How to find the shortest string in a list in Python
[ "How to calculate square root or cube root? I was reading Richard Feynman biography when I read that one time he was able to calculate the cube root of large number in his brain by just using simple facts of everyday life. So my question is there a way to calculate square root or cube root by using just a pen a paper, I mean a systematic way not by trial and error.", "Prove that $f$ is differentiable", "When writing my custom function I need to manually append node name to a taxonomy term link. To get the taxonomy term part done I use: $link_uri = taxonomy_term_uri($term); $path_alias = drupal_get_path_alias($link_uri['path']); This works ok, now - I want to append node name (\"/\" . $node_name), but instead of raw string, I want the Pathauto transliterated output, as set in the URL alias configuration, for that node context. What function should I use to mimic that output? I looked at hook_pathauto_alias_alter(&amp;$alias, array $context) but I'm not sure that's what I need.", "What would make a question popular with high views? I was wondering what might be making my questions less attractive to users? I get very low views most of the time. What should be done to increase a question's popularity?", "What is the resolution of tapping a blocking creature? Let's say I have declared a blocker during the correct phase and during the activate abilities step I choose to tap the blocker to use its ability. All the abilities resolve and now we move to the declare damage step. I believe the resolution is that the attacking creature remains blocked and that it deals damage to my blocker; however, the blocker does not deal damage to the attacker. How would this change if the blocker had first strike? How would this change if the blocker was sacrificed?", "Get specific GPS location somehow on windows 8", "Optimal tiling of polygon using ArcGIS Desktop? I am trying to tile a polygon with a minimal number of fixed sized squares. Currently I am creating a fishnet over my polygon then spatially joining the squares that intersect the polygon. This is not optimal. Also note the squares can be shifted vertically/horizontally but not rotated. My end goal: The polygon represents a clipped image and I want a tiling of the clipped image. Where each tile is 300px by 300px. Some overlap is fine if that makes the problem easier. Current Manually optimized Are there any tools or algorithms that would help with this? I am proficient with Python and ArcMap. The polygon was created from line features so I also have access to those segments. Maybe that would will help for generating the squares. The entire polygon must be covered.", "Prove that $\\mathbb Z_{m}\\times\\mathbb Z_{n} \\cong \\mathbb Z_{mn}$ implies $\\gcd(m,n)=1$. Prove that $\\mathbb Z_{m}\\times\\mathbb Z_{n} \\cong \\mathbb Z_{mn}$ implies $\\gcd(m,n)=1$. This is the converse of the Chinese remainder theorem in abstract algebra. Any help would be appreciated. Thanks!", "Is a semigroup with unique right identity and left inverse a group? We know that a semigroup with a right identity and right inverse for all elements is a group (e.g. see ). Symmetrically, also a left identity together with a left inverse implies a group. We also know that a semigroup with a right identity and a left inverse is NOT necessarily a group (see ). My questions are: in a semigroup, is the existence of a UNIQUE right identity together with the existence of a left inverse enough to have a group? in a semigroup, is the existence of a right identity together with the existence of a UNIQUE left inverse enough to have a group? I think both these claims are false, ut haven't found a counter-example so far.", "\"Requires 50 reputation\" to comment on deleted posts", "Received an email intended for another person I'm not really sure how email routing works, but someone ordered something on Amazon and I received the email instead of them. Or maybe we both got it, I don't know. The order doesn't show up in my account, so I'm certain I wasn't charged for it, but I shouldn't be getting other peoples' emails. We'll say that my email is [email protected], and somebody who's email is [email protected] places an order on Amazon. The confirmation email is sent to me at [email protected]. I checked the email header, and it did say To: [email protected] which is not my email address. At first I thought that Google ignores periods in email addresses, but I tested the account setup and it doesn't give any error when you put a period in the address. I didn't create the account; I just used the \"check availability\" function and the address I chose with a period was fine. Maybe someone with knowledge about how Email works could tell me why this happened. Is this a bug in the way Amazon sends emails? Or is it a bug in how Google receives them? Who should I report this issue to?", "I don't think I ever understood the rationale behind this. I get that the dot product $\\mathbf{a} \\cdot \\mathbf{b} =\\lVert \\mathbf{a}\\rVert \\cdot\\lVert \\mathbf{b}\\rVert \\cos\\theta$ is derived from the cosine rule. (Do correct me if I'm wrong.) However, I never really understood why $\\mathbf{a} \\times \\mathbf{b} =\\lVert \\mathbf{a}\\rVert \\cdot\\lVert \\mathbf{b} \\rVert \\sin\\theta$. Is there a proof for this? In addition, how does the vector cross product lead to orthogonal vectors? I remember learning that they do and I know how to solve equations using the respective formulas, but I never got why is it so.", "How do I remove all attributes which are undefined or null in a JavaScript object? (Question is similar to for Arrays)", "Can we make it more plain to recruiters that we're not open to relocation? The preference for being open to relocation is a checkbox, and if you don't check it, nothing about relocation shows up in your profile. Evidently recruiters can't understand that a lack of \"I am open to relocation\" is the same thing as \"I am not open to relocation\", and so every single contact I've gotten through Careers is for a job that I would have to relocate for. Can we make it more obvious to the recruiters (especially ones from Amazon) that we have not checked that box on purpose?", "Would I be scrutinized at the border for traveling to the US twice in a quick succession? I am a British citizen visiting the USA in early August for a two week vacation with friends. After the holiday I'm returning to my home in the UK for three weeks. After that I will return to the USA and will be working for my British employer under the Visa Waiver Program for a period of 80-85 days. I have read already that there is technically no problems with this under ESTA rules, but should I limit this working period to a shorter time frame (e.g. 70 or so days) so that it does not negatively affect the decision made by the POE officer? Ideally I would love to be over in the states for the near-full 85 day period. Any advice or previous experiences anyone can offer? Some clarifications: As confirmed by the immigration attorney, as I am employed by my UK employer, it will be regarded as a business trip, the important part being that I will be working officially as a consultant for my UK employer just overseas for the allotted 85 or so days", "Vertically centered horizontal rule filling the rest of a line? I'd like to have a horizontal line extending from the end of the text on a line to the right margin. So far I've found \\hrulefill and \\leaders\\hrule\\hfill, but these draw a line that's flush with the baseline of my text — how can I get it to be vertically centered?", "Is there a proof that $\\pi$ is an irrational number? Most math texts claim that $\\pi$ is an irrational number. However, I'm having a little bit of trouble understanding that. Since nobody has calculated all of the digits of $\\pi$, how can we know that either: one of the digits repeats (as in $\\frac{10}{3}$) the number eventually terminates Note: Please be very descriptive in your answers... I don't have anything beyond high school math.", "unsigned int vs. size_t I notice that modern C and C++ code seems to use size_t instead of int/unsigned int pretty much everywhere - from parameters for C string functions to the STL. I am curious as to the reason for this and the benefits it brings.", "The mdframed environment fails to break into several pages (slides) when used in a frame environment from the beamer class. In the other hand, the boitecoloriee environment from the boites package can be broken into several pages. Here is a document that demonstrates the issue. It should not be compiled directly into pdf because boitecoloriee uses pstricks. \\documentclass{beamer} \\usepackage{xcolor,boites,boites_exemples,pstricks} \\usepackage{mdframed} \\usepackage{lipsum} \\begin{document} \\begin{frame}[allowframebreaks]{Using \\texttt{boitecoloriee}} \\begin{boitecoloriee} \\lipsum[1-2] \\end{boitecoloriee} \\end{frame} \\begin{frame}[allowframebreaks]{Using \\texttt{mdframed}} \\begin{mdframed} \\lipsum[1-2] \\end{mdframed} \\end{frame} \\end{document} Maybe is there a way to fix mdframed to work in slides too. Any clues?", "Can I publish parts of the Ph.D thesis as a paper in a journal?" ]
medi_sts_stackexchange_dupe
How do I encode specific characters to HTML in python
Convert HTML entities to Unicode and vice versa
[ "What counts as a 'large' raid 5 array?", "Can you use another material as input to material nodes in cycles?", "I may be visiting the US soon for both work (conference) and leisure (sight-seeing) but was wondering whether it is possible to pay a visit to Cuba, as I see that direct commercial flights have been restarted. From what I can tell, it is still not permitted for US citizens to travel to Cuba as tourists (from the ). What is the legal status of European citizens - would it be permitted for me to travel as a tourist from, say, Florida to Cuba on a commercial flight? Would this cause problems for me on my return to the US? I understand that the question has been asked before () but the situation has changed and I believe it warrants asking again.", "Let A,B be in $M_{mxn}(\\mathbb{R})$ Prove that if rank(A + B) = rank(A) + rank(B), then col(A) ∩ col(B) = {0} I started with a proof by contradiction, since we know that rank(A + B) ≤ rank(A) + rank(B). I assume that if rank(A + B) &lt; rank(A) + rank(B), then col(A) ∩ col(B) = {0}. I realize that we don't have to do the > case. However I am a little confused on how to show col from rank.", "How do the PHP equality (== double equals) and identity (=== triple equals) comparison operators differ?", "How do you forcefully remove apps in Windows 10? How can I remove apps that Windows doesn't seem to allow to be uninstalled, like Xbox and Groove Music?", "Spotlight overrides first character What's wrong: I hit CMD+SPACE to open up spotlight, typically type in the name of the application I want to start, hit enter and either the wrong app or no app at all will start, because the app name is missing the first character. \"Learn to type\" I hear you say but wait: as I enter the first character in the search bar, the cursor jumps to the beginning of the line and my second character input overrides the first one. So entering for example \"ever\", in order to start Evernote, will result in \"ver\". \"php\" to start PHPStorm will result in \"hp\" and start my damn HP printer app and so on. This cursor jump to the beginning of the line will not happen in any other application and even if I accept the fact that my cursor jumps from time to time, I don't get why the second character overrides the first one. I'm not even sure if you can configure your Mac to always override the character at current position, but I surely haven't. So this keeps on happening quite regularly and I cannot reproduce it. It just happens and when I try it again (close Spotlight, CMD+SHIFT again), it won't happen again, even if I give it like 5 tries or so. It won't kill me but I am a software developer myself and this kind of bugs just leave me frustrated plus I can not imagine that this is the desired behavior. I have seen some talk about this issue on the internet but I did not come across a solution.. I have 3 MacBooks, different ages, all with German keyboard layouts and German set as system language and they all do this. Just mentioning this, because after that fact, I can barely imagine this isn't affecting at least a lot, if not all, MacBook (Pro?) users. 13\" Pro 2010 or so 15\" Pro Retina 2013 13\" Pro Retina 2015 They all run El Capitan but I already encountered this before. I don't know the OS X version I had installed when I first stumbled across it.", "Lots of questions in the reopen queue I've noticed in the last couple of days that there have been a few occasions when there's been a sudden surge of questions in the SO \"Reopen\" review queue. Normally there's either no questions at all to reopen or at most three or four, and that's still the case, except that for the last couple of days I've gone to the review page and seen about fifty-odd questions in the queue, where just moments before there had been none. I've gone through the reviews and the questions themselves seem reasonably legitimate (including the occasional audit), so I'm not questioning that... it just seems odd that there would be so many more than usual all of a sudden, and that they'd all appear at once. Anyone got any insights, or should I just chalk this down as \"one of those things\"?", "Training N classifiers for N labels vs one classifier with N labels I have a classification problem which is multi-label with N labels. I would like to know which method would be the better choice? Training N classifiers (1 for each label) or a single classifier which use K-hot encoding. I'm using a neural network for this with a softmax at the last layer. (Is there any chance that the softmax would cause a problem?) I'm using tensorflow for the model.", "I hope I'm right in thinking this is the site where you post general computer-related problems... A problem I have when playing games (since you won't be pressing multiple keys simultaneously anytime else), is that when I press up/left and then another key, it fails to 'register' as if that last key is never pressed. This doesn't happen when I'm pressing any other two arrow keys, e.g. down/left or up/right. The weird thing is that when I'm playing with WASD instead of the arrow keys, i still have this problem! Meaning W+A+another button doesn't work. If anyone knows what I should, I'd appreciate the help. (My reflexes are fast and I can always circumvent this problem, but it's quite annoying and shouldn't exist to begin with!)", "Posting a Solution of a problem that You faced to Help Newbies About an Hour ago, I faced a problem and tried different ways to solve it. At last I was going to post my Question on Stack Overflow, but the last trick which came in my mind worked, and the problem got resolved. Now, if I want to post that problem on Stack Overflow with the solution which worked for me, for the purpose to help other newbies to get their answer if they face the same problem, what is the proper way of posting such solution to a problem?", "Schengen Visa Refusal: Justification for the purpose and conditions of the intended stay was not reliable", "I noticed that I can only perform certain actions such as commenting a finite number of times in a given period of time. Obviously, rate limiting is in place to prevent accidental misuse or intentional abuse of certain features. Where else is rate limiting applied on Stack Exchange sites, and what are the limits?", "Operand Should Contain 1 Column - MySQL NOT IN", "Customizing tray/taskbar date display in Ubuntu with GNOME 3", "For one of the clients, I have spin up a modern communication site collection and on the landing page of the same, I am seeing 'Get the mobile app' showing up, I was able to hide the 'feedback' button using css but no luck with Get the mobile app button. Can someone please share css to hide 'get mobile app' button, appreciate the help.", "Is there anything like GF(6)?", "Are counters (noun) physical things?", "A friend of mine accidentally left a carton of eggs on her counter, unrefrigerated, for three days. The eggs had been previously refrigerated both at the store and at home. Now she's planning to do some more cooking which requires eggs, and is wondering if it's still safe to use them for baking. I believe she is planning on baking cookies with them, so they would be baked at fairly high temperatures for probably at least 10 minutes. Would this be safe, or are eggs left unrefrigerated for that long not safe for consumption?", "For three days straight, I have connected to the public WiFi network at my local library. Each day, I have seen a different prompt in Terminal. Here are some of the prompts I've seen: zp-pc:~ russell$ mary-pc:~ russell$ normob05:~ russell$ I have check under System Preferences -> Sharing, and my computer name is \"Russell's Mac\". Also, I set the DHCP Client ID to \"RUSSMAC\" under System Preferences -> Network -> Advanced -> TCP/IP, but I still see the random host names at the Terminal prompt. Why is my computer name changing every day?" ]
medi_sts_stackexchange_dupe
Bibdesk citing [?] instead of a proper citation
Question mark or bold citation key instead of citation number
[ "Change the font of figure captions I would like to italicize my figure captions and make them smaller. How can I do that?", "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:", "Proving $\\, a^b = (a\\bmod n)^b\\, \\pmod{\\!n}\\ $ [Congruence Power Rule] I am working on a problem I am pretty close to solving but I can't figure out the last part. I used some algebraic manipluation to break the problem down. The problem is: Show that the following congruence is true a^b = ((a mod n)^b) (mod n) for any positive integers a, b, and n. Hint: Number a can be written as a = q*n + r, where q = floor brackets a/n, and r = a mod n. My attempt it: (q*n +r)^b = ((a mod n)^b) * (mod n) (q*n)^b + (a mod n)^b = ((a mod n) ^b) * (mod n) (a)^b -(r)^b = ((a mod n) ^b) * (mod n) (a)^b = modn ----> divided by ((a mod n)^b) Am I doing this correctly and if so how can I prove this is true? Is there a trick I am missing? I think that by simplifying it further I would just keep going in a loop. Thanks!", "Joining lots of small polygons to form larger polygon using PostGIS?", "Consider the atomic spectrum (absorption) of hydrogen. The Bohr's model postulates that there are only certain fixed orbits allowed in the atom. An atom will only be excited to a higher orbit, if it is supplied with light that precisely matches the difference in energies between the two orbits. But how precise does 'precisely' mean. Of course, if we need energy $E$ to excite the electron to a higher energy level, and I supply a photon with just $E/2$ I would expect nothing to happen (since the electron cannot occupy an orbit between the allowed ones). But what if I supplied a photon with energy $0.99E$, or $1.0001E$ or some such number. What will happen then? I think that the electron should still undergo excitation precisely because the lines we observe in the line spectrum have some thickness. Which means that for a given transition, the atom absorbs frequencies in a certain range. Is my reasoning correct? If not, why? How does Bohr's model explain this? How about modern theory? If I'm right, what is the range of values that an atom can 'accept' for a given transition?", "The proof of shrinking coefficients using ridge regression through \"spectral decomposition\" I have understood how ridge regression shrinks coefficients towards zero geometrically. Moreover I know how to prove that in the special \"Orthonormal Case,\" but I am confused how that works in the general case via \"Spectral decomposition.\"", "Tools to get a pictorial function call graph of code", "Suppose $p$ and $p^2+2$ are prime numbers, prove that $p^3+2$ is also a prime number. Actually I do not know what is the relationship among square numbers, cube numbers and prime numbers", "What is duplicate content and how can I avoid being penalized for it on my site?", "Who is the Lord, as referred to in the title? Frodo? Sauron? Someone else? Or is it more of an abstract title, not referring to a single person, like \"He who wields the One Ring\"?", "Avoid large spaces between text and equations I use the options \\renewcommand{\\baselinestretch}{1.25} \\setlength{\\parskip}{0pt} \\setlength{\\parindent}{0pt} in the preamble of my document and most of the time the document looks like intended. Once in a while though, especially when I use multiline-equations, I get huge spaces right before and after the equation and the surrounding text, for example: Is there any way I can avoid that without removing the \\parskip option?", "Preferred languages: C/C++, Java, and Ruby. I am looking for some helpful books/tutorials on how to write your own compiler simply for educational purposes. I am most familiar with C/C++, Java, and Ruby, so I prefer resources that involve one of those three, but any good resource is acceptable.", "I have recently imported books into Canada from Japan. As I bought in excess of 5000¥, the purchase was tax free and the receipt was stapled to my passport and stamped. Since I've now come back to Canada and no issues occurred with my imports, Is it safe to remove the receipts from my passport? As it was stamped and stapled, there will remain a trace that something was there. Could this cause problems when I return to Japan at a later time?", "Is there any way to favorite/bookmark an answer? Lots of questions are very generic, &quot;share an experience&quot; kinds of questions. In these cases, I am quite often interested in specific answers that may not have gotten that many upvotes. These questions also tend to elicit lots of responses, so going back to find the answers I'm interested in somewhere in the middle of a sea of responses is a pain. Is there a way to favorite or bookmark these answers?", "Just a curiosity. I just saw a video where pi was being calculated by the series $$1-(1/3)+(1/5)-(1/7)+...$$ My question is how can $\\pi$ be irrational if we can calculate it using rational numbers?", "Solve $p_4(x) = x^4 −(2m + 4)x^2 + (m−2)^2 $such that $p_4$ is a product of two non-constant integer-coeficient polynomials I'm having trouble getting the starting idea for a problem I've been presented with: I need to find values for m (integer) such that the following polynomial $p_4(x) = x^4 −(2m + 4)x^2 + (m−2)^2$; $m$ is integer can be described as the product of two non-constant integer-coeficient polynomials. Any help/pointers/tips on how to go about this are greatly appreciated! Edit: I meant polynomials with integer coeficients, but for some reason typed positive.", "Where should I put my bash scripts", "Forecast total for a year given monthly time series I have a monthly time series (for 2009-2012 non-stationary, with seasonality). I can use ARIMA (or ETS) to obtain point and interval forecasts for each month of 2013, but I am interested in forecasting the total for the whole year, including prediction intervals. Is there an easy way in R to obtain interval forecasts for the total for 2013?", "How does the bounty system work? It's possible to offer and award bounties of reputation on questions. What is a bounty? How can I find questions that have a bounty attached? How do I start a bounty? When can I start a bounty? Why is the system requiring me to choose a bounty amount that's higher than the minimum? Can I use Markdown formatting in the bounty remarks? Can I edit the remark? How long is the bounty period? How do I award a bounty? Can I award a bounty to my own answer? Can I award a bounty to an old answer? If I offer a bounty on someone else's question, can I award the bounty to their answer? After awarding the bounty, can I remove it or move it to another answer at a later time? What happens if there's no answer after the bounty period? What happens if I feel my question is still unanswered? What is automatic awarding? Are bounty awards exempt from the 200 points/day reputation limit? How does Community Wiki mode affect bounties? How does user deletion or post dissociation affect bounties? Can I award a bounty to an answer from a deleted user or one where the author was dissociated? Can I offer a second bounty after the first one has expired? Can I raise my bounty? What happens if a bounty question is closed or deleted? Why can't I vote to close or migrate a bounty question? What happens if I delete my account while I have an active bounty? Do I keep an awarded bounty when I delete my answer? What happens if a question where I awarded a bounty later gets deleted or migrated? Can I cancel my bounty? Can I affect / divide / share part of my bounty to two (or more) users? How many outstanding bounties can a single user have? See also: in the Help Center", "I'm working in Lee's book on topological manifolds and have gotten stumped on the first question in chapter 5, the chapter on cell complexes. The problem is: Let $D$ and $D'$ be two closed cells not necessarily of the same dimension. Show that any continuous map $f:\\partial D \\to \\partial D'$ can be extended to a continuous map $F:D \\to D'$ such that $F(Int \\; D) \\subseteq Int \\; D'$. Given points $p \\in Int \\; D$ and $p' \\in Int \\; D'$, show that $F$ can be chosen so $F(p) = p'$. Show that if $f$ is a homeomorphism then $F$ can be chosen to be a homeomorphism. I proved the first part roughly as follows: First suppose $D$ and $D'$ are convex and each contain $0$ in their interior (in their respective ambient spaces). Then every element other than $0$ in $D$ can be expressed uniquely in the form $\\lambda q$ where $q \\in \\partial D$ and $\\lambda\\in (0,1]$ (an equivalence relation on the chords connecting $0$ to boundary points partitions $D- \\{0\\}$). I then define the map $F(\\lambda q) = \\lambda f(q)$ which is continuous since if $\\lambda_n q_n \\to \\lambda q$ in $D$ then $F(\\lambda_n q_n) \\to F(\\lambda q)$. Lastly $\\lambda q \\in Int \\; D$ implies $\\lambda &lt;1$ and so $\\lambda f(q)$ is an interior point of $D'$ since $f(q)$ is a boundary point and $D'$ is convex. Now if we suppose $D$ and $D'$ are arbitrary closed cells there are homeomorphisms $g_1: \\overline{\\mathbb{B}^n} \\to D$ and $g_2: \\overline{\\mathbb{B}^m} \\to D'$ (where possibly $m=n$) then we have that $g_2^{-1}\\circ f \\circ g_1$ is a continuous map between the boundaries of two closed balls and so by the first part can be extended to a continuous map $F:\\overline{\\mathbb{B}^n} \\to \\overline{\\mathbb{B}^m}$. The mapping $g_2 \\circ F \\circ g_1^{-1}$ is a continuous map that satisfies the desired claim. My issue is that parts 2 and 3 don't seem (to me at least) to follow that easily from the proof I constructed. Maybe my proof is wrong and I'm not seeing it, but more likely I think that I'm missing the spirit in which Lee is intending for us to approach this problem." ]
medi_sts_stackexchange_dupe
What makes a function static?
When to use static methods
[ "How to prove $4(n!)>2^{n+2}$ for $ n\\geq 4$ with induction I've done the base step, but how do I prove it is true for $n+1$ without using a fallacy? $$4(n!)&gt;2^{n+2}\\quad \\text{for } n\\geq 4$$ Please help.", "Are repository lists secure? Is there an HTTPS version?", "How do I disable notifications in my personal profile for activity on pages I am an admin of? I'm an admin of several pages on Facebook (for technical stuff like RSS imports, etc.), but neither do I contribute content nor do I care about their content. Still, as an admin, I get notifications (upper left hand, the globe icon) about activity (someone liked this, someone posted that) on those pages in my personal (!) profile . Does anyone have the same issue? Is there any way to explicitly disable notifications for certain pages? (This behavior seems to be new, by the way; I'm only seeing those notifications for a few weeks now.)", "How did half of Darth Maul survive?", "I read somewhere that companies are not required to pay dividends to shareholders (this is correct, yes?). If so, then if company A never pays dividends to its shareholders, then what is the point of owning company A's stock? Surely the right to one vote for company A's Board can't be that valuable. What is it that I'm missing?", "How do I unit test code that includes a callout?", "If $a \\cdot a = 1$ then $a = 1$ or $a = -1$", "How do ${0##*/} and ${0%/*} work? I'm quite confused about the following regular expressions I found in a shell script: ${0##*/} ${0%/*} How do they work?", "A TV show, from the 90's or 80's, very weird Does anyone remember a show, where: An alien girl lives with a family She comes from the moon She is looking for a new king because their king (a giant baby) is dying Her spaceship its a VW van They had a doorframe, yes a doorframe, that could open to other alternative universes or dimentions", "How to model this odd-shaped distribution (almost a reverse-J)", "Why do electron and proton have the same but opposite electric charge?", "How do I \"decompile\" Java class files? What program can I use to decompile a class file? Will I actually get Java code, or is it just JVM assembly code? On Java performance questions on this site I often see responses from people who have \"decompiled\" the Java class file to see how the compiler optimizes certain things.", "Shortcut to view wireless networks in Windows 7 Does anyone know how to create a shortcut which opens the wireless networks dialog box in Windows 7? I'm looking for a shortcut that takes me directly to the window which shows you the available wireless networks around you.", "(Last Jedi spoilers ahead, if you haven't seen the movie, please don't read on.) So, fridge logic moment for me: If Vice Admiral Holdo had told Poe Dameron about the plan to just hold on long enough to make a covert run to Krait, then Poe wouldn't have felt the need to send Finn and Rose on their little side-trip, and the code-breaker wouldn't have overheard anything nor sold them out, and the First Order would've had no reason to notice the cloaked ships. I do understand that there's a lesson in there about following orders, even if said orders come from a pretty face in a pretty dress, but that's kind of an out-of-universe reason. What was Holdo's reasoning? Surely she knew enough about Poe to realize that treating him like a mushroom1 would not result in anything good. 1 \"kept in the dark and fed shit\"", "Evaluating the indefinite integral $ \\int \\sqrt{\\tan x} ~ \\mathrm{d}{x}. $ I have been having extreme difficulties with this integral. I would appreciate any and all help. $$ \\int \\sqrt{\\tan x} ~ \\mathrm{d}{x}. $$", "Could someone please explain? I couldn't find anything on the internet, everything talks about how to go about it in some way, but nothing says exactly what it is. Also, what is a fully trusted assembly and how do they differ from one another? I have a MS certification exam and this is the only topic that I just don't understand. EDIT: Thanks guys. Now I have a better understanding of security in .NET. I was able to pass my certification exam.", "I am attempting to solve this counting problem through combinatorial argument. The following is the equation I am given: $$\\sum_{i=1}^n (i-1)(n-i) = \\binom{n}{3}$$ I understand that the right-hand side of this equation represents a set of $n$-elements out of which we choose 3. For example I believe we can say suppose we have a group of $n$ people and we want to choose 3 out of $n$ to be in a committee. However I'm not sure how to express the left-hand side in words. If forming a committee is an appropriate way to tackle this problem then I know the left-hand side must utilize the addition and multiplication principles, but I don't know how to put it into words. Also my intuition tells me that in solving this we should first flip $$(n-i)(i-1)$$ Thanks!", "How to evaluate the integral $\\int \\sqrt{1+\\sin(x)} dx$ To find: $$\\int \\sqrt{1+\\sin(x)} dx$$ What I tried: I put $\\tan(\\frac{x}{2}) = t$, using which I got it to: $$I = 2\\int \\dfrac{1+t}{(1+t^2)^{\\frac{3}{2}}}dt$$ Now I am badly stuck. There seems no way to approach this one. Please give a hint. Also, can we initially to some manipulations on the original integral to make it easy? Thank you.", "Check if user is using IE", "What techniques are available for collapsing (or pooling) many categories to a few, for the purpose of using them as an input (predictor) in a statistical model? Consider a variable like (discipline chosen by an undergraduate student). It is unordered and categorical, but it can potentially have dozens of distinct levels. Let's say I want to use major as a predictor in a regression model. Using these levels as-is for modeling leads to all sorts of issues because there are just so many. A lot of statistical precision would be thrown away to use them, and the results are hard to interpret. We're rarely interested in specific majors -- we're much more likely to be interested in broad categories (subgroups) of majors. But it isn't always clear how to divide up the levels into such higher-level categories, or even how many higher-level categories to use. For typical data I would be happy to use factor analysis, matrix factorization, or a discrete latent modeling technique. But majors are mutually exclusive categories, so I'm hesitant to exploit their covariance for anything. Furthermore I don't care about the major categories on their own. I care about producing higher-level categories that are coherent with respect to my regression outcome. In the binary outcome case, that suggests to me something like linear discriminant analysis (LDA) to generate higher-level categories that maximize discriminative performance. But LDA is a limited technique and that feels like dirty data dredging to me. Moreover any continuous solution will be hard to interpret. Meanwhile something based on covariances, like multiple correspondence analysis (MCA), seems suspect to me in this case because of the inherent dependence among mutually exclusive dummy variables -- they're better suited for studying multiple categorical variables, rather than multiple categories of the same variable. edit: to be clear, this is about collapsing categories (not selecting them), and the categories are predictors or independent variables. In hindsight, this problem seems like an appropriate time to \"regularize 'em all and let God sort 'em out\". Glad to see this question is interesting to so many people!" ]
medi_sts_stackexchange_dupe
How to save a GIF with transparency without it creating white blobs around glow? Open for other solutions!
What formats supporting animation are suitable for the web?
[ "How much longer will my 10 year old frame last?", "$\\sqrt{c+\\sqrt{c+\\sqrt{c+\\cdots}}}$, or the limit of the sequence $x_{n+1} = \\sqrt{c+x_n}$", "HTTP and HTTPS impacts on SEO I have a website http://www.domain_1.com/ hosted in a shared webserver. I have used SSL for another website https://www.domain_2.com/ on the same server. Due to some technical limitations (single IP), if you try https://www.domain_1.com, browser will show the same domain_2 website. But this is not a concern for me. Question: will this scnario impact SEO of domain_1 (non-HTTPS) site?", "I understand what the game already tells you in the general sense... it changes enemy damage, resistances, and chance of legendary monsters appearing. But, specifically, how does the difficulty level affect the game? Is going from Normal to Hard a 5% increase in damage? 50%? 200%? Are there any additional things changed that aren't mentioned. Does Survival mode add any extra mechanics, or is it just even bigger numbers than Very Hard?", "I have a C++ library that provides various classes for managing data. I have the source code for the library. I want to extend the C++ API to support C function calls so that the library can be used with C code and C++ code at the same time. I'm using GNU tool chain (gcc, glibc, etc), so language and architecture support are not an issue. Are there any reasons why this is technically not possible? Are there any gotcha's that I need to watch out for? Are there resources, example code and/or documentation available regarding this? Some other things that I have found out: Use the following to wrap your C++ headers that need to be used by C code. #ifdef __cplusplus extern \"C\" { #endif // // Code goes here ... // #ifdef __cplusplus } // extern \"C\" #endif Keep \"real\" C++ interfaces in separate header files that are not included by C. Think here. Using #ifndef __cplusplus #error stuff helps here to detect any craziness. Careful of C++ identifiers as names in C code Enums varying in size between C and C++ compilers. Probably not an issue if you're using GNU tool chain, but still, be careful. For structs follow the following form so that C does not get confused. typedef struct X { ... } X Then use pointers for passing around C++ objects, they just have to be declared in C as struct X where X is the C++ object. All of this is courtesy of a friend who's a wizard at C++.", "How do I force TeX to completely use the 1st column? How do I force TeX to completely use the 1st column before writing to the second column? Right now I dont have enough content to fill one whole page. So the left and right columns are equally filled, leaving 25% symmetrical empty page at bottom. How do I fill the left column first, and then the right? \\documentclass{article} \\usepackage{multicol} \\usepackage[scale=0.9]{geometry} \\usepackage{amssymb} \\renewcommand{\\labelitemi}{\\tiny$\\blacksquare$} \\begin{document} \\begin{multicols}{2} %lots of text goes here \\end{multicols} \\end{document}", "$X$ and $Y$ are independent rv having pdf $f(t)=\\frac{1}{\\pi} \\frac{1}{1+t^2}$ determine pdf of $Z=\\frac{X+Y}{3}$", "On the commutative property of multiplication (domain of integers, possibly reals) $ab = ba$ This is, inherently, true. Some texts drop it like an axiom without any justification. But I'm a bit curious where it stems from or basically why/how it works. If anyone could enlighten me a bit further, I'd be most grateful. Peano axioms? From set theory? Help. What bugs me with this definition is it's real world \"application\": Let's say I have a power output of 5 W ( $kg\\cdot m^2 \\cdot s^{-3}$) and I want 30% of that power output (to have some units and natural context). Naturally, 30% is 30 1/100 (% is the unit). For simplicity, let's express that as: $30$%$ = 30/100 = 3/10 = 3d$ where $d = 1/10$, a simpler unit (because %W would look... Wrong?). So 30% of power is then $5 W \\cdot 3d$, and we can force it to \"make sense\" if we associate d with W or basically scale the unit of power by d (which is intuitively understood as being 10 times smaller then the output of 1 W) $dW$. And we want to scale these 5 units of $dW$ three times. $5 dW \\cdot 3$ But the commutative property says it is the same as scaling 3 units of $dW$ 5 times or: $3 dW \\cdot 5$ And the result is the same. This is the bit that hurts my head, the fact it is the same. I try to interpret the same as, for example 50 J of work, it's either applying 50 N over 1 m of distance or 1 N over 50 m of distance. Down here is additional stuff I think I have (you don't have to read it if you know how to answer immediately). I don't claim it's correct, if anyone parses this information, feel free to correct me. $m\\sum\\limits_{i=1}^{n}{1} = n\\sum\\limits_{i=1}^{m}{1}$ This is how I've been trying to break it down, as it is repeated addition. It is repeated $n$ times and multiplied by $m$, and reverse on the right side. There is $x = m - n$, so when I multiply $n$ $m$ times, each repeated addition of $n$ lacks exactly $x$ to $m$. $mn = nm$ $x = m-n$ $m(m-x) = (m-x)m$ $m^2 - mx = m^2 - mx$ $ true $ And yes, sadly, I realise that I am using the very property I'm trying to prove ($xm$ shifted as $mx$ on the right-hand side.) And it even calls in the distributive property of multiplication over addition which I derive (for myself, informally) from the very nature of multiplication and the way we \"process\" numbers: For example, number $55$ times $2$ $55 = 5 \\cdot 10^1 + 5 \\cdot 10^0 = 5 \\cdot 10 + 5 \\cdot 1$ $(5 \\cdot 10 + 5 \\cdot 1) \\cdot 2$ This is the basis of our positional notation which appends digits of varying orders of magnitude or units together in a way it makes \"sense\". Each one is b times bigger than the one to the right. Basic stuff. It is why I expressed 10 and 1 explicitly, those are what I consider units in this case. Now, from the definition of multiplication, which is at its heart just repeated addition, it is truly the same if you add together $2$ $50$ times and then again $5$ times or \"all at once\" (figuratively, we are always doing the former mentally) $2$ $55$ times. That added together gives 110, which is true. To me, the distributive property (in case of integer multiplication) is a repercussion of the very definition of multiplication which is repeated addition (evading strict concepts). I am not certain whether this is a good way to look at it.", "I just watched a TV show and the guy says: I ain't trying to fight with nobody with a baby. So here, I can't understand the \"nobody\" since it make no sense to me, but it sounds like anybody, and if it's \"I ain't trying to fight with anybody with a baby.\" that makes sense to me.", "..and I don't mean finding out why it doesn't compile, I mean serious debugging: breakpoints, figuring out value of variables at a given moment during run/compile, stepping, examining a stack (is there one?), etc. All the things that we take for granted when debugging a \"real\" programming language. Since TeX is \"turing-complete\", I would like to be able to really see what is going on internally. I'm guessing that a GUI interface for the debugger would be too much to ask, but if it exists, I'd love to hear about it.", "Looking for a book, wormhole, space ship Crash landing From what I remember of the book: A spaceship goes through a wormhole (I think) and crash lands on a planet They salvage what they can from the ship and build a castle on a mountain, cutting the stone with the lasers from the crashed ship The crew develop some sort of powers, the captain (She) seems to develop some sort of Precognition The planet's inhabitants where men rule and women are second class citizens Some women escape to the crew's castle so they can be equal citizens After they build the castle the crew fight the inhabitants the that came to attack them What is the name of this book?", "Picking a $\\delta$ for a convenient $\\varepsilon$? I'm studying some proofs in a book from the library and unlike my own book, it doesn't prove by showing that a certain expression is striclty less than $\\varepsilon$ (given an appropiate $\\delta$ and $\\vert x-a\\vert &lt; \\delta$, etc). Instead, it shows that it's less than some expression involving $\\varepsilon$. E.g. Given $\\varepsilon &gt; 0$, we can pick a $\\delta &gt; 0$ so $|f(x) - g(a)| &lt; \\text{insert stuff} &lt; k \\cdot \\varepsilon$ when $|x-a| &lt; \\delta$, and thus $f(x) - g(a) \\to 0 $ when $x \\rightarrow a$. How does this make sense formally? (Intuitively, I am convinced.) I don't have much experience with $\\varepsilon$-$\\delta$ -proofs, so I might be missing something obvious.", "I must have a blind spot, but I cannot find what it is. I made a small python script that removes VLC from the sound menu. It runs perfectly in any way I run it from the terminal or from a launcher or whatever you can think of. What the script actually does is nothing more than get the get the current settings: gsettings get com.canonical.indicator.sound interested-media-players edit the list, and set the changed list by: gsettings set com.canonical.indicator.sound interested-media-players \"['newlist']\" These commands are executed by a python script,. However, when run from a cronjob (crontab -e) only the gsettings - get - part works, but not the gsettings - set - section. That the get section works fine with cron, I checked by making the script write data (the original as well as the edited) to an external file. Not a python problem To see if the problem is related to python code, I created a bash script that applies a changed sound menu items list. The story is the same: the bash script runs fine from the command line or a launcher, not from cron, while any other command in the same script would run fine. Also, if I add any command at the end of the script below, it works fine and it looks like the script is satisfied with its own work. Why is the gsettings set command not working when initiated from cron? This is the script: #!/usr/bin/python3 import subprocess def read_soundmenu(): # read the current launcher contents get_menuitems = subprocess.Popen([ \"gsettings\", \"get\", \"com.canonical.indicator.sound\", \"interested-media-players\" ], stdout=subprocess.PIPE) return eval((get_menuitems.communicate()[0].decode(\"utf-8\"))) def set_current_menu(current_list): # this takes no effect from cron # preparing subprocess command string current_list = str(current_list).replace(\", \", \",\") subprocess.Popen([ \"gsettings\", \"set\", \"com.canonical.indicator.sound\", \"interested-media-players\", current_list, ]) current_list = read_soundmenu() for item in current_list: if item == \"vlc.desktop\": current_list.remove(item) set_current_menu(current_list)", "64 bit enum in C++? Is there a way to have a 64 bit enum in C++? Whilst refactoring some code I came across bunch of #defines which would be better as an enum, but being greater than 32 bit causes the compiler to error. For some reason I thought the following might work: enum MY_ENUM : unsigned __int64 { LARGE_VALUE = 0x1000000000000000, };", "How can one prove that $\\lim_{n \\to \\infty}a^{1/n}=1$ for every $a>0$?", "Proving that for a smooth function if $f(\\frac 1 k)=0 :\\forall k\\in \\mathbb N$ then $f(x)=0 :\\forall x\\in[-1,1]$", "Is Java \"pass-by-reference\" or \"pass-by-value\"? I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?", "Can there be temperature inside of a massive Black Hole?", "Can I stop 100% Width Text Boxes from extending beyond their containers? Lets say I have a text box that I want to fill a whole line. I would give it a style like this: input.wide {display:block; width: 100%} This causes problems because the width is based on the content of the text box. Text boxes have margin, borders, &amp; padding by default, which makes a 100% width text box larger than its container. For example, here on the right: Is there any way to make a text box fill the width of its container without expanding beyond it? Here is some example HTML to show what I mean: &lt;!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"&gt; &lt;html xmlns=\"http://www.w3.org/1999/xhtml\" &gt; &lt;head&gt; &lt;title&gt;Untitled Page&lt;/title&gt; &lt;style type=\"text/css\"&gt; #outer{border: 1px solid #000; width: 320px; margin: 0px;padding:0px} #inner{margin: 20px; padding: 20px; background: #999;border: 1px solid #000;} input.wide {display:block; margin: 0px} input.normal {display:block; float: right} &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;div id=\"outer\"&gt; &lt;div id=\"inner\"&gt; &lt;input type=\"text\" class=\"wide\" /&gt; &lt;input type=\"text\" class=\"normal\" /&gt; &lt;div style=\"clear:both;\"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; If this is run, you can see by looking at the \"normal\" text box that the \"wide\" text box is sticking out beyond the container. The \"normal\" text box floats to the actual edge of the container. I'm trying to make the \"wide\" text box fill its container, without expanding beyond edge like the \"normal\" text box is.", "Do the automatic success and failure rules apply to skill checks? We had a rule check tonight that we couldn't answer. On the Pathfinder wiki I could only find info on natural 20s and 1s in regards to attack rolls and saves in combat. Do they also apply to skill checks?" ]
medi_sts_stackexchange_dupe
Shadows on Google Maps visualRefresh
Marker shadows in Google Maps v3
[ "Expression Functions for Lightning Web Components", "how to loop through arguments in a bash script", "What would you see if you have 2 huge mirrors (you cant look over it or next to it) You place them with the reflecting side to each other and you look in the mirror from behind one mirror (one way mirror = 1 side glass 1 side mirror, like in a movie when cops are questioning a suspect.) The mirror would reflect each other endless. The example could be preformed with a see trough mirror (1 side mirror other side glass) but I don't have one, also I don't have huge mirrors. Would it make a diffrence if you place a light source and if you dont have a light source? My guess is that you would always see black because there is nothing to mirror. Edit important: There is nothing in the room to reflect on, so it only reflects the mirror, thats what i ment.", "Can I visit Schengen countries on a Type-D Schengen Visa? I’m going to Germany for a semester exchange and I have a long-stay visa from Germany. Can I travel to the other Schengen states during this period with this visa or do I have to apply for a separate short stay Schengen visa? My visa is German national visa type D. It is for a duration of 4 months, i.e., longer than 90 days. It says on the visa that the long stay visa is valid in Deutschland, which is different from my earlier visa, which I had when I visited Germany earlier; that one was a short stay visa and said it was valid in Schengen Staten. Perhaps my current visa means that I can stay in Germany for a period of longer that 90 days can visit the other Schengen states if I don’t exceed the 90 day period.", "Looking at the properties for a Windows file I get two attributes, “Size” and “Size on disk,” and \"Size on disk\" is always larger. What do these two metrics mean?", "Should initial e's after h-dropping be capitalized? A new Victorian-set British novel begins sentences containing h-dropping with lower-case e's, as in \" 'e took my money, 'e did.\" This seems incorrect but I'm at a loss to find the rule.", "Show that any number of partitions of $2r + k$ into $r + k$ parts is the same for any $k$. I've tried this, but I haven't come up with anything; hence why I have nothing written here. But in any case, any sort of help is appreciated.", "Geometric intuition of improper integrals I am aware that the area under the curve of $\\frac{1}{x}$ is infinite yet the area under the curve of $\\frac{1}{x^2}$ is finite. Calculus and series wise, I understand what is going on, but I can't seem to get a good geometric intuition of the problem. Both curves can be shown to converge to $0$ (the curves themselves, not the area), and on the interval from $1$ to infinity, the two curves have nothing intrinsically different. Can someone please provide me with an good geometric intuition of what's going on? I can't find anything on the web, people seem to not want to explain it geometrically.", "Injecting variable values into javascript and HAML in RoR", "Unary operator expected #!/bin/bash SUBJECT=\"WARNING CPU USAGE HIGH\" TO=gmail id MESSAGE=/tmp/messages echo \"#######################\" &gt; $MESSAGE echo \"CPU statistics as follows..\" &gt;&gt; $MESSAGE mpstat &gt;&gt; $MESSAGE echo \"#######################\" &gt;&gt; $MESSAGE CPU_USAGE=$(top -b -n1 | awk '/^Cpu/ {print $2}' | cut -d. -f1) [ $CPU_USAGE -gt 85 ] &amp;&amp; mail -s \"$SUBJECT\" \"$TO\" &lt; $MESSAGE` ./cpu.sh: line 11: [: -gt: unary operator expected What might be the reason", "JSON+Node.js - Unexpected token o", "Possible to perform cross-database queries with PostgreSQL?", "What is needed for a game's stats to be saved? Last night I played a few games with my friend. While in the last game, I suddenly remembered something I had to do and was about to leave but my friend told me that I would lose my progress if I did so. I stayed until the end, through the scoreboard screen and quit while the next map was loading. Taking a look now, I can't see any of yesterday's games. I don't remember how much XP I had yesterday so there is no sure way for me to check that. I had gotten a dozen ribbon and I don't see them in the feed, but there could be specific conditions to be showing them. My questions then. If you quit a game early, do you lose progress / XP? What if you quit on the scoreboard? Do you need to wait for the next map to load to save your progress? Any idea why the games aren't showing up? Some of them I definitely waited for the next map to load. Is there a delay for them to be shown on Battlelog? Thanks.", "At the onset of my live usage in Ubuntu Gnome 15.10, use a bash script to set the colour of my gnome-terminal. The code used is link=/org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9 dconf write $link/background-transparency-percent '10' dconf write $link/scrollback-unlimited true dconf write $link/use-theme-colors false dconf write $link/use-theme-transparency false dconf write $link/use-transparent-background true dconf write $link/foreground-color 'rgb(0,43,54)' dconf write $link/background-color 'rgb(131,148,150)' The last 2 lines of the code give a key-value error. When I look at the dconf-editor org&gt;gnome&gt;terminal&gt;legacy&gt;profiles:&gt;{Default profile} the attributes foreground-color background-color are unavailable. How do I get rid of the error? Note: When done manually via gnome-ternimal&gt;Edit&gt;Profile Preferences&gt;Colours&gt;Built-in schemes the above attributes appear in the same location in dconf-editor.", "How to convert wstring into string?", "How to plot logistic regression decision boundary? I am running logistic regression on a small dataset which looks like this: After implementing gradient descent and the cost function, I am getting a 100% accuracy in the prediction stage, However I want to be sure that everything is in order so I am trying to plot the decision boundary line which separates the two datasets. Below I present plots showing the cost function and theta parameters. As can be seen, currently I am printing the decision boundary line incorrectly. Extracting data clear all; close all; clc; alpha = 0.01; num_iters = 1000; %% Plotting data x1 = linspace(0,3,50); mqtrue = 5; cqtrue = 30; dat1 = mqtrue*x1+5*randn(1,50); x2 = linspace(7,10,50); dat2 = mqtrue*x2 + (cqtrue + 5*randn(1,50)); x = [x1 x2]'; % X subplot(2,2,1); dat = [dat1 dat2]'; % Y scatter(x1, dat1); hold on; scatter(x2, dat2, '*'); hold on; classdata = (dat&gt;40); Computing Cost, Gradient and plotting % Setup the data matrix appropriately, and add ones for the intercept term [m, n] = size(x); % Add intercept term to x and X_test x = [ones(m, 1) x]; % Initialize fitting parameters theta = zeros(n + 1, 1); %initial_theta = [0.2; 0.2]; J_history = zeros(num_iters, 1); plot_x = [min(x(:,2))-2, max(x(:,2))+2] for iter = 1:num_iters % Compute and display initial cost and gradient [cost, grad] = logistic_costFunction(theta, x, classdata); theta = theta - alpha * grad; J_history(iter) = cost; fprintf('Iteration #%d - Cost = %d... \\r\\n',iter, cost); subplot(2,2,2); hold on; grid on; plot(iter, J_history(iter), '.r'); title(sprintf('Plot of cost against number of iterations. Cost is %g',J_history(iter))); xlabel('Iterations') ylabel('MSE') drawnow subplot(2,2,3); grid on; plot3(theta(1), theta(2), J_history(iter),'o') title(sprintf('Tita0 = %g, Tita1=%g', theta(1), theta(2))) xlabel('Tita0') ylabel('Tita1') zlabel('Cost') hold on; drawnow subplot(2,2,1); grid on; % Calculate the decision boundary line plot_y = theta(2).*plot_x + theta(1); % &lt;--- Boundary line % Plot, and adjust axes for better viewing plot(plot_x, plot_y) hold on; drawnow end fprintf('Cost at initial theta (zeros): %f\\n', cost); fprintf('Gradient at initial theta (zeros): \\n'); fprintf(' %f \\n', grad); The above code is implementing gradient descent correctly (I think) but I am still unable to show the boundary line plot. Any suggestions would be appreciated. logistic_costFunction.m function [J, grad] = logistic_costFunction(theta, X, y) % Initialize some useful values m = length(y); % number of training examples grad = zeros(size(theta)); h = sigmoid(X * theta); J = -(1 / m) * sum( (y .* log(h)) + ((1 - y) .* log(1 - h)) ); for i = 1 : size(theta, 1) grad(i) = (1 / m) * sum( (h - y) .* X(:, i) ); end end EDIT: As per the below answer by @Esmailian, now I have something like this: [m, n] = size(x); x1_class = [ones(m, 1) x1' dat1']; x2_class = [ones(m, 1) x2' dat2']; x = [x1_class ; x2_class]", "Lebesgue measurable set that is not a Borel measurable set", "Show that $\\dim H^0(\\mathbb{P}^n, \\mathcal{O}_{\\mathbb{P}^n}(m)) = {n + m \\choose n}$ if $m \\geq 0$, and $0$ if $m &lt; 0$. This statement came up in an algebraic geometry text with no explanation provided, and I'm trying to understand why it's true. Thoughts so far: Since $H^0(\\mathbb{P}^n, \\mathcal{O}_{\\mathbb{P}^n}(m))$ is the vector space of regular sections of $\\mathcal{O}_{\\mathbb{P}^n}(m)$ over $\\mathbb{P}^n$, we can try to find a basis. Since the regular sections are the degree $m$ polynomials in $x_0, \\dots, x_n$, it seems like the collection of degree $m$ monomials in $x_0, \\dots, x_n$ should work. But I don't see how there are ${n + m \\choose n}$ of these. Is it just a basic counting argument that I'm struggling with? On a side note, I think I understand what global sections of $\\mathcal{O}_{\\mathbb{P}^n}(m)$ look like, but how can we describe the regular sections over a distinguished open set $D(f)$? Is it something like degree $m$ polynomials with denominator $f$?", "Sometimes it’s possible to use either a noun adjunct or the possessive case. the shop door the shop’s door However, in certain phrases it’s not OK to do so. the ship’s crew (the ship crew is wrong) The questions are: How can one find out what to use in such cases as “the shop(’s) door” when a noun adjunct option and the possessive case option are available? How can one know which option is wrong in order to avoid the construction “ship crew”? Is there a difference in meaning between (a) the shop door (b) the shop’s door?", "Best way to list files in Java, sorted by Date Modified? I want to get a list of files in a directory, but I want to sort it such that the oldest files are first. My solution was to call File.listFiles and just resort the list based on File.lastModified, but I was wondering if there was a better way. Edit: My current solution, as suggested, is to use an anonymous Comparator: File[] files = directory.listFiles(); Arrays.sort(files, new Comparator&lt;File&gt;(){ public int compare(File f1, File f2) { return Long.valueOf(f1.lastModified()).compareTo(f2.lastModified()); } });" ]
medi_sts_stackexchange_dupe
Proving the Laplace transform of $t^n e^{at}$ using mathematical induction
Proof of Laplace transform of real number powers: $\mathcal{L} \{ t^n \} = \frac{n!}{s^{n + 1}}$
[ "What is \"anycast\" and how is it helpful? I'd never heard of anycast until a few seconds ago when I read \"\". The wikipedia \"\" article on it is quite formal and doesn't really evoke a mental picture of how it would be used. Can someone explain in a few informal sentences what \"anycast\" is, how you configure it (just in a general sense), and what its benefits are (what does it make easier)?", "Does the Rule of Two Serve any Actual Purpose? I know Darth Bane came up with the Rule of Two to ensure the survival of the Sith, but, in reality (or in the Star Wars reality), does it (or any Sith rule) serve a true purpose? And why does each successive Sith bother with it? Due to the nature of the Sith, Sith Lords tend toward arrogance and self-importance. Both the Sith master and Sith apprentice seem to regularly break the rule by training others. Deceit and personal interest over loyalty is a way of life for the Sith. What is to keep any Sith from following the Rule of Two (or any rule, for that matter) if it is against their own self interest? If a Sith Master can stay in power longer by training a 2nd apprentice and pitting the two against each other, is he really going to worry about the Rule of Two more than his own plans and survival? The Rule of Two also assumes that every Sith Master would place the survival of the Sith over his own survival, as opposed to attempting to ensure his own immortality in whatever way he could (like Plagueis). When you have a group that, by default, is arrogant and self-serving, as well as deceptive, why would they want the Sith to survive themselves? I can see how the Rule of Two, and any other Sith beliefs would be possible guidelines, but it terms of the nature of ambitious people (and the Sith are ambitious), it's hard to believe that each new Sith Master would follow this rule faithfully. So does this rule, or any Sith rule, actually work? Or is it more of a suggestion that is broken when convenient?", "Expressing Gain in Decibels?", "How can I record my screen on Ubuntu? The app I'm looking for has ideally all of these features: Can record in a format that can be played back easily on any platform and/or accepted by YouTube or another popular video site Can record just a window (instead of the whole screen), possibly selecting it with a mouse click Can start recording after a configurable delay (e.g., I launch the app and have time to do arrangements to my desktop/window before actual recording starts)", "Let $S=\\{\\{x\\}\\mid x \\in \\mathbb{R}\\}$. Is $\\sigma(S)$ included in the Borel $\\sigma$-algebra on $\\mathbb{R}$? Is $\\sigma(S)$ equivalent to the Borel $\\sigma$-algbrea on $\\mathbb{R}$? I think the answer to the first question is yes. Because the Borel sets include singletons, the Borel $\\sigma$-algebra must contain the smallest sigma-algebra of the set of all singletons. Here's my attempt at the second question: my answer would be no. Countable unions (or intersections) of countable sets are countable, so that any $X \\in \\sigma(S)$ is either countable or a compliment of a countable set. Therefore, the interval $(0,1) \\not \\in \\sigma (S)$ but it is included in the Borel $\\sigma$-algebra. My issue here is that I don't know how to formalize this statement, if it is even correct.", "How can I find $\\lim_{n\\to \\infty} a_n$ Let $$a_n=\\left(1-\\dfrac{1}{\\sqrt2}\\right)\\dots \\left(1-\\dfrac{1}{\\sqrt{n+1}}\\right),n\\ge1$$ Then find $\\lim_{n\\to \\infty} a_n$. How can I proceed? I am stuck at the first step. Please help.", "Probability of people attending same and different places $5$ tourists plan to attend Octoberfest. Each attends a location at random from the choices: Alpine, Bingeman, Concordia, Kitchener, Queens, Schwaben, Transylvania. Q What is the probability that two attend one location and three attend another same location? I get that there are $\\binom{5}{2}$ possibilities to create 2 groups. There are $\\binom{7}{2}$ ways to choose 2 places so shouldn't it be $\\frac{\\binom{7}{2}\\binom{5}{2}}{7^5}$?", "Fix half-installed package I am getting error while using sudo apt-get upgrade stating: dpkg: error processing libgfortran3:amd64 (--configure): package libgfortran3:amd64 is not ready for configuration cannot configure (current status `half-installed') Errors were encountered while processing: libgfortran3:amd64 E: Sub-process /usr/bin/dpkg returned an error code (1) It does not seem to block the installation/upgrade other applications. I believe this problem arose due to direct shutting down of my PC while the application was being upgraded. How can I fix this?", "Dealing with questions of nefarious intent", "Is There Any Way to get the template Name By full URL for example If the full url is www.example.com/hello-world I need a function that return the template name (page.php) I know that WordPress matches every url with regular expression to determine the query and decide which template to include. That's exactly what I need, a built in or (custom made) function that takes the URL and returns back the corresponding template", "In a Feistel cipher structure, what exactly does the \"round function $F$\" do? In a Feistel cipher structure, what exactly does the \"round function $F$\" do to the right half of the data, before taking XOR of the output with the left half of the data?", "How do I run specific sudo commands without a password? On one particular machine I often need to run sudo commands every now and then. I am fine with entering password on sudo in most of the cases. However there are three sudo commands I want to run without entering password: sudo reboot sudo shutdown -r now sudo shutdown -P now How can I exclude these commands from password protection to sudo?", "Both options affect colors in a similar way, but I can't figure out the difference.", "Introduction to statistics for mathematicians What is a good introduction to statistics for a mathematician who is already well-versed in probability? I have two distinct motivations for asking, which may well lead to different suggestions: I'd like to better understand the statistics motivation behind many problems considered by probabilists. I'd like to know how to better interpret the results of Monte Carlo simulations which I sometimes do to form mathematical conjectures. I'm open to the possibility that the best way to go is not to look for something like \"Statistics for Probabilists\" and just go to a more introductory source.", "\"Series\" – a noun of multitude similar to \"lot\", \"majority\", \"percentage\", \"proportion\"– verb agreement According to Garner's fourth edition Though serving as a plural when the need arises, series is ordinarily a singular noun. But it is also a noun of multitude, so that phrases such as a series of things take a plural verb. However, the collocation there {has been - is} a series has predominated in print sources. Common nouns of multitude: lot, majority, mass, minority, multitude, percentage, proportion, variety. However, reads When it has the singular sense of &quot;one set,&quot; it takes a singular verb, even when series is followed by of and a plural noun: A series of lectures is scheduled. Are these dissimilar usages stylic advice? Secondly, the inversion after there also chooses singular elsewhere; why is it so? When the verb precedes the noun percentage, a singular verb is required. That is, a higher percentage of them are, but there is a higher percentage of them.", "I had recently faced a problem: Solve the Diophantine Equation $x^2 - y! = 2001$. Solving it was quite easy. You show how $\\forall y \\ge 6$, $9|y!$ and since $3$ divides the RHS, it must divide the LHS and if $3|x^2 \\implies 9|x^2$ and so the LHS is divisible by $9$ and the RHS is not. Contradiction. Hence, the only solution is $(45, 4)$. That made me wonder, how we can solve the Diophantine Equation $x^2 - y! = 2016$. We cannot apply the same logic here. $2016$ is a multiple of $9$ and it is clear that $3|x$ and $9 \\nmid x$. How do I proceed from here?", "Possible to use draws from two distributions to get draw from distribution with density their product?", "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?", "Java; String replace (using regular expressions)? As part of a project for school, I need to replace a string from the form: 5 * x^3 - 6 * x^1 + 1 to something like: 5x&lt;sup&gt;3&lt;/sup&gt; - 6x&lt;sup&gt;1&lt;/sup&gt; + 1 I believe this can be done with regular expressions, but I don't know how to do it yet. Can you lend me a hand? P.S. The actual assignment is to implement a Polynomial Processing Java application, and I'm using this to pass polynomial.toString() from the model to the view, and I want do display it using html tags in a pretty way.", "I've just installed MariaDb on a fresh Ubuntu Gnome and ran afterwards where I set a decent admin password, removed the anonymous user etc. Afterwards I realized some strange behavior regarding the admin password: If I try to login from my normal user account using the command mysql -u root -p I always get an error: ERROR 1698 (28000): Access denied for user 'root'@'localhost' I'm pretty sure I entered the correct password which I set with earlier... When I run the command from root using sudo mysql -u root -p, I always get access to the database, no matter which password I actually enter... Is this normal behavior, am I doing anything wrong or have I somehow screwed up the installation?" ]
medi_sts_stackexchange_dupe
Putting the symbol hat over greek letter in text mode
How to type a circumflex over a greek letter in text mode?
[ "How do I get current date/time on the Windows command line in a suitable format for usage in a file/folder name? Update: Now that it's 2016 I'd use PowerShell for this unless there's a really compelling backwards-compatible reason for it, particularly because of the regional settings issue with using date. See @npocmaka's What's a Windows command line statement(s) I can use to get the current datetime in a format that I can put into a filename? I want to have a .bat file that zips up a directory into an archive with the current date and time as part of the name, for example, Code_2008-10-14_2257.zip. Is there any easy way I can do this, independent of the regional settings of the machine? I don't really mind about the date format, ideally it'd be yyyy-mm-dd, but anything simple is fine. So far I've got this, which on my machine gives me Tue_10_14_2008_230050_91: rem Get the datetime in a format that can go in a filename. set _my_datetime=%date%_%time% set _my_datetime=%_my_datetime: =_% set _my_datetime=%_my_datetime::=% set _my_datetime=%_my_datetime:/=_% set _my_datetime=%_my_datetime:.=_% rem Now use the timestamp by in a new ZIP file name. \"d:\\Program Files\\7-Zip\\7z.exe\" a -r Code_%_my_datetime%.zip Code I can live with this, but it seems a bit clunky. Ideally it'd be briefer and have the format mentioned earlier. I'm using Windows Server 2003 and Windows&nbsp;XP Professional. I don't want to install additional utilities to achieve this (although I realise there are some that will do nice date formatting).", "Sequence of triangles with exponentiated sides Let $a,b,c\\in\\Bbb R^+$. For any given $n\\in\\Bbb N$ there exists a triangle with sides $a^n,b^n,c^n$. Show that at least two of $a,b,c$ are equal. I know that you can create inequalities for $a^n,b^n,c^n$, but what's next?", "Naive visualization of space-time curvature", "Possible Duplicate: Sounds like a silly question, but bear with me.. If you go into Peet's Coffee and access the wifi, you're taken to a web page that requires a 4-digit code you get with a purchase. If you do the same at Starbucks you're taken to a page and asked to OK the terms of service. I want to build something similar for a local independent coffee shop, something that requires the user to write a little about themselves before they can access the Internet. I'm not sure which way to go -- looking for wifi routers that run an internal web server, or finding one that lets you direct users to an external website for authentication, somehow redirecting back to the access point once successful. Has anyone done anything like this and can share their experience?", "What is a combo update and how is it different than the regular update? What is a combo update and how is it different from a normal update?", "Convert bytes to a string", "why do academics write peer reviews?", "This may be a generic OOP question. I wanted to do a generic comparison between an interface and an abstract class on the basis of their usage. When would one want to use an interface and when would one want to use an abstract class?", "Bullied boy given immense powers by an alien race who destroys the human race Looking to identify a short story I read in a sci-fi anthology as a child, about an angry, bullied somewhat misanthropic boy who is given immense near-omnipotent powers by an alien intelligence. I read this in English, sometime in the late 1990s/early 2000s. He goes on to use this power to destroy the human race, which causes him to age terribly in a very short amount of time. At the end of the story he is a lonely old man stripped of the powers he held briefly, and is alone on an isolated Earth. The aliens then proceed to invade Earth.", "I can't delete more than 5 of my own posts in a single day. Is this a bug, or intended behavior? I'm trying to clean up old, crappy posts of mine. Similar-looking problem, but it claims to be :", "Smaug first appeared in TA 2770 as a mature Fire-drake. I'm not sure if there are canonical sources which say his age or maturity, but he must have been quite large and quite old at the time in order to destroy the city of Dale and capture Erebor. Since it is safe to assume that Smaug would have been attacking towns and stealing all of the gold and jewels he could get his claws on for most of his life, then he must have amassed a huge fortune prior to taking residence at Erebor. How did he transport his existing horde to Erebor? It seems unlikely that he would have simply abandoned all of his treasure that he had previously accumulated. EDIT: It has been established that Smaug was not a mature drake at the time of his appearance. However, he may have already had a small horde (compared to Erebor).", "Creating an index of quality from multiple variables to enable rank ordering", "So I have Destiny on PS3. If I were to buy the Legendary Edition (Containing House of Wolves and Dark Below Expansion) will I be able to play with my characters from my original Destiny disc? May sound silly, but I need confirmation.", "Using ArcPy to Switch Layout Templates? Using ArcMap 10.1, since there is not a way to control portrait or landscape of the layout view through python, is there a way to switch layout templates without opening a new mxd through python? Since there is a change layout template button it would be nice to have a python function to do the same.", "Regexp that matches valid regexps", "How can I echo a newline in a batch file? How can you you insert a newline from your batch file output? I want to do something like: echo hello\\nworld Which would output: hello world", "How are POST and GET variables handled in Python? In PHP you can just use $_POST for POST and $_GET for GET (Query string) variables. What's the equivalent in Python?", "Writing a list to a file with Python", "Why did Hogwarts Library carry a book containing information on horcruxes if it was a banned subject?", "What GUI applications are there to assist in generating graphics for TeX?" ]
medi_sts_stackexchange_dupe
Want to build my own Ubuntu from source code
How to create a Customized Ubuntu Server ISO?
[ "It seems that KNN is a discriminative learning algorithm but I can't seem to find any online sources confirming this. Is KNN a discriminative learning algorithm?", "How much of an $n$-dimensional manifold can we embed into $\\mathbb{R}^n$? I observed some naive examples. Spheres, for example, when we cut out one point, can be embedded into $\\mathbb{R}^n$. And if we cut out a measure zero set of a projective space, it can be embedded into the Euclidean space of the same dimension. So I wonder if all manifolds can be embedded into a same dimensional Euclidean space when we cut out a measure zero set? Can anyone prove it or disprove it by giving me some counterexamples?", "Buffering in meters/km using WGS84 layers using QGIS I am using QGIS 1.7.4-Wroclaw and working with an SHP layer in WGS84. I want to buffer out to a certain number of kilometers from this layer using the ftools buffer tool. I understand that the buffer tool always uses the layer units, which for WGS84 are decimal degrees. We all know that degrees don't convert consistently to meters, so how should I go about making my buffers? Is it necessary for me to convert the shapefiles to a different CRS that natively uses meters? If so, how do I choose one?", "Why does sudo change the PATH?", "I noticed that $f(x) = x\\phi(x)$ seems to be one-to-one, where $\\phi(x)$ is Euler's Phi function. In particular, I'm writing some numerical python code and the line I have looks something like sorted([n*phi(n) for n in range(1,1000)]) and there are no duplicates in the list. First, is it one-to-one? Second, if it is, is there a simple proof sketch?", "Nested cross validation for model selection How can one use nested cross validation for model selection? From what I read online, nested CV works as follows: There is the inner CV loop, where we may conduct a grid search (e.g. running K-fold for every available model, e.g. combination of hyperparameters/features) There is the outer CV loop, where we measure the performance of the model that won in the inner fold, on a separate external fold. At the end of this process we end up with $K$ models ($K$ being the number of folds in the outer loop). These models are the ones that won in the grid search within the inner CV, and they are likely different (e.g. SVMs with different kernels, trained with possibly different features, depending on the grid search). How do I choose a model from this output? It looks to me that selecting the best model out of those $K$ winning models would not be a fair comparison since each model was trained and tested on different parts of the dataset. So how can I use nested CV for model selection? Also I have read threads discussing how nested model selection is useful for analyzing the learning procedure. What types of analysis /checks can I do with the scores that I get from the outer K folds?", "How do I disable client side decoration globally in GNOME? I'm using Ubuntu GNOME 17.04. One encounters client side decoration (CSD) as most of the official GNOME applications (Nautilus, gedit, Evince etc.) use (a combined title bar and toolbar, see linked screenshots) whereas other applications don't. This feature is disabled in Unity, all the applications use traditional separate title bars. Screenshots (from ): Nautilus with GtkHeaderBar Nautilus without GtkHeaderBar For consistency I want to disable GtkHeaderBars globally (in all the applications using it) and use separate title bars. Is there a way to achieve that? I have heard of gtk3-nocsd package, but couldn't make it work with GNOME for all the applications.", "Cannot find Background Images feature in Blender 2.8", "Is the integral $\\int_0^\\infty \\frac{\\mathrm{d} x}{(1+x^2)(1+x^a)}$ equal for all $a \\neq 0$? Let $a$ be a non-zero real number. Is it true that the value of $$\\int\\limits_0^\\infty \\frac{\\mathrm{d} x}{(1+x^2)(1+x^a)}$$ is independent on $a$?", "Browsers redirect to level3.com if domain does not exist If I enter a URL incorrectly, my Firefox browser occasionally redirects me to This occurs in Chrome too. I've restarted Firefox in safe mode, and it still happens I've restarted Windows 10 in safe mode, and it still happens I've installed Hitman Pro Alert. The scan found nothing, and could not prevent the redirect. My HOSTS file is clean. My ethernet settings IPv4 properties use Google's DNS: 8.8.8.8 and 8.8.4.4 The only other issue I have is when visiting which produces numerous pop-up windows, unless I disable scripts. I have Comodo Internet Security (antivirus and firewall) installed, and it identifies nothing. Any other suggestions?", "cant install or remove anything on 18.04 cause of DPKG error", "Why can we use sample variance of the treatment group to estimate population variance of the controls?", "get exact file create time windows 7 I'm trying to figure out exactly when I created a file. Windows 7 thinks I don't know how to subtract two times, and tells me it was created \"1 hour ago.\" I need a little more detail than this, but I can't seem to find a setting to toggle this \"feature\" off. Example below:", "no wifi in Ubuntu 15.04 I cannot see WiFi option in my Ubuntu 15.04. What should I do? Revert asap lspci -nnk | grep 0280 -A2 output:- 03:00.0 Network controller [0280]: Qualcomm Atheros Device [168c:0042] (rev 30) Subsystem: Foxconn International, Inc. Device [105b:e09a] rfkill list output:- 0: hci0: Bluetooth Soft blocked: no Hard blocked: no 1: acer-wireless: Wireless LAN Soft blocked: no Hard blocked: no dmesg | grep ath [ 9.545199] ath10k_pci 0000:03:00.0: pci irq msi-x interrupts 8 irq_mode 0 reset_mode 0 [ 10.029684] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/cal-pci-0000:03:00.0.bin failed with error -2 [ 10.029701] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA9377/hw1.0/firmware-5.bin failed with error -2 [ 10.029704] ath10k_pci 0000:03:00.0: could not fetch firmware file 'ath10k/QCA9377/hw1.0/firmware-5.bin': -2 [ 10.029711] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA9377/hw1.0/firmware-4.bin failed with error -2 [ 10.029713] ath10k_pci 0000:03:00.0: could not fetch firmware file 'ath10k/QCA9377/hw1.0/firmware-4.bin': -2 [ 10.029719] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA9377/hw1.0/firmware-3.bin failed with error -2 [ 10.029721] ath10k_pci 0000:03:00.0: could not fetch firmware file 'ath10k/QCA9377/hw1.0/firmware-3.bin': -2 [ 10.029726] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA9377/hw1.0/firmware-2.bin failed with error -2 [ 10.029728] ath10k_pci 0000:03:00.0: could not fetch firmware file 'ath10k/QCA9377/hw1.0/firmware-2.bin': -2 [ 10.029733] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA9377/hw1.0/firmware.bin failed with error -2 [ 10.029735] ath10k_pci 0000:03:00.0: could not fetch firmware (-2) [ 10.029737] ath10k_pci 0000:03:00.0: could not fetch firmware files (-2) [ 10.029739] ath10k_pci 0000:03:00.0: could not probe fw (-2)", "Which Harry Potter works are considered canon?", "Solving infinite sums with primes. Let $p_n$ denote the $n$'th prime number. How would one go about proving that infinite products like: $$\\prod_{k=1}^\\infty1 - \\frac{1}{(p_k)^2} = \\frac{6}{\\pi^2}$$ or $$\\prod_{k=1}^\\infty\\frac{{p_k}^2}{{p_k}^2 - 1} = \\frac{\\pi^2}{6}$$ are correct? Is there any way to prove it except by exhaustion?", "How do i prove invertibility of this linear transformation", "Coffeescript existential operator sometimes checks against undefined, but not always", "Oven temperature for multiple ducks?", "I know I use them, and my peers use them, but how much does the average user actually use tooltips to figure out functionality?" ]
medi_sts_stackexchange_dupe
trouble converting data from string vector to floats and doubles
Can't convert string into float/double
[ "Let $\\mathbb S = \\varnothing$. Then from the definition: $ \\bigcap \\mathbb S = \\left\\{{x: \\forall X \\in \\mathbb S: x \\in X}\\right\\}$ Consider any $x \\in \\mathbb U$. Then as $\\mathbb S = \\varnothing$, it follows that: $\\forall X \\in \\mathbb S: x \\in X$ from the definition of vacuous truth. It follows directly that: $\\bigcap \\mathbb S = \\left\\{{x: x \\in \\mathbb U}\\right\\}$ That is: $\\bigcap \\mathbb S = \\mathbb U$. () Proofwiki uses the above \"proof\" to \"prove\" that intersection of the empty set is the whole universe. My question is, is the use of vacuous truth really allowed in axiomatic set theory, like ZFC? I don't see how the use of vacuous truth is justified. The next problem I can think of is that we cannot really \"define\" the elements of empty set (to my knowledge, there is no element in empty set) so how can we then prove as the above proof did? This seems to contradict the use of vacuous truth. And of course, there is issue of using the whole universe as a set, and I don't think this is allowed.... (Maybe proof above is using a different axiomatic set theory, as I am using ZF-minded thoughts...)", "How do I put big brackets under different parts of an equation to attach text labels? How do I put big brackets under different parts of an equation so that I can write, e.g., text specific to these parts? For example: f = x^3 + 2 |___| |__| | | text 1 text 2", "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.", "Motion tracked Video doesn't show up in the render or in the compositing tab I tried to add a 3D object to a clip by following a youtube video. But clip doesn't show up in the render or in the compositing tab. It show up even in the camera view. I didn't change any settings. please help. Thank you. And the rendered images has only the cube in it like in the picture above.", "Reason of existense of the extra space in align environment and removal of it between two align environments This is a follow-up question regarding the extra vertical space in amsmath's align environment. Why when in use align uses so much vertical space in contrast with other environments like for example tabular or itemize? \\documentclass[12pt]{article} \\usepackage[top=0.3in, bottom=1.2in, left=0.8in, right=0.8in]{geometry} \\usepackage[fleqn]{amsmath} \\usepackage{unicode-math} \\setlength{\\mathindent}{0cm} \\newcommand{\\3}{\\vspace{0.3cm}} \\title{} \\author{} \\date{} \\begin{document} 70 \\begin{align*} &amp;e^{jz}=\\cos z+j\\sin z\\\\ &amp;\\cos z=(1/2)(2\\cos z)=\\\\ &amp;=(1/2)(2\\cos z+j\\sin z-j\\sin z)=\\\\ &amp;=(1/2)(\\cos z+j\\sin z+\\cos z-j\\sin z)=\\\\ &amp;=(1/2)(e^{jz}+e^{-jz}) \\end{align*} 80 \\begin{itemize} \\item Item 1 \\item Item 2 \\end{itemize} 90 \\begin{tabular}{c|c} Entry 1&amp; Entry 2 \\\\ Entry 3&amp; Entry 4 \\end{tabular} \\end{document} Also another image of the huge space between two align environments. Even without the blank lines the space is a lot. \\begin{document} \\begin{multicols*}{2} \\begin{align*} &amp;\\text{70}\\\\ &amp;e^{jz}=\\cos z+j\\sin z\\\\ &amp;\\cos z=(1/2)(2\\cos z)=\\\\ &amp;=(1/2)(2\\cos z+j\\sin z-j\\sin z)=\\\\ &amp;=(1/2)(\\cos z+j\\sin z+\\cos z-j\\sin z)=\\\\ &amp;=(1/2)(e^{jz}+e^{-jz}) \\end{align*} \\begin{align*} &amp;\\text{207}\\\\ &amp;x(t)=A_{c}\\cos \\theta(t)\\\\ &amp;\\theta(t)=2\\pi f_{c}t+\\phi(t)\\\\ &amp;\\phi(t)=K_{p}m(t)\\\\ &amp;x(t)=A_{c}\\cos[2\\pi f_{c}t+K_{p}m(t)] \\end{align*} Edit I: As I mention in a comment I have tried the following code and there is no difference between two align environments, only between text and an align environment. Why doesn't work in the case of the two environments and how can I fix it so to work? Also what is the reason that this space exists? \\setlength{\\abovedisplayskip}{0pt} \\setlength{\\belowdisplayskip}{0pt} \\setlength{\\abovedisplayshortskip}{0pt} \\setlength{\\belowdisplayshortskip}{0pt}", "My has failed me. In Python, are the following two tests for equality equivalent? n = 5 # Test one. if n == 5: print 'Yay!' # Test two. if n is 5: print 'Yay!' Does this hold true for objects where you would be comparing instances (a list say)? Okay, so this kind of answers my question: L = [] L.append(1) if L == [1]: print 'Yay!' # Holds true, but... if L is [1]: print 'Yay!' # Doesn't. So == tests value where is tests to see if they are the same object?", "In the construction of types of numbers, we have the following sequence: $$\\mathbb{R} \\subset \\mathbb{C} \\subset \\mathbb{H} \\subset \\mathbb{O} \\subset \\mathbb{S}$$ or: $$2^0 \\mathrm{-ions} \\subset 2^1 \\mathrm{-ions} \\subset 2^2 \\mathrm{-ions} \\subset 2^3 \\mathrm{-ions} \\subset 2^4 \\mathrm{-ions} $$ or: \"Reals\" $\\subset$ \"Complex\" $\\subset$ \"Quaternions\" $\\subset$ \"Octonions\" $\\subset$ \"Sedenions\" With the following \"properties\": From $\\mathbb{R}$ to $\\mathbb{C}$ you gain \"algebraic-closure\"-ness (but you throw away ordering). From $\\mathbb{C}$ to $\\mathbb{H}$ we throw away commutativity. From $\\mathbb{H}$ to $\\mathbb{O}$ we throw away associativity. From $\\mathbb{O}$ to $\\mathbb{S}$ we throw away multiplicative normedness. The question is, what lies on the right side of $\\mathbb{S}$, and what do you lose when you go from $\\mathbb{S}$ to one of these objects ?", "Embedding images explodes generated PDF size", "Make apt-get (or aptitude) run with -y but not prompt for replacement of configuration files? When running apt-get -y install &lt;packages ...&gt; on Ubuntu 10.04 I would like apt-get (or aptitude if that makes it easier) to not prompt me when installing additional dependencies (behavior of -y as I understand it) and but not prompt me about overwriting configuration files, instead assume to keep the existing ones always (which is usually the default). Unfortunately --trivial-only seems to be the inverse of -y and not affect the prompt that is shown, according to the man page. In particular packages auch as samba, nullmailer, localepurge and lighttpd have forced me to interact with the terminal, even though the whole procedure was scripted and meant to be non-interactive.", "Are all algebraic integers with absolute value 1 roots of unity?", "How to reduce fireflies in Cycles? I often use Cycles' built in Glass BSDF shader to achieve realistic refraction effects, but in many cases, it seems that Cycles' glass caustics creates an unfortunately large number of fireflies (pixels that are abnormally bright relative to their surroundings). In some models of mine, even when I render for 3000 or more samples/pixel, my final image is still covered in fireflies. While I can improve this in many cases by increasing the total amount of light available in the scene, this loses a lot of the potency of the refractive effects I'm looking for, especially in scenes with low light levels. So my question is, how can I reduce the amount of fireflies while using Cycles' caustics without sacrificing the quality of the refractive effects? Note: I am aware that Cycles' caustics will perform much better once Cycles has full support for bidirectional path-tracing, but it looks unlikely that that will become , unfortunately.", "When I play Black Ops 2, it seems that my xbox controller is inverted. Example: if I press up, my character looks down and vice versa. It was not like this before. Does anyone know how to reset the controller back to its original settings?", "Alignment issue in 'Your Sites' section in the Android app", "How to EFI install Ubuntu? On trying to install Ubuntu 12.10 Desktop amd64 to a desktop pc using a ga a75 ud4h motherboard (which is using an AMD 3870k APU with a new 1TB HDD) following the advice in the and have now got to grub option screen for EFI install. Booting live dvd in EFI mode gives &quot;Secure Boot is not enabled&quot; just before grub kernel option list shows. If the option to &quot;Install Ubuntu&quot; or &quot;Try Ubuntu without installing&quot; is selected gives &quot;can not read cd/0&quot; and &quot;the kernel must be loaded first&quot; errors. Using DVD or USB installation media gives same results and there has never been at any point an UEFI entry in bios/firmware settings or boot device list/s. It might be helpful to say that have had an alternative non-linux OS installing EFI mode on this hardware giving a GPT installation automagically using USB installation media when the hdd space was completely unallocated space. The USB device was listed under hard drives in bios/firmware one time boot list and did not have an UEFI entry. i.e. it installed EFI although no EFI or UEFI entry was assigned to the device like what is shown in many tutorials regarding UEFI installs. The only constructive information regarding this question is found at and but can not work out the answer. Checking md5sum and sha256 checksums on downloaded .iso and used &quot;Check disk for defects&quot; to check burned .iso when booting DVD in BIOS mode. No errors found. &quot;Check disk for defects&quot; will not run (or any other options) when DVD booted in EFI mode. Due to trying different distributions as well as older and newer flavours of Ubuntu all giving similar results in that no options from grub option screen in EFI mode are bootable (if getting that far) as well as spending time searching Ubuntu Forums have come to conclusion the firmware on this system is hardcoded to handle Microsoft EFI files only. After installing Windows EFI mode here is a and here is a link to a thread i started at which may be helpful to others building a dual boot system. Installing BIOS mode and using Boot-Repair to install grub-efi is not a complete solution due to the inability of using installation media EFI mode for recovery and maintenance due to the &quot;you need to load kernel first&quot; and &quot;can not read cd/files&quot; errors as described when trying to boot installation media using EFI. Secure Boot is not an issue. Using msinfo32 from windows confirms Secure Boot is not supported on this hardware. How to edit kernel or load kernel for EFI install? = How to EFI install Ubuntu? PLEASE CONSIDER: This is not a dupe! The linked question that is indicated to having a working answer does not have a working answer to &quot;###How to edit kernel or load kernel for EFI install? = How to EFI install Ubuntu?&quot; therefor the workaround of installing using BIOS then manually install grub-efi without renaming bootloaders which works to get Ubuntu booting using EFI or using boot-repair to do this (and many unnecessary &quot;fixes&quot; if recommended repair is not changed in advanced settings) also works. This goes some way to confirming hardcoding of firmware is not stopping grub the boot manager seeing the vmlinuz.efi files in /casper on DVD. I would like an answer to this so would like this question to be reopened.", "Am I eligible for hats if I join a Stack Exchange site after the start of Winter-Bash?", "I read the definition of as $$W ~=~ \\vec{F} \\cdot \\vec{d}$$ $$\\text{ Work = (Force) $\\cdot$ (Distance)}.$$ If a book is there on the table, no work is done as no distance is covered. If I hold up a book in my hand and my arm is stretched, if no work is being done, where is my energy going?", "I have tried some of the solutions posted elsewhere in the support forum, one seemed like it worked but after a steam update i found myself back at square one I am a new Linux user and am already at a learning curve :) Thanks for any help Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: libgl1-mesa-glx:i386 : Depends: libglapi-mesa:i386 (= 10.1.3-0ubuntu0.3) unity-control-center : Depends: libcheese-gtk23 (&gt;= 3.4.0) but it is not going to be installed Depends: libcheese7 (&gt;= 3.0.1) but it is not going to be installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. Press return to continue:", "Determine the Galois group of $\\mathbb{Q}(\\sqrt{a+b\\sqrt{d}})$", "robots meta not blocking indexing We have a staging version of our website to test changes on at trailheadpaddleshack.ca/staging1. This never appeared in search before. Recently the staging site has appeared on Google and is affecting our search results. I'm trying to figure out how the pages got there and how to remove them. The pages have always had &lt;meta name=\"robots\" content=\"noindex, nofollow\"&gt; in the head. I am kinda new at this but was under the impression this should prevent Google from showing my site in results. I am pretty sure the results appeared in google after I accidently copy pasted some codes from the staging site to the live site that contained links to pages on the staging site. If anyone can point me in the right direction to figure out what happened and prevent it from happening again would be much appreciated. robots.txt looks like this: User-agent: * Disallow: /calendar-2/action~posterboard/ Disallow: /calendar-2/action~agenda/ Disallow: /calendar-2/action~oneday/ Disallow: /calendar-2/action~month/ Disallow: /calendar-2/action~week/ Disallow: /calendar-2/action~stream/ #Begin Attracta SEO Tools Sitemap. Do not remove sitemap: http://cdn.attracta.com/sitemap/4035112.xml.gz #End Attracta SEO Tools Sitemap. Do not remove I also tried adding an X-Robots-Tag header and submited the site to be re-crawled. Did that a few days ago and I still see no changes. Here are the HTTP headers according to \"Fetch as Google\": HTTP/1.1 200 OK X-Robots-Tag: noindex,nofollow Vary: Accept-Encoding Transfer-Encoding: chunked Date: Sun, 24 May 2015 16:26:49 GMT Server: LiteSpeed Connection: close X-Pingback: http://trailheadpaddleshack.ca/staging1/xmlrpc.php Content-Type: text/html; charset=UTF-8 Link: &lt;http://trailheadpaddleshack.ca/staging1/?p=170&gt;; rel=shortlink I am now faced with a bunch of results I need to remove from Google asap as they contain out of date information and are affecting our search results. Webmaster Tools has something for removal of a single URL but I am looking to remove the entire /staging1/ subfolder. Any tips?", "Is there a way to get DateTime value from timestamp type column?" ]
medi_sts_stackexchange_dupe
Lowercase letter at the beginning of a question which is following another question?
Using a question mark mid-sentence
[ "Whenever I play a PC game with the directional keys, I can only press two buttons at a time. For instance if I am playing a shooter like R-Type, I cannot hold down the fire button while moving diagonally at the same time. The computer simply ignores the extra button press. How do I remove this limit so I can shoot while moving diagonally? This limitation seems to apply for every game. I am running Windows 7 if it makes any difference. I noticed the same problem back when I used Windows XP.", "\"Track changes\" in LaTeX I am writing a scientific paper with my collaborator. We have submitted a version to a journal and now we got a review from them, so we need to fix a few things. In Microsoft Word there is the option to \"track changes\", which displays the deleted text as crossed out and the new text bolded (if I remember the details correctly). Is there a way to achieve a similar result in LaTeX? I was thinking to create a new file for the revised version and then write a script which would basically compare the two files and make the differences either bold or crossed out before sending it to latex. Is there a tool that already does it?", "How do I list all available shell builtin commands? We know bash supports number of buitin commands like: $ type type cd help command type is a shell builtin cd is a shell builtin help is a shell builtin command is a shell builtin I want to get list of all available shell builtin commands. How do I do that by command-line?", "Given 4 integers, $a, b, c, d > 0$, does $\\frac{a}{b} < \\frac{c}{d}$ imply $\\frac{a}{b} < \\frac{a+c}{b+d} < \\frac{c}{d}$? We were trying to come up with an easy way to generate a rational number in between two existing rational numbers with a fairly low numerator and denominator (the way we were doing this earlier was to find the average of the two rationals, but that results in a denominator of up to $c * d$. Does this inequality hold for all values of $a, b, c, d$?", "What do bookcases do for enchanting?", "Can I get tourist visa on arrival at Dubai airport?", "Handle .bib in subfiles I have a problem very similar to the question being asked in . My .bib is references in main.tex. When compiling main, everything works like a charm. Working on the subfiles, I have two issues though (which are most likely related): I can't access the bib with auto-completion When compiling the subfile, it doesn't insert the citations. I tried including \\bibliographystyle{plainnat} \\bibliography{mybib} in the subfiles, which also worked smoothly. Obviously, the bibs are included in every chapter of the document when compiling main.tex, then. I tried setting a global boolean in main.tex: \\newboolean{printBibInSubfiles} \\setboolean{printBibInSubfiles}{false} and in the subfiles: \\ifthenelse{\\boolean{printBibInSubfiles}} {} {\\bibliographystyle{plainnat} \\bibliography{../betterbib.bib}} For some reason, then setting the boolean to false, the \"bibliography\"-header was printed in the subfiles as well as for the main file, but there was no output of citations under any of the \"bibliography\"-headers. Furthermore, compiling only the subfiles didn't work correctly. My document structure is the following: main.tex: \\begin[document] ... \\subfile{sub/dataprocessing} ... \\bibliographystyle{plainnat} \\bibliography{mybib} \\end{document} the subfiles: \\documentclass[../main.tex]{subfiles} \\begin{document} ... \\cite{Random2014} ... \\end{document} After all this explanation: the only thing I want is to access the .bib from the subfiles without having to manually uncommenting something when compiling the main file. Any takers? PS: Obviously, I also tried the solution provided in \"\" but couldn't get it to work. I don't know whether that would solve my problem anyway, since I don't have the \\printbibliography-issue of the thread opener.", "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?", "When should I start the DLC? I'm late to the Borderlands 2 party, but I picked up the Season Pass for a steal. I'm still only in the teens as far as my level is concerned. However, there are now 3 DLC packs out and I've got them all installed. Sometimes it's tempting to go away from the main quest and just jump into something new and potentially interesting. In BL1, I played through the DLC between playthroughs of the game, treating the add-ons like continuations of the game post-final-boss. I'm not sure if this is a good idea in BL2 (or even if it was smart in BL1, honestly...) Is there a recommended level for starting the DLCs? Will I encounter enemies that are too hard if I go early, or too easy if I go late? Are there some weapons or quest rewards that I really can't get the most of until after I'm a certain level?", "Is it possible with GEE to export all the images in an image collection?", "why Booleans slow my computer more than expected", "Is the product of symmetric positive semidefinite matrices positive definite? I see on Wikipedia that the product of two commuting symmetric positive definite matrices is also positive definite. Does the same result hold for the product of two positive semidefinite matrices? My proof of the positive definite case falls apart for the semidefinite case because of the possibility of division by zero...", "Why was the plan for the Purple Wedding so complicated? Spoilers for A Storm of Swords / Season 4 episode 2 \"The Lion and the Rose\". At the Purple Wedding, Littlefinger and Lady Olenna Tyrell perform their plan of poisoning King Joffrey. A short summary of their plan: Littlefinger orders Ser Dontos Hollard to give Sansa Stark a beautiful silver hairnet adorned with amethysts. At least some of the amethysts are actually strangler crystals in disguise. Ser Dontos also, still under orders of Littlefinger, urges Sansa to wear the hairnet at the wedding, which she then does. At the wedding, when Lady Olenna greets Sansa, she fusses her hairnet a bit, while secretly taking one of the strangler crystals. Later, during the wedding, Lady Olenna puts the crystal in Joffrey's royal cup, poisoning him. But why was their plan so complicated? Why couldn't Lady Olenna just bring a strangler crystal with her to the wedding (as suggested in )? Then they wouldn't depend on Ser Dontos and Sansa who could unknowingly have done something to prevent the success of the plan. The only reason that I could think of, is Littlefinger and Lady Olenna plan for Sansa (and Tyrion as her husband with her) to take the blame for Joffrey's death. They put the crystals on her person, so that upon examination it would clearly show that Sansa had the murder weapon on her. But Littlefinger had a plan he did not tell Lady Olenna, namely rescuing Sansa during the chaos ensuing the murder (and thereby leaving Tyrion behind as the only accused). Is there anything confirming or debunking this theory? If my theory doesn't hold up, is there another explanation for why the plan was so needlessly complicated?", "Numbering side-by-side equations or inline equations", "Evaluating the limit of a sequence given by recurrence relation $a_1=\\sqrt2$, $a_{n+1}=\\sqrt{2+a_n}$. Is my solution correct? 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?", "Accepting an answer should automatically upvote it as well", "Assuming there are 5 items in the settings file (MySetting1 to MySetting5), why does PropertyValues have 0 items while Properties has the correct number? Console.WriteLine( Properties.Settings.Default.PropertyValues.Count); // Displays 0 Console.WriteLine( Properties.Settings.Default.Properties.Count); // Displays 5", "How to link a variable of a material to another material?", "How can I cure lycanthropy? I really want to get rid of it. I've been through the whole companion’s quest line and cured Kodlak's. I killed all 5 witches and have 4 of the heads left in my inventory. I've been back to that same flame and tried to use it with the head, but nothing going; activating it does nothing. I've heard this is how you cure it; however I have not heard a first-hand account of anyone actually curing it. If you have, can you explain what you do? Do you go to the same tomb where you fought Kodlak's beast form? Do you do something special with the witch head in your inventory, or just have it in there and activate the harbinger flame or whatever?", "Non in front of hyphenated adjective If one wishes to add \"non\" in front of a hyphenated adjective, should one add a hyphen after \"non?\"" ]
medi_sts_stackexchange_dupe
Javascript Order of Operations with Dynamically Created Elements
Event binding on dynamically created elements?
[ "My primary router has trouble extending wifi coverage to some bedrooms in the house so I am planning to add a second router to extend the wifi network using the wired Ethernet ports in one of the areas of poor coverage. Basic layout - The ISP's router is in my family room downstairs (fiber connection) and the internet connects to the fiber via a box in an upstairs closet. I purchased and installed an unmanaged Ethernet switch/splitter. In the upstairs closet where all of the Ethernet wires meet, the family room Ethernet cable was plugged into the ISP's box. I disconnected this wire and replaced it with a CAT5 cable running from the ISP's box in the closet to the Ethernet switch's port 1. I think connected the family room Ethernet cable to port 2 and did the same in order for all the remaining Ethernet cables to various bedrooms. So far, the switch is working fine. I have wifi working with internet coming off of the router in the living room so I believe the switch is installed correctly otherwise that wifi should not have internet coming off of the living room jack. Here is where things go awry - I took my second wifi router and connected the WAN/Yellow port to the Ethernet wall jack in another bedroom. I then connected a lap top to one of the Ethernet ports on this router and found \"no internet\" after connecting. On a whim, I changed the connection so that the router was connected to the Ethernet wall jack in one of the white ports but with the same results. I don't think this counts as cascading and I don't really need a new network since I do not share the connection with any non-family members. The router has been reset to factory settings to clear out any old instructions - but I still can't get it to connect to the internet or access the router to change the settings even - it's a netgear and the routerlogin.net will not let me access the router even when I am on the working WIFI for internet and have a cable running from the laptop to the netgear router. I could use some help - just trying to extend the wifi range and it seems like it should be much less complicated. Tried following instructions in several other posts and they did not work for me - because I cannot access the router to change any settings.", "google search index what is fresh content I read that sites have good reputation in google search index if it is fresh content. what does fresh content means from google's point of view? I have many pages. I have created articles and tutorials. These page dosent change except the comments which are at the bottom. I have made this page as static (.html) and never edit cause that is the information i wanted to be ever. cause the concept is not going to change? with these parameters how to judge whether my page is fresh or not?", "I want to learn Linux Kernel and I've downloaded the latest kernel version. Now I want to configure Linux with make menuconfig and I'm receiving an error: Arch/x86/Makefile:184 Compiler lacks asm-goto support... Can somebody help me?", "Show $f(x)=x\\ln x$ is not uniformly continuous Show $f:(0,\\infty)\\rightarrow \\mathbb{R}, f(x)=x\\ln x$ on $(0,\\infty)$ is not uniformly continuous. I think that the general way to prove that something is not continuous in a metric space is to let $\\epsilon=...$ and show that $\\forall\\delta&gt;0$, $d&#39;(f(x)-f(y))&gt;\\epsilon$. I can't use the Mean Value Theorem because we haven't gone over it yet. Here's an attempt: Let $\\epsilon=1$. Without loss of generality, let $x&gt;y&gt;0$. $|x\\ln x-y\\ln y|&lt;|(x-y)(\\ln x)|\\leq|x-y||\\ln x|$...$\\delta=\\frac{\\epsilon}{\\ln x}$ and therefore doesn't work for all $x$?", "What is wrong with this query? (Unknown error parsing query) When I run the following query in query editor I get this error. Error Unknown error parsing query Query SELECT Id, OwnerId,Account.OwnerId FROM Contact where OwnerId = Account.OwnerId limit 100 Does anybody know what the problem is?", "Topical example: 'There was a scuffle outside the local pub. There appears to be no connection with religious extremists.' ...but now you're wondering if there was. It's a nasty tactic used to raise fear and doubt - deliberately calling attention to something by explicitly denying it. What's the term for this?", "Paper status changed to “Decision in Process” rapidly after initial submission", "I'm having trouble writing a regular expression that matches valid IPv6 addresses, including those in their compressed form (with :: or leading zeros omitted from each byte pair). Can someone suggest a regular expression that would fulfill the requirement? I'm considering expanding each byte pair and matching the result with a simpler regex.", "Getting raw SQL query string from PDO prepared statements Is there a way to get the raw SQL string executed when calling PDOStatement::execute() on a prepared statement? For debugging purposes this would be extremely useful.", "I've been trying to figure out how to change the chart from scientific notation to just show the 5 digit numbers. I've tried scale and scale ticks with not success. How can I change the y-axis and data values to show the decimals not in scientific notation? \\begin{tikzpicture} \\centering \\begin{axis}[ width=300pt, height=250pt, axis lines*=left, % Don't display the top and right lines ybar, % Display it as a bargraph enlarge y limits={upper,value=0.2}, legend style={at={(0.5,-0.20)}, % -.20 y-axis anchor=north,legend columns=-1}, ylabel={Densities}, nodes near coords, every node near coord/.append style={ anchor=mid west, rotate=90}, symbolic x coords={Class1,Class3,Class5,Class7,Class9,Class11,Class13,Class15,Class17,Class19,Class21,Class23}, xtick=data, xticklabel style={ inner sep=0pt, anchor=north east, rotate=70 }, nodes near coords align={vertical}, ] \\addplot coordinates { (Class1,0.0968) (Class3,0.0887) (Class5,0.1452) (Class7,0.0726) (Class9,0.0403) (Class11,0.0081) (Class13,0.0161) (Class15,0.0000) (Class17,0.0161) (Class19,0.0081) (Class21,0.0000) (Class23,0.0081) }; \\end{axis} \\end{tikzpicture}", "Can't indent heredoc to match code block's indentation If there's a \"First World Problems\" for scripting, this would be it. I have the following code in a script I'm updating: if [ $diffLines -eq 1 ]; then dateLastChanged=$(stat --format '%y' /.bbdata | awk '{print $1\" \"$2}' | sed 's/\\.[0-9]*//g') mailx -r \"Systems and Operations &lt;sysadmin@[redacted].edu&gt;\" -s \"Warning Stale BB Data\" jadavis6@[redacted].edu &lt;&lt;EOI Last Change: $dateLastChanged This is an automated warning of stale data for the UNC-G Blackboard Snapshot process. EOI else echo \"$diffLines have changed\" fi The script sends email without issues, but the mailx command is nested within an if statement so I appear to be left with two choices: Put EOI on a new line and break indentation patterns or Keep with indentation but use something like an echo statement to get mailx to suck up my email. I'm open to alternatives to heredoc, but if there's a way to get around this it's my preferred syntax.", "No continuous function switches $\\mathbb{Q}$ and the irrationals", "The plural of \"person\" is \"people\". The plural of \"people\" is \"peoples\". Person-people-peoples is the only sequence like this that I know of, but I'm looking for another. (The equivalent question is, is there another plural noun which has become a singular countable collective noun?) EDIT For those of you that think that people is nothing but a collective noun (and not an irregular plural, like mice), I urge you to consider: Do you treat other collective nouns as plurals? One person, two people, but one star, two galaxy? Do you treat other plurals as collective nouns? You can certainly say \"a galaxy of stars\" but do you say \"a mice of mouses\"? For those of you that think the customary plural of person is persons, try it on the next three, uh, persons you see: \"Finish this sentence: 'one person, two _ ?' \"", "Selected references without hyperlink When using the hyperref package, is it possible to tell LaTeX not to create a link for some references? In my case the page number is displayed in the footer in \\fancyhf[FC]{\\thepage\\ of \\pageref{pg:end}} which is what I want. Unfortunately every single page in the document then has a link to the final page, which is a bit silly. Any ideas on how to fix that?", "Why should I use a private variable in a property accessor?", "Newman's \"Natural proof\"(Analytic) of Prime Number Theorem (1980) I am trying to understand this short proof by newmann. I faced some problems while grasping this very proof. Please help me out. 1 . I am not clear, why in step (1)'s proof he says that from unique factorization and the absolute convergence of zeta we have... [here factorization makes sense but where did he use absolute convergence to prove (1).] 2 . Step 2 is clear but where will he use it (may be I will out later as i am still working on next steps. 3 . My major problem is to understand step 3rd's last part that i put it in the red box. please elaborate it. I didn't understand anything in this box. I am still working on the next steps of the proofs. If i get any problem in them i will ask you. Thank you so much in advance.", "Why do first order languages have at most countably many symbols? Every proof that I read seems to assume that $|L|\\leq\\aleph_0$. But then how do you model things like field over $\\mathbb{R}$ without running out of variable symbols? More importantly, how can I prove that $|L|\\leq\\aleph_0$?", "Can I set the start point of a bezier curve?", "World edit wood rotation", "Does anyone know the name of travel posters from the 1930s? Is there a name for this design style - use of flat colours for dimension and shading - that was so prevalent in UK travel posters of the 1930s?" ]
medi_sts_stackexchange_dupe
Java DecimalFormat HALF_UP format double value is not correct
Is floating point math broken?
[ "I'm looking at buying a second-hand Mac, probably one that does not include an OS installation disk. How can I scan it to make sure that it has not had security threats installed on it? Is there a CD or DVD image I can boot it up with to perform this scan offline? Edit: prospective machine would be a 2011- or 2012-vintage MacBook Pro. Also note that I don't have reliable access to high-speed internet, so solutions that involve downloading 5GB over the Internet are not ideal. For others, though, may be helpful.", "How to get Url Hash (#) from server side I know on client side (javascript) you can use windows.location.hash but could not find anyway to access from the server side. I'm using asp.net.", "Comments/tips on a (non Latex) pdf including mathematical formulas My goal : I correct copies from students that I scan to pdf. I wish I could make the annotations on the scanned copies rather than on the physical paper. Today, I have to scan the copies again to have my annotations transferable to students by email. Since most of the annotations are similar, I wish to have a stock of annotations I could transfer on the copies. I went through a lot of technologies, including many \"StackExchange Questions\" here. I considered pdfcomment, cooltips, fancytooltips, the OCG family (ocgx, ocgp, ocg2, ...), etc. Two tracks attracted more specifically my attention : pdfcomments : I like the mouseover to see the comment, the capabillity to move the annotation around so I can have a stock on a pdf and I can copy it onto the scanned copies. This would be my choice if there was not a main drawback : it accepts only plain text when I need to use mathematical notations. (It needs selected pdf readers). Because you can move comments, you can put them on any pdf, even if it is not compiled from Latex or if you don't have the source. fancytooltips : I like the mouseover to see the comment, and the capability to use LaTeX mathematical formulas and images. Drawbacks : I can't move the annotation from a pdf document to the copies. (It works with very few pdf readers.) . I am not sure whether I can put tips on non Latex pdfs. Is there a way to have pdfcomment have images/Latex mathematical formulas (or references to formulas that can show with a mouseover) ? Or is there a way to transfer fancytooltips to a non Latex pdf ? Or are there other techniques to achieve the goal ?", "If $\\lim_{x \\to +\\infty} f'(x) = L$, then $\\lim_{x \\to \\infty} \\frac {f(x)}{x} = L$ I'm trying to solve this question: Let $f:[0,+\\infty) \\to \\mathbb{R}$ be derivable and $\\lim_{x \\to +\\infty} f'(x) = L$, then $\\lim_{x\\to \\infty}\\frac {f(x)}{x}=L$. I'm trying to solve this question using l'Hôpital rule, but I couldn't use it, because I don't know if $\\lim_{x\\to +\\infty} f(x)=+\\infty$. I need help. Thanks a lot.", "Row colour gaps in tabularx with \\aboverulesep and \\{} \\documentclass[]{article} \\usepackage[table,dvipsnames]{xcolor} \\usepackage{multicol,booktabs,tabularx} % Table settings \\renewcommand{\\aboverulesep}{1pt} \\renewcommand{\\belowrulesep}{1pt} \\begin{document} \\begin{tabularx}{\\textwidth}{@{}X l@{}} This is Header 1 &amp; This is Header 2 \\\\ \\toprule \\rowcolor{Apricot} This is Text 1 &amp; This is Text 2 \\\\\\midrule This is Text 1 &amp; This is Text 2 \\\\\\midrule This is Text 1 &amp; This is Text 2 \\\\ \\bottomrule \\end{tabularx} \\end{document} I have the above table MWE using tabularx, and I am trying to colour the row from the table. However, due to the use of my \\aboverulesep and \\belowrulesep, I now have gaps above and below my table row that is not coloured. Also, because of the use of my @{} on either side of the table to 'remove' the excess padding on the sides of the table, the row colour is being applied in those padding as well. Qn 1: How can I colour the aforementioned gaps (arising due to the \\aboverulesep) in, while maintaining the rule separation? Qn 2: How to remove the colour from the two sides of the table? EDIT This is in response to Zarko's answer. I want to maintain the use of @{} on either side to remove the padding. If I were to adapt this into your answer, like so: % @Zarko's answer \\documentclass{article} \\usepackage[table,dvipsnames]{xcolor} \\usepackage{booktabs, cellspace, tabularx} % Table settings \\renewcommand{\\aboverulesep}{0pt} \\renewcommand{\\belowrulesep}{0pt} \\setlength\\cellspacetoplimit{5pt} \\setlength\\cellspacebottomlimit{5pt} \\begin{document} \\begin{tabularx}{\\textwidth}{@{}SX Sl@{}}% &lt;-- S is append for activate additional vertical space This is Header 1 &amp; This is Header 2 \\\\ \\toprule \\rowcolor{Apricot} This is Text 1 &amp; This is Text 2 \\\\\\midrule This is Text 1 &amp; This is Text 2 \\\\\\midrule This is Text 1 &amp; This is Text 2 \\\\ \\bottomrule \\end{tabularx} \\end{document} I obtain this: and so my second question (Qn2) is still unresolved.. For Qn 1, I prefer to use the solution by @Skillmon with \\renewcommand{\\arraystretch}{1.15} as I need not add a new package.", "Night's Watch deserters are sentenced to death, as we've seen in the very first episode of Game of Thrones. A man dressed all in black is apprehended by Stark men and brought before Lord Eddard Stark. Lord Stark sees him as a deserter and sentences him to die (and then executes that death penalty). However, there are men of the Night's Watch south of the Wall, on a legitimate mission or on some kind of allowed leave. For instance, we have Benjen Stark visiting Winterfell when the king and his party is there. There is also Yoren, who travels around Westeros in search of new recruits. I could imagine that the Warden of the North (and other lords in the northern part of Westeros) would have a good idea of who would be allowed further south and whose appearance would raise suspicion. But I reckon the southern lords don't have as many visits from the Night's Watch, so they might not know who would be allowed to be there and who wouldn't. How would lords who are rather unfamiliar with the specific brothers of the Night's Watch discern deserters from brothers sent out for some reason? That ends my question, but there is a spoiler from the season 5 finale that continues the question a bit more: Sam is sent to Oldtown to become a Maester, so he can replace Maester Aemon at Castle Black. But he is riding together with Gilly (a woman!) and her baby (a baby!), which might raise a lot of suspicion from people who don't know what he is sent out to do. What prevents southern lords of sentencing Sam as a deserter from the Night's Watch?", "Editing and manipulating tables with ArcPy? I’m new to ArcMap and was wondering if anybody could help me out. I have a shapefile with counties and wells in that county. In the table I’m trying edit it so that for each county calculate the total numbers of wells that fall into that county, and update the county table with the total count. I also want to calculate how many wells there are per area unit, and update the table with that value as well. import arcpy featureClass = \"C:/Lesson5_Data/Colorado_cities.shp\" fieldList = \"*\" with arcpy.da.SearchCursor(featureClass, fieldList) as cursor: for row in cursor: print row[4 population = 10000 whereClause = '\"POP2007\" &gt;= ' + str(population", "When is a cellular automaton \"bidirectional\"? From . \"A (bi-directional, deterministic) cellular automaton is a triplet $A = (S;N;\\delta)$, where $S$ is an non-empty state set, $N$ is the neighborhood system, and $\\delta$ is the local transition function (rule). This function defines the rule of calculating the cell’s state at $t +1$ time step, given the states of the neighborhood cells at previous time step $t$\" I haven't found other \"bidirectional\" CA via Google, so I wonder what does the term say about this automaton's properties. Does it mean that the state $t+1$ can be used to find out the state t?", "How to select a Master's thesis topic if your advisor won't suggest one? If a master's degree candidate needs to select a thesis topic, but their advisor is unwilling to offer suggestions on the matter, how should one go about selecting a thesis? How might one select an area to study? How can one evaluate if if is a suitable topic? Does the thesis need to focus on an area which is relatively unexplored by prior research?", "What are the differences between combat damage, direct damage, and loss of life?", "No longer earning rep for editing posts", "How can I get a list of all packages in a repository section from command line?", "Is it possible to include the tag-wiki associations in the Data Explorer? To do this would require two additional columns in the postTags table that associate a tag wiki excerpt and a tag wiki to their tag. The tag wiki data is already available in the posts table. But there is no way to associate this data with its tags. The SEDE schema lacks the required columns to link the tag excerpt and the tag wiki to the tags table. Additionally, the postTypes table only lists three posts types. It makes no mention of tag-wiki and tag excerpt posts. Perhaps the postypes table can be updated to reflect the additional post types?", "I still do not understand what a precisely is. Is it exactly the same as a particle? Or only an excited state? And why does it make a peak in some diagrams? And which diagrams?", "Why can't I transform faces, edges, or vertices without transforming the whole object?", "Understanding how references and labels work I'm trying to understand why I cannot effectively reference figures or equations that I have defined with labels. For example: \\begin{figure} \\label{fig:area_Treasuries} \\caption{Treasuries as a portion of total financial flows.} \\centering \\includegraphics[width=0.75\\textwidth]{graphs/Area_Treasuries.png} \\end{figure} \\paragraph{} Figure~\\ref{fig:area_Treasuries} presents Treasuries (both flowing into and out of the United States) as a share of total financial flows. From 1985 to 2010, Treasuries account for, on average, 53.2\\% of total financial flows. With the above code, I get this warning: LaTeX Warning: Reference `fig:area_Treasuries' on page 37 undefined on input line 477. The result is \"Figure ?? presents Treasuries...\" Why is this happening? Related, I don't understand why I can't reference, say, an equation before (I mean physically above in the text) the actual equation. Isn't this what compiling multiple times and cross references is supposed to take care of?", "How do I install the latest stable version of Thunderbird?", "What's the simplest SQL statement that will return the duplicate values for a given column and the count of their occurrences in an Oracle database table? For example: I have a JOBS table with the column JOB_NUMBER. How can I find out if I have any duplicate JOB_NUMBERs, and how many times they're duplicated?", "Run MySQLDump without Locking Tables", "Are there any keyboard shortcuts for Windows 10 developer preview's virtual desktops (\"Task View\")?" ]
medi_sts_stackexchange_dupe
Short title in TOC using custom titletoc/titlesec
\section*[toc]{normal section title} not working for me
[ "Callout Mock Responses & multiple HTTP Status Code values I'm trying to unit test the behavior of some code which performs callouts and its logic is dependent on the HTTP status code of the response - 200 vs 401. The pattern being exercised is familiar: Make callout Response is (unauthorized) HTTP 401 Logic checks Status value on the response if (status == 200) { /* yay! */ } if (status == 401) { /* make request for auth /* } retry original callout with newly acquired authorization yay! I am attempting to test the code's \"try, auth, retry\" behavior using the MultiStaticResourceCalloutMock but it appears that only a single status code can be set for all requests that the mock provider can respond to using the .setStatusCode(int) method. Is this accurate? Is there a mechanism for using a single MultiStaticResourceCalloutMock and having it respond with different status codes per URL in the test context? Is the only solution here to use a Dispatcher such as what Andrew Fawcett documents here in this answer? Is there another method/mechanism that allows for different status codes to be returned by the mock provider on the HTTPResponse? Some showing the one-time usage pattern of the .setStatusCode(200) method and the multimock class. @isTest private class CalloutMultiStaticClassTest { @isTest static void testCalloutWithMultipleStaticResources() { // Use MultiStaticResourceCalloutMock to // specify fake response for a certain endpoint and // include response body in a static resource. MultiStaticResourceCalloutMock multimock = new MultiStaticResourceCalloutMock(); multimock.setStaticResource( 'http://api.salesforce.com/foo/bar', 'mockResponse'); multimock.setStaticResource( 'http://api.salesforce.com/foo/sfdc', 'mockResponse2'); multimock.setStatusCode(200); multimock.setHeader('Content-Type', 'application/json'); // Set the mock callout mode Test.setMock(HttpCalloutMock.class, multimock); // Call the method for the first endpoint HTTPResponse res = CalloutMultiStaticClass.getInfoFromExternalService( 'http://api.salesforce.com/foo/bar'); // Verify response received System.assertEquals('{\"hah\":\"fooled you\"}', res.getBody()); // Call the method for the second endpoint HTTPResponse res2 = CalloutMultiStaticClass.getInfoFromExternalService( 'http://api.salesforce.com/foo/sfdc'); // Verify response received System.assertEquals('{\"hah\":\"fooled you twice\"}', res2.getBody()); } }", "How do you access the matched groups in a JavaScript regular expression? I want to match a portion of a string using a and then access that parenthesized substring: var myString = \"something format_abc\"; // I want \"abc\" var arr = /(?:^|\\s)format_(.*?)(?:\\s|$)/.exec(myString); console.log(arr); // Prints: [\" format_abc\", \"abc\"] .. so far so good. console.log(arr[1]); // Prints: undefined (???) console.log(arr[0]); // Prints: format_undefined (!!!) What am I doing wrong? I've discovered that there was nothing wrong with the regular expression code above: the actual string which I was testing against was this: \"date format_%A\" Reporting that \"%A\" is undefined seems a very strange behaviour, but it is not directly related to this question, so I've opened a new one, . The issue was that console.log takes its parameters like a printf statement, and since the string I was logging (\"%A\") had a special value, it was trying to find the value of the next parameter.", "Are the eigenvalues of $AB$ equal to the eigenvalues of $BA$? (Citation needed!) First of all, am I being crazy in thinking that if $\\lambda$ is an eigenvalue of $AB$, where $A$ and $B$ are both $N \\times N$ matrices (not necessarily invertible), then $\\lambda$ is also an eigenvalue of $BA$? If it's not true, then under what conditions is it true or not true? If it is true, can anyone point me to a citation? I couldn't find it in a quick perusal of Horn &amp; Johnson. I have seen a couple proofs that the characteristic polynomial of $AB$ is equal to the characteristic polynomial of $BA$, but none with any citations. A trivial proof would be OK, but a citation is better.", "Knowing the interface of ubuntu and editing them Where are the files for the desktop or the interface that appears on the screen stored? And how can we edit them. How are they programmed? What programming language is used to built the interfaces?", "How to send a header using a HTTP request through a cURL call? I wish to send a header to my Apache server on a Linux box. How can I achieve this via a cURL call?", "How to get a tool that can only break specific blocks and has a name? So, right now I'm using this: /give @p minecraft:diamond_pickaxe 1 0 {CanDestroy:[minecraft:stone]} But I need one that also has the Name value. Anyone know this one?", "What sequence of documents should I read to know \"all of\" TeX and then LaTeX?", "The standard files/tools that report memory seem to have different formats on different Linux distributions. For example, on Arch and Ubuntu. Arch $ free total used free shared buff/cache available Mem: 8169312 3870392 2648348 97884 1650572 4110336 Swap: 16777212 389588 16387624 $ head /proc/meminfo MemTotal: 8169312 kB MemFree: 2625668 kB MemAvailable: 4088520 kB Buffers: 239688 kB Cached: 1224520 kB SwapCached: 17452 kB Active: 4074548 kB Inactive: 1035716 kB Active(anon): 3247948 kB Inactive(anon): 497684 kB Ubuntu $ free total used free shared buffers cached Mem: 80642828 69076080 11566748 3063796 150688 58358264 -/+ buffers/cache: 10567128 70075700 Swap: 20971516 5828472 15143044 $ head /proc/meminfo MemTotal: 80642828 kB MemFree: 11565936 kB Buffers: 150688 kB Cached: 58358264 kB SwapCached: 2173912 kB Active: 27305364 kB Inactive: 40004480 kB Active(anon): 7584320 kB Inactive(anon): 4280400 kB Active(file): 19721044 kB So, how can I portably (across Linux distros only) and reliably get the amount of memory—excluding swap—that is available for my software to use at a particular time? Presumably that's what's shown as \"available\" and \"MemAvailable\" in the output of free and cat /proc/meminfo in Arch but how do I get the same in Ubuntu or another distribution?", "How can I prevent my mail from being classified as spam?", "What is spin as it relates to subatomic particles?", "Using while loop to ssh to multiple servers I have a file servers.txt, with list of servers: server1.mydomain.com server2.mydomain.com server3.mydomain.com when I read the file line by line with while and echo each line, all works as expected. All lines are printed. $ while read HOST ; do echo $HOST ; done &lt; servers.txt server1.mydomain.com server2.mydomain.com server3.mydomain.com However, when I want to ssh to all servers and execute a command, suddenly my while loop stops working: $ while read HOST ; do ssh $HOST \"uname -a\" ; done &lt; servers.txt Linux server1 2.6.30.4-1 #1 SMP Wed Aug 12 19:55:12 EDT 2009 i686 GNU/Linux This only connects to the first server in the list, not to all of them. I don't understand what is happening here. Can somebody please explain? This is even stranger, since using for loop works fine: $ for HOST in $(cat servers.txt ) ; do ssh $HOST \"uname -a\" ; done Linux server1 2.6.30.4-1 #1 SMP Wed Aug 12 19:55:12 EDT 2009 i686 GNU/Linux Linux server2 2.6.30.4-1 #1 SMP Wed Aug 12 19:55:12 EDT 2009 i686 GNU/Linux Linux server3 2.6.30.4-1 #1 SMP Wed Aug 12 19:55:12 EDT 2009 i686 GNU/Linux It must be something specific to ssh, because other commands work fine, such as ping: $ while read HOST ; do ping -c 1 $HOST ; done &lt; servers.txt", "Is the proof of these identities possible, only using elementary differential and integral calculus? If it is, can anyone direct me to the proofs? ( or give a hint for the solution ) 1)$$\\int_0^\\infty { e^{-x^2} \\ln x }\\,dx = -\\tfrac14(\\gamma+2 \\ln 2) \\sqrt{\\pi} $$ 2)$$\\int_0^\\infty { e^{-x} \\ln^2 x }\\,dx = \\gamma^2 + \\frac{\\pi^2}{6} $$ 3) $$\\gamma = \\int_0^1 \\frac{1}{1+x} \\sum_{n=1}^\\infty x^{2^n-1} \\, dx$$ and lastly, 4) $$\\zeta(s) = \\frac{e^{(\\log(2\\pi)-1-\\gamma/2)s}}{2(s-1)\\Gamma(1+s/2)} \\prod_\\rho \\left(1 - \\frac{s}{\\rho} \\right) e^{s/\\rho}\\!$$ I personally think the last is obtained from a simple use of the Weierstrass factorization theorem. I'm unsure as to what substitution is used. $\\gamma$ is the Euler-Mascheroni constant and $\\zeta(s)$ is the Riemannian Zeta function. Thanks in advance.", "Is GTA Online cross-platform? Grand Theft Auto Online exists on five different platforms: XBox 360, PS3, XBox One, PS4, and PC. Do any of these play on the same servers, allowing people on differing platforms to play together?", "Why is this trigger finding a null value despite the field being populated?", "Einstein's big revelation was that time and space are inseparable components of the same fabric. Physical observation tells us that distant galaxies are moving away from us at an accelerated rate, and because of the difficulty (impossibility?) of defining a coordinate system where things have well defined coordinates while also moving away from each other without changing the metric on the space, we interpret this to mean that space itself is expanding. Because space and time are so directly intertwined is it possible that time too is expanding? Or perhaps it could be contracting?", "jQuery Datepicker with text input that doesn't allow user input", "Is it positive or negative for the average website to allow search engines to index user comments? I've been trying to answer this question myself by researching and searching on google but I haven't been able to come with a final answer. I have some hypothesis I would like share anyway: The average website intends to reach the higher audience possible. User generated content by comments is an efficient way of increasing the relevance and the valuable information of the average website. Indexing comments will make any site attractive to spammers. Indexing comments is more convenient for new/low-traffic websites than it is for old/high-traffic websites. The web in general is currently choosing not to index comments in the average website because of fear to the SPAMMERS. The average author of a content-valuable comment would like his comment to be indexed Not indexing comments discourages the creation of content-valuable comments. So, what do you think finally? Is it positive or negative for the average website to allow search engines to index user comments? Why?", "Dual boot system Windows XP Pro and Ubuntu 12.04. I have the bios set for the correct time and Ubuntu set for US Eastern time. Ubuntu will boot up and the time will be off by -4 hours. If I correct the time in Ubuntu then when I boot up in Windows XP the time will be off by + 4 hours. This is a fresh install of 12.04. I did not have this problem before reinstalling Ubuntu.", "Force JSF to process, validate and update readonly/disabled input components anyway", "Can anybody tell me when Application_End is triggered in a lifecycle of an application? When all sessions are ended, will Application_End be triggered automatically? + Are there any other reasons why Application_End could be triggered?" ]
medi_sts_stackexchange_dupe
How to earn the critic badge
Could the granting lag for each badge be added to the FAQ?
[ "Whenever I install vsftpd on centos, I only setup the jail environment for the users and rest is default configuration of vsftpd. I create user and try to connect with filezila ftp client, but I could not connect with passive mode. I always change the transfer settings to active mode to successfully connect to the ftp server otherwise I get Error: Failed to retrieve directory listing So is there a way to change any directive in vsftp.conf file and we can connect with passive mode to the server?", "Redirect based on country Let's say I have a site that has multiple versions for different countries, e.g.: www.example.com/us www.example.com/uk www.example.com/ca and I want to use IP geolocation to redirect users who go to www.example.com to the appropriate country version of the site. What is the best way to do that without confusing crawlers such as Googlebot or running into other SEO type trouble?", "My program cannot run with \"command not found\" error I just switched from Windows to Ubuntu 11.10. I wrote the following code in C with the text editor and saved it as HelloWorld.c in Documents. #include &lt;stdio.h&gt; int main() { printf(\"Hello World!\\n\"); return 0; } And I started the Terminal and enter the following commands: cd Documents gcc HelloWorld.c A file called a.out, which, after some search on Google, is the executable. I entered this command: a.out But I get a.out: command not found Which step did I do wrongly?", "Does $k+\\aleph_0=\\mathfrak{c}$ imply $k=\\mathfrak{c}$ without the Axiom of Choice? I'm currently reading a little deeper into the Axiom of Choice, and I'm pleasantly surprised to find it makes the arithmetic of infinite cardinals seem easy. With AC follows the Absorption Law of Cardinal Arithmetic, which states that for $\\kappa$ and $\\lambda$ cardinal numbers, the larger infinite and the smaller nonzero, then $\\kappa+\\lambda=\\kappa\\cdot\\lambda=\\max(\\kappa,\\lambda)$. I was playing around with the equation $k+\\aleph_0=\\mathfrak{c}$ for some cardinal $k$. From the above, it follows that $\\mathfrak{c}=k+\\aleph_0=\\max(k,\\aleph_0)$, which implies $k=\\mathfrak{c}$. I'm curious, can we still show $k=\\mathfrak{c}$ without the Axiom of Choice? Is it maybe possible to bound $\\mathfrak{c}-\\aleph_0$ above and below by $\\mathfrak{c}$? But then I'm not quite sure such algebraic manipulations even mean anything, or work like that here. Certainly normal arithmetic does not! Thanks.", "Make window always on top? Some applications do not have the functionality like Task Manager's &quot;Always on top&quot; feature. Is there a way around this?", "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?", "Resizing point on zoom out I've added a point on map like this but it is static in size. How to resize that point on zooming? Map on zoom out", "What's this I hear about First Edition Unix being restored? that the source code of First Edition Unix had been restored from tapes. The response was amazement and a request for more information. What have people done? Who did it? When? And how?", "Why can't the indefinite integral $\\int\\frac{\\sin(x)}{x}\\mathrm dx$ be found?", "What's the difference between the simple past tense and the present perfect? The simple past tense indicates that an activity or situation began and ended at a particular time in the past. The present perfect expresses the idea that something happened (or never happened) before now, at an unspecified time in the past.The exact time it happened is not important. It also expresses the repetition of an activity before now. The exact time of each repetition is not important. Even though I understand the explanation above, I can't figure out: If the present perfect states the idea that something happened in the past, why not use the simple past? For example, would you please explain the following sentence to tell the difference between these two tenses? The plane crashed there. The plane has crashed there. What is the biggest difference between them?", "Laptop water damage repair procedure I'd love some advice in repairing a water-damaged laptop. My girlfriend spilled a glass of water on her Sony Vaio and now it doesn't turn on...at all...dead! What steps should I go through to work out where the problem is and which part(s) I'll need to replace? I can't seem to find out what has happened by just looking at the circuit boards. I'm new to electronics but could buy relevant volt-meters etc. I'm just looking for a decent trouble-shooting guide.", "Careers ad asking if I want to work where I already work?", "Checking out and (and some papers) was a bit difficult for understanding Group Action. The closest to understanding was this part: I understand the definition of homomorphism (a structure-preserving map between two algebraic structures of the same type). And from what I understand the symmetric group is a group of functions (bijective functions) mapping elements of a set $X$ onto itself. However I get confused at this line: ...an action of $G$ on $X$ may be formally defined as a group homomorphism $\\phi$ from $G$ to the symmetric group of $X$. That seems to be the definition of group action, but I am having trouble understanding how to apply that. What that says to me is it is a homomorphism (function) $f \\colon X \\rightarrow S$ where $S$ is a set of bijective functions on $X$. That itself seems weird, I thought a group action would result in a number or something related to $\\{1, 2, 3\\}$ (defined next). Continuing, if we have a set $X = \\{1, 2, 3\\}$ and a group $(*,\\{4, 5, 6\\})$, then the symmetric group of $X$ would be something like $S = \\{1 \\rightarrow 2, 2 \\rightarrow 3, \\dots \\}$, and $\\phi$ would be something like $f : \\{4, 5, 6\\} \\rightarrow S$. That doesn't make sense to me and I feel like I'm interpreting something wrong. I don't see how mapping to a set of functions $S$ will result in an action on the set.", "Do individual rays of light lose energy via the inverse square law?", "Asking the position of a person in a sequence", "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.", "Further anonymize deleted accounts by changing the username in close/delete notices When an account is deleted, the username in the user's posts and comments is changed to a generic user&lt;userID&gt;. But the username stays the same on close and delete notifications on posts the user had voted to close / delete1. I think it shouldn't, especially for users who used their real name as their username, if they chose to distance themselves from the site and remove their accounts, it makes sense that they wouldn't really want their name plastered on close and delete notifications. A perhaps easy way to avoid the actual username remaining visible would be to change it to the generic user&lt;userID&gt; (or anything generic enough, like \"anonymous\") prior to deletion, and wait a bit for the generic username to propagate all over the site. If I'm not horribly misreading , this was part of the process in the old days. This could be automated or added as a suggestion to the . Glaring example can be seen , where the deleted user also posted a comment where their name is properly anonymized: 1 I've seen it on close notifications and self deleted answers. I'm not sure it happens on deleted questions, or deleted answers that aren't self deletions, and I don't have a way to verify it - other than stumbling on them accidentally", "Sphere inside a conical vessel touches the lid", "I was trying to understand the internal structure of AES (Advanced Encryption Standard) The Standard order of steps within a round: Substitute Bytes Shift Rows Mix Columns Add Round Key Substitute Bytes, Shift Rows &amp; Mix Columns satisfies the two most important properties required for a secure cipher i.e confusion and diffusion Substitute Bytes provides Confusion i.e. that each binary digit (bit) of the ciphertext should depend on several parts of the key. Shift Rows along with Mix Column provides Diffusion i.e. if we change a single bit of the plaintext, then (statistically) half of the bits in the ciphertext should change Changing the order of Step 1 and Step 2 won't have any effect. But to what extent can we change the order of other steps? Does it weakens the security of AES, and if so, how?", "\\clipbox of a \\scalebox not working properly in xelatex" ]
medi_sts_stackexchange_dupe
Bookmarking search query using javascript
Search for singleton tags on questions
[ "Unsized array declaration in a struct", "What's the meaning of \"be blowed\"? I would like to know what's the meaning of \"be blowed\" in the following text: 'I'm going to smoke' Jenkins said; 'be blowed to Bertie dear.' (Mrs. Smythe had once addressed her husband in the office as 'Bertie dear', and thereforth that had been his name among the staff.) Richard made no answer. When a minute later Jenkins, discreetly directing his puffs to the open window, asked him for the titles of one or two of Zola's novels in English, and their price, he gave the required information without turning round and in a preoccupied tone. , Arnold Bennett, 1911.", "This is from problem $8$, Chapter II of Rudin's Real and Complex Analysis. The problem asks for a Borel set $M$ on $R$, such that for any interval $I$, $M \\cap I$ has measure greater than $0$ and less than $m(I)$. I was thinking of taking the Cantor approach: taking $R$ to be the union of $[a,b]$ with $a$ and $b$ rationals, and for each $[a,b]$ we construct Cantor sets inside it. During theconstruction of each Cantor set, in order to have positive measure on it, we need to take off smaller and smaller intervals from it, namely the proportion goes to $0$. As a result, these Cantor sets are extremely \"dense\" on their ends. If for an interval $I$ it intersects with the Cantor set on $[a,b]$ while $b-a&gt;&gt;m(I)$, we shall expect the measure of intersection to be rather close to $m(I)$ and then we lose control on these cases. Is there any way to fix this or shall I consider other approaches? Thank you", "How to restore original size and unboot my bootable USB pendrive I recently made my pen-drive bootable with Ubuntu 14.04. But I need to unboot my pen-drive now. I formatted my pen-drive once,But the size of the pen-drive still shows 2.25 MB. Whereas,this is an 8GB pen-drive. How can I get rid of this problem. I'm still using Windows 7.", "I will soon buy a new iPhone. If I log in with my Apple ID in my new phone could I still access my Clash of Clans village without starting from scratch?", "$f \\in {\\mathscr R[a,b]} \\implies f $ has infinitely many points of continuity.", "What is involved in converting a PC video card to have boot screen on the Mac?", "Why does just splitting an Ethernet cable not work? I thought the Ethernet is logically a one-line communication bus (for argument's sake, I am excluding hubs). All machines attached on the bus hears the same signals and the machines themselves try to avoid collisions by randomly backing off. If so, why would splitting one Ethernet line from my home router into two and connecting two computers not work? Why do I have to add a switch to it? What the Internet said would not work. +----------+ +----------&gt;|computer 1| | +----------+ +------------------+ +---------------+ |4 port home router+------&gt;|simple splitter| +------------------+ +---------------+ | +----------+ +----------&gt;|computer 2| +----------+ What the Internet said I should do +----------+ +----------&gt;|computer 1| | +----------+ +------------------+ +---------------+ |4 port home router+------&gt;| switch | +------------------+ +---------------+ | +----------+ +----------&gt;|computer 2| +----------+ Is this because of the signal degradation (reduced electric current)? Thank you for all the answers! The reason why I did not just use the two ports of my home router is... The 4-port gigabit router is in my room, and I had put a computer in another room (also my room, though). Since a wired network is far more reliable and secure, I had bought a long Ethernet cable and and connected the computer to the router. Now I was thinking about adding another computer to that room. I could buy another long Ethernet cable, but then there will be two cables between the rooms. The one line already is a minor annoyance, so I thought if I could share the one line between the two computers in that room. A switch would work, but it requires power and is a little bit pricey. That is why I wondered why it would not work to simply split the physical Ethernet cable. Apparently I do not completely understand how Ethernet and a switch work. I just have some bit of knowledge I heard in my college class.", "Does casting a spell from an item allow you to apply class abilities that are used when casting a spell? This question is updated to request additional answers and details in light of information now available in the Dungeon Master's Guide. In the released DM basic rules, Lost Mine of Phandelver, Hoard of the Dragon Queen, and the DMG teaser there are wands, staves, and rings that you can use to cast spells. Do abilities that trigger from casting a spell activate when casting a spell from an item? Can the character modify the spell using class abilities when casting a spell from an item? Examples include: An abjurer Wizard's arcane ward recovering hit points from a Dispel Magic cast from a Ring of Spell Storing A sorcerer using Twinned Spell on a ray of enfeeblement from a Staff of Power An evocation wizard using Sculpt Spell on a fireball from a Wand of Fireballs. Now that the DMG is out we have some clearer rules on casting spells from items (DMG p. 141): Some magic items allow you to cast a spell from the item. The spell is cast at the lowest possible spell level, doesn't expend any spell slots, and requires no components, unless the item's description says otherwise The spell uses its normal casting time, range and duration, and the user of the item must concentrate if the spell requires concentration. A magic item, such as certain staffs, may require you to use your own spellcasting ability when you cast a spell from the item. Does whether or not you can apply class abilities to the casting of the spell depend whether the item uses the user's own spellcasting ability (such as the Staff of Fire) versus an item that comes with a fixed spellcasting ability built-in (such as the Wand of Fireballs)? Does it matter if it's something that triggers more or less automatically like Arcane Ward, versus something you have to control, like Careful Spell?", "$100$-th derivative of the function $f(x)=e^{x}\\cos(x)$ I've got this task I'm not able to solve. So i need to find the 100-th derivative of $$f(x)=e^{x}\\cos(x)$$ where $x=\\pi$. I've tried using Leibniz's formula but it got me nowhere, induction doesn't seem to help either, so if you could just give me a hint, I'd be very grateful. Many thanks!", "How do high traffic sites service more than 65535 TCP connections?", "I currently have a masters degree in an engineering field and I don't currently have any PhD degrees (I may study for a doctorate degree in future). It happens that when I go to conferences or scientific occasions, even in the emails I receive from people; they use a doctor prefix for my name; but I do not have a PhD degree. What is a good etiquette to deal with such thing? Should I directly tell them that I do not have a doctorate degree? Or should I neglect such a mistake by them and don't do anything? I think it is unethical not to correct such thing, because the person may still think that I have a PhD degree; and such wrong usage of title should be corrected some way. Once a person used doctor title for my name in an email and I just added a line in my reply to his email, stating that I have a masters degree.", "Consider the sentence &quot;I can run faster than 15 miles per hour.&quot; Its meaning is clear and to my eyes obviously grammatically correct. Now let me present some variations that have given me trouble for a long time. I am faster than 15 miles per hour. – To me this is clearly incorrect. Directly comparing me to a speed doesn't seem right. We need to compare my speed to a speed, or me to another person. I can run faster than him. – Compared to the base sentence, there is a distinct shift in meaning of the comparison. While before I named a speed faster than which I can run, now I am naming a person. It doesn't seem quite right. I realize the parts of speech can change, but my initial objection is that &quot;him&quot; is not a speed. I can run faster than he. – This seems most correct to me, but still somehow feels objectionable. Is this in fact the correct way to say it? And if so, is it proper as is or need I say &quot;... faster than he can&quot; or even &quot;... faster than he can run?&quot; I am faster than him. – With &quot;am&quot; instead of &quot;can run&quot; it now seems slightly more correct. But is it? I am faster than he. – I'm in doubt here. It doesn't seem wrong to me to say, &quot;I am faster than he is&quot; or even &quot;I am faster than he is fast.&quot; (Though I suppose that is a given since I could hardly properly compare to some other category as in &quot;I am faster than he is smart.&quot;) My speed is faster than his. – Hmm. This seems more proper as &quot;my speed is greater than his.&quot; So which of these constructions is correct and which is incorrect? Is there a general rule that I can follow? UPDATE The scholarly article may be of great interest to some readers! Once we accept that the elided constituent and its antecedent can differ in form, it becomes reasonable to ask how large this difference can be. The answer in Rooth (1992), Fiengo and May (1994), Chung et al. (1995) and subsequent work is that the wiggle room is actually quite small: the elided constituent and its antecedent are allowed to differ only in the realization of inflectional morphology. Other than that, both constituents have to be syntactically and lexically isomorphic.", "It is fine to say that for an object flying past a massive object, the spacetime is curved by the massive object, and so the object flying past follows the curved path of the geodesic, so it \"appears\" to be experiencing gravitational acceleration. Do we also say along with it, that the object flying past in reality exeriences NO attraction force towards the massive object? Is it just following the spacetime geodesic curve while experiencing NO attractive force? Now come to the other issue: Supposing two objects are at rest relative to each other, ie they are not following any spacetime geodesic. Then why will they experience gravitational attraction towards each other? E.g. why will an apple fall to earth? Why won't it sit there in its original position high above the earth? How does the curvature of spacetime cause it to experience an attraction force towards the earth, and why would we need to exert a force in reverse direction to prevent it from falling? How does the curvature of spacetime cause this? When the apple was detatched from the branch of the tree, it was stationary, so it did not have to follow any geodesic curve. So we cannot just say that it fell to earth because its geodesic curve passed through the earth. Why did the spacetime curvature cause it to start moving in the first place?", "Log4j Logging to a Shared Log File Is there a way to write log4j logging events to a log file that is also being written to by other applications. The other applications could be non-java applications. What are the drawbacks? Locking issues? Formatting?", "Participles to modify the subject of the main clause \"Essos is an immense landmass located to the east of Westeros, extending into the far east of the known world.\" (Here, \"extending\" describes the Essos or does it describes the landmass? ) Having seen this sentence above, I question came to my mind. Can I use participles to modify the subject of the main clause when there is no connection between main clause and participle clause. For example: 1- \"He is a bookworm, living in Canada. (He is a bookworm + He lives in Canada, there is no connection between being bookworm and living in Canada) 2- He, living in Canada, is a book worm. (I suppose, this placement would be more correct)", "Can anybody explain the UNABLE_TO_LOCK_ROW error?", "Show that the set of all finite subsets of $\\mathbb{N}$ is countable. Show that the set of all finite subsets of $\\mathbb{N}$ is countable. I'm not sure how to do this problem. I keep trying to think of an explicit formula for 1-1 correspondence like adding all the elements in each subset and sending that sum to itself in the natural numbers, but that wouldn't be 1-1 because, for example, the set {1,2,3} would send to 6 and so would the set {2,4}. Multiplying all the elements in each subset and sending that product to itself in the natural numbers wouldn't work either since, for example, {2,3} would send to 5 and so would the set {1,5}. Any ideas?", "How do I get help for \"echo\" or other bash commands? man echo works. but out of curiosity, does echo have something similar to a --help flag/parameter?", "I'm considering buying a solid state drive for my Unibody White MacBook 2010. The trouble is, I have no idea what to look for. What kind of connector am I looking for? (SATA?) What size? I'm told to get the kind that Apple uses so that I don't void my AppleCare warranty. What model/brand(s) would that be?" ]
medi_sts_stackexchange_dupe
How to include (print) Latex source code in generated pdf?
Is there some way to embed LaTeX source code in a PDF file?
[ "What is the probability that $x_1+x_2+...+x_n \\le n$? Given that $X_1, X_2...$ are mutually independent random variables. For each $i$ with $1\\le i \\le n$ the variable $X_i$ is equal to either $0$ or $n+1$ $E(X_i)$ = $1$ also.. if $X_i$ is equal to either $0$ or $n+1$, doesn't that mean that all $X_i$ need to be $0$? Thanks", "How would I solve the following problem involving elementary matrices? Let $A=\\begin{pmatrix}0&amp;5\\\\ 7&amp;4\\end{pmatrix}$. 1) Write $A$ as a product of $4$ elementary matrices. 2) Write $A^{-1}$ as a product of $4$ elementary matrices. My work. I have managed to find $A^{-1}$, which came out to be this: \\begin{pmatrix}-\\frac{4}{35}&amp;\\frac{1}{7}\\\\ \\frac{1}{5}&amp;0\\end{pmatrix} However, I am struggling to figure out how I would split each of these matrices into $4$ elementary matrices. Any help?", "Construction of a Borel set with positive but not full measure in each interval", "I need to know the ip address of another machine in a lan network. What is the Windows command for getting ip address from machine name and vice versa?", "Recently I decided to use only Ubuntu and there is no Windows in my laptop. When I turn on my laptop the GRUB menu is showing but I don't need to choose OS anymore. How can I remove or hide this? And after removing this how could I access to recovery mode?", "Detect whether Excel workbook is already open", "How can I change directories in the terminal?", "Ambiguity of “not.... because” You are not hired because you are qualified. I think this means you are hired but it is not because you are qualified. But I think this can also means you are not hired, and the reason for it is that you are qualified. Does this ambiguity really exist or do I mistake anything?", "14.04 microphone noice buzzing sounds My Microphone started acting up badly this morning has a loud buzz, it has got to be software it was working fine last night installed updates and shutdown last night and boom here we are, oh and i have a Microphone jack microphone and a internal mic, both are acting up... Please help PLEASE help i need to use skype. Dafull97", "xdg-open on debian 9 fails to open browser I decided to try lxdm (was using fluxbox and xfce), and discovered that for many programs the url handler was failing, producing this error message; Quite strange as you can see, it's prepending the user directory to the url. The example here is from telegram, but it happens in discord, as well as when executing from the command line; xdg-open https://www.google.com produces a similar error. xdg-settings get default-web-browser output's firefox.desktop which works as a link in both xfce and lxdm. More information; I ran bash -x on it and... $ bash -x /usr/bin/xdg-open http://www.google.com + check_common_commands http://www.google.com + '[' 1 -gt 0 ']' + parm=http://www.google.com + shift + case \"$parm\" in + '[' 0 -gt 0 ']' + '[' -z '' ']' + unset XDG_UTILS_DEBUG_LEVEL + '[' 0 -lt 1 ']' + xdg_redirect_output=' &gt; /dev/null 2&gt; /dev/null' + '[' xhttp://www.google.com '!=' x ']' + url= + '[' 1 -gt 0 ']' + parm=http://www.google.com + shift + case \"$parm\" in + '[' -n '' ']' + url=http://www.google.com + '[' 0 -gt 0 ']' + '[' -z http://www.google.com ']' + detectDE + unset GREP_OPTIONS + '[' -n LXDE ']' + case \"${XDG_CURRENT_DESKTOP}\" in + DE=lxde + '[' xlxde = x ']' + '[' xlxde = x ']' + '[' xlxde = x ']' + '[' xlxde = xgnome ']' + '[' -f /run/user/1000/flatpak-info ']' + '[' xlxde = x ']' + DEBUG 2 'Selected DE lxde' + '[' -z '' ']' + return 0 + case \"${BROWSER}\" in + case \"$DE\" in + open_lxde http://www.google.com + pcmanfm --help -a is_file_url_or_path http://www.google.com ++ file_url_to_path http://www.google.com ++ local file=http://www.google.com ++ echo http://www.google.com ++ grep -q '^file:///' ++ echo http://www.google.com + local file=http://www.google.com + echo http://www.google.com + grep -q '^/' ++ pwd + file=/home/nesmerrill/.local/share/applications/http://www.google.com + pcmanfm /home/nesmerrill/.local/share/applications/http://www.google.com + '[' 0 -eq 0 ']' + exit_success + '[' 0 -gt 0 ']' + exit 0 The important part seems to be pcmanfm --help -a is_file_url_or_path http://www.google.com but, that command if that's how it was used, doesn't seem to do much of anything? $ pcmanfm --help -a is_file_url_or_path http://www.google.com Usage: pcmanfm [OPTION…] [FILE1, FILE2,...] Help Options: -h, --help Show help options --help-all Show all help options --help-gtk Show GTK+ Options Application Options: -p, --profile=PROFILE Name of configuration profile -d, --daemon-mode Run PCManFM as a daemon --no-desktop No function. Just to be compatible with nautilus --desktop Launch desktop manager --desktop-off Turn off desktop manager if it's running --desktop-pref Open desktop preference dialog --one-screen Use --desktop option only for one screen -w, --set-wallpaper=FILE Set desktop wallpaper from image FILE --wallpaper-mode=MODE Set mode of desktop wallpaper. MODE=(color|stretch|fit|crop|center|tile|screen) --show-pref=N Open Preferences dialog on the page N -n, --new-win Open new window -f, --find-files Open a Find Files window --role=ROLE Window role for usage by window manager --display=DISPLAY X display to use", "Is it poor form to switch accepted answers? I had a question of the form \"does something like X exist?\" Someone wrote a response to say that, No, X does not exist, but I could write it if I liked. I had suspected as much, so I marked his answer as the accepted answer. Today someone actually posted the code to do X for me, and I feel that the new poster deserves the \"Accepted Answer\" checkmark. Is it poor form for me to pick a new Accepted answer? Does the original answerer get penalized in terms of reputation? While the original responder's answer was accepted at the time, I feel this new answer is really more helpful. Edit: Which of these responses should I accept? What does the notion of a single accepted answer mean with a question that is subjective that could have multiple \"right\" answers?", "How to disable all caches in safari 11? I am using Safari to develop for a while. One thing I always liked is when you clear the cache, it really does, unlike other browsers I tried in the past. But in previous versions, specially when working in a code in a local testing server, just reloading the page will reload everything from disk. Now I have to use de shortcut command+alt+e to clear before reload or some new CSS won't load, even some http request will return old values. Just reloading the page won't guarantee to show me the last modifications. I looked at preferences and develop menu but didn't find an option to just don't use any caches at all - the perfect option will be don't use caches when I have the web inspector opened, means I am developing. Did I miss this option, or there is another way to disable all caches?", "Multiple Inheritance in C#", "Is there any value in full 'beginner's kit bundles'?", "Unable to SSH to my virtual machine via Windows Power Shell ISE", "I'm trying to figure out the best way to model the sphere-spiral here: Is it possible to make this shape directly? Or do you have to make it as a cylinder and wrap it to a sphere?", "Change the URL in the browser without loading the new page using JavaScript", "Initializing K-means centers by the means of random subsamples of the dataset? If I have a certain dataset, how smart would it be to initialize cluster centers using means of random samples of that dataset? For example, suppose I want 5 clusters. I take 5 random samples of say, size=20% of the original dataset. Could I then take the mean of each of these 5 random samples and use those means as my 5 initial cluster centers? I don't know where I read this but I wanted to know what you guys think about the idea. UPDATE: Please see this thread for the general discussion about the various initialization methods.", "Prove that $Y=-2\\sum_{i=1}^n \\ln F_{X_i}(X_i)$ have distribution $\\chi^2(2n)$", "Bluetooth headset never gives me sound options" ]
medi_sts_stackexchange_dupe
Prove determinant of $n \times n$ matrix is $(a+(n-1)b)(a-b)^{n-1}$?
Determinant of a specially structured matrix ($a$'s on the diagonal, all other entries equal to $b$)
[ "Substituting table salt or sea salt for kosher salt? The roasted chicken recipe I'm following of course calls for kosher salt, but I don't have any, and getting some is out of the question. I have sea salt and table salt on hand. Can I substitute one of those instead, and if so, what is the proper ratio of the kosher salt the recipe calls for to either sea salt or table salt?", "What is a terminal? How do I open a terminal window? How do I use the terminal?", "Year-Round Hats for Fun and Profit", "QGIS update from 2.14 to 2.16 failed on Ubuntu 14.04 Until yesterday my whole qgis and python-qgis worked fine with version 2.14 under Ubuntu 14.04. After a simple sudo apt-get update and sudo apt-get upgrade qgis failed to update... Several attempts to reinstall it with different versions failed. Current error message (for version 2.14.3) goes like this: qgis-providers (2.14.3+dfsg-2~trusty1) is configured ... /usr/lib/qgis/crssync: symbol lookup error: /usr/lib/libgdal.so.20: undefined symbol: GEOSDelaunayTriangulation_r I also tried to reinstall all gdal libraries - not sure if I got all?! Maybe it is somehow related to this one: ? UPDATE: Trying to install version 2.16.0 it gives different but similar error: /usr/lib/qgis/crssync: symbol lookup error: /usr/lib/libqgis_core.so.2.16.0: undefined symbol: GEOSNearestPoints_r UPDATE Sources: For version 2.16.0 there are these sources in /etc/apt/sources.list: deb http://qgis.org/debian trusty main deb-src http://qgis.org/debian trusty main deb http://qgis.org/debian trusty main deb-src http://qgis.org/debian trusty main which are all the same, right? When I do apt-cache policy qgis it gives me: qgis: Installiert: 1:2.16.0+20trusty Installationskandidat: 1:2.16.0+20trusty Versionstabelle: *** 1:2.16.0+20trusty 0 500 http://qgis.org/debian/ trusty/main amd64 Packages 100 /var/lib/dpkg/status 2.0.1-2build2 0 500 http://de.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages", "ffmpeg is not even cutting this and other mp4s to the nearest second", "Update Manager is constantly offering me updates (e.g. security fixes, updates from PPAs). How can I tell my Ubuntu installation to automatically download and install updates whenever they become available?", "Understanding the definition of the order of an entire function in Ahlfors's Complex Analysis Let $f: \\mathbb C \\to \\mathbb C$ be an entire function. The order of $f$ is defined by $$\\lambda=\\limsup_{r \\to \\infty} \\frac{\\log \\log M(r)}{\\log r}, $$ where $$M(r)=\\max_{|z|=r} |f(z)| .$$ Ahlfors in his Complex Analysis claims that \"According to this definition $\\lambda$ is the smallest number such that $$M(r)\\leq e^{r^{\\lambda+\\varepsilon}} $$ for any given $\\varepsilon &gt; 0$ as soon as $r$ is sufficiently large.\" Why is this true? My attempt: We know that $$\\lambda=\\lim_{\\rho \\to \\infty} \\sup_{r \\geq \\rho} \\frac{\\log \\log M(r)}{\\log r}. $$ From the definition of the limit we have that for any $\\varepsilon&gt;0$, there exists some $\\rho_0&gt;0$, such that $$\\left\\lvert \\sup_{r \\geq \\rho} \\frac{\\log \\log M(r)}{\\log r}-\\lambda \\right\\rvert \\leq \\varepsilon ,$$ for every $\\rho \\geq \\rho_0$. In other words $$\\frac{\\log \\log M(r)}{\\log r} \\leq \\lambda+\\varepsilon $$ for every $r \\geq \\rho_0$. From here it is easy to see that $$M(r)\\leq e^{r^{\\lambda+\\varepsilon}}, $$ for all $r \\geq \\rho_0$. I cannot see why $\\lambda$ is the smallest number with this property. Thanks in advance.", "If $H$ is a cyclic subgroup of $G$ and $H$ is normal in $G$, then every subgoup of $H$ is normal in $G$. Exercise 11, page 45 from Hungerford's book Algebra. If $H$ is a cyclic subgroup of $G$ and $H$ is normal in $G$, then every subgroup of $H$ is normal in $G$. I am trying to show that $a^{-1}Ka\\subset K$, but I got stuck. What I am supposed to do now? Thanks for your kindly help.", "Where to place 'only' relative to prepositions? I know that questions about the placement of 'only', are often asked here; accordingly, I searched for an answer to my question before posting it. Question Where are focusing adverbs placed relative to prepositions? For example, For his presentation, he needed to talk only about tomatoes. For his presentation, he needed to talk about only tomatoes. My Attempt to Answer the Question In both examples, it seems to me that 'only' is placed close enough to what it is intended to modify (the topic of the subject's discourse: tomatoes) that I cannot see any justifiable misinterpretations. One of the examples sounds better to me, but at this point in my studies, I am more interested in what the traditional rules of grammar require, than in how the wordings sound.", "I know someone who just got an Atrix 4G and previously had an iPhone 3GS. I was asked how he could move his contacts from the iPhone/iTunes onto the Android device. I have never owned an iPhone and have had limited interaction with them. Does anyone know the simplest method of getting iPhone contacts onto an Android device?", "Combining Shimano RS500 crankset with Stages Shimano 105 5800 I've been thinking about getting a power meter for a while now. I finally decided I would get one, but now I realise that Stages only starts at the Shimano 105 level. I currently have a Shimano RS500 Crankset ( 50 x 34 ) and I'm very pleased with it, so I don't feel a need to replace the whole crankset with a 105 5800. I also have no plans to upgrade anytime soon to Dura Ace or something like that (the rest of my bike has the 105 5800 set), so I don't think I should buy a higher lever crank arm from Stages. Now, I know something about bikes, but not a lot. It seems that what I have (RS500) looks compatible with the 105 crank arm (just judging by the looks), but I would like to be certain before I spend this amount of money. My set: Stages I would like to get: Kind regards and thanks in advance,", "Solve $[2^{(2^{403})}] = [a]$ in $\\mathbb Z_{23}$ where $0 \\le a < 23$. Solve $[2^{(2^{403})}] = [a]$ in $\\mathbb Z_{23}$ where $0 \\le a &lt; 23$. I've tried to combine corollaries of Fermat's little theorem and various other methods to solve this, but have always been stuck.", "Looking at moving my laundry upstairs, and the right answer is to combine two adjacent closets to get the width and move one of their walls a foot or two into the kitchen to get the depth. The kitchen floor is 10-inch-square tiles. It would be sort of nice if that continued on into the laundry closet. I do have a full bundle of spare tiles in the basement. Question: Could/should I plan on the new wall coming in on top of the existing tiles (presumably having to drill to secure the footer without shattering them), or should I plan on removing the ones under the footer and fitting cut pieces back in afterward?", "Capitalizing \"the\" when mid-sentence in a company name? Consider a company called: The Association of Examples Ltd. When you refer to this company, should you have to capitalize \"the\" when it's mid-sentence and would have been used even if it wasn't in the name? It looks odd to me: In other news, The Association of Examples announced that... Sarah is the founder of The Association of Examples and has... But I imagine it's the correct way. For the grammar-conscious, why or why not? To give you context, I am asking also when branding ones own company like that. The Economist did it (as did ) and , but I can imagine it can cause confusion.", "I'm in Belgium (french part) and I cannot find the proper keyboard layout in Settings > Region and Languages > Input Sources. the closest I found is the french (AZERTY) one but for the symbols such as ! and _ it's not the same keys... what can I do to solve it ? Thank you.", "Which Windows 7 log file contains device connection/disconnection information? Windows 7 frequently plays the usb/new device connection/disconnection sound. It happens both when the computer is idle and under load. All usb device connections have been checked (though I can't rule out a bad cable yet). I thought a good way to track down the issue would be to wait for the sound and then check the log file for the latest connected/disconnected device. I just need to know which log file has this information. Edit: I'm going to leave the answer accepted, however the issue persists. I get that sound seemingly randomly throughout the day. Anyone else have any ideas?", "Is there a word for saying \"um\" or \"uh\", etc, during speaking? Or a word for \"um\" and \"uh\", etc?", "How do you minimise hand washing between every step to keep tools clean? Say you cooking beef steak: You have to unwrap the beef from its packaging, lay it down, get blood on your hands, wash hands, sprinkle salt, wash hands, grind pepper, rub the seasoning into the beef, wash hands, grab the tongs etc.. Is it normal to wash hands after every step or is there a trick to avoid getting all the tools dirty? If you watch TV, they don't ever wash as much as I do.", "Text not very readable on different image backgrounds I've come here seeking for a bit of design help or advice on how I could possibly improve the following: Like the title says, I'm having a website banner with multiple text displayed on different images as backgrounds. Now, since most of the images are dark, I've set the font color as white. But even then, some of the text is not very readable on a couple of images like: Since I'm working with CSS, I've tried different options such as: Adding Text Shadows: CSS: text-shadow: 3px 3px 0px #000; Also tried, creating a semi-transparent box around the text: I feel the box one looks out of place. I've created a for anyone who knows CSS. If not, please feel free to advice me based on your imagination alone. PS: You could also advice on using a different font if that would help it stand out better.", "Why has Steve Nash moved to the LA Lakers in sign-and-trade deal? Congratulations to Steve Nash on his move to Lakers ! His contract with the Suns has expired so I don't understand why he moved in a sign-and-trade deal. Why resign and move in trade? Why didn't the Lakers sign Nash without any trade?" ]
medi_sts_stackexchange_dupe
ASP.NET MVC 4, Code First, MySQL
Unable to Retrieve Metadata
[ "Kernel requires an x86-64 CPU, but only detected an i686 CPU. How can I install Lubuntu/Ubuntu?", "How do I check whether a file exists without exceptions? How do I check whether a file exists or not, without using the statement?", "How to change password using usermod? I am superadmin of a server and like to change password of an existing user . How can I do that ? I tried usermod -p 'new-password' john but it didn't worked ?", "LINK : fatal error LNK1104: cannot open file 'D:\\...\\MyProj.exe'", "Hydraulic Disk brake piston not fully retracting My front disk brake's piston doesn't fully retract. While I can ride the bike, the brake is slightly rubbing. (IE, if I just spin the wheel with my hand, it'll go around about one and a half times and then stop.) It's definitely slowing me down. If this fixable? The advice I got was that it's not worth the trouble and to buy a replacement set. The current brakes are Avid Juicy 7s that are about 7 years old", "One part of the render layer glowing?", "How do I escape a single quote in SQL Server?", "How to correctly enable Desktop Cube in Unity 3D?", "Is an automorphism of the field of real numbers the identity map? Is an automorphism of the field of real numbers $\\mathbb{R}$ the identity map? If yes, how can we prove it? Remark An automorphism of $\\mathbb{R}$ may not be continuous.", "Find the determinant of the following matrix", "Expected prediction error - derivation", "I want to show that $$f: \\mathbb{R}_{\\geq0} \\to \\mathbb{R}_{\\geq0}$$ $$x \\mapsto x^s$$ is Holder continuous with Holder exponent $s \\in \\mathbb{R}$, where $0&lt;s \\leq 1$. So what I want to show is that $\\exists \\hspace{2 mm} C \\in \\mathbb{R}_{\\geq0}$ sucht that for all $ x,y \\in \\mathbb{R}_{\\geq0}, $ $$|x^s -y^s| \\leq C|x-y|^s$$ and therefore, assuming, wlog $\\hspace{1mm} x&gt;y$ $$(x^s -y^s) \\leq C(x-y)^s.$$ I thought about Bernoulli's inequality but couldn't make that work.I thought about the binomial theorem, but didn't know how to handle the fact that $s \\in \\mathbb{R}$.", "Find $a$ such that $(x+a)(x+1991)+1=(x+b)(x+c)$ with $a,b,c\\in\\Bbb Z$ Find all integer values of $a$ such that the quadratic expression $(x+a)(x+1991)+1$ can be factored as a product $(x+b)(x+c)$ where b and c are integers. I tried to do it by comparing the two expressions but I can't proceed.", "The blackboard bold font in the AMSFonts package only has capital letters. I sometimes wish to use a blackboard bold \"1\", for which I can use \\usepackage{bbold}. But this changes the entire blackboard bold font, and I like the original AMSFonts versions of the capital letters better. Is there a simple way for me to get \\mathbb{1} from one package and the blackboard bold capitals from another?", "Exporting 2D vector graphic from ArcScene to Illustrator How can I export 2d vector graphic from ArcScene so I can edit it with Adobe Illustrator? I've tried changing the options when I export 2D scene as AI file or PDF file, but they always remain as a unique image that does not allow me to edit the lines and polygons.", "There are four coins in the main hallway, and a number of them in the Boos in the yard. Is there anything to gain from them other than health? Do I get anything for collecting them, perhaps in a particular order?", "Lately, I've seen many search results in the form of https://stackoverflow.com/q/&lt;id&gt; and /a/&lt;id&gt; on Google. Why do I see these slug-less permalinks instead of the full URL? For instance, a search for gives instead of : For the record, it seems that Google has indexed and .", "apt-get remove with wildcard removed way more than expected. why?", "I have ubuntu 12.04 (original) installed on a server. How do I upgrade this to 12.04.03?", "how to Query parent to child I have process in salesforce in such a way opportunity we can relate this opportunity to this lookup field parent_opportunity__c . Which relates opportunity to other parent opportunity. I want to write a query parent to child : select id,(select id from opportunity where parent_opportunity__c!=null) from opportunity where parent_opportunity__c=null I have worked with different scenarios i cant able to crack it select id,name,(select id,name from parent_opportunity__r) from opportunity this is showing error and select id,name,(select id,name from opportunity) from parent_opportunity__c this is also error" ]
medi_sts_stackexchange_dupe
Adding files to java classpath at runtime
How to load JAR files dynamically at Runtime?
[ "OS: Windows 7. I want install Linux Ubuntu on portable external Hard Drive USB 2.0. I read a variety of methods, but I'm confused by contradictory advices and methods. Actually, installing Ubuntu on anything other than clean PC looks much more complicated than installing Windows. I need to have Ubuntu package + Python 2.7 + C compiler installed. My external hard drive is partially filled, I need to keep all files. Will Ubuntu run entirely on external hardrive, without writing anythinhg to Windows system folders and to registry? Can anyone post detailed guide how install Ubuntu on external hard drive?", "How to make a cycles light emisson object invisible to the camera? In my scene it is required to position the lights close to the main object like this: How I can make the light source invisible to the camera?", "No transaction fee ETF trades - what's the catch? I just noticed TD Ameritrade has program where you can trade from a list of ETFs with zero fees. Sounds like it could save me a bit of money, but my cynical side wonders how they make money off such a program... Is it a loss leader? (They entice me to have an account there, and then make money off the other trades I make?) Or do they simply want to grow the size of their asset base -- what is the mechanism by which they make money on the funds that I have in my account? Edit: in case it wasn't clear in the original question above, this is an ongoing program for free ETF transactions -- not a one-time deal for some number of free trades when you open an account. I have had an account there for years and I'm eligible to participate -- it's not a program explicitly designed just to gain new accounts.", "How can I join these two meshes in a proper way? I know I can Ctrl J to join them, but how can I do so without having overlapping faces?", "As the title says, how can I make this shape without resorting to a Boolean operation? This is obviously a very simple example, but I find myself needing to do something like this relatively often when modelling. Despite using Blender for a couple of years, and considering myself an intermediate to possibly advanced user, I still know of no easy way to make this kind of indentation in an object. Obviously, if you are looking to make an indentation in the middle of the surface, you can simply select a face and extrude down. As you will know, this does not work at the edge of the surface. I can create this shape using loop cuts, deleting the faces and then using snap to edge to extrude the edges down to the same level (and then filling in the faces), but it feels cumbersome and a lot of work for what feels like it should be very simple.", "RemoveDuplicates gives 1004 error", "How do you access the Shrine of Winter? In Dark Souls 2 there is a 'Shrine of Winter' near Sinners Rise. When you approach the shrine it will not let you open the door and a message pops up that says Seek Mightier Souls What does this mean and how do you open this shrine?", "Why do I have blurred vision and how do I fix it?", "If $f$ is a continuous function with $\\displaystyle \\int_{0}^{x}f(t)dt\\rightarrow \\infty$ as $|x|\\rightarrow \\infty\\;,$ Then show that every line $y=mx$ Intersect the curve $\\displaystyle y^2+\\int_{0}^{x}f(t)dt=2$ $\\bf{My\\; Try::}$ Put $y=mx$ in $$\\displaystyle y^2+\\int_{0}^{x}f(t)dt=2\\;,$$ We get $$\\displaystyle m^2x^2+y^2+\\int_{0}^{x}f(t)dt=2.$$ We can write it as $$\\displaystyle 2\\int_{0}^{x}2m^2tdt+\\int_{0}^{x}f(t)dt=2$$ So $$\\displaystyle \\int_{0}^{x}\\left[2m^2t+f(t)\\right]dt-2 =0$$ Now Let $$g(x) = \\displaystyle \\int_{0}^{x}\\left[2m^2t+f(t)\\right]dt-2.\\;,$$ When $x\\rightarrow \\infty\\;,$ Then $g(x)\\rightarrow \\infty.$ (Where $g(x)$ is an Continuous function.) Now I did not Understand How can i solve that, Help me Thanks", "How to put a framed box around text + math environment", "How can you prove that a function has no closed form integral? In the past, I've come across statements along the lines of &quot;function $f(x)$ has no closed form integral&quot;, which I assume means that there is no combination of the operations: addition/subtraction multiplication/division raising to powers and roots trigonometric functions exponential functions logarithmic functions which when differentiated gives the function $f(x)$. I've heard this said about the function $f(x) = x^x$, for example. What sort of techniques are used to prove statements like this? What is this branch of mathematics called? Merged with &quot;&quot; by : Sometimes we are told that some functions like $\\dfrac{\\sin(x)}{x}$ don't have an indefinite integral, or that it can't be expressed in term of other simple functions. I wonder how we can prove that kind of assertion?", "Repeating something with (1/n)th chance of success n times Is there anything that can be said about how many attempts it will take to correctly guess a random number out of 1000 numbers? If the number wouldn't change the probability would just increase every guess, giving in the end a probability of 1. If the number changes every guess tough, you just have a 1/1000th chance everytime. Can it be calculated how many attempts it would probably take, on average? (I'm sorry, i'm not very skilled in probability maths)", "MacBook Pro 2020 Fan Issues I recently purchased a MacBook Pro 2020 13&quot; (1.4 GHz, 8GB Ram, i5). For some reason, when I open Chrome and watch Twitch my computers fans turn on and go crazy. After opening Activity Monitor, I noticed that Google Chrome Helper (Renderer) uses around 50-80% of my CPU. Also, sometimes when I run code on my MacBook Pro, the fans turn on when the program is compiling/running but slow down a few minutes after terminating the program. Also, when watching Twice on Safari, the fans don't come on. However, around 50-60% of the CPU is still being used. Should I be concerned about the CPU usage (I am nervous because I only recently purchased the laptop)?", "SSH login without password with kerberos", "Do we still need swap partitions on desktops? I have read , but it was asked in the context of servers not desktops or notebooks. If a good amount of RAM is installed on a notebook, say 8 GB, do we still need a swap space?", "I’ve a date and I really waited long to make this happen. My gifrfriend is a bit worried about the security issue in Paris. Which locals think that the media is exagerrating the issue and the issue is small and non-threatening for tourists?", "Today I found my first ever (to the best of memory) emoji in a post. Having no idea this was even possible I came here looking for some history. I found there is an tag. There seems to be consensus that they add little to no value on SE per &amp; we also know they don't translate well on all devices I don't find any history other then this one post where there is any focused attempt to support them. I don't find any history of discussion on supporting them. Two questions Is it possible to disable emojis across Stack Exchange? If yes Should we disable emojis across Stack Exchange?", "Converting a short cage rear derailleur to a long cage derailleur Is it possible to convert a short cage rear derailleur (for example the Huret Svelto) to a long cage derailleur by just taking the lower cage and replacing it by a longer one?", "I'm looking for a high current DC switch (able to switch something like 5V@30A) and I've encountered several DPDT that might do what I need, however they are only rated for AC applications (3A@250VAC or 6A@125VAC). Are these rating convertible to DC? or is that something that only the facturarer would know?", "Trying to dual boot Ubuntu 14.10 with Windows 10, last one not detected I have a laptop, and I'm going to install Ubuntu (I have experience, and I have successfully installed , Ubuntu, , , , , , etc.), but installing (Utopic Unicorn) alongside , Ubuntu can't detect Windows. It shows me like there's no OS, but I have Windows&nbsp;10. I have two primary partitions by the way if I manually install. If the Ubuntu installer can't detect Windows&nbsp;10, will it be detected at ?" ]
medi_sts_stackexchange_dupe
Import JSON data into Python
Reading JSON from a file?
[ "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.", "Iteration over std::vector: unsigned vs signed index variable What is the correct way of iterating over a vector in C++? Consider these two code fragments, this one works fine: for (unsigned i=0; i &lt; polygon.size(); i++) { sum += polygon[i]; } and this one: for (int i=0; i &lt; polygon.size(); i++) { sum += polygon[i]; } which generates warning: comparison between signed and unsigned integer expressions. I'm new in the world of C++, so the unsigned variable looks a bit frightening to me and I know unsigned variables can be dangerous if not used correctly, so - is this correct?", "With the announcement of the Ubuntu Phone OS I'd like to know what phone (and tablet) models are supported at this time. Note from foss &amp; Oli: We are making this the master question for all future \"Will this work on &lt;insert random tablet/phone/device here&gt;?!\" questions", "Suppose every subsequence of X converges to 0. Show that lim(X)=0 Question: Suppose that every subsequences of $X = (x_n)$ has a subsequence that converges to $0$. Show that $\\lim(X) = 0$ My attempt: Suppose that $\\lim(X) =L \\neq 0$ Let $\\epsilon &gt; 0$, and let $K(\\epsilon)$ be s.t. $n \\ge K(\\epsilon)$ then $|x_n-L| &lt; \\epsilon$ let $n_k \\ge k$, and then $k \\ge K(\\epsilon)$ and $n_k \\ge k \\ge K(\\epsilon)$ s.t. $|x_{n_{k}}-L| &lt; \\epsilon$, which is a contradiction. therefore $\\lim(x) =0$", "How do I forward/NAT all traffic to one interface/IP to a remote IP? I have one \"server A\" that has multiple IPs attached to it, like so: eth0:0 1.1.1.1 eth0:1 1.1.1.2 eth0:2 1.1.1.3 I have another \"server B\" that also has multiple IPs attached to it, like so: eth0:0 2.2.2.1 eth0:1 2.2.2.2 eth0:2 2.2.2.3 Now, I want to setup iptables on \"Server A\" to forward/NAT all incomming traffic on \"eth0:2\" to IP 2.2.2.3 on \"Server B\". I have verified that \"Server A\" is able to \"talk\" to \"Server B\" on IP 2.2.2.3. Ping and telnet to open ports works just fine and I have the forward-flag turned on (net.ipv4.ip_forward=1) I have tried multiple different ways, DNAT, SNAT, MASQUERADE etc, but I cannot get anything to work. This line works fine if I try to forward traffic between IPs on the SAME server: iptables -t nat -A PREROUTING -d 1.1.1.3 -j DNAT --to-destination 1.1.1.2 But if I switch out the \"1.1.1.2\" for \"2.2.2.3\", it does not work. I assume that I need a second iptable rule to solve it. I have tried with the following POSTROUTING rules without any luck (not at the same time): iptables -t nat -A POSTROUTING -d 2.2.2.3 -j MASQUERADE iptables -t nat -A POSTROUTING -d 2.2.2.3 -j SNAT --to 1.1.1.3 iptables -t nat -A POSTROUTING -j MASQUERADE What am I missing? EDIT 1: I finally got it to work by using the following: net.bridge.bridge-nf-call-iptables=0 iptables -t nat -A PREROUTING -d 1.1.1.3 -j DNAT --to-destination 2.2.2.3 iptables -t nat -A POSTROUTING -d 2.2.2.3 -j SNAT --to 1.1.1.3 However, now another problem appeared. All logs etc on server 2.2.2.3 shows that ALL traffic now comes from 1.1.1.3, like apache logs, mail logs etc. I assume this is the nature of NAT. However, when I do standard port forwarding on my home-router to my laptop that is running apache, I see the original \"requester IP\" in the logs. So, how does the router do this? And how can I do the same on my server setup? Bottom line, I want to forward all traffic from Server A (1.1.1.3) to Server B (2.2.2.3), BUT I also want to be able to see where the traffic came from on Server B (2.2.2.3), i.e the apache logs should show the original IP of the requester. I assume I should use some other way than NAT to make this happen, and it should be possible, as even my simple home-router is able to do this. One extra thing, the IPs attached to Server A and Server B is LOCKED to each respective server. Thus, Server A is NOT able to send out traffic FROM IP 2.2.2.3. It is locked by my provider in the router.", "What is a word for \"cannot-be-wrong\" attitude? When speaking with someone recently I was continuously taken aback by how he could not concede even the slightest detail in my argument (which was not unreasonable), and it happened another time previously. Both times had to do with me pointing out 'error' in his action. He very much exhibits that 'I cannot be wrong' attitude. I first thought to call this arrogance or pride but he is not overbearing like arrogance demands and he does not show excessive self esteem that pride demands. What is a word that can accurately describe this attitude?", "Probability of people attending same and different places $5$ tourists plan to attend Octoberfest. Each attends a location at random from the choices: Alpine, Bingeman, Concordia, Kitchener, Queens, Schwaben, Transylvania. Q What is the probability that two attend one location and three attend another same location? I get that there are $\\binom{5}{2}$ possibilities to create 2 groups. There are $\\binom{7}{2}$ ways to choose 2 places so shouldn't it be $\\frac{\\binom{7}{2}\\binom{5}{2}}{7^5}$?", "What happens if my order exceeds the bid or ask sizes? What will happen if my order exceeds the bid or ask size? For example, if the bid or ask is 100 shares, but I want to buy 100,000 shares, is it possible to do so?", "How to get the pid of the last executed command in shell script? I want to have a shell script like this: my-app &amp; echo $my-app-pid But I do not know how the get the pid of the just executed command. I know I can just use the jobs -p my-app command to grep the pid. But if I want to execute the shell multiple times, this method will not work. Because the jobspec is ambiguous.", "When is an Integer a Rational Number, and are All Ratios Rational, Even $\\frac{\\sqrt{7}}{2}$? $$\\Bbb{Q} = \\left\\{\\frac ab \\mid \\text{$a$ and $b$ are integers and $b \\ne 0$} \\right\\}$$ In other words, a rational number is a number that can be written as one integer over another. For an integer, the denominator is $1$ in that case. For example, $5$ can be written as $\\dfrac 51$. Is $5$ a rational number? Or is $\\dfrac 51$ a rational number? I'm not able to figure out what the definition is actually saying. What are the numbers that cannot be written as one integer over another? Irrational numbers are the numbers that cannot be written as one integer over another. Roots of numbers that are not perfect squares are examples of irrational numbers. However, what is this then: $\\dfrac {\\sqrt 7} {2}$?", "How are unbalanced forces even possible, given Newton's 3rd law?", "I was going through the fundamental theorem in Number Theory where any non zero integer n can be represented as a product of distinct primes. A related problem with this theorem is to prove that for every such number, there exists a prime $p$ such that $p&lt; \\sqrt n$. I was wondering if there is any mathematical proof that no prime $p$ exists for the number $n$ such that $p&gt; \\sqrt n$.", "What are the differences between Generics in C# and Java... and Templates in C++? I mostly use Java and generics are relatively new. I keep reading that Java made the wrong decision or that .NET has better implementations etc. etc. So, what are the main differences between C++, C#, Java in generics? Pros/cons of each?", "How to download all required Ubuntu drivers", "What is \"anycast\" and how is it helpful? I'd never heard of anycast until a few seconds ago when I read \"\". The wikipedia \"\" article on it is quite formal and doesn't really evoke a mental picture of how it would be used. Can someone explain in a few informal sentences what \"anycast\" is, how you configure it (just in a general sense), and what its benefits are (what does it make easier)?", "Why massless particles have zero chemical potential?", "Let $\\mu(\\Omega)$ be a probability measure (i.e. $\\mu(\\Omega) = 1$), and let $f,g$ be non-negative measurable functions on $\\Omega$ such that $fg \\geq 1$. Show that $1 \\leq (\\int f^p )(\\int g^p)$ for all $0 &lt; p &lt; \\infty$ I'm a bit at a loss of what to do. I know that since $fg \\geq 1$, we may obtain: $$\\int_{\\Omega} d\\mu = \\mu(\\Omega) = 1 \\leq \\int_{\\Omega} fg = \\int_{\\Omega} |fg|$$ The right-most integral is true since $fg$ is positive and it is equal to $||fg||_1$. By Hölder's inequality, we obtain: $$1 \\leq \\int |fg| \\leq ||f||_p ||g||_q = (\\int f^p)^\\frac{1}{p}(\\int g^q)^\\frac{1}{q}$$ where $p$ and $q$ satisfy $\\frac{1}{p} + \\frac{1}{q} = 1$. Raising the left-most and right-most sides of this inequality to the power $p$, I may obtain: $$1 \\leq (\\int f^p)(\\int g^q)^\\frac{p}{q}$$ I now wish to show that $(\\int g^q)^\\frac{p}{q} \\leq \\int g^p$, but I've been at a loss of how to do it. Any tips or hints would be greatly appreciated.", "Question statement is as in the title: $\\varphi:G\\to H$ is a Lie Group Homomorphism, then $\\ker \\varphi$ has Lie algebra $\\ker D_e \\varphi$ Since $\\varphi$ is a Lie group homomorphism, in particular it is continuous. As $H$ must be Hausdorff, every point set is closed, and hence $\\{e\\}$ is closed in $H$, which implies that $\\ker\\varphi = \\varphi^{-1}(e)$ is closed as well. So $N=\\ker\\varphi$ is an embedded Lie subgroup of $G$. Therefore, the inclusion $j:N\\to G$ is a Lie Group homomorphism, and induces a Lie algebra homomorphism $D_e j :T_e N \\to T_e G$. So I only need to show that $D_e j$ is in fact an isomorphism between $T_e N$ and $\\ker D_e \\varphi$. But I'm stuck at this point. I know that for $X\\in T_e N$, we have, for $f\\in C^{\\infty}(H)$, $$ D_e\\varphi (D_e j(X))(f)=D_e j (X)(f\\circ \\varphi)=X(f\\circ \\varphi\\circ j)=0$$ So $D_ej(T_e N) \\subset \\ker D_e \\varphi$. At this point, I can either show inverse inclusion: that is, for every $X\\in \\ker D_e \\varphi$, we can find $Y\\in T_e N$ such that $D_e j (Y)=X$, or for all $f\\in C^{\\infty}(G)$, $Y(f\\circ j)=X(f)$ Or I can somehow show that dimensions of the two spaces are the same. But I can't proceed from here. It'd be great if someone could help me", "Ability to update profile from the Stack Exchange Android App", "Is it possible to retrieve a previous un-evaluated, un-normalized input?" ]
medi_sts_stackexchange_dupe
Is ';;' a chaining operator in Unix? How does it work?
What does ;; do in sh?
[ "How to use numpad / on a keyboard without a numpad? I've just got into Blender, and I like it a lot. But as I just switched from a stationary computer to a MacBook, I've got some new problems regarding the numpad. I can use 1-9 perfectly, But I have no idea how to emulate buttons like / (used to enter local view). I've searched the web for an answer, but I can't find any.", "How to determine the genre of a song? I listen to many songs and I always wonder how the genre of a song is determined. Is it by listening to the song, or by the song's info like the artist, year released and so on?", "I would like to align the view straight on to a face, perpendicular to the normal. How do I align the 3D viewport to the face of a mesh?", "Proof that the real numbers are countable: Help with why this is wrong I was just thinking about this recently, and I thought of a possible bijection between the natural numbers and the real numbers. First, take the numbers between zero and one, exclusive. The following sequence of real numbers is suggested so that we have bijection. 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 0.01, 0.02, ... , 0.09, 0.10, 0.11, ... , 0.99, 0.001, 0.002, ... , 0.999, 0.0001, etc. Obviously, this includes repeats, but this set is countable. Therefore, the set of all numbers between zero and one is a subset of the above countable set, and is thus countable. Then we simply extend this to all real numbers and all the whole numbers themselves, and since the real numbers, as demonstrated above, between any two whole numbers is countable, the real numbers are the union of countably many countable sets, and thus the real numbers are countable. Please help me with this. I understand the diagonalization argument by Cantor, but I am curious specifically about this proof which I thought of and its strengths and flaws. Thanks.", "Texture not appearing in render? I'm noticing a significant difference between when my objects are observable in the 3D View and when the objects are rendered. Both objects have a material with toon settings and each have materials (incorrectly?) added to the object. the human mesh has separate textures for the head and body. The sword and the human mesh both have mapping > coordinate set to UV and Mapping > Map set to UVMap, however only the head texture seems to show up properly, and the sword texture doesn't show up at all.", "Answer appears automatically converted as a comment I posted an answer (pointing to another question already asked) but when I hit submit, I saw my answer appear as a comment to the question instead. I tried it a couple of times and still the same result. The answer gets eaten up and is transformed into a comment. Is this a bug?", "Prove continuous functions $f$ and $g$ are equal Suppose $f,g$: $\\Bbb R$ → $\\Bbb R$ are continuous functions such that $f(r) = g(r)$ for all $r$ in $\\Bbb Q$. That is to say, $f$ and $g$ are equal on the rational numbers. Prove that $f(x) = g(x)$ for all $x$ in $\\Bbb R$", "Ackermann Function primitive recursive I am reading the wikipedia page on ackermann's function, And I am having trouble understanding WHY ackermann's function is an example of a function which is not primitive recursive. I understand that the ackermann function terminates, and thus is a total function. So why is it not primitive recursive? The only information that i can find on the wikipedia page is [Ackermann's function] grows faster than any primitive recursive function and is therefore not primitive recursive Which isn't a good example of why it is not primitive recursive. Could anyone explain to me how exactly ackermann's function is NOT primitive recursive please?", "Product of pairwise coprime integers divides $b$ if each integer divides $b$ Let $a_1....a_n$ be pairwise coprime. That is $gcd(a_i, a_k) = 1$ for distinct $i,k$, I would like to show that if each $a_i$ divides $b$ then so does the product. I can understand intuitively why it's true - just not sure how to formulate the proof exactly. I want to say if we consider the prime factorizations of each $a_i$, then no two prime factorizations share any prime numbers. So the product of $a_1...a_n$ must appear in the prime factorization of $b$. Is this correct? Or at least if if the idea is correct, any way to formulate it more clearly?", "I have some questions with string theory: Why is it that there is exactly 4 large spacetime dimensions while the rest remain small? It is a nonlocal QFT. How could that fit in GR?", "Is a totally ordered set well-ordered, provided that its countable subsets are? Let $(X,⪯$) be totally ordered set, prove that if every non empty countable subset of $X$ is well ordered then X is well ordered. It does seem obvious that any subset should have a minimum but I am not sure of how to prove it. Any help would be appreciated, and sorry I put up the same problem earlier but forgot to include the 'countable' subset.", "I unplugged my USB stick from Ubuntu 16.04 without the save remove option, but exfat should be fine doing so. No read write was happening, the partition does not use journaling. What I end up with is an unmountable USB stick with checksum error. What tools are there to recover the partition table or at least the data on the USB stick? What I am doing now is scanning via parted. Has anyone experienced the same problem with exfat and recovery options? Unfortunately parted probably won't detect the partition because . I also tried to use Partition Wizard on Windows but it failed to detect anything, just showing unallocated space. How do I proceed? are there helpful tools under Windows or Ubuntu? I also tried to use gpart -v /dev/sdb but it failed to detect anything. On OS X there is a tool called fsck_exfat, is there any on Windows? update The disk is preinstalled with Parted Magic. After quick search no partition shows up.", "Python super() raises TypeError In Python 2.5, the following code raises a TypeError: &gt;&gt;&gt; class X: def a(self): print \"a\" &gt;&gt;&gt; class Y(X): def a(self): super(Y,self).a() print \"b\" &gt;&gt;&gt; c = Y() &gt;&gt;&gt; c.a() Traceback (most recent call last): File \"&lt;stdin&gt;\", line 1, in &lt;module&gt; File \"&lt;stdin&gt;\", line 3, in a TypeError: super() argument 1 must be type, not classobj If I replace the class X with class X(object), it will work. What's the explanation for this?", "I have a manuscript that is under review in a major journal which is a main result out of a few recent years of my research. When applying for faculty positions, I would like to send the draft as a part of my writing sample. But since the material is not yet published, I am not sure if it is a good idea. What are the foreseeable disadvantages of sending an article in review to the faculty search committee? My area is neuroscience / biomedical engineering. Update: The paper got into a high-profile journal, and I got a job at a different place which did not require a writing sample.", "Why won't my follower, Serana, follow me? I told my follower (Serana) to wait. But this is different. I told her to go somewhere and wait so it will activate the enemies. Well it did and I killed them. But Serana seems to be not following me anymore. I can't tell her to follow me. And she is constantly in a squatting position. The only thing I can do is tell her to wait somewhere else to move her. And I can't part ways because I'm doing a main quest and she has to be there. Can anybody give me a tip on what to do?", "How to change LCD brightness from command line (or via script)?", "How can I play Pokémon GO without Internet? I downloaded Pokémon GO on my Samsung Galaxy Express and I can play it at home, but when I go outside I can't play because there is no Internet. How can I play Pokémon GO without Internet outside?", "How to run a command that requires sudo at login", "I'm fairly new to blender and not a graphics person by any stretch of the imagination. I've been having some success though modelling semi-reflective glass for a project I wish to build (physically) and I'm wondering if it is possible to model the effects of a lens. The lens I wish to model is a double-convex type. It has a diameter of 120mm and a focal-length of 301mm. Is this something that can be modelled in blender and if so, how? I'd like to be able to position the camera close to this lens and reproduce the magnifying effects of the lens on the scene behind the lens as well as depth-of-field effects. Thanks a lot.", "How do properties work in Object Oriented MATLAB?" ]
medi_sts_stackexchange_dupe
Why are strings declared as an array "char word[5] = "hello" modifiable but not strings declared as pointer (char *word = "hello")?
Why do I get a segmentation fault when writing to a "char *s" initialized with a string literal, but not "char s[]"?
[ "Prevent Photos app on OSX from launching when plugging in device The Photos app opens whenever I plug in my phone. How can this be prevented? I have seen many solutions for the old iPhoto app that involve changing the \"Connecting camera opens\" option, but the new app has no such option.", "Call Servlet and invoke Java code from JavaScript along with parameters", "PTR record won`t update", "Wrong numeration in toc longer then one page I tried anything I could find with \\cleardoublepage and \\newpage and so on; mostly they use \\addcontentsline. I don't need to use it as listof=totoc already puts it into the toc so even if I use \\addcontentsline instead I get the same result. \\documentclass[ fontsize=11pt, DIV10, ngerman, paper=a4, twoside=false, titlepage, parskip=half, listof=totoc, bibliography=totoc, index=totoc, captions=tableheading, foottotes=multiple, final ]{scrartcl} \\usepackage[ automark, headsepline, ilines ]{scrpage2} \\usepackage[ngerman]{babel} \\usepackage[babel,german=quotes]{csquotes} \\usepackage[dvips]{graphicx} \\begin{document} \\ofoot{\\pagemark} \\pagenumbering{Roman} \\clearpage \\tableofcontents \\clearpage \\listoffigures \\clearpage \\pagenumbering{arabic} \\section{Test} \\label{sec:Test} Test \\subsection{Test} \\label{sec:Test} \\begin{figure}[H] \\centering \\caption{Testfig} \\label{fig:testfig} \\end{figure} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\subsection{Test} \\label{sec:Test} \\end{document}", "Limit the post for differents custom post type in the same wp_query I have three custom post type: books magazine videos Now i want to limit the number of post for custom post type, for example: books => 3 post magazine => 2 post videos => 1 post I used a query post like this: query_posts( array( 'post_type' =&gt; array( 'books', 'magazine', 'videos' ), 'paged' =&gt; $paged, 'posts_per_page' =&gt; 6, )); $counter = 1; if (have_posts()) : while (have_posts()) : the_post(); if (($counter == 2) || ($counter == 3) || ($counter == 4)) { $div = 'alpha'; } elseif(($counter == 6)) { $div = 'omega'; } else { $div = ''; } The problems is i cant limit the numbers by custom post type. Any idea? Thank you :)", "How much to tip in the United States?", "50GB of disk space missing On a 120GB SSD hard drive in a MacBook only 70GB are available. The missing 50GB are not even shown as free space. Here is what the output of Disk Utility looks like: As you can see on the first screenshot the disk has 120GB. However, the partition chart on the same screenshot only shows 70GB. Also the other two screenshots show that only 70GB out of 120GB seem to be available. The command diskutil list shows that the physical disk0 is 120GB big, but the synthesized disk1 only 70GB: /dev/disk0 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *121.3 GB disk0 1: EFI EFI 209.7 MB disk0s1 2: Apple_APFS Container disk1 70.0 GB disk0s2 /dev/disk1 (synthesized): #: TYPE NAME SIZE IDENTIFIER 0: APFS Container Scheme - +70.0 GB disk1 Physical Store disk0s2 1: APFS Volume Macintosh HD 60.2 GB disk1s1 2: APFS Volume Preboot 21.7 MB disk1s2 3: APFS Volume Recovery 509.9 MB disk1s3 4: APFS Volume VM 2.1 GB disk1s4", "Does an unbalanced sample matter when doing logistic regression? Okay, so I think I have a decent enough sample, taking into account the 20:1 rule of thumb: a fairly large sample (N=374) for a total of 7 candidate predictor variables. My problem is the following: whatever set of predictor variables I use, the classifications never get better than a specificity of 100% and a sensitivity of 0%. However unsatisfactory, this could actually be the best possible result, given the set of candidate predictor variables (from which I can't deviate). But, I couldn't help but think I could do better, so I noticed that the categories of the dependent variable were quite unevenly balanced, almost 4:1. Could a more balanced subsample improve classifications?", "Does there exist a surjective homomorphism from $(\\mathbb R,+)$ to $(\\mathbb Q,+)$ ? Does there exist a surjective homomorphism from $(\\mathbb R,+)$ to $(\\mathbb Q,+)$ ? ( I know that there 'is' a 'surjection' , but I don't know whether any surjective homomrophism from $\\mathbb R$ to $\\mathbb Q$ exist or not . Please help . Thanks in advance )", "Combinatorics Question Asking How Many Integer Solutions Given Different Restrictions How many integer solutions of $x_1 + x_2 + x_3 + x_4 = 28$ are there with: (a) $0 ≤ x_i ≤ 12$? (b) $−10 ≤ x_i ≤ 20$? (c) $0 ≤ x_i, x_1 ≤ 6, x_2 ≤ 10, x_3 ≤ 15, x_4 ≤ 21$? \\ \\ My attempts (I was really only able to solve part (a) but I would appreciate if you could check my work for this one as well): (a) First I took the total number of integer solutions with no restrictions: There would be ${28+3\\choose 3}$ = ${31\\choose 3}$ total solutions with no restrictions. Then I used the inclusion exclusion principle and knew I would have to subtract [P(A) + P(B) + P(C) + P(D)] where A --> $x_1$ is greater than or equal to 13, ..., D--> $x_4$ is greater than or equal to 13. The probabilities of all these cases would equal ${15+3\\choose 3}$ = ${18\\choose 3}$ because once we assign 13 to one of the $x_i$ there would be $28 - 13 = 15$ remaining to distribute among the $x_i$ values. We would also need to choose which of the $x_i$ to give the 13 to so we would multiply the ${18\\choose 3}$ by ${4\\choose 1}$ = ${4\\choose 1}{18\\choose 3}$ We would then have to add back, since we \"oversubtracted\", the case in which there is an intersection between two of the $x_i$ or in other words two of the $x_i$ receive 13 or more. P$(A\\bigcap B)$ = $28-2(13) = 2$ remaining to distribute among the $x_i$ values. So we would also have to choose which of the $x_i$ to give the 13 to so we would have ${4\\choose 2}$ ways to choose them. So there would be ${4\\choose 2}{2+3\\choose 3}$ = ${4\\choose 2}{5\\choose 3}$ solutions in this case. Thus the number of solutions would be: ${31\\choose 3} - {4\\choose 1}{18\\choose 3} + {4\\choose 2}{5\\choose 3}$. I'm not sure if this is correct and I'm really stuck on b and c so I would appreciate any help or feedback. Thank you!", "How can I combine two plots?", "Is it lenses which make your photographs, not camera bodies?", "Note: I will expand this question with more specific points when I have my own internet connection and more time (we're moving in, so I'm at a friend's house). This question is broad, involved, and to some degree subjective. (I started out as a physics-only student, but eventually decided to add a mathematics major. I am greatly interested in mathematics; the typical curriculum required for physics students is not deep or thorough enough; mathematics is more general (that means work!); and it only requires a few more classes. Naturally, I enjoy immensely.) This question asks mainly of undergraduate-level study, but feel free to discuss graduate-level study if you like. Please do not rush your answer or try to be comprehensive. I realize the StackOverflow model rewards quick answers, but I would rather wait for a thoughtful, thorough (on a point) answer than get a fast, cluttered one. (As you probably know, produces clear, useful writing; and a properly-done comprehensive answer would take more than a reasonable amount of time and effort.) If you think an overview is necessary, that is fine. For a question this large, I think the best thing to do is focus on a specific area in each answer. Update: To Sklivvz, Cedric, Noldorin and everyone else: I had to run off before I could finish, but I wanted to say I knew I would regret this; I was cranky and not thinking clearly, mainly from not eating enough during the day. I am sorry for my sharp responses and for not waiting for my reaction to pass. I apologize. Re: Curricula: Please note that I am not asking about choosing your own curriculum in college or university. I did not explicitly say that, but several people believed that was my meaning. I will ask more specific questions later, but the main idea is how a physics student should study mathematics (on his or her own, but also by choosing courses if available) to be a competent mathematician with a view to studying physics. I merely mentioned adding a mathematics major to illustrate my conclusion that physics student need a deeper mathematical grounding than they typically receive. And now I have to run off again.", "How to make crs transformation of a QgsVectorLayer? I need to transform QgsVectorLayers in python from one crs into another crs. By googling I found the following solution (), which works for points only: crsSrc = QgsCoordinateReferenceSystem(4326) # WGS 84 crsDest = QgsCoordinateReferenceSystem(32633) # WGS 84 / UTM zone 33N xform = QgsCoordinateTransform(crsSrc, crsDest) pt1 = xform.transform(QgsPoint(18,5)) Is there a way to make a crs transformation of an entire layer?", "How can I deal with \"Low on Space\" messages on my Android? I keep getting the \"Low on Space: Application data space is low. To free up\" [the rest is cut off] message. I've moved every app I can over to the SD card, cleared the cache, compacted my K9 mail cache. Advanced Task Killer (ouch!) says I have 98M Available Memory File Manager says I have 223M/748M (29%) free. That's not so bad -- but I'm stuck in the no-updates scenario. The market downloads won't really start, gmail won't update, etc. I've rebooted several times, and nothing changes. Aaaargh. What can be done, other than uninstalling everything ?", "Installing QGIS with ECW support on Mac? I bought a imac recently and I tried to install qgis: without success! It is not possible to read the raster files. I installed GDAL ECW plugin, but it is necessary to copy and paste another file from ERDAS ECW/JPEG2000 following this instruction. \"VERY IMPORTANT POST-INSTALL You MUST download and install the ECW SDK yourself. I don't have the means to enforce export restrictions. I'm sorry, but installation is a manual process for now: Go to . Select \"ERDAS ECW/JPEG2000 SDK\" from the Product popup. Click on the MacOSX line, then the Download Now link. Open the downloaded disk image and run the installer. It will install into the top of your boot drive, /Intergraph. Dig into this folder to Desktop_Read-Only/redistributable/libstdc++. Copy the libNCSEcw.dylib file to: /Library/Application Support/GDAL/1.11/Libraries and copy the whole Desktop_Read-Only/etc folder here to: /Library/Application Support/GDAL/1.11 so it looks like (there may be other files in Libraries and PlugIns for other installed plugins): Library Application Support GDAL 1.11 etc Libraries libNCSEcw.dylib PlugIns gdal_ECW_JP2ECW.dylib You can trash the installed Intergraph folder when done to save a few hundred MB of space. I failed the procedure! Could you help me?", "Import PLY doesn't display vertex colors I'm trying to import a .PLY mesh in Blender. I've troubles with colors: the mesh appear in a grayscale palette. Other softwares open it correctly (eg. MeshLab). This is the header of the PLY file: ply format binary_big_endian 1.0 comment created by Geomagic Sculpt Exporter. element vertex 182488 property float x property float y property float z property uchar red property uchar green property uchar blue element face 364980 property list uchar int vertex_indices end_header Any tips? Thanks!", "Resize image in Python without losing EXIF data I need to resize jpg images with Python without losing the original image's EXIF data (metadata about date taken, camera model etc.). All google searches about python and images point to the PIL library which I'm currently using, but doesn't seem to be able to retain the metadata. The code I have so far (using PIL) is this: img = Image.open('foo.jpg') width,height = 800,600 if img.size[0] &lt; img.size[1]: width,height = height,width resized_img = img.resize((width, height), Image.ANTIALIAS) # best down-sizing filter resized_img.save('foo-resized.jpg') Any ideas? Or other libraries that I could be using?", "Word for \"reading carefully\" 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.", "How to evaluate potential advisers on grounds other than their research/publications? While accepting an offer to grad school, one is basically entering into a lasting relationship with one's adviser - most likely, someone whom the applicant has never met before, and the only exposure has been through the potential adviser's website/publications. It is in the interest of both parties to ensure (to the greatest possible extent) that there are no personal/professional traits of either that hamper the formation of a pleasant working relationship - no-one would want to go through the ordeal of having to change advisers midway! While the faculty has a chance to have a good look at the applicant's profile as well as his motivations (through his grades and SOP), the applicant doesn't have a similar opportunity. So, I'm interested to know what parameters can be used to gauge a potential fit. I've thought of the following: Past students: Did anyone ever drop out/change advisers midway, and if so, for what reasons? These would be a bit hard to find though, as I don't expect the faculty concerned would list them on their website. It would be great if anyone could let me know how to find out the list of incoming students to a department for any year. Publication rate, taking into account the venues where they were accepted. Time taken to graduate - though I accept this is more dependent on the student, a median figure should be telling ... What they did post Ph.D. - did anyone get tenure if they went into academia, or is almost everyone unable to break out of being a post-doc? Tenure status: I'm a bit unsure about this, so wanted the community's opinions about it. Just so that I'm clear, I'm only trying to calibrate the applicant's expectations about the working style of his potential adviser - and hence need to know to what extent are the following \"typical\" assumptions valid. Tenured professor A full professor is more likely to get grant funding, hence less time spent on TAship - but could also mean less time/effort spent on interactions with students (either being busy with other projects/talks, or due to more commitments to family at that age). Tenure-track faculty (Assistant profs) More likely to be young and energetic, and could translate to more time spent on one-to-one discussions with grad students - but funding may prove to be an issue, and may have to be on TA for a longer period. What other factors would be relevant in this matter, and to what extent am I correct/incorrect in either the factors considered, or for undertaking this exercise at all?" ]
medi_sts_stackexchange_dupe
why window[id] === document.getElementById( id )
Is there a spec that the id of elements should be made global variable?
[ "Programming language books explain that value types are created on the stack, and reference types are created on the heap, without explaining what these two things are. I haven't read a clear explanation of this. I understand what a stack is. But, Where and what are they (physically in a real computer's memory)? To what extent are they controlled by the OS or language run-time? What is their scope? What determines the size of each of them? What makes one faster?", "Does python optimize modules when they are imported multiple times? If a large module is loaded by some submodule of your code, is there any benefit to referencing the module from that namespace instead of importing it again? For example: I have a module MyLib, which makes extensive use of ReallyBigLib. If I have code that imports MyLib, should I dig the module out like so import MyLib ReallyBigLib = MyLib.SomeModule.ReallyBigLib or just import MyLib import ReallyBigLib", "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.", "Why didn't Sauron find Bilbo when he put on the ring like Frodo?", "derivative bounded by a constant multiple of the function $f$ is differentiable on $[a,b]$, $f&#39;(x) \\leq A|f(x)|$ where $A$ is a non-negative constant. If $f(a)=0$ show $f(x)=0, \\forall x\\in [a,b]$ I imagine the proof uses the Mean Value Theorem but I have not been able to get it to work. I know $|f(x)|=|f&#39;(c)|(x-a)$ where $c \\in [a,x]$, so $|f(x)| \\leq A\\ |f(c)|(x-a)$ where $c\\leq x$ And I guess I could sort of iterate this to keep getting a smaller $c$ but I don't see why it must go all the way to zero.", "Permission denied, are you root?", "So, we know that there is no \"natural\" isomorphism between a finite dimensional vector space $X$ and its dual $X^{\\vee}$. However, given a basis for $X$ $(e_1, \\dots, e_n)$ we can always construct a (dual) basis $(e^1, \\dots, e^n)$ for $X^{\\vee}$ that satisfies $e^i(e_j) = \\delta^i_j$. It follows that $V \\approx V^{\\vee}$ simply because they have the same finite dimension $n$. Now, it seems to me that we can construct an isomorphism by assigning $$ e_i \\mapsto e^i $$ and extending by linearity. That is, for an arbitrary vector $v \\in X$ given by $v = \\sum v^ie_i$ we can specify a linear map $$\\phi:V \\rightarrow V^{\\vee}$$ by $$ \\phi(\\sum v^ie_i) := \\sum v^ie^i $$ It is a quick exercise to check that $\\phi$ is an isomorphism. Now, although this construction seems correct, there is something that doesn't quite sit right with me about it. For one thing, there is no way to really make sense of the summation convention as the right side of the function will always contain two superscripts thus requiring an explicit summation sign. The other thing that feels rather off is actually taking a lower index and moving it to an upper index, i.e., $e_i \\mapsto e^i$ (which, of course, is the reason that the summation convention doesn't work). So, with this background my questions are Is there any sense in which the above isomorphism is \"favored\" or \"canonical\"? Is there another way to construct an isomorphism between a vector space and its dual, that would \"conserve indexes\", for lack of a better way to state it. My guess here is that the answer is no but becomes possible if one assumes $V$ has an inner product.", "How do you create a daemon in Python? reveals x2 code snippets. The first result is to which has a lot of documentation and explanation, along with some useful discussion underneath. However, , whilst not containing so much documentation, includes sample code for passing commands such as start, stop and restart. It also creates a PID file which can be handy for checking if the daemon is already running etc. These samples both explain how to create the daemon. Are there any additional things that need to be considered? Is one sample better than the other, and why?", "I've been looking for this feature in Blender, either upon the time of creation using Edge Cut and Slide or afterwards, in just editing the mesh. I'd like to know if it's possible to evenly slide two edges away from one another in Blender? Here's a picture of what I'd like to be able to do: Thanks upfront!!", "Jumping in an elevator?", "When a vehicle makes a turn, the two front wheels trace out two arcs as shown in the figure below. The wheel facing towards the inside of the turn has a steering angle that is greater than that of the outer wheel. This is necessary to ensure that both front wheels smoothly trace out two arcs, which have the same center, otherwise the front wheels will skid on the ground during the turn. During a turn, do the rear wheels necessarily trace out the same arcs as the front wheels?", "Read two column CSV as dict with 1st column as key", "Using image sequence of medical scans as volume data in cycles I know it's possible to do this in BI, but I need your help to do this in cycles. For now, I have a setup to use an image sequence as volume but it only shows 1 slice/frame. I'm using generated texture coordinates for easy mapping (0-1 on each axis). The images are mapped on XY and I would like to use normalized frame# as Z coordinate to map the sequence as a volume. Images sequence can be found (I'm using 16-bit TIF files of MRBrain in this exemple). Any solution is welcome but try to keep it simple and user friendly :). Final Edit: I had a hard time choosing between Lemon's and PGmath's answers. Lemon's is more user friendly and flexible, and uses the image sequence without any change inside blender. PGmath's uses a 3rd party converter to make the sequence 1 single image, but allows GPU rendering. Well, ImageMagick's command line is : \"convert +append *.tif anim.tif\" from the folder where the sequence is unzipped. Not so hard. That's why I accepted PGmath's answer. Now, i played with it, and here's the result. The \"volume\" object contains the volume shader (playing with the color ramp gives funny things) and the boolean modifiers (turn them off to see the complete volume, but reduce the final density multiplier for better view). The \"Slice Control\" arrow empty controls the slice position/rotation. The \"Texture Mapping\" object controls...the mapping, if it need some tunning (position, rotation, scale, and then tiling if necessary?).", "Why does Google not consider dot in usernames of Gmail addresses?", "I am a software engineer but try to keep up with maths as I really enjoyed the subject at school. I just saw a great TED talk: The talk states that the current largest known prime is $2^{57885161}-1$ This got me thinking - how does one actually prove whether a number this large is prime or not? Is it just done by brute force via a computer algorithm or are there any well known mathematical techniques for doing so? I would be really grateful for any pointers as I am eager to learn about these techniques (if they exist).", "Why does space expansion not expand matter?", "If a field $F$ is such that $\\left|F\\right|>n-1$ why is $V$ a vector space over $F$ not equal to the union of $n$ proper subspaces of $V$", "Looking for a quick and dirty way to automate . I presume this could be done with an automation to press the mouse button from two separate pixel coordinates, with delay, so long as the browser window doesn't move -- unless there's a better way. I tried building a Watch Me Do workflow, in Automator, but can't seem to get it to work. I get the error \"application Chrome is not running when it is expected to.\" It also never lists mouse clicks for some reason. I do have accessibility set up, in system preferences > security &amp; privacy > privacy > accessibility. Automator, Chrome and System Events are all checked within there (among other stuff of course). I tried the markashworth workaround as detailed -- which also doesn't seem to work. Using his method, I get this error: UPDATE: I just downloaded \"cliclick\" and figured out how do both clicks as a terminal command, with the proper delays. BUT -- I don't know code and need a way for this terminal command to repeat \"x\" amount of times. Anyone know how I could do that in Script Editor? The command line is: cliclick c:132,286 w:100 c:132,286 w:5000 c:1100,238 I would need a few seconds of delay before the loop repeats, which I presume I could do with a final \"w:\" in that line. Thanks for the help!!", "App keeps crashing & rendering error since update to 1.0.68", "No sound (speakers/jack) + microphone's dead after spilling water" ]
medi_sts_stackexchange_dupe
Getting Null Object Reference on getCurrentUser().getUid() on Fragment
What is a NullPointerException, and how do I fix it?
[ "View list of files in ZIP archive on Linux", "Getting a random object from NSArray without duplication", "Why should a CTE start with a semi-colon? I was just looking at a post on where Aaron Bertrand proposes using a CTE instead of a numbers table, which is an elegant way of performing the task at hand. My question is, why does the first line of the CTE begin with a semi-colon? ;WITH n AS (SELECT TOP (10000) n FROM (SELECT n = ROW_NUMBER() OVER (ORDER BY s1.[object_id]) FROM sys.all_objects AS s1 CROSS JOIN sys.all_objects AS s2 ) AS x ORDER BY n ) SELECT n FROM n ORDER BY n; -- look ma, no gaps! Is this to ensure the WITH statement does not get parsed into a previous SELECT or something? I see nothing in SQL Server 2005 BOL about using a semi-colon prior to the WITH.", "In $Sets$, the initial object is $0 = \\emptyset$. We have $C \\times \\emptyset = \\emptyset$ for any set $C$. As there are no maps to the empty set, we don't get much of the universal property of the product. I am now wondering what is special about arbitrary categories $\\mathscr{C}$ with $C \\times 0 \\cong 0$ for all objects $C$ of $\\mathscr{C}$, where $0$ is the initial object of $\\mathscr{C}$. From Sheaves in Geometry and Logic by MacLane (p.194), in any topos $\\mathscr{C}$, any arrow $k:C \\to 0$ is an isomorphism. The universal property of the product would then also not yield very much. Are there any categories of higher interest?", "Is there a way to configure your Stack Overflow account so that you receive notification emails when posts are made to specific tags? Or do you simply have to log on to see new posts?", "How does RAID 1 determine which drive should act as the source for a rebuild? Here's my scenario -- both drives were working perfectly fine. I removed one of the drives for a while (building a new PC, didn't think I was going to use RAID anymore but changed my mind). I actually switch the SATA type to AHCI and was operating for about a week on the new system before deciding to re-enable RAID and reinstall the drive I had removed. It's currently rebuilding, but I'm curious how it knows which one is the source and which one is out-of-date?", "Solving $4x = e^x$ without graphing and looking for intersection", "regexp in ksh for extensions tgz, tar.tgz I'm trying to get a regexp (in ksh) to identify files with only the following extensions: tgz, tar.gz, TGZ and TAR.GZ. I tried several but can't get them to work. I'm using this regexp to select only files files with those extensions to do some work with them: if [ -f $myregexp ]; then ..... fi", "We just bought a Lenovo (which is supposed to have the Intel 8265 for wireless). This laptop was bought in part because it is certified to run Ubuntu and as such to me at least it would make sense for things to work out of the box... but no such luck. First, I installed Ubuntu 17.10 and after installation realised Wi-Fi was not working. I also tried Ubuntu 16.04 from a USB drive since that is the version of Ubuntu it is certified for, but no luck there either. The wireless chip is not detected by lshw (or even lspci by the looks of it), ip link does not show a wireless interface, and the iwlwifi kernel module is not loaded at boot (I can load this myself using modprobe iwlwifi but this does not make Wi-Fi work). I think it is a combined Wi-Fi/Bluetooth chip, and Bluetooth does appear to work (or at least Bluetooth shows up in Gnome and rfkill list). modinfo iwlwifi | grep 8265 shows me a file ending in -34 is supposedly loaded but only a file ending in -33 (and some other lower numbers) is present in /lib/firmware, if that helps). I have also installed the Linux 4.14.9 kernel in an attempt to get things to work, but this did not resolve the issue either. Further information root@ThinkPad-E570:~# modinfo iwlwifi | grep 8265 firmware: iwlwifi-8265-34.ucode root@ThinkPad-E570:~# rfkill list all 0: tpacpi_bluetooth_sw: Bluetooth Soft blocked: no Hard blocked: no 1: hci0: Bluetooth Soft blocked: no Hard blocked: no root@ThinkPad-E570:~# dmesg | grep iwl root@ThinkPad-E570:~# lspci -nnk | grep 0280 -A3 05:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:c821] Subsystem: Lenovo Device [17aa:c024] Update I just noticed that the laptop does not have an Intel wireless chip at all, but in fact has a Realtek one... which means that the of the shop I bought this laptop at were not accurate... Sigh. Same problem stands, however, just with a crappier wireless chip.", "How to get the newest file in a directory in php", "Stuck on two valid squares in minesweeper How to solve? The 1 indicates that ones of the two questioned flags is a mine and 3 also indicates the same. How to choose logically between any one of them?", "There's vs There are For example: There's two options here or There are two options here I hear a lot of people say the first line (or something similar), but isn't that incorrect? Isn't it plural and therefore you should use \"there are\"?", "I'm examining a part of my dataset containing 46840 double values ranging from 1 to 1690 grouped in two groups. In order to analyze the differences between these groups I started by examining the distribution of the values in order to pick the right test. Following a guide on testing for normality, I did a qqplot, histogram &amp; boxplot. This doesn't seem to be a normal distribution. Since the guide states somewhat correctly that a purely graphical examination isn't sufficient I also want to test the distribution for normality. Considering the size of the dataset and the limitation of the shapiro-wilks test in R , how should the given distribution be tested for normality and considering the size of the dataset, is this even reliable? () Edit: The limitation of the Shapiro-Wilk test I'm referring to is that the dataset to be tested is limited to 5000 points. To cite concerning this topic: An additional issue with the Shapiro-Wilk's test is that when you feed it more data, the chances of the null hypothesis being rejected becomes larger. So what happens is that for large amounts of data even very small deviations from normality can be detected, leading to rejection of the null hypothesis event hough for practical purposes the data is more than normal enough. [...] Luckily shapiro.test protects the user from the above described effect by limiting the data size to 5000. As to why I am testing for normal distribution in the first place: Some hypothesis tests assume normal distribution of the data. I want to know whether or not I can use these tests.", "Where do files go when you AirDrop them on iOS? 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.", "How do I make the Unity Launcher background transparent? I found a way to make the icon backgrounds transparent for the Unity Launcher by changing the files under /usr/share/unity/4. Does anyone know how to make the background transparent for the launcher itself? I already made it transparent under Compiz, but I want to remove the line that separates the launcher from the desktop. If anything, I just want to make it look like the icons are floating.", "I would like to compare the contents of a couple of collections in my Equals method. I have a Dictionary and an IList. Is there a built-in method to do this? Edited: I want to compare two Dictionaries and two ILists, so I think what equality means is clear - if the two dictionaries contain the same keys mapped to the same values, then they're equal.", "Focus existing terminal with `Ctrl-Alt-T` shortcut", "How do I set exposure with a manual flash? I recently got an old Canon AE-1 film camera back in working order. I'd like to use my modern 430EXII Speedlight flash with it, however since there is no TTL metering, I have no idea how much the flash will affect the exposure of my shot (note that I have confirmed that the AE-1 will trigger the flash). I'd rather not discover that my shots were either blown out or way to dark after going through several rolls of film. Are there any basic rules-of-thumb or basic calculations for anticipating how much a burst from the 430EXII will affect the exposure of a subject at various distances?", "What is the opposite of \"parallel\" in architecture? The two towers of the Verrazano Bridge are not parallel: they are slightly [???] to account for the curvature of the earth. What is that word?", "Disfigured Feynman Diagrams!" ]
medi_sts_stackexchange_dupe
How to attach file in sharepoint I am using that function but its error
Is it posible to upload file in Lists Attachments in SharePoint in custom way
[ "Meaning of convolution?", "Butterknife appears twice in the OSS attribution list of the Android app (v1.0.85). Based on the links, the second one should be JMustache.", "I read it as a paperback book somewhere in the mid-90s, I think. The protagonist lived in an apartment building. He's out on the balcony when a birdlike (but humanoid) alien swooped down and attacked him. The presence of the aliens was commonly known and was a known danger. He kills it with his watering can and is rewarded by either the aliens or the humans for it with money. Other than that, all I remember was that the chapters were started with an internet-like news report which I think chronicled things getting worse and more violent. One of the updates involved the bombing of a bridge with the casualties raised by having two slow-moving trucks moving side by side obstructing traffic and ensuring a full bridge. The internet system was pretty ubiquitous as I recall. I think that he looked up his watering can shortly after the incident with the aliens, but decided to keep this one, even if it leaks a bit. I want to say that it was by Piers Anthony, but none of the book titles look familiar. I think the cover I had showed the man being attacked by the bird-man, which looked kind of like the illustrations on the cover of The Stand.", "Share a Folder between two Local Users I and my brother have User Accounts on this machine. I want to share the Documents directory with him. Is there a STRAIGHTFORWARD way to do it? I am not a power user so I am looking for a way to do this using nautilus, rather than a script or a way that requires creating symlinks. I can download an application if i have to. Last time I wanted to do this I just copied the contents to /home for both of us to use. Something I can do in System Settings would be appreciated", "What is the most straightforward way to pad empty dates in sql results (on either mysql or perl end)? I'm building a quick csv from a mysql table with a query like: select DATE(date),count(date) from table group by DATE(date) order by date asc; and just dumping them to a file in perl over a: while(my($date,$sum) = $sth-&gt;fetchrow) { print CSV \"$date,$sum\\n\" } There are date gaps in the data, though: | 2008-08-05 | 4 | | 2008-08-07 | 23 | I would like to pad the data to fill in the missing days with zero-count entries to end up with: | 2008-08-05 | 4 | | 2008-08-06 | 0 | | 2008-08-07 | 23 | I slapped together a really awkward (and almost certainly buggy) workaround with an array of days-per-month and some math, but there has to be something more straightforward either on the mysql or perl side. Any genius ideas/slaps in the face for why me am being so dumb? I ended up going with a stored procedure which generated a temp table for the date range in question for a couple of reasons: I know the date range I'll be looking for every time The server in question unfortunately was not one that I can install perl modules on atm, and the state of it was decrepit enough that it didn't have anything remotely Date::-y installed The perl Date/DateTime-iterating answers were also very good, I wish I could select multiple answers!", "I'd like to make links to all files in a directory tree. Which means, create the same directory structure and make the links in them to the respective subdirectory in the original dir. That could be done with cp -R -s ../foo . But - that needs an absolute path. So rather cp -R -s `readlink -e ../foo` `readlink -e .` I would like the resulting links to be relative. How would I do that?", "R code to solve for probability of normal distributions? I don't understand which R code I am supposed to be using to figure these problems out. I brief explanation of what the code is doing would be amazing. The problems below are two different applications I'm expected to understand and I don't get either. Thank you! Problem 1. Let Z~N(0,1) For each of the following, find c such that the equation is true. a) P(Z&lt;c) = 0.8413 b) P(0&lt;Z&lt;c) = 0.3051 c) P(-c&lt;Z&lt;c) = 0.8664 Problem 2. X~N(3,4) compute a) P(X&gt;3) b) P(1&lt;X&lt;8) c) P(-1.5&lt;X&lt;1)", "he became firm friend or friends?", "Should I use the singular or plural verb in mathematical formulae (\"Two and two make/makes four\")?", "Indent math blocks? I want all math blocks \\begin{math} in my document to be intended automatically, like it's the case with \\begin{itemize}. Can anyone please give me a hint on how to do this? Thanks :-)", "Sending and Parsing JSON Objects in Android", "Set the Max depth parameter of both the Reflection and Refraction roll-out to 10. I am not sure whether roll-out should be plural or not in this particular case.", "For some or other reason, typing @ᔕᖺᘎᕊ in a chat room pings everyone who's been in that chat room for the last 7 days... Seems to work in all chat rooms (I only tested 2 as I don't want to upset too many people...) How should we proceed?", "XML to CSV Using XSLT I have the following XML document: &lt;projects&gt; &lt;project&gt; &lt;name&gt;Shockwave&lt;/name&gt; &lt;language&gt;Ruby&lt;/language&gt; &lt;owner&gt;Brian May&lt;/owner&gt; &lt;state&gt;New&lt;/state&gt; &lt;startDate&gt;31/10/2008 0:00:00&lt;/startDate&gt; &lt;/project&gt; &lt;project&gt; &lt;name&gt;Other&lt;/name&gt; &lt;language&gt;Erlang&lt;/language&gt; &lt;owner&gt;Takashi Miike&lt;/owner&gt; &lt;state&gt; Canceled &lt;/state&gt; &lt;startDate&gt;07/11/2008 0:00:00&lt;/startDate&gt; &lt;/project&gt; ... And I'd like to get this from the transformation (XSLT) result: Shockwave,Ruby,Brian May,New,31/10/2008 0:00:00 Other,Erlang,Takashi Miike,Cancelled,07/11/2008 0:00:00 Does anyone know the XSLT to achieve this? I'm using .net in case that matters.", "\"Reality\" of length contraction in SR", "Windows batch command(s) to read first line from text file How can I read the first line from a text file using a Windows batch file? Since the file is large I only want to deal with the first line.", "Xorg: High CPU Usage (94%) on Moving Mouse (Ubuntu 18.04) whenever I move my mouse enough it causes high cpu usage. Screenshot provided is on a fresh X session. This also causes some frequent freeze ups if I'm running some other programs e.g gaming. [1075299.085] (II) event4 - Corsair Corsair Vengeance M90 Mouse: SYN_DROPPED event - some input events have been lost. [1077813.434] (II) event4 - Corsair Corsair Vengeance M90 Mouse: SYN_DROPPED event - some input events have been lost. [1077814.079] (II) event4 - Corsair Corsair Vengeance M90 Mouse: SYN_DROPPED event - some input events have been lost. [1077814.246] (II) event4 - Corsair Corsair Vengeance M90 Mouse: SYN_DROPPED event - some input events have been lost. [1077814.682] (II) event4 - Corsair Corsair Vengeance M90 Mouse: SYN_DROPPED event - some input events have been lost. [1077831.975] (EE) client bug: timer event4 debounce: offset negative (-18ms) [1077831.975] (II) event4 - Corsair Corsair Vengeance M90 Mouse: SYN_DROPPED event - some input events have been lost. [1077831.975] (II) event4 - Corsair Corsair Vengeance M90 Mouse: WARNING: log rate limit exceeded (5 msgs per 30000ms). Discarding future messages. [1120008.128] (II) event4 - Corsair Corsair Vengeance M90 Mouse: SYN_DROPPED event - some input events have been lost. Is there any way for the CPU usage not to be this high? EDIT: I tried with other mice. The CPU usage appears to increase with the Mouse DPI or to be exact, a generic mouse will cause a CPU usage spike, but not as much as a gaming mouse. I also checked if I have hardware acceleration enabled. $ glxinfo | grep \"direct rendering\" direct rendering: Yes EDIT 2: CPU is an AMD FX-6350 GPU is AMD RX Vega 56", "Prove that $\\sup \\{-x \\mid x \\in A\\} = -\\inf\\{x\\mid x \\in A\\}$ I need to prove that $\\sup \\{-x \\mid x \\in A\\} = -\\inf\\{x \\mid x \\in A\\}$ and am having trouble moving the $-x$ out of the $\\sup$ to $\\inf$. Another thing is that I don't quite know how to prove $b = \\inf$ (see below). Any help would be appreciated! Here my attempt: Let $a = \\sup\\{-x \\mid x \\in A\\}$ Then by definition $a \\geq -x$ for $x \\in A \\implies -a\\leq x$ for $x \\in A$ Thus $-a$ is a lower bound of $A$. Assume $b$ is a lower bound of $A$ Then $b \\leq -a \\implies a \\geq -b$ and $a = \\sup \\{−x \\mid x\\in A\\} = -\\inf(A)$", "Why is black the best emitter?", "Today I updated to version 2.18.52 &amp; I can’t see the names of the people who send me a message. The only thing I see is the WhatsApp logo and the word “message”. I can’t also see the status my friends posts, they all look black. I uninstalled the app, reset my phone &amp; nothing seems to work so far." ]
medi_sts_stackexchange_dupe
Recursive Function with conditionals
Recursive function, if and which statements
[ "In the cases of black holes that form from supernova and collapse of a massive star, I understand that in most of these cases, the star loses significant amounts of mass from the explosion. Presumably, after this point as the remaining mass becomes more dense as it further collapses unto itself, it eventually becomes a black hole with gravitational force greater than that of its parent star. But, if gravity is based on mass, how can the black hole have greater gravitational force than the star from which it is formed?", "Adding a class to “body” I'm trying to add a custom CSS class to the &lt;body&gt; tag, How can I modify or pre-process the &lt;body&gt; tag to add the class body, Is it right to style the &lt;body&gt; tag with css file?", "And now I am unable to chmod it back.. or use any of my other system programs. Luckily this is on a VM I've been toying with, but is there any way to resolve this? The system is Ubuntu Server 12.10. I have attempted to restart into recovery mode, unfortunately now I am unable to boot into the system at all due to permissions not granting some programs after init-bottom availability to run- the system just hangs. This is what I see: Begin: Running /scripts/init-bottom ... done [ 37.062059] init: Failed to spawn friendly-recovery pre-start process: unable to execute: Permission denied [ 37.084744] init: Failed to spawn friendly-recovery post-stop process: unable to execute: Permission denied [ 37.101333] init: plymouth main process (220) killed by ABRT signal After this the computer hangs.", "I am just starting into calculus and I have a question about the following statement I encountered while learning about definite integrals: $$\\sum_{k=1}^n k^2 = \\frac{n(n+1)(2n+1)}{6}$$ I really have no idea why this statement is true. Can someone please explain why this is true and if possible show how to arrive at one given the other?", "Does deleting iCloud photos affect them on devices? If I delete a photo from my iCloud will it also be removed from my devices that are connected to my account?", "What's wrong with this division? I think there's a lot for me to learn about data types. Why this happens double result = ((3/8)*100).ToString(); it gives zero .. should be 37,5 ... :(", "How to add custom objects to the \"add object\" menu?", "Why \"a user\" instead of \"an user\"? I am getting confused while using an article an. Because an is used while referring to vowels (a,e,i,o,u). But today I read an article where for user they used a user. My question is, why was an not used? Could someone explain this with an example?", "\"Subject, verb, direct object, object complement\" versus \"subject, verb, indirect object, direct object\" Reading English Grammar (HarperCollins College Outline, published by HarperResource, an imprint of HarperCollinsPublishers) I found a chapter (Sentence Basics) that explains that in English there are different sentence patterns; in particular Subject, verb, direct object, object complement Subject, verb, indirect object, direct object The chapter reports the following example for the patterns: Alice called Charles Professor Miller. Alice gave Charles the rabbit. What is the difference between the two kind of sentences? What is the difference between the object complement in the first case, and the indirect object in the second case? PS: The question, which could appear silly, comes from the fact in my first language there is only the object complement.", "Can't insert code in my beamer slide", "Change \\textwidth after first page in scrlttr2", "Show $\\frac{1}{4}\\leq \\mu(A\\cap B \\cap C)$ Let $\\{X,\\mathcal{A},\\mu\\}$ be a probability space. Let $A$, $B$, $C$ be sets in $\\mathcal{A}$, which satisfy $$\\mu (A\\cap B)\\geq \\frac{1}{2}, \\quad \\mu (A\\cap C)\\geq \\frac{1}{2}, \\quad \\mu (B\\cap C)\\geq \\frac{1}{2}.$$ Show that $\\frac{1}{4}\\leq \\mu(A\\cap B \\cap C)$. I've managed to show in a previous assignment that $$\\mu(A\\cap B \\cap C)\\leq \\min\\{\\mu (A\\cap B), \\mu (A\\cap C), \\mu (B\\cap C)\\},$$ but now I'm stuck with the above inequality. I've tried to draw it, but still no luck. Any hints?", "What are the solutions to $z^4+1=0$?", "Background: One of my co-authors faced problem of compiling the paper that I had built using TexStudio and MikteX 2.9 on his Mac Machine running TexLive. ShareLaTeX Role: So, one solution is to use ShareLaTeX. But the first problem pops in mind is how safe is uploading unpublished article to a publicly accessible portal? What I did: I googled security and data breach of ShareLaTex and found nothing except some words from the ShareLaTex community about their word to ensure that our data are safe; perhaps this would not be enough. My 1st Question: To what extent can I trust ShareLaTeX and put my ready-to-publish content there? My 2nd Question: Is there any alternate way of sharing LaTeX with others around the globe without changing the underlying platform?", "Why does the dock appear on the left when my screen is locked? The dock doesn't work correctly after I enter my password, either.", "Dell Inspiron 3551 Unresponsive Touchpad I just got my laptop in the mail and I installed Ubuntu 14.04 LTS. It all went smooth until it booted up and I noticed my touch pad doesn’t work at all. It works perfectly on Windows and when I use a wireless mouse it works as well. Here's my xinput: ⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ 2.4GHz RF KEYBOARD AND MOUSE id=11 [slave pointer (2)] ⎜ ↳ DLL06AB:00 06CB:78F1 id=13 [slave pointer (2)] ⎜ ↳ SynPS/2 Synaptics TouchPad id=15 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Power Button id=6 [slave keyboard (3)] ↳ Video Bus id=7 [slave keyboard (3)] ↳ Power Button id=8 [slave keyboard (3)] ↳ Sleep Button id=9 [slave keyboard (3)] ↳ 2.4GHz RF KEYBOARD AND MOUSE id=10 [slave keyboard (3)] ↳ Integrated_Webcam_HD id=12 [slave keyboard (3)] ↳ AT Translated Set 2 keyboard id=14 [slave keyboard (3)] ↳ Dell WMI hotkeys id=16 [slave keyboard (3)] I would love to have my track pad working and I've done some googling and browsing of this site and nothing I've tried has worked. Any input would be great. Let me know if there’s any other information that can help remedy this. I'm pretty new to Linux. Thank you very much. Edit: I've updated the kernel to 3.19 and checked my Additional Drivers which had nothing for me. Neither of which worked.", "In Dark Souls 2 there is a 'Shrine of Winter' near Sinners Rise. When you approach the shrine it will not let you open the door and a message pops up that says Seek Mightier Souls What does this mean and how do you open this shrine?", "Why does US Robotics destroy Lanning's house? Shortly after the death of Dr. Lanning, Detective Spooner travels to the doctor's house to look for clues. While he is searching the house a demolition bot (which had been programmed to demolish the house the next day) goes on a rampage and destroys the house with Detective Spooner in it. The house is fully furnished and appears to be in good condition. Why would US Robotics want to destroy the house with everything in it? Why not sell the house and everything inside?", "If I am thinking about using one of the 'fancy' top level domains such as .me or .tv should I be worried about how Google treats such domains? Or to put it another way, if all other things are equal (good content, links etc.), will Google regard a .tv or .me as equal to a traditional .com or co.uk site?", "How can particles be emitted from particles? In a scene with two particle system configured as boids and boids brain set to fight, one swarm attacks the other. I would like to emit child particles as lines (laser or something) to visualize some fighting action. I couldn't find a way to setup the line emitting particle system, either they are created from the plane or further cones will be added. Is there a way to do this as I saw on a but I didn't get the trick? Blend file At blendersushi the author says: PARTICLE INSTANCE MODIFIER &gt; PARTICLES With this stacking thing, we can now pretty much emit Particles from emitted Particles, &gt; if you know how to set it up. Not very obvious, but basically you Instance some meshes &gt; (using Instance Modifier) and then add Particle System to the object with Instance &gt; Modifier. Make sure you have &quot;Use Modifier Stack&quot; turned on. But I can't get this to work." ]
medi_sts_stackexchange_dupe
Given a matrix $A$ of rank $n$, show that $\det(\operatorname{adj}(A))=\det(A)^{n-1}$ and $\operatorname{adj}(\operatorname{adj}(A))=(\det A)^{n-2}A$
Prove that if $A$ is regular then $\operatorname{adj}(\operatorname{adj}(A)) = (\det A)^{n-2} A$
[ "Modern movie where rich people can buy a personal assistant that sit in a small egg This is a modern movie and rich people can buy this egg with a personal assistant. It's an actual person in it (or a person's mind). I believe it can even operate a toaster. I believe later in the movie, a person (or their mind) can be transferred to such an egg. As a punishment, they increase the speed of time inside that egg to make the person inside the egg bored to death, so to speak.", "Outlook from time to time makes an operation 'Send and Receive.' This can sometimes be quite slow and Outlook hangs while this is done. Is is possible to set different intervals for different mail accounts (if user has multiple accounts configured within Outlook, e.g., main Exchange account and one or more IMAP accounts) If yes (or even if only for some [e.g., IMAP accounts], where in the settings it can be configured? (e.g., Outlook 2007)", "What can I do if my USB flash drive is write-protected or read-only?", "Where to put the periods when using a parenthetical sentence? I have two complete sentences; the second is in parentheses, essentially a comment on the first. Where do I place the periods? I would use this: They played opera. (I covered my ears.) Is this punctuation correct?", "This is what I see: GNU GRUB version 2.02~beta2-9ubuntu1 Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists possible device or file completions. grub&gt; _ What should I do now?", "Prove that there are infinitely many primes and non-primes in the numbers $10^n+1$, where $n$ is a natural number. So numbers are 101, 1001, 10001 etc.", "Display current layout (language code/country flag) in keyboard indicator Just upgraded from 10.04 to 10.10, and the keyboard indicator applet no longer displays the two-letter country code for the active layout. This is terrible. Is this the default behaviour? Anyone using two layouts can't tell which language they're in. I can't seem to find the setting for this, it used to be in the preferences for keyboard layout. Update 1: In case this wasn't obvious - I have two keyboard layouts - English and Hebrew. I just upgraded form 10.04, where the country code (USA/IL) was displayed, overlaid on the flag. Now all I get is a vague keyboard icon, and can't find the settings for this. Update 2: this seems to be a , and is now back in Maverick", "Same as title, want to kill alt-tab, etc.", "\\bar vs. \\overline - when to use what, semantically? Following the question \"\" which is simply about the lengths of both, I'd like to know when to use \\bar and when to use \\overline from a semantically viewpoint. I always used \\bar, because up until now I only had single letter mean values to type. But now I came to a problem where I needed a wider \"bar\". Then I just tried \\documentclass{article} \\begin{document} \\[ \\bar{a} \\overline{a} \\] \\[ \\bar{abc} \\overline{abc} \\] \\end{document} where one can see that they also differ in position (\\overline is lower), and also in thickness (\\overline is thicker). So, the question here is: What does \\bar represent semantically? And when to choose it over \\overline and vice versa?", "an analytic function from unit disk to unit disk with two fixed point prove that if $f:\\mathbb{D}\\rightarrow\\mathbb{D}$ is analytic with two distinct fixed point then $f$ is identity. I thought if one of the fixed points was zero by schwarz lemma this statement is easily proved. but what can I do if fixed points were nonzero?", "What is the difference between a homepage link with or without a trailing slash?", "Determine when $\\sum_1^\\infty \\frac{(2n)!x^n}{n(n!)^2}$ converges. By ratio test, when $|x|&lt;1/4$, the sum converges, $|x|&gt;1/4$ diverges. But I'm not sure about $|x|=1/4$. By Stirling's approximation $\\frac{(2n)!(1/4)^n}{n(n!)^2}\\sim\\frac{4^n}{n{4^n}\\sqrt{ \\pi n}}\\sim\\frac{1}{\\sqrt{\\pi}n^{3/2}}$, so when $|x|=1/4$, the sum converges. But I haven't learned Stirling's approximation yet, so how to prove that when $|x|=1/4,$ the sum converges, without using it?", "How can I use multiple accounts with Telegram? Is there a way to have two copies of app in Ubuntu each with a different account? It seems copying the app in another folder does not work.", "Why doesn't my question show up? is invisible in the section, but visible in the section. What gives?", "I want to try to convert a string to a Guid, but I don't want to rely on catching exceptions ( for performance reasons - exceptions are expensive for usability reasons - the debugger pops up for design reasons - the expected is not exceptional In other words the code: public static Boolean TryStrToGuid(String s, out Guid value) { try { value = new Guid(s); return true; } catch (FormatException) { value = Guid.Empty; return false; } } is not suitable. I would try using RegEx, but since the guid can be parenthesis wrapped, brace wrapped, none wrapped, makes it hard. Additionally, I thought certain Guid values are invalid(?) Update 1 had a good idea to catch only FormatException, rather than all. Changed the question's code sample to include suggestion. Update 2 Why worry about thrown exceptions? Am I really expecting invalid GUIDs all that often? The answer is yes. That is why I am using TryStrToGuid - I am expecting bad data. Example 1 . I might be parsing folder names, checking to see if the text after the final . is a GUID. c:\\Program Files c:\\Program Files.old c:\\Users c:\\Users.old c:\\UserManager.{CE7F5AA5-6832-43FE-BAE1-80D14CD8F666} c:\\Windows c:\\Windows.old Example 2 I might be running a heavily used web-server wants to check the validity of some posted back data. I don't want invalid data tying up resources 2-3 orders of magnitude higher than it needs to be. Example 3 I might be parsing a search expression entered by a user. If they enter GUID's I want to process them specially (such as specifically searching for that object, or highlight and format that specific search term in the response text.) Update 3 - Performance benchmarks Test converting 10,000 good Guids, and 10,000 bad Guids. Catch FormatException: 10,000 good: 63,668 ticks 10,000 bad: 6,435,609 ticks Regex Pre-Screen with try-catch: 10,000 good: 637,633 ticks 10,000 bad: 717,894 ticks COM Interop CLSIDFromString 10,000 good: 126,120 ticks 10,000 bad: 23,134 ticks p.s. I shouldn't have to justify a question.", "I'm from the State of Kuwait and hold an Eritrean passport. I'm planning to visit UK in October but my visa will expire in November. Is it OK to make a journey in the last month of my visa, provided that I make sure that I book my plane back before expiring date?", "Is it normal for a fast prime to exhibit purple fringing in middle of the image? I have just bought a Nikon 50mm f/1.8D prime lens. I took this picture (leg of my glasses frame on a mouse, and a LED desk lamp is on top of it) : f1.8, 1/80s, ISO 200 The purple fringing is right in the middle of the picture. Does it happen very often to this lens?", "ascending/descending in LINQ - can one change the order via parameter?", "How to start itemize on same line as text? I've created a new environment called 'Example' like this: \\newenvironment{example} {\\textbf{Example:} \\begin{itemize}} {\\end{itemize}} The environment works fine, but the items are starting after the Example: text. Is it possible to start with the first item on the same line as the Example: text and vertically aline the rest of the items with the first item?", "Lie bracket for Lie algebra of $SO(n,m)$ How does one show that the bracket of elements in the Lie algebra of $SO(n,m)$ is given by $$[J_{ab},J_{cd}] ~=~ i(\\eta_{ad} J_{bc} + \\eta_{bc} J_{ad} - \\eta_{ac} J_{bd} - \\eta_{bd}J_{ac}),$$ where $\\eta$ has is the definite symmetric form with signature $(n,m)$?" ]
medi_sts_stackexchange_dupe
Combining data from overlapping polygons and assign
Calculating proportional area of polygon within another layer's polygon using QGIS?
[ "Selecting one every n frames from a video using ffmpeg", "Office 2016 Advanced Setup", "Printing out Stack Overflow/Exchange Q&As including comments?", "What is the purpose of -e in sed command? I can't find any documentation about the sed -e switch, for simple replace, do I need it? e.g. sed 's/foo/bar/' VS sed -e 's/foo/bar/'", "proper usage of didn't had or didnt have", "I saw this today, I checked in Mathematica and the integral comes out to $\\pi$, but I have no idea how to solve it. FREE Wi-Fi: The Wi-Fi password is the first $10$ digits of the answer. $$\\int_{-2}^2\\left(x^3\\cos\\frac x2+\\frac12\\right)\\sqrt{4-x^2}\\ dx$$", "New messages flagged blue bubble does not go away", "When is unbalanced data really a problem in Machine Learning? We already had multiple questions about unbalanced data when using , , , and a number of other similar questions, what makes it a very popular topic! Unfortunately, each of the questions seems to be algorithm-specific and I didn't find any general guidelines for dealing with unbalanced data. Quoting , dealing with unbalanced data (...) heavily depends on the learning method. Most general purpose approaches have one (or several) ways to deal with this. But when exactly should we worry about unbalanced data? Which algorithms are mostly affected by it and which are able to deal with it? Which algorithms would need us to balance the data? I am aware that discussing each of the algorithms would be impossible on Q&amp;A site like this, I am rather looking for a general guidelines on when it could be a problem.", "Order of evaluation in C++ function parameters", "Pass ALL Arguments from Bash Script to Another Command", "LibreOffice toolbar icons went blank after application hanged", "I have an ex who has posted nude photos of me online in the past, linked to my online social media, and posted my full name and where I live. I am concerned he may do so again once he finds out I'm now in a PhD program (he's very jealous of any success I have), and may link to my school bio page, or worse. Revenge porn is illegal in my state, and the case against him is currently pending. I have also gotten the photos taken down with a DMCA letter (I hold the copyright over the photos in question). At this point, I am concerned with how a future attempt could affect my career. I can handle the embarrassment now that I've been through it once, so if that's the biggest concern, I can deal. I just don't want to lose a career over it, given how small academia really is and how a reputation might follow one around. My question is, if I don't change my name (I've considered this, assuming I can keep him from finding out) and my photos are circulated and discovered by faculty or students, how likely am I to be thrown out of my PhD program or later lose a job as an untenured prof? Is a name change worth it? (If it makes any difference, they are essentially just topless portraits; I'm not engaged in any sexual activity or anything weird, and were taken 10 years ago when I was very young and foolish.)", "I am reading separable extension. I don't quite understand why $\\text{char} 0$ fields must be perfect. If $F$ is a $\\text{char} 0$ field, $f(x)$ is an irreducible polynomial in $F[x]$. Then why $f$ must be separable? Assume $f$ has multiple roots, say $r$ is a multiple root of $f(x)$. Then $r$ is also a root of $f'(x)$. $r$ is in the splitting field of $f(x)$ over $F$, denote it as $E$. Then why $f$ must divide $f'$? I know $f$ is irreducible but I don't know how the argument goes on. Thanks for any help!", "What should I do when Ubuntu freezes?", "failed to get D-Bus connection: Operation not permitted I'm trying to list services on my CentOS image running in Docker using systemctl list-units but I get this error message: Failed to get D-Bus connection: Operation not permitted Any suggestions what the problem might be?", "I recently ran across elliptic curve crypto-systems: (Brown University) (Wikipedia) (IEEE) (RSA.com) It seemed to me to be great alternative to RSA as the de-facto cryptosystems to be used in banking and financial systems and in the public key infrastructure for certificates, but is not used! If someone can explain why this is not done, it would be very helpful. A comparison between traditional RSA and an elliptic curve cryptology would be helpful. To begin with: Advantage of RSA: Well established. Advantages of elliptic curve: Shorter keys are as strong as long key for RSA (see the IEEE paper) Low on CPU consumption. Low on memory usage.", "I am interested in good integer approximation from below and from above for binary Log(N!). and provides only a general idea but not exact values. In other words I need integers A and B so that A &lt;= Log(N!) &lt;= B", "Is there a git-merge --dry-run option?", "Strange set notation (a set as a power of 2)? I am not very well versed on set theory or syntax, but I thought I knew the basics. However, in a book about databases I am reading now, the author uses $2^x$ to signify \"a set of $x$.\" For example, $2^{\\text{dogs}}$ is a set of $\\text {dogs}$, etc. The author never really explained this or why he does it, I just picked up the meaning from context. I am not sure why the exponent operator is used, nor am I sure what the number $2$ has to do with it. The sets being represented are NOT powers of $2$ (in size)... they come in all sizes. Is this a valid notation? I have not seen it anywhere before...", "How do I tunnel and browse the server webpage on my laptop? I run a web app in one of my lab servers, and I have already setup X11 Forwarding on those machines. Other lab members can tunnel through SSH, and browse that web app on their local browser at home. I can't. Last time I checked with them, there is almost nothing I need to do. When I type 192.168.1.113/webapp I get nothing. Any tips? THanks. I ended up using the second method :) ssh -L 8080:&lt;server-ip-address&gt;:80 &lt;username&gt;@&lt;remote-addr&gt; -N" ]
medi_sts_stackexchange_dupe
Check user input is correct
Test whether string is a valid integer
[ "Can an integrated HDMI port work both ways? Say I had a laptop [Correction: notebook, don't want my thighs medium rare], any OS, and it has an HDMI port built into the side. Would it be remotely possible to hack it into an input, provided it wasn't already designed for that? I would figure all video ports operate straight off the graphics chip, however, are there ways to override that functionality on the driver level? Driver hacks already exist for plenty of things such as the classic example: Bluetooth adapters (so we can play with our PS3 controllers and save a buck) However, is HDMI one of these tamperable interfaces? As far as the interface standard is concerned, are HDMI ports designed to be either way or are they Input/Output specific?", "Is there an analytic function $f$ on $B(0,1)$ the open ball with radius 1 such that $f(1/n)=e^{-n}$ for $n=2,3,4,...$? Is there an analytic function $f$ on $B(0,1)\\subset\\mathbb{C}$ such that $f(1/n)=e^{-n}$ for $n=2,3,4,...$? I know the following doesn't work: Let $g(z)=\\exp(-1/z)$. Then, $f=g$ on a sequence with a limit point in $B(0,1)$ and so $f=g$ on $B(0,1)$. Since $g$ is not $\\mathbb{C}$-differentiable at $0$, neither is $f$ and so such a function cannot exist. This is not the solution because you cannot use the identity principle with a non analytic function like $\\exp(-1/z)$ is not analytic at $z=0$. Any help using the identity principle another way?", "Split file into multiple files based on pattern I have a large file that's a couple hundred lines long. This file is partitioned into many parts by a specific identifier, lets say 'ABC'. This line 'ABC' appears 6 times so I want 6 output files. I'm familiar with split and awk but can't seem to create a command line that will do what I've described, any ideas? Here's an example ABC line 1 line 2 line 3 ABC line 1 line 2 ABC line1 I'd like three files where ABC is the first line in the new file and it ends before the next ABC is encountered.", "No matter where I look, I just can't find gnome number [insert number here]. Where can I find every gnome in the game?", "Checking if file is checked out through CSOM", "Can you use Skyrim Legendary Edition mods on the normal edition? I just figured out I had Skyrim in my Steam games. It's the 32-bit non-Legendary Edition Skyrim without any DLCs. Can I still use Legendary Edition mods on it?", "Why is the mean function in Gaussian Process uninteresting?", "Prove that $\\sin(2A)+\\sin(2B)+\\sin(2C)=4\\sin(A)\\sin(B)\\sin(C)$ when $A,B,C$ are angles of a triangle Prove that $\\sin(2A)+\\sin(2B)+\\sin(2C)=4\\sin(A)\\sin(B)\\sin(C)$ when $A,B,C$ are angles of a triangle This question came up in a miscellaneous problem set I have been working on to refresh my memory on several topics I did earlier this year. I have tried changing $4\\sin(A)\\sin(B)\\sin(C)$ to $$4\\sin(B+C)\\sin(A+C)\\sin(A+B)$$ by making substitutions by reorganizing $A+B+C=\\pi$. I then did the same thing to the other side to get $$-2(\\sin(B+C)\\cos(B+C)+\\sin(A+C)\\cos(A+C)+\\sin(A+B)\\cos(A+B))$$ and then tried using the compound angle formula to see if i got an equality. However the whole thing became one huge mess and I didn't seem to get any closer to the solution. I am pretty sure there is some simpler way of proving the equality, but I can't seem to figure it out. Maybe there is a geometric interpretation or maybe it can be done using just algebra and trig. Any hint's would be appreciated (I would prefer an algebraic approach, but it would be nice to see some geometric proofs as well)", "Suppose $n$ is a non negative integer $\\geq 4$ and $\\sigma\\in S_n$ a permutation. Conjugacy classes in $S_n$ are completley determined by the cycle structure of $\\sigma$. If we let the alternating group $A_n$.act on $S_n$ by conjugation, the orbits coincide with the conjugacy classes in $S_n$ except for those (even) permutations whose cycle structure is composed of even cycles (which corresponds to cycles of uneven length) of distinct order (fixed points are treated as cycles of length $1$.) See For instance a $3$-cycle in $A_4$ has cycle structure $[3,1]$ which fits the bill, and a $5$-cycle in $A_5$ or $A_6$ works too, since the cycle structure is $[5]$ and $[5,1]$ respectively. On the other hand, a $3$-cycle in $A_5$ will does not satisfy the criteria as it has cycle structure $[3,1,1]$ with two fixed points. In this case, the conjugacy class of $\\sigma$ inside $S_n$ splits in $2$ orbits of the conjugation action of $A_n$, and if $\\tau$ is any odd permutation, for instance $(12)$, then we have $$\\mathrm{Conj}_{S_n}(\\sigma)=\\mathcal{O}(\\sigma)\\coprod\\mathcal{O}(\\tau\\sigma\\tau^{-1})$$ My question is How can we differentiate between the two orbits? Does it have geometric meaning? I can see that this information can be useful when looking at representations of the alternating groups, since there are as many irreducible representations as conjugacy classes. As for some geometric interpretation, I ask because there is one for the three cycles in $A_4$. If $S_4$ is understood as the group of symmetries of a regular tetrahedron, then $A_4$ is the subgroup of direct symmetries, and a $3$-cycle corresponds to a rotation of angle $\\frac{2\\pi}{3}$ or $\\frac{4\\pi}{3}$ with axis passing through one of the vertices. Conjugacy classes inside $A_n$ preserve the angle, and that's how we can tell them apart. In this case the computations are so simple we don't really need this picture, but I think it is a nice way to understand the fact $3$-cycles in are not all conjugate inside $A_4$...", "I know it is defined as $ dP \\wedge dx $ or explicitly, $$ \\frac{\\partial P }{\\partial y } dy \\wedge dx . $$ The question is, could it be $dx \\wedge d P $? Or $$ \\frac{\\partial P }{\\partial y } dx \\wedge dy ? $$ I know the question must be very naive or even stupid. But I am indeed confused.", "Why there is no operator for time in QM?", "I know this is a total noob question but then again, when it comes to PostgreSQL I am a total noob... I have installed the OpenGeo suite on my computer, running Windows 7, 64-bit. I have downloaded the tutorial data and have been working through it. I would like to access the database that I have made with ArcGIS so I can start learning about how that works. However, when I try to connect to the database using the \"Add Database Connection...\" I can't seem to figure out what to put in for 'Instance' - everything I've tried (localhost, localhost,54321, my IP address with and without the port, my computer name) doesn't seem to work. I installed and created the nyc test database according to all the instructions in the OpenGeo tutorial pages but am at a total loss here. I know this must be an easy thing to deal with, I just can't get my head around it. Can someone with more experience throw me a bone on this one? Frustratingly enough, QGIS connects to the database with almost no effort and everything works fine - but my organization is heavily ESRI focused and switching to QGIS is a long shot... EDIT Thanks everyone for pitching in on this. I really appreciate the advice, it's what makes this site great. I have installed OpenGeo Suite 3.0.1 with no extensions ArcGIS Desktop 10.1, no license for server I just went to the Opengeo website and downloaded the Windows installer and installed the default configuration. I have tried every permutation for the instance name that I can think of - using colons and commas, my machine name, localhost, postgresql, server, my IP address, random curse words, anything I can think of. I have been using port 54321 instead of 5432 because that is what the OpenGeo workshop told me to set up my 'nyc' practice database to use. It seems that localhost should work, here is a shot of the server properties from pgAdmin:", "What is the simplest way to convert char[] to/from tchar[] in C/C++(ms)? This seems like a pretty softball question, but I always have a hard time looking up this function because there seem there are so many variations regarding the referencing of char and tchar.", "Is there a way to get new dwellers with higher than normal stats?", "Case field mapping with custom object fields?", "I had a bunch of errors in the output of sudo apt-get update: duplicate entries and 404 not found errors. Figured those out, I hope: I removed PPAs that didn't have any packages associated with them, then I removed out a duplicate entry in /etc/apt/sources.list. It seems I have royally buggered it up. Now most of the lines say Ign when I do sudo apt-get update. How do I go about straightening out what I have screwed up? I need to get rid of these Igns that are all over the place. There are about 50% (eyeball guess) Igns!", "Problems with french accents automatically understood by LaTeX", "What is a complete book for introductory quantum field theory? There's a fairly standard two or three-semester curriculum for introductory quantum field theory, which covers topics such as: classical field theory background canonical quantization, path integrals the Dirac field quantum electrodynamics computing $S$-matrix elements in perturbation theory, decay rates, cross sections renormalization at one loop Yang-Mills theory spontaneous symmetry breaking the Standard Model What is a good, complete and comprehensive book that covers topics such as these?", "Keyboard shortcut to focus on (idle) terminal I would like to know, if there is possible to use keyboard shortcut to focus on first idle (non working) terminal window in unity (13.10)? Something like Ctr+Alt+T, but before opening the new instance of terminal, searching for any idle instance?", "Why do shadows from the sun join each other when near enough?" ]
medi_sts_stackexchange_dupe
Why do I need to supply a password for `sudo`, when I've added my account to /etc/sudoers with NOPASSWD:ALL?
How to run a specific program as root without a password prompt?
[ "$\\phi \\times \\theta$ is faithful iff $(|Z(H)| ,|Z(K)|)=1$ for faithful characters $\\phi \\in Irr(H)$ and $\\theta \\in Irr(K)$ .", "Live USB for installation does not boot, black error screen followed by visual artifacts on a purple screen", "Why does Google Analytics report 100% bounce rate when the page has lots of page views? Google Analytics reports 100% bounce rate for a page which has lots of page views and an Avg Time on Page of 32 seconds. Shouldn't one of the following be true? Either the bounce rate is less than 100% when the Avg Time on Page is greater than 0 or the Avg Time on Page is 0 when the bounce rate is 100%. I fail to see how or why the report does not conform the above two conditions.", "What is the best way to draw figures with canvas and set their angle?", "How many ways can $b$ balls be distributed in $c$ containers with no more than $n$ balls in any given container?", "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?", "Some speculation here: Is there a possibility it would pass 'undetected' through your hand, or is it certain death? Can you conclude it to be vital, or only loose your hand? Would it simply make a small cylindrical hole through your hand, or is there some sort of explosion-effect? Assume your hand has a cross section of 50cm², and a thickness of 2cm, how much of the beam's energy would be transferred to your hand?", "Why can't I connect to Pokemon Go via mobile data?", "How to install mysql?", "I followed the beginner steps for creating a . The child theme was created and it appears as an option on my Themes page. But unlike the other Themes on the page (including its parent), there is no preview. The other themes (\"Twenty Twelve,\" \"Twenty Thirteen,\" and \"Twenty Fourteen\") are all listed with an image preview. My child theme (\"Twenty Fourteen Child\") does not have any image. The child theme can be applied without issue. This issue arises when I create child themes from other themes as well. Any ideas why this is happening and if I can resolve?", "I'm getting into English recently and I'm a little confused by the way people pronounce a word that starts in a vowel right after a word ending in -ing. For example: You have to bring it up now? I don't know if I should pronounce it as: bring /ŋit/ brin' /nit/ bring /git/ Another example would be \"I'm coming out\". Likewise, what about the ending -ang? For example: We can just hang out and have a good time. And to round it all up, what about a combination of the two? For example, He got sick of hanging around waiting for you and went home. I've been asking myself these questions for weeks.", "Trace of a commutator is zero - but what about the commutator of $x$ and $p$? 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?", "Do I need a visa to transit (or layover) in the Schengen area? I found many related questions on this site but I am still not sure about the rules. How can I decide if I need a visa to transit? Schengen members as of May 2021 are as follows: Austria Belgium Czech Republic Denmark (excluding Greenland and the Faroe Islands - but an open border with the Schengen Area is maintained) Estonia Finland France (excluding overseas departments and collectivities) Germany Greece Hungary Iceland Italy Latvia Liechtenstein Lithuania Luxembourg Malta Netherlands (excluding Aruba, Curaçao, Sint Maarten and the Caribbean Netherlands) Norway (excluding Svalbard) Poland Portugal Slovakia Slovenia Spain (except Ceuta and Melilla) Sweden Switzerland", "What is the best way to clean lenses and filters? After removing dust with an air pomp and a brush, what are you using to remove stains from the lens and filters? So far I'm using the liquid from a Giotto's CL 1002 cleaning kit for the lens, but I'm not sure what should I use for the filters, and if there is some better alternative. Also, what kind of brushes are recommended?", "Use feature as module? Does anyone have experience with using a feature as a module? The usage I am talking about is strictly placing hooks inside the .module file. Can that trigger any sort of bug?", "Any real-time antivirus for Ubuntu?", "Proving the universal mapping property for polynomial rings", "I know the \"textbook\" estimate of the standard error of a proportion is $SE=\\sqrt{\\frac{p(1-p)}{n}}$, but does this hold up when the data are weighted?", "I have a file: Base.h class Base; class DerivedA : public Base; class DerivedB : public Base; /*etc...*/ and another file: BaseFactory.h #include \"Base.h\" class BaseFactory { public: BaseFactory(const string &amp;sClassName){msClassName = sClassName;}; Base * Create() { if(msClassName == \"DerivedA\") { return new DerivedA(); } else if(msClassName == \"DerivedB\") { return new DerivedB(); } else if(/*etc...*/) { /*etc...*/ } }; private: string msClassName; }; /*etc.*/ Is there a way to somehow convert this string to an actual type (class), so that BaseFactory wouldn't have to know all the possible Derived classes, and have if() for each one of them? Can I produce a class from this string? I think this can be done in C# through Reflection. Is there something similar in C++?", "How to find the running network services and the port and user I want to find a list of all network services running on my system, including details of the port and services and the users. I know that I need to use netstat, ps and fuser. but I don't know how to write the command. Do I need to write a shell script to find all of them? or I can use in a line of commands? Thanks for your help." ]
medi_sts_stackexchange_dupe
83b election - did not submit tax return for the taxable year of the election
I file 83(b) election, but did't include a copy of it in that year’s tax return
[ "Why NuGet adds app.config with assemblyBinding to LIBRARY projects during a NuGet package update?", "I gave a scammer my telephone number, address, and name. How bad is it?", "How do I make Bash my default shell on Ubuntu?", "How to toggle or turn off text selection being sent to the clipboard I would like to disable the default behavior that seems to happen with every Linux distribution that I've ever tried that any selected text is immediately sent to the clipboard (Mint, Ubuntu, Fedora, SuSE, etc.) and every window manager (Gnome, KDE, Cinnamon), and instead to behave more like the Windows implementation. I know that this is a beloved behavior by many in Linux, and I'm sure many will think I'm an idiot. The reason I want to do this, is that I'm a keyboard junky when navigating a GUI. (e.g. when I'm in Linux and I copy a URL and then switch to my browser and type Ctrl+L, it selects the address bar and moves my intended paste down one notch and replaces it with what I'm trying to overwrite.) I know there are MANY workarounds, but I don't really care about that, what I'd prefer is to be able to toggle the behavior for the clipboard.", "Variables losing their values", "Countable additivity implies countable subadditivity? Suppose $\\mu$ is a measure in a ring $R$ of a set $X$. So for any mutually disjoint subsets $A_1,A_2,\\ldots$ such that $\\sum_{i=1}^\\infty A_i\\in R$, we have that $\\mu(\\sum_{i=1}^\\infty A_i) = \\mu(A_1)+\\mu(A_2)+\\cdots$. (i.e. countable additivity) I'm wondering: Does that imply countable subadditivity? I.e. for any subsets $A_1,A_2,\\ldots$ such that $\\sum_{i=1}^\\infty A_i\\in R$, is it always true that $\\mu(\\sum_{i=1}^\\infty A_i)\\le \\mu(A_1)+\\mu(A_2)+\\cdots$? I believe it should be true, because you can take the mutually disjoint subsets $A_1,A_2-A_1,A_3-(A_1\\cup A_2),A_4-(A_1\\cup A_2\\cup A_3),\\cdots$, each of which is in $R$ (because unions and differences of sets in $R$ are again in $R$), then apply countable additivity, then use monotonicity on the fact that $A_n-(A_1\\cup\\cdots\\cup A_{n-1})\\subseteq A_n$. Is that right? I just want to make sure I didn't make any mistake in my logic.", "My usb mouse sleeps after 5 seconds of inactivity when running on battery power. It wakes uo again when i press any button on the mouse. This is really annoying. I have made lsusb, and I noticed my mouse is Bus 001 Device 012: ID 04d9:2083 Holtek Semiconductor, Inc. I have checked my /sys/bus/usb/devices/usb1/power/autosuspend but it is already set to 0, and the directory usb1 has many subdirectories which also have autosuspend files, and i dont know how to edit them. Also, I would like a permanent solution, which would work for any mouse, on any of my 3 usb ports. Any ideas? Using: Ubuntu 12.04 64bit", "I’m writing a series of blog posts and I’m finding a little bit of a conundrum. I want the audience that can be manufactured on Medium but I also want the SEO that comes from long form text on my website. Is there any type of SEO conflict that would arise from putting the exact same posts on both?", "I have a problem. I am going to make a minecraft animation in blender. But when I put a minecraft texture on a 3d cube that is 16x16x16 it is very low resolution is there a way to get the texture in a better resolution or is there a way to make blender make the texture better? I hope you have an answer. Thanks in advance", "Calculating $\\lim_{x\\to0} \\left\\lfloor\\frac{x^2}{\\sin x \\tan x}\\right\\rfloor$ Find $$\\lim_{x\\to0} \\left\\lfloor\\frac{x^2}{\\sin x \\tan x}\\right\\rfloor$$ where $\\lfloor\\cdot\\rfloor$ is greatest integer function I am a high school teacher. One of my students came up to ask this limit. For $\\lfloor\\frac{\\sin x}{x}\\rfloor$, I have used $\\sin x &gt; x$ using increasing decreasing functions. I tried to prove $x^2 &gt; \\sin x \\tan x$ using increasing /decreasing function but I am not getting it.", "Short story, domed refuges", "Game Theory and Uniform Distribution question? In an Auction , two players are bidding. Their bids will be a unknown fraction of their valuations. The valuations come from a uniform distribution $$[0,1] $$ If Player 2 bids $$ v/2 $$ and Player 1 bids $$b1&lt;1/2$$ What is the probability player 1 wins ? Clearly for player 1 to win,players 2 bid has to be less than player 1 bids. $$P(v/2 &lt; b1)$$ $$P(v &lt; 2b1)$$ I follow the question up to this stage. Now it says since its uniformly distributed the probability player 1 wins is $$2b1$$ Im confused how can you just get 2b1 from the inequality ? Thanks in advance", "The Problem Currently if I flag a post, I cannot check the status of the flag unless I have prior helpful flags. This means, for example, that a new user who wants to check the status of his first flag cannot do so while it is pending (active). This feature request is based on my experience on MSO, where I wanted to check the status of my flag but could not get to the summary page without cheating (tweaking my SO link to work with MSO). It also stems from this question, where the OP indicates he had the same issue: My Proposal If I have flagged any post, then show me a \"flags\" link (red arrow in image below). If I have any helpful flags, then the number of helpful flags should be displayed (blue arrow). If I have not flagged anything, then neither should be displayed (as with current site functionality).", "Proof of Young's inequality The following problem is from Spivak's Calculus. Suppose that $f$ is a continuous increasing function with $f(0)=0$. Prove that for $a,b \\gt 0$ we have Young's inequality $$ ab \\le \\int_0^af(x)dx+\\int_0^bf^{-1}(x)dx$$, and that equality holds if and only if $b=f(a)$. It is enough to consider the case $f(a) \\gt b$, and show that the strict inequality occurs in this case. I've tried proving this using the theorem $$ \\int_a^bf^{-1}=bf^{-1}(b)-af^{-1}(a)-\\int_{f^{-1}(a)}^{f^{-1}(b)}f$$ but I got stuck along the way. How may I show this rigorously using the definition or properties of integrals? Any hint, suggestions or solutions would be appreciated.", "URL Rewriting of a query string in php", "I'm using wordpress multiste 3.3.1 I'm not gonna update it in the future. So I disabled all upgrade functions. I want to remove the wordpress admin bar from both frontend as well as dashboard. I can remove it from frontend using this code. add_action( 'init', 'disable_admin_bar', 1 ); function disable_admin_bar() { add_filter( 'show_admin_bar', '__return_false' ); } But i couldn't find any solution to remove it from dashboard. I don't want to use css solution to hide admin bar and I'm ready to edit the core files to remove it Can anyone help me to remove it completely?. Thanks", "How to troubleshoot unwanted white spaces smartly?", "BibTeX handling of the Dutch \"van\" name prefix with natbib I want to produce the following with LaTeX/BibTeX: In the running text: ... we refer the reader to the work of Van Noort (2010). In the bibliography: Thomas van Noort. An important paper. 2010. I have tried many tricks, but I don't seem to able to fulfill all the requirements: \"Thomas van Noort\" has to appear sorted in the bibliography by the name \"Noort\". In the running text, the \"Van\" needs to have an uppercase 'V' In the bibliography, the \"van\" needs to have a lowercase 'v' I am using hyperref, and I want the whole \"Van Noort (2010)\" text to link to the reference. Using plain \\citet will generate: ... we refer the reader to the work of van Noort (2010). Note the lowercase 'v'; this is not acceptable, as per standard treatment of Dutch names. Setting the BibTeX name to Van Noort, Thomas makes the running text citation look ok, but then in the bibliography I get Thomas Van Noort. An important paper. 2010. Note the uppercase 'V'; this is also not acceptable, as it should only be uppercase if it is not preceded by the first name. (1) is easy: I set the BibTeX author field to {\\noopsort{Noort}}{van Noort}, Thomas. (2) and (3) I can fake by saying something like we refer the reader to the work of Van Noort \\citeyear{...}, but this is not nice, and does not fulfill (4). Anyone has any suggestions? I was under the impression that LaTeX and BibTeX were designed with these kind of things in mind, so maybe I'm missing something...", "Why rationalize the denominator? 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.", "Matrices: system that is \"computationally singular\" versus \"exactly singular\" I would like to know the mathematical concepts behind singular matrices. Matrices that do not have inverses in R throw one of two errors. I have provided some examples of both errors below: Error in solve.default(W) : system is computationally singular: reciprocal condition number = 1.58603e-17 Error in solve.default(Z) : Lapack routine dgesv: system is exactly singular: U[2,2] = 0 Can anyone explain the difference between the two? Why is the first \"nearly singular\" whereas the second is \"exactly singular\"?" ]
medi_sts_stackexchange_dupe
best way to check variables against long value list
Check variable equality against a list of values
[ "Let $f_n(x) : \\mathbb{R} \\rightarrow \\mathbb{R}$ be defined as $\\dfrac{x}{n}$. Is $f_n$ uniformly convergent? With \"$(a_n)$ is limited and $(b_n)$ converges to 0 $\\Rightarrow (a_nb_n)$ converges also to 0\" i would guess that $x\\cdot \\dfrac{1}{n}$ converges uniformly but $x$ is not limited in this case. So does ist converge uniformly or not?", "Formally, is it correct to write: A number of questions has been asked here. or: A number of questions have been asked here. As a non-native speaker of English, I would prefer the former: the subject seems to be \"number\", therefore the verb ought to be singular, I'd say. However, the latter seems more common, and therefore I believe that my gut feeling is just plain wrong — but I would really like to have a definite answer. Moreover, is it the same for \"a myriad of\", \"a plethora of\", and so on?", "My understanding of the Stern–Gerlach experiment is that neutral (0 total charge) particles are sent through a non-homogeneous magnetic field, with the expectation that the field will push that particle's path higher or lower on a detector because of the collective spin of that particle. While the detector can detect particles in a two-dimensional surface, the results of the experiment are that particles appear in only two localized areas directly above the path of the particle stream, or directly below the path of the particle stream - spin up or spin down. The conclusions from these measurements are that the particle, when measured, will always have about the same magnitude. Why does this not follow from classical mechanical theory related to magnetism? If you shot a magnet through a similar apparatus, I would expect the magnet to be rotated to align with the magnetic field in some way which, at high enough field strengths relative to the mass of the magnet, would cause us to measure basically the same magnitude as if the magnet entered the apparatus pre-aligned with the field. How is my explanation incorrect?", "Windows 8 turns program sound volume down randomly I recently upgraded to Windows 8 from Win 7 64 bit and have started to encounter a strange issue. When I have any program running which plays sound, such as a game or spotify, after a random interval (usually around 5-10 minutes) the program sound will set itself really low. If I Alt-Tab to the desktop and check the Mixer I can see that the Application volume has automatically set itself really low - the other volume levels (i.e. the Device speakers) stay the same. I'm able to just set the application volume back to a reasonable level and it stays that way for another 5 - 10 minutes then goes quiet again. My sound is Realtek High Definition Audio and my machine is an Acer Aspire 5738G if that helps in any way. Any help much appreciated!", "While executing an INSERT statement with many rows, I want to skip duplicate entries that would otherwise cause failure. After some research, my options appear to be the use of either: ON DUPLICATE KEY UPDATE which implies an unnecessary update at some cost, or INSERT IGNORE implies an invitation for other kinds of failure to slip in unannounced. Am I right in these assumptions? What's the best way to simply skip the rows that might cause duplicates and just continue on to the other rows?", "Getting my File Manager to link to my Google Drive I have a very small amount of storage on my computer and would like to conserve it, so I would like to know if there is a way to mount my Google Drive in Thunar or Nautilus on Ubuntu 12.04.5 LTS. Yes, I know, it's weird that I'm saying that I have a small amount of storage when I have 2 file managers installed, but I literally have 5GB out of 16GB left.", "I am currently thinking about open-sourcing a project of mine and am in the process of preparing the source code and project structure to be released to the public. Now I got one question: how should I handle the signature key for my assemblies? Should I create a new key for the open-source version and publish it along with the other files to the SVN repository? Should I leave the key out and everyone who wants to compile the code should generate his own key? How do you handle this? I feel a little bit uncomfortable with releasing a signature key to the public.", "Eclipse error: \"The import XXX cannot be resolved\"", "How to test multiple variables against a single value?", "How do I restore a Places folder I accidentally deleted in Nautilus?", "Query Which Profiles Have Read Access To Specific Object? Since I couldn't think of how to write this query off the top of my head, I thought it might be worth sharing. How can I query which Profiles have Read permission on a specific object? I knew it would have something to do with ObjectPermissions and PermissionSet, but had to look up the documentation for both to piece it together.", "How can I transfer large files from Linux to iPad over a cable or wifi? I am looking for a way to transfer large files to the iPad without using iTunes or pushing to and pulling from a remote server. I run an Ubuntu laptop as my only OS at the moment and want to be able to transfer movies to my iPad. I currently transfer most of my files by way of the dropbox app which works well for small files but is quite slow for larger files and eats up my bandwidth. Ideally I'd like to be able to transfer over a cable or through WiFi. Thanks for any tips.", "Prove $(1+a+b)(1+b+c)(1+c+a)\\ge 9(ab+bc+ca)$ How one can prove the following. Let $a$, $b$ and $c$ be non-negative real numbers. Then the inequality holds: $(1+a+b)(1+b+c)(1+c+a)\\ge9(ab+bc+ca).$ WLOG one can assume that $0\\le a\\le b\\le c$. It is not difficult to prove the statement when $0\\le a\\le b\\le c\\le 1$ or $1\\le a\\le b\\le c$.", "Does Hard reboot damage my Ubuntu", "How do I uninstall the command line tools for Xcode? We have a bunch of Mac at work that no longer require Xcode or command line tools so we'd like to remove them so the compilers aren't hanging around and we don't have to keep updating them when updates arrive. , but now that Xcode is an app store app you are left with the tools if you ever install them. Can we clean this other than wiping the OS for macs running 10.10 and newer?", "How do I transfer a Gmail account to a different Google account?", "How do I compare 2 rows from the same table (SQL Server)? I need to create a background job that processes a table looking for rows matching on a particular id with different statuses. It will store the row data in a string to compare the data against a row with a matching id. I know the syntax to get the row data, but I have never tried comparing 2 rows from the same table before. How is it done? Would I need to use variables to store the data from each? Or some other way? (Using SQL Server 2008)", "Baking with oven without bottom heating element My mom wants to do baking but her oven doesn't have bottom heating element. It only has an element on top, with a fan at the back. She told me that she can't make me a good pizza or cake without it. Is there any way around?", "If $a_k\\geq0$ is a decreasing sequence converging to $0$, do we have $\\lim_{n\\to\\infty}\\frac{\\sum_{k=1}^n a_k}n = 0$? Let $a_k\\geq 0$ be a non-increasing sequence satisfying $\\lim_{k\\to\\infty} a_k = 0$. Is it always true that $$\\lim_{n\\to\\infty} \\frac{\\sum_{k=1}^n a_k}n=0$$ ? I tried proving with \"brute force\" but failed: Let $\\varepsilon&gt;0$. Then there exists a $K\\in\\mathbb N$ such that $a_k\\le\\varepsilon$ for all $k\\geq K$. Let $C=\\sum_{k=1}^K a_k$. We have $$\\frac{\\sum_{k=1}^{\\left\\lceil\\frac C\\varepsilon\\right\\rceil}a_k}{\\left\\lceil\\frac C\\varepsilon\\right\\rceil}=\\frac{C}{\\left\\lceil\\frac C\\varepsilon\\right\\rceil}+\\sum_{k=K+1}^{\\left\\lceil\\frac C\\varepsilon\\right\\rceil} a_k\\le \\varepsilon +\\varepsilon\\cdot\\left( \\left\\lceil\\frac C\\varepsilon\\right\\rceil-K\\right).$$ However, this is not good, as the right-hand side depends on $C$, which can get large for small $\\varepsilon$. Also, numerical computations for example with $a_k=\\frac1{\\log\\log k}$ seem to confirm the statement though... (Additionally, note that I didn't use the non-increasing fact, but I am not sure if it is needed.)", "What is the best regular expression to check if a string is a valid URL? How can I check if a given string is a valid URL address? My knowledge of regular expressions is basic and doesn't allow me to choose from the hundreds of regular expressions I've already seen on the web." ]
medi_sts_stackexchange_dupe
Removing GRUB from windows system after uninstalling Ubuntu from Windows 7
How to remove Ubuntu and put Windows back on?
[ "Do you need line of sight to cast spells on someone?", "Default route lost on reboot", "I make heavy use of screen's \"log\" command to log the output of a session to a file, when I am making changes in a given environment. I searched through tmux's man page, but couldn't find an equivalent. Is anyone aware of a similar feature in tmux, or do I have to write my own wrapper scripts to do this? EDIT: I'm aware of 'script' and other utilities that allow me to log a session. The reason that screen's functionality is so useful is the ability to define a logfile variable which uses string escapes to uniquely identify each session. e.g. I have a shell function which, given a hostname, will SSH to that host in a new screen window and set the window title to the hostname. When I start a log of that session, it is prefixed with the window title. If this functionality doesn't exist in tmux, I'll have to create a new set of shell functions to set up 'scripts' of sessions I want to log. This isn't hugely difficult, but it may not be worth the effort given that screen does exactly what I need already.", "How to only substitute lines that match several patterns in sed? $ echo -e 'CH12\\nCH23au' | sed '/^CH/s=^=&lt;b&gt;=' &lt;b&gt;CH12 &lt;b&gt;CH23au I know I can match lines starting with CH by ^CH but how can I match multiple patterns? Example: Input: CH12 CH23au Output: CH12 &lt;b&gt;CH23au How to only put &lt;b&gt; where there is ^CH and au in the line?", "In the Avengers movie, was Thor going to kill Captain America during his woods battle with Iron Man?", "Grammatically, what is \"It\" in the following sentence? I'm currently working at a private academy in Korea, and my boss just asked me a real head-scratcher. In the sentence: It doesn't have to be hot and humid for players to lose too much water from their bodies. I'm aware that \"It\" is a subject pronoun replacing \"The weather.\" Besides that, however, I'm unsure. Is it a false subject? I wouldn't think so since it's a pronoun. Is it some crazy kind of indirect object? Anyway, thank you all for your help!", "How do I make an Bootable Ubuntu USB containing the the latest version of Ubuntu? For completeness, how would I be able to do this on Ubuntu, Windows, OS X or another Linux distro?", "How to compare two columns and find differences in Excel? I have two columns in Excel that I want to compare and find the differences between them. Suppose: Col A has 50 numbers, i.e. 0511234567 Col B has 100 numbers in the same format", "Stack Exchange iOS app nearing beta We're getting very close to releasing our iOS app on the App Store. Since the , we have taken on hundreds of users, fixed a lot of bugs, and we have approached feature completion for v1.0. We're still working on finishing touches and fixing crashes - but there aren't too many of those these days. We believe we'll have this out in . Current Alpha Testers: We want to extend to you a huge thank you for using our app and giving us feedback. We've made a ton of improvements that filtered through here on meta. We're pretty greedy, though, and we want more of your feedback as we get close to beta. If you've been using the app, please leave an answer to tell us how you think we've done so far. Don't go easy on us - we want to get this as right as we can before hitting the App Store. You might even consider telling us how many stars you would give us if we were in the store. Also, we created a room called for more casual discussion about the app. Everyone Else: The alpha will continue in the interim, and we still . The invitations are sent out once a week (usually), so if you don't get an invite right away, don't panic. We'll get to you. Bugs or feature requests should be reported here on meta and tagged . Update, 5/1/2014 As of today, the app is submitted for review. A great big thanks to all our alpha testers! Your feedback has been invaluable and has truly helped us make the app much better than it would have been without you. So what now? Well, we intend to keep the alpha test group around, except now we're considering it the \"beta channel\". It's still important to us, particularly since the update cycle through the AppStore is slow. We'll still roll out updates in the same way that we have been. We will also from time ask for targeted feedback on specific features. And, lastly, if you're just now getting here and wished you had signed up for the alpha, feel free to sign up now anyway. The form is still there, and we may still let in additional users to the beta channel depending on what our \"active users\" count looks like.", "drupal 7 + services 3 - inserting nodes with select fields I'm using Drupal 7 + Services 3 to create nodes with POST and JSON. Everything works fine, except field types of select - entity reference select or plain text. The entity reference uses the autocomplete widget, while the text select is a plain radio button. This is the format I'm using: \"field_urgency\": { \"und\": [ { \"value\": 1 } ] }", "Implementation of \"show\" for function", "Langage to declare a circuit board", "Optional argument to \\item I am typesetting an ordered list where the entries may appear out of order, but should be assumed in order otherwise. I don't want to have to jump through \\setcounter hoops to do this. That is, I want something like \\begin{enumerate} \\item First \\item Second \\item[8] Eighth! \\item Ninth! \\item[4] Fourth \\end{enumerate} to give the following Good output, instead of the Bad output: A minimum working example follows. \\documentclass{article} \\usepackage{enumitem} % preferably something compatible with this guy \\begin{document} Good: \\begin{enumerate} \\item[1.] First \\item[2.] Second \\item[8.] Eighth! \\item[9.] Ninth! \\item[4.] Fourth \\end{enumerate} Bad: \\begin{enumerate} \\item First \\item Second \\item[8] Eighth! \\item Ninth! \\item[4] Fourth \\end{enumerate} \\end{document} It should be noted that I don't want to have to specify the period afterwards, in case my list using a different numbering, e.g. Roman. Compatibility with enumitem is preferred, but not required. What is the correct way of going about this?", "Equation number in aligned environment after last line I'm using aligned inside align as follows \\documentclass{article} \\usepackage{amsmath} \\begin{document} \\begin{align} x =&22+2 \\nonumber\\\\ =& \\begin{aligned}[t] &5+3\\\\ &-3+4\\\\ &+15-0 \\end{aligned} \\end{align} \\end{document} I want to have just one equation number after the very last line. However, I'm getting the number at the beginning of the first split line (after the second = ), and I cannot figure out how to move this equation number to the bottom. Any help will be appreciated.", "\"How\" vs. \"that\" in \"You know how we have pizza on Thursdays, right?\" From time to time I hear sentences like this: You know how we have pizza on Thursdays, right? Here, how doesn't mean exactly how those guys eat pizza, it is something like \"that\" in this context. So what is the difference between using how, that or just skipping the conjunction?", "Remove .php extension with .htaccess", "Started new job. Rollover previous employer 401k to new 401k, IRA or Roth IRA? I recently started a new job and have a 401k from my previous employer that I don't know what to do with. Should I roll it into my new employer's 401k, a traditional IRA or a Roth IRA?", "How can I compile, run and decompile C# code in Ubuntu terminal?", "What is the penalty for dual US citizens who lie on the ESTA form in order to enter under VWP using their second passport?", "When is a function satisfying the Cauchy-Riemann equations holomorphic? It is, of course, one of the first results in basic complex analysis that a holomorphic function satisfies the Cauchy-Riemann equations when considered as a differentiable two-variable real function. I have always seen the converse as: if $f$ is continuously differentiable as a function from $U \\subset \\mathbb{R}^2$ to $\\mathbb{R}^2$ and satisfies the Cauchy-Riemann equations, then it is holomorphic (see e.g. Stein and Shakarchi, or ). Why is the $C^1$ condition necessary? I don't see where this comes in to the proof below. Assume that $u(x,y)$ and $v(x,y)$ are continuously differentiable and satisfy the Cauchy-Riemann equations. Let $h=h_1 + h_2i$. Then \\begin{equation*} u(x+h_1, y+h_2) - u(x,y) = \\frac{\\partial u}{\\partial x} h_1 + \\frac{\\partial u}{\\partial y}h_2 + o(|h|) \\end{equation*} and \\begin{equation*} v(x+h_1, y+h_2) - v(x,y) = \\frac{\\partial v}{\\partial x} h_1 + \\frac{\\partial v}{\\partial y} h_2 + o(|h|). \\end{equation*} Multiplying the second equation by $i$ and adding the two together gives \\begin{align*} (u+iv)(z+h)-(u+iv)(z) &amp;= \\frac{\\partial u}{\\partial x} h_1 + i \\frac{\\partial v}{\\partial x} h_1 + \\frac{\\partial u}{\\partial y} h_2 + i \\frac{\\partial v}{\\partial y} h_2 + o(|h|)\\\\\\ &amp;= \\left( \\frac{\\partial u}{\\partial x} + i \\frac{\\partial v}{\\partial x} \\right) (h_1+i h_2) + o(|h|). \\end{align*} Now dividing by $h$ gives us the desired result. Does there exist a differentiable but not $C^1$ function $f: U \\rightarrow \\mathbb{R}^2$ which satisfies the Cauchy-Riemann equations and does NOT correspond to a complex-differentiable function?" ]
medi_sts_stackexchange_dupe
Show that $\sum_n \frac{1}{a_n}\lt90$
Sum of reciprocals of numbers with certain terms omitted
[ "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?", "For some reason I can't unhide my objects anymore in this file. Is it a bug?", "Publishing a conference version of a journal paper at the same time ? (copyright issues)", "Slave duplicate counter Is it possible to create a counter that is a \"slave\" to another (master) counter, but also an exact duplicate? The \\@addtoreset{&lt;slave&gt;}{&lt;master&gt;} resets &lt;slave&gt; whenever &lt;master&gt; is incremented (similar functionality is offered by ), but I don't know about anything incrementing one counter (&lt;slave&gt;) automatically whenever another counter (&lt;master&gt;) is incremented. The idea is to have a macro (say) \\dupcntr{&lt;slave&gt;}{&lt;master&gt;} as an analogue to \\@addtoreset. The application for this might be where one is interested in renaming a counter used/provided by a package into something more meaningful for the user (say, &lt;slave&gt;), without having to reference &lt;master&gt;. Or, if the original counter contains @ that needs to be escaped every time it's used, it is sometimes more convenient to have a \"more user friendly\" counter. I know one way around is to use a macro that returns the value of &lt;master&gt;, but is it possible to perform the same manipulation with a macro than one could with the counter? Manipulation here refers to the printing of the counter (via \\the&lt;slave&gt;) and perhaps it's representation (like \\arabic, \\alph, ...).", "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?", "Forgotten the pattern and phone not showing the \"forgot pattern\" button. I upgraded my Moto G2 to Android Lollipop using over-the-air upgrade. It was awesome but I set a pattern lock which I forgot. Usually after 5 wrong attempts it shows the \"forgot password\" button but it is not showing that button even after 100 wrong attempts. How to unlock the phone?", "Proof of upper-tail inequality for standard normal distribution $X \\sim \\mathcal{N}(0,1)$, then to show that for $x &gt; 0$, $$ \\mathbb{P}(X&gt;x) \\leq \\frac{\\exp(-x^2/2)}{x \\sqrt{2 \\pi}} \\&gt;. $$", "Let $U\\subset \\mathbb{C}$ be a nonempty connected open set such that for every $z\\in U$, $\\overline z\\in U$. Let $f$ be analytic on $U$. Suppose $f(x)\\in\\mathbb R$ for every $x\\in U\\cap\\mathbb R$. Prove that $f(\\overline{z})=\\overline{f(z)}$ for any $z \\in U$. By definition, I know that $f$ analytic on $U$ means that for every $z_0 \\in U$, there exists $r&gt;0$ and a sequence of complex numbers $\\left(a_n\\right)_{n=0}^\\infty$ such that $f(z)=\\sum_{n=0}^\\infty a_n\\left(z-z_0\\right)^n$ on the disc $D(z_0,r)\\subseteq U$. I see that $f$ takes points without imaginary components to other points without imaginary components. But I don't see how this implies a symmetry that $f(\\overline{z})=\\overline{f(z)}$ for $z \\in \\mathbb C \\setminus \\mathbb R$. It seems like a very strong conclusion and I'm not sure how I would prove it. I have also shown in the preceding question that $U\\cap\\mathbb R$ contains an open interval, however I am not sure if that detail is meant to be helpful to this question.", "Solve the equation $x^2+\\frac{9x^2}{(x+3)^2}=27$", "Java2D Performance Issues I'm having performance oddities with Java2D. I know of the sun.java2d.opengl VM parameter to enable 3D acceleration for 2D, but even using that has some weird issues. Here are results of tests I ran: Drawing a 25x18 map with 32x32 pixel tiles on a JComponent Image 1 = .bmp format, Image 2 = A .png format Without -Dsun.java2d.opengl=true 120 FPS using .BMP image 1 13 FPS using .PNG image 2 With -Dsun.java2d.opengl=true 12 FPS using .BMP image 1 700 FPS using .PNG image 2 Without acceleration, I'm assuming some kind of transformation is taking place with every drawImage() I do in software, and is pulling down the FPS considerably in the case of .PNG. Why though, with acceleration, would the results switch (and PNG actually performs incredibly faster)?! Craziness! .BMP Image 1 is translated to an image type of TYPE_INT_RGB. .PNG Image 2 is translated to an image type of TYPE_CUSTOM. In order to get consistent speed with and without opengl acceleration, I have to create a new BufferedImage with an image type of TYPE_INT_ARGB, and draw Image 1 or Image 2 to this new image. Here are the results running with that: Without -Dsun.java2d.opengl=true 120 FPS using .BMP image 1 120 FPS using .PNG image 2 With -Dsun.java2d.opengl=true 700 FPS using .BMP image 1 700 FPS using .PNG image 2 My real question is, can I assume that TYPE_INT_ARGB will be the native image type for all systems and platforms? I'm assuming this value could be different. Is there some way for me to get the native value so that I can always create new BufferedImages for maximum performance? Thanks in advance...", "How to get world-space matrix of any pose bone? Is there a command for getting world-space matrix of pose bones, same as obj.matrix_world for objects? I found pose_bone.matrix, but it gives weird result for me.", "Find $ P(Z>X+Y)$ where $X,Y,Z \\sim U(0,1)$ independently I'm trying to follow a line in a derivation for $P(Z&gt;X+Y)$ where $X,Y,Z$ are independent continuous random variables distributed uniformly on $(0,1)$. I've already derived the pdf of $X+Y$ using the convolution theorem, but there's a line in the answer that says: $P(Z&gt;X+Y) = \\mathbb{E}[\\ P(Z&gt;X+Y\\ |\\ X+Y )\\ ]$ where $\\mathbb{E}$ is the expectation. I'm not familiar with this result. Could anyone give a pointer to a similar result if one exists? Thanks.", "php String Concatenation, Performance In languages like Java and C#, strings are immutable and it can be computationally expensive to build a string one character at a time. In said languages, there are library classes to reduce this cost such as C# System.Text.StringBuilder and Java java.lang.StringBuilder. Does php (4 or 5; I'm interested in both) share this limitation? If so, are there similar solutions to the problem available?", "Proving that $\\arctan(x)+\\arctan(1/x)=\\pm \\pi/2$, could this line of reasoning possibly be correct?", "How to mount a virtual hard disk? Is it possible to mount a virtual hard disk (VHD, HDD, VDI, VMDK) on Ubuntu? How can this be done?", "I want to apply a macro to all the cells of a column with the cell content as the input to the macro. Is this possible? For example if the cell contents have the word TEST, the macro should take TEST as its argument.", "How to catch and print the full exception traceback without halting/exiting the program?", "When I open a window to air out the room, how does the smell disperse? Let's say I'm in a room with some kind of noxious stink, possibly of flatulent nature. The quickest way to right the world that comes to mind is to open a window. When I open a window, how do the stank particles leave the room?", "Fluent and Query Expression — Is there any benefit(s) of one over other?", "How to return only the Date from a SQL Server DateTime datatype SELECT GETDATE() Returns: 2008-09-22 15:24:13.790 I want that date part without the time part: 2008-09-22 00:00:00.000 How can I get that?" ]
medi_sts_stackexchange_dupe
Calculating AUC from continuous output
How to calculate Area Under the Curve (AUC), or the c-statistic, by hand
[ "Sometimes a suggested edit is because of a concurrent direct edit that takes precedence. Since this is no fault of the edit suggestor, such rejections should not count against the suggestor when counting . Here are some examples where it happened:", "Where can I get a clean ISO of a specific build of Windows 10? I need to repair my Windows 10 installation. Where can I get a clean ISO (with install.wim, no Install.ESD, so that I can run DISM against the WIM) of the specific Windows 10 build required for this? In my case, I need the Anniversary update (Build 14393), Creators Update (Build 15063) or Fall Creators Update (Build 16299.15).", "What is \"summoning sickness\" and how does it affect my creatures?", "Flawed proof that all positive integers are equal", "Let $A = \\mathbb{Z}[\\sqrt{-2}]= \\{a+b\\sqrt{-2} \\ : a, b \\in \\mathbb{Z}\\}$. Show that the only natural number $x$ for which $x+\\sqrt{-2}$ is a cube in $A$ is $x=5$. So I have to show that there exists $c,d \\in \\mathbb{Z}$ such that $(x+\\sqrt{-2})^3= c + d \\sqrt{-2}$. From the last equation, I obtain $x(x^2-6) = c \\in \\mathbb{Z}$ and $3x^2-2= b \\in \\mathbb{Z}$, and here I blocked. Could I conclude from both equations? If not, is there exists another way to proceed (hint)? Thanks!", "Given a random square matrix of size $n\\times n$ in the field $\\mathbb F_2$, what is the probability that its determinant is $1$? (This is also the probability that the matrix is non-singular, since $\\mathbb F_2$ only has the elements $0$ and $1$.)", "Updating inherited property", "Is lemonade better when made with simple syrup? On a hot summer day and with a basketful of lemons I often want a nice cold glass of lemonade. A lot of recipes suggest making lemonade with simple syrup, which requires cooking, whereas other recipes just have stirred-in sugar. What exactly are the benefits of making lemonade (or limeade) with simple syrup versus just stirring in sugar?", "Lightning Cancel Enqueued Server Side Action", "How can we prove that for every pair $N \\in \\mathbb{N}$, and natural number $\\beta\\in [2, \\infty)$ there exists a unique set of integers $x_i \\in [0, \\beta -1]$, $k\\in [0,\\infty)$ such that: $$N = \\sum_{i=0}^{k}\\beta^ix_{i}, \\quad $$ It's a question if every positive integer has its unique representation in every base $\\beta$. Is the validity of above statement somehow related to Horner's rule?", "Control Cycles/Eevee material nodes and material properties using python?", "Correct formula for LED current-limiting resistor? I'm trying to work out what value resistor to use in a LED circuit. The equation I'd use to do this is: $$ R = \\frac{V_{cc} - V_f}{I_f} $$ Seems logical, and makes complete sense. The answers to the question confirm this too. I have the following LEDs: \\$ V_f = 3.3V \\$ \\$ I_{f_{typ}} = 20mA \\$ Using a 5V power supply: \\$ V_{cc} = 5V \\$ Plugging these into the above equation gives: $$ \\begin{eqnarray} R &amp; = &amp; \\frac{V_{cc} - V_f}{I_f} \\\\ &amp; = &amp; \\frac{5V - 3.3V}{20mA} \\\\ &amp; = &amp; 85\\Omega \\end{eqnarray} $$ All good so far. However, if I use the calculator at , that gives me 100&Omega;. If I use the ElectroDroid app on my phone, that gives me 85&Omega;. So, I assume that the linear1 calculator is using a different method of calculating this resistor value; is there some better way of doing this?", "I'm trying to delete a folder in Windows 7 and get a perplexing error message: \"Could not find this item: This is no longer located in G:\\Graphics. Verify the item's location and try again. I can see the folder -- I can find it. I just can't delete it. I also get a second error message (sometimes) when I click on the folder: G:\\Graphics 2009-11-17 refers to a location that is unavailable...this information might have been moved to a different location. I'm using Windows 7; this folder is on an external hard drive. I've emptied the folder (there were items in it); I've scanned that external hard drive for errors. Trying to rename the folder yields the same enigmatic error message. Is there a way to delete this folder?", "This dreaded issue started at some time after upgrade to OS X (Yosemite) 10.10.3. accountsd uses about 60% CPU constantly, making the laptop hot and noisy. I'm not using iCloud at all. Killing it doesn't help, because it starts again quickly. Probably related question, but it's about iOS:", "Prove if $n$ has a primitive root, then it has exactly $\\phi(\\phi(n))$ of them Prove if $n$ has a primitive root, then it has exactly $\\phi(\\phi(n))$ of them. Let $a$ be the primitive root then I know other primitive roots will be among $\\{a,a^2,a^3 \\cdots\\cdots a^{\\phi(n)} \\}$ because any other number will be congruent modulo $n$ to one of these. Then I figured as the answer is $\\phi(\\phi(n))$ so for $a^k$ to be primitive root, $k$ must be coprime with $\\phi(n)$.But I don't know the reason.Am I missing any silly point?", "How can I get LaTeX to warn about unreferenced figures and unused labels in general? When writing documents, I consider it to be necessary that all figures and tables are referenced (\\ref) in the text, whether or not I've remembered to \\label them. LaTeX does not currently warn if a figure or table is not referenced. Is there a way to ensure that this is flagged up as a warning? Note that I am specifically concerned about figures and tables, not chapter or section headings; it will be no good looking just at \\labels that don't have an associated \\ref. In other words, it should report boo and not report bla in the following MWE: \\documentclass{article} \\begin{document} \\section{BLA}\\label{bla} \\section{BOO}\\label{boo} In Section~\\ref{bla} we do something. \\end{document}", "Volumetric Lighting is not working I have a simple setup to try out Volumetric Lighting. I have a spot lamp and Volume Scatter set for the World. The cube has a window for the light of the spot lamp. But no Volumetric Lighting. I have read most questions on this subject. But I have no idea where I am going wrong.", "I've been wondering about this one for a while; I find it a little weird how abruptly it happens. Basically, why do we need just three uniforms for $Z_n$ to smooth out like it does? And why does the smoothing-out happen so relatively quickly? $Z_2$: $Z_3$: (images shamelessly stolen from John D. Cook's blog: ) Why doesn't it take, say, four uniforms? Or five? Or...?", "Circular duplicates strike again It looks like this issue has , but it just happened again on Travel.SE. Perhaps this is another corner case? These two questions are closed as duplicates of each other. I had the last vote on each, although in both cases, my vote was for \"Unclear what you're asking\", but the weight of votes in both cases were for the duplicate status. So if the existing checks are only in place at the time someone casts a close vote, that would explain how this one got in under the radar. Perhaps another check needs to be done when the question is actually closed, not just when close votes are cast? And as @gnat points out, low-rep/logged-out users get a Redirect loop when trying to load either question. NOTE: A moderator has already fixed this particular circular duplicate situation by closing one of the questions with a different close reason.", "How did Harry's blood being inside Voldemort save him? There are, of course, an incredible amount of theories on how Harry Potter survived. Problem is that the most important one, the one that is canon, is the one I don't get: how Harry's blood inside Voldemort saves him? Because all that I have read so far, leaves me with questions. I understand why Voldemort wanted Harry's blood, but why does it save Harry? Why is that necessary to keep the sacrifice alive, while it's still inside Harry? And if Harry lost it at 17 (I have seen some different ideas on this as well), why does Voldemort still have it at 69 (give or take a few)? To clafiry, the parts I'm talking about: \"For a fleeting instant, Harry thought he saw a gleam of something like triumph in Dumbledore's eyes\" (GoF, right after Harry tells Dumbledore that his blood now goes through Voldemort.) And: \"He took your blood believing it would strengthen him. He took into his body a tiny part of the enchantment your mother laid upon you when she died for you. His body keeps her sacrifice alive, and while that enchantment survives, so do you\" (Albus Dumbledore in DH) I just don't get why the blood transfusion thing suddenly gave Harry the chance to survive the whole thing, and it's never really been satisfyingly answered, not to my knowledge at least, as every answer I've read raises more questions." ]
medi_sts_stackexchange_dupe
update is not working
How do I remove a malformed line from my sources.list?
[ "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?", "In De Broglie's Explanation for Bohr's Quantization Condition, why do we not use 2πr = n λ/2, why do we use 2πr = n λ? In de Broglie's explanation for Bohr's quantization condition, why do we not use $2\\pi r = n\\lambda/2$, why do we use $2\\pi r = n\\lambda$? We know that in waves on strings, for standing waves creation in a string between two rigid supports, we use \"Length of String\" $ = n \\lambda/2$. Why do we not use a similar concept here?", "Based on this question: , LVS may be the right solution for my problem. But when I went to its homepage , I found that LVS has been updated since Nov, 2008. The world's moving fast, and I don't know if LVS was obsolete or not. Is LVS standing still, or there're some better solutions to replace it? Thank you so much.", "What does the dot mean On my reelbox (running Ubuntu) I have found a file in /etc/init that contains the following # frontpanel-pre - check for frontpanel CAPs and adjust time # description \"check frontpanel caps\" #start on starting mountall #start on tty-device-added DEVNAME=/dev/ttyS0 task script ( /sbin/dev_frontpanel.sh /sbin/reelfpctl -capability ) &gt; /dev/.frontpanel.caps initctl emit --no-wait frontpanel-linked end script I wonder if the dot in /dev/.frontpanel has some special meaning in linux I thought the output of the commands in the brackets will be written to a file called \".frontpanel.caps\" in /dev/ but there is no such file. In /dev/ there is a frontpanel which is a link to /dev/ttyS0 Could it be, that e.g. echo something &gt; /dev/.frontpanel.caps actually sends data (something in this case) to /dev/frontpanel ? What does .caps do then?", "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.", "I use both GNOME and KDE SC. In GNOME, I use Docky but I do not use it with KDE. So, I would like Docky to start up only when I login into GNOME not KDE. In KDE, there is an option to make a program autostart only in KDE. But I cannot find any such option in GNOME. How can I do this? Thanks in advance.", "Difference between $\\mathbb C$ and $\\mathbb R^2$ What are the basic differences between $\\mathbb C$ and $\\mathbb R^2$? The points in these two sets are written as ordered pairs, I mean the structure looks similar to me. So what is the reason to denote these two sets differently?", "Ampscript date range lookup I want to use LookupOrderedRows and return rows between a start and end date (last month range). What is the best way to handle using Ampscript? I can add one date to the where using \"DateField\", @varStartDate, But if I add the below to add additional where filters \"DateField\", @varStartDate,\"DateField\", @varEndDate, I get this error: \"Duplicate Key Field Name: DateField\" EDIT: Also I tried the range as the var for the LookupOrderedRows using set @strRange = StringToDate(Format(DateDiff(@strStartDate, @strEndDate, \"M\"),\"MM/dd/yyyy\")) and then in the LookupOrderedRows just using \"DateField\", @strRange But that got an error as well.", "Let $ X \\subset \\mathbb{R}$ be a non-empty, open set and let $f: X \\rightarrow \\mathbb{R}$ be a continuous function. Show that the inverse image of an open set is open under f, i.e. show: If $M \\subset \\mathbb{R}$ is open, then $f^{-1}(M)$ is open as well. I think that this should basically follow from the definitions, but I'm still having some troubles with the proof. Suppose $M \\subset \\mathbb{R}$ is open, then it follows that $\\forall z \\in M, \\exists r &gt; 0: K_r(z) \\subseteq M$ Since f is continuous it follows for each $x_0 \\in X$ that for each $\\epsilon &gt; 0 ,\\exists \\delta &gt; 0 : |f(x)-f(x_0)|&lt; \\epsilon, \\forall x \\in X: |x-x_0|&lt;\\delta$ Now I need to show that $f^{-1}(M)$ is open, so that for each $z \\in M, \\exists r&gt;0: K_r(f^{-1}(z_0)) \\subseteq f^{-1}(M)$ I'm not sure how to prove this. I guess since $z = f(x)$ and since M is open we have that $\\exists r&gt;0:\\{z:|z-z_0|&lt;r\\}\\subseteq M$. And since f is continuous: $|f(x)-f(x_0)| = |z-z_0|&lt; \\epsilon$ for all $|x-x_0|&lt;\\delta$, but since $|x-x_0|=|f^{-1}(z)-f^{-1}(z_0)|&lt;\\delta$ it somehow follows from that that $f^{-1}(M)$ is open?! Which is just horrible and probably completely wrong. But I'm really confused from all the definitions right now and need some help please.", "How do I keep Python print from adding newlines or spaces? In python, if I say print 'h' I get the letter h and a newline. If I say print 'h', I get the letter h and no newline. If I say print 'h', print 'm', I get the letter h, a space, and the letter m. How can I prevent Python from printing the space? The print statements are different iterations of the same loop so I can't just use the + operator.", "This is sort of a follow-up to a feature request that resulted in obscuring spam / offensive content from 10K-visible answers: Suggest the same to be done for questions. As of now, spam questions (, ) preserve their titles and content. Suggest to revise the titles to something like This question was marked as spam or offensive and is therefore not shown And the text to something like: This question was marked as spam or offensive and is therefore not shown - you can see the revision history for details\". Where \"the revision history\" links to the question revision history. For those interested, here is a link to screen shots of how spam shines through my flagging summary page and is displayed to me when I click the link to one of deleted questions: . For the sake of precision, flagger having less than 10K rep would see only upper screen shot - the one that lists question titles (\"Call giRℒs blah blah &lt;phone number&gt;\") - in their page.", "Was the significance of Arya's Braavosi coin ever explained? Jaqen H'ghar gives Arya the iron coin, she can apparently give it to any Braavosi and say Valar Morghulis and that gets her where she needs to go, but why? Where do these coins come from and what do they indicate to a Braavosi?", "Best resources to learn bash scripting?", "Which is correct: \"__ is different from __\" or \"__ is different than __\"? As someone who learned English later on in life, I was taught that different from is the correct grammar to use: this is different from that. However, it seems these days everyone uses different than instead. I know it's incorrect usage, but does the language evolve if the majority wins? Edit: Some commented different than is American English and different from is British English, both are OK. IMO, this isn't like color versus colour, though. Than is used after a comparative adjective, e.g. taller than, whiter than. The word different isn't a comparative adjective, unless used in more different than. Logically, it makes no sense to say different than.", "Showing that $f$ is identically $0$ on $\\mathbb{D}$ Here is the question: Let $f:\\mathbb{D}\\rightarrow\\mathbb{C}$ be an analytic function. Suppose that there exists $\\epsilon&gt;0$ such that for every $\\theta$, $|\\theta|&lt;\\epsilon$, and $\\lim_{z\\rightarrow e^{i\\theta}}f(z)=0$. Prove that $f$ is identically $0$ on $\\mathbb{D}$. My thoughts: Well, honestly, I am quite stumped here. I was thinking I could let $f$ be analytic in some other region (can I even do this?), say the lower half plane and suppose $\\lim_{z\\rightarrow x}f(z)=0$ whenever $-1\\leq x\\leq1$, by assumption. Maybe then I could show that $f$ is identically $0$ on the bigger region, and then consider $f$ on the intersection of those two regions, and then ultimately making my way towards using the uniqueness theorem to show what I want... but I am quite stuck on how to do that... any thoughts, suggestions, etc. are greatly appreciated! Thank you.", "If a SHA256 hash with high entropy is then hashed with one made from low entropy, is the resulting hash higher/same/lower entropy? If one were to create a SHA256 hash using 256 coin flips converted to hex (which, as I understand it, is as \"entro-phized\" as one can capture in SHA256) then take that hash as a string, combine that with a hash of the word \"cat\" and hash the resulting 512 character string, would the resulting hash from that exercise be any less random than our \"perfect\" hash we began with? My thinking is the final string would capture the same amount as the original randomness as what we started with because the \"extra\" entropy can not be captured and is lost. Is this the case and am I thinking about this correctly? Would hashing something with high entropy with something simpler ever cause a lower amount of randomness or does it only go up? Thanks to anyone who can help explain this a little better.", "Firefox browser opens but URL is not launched", "Error: class X is public should be declared in a file named X.java", "How can I fix a 404 Error when using a PPA or updating my package lists? PPA seems to be constantly offline. Whenever I use sudo apt-get update, this error is shown: W: Failed to fetch http://ppa.launchpad.net/ 404 Not Found How do I fix these errors?", "I am looking for a closed form (ideally expressed as elementary functions) of the function $\\exp_n(x) = \\sum_{k=0}^n x^k / k!$. I am already aware of expressing it in terms of the gamma function. Background / Motivation When counting combinations of objects with generating functions, it is useful to be able to express the partial sum $1 + x + \\cdots + x^n$ as $\\frac{1-x^{n+1}}{1-x}$. For example, to count the number of ways to pick 5 marbles from a bag of blue, red, and green marbles where we pick at most 3 blue marbles and at most 2 red marbles, we can consider the generating function $f(x) = (1+x+x^2+x^3)(1+x+x^2)(1+x+x^2+\\cdots)$. By using the partial sum identity, we can express it as $f(x) = \\left(\\frac{1-x^4}{1-x}\\right)\\left(\\frac{1-x^3}{1-x}\\right)\\left(\\frac{1}{1-x}\\right)$. Simplify, express as simpler product of series, and find the coefficient of the $x^5$ term. I want to be able to do the same for a generating function in the form $g(x) = \\exp_{n_1}(x)^{p_1} \\exp_{n_2}(x)^{p_2} \\cdots \\exp_{n_j}(x)^{p_j}$ The easiest way to extract the coefficient of a given term $x^p / p!$ would be to use a similar closed form expression for $\\exp_n(x)$ and a similar technique to $f$. Attempted Solutions Differential equation Recall that the way to prove the identity $1+x+x^2+\\cdots+x^n = \\frac{1-x^{n+1}}{1-x}$ is to define $S = 1 + x + x^2 + \\cdots + x^n$ and notice that: $S - Sx = 1 - x^{n+1}$. Likewise, notice that $y(x) = \\exp_n(x)$ satisfies $y - y' = x^n/n!$. Via SAGE, the solution is $y(x) = \\frac{c+\\Gamma(n+1,x)}{n!}e^x$. Our initial condition $y(0) = 0$ so $c=0$. By , $\\Gamma(n+1,x) = n! e^{-x} \\exp_n(x)$ so we have $y(x) = \\exp_n(x)$. Recurrence Relation Notice that $\\exp_n(x) = \\exp_{n-1}(x) + x^n/n!$. Using the unilateral Z-Transform and related properties, we find that $\\mathcal{Z}[\\exp_n(x)] = (z e^{x/z})/(z-1)$. Therefore, $\\exp_n(x) = \\mathcal{Z}^{-1}\\left[(z e^{x/z})/(z-1)\\right] = \\frac{1}{2 \\pi i} \\oint_C z^n e^{x/z}/(z-1)\\;dz$. $(z^n e^{x/z})/(z-1)$ has two singularities: $z = 1$ and $z = 0$. The point $z = 1$ is a pole of order one with residue $e^x$. To find the residue at $z = 0$ consider the product $z^n e^{x/z} (-1/(1-z)) = -z^n \\left( \\sum_{m=0}^\\infty x^m z^{-m} / m! \\right) \\left( \\sum_{j=0}^\\infty x^j \\right)$. The coefficient of the $z^{-1}$ term is given when $n - m + j = -1$. The residue of the point $z=0$ is then $-\\sum_{m,j} x^m / m! = -\\sum_{m=n+1}^\\infty x^m / m!$. Let $C$ by the positively oriented unit circle centered at the origin. By Cauchy's Residue Theorem, $\\frac{1}{2 \\pi i} \\oint_C z^n e^{x/z}/(z-1)\\;dz = \\frac{1}{2 \\pi i} 2 \\pi i \\left(e^x - \\sum_{m=n+1}^\\infty x^m / m!\\right) = \\exp_n(x)$. Finite Calculus I've tried to evaluate the sum using finite calculus, but can't seem to make much progress." ]
medi_sts_stackexchange_dupe
Simultaneous installation of Firefox legacy and Firefox Quantum?
How to run firefox and firefox ESR simultaneously
[ "Package repository down, how to relocate? I would like to use the function of TeXnicCenter 1.0, where is automatically downloads missing packages used. The problem is, that the repository it wants to download from does not exist anymore (the one on piotrkosoft.net). How do I get TeXnicCenter to try with another repository?", "How can I simulate a slow machine in a VM?", "Do ISTQB/ISEB Testing Certificates prove that someone can test? I have passed the , and to be honest, I'm pretty sure that anyone could pass that exam with a couple of days of studying. My question is are these certificates really of value to my career and should I put any effort into acquiring the ?", "How can I read a large text file line by line using Java?", "Conjunction Puzzle: Is this clause dependent or independent? Third grade teacher here. I plan to teach students to distinguish between simple, compound and complex sentences — but only if I can demonstrate a clear and meaningful difference between the latter two! Complex or Compound? Each sentence in the following pairs is similar to its partner. All dogs are mammals, so huskies are mammals. All dogs are mammals, therefore huskies are mammals. I come bearing soup, for Kate is sick. I come bearing soup, because Kate is sick. Are the sentences above complex or compound? First, we need to decide whether each italicized clause is independent or dependent. To me, they all look dependent. If that is the case, there's not much need to teach about compound sentences. Is there a meaningful difference between the sentences in each pair that I am missing? (Are the FANBOYS as special as they'd like to think?)", "Can anyone provide some pseudo code for a roulette selection function? How would I implement this: I don't really understand how to read this math notation. I never took any probability or statistics.", "Why is the method executed immediately when I use setTimeout?", "What causes the dimensions of a star increase when its hydrogen fuel is exhausted?", "How do I put /home in a different partition? Yeah, so I have 2 hard drives, on with 2 partitions(backups and windows), and I have another that also has 2 partitions with only one used. I have Ubuntu on hard drive 2:partition one, but I have come to a point when the /home folder can't hold any more files, but the partition is only about 15% filled up. So I did some researching and figured out that you can put it on a separate partition, but most of the guides were vague on what I needed to do. Could someone give me step-by-step instructions on what I need to do, or even tell me a, easier or different way to fix this /home folder capacity problem?", "Check tag classes with watir?", "Is there any way in unix to find out who accessed certain file in last 1 week? It may be user or some script ftp it to some other place. Can I get a list of user name who accessed certain file? How can I find out who is accessing particular file??", "I have been trying to get a sense of the different problems in frequentist settings where MCMC is used. I am familiar that MCMC (or Monte Carlo) is used in fitting GLMMs and in maybe Monte Carlo EM algorithms. Are there more frequentist problems where MCMC is used?", "How do I make a hole in an object created by me? Please help, youtube tutorials didn't help at all. Hope the image help.", "How do I remember which units counter which in StarCraft 2?", "DataView.Sort - more than just asc/desc (need custom sort)", "I have been trying to teach myself QGIS by using this forum and others to help. Most of my questions can be answered by downloading plugins that are available through 3rd party repositories but for some reason I am not able to connect with these. Anyone have any ideas why this is the case?", "Prove that for all integers $n$, $n \\geq 1$, $$1 + 3 + 5 + \\cdots + (2n - 1) = n\\cdot n$$ How would I go about proving this?", "Do I require airport transit visa at Frankfurt? I am flying from Mumbiai to Montego Bay via Dubai and Frankfurt as my final destination. Do i require airport transit visa at Frankfurt. i will be having invitation letter from husband and even visa from Montego Bay.", "Ambiguity of \"quite\"", "How to start a terminal with certain text already input on the command-line? Rather than rephrasing my question, let me describe to you the desired user-case: I create a short shell-script to run command \"gnome-terminal --someoptionflagname 'my text to be posted'\", and execute this script. Gnome-terminal pops up, with command-line prompt followed by my text. ie: fields@mycomputer:/$ my text to be posted Can this be done?" ]
medi_sts_stackexchange_dupe
How to put arrow head in latex?
Tikz: Arrowheads in the center
[ "Assume that $X$ and $Y$ are two random variables such that $Y=E[X|Y]$ almost surely and $X= E[Y|X]$ almost surely. Prove that $X=Y$ almost surely. The hint I was given is to evaluate: $$E[X-Y;X&gt;a,Y\\leq a] + E[X-Y;X\\leq a,Y\\leq a]$$ which I can write as: $$\\int_A(X-Y)dP +\\int_B(X-Y)dP$$ where $A=\\{X&gt;a, Y\\leq a\\}$ and $B=\\{X\\leq a,Y\\leq a\\}$. But I need some more hints.", "Proving that $\\mathbb{Z}[\\sqrt{2}]$ is a Euclidean domain We're proving that $\\mathbb{Z}[\\sqrt{2}]$ is a Euclidean domain, using the norm function $$\\nu (a + b\\sqrt{2} ) = |a^2 - 2b^2|$$ and the first part says that since $\\nu (a + b\\sqrt{2} ) = |(a + b\\sqrt{2})(a - b\\sqrt{2})|$ it's clear that $\\nu (xy) = \\nu(x) \\nu(y)$? ... Can someone please explain to me how this is clear?", "Install Spyder3 without Anaconda on ubuntu 16.04", "When can lands be tapped?", "How do I make my glasses look realistic?", "How to implement Enums in Ruby? What's the best way to implement the enum idiom in Ruby? I'm looking for something which I can use (almost) like the Java/C# enums.", "What is the name of this game involving racing to the other side of the board and putting down barriers? Does anyone recognize this game, where players take turns in a square board, each turn a player can move his pawn or place a wall and the objective is to reach the other side of the board before the other player. Here is a picture of a near end game.", "Harry is a half-blood and Ginny is a pure-blood, so what does that make his children? I've been told it means they are pure-bloods but I can't be sure. What do you think?", "Some time ago, we announced that . This has gone well and we're extremely thankful to everyone for their support and feedback. Because it has been successful so far, we're going to be extending the program to the majority of our graduated sites. Well, we've pretty much already done that, but there are quite a few sites that have ads enabled, yet still display nothing. The thing is, we don't really have an abundance of clients offering products that a would find relevant, but Amazon has stand mixers, a selection of super fine chinois, deliciously sharp cutlery and enough cast iron to fill the Gulf Of Mexico with . Beginning as early as this week (week of 5 February 2018), our ad team is going to be hand selecting affiliate ads to be displayed on select sites. The use of inventory will of course depend on the availability of relevant ads to display which means: Some sites might see very few, if any ads. Some topics simply don't come remotely close to orbiting anything worth advertising. Furthermore, while graduated, some sites simply don't have enough activity for ads to make sense. Since these are hand-selected, it could take a while for ads to appear initially. These would of course yield to inventory from clients if clients had products that were relevant to any given topic. Nothing changes when it comes to the . If you're used to occasionally seeing a community promotion ad, you'll just notice that you'll also occasionally see an ad for something that is likely to be of interest to someone interested in the topic that your site covers. In fact, to be clear, this is simply a continuation of the announcement we made in November of 2016. We just wanted folks to know that we're going to be continuing the program where there's good potential to show relevant advertisements, even if we don't have clients lined up with a demand for it. Where can I give feedback about a certain ad on [site]? Open a meta post on your per-site meta and let us know. Please remember, the bulk of advertisements are an effort to get something small back from folks that hit the sites through search engines and are extremely unlikely to ever become contributors. Their soufflé stopped falling, and we'll probably never see them again. Maybe we can get a few bucks once they realized that copper ions help egg whites stiffen properly and buy a bowl or a proper bloom whisk. However, you're the experts on these topics and we're very likely going to listen to you. What sites, specifically? Are any sites exempt? If you're a former Stack Exchange 1.0 site and / or subsequently joined the network under a special charter, nothing changes - don't panic :) For the rest, we're just extending what we're currently doing with ads on graduated sites to also include those where there's an opportunity to make sensible use of affiliate ads. If a site has less than 15k (average) daily visits, or fewer than roughly 50k combined total posts - it might not yet be time to invest in selecting ads to be shown there. But, part of this exercise is also seeing what works best. I don't really have feedback, just some suggestions Ads aren't just an opportunity to sell stuff, they're an opportunity to really show people that we understand a given topic. That, of course, makes suggestions from people that do that stuff every day quite valuable. Post on your per-site meta and our community / ad critters will take a look. Questions? Comments? Kvetches? Let us know in an answer or comment below. If anything about the plan changes, we'll update this post to let folks know.", "Use a rectangular contour to evaluate the integral $$\\int_{-\\infty}^{\\infty} \\frac{\\cos(mx) dx}{e^{-x}+e^x} = \\frac{\\pi}{e^{m\\pi /2}+e^{-m\\pi /2}}$$ I need to evaluate the above integral specifically using a rectangluar contour and at some point applying the residue theorem. I should be ok with the residue part, but I'm confused at to how to get this into the example form shown in the book: $$I =\\int_{-\\infty}^{\\infty} \\frac{e^{ax}dx}{1+e^x}=\\frac{\\pi}{\\sin(a\\pi)} $$ I tried using the identity $\\cos (mx) = \\frac{e^{ix}+e^{-ix}}{2}$ but I end up with $\\frac{1}{2} \\int_{-\\infty}^{\\infty}\\frac{e^{ix}(e^{imx}+e^{-imx})dx}{1+e^{2ix}}$, which almost resembles the example but not quite...", "Evaluate the integral $\\int_{-1}^1\\frac{dx}{(e^x+1)(x^2+1)}$. Evaluate: $$\\int_{-1}^1\\frac{dx}{(e^x+1)(x^2+1)}$$", "In my game, XP needed to reach the next level is Current Level × Level Threshold. Given that, how can I get my current level from the total XP ever earned? For example: Level Threshold = 50 Current Level = 1 Starting at level 1, I would need (1 × 50) = 50 XP to get to level 2, and so on. Level 1: 50 XP needed to reach level 2 Level 2: 100 more XP needed to reach level 3 Level 3: 150 more XP needed to reach level 4 In other words, the progression table is as follows: Level 1: 0 XP to 49 XP Level 2: 50 XP to 149 XP Level 3: 150 XP to 299 XP Level 4: 300 XP to 499 XP If I have 300 XP, I'll just reached level 4. How can I calculate that generally?", "Contraction mapping in the context of $f(x_n)=x_{n+1}$.", "Induced metric on a null hypersurface Consider a metric $g_{\\mu\\nu}(x)$ and a hyper surface ${\\cal H}$ defined by $~f(x) = c$. One (or at least I) usually finds the \"induced metric\" on ${\\cal H}$ by solving$~f(x) = c$ for one of the coordinates and plugging it back into the metric to give us $\\gamma_{ij}$. For null hypersurfaces, I seem to be finding that the resultant induced metric is singular. Is it true in general that the induced metric as defined above is singular on a null hypersurface? How does one define the induced metric on a null hypersurface?", "How to load up CSS files using Javascript? Is it possible to import css stylesheets into a html page using Javascript? If so, how can it be done? P.S the javascript will be hosted on my site, but I want users to be able to put in the &lt;head&gt; tag of their website, and it should be able to import a css file hosted on my server into the current web page. (both the css file and the javascript file will be hosted on my server).", "First off, here is some code: int main() { int days[] = {1,2,3,4,5}; int *ptr = days; printf(\"%u\\n\", sizeof(days)); printf(\"%u\\n\", sizeof(ptr)); return 0; } Is there a way to find out the size of the array that ptr is pointing to (instead of just giving its size, which is four bytes on a 32-bit system)?", "Why does Captain America's Shield make noise?", "How do I earn SC2's \"Hurry up, it's raid night\" achievement? The \"Hurry up, it's raid night\" achievement in Starcraft 2 involves \"beating Wings of Liberty, on normal, in 8 hours or less.\" Is there a recommended mission path to take? Which mission should I take for the branching paths? Does it count time spent on the Hyperion in between missions, or is it exclusively time elapsed on missions. Does replaying a mission affect the time? General tips / hints from those who've unlocked the achievement? Edit: Just got this achievement tonight, finally! The answer was perfect.", "Is there difference in force when the height increases? Consider a man with mass 50kg. When he jumps from a 2 meter height, the total force is $F=ma$ ie (mass * gravity), but nothing happens to him. When he jumps from a 50 meter height, the total force is (mass * gravity ) same, but he dies. Why is this happening?", "Can't kill a sleeping process" ]
medi_sts_stackexchange_dupe
Why doesnt this Java code, provided by oracle, throw an exception when run?
What is a NullPointerException, and how do I fix it?
[ "Compilers and argument order of evaluation in C++", "Regarding the advanced edition of FTL: If all of your crew dies but you have a cloning bay on your vessel, is it immediately game over, or does the cloning bay prevent that? Is the game smart enough to know that a damaged cloning bay and a fully dead crew means you cannot recover, but a functional one (even if temporarily without power) could revive your crew? Also, does this answer differ between hostile ships and your own ship? (That is, do you get to capture and loot enemy vessels that have all dead crew but have a functional cloning bay?)", "Using beamer \\visible command inside a table, without adding vertical space When using the beamer \\visible command inside a tabular environment, beamer adds an extra vertical space before the text. For example, in the following code, beamer adds an empty line before the word World in the second row. Can this be avoided? \\documentclass{beamer} \\begin{document} \\begin{frame} \\begin{tabular}{|p{1cm}|p{1cm}|} \\hline 1 &amp; Hello World \\\\ \\hline 2 &amp; \\visible&lt;2-&gt;{Hello World} \\\\ \\hline \\end{tabular} \\end{frame} \\end{document}", "A Variation of the even-town odd-town problem", "Surface of genus $g$ does not retract to circle (Hatcher exercise)", "Quick directory navigation in the bash shell I would like to frequently switch between directories that are in totally unrelated paths, for example /Project/Warnest/docs/ and ~/Dropbox/Projects/ds/test/. But I don't want to type cd /[full-path]/ all the time. Are there any shortcut commands to switch to previously worked directories? One solution I could think of is to add environment variables to my bash .profile for the frequently used directories and cd to them using those variables. But is there any other solution to this?", "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?", "I am having trouble with the following problem. Let $R$ be an integral domain, and let $a \\in R$ be a non-zero element. Let $D = \\{1, a, a^2, ...\\}$. I need to show that $R_D \\cong R[x]/(ax-1)$. I just want a hint. Basically, I've been looking for a surjective homomorphism from $R[x]$ to $R_D$, but everything I've tried has failed. I think the fact that $f(a)$ is a unit, where $f$ is our mapping, is relevant, but I'm not sure. Thanks", "Is the wave function of a particle re-created after a measurement stops?", "Command to append line to a text file without opening an editor Assuming i have a line that i want to add to a file without opening an editor. How could i append this line alias list='ls -cl --group-directories-first' to this file config.fish", "How can I execute `date` inside of a cron tab job?", "Batch/Multi rename only files with a specific number range I have a situation where I have the following: file01.ext . . . file99.ext file100.ext . . . And I want to (using rename ) insert the '0' for the files 01-99 (so that they become 000-099) but not modify files larger than 100. Which expression should I use and what is a good source on learning regular expressions such as these? On Windows I would have used Total Commander's multi rename function which has a very simple renaming syntax. Are there some good alternatives for that tool (multi-rename) for Ubuntu?", "How is it like to live in Helsinki? What is it like to live in Helsinki? How is living in Helsinki? What are the differences between these three sentences and what is the common way to ask someone for their opinion about the city they live in?", "Who is the eponymous Jedi in Return of the Jedi?", "I'm trying to fill out the skills section on my first character, but when I look at the character sheets in the Starter Set as examples of how to make a character, the skills that are circled have higher modifiers than their Dexterity or Strength or whatever should make them. I've filled out all skills but those. What do I add to the ability modifier to get those numbers? My abilities are Strength 13, Dexterity 14, Constitution 11, Intelligence 15, Wisdom 8, and Charisma 8. Proficiencies are Arcana, Athletics, History, Investigation and Stealth. My saving throws are Strength and Dexterity. I just started D&amp;D and have the Player's Handbook, DM's Guide, Monster Manual, and the Starter Set.", "I need to create file with name is the result of the command in Solaris I need to create only one file with name is the result of the command ls -l | head -2. I can't use environment variables. The filename must contain newline symbols. I've tried to use touch 'ls -l | head -2', but it hasn't worked.", "A question about causality and Quantum Field Theory from improper Lorentz transformation", "The Frobenius Coin Problem I am asked to prove that: For integers $n, x,y &gt; 0$, where $x,y$ are relatively prime, every $n \\ge (x-1) (y-1)$ can be expressed as $xa + yb$, with nonnegative integers $a,b \\ge0$. How should I approach this? I have very limited knowledge in number theory.", "How can I calculate how long it will take to transfer a file over LAN? I want to know about the method with which we can calculate data transfer speed. If I am sending a 1 GB file through a 1 Gb/s LAN connection, from one computer to another, how much time will it take to transfer that file?", "I'm looking for a shapefile containing an 1000m or 2000m UTM grid (\"graticule\"). All I was about to find on the web is a 10000m UTM grid (here: ) and I am aware that a 1000m UTM grid for the whole world might be quite big. That's why I'm now wondering if and how it would be possible to generate such a shapefile for a part of the world. I would prefer to use open source tools like gdal. Others output formats than a shapefile might be ok too. Has anyone an idea?" ]
medi_sts_stackexchange_dupe
Object Oriented Programming in C++ - Header Files
Why have header files and .cpp files?
[ "I know that $S_n$ is generated by a number of things, like all transpositions, all transpositions of the form $(1\\,a)$, the transpositions $(1\\,2),(2\\,3),\\dots,(n-1\\, n)$, and just the two elements $(123\\dots n),(1\\,2)$. Suppose $n$ is prime. If you just have $(123\\dots n)$ and some arbitrary transposition $(a\\, b)$, how does this also generate $S_n$? Can you somehow get to $(1\\,2)$ or reduce it to some other previous case?", "I'm using NetBeans, trying to change the familiar Java coffee cup icon to a png file that I have saved in a resources directory in the jar file. I've found many different web pages that claim they have a solution, but so far none of them work. Here's what I have at the moment (leaving out the try-catch block): URL url = new URL(\"com/xyz/resources/camera.png\"); Toolkit kit = Toolkit.getDefaultToolkit(); Image img = kit.createImage(url); getFrame().setIconImage(img); The class that contains this code is in the com.xyz package, if that makes any difference. That class also extends JFrame. This code is throwing a MalformedUrlException on the first line. Anyone have a solution that works?", "The reason that I ask is because this is happening to LiDAR, and I am inclined to use lidar because it is easier to read.", "$\\mathbb Z^n/\\langle (a,...,a) \\rangle \\cong \\mathbb Z^{n-1} \\oplus \\mathbb Z/\\langle a \\rangle$", "Change Proxy Settings In Ubuntu I want to use the Ubuntu Software Center to install software, but I cannot download them. How can I give my proxy settings in Ubuntu terminal (just like we use cmd in Windows to choose IE proxy settings)?", "When I am writing I often come across the words \"around\" and \"round.\" I was wondering what is different between them, and how they would be used in different contexts.", "Automatic reboot after ubuntu freeze? How Can I Do It?", "What is a use case where one would use an SObject as a Map key?", "My Windows 7 has suddenly stopped displaying Unicode symbols For some strange reason, my computer suddenly doesn't show certain unicode characters anymore! I have no idea what happened. Affected applications include Windows Explorer (should be Japanese characters), Google Chrome (should be a heart), and Winamp (should be stars): Russian, German etc. characters are displayed normally. Chrome also displays Japanese script on websites, but not in the GUI. How can I fix it? TL;DR: A workaround is to put a shortcut with a Unicode name on the desktop so that explorer.exe is the first process to display a Unicode string after booting. Update: I have tried to use System Restore to fix it. I needed to go back in time quite a while because the most recent restore points didn't solve it so I used one from the middle of November. After that restore, Unicode symbols were displayed again. Then I updated my system with Windows Update again because those were removed during the restore. After that, the error occurred again! I then did a restore to a point before my new updates, but the error persists, and the old restore point (which I used before) is gone and there are currently no other snapshots of the system. Any suggestions on what to do now? Update 2: I could find a workaround: Control Panel → Region and Language → Administration → Change Language for Unicode-incompatible programs to Japanese (Japan). All mentioned programs display their symbols correctly again. However, I don't consider this a fix because these programs are not usually Unicode-incompatible, and it also leads to some (non-serious) artifacts in some programs. I still welcome an answer that tells me what went wrong here and how to fix the issue. Update 3: I think I have isolated the particular Windows Update which causes the error. It is . I have installed all other updates except this one, and the error did not occur again. Update 4: The true origin of this problem was Chrome, see accepted answer. Workaround: put shortcut with Unicode name on desktop so that explorer.exe is the first process to display a Unicode string after booting.", "I can't really remember how long ago it was, but I think the book was marketed towards children/teens. All I remember is the basic premise of the story. Some story about these unusual little blue electric critters that only certain people could see, and these kids took it upon themselves to go about destroying them since they fed off energy or something like that. Not sure whether they fed off people or off electricity... or both maybe? I think the dominant method of destroying them was an electric baton that was taken from law enforcement. I wanna call them buzz batons, but that's probably thanks to Artemis Fowl.", "Searching for Google contacts not in Groups Possible Duplicate: In Google Contacts, I've had Groups set up which look like this: All Contacts.. Family.. School.. Work.. etc. Each contact I have is assigned to All Contacts. In addition, it is assigned to at least one more Group. Sometimes when I add contacts, I forgot to bucket them in the respective groups, so I was wondering is there anyway I could do a search for contact that belongs toAll Contact-group, but does not belong to any other group ?", "Functional Equation (no. of solutions): $f(x+y) + f(x-y) = 2f(x) + 2f(y)$ Find all the functions $f\\colon\\mathbb{Q} \\to \\mathbb{Q}$ such that $f(x+y) + f(x-y) = 2f(x) + 2f(y)$, for all rationals $x,y$.", "I recently put a bounty on a question regarding the . I did this as the only two answers on that page are not satisfactory and I wish to encourage a tractable answer. I am concerned that when the bounty period expires, if I do not select an answer for the bounty that it may be awarded automatically to one of these speculative and unsatisfactory answers. How might I prevent that? I could put an answer of my own stating \"no satisfactory sources are available\" and award the bounty to that, however I feel that there should be a better way. I stress that I put the bounty on the question specifically because the current answers are not satisfactory and I do not want to award them.", "software updater failed to download repository information When I run software updater it says that it failed to download repository information and to check Internet connectivity. I have Internet connectivity. How do I fix this? editing to add content of sources,list: sorry I can't figure out how to paste in the content of sources.list without making a huge mess. Some of it previews as really large bold print. I tried to follow the block quoting and code rules but it is a huge mess anyway.", "While reading a book, I came across the word I'd've, as in: I'd've argued against it. While it was obvious what it meant, it left me puzzled. Is I'd've a proper word?", "How can I remove malicious spyware, malware, adware, viruses, trojans or rootkits from my PC? What should I do if my Windows computer seems to be infected with a virus or malware? What are the symptoms of an infection? What should I do after noticing an infection? What can I do to get rid of it? how to prevent from infection by malware? This question comes up frequently, and the suggested solutions are usually the same. This community wiki is an attempt to serve as the definitive, most comprehensive answer possible. Feel free to add your contributions via edits.", "Maximum and minimum distance of two points Consider six distinct points in a plane. Let $m$ and $M$ denote respectively the minimum and the maximum distance between any pair of points. Show that $M/m \\geqslant \\sqrt{3}$.", "What is the function of the \"Sticky edges\" on/off setting in displays? I have installed Ubuntu 12.04 (Precise Pangolin). If I open System Settings &gt;&gt; Displays there is a new (?) on/off button for a setting named Sticky edges. Can someone tell me what this setting is supposed to control?", "Industry standard file format deliverables for logos?", "Using Elseif Conditional Statement in QGIS Field Calculator?" ]
medi_sts_stackexchange_dupe
What type of pronoun shoould I use before a gerund?
When is a gerund supposed to be preceded by a possessive adjective/determiner?
[ "Prove a graph Containing $2k$ odd vertices contains $k$ distinct trails I'm reading the book Graphs and Their Uses which contains the following theorem and proof: THEOREM 2.3. A connected graph with 2k odd vertices contains a family of k distinct trails which, together, traverse all edges of the graph exactly once. PROOF. Let the odd vertices in the graph be denoted by in some order. $a_1,a_2,\\dots,a_k$ and $b_1,b_2,\\dots,b_k$ When we add the $k$ edges $a_lb_l, a_2b_2 ,\\dots, a_kb_k$ to the graph, all vertices become even and there is an Eulerian trail T. When these edges are dropped out again, T falls into k separate trails covering the edges in the original graph. However this doesn't seem to make sense since in the graph whose vertices have degrees 3, 1, 1, 1 there is no way to add 2 edges in such a way that the degree of all odd vertices becomes even. What am I missing here?", "I recently received this rather amusing message while reviewing a user's first post: Congratulations! This was only a test, designed to make sure you were paying attention. This post has already been removed, but thanks for taking time to leave feedback for the author. What is the purpose of this test? How does the audit work? What happens if I fail? Why was the system expecting me to negatively review a good post, or positively review a bad post? A review is obviously an audit. Should I report it? Do review audits count toward the Reviewer badge? Do robo-reviewers dream of electric sheep?", "proving that elements of a sequence are pairwise coprime For the sequence $a_n = 6^{2^n} + 1$: How can I prove that the elements of this sequence are pairwise coprime, i.e. prove that if $m$ is not equal to $n$ then $\\gcd(a_m, a_n) = 1$. (begin by proving that $a_n∣ (a_{n+1} - 2)$)", "Ubuntu kernel not upgrading with upgrade to 15.10", "I have detached a process from my terminal, like this: $ process &amp; That terminal is now long closed, but process is still running, and I want to send some commands to that process's stdin. Is that possible?", "Headless linux install How do you do a headless install of linux? No monitor, no keyboard. Machine has floopy and cd drive. Can I configure a live cd to run sshd with a preconfigured pass or something similar and manage it via that? Instructions for fedora 8+ would be ace but anything else also welcomed. Cheers.", "I posted this question but for some reason I can't get back into my account: Most things I see with 220V have both hot legs going through the switch or relay, current \"returns\" through the switch. Is it against code to wire one leg directly to the equipment and the other leg is switched as opposed to having both legs switched. It seems useless and a waste of wire to switch both legs. Basically vs (minus the GFCI as I'm not allowed to have that) As a bonus question. I assume I need a \"motor rated switch\" as standard switches can weld due to the high startup current. Is one legal\\safe?", "What is the distance between the centers? Two unit circles overlap in such a way that exactly half the area of each circle is within the overlap. How far apart are the centers of the two circles?", "Since I installed TeXLive 2016 I cannot build documents with the standalone document class any more using LuaLaTeX (PDFLaTeX works fine). For example: \\documentclass{standalone} \\begin{document} hi \\end{document} Gives me: ! Undefined control sequence. \\sa@placebox -&gt;\\newpage \\global \\pdfpagewidth =\\wd \\sa@box \\global \\pdfpageh... l.4 \\end{document} How to fix that?", "Say I have this file: hello world hello world This program #!/bin/bash for i in $(cat $1); do echo \"tester: $i\" done outputs tester: hello tester: world tester: hello tester: world I'd like to have the for iterate over each line individually ignoring whitespaces though, i.e. the last two lines should be replaced by tester: hello world Using quotes for i in \"$(cat $1)\"; results in i being assigned the whole file at once. What should I change?", "How to make tr aware of non-ascii(unicode) characters? I'm trying to remove some characters from file(UTF-8). I'm using tr for this purpose: tr -cs '[[:alpha:][:space:]]' ' ' &lt;testdata.dat File contains some foreign characters (like \"Латвийская\" or \"àé\"). tr doesn't seem to understand them: it treats them as non-alpha and removes too. I've tried changing some of my locale settings: LC_CTYPE=C LC_COLLATE=C tr -cs '[[:alpha:][:space:]]' ' ' &lt;testdata.dat LC_CTYPE=ru_RU.UTF-8 LC_COLLATE=C tr -cs '[[:alpha:][:space:]]' ' ' &lt;testdata.dat LC_CTYPE=ru_RU.UTF-8 LC_COLLATE=ru_RU.UTF-8 tr -cs '[[:alpha:][:space:]]' ' ' &lt;testdata.dat Unfortunately, none of these worked. How can I make tr understand Unicode?", "What happens when you put a Portable Hole inside a Bag of Holding while on the Astral plane? What would happen if someone were to place a Portable Hole within a Bag of Holding while being within the Astral Plane? Would it be the reverse effect?", "The best stack-up possible with a four-layer PCB? I'm designing a 4 layer PCB and I know that the standard stack-up is Signals GND VCC Singals (GND and VCC can be switched depending on the layer with more signals) The problem is, I don't really want to connect all ground pins through vias, there are just too many of them ! maybe because I'm not used to 4 layer PCBs, anyway, I've read a by Henry W. Ott about a different stack-up GND Signals Signals GND (Where the power is being routed with wide traces on the signal planes) According to him, this is the best stack-up possible with a four-layer PCB, for the following reasons: 1.Signal layers are adjacent to ground planes. 2.Signal layers are tightly coupled (close) to their adjacent planes. 3.The ground planes can act as shields for the inner signal layers. (I think this requires stitching ??) 4.Multiple ground planes lower the ground (reference plane) impedance of the board and reduce the common-mode radiation. (don't really understand this one) One problem is cross-talk, but I really don't have any signals in the third layer, so I don't think that corss-talk will be an issue with this stack-up,am I correct in my assumption ? Note: The highest frequency is 48MHz, there's a wifi module on the board too.", "If someone else is booking international ticket for me using his credit or debit card, does he need to be present physically at the time of check-in? Suppose I am coming back from Singapore to my home country and my ticket is booked by my friend for me, who lives in my home country. Do airlines in Singapore ask for the person to be present physically to check in?", "When is $\\sin(x)$ rational?", "Does set difference distribute over set intersection? I am asked to prove that, if $A, B$ and $C$ are sets, then $$A-(B\\cap C)=(A-B)\\cap(A-C).$$ However, I think that either I have made an error in my working, or the wording of the problem contains a typographical error. My working so far is as follows: $$\\begin{align}x\\in(A-(B\\cap C)) &amp;\\iff (x\\in A)\\wedge(x\\not\\in(B\\cap C))\\\\ &amp;\\iff(x\\in A)\\wedge((x\\not\\in B)\\vee(x\\not\\in C))\\\\ &amp;\\iff((x\\in A)\\wedge(x\\not\\in B))\\vee((x\\in A)\\wedge(x\\not\\in C))\\\\ &amp;\\iff(x\\in(A-B))\\vee(x\\in(A-C))\\\\ &amp;\\iff x\\in((A-B)\\cup(A-C)) \\end{align}$$ First line to second line: by De Morgan's Law. Second line to third line: by distributivity of set intersection over set union. Third line to fourth line: by definitions of intersection and set difference. If my working is correct, then I have shown that $$A-(B\\cap C)=(A-B)\\cup(A-C).$$ Am I correct?", "A game called is making rounds on social media. I am trying to determine the maximum score attainable for this game. Let's assume WLOG that only 2s are returned (if 4s are possible the max score is doubled). First, I'll relax some of the rules to create a game, $\\mathcal{G}$, that can achieve a score at least as high as the original, 2048 game. A run $R$ of $\\mathcal{G}_n$ consists of a sequence of moves $m_1,\\ldots,m_k$ which manipulate a multiset, $\\mathcal{S}$ of maximum size n. Each $m_i$ is either: a put $p$, which inserts a 2 into $\\mathcal{S}$, or a merge, $\\alpha_i$, which replaces two $2^i$ elements from $\\mathcal{S}$ with a single $2^{i+1}$ elt. I allow sequential moves of the same type because 2048 allows multiple merges or no-merge turns. The score of a position is the sum of $\\mathcal{S}$. What is the maximum score possible on a game of order n? Note: The final position must have only unique values, else a merge and put would be possible in increase score. I claim it is $\\sum_{i=1}^{n} 2^i$, but couldn't come up with any good induction arguments. It's pretty easy to prove that an element $2^k$ is producible in a game $\\mathcal{G}_k$, but proving an upper bound for production got a bit hairy, and also doesn't cover the full space.", "Calculate the limit of two interrelated sequences? I'm given two sequences: $$a_{n+1}=\\frac{1+a_n+a_nb_n}{b_n},b_{n+1}=\\frac{1+b_n+a_nb_n}{a_n}$$ as well as an initial condition $a_1=1$, $b_1=2$, and am told to find: $\\displaystyle \\lim_{n\\to\\infty}{a_n}$. Given that I'm not even sure how to approach this problem, I tried anyway. I substituted $b_{n-1}$ for $b_n$ to begin the search for a pattern. This eventually reduced to: $$a_{n+1}=\\frac{a_{n-1}(a_n+1)+a_n(1+b_{n-1}+a_{n-1}b_{n-1})}{1+b_{n-1}+a_{n-1}b_{n-1}}$$ Seeing no pattern, I did the same once more: $$a_{n+1}=\\frac{a_{n-2}a_{n-1}(a_n+1)+a_n\\left(a_{n-2}+(a_{n-1}+1)(1+b_{n-2}+a_{n-2}b_{n-2})\\right)}{a_{n-2}+(a_{n-1}+1)(1+b_{n-2}+a_{n-2}b_{n-2})}$$ While this equation is atrocious, it actually reveals somewhat of a pattern. I can sort of see one emerging - though I'm unsure how I would actually express that. My goal here is generally to find a closed form for the $a_n$ equation, then take the limit of it. How should I approach this problem? I'm totally lost as is. Any pointers would be very much appreciated! Edit: While there is a way to prove that $\\displaystyle\\lim_{n\\to\\infty}{a_n}=5$ using $\\displaystyle f(x)=\\frac{1}{x-1}$, I'm still looking for a way to find the absolute form of the limit, $\\displaystyle\\frac{1+2a+ab}{b-a}$.", "Is it okay to publish my personal notes from a lecture?", "Can I still use a usb flash drive after spilling water on it? So a few months ago I accidentally spilled a little water on a few of my usb flash drives. I really want to test and see if they work, but before I do, I just want to make sure that there's no risk of damaging my computer. I'm pretty sure it's fine, but I just got a new laptop and would hate to ruin it over something stupid." ]
medi_sts_stackexchange_dupe
Lock in mysql database
Lock in mysql database
[ "What's the difference about /t̬/ and /d/?", "Creating a new DOM element from an HTML string using built-in DOM methods or Prototype", "What should I do when my neural network doesn't generalize well? I'm training a neural network and the training loss decreases, but the validation loss doesn't, or it decreases much less than what I would expect, based on references or experiments with very similar architectures and data. How can I fix this? As for question to which this question is inspired, the question is intentionally left general so that other questions about how to reduce the generalization error of a neural network down to a level which has been proved to be attainable, can be closed as duplicates of this one. See also dedicated thread on Meta:", "Is it two-third or two-thirds? Is it two-third or two-thirds? If both are correct, how does their usage differ?", "Two diagrams side by side I am trying to put two feynman diagrams side by side, but they get displayed below eachother. I am using feynmf and subfloat. This normally works for pictures. \\begin{figure}[ht!] \\centering \\subfloat{ \\begin{fmfgraph*}(40, 25) \\fmfstraight \\fmfbottom{wm,i2,z2} \\fmftop{wp,i1,z1} \\fmf{dashes}{wp,i1,z1} \\fmf{dashes}{z2,i2,wm} \\fmf{dashes,caption=$W^{+}$}{i1,i2} % \\fmf{dashes,caption=$Z^0$}{i2,z1} % \\fmf{dashes,caption=$Z^0$}{i2,z2} \\fmfv{lab=$Z^0$}{z1} \\fmfv{lab=$Z^0$}{z2} \\fmfv{lab=$W^+$}{wp} \\fmfv{lab=$W^-$}{wm} \\end{fmfgraph*} } \\subfloat{ \\begin{fmfgraph*}(40, 25) \\fmfstraight \\fmfbottom{wm,i2,z2} \\fmftop{wp,i1,z1} \\fmf{dashes}{wp,i1,z1} \\fmf{dashes}{z2,i2,wm} \\fmf{dashes,caption=$W^{+}$}{i1,i2} % \\fmf{dashes,caption=$Z^0$}{i2,z1} % \\fmf{dashes,caption=$Z^0$}{i2,z2} \\fmfv{lab=$Z^0$}{z1} \\fmfv{lab=$Z^0$}{z2} \\fmfv{lab=$W^+$}{wp} \\fmfv{lab=$W^-$}{wm} \\end{fmfgraph*} } \\caption{Exchange of W boson} \\end{figure}", "Randomly populating procedural shape (or Image Texture) in Cycles", "MySQL Access denied for user 'root'@'localhost'", "I cannot stand the auto-completion of TeXStudio (formerly TexMakerX) regarding parentheses, braces, etc. I agree auto-completion is useful sometimes, but here it does just not work as I would like. How can I remove it completely? Under configuration -&gt; completion nothing is checked. From where do I remove the auto-completion of these?", "jQuery call function from a string", "How to upgrade to GNOME 3.30 on Ubuntu 18.04.1", "I think sometimes there is a need to post question as anonymous, reason being to avoid linking content of a question with the identity of the questioner. This may not be so evident or required on technical sites like stackoverflow.com but sometimes is a necessity on sites like or maybe in future depression.stackexchange.com On such sites user may not want to link his identity to some questions where he may detail about his being over-weight or skinny or maybe some other attribute which he may like to keep private and avoid making his concerns public, but still want to ask a question with valid data. I am not suggesting that user asking question should not be registered or not responsible for content. I think all down-votes or up-votes should still be attributed to user, but this way most users would not suffer , and reputation could even be used for a bounty. The only change should be that while asking question a valid registered user can hide his identity (the whole user signature block/user card and the reputation should be replaced by \"identity-hidden\") and that question should not be listed in his public profile. Anyway identity of questioner doesn't add much value to question. If we think such anonymous question may reduce social nature of Stack Exchange sites, and maybe majority of questions will become anonymous we can curb that by putting a daily or monthly limit per user or put a price of say 50 reputation per anonymous question. PS: I don't think this is duplicate of because motive for question and reason for feature request are different, and I propose a different solution too, because creating another account for asking such questions has many problems which having a single account doesn't have I don't have to manage other account If I keep single account I still may want to keep my details to be linked to my non-anonymous questions I may want to use reputations I earned as bounty for anonymous questions also allows anonymous questions and may be we can take some hint from there.", "Evolution of the Redundancy of the Genetic Code", "Add 1Password extensions support to the SE iOS app Please implement the URL scheme to call 1Password for password lookups on the iOS app. a URL scheme for switching to 1Password to search item titles for a custom term, usually a service name like “twitter” or “evernote”. This speeds up the process for the user so they can copy something like their password and get back to your app That will ease sign up speed using long, complicated or unmemorable passwords for many users of both apps. In the two years since the above blog was published there are now updated instructions for implementation and code on github:", "As we all know that Kurama's chakra is of the healing nature type. This is known from many mentions about it in the wiki page of . My question is, what is the nature type of the chakra of the other Tailed beasts? Note: This is my thinking why there should have been a nature type to each of the tailed beasts. As we all know that when Rikudō Sennin was about to die, he split his powers among his two sons (the older son inherited his powerful chakra and spiritual energy, and the younger son inherited his powerful life force and physical energy). Similarly, when creating the nine tailed beasts from the Shinju, he must have split the chakra based on their nature so that each tailed beast had a unique natured chakra. Any insight on this would be very much welcomed.", "Is it possible to follow a user automatically? I've been looking around and I can't seem to find an automatic (i.e. buzz- or Twitter-like) way to follow users inside Stack Exchange. Why haven't the developers added such a feature? It could help beginner users follow other beginners with the same interests. We would be able to learn from each others' questions and pitfalls. Also, it would reduce double posting.", "Is the universe finite or infinite? I thought the universe was finite, but then I read this: And they seem to assume it is infinite. So which is it?", "Since I upgraded to the latest version of Ubuntu, I cannot install the Java OpenJDK package needed to compile Android custom ROMs. When I run sudo apt-get install openjdk-7-jdk, the following error appears: Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: openjdk-7-jdk : Depends: openjdk-7-jre (= 7u51-2.4.6-1ubuntu4) E: Unable to correct problems, you have held broken packages. How do I fix this problem?", "ffmpeg settings for converting still images to video for archival I need to convert a set of still images (static cameras pointed at a road) to a video. I have considered video codecs such as Theora, H.264, VP8, VP9, HEVC, Snow. The video should have a minimum size with the maximum image quality. Now, from all available command-line arguments, I'm using framerate (fps), b:v (bitrate) and s (width*height). Also, for H.264 and HEVC there are -crf and -preset. What other command-line arguments can be useful to achieve what I'm after? In ffmpeg dozens of command-line arguments and parsing each can take a long time.", "Wired connection not working Ubuntu 12.04", "In Knuth's book \"The Art Of Computer Programming Vol.1\" there is a description about Euclid's algorithm to find the greatest common divisor of m and n. And there is a phrase. $m = qn+r$. If $r = 0$, then $m$ is a multiple of $n$, and clearly in such a case $n$ is the greatest common divisor of $m$ and $n$. If $r \\neq 0$, note that any number which divides both $m$ and $n$ must divide $m -qn =r$ , and any number which divides both $n$ and $r$ must divide $qn+r =m$. I don't understand why any divisor of $m$ and $n$ must divide $m-qn =r$." ]
medi_sts_stackexchange_dupe
Is there ever a case for Anglicising question content?
How to treat English questions which have code in a foreign language?
[ "Using launchd to update MacPorts I want to use launchd to update my MacPorts tree periodically (i.e. port selfupdate. I have created /Library/LaunchDaemons/org.macports.selfupdate.plist: $ ls -l /Library/LaunchDaemons/org.macports.selfupdate.plist -rw-r--r-- 1 root wheel 669 8 Nov 12:49 /Library/LaunchDaemons/org.macports.selfupdate.plist It has the following contents: &lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt; &lt;!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\"&gt; &lt;plist version=\"1.0\"&gt; &lt;dict&gt; &lt;key&gt;Label&lt;/key&gt; &lt;string&gt;org.macports.selfupdate&lt;/string&gt; &lt;key&gt;ProgramArguments&lt;/key&gt; &lt;array&gt; &lt;string&gt;/opt/local/bin/port&lt;/string&gt; &lt;string&gt;selfupdate&lt;/string&gt; &lt;/array&gt; &lt;key&gt;StandardOutPath&lt;/key&gt; &lt;string&gt;/var/log/org.macports.selfupdate.log&lt;/string&gt; &lt;key&gt;StandardErrorPath&lt;/key&gt; &lt;string&gt;/var/log/org.macports.selfupdate.err&lt;/string&gt; &lt;key&gt;RunAtLoad&lt;/key&gt; &lt;true/&gt; &lt;key&gt;StartInterval&lt;/key&gt; &lt;integer&gt;604800&lt;/integer&gt;&lt;!-- 1 week --&gt; &lt;/dict&gt; &lt;/plist&gt; I've loaded it and verified that it's loaded: $ launchctl list | grep macports - 78 org.macports.selfupdate But it doesn't look like it actually run. $ port info wireshark Warning: port definitions are more than two weeks old, consider updating them by running 'port selfupdate'. wireshark @1.12.8_3 (net) ... What am I missing?", "One of the options offered when you right click the desktop or within a Nautilus window is \"wipe available diskspace.\" I'd think that means all unused diskspace but assumptions can be dangerous. I don't want to try it only to find out that available meant \"all\". I can't remember seeing this option before 12.04. I was asked to provide an image but unfortunately when right clicking to get the drop down menu, the print screen function doesn't respond thereby making an image impossible. It appears that no responder so far has actually used this nautilus option. Jorge suggested that the feature was actually nautilus-wipe and I verified that is the case by removing nautilus-wipe and seeing that the menu option is now gone. Documentation for nautilus-wipe is almost non-existent and what little I found was superficial and contradictory. This doesn't leave me with a warm and fuzzy feeling regarding my using an application or feature that purports to \"wipe disk\" without a clear definition of what is wiped.", "How to change multiple file type associations on the Mac at once? I want to change my default media player in macOS. (In my case, I want to change it to my own AppleScript-created instance of VLC that I exported as ‘VLC-New-Window.app’, which is scripted to so that it doesn’t override the existing paused playlist or video file I want to keep in the background.) It is very tedious to find an example of every file type I use VLC for (whether mkv, avi, mp4, m4v, m4a, m4b, mp3, flac, or m2ts), right-click on it, and manually set the new default program each time. And honestly I’d like every audio or video file type that VLC can open to be applied here so that I never have to worry about this again. Is there any method that can help automate this, or do this in batch?", "Find the value of $a^2-b^2+c^2$", "I read this book about 20-30 years ago. It's about a group of teenagers who wake up in a huge room where each is on a separate platform. As the book progresses, they go unconscious and the platforms change, move or become connected. The children are punished or rewarded through a variety of methods including food and pain. The goal is to get them to either hurt each other, or see if they band together, I can't quite remember. Please tell me if this sounds familiar.", "I am trying to write a VF page to list all the id and name columns from a custom object but found an error \"List has more than 1 row\" in the VF page. Can anyone tell me what have I done wrong? VF Page: &lt;apex:page Controller=\"MP_controller\" showHeader=\"false\" sidebar=\"false\"&gt; &lt;apex:pageBlock&gt; &lt;apex:pageBlockTable value=\"{! mp}\" var=\"item\"&gt; &lt;apex:column value=\"{! item.id}\"/&gt; &lt;apex:column value=\"{! item.name}\"/&gt; &lt;/apex:pageBlockTable&gt; &lt;/apex:pageBlock&gt; &lt;/apex:page&gt; Apex controller global with sharing class MP_controller { public Merchant_Profile__c mp{get;set;} public MP_controller(){ mp = [SELECT ID, name, Profile_account_name__c, Merchant_ID__c, Bank_Code__c, Country_Code__c, Currency_Code__c, Merchant_Level__c, Merchant_Type__c, MSO__c, Region__c, Retail_Products__c, Transaction_Mode__c, Created_Date__c, Date_Disabled__c, Date_Live__c, Merchant_Category_Code__c FROM Merchant_Profile__c WHERE Profile_Account_Name__c = '001O000000bQFnyIAG']; } }", "Changing the size of the mouse pointer in Ubuntu MATE 18.04 does not work", "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.", "Chrome 100% CPU usage, again - software_reporter_tool.exe software_reporter_tool.exe belonging to Chrome running at 100% cpu, fan full speed. Deleting it doesn't fix anything, because it gets redownloaded again! Disabling \"Protect me from bla bla\" doesn't make it stop running. Please anyone have any solutions?", "Let $A,B \\subset \\mathbb{R}$. Show that $\\sup(A \\cup B) = \\max\\{\\sup A, \\sup B\\}$", "I'm new to d20. I recently acquired a bunch of D&amp;D books and I'm sure they are all either 3.0 or 3.5, but it doesn't say in the book which version it is. How can I tell which version the book is? For instance, I have \"Complete Warrior - A Player's Guide to Combat for All Classes\". It's hard back, published in '03. Is it 3.0 or 3.5? Another example, I have \"Sword and Fist - A Guidebook to Fighters and Monks\". Perfect Bound, published in '01. Is it 3.0 or 3.5?", "Can I use the valid Schengen visa in old passport?", "How to search for upcoming conferences that will be held in a specific subject", "Photons in expanding space: how is energy conserved? If a photon (wave package) redshifts (stretches) travelling in our expanding universe, is its energy reduced? If so, where does that energy go?", "Let $F$ be a field, let $\\omega$ be a primitive $n$th root of unity in an algebraic closure of $F$. If $a$ in $F$ is not an $m$th power in $F(\\omega)$ for any $m\\gt 1$ that divides $n$, how to show that $x^n -a$ is irreducible over $F$?", "I have been racking my brain to understand the solutions of constrained stars and bars problems like: $a+b+c+d = 19$; $a,b,c,d \\in \\{0,1,2,3,4,5,6,7\\}$ Finding the total number of solutions is really simple $\\dbinom{22}{3}$. What to do after that? I want to understand the entire procedure step by step. Please do not mark it as a duplicate of . Reasons: The accepted answer's trick doesn't always work. Another person (the answer with two upvotes) has just listed out the binomial coefficients and I can't even remotely understand what he has tried to do. The second answer isn't my cup of tea.", "When cutting/copying some cells to paste them into another sheet/page, sometimes Excel freezes/locks up and fades out. At the top toolbar it says in brackets \"not responding\". Eventually, I must click 'X' to close the program. It offers to wait for the program to respond, but never does – it just does nothing until I finally close it, where it offers to recover files etc. Is there an issue with memory here? What can I do to stop it locking up?", "How can I publish my thesis? I have a written thesis, as my Final year project. I have submitted in university. but now i want to make it professionally mine. I want to publish it some where but i don't have such kind of experience before. I am total Rookie in this field. Any Expert Opinion? Note: Thesis in About \"Handwriting Recognition \"", "Can one construct a non-measurable set without Axiom of choice? Is axiom of choice required to show the existence of non-measurable sets? Is there a Lebesgue non-measurable set that can be constructed without axiom of choice? Related question on MO says it is consistent:", "How do I put big brackets under different parts of an equation so that I can write, e.g., text specific to these parts? For example: f = x^3 + 2 |___| |__| | | text 1 text 2" ]
medi_sts_stackexchange_dupe
How to maintain interlink between multiple enums in c#
C# vs Java Enum (for those new to C#)
[ "Reshape three column data frame to matrix (\"long\" to \"wide\" format)", "How can I visualize or simulate the effect of different focal lengths? I have seen many camera review sites illustrate the effect of using different focal lengths on the same photograph using frames. There are also similar illustrations to compare different sensors (). I find this kind of visualization to be very useful in comparing the actual effect of the longer focal length\\different sensor size. Of course the ability to do a wider focal length visualization would also be equally useful, but that's not possible. Is there any ready-made software or plugin that enables this? If not, is there any simple technique to visualize the effect of longer focal lengths on an image (one would of course have to use the zoom information in the image EXIF data to accurately represent this)? All I can think of is to use some trigonometry to do the necessary calculations for the frame sizes for cropping.", "I frequently need to check which packages are installed, and I use the following command: dpkg -l | grep foo which gives the following output Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Description ii foo &lt;version&gt; &lt;description&gt; What does the ii mean? What other flags are there? How to read the flags? (because the explanation is quite complicated, IMO) Thanks.", "I hope somebody has already figured this one out. I just installed Geoserver 2.9 on a vanilla Ubuntu 16.04 distro. The Geoserver 2.8 method of enabling CORS with the shanbe.hezoun class does no longer work with Jetty 9.2.13. There are mentions that CORS support is already packaged with Jetty 9.2.13 in the jetty-servlets.jar. The Jetty lib which is compiled with Geoserver contains a jetty-servlet-9.2.13.v20150730.jar in geoserver/lib but not jetty-servlets.9.2.13.v20150730.jar. Are these supposed to be the same jar with a different name? It should be possible to enable CORS either in geoserver/etc/webdefault.xml or in geoserver/webapps/geoserver/WEB-INF/web.xml. My understanding is that the webdefault.xml is applied first and the web.xml thereafter. I have tried following filter in both xml. I haven't got as far as adding a filter mapping. Adding the filter alone will cause the Geoserver/Jetty service to not start proper. &lt;filter&gt; &lt;filter-name&gt;cross-origin&lt;/filter-name&gt; &lt;filter-class&gt;org.eclipse.jetty.servlets.CrossOriginFilter&lt;/filter-class&gt; &lt;/filter&gt;", "Let $S = \\{ax + by: x,y \\in \\mathbb{Z}\\}$ and let $e &gt; 0$ be the smallest element in $S$. Prove that $e \\mid a$, and hence prove that $e = \\gcd(a,b)$ I'm afraid I can't provide much of my initial working here because I'm at a loss of how to start. I suppose that to show $e\\mid a$ I would have to show that $eg = a$ for some $g \\in \\mathbb{Z}$. But I have no idea how I would do this.", "Generalized RBF Kernels There is the notion of Generalized RBF Kernels, for example in \"Towards Optimal Bag-of-Features for Object Categorization and Semantic Video Retrieval\" from Jiang (1) or in formula (2.72) in (2). They define: Gen. RBF Kernel: $e^{-pd(x,y)}$, where (1) says d can be any distance function and (2) requires it to be a metric. I now have been wondering for a long time: Is a function defined by $e^{-pd(x,y)}$ where d is a metric always a Mercer's Kernel? I think in (2) it sounds like it, but if it were true, not many people know of it, since they are still looking to prove that $e^{-EMD(x,y)}$ is a kernel, where EMD = Earth Mover's Distance, which is a metric. If its not a Mercer's Kernel - do you know of any counter example?", "Double limit of $\\cos^{2n}(m! \\pi x)$ at rationals and irrationals I stumbled upon this \"relation\" (is the name correct?): $$ \\lim_{m \\to \\infty} \\lim_{n \\to \\infty} \\cos^{2n}(m! \\pi x) = \\begin{cases} 1,&amp;x\\text{ is rational}\\\\ 0,&amp;x\\text{ is irrational}\\end{cases} $$ How is it called and why is it so? I'm really not asking for a proof since I fear it would be too complicated for me to understand, but rather for an \"intuition\".", "DOS commands for Epson dot matrix not working Our Epson dot matrix printer is not printing on the following DOS command.: Type text.txt&gt;prn But it does print perfectly on: open TEXT.txt&gt;File&gt;Print What is the issue here?", "Calculate $I=\\int_0^1\\frac{\\ln(1+x)}{1+x^2}\\,dx$ How can I calculate the integral $I=\\int_0^1\\frac{\\ln(1+x)}{1+x^2}\\,dx$ by substituting $t=\\frac{1-x}{1+x}$.", "I want to know the correct form: He and I will go there or He and me will go there. Which is correct?", "There is a sentence: No sooner had he sat down than he fell asleep. I just do not understand, is this an inversion? And if so, I still do not understand the sentence.", "Can I prepay a Credit Card to make a Large Purchase greater than my credit limit? I want to make a large purchase at a retail store to the sum of $10,000 but the credit limit on my card is set at $2000. If I send $10K to my credit card will the purchase be allowed to go through? Not sure if the credit limit is a hard limit or not? I don't want to be left embarrassed if my card is declined in the store lol. I called my bank but the answer they gave wasn't too convincing. It was kind of \"Errr yes i think its OK!\" Does any one know first hand?", "I have an HP laptop with with a Core-i5 450m processor and an ATI Radeon 5650 1GB graphics card. When I played crysis warhead on my system its temprature went up to 82° c. Is it safe to play games up to this temperature level?", "How did the writers not notice that the mailbox of Leela's parents says \"Turanga,\" and not \"Leela\"? Turanga Leela is Leela's proper name, with Leela being her surname, so shouldn't it follow that her folks would be the same?", "Path bar missing in file dialog after running software updater for Ubuntu 17.04 After running software updater, the path bar in the file dialog (for example the one you get when choosing Open File in in Google Chrome or Firefox) is missing. This is frustrating since it's no longer possible to copy a path from the terminal (for example) and paste it into the file dialog. Here is a screenshot of the dialog: How can I get back the path bar?", "Symmetric and exterior power of representation Does there exist some simple formulas for the characters $$\\chi_{\\Lambda^{k}V}~~~~\\text{and}~~~\\chi_{\\text{Sym}^{k}V},$$ where $V$ is a representation of some finite group? Thanks.", "I have heard that two permutations are conjugate if they have the same cyclic structure. Is there an intuitive way to understand why this is?", "Can I use Bluray as a boot cd?", "Verbatim in beamer showing error: \"File ended while scanning use of \\@xverbatim.\" I am using Texmaker and MiKTeX on Windows 7. I have the following beamer code, \\documentclass{beamer} \\theme{AnnArbor} \\begin{document} \\begin{frame} \\begin{verbatim} \\begin{frame}[&lt;alignment&gt;] \\frametitle{Frame Title Goes Here} Frame body text and/or LATEX code \\end{frame} \\end{verbatim} \\end{frame} \\end{document} I was expecting the following output, \\begin{frame}[&lt;alignment&gt;] \\frametitle{Frame Title Goes Here} Frame body text and/or LATEX code \\end{frame} But instead I got the following Error Message, File ended while scanning use of \\@xverbatim. Can any one please point out the error here. As far as I know verbatim can have anything inside it. Also when I tried the following code, \\begin{verbatim} \\ begin{frame}[&lt;alignment&gt;] \\frametitle{Frame Title Goes Here} Frame body text and/or LATEX code \\ end{frame} \\end{verbatim} I got the following output, \\ begin{frame}[&lt;alignment&gt;] \\frametitle{Frame Title Goes Here} Frame body text and/or LATEX code \\ end{frame} But I don't want space between \\ and begin and \\ and end.", "I read this set of stories in the 80's. What I recall is this: A planet where the ruling caste was made up of humanoid women. These women would, as almost pubescent girls, go out into the wilderness with only a spear and attempt to kill an animal in a life or death struggle. When it happened, they would burst open a DNA packet in themselves that caused them to rapidly mature, their skin to become bronze colored, and give them some kinds of other \"powers\", I think over fire. They were called \"Bahronas\", I think. The population of this planet was primitive, but they were in contact with an advanced humanoid species, I think of actual homo-sapiens, who were there observing and advising them. The advanced species wasn't allowed to intervene, just advise and watch. The main character was a castaway boy, crash landed on their planet and stranded. He became friendly with the ruling family of Bahronas and entered their confidence. We find out through the course of the story that he's been genetically engineered and is not a normal boy. At some point, the advanced species notices him and explains that he is a clone of a famous explorer and a spy, and they explain that they won't do anything in front of him. The central part of the story is something of a blur, but, the final part of the story is told in a dramatically different style and shifts to a planet populated by catlike creatures who live in boughs of silk scarves, some of which sing. THey are recording devices which play back the songs. On this planet, there is another silk scarf, a white one, which doesn't play a song at all. The cat creatures are greatly disturbed by it when they hear it's message, which they don't understand. The narrator then goes on to say that it's a spoken word recording, made by the explorer which the boy was a clone of, explaining that he is captured and held hostage on the planet which makes the scarves, and forced to help make them (I think.)" ]
medi_sts_stackexchange_dupe
slug Django field; do we need this?
What is a "slug" in Django?
[ "What is this icon depicting a phone and Wi-Fi together?", "Will running a large query on a secondary database in an availability group affect transaction performance in the primary database? I need to provide real-time, or almost real-time, data for SSRS and Tableau reporting. I don't want the production OLTP system to be negatively impacted by long running queries. Will running a large query on a secondary database in an availability group affect transaction performance in the primary database?", "I try to understand and visualize myself covariance matrix. Supposing I have a matrix A = [ 2 3 4; 5 5 6 ], how do I calculate its covariance matrix, and what is its practical meaning? (All I was able to understand by now is that on the diagonal of the covariance matrix, variances for particular variables are placed, and on the upper and lower fields correlations between those variables.)", "How do I select all but two types of entities in Minecraft with the type selector?", "The ring $ℤ/nℤ$ is a field if and only if $n$ is prime Let $n \\in ℕ$. Show that the ring $ℤ/nℤ$ is a field if and only if $n$ is prime. Let $n$ prime. I need to show that if $\\bar{a} \\neq 0$ then $∃\\bar b: \\bar{a} \\cdot \\bar{b} = \\bar{1}$. Any hints for this ? Suppose $ℤ/nℤ$ is a field. Therefore: for every $\\bar{a} \\neq 0$ $∃\\bar b: \\bar{a}\\cdot \\bar{b}=1$. How can I show that $n$ must be prime ?", "How can I run ssh-add automatically, without a password prompt? I want to communicate between several computers on my network (static Ethernet), through SSH. In order to do that I need to run ssh-add every time I log in on a specific machine, how can I do it so that it's set up once and it doesn't ask me for the passphrase every time I log in or reboot my machine? I know that there is a way that you should add some lines to the bash_profile file, but I still need to type the password every time I reboot/log in to a specific machine. if [ -z \"$SSH_AUTH_SOCK\" ] ; then eval `ssh-agent -s` ssh-add fi", "Sort Order on the User Filter is Surprising To Me When filling in the \"Type to Find Users\" , it seems to sort by exact match and then by reputation when I am on the reputation tab. For example, please consider the following search results: This threw me off since I thought that the sort order is reputation. I guess this often might give people what they want, but when picking a popular name is shows a lot of 0 rep users. Maybe adding a filter for low rep to the exact match might give more expected results, or just sorting on Rep?", "Showing that $\\frac{z^n}{1+z^{2n}}$ is real for $|z|=1$.", "How to correctly add a path to PATH? I'm wondering where a new path has to be added to the PATH environment variable. I know this can be accomplished by editing .bashrc (for example), but it's not clear how to do this. This way: export PATH=~/opt/bin:$PATH or this? export PATH=$PATH:~/opt/bin", "Is there any hint that the MoM or anywhere else got support in combating voldemort the first time around? Or is everything completely UK-centric? I can't remember anyone in the second war being specifically sent from europe to help, even though we see international wizards in book 4. But I don't think all the events of the first war are covered in the books. So are other bodies like the MoM involved in the first war, or was it isolated in the UK?", "When I'm viewing a user profile, it's more often than not to gauge this user within the community. How long they have been a member, how active they have been, when was their last activity and of course, what content are they contributing. This is accentuated when the user in question is a relatively new user. I would want to know this in order to make my response or comment more informative and to not be too harsh on inexperienced users. One good measure I use to identify a new user is their join date. I would like to request that the \"member for\" field be added to the profile page for users on the mobile application just as it is when viewing the desktop version. The \"last seen\" field would also be useful. It's useful to me on the desktop version to know more or less when/if to expect a response from a user after leaving them a comment/answer. It would useful on the mobile version for the same reasons. I just realized that this information is available on the mobile version of the webiste. If it was decided that this information is important enough to also appear on the mobile web version, why not include it on the native mobile applications?", "Why does Java's hashCode() in String use 31 as a multiplier? Per the Java documentation, the for a String object is computed as: s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1] using int arithmetic, where s[i] is the ith character of the string, n is the length of the string, and ^ indicates exponentiation. Why is 31 used as a multiplier? I understand that the multiplier should be a relatively large prime number. So why not 29, or 37, or even 97?", "Why do I have blurred vision and how do I fix it?", "How do I disable client side decoration globally in GNOME? I'm using Ubuntu GNOME 17.04. One encounters client side decoration (CSD) as most of the official GNOME applications (Nautilus, gedit, Evince etc.) use (a combined title bar and toolbar, see linked screenshots) whereas other applications don't. This feature is disabled in Unity, all the applications use traditional separate title bars. Screenshots (from ): Nautilus with GtkHeaderBar Nautilus without GtkHeaderBar For consistency I want to disable GtkHeaderBars globally (in all the applications using it) and use separate title bars. Is there a way to achieve that? I have heard of gtk3-nocsd package, but couldn't make it work with GNOME for all the applications.", "How can I convert from hex to base64? Can anyone recommend a straightforward way/tool to convert hex to base64? I'm using Linux and OS X.", "When given $p = 5, q = 11, N = 55$ and $e = 17$, I'm trying to compute the RSA private key $d$. I can calculate $\\varphi(N) = 40$, but my lecturer then says to use the extended Euclidean algorithm to compute $d$. That's where I get stuck. Here's my work so far: First I use the Euclid algorithm to calculate: 40 = 2(17) + 6 17 = 2(6) + 5 6 = 1(5) + 1 = gcd So I know the GCD is 1. Applying the 'extended' section of the algorithm: 6 = 40-2(17) 5 = 17-2(6) 1 = 6-1(5) 1 = 6-1(17-2(6)) 3(6) = 1 (17) 3(40 - 2(17)) - 1(17) 3(40) - 3(17) I know the answer is $33$, but I have no idea how to get there using the extended Euclidean algorithm. I can't figure out why I'm getting $3(40) - 3(17)$ when I know the answer should contain $33$.", "Looking for the title of a book about alien invasion, mining asteroids and using lasers to defend earth What I remember of this novel/series is that the main character creates solar laser satellites and mines asteroids to create more satellites to defend Earth from aliens. Later on, he uses the hollowed out asteroids as a base and eventually as an armored fortress to repulse the alien fleets. I last remember the main character attempting to hollow out more asteroids to defend and attack the aliens eventually.", "Would the One Ring even work for anyone but Sauron?", "I tried to find a topic here on this (possible problem) but I didn't. I reported it at but Tim Hoffmann pointed me that it is not a problem of editor. After tested with nano and pdflatex I'm posting here. The minimal code produces errors. OK, we can solve it using \\\\{}. But is this a problem with TeXlive 2014 or there are some good reasons to have that behavior. \\documentclass{report} \\begin{document} test\\\\ [foo] test\\linebreak [foo] test\\newline [foo] \\end{document} ! Missing number, treated as zero. f l.3 test\\ [foo]", "How to prevent Google from finding my admin index page?" ]
medi_sts_stackexchange_dupe
Could we have a 'soft' accepted answer for an unanswered question?
Moderators accepting answers on user's behalf after a certain time period
[ "prove that if two real valued functions are uniformly continuous on some interval $I$ and each is bounded on $I$ then their product $f\\cdot g=f(x)\\cdot g(x)$ is also uniformly continuous on $I$ . Is boundedness of each function on $I$ is necessary for the product", "How to restore the down arrow icon on the Downloads folder in the home directory? I removed the original Downloads folder in the home directory and created a new one with the same name, but the down arrow icon on the new Download folder now disappeared. Could someone please tell me how to restore that icon? In addition, from the image above we see \"Downloads\" disappears also in \"Places\" category in the left panel. I think it should be there originally. If after restoring the down arrow icon, the \"Downloads\" is still not in \"Places\" category, I would also like to ask you to help me put \"Downloads\" back to \"Places\". Thank you. PS: I am not using any theme.", "Is there a notification mechanism for when a dependency property has changed?", "I have two PHP scripts, both using the same session by calling session_name('MySessID'). When the first script calls the second script using curl, the second script hangs when session_start() is called. Why would this happend?", "Do spice containers need to be hermetic? Spice containers purchase I'm planning on upgrading my spice storage. Reading some advice online (e.g. , and ) I came to the conclusion that spice containers should: Not be exposed to direct sunlight and high temperatures Be airtight Which means that either you store it inside of some closed cupboard/wardrobe/room or you have containers which do block light and are in a relatively shady place. And the containers need to be airtight. Available solutions I've been browsing for some containers available online in my country and the 2 most sensible options I've seen are these: The problem The first one is hermetic (it has some rubber around the lid) but it's clear glass. The other one does not have the rubber, just a regular twist-off lid, but it's amber glass. It'll be hard for me to find any space inside of cupboards to store all of my spices (I need at least 30), so I'd rather buy amber glass container, which I believe will effectively block the sunlight, even when kept on the counter. But I can't find any hermetic amber-glass containers, only ones with regular lid. The question Is that regular twist-off lid enough to keep spices airtight and fresh? Or should I focus on buying a hermetic container (like the one in clear glass). I could then for example paint them black to block the sunlight.", "I care to understand the concept behind the Borel-Cantelli Lemma better, hence I would appreciate it if someone could take the time to check if my arguments below are clear and rigorous. Statement: Let $(X_n)_{n \\geq 1}$ be a sequence of non-negative random variables that are identically distributed $X_n \\sim X \\geq 0 $ with $E(X)&lt; \\infty$, show that $ X_n/n \\to 0$ almost surely Proof: Since $X_n \\sim X$ for some non negative random variables we can easily compute that for $\\epsilon &gt;0$ we have $$ \\infty&gt;E(X/\\epsilon) = \\int_0^\\infty P(X/ \\epsilon &gt; t) dt = \\sum_{n=1}^\\infty \\int_{n-1}^n P(X/ \\epsilon &gt; t ) dt \\geq \\sum_{n=1}^{\\infty} P(X/ \\epsilon &gt;n) $$ Thanks to the Borel-Cantelli Lemma we obtain that $$ P ( \\limsup_{n \\to \\infty} \\lbrace X_n/n &gt; \\epsilon \\rbrace ) = 0 \\iff P ( \\liminf_{n \\to \\infty} \\lbrace X_n/n \\leq \\epsilon \\rbrace) = 1 $$ Question: Does the $\\epsilon$ in the above depend on $k$? I think it does and I would argue as follows $$P( \\liminf_{n \\to \\infty} \\lbrace X_n/n \\leq \\epsilon \\rbrace )= P \\left( \\bigcup_{n=0}^\\infty \\bigcap_{k=n} \\lbrace X_k/k \\leq \\epsilon (k) \\rbrace \\right) $$ Now using the chain of inclusions that state that we have for $\\epsilon &gt;0$ $$ \\lbrace \\limsup |X_n-X| &lt; \\epsilon \\rbrace \\subset \\liminf \\lbrace |X_n-X| &lt; \\epsilon \\rbrace \\subset \\lbrace \\limsup |X_n-X| \\leq \\epsilon \\rbrace $$ We conclude that $$ P ( \\lbrace \\limsup_{n \\to \\infty } X_n/ n \\leq \\epsilon(k) \\rbrace)=1 $$ Where I choose the same $k \\in \\mathbb{N}$ as above, and then choose $k^*$ large enough such that $\\epsilon(k) \\leq \\frac{1}{k^*}$, define the set $$ \\Lambda_{k^*}:= \\lbrace \\limsup_{n \\to \\infty} X_n/n \\leq 1/k^* \\rbrace \\implies P(\\Lambda_{k^*})=1$$ and also we obtain that $\\Lambda:=\\bigcap_{j \\geq k^*} \\Lambda_{k^*}$ is still an almost sure event, i.e. $P(\\Lambda)=1$ but for all realizations $\\omega \\in \\Lambda$ we have $\\limsup_{n \\to \\infty} X_n( \\omega)/n \\leq 0 \\implies X_n( \\omega)/n \\to 0$ for all $\\omega \\in \\Lambda$ that is$X_n/n \\to 0$ almost surely $\\Box$ Are my arguments given above correct and more importantly complete? Are there steps where you'd use different arguments?", "Infinitely many primes for quadratic residues", "Activate physics by keyframe I'd like to have a group of debris fall from a ceiling onto the floor, but not have them drop all at the same time. Is there a way to set a keyframe that dictates when the object enters the simulation? For example, object 1 starts falling on frame 0, object 2 on frame 5, object 3 on frame 24, etc.", "Regex pattern to choose data BETWEEN matching quotation marks", "What is the best way to detect if a user leaves a web page? The onunload JavaScript event doesn't work every time (the HTTP request takes longer than the time required to terminate the browser). Creating one will probably be blocked by current browsers.", "Finding the limit $ \\lim_{x\\to a^+} \\frac{\\cos(x)\\ln(x-a)}{\\ln(e^x-e^a)} $", "Round a double to 2 decimal places", "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}$.", "Direct Link to a Comment", "Calculating ratio between \"rows\" in ArcGIS field calculator I have a problem similar to but that is for QGIS whereas I have to perform it in ArcGIS. I have to calculate the Ratio between rows (sequentially, i.e., row1/row2, row2/row3 and so on) of a specific field based on the ID field and have to assign the results to a separate field. Here is the code and the error message: def CalcRatio(ID,Frequency): vDict = {} with arcpy.da.SearchCursor(&quot;Test&quot;,['Frequency'],'ID = {}'.format(ID)) as sCur: for Row in sCur: vDict[Row[0]]=Row[1] # Dict[id] =Frequency try: value = ( vDict[1] / vDict[2]) except: value = -1 return value Message: ERROR 000539: Error running expression: CalcRatio( 1 , 50680) Traceback (most recent call last): File &quot;&lt;expression&gt;&quot;, line 1, in &lt;module&gt; File &quot;&lt;string&gt;&quot;, line 5, in CalcRatio IndexError: tuple index out of range Here is the data OID Id Frequency 0 1 50680 1 2 49740 2 3 48620 3 4 48300 4 5 48004 5 6 45600 6 7 44384 7 8 42720 8 9 41890 9 10 39700 10 11 38530 11 12 38207 12 13 38106 13 14 37303 14 15 37205 15 16 36527 16 17 35301 17 18 31674 18 19 28890 19 20 24612", "Story about building up speed leading to increased quality of life", "Difference between generalized linear models & generalized linear mixed models", "How to check if windows has automatic updates waiting from the command line? If a Windows server (2k3/2k8) is set to \"download but not install\" updates, is there a way to check from the command line.. perhaps a log file or something I can check with powershell, to see if there are any updates actually waiting to be installed? I'm trying to prevent having to manually log on to each server to check, even though they want the \"trigger\" pulled manually. We have an automation system in place I can use (CA Autosys) - just not sure what to have it look for.", "How to run an executable on boot and keep it running? I have an executable build from a ndk-build program. I want to run it on a rooted Android device. How much is the possibility that Android will kill my executable? Using adb shell, I am able to execute my executable using following commands: adb push executable /sdcard adb shell device:/ $ su device:/ # cd /system device:/system # mount -o rw,remount /system device:/system # mv /sdcard/executable . device:/system # ./executable My requirement is to run this executable on device boot. I have tried following: Write ./executable in init.rc. On reboot init.rc reset to its original contents. I figured out that Magisk done this. Write commands in /system/etc/init/bootstat.rc ./executable service custom /system/executable on boot ./system/dhandler/diag_revealer None of the above thing is working.", "understanding TTNavigator" ]
medi_sts_stackexchange_dupe
How to Add Ringtones for iPhone X
How do I create a custom ringtone for my iPhone?
[ "How do suggested edits work? 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 .", "I'm having some troubles understanding the solution (going from step $2$ to step $3$) of this linear congruence equation. Here's the problem with the solution: Solve the congruence $2x + 11 \\equiv 7 \\pmod 3$. First, we reduce all the coefficients $\\pmod 3$: $$2x + 2 \\equiv 1 \\pmod 3. \\tag{1}$$ Next, we add $1$ to both sides, using the fact that $2 + 1 \\equiv 0 \\pmod 3$: $$2x \\equiv 2 \\pmod 3. \\tag{2}$$ Finally, we multiply both sides by $2$, using the fact that $2 · 2 = 4 \\equiv 1 \\pmod 3$: $$x \\equiv 1 \\pmod 3. \\tag{3}$$ That is, any number in the set $\\{\\ldots, −5, −2, 1, 4, \\ldots\\}$ will solve the original congruence. Like I said my problem is the step between $(2)$ and $(3)$. If I multiply both sides of $(2)$ by $2$ I get: $$4x \\equiv 4 \\pmod 3.$$ Now, I understand that $4$ is congruent to $1 \\pmod 3$ so the RHS \"simplifies\" to $1 \\pmod 3$ but I don't understand why the LHS \"simplifies\" to $x$. Can someone help me with this?", "Geometry of Riemann Stieltjes integration What is the geometrical interpretation of Riemann Stieltjes Integration ? We know that for Riemaan integration $\\int_{a}^b f(x)dx$ represents the area bounded by the curve $y=f(x)$&amp; the straight lines $x=a$ &amp; $x=b$. But when we integrate $f(x)$ with respect to another function $g(x)$ then which area represents that integration geometrically ?", "I know the thread However, there is no Linux anymore in the installation site . Unsuccessful attempts I do DriraWassim's proposal which does not add anything to apt-get and does not show the installed .deb package in the path/search sudo apt-get install libxml2:i386 sudo apt-get update sudo apt-get upgrade apt-cache search adobereader-enu I download the newest .deb package and run it. I cannot find the application anywhere in the system. It is not in the path and not in Ubuntu's search. How can you start it? System: Ubuntu 16.04, 64 bit Hardware: Macbook Air 2013-mid Linux kernel: 4.6", "Better HTTPS support for Stack Exchange sites So it looks like Stack Exchange now supports HTTPS (to some extent). Which is awesome! But there are a few problems, the main one being that some content is delivered over the CDN, which is plain HTTP. This causes browsers to complain about \"unsecured content\":", "When IE10 is set as my default browser, double-clicking an internet shortcut (*.url file) opens it in a new tab of the existing IE window. However, when it is not the default, every way of opening a *.url that I've tried brings up a new IE window per file. Is it possible to keep opening files in new tabs of the same IE window when it's not set as the default browser, and how? What I've tried and it didn't work: \"C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe\" \"C:\\Dir1\\file.url\" (opens a new window every time) C:\\Windows\\System32\\rundll32.exe \"C:\\Windows\\System32\\ieframe.dll\",OpenURL C:\\Dir1\\file.url (opens the default browser) classexec \"C:\\Dir1\\file.url\" --class htmlFile (using utility, opens a new window every time) I use Windows 7 x64.", "Which option is grammatical? There will be readings from Nikki Giovanni’s and Alice Walker’s writings. There will be readings from Nikki Giovanni and Alice Walker's writings. Saying it out loud the latter sounds right, but looking at it the former looks better.", "What are good starting settings to store for exposure bracketing shots? I started experimenting with the Custom Functions (C1,C2,C3) on my Canon 7D and I decided a useful one to have may be setting it up for exposure bracketing. So it's a quick switch if I ever need it, as opposed to going through the menu to set it up. I realize the settings would vastly depend on the situation, but do you have any suggestions for some good all round settings to program in as a starting point? Examples: 1 stop vs 1 1/3 vs 2 stop brackets / ISO choices / Metering mode / shooting mode and so on.", "One Object won't Show up in Final Render even though it shows up in the Preview Render", "Incorrectly answered 'No' to \"Any previous visa refusals...\" on a UK Standard Visitor visa application. How can I fix my mistake?", "Count below a comment is misleading", "Align elements side by side", "Take a screenshot of a webpage with JavaScript?", "Can the Hubble constant be measured locally? The Hubble constant, which roughly gauges the extent to which space is being stretched, can be determined from astronomical measurements of galactic velocities (via redshifts) and positions (via standard candles) relative to us. Recently a value of 67.80 ± 0.77 (km/s)/Mpc was published. On the scale of 1 A.U. the value is small, but not infinitesimal by any means (I did the calculation a few months ago, and I think it came out to about 10 meters / year / A.U.). So, can you conceive of a measurement of the Hubble constant that does not rely on any extra-galactic observations? I ask because, whatever the nature of the expansion described by the Hubble constant, it seems to be completely absent from sub-galactic scales. It is as though the energy of gravitational binding (planets), or for that matter electromagnetic binding (atoms) makes matter completely immune from the expansion of space. The basis for this claim is that if space were also pulling atoms apart, I would naively assume we should be able to measure this effect through modern spectroscopy. Given that we are told the majority of the universe is dark energy, responsible for accelerating the expansion, I wonder, how does this expansion manifest itself locally? Any thoughts would be appreciated.", "Will the Garbage Collector call IDisposable.Dispose for me?", "Why is it important to override GetHashCode when Equals method is overridden? Given the following class public class Foo { public int FooId { get; set; } public string FooName { get; set; } public override bool Equals(object obj) { Foo fooItem = obj as Foo; if (fooItem == null) { return false; } return fooItem.FooId == this.FooId; } public override int GetHashCode() { // Which is preferred? return base.GetHashCode(); //return this.FooId.GetHashCode(); } } I have overridden the Equals method because Foo represent a row for the Foos table. Which is the preferred method for overriding the GetHashCode? Why is it important to override GetHashCode?", "OS volume shows as type 'FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF' Yesterday, I have tried to delete an Ubuntu partition. Since, my Mac (13\", MBPro mid-2014) doesn't boot. Now, I boot on Mac OS copy with an USB. i follow different subject of this forum (like this : ), and my volume partition change from FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF to 48465300-0000-11AA-AA11-00306543ECAC. But I still can't boot to it... Thank you very much !", "how does LEA and several instruction work?", "I'm writing a latex document which contains a table. This table is doesn't fit the actual page so it's placed in the next page. The problem is that vertical spaces are added automatically in the previous page in order to fill the page and I want to avoid that from happening. I use H in order to add the table figure.", "How can I get a reference to a method?" ]
medi_sts_stackexchange_dupe
Prove $\cos \frac{\pi}5-\cos \frac{2 \pi}5=\frac12$ but without finding $\cos \frac{ \pi}5$
How do we prove $\cos(\pi/5) - \cos(2\pi/5) = 0.5$ ?.
[ "I couldn’t find any proof on the internet. I would appreciate an elementary proof , but any help would be appreciated! Thank you.", "Why can't Inuzuka clan's dogs use human language?", "When did UX start being called UX? When did people start talking about User Experience as a role/domain similar to the way that it's used today? The earliest reference I can find is the Norman, Miller, Henderson CHI 95 piece on Apple's set up (Donald Norman, Jim Miller, Austin Henderson: What You See, Some of What's in the Future, And How We Go About Doing It: HI at Apple Computer. Proceedings of CHI 1995, Denver, Colorado, USA) Anything earlier? [Edit - after @Andrew's nice answer we have 1993 as an earlier date \"I invented the term because I thought Human Interface and usability were too narrow: I wanted to cover all aspects of the person's experience with a system, including industrial design, graphics, the interface, the physical interaction, and the manual.\" - Don Norman ] (I'm writing a talk on communities of practice relating to UX - and want to get my time lines right ;-)", "Checkbox in listview control Can you have a multicolumn listview control where one of the columns is a checkbox? Example code or links would be greatly appreciated. I am using visual studio 2005", "How to check if installing a package will require a reboot? I often install packages and updates for them, although sometimes it is not convenient to do a reboot if one of the packages needs it, so is there any way of telling BEFORE installing the package/update whether or not it will require you to do a reboot? I have already looked and the solutions there don't solve my problem, nor the more or less same one described there.", "Test if a website is alive from a C# application I am looking for the best way to test if a website is alive from a C# application. Background My application consists of a Winforms UI, a backend WCF service and a website to publish content to the UI and other consumers. To prevent the situation where the UI starts up and fails to work properly because of a missing WCF service or website being down I have added an app startup check to ensure that all everything is alive. The application is being written in C#, .NET 3.5, Visual Studio 2008 Current Solution Currently I am making a web request to a test page on the website that will inturn test the web site and then display a result. WebRequest request = WebRequest.Create(&quot;http://localhost/myContentSite/test.aspx&quot;); WebResponse response = request.GetResponse(); I am assuming that if there are no exceptions thown during this call then all is well and the UI can start. Question Is this the simplest, right way or is there some other sneaky call that I don't know about in C# or a better way to do it.", "This is a about Monitoring Software. Also Related: I need to monitor my servers; what do I need to consider when deciding on a monitoring solution?", "TikZ: Bend text so that it follows a line I have two arrows going from a node on the left to a node on the right. Both arrows are slightly bent. I want to label the arrows with text that is bent just like the arrows. This is as far as I've got: \\begin{tikzpicture} \\node (One) at (-3,0) [shape=circle,draw] {One}; \\node (Two) at (3,0) [shape=circle,draw] {Two}; \\draw [-&gt;, thick] (One) to [bend right=45] (Two); \\draw [-&gt;, thick] (One) to [bend left=45] (Two); \\node (mental) at (0,1.75) {Some bent text}; \\node (non-mental) at (0,-1.75) {Some more bent text}; \\end{tikzpicture}", "Is having a skills bar chart on a resume a good idea?", "WoeUSB Error Code 256 with NTFS formatted USB I tried to create a Windows 10 USB boot medium with WoeUSB. I formatted a USB drive with an NTFS partition, but WoeUSB complains with: Installation failed! Exit code: 256 Log: WoeUSB v@@WOEUSB_VERSION@@ ============================== Mounting source filesystem... Error: File \"/media/woeusb_source_1543626298_6098/sources/install.wim\" in source image has exceed the FAT32 Filesystem 4GiB Single File Size Limitation and cannot be installed. You must specify a different --target-filesystem. Refer: https://github.com/slacka/WoeUSB/wiki/Limitations#fat32-filesystem-4gib-single-file-size-limitation for more info. Unmounting and removing \"/media/woeusb_source_1543626298_6098\"... You may now safely detach the target device I've also tried to start WoeUSB via command line, did not work. sudo woeusb --partition Win10_1809Oct_English_x64.iso /dev/sdb My iso is located in: home/sawyer/Downloads/Win10_1809Oct_English_x64.iso Thanks in advance! I've been trying to get windows installed for three nights now, so any help towards that goal is greatly appreciated.", "I have a consideration about new off-topic close reason: Questions asking us to recommend a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it. For example take that question: It has a close vote with the reason above. But if it would be formed How to zoom image in an absolute position div to the side? The answer would be probably also a jQuery plugin or javascript library, but it would follow the patter of most questions about jQuery. Take that question: This is the good question about real-life problem. The answer is to use a maven plugin. It is correct, there's no need to reinvent the wheel or rediscover the America. But I'm afraid the off-topic text could be misleading and could be misused to close such a questions as that about maven simply because a tool, library or plugin is the answer. Is it a new guideline that the questions such as cited above should be banned, no matter how they are formed (this would make most how-to-do-in-maven/jquery) questions illegal? Or the close reason should be changed to make more clear what the guidelines are (it's not clear to me now)?", "Limiting range of value types in C++ Suppose I have a LimitedValue class which holds a value, and is parameterized on int types 'min' and 'max'. You'd use it as a container for holding values which can only be in a certain range. You could use it such: LimitedValue&lt; float, 0, 360 &gt; someAngle( 45.0 ); someTrigFunction( someAngle ); so that 'someTrigFunction' knows that it is guaranteed to be supplied a valid input (The constructor would throw an exception if the parameter is invalid). Copy-construction and assignment are limited to exactly equal types, though. I'd like to be able to do: LimitedValue&lt; float, 0, 90 &gt; smallAngle( 45.0 ); LimitedValue&lt; float, 0, 360 &gt; anyAngle( smallAngle ); and have that operation checked at compile-time, so this next example gives an error: LimitedValue&lt; float, -90, 0 &gt; negativeAngle( -45.0 ); LimitedValue&lt; float, 0, 360 &gt; postiveAngle( negativeAngle ); // ERROR! Is this possible? Is there some practical way of doing this, or any examples out there which approach this?", "Functional equation: $f: \\mathbb{R} \\rightarrow \\mathbb{R}$, $f((x + 1) f(y)) = y (f(x) + 1)$", "Regular expression to match balanced parentheses I need a regular expression to select all the text between two outer brackets. Example: some text(text here(possible text)text(possible text(more text)))end text Result: (text here(possible text)text(possible text(more text)))", "Add source to figure caption How can I add a source to a figure? I need to add \\ref, \\cite or just free text. Something like that: \\begin{figure} [ht] \\centering \\includegraphics[width=0.95\\textwidth]{res/figure.pdf} \\caption{Caption} \\source{\\ref{},\\cite{} or free Text} \\label{fig:gliederung} \\end{figure} Should give me: The source shouldn't appear in \\listoffigures.", "Prove that if 51 positive integers between 1 and 100 are chosen, then one of them must divide another. Given $51$ integers $a_1, a_2, \\ldots, a_{51}$ satisfying $1 \\leq a_i \\leq 100$. Prove that there exist $i$ and $j$ such that $a_i \\mid a_j$. I'm a little unsure how to approach this problem. Thanks for any help.", "How can I break on an unhandled exception in ASP.NET? When debugging an application in Visual Studio, there are 2 options for breaking on exceptions. Break as soon as an exception is thrown, and breaking only when an exception isn't caught. This works fine when developing desktop applications. However, when developing ASP.NET applications, all exceptions are eventually caught by the code in IIS. Is it possible to disable this behavior, so that the debugger breaks when my ASP.Net application code fails to catch an exception? Edit: Just to be clear, I don't want to break whenever an exception is thrown, as many times they are handled just fine by my code, and I don't want to stop on every exception. I only want to stop on the exceptions that aren't handled by my code. Edit: This seems to not be an issue in Visual Studio 2008. In Visual Studio 2003, all exceptions were treated as user handled, because the ASP.NET runtime caught all the exceptions so as not to bring down the web server process. It seems that in Visual Studio 2008, this type of exception catching is not counted when checking for user-unhandled exceptions.", "Running Synaptic I get the following error message: E: The package hl1440lpr needs to be reinstalled, but I can't find an archive for it. E: Internal error opening cache (1). Please report. Upon accepting the message, Synaptic quits.", "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.", "Can a multiclass character use either of its spellcasting modifiers for spells?" ]
medi_sts_stackexchange_dupe
Unwanted outline in illustrator?
There is a line in the middle of my stroke. How do I fix that?
[ "I am designing a poster, which has some geometrical shapes (TikZ paths) surrounded by some text. I would like the text to flow neatly around these shapes. I bet there's some clever TikZ magic that could do this. EDIT: This is the sort of effect I want, sorry to not be clear: \\documentclass[a4paper]{article} \\usepackage{tikz} \\begin{document} \\begin{tikzpicture} \\draw (0,0) to (2,-2) to (2,-4) to (4,-4) to [out=up, in=down] (6.5,0); \\node [text width=6cm, anchor=north west] at (0,0) { \\hspace{5pt} This is the sort of effect I want to \\\\ \\hspace{23pt} achieve, with text automatically \\\\ \\hspace{36pt} constrained by some \\\\ \\hspace{46pt} geometrical form. Here \\\\ \\hspace{55pt} it's just a curve, \\\\ \\hspace{57pt} but this could \\\\ \\hspace{57pt} also be the \\\\ \\hspace{57pt} text label \\\\ \\hspace{57pt} of a node.}; \\end{tikzpicture} \\end{document}", "I'm trying to put together a comprehensive regex to validate phone numbers. Ideally it would handle international formats, but it must handle US formats, including the following: 1-234-567-8901 1-234-567-8901 x1234 1-234-567-8901 ext1234 1 (234) 567-8901 1.234.567.8901 1/234/567/8901 12345678901 I'll answer with my current attempt, but I'm hoping somebody has something better and/or more elegant.", "Check for Process if Same is Running Is there a script or a way in linux that when I try to execute a shell script/process, if the same is running, it will prompt that same is running and will exit otherwise it will continue.", "I've just answered . After accepting the answer, the OP then changed his question to another problem - which I know I shouldn't have answered (I should have requested as new question) but I updated my answer anyway. The OP has now edited his question to remove the essence of either the original or new problem, and instead has a statement saying that the problem has been fixed. What is the correct thing to do here? Roll the question back so it's in its original state? Roll it back to the \"new problem\" state? Leave it and let him continue to get downvoted and/or closed by people who didn't see the original question?", "SQL Server Max Memory not limiting use of RAM I would like your input on this. I have a sql server 2008r2 Ent. Ed. 64bit with 16 cores and 64GB RAM. There is one instance of SQL server patched fully as of 20111014. The max ram is set to 60000MB. Amount of free ram is 0 according to task manager after a few days online. If I change the max ram to below 53GB it will after a few days to stabilize and have some free ram. It is the sql process that does allocate the ram according to task manager. How do i come to terms with what the problem really is? It goes without saying that i did alot of testing already but havn't solved this to my liking yet. and ohh we do not get the typical memory starvation lagging when the available ram is down to 0 free. Update 1: Inspired by another Q/A related to RAM on this page . I used these two to see what the RAM is being used for. SELECT TOP ( 10 ) [type] AS [Memory Clerk Type] , SUM(single_pages_kb) AS [SPA Mem, Kb] FROM sys.dm_os_memory_clerks GROUP BY [type] ORDER BY SUM(single_pages_kb) DESC OPTION ( RECOMPILE ) ; SELECT DB_NAME(database_id) AS [Database Name] , COUNT(*) * 8 / 1024.0 AS [Cached Size (MB)] FROM sys.dm_os_buffer_descriptors --WHERE database_id &gt; 4 -- system databases -- AND database_id &lt;&gt; 32767 -- ResourceDB GROUP BY DB_NAME(database_id) ORDER BY [Cached Size (MB)] DESC OPTION ( RECOMPILE ) ; The amount used shown by these are first select 7948432 Kb second one 44030,57812 MB that is a total of about 52GB used by sql server... so where did the rest of my RAM go? :-) Task manager show right now cached 363, available 401, free 40 and sqlservr.exe has Memory private set 64 459 656. Max Ram set to 60000MB as before.", "I think I accidentally pressed something to make it like this: See how the XYZ arrows are at the 3D cursor instead of those vertexes I've selected? How do I fix that? Whenever I select on a vertex or something, those blue, red, green arrows would always be where I selected, now it just keeps going to the 3D cursor.", "I'm using an Android smartphone that I purchased Minecraft PE on; now I want to transfer my world to a iPhone. I have also purchased Minecraft PE on my iPhone.", "Proof of Frullani's theorem", "On iPhone it's very easy to clone an app (running multiple copies of the app on the same device); e.g.: Is it possible to do this on Android?", "Proving $\\frac{a}{a^2-a+1}+\\frac{b}{b^2-b+1}+\\frac{c}{c^2-c+1}+\\frac{d}{d^2-d+1}\\le \\frac{8}{3}$ given $a+b+c+d=2$ Let $a,b,c,d\\in \\mathbb{R}$ and $a+b+c+d=2$. Prove that $$\\frac{a}{a^2-a+1}+\\frac{b}{b^2-b+1}+\\frac{c}{c^2-c+1}+\\frac{d}{d^2-d+1}\\le \\frac{8}{3}.$$ We have $$\\frac{a}{a^2-a+1}\\le \\frac{4}{3}a\\Longleftrightarrow \\frac{-a\\left(2a-1\\right)^2}{3\\left(a^2-a+1\\right)}\\le 0,$$ (Right) So $$LHS\\le \\frac{4}{3}\\left(a+b+c+d\\right)=\\frac{8}{3}=RHS$$ When $a=b=c=d=\\frac{1}{2}$ But also $a=b=c=1;d=-1$ i don't know how to solve it.", "In Salesforce Marketing Cloud (SFMC), I want to unsubscribe a contact from a single publication list by using a form on a landing page. I also want to create an Unsub event in SFMC when they submit the form. There is some sample code from SFMC Help documents that seems to do that for external sites. Will it work in a SFMC hosted landing page? Do I need to edit the code much?", "I'm looking for a good, consistent and easy way to do a report of sudoers permissions for every user and group on the system. For users, I want the report to include permissions granted via group membership.", "Troubleshooting \"Windows cannot be installed to this disk. The selected disk has an MBR partition table\" I recently bought a desktop computer with Windows 7 Home Premium x64 preloaded (OEM). I tried to install Windows 7 Ultimate x64 on this computer but I was presented with the following error message: Windows cannot be installed to this disk. The selected disk has an MBR partition table. On EFI systems, Windows can only be installed to GPT disks. The 1TB HDD on this computer has three partitions: SYSTEM 100 NTFS - Healthy (System, Active Primary Partition) OS (C:) 9148.04 GB NTFS - Healthy (Boot, Page File, Crash Dump, Primary Partition) HP_RECOVERY (D:) 13.37 GB NTFS - Healthy (PrimarynPartition) I'm trying to install a clean copy of Windows.", "How do you read C declarations? I have heard of some methods, but none of them have stuck. Personally I try to avoid complex types in C and try to break them into component typedef. I'm now faced with maintaining some legacy code from a so called 'three star programmer', and I'm having a hard time reading some of the ***code[][]. How do you read complex C declarations?", "What are your tips for improving overall system performance on ubuntu? Inspired by this I realized that some default settings may be rather conservative on Ubuntu and that it's possible to tweak it with little or no risk if you wish to make it faster. This is not meant to be application specific (e.g. make firefox load pages faster), but system wide. Preferably 1 tip per answer, with enough detail for people to implement it. A couple of mine would be: Install (via Software Center or sudo apt-get install preload); Change value - \"which controls the degree to which the kernel prefers to swap when it tries to free memory\"; What are yours? PS: Since this is not intended to have a unique answer but rather, several useful tips, I'm making this community wiki out-of-the-box.", "With powershell get exactly the same application list as in Add/Remove programms There are various methods to find installed applications on the system but to my knowledge none returns exactly the same list as control panel item Add Remove Programs. Some of the ways I tried are: WMI via Win32_Product and Win32Reg_AddRemovePrograms Registry, both x32 and x64 branches For instance, I have 217 entries in AR and gwmi Win32_Product returns 261 items. gp HKLM:\\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\*, HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\* | ? {![string]::IsNullOrWhiteSpace($_.DisplayName) } | select DisplayName returns 119 items. (gwmi Win32Reg_AddRemovePrograms) + (gwmi Win32Reg_AddRemovePrograms64) | sort DisplayName -Unique returns 107 items. I tried to nail it down with more complex filter that included InstallLocation, InstallSource, InstallDate etc without success.", "Prove that given $A\\subseteq\\mathbb{R}$, if has a maximum $a_0$, then $a_0$ must be the supremum. In order to prove this, I have written the following: Let $A\\subseteq \\mathbb{R}$, nonempty set because $a_{0}$ $\\in A$ for hypotesis. Then, since $a_{0}$ $\\in A$ is the largest element of the set $A$ (i.e. for each element $A$ of A we have that $ a\\leq a_{0}$) $A$ is bounded above. Then, A has a supremum. Let $s$ be the least upper bound of $A,$ so we have that for each element $a$ of $A$, $a\\leq s$, for being $s$ an upper bound. In particular, $a_0\\leq s$, which implies that $s=a_0$. Then, we have that $\\sup(A)=\\max(A)=a_0$, which is exactly what we wanted to prove. Observation: this proof is true if $s \\in A$ I'm not sure if my proof is correct. I will be thankful if someone tells me.", "Would you ever stop rolling the die?", "Hi I'm solving some exercise problems in my text : \"A Course in Mathematical Statistics\". I'm in the chapter \"Point estimation\" now, and I want to find a UMVUE of $\\theta$ where $X_1 ,...,X_n$ are i.i.d random variables with the p.d.f $f(x; \\theta)=\\theta e^{-\\theta x}, x\\gt0$. I know that $E(X_i)=1/\\theta,$ for each $i$, and also have that $\\bar{X}$ (or equivalently $\\sum_1^n X_i$) is a complete sufficient statistic for $\\theta$. But I cannot go any further here. Somebody can help me?", "nginx location match issue auth_basic I have this configuration : location / { root /etc/nginx/euchet; } location /app/ { proxy_pass http://172.16.184.2:8080; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header REMOTE_ADDR $remote_addr; } And I need to add another location with auth_basic enabled only for the request: /app/f?p=3000 I tried with rexexp: location ~ \\/appt\\/f\\?p=3000 { auth_basic \"Hello! Enter password\"; auth_basic_user_file /etc/nginx/euchet.htpasswd; proxy_pass http://172.16.184.2:8080; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header REMOTE_ADDR $remote_addr; } Nginx use previous location /app/. I tried another way: location ~* /euchet/f { if ($arg_p = \"4550\") { return 403; } error_page 403 = @hidden; } location @hidden { auth_basic \"Hello! Enter password\"; auth_basic_user_file /etc/nginx/euchet.htpasswd; proxy_pass http://172.16.184.2:8080; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header REMOTE_ADDR $remote_addr; } And I get 403 error on f?p=3000, and 404 errors on f?p=&lt;another_number&gt; How can I fix this problem?" ]
medi_sts_stackexchange_dupe
Removing old kernels
How do I remove old kernel versions to clean up the boot menu?
[ "Ubuntu/Kubuntu 16.04.1 installation in VirtualBox I'm trying to install Kubuntu 16.04.1 on a virtual machine (I'm using VirtualBox). When I boot from the disk image Ubuntu begins to load and then I get this screen: It looks like it's loading but the display is not working properly (the pink blob is my mouse pointer, only very large and pink). I also tried installing Ubuntu 16.04.1 and I get a very similar result: Am I missing something in VirtualBox? Thanks!", "Existence of a local geodesic frame Let $(M,g)$ be a Riemannian manifold of dimension $n$ with Riemannian connection $\\nabla,$ and let $p \\in M.$ Show that there exists a neighborhood $U \\subset M$ of $p$ and $n$ (smooth) vector fields $E_1,...,E_n \\in \\chi (U),$ orthonormal at each point of $U,$ s.t. at $p,$ $\\nabla_{E_i}E_j(p)=0.$ What I've found so far; Let $V$ be a normal neighborhood at $p.$ Let $(W,x(x_1,...,x_n))$ be a local coordinate system at $p$ s.t. $x(W) \\subset V.$ Let $\\{X_i:=\\frac{\\partial}{\\partial x_i}\\}$ be the standard basis of $T_pM.$ By Gram-Schmidt, there exists an orthonormal basis $\\{E_i\\}$ of $T_pM.$ Consider the orthonormal frame $E_i(t),$ by parallel transporting $\\{E_i(0)=E_i\\}$ along a a geodesic $\\gamma :I \\to M$ starting at $\\gamma(0)=p$ and ending in $\\gamma(1)=q,$ where $q \\in V.$ This gives us an orthonormal frame at each point of $V.$ To satisfy the second condition, let $E_i(t)=\\sum_{l}a_{li}X_l$ and $E_j(t)=\\sum_{s}b_{sj}(t)X_s.$ Then $$\\nabla_{E_i}E_j=\\sum_{k}(\\sum_{l,s} a_{li}(t)b_{sj}(t)\\Gamma^k_{ls}+E_i(b_{kj}))X_k,$$ where $\\Gamma^k_{is}$ are Christoffel symbols. To have $\\nabla_{E_i}E_j(p)=0,$ we must have $\\sum_{l,s}a_{li}(0)b_{sj}(0)\\Gamma^k_{ls}+E_i(b_{kj})(p)=0$ for each $k.$ How can I conclude the argument?", "Can I travel in UK before switching to a study visa? As I read in general visitor visa Terms &amp; Condition, I would only be granted to stay up to 6 months in UK. However I am planning to apply for General Student Visa to further my studies. Would it be possible for me to enter UK as visitor for first 6 months/less before I apply for student visa in the same year if I want to travel and study on the same year?", "Turning a cipher into a hashing function This is theoretical question. I'd like to know if it's possible (and what are eventually the consequences), not that I'm going to do it in one of my projects. ;) The first hashing functions created were based on a symmetric cipher (just like the first Unix crypt was based on DES). The idea was simple. Use the password as key to encode a constant. I'd like to know if it's still possible to convert any modern symmetric cipher into a hashing function (and second question: into a cryptographic hashing function). Is it possible (easier) to guess the key, when you have an encoded and decoded messages?", "Inclusion of Fields whose order is a prime power Blue was correct, I need to fix my understanding of this: Finite fields have cardinality of a prime order because they have a prime subfield that has finite characteristic. I do not completely understand why finite field of each characteristic is unique. Perhaps we look at a polynomial and express the finite field as a splitting field? And we use uniqueness of splitting fields? Then, why is it that $\\mathbb F_{p^m} \\subseteq \\mathbb F_{p^n}$ if and only if $m$ divides $n$?", "Unable to SSH to my virtual machine via Windows Power Shell ISE", "\"The train will leave\" vs. \"is going to leave\" vs. \"leaves\" vs. \"is leaving\"", "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?", "Laptop power supplies, does current matter? I have two laptops (same manufacture), with the same type of power connector. However, the power supplies/transformers are slightly different. The output on the first laptop's power supply is 15.6&nbsp;V at 8.0&nbsp;A. The output on the second laptop's power supply is 15.6&nbsp;V at 5&nbsp;A. Clearly the voltages are the same, but the currents are different. I assume the second laptop's power supply can not be used on the first, because it can't supply enough power to the laptop. However, can the first laptop's power supply be safely used on the second laptop?", "Issue in evaluating the performance of my \"clustering algorithm\" using NMI, ARI when the \"ground truth\" is available?", "$1+x+\\ldots+x^n$ perfect square Let $p$ be the polynomial $p(x)=1+x+\\ldots+x^n$. For which couples $(a, n)\\in\\mathbb{N}^2$, $p(a)$ is a perfect square? I'm particularly interested in $p(3)$.", "These are my current disk partitions. /yedek is for some personal backup files. As you can see there is only Ubuntu on my PC. I will install Windows, too. Because of this I want to shrink /dev/sda3 . It currently 546GB and I want to split it: 300GB for / and 246GB for Windows (NTFS) is OK for me. I'm using GParted for the first time. How can I shrink /? I don't want to lose any datas from Ubuntu.", "Which $n$ can be expressed as $x^2 − y^2$? Which $n$ can be expressed as $x^2 − y^2$? Attempt: Any number which is odd or or which is a multiple of 4.", "What are some alternatives to \"hover\" on touch-based devices? Came up recently in a 37signals podcast: The straightforward, \"brute-force\" solution is to just use the first touch on a UI object as the hover. It works. But are there other, more elegant solutions? For instance, could the hardware ever be made to support actual finger hovering?", "parsing XML file gets UnicodeEncodeError (ElementTree) / ValueError (lxml)", "Extracting one band from three band raster in ArcMap?", "Is is possible to restore the MFT of a NTFS partition after a format?", "Ubuntu stuck/freeze on install I've been trying to replace my current Windows 10 installation with Ubuntu 16.04. My computer is a Lenovo Thinkpad T470. I've formatted my 15GB USB-dongle. Downloaded the software Rufus, and burned the ISO onto the USB. I've tried the settings \"MBR Partition for BIOS or UEFI\", \"MBR Partition for UEFI\" and \"GPT partition for UEFI\". I've tried using memtest86+ to test if I have any memory errors, I have not. I've tried disabling Secure boot, and Fast startup. I've tried using other software than Rufus, and I've tried entering the \"nomodeset\" in the boot options, as well \"acpi=off\", nothing works. When I boot from my USB. I choose \"Install Ubuntu\" from the grub menu. And then select my language in the installer. It is from this point on, it gets problematic. Sometimes when I try to connect to my WIFI, it connects successfully, but when I press the \"continue\" button, the installer freezes and nothing happens. Sometimes I get past this point, but it then freezes later on in the installation progress - typically right when I press the \"Install now\" button. It should also be mentioned that, if I press the \"Quit\" button in the install. I get to a black screen with a lot of text saying something like squashfs error. Can someone please help me? When I tried booting memtest86+ it only worked when I changed my boot mode from UEFI to Legacy. Could this be it? Are there any downsides to installing an operating system in legacy? If anyone has any other suggestions, it would be greatly appreciated! Thank you :-)", "A smooth vector field on $S^2$ vanishing at a single point", "Is it true that for algebraic sets $V,W$ we have $I(V \\times W ) =I(V) + I(W)$?" ]
medi_sts_stackexchange_dupe
JavaScript - How to check if alphabetical characters or symbols have been entered in a number input field
HTML text input allow only numeric input
[ "How do you validate that two math expressions are equal? Let's say you have a few expressions like the following: $$\\begin{array}((x+17)^2 \\\\ x^2 + 34x + 289 \\end{array} \\\\ 288 + \\frac{x^2}{2} + \\frac{x^2}{2} + 34x + 1 \\\\ [...] $$ You get the idea: there's an infinite number of ways of representing the same expression. The challenge is that my application is validating answers to math problems, input by math students practicing a certain concept. I'd like to make sure that whenever they submit an answer, the checker is completely insensitive to the issues of ordering, simplification, formatting etc. which would be plain frustrating. I'd also ideally like to support more than one variable such as x, y, z in the same expression. What's a reliable way to check that two expressions are the same? The most brute force way I can think of would be to just plug a number into each variable of each expression and see what the result is. I have a hunch however that there might be ways of getting false positives this way. That, and I might be either missing something really obvious about this, or there might be a better way of doing the comparison. Would love to hear what you think.", "Huge close votes review queue on Stack Overflow Today, the size of the close-votes queue is 55k questions and growing. Is that a problem? Which action could be taken to clean it up? It seems to be growing faster than Stack&nbsp;Overflow members are capable to handle it.", "How to set up RAID 1?", "How to *quickly* get a list of files that have bad sectors/blocks/clusters/whatever? My wife's Windows 7 (64-bit) box has suddenly developed a SMART \"disk is bad\" status. I'm attempting to copy everything off (no admonishments about lacking a backup regimen, please, I know already :( ) by creating a System Image across the network to a different machine, but it gets to a certain point and starts taking forever. Doing a chkdsk reveals that certain files cause this by having many bad blocks (like dozens of thousands in a row, if the event log is any indication) and causing the system to do its standard try-to-recover-and-relocate-upon-access thing. But this is taking so long, I'm afraid the disk will fail completely before I can get the damned thing copied. However, several of the files so far have been ones that she has copies of elsewhere, so I am able to just delete them prior to retrying the backup to speed things up considerably. So: is there some tool or procedure that will try reading each file, and upon hitting a bad block, just tell me about it and skip to the next file? So I can see which ones I can just dump and which I need to let it try to recover?", "What's the easiest way to run GUI apps on Windows Subsystem for Linux as of 2018?", "How to Make Multi User Objects Single User?", "NOTE: Signing up or Logging in via OpenID is no longer officially supported from any of our sites. Currently, is still on the internet, but we are in the process of completely removing it. Stack Overflow was an early and strong supporter of . We built our sign up/log in flow around it. We were idealistic and had , but these hopes weren't realized. Over the years people have wondered if is . We've had to remove support as OpenID providers or . The time has come to part ways. The reality is OpenID support has created a ton of complexity in our codebase and the number of users actively using OpenID simply don't justify that cost. Users have spoken with their actions. You prefer Google, Facebook and Stack Exchange (aka email/PW) based account auth. Of our 9,813,747 accounts around one-tenth of a percent are actively using OpenID (defined as having visited a site in the past 12 months). If you include all the inactive accounts it is still less than 2.9% of all accounts. So, what is the plan? DONE - Remove the ability to create a new account with most OpenID providers DONE - Add the ability to DONE - Convert Launchpad (used on ) to OAuth DONE - Remove creating new accounts with Steam from (Steam removed support for OAuth. Only 454 accounts that use Steam have visited Arqade in the past 6 months.) DONE - We will email all users that rely on deprecated OpenID credentials and request that they DONE - Run an announcement banner for any user who signs in with deprecated OpenID credentials urging them to DONE - End support for logging in via OpenID In progress - Remove (note: only 0.2% of authorized sites in the last year have been non-Stack Exchange sites.) Obviously, if your account relies on OpenID, then make life easy and go now and . If you've forgotten what you credentials you use to login, then to refresh your memory. If you don't see one of the three account types shown in the image below (Google, Facebook or Stack Exchange) then click the \"add more logins\" button to add one of them to your account. Remember, SE OpenID accounts are really email/pw accounts handled through complicated OpenID code path. They will be migrated to a simpler email/pw only code path as a part of this change. No extra work required on your part.", "Book about a teenager programmed to be an assassin and trying to get back at the people responsible I read this book a few years back (around 5?). It was part of a multibook series but I have only read one book. It's about this teenager who I think had been programmed to be an assassin but then somehow retained his conscience and was out to get the people responsible for that. I briefly remember a girl, and this one part where he realizes he can ride a horse and then there's a chase too. I think the guy's name was Jim or Jimmy, but not quite. I'm also quite sure he was either part computer, or had a chip or something in his brain which had been programmed to give him a host of mental and physical abilities which he retained and used as well as the series progressed.", "error when adding user to wheel group in CentOS 7 I am trying to grant sudo privileges to a user of a CentOS 7 devbox by typing gpasswd -a user wheel, but the attempt is failing. What am I doing wrong? Here is what I typed: I discovered that the user is not in the wheel group as follows: [user@localhost git]$ sudo yum install git [sudo] password for user: Sorry, try again. [sudo] password for user: Sorry, try again. [sudo] password for user: user is not in the sudoers file. This incident will be reported. I then logged in as root and typed the following to add the user to the wheel group: [user@localhost git]$ su - Password: Last login: Thu Aug 20 17:11:31 PDT 2015 on pts/0 [root@localhost ~]# gpasswd -a user wheel Adding user user to group wheel [root@localhost ~]# exit logout I finally tried to use the sudo command again but it failed as follows: [user@localhost git]$ sudo yum install git [sudo] password for user: user is not in the sudoers file. This incident will be reported. [user@localhost git]$", "Minor grid in pgfplot not showing when specifying ticks manualy Firstly I would like a minor tick between every major tick in my pgfplots graph (and minor grids). I wrote minor tick num=1 but it doesn't work. I am not using a logarithmic axis so it is unrelated to other questions. Secondly, why is the tick label \"1\" missing for each axis? How do I get that to display? \\documentclass{standalone} \\usepackage{pgfplots} \\begin{document} \\begin{tikzpicture} \\begin{axis}[% footnotesize, width=4in, height=4in, axis equal, scale only axis, separate axis lines, grid=both, every outer x axis line/.append style={black}, every x tick label/.append style={font=\\color{black}}, xmin=0, xmax=1, xlabel={X}, every outer y axis line/.append style={black}, every y tick label/.append style={font=\\color{black}}, ymin=0, ymax=1, ylabel={Y}, minor tick num=1, xtick={0,0.1,...,1}, ytick={0,0.1,...,1}, axis background/.style={fill=white}, legend style={at={(0.97,0.03)},anchor=south east,legend cell align=left,align=left,fill=white} ] \\end{axis} \\end{tikzpicture}% \\end{document}", "A function that is continuous at the origin but not differentiable there Show that $f(x,y)=\\dfrac{xy^2}{x^2+y^2}$ (with $(x,y)\\not=(0,0)$ and $f(0,0)=0$) is continuous but not differentiable at $(0,0)$. I tried to show continuity with an $\\epsilon -\\delta$ argument but I don't know how to factorize the expression so that I can have something useful. For differentiability I think I should show that the partials are not continuous at $(0,0)$. But finding the partials is also painful.", "What is a word for getting an award in a competition or being one of the top three?", "Did Voldemort refer to Snape as one of the missing Death Eaters at his rebirth? In Goblet of Fire, Voldemort says of the missing six Death Eaters: “And here we have six missing Death Eaters… three dead in my service. One, too cowardly to return… he will pay. One, who I believe has left me forever… he will be killed, of course… and one, who remains my most faithful servant, and who has already reentered my service.\" The answer to speculates about who the three dead Death Eaters were. We know who the last one is. I’m guessing one of the remaining two is Karkaroff. Is the other Snape? If so, which one?", "Breakthrough at the Large Hadron Collider -Leptoquarks skepticism?", "Expected number of siblings, given the expectation of children in a family The number of children in a family is a random variable $X$, where $ \\mathbb E(X) = 1.8 $ and $Var(X) = 0.36 $. If we randomly choose a child, which is the expected number of its siblings? (it is given that the answer $&gt; 0.8$) Let the number of a child's siblings be a random variable $Y$, so we are looking for $ \\mathbb E(Y) $. If found that, $$ \\mathbb E(Y) = \\sum_{k=0}^{\\infty}k \\; \\mathbb P(Y=k) = \\sum_{k=0}^{\\infty}k \\; \\mathbb P(X=k+1) = $$ $$ = \\sum_{k=0}^{\\infty}k \\; \\mathbb P(X=k)-\\sum_{k=0}^{\\infty}\\mathbb P(X=k) +\\mathbb P(X=0)= \\mathbb E(X)-1+\\mathbb P(X=0) $$ which is indeed greater than $0.8$, if $\\; \\mathbb P(X=0)&gt;0$. But, I don't know how to make use of the variance to find the final answer. Thank you in advance", "Where's my 5 minute grace period gone? I just posted an answer. (Revision history .) I edited it a few seconds later (within my 5 minute grace period), and it comes up as a new revision!? Why? ^^You can see 'answered 1 min ago', and then 'edited 1 min ago' - how is that possible? Additionally, !? I don't think this is a dupe of . See my comments on AI.E's answer. If you're a mod, it will really help.", "$f : S^1 \\to\\mathbb R$ is continuous then $f(x)=f(-x)$ for some $x\\in S^1$ Question is to prove : $f : S^1 \\to \\mathbb R$ is continuous then $f(x)=f(-x)$ for some $x\\in S^1$ I guess it would be helpful to use intermediate value theorem Assuming $f(x)\\neq f(-x)$ then given any $p\\in (f(-x),f(x))$ (assuming $f(-x)&lt;f(x)$) there exists $y\\in (-x, x)$ such that $f(y)=p$ I am not very sure of how to use this.. It would be helpful if someone can give some hint which would help me to solve this.. Thank you.", "In Windows 7, How to query times, when the computer was locked? Is there a way to get a list of the following times: whenever windows is locked (using windows+l combo) whenever windows is unlocked in the past week? I've tried poking in the event log, to no avail. Many thanks!", "A singularity, by the definition I know, is a point in space with infinite of a property such as density. Density is Mass/Volume. Since the volume of a singularity is 0, then the density will thus become infinite because Mass/0 = undefined However, is it possible to have a singularity with a mass of 0? 0/0 is indeterminate, but would it be possible for a singularity to exist even if its mass and volume were zero?", "I want to write applications for Ubuntu. I do not know much about programming but I want develop for Ubuntu. I am trying to learn Python right now. What do you think is the best way to develop apps for Ubuntu? Can you point me to some resources that can help me get started with developing for Ubuntu? Related ." ]
medi_sts_stackexchange_dupe