its not first occurence. after a index i need to get the first   occurence. the question which you are pointing to is the first   occurence without index   i have a sql query which i am trying to modify using String.Replace but my code is replacing where ever it finds brands, how to avoid this  string tempString =    "Select t0.brandid,t0.cold,t0.colm, from brands t0 where brandid=@value";   I want to replace brands which is table name between from and before t0 to tempbrands      int tempindex1 = tempString.IndexOf("FROM "); string tempString1 = tempString.Replace("brands", "tempbrands ");   expected result is Select t0.brandid,t0.cold,t0.colm, from tempbrands t0 where brandid=@value


Concatenate Multiple rows of a table in SQL Server 2014 / SQL Server 2016

I have a table like this :   id  | movie   | actorid | actor   | roleid | rolename  ----+---------+---------+---------+--------+------------------  1   |  mi3    |  121    | tom     |   6    |  actor  2   | avenger |  104    | scarlett|   4    |  actress  2   | avenger |  3      | russo   |   2    |  action director   I'm expecting the output like :  id  | movie   | actorid |      actor     | roleid | rolename ----+---------+---------+----------------+--------+-------------------------- 1   |  mi3    |  121    | tom            |   6    |  actor 2   | avenger |  104,3  | scarlett,russo |   4,2  |  actress, action director   For latest SQL Server version, I saw the STRING_AGG function to concatenate columns or row data. But how can I achieve the expected output with SQL Server 2014 using STUFF ?


How does one approach a integral such as this $\int _0^{\infty }\frac{\left(\ln x\right)^2}{\sqrt{x}\left(1-x\right)^2}\text{dx}$?

I came across $\int _0^{\infty }\frac{\left(\ln x\right)^2}{\sqrt{x}\left(1-x\right)^2}\text{dx}$, how should i approach it and what techniques can i use to solve it?


Story about people trying to recover a ship, but can't because its engine is still operating

I read a short story a long time ago which, for a while now, I've lamented not remembering the name of, because I really enjoyed the concept so much.  I believe I read this sometime in the mid-80s, but at that time I was doing a lot of reading of anthology magazines from the 50s and 60s as well, so it's quite possible (even likely) it was from one of those..  As best I remember, the story is about a couple of space travellers who are attempting to recover another ship that had crashed or gone missing a long time ago.  They find the ship, but they run into problems recovering it because it's embedded itself in a planet/moon and its FTL drive is still apparently active, and a consequence of the active FTL drive is that it alters the physics of all of the surrounding space (the whole planetary system) in such a way that they can't even get close to it to turn it off (and it has enough fuel to keep going for millions more years, so it's not going to stop any time soon).  They also discover that one of the planets in the system has developed life, and the creatures on that planet have evolved to live according to the warped physics of the FTL drive, instead of the normal physics of the rest of the universe.  Ultimately, as I remember, they're forced to give up on the idea of recovering the ship and go on their way.      At the end, one of them comments about how sad it would be to spend one's entire existence cut off from the universe, believing that nothing can go faster than the speed of light (implying that the planet with life that had developed in this environment was actually Earth)   Any help tracking this down would be much appreciated!  I'd really love to read it again...


Can belief in science be considered a form of theism?

Based on the problem of induction, nobody can assert with absolute certainty that the laws of science (i.e. physics, chemistry, etc,...) will hold all the time, in every part of the universe. Believing that that is the case is therefore a form of faith, not knowledge.  Current scientific consensus is that the universe doesn't stretch back indefinitely into the past, but came into existence a finite time ago with the big bang. The occurrence of the big bang and the subsequent evolution of the universe are both driven by the laws of physics. The laws of physics, seen this way, are the first cause of the universe and the higher power that governs it's day to day functioning.    So belief in science requires having faith, and belief in a first cause/higher power, two of the main components of theistic belief. And the laws of science then become some sort impersonal deity, akin to the deity of Deism. One could even envision a science based moral code based on neurological and environmental considerations, and we would then have all the constituents of  traditional religion: Faith, first cause, and a set of ethical laws.   Obviously, this theism is very different than the theism of the Abrahamic religions, especially since the god in question is not personal. But the way I see it, isn't it still a form of theism, with the laws of science/physics as its deity?


Should iOS app logins count toward streak badges?

I recently went away on a trip without my computer. I had a 51 day streak on Spanish Stack Exchange, about half way to my first gold badge.  Realizing that the streak would go away without a login, I downloaded the app, signed in to my account, went on Spanish Stack Exchange and voted a couple of answers up and down to keep the streak going.  When I returned home to my computer, I found out that the streak was gone. I researched this but only found a similar question about the Android app. Is there a way to fix this for the iOS app?


Should you show current state or the state it's about to change to for password visibility?

I'm exploring the idea of adding a hide/show icons for password visibility.   I understand we can just use the words "hide" and "show", but if we were to use icons, should its current state be shown or the state it's about to change to?  Current state:     State it is about to change to:


How to find physical path inside of a C# .NET integration test at runtime?

In order to wrap an integration test around an old legacy process that builds detailed files based on certain inputs, I have the need to dynamically load a DLL by providing the full path to the file.  This test will run on many different developers' machines which do not always share the same physical application directory, but will also run on many servers as it makes its way through a Continuous Integration process, and sometimes multiple instances of the application will be running on the same physical machine. The point is, there's no standard path that can be relied upon to hardcode into this test. What I really need is some mechanism that can tell me the physical path that the test is executing under at the time that it is executing, and then I can use a relative path from there to always reliably find the DLL in the application's installation.  Since this is in a test, I cannot rely on something like HttpContext.Current.Server.MapPath() or Request.ApplicationPath, since Current will be null when the test runs.  Short of writing a hack to deploy the DLL I need to load dynamically to a special folder on the root of any drive that might build and run the application, does anyone know a good .NET strategy to find the physical path of the test at runtime?  I'm using NUnit in a C# Web application, along with Approval Test style assertion, so a simple test that would need to do this would look like this:  [Test] public void ShouldGenerateFileConsistently() {     string pathToDll = FindRelativePathToDllBasedOnPhysicalPath(); // <-- what I need to figure out      string generatedFileContents = OutputManager.GenerateReportUsingDynamicDll(pathToDll);      Approvals.Verify(generatedFileContents); }


Why are .goutputstream-xxxxx files created in home folder?

I find a lot of files with names of the like  .goutputstream-xxxxx   where xxxxx are some alphanumeric characters.  Here is a screenshot of the home folder    Any idea why I should keep these or can I remove and also stop further creation?


I have to show that  $$\int_{0}^{\infty}\frac{x^2}{1+x^5}dx = \frac{\frac{\pi}{5}}{\sin(\frac{2\pi}{5})}$$  I know how to solve almost every polynomial integral. However, this one is not even and I can not see how to prove this. I try different kinds of parametrization. I tried the semicircle from $[0,\frac{pi}{2}]$, from $[0,\frac{\pi}{4}]$ and so on. I still can not solve this integral. I know the residue theorem and also I know that I have to consider the roots of unity of the equation and the solutions are:  $$z_k = e^{i\frac{n\pi}{5}}, n = 1,3,5,7,9$$ for $k = 1,2,3,4,5$  If I use the following parametrization for $R > 1$  $$\gamma_1(t) = t, t \in [0,R]$$ $$\gamma_2(t) = Re^{it}, t \in [0,\frac{2\pi}{5}]$$ $$\gamma_3(t) = -te^{i\frac{2\pi}{5}}, t \in [0,R]$$  Then using L'hopital to simplify the calculation of the residues we can note that the only residue in the first quadrant is $e^{i\frac{\pi}{5}}$.  Then $$\int_{\gamma}f(z) =  2\pi i \mbox{ Res}(f,e^{i\frac{\pi}{5}}) = \frac{2\pi i}{5e^{\frac{2\pi i}{5}}}$$  Also,  $$\int_{\gamma}f(z) = \int_{0}^{R}f(t)dt + \int_{0}^{\frac{2\pi}{5}}f(Re^{it})iRe^{it}dt - \int_{0}^{R}f(te^{i\frac{2\pi}{5}})e^{i\frac{2\pi}{5}}dt$$  As $R \to \infty$,  $$ (1 - e^{\frac{6\pi i}{5}})\int_{0}^{\infty}f(t)dt = \frac{2\pi i}{5e^{\frac{2\pi i}{5}}} $$  Therefore $$ \int_{0}^{\infty}f(t)dt = \frac{2\pi i}{(1 - e^{\frac{6\pi i}{5}})5e^{\frac{2\pi i}{5}}} $$  Still I can not get the correct answer. Why ?


Linux: exit forked child process when parent exits

I'm writing a program in C. The program does fork() once when it starts. What's the best way to let child process die on its own when the parent process exits (without parent killing child process explicitly)?  For example, if I send a SIGTERM to the parent process, the child doesn't exit.


The Problem After updating to Ubuntu 12.04 from Ubuntu 11.10, all video is still blue, whether playing in a browser or a player. Same problem occurs in 11.10 as well. I have tried to uninstall all Flash and re-installed but it makes no difference. What is causing the blue Flash video? Ubuntu 11.10 64bit Ubuntu 12.04LTS 64bit  What it looks like


Ubuntu WILL NOT boot, no matter what i do. Need help!

Ubuntu is not booting from a USB on my Acer V3-571G.  I have tried using a 8GB Sandisk Cruzer memory stick, formatted as FAT32, and this returned a black screen with the 'Syslinux: Peter Anvin et al' error. I used Unetbootin to create the memory stick.   This error always used to happen on my little Acer D250 netbook, and the reason was because the memory stick needed to be formatted as FAT, and not FAT32.  I formatted the memory stick as FAT and made another USB in Unetbootin. This time i was using my 4GB TDK USB drive. The Unetbootin menu came up but it froze when i clicked any of the boot options. Even if i left it past the boot timeout, it would still freeze.  I then used Lili USB creator instead, again with the TDK memory stick, but this doesn't work either. I get to the purple Ubuntu screen with the keyboard symbol and the man symbol, and then it goes onto a black screen with a blinking cursor.  The laptop is in Legacy boot mode with secure boot disabled.  Any help would be greatly appreciated. Thanks.


How to force a math font regardless of any other factors?

I am using Charter for math (mathdesign package) and Bitstream Vera for body text (through XeLaTeX's fontspec package. However, when using things like \text{} in math mode, the text still appears in the Vera font. It's hard to explain without a visual, so here is one now:   $$\Delta v = v_\text{exhaust} \ln \frac{m_\text{initial}}{m_\text{final}}$$   Which returns the following image:    I would like to know how I can make the words 'exhaust', 'initial', and 'final' use the Charter font like the rest of the equation.


Where is a good place to learn classical optics for high school competitions?

I need to learn basic optics for a high school academic competition. Does anyone know any good places, preferably free and online, to learn the basics of optics, like lenses, angles of incidence, etc.? I can't seem to find an MIT OpenCourseWare course addressing the issue.


According to conservation of energy,energy can neither be created nor be destroyed then where did the energy come from? Because there is no creation of energy we can't create


Why is the $\aleph$ hierarchy a discrete hierarchy?

The $\aleph$ hierarchy, I think, is a sequence of infinite cardinals. $\aleph_0$ is $|\mathbb{N}|$, possibly by definition. $\aleph_1$ is the next highest cardinal.  A lot has been written about whether $\aleph_1 = |\mathbb{R}|$ or, equivalently $\aleph_1 = \beth_1$ and how the continuum hypothesis is independent of ZFC.  But there definitely isn't a cardinal $\kappa$ such that $\aleph_0 < \kappa < \aleph_1$.  Why do we know that there's a successor cardinal to $\aleph_0$ / least cardinal greater than $\aleph_0$?    What would break if we insist, by fiat, on the existence of a hierarchy of cardinals indexed by the non-negative reals or non-negative rationals (in the way that $\aleph_n$ is indexed by $n \in \mathbb{N_0}$)? If cardinals aren't primitive things and the existence of a successor falls right out of how they're defined, this question might not make sense.


Prove that if a polynomial f is constant for infinitely many arguments then it is constant.

Let $f$ a polynomial with real coefficients. There exists a constant $ c $ such that $f(x)=c $ for infinitely many numbers $x$. Prove $f$ is constant.   I have no idea how to do this. I started by denoting $f=a_n x^n+...+a_0$ but I have no idea how to continue.


What is the recipient of a question called?

When I ask you a question I am the inquisitor or or the inquirer. But what are you, the one to whom I'm asking the question? Here's the example I'm working with: the children's book "Are you My Mother?"...the hatchling asks that question to many things (animals, objects); I'd love to have one word to describe those animals and things he's posing the question to...the object of the inquirer.


there an expression  i had to show this function is continuos  $$   f(x) = \begin{cases} x\cdot \sin \frac1x,&x\neq 0 \\ 0,&x = 0 \end{cases} $$  while taking left hand limit or right hand     F(0-h) = $lt_{h→0}$ (0-h)(sin 1/(0-h))   in the next step i divided and multiplied sin function by 1/-h and i got answer 1 as  $lt_{x→o}$sin(x)/x  =1  Now that prove the function is discontinuous as Lhl ≠ limit at the point  Can anyone point where i am being wrong or what's wrong in my method. The question provided it's own answer , I'm just asking what's wrong with my method


Let $f : A \to B$ and $g : B \to C$ be functions.      If $g \circ f$ is injective and $f$ is surjective, then $g$ is   injective.    question that correctly proves this theorem, but my proof seems to be different, so I'd like clarification on whether it's correct.  My Proof  We want to show that, for any $b_1, b_2 \in B$, $g(b_1) = g(b_2)$ iff $b_1 = b_2$.  Let $g(f(a_1)) = g(f(a_2))$, where $a_1, a_2 \in A$.  $\therefore f(a_1) = b_1$ and $f(a_2) = b_2$, where $b_1, b_2 \in B$. (Since $f$ is surjective.)  $\therefore g(b_1) = g(b_2)$, where $b_1 = b_2$. (Since $g \circ f$ is injective.)  $\therefore$ $g$ is injective. $\ \ \ Q.E.D.$  I would greatly appreciate it if people could please review my proof and elaborate on anything I've done incorrectly.


The other day, while attempting to snipe an enemy, Dogmeat kept stepping in my way, so I told him to wait, out of the way. After all the action was over, I went and collected my loot, and went on my way. Without Dogmeat.  Fortunately, I remembered where he was, I managed to retrieve him. However, if this happened again, how can I locate Dogmeat, or any of my other followers, diligently waiting for my return?


How do I see my name in the panel in Gnome Shell?

I have Ubuntu GNOME 14.04 LTS and from installation, my name has not appeared in the panel. I have enabled it via dconf in org.gnome.desktop.privacy, but it has yet to appear even after a re-login and restart.  Can I receive some assistance into the cause of this and a solution?  This is where I would like it to appear:


How does Bipolar junction transistor amplifies the voltage?

I was looking at  recently, so if you look at the diagram for op-amp, it's just a bunch of npn and pnp junctions. But how could they come together and work as a voltage amplifier and achieve a \$V_{out}>>V_{supply}\$?  How does Bipolar junction transistor amplify the voltage?


If n friends go to a diner, and take a hat randomly...

If n friends go to a diner, and when leaving, each of them take a hat randomly, what is the probability of "nobody gets his original hat"? My book says it goes to 1/e, but I don't have more explanation...  Can you help me?


Does this seemingly elementary question require König's theorem?

Question  Let $f:\;\mathbb{R}\to\mathbb{N}$ and let $X_n$ be the set of reals mapped to the integer $n$. Show that for some $n,\;X_n$ has cardinality of the continuum.    This is straightforward if we use König's theorem: assuming the contrary, i.e. $\left|X_n\right|<2^{\aleph_0}$ for all $n$:  $$2^{\aleph_0}=\left|\bigcup_{\mathbb{N}} X_n\right|=\sum_{\mathbb{N}}\big|X_n\big|\overset{\text{K.T.}}<\prod_{\mathbb{N}}2^{\aleph_0}=\big(2^{\aleph_0}\big)^{\aleph_0}=2^{\aleph_0}$$ a contradiction.    This feels overkill, but perhaps it is not. Am I missing a more elementary solution to this problem?


Lately, I see more and more code pieces that use the template of:  do {     ... some code ... } while (false);   Why to do this? If I'm not mistaken, the code will run only one time so the loop is seem not to be needed.  My main encounters with this style were in Windows drivers, and low-level operations in some APIs.


Can the definite article be omitted when referring to a person qualified by a noun?

Is there a difference between these references to a specific person:     "The implication is clear: as the psychologist Jonathan Haidt said..."   and     "The implication is clear: as psychologist Jonathan Haidt said..."   The first one uses the definite article and is a quote from Daniel Kahneman's book 'Thinking, Fast and Slow', where the article is consistently used in such references. In the second one I've omitted the definite article. It seems more intuitive for me, a non-native speaker, and is something I would use in my own writing.  Are both expressions equally correct? Are there situations that require the article and vice versa?


Where is the 'I/O Read Bytes' & 'I/O Write Bytes' in task manager in Windows 8?

Where are the 'I/O Read Bytes' & 'I/O Write Bytes' columns in task manager in Windows 8? In Windows 7 there was a list of columns where one can chose the columns to display. I can't find the equivalent in Windows 8?


Do I need a transit visa for London, UK?

I'm Chinese citizen, leaving in Italy and in possession of an unlimited permission of stay in Italy, I flow from MILAN to BEIJING via LONDON with return ticket, everything = OK,  by getting to the BEIJING airport for the return flight via LONDON to MILAN I have got the check-in refused becouse of laps of TRANSIT VISA for LONDON  Can you pls. confirm that I'm exempted from transit visa,   Thanks & Regards


Within an unordered list:
 The lazy dog.

AND The lazy cat.

OR The active goldfish.
   Adding a class or style attribute is permitted but padding the text and adding or changing tags is not allowed.  The page is rendering with Courier New.  Goal is to have text after span lined up.      The lazy dog. AND The lazy cat. OR  The active goldfish.   Justification of the "OR" is unimportant.  The lazy animal text may be wrapped in an additional element but I'll have to double check.


How to link dataframes in ArcGIS or QGIS?

The below image shows a layout in ArcGIS 10.1 with four dataframes.  Each dataframe is of the same geographic area, although they are different images. For example, the top left image is a 1989 DOQ, the top right image is a reversed 1989 DOQ, the bottom left image is a 2012 DOQ, and the bottom right image is a reversed 2012 DOQ.   Is it possible to link the dataframes so that panning the image in one dataframe pans the images in all of the other dataframes (i.e. similar to how you can "Link Views" in Erdas Imagine)? Is this possible in QGIS?


For some network reasons, my previous SSH sessions to server have disconnected. When I create a new session, I find the previous session still exist:    [root@localhost ~]# who root     pts/0        2015-03-25 21:35 (10.1.1.1) root     pts/1        2015-03-25 21:36 (10.1.1.1) root     pts/2        2015-03-26 01:44 (10.1.1.1)   The pts/0 and pts/1 are previous session terminals. And there are still some progresses running on them, such as vim:    root      2953  2906  0 Mar25 pts/0    00:00:01 vim getpasswd.sh   I want to re-login pts/0 to continue running vim progress, Is it possible? How can I do it?


This is a very simple fact to prove, but I am worried that my proof is so simple as to have no chance of being right.      For a vector space $V$, $-(-v) = v$ for any $v \in V$.    Proof. Let $v \in V$. By the additive inverse axiom,  $$v + (-v) = (-v) + v = 0,$$ so $v$ is the additive inverse of $-v$. Since the additive inverse in a vector space is unique, and we denote the a dditive inverse of $-v$ by $-(-v)$, we have $$v = -(-v).$$  Have I skipped any steps?


I noted today that I got -15 points on an .    Going to that answer, I however cannot see where the negative score came from:    How were these -15 points computed?


How can I deactivate iCloud to avoid "MobileMe Services Stopped Working" message?

I keep getting the message MobileMe Service Stopped Working each time I open Outlook 2007. I have to click on the Close Program button in the error message twice each time it shows up while Outlook is trying to load up. Then I am able to use Outlook. I never use my iCloud account and would like to know how I can deactivate iCloud so I do not have issues with my Outlook.


Sklearn - Choosing the right model for supervised learning/classification task

I am beginning to learn how to use scikit-learn and I have a hard time choosing the right model.   Here is my dataset: I have 100 persons. Each person was measured three times: baseline, first event and second event. Each measurement had 100 different markers per person that range from 0.1 to 1000. Additionally I have outcome measurements of each event: outcome can be 0, 1 or 2. My task is to find just a few markers (let’s say 10) that can predict outcome. If I am right it should be: Supervised learning/Classification problem. What model would be the best?   Thanks for your help!


How can I match an element after certain string, but not include it?

I'm using Javascript and I'm wondering how can I use regex to match an element after certain word, and before another sign.  For instance, return 1  from this string  localhost:8080/user/1/somethingelse/   I've tried  /user\/([0-9]*)+\/g   but it returns  user/1/   Any help would be hightly appreciated.


let   $g(x) = \frac{x}{1-|x|}$ for all $x \in (-1,1)$  a) show that $g$ is a bijection from $(-1,1)$ to $\mathbb{R}$  Here is what I have done.  Say $g(x)=y$ so $$y = \frac{x}{1-|x|}$$ iff $$y(1-|x|)=x$$ Therefore, for each y, there exists an x such that $f(x)=y).  So $f$ is a surjection.  Suppose $g(x)= g(z)$ for some $x,z \in (-1,1)$, then  $$\frac{x}{1-|x|}=\frac{z}{1-|z|}$$ iff $$x-z=x|z|-z|x|$$  Then there are four cases, one $x,z>0$ and $x,z<0$ where obviously $x=z$, but for the other two cases, I am only concerned with figuring out one, because obviously the other one follows, but I have gotten to the point where  $$x-z=x(2z)$$ for $x>0$, $y<0$. Am I correct thus far? Where do I go next?  Thank you for any help.


Below is a histogram of some data, the bins are integers the other parameters are irrelevant.     As you can see there seems to be two separate but overlapping normal distributions for odd and even numbers.  The probability of being an even number is 1/3, likewise 2/3 for an odd number.  I have no idea of actual statistical significance of this to be honest so I'm trying to find out what it even is to learn more, but I can't find anything, I've tried so many search terms to find this and even reverse image searches but all I get is information about multimodal distributions etc. and I can't find anything about when the multimodal distributions actually overlap in this manner   Is there a name for this?  For those interested the data is from 1,000,000 randomized games of goofspiel (N=13) using the matlab script   N = 1000000; random = zeros(1,N); for i = 1 : N     pc = randperm(13);     p1 = randperm(13);     p2 = randperm(13);     random(i) = sum(pc.*sign(p1-p2)); end histogram(random,'BinMethod','integer')   A more general (though artificial) example would be the following  a = [1:50 50:-1:1]; b = normpdf(linspace(-2,2),0,0.5).*50; c = a; rng('default') %For reproducibility d = logical(randi([0,1],1,length(a))); for i = 1:length(c) %There's gotta be a way to do this without an explicit loop     if(d(i))          c(i) = b(i);     end end bar(c)     Like the first example there's two distributions overlapped (triangular and normal), but in this case instead of alternating at each point, it's random.  I know this is an exaggerated example (and not even a histogram) but there has to be examples of this sort of thing actually happening with statistical data right? Then again maybe not, or it's completely irrelevant?  The actual question is two-fold: The general question - What is this type of "thing" called, if anything? - so that I (or anyone else that might come across it) can learn more about it and if any adjustments need to be made. The question as it specifically relates to my first dataset - should I separate the odd and even values or fit a normal distribution to the whole set?


Application's menu missing from menu bar

I did a fresh install of Ubuntu 16.04 and found that menus for many applications do not show on the menu bar, as it is configured in 'Settings > Appearance'. For example: menus for Filezilla, Geary, Libreoffice Writer and Software center do not show. I have not tested every app, but I can tell you that browsers (Chrome, Firefox) do have their menus on the menu bar. In addition, if I change the configuration to show menus "in the window's title bar", they don't show either.  Any clues?  Best regards.


Should there be spaces between a number and its measurement unit?

Not sure if this is a style problem or a grammar problem    64 m 59.8 km 210 ft  37.2 mi   Are spaces necessary between digits and measurement unit?


How do you perform the equivalent of Oracle's DESCRIBE TABLE in PostgreSQL (using the psql command)?


Proving a reduction formula for the antiderivative of $\cos^n(x)$

I want to show that for all $n\ge 2$, it holds that $$ \int \cos^n x\ dx = \frac{1}{n} \cos^{n-1} x \sin x + \frac{n-1}{n}\int \cos^{n-2} x\ dx. $$ I'm not even getting the result for the induction base $(n=2)$: Using integration by parts, I only get $$ \int \cos^2 x\ dx = \cos x \sin x + \int \sin^2 x\ dx. $$ I'm suspecting that I need to use some trigonometric identity here.


Suppose we have bounded, monotonically decreasing $\epsilon_i$, such that as $i \rightarrow \infty, \epsilon_i \rightarrow 0$.   How can I show that $\lim_{n \rightarrow \infty} \frac{\sum_{i=1}^\infty \epsilon_i}{n} = 0$? Is this even necessarily true? Tried Kronecker's lemma, as well as comparison tests to no avail. Seems like a pretty fundamental fact to prove.


How do I evaluate this sum(involving the floor function)?

$$ \sum_{i=1}^N\left\lfloor\frac{N}{i}\right\rfloor $$ Is there a closed form expression to the above sum? (Mathematica doesn't give me anything)


How to find slimes in minecraft 1.10.2 without cheating or external tools

I've been looking for slimes for some time now and I don't seem to find any in the large room I built. I need to know how to easily find them without "cheating" whether they are in swamps or just underground


Stuck in a login loop after downloading NVIDIA drivers

Yo! I'm a newbie to Linux and need some easy to understand help on trying to fix my login loop after attempting to install NVIDIA drivers on my dual booted system. Most of my attempts at trying to solve this issue got me nowhere. Help?  My system dual boots to W10 (taking up 1.6 TB) and Ubuntu (400 GB), with both OS's being 64 bit.   IMPORTANT NOTE:  I can only connect to the internet through my Android phone tethering as of right now, so I don't know whether that can cause issues or not in downloading stuff.


UK Visa Refund form after cancelling my application

I had a VISA Appointment and I cancelled it day before (I could not reschedule as its within 24 hours ) and claimed for refund.  I had to cancel as I have not received invite from from the concerned person as they are on holiday due to Christmas and new year. On many other forum and other question like here  I see people have mentioned that a refund letter has to be filled and submitted but I did not see any such information when I cancelled my VISA application  My question is will I get a refund? and is the refund form mandatory, if yes how di I fill it?


Given $a,b$, what is the maximum number which can not be formed using $na + mb$?

e.g. given two numbers $5$ and $6$ the maximum number is $19$, as after $19$ each number can be formed using equation $5n+6m$ by putting different (non-negative) values for $n$ and $m$.     Such number is not possible for $4$ & $6$.     I am not sure how to go-forward. The only thing I have till now is that the number is possible only if the given numbers are pseudo-prime. Any help is appreciated.


Why does the value of this List change when I change another List?

hi i already had a similar problem but unfortunately i can't figure it out how to solve it. I have a List<int> tmpList and a List<int> tmpSpeicherListe where i want to copy my tmpList so i can edit my tmpList and reset it when i need to. I want to edit tmpList multiple times in for loop and reset it everytime while loop repeats but if i remove one value of tmpList at position x it removes the value of tmpSpeicherListe at position x too. So where should i place the declaration of List<int> tmpSpeicherListe = tmpList; or where else is the mistake? ps: this is just a part of my code //...  List<int> tmpSpeicherListe = tmpList;            //copy tmpList int basisPosition = 2; int counter2 = 0;  while(counter2 + 2 < tmpList.Count - 1) {     basis = tmpList[basisPosition];     for (int m = 1; m < tmpList.Count - basisPosition; m++)     {         int speicher = tmpList[basisPosition + m];         bool vorhanden = false;         for (int n = 0; n < intKombinierbar[basis].Length; n++)         {             if (intKombinierbar[basis][n] == speicher)             {                 vorhanden = true;                 break;             }         }         if(vorhanden == false)         {             tmpList.RemoveAt(basisPosition + m);        //edit tmpList BUT tmpSpeicherListe changes too         }     }       if(tmpList.Count <= i)     {         tmpList = tmpSpeicherListe;            //reset tmpList         counter2++;         basisPosition = 2 + counter2;                                                      }     else if (basisPosition == tmpList.Count - 2)     {         großeKombinationen.Add(tmpList);         tmpList = tmpSpeicherListe;            //reset tmpList         counter2++;         basisPosition = 2 + counter2;                                                      }     else     {         basisPosition++;     } } //...


What is the formal definition of addition?

Can someone provide a formal definition of addition for the natural numbers directly from the axioms of ZFC? If this can't be done, why not?


I'd like to be able to rotate/pan the view while anchored in a single point, as if I were a character looking around the space by moving my head. Is that possible in Blender?


NullPointerException, setting adapter on null object

I'm trying to get a Staggered Grid layout using a RecyclerView in one of my ViewPagers fragments. When I start the app, it immediately crashes and throws this error:     Caused by: java.lang.NullPointerException: Attempt to invoke virtual   method 'void   android.support.v7.widget.RecyclerView.setAdapter(android.support.v7.widget.RecyclerView$Adapter)'   on a null object reference               at xxx.HomeActivity.onCreate(HomeActivity.java:39)               at android.app.Activity.performCreate(Activity.java:5990)               at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)               at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)   My first thought is that this might be caused by the order in which the views are loaded but i'm not sure. I have a ViewPager with 2 fragments. I have the RecyclerView declared in the first fragments xml, like so:  res/layout/fragment_home.xml:  <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"             android:layout_width="match_parent"             android:layout_height="match_parent" >      <android.support.v7.widget.RecyclerView         android:id="@+id/home_grid"         android:layout_width="match_parent"         android:layout_height="match_parent" />  </RelativeLayout>   Heres the relative parts of my Activity:  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_home);     ButterKnife.bind(this);      setupToolbar();     setupTabs();      HomeGridAdapter adapter = new HomeGridAdapter(Contacts.createFakeContacts(20));      RecyclerView recyclerView = (RecyclerView) findViewById(R.id.home_grid);      recyclerView.setAdapter(adapter);     recyclerView.setLayoutManager(new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL));   }   Here is the first fragments Java file:  public class HomeFragment extends Fragment {  public static final String ARG_PAGE = "ARG_PAGE";  private int mPage;  public static HomeFragment newInstance(int page) {     Bundle args = new Bundle();     args.putInt(ARG_PAGE, page);     HomeFragment fragment = new HomeFragment();     fragment.setArguments(args);     return fragment; }  @Override public void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     mPage = getArguments().getInt(ARG_PAGE);  }  @Override public View onCreateView(LayoutInflater inflater, ViewGroup container,                          Bundle savedInstanceState) {     // Inflate the layout for this fragment     return inflater.inflate(R.layout.fragment_home, container, false); }   }   I dont think i need to post the RecyclerViews adapter code as I dont think that is part of the issue, but if its needed I can.   Any input on this issue is appreciated!  EDIT: As requested, heres my activitys xml file:  <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"             xmlns:tools="http://schemas.android.com/tools"             xmlns:app="http://schemas.android.com/apk/res-auto"             android:layout_width="match_parent"             android:layout_height="match_parent"             android:orientation="vertical"             tools:context=".HomeActivity">  <android.support.v7.widget.Toolbar     android:id="@+id/toolbar"     android:minHeight="?attr/actionBarSize"     android:layout_width="match_parent"     android:layout_height="75dp"     style="@style/ToolbarStyle"     >      <android.support.design.widget.TabLayout         android:id="@+id/tab_layout"         android:layout_width="match_parent"         android:layout_height="match_parent"         app:tabMode="scrollable"/>  </android.support.v7.widget.Toolbar>  <android.support.v4.view.ViewPager     android:id="@+id/viewpager"     android:layout_width="match_parent"     android:layout_height="0dp"     android:layout_weight="1"/>  </LinearLayout>


command 'll' crashes terminal after rellocating /home

I just move my /home and /tmp to another partition and after that I cannot call the commands ll or ls -l without crashing the console. anything wrong? thank you


Non static method 'getText()' cannot be referenced from a static context

I can't figure out what I've done wrong with this code for a "Higher or lower game" error below  package com.test.higherorlower;  import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.EditText; import android.widget.Toast; import java.util.Random;  public class MainActivity extends AppCompatActivity {  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_main);   }    public void guess(View view) {      Random rand = new Random();     int n = 0;       EditText guess = (EditText) findViewById(R.id.number);      int number = Integer.parseInt(EditText.getText().toString());      if (number > 20) {         Toast.makeText(com.lastineindustries.higherorlower.MainActivity.this, "That number is above 20.", Toast.LENGTH_LONG).show();     } else if (number < 0) {         Toast.makeText(com.lastineindustries.higherorlower.MainActivity.this, "That number is negative.", Toast.LENGTH_LONG).show();     } else if (n > number) {         Toast.makeText(com.lastineindustries.higherorlower.MainActivity.this, "Higher.", Toast.LENGTH_LONG).show();     } else if (n < number) {         Toast.makeText(com.lastineindustries.higherorlower.MainActivity.this, "Lower.", Toast.LENGTH_LONG).show();     } else if (n = number) {         Toast.makeText(com.lastineindustries.higherorlower.MainActivity.this, "Correct.", Toast.LENGTH_LONG).show();     } }   }  error message is in the line  int number = Integer.parseInt(EditText.getText().toString());   specifically in the getText part. The actual message is also the title. There is also another error in the line   } else if (n = number) {   apparently it wants a Boolean but got an int variable any help would be greatly appreciated.


What does the negated comparative construction “not so much X as Y” mean?

On page 140 of , author Bruno Bettelheim writes:     The verses Falada speaks three times—each time in response to the goose   girl’s lament on encountering its head: “Oh, Falada, thou who hangest   there”—do not so much bemoan the girl’s fate as express the helpless grief    of her mother.  Falada’s implied admonition is that not only for her sake,   but also for her mother’sd, the princess should stop accepting passively   whatever happens to her.  It is also a subtle accusation that, had the   princess not ated so immaturely in dropping and losing the handkerchief and   in letting herself be pushed around by her maid, Falada would not have been   killed.  All the bad things that happen are the girl’s own fault because she   fails to assert herself.  Not even the talking horse can help her out of her   predicament.   I really had difficulty in understanding what that paragraph's first sentence means, the one that without the part surrounded by dashes runs      The verses Falada speaks three times do not so much bemoan the girls fate as express the helpless grief of her mother.   Does it mean one of these three?   Falada doesn't bemoan the girl's fate as her (the girl's) mother does. As Falada expresses her (the girl's) mother's helpless grief, he doesn't bemoan the girl's fate that much/ Although Falada expresses her mother's grief, he doesn't bemoan the girl's fate that much/   I thought if express were expressing, it would make more sense. Whatever it is, I still don't understand what it means.


As a British citizen , married to a non EU who has UK permanent resident card can travel together to italy?

My husband is non-EU , but holding a Uk residence permit card without bearing or written in Resident Card  as member of EEA family member. Can he still travel with me in Italy ?


Functions satisfying Mean Value Theorem in a special way

Let $A$ be the set of all functions $f:\mathbb R\to\mathbb R$ that satify the following two properties:  $f$ has derivatives of all orders, and  for all $x,y \in \mathbb R$, $f(x+y)-f(y-x)=2xf'(y)$   Show that any $f \in A$ is a polynomial of degree $\le 2$. One proof is very easy. Any polynomial of degree $\le 2$ belongs to $A$ is easy to prove. Please help me with the proof of the converse : No other functions belong to $A$.


I'm trying to disable WP_DEBUG_LOG if and only if debug.log exists. I'd like to hook into wp_footer and test if the file exists and if so disable my debug log. All I've found though is that WP_DEBUG_LOG is a constant and can only be changed from the wp-config.php file which is too early for my case. Is there a way to change it from a constant on install and keep it working as normal?   My only other thought is to create an option on install in the options table and just check it every time wp-config loaded to see if the value has changed but I was wanting to avoid that.   Granted I could check if the file exists before I define WP_DEBUG_LOG but somebody would have to view a page twice before debug log actually exists and is detected by the file_exists() (since it's run very early) which is not optimal.  Does anybody know of a workaround to programmatically turn off WP_DEBUG_LOG?


What are the weight loss benefits of splitting meals into smaller meals throughout the day every couple of hours?

Are there any weight loss benefits for splitting meals into smaller meals, other than getting less hungry because of more frequent consumption? Apparently metabolism increases, but this is deemed a myth.


Which duplicate questions should be closed?

When a question (probably with several answers) that was asked a long time ago gets bumped via an edit or another answer sometimes it is discovered that there are duplicate questions. In most cases the questions get closed very rapidly.  Take, for instance this question:  which was asked on Feb 27 2011. Yes, it did have duplicates which were pointed out within 5 minutes of asking. The question was not closed until today (Dec 20 2012) when someone .  Looking through the related/duplicate questions posted as comments to the question, I found that most of them are not closed.  My questions are, if all these other questions have been detected as duplicates then which of the questions should be closed?  a. Those that were asked at a later date?    b. The one with fewer answers?    c. The one which was just bumped?    d. Some other criteria?


PWM control of Peltier with Arduino+Thermistor

I currently have  and would like to add automatic control over the PWM based on a thermistor reading. Any insights?


Something in Java that is (similar to) parameters

In Windows you can start .exe files with certain parameters to do certain tasks like:  shutdown.exe -s   Is there anything like this in Java, I know that I can make a terminal input with a Scanner function, but what if I want to start the application invisible/not from at terminal but still be able to tell the application something.


Is there any way to include a comment in a referenced cell in Excel?

I have two Excel spreadsheets:   The master sheet which has tables of data A second sheet which references certain cells from the master sheet in order to collate certain data.   I wanted to know if there’s a way to be able to have the referenced cells also copy the comment on the master sheet over?


When performing Confidence Interval estimation, can I assume that the data comes from different distributions other than the normal distribution?

While studying confidence intervals, every example I have gone through assumes that the sample data comes from the normal distribution of the population. So, for the confidence interval, do I have to assume that the data comes from the normal distribution?


When a question was voted to Leave Closed, does it return to the Reopen Votes review queue after being edited?

In some [closed] questions, an edit may not be enough to the community consider it to reopening, so it is voted to Leave Closed three times. Therefore, the question will no longer be on the Reopen Votes review queue.    If the question is edited after three Leave Closed votes, does it return to the Reopen Votes review queue?


A lot of good command block pros use coordinates, but my computer is a lenovo 2-in-1. How can I still check my coordinates?  Thanks.


"to require someone to do something" vs "to require that someone do something"

Professor required his students to return their papers typed.      vs        Professor required that his students return their papers typed.      Which of the examples is correct? Do they have the same meaning? What is the preferred usage?   and  do not mention any usage differences


Hey guys so I have a form with two text inputs, when users fill it in, the data is inserted to a database like this..  $sql = "INSERT INTO $user (note_name, note_body, creation_date)         VALUES ('$name','$note','$date')";   However I am having a problem where when an apostrophe is entered as part of the text input, I get "Error in SQL syntax".. I believe that it is taking the apostrophe as part of the SQL query, right? So say if I enter "Bob's Computer" for the $note variable, the apostrophe in "Bob's" is closing of the apostrophe's around the variable?   Is there any way to resolve this?


how to change folder name in ubuntu14.04

when I try  to access to a folder using the terminal I got this message : "no such file or directory" this image will  this image explain every things    I try  to renamed by command "mv ",the same problem   think for helps


How can I deduce/identify an app from a notification icon?

I'm concerned about an app on my child's phone. I saw an app icon in the notification area that looked strange (Andy Android head, slightly tilted as its icon).  How can I find out what app it is from just having seen that icon in the notification bar?


I am using Ubuntu Natty on my laptop. While unplugged screen fades out, gets a little bit darker. It is great for the battery.   The question is how I can adjust the time before the fades out. Now it is something like 5 seconds.  When I read I must hold my finger on the touchpad in order to be not annoying of the brightness shifts every time.   1 or 5 minutes should be better.  I looked for it in Compiz configuration with no success....  Thank you in advance.


Else code is executed even if condition is true

I have a small problem where even the output shows that condition is met but in the if-then-else the else block is executed.  import java.util.Scanner; class temp {   public static String name;   public static String gender;   public static String type;    public static void main (String args[]) {    Scanner inp = new Scanner(System.in);    //Get Input   System.out.print("Are you male or female (M/F): ");   gender = inp.next();   System.out.println("");    //Check if it is valid option   if (gender == "M" || gender == "m") {     gender = "Male";   } else if (gender == "F" || gender == "f") {     gender = "Female";   } else {     System.out.println("Incorrect keyword " + gender + " detected. Please try again");     System.out.print("Are you male or female (M/F): ");     gender = inp.next();     System.out.println("");   }    //Print Output   System.out.println(gender);   }  }   I am beginner so any help will be appriciated P.S: Sorry for wrong indents


I am trying to download flareget download manager via wget I get error  wget  http://www.flareget.com/files/flareget/debs/amd64/flareget_2.3-24_amd64(stable)_deb.tar.gz bash: syntax error near unexpected token `('   Why is that error coming and what is the solution for that?


C# deployment on whatever machine X86, X64 or AnyCpu

I am a C# programmer. In my company we develop a program that, with a single executable, is deployed on various machines. My boss says that the only way to do that is to make a X86 executable that if working on X86 machines will surely work on X64 too. So I would like to know: is this the correct? And what are the drawbacks of having the same exe working on X86/X64. In any case what's the AnyCpu setting for.  Additionally since most of the IT companies diversify in X86/X64 wouldn't it be better?  Thanks Patrick


I dunno since when, but upload of PDF images fails, this hurts especially on tex.SE.  Could this be an effect of an updated /etc/ImageMagick-6/policy.xml on the imgur server?  At least on my Ubuntu 18.04 LTS machine, this file was modified two weeks ago.


In my following python code  # coding: utf-8 # generate.py my_locale = [             {                 'tag':'test_tag_long__body',                 'locale':'en_US',                 'text': u"Hello,
\n"                         u"\n"                         u"
\n"                         u"\n"                         u"We’re contacting you.\n"                         u"\n"                         u"
\n"                         u"\n"                         u"Sincerely,
\n"                         u"\n"                         u"
\n"                         u"\n"                         u"Team
\n"             },             {                 'tag':'test_tag_long__subject',                 'locale':'en_US',                 'text': 'Important information'             },         ]  print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" print "<strings>" for item in my_locale:     print "<string>"     print "<tag>" + item['tag'] + "</tag>"     print "<locale>" + item['locale'] + "</locale>"     print "<text><![CDATA["     print  item["text"]     print "]]>"     print "</text>"     print "</string>" print "</strings>"   When I run it as python generate.py, it runs fine with no error. However, whenever I pipe or redirect output, it gives error  python generate.py | pbcopy Traceback (most recent call last):   File "generate2.py", line 34, in <module>     print  item["text"] UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 20: ordinal not in range(128)   Am I missing anything important here?


I have set up a View to show a list of stories, and then set up an attachment to my View that puts the first 4 stories at the top of the View styled differently. I need those 4 to only show on the first page of items. Every other page will show the normal styling without the top 4. I have created a custom module using the following code. However, now every item is showing on one page. I have set number of items for the pager in the main view to 10 with an offset of 4, and in the attachment it is set to 4. Any suggestions?  <?php /**  * Implements hook_views_pre_build().  */ function custom_stories_views_pre_build(&$views) {   if($views->name == 'stories' && $views->current_display == 'block_1') {     // if 'attachment_1' is not defined, we assume it is the first page.     if (empty($_GET['attachment_1'])) {       // The offset number y should be equal to the number of items on       // attachment. If we want to keep the total n items on list, the       // number of items on main display should be (n - y).       $item_num = $views->get_items_per_page() - $views->get_offset();       $views->set_items_per_page($item_num);     }     else {       // Remove attachment for other pages.       $views->is_attachment = TRUE;       // We don't need to handle the offset anymore.       $views->set_offset(0);     }   } }


How to redirect all http traffic to https

I am using nginx and would like all http traffic to become https using nginx. can someone post an example for nginx config file?  Here is mine. it's not working and i don't have a lot of nginx exprience:   Thanks!


Piping commands, modify stdin write to stdout

echo Hello World | nano - | less   I want to modify Hello -> Goodbye while in the the text editor.  It does not have to be with nano. I am stuck with nano reading stdin but requiring me to write to a file (writing to - creates a file named -)


I'm having difficulty in understanding . How can a proton which has slightly less mass than neutron transform into a neutron, positron and neutrino?   Form where does the extra mass for neutron,electron and neutrino come?  Is it that during the decay some of the binding energy gets converted into mass?


How do you post to Stack Overflow without fear of being judged?

I have tried posting on Stack Overflow a few times, and I find it somewhat challenging to put together a question that people will like.  It seems a large chunk of people on here have many thousands of reputation points, so I often feel like a fool in comparison. I am a very anxious person and I have a serious fear of being judged by other users, who typically vote my question into the red very quickly, causing me to scramble to change it to meet their comments' requirements. It seems that this fear is part of the mechanism that Stack Overflow uses to get people to write better posts. The problem is, it's taking me some time to get to the point where I can ask good questions. I know I'm going to keep making people mad, until I've got the hang of this, so how do people get over this fear as beginners?


Both Eigenvalues and Operators are "Observables"?

I am having a bit of difficulty wading through the what seems to be multiple usages for Observables in Quantum Mechanics.  "" However it seems as if the observables are actually the eigenvalues of the operator:  as well as, according to wikipedia "a system observable is a measurable operator, or gauge, where the property of the system state can be determined by some sequence of physical operations" . But here is a prime example of where they are calling the operator $O$ an observable, but as it "operates" on some vector and there are eigenvectors and eigenvalues (the observables), associated, I don't understand why they are using observables for the operator as well . I can see that observables are associated to operators, but I don't see why they are called observables.  Any help is appreciated.


Prove that the interval $ \ [0,2)$ and $ \ [5,6) \cup [7,8)$ have the same cardinality

Question:  Prove that the interval $[0,2)$ and $[5,6) \cup [7,8)$ have the same cardinality by constructing a bijection between the two sets. You can add a graph to support your argument.   I tried graphing a function with domain $[0,2)$  and target space $[5,6) \cup [7,8)$ but I can't come up with an explicit formula. Will the function be linear?


I have Trek 1.1 with currently 700*23C tyres.  I need to replace them but the one available in market are 700*28  Can I use this size as replacement?  If yes, what'll be advantage and disadvantages?


Is every metric space with countable base a separable metric space?

Theorem: Every compact metric space $K$ has a countable base and therefore $K$ is separable.  A: Since every infinite subset of $K$ has a limit point in $K$ as $K$ is a compact metric space, it follows that $K$ is separable and since every separable metric space has a countable base so does $K$. This proves the theorem. Now, let's say that this A is not known to us so we proceed as below:  Choose $\delta \gt 0$, Clearly $K\subseteq \cup_{x\in K} N_\delta (x)$. Since, $K$ is compact, there must exist a finite subset $K_f\subset K$ such that $K\subseteq \cup_{x\in K_f} N_\delta (x)=B$ Let $G\subseteq K$ be any open subset of $K$. For some $t\in G$, $\exists \epsilon_t\gt 0$ such that $N_{\epsilon_{t}}(t)\subset G$.  Clearly, $t\in B$ and hence $d(t,x)\lt \delta$ for some $x\in K_f$  If $a\in N_\delta (x)$ then $d(a,x)\lt \delta$  Hence, $d(a,t)\le d(a,x)+d(x,t)\lt 2\delta$  Since $\delta\gt 0$  is arbitrary, we choose $\delta =\epsilon_t/2\implies d(a,t)\lt \epsilon_t\implies a\in G$. Thus we have proved that for any $x\in G, x \in N_\delta (x) \text{(for some $\delta \gt 0$)}\subset G$. Hence, $B$ is a countable base of $K$.  I am stuck at proving (if this is true at all):  $K$ has a countable base $\implies  K$ is separable. If this statement is not true, then $A$ can be employed to prove $K$ is separable. Please help. Thanks.


Why can't the determinant of a rotation matrix be $-1$?

I proved that the determinant of a rotational matrix(which represents a rotation in 3D) must be $+1$ or $-1$, but I am not sure why it can't be $-1$.  I proved it using the fact that the Matrix must be orthogonal, therefore the determinant squared must be $1$.


Automatically switching from 9V battery to DC wall adapter on insertion

I have a simple circuit that runs off of a 9V battery. I'm re-designing it so that it can also run off of an external 12V DC source (ie: a wall adapter). I want to design the circuit so that if both the battery and the wall adapter are connected simultaneously, the wall adapter is used, and the battery is effectively disconnected from the circuit.   I've found a , but they , and since it could be a non-rechargeable (ie: alkaline) cell, this could be disastrous.   I've considered the using a , but I'm not quite sure how to start. How would I go about designing such a circuit?


To know is my USB stick connected to USB 3 port

I have connected my USB3 memory stick to computer port. I got 23 MB/s speed while copying to USB memory. But I'm not sure it is connected to USB 3 and not USB 2 port on PC. I'm expecting higher speed. How to know my USB device is connected to USB 3 port on PC on Windows 10 machine?


Could we make a contraction of has if it is a main verb?

I real feel confused about ('s) followed by a noun it may be /is / or may be /has / such in this example : she's a baby .


While reading up on todays match, there was this line:     Thomas Muller wants a penalty before Algeria counter and have a chance but Germany survive. Breathless!   I would have written this as either before the Algerian counter or before Algeria counters and has.  Is there some grammar rule or even basic knowledge I'm missing, or is this phrasing special to sports reports and possibly known to be off?


How much a game can borrows from a franchise before becoming a fangame/infringing the copyright

Let's say you like the theme/world of a franchise, for example SpongeBob SquarePants, and you want to make it into maybe a business game where you hold an underwater restaurant. Make burgers, invent recipes, have fishes as customers etc. How much can you borrow from the original franchise before crossing the red line ? I know that the names are the first to be copyrighted, but if for example your cook looks like a yellow square sponge, is that an infringement ? Even more, if you want to implement the concept of "Special Formula" as in the anime (without naming it in the same way), is that an infringement ?  Thanks.


If Z/pqZ* is the set of all integers g mod pq with gcd(g, pq) = 1, under multiplication, why can't this group be cyclic? I've looked at the order of the group, which, if I'm correct is (p-1)(q-1). This doesn't help me much. I'm supposed to show that the group cannot have an element with that order, but I can't seem to do this. I've looked at a few small groups like Z/15Z*, and the only think I've noticed is that all the elements have even order, but this helps very little as (p-1)(q-1) always will be a multiple of four.


How to know maximum ram that your H/W and Win version supports?

Hello All,                  Firstly i DO NOT want to sound redundant and tedious here but is there a very simple way to actually know the maximum amount of RAM your laptop supports.      I have been reading a lot about the limitations on Win 32 bit and all.     I use a 2 gb RAM on a WIN 7 32 bit OS and Dual core Processor.   And also if i install a 2GB with a 4GB RAM of the same clock speed, how would that affect the performance?


Difference of two positive definite matrices

Let $A= a(i,j)$ and $B= b(i,j)$ be ($n\times n$) matrices that are positive definite such that $a(i,j) < b(i,j)$.  Let $C= c(i,j)= b(i,j) - a(i,j)$, then $C$ is also positive definite. Why or why not?


If a Hilbert space is linearly isometric to a Banach space, will the Banach space be a Hilbert space?

Question: Given two Banach spaces $X$ and $Y$, if there exists an onto linear isometry $T:X\to Y$ and $X$ is a Hilbert space, is it true that $Y$ is a Hilbert space?  Intuitively this seems true to me. To prove this, one just need to construct an $\langle\cdot, \cdot \rangle$ on $Y\times Y$ and show that it is an inner product.


More consistent and contrasted color scheme for the top bar indicators

The  color scheme for the suggested edit indicator and the moderator/10k flag indicator is:   red #800000 for suggested edits ; orange #fe7a15 for flags ; light blue #1e7ecc for the moderator inbox.   I find the contrast of the suggested edit indicator poor. (It's the old color scheme from MSO and I found the contrast poor then.) I also find it inconsistent that the moderator inbox and the moderator flag indicator have completely different colors.  Please switch the flag indicator to the blue shade used for the moderator inbox indicator. This frees orange as a color for suggested edits, which is what it was on most sites before the top bar overhaul. (Alternatively, the fairly similar beige (?) that was used on SO could be used instead.)  I'm not hung on this color choice; what I really want is better contrast for the suggested edit indicator, and the same color for both moderator indicators.


hide system databases sql server management studio

I have installed sql server express 2008 and also sql server management studio. I've successfully configured remote connectivity and created a database user and password. my problem is that in the remote sql server management studio - i want the user to only see the database i assign to them and not see System Databases  I've noticed that the sa login also appears in the folder tree in my remote session which i do not want  How do I go about hiding the system databases as well as logins so that the remote connection only sees logins and database relevant to them


Identify a movie from the 80s with a crystal mask and bleeding tree

I'm looking to identify an 80s movie. It was kinda like Mad Max. All I can remember is the main character had a crystal mask, and when he put it on he was in front of a tree, which bled when he hit it with an axe. Then he pulled the mask off and he was returned to where he was before he put on the mask.


I'm reading the datasheet of a PSRAM (available ). In the top-right hand corner all the pins are listed. Some of the pin names end with a hash, e.g. LB#, OE#.  What does the # notation mean for pins?


I currently have a tab delimited text file formatted like this:  David   Webb    Box 34 Rural Route 2    Nixa    MO  65714   (417)555-1478   555-66-7788 09-13-1970 Martha  Kent    1122 North Hwy 5    Smallville  KS  66789   (785)555-2322   343-55-8845 04-17-1965 Edward  Nygma   443 W. Broadway Gotham City NJ  12458   (212)743-3537   785-48-5524 08-08-1987   I'm trying to format the dates like September 13, 1970 instead of 09-13-1970  What I've been trying to do is cut -f 9 file > tmpfile and then using   date -f tmpfile "+%B %d, %Y" > date   but it keeps saying   date: invalid date ‘09-13-1970’ date: invalid date ‘04-17-1965’ date: invalid date ‘08-08-1987’   what am I doing wrong?


How to get variable from def function to global?

I've defined a function, but I 'm not able to call the variable from define function to global. Please help me to solve this problem. Here is my code: def pdf_btnClicked():     PathOfPDF = askopenfile()     PDFFILE = PathOfPDF.name     print(PDFFILE)  book = open(PDFFILE, 'rb')


What experiment would disprove string theory?

I know that there's big controversy between two groups of physicists:   those who support string theory (most of them, I think) and those who oppose it.   One of the arguments of the second group is that there's no way to disprove the correctness of the string theory.  So my question is if there's any defined experiment that would disprove string theory?


"Who has" or "Who have" when referring to a collection of people in a department

I have spoken with Education Unit who has requested a contract.  I have spoken with Education Unit who have requested a contract.    Which of the above is most acceptable in British English?


I made the experience that flags I place for marking a question (or answer) as low quality gets disputed very often. So I think I must have some sort of a misunderstanding on when to use them.  For example, I marked the question  as low-quality, which then got disputed.  The question later got closed due to "put on hold as unclear what you're asking", so there was definitely something wrong with this question. However for me it was clear what he was asking; it was just hard to understand what he was doing.  So when should I use them then? If I find a question to be really low quality, but everything seems fine to me, why not use this flag?


Which API should I use to perform periodic data synchronizations (other than streaming)?

I have the need to synchronize the data in certain Salesforce tables (user, account, opportunity, lead, task, contact, etc.) to a local database. For reasons that I won't go into here, I can't use the streaming API. I want to kick off a local process every X minutes that will:   Go through each of the tables on my list Insert any new records Update any existing records that were updated Delete any records locally that were deleted on the server (either deleted directly or indirectly (e.g. through a foreign key relationship, like when an account is deleted its associated tasks are deleted as well).   Can you please offer advice on what API's might be good to use here, and whether one stands out more than the others? Are there any specific design recommendations that might be useful for achieving this goal? Or is there really no practical difference between what REST vs SOAP can do?  It comes down to what is the easiest to maintain/implement? Is there some other route that might be beneficial to use (example: bulk data load to start out followed by outbound messaging tied to all of the objects in question to get updates/inserts/deletes)?   I am using C#/.net.


When should a blender be used instead of a food processor or instead of a juicer? I'm planning on investing in one of them. I would use if for making smoothies and beverages. I've got a Magic Bullet which I put frozen berries in, but find the consistency is too thick to drink.


I posted here an issue with my Thinkpad P51:   Battery life is just 2.5 hours, but should be around 8 hours as Lenovo state.  Someone on lenovo forum suggest to disable nVidia, as I am using Intel gaphic (see last response).  Basically he suggest:  "If You turn off nVidia card in BIOS everyhing will look the same if You have configured everything (drivers etc) to use Intel graphic. No matter which display You have."  My question is: can this help and if yes, how to do this? Because as I remember I just install Intel graphic.  Thanks


I was playing around with Euler's identity   $$\begin{align}e^{i\pi}&=-1\\\\\frac{\log{(-1)}}{i}&=\pi\\\\\frac{x \log(-1)}{i}&=\pi x \end{align}$$   And when I had $x=2$  $$\frac{\log(1)}{i}=2\pi$$Which is equivalent to $$\frac{0}{i}=2\pi$$  How can this be?


RENAME DATABASE sample TO sample_db; 1 queries executed, 0 success, 1 errors, 0 warnings Query: RENAME DATABASE sample TO sample_db Error Code: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DATABASE sample TO sample_db' at line 1 Execution Time : 0 sec Transfer Time  : 0 sec Total Time     : 0.001 sec


Cast List type so that one function can take in a more general type of list

Suppose my class hierarchy is as following class Company{ ...  }  class Employee extends Company{ ... }   class Interns extends Company{ ... }  class Test{         private List<Employee> employees;    private List<Intern> intern;     // Suppose that multiple objects of Interns and Employees have  been properly initialized and added to the above two Lists accordingly     public void process(List<Company> company){    ...    }     }  For my process(), I want to be able to use the same function without the need to overload (this is merely an example, I would have more classes, so overloading might seem to be very long). What should I do so that to the two Lists, so that they can be passed into process()? I have tried passing them directly. However, apparently, Java cannot cast List<Employee> or List<Intern> directly to List<Company> Also, is it better to write multiple overload methods (despite the amount) or try to cast the type so one function will take all.


Save each line of a .csv file as a separate .csv

I have a .csv file with no headers and want to have each line saved as a separate .csv file with the new file name to be the value in column 2.


I am having this strange problem of my system running out of space constantly. Just yesterday I cleaned up near 15GB of space and today I see it is out of space. I really don't get it. I know some other people also have this problem, but its not .xsession-log. Infact my /var/log is quite small.  Here is a screenshot of my disk. I ran it as root.   Here is my df  [eeuser@roadrunner ~]$ df -h Filesystem      Size  Used Avail Use% Mounted on /dev/sda5       178G  169G  2.2M 100% / udev            7.9G  4.0K  7.9G   1% /dev tmpfs           3.2G  940K  3.2G   1% /run none            5.0M     0  5.0M   0% /run/lock none            7.9G  2.9M  7.9G   1% /run/shm   What seems strange is, disk-analyzer shows usage of / as 100% but only 74.4GB. I have the linux partition of 190GB. Where is my 100GB.  [eeuser@roadrunner ~]$ sudo fdisk -l /dev/sda  Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0dc6f614     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT /dev/sda2          206848   921806847   460800000    7  HPFS/NTFS/exFAT /dev/sda3       921806848  1541421152   309807152+   7  HPFS/NTFS/exFAT /dev/sda4      1541423102  1953523711   206050305    5  Extended /dev/sda5      1541423104  1919993855   189285376   83  Linux /dev/sda6      1919995904  1953523711    16763904   82  Linux swap / Solaris


Combine PHP prepared statments with LIKE

Anyone know how to combine PHP prepared statements with LIKE? i.e.   "SELECT * FROM table WHERE name LIKE %?%";


Don't automatically clear the possible comment abuse flags when a post is deleted by the owner

The new  flag is raised whenever a user adds many non-constructive or rude comments.   Yesterday, a user added 4 rude comments, thus raising the flag. 4 minutes later, they deleted the post. Once they deleted the post, the PCA flag was automatically cleared. Hence their act was never made known to the moderators.   Thanks to a custom flag by another good user, we managed to catch the user and sent them a warning. But what if the user was not flagged?   Hence, I request that PCA flags must not be cleared on a post, even after the owner of that question has deleted the post.


Suppose X and Y are independent random variables and $Z = X + Y$. Find the density $f_Z(z)$

Let $X$ and $Y$ be independent random variables defined on the space $\Omega$, with density functions $f_X(x)$ and $f_Y(y)$, respectively. Suppose $Z = X + Y$.    Find the density $f_Z(z)$ if $$f_X(x)=f_Y(x)= \begin{cases} \frac{1}2 &, & \text{if $0<x<2$,} \\ 0 &, & \text{otherwise.} \end{cases}$$   Attempt: I tried to take the integral $$\int_{0}^{z}\frac{1}2,\mathrm dx$$ then I eventually did the integral to get $(z/2)$ and $(1-(z/2)) $. unfortunately I was unable to figure this out


Ability to set default sort option for iOS app option lists

I'm a big fan of the new app, but I often find myself changing the sort options for selection list. I think it would be useful to provide the user the ability to set the default sorting method for each list. For example: when I tab Tabs, I'd like my Favorites to come up, instead of Popular; and when I click on a particular tab, say MATLAB, I want Newest to display, instead of Votes. It would be great if we could long-tap to set the default, but anything would work. This would really improve my satisfaction with the app. Is there any chance we could get this feature?


How can I justify the text in the whole document in beamer without using \usepackage{ragged2e} and \justifying at the beginning of each frame?  \documentclass[8pt,handout,t]{beamer} \usepackage{pifont} %used inside itemize environment \item[\ding{226}] \usepackage{lipsum} \begin{document}  \begin{frame} \begin{columns}[T]  \begin{column}{0.3\textwidth} \includegraphics[width=\columnwidth]{example-image-1x1} \end{column} \begin{column}{0.65\textwidth} \begin{itemize} \item[\ding{226}] \lipsum[2] \item[\ding{226}] \lipsum[3] \end{itemize} \end{column}  \end{columns} \end{frame}  \begin{frame}  \lipsum[3]  \begin{itemize}    \item[\ding{226}] \lipsum[4]  \end{itemize} \end{frame} \begin{frame}   \begin{columns}[t] \begin{column}{0.4\textwidth} \lipsum[3] \end{column} \begin{column}{0.4\textwidth} \lipsum[5] \end{column} \end{columns} \end{frame} \end{document}     Edit: I had already checked  out but it does not work for both the columns and the itemize environment.


How to rename multiple files like in Windows

I have a directory of songs all of which are from the same singer. I want to rename all the files in the directory as:  SingerName(1) SingerName(2) SingerName(3) ...   Just like we could do in Windows by selecting files and pressing F2 or clicking on rename in the right-click menu for the selected files.  But this does not seem to work in Ubuntu 12.04! How can I rename a group of files?


Repeatedly taking differences on a polynomial yields the factorial of its degree?

Consider a function such that it takes in polynomial function and creates an array of its outputs and then using that array creates another new array by calculating the absolute difference between the first $2$ values and keeps doing this until it reaches an array full of zeros.    This is much easier to show you by example.  For example take $F(x)= x^2$, the first array would be   $1,4,9,16,25,36,49,64,81$ and so on, the second would be  $3,5,7,9,11,13,15,17,19$ ( the difference between the first value and the second one)  but the third one is where it gets interesting as if we continue the pattern we would get an array filled with only $2$'s and after that it would only be zeros.  Lets do another example, $F(x)=x^3$  $1,8,27,64,125,216,343$  $7,19,37,61,91,\dotsc$ but here is the interesting part if we continue this   $12,18,24,30,\dotsc$ and once more then we get   $6,6,6,6,6,\dotsc$ after that it would just be an array of zeros  There are $2$ main observation that I made about this  Firstly, the value that is begin repeated indefinitely is equals to the factorial of the functions power. Meaning that for $F(x)=x^2$ the value being repeated is $2!$. For $F(x)=x^3$ , it's $3! $ and this is true for all polynomials (I tried it up to $x^7$, after that it got too messy)  Secondly, the value that is repeated always occurs on the $n$th iteration of the function. Meaning that for $F(x)=x^2$, we have to go through the processes $2$ times before we find the value. For $F(x)=x^3$, we have to go through it $3$ times before getting the value.  Is there any way to prove this and does this mean anything at all?


Where does the expression "ta" come from?  Wikipedia has only  to say:     "ta!", slang, Exclam. Thank you! {Informal}, an expression of gratitude   but no additional information or links about its genesis.  I have only ever heard it from englishmen and -women. Is it used anywhere else in the world? How did it come about? What is its history?


I want to buy a TV in the US because here (Colombia) TVs are more expensive.  Will I have any problem with this? Will the airline allow me to send a TV as luggage? Will the airline pay me if they break the TV?


sudo apt-get update gets Universe, but cannot find any files in it

I've gone through the duplicates here and I cannot find how to fix this problem; basically none of the core repositories update, but third-party ones do, on the whole.  For instance, I want to install the , so I can see the line in sudo apt-get update:  Get:23 http://ftp.jaist.ac.jp/pub/Linux/ubuntu xenial/universe amd64 Packages [7,532 kB]   I presume this is OK, even though at the end I get:  E: Failed to fetch http://ftp.jaist.ac.jp/pub/Linux/ubuntu/dists/xenial/main/binary-arm64/Packages     404 Not Found   And also for xenial-updates and xenial-security, but the text says "They have been ignored, or old ones used instead." Note that the main site and random mirrors all fail.  Now, apt list *bats* reports merely libatspi2.0-0.  Third-party repositories (Opera and ROS, for instance) work fine, but what could be causing my problem with the official repositories? I'm also not getting any updates from there.  Note that when I work with Docker, Dockerfile RUN apt-get works as expected, so it's probably not some network or quota issue.


Is it correct to say "Are the both of you atheists?" or "Are both of you atheists"? I'm quite confused if both or only one of them are correct and when to use them... Which of the sentences are correct? Any grammatical errors in these sentences?


I have a problem with my Stack Overflow account. My edit access was disabled for all posts. I saw some similar questions related to my problem, which explained some of the reasons why this might happen. So I waited for 5 days but it wasn't resolved. My questions therefore are   How can I get back my privilege to edit posts? What is the exact reason for this problem? How can I see my edited posts?


Can I configure pam_ldap without configuring nss?

On my servers I have my system users provisioned with Chef and have no desire to expose any additional users to these machines. I would however like to utilize pam for the authentication backend for my monit dashboard.  Do I need to set up libnss-ldapd to make pam_ldap work? Or am I thinking about this the wrong way. Would it really matter if I set up nss if /etc/pam.d/common-* don't use pam_ldap?


The use of "e.g." at the end of a sentence

I was reviewing an English text as an exercise, English not being my mother tongue, and I came to this sentence:     (...) with the two other articles that conclude several things about customers e.g.. It is (...)   Note the double periods at the end of the sentence. Now I've got a gut feeling that this isn't right, but I can't find any rules about it. Is it even 'allowed' to put 'e.g.' at the end of a sentence, where something like 'etc.' would suffice?


Can any one help me to understand this function?

int[] nums = new int[] { 4, 1, 2, 1, 2 }; foreach (var num in nums) {    singleNumber ^= num; // want to know , what operation will perform by this line    Console.WriteLine(singleNumber + " for number - "+num); }  I was wondering if any one can help me to understand, what operation will perform by below line : singleNumber ^= num;


I want to set up custom icons for folders on my external drive for better clarity. The problems is, every PC attributes a different letter to the drive thus rendering icon paths invalid. Also, I would like to attribute a different icon to the drive itself. What is the best method to do that?


I used Blender2.79 and I think I just find the problem.  I have two objects and I want to make parent relations to each other,   when I used CTRL + P, the child's transform location still relate to the world's location.    However, when I manually use (properties -> object -> Relations: Parent) and select the object that I want to set it to parent. It used the parent's transform.    I belive those two ways are doing the same things and I miss the setting or this is a bug??


How to identify USB webcam by serial number from the Linux command line

How do you get a USB webcam’s serial number from the Linux command line?  I have multiple USB webcams connected to an Ubuntu machine. They all show up as /dev/video0, /dev/video1, /dev/video2, etc, but I can't seem to find any way to programmatically tell which is which. Several of the cameras are the same model, so just getting a model name isn't enough.  Note, I'm not asking how to use lsusb. Yes, I know you can use lsusb or libusb to get device serial number, product ID, manufacturer name, etc. But as far as I can tell, nothing shown by lsusb can be cross-referenced with a /dev/video* path.  e.g. If someone plugs in two identical webcams and they show up as /dev/video1 and /dev/video2 and then unplugs them and replugs them into completely different ports, so that /dev/video2 becomes /dev/video3 and /dev/video1 becomes /dev/video4, I can immediately know that the current /dev/video3 "used to be" /dev/video2.  The only similar questions I've found only suggest hacks like unplugging and and replugging it while scanning dmesg. I'm looking for a pure-programmatic solution that requires no hardware manipulation to identify the webcams.


Insert the „Ubuntu 20.04.2 LTS _Focal Fossa_ - Release amd64 (20210204)” called CD to the /cdrom/ drive and press enter

So I have ran into some trouble installing g++. When I try to use the "sudo apt install g++", command it asks me if I really want to install it, and when I say yes, it just leaves me this message: "Insert the „Ubuntu 20.04.2 LTS Focal Fossa - Release amd64 (20210204)” called CD to the /cdrom/ drive and press enter" (Or something like that, I tried to translate it from Hungarian) I give you an image of my problem, however my Ubuntu is in Hungarian, so i don't think that it would be useful. Here it is:  I have already tried to get the .iso file and just mount it to my cd drive, but it didn't solve the problem. Should I just reinstall Ubuntu or what should I do?


why is id([1][::-1]) ==id([1]) returning True while [1][::-1] is [1] returning False?

I know the is operator compares the id of the two, not the value but why is id([1][::-1])==id([1]) returning True while [1][::-1] is [1] is returning False? id([1][::-1]) ==id([1]) #True [1][::-1] is [1] #Fasle  id([1]) ==id([1][::-1])#Fasle [1] is [1][::-1]#False


How to change material's color in blender game engine?

I am making a new racing game in BGE. I want my game to have a feature to change car color in-game (car consists of multiple materials, but currently I want to change body material). How do I make something like this:  Without text (only color select) in blender, so it can apply on material in other scene?


Getting particles from fields: normalization issue or localization issue?

There seems to be something very strange about the relationship between quantum field theory and quantum mechanics.  It is bothering me; perhaps somebody can help.  I'll consider a free Klein-Gordon field.  In standard treatments (e.g. Peskin & Schroeder and Schwartz) the one-particle momentum eigenstates $| \vec{k} \rangle$ are normalized so that  $$ \langle \vec{p} | \vec{k} \rangle = 2 \omega_{\vec{p}} (2\pi)^3 \delta^{(3)}(\vec{p}-\vec{k}), \qquad 1 = \int \frac{d^3 p}{(2\pi)^3} \frac{1}{2 \omega_{\vec{p}}}| \vec{p} \rangle \langle \vec{p} |. $$ Now, assuming $\langle \vec{x}' | \vec{x} \rangle = \delta^{(3)}(x-x')$ as usual, it follows that $$ \langle \vec{x} | \vec{p} \rangle = \sqrt{2 \omega_{\vec{p}}} e^{i \vec{p} \cdot \vec{x}}. $$ Now, one can compute (here in the Schrodinger picture; see Schwartz 2.76 or P&S 2.42) that $$ \langle 0 | \phi(\vec{x}) | \vec{p} \rangle = e^{i \vec{p} \cdot \vec{x}}. $$ This is supposed to mean that $\phi$ creates a particle localized at position $\vec{x}$.  P&S are a little cautious about the details, but Schwartz claims that the calculation implies  $$ \phi(\vec{x}) |0 \rangle = | \vec{x} \rangle. $$ But this is false because $\langle \vec{x} | \vec{p} \rangle \neq e^{i \vec{p} \cdot \vec{x}}$ with the normalization conventions used.  I suppose it could be true with some weird normalization of $| \vec{x} \rangle$, but I can't see what that might be (and at the very least this is not spelled out on the text).    Even if this works out, it seems extremely strange for there to be a relative normalization between the one-particle states of field theory and the states of one-particle relativistic quantum mechanics.  One ought to be able to redo the correspondence to make the normalization work out, but I don't see how.  (Note that the normalizations can be easily made to agree in the non-relativistic limit $\omega \approx m$, but that's besides the point.  Even if fully relativistic quantum mechanics is inconsistent [as some texts claim without reference], at the very least the perturbative corrections for $v \ll 1$ should be recoverable from field theory.)  [Edit: This seems to go beyond normalization.  We can get a feel for what kind of state $\phi(\vec{x})|0\rangle$ is by computing its wavefunction as a function of $\vec{x}'$, $$ \langle \vec{x}' | \phi(\vec{x}) |0 \rangle = \int \frac{d^3 p}{(2\pi)^3} \frac{1}{\sqrt{2 \omega_{\vec{p}}}} e^{i\vec{p} \cdot (\vec{x}-\vec{x}')}. $$ This wavefunction is peaked (I think divergent) at $\vec{x}'=\vec{x}$, so in some sense the particle is centered at $\vec{x}$, but it seems to be quite a stretch to say that it is at $\vec{x}$ (as the books do).  I would go so far as to say the claim is incorrect, since in quantum mechanics saying the particle is at particular position means the wave function is a delta-function there. I guess the same language is used in the Heisenberg picture, when two-point functions are called amplitudes for particles to propagate from one spacetime point to another.  This similarly seems false by the conventional meaning of amplitude as the overlap between two localized states.  Words of wisdom would be appreciated.]


27 squares of side $1$ inside a circle of radius $2$: Show that three squares share an interior point.

By placing 27 squares with side $1$ in a circle with radius $2$, such that each square is entirely inside the circle, prove that there exists a point that 3 squares share (inside of their area).    I thought about dividing the circle into 9 equal areas and using the pigeonhole principle, but got stuck there. Any hint will help.


Let $0<\alpha<2.$ Looking for a proof for the following: $$\int_0^{+\infty}\frac{\sin(x)}{x^\alpha}dx=\frac{\Gamma(\alpha/2)\Gamma(1-\alpha/2)}{2\Gamma(\alpha)}.$$ Any ideas?


java class properties with getter & setter, shouldn't this be common

I have been developing in Java specifically over 5 years now.  Now always when I start writing a new class or code, I start with defining the properties of my class. So I will need to hit eclipse generate getter and setter every time to my dissapoint. And that is cleaner code and much more understandable in the end.  But I enjoy thinking abstract and using of OOP and generics. So there is either an specific reason people need to use Java primitives or we can just create a class like this in Java to always have an getter and setter and still be within the normal use of Java class members :  public class Property<Type> implements Getter<Type>,Setter<Type>{  protected Type value;  public Property() {  }   @Override public <T extends Type> void set(T value) {     this.value = value; }  @Override public Type get() {     return value; }   public String toString() {     return value.toString(); }  }   You can still use modifiers to limit the access to the variables you define. You will still use the same variable declaration as in:       Class test{       private Property<Number> priv_floatProperty = new Property<Float>();      protected Property<Number> prot_floatProperty = new Property<Float>();      public Property<Number> publ_floatProperty = new Property<Float>();       }   Just wanted to ask this question to see what other people think about this code and writing your classes in this way. I really hope I can get some feedback about this code and the theory of class design in Java,


Prove that there exist infinite positive integers n such that n and n + 1 are filled with squares in its factorization

We say that a positive integer is full of squares,if in its factorization all the primes appear raised to an exponent greater than one. For example, $72 = 2^3⋅3^2$ is full of squares and $18 = 2⋅3^2$ is not. Prove that there exist infinite positive integers $n$ such that $n$ and $n + 1$ are filled with squares.   The only thing I think that I figured out is that the solution uses induction.


Can Terraria iOS players play with PC players?

I don't play Terraria much, but my little brother saw me playing on my PC and said he wanted to try. I let him, and he loved it. Once I told him we could play together, he got extremely happy and now I'm trying to figure it out, but can't. I looked around and I'm getting tons of answers, all of which are very unclear.


Prove there exists a countably infinite subset $A$ of $P(\mathbb{N})$ that satisfies given conditions

Prove that there exists a countably infinite set $A \subseteq $ $P(\mathbb{N})$ that satisfies all of the following conditions:  $i)$ $X \cap  Y = \emptyset$ for all $X, Y \in A$ such that $X \neq Y$ $ii)$ $\mathbb{N} = \bigcup A $ $iii)$ Every element in $A$ is countably infinite   For all the sets I tried, the three conditions were satisfied but $A$ was not countably infinite, so now I'm stuck. Any help would be greatly appreciated.


Using Softmax activation function for multi-class classification

In the last layer of  'CNNs'   it is common to use softmax  activation functions for multi-class classification.I would like to know if is it necessary using a softmax activation function when creating a CNN for image classification task, and does it have nothing to do with the optimizer used to train the model ?


What is the difference between the Linux Kernel and the Android Kernel?

What are the modifications done in linux kernel to make it an android kernel ? By this question I mean what are the differences between linux kernel and android kernel ?


Interection of conjugate elements forms a normal subgroup

Let $G$ be a group and $H$ be its subgroup. Then, is the set $W=\cap_{g\in G} gHg^{-1}$ a normal subgroup?   I think the answer is yes, because the set is equal to the stabilizer of the action of $H$ on $G$ with action as conjugation, which is the normalizer of $H$. Any ideas. Thanks beforehand.


What should I do if I find a logo very similar to my design?

I designed this "LUCENTICITY" logo 2 days ago. I swear it was my idea. I chose the design after many sketches.    Today I was browsing the old featured logos on LogoPond and was shocked to come across this similar "NOS" logo. (It was .)    What should I do now? Change my design? My client has already finalized the attached "LUCENTICITY" logo!  Will people think I'm stealing?


Change the background color in my HTML code through JavaScript

New to JavaScript and HTML. I'm trying to change the background color in my HTML code through JavaScript.  The only thing that I need to happen is to change the background color on divMain below from black to white using only JavaScript and keeping the HTML code the same  <style>  #divMain { position:absolute; left:0px; top:0px; width:320px; height:460px; background-color:black; -webkit-user-select:none; -webkit-text-size-adjust:none; }  </style>  </head>  <body  onload="body_load();"  >  <div  id="divMain"> </div>   The only things that I have in the JavaScript code is this:  function body_load() { }


This has already happened to me several times:   a user posts a question; I provide an answer; the user deletes the question.   I know that the person who asked the question can do this at will if my answer is the only answer and if it got no upvotes. And I do not intend to ask to change that. But I think that, in this situation, the user who asked the question should get a warning saying something like “Someone took the trouble of writing and posting an answer to your question. Are you sure that you want to delete it?”


How to use arrow key with .write function in python?

I am trying to use left arrow key in name.write(u\2190) but the below error appears every time.  outfile.write(u'\u2190\u2190') UnicodeEncodeError: 'ascii' codec can't encode characters in position  0-1: ordinal not in range(128)


Javascript - same Date with multiple offset comparison


Is it possible to clear OR hide Steam's Hours Played stat?

Is it really impossible to not have Steam track your time playing multi-player games?  This seems like an obvious privacy issue to me, no? Is it at least possible to not share them? Also, is there a way to not have them displayed as you log in and look at your own profile?  Is there no way to let people use the other Steam friend features, but not have your playing hours be shown to them?


How do you make your model skeleton to look like this?

I downloaded few 3d models from a recent pokemon game, then I found this. It doesn't look like a regular skeleton, and I don't think anybody has told me how to do this. Yes, I'm relatively new to this game, but I was just sort of curious. Can you make a bone look like this in blender?


is there a way to reboot device without any keys and usb debugging turned off

I had been using my phone for last 1.5 year ( Lava z90). But recently it's power off button and volume buttom are not working and also my usb debugging is turned off.2 days back my phone is switched off and I am not able to swich on it. Is there a way to turn it on?


How do I get information specific to CPU core via command

Suppose we have one CPU with 2 cores. I seek dynamic scheduling information such as Processes, IO time, IDLE Time, System Time as allocated time specific cores as opposed to aggregated or averaged to a multi core CPU.   Below I have prepared a command but it is giving above information on CPU level and not on core level.  sh-3.2# top -l 15 | grep -i "Processes" | tail -2  Processes: 387 total, 2 running, 385 sleeping, 1677 threads  Processes: 386 total, 2 running, 384 sleeping, 1672 threads


When I go through the flagging dialog it jumps to a different position. Steps to reproduce:   Click "flag" on my post. Click "Should be closed."  Dialog Jumps to another position. Click "Flagging" (in the top left corner)  Notice that the flag dialog jumps again.   This happens on all stack sites (tested here, ,  and )   As mentioned in the comments, this doesn't seem to happen with the close vote dialog.


I have a select box (Specie) and a typeAhead input field(Breed), Which i need to update on the change of selectbox, I have the following code.
     <select class="form-control select_field_style specie-breed" id="species" name="species" required>         <option disabled selected>Select a Species</option>         <option value="Dog">Dog</option>         <option value="Cat">Cat</option>         <option value="Horse">Horse</option>     </select>

     <input id="breed" type="text" class="form-control charsonly" name="breed" placeholder="Breed">
   $(document).on('change', '.specie-breed', function() {     let specie = this.value;     $('#breed').typeahead({         source:  function (query, process) {             return $.get('/get/breeds/' + specie, { query: query }, function (data) {                 console.log(data);                 return process(data);              });         }     }); });   Its working but for the first time, The second time change doesn't change the values of the typeahead,  What am i missing here ?


Do you need a visa to enter the US to catch another flight?

Here's the situation: I want to bring my girlfriend over here to Portugal for the holidays. She's Venezuelan but is in Trinidad and Tobago right now. My plan is to save money by buying 2 different plane tickets, one from Trinidad to Miami, and another one from Miami to Portugal. My question is, does she need a visa to stay in the US for 3 hours to catch another flight?


How long do I need my old hosting account after I have moved to another host as well as address?

I had my old website at the********.in and shifted to a .org domain. I also switched the hosting company. Here's what I did -    I drove all traffic from old site to the new one with 301 permanent redirects using the htaccess. I confirmed the address change successfully in Google Webmasters tools. The redirection works fine.   So the old htaccess is still at my old host for over a month now.   How long do I need to keep that account for the search results to redirect properly? I assume the redirection will break if I close my previous account. Is it safe to do so now that sufficient time has passed and I practically don't see any old address in the search results any more?


Can a parameter expansion work inside another parameter expansion?

$ s=/the/path/foo.txt   we can extract by different criterion separately  $ echo ${s##*/} foo.txt $ echo ${s%.txt} /the/path/foo   But if we want to extract according to both criterion at the same time,  $ echo ${${s##*/}%.txt} bash: ${${s##*/}%.txt}: bad substitution   Is it possible to achieve the same goal, using parameter expansion only and without introducing a temporary variable?  Can a parameter expansion work inside another parameter expansion in some way?  Thanks.


How do I install UBUNTU TOUCH in Nokia XL?

Is it possible to install Ubuntu Touch in Nokia XL (Software Version 1.2.3.2) ? My phone is not rooted.


A question related to :  What cast syntax style do you prefer in C++?   C-style cast syntax: (int)foo C++-style cast syntax: static_cast<int>(foo) constructor syntax: int(foo)   They may not translate to exactly the same instructions (do they?) but their effect should be the same (right?).  If you're just casting between the built-in numeric types, I find C++-style cast syntax too verbose. As a former Java coder I tend to use C-style cast syntax instead, but my local C++ guru insists on using constructor syntax.  What do you think?


Duplicate question close reason says "already has an answer," which is often false

I  here on MSO today, but it was found to have been asked .  I'm not concerned by this (better to be found by more than one user) but, I noticed that the wording in the closure statement is factually incorrect:    No it doesn't have an answer - Not even a sniff of one!  This statement, logically, should be factually accurate and reflect the existence of answers and include singular/plural references to them - or at a minimum use language that covers both scenarios.  Edit: As a result of my question,  and the bug in question has been remedied, but this question still remains valid.


Why does redirection to the same file truncate the file?

Normally we use a different file to redirect the output.  For example :  cat < first > temp   In this command the contents of first are redirected to temp instead of the standard output.  Then why does it truncates the file if I use the same file name?  Why can't it overwrite the same file?  cat < first > first