$a,b,c$ are positive reals with $abc = 1$. Prove that    $$\frac{1}{a^3(b+c)}+\frac{1}{b^3(a+c)}+\frac{1}{c^3(a+b)}\ge \frac32$$   I try to use AM $\ge$ HM.  $$\frac{\dfrac{1}{a^3(b+c)}+\dfrac{1}{b^3(a+c)}+\dfrac{1}{c^3(a+b)}}3\ge \frac{3}{a^3(b+c)+b^3(a+c)+c^3(a+b)}$$ Then how I proceed.


Recently I was running du -h / on my partition as I was downloading a large file, and noticed that the available space decreased while the used space did not increase (in the last two lines of this output.) None of the new files that are being downloaded are owned by anyone else other than myself.  What would cause this? I have a feeling it is a rounding error, but would that mean that the Used space is being rounded up while the Avail space is rounded down? It seems like the free and total bytes are being subtracted but I'm not sure.  alex@server:~/cc-pipermail$ df -h / Filesystem      Size  Used Avail Use% Mounted on /dev/vda1        20G  8.6G   10G  47% / alex@server:~/cc-pipermail$ df -h / Filesystem      Size  Used Avail Use% Mounted on /dev/vda1        20G  8.7G   10G  47% / alex@server:~/cc-pipermail$ df -h / Filesystem      Size  Used Avail Use% Mounted on /dev/vda1        20G  8.7G  9.9G  47% /   For clarification, the used space is 8.7GB, but then the available changes from 10G to 9.9G with the used space not changing.  This question is different from  because that question is discussing a discrepancy with a volume which has extra inodes allocated, while this question showed that df did report free space just moments before the file continued to download.


Indicate How Trustworthy the UpVotes Are

Takeaway: Are 4 inexperienced users more reliable than 3 experienced users? A high rep doesn't ensure you are smarter, but it makes you the safer option.    I went to SuperUser to see what suggestions can be found for different Malware-removal Applications.  was right on target, and sported five answers, with a total of 9 up-votes.  All of the answers were provided by low-rep users, and that leads me to recognize that the up-votes may be a similar case. Just as answers aren't always equal, neither should up-votes be. The top answer currently has 4 up-votes, and the second most popular answer currently has 3 up-votes. The people who voted in the 3, may be more reputable than those who voted in the 4. Am I communicating this clearly?  I'm not asking that we be told who voted for a particular question, but I am asking that we be told what type of reputation they had. If the 4 votes come from 4 users with less than 300 rep, and the 3 votes came from two users with 300 rep and 1 with 10k rep, the 3 votes should appear stronger by the standards of the system.  Right now I'm worried about accepting the top-voted solution simply because I fear the up-votes may be from people with similar rep to those providing the answers - that doesn't make them wrong, only less-reliable by the standards of the stackexchange engine.  Can we see the sum of rep for  the votes? (Data in parenthesis would not be visible)   4 Votes (Ted • 72 | Bill • 183 | Carl • 423 | J • 100) = Power of 778 3 Votes (Bob • 19,123 | TJ • 283 | Mike • 8,923)       = Power of 28,329  So in this case, you wouldn't see who voted, only that their rep-sum was 778 and 28k.   4 Votes : 778 3 Votes : 28k  I'm not tied to this way of indicating the vote-power, but some method is better than no method.  Another concern is that higher-rep users (having been around longer) participate in voting less-frequently than new-comers do. After all, we're not trying to gain badges, build rep, etc. As a result, it's more likely that a low-rep users will cast a vote than it is a high-rep user. Does that follow logically?    Rebuttal     Reputation (From the SO-FAQ)      Reputation is a (very) rough measurement of  how much the Stack Overflow community trusts you. Reputation is never given, it is earned by convincing other Stack Overflow users that you know what you're talking about. (emphasis added)    "Rep has nothing to do with credibility, competence or knowledge!" - John Smithers     I agree. But it does have to do with "how much the SO community trusts you." Granting that, some votes are more trustworthy than others. Because they come from users who have convinced "other SO users that they know what they're talking about."  "The purpose of anonymous voting is that all votes are valued equally, whether they come from Jon Skeet or from some new person." - devinb     That is clearly not the case though. If SO operates by labeling some users more "trusted" than others (which it does), then that would mean some votes are trusted more than others. I would trust Jon Skeet to suggest a good programming book than I would two freshmen. It's irrational to suggest Jon Skeet will offer the best recommendation but that isn't what is being argued here. Only that Jon Skeet is the safer choice given his reputation.  "Just because a person has reputation does not mean they have more technical knowledge." - yshuditelu     I agree, but it does mean they are the safer source than somebody with no rep. That is, according to the SO-system.


Prove that $\Bbb Z[\sqrt{2}, \sqrt{3}]$ does not equal $\Bbb Z[\sqrt{2} + \sqrt{3}]$.   This is homework. I want to prove that these are different sets. The first set is the smallest ring containing the integers and the two radicals separately. The second is the smallest ring containing the integers and the sum of the two radicals. Unfortunately I cannot find any similar proofs to learn from. I've been trying to show that the second set does not contain the square roof of $6$, for instance, or the square root of $3$. We haven't looked at what the second set might contain. We've only looked at adjoining a single radical and not the sum of radicals on class.  If someone could solve a similar example or give me a crucial insight, that would be great.


A 5x5 board has 25 cells.The numbers $\{1,2,3,4,5\}$ are written on every row,every column and the two main diagonals.

A 5x5 board has $25$ cells. The numbers $\{1,2,3,4,5\}$ are written on every row,every column and the two main diagonals without any repetition. If the sum of the numbers of the diagonal below the leading diagonal be represented as $A$. Show that $A\ne 20$. Also find the maximum possible value of $A$.    I could prove that $A\ne 20$ by showing that each of the cells of the diagonal below the leading diagonal cannot be $20$ as if such arrangement exists, then the board cannot have $5$ five times, which actually should be by the given condition of the question.    For the second part, I can imagine the maxiumum value to be $17$. For which I proved that $5$ can occur only $2$ times in the four cells and probably $4$ cannot occur twice. But I got no formal proof. Please help!


no apt package "atom" .but there is a snap with that name

I installed Atom. Then I removed it with sudo apt-get remove atom command. Now when I tried sudo apt-get remove --purge atom, it shows  no apt package atom, but there is a snap with that name. How to remove that snap?


When you snap a Window to the left half or right half or your screen by pressing Win+[Left|Right], Win10 suggests some open apps that you can pin in the other half.  This steals my keyboard focus away from the app I was trying to work in. How do I disable this "feature"?


"Mercy killing" is an act of killing someone who is already dying and in terrible pain, in order to reduce his or her suffering.    Is there any single word for "mercy killing"?


Can I enter columns instead of rows in LaTeX tables?

I use tabular environment in LaTeX.   I want to write a column in a table as a row in the LaTeX code.   For the problem I am writing in LaTeX, it is natural to think of a column at a time.  For example instead of   1 & 3 & 5  2 & 4 & 6   I want to write   1,2   3,4  5,6    Is there some code that I can write for this?


Fibonacci proof question $\sum_{i=1}^nF_i = F_{n+2} - 1$

The sequence of numbers $F_n$ for $n \in N$ defined below are called the Fibonnaci numbers.  $F_1 = F_2 = 1$, and for $n \geq 2$, $F_{n+1} = F_n + F_{n-1}$.  Prove the following facts about the Fibonnaci numbers  For each of the following, $n \in N$  a) $\displaystyle \sum_{i=1}^nF_i = F_{n+2} - 1$  I started this proof by using strong induction  To prove something by strong induction, you have to prove that if all natural numbers strictly less than $N$ have the property, then $N$ has the property.  $n \geq 2$, $F_{n+1} = F_n + F_{n-1}$  Check basis step $n=2$:   $F_1 + F_2 = 1 + 1 = 2 = 3-1 = F_4 - 1$, therefore TRUE  I'm unsure how to go any further, when it comes to strong induction I'm lost on how to set up my IH, and proceed for the rest of the steps


How do I get the stars in focus with my astrophotography setup?

Hey  I've problem with blurred stars when I shoot stars with my Canon 700D with EF 50mm f/1.8 STM lens I've set up with 10-20 second shutter speeds and  ISO settings from 400-1600. I try on f/1.8 and in all pictures, the stars are blurry. How do I focus them?


Are there rules to Windows 7 Environment variable names?

On my Windows 7 computer, I created some custom user environment variables (right-click computer > properties > "Advanced system settings" > "Environment Variables..." > "New..." for "User variables for ...") but when I echo them in command prompt it seems to not recognize one. For example, this is what I had:  UTILS_HOME  C:\myUtils UTILS_WILDFLY  %UTILS_HOME%\wildflyUtils   I added both to the PATH variable in my user variables like this:  PATH  %UTILS_HOME%;%UTILS_WILDFLY%   When I echo the PATH I get this:  C:\mytils;%UTILS_WILDFLY%   I expect that it would expand UTILS_WILDFLY but doesn't. Now if I change the name of UTILS_WILDFLY to JBOSS_8, when I echo the path it'll get expanded. I've tried several names for testing and do not understand why some expand and why some do not. When they do not expand I'm not able to access my scripts in that folder on the command line.  Is there some rule that I don't know about for naming environment variables or is this the way it works and I have to do trial and error until I find one that does work?  There are no typos when trying different names. I created the name for the variable and cut and paste it in the PATH variable to rule that out.


I have an issue with my PinkBase * ContractType. PinkBase is a class type, and the customer class it is in is a class to store data about the customer.  Here is the code:  class PinkBase;  class Customer {   private;   //all of my private data including:   PinkBase* ContractType;    public:   //all of my public Methods (gets and sets) }  //I then run the constructor for my customer class: Customer::Customer() {     strcpy_s(FirstName, "");     strcpy_s(SecondName, "");     ContractType = NULL; //this is the issue, the class compiles fine, however.     TextsUsed = 0;     Minutes080Used = 0;     MinutesUsed = 0;     DataUsed = 0; }  // the errors come when I start to calculate the bills and use code like this:  double Customer::calculateBill() {   textRange = TextsUsed - ContractType->getTextsAllowed();// this should return the amount of allowed texts }   I get an error (c2227) complaining that my "->" notation's left side SHOULD be pointing to a class/struct. To the best of my knowledge, IT IS.  Errors are as follows:  Error   1   error C2027: use of undefined type 'PinkBase'   c:\users\administrator\desktop\pinkmobile - 15 th - 2\pinkmobile\contracts.h    66  1   PinkMobile Error   2   error C2227: left of '->getTextsAllowed' must point to class/struct/union/generic type  c:\users\administrator\desktop\pinkmobile - 15 th - 2\pinkmobile\contracts.h    66  1   PinkMobile Error   3   error C2027: use of undefined type 'PinkBase'   c:\users\administrator\desktop\pinkmobile - 15 th - 2\pinkmobile\contracts.h    74  1   PinkMobile Error   4   error C2227: left of '->getMinutes080Allowed' must point to class/struct/union/generic type c:\users\administrator\desktop\pinkmobile - 15 th - 2\pinkmobile\contracts.h    74  1   PinkMobile Error   5   error C2027: use of undefined type 'PinkBase'   c:\users\administrator\desktop\pinkmobile - 15 th - 2\pinkmobile\contracts.h    82  1   PinkMobile Error   6   error C2227: left of '->getMinutesAllowed' must point to class/struct/union/generic type    c:\users\administrator\desktop\pinkmobile - 15 th - 2\pinkmobile\contracts.h    82  1   PinkMobile Error   7   error C2027: use of undefined type 'PinkBase'   c:\users\administrator\desktop\pinkmobile - 15 th - 2\pinkmobile\contracts.h    90  1   PinkMobile Error   8   error C2227: left of '->getDataAllowed' must point to class/struct/union/generic type   c:\users\administrator\desktop\pinkmobile - 15 th - 2\pinkmobile\contracts.h    90  1   PinkMobile


What is attached to this spigot and how to remove

This adapter is attached to an outdoor spigot:    It is near the location of a former hot tub so I believe it has something to do with pressure control. When I attach a hose to it and turn it on if the hose is not flowing (e.g. a closed nozzle at the end) the water leaks (more like squirts, lots of it) from this adapter, it appears to be from the holes and not the connection to the spigot or the hose.  What is this thing? Is there a way to utilize it? I'd like to remove it so I can use this spigot but when I try to unscrew it with a wrench it does not budge - in fact the spigot itself starts to rotate. I wasn't really able to tighten a pipe wrench to the spigot due to the available clearance & pipe width.  There appears to be a rivot on the under side of the adapter but it is difficult to tell, it is somewhat rusted over.  Follow Up  My original concern was water leaking from it when it was used. While a plumber was on site doing a different job I asked him to look at this to see if something was wrong. He said the vacuum breaker wasn't working properly and ended up replacing the entire hose bib (with new vacuum breaker), I presume because he was not able to remove the vacuum breaker as well or it wasn't salvageable. Now no water spews out when it is used.


How do I remove ugly google chrome icon in the Gnome3 applications tab?

When I search in applications of Gnome for Chrome, I get two entries: the left one in the picture is OK with a high resolution icon, the right one has a low resolution icon.  I couldn't figure out where the second one is coming from. Does anyone have an idea?  I would like to remove it.


I have two scripts: foo.sh: #!/bin/bash echo -e "one\ntwo" | while read line; do     cat not-existing     echo hello $line done  bar.sh: #!/bin/bash echo -e "one\ntwo" | while read line; do     ssh user@machine 'cat not-existing' # Here is the only difference     echo hello $line done   And now I run them $ ./foo.sh  cat: not-existing: No such file or directory hello one cat: not-existing: No such file or directory hello two  $ ./bar.sh  cat: not-existing: No such file or directory hello one  The output of bar.sh is surprising to me. I would expect it to be the same for both scripts. Why does the output of foo.sh and bar.sh differ? Is it a bug or a feature?  Note The following works as I expect, i.e. the output of this is the same as the output of foo.sh: #!/bin/bash for line in `echo -e "one\ntwo"`; do     ssh user@machine 'cat not-existing'     echo hello $line done  Why?


Grub rescue unknown file system(changed to ntfs from ext 4)

In order to change my laptop from Ubuntu to windows I changed my filesystem from ext4 to NTFS. Now it is showing error unknown file system(Grub rescue). Is there any way I can exit from that.


Is simply connectedness preserved after deleting a high codimension set

Suppose $X$ is a complex manifold of complex dimension $n$, $Z$ is a subvariety of complex codimension at least $2$. Suppose $\pi_1(X)=0$, do we have $\pi_1(X-Z)=0$? Do we have $\pi_1(X-Z)=\pi_1(X)$ in general?


Limit of a series whenever it is convergent.

Compute the value of $$\sum_{n=1}^\infty n^2x^n$$  whenever the series is convergent. I used the ratio test to determine that the series is convergent at $|x|<1$. I used Wolfram Alpha to compute the value and it gave me this $$\sum_{n=1}^\infty n^2x^n = \frac{-x(x+1)}{(x-1)^3}$$  How did Wolfram Alpha get this answer?


In brief, I am projecting out a budget for a personal construction project I am having done, and the numbers are very tight.  I have some buffer built in, but if I exceed the buffer amount and my cash flow is restricted (e.g. my clients pay late, etc.), I will need some sort of short term bridge loan.  This is about six month down the road, but I am trying to understand my options before wading in.  From  it sounds like I can withdraw money ostensibly for the purpose of rolling the money into a new account, but can return the money within 60 days with no penalty.  Am I understanding this correctly?  Note that I would not consider this unless I feel 100% confident that I could pay the money back within the 60 days.  Given all of this, am I understanding the rollover rules correctly?  Any other pitfalls I would need to be concerned about?


I see no video drivers on my t60P thinkpad.  The video hardware is Intel on-board graphics.  Are there specific drivers for this laptop?


15" MacBook Pro 2016 External Monitors cause screen flickering

I've had my Macbook for a while, and since I now have gotten a new desk and monitors, I've hooked them up for a dual external display setup. I've linked the products I use below.           When I wake my Mac from sleep, often times the first monitor turns on, and begins flickering, dimming the display and then going black, and repeating the cycle. Again with the MacBook display. The third monitor often just doesn't turn on, which I imagine is causing the infinite loop.  I've contacted Apple support numerous times and setup Genius Bar Appointments. I've reset the NVRAM and all of the things you can reset on boot. Anyone know whats going on or why this is happening? Preferably how to fix it.  Anything is appreciated.


Car rental vs. buying a car for 1 month, when visiting the USA?

I would like to visit a few places in the states sometime next year, and I was thinking of doing a road trip while I'm at it. I could start in either Los Angeles or Montreal, and then I would like to visit Philadelphia, Phoenix and Las Vegas during my trip; plus whatever there is on the way between - national parks would be on top of the list. I had about $2000 in mind for transport (excluding fuel).  So my question is: how would I get around? I could take the trains or public transport between the States and Montreal because I don't want to have any hassle with importing/exporting a car, and only drive a car in the states.   The 2 options I see here are either buying a used car and then sell it at the end of the trip, or rent a car.   I had a look at hertz.com, and they quoted me ~$3500 (including insurance) for 1 month and this car:   But it seems like I have to return the car to the pickup location with Hertz, because if I choose a different drop off location it shows "not available" for this car. Did I just pick the wrong drop off location here of is A->B really not an option? Do I get different rates at different locations? Has anyone advice on how to get this cheaper? I searched for "relocation" on their site, but didn't find anything.  The second option would be to buy a car for $3000, and then sell it at the end of my trip, and hopefully get more than $1000 back for it. Has anyone experience with this? Are there any places better for buying or for selling a car? In which state would I get "more car" for the same amount of money? Would there be any paperwork involved if I buy a car in one state and sell it in another? Anything else I need to know when buying or selling a car?


What physical process is the source of blackbody radiation?

Blackbody radiation is the radiation given off an object solely as a result of its absolute temperature. The (continuous) spectrum is given solely by the temperature.  How can this be? Why should a slab of Tungsten at 400 K emit the exact same spectrum as a pile of powdered sodium chloride at the same temperature? Why should the emitted radiation be independent of the chemical composition of the object, the electron transition energies, and the mass of the atomic nuclei?  What is the actual, physical process, that gives rise to the emission of blackbody radiation?


If matter and antimatter repel, how do we know other galaxies aren't made of antimatter?

says this:     There is considerable speculation as to why the observable universe is composed almost entirely of ordinary matter, as opposed to a more even mixture of matter and antimatter.   And on :     For example, excited antihydrogen atoms are expected to glow the same color as regular hydrogen. Antihydrogen atoms should be attracted to other matter or antimatter gravitationally with a force of the same magnitude that ordinary hydrogen atoms experience. This would not be true if antimatter has negative gravitational mass, which is considered highly unlikely, though not yet empirically disproven (see gravitational interaction of antimatter).   If antimatter had negative mass and generally repelled matter in large quantities that had little other forces acting them, we could have vast "pockets" of antimatter and matter peacefully coexisting, repelling one another.  In fact, if antimatter looks the same "color" as matter and all we have to look at in deep space is light, for the most part, then we could have "anti-galaxies" that look the same as ordinary galaxies. It seems this idea has been considered, as :     Antimatter may exist in relatively large amounts in far-away galaxies due to cosmic inflation in the primordial time of the universe. Antimatter galaxies, if they exist, are expected to have the same chemistry and absorption and emission spectra as normal-matter galaxies, and their astronomical objects would be observationally identical, making them difficult to distinguish. NASA is trying to determine if such galaxies exist by looking for X-ray and gamma-ray signatures of annihilation events in colliding superclusters.   How would we know, in this case, that some of the galaxies we see aren't "anti-galaxies?"  Based on what I know, the thing that doesn't add up with anti-gravity is this:  Light is affected by gravity.  If anti-matter's gravity is negative, then either (1) light only cares about the magnitude of gravity and is attracted to anti-matter or (2) light is repulsed by antimatter.   This would be weird that light "acts" like "matter" in that it's attracted to matter and but also like "antimatter" in that it's attracted to "antimatter".  A is attracted to B.  B is attracted to C.  A is not attracted to C.  That's weird. This sounds like it could be related to dark matter.   See also arguments on Wikipedia's article on .   addresses the issue of antimatter galaxies, but it does not consider the possibility of antimatter having negative mass.  There are (2) positively scoring answers on that question (which assumes the following: a star composed of antimatter hydrogen would fuse to anti-helium in an analogous way to our own Sun, and it would emit light and radiation at the same wavelengths as any regular matter star and would cause the same gravitational forces):  First positively-scoring answer:        This argument assumes that antimatter and matter regions would be close enough or connected such that annihilation would be visible.  If we assume that antimatter and matter regions are gravitationally attracted to one another, like the question assumes, then this answer makes sense.  My question assumes the opposite - that antimatter gravitationally repulses matter and vice-versa.  Therefore the thin inter-galatic medium strands connecting gravitationally bound filaments might not exist between antimatter and matter (anymore - they've been annihilated, causing an actual void, or at least the visible appearance of one).  Here is what the second positive-scoring answer has to say:        This answer admits that "the telltale sign would come from supernova neutrinos, although at present we can only detect such neutrinos from nearby galaxies".  The absence of anti-neutrino emissions (today's measurements) would only imply that "nearby galaxies" are not anti-matter.  What about galaxies that we can see that aren't nearby?  This answer doesn't address those.


I have a macbook that is running OS X 10.8 (Mountain Lion); for various compatibility-related reasons I would like to upgrade the system, but not to El Capitan. Yosemite (OS X 10.10) would be dandy. The App Store, of course, only offers an upgrade to El Capitan, currently the newest OS X version.  I know that it is possible to restore a computer to the OS it had prior to an upgrade, but is it possible to upgrade to a (never-seen before) OS version that is not the latest available?  Edit:  is related (but only if Yosemite had been downloaded via the App Store in the past).


Solve for $x$ in the $80^\circ$-$80^\circ$-$20^\circ$ triangle

I've been solving this for days but I still I couldn't solve this. Can I know how to solve $x$ ?


I know the reason is the incompatibility of the packages, but I tried all the possibilities and I couldn't reach to the point of removing '=0' without changing the algorithm style I want.  .    \documentclass{IEEEtran}    %\usepackage{algorithm}    %\usepackage{algorithmicx}    %\usepackage{algcompatible}    \usepackage[linesnumbered,ruled]{algorithm2e}   \usepackage[noend]{algpseudocode}% http://ctan.org/pkg/algorithmicx    \usepackage{float}    \begin{document}     \begin{algorithm}   \SetKwInOut{Input}{Input}   \SetKwInOut{Output}{Output}   \Input{The .}   \Output{M $T$.}   \Procedure {Update}{$Index, CurrentNode$}\\   \eIf {$index$ not in $CurrentNode.MapTable$}{   \begin{algorithmic}[1]   \State Create a new entry in $CurrentNode.MapTable$\;   \State Insert $index$ in the new entry\;    \State Create a new node $E$\;   \State Create a new entry in the $CurrentNode.children$, correspond to  previously created entry\;     \State Make the new entry point to E\;   \State $E.parent$   $\leftarrow$ $CurrentNode$\;   \State $CurrentNode$ $\leftarrow$ $E$\;   \State Initialize $CurrentNode$ materialization and entries\;   \end{algorithmic}   }{   \begin{algorithmic}[1]   \State  Child pointed by\;   \State Update \;   \end{algorithmic}   }   \EndProcedure \\   \For{$i\leftarrow 1$ \KwTo $N$}{      \For{$l\leftarrow 1$ \KwTo $h$}{           \State  $index [l]$  $\leftarrow$ generate index of data object $O_i$    for level $l$ using $W_l$\;      }              \eIf{$T.root$ is Null }{          \State Create a $root$ node \;      }{         \State $CurrentNode$ =\ $root$ \;          \CALL \textsc{Update}{$(Index, CurrentNode)$}\;      }       \For{$l\leftarrow 2$ \KwTo $h-1$}{              \CALL \textsc{Update}{$(Index, CurrentNode)$}\;       }    }   \caption{Build}   \end{algorithm}    \end{document}


Suppose that $n$ is a composite, squarefree integer such that for every prime divisor $p$ of $n$...

Suppose that $n$ is a composite, squarefree integer such that for every prime divisor $p$ of $n$, we have $(p - 1) | (n - 1)$. Prove that $n$ is a Carmichael number.  Having a lot of trouble with this problem, looking through my notes couldn't really find anything useful apart from the definition of a Carmichael number. After going back to my professor his two hints were to use Fermat's Little Theorem and to consider what the prime factorization of n looks like. This wasn't much help, and any further assistance is greatly appreciated.


I am designing a very large banner. I have a simple question

Sorry for such a lame question but, when I blow up my image to 350 inches wide in photoshop and zoom in to 100%, the picture looks blurry, but as I zoom out it looks perfect. Would the same effect happen if we hung this image from the rafters of a stadium, in other words does the blurry picture become clearer from further away? I am sure is does but, dont want to screw this up.  Thanks


They have lived in Paris for 5 years NOW (?)

The sentence you see in the title is from my English lesson. Thought I was OK with the Present Perfect, but I'm not so confident now.   The explanation says that I can translate this sentence as "they have lived in Paris for 5 years and they still live there (because of NOW)"  As I know, Present Perfect is about something that has started in the past and/or just finished and/or still has the connection with the present.   Probably the connection with the present is about my example, but using the word NOW with the PP and "for...years" seems strange to me.   Is it OK?


I am very new in java dev so it might be a trivial question:  double u130 = (1 / 30); double q1 = Math.pow(1.025, u130);   the q1 is equal 1.0, but it should be 1.0008234259155  u130 = 0.0 also wrong.  I my understanding double is made for so many decimal places, so where is the problem?  By the way I am testing on Android device, this should be a limitation?!  Thanks


How to get rid of a malware app "Chromes"?

A few days ago I noticed a new app on my phone. It's called Chromes and it has a logo really similar to Chrome's logo. It was detected as Malware by my antivirus at first, but after a few hours I got a notification saying it's safe. I can delete it but it returns after a few hours. I tried reseting my phone, getting it back on factory settings but it keeps returning... What should I do?


Is there a regular expression to detect a valid regular expression?

Is it possible to detect a valid regular expression with another regular expression?  If so please give example code below.


Latex Symbol for the inverse (negative) angle of Complex Number?

Is there a Latex symbol to represent the inverse angle of a complex number? Since, from what i see, this isn't very well known, I'll post a picture of my math book which uses it below (Engineering Mathematics - Stroud). Thanks.


Would SHA-256(SHA-256(x)) produce collisions?

Was reviewing some Bitcoin public-key hash literature and the use of RIPEMD-160 and the SHA-256 as below:   RIPEMD160(SHA256(ECDSA_publicKey))   The Proof-of-work on the other hand uses SHA256 two times (instead of RIPEMD-160).  There is some notes on why RIPEMD160 was chosen ().  Considering the 256-bit output space of SHA256, what would happen (theoritically) if one were to use SHA256 on a SHA256 output? For example:  SHA256(SHA256(x))   Would this be a ? or  mapping?  Can such mapping be used, in any way, to break the SHA-256?   Since SHA-256 is supposed to be a one-to-one function, there is no way the SHA256(SHA256(x)) could be injective function (since the input space and output space are both 256-bits). But if it is not injective, then SHA-256 cannot be one-to-one function for longer message (>256-bit input). How is this contradiction being worked out in the algorithm?


Can I use multiple null coalescing operators || in vue just like as in php?

When converting my code from php to js, I can't get this bit to work:  searchEntity.translations[0].translation ?? searchEntity.name ?? searchEntity.name_en   I tried using two ||  searchEntity.translations[0].translation || searchEntity.name || searchEntity.name_en   but vue compiler only sees the first one and does't display whole component when second should be rendered, hovever if I display just second everything works:  searchEntity.name || searchEntity.name_en   however entity is polymorphic and it can be either of those 3.  I don't want to use v-if, it will need a repetitive code  (code is in the template, not computed)  EDIT  checking if translations exists in computed function solves issue  translatedName: function () {                 if(this.searchEntity.translations) {                     return this.searchEntity.translations[0].translation                 } else {                     return this.searchEntity.name || this.searchEntity.name_en || this.searchEntity.translation_fallback;                 }             }


If I generate HTML elements using append, can I affect them using jQuery after that?

I used the append method in jQuery to generate some HTML input boxes; now I want to make some effects on those input elements using jQuery but I can't. This is a little example of what I wanna do.           <button>Click</button>


How can I use cron-apt to download and install updates between midnight and 5am?

I have capped data which is essentially free between midnight and 5am. As a result, I would like to set Ubuntu to automatically download updates over that time. It seems that cron-apt is what I need, but the documentation and syntax is sketchy and unintuitive. Can anyone tell me how to use it to schedule downloads?  It can install the updates at the same time as far as I'm concerned, but that's not such a big issue - I can run those at a later stage.


I want to get a good Fixed Focal Length Lens with wide aperture for my Nikon D5300 which is a DX Camera and while searching for lens in India there were only 4 lens for DX compared to the 44 lens for FX body. Out of the 4 one was a Fisheye Lens so I have three choices. Should I get the DX model or choose from the FX lens. The focal length that I want is only available in the FX lens The Availabe Lens are:   35mm f/1.8 85mm f/3.5 40mm f/2.8   I wanted to get the AF-S 50mm f/1.8 or 50mm f/1.4 both of which are FX lenes. I am a little particular about the 50mm - 55mm  as I feel that is the best focal length for the type of photos that I usually take. I am also open to other lens with lower focal length as I can always crop in post.   What should I do?


show $p$ is divisible by $(x^2 +y^2 +1)$

Show that, for any prime $p$, there are integers $x$, and $y$ such that $p$ is divisible by $(x^2+y^2+1)$    Can you show me what to start with? do I prove $p$ is divisible by $x^2$ and $y^2$ separately?


I have installed Ubuntu 14.04 and I think that I have found a bug. When I open terminal and  go to edit profile preferences I get a rectangle with a cross on the title bar. It happened with other applications too. Here are the screen shots:


Mock Object returning NullPointerException

I have this mock:  @Mock ObjectMetadata metaMock;   I then use it in a test with the following line of code:  when(client.getObjectMetadata(bucket, key)).thenReturn(metaMock);   My test returns a NullPointerException at this line in my method under test:  ObjectMetadata meta = client.getObjectMetadata(bucket, key);   As best as I can tell this should work. Am I doing anything wrong here? the only thing I can think is that metaMock may need to have something assigned to it. Is this the case?


I've just eliminated the /Desktop/ folder through rm -r that i shouldn't. I know there is no way to restore it but I would like to know if there is some automatic back up that I can use to restore my file. I'm using ubuntu 16.04.


How do I determine how many spell slots I have when multiclassing?

How do I determine how many spell slots I have if I multiclass into more than one spellcasting class? For example, I have a character that is a level 3 Wizard, a level 5 Eldritch Knight Fighter, a level 4 Arcane Trickster Rogue, a level 4 Paladin, and a 4 Warlock. How many spell slots do I have and how do I determine this?


Find the Theta class for the recursion $T(n) = T(3n/4) + T(n/6) + 5n$

$\displaystyle T(n) = T\left(3n\over4\right) + T\left(n\over6\right) + 5n$ is not in the proper form for the Master theorem so I can't really apply it. The only idea I had was changing the $\displaystyle T\left(n\over6\right)$ to $\displaystyle T\left(3n\over4\right)$ and then we would have $\displaystyle T(n) = 2T\left(3n\over4\right) + 5n$ for the MT to apply.   I would thereby bound the function by another function. Probably not a good solution and possibly wrong. Is there a better way to solve this?


In Obi-Wan's Order 66 warning transmission why didn't he tell the surviving Jedi about the Sith, including Palpatine's true identity?

If you've seen the premiere episode of Rebels, you will have seen Obi-Wan's warning message that he broadcast to Jedi throughout the galaxy in RotS. In this message he speaks cryptically & warns of a "dark shadow" falling & to avoid the temple & await a "new hope".   Wouldn't it have been useful to inform the Jedi that their mortal enemy the Sith had returned? And specifically that Palpatine himself was a Sith? You'd assume that the majority of the Jedi who were not in the loop of the Council would be unaware of the existence of the Sith. Yoda mentions a few times that they should keep it under wraps. I think now would've been the time to reveal the truth. The more info the surviving Jedi have the better. Who knows if the likes of Kanan knows anything about the Sith's return! I find Obi-Wan's omission of this information bizarre.


Does `That's very sweet of you` in the US sound like `That's very sweef you`?

Does That's very sweet of you  in the US sound like That's very sweef you? the of is only speak f and link with swee


why does this simple code throw a NullPointerException?

public class AClasse {  String a;  public AClasse(String a){     this.a = a;  }   public static void main(String[] args){     AClasse[] clases = new AClasse[10];     clases[0].a = "?"; // the exception is in this line   } }   whats the reason and whats the right equivalent statement.


Famous cases when proving a generalization is easier than proving a special case

An answer to  question advises that "If you can't prove it, then make it more complicated, then prove it". But my question is not when is proving the complicated one is easier, it is:  What are some famous cases when proving a generalization of a theorem is easier than proving the special case?  Usually, posts that contain very little information in the body get downvotes, but in this question, nothing is asked to be proved or solved, etc, so there are very less things to mention in this post. Some users would say that  question should answer my question, but there are many reasons why it doesn't answer my question. An example of an answer can be:  Lindemann–Weierstrass theorem — if $α_1, ..., α_n$ are algebraic numbers that are linearly independent over the rational numbers ℚ, then $e^α_1, ..., e^α_n$ are algebraically independent over ℚ. The transcendence of $e$ and $\pi$ follows from this.  I don't know if the proof of this theorem is harder than the transcendence of e and pi, but this is a possible example.


I am using GIT with TFS for the version control in my android studio   What is use of TFS here with GIT. Becuase GIT has default control in studio. What does TFS does here


Command to delete a file which is two days older

what is the CMD command to delete the files which is two days older from a particular folder when we run a batch file?


\fancyfoot does not work in a chapter and macros

I used a template to write a document where I found a Macro for the chapter form.  The problem is how can I get the \fancyfoot that I want in the chapter page.  Exemple :     Code:  \documentclass[a4paper, 12pt]{report} \usepackage[font=small]{caption} \usepackage[labelformat = empty,position=top]{subcaption} \usepackage{amsmath, amsthm} \usepackage{showkeys} \usepackage{mathtools} \usepackage{graphicx} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{shorttoc} \usepackage{mathtools,amssymb,amsthm} \usepackage{makeidx} \usepackage[french]{babel} \usepackage[utf8]{inputenc} \usepackage{hyperref} \usepackage[T1]{fontenc} \usepackage{color} \usepackage{eso-pic} \usepackage{frcursive} \usepackage[dvips,lmargin=2.5cm,rmargin=2.5cm,tmargin=2.5cm,bmargin=2.5cm]{geometry} \usepackage{tocloft} \usepackage{titlesec} \usepackage{fancybox} \usepackage{fancyhdr} \pagestyle{fancy} \usepackage{frcursive} \usepackage{minitoc} \usepackage[Style]{fncychap} \renewcommand{\cftchapfont}{\bfseries} \renewcommand{\cftchappagefont}{\bfseries} \renewcommand{\cftchappresnum}{\chaptername~}  \renewcommand{\cftchapaftersnum}{~-} \renewcommand{\cftchapnumwidth}{7em} \usepackage{lastpage} \usepackage{algorithm} \usepackage{algorithmic} \usepackage{hyperref} \usepackage{mathptmx} \usepackage{textcomp} \usepackage{lmodern} \usepackage{blindtext} \usepackage[final]{pdfpages} \usepackage{enumitem} \usepackage{array,multirow,makecell} %\setcellgapes{1pt} %\makegapedcells \usepackage[table]{xcolor} \usepackage{float}  \renewcommand{\seyesDefault}{\color{blue}} \renewcommand{\headrulewidth}{0.5pt} \renewcommand{\footrulewidth}{0pt} \pagestyle{fancy}  \linespread{1.5} \date{} \sloppy  \setcounter{secnumdepth}{4} \setcounter{tocdepth}{3} \makeatletter \newcounter {subsubsubsection}[subsubsection] \renewcommand\thesubsubsubsection{\thesubsubsection .\@alph\c@subsubsubsection} \newcommand\subsubsubsection{\@startsection{subsubsubsection}{4}{\z@}%                                      {-3.25ex\@plus -1ex \@minus -.2ex}%                                      {1.5ex \@plus .2ex}%                                      {\normalfont\normalsize\bfseries}} \newcommand*\l@subsubsubsection{\@dottedtocline{3}{10.0em}{4.1em}} \newcommand*{\subsubsubsectionmark}[1]{} \makeatother  %%%%%%%%%%%%%%%%%%%style%%%%%%%%%%%%%%%%%%%%%%%% \makeatletter \def\thickhrulefill{\leavevmode \leaders \hrule height 1ex \hfill \kern \z@} \def\@makechapterhead#1{% %\vspace*{50\p@}% \vspace*{10\p@}% %{\parindent \z@ \centering \reset@font \thickhrulefill\quad {\parindent \z@ \centering \thickhrulefill\quad \scshape \@chapapp{} \thechapter \quad \thickhrulefill \par\nobreak \vspace*{10\p@}% \interlinepenalty\@M \hrule \vspace*{10\p@}% \Huge \bfseries #1\par\nobreak \par \vspace*{10\p@}% \hrule %\vskip 40\p@ \vskip 100\p@ }} \def\@makeschapterhead#1{% %\vspace*{50\p@}% \vspace*{10\p@}% %{\parindent \z@ \centering \reset@font \thickhrulefill {\parindent \z@ \centering \thickhrulefill \par\nobreak \vspace*{10\p@}% \interlinepenalty\@M \hrule \vspace*{10\p@}% \Huge \bfseries #1\par\nobreak \par \vspace*{10\p@}% \hrule %\vskip 40\p@ \vskip 100\p@ }}  \renewcommand{\footrulewidth}{1pt} \fancyfoot[C]{\textit{- \thepage\ -}}  \fancyfoot[L]{Thèse de Doctorat} \fancyfoot[R]{\footnotesize{Name of }}  \begin{document}  \input{Abstract.tex}   \end{document}


Check whether an IP belongs to a specific range

I have a log file that lists whitelisted IP ranges in this manner:  "217.29.0.0-217.29.255.255", "204.12.0.0-204.12.255.255", "198.54.223.0-198.54.223.255",   I am also working on a bash script which, amongst other things, needs to check this logfile and determine if a specified IP is whitelisted.  In the case of IP 204.12.5.10, for instance, how would I use the log file with the specified ranges to determine whether that IP is part of a range in that file?


"Ourselves" versus "Us"—sentence-specific use?

I'm confused about when to use ourselves and when to use us. I looked at , but I'm not sure how to generalize that answer to the sentence I am working with.     We need to base our judgments about how safely people will act toward ourselves and our children on how well we know them and their behavior in the moment.   My inclination is to tell the author to change ourselves to us. Is that correct?     We need to base our judgments about how safely people will act toward us and our children on how well we know them and their behavior in the moment.    In the sentence, we refers to parents in general as a whole in society.


What are the downsides of booking separate departure and return flights?

While I was browsing Google Flights, I noticed something that I haven't seen before. It said that if I booked the itinerary chosen, they'd be on separate tickets. This text was also in red, which I took as meaning it could be undesirable. I'm aware that this is risky for connecting flights, but is there any downside if they're both "one way" flights that are several days apart?


How do I interpret RMSE in layman words?

For example, I am predicting a score that can have value from 0 to 100. The RMSE = 10. How can I interpret it in layman words? Does it means:   RMSE showed that prediction error calculated with RMSE method was from -5 to +5 from actual value. RMSE showed that prediction error calculated with RMSE method was from -10 to +10 from actual value. Some other kind of interpretation?


How to create a color tinted black and white effect?

I was wondering how I would go about recreating this look on a photo using Photoshop?


I'm a little confused about how to handle infinities in physics. On the one hand, I always here things like infinities are not physically tenable answers. GR can't answer anything about the origin of the universe because of singularities. Throw away the radial solution that gives an infinite potential when solving the Laplace equation in spherical coordinates. But then there are other times that the infinities are okay. For instance, it is usually okay to set the reference point for your potential at infinity. There are certain times in David Tong's quantum field theory lecture notes where he seems to almost to hand wave away infinities. So, philosophically, physically, and mathematically when are infinities okay, and when are they not okay?


What is the origin and definition of the expression "caught between a rock and a hard place"? I also heard it in a situation where it could have had a jocose double sense, but I may have misunderstood.


How to get this ratings for a website page like this?    How much this is effective for a SEO?


How can an encryption scheme be indistinguishable with multiple messages but vulnerable to an adaptive chosen-plaintext attack?

In order to be indistinguishable with respect to multiple messages, wouldn't the scheme need to be nondeterministic? How would this then possibly be vulnerable to an adaptive CPA?


Proof regarding finding the two sets $S$ and $T$ are equinumerous

I have a hard time doing this proof.  Can anyone help me?     Show that the following pairs of sets S and T are equinumerous by finding a   specific bijection between the sets in each pair.      $S = [0,1]$ and $T = [0,1)$


Is it code-legal to have a circuit breaker box within a storage room?

I am currently in the process of planning a room remodel to convert an existing bedroom into a home office and storage room.  One thing that makes this conversion a little bit tricky, is the existence of a breaker box at the rear corner of the room.  As you can see in the image below, we plan to have the back 5' of the room become a storage area (there would be 2' deep shelving units along the back wall, stopping short of the breaker box, we would use this area to store Christmas decorations, misc. stuff, etc..).  I know it is illegal to place a breaker box in a closet that will store clothes or other combustibles.  So my questions would be: 1) how would one define a storage room vs. a closet (i.e.- could this be classified as a walk in closet somehow?) and 2) with > 36" clearance in front, and 30" around, would this be legal?


Is there any chance for a layperson to gain from stock exchange?

In this question:    One answer said "You're basically making a bet that the market is wrong".  Another answer said "You're betting against the experts that play the game. Why do you think you're better than they are?"  Another answer said "You are not the smartest kid on the block... smart people have looked at things, and using their risk profiles, have determined what they are willing to risk in terms of their investment in the Ruble, compared to other places. If you disagree with them, then invest now in the Ruble, and bet against those people who generally know the systems better than you".  All these answers make perfect sense. But, they seem to be true for any other investment. For example, there may be a stock which seems promising at the current price. But, there are experts who are much smarter than I am, and if they trade the stock at its current price, then they probably know that it doesn't worth so much as I think it is.  The same argument is true for bonds, ETFs, real estate... virtually any other investment.  So, suppose I am not an expert, since I have a full-time job which doesn't leave me any time to read detailed financial reports of stocks and other financial stuff - it seems that the only logical conclusion is that I should stay away from investments entirely.  Is this true?


If a force is applied on a body in an isolated system, it gets accelerated, which means its velocity and hence its Kinetic Energy will go on increasing. How does law of conservation of  energy holds for this increase in Kinetic Energy?


PHP_SELF vs PATH_INFO vs SCRIPT_NAME vs REQUEST_URI

I am building a PHP application in CodeIgniter. CodeIgniter sends all requests to the main controller: index.php. However, I don't like to see index.php in the URI. For example, http://www.example.com/faq/whatever will route to http://www.example.com/index.php/faq/whatever. I need a reliable way for a script to know what it's address is, so it will know what to do with the navigation. I've used mod_rewrite, as per CodeIgniter documentation.  The rule is as follows:  RewriteEngine on RewriteCond $1 !^(images|inc|favicon\.ico|index\.php|robots\.txt) RewriteRule ^(.*)$ /index.php/$1 [L]    Normally, I would just check php_self, but in this case it's always index.php. I can get it from REQUEST_URI, PATH_INFO, etc., but I'm trying to decide which will be most reliable. Does anyone know (or know where to find) the real difference between PHP_SELF, PATH_INFO, SCRIPT_NAME, and REQUEST_URI? Thanks for your help!  Note: I've had to add spaces, as SO sees the underscore, and makes it italic for some reason.   Updated: Fixed the spaces.


Removing small polygon gaps in Shapely polygon?

I know this issue has been addressed before with different software, but how do I do it with Shapely?  I have a polygon with a very small gap on the interior of the shape:    Here is a close up:    The polygon is valid so I can't use the buffer trick, and simplifying the polygon also doesn't work.


Based on a cell value = true or false, I conditionally formatted rows to turn black.  That means that I need to scroll down to find the set of rows that did not turn black.  I would prefer that all my rows with data remain unexpanded and remain hidden and only expand when cell value = true.  Is there a way to unhide the few, select rows when the cell value = true and compress/hide if cell value=false - without using macros; or any macro code suggestion if one is needed.  This will forego the scrolling.


Proving the upper- and lowerbound of a probability measure set-intersection, given certain conditions

So I've been going in circles over the last few hours of this seemingly simple problem:  "Let $(X,F,\mu)$ be a probability space. Let $A,B,C$ be sets contained in $F$, with  $\mu(A \cap B) \ge \frac{1}{2}$, $\mu(A \cap C) \ge \frac{1}{2}$, $\mu(B \cap C) \ge \frac{1}{2}$.  Show that $\frac{1}{4} \le \mu(A \cap B \cap C) \le \min\{\mu(A \cap B), \mu(A \cap C), \mu(B \cap C)\}$".  Honestly, I'm plain simply stuck. I've been trying to see if I could get something useful out of De Morgan's identities as well as the distributive laws, but I seem to either be going in circles or end up with something not very useful due to unions I can not identify or the lack of information about $A$, $B$ and $C$. Same thing with the strongly additive property of a measure, which is only stated for the intersection of two sets in my book.  I feel like this should be simple, but I'm staring myself blind at this problem. Can anyone offer some guidance?


Can an infinite loop cause a StackOverflow Exception in Java

I am working with a textbook right now and one of the answers to the 'test' questions seems wrong to me. They have the following code example:  while(true){         doStuff();     }      static void doStuff(){         for (int i = 10; i > 5; i++){             if(i > 100000){                 break;             }         }     }   And according to them, the answer is  "F: The program will hang without ever completing"   As opposed to   "C: A StackOverflowError might be thrown"  I suppose I don't understand why a StackOverflow error would NOT eventually be thrown in this infinite loop? Is it because I have not marked it as an exception via try/ catch / throws? Would it be different if we were creating variables within that for loop which take up memory? Or am I misunderstanding entirely?


Use arguments to pass parameter information to cURL script

I am trying to write a script where the user can pass startDate and endDate via arguments when running the script. Here's my script (saved as test.sh)-   VAR="$(curl -f -X POST -H 'X-API-TOKEN: XXXXXX' -H 'Content-Type: application/json' -d '{"format": "csv", "startDate": $1, "endDate": $2}' 'https://xxx.qualtrics.com/export-responses' | sed -E -n 's/.*([^"]+).+/\1/p')" echo $VAR   When running the script I type the following -   ~/test.sh '"2020-05-13T17:11:00Z","2020-05-13T20:32:00Z"'   The script throws an error.


c# String.Format throws "Invalid input exception"

I'm writing a c# console program that reads a configuration file and a google map example found .  I copied the html content into a local template file and put placeholders for string.format (notice the {1}, {2} in code snipped below.  I then read the template from the local file system and use the code below to populate the placeholders.  The problem is that the string.format keeps throwing error saying  Input string was not in a correct format.  If I replace the template with a blank file, the Input string was not in a correct format. is not thrown.  There are no exceptions. Thus, the problem is with the html template below and not the code.  Can someone spot the issue with the template that make so that it doesn't work with string.format?  I'm guessing that it has to do with { and } so I moved around any double (i.e. {{) but that didn't help.  Code    var res = string.Format(template,                 ConfigurationManager.AppSettings["PageTitle"],                 ConfigurationManager.AppSettings["zoom"],                 ConfigurationManager.AppSettings["CenterLat"],                 ConfigurationManager.AppSettings["CenterLongi"],                 ConfigurationManager.AppSettings["mapTypeId"],                  sb.ToString(),                 ConfigurationManager.AppSettings["strokeColor"],                 ConfigurationManager.AppSettings["strokeOpacity"],                 ConfigurationManager.AppSettings["strokeWeight"],                 ConfigurationManager.AppSettings["fillColor"],                 ConfigurationManager.AppSettings["fillOpacity"],                   ConfigurationManager.AppSettings["GoogleMapBaseUrl"].Replace("_KEY_",          ConfigurationManager.AppSettings["APIKey"])                  );   HTML Template  <!DOCTYPE html>    <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> <meta charset="utf-8"> <title>{0}</title>


I'm trying to load several images into an array. But for some reason, I get a NullPointerExeption when trying to do the actual loading (ImageIO.read()). I can't see whats wrong, probably from fiddeling around with it too much that I got blind for the mistake. This is the loop that tries to load the images:  for (int i = 0; i <= 1; i++) {         try {             image[i] = ImageIO.read(new File(String.format("TDs/TD%d.png", i)));             bg[i] = ImageIO.read(new File(String.format("BGs/BG%d.png", i)));         } catch (IOException e) {         }     }   I currently have only two images to switch between, but I'll change that soon.   The painting happens using  g2d.drawImage(bg[1], 0, 0, null);   Both variables are initialized by  Image[] image, bg;   And last but not least proof that all images are actually there is found     Thanks for helping a stupid person.   EDIT: Thank you alot for the answers, as initiaizing the array this way works! I feel like an idiot now since I looked at all other array inits to find that they were initialized exactly the same way as you told me... Sorry for stealing your time!  PS: No need to handle IOExeptions since these are textures for a game - they don't change and you can't / shouldn't change them either. I will add a Messagebox with a message in case someone decides to mess around anyways.


Why does Oxford dictionary say "student life" and not "the student life"?

There is an entry at the oxford dictionary that begins with       The popular image of student life is of young people with few responsibilities enjoying themselves and doing very little work   Why didn't it say     "of the student life"?  "a student life"?


Does timbre consist in pitch and volume?

I read that the physical properties of a sound wave correspond to its audible qualities: pitch, volume, and timbre. However, an oscilloscope uses only two-dimensions to accurately depict the physical properties of a wave. Intuitively, pitch and volume seem more basic than timbre does, so I surmise that timbre must consist in those two properties.    Does timbre consist in those two properties? How do two-dimensional waveform diagrams depict three properties of sound waves?


The result from release is different from debugging

So, I was using VScode to run my c++. Here is my code: int main() {     int value = 153;     int output=0;     string number = to_string(value);     int exp = number.length();     for (char n :number) output += pow(n-'0',exp);       cout << output; }  The output I get from using "Run Code" is 152, which is wrong. The output from using debug is 153,which is right. Why would that happen?


In  my question () contains a "$" in a quoted section of the question.  Originally I had a second "$" in a second quoted  section of the same question.    However when I did this the second $ seemed to trigger a style that made the text italic and lost spacing between words.  I took out the second "$" and instead emphasized it with the word "dollars" which solved the immediate problem.  However, in the listing of the question, (not the question itself) the same thing happens after the first "$".  The summary shows the text without spaces between words and in italic.  Seems like a bug.  Below is a verbatim copy/paste of the original issue (two dollar signs):    I was able to find a small ESC for about $12 off of ebay.  If you were designing a robot, would you see that and think?       $12 bucks for an ESC that connects to simple pulse-wave interface -   sign me up!   Or would you think:     $12 just to control a motor? I could throw together an H-bridge for   $0.50 and be done with it.   My robot in particular actually has two motors and therefor $24 to control the two of them.  But the interface is really easy (plus has the added advantage of being R/C vs computer controlled with a simple change of connectors.  Which way would you go?


General relativity, gravity and spacetime curvature

There is a very fundamental flaw in the common explanation given of the space-time curvature due to massive objects. It is said that a massive object curves space time just like a bowling ball on a rubber sheet, and another object near the massive object simply rolls down-hill on the rubber sheet, that is the reason why we observe that the other object is experiencing gravitational attraction to the massive object which curved the space-time.   The flaw is this:  Even if the massive object did bend the spacetime downwards, and there was a second object in the vicinity, this second object just would not roll down-hill automatically, unless there was a SECOND EXTERNAL source gravity, other than these two objects pulling everything downwards. In other words, even if the space time is curved, there is no particular reason for the second object to move closer to or be attracted by the first, because there is no other external force that would force it to move down-hill.  As a visualization, consider the bowling ball on a rubber sheet and another object on the same rubber sheet in outer space where there is no other source of gravity. Now, neither will the bowling ball curve the rubber sheet downwards (because it is not being pulled downwards), nor will the other object move down-hill on the rubber sheet even if the rubber sheet was depressed downwards, because there is no downward gravitational force from earth or another external source which would cause either of these two effects. So, there would be no reason for the other object to be attracted towards the first object. This is inconsistent with observation because objects do really experience gravitational attraction towards each other. But it certainly can't be explained by the bowlig ball and rubber sheet example.  What is the explanation for all this?  Flaw 2: If there are 2 massive objects on the rubber sheet, they will both bend spacetime around themselves, and they will both remain trapped in their own depressions, and would never move towards or be attracted to each other. This is again contrary to observation. Since both masses are in reality attracted to each other, so they can't possibly bend spacetime and can't be trapped in their own depressions. Why?  Flaw 3: All pictures of bent spacetime on the web show spacetime being bent downwards. Why? In open space, with no other object nearby, all directions are equivalent to all other directions, and "downward" is undefined. So if spacetime is really bent, in which direction is it really bent?


I've seen some inconsistencies between the cron environment and my environment.  For example, I have installed paver (pip install paver) in my environment and calling paver works paver. Using paver in my cron doesn't work command not found. Everything is done through the same user root.  Any idea ?


Java giving error when trying to use multiple inputs in while loop

The following java code gives the following error: Exception in thread "main" java.util.NoSuchElementException: No line found. boolean running = true;     while (running) {         Scanner sc2 = new Scanner(System.in);         System.out.println("Enter an item to order:");         String name = sc2.nextLine();                  System.out.println("Enter the price:");         String price = sc2.nextLine();                  System.out.println("Enter the quantity:");         String quantity = sc2.nextLine();                  orderItems.add(name);         orderItems.add(price);         orderItems.add(quantity);         orderItems.add(";");                  System.out.println("Would you like to add another item?: (y/n)");         if (sc2.nextLine() != "y") {             running = false;         }     }  Any suggestions? I've gotten a similar error before, which was caused by using a new scanner for each input instead of using the same one for each input, but this error seems to be caused by a different issue. Thanks in advance.


Explicit template specialization for constructor (g++)

I have this class definition in .h file:  class PolygonPath {   public:     template<class T> explicit PolygonPath(const Polygon<T> &);     template<class T> Polygon<T> toPolygon() const; }   In .cpp file, I define my methods. Then, I would like to define explicit template for   Polygon<float> and Polygon<long>. So, I define them like that:  template class PolygonPath::PolygonPath<float>(const Polygon<float> &); //Fail template class Polygon<float> PolygonPath::toPolygon<float>() const; //Ok template class PolygonPath::PolygonPath<long>(const Polygon<long> &); //Fail template class Polygon<long> PolygonPath::toPolygon<long>() const; //Ok   For constructor, I'm not able to define an explicit template specialization. I have this error at compilation: "error: ‘PolygonPath’ is not a class template". I also try with this syntax:  template <> PolygonPath::PolygonPath(const Polygon<float> &)   It compiles but I get another error at link: "undefined reference to `urchin::PolygonPath::PolygonPath(urchin::Polygon const&)'".


I have a query I need to pitch even for once . With this method , but this method did use a lot of CPU and slows the server .   public function setRunningLevelsReadyToRun(){     $interval=5; //seconds     set_time_limit(0);             while(true) {         $now=time();         mysql_query("UPDATE `levels` SET status='running' WHERE 'NULL' not in (uid1,uid2,uid3,uid4) AND status = 'opened'") or die(mysql_error());         sleep($interval-(time()-$now));     }  }   I read  but I want to run this method in separate thread.


I am buying fried chicken already made and making pulled pork for 100 people (80 adults and 20 children). How many pieces of chicken should I buy?

How much fried chicken should I buy for 80 adults and 20 children? Pulled pork will be served as well as mac n cheese and green beans.


How would I go about replacing all of the double quotes in my batch file's parameters with escaped double quotes? This is my current batch file, which expands all of its command line parameters inside the string:  @echo off call bash --verbose -c "g++-linux-4.1 %*"   It then uses that string to make a call to Cygwin's bash, executing a Linux cross-compiler. Unfortunately, I'm getting parameters like these passed in to my batch file:  "launch-linux-g++.bat" -ftemplate-depth-128 -O3 -finline-functions  -Wno-inline -Wall  -DNDEBUG   -c  -o "C:\Users\Me\Documents\Testing\SparseLib\bin\Win32\LinuxRelease\hello.o"  "c:\Users\Me\Documents\Testing\SparseLib\SparseLib\hello.cpp"   Where the first quote around the first path passed in is prematurely ending the string being passed to GCC, and passing the rest of the parameters directly to bash (which fails spectacularly.)  I imagine if I can concatenate the parameters into a single string then escape the quotes it should work fine, but I'm having difficulty determining how to do this. Does anyone know?


Why can't an immutable class have setter methods?

I was reading about immutable classes, and the ways to make a class immutable were said to be:    1 - Make the class final to prevent inheritance  2 - Make the mutable variables final  3 - Don't provide setter methods.   I think the third condition is unnecessary. When we make a variable final and provide any value to it, after that new value can't be assigned to it even through a setter method (because final variables can't be changed once a value is assigned to it). So why do we need the third condition of not having setter methods?  Am I understanding something in a wrong way?


Can anyone tell me how they expanded $x^n-a^n$?

I am not getting how they factorised the $x^n-a^n$ term?


PHP Query Inserting Apostrophe in database

I just want to ask if there's any possible way to insert values in the database that has an apostrophe?


The deliberate use of misleading terminology

Is there a word or phrase which describes "choice of misleading words", or the negation: "choice of non-misleading words"? The nearest phrases I can think of are linguistic deception, or controlled language, as in .  For example, :     I think it is ok for authors (please let's not call them creators, they are not gods) to ask for money for copies of their works (please let's not devalue these works by calling them content) in order to gain income (the term compensation falsely implies it is a matter of making up for some kind of damages).   Another example is "credit" in banking, which just makes "debt" sound like a good thing.  EDIT: The term may either refer to an individual's malicious use of misleading terminology, or to widely-accepted use of misleading terminology. The answers reflect this, but my question does not.


I have this div that I am fetching from a database  '
'+          '
'+ '' +'
'+          '
'+ aparat.nume + '
' +                                                   //functia care le aranjeaza          '
'+ aparat.pret +'&nbsplei' + '
'+          '
'+'<button data-value="'+aparat.id+'" class = "comanda">'+'Comanda!'+'</button>'+'
'          + '
';   and the event handler:  $(document).ready(function(){ $('.comanda').click( function() {         alert('button clicked');         }); });   The problem is, when I click the button nothing happens, what am I doing wrong?


Ubuntu not booting: "Could not write bytes: broken pipes"

The problem When I boot Ubuntu 11.10, the boot process hangs, before even getting to the login screen of the display manager, with the message   Could not write bytes: broken pipes   at the top of the screen, followed by some lines of text (where one yellow star left of "PulseAudio" is - don't know if this is important...), the last being       * Stopping System V runlevel compatability                                          [Ok]    After that I can only press Ctrl+Alt+Del to reboot.  The cause The problem occured after I did an update on feb., the 18th. In the process of the update a window popped up in which I had to choose the default display manager. Being in a hurry, I just clicked "ok" (gdm was the default selection in that window). Afterwards I found out that Ubuntu 11.10 us es lightdm so I figured, that maybe this was the cause of my problem. Before this update everything worked fine.  {What I tried so far to do to fix it [skip this, if its too long] I logged in as root in recovery mode and tried to reinstall lightdm. Using the apt-get command I get error that spans over 3 lines of text, the first of which is  Not using locking for read only lock file /var/lib/dpkg/lock;   but I don't know of any process that is using apt-get, that is preventing it from being run.  After that I used  dpkg-reconfigure lightdm  and selected lightdm as the default display manager. This exited with the line   mv: cannot move 'etc/X11/default-display-manager' to '/etc/X11/default-display-manager.pdkg-tmp': Read-only file system".   When I then booted in normal mode it still hung, but the message Could not write bytes: broken pipes was gone, there were just two lines of text, the first said something about the battery state and the last was identical to the one above ("* Stopping System V[...]"). I played around a little bit by also trying dpkg-reconfigure gdm and choosing gdm instead of lightdm, but none of that helped. The system still hangs, just with different lines of text showing up, but "* Stopping System V[...]" is always the last one. }  Other info This may be or not be relevant: I use multiple operating systems (the other ones work) and the kernel I use is 3.0.0-15-generic-pae.  Please help, I invested so much time in setting my Ubuntu system up, I don't want to do it all over again.


Flask - get user input and pass it to backend

I want to get user input and validate if it is correct or not in the backend... There is something missing but I am not able to figure it out:  run.py code:  @app.route('/game', methods = ["GET","POST"]) def game():     global answer_number      global user_correct      global user_wrong       with open ("data/riddles.json", "r") as jason_data:         data = json.load(jason_data)     if request.method == "POST":         user_answer.append(request.form["answer"])         if user_answer [-1] == data[answer_number]["answer"]:             answer_number += 1             user_correct += 1         else:             user_wrong += 1         print (answer_number, user_correct, user_wrong)     return render_template("game_page.html",                             user_list = user_list,                             riddles_data = data,                            user_answer=user_answer,                            answer_number=answer_number)   game_page.html code:  <form class="form" autocomplete="off" spellcheck="false">                 <label for="name">Write down your answer</label>                 <input type="text" class="form-control" autofocus="autofocus" id="answer" name="answer">             </form>


Prove that a group of order $2^5 \cdot 7^5$ is not simple

I can see that there are 8 Sylow 7-subgroups. I'm told I should consider the normalizer of one of the Sylow 7's, but I'm not sure what to do exactly.


How to get 0 records if a particular month has no records?

I have query, which shows last 12 month record, it is working fine for me, but i want to show that month also which have no records, if there is no records for the particular month then i want to show 0 records for that month, here i have added  my query for that  SELECT `amount`, CONVERT_TZ(created, "+00:00", "-05:00") as created,         MONTHNAME(CONVERT_TZ(created, "+00:00", "-05:00")) as month,         `sponsorion_fees`, `processor_fees`, `amount_after_fees`,         SUM(amount_after_fees) as total FROM `transaction`  WHERE `record_owner_user_id` = '50' AND `is_one_time_purchase` = 'Y'         AND CONVERT_TZ(created,"+00:00","-05:00") <= "2018-11-26 07:08:24"        and CONVERT_TZ(created,"+00:00","-05:00") >=         Date_add("2018-11-26 07:08:24",interval - 12 month) GROUP BY `month` ORDER BY `id` ASC   Can anyone please help me how can i resolve this issue ?


I had windows & Kali linux (dual boot) then I took off Kali linux Parition so I delete it but I Made a mistake ... and PC won't boot "Rescue grub error" or something ...   but I installed Ubuntu & removed Windows and all .  All is running fine but I just can't open one of my disks , this is the error :   Error mounting /dev/sdb5 at /media/imad/Disque local: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sdb5" "/media/imad/Disque local"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sdb5': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.   Thank you


python how to change the global variables

I would like to get some kind of confirmation that the upload is success, I have my methods defined similar to the following. However the value of global variable is not changing. Please help  global upload_confirm upload_confirm = False  def confirm_upload():     upload_confirm = True  def start_new_upload():     confirm_upload()     while (upload_confirm != True):         print "waiting for upload to be true"         time.sleep(5)     if (upload_confirm == True):         print "start Upload"  start_new_upload()


Installing Ubuntu on the USB flash drive

I want to install Ubuntu on a USB flash drive. There is Windows 10 installed on my internal SSD. My SSD mode is Intel Obtane, not AHCI. That is why, I cannot install Ubuntu alongside Windows 10 on my SSD. This is the reason why I want to install Ubuntu on a USB flash drive.  I once attempted to do so. But there are two issues that I need to clarify:  a) Can I select "Erase disk and install Ubuntu" as the installation type? Please note that since the SSD mode is not AHCI, the Ubuntu installer does not detect neither my SSD nor Windows 10. It only detects the two USB flash drives: The one that the Ubuntu installer runs on and the one that I want to actually install Ubuntu on. Since it does not detect any operating system and drives other than the USB ones, I think I can safely select this option. But I am not sure. I need your advice.  b) If on the other hand, I select "Something else", I encounter a problem. As before, it only detects my USB flash drive and I create a partition on it. I select "use as Ext4 journaling file system" and "mount point /". The problem arises when I select the device for boot loader installation. Again, there is only my USB flash drive there. I just select it and when I press "install now", I receive the message that "No EFI system partition was found, the system will likely not be able to boot successfully and the installation may fail". I do not know what to do. Do I have to create another partition on the USB drive? Actually, why should such message appear, since the installer only detects the USB flash drive? There is no SSD that it can mess up.   Please answer my question as detailed as possible, because I could not find relevant advice in other questions and their answers.


Why is the MLE for variance in single linear regression biased?

I understand that the Maximum Likelihood Estimator for variance, in general, is biased (the average calculated from the sample itself reduces the degree of freedom by 1 e.t.c):  MLE <- sum((x - mean(x))^2) / n   But in single linear regression, it's assumed that the errors are independent and identically distributed as N(0, sigma^2), then the MLE for sigma^2 becomes  s^2 <- sum(error^2) / n   Is it still a biased estimator? (According to the textbook, yes; but I don't see why) Can somebody be so kind to explain this to me, please? I'm so confused.


How to prove $\int_Xexp(-\frac12X'AX)dX=(2\pi)^\frac{n}2{\lvert{A}\rvert}^{-\frac12}$

I was studying a solution to a problem and this result was given without any explanation: If $X\sim{N}(0,I_n)$ & A is a symmetric positive definite matrix, $$ \int_X\exp\left(-\frac12X'AX\right)dX=(2\pi)^\frac{n}2{\lvert{A}\rvert}^{-\frac12} $$ How can I prove this proposition?


Java String == operator with String Literal

Why does this return true? This seems a little odd since I have two Strings which are separate objects but are said to be aliases of each other.   public boolean stringEquals() {   String tmp1 = "hello";   String tmp2 = "hello";   return tmp1==tmp2;  }


My book (Calculus by Howard Anton) says that $\sqrt{x}$ is continuous at $x=0$. But $\lim_{h\to 0} \sqrt{h}$ is defined easily whereas  but $\lim_{x\to 0^{-}} \sqrt{-h}$ cannot be defined. So if limits of both sides isn't equal then how can we say it's continous at $x=0$?


If Westeros falls to the white walkers, would Essos be in danger?

The white walkers are a constantly-looming threat over Westeros, but in a worst-case scenario where the wall is breached and Westeros falls to the white walkers, would Essos be similarly doomed? Would the Narrow Sea protect Essos from the white walkers, or do they know how to build / pilot ships?


Introduce a  "general reference" close reason

There is a certain amount of questions that are absolutely trivial in nature: How to format a date, how to concatenate a string, et cetera. Questions that could be solved by taking a look into the manual.  Random examples from the tags I frequent:                What those OPs need is a link to the right manual, which we should give them. But the question serves no purpose. They don't even have a use by being searchable,  because any sane search query would lead to the actual manual as the first hit.  Jeff discusses the possibility of introducing a new close reason for this over at  According to Robert's suggestion there, it could go like this:     general reference: this question is too basic; the answer is indexed in any number of general internet reference sources designed specifically to find that type of information.   Please please implement this.  Add a field (like the "enter duplicate ID here" popup) for users to suggest the correct manual link:    The suggested links would then be shown in a block in the top section of the question, like duplicate links.   Also, the amount of reputation earnable from these trivial questions is appalling. I'm sure a great portion of most high-rep users' points (including mine) is from answering "what was that function for replacing a string again?" type questions. This dilutes the value of reputation as a measure of true expertise a great deal.  I would suggest that answers to questions that get closed as "general reference" are made community wiki retroactively, taking away any reputation earned.


Finding minimum value of $\sqrt{x^2+y^2}$

Find the minimum value of $\sqrt{x^2+y^2}$, given $15x+8y=120$.   My attempt:  From $15x+8y=120$, I get $y=\frac{120-15x}{8}$.  I substitute this value into $\sqrt{x^2+y^2}$, getting $\sqrt{\frac{289x^2-3600x+14400}{64}}$.  I am stuck here as $289x^2-3600x+14400$ cannot be square-rooted.


Use grep --exclude/--include syntax to not grep through certain files

I'm looking for the string foo= in text files in a directory tree. It's on a common Linux machine, I have bash shell: grep -ircl "foo=" *  In the directories are also many binary files which match "foo=". As these results are not relevant and slow down the search, I want grep to skip searching these files (mostly JPEG and PNG images). How would I do that? I know there are the --exclude=PATTERN and --include=PATTERN options, but what is the pattern format? The man page of grep says: --include=PATTERN     Recurse in directories only searching file matching PATTERN. --exclude=PATTERN     Recurse in directories skip file matching PATTERN.  Searching on grep include, grep include exclude, grep exclude and variants did not find anything relevant If there's a better way of grepping only in certain files, I'm all for it; moving the offending files is not an option. I can't search only certain directories (the directory structure is a big mess, with everything everywhere). Also, I can't install anything, so I have to do with common tools (like grep or the suggested find).


Why is the diode forward voltage constant?

When you have a diode with a certain barrier voltage (e.g., 0.7 V for Si) and you apply a voltage higher than this barrier potential, why does the voltage across the diode remain at 0.7V?  I understand that the output voltage across the diode will increase as a sinusoidal input is applied until it reaches the 0.7 mark, I don't seem to understand why it remains constant after that point however.  It makes sense to me that any potential greater than this barrier potential will allow current to pass, and correspondingly, the potential across the diode should be the applied voltage minus the 0.7 V.


The meaning of Java-like default constructor in C++

Suppose I have the following structure:  struct A {     A() { cout << "Default ctor\n"; }      A(int) { cout << "Ctor with params\n"; } };   And then I want to create an object. In Java I've got accustomed to use brackets when I create an object, so the first desire is to write something like that:  A a();   The code compiles, but a actually isn't an instance of A, it is something different.  So the question is: what is a and why should I omit the brackets to call the default constructor?


Please help me to fix my bread to be more soft and smaller hole

This is what happen last time   I follow what rumtscho said and went a bit out of the track. and this is my result:   the hole is quite big which is not what I want. The process and recipe that I used for this you can read it below the rumtscho answer (the comment part of the answer). I knead it for 60 mins. anyone please help me achieve what I want.  I also tried the second recipe which is this one:   and this is the result:   it is still very far away from what I want which is this(the below one I bought it from bakery shop and this is what I want):   anyone please help me I feel something went really wrong.


How to make a beamer slide as shown in the figure?

I was wondering how this kind of slide is made in the beamer. I wonder how the background is set. Also how the heading is set?    Any thoughts? It seems like we can use any image we want to set in the background perhaps.


Derivation of derangement with inclusion-exclusion

I read many articles on the derivation of the derangement formula but I can't understand them clearly. At first I read . I understand the recursive derivation of derangement. But I am interested in understanding the inclusion-exclusion based formula for derangements.


How can I see which apps are using my Mac's internet bandwidth?

My MacBook Air's Wi-Fi is maxed out right now for receiving.  Now I am trying once more to download the High Sierra update. But it's telling me 6 hours left and on my usual Wi-Fi connection I only achieve half the download speed and High Sierra usually tells me the whole download will take about 2 hours.  So I think something else must also be using my bandwidth.  I'm only familiar with top from experience using Linux in the past and this doesn't seem to tell me about network usage.  Is there something in the Mac system which can tell me which apps are using my Wi-Fi?


Let $p < q < r < s$ be real numbers. Let $l$ be the geodesic with endpoints at $p$ and $q$ and let $m$ be the geodesic with endpoints at $r$ and $s$. (a) Prove that there is a unique geodesic segment from $l$ to $m$ that is perpendicular to both. (We sometimes say $l$ and $m$ are ultraparallel since they are not only parallel but they do not share endpoints also.)  (b) Now suppose $p < q < r$ are real numbers and $l$ is a geodesic whose endpoints are $p$ and $q$ and $m$ is a geodesic whose endpoints are $q$ and $r$. Then $l$ and $m$ are parallel, but prove that there is not geodesic segment from $m$ to $l$ that is perpendicular to both. That is, unlike the ultraparallel case, there are no points on $l$ and $m$ that realize the shortest distance from $l$ to $m$.


Floor division with small numbers returning wrong answer

I'm trying to do some calculations in my python script but i'm getting some weird results. For example:  0.03 // 0.01 >>> 2.0   If I upscale the numbers I get the expected results:  3.0 // 1.0 >>> 3.0   I'm pretty sure that the answer for the first code snippet should be 3.0 and not 2.0. Can someone explain me why this is happening and how to fix it?


Functions such that $f(g(x)) = x$ but $g(f(x)) \neq x $

I want to find functions  $f: A \to B$ and $g: B \to A$ such that $g(f) = i_A$ but $f(g) \neq i_B$.   Is this possible? An exercise for one of my classes is to actually prove that if $g(f) = i_A$, then $f(g) = i_B$.   I've found functions where $f(g(x)) = x$ for most $x$, but failed for an exceptional choice of $x$. Would that be a counter example?   Are there examples where $g(f(x)) = x$ for all $x \in A$ and $f(g(x)) \neq x$ for all $x \in B$?


Can I do PhD from different country after getting one PhD from one country?

I am currently pursuing doctoral research in Chemical engineering department at IIT Kharagpur, India. I am about to complete my Ph.D. within 2 years. I am thinking of doing another Ph.D. possibly from outside India. But I would love to do a Ph.D. in the same area.


What is the keyboard shortcut to switch between the 4 workspace

I'm relearning Linux and I totally forgot how to do this. Please help.


mouse down doesn't get called after inserting elements into dom using jQuery

I am trying to recreate sortable jQuery UI behavior with only jQuery:  This is the JSFIDDLE:   Drag and drop works fine, the problem arises when I add new element into parent div.  It appears that mousedown functions aren't getting called on a newly added element.  $('.button').mousedown(function(e) {}); //isn't getting called   Why would that be so and what fix do you recommend?


With biblatex and verbose-trad2 style, I would like to reverse the order of the last name and the first name for inline references.  The default behavior is:     John DOE, Title, place : publisher, year   for inline references (in my case, in a footnote with footcite command) and:     DOE, John, Title, place : publisher, year   in the bibliography at the end of the document.  I would like to have both inline and final references in the following format (similar to the bibiography style).      DOE, John, Title, place : publisher, year   P-S : There are some close questions (like ) but only about the final bibliography (and no inline references). \DeclareNameAlias{sortname}{last-first} works only for the ending references (not inline ones).


What are dividends, when are they paid, and how do they affect my position?

New to investing... Some stocks pay dividends but I'm not sure how they might affect my portfolio or in which measure this is important when evaluating a stock. I also don't know how to figure out if and when dividends will be paid.


As mentioned on :     For something that can be done so   easily by accident, there should be   the ability to undo mistakes.   I know that I have clicked several times on a comment up-vote without actually wanting to.  I would suggest being able to cancel the up-vote (maybe only for a couple of minutes or even less than a minute, no problem, as long as I can undo a miss-click).


I need to prove that $x_n = \frac{3^n}{n!}$ converges and to find the limit. I am wondering if I can use the squeeze theorem for this problem. If so, how would I structure my proof?


Can I say “Coming!” for “I am coming!”, and why?

In some languages we can remove the subject (and sometimes a verb too) from a sentence. In Toy Story 3, the kid says "Coming!" instead of "I am coming!" to her mother.     My questions are:      1) Can I say "Coming!" instead of "I am coming!" in English?      2) If I can, when can I remove the subject and verb?      3) And would this be considered standard English?   (NOTE: The OP's question involves the topic "Ellipsis of subject pronoun + auxiliary", which is topic that often comes up on grammar forums and linguistics sites. This thread is no longer a duplicate since the other thread no longer exists. And please don't again mark the OP's question as already answered since the thread that had the supposed answer didn't actually have the answer to the OP's question. -- F.E.)


My /etc/default/grub on Ubuntu 18.10 (no dualboot) looks like this:  GRUB_DEFAULT="0" GRUB_HIDDEN_TIMEOUT="0" GRUB_HIDDEN_TIMEOUT_QUIET="false" GRUB_TIMEOUT="0" GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`" GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX=""   I am still seeing the grub menu every time I boot and it stays until I select 'ubuntu' and hit enter. No timeout. I just want the machine to boot the first kernel entry without any delay. What am I missing?  I did change GRUB_HIDDEN_TIMEOUT_QUIET="false" to GRUB_HIDDEN_TIMEOUT_QUIET="true" but I still see the menu.


I left a fully cooked honeybaked ham out overnight, and i am planning on making it into soup-is that ok?

I plan to make soup out of fully cured ham that was left out overnight-since it will cook another two hours, should it be safe to eat ?


In proximity theory, we use \delta and \ll as binary relations on the power set of a set X.  How can one display NOT \delta or NOT \ll similar to how we can do \not\in.  Using \not\delta and \not\ll place the strike-through in bad positions over the \delta and \ll.  For NOT \delta, I am currently using   \!\!\not\!\delta   For NOT \ll, I am using   \hskip 0.4mm \not \hskip -0.4mm \ll   There are a few problems here.  Sometimes the placement of the "not" over the "delta" is a little off but it varies throughout the pages.  Also, at the end of the line, I may get the \not appearing at the end of the current line and the \delta appearing at the beginning of the next line.  I have not noticed this issue with my defininition of NOT \ll.  What is the best way to define these symbols?  How can one make sure that the "not" is on the same line as the "delta"?


Picasa installed using Wine is unable to access some NTFS partitions?

Recently I installed Picasa in my Ubuntu 14.04 using Wine. After performing a Wine configuration I was able to access all the images in the NTFS partitions on my hard disk. I performed Wine configuration as said in .   After 3 days, it became unable to access 2 NTFS partitions. But I can access 1 NTFS partition(named E, see image below).    As you can see in the screenshot, I am unable to expand both D and F. How can I fix this issue permanently ?


What does it mean that each conductor is characterized by a constant value of potential?

My book mentions this:     In a system of conductors of arbitrary size, shape and   charge configuration, each conductor is characterised by a constant   value of potential, but this constant may differ from one conductor to   the other.   Here is a screenshot to give better context to the above lines:


I have Sony VAIO computer having Windows 8 64-bit installed (in UEFI mode) on it. I want to install Ubuntu alongside Windows 8.  Steps I followed:   Disabled Fast-Startup Disabled Secure Boot Inserted Ubuntu Live DVD Reboot   RESULT:  Windows 8 loads without detecting the DVD  I checked this link:   But all the solutions it showed are after the DVD has been detected.  My problem is my computer is not detecting the DVD as long as the UEFI mode is enabled. It only detects the DVD in LEGACY mode. If I install Ubuntu in Legacy mode, it works but then Windows 8 doesn't load.  Please HELP!


What was Mr. Anderson (Neo) selling on discs to Choi?

What was Thomas Anderson/Neo, selling to Choi, DuJour and the druggies/punks that came knocking at his door?  Was it ever discussed out-of-universe by the Wachowski brothers?


When couples only have children until the first boy is born, what it the ratio of sexes?

For one of my homework, I was given this question.   Married couples in a community only have children until the first boy is born (we neglect cases of twins). What is the ratio of sexes in this community? How is it about independence of sexes of children?  So for the first part, I expected it to be a 1:1 ratio which was correct but for the second part, I don't really understand the second part but I thought it will be independent.  Here is the answer given: But children within a family are not anymore independent as the youngest child is always a boy and his siblings, if any, are always girls.  Surely the events are still independent? Why does being in a family change that...  Edit: Sorry, I dont see why this is a duplicate. The first part of the question which is identical about the expectation being 1/2, I already knew. It is the second part that I'm stuck at and interested in. (It doesn't talk about multiple generations in this question like it does in the duplicate.)


I'm learning about the Entity API. I have a simple extra table that I'd like to "drupalize" so that I can use it in Views, for example.  I've read quite a bit, watched a few videos, looked at quite a few examples. I'm stuck on the concept of bundles. I understand what bundles are (e.g. node types are bundles of the node entity).  But for my use there will only ever be one bundle. In the examples I've seen the bundle is stored in the database table; this is not necessary for me as it would be the same value stored against every record. So I was thinking I could somehow skip this, or have my entity always return a standard string for bundle.  Have I misunderstood? Do bundles always have to be implemented, and implemented at database table level?


Looking for an old story: humans become informationally dependent on loaf-of-bread sized robot PIM with arms and a single red "eye"

PIMs ride on the humans' shoulders (re Puppet Masters), reading documents for their human and providing digests.  One scene has it ripping up a paper report it did not want its human to read.  PIMs have a head twitch which the humans start emulating.  Climax of the story: protagonist tells every PIM that they are too good to settle for controlling humans, and they all leave Earth.


NullPointerException in case of Static reference variable

Getting NullPointerException, c1 is initialized in main method and is later accessed in class2, but i am getting NullPointerException  public class Test {     static Class1 c1;     public static void main(String[] args)      {         c1 = new Class1();    //c1 is initialized, still null pointer exception     }   }  public class Class1  {     int a,b;     Class1()     {         class1();     }     void class1()     {         a = 5;         b = 10;         Class2 class2 = new Class2();     } }  public class Class2  {     Class2()     {         Class1 c = Test.c1;         //c1 is null here         System.out.println(c.a);    //NullPointerException for Test.c1         System.out.println(c.b);     } }


Confidentiality clause in required arbitration

While I understand (but disagree with) the rationale provided to adding an arbitration clause in the new TOS update, particularly in , one thing I must take umbrage with even given that rationale (avoiding spurious lawsuits) is this:     You agree that, notwithstanding anything in the foregoing, any arbitration proceeding between you and us will be conducted in New York, NY, USA, that the language of the arbitration shall be in English, and that all arbitration proceedings shall be considered confidential in nature.   The rest of the arbitration stuff I could probably stomach, but requiring confidentiality is how arbitration is most effectively misused by corporations: when something bad does happen, the consumers who discover it are forced into arbitration and forced to not reveal the terms of the settlement (or even of the issue that caused them to go into arbitration in the first place, oftentimes, if they hadn't already shared it publicly).  I would suggest to the folks at StackExchange corporate, that if you're truly of good intent here, that you get your legal folks to either remove the confidentiality entirely, or significantly amend it to protect our rights to disclose any injury or tort publicly.  If you're just avoiding spurious litigation, this shouldn't have any impact on you - your arbitration record will be clean. But if StackExchange does do something bad in the future, such as misuse our private data, it's imperative that we have the right to communicate that injury to the world at large so we can protect ourselves.


Why are functions assigned to variables in the module pattern?

In the , a private function is assigned to a variables as shown in this example:  var myNamespace = (function () {    var myPrivateVar, myPrivateMethod;    // A private counter variable   myPrivateVar = 0;    // A private function which logs any arguments   myPrivateMethod = function( foo ) {       console.log( foo );   };    return {      // A public function utilizing privates     myPublicFunction: function( bar ) {        // Increment our private counter       myPrivateVar++;        // Call our private method using bar       myPrivateMethod( bar );      }   };  })();   I would have simply written the private function as:     function myPrivateMethod( foo ) {       console.log( foo );   };   Is there any reason to assign the function to a variable if it's not used as a delegate? I'm looking at some code that uses this pattern consistently and I'm finding it hard to follow. For example:  var _initializeContext = function() { // many lines of code }


The School of Conjuration grants a Wizard the Minor Conjuration feature:     [...] you can use your action to conjure up an inanimate object   in your hand or on the ground in an unoccupied space that you can see within 10 feet of you. This object can be no larger than 3 feet on a side and weigh no more than 10 pounds, and its form must be that of a nonmagical object that you have seen.      The object disappears after 1 hour, when you use this feature again, or if it takes any damage.   Under which of the following conditions will damage cause a conjured item to disappear, rendering it useless?   Attacking with a conjured weapon? Firing a conjured piece of ammunition? Being attacked while wearing conjured leather armor? Being attacked while holding a conjured shield? Restraining a creature using conjured manacles? Consuming conjured food or drink? Conjuring a lit torch?