Not quite sure why i'm getting a NullPointerException, new to Java so any help would be greatly appreciated!  public class MainActivity extends AppCompatActivity {       private TextView httpstuff;      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);         TextView httpstuff = (TextView)findViewById(R.id.tvHttp);         Button button = (Button) findViewById(R.id.button);         button.setOnClickListener(             new Button.OnClickListener(){                 public void onClick(View v){                     new JSONTask().onPostExecute("http://samples.openweathermap.org/data/2.5/weather?q=Chicago&appid=93eea9a9277a0520d2f444c3ff8c62da");                 }             }     );  }     class JSONTask extends AsyncTask<String,String,String> {         @Override         protected String doInBackground(String... urls) {         HttpsURLConnection connection = null;         BufferedReader reader = null;         try {             URL url = new URL("https://samples.openweathermap.org/data/2.5/weather?q=Chicago&appid=93eea9a9277a0520d2f444c3ff8c62da");             connection = (HttpsURLConnection) url.openConnection();             connection.connect();              InputStream stream = connection.getInputStream();             reader = new BufferedReader(new InputStreamReader(stream));             StringBuffer buffer = new StringBuffer();             String line;             while ((line = reader.readLine()) != null) {                 buffer.append(line);             }             return buffer.toString();          } catch(MalformedURLException e) {             e.printStackTrace();         } catch(IOException e) {             e.printStackTrace();         }                      finally {             if(connection != null){                 connection.disconnect();             }             try{                 if(reader != null){                     reader.close();                 }             }catch(IOException e) {                 e.printStackTrace();             }          }             return null;     }    @Override    protected void onPostExecute (String result){        super.onPostExecute(result);        httpstuff.setText(result);         }     } }   Android Studio Logs says that the NullPointerException error is occurring at  httpstuff.setText(result);   And at  new JSONTask().onPostExecute("http://samples.openweathermap.org/data/2.5/weather?q=Chicago&appid=93eea9a9277a0520d2f444c3ff8c62da");   private TextView httpstuff is a designated as a field but says that it is not initialized, but I use it in class JSONTask? Any ideas on why the exception is occurring? Thanks alot in advance!

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I've met a "drinks cans" compound noun on .     See how food and drinks cans get recycled   As I know, there is a specific rule for the plural compound nouns that are made of two nouns. In this case the second noun takes an -s form and the first one acts like an adjective, so it cannot have the plural form. "Drinks cans" is not a typo, it is also pronounced this way in the video, so how can it be correct?

Sorry for the title, it is not very evident and intuitive but I really do not how to tell it better...  Well, you know, several times, or better, many times, we use this form:  If I want to say:      "development of special weapons was   the first point in Hitler's   program..."   I will say this (a better form):      "special weapon development was..."   OK...  is it      "special weapon development"   or      "special weapons development" (note   the plural...)   what's the grammar rule in order to understand how to use this very used form?


I want to chunk a list in N objects every P objects in list.  For simplicity, lest say I have a list of ints:  [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]   If I want to take 2 objects every 2 objects, I expect this:  [1, 2], [3, 4], [5, 6], [7, 8], [9, 10], [11, 12]   Now 2 objects every 3 objects:  [2, 3], [5, 6], [8, 9], [11, 12]   What is the most pythonic way to do it ?

I have a list of arbitrary length, and I need to split it up into equal size chunks and operate on it. There are some obvious ways to do this, like keeping a counter and two lists, and when the second list fills up, add it to the first list and empty the second list for the next round of data, but this is potentially extremely expensive.  I was wondering if anyone had a good solution to this for lists of any length, e.g. using generators.  I was looking for something useful in itertools but I couldn't find anything obviously useful. Might've missed it, though.  Related question:


Every polynomial $f(x) \in K[x]$  can be uniquely written as             \begin{equation}        f(x) = \alpha (p_1(x))^{a_1} \cdot (p_2(x))^{a_2} \cdot ... \cdot (p_k(x))^{a_k},       \end{equation}             where $\alpha \in K, a_i \in \mathbb{N}$, with $p_i(x)$ irreducible for all $1 \leq i < k$.  Proof: I could prove the decomposition using induction on the degree of polynomial $f(x)$ but couldn't think of a way to prove uniqueness. Please help me.

I'm trying to prove that $A$ a UFD implies that $A[T]$ is a UFD.   The only thing I am sure I could try to use is Gauss's lemma.  Also, how can we deduce that the polynomial rings $\mathbb{Z}[x_1,\ldots,x_n]$ and $k[x_1,\ldots,x_n]$ are UFDs?


I've just realised that when you vote to reopen a question, you can't retract it afterwards. On the other hand, close votes can be retracted. Why can't "reopen votes" be retracted?

It seems that now we can retract close votes but we cannot retract reopen votes or delete votes.  I am trying to retract my reopen vote  but it does not allow me to.  Can we have that ability?


My friend uses minecraft pocket edition while I use minecraft pc edition. Is it possible to invite my friend to my singleplayer world? and how?

I am trying to invite my son (IOS Pocket Edition) to my realms server (mac osx).   I keep getting the response "Could Not Invite The Provided Name" when I try to invite him. His name is all regular characters with no spaces . . . just letters and numbers.  Are the two game types incompatible, and if they are Is it possible to create the same type of 24/7 available server that is only open to him and other invitees like the OSX realms?   Thanks in advance for any clarification.


var languages = {     english: "Hello!",     french: "Bonjour!",     notALanguage: 4,     spanish: "Hola!" };  for (var x in languages) {     if(typeof(languages.x)=="string")     {         console.log(languages.x);     } }   Output should be- Hello!  Bonjour! Hola! But there is nothing on the console screen. (There is no syntactical error so maybe there is some logical error)  P.S. It's 27/30 exercise on  (Last chapter)

How do I enumerate the properties of a JavaScript object?  I actually want to list all the defined variables and their values, but I've learned that defining a variable actually creates a property of the window object.


So I'm re-watching Star Wars as I occasionally do, this time using the amazing  I'm watching the theatrical releases, cause I'm old school like that, when I realize that the scanning troopers go on but they never go off. On top of that, there isn't a chance later because everybody leaves the ship and gets back to it at the same time. So I throw in my Special Editions, thinking somebody must have dropped a scene when reconstructing the theatricals. No dice. Troopers go on, no troopers come off.   So, what happened to those troopers? Did Han and Chewie kill them and space the bodies afterward? Did they hand them over to the Rebellion off camera? To be clear, I was wondering if it ever got addressed in the Expanded Universe.

TK-421 was the call number of the Stormtrooper that was sent on the Millenium Falcon to investigate it once it was captured in the Death Star 1's tractor beam following their jump to the Alderaan system.  TK-421 and another Trooper entered the Falcon, were ambushed, and Han and Luke emerged wearing their armor.    So, clearly their bodies would not be dragged off the ship because that would draw attention.  So we can assume that their bodies (alive or dead) left the Death Star with the Rebels and brought (assuming they weren't jettisoned into deep space) to Yavin 4...  Is there any evidence (Legends or Canon) that details his fate or that deals with the whereabouts of these Stormtroopers?   EDIT:  Also includes the scanning crew... are they amongst the dead stormtroopers?


so my wish would be to be shown all the times I cited an element in the bibliography in the text. So the vice versa operation of clicking onto a particular citation and being directed to the bibliography (this works in my code already). I'd like to click on an element in the latter however and then be directed to all the places where I cited this source in my text. I am using biblatex in texmaker with miktex. Is this somehow possible? Any help is very much appreciated.

I'm using the backref package within the hyperref package:  \usepackage[backref]{hyperref}   I get the following result:  Philip Hall. On representatives of subsets. Journal of the LMS, 10, 1935. 3.2, 4.1   where 3.2 and 4.1 are hyperlinks to sections in which this bibliographic entry is referenced. Is it possible to get pages instead of sections?


I already read . And that answer did not work for me. I have explained it on the question.  My android phone was stolen. I need to get all contact of my phone. I had enable sync in that phone.  When I visit , it has only a very few contacts (only if contact has an email ). How can I get all contacts?

I already read . And that answer did not work for me. I have explained it on the question.  My android phone was stolen. I need to get all contact of my phone. I had enable sync in that phone.  When I visit , it has only a very few contacts (seems like below 10% and all them has an email too). How can I get all contacts?


We have varchar2(250) column that have various text data we want to replace with other specific text. Note: I do not want to use multiple replace function for this requirement, is there is any better way to do it  requirement is to:  Replace <   with    "less than" Replace >   With    "greater than" Replace &   With    and   For example data in table is:   "amount must be < 1 & > 2"    Output of SQL should be:   "amount must be greater than 1 and less than 2"

I have a string coming from a table like "can no pay{1},as your payment{2}due on {3}". I want to replace {1} with some value , {2} with some value and {3} with some value .  Is it Possible to replace all 3 in one replace function ? or is there any way I can directly write query and get replaced value ?   I want to replace these strings in Oracle stored procedure the original string is coming from one of my table I am just doing select on that table   and then I want to replace {1},{2},{3} values from that string to the other value that I have from another table


To copy and paste a line i use the following method  C-a - beginning of line  #save the line to kill-ring using kill-line(this is faster than marking, # move to end of line and C-w) C-k - kill-line C-/ - undo kill-line   # move point to required line C-p or C-n or C-s (search for the nearest line where the paste must be done)  C-y # paste the line   Is there more efficent method than this. In vim just type yy, navigate and p does the job

I saw  and it has been something that I myself wanted to know how to do for Emacs. In ReSharper I use CTRL-D for this action. What is the least number of commands to perform this in Emacs?


I’m looking for a good book on thermodynamics with problems and solutions at an undergraduate level. Please let me know if you know any.

I've been working on some projects lately where it would be very handy to know more about thermodynamics than I do, but sadly I never had a chance to take a proper thermodynamics course in college. Unfortunately, right now I don't have the time to work through a 500-600 page undergraduate text on the subject.  Can anyone recommend a book/online resource/PDF that perhaps gives a (calculus based) broad overview of classical thermodynamics, say in something less than 200 pages?


I have the following code  \usepackage{tabularx} \begin{document}  \begin{table}[t] \begin{center} \renewcommand{\arraystretch}{1.3} \begin{tabularx}{\textwidth}{crX} \hline \textbf{Chapter} & & \textbf{Reference} \\ \hline \\ \vspace{-11mm} \\ 1 & \small{a} & \small{text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text} \\ \\ \vspace{-12mm} \\ \hline \\ \vspace{-12mm} \\ 2 & \small{b} & \small{text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text} \\ \\ \vspace{-12mm} \\ \hline \\ \vspace{-12mm} \\ 3 & \small{c} & \small{text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text} \\ \\ \vspace{-12mm} \\ \hline \\ \vspace{-12mm} \\ \end{tabularx} \end{center} \end{table}  \end{document}   which produces this    Now, in the first column, I'd like to have "1" aligned at the top, "2" aligned at the center, and "3" aligned at the bottom. How can I obtain this? Thanks in advance.

How do I get the last column text to be at the bottom of the row?  That is I want the XXX to be aligned with the line containing the arrow. I tried playing around with \multirow{3}{-3ex}{XXX}, but obviously I don't understand \multirow. Code: \documentclass{article} \usepackage{tabularx} \usepackage{booktabs} \usepackage{multirow}  \begin{document}     \begin{tabularx}{\linewidth}[t]{l X p{1.3cm}}         & Header & Title \\\cmidrule(lr){2-2}\cmidrule(lr){3-3}         a. & Some text text text text text text text text text text text text text text              text text text text text text text text text text              Want XXX on this line $\rightarrow$%          & XXX\\     \end{tabularx} \end{document}


I'm thinking of moving a mostly static website from homestead to heroku (using their free dyno plan to save monthly hosting costs). All else equal (e.g. let's say the content and files all remain as is), will simply moving from one host to another damage existing google search results?  The site has been around and hosted on homestead for about a decade and I want to avoid issues with google search indexation.

I have been hosting in a server from last 2 years. I am planning to change the hosting server. Before I change the hosting server I would like to know whether it affects my site's rankings or not?


Are there any cases of undergraduate students posting something on arXiv.org? Can undergraduate student (or any arbitrary person) REALLY post to arxiv and if not, then how does the protection work?   In principle, the mechanism of  seems to allow such content to pass through.

My department requires dissertations from all honours students (being England, that's basically all of them).  Some of these are extremely good, even though they are written by undergraduates.  My department for some years created a tech report series, which included undergraduate dissertations with high enough marks and the agreement of the supervisor, but now this system has gotten lost in a morass of web redesigns etc.  Is there any new norm for archiving good undergraduate dissertations?  We were thinking of just putting it in arxiv.org, is that considered acceptable?  We are writing an article and want to cite the dissertation for the full implementation details.


What is the expectation $$\mathbb E[X_1 \lvert X_1 > X_2]$$ assuming that $$(X_1,X_2) \sim \mathcal MVN(0,\Sigma),$$ with $\mathcal{MVN}$ being the multivarite normal. I would expect this to have an answer somewhere, but I cannot seem to find the duplicate. The closest I came was this . ANSWER To arrive at the answer using the question that has be referred to as a duplicate a little work is required. I will sligthly generalize the answer because that is the result I need so instead of solving for $\mathbb E[X_1 \lvert X_1 >X_2]$, I will solve for $$\mathbb E[X_1 \lvert X_1 >X_2 + u] $$ First note that $$\mathbb E[X_1 \lvert X_1 >X_2 + u]  = \mathbb E[X_1 \lvert U> u],$$ with $U:=X_1-X_2$. From properties of the multivariate normal it follows that $$\begin{bmatrix}1&0\\1 & -1 \end{bmatrix}\begin{bmatrix}X_1\\X_2 \end{bmatrix} = \begin{bmatrix}X_1\\U \end{bmatrix} \sim \mathcal{MVN}(0,D\Sigma D^\top)$$ where $D$ is matrix premultiplied on $(X_1,X_2)^\top$. From the duplicate (the equations given in the question of the duplicate and taken from wikipedia, not the answer itself) it follows that $$\mathbb E[X_1 \lvert U > u] = \mu_{X_1} + \frac{\sigma_{X_1,U}}{\sigma_U} \left( \frac{\phi((u-\mu_u)/\sigma_u)}{1- \Phi\left((u-\mu_u)/\sigma_U \right)} \right) = \frac{\sigma_{X_1,U}}{\sigma_U} \left( \frac{\phi(u/\sigma_U)}{1- \Phi\left(u/\sigma_U \right)} \right),$$ where the last identity follows from $\mathbb E[U] =0$ and  $\mathbb E[X_1] = 0$. Furthermore, $$\sigma_{X_1,U} = \sigma^2_{X_1}-\sigma_{X_1,X_2},$$ implying that $$\frac{\sigma_{X_1,U}}{\sigma_U} = \frac{\sigma_{X_1}\sigma_{X_2}}{\sigma_U}\left( \frac{\sigma_{X_1}}{\sigma_{X_2}}-\rho_{X_1,X_2} \right).$$ Another related post is this post on

Let $(X, Y)$ be distributed as a multivariate normal with parameters  $$ \mu = \begin{bmatrix} \mu_X \\ \mu_Y \end{bmatrix} \qquad \Sigma = \begin{bmatrix} \sigma_X^2 & \sigma_{XY} \\ \sigma_{XY} & \sigma_Y^2 \end{bmatrix}. $$   I would like to calculate $E(X | y_1 < Y < y_2)$, where $y_1$ and $y_2$ are constants.  From , I have managed to work out that $$ E(X | Y > y_1) = \mu_X + \frac{\sigma_{XY}}{\sigma_Y} \left[\frac{\phi\left(\frac{y_1 - \mu_y}{\sigma_Y}\right)}{1 - \Phi\left(\frac{y_1 - \mu_y}{\sigma_Y}\right)}\right]\\ E(X | Y < y_2) = \mu_X - \frac{\sigma_{XY}}{\sigma_Y} \left[\frac{\phi\left(\frac{y_2 - \mu_y}{\sigma_Y}\right)}{\Phi\left(\frac{y_2 - \mu_y}{\sigma_Y}\right)}\right] ,$$ where $\phi(\cdot)$ and $\Phi(\cdot)$ are, respectively, the p.d.f. and the c.d.f. of the Normal distribution. I could not figure out how to calculate $E(X | y_1 < Y < y_2)$, though.  I have searched for an answer in similar posts from the Stack Exchange network, but I couldn't get a clue from them that would solve this issue. For the record, here are some of them:


Want  to list all python test scripts  that contain  "def test"  This command line did not work while individual command works  find . -name "*.py" | grep "def test"

I used this a lot, the improvement I try to achieve is to avoid echo file names that did not match in grep. Better way to do this?      for file in `find . -name "*.py"`; do echo $file; grep something $file; done


Does anybody recognize this story?  A man fiddles with a time machine, and meets another man.  As the story progresses, the man is now the second man, meeting the earlier incarnation of himself.  The story progresses such that from the first person point of view the protagonist is sequentially one of three or four characters he meets.  I recall that when he manipulated the time controls he referred to the "vernier dial."

Years ago I read short story about a man sitting in his room. Suddenly appears the same man but from the future and gives him an advice about the future. Original man seems to agree to follow that advice. Man from the future goes away. Then another version of that man from another future comes and gives a completely opposite advice and begs original man to follow it. Then this second version of this man from future also left. Original man stays alone not knowing which advice from future he must follow.


I have been searching for answers on Stack Exchange websites and I frequently see the answers providing links to other websites. This is in itself not a problem. The issue is that I also frequently run into links that are no longer functional. Sometimes the links go nowhere, sometimes the links go to some error page the destination website has pre-created. I was wondering if there was a way to alert users that one or more of the links they provided in their answer is no longer functional and requires attention. Is there already a standard procedure for this? If not, what procedure should I follow? I think giving the original author a chance to fix their answer is necessary before calling the answer invalid. What do other people do currently to address this issue? Is this Stack Exchange site specific or is there a global stack * protocol? One such example is . The answer marked as "correct" has a dead link in it, and I flagged it. I was then alerted that the flag had been declined because "flags should only be used to make moderators aware of content that requires their intervention". What should non-authors do to address the situation?

Some questions and answers on stackoverfow have broken links. And sometimes it is important links in accepted or most upvoted answers.  If the question is old, and I have no idea of what the link should be pointing to, how can I  tell the author to try to fix it?  In my case, I am refering to  and the link "this entry" in the accepted answer.


I have a sed command to change something in a file of python:  sed -i 's|encoding = "ascii"|encoding = "utf-8"|g' /usr/local/lib/python2.7/site.py   so I want to replace "ascii" by "utf-8" but this does not work. Someone who can explain why it isn't working and what do I need to change?  >> import sys >> reload(sys) >> sys.getdefaultencoding(); --> "ascii"  Run my command  >> import sys >> reload(sys) >> sys.getdefaultencoding(); --> "ascii"

What is the fastest, easiest tool or method to convert text files between character sets?  Specifically, I need to convert from UTF-8 to ISO-8859-15 and vice versa.  Everything goes: one-liners in your favorite scripting language, command-line tools or other utilities for OS, web sites, etc.  Best solutions so far:  On Linux/UNIX/OS X/cygwin:   Gnu  suggested by  is best used as a filter. It seems to be universally available. Example:  $ iconv -f UTF-8 -t ISO-8859-15 in.txt > out.txt   As pointed out by , there is an . Gnu  () suggested by  will convert one or several files in-place. Example:  $ recode UTF8..ISO-8859-15 in.txt   This one uses shorter aliases:  $ recode utf8..l9 in.txt   Recode also supports surfaces which can be used to convert between different line ending types and encodings:  Convert newlines from LF (Unix) to CR-LF (DOS):  $ recode ../CR-LF in.txt   Base64 encode file:  $ recode ../Base64 in.txt   You can also combine them.  Convert a Base64 encoded UTF8 file with Unix line endings to Base64 encoded Latin 1 file with Dos line endings:  $ recode utf8/Base64..l1/CR-LF/Base64 file.txt    On Windows with  ():    PS C:\> gc -en utf8 in.txt | Out-File -en ascii out.txt  (No ISO-8859-15 support though; it says that supported charsets are unicode, utf7, utf8, utf32, ascii, bigendianunicode, default, and oem.)   Edit  Do you mean iso-8859-1 support? Using "String" does this e.g. for vice versa  gc -en string in.txt | Out-File -en utf8 out.txt   Note: The possible enumeration values are "Unknown, String, Unicode, Byte, BigEndianUnicode, UTF8, UTF7, Ascii".   CsCvt -  is another great command line based conversion tool for Windows.


I have a class and a nested class: template<class T> class foo { public:     struct small_foo     {         small_foo& operator=(const small_foo& other);     }; };  and a soruce file that looks like that: #include "foo.h"  template<class T> foo<T>::small_foo& foo<T>::small_foo::operator=(const small_foo& other) {     //Some code     return *this; }  While im compiling (static library) I'm getting 3 errors and a warning:  warning C4346:    :small_foo": name is not a type error C2061:    syntax error : identifier 'small_foo' error C2143:    syntax error : missing ';' before '{' error C2447:    '{' : missing function header (old-style formal list?)  EDIT: The problem was that the compiler couldn't tell what foo<T>::small_foo& in foo<T>::small_foo& foo<T>::small_foo::operator=(const small_foo& other) was. The solution is to add typename keyword in front of it so it looks like that: template<class T> typename foo<T>::small_foo& foo<T>::small_foo::operator=(const small_foo& other) {     //Some code     return *this; }

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


On December 21, 2018 at 2:23pm PST I want to be standing as directly under the sun as humanly possible. Obviously the latitude of that point will be the Tropic of Capricorn. Assuming I have the right ascension for the sun at that time how would I know what line of longitude to stand on? Please use simple non-technical terms if possible.

I'm trying to improve  that shows the region of the Earth currently under daylight, and I  need a formula that, given the current time, tells where  (latitude/longitude) the sun and moon are overhead, accurate to 1  mile. Can anyone come up with one?  Ideally I'm hoping to get something JavaScript can calculate at a "reasonable  speed" without recursion, loops, or extra libraries.   I've tried several things (eg, Fourier series on the Sun/Moon's  RA/DEC), but nothing seems quite accurate enough.   Note: I realize my calculations for sun/moon rise/set ignore  refraction and lunar parallax: for now, I'm focusing on finding the  overhead positions. I realize I can pull data from a non-JavaScript CGI program (and have tried that), but it seems like a lot of unnecessary network access.  EDIT: Thanks, Dustin and everyone.   Actually, I'm aware of  and even  wrote programs to download and parse their data  (  and  )  with the hope of finding simple formulas  (  and others), but got nowhere.   I realize I could hardcode the data into my JavaScript but that would  make the script unnecessarily large.   Currently, I rebuild the script every minute  ()  using interpolated JPLs data (the sun/moonfakex/y.txt files in  ), but this  seems insanely complicated.   This may be an inherently difficult and/or pointless question: to get  accuracy of 1 mile, you have to calculate the position within 52  seconds of arc, which is considerably smaller than the 30 minute (1800  seconds) width of the sun and moon themselves.   The ultimate goal is to let people zoom into their city on google maps  and watch the sunset "sweep" over their city (ie, predict the sun is  setting over a certain part of the city and have people in that part  of the city confirm it), but given refraction and parallax, this may  be impossible.


I just finished Multivariate calculus and I am wondering what sequence of books would allow me to work up to the mathematical knowledge needed to understand General Relativity and the corresponding field equations?

What are some good books for learning general relativity?


I have a problem with redirections :  $ which python3   gives me  /Library/Frameworks/Python.framework/Versions/3.7/bin/python3   and  $ ls -l /Library/Frameworks/Python.framework/Versions/3.7/bin/python3   gives me   lrwxr-xr-x  1 root  admin  9  5 fév 18:30 /Library/Frameworks/Python.framework/Versions/3.7/bin/python3 -> python3.7   but   which python3 | ls -l   don't gives me the same result.  Do you know why ? And what is the right command for redirection ?   I'm using OSX.  I have to say that the following question  may be the same as this one, but if I look the answers that were given, there I'm lost. To be useful, they require more advanced knowledge or study than those given here.

I've a command that outputs data to stdout (command1 -p=aaa -v=bbb -i=4). The output line can have the following value:  rate (10%) - name: value - 10Kbps   I want to grep that output in order to store that 'rate' (I guess pipe will be useful here). And finally, I would like that rate to be a value of a parameter on a second command (let's say command2 -t=${rate})  It looks to be tricky on my side; I would like to know better how to use pipes, grep, sed and so on.  I've tried lots of combinations like that one but I'm getting confused of these:  $ command1 -p=aaa -v=bbb -i=4 | grep "rate" 2>&1 command2 -t="rate was "${rate}


Is there a QGIS functionality or a plugin that I can use to 'move' polylines in a shapefile with a certain offset to the right or left of its original position and save the result in a new shapefile?  (In Avenue I would use: aPolyline.ReturnOffset(aDistance) )

I am using QGIS 2.18 . I have shapefile which contains multiple lines. After processing certain data processing , I need to draw parallel lines at different distances from existing lines. For example I have 32 lines in existing shapefile. I want to draw parallel lines at distance of 50, 100, 170, 500,400 from line ID no. 3 ,6,20,25,31 in one go. Is there any method or plugin in QGIS for doing same?


He alleges another £1m had gone on material purchases based on projections of Arcadia orders he was told were coming down the line.  I can't understand the meaning of this sentences.This sentence is seems simple sentence because there is no connector. As I know a simple sentence has one clause , that's mean one subject and one finite verb but here I can see more than one clause and more than subject and verb came here.

He alleges another £1m had gone on material purchases based on projections of Arcadia orders he was told were coming down the line.  This sentence look like a simple sentence. But here uses, more than one finite verb without adding any linkers. How is this sentence made?


Error BrokenCount > 0  Details refer to lib6 dependencies I had attempted to up grade from 12.04 to 14.04 but the upgrade package advised me not to because my graphics hardware might not be good enough. After I didn't continue the system upgrade, the Broken package message appears in Update Manager.

I have the message:   Error Broken count >0 Check if you are using third party repositories. If so disable them, since they are a common source of problems. Furthermore run the following command in a Terminal: apt-get install -f Details: The following packages have unmet dependencies: firefox-globalmenu: Depends: firefox (= 19.0+build1-0ubuntu0.12.04.2) but 19.0+build1-0ubuntu0.12.04.1 is installed   Any suggestions?


Given the following recurrence relation: $$ {a_{n+1}}={(a_{n})}^2-2 ,\\a_0=\frac{5}{2}$$   Prove that $\left \lfloor{a_{n}}\right \rfloor $ is a power of 2 for every natural number n, using recurrence equation transformations ( i.e. without induction).

Let $m>2$ be an integer, $x_0 = m$ and $x_n = {(x_{n-1})}^2 - 2$ for $n > 0.$ Prove that $x_n=\lceil\tau(n) \rceil$, where $\tau(n) = α^{2^n}$ and $\alpha >1$ satisfies $\alpha + \frac{1}{\alpha} = m$.  This is the problem.  The only thing I can think of is that it could have something to do with $\varphi$, since for $m=3$ we have $x(n)=\lceil\left(\varphi^2\right)^n\cdot \varphi) \rceil$, $\alpha = \varphi^2$. Other than that I have no idea how to move on. Thanks in advance


The UK Teachers' Standards ask teachers to 'take responsibility for promoting... the correct use of standard English', and six lines later we find the heading, 'Plan and teach well structured lessons' [sic]. Does anyone else think 'well-structured' should be hyphenated? See Page 11 of  Thank you

Should I hyphenate the term 'well organised'? The context, if it matters, is the following sentence:     For this role you should be well organised and analytical with some research ability.   (I see there are other question here about hyphenation; do point me to one if this falls under a general rule, I just couldn't see it.)


The equation I want to display is too long to put in one column, so I prefer to make it in the whole two columns like the following format of equation(47)   including the two lines above and under equation (47).  Thank you for your assistance.

I have an equation in my document which is unbreakable and does not fit on one line using the twocolumn global option. Am I forced to shrink the text size here? And how do I go about doing it? \resizebox does not function in math mode.    \documentclass[twocolumn]{ltxdoc} \usepackage{amsmath} \begin{document} \begin{equation} \sum_{q_\mathrm{total}=0}^{q_A+N_A+q_B+N_B-2}\left(\sum_{q_A=0}^{q_\mathrm{total}}\left(\binom{q_A+N_A-1}{q_A}\binom{q_B+N_B-1}{q_B}\right)\right)x^{q_\mathrm{total}} \end{equation} \end{document}


This is my first time trying to create citations and a bibliography. I have read plenty of information online and watched numerous videos. I still am not sure if I understand it. I am using TexMaker since it is the only software that works well for me.  Following and online guide here is how my main document looks.   \documentclass[11pt, letterpaper]{article} \usepackage[margin=0.5in]{geometry}  \begin{document}  \begin{titlepage} \title{Homework 1: Annotated Bibliography} \author{Author Name} \end{titlepage} \maketitle  Game Theory \cite{test}  \bibliography{anbib} \bibliographystyle{plain}  \end{document}    I created a file called  anbib.bib and placed in the same folder.   @article{test, title={A general theory of equilibrium selection in games},   author={Harsanyi, John C and Selten, Reinhard}, journal={MIT Press Books},   volume={1},   year={1988}, publisher={The MIT Press} }   I try to compile the main file using quickquick build in TexMaker and the title shows up fine. Then I get in the main text Game Theory [?]. Furthermore I do not see a bibliography in my document.  What am I doing wrong? I read somewhere that I can download software called BibTex to make a bibliography document. I cannot find it for download anywhere. Sorry about the formatting. Normally all my code shows up fine in StackExchange. For some reason not so much here.

I've browsed the forums and found a number of posts that have addressed this issue, but none of the solutions seem to work for me. I have the following script that I just copied from the bibtex home page to get familiar with it. Instead of the citation number I get a question mark. I compile using Latex+Bibtex+Latex+Latex+PDFLatex+ViewPDF just as has been previously suggested and the problem persists.   \documentclass[11pt]{article} \usepackage{cite}  \begin{document}  \title{My Article} \author{Nobody Jr.} \date{Today} \maketitle  Blablabla said Nobody ~\cite{Nobody06}.  \bibliography{mybib} \bibliographystyle{plain} \end{document}   My bibliography (Bib.bbl)  @misc{ Nobody06, author = "Nobody Jr", title = "My Article", year = "2006" }    Looking at previous posts one thing that is concerning is that my .bbl looks empty as shown below. Further, I don't have a .blg  \begin{thebibliography}{}  \end{thebibliography}


We want to run custom lightning component in the lightbox for quick action. Is there any way to display the same layout but for custom component?

I have a form that needs to let the user select 3 out of 5 products, something similar to Order > Add Product (Modal). I was wondering if there was a way to bring that piece into my component (markup) and add some sort of filter that only shows the products I want to show.  What I found so far:  <lightning:listView objectApiName="Products2" listName="productsView" showActionBar="true" enableInlineEdit="true" showRowLevelActions="true"/>   But Product2 is not supported for that component.  also these from browser inspector:  forceMultiAddUsingLVM forceListViewManager   These are data-aura-class attributes when rendered.  I'm looking for directions here. Thanks in advance.


Let  $ABC$ an  equilateral   triangle  and  $O$ a  point in  interior of $ABC$. Consider $M, N, P$  the  projections on  the  sides $AB, BC, AC$.  Then  the  sum of  areas of  triangles $ AOM, BON, COP$ is  the same like  the  sum  of  areas of  triangles $BOM, CON, AOP$. How  to  start? I  try  to  find  an  elementary  solution.

Inside an equilateral triangle $ABC$,an arbitrary point $P$ is taken from which the perpendiculars $PD,PE$ and $PF$ are dropped onto the sides $BC,CA$ and $AB$,respectively.Show that the ratio $\dfrac{PD+PE+PF}{BD+CE+AF}$ does not depend upon the choice of the point $P$ and find its value.    I have no idea how to proceed. I could not do anything beyond calculating the area of $PDB,PCE,PFA$ but here I get nothing. Please help!


For my own Logger class I want to define a map to map the priority number back to a meaningful string like follows:   static Map<int, String> map = new HashMap<int, String>(); map.put(2, "VERBOSE"); map.put(3, "DEBUG"); map.put(4, "INFO"); map.put(5, "WARN"); map.put(6, "ERROR");   I wonder if there might be a function that does this automatically? But I do now know every function there is.   However, I define the lines just before my class definition, and then I get the error:   Error:(14, 8) error: class, interface, or enum expected   and not sure what it means (maybe I cannot declare variables outside a class?). I also tried to define the map inside the class, but then the put method cannot be resolved. I also notice, that I have not imported a Map module, and AndroidStudio does not seem to require a Map module (i.e. the name 'Map' is not red and underlined).   I am very confused (as usual); I just want to get a String "ERROR" if the priority-value is 6 and so on.   What am I doing wrong in my case...?

How would you initialise a static Map in Java?  Method one: static initialiser  Method two: instance initialiser (anonymous subclass) or some other method?  What are the pros and cons of each?  Here is an example illustrating the two methods:  import java.util.HashMap; import java.util.Map;  public class Test {     private static final Map<Integer, String> myMap = new HashMap<>();     static {         myMap.put(1, "one");         myMap.put(2, "two");     }      private static final Map<Integer, String> myMap2 = new HashMap<>(){         {             put(1, "one");             put(2, "two");         }     }; }


I am a beginner in python and I am trying to understand the statement. It is diff  = \ floor(a - b)). What does the \ mean in this statement? Thank you.

I have a long line of code that I want to break up among multiple lines. What do I use and what is the syntax?  For example, adding a bunch of strings,  e = 'a' + 'b' + 'c' + 'd'   and have it in two lines like this:  e = 'a' + 'b' +     'c' + 'd'


I have a new setup of texworks and texlive on my windows 10 laptop. When I run pdflatex all the inline citation become [?] and no bibiliography is generated. If I run the same tex and bib file in the office computer, it works normally. Hence I know that it is not the issue with tex or bib files. Can anyone please help me what kind of configuration checks/changes i need to do to resolve this issue.  here is the bibliography related message in the log file  Package natbib Warning: Citation `Dirac1953888' on page 2 undefined on input li ne 106.  No file elsarticle-template.bbl.  Package natbib Warning: There were undefined citations.  Package atveryend Info: Empty hook `BeforeClearDocument' on input line 112.  [2]


If $X_1,X_2,…,X_n\sim Pois(λ)$, find the UMVUE of $\exp(−2λ)$. I know based on lehmann scheffe theorem, the step is  (1)find $q(x)$ an unbiased estimater of $\exp(−2λ)$  (2) $T(X)$ is sufficient and complete  (3) $s(*)=\mathbb E(q(x)|t(x))$ is a UMVUE  (4) var$(s(*))$ <$\infty$, then it is the UMVUE  The answer IS: y=(-1)^x, when x is even y=1,when x is odd, y=-1.  But I still do not know step by step, how to make it work?

I'm trying to find the UMVUE of $e^{-2\lambda}$ with $X_1, X_2,\ldots,X_n \sim \operatorname{Poisson}(\lambda)$ being independent.    So since $T(X) := \sum_{i=1}^n X_i$ is a complete sufficient statistic for the Poisson distribution, and also $W(X):= \mathbf{I}(X_1 + X_2 = 0)$ is an unbiased estimator of $e^{-2\lambda}$, then by Lehmann_Scheffe, $$\tau(T)= \mathbb{E}(W(T)\mid T(X)) $$ is the UMVUE of $e^{-2\lambda}$.    I'm having trouble computing $\tau$ so I would like to see if this is correct: First, to find the expectation, I need the PDF. $$\mathbb{P}(W(T)=s\mid T(X)=t) = \frac{\mathbb{P}(W(T)=s \ \cap \ T(X) = t)}{\mathbb{P}(T(X) = t)} \\ = \frac{\mathbb{P}(\mathbf{I}(X_1 + X_2 = 0)  = s \ \cap \ X_1 + X_2 + \cdots + X_2 = t)}{\mathbb{P}(X_1 + X_2 + \cdots + X_n = t)}\\ = \frac{\mathbb{P}(\mathbf{I}(X_3 + X_4 + \cdots + X_n = t)=s)}{\mathbb{P}(X_1 + X_2 + \cdots + X_n = t)}   $$ The denominator is just $\frac{e^{-n\lambda}(n\lambda)^t}{t!}$. When $s=1$, we have  $$\mathbb{P}(\mathrm{I}(X_3+X_4+\cdots+X_n=t) =1) = \frac{e^{-(n-2)\lambda}((n-2)\lambda)^t}{t!}   $$ So  $$\mathbb{P}(\mathrm{I}(X_3+X_4+\cdots+X_n=t) =0) = 1 - \frac{e^{-(n-2)\lambda}((n-2)\lambda)^t}{t!}   $$ After this, I'm unsure of how to find the expectation. Is my approach correct?


Let $f:[a,b]\rightarrow\mathbb{R}$ be a continuous function on the closed interval $[a,b]$. Let $\mathcal{C}=\{(x,f(x))\in\mathbb{R}^2|x\in[a,b]\}$ be its graph. Prove that $\mathcal{C}$ is measurable and $m(\mathcal{C}))=0$.  I have no idea how to start, I don't know how to relate the measurable function and its graph. Can you give me some hints?  Thanks!

I need help to solve the following problem:  Let $f: \mathbb{R}^n \rightarrow \mathbb{R}$ be a continuous function. Prove that the graph $G(f)=\{(x,f(x)):x\in\mathbb{R}^n\}$ has measure zero in $\mathbb{R}^{n+1}$.  I suppose that I have to use that f es uniformly continuous, but I don't know what rectangle which sum of volumes is less than $\varepsilon > 0$ should I take.


I want to install Pillow on Ubuntu. But I get this error:   Import Error: cannot import name main.   My command is:   sudo pip install Pillow  Thanks.

I went to  for installing Pillow since the original PIL is a discontinued project and so now not so good to use. But, in the table support for Ubuntu 16.04 LTS is unmentioned. It appears neither in , or in .     Further, just installing pillow is said to be not enough. There are some dependencies that should be installed first which is also unmentioned for Ubuntu 16.04 LTS. Would the installation steps for Pillow for python 3 given for 14.04 LTS be OK for Ubuntu 16.04 LTS?  If not, How do I install pillow in 16.04 LTS for Python 3.6? (There is support for Python 2.)


I noticed that spoiler text, that is, text that appears upon a click, can easily hide URLs. By clicking to reveal text, you are redirected:  >! http://www.bbc.co.uk/sport/0/football/         This doesn't seem wise. Is it a bug? Should it be fixed? I'm experiencing this issue on a touch screen device. One press to reveal the text also inadvertently presses the link.

This is an issue I noticed when reading . On multiple occasions I ended up inadvertently clicking a link that I could not see when I was just trying to reveal the spoiler text.         Can links be deactivated in spoilers until the text is revealed?  (Edit: this issue seems particularly to apply to those using touch screen devices with the "full site" theme)


I want to model a pistol like this for my FPS:    You can see how the cylinder for the front of the barrel is very low poly. How do I make a cylinder less low poly? Or even a sphere, anything?

When you first add a cylinder, you have the option to change the number of vertices, etc, but once you do anything else in blender, it seems you no longer can edit those parameters.   Is there a setting anywhere or an add-on that allows these parameters to be edited later on? If not, how easy would such an addon/feature be to create for anyone reading this?


I am looking for books, notes, video lectures and other resources that cover the following topics in Field Theory and Galois Theory (taken from Basic Algebra: Groups, Rings and Fields by P. M. Cohn.):  Field Theory  7.1 Fields and their Extensions  7.2 Splitting Fields  7.3 The Algebraic Closure of a Field  7.4 Separability  7.5 Automorphisms of Field Extensions  7.6 The Fundamental Theorem of Galois Theory   7.7 Roots of Unity   7.8 Finite Fields  7.9 Primitive Elements; Norm and Trace  7.10 Galois Theory of Equations   7.11 The Solution of Equations by Radicals   Cohn itself is a bit too dense for me, so I'm looking for something more introductory with proofs of even the "obvious" results that are skipped there and more solved examples.  Related:

I studied basic field theory from J.A. Gallian in U.G. and Fraleigh. and a year ago I self studied it from Galois Theory by David A. Cox, and I got pretty good at it. But in last year I was mainly studying groups and non-commutative ring theory, so now I feel like I have lost my sharpness in Field theory and now I want to reread whole Galois field theory. But doing Cox again will feel boring so I was thinking to switch to a  new book. After googling a lot I have shortlisted these small and interesting book-  1) Fields and Galois theory by Howie 2) Galois Theory by Rotman 3) Field and Galois theory by Morandi 4) Galois Theory by Escofier  Which one of these texts is most interesting and insighting? Which one should I buy first, e copies of all of them looked great, but which one I should purchase and read first.  If there are any other suggestions, you are welcome!


Tell me which option is a proper option and if any of these options has some serious flaw that one should avoid at all costs English website root folder installed main websie  subsite english version  subsite german version  PLEASE note that help and hilfe are not just pages but entire websites created with wordpress subsite. IN other words those are separate websites/blogs and not just pages of the mainsite. would this be okay from the SEO point of view? Basically the german version of the website having /de/ in its url? English version not having en. But version being subsites. mainsite simply being in english. Would that be a big problem?

When I set up a site in multiple languages, how should I set up my URLs for search engines and usability?  Let's say my site is www.example.com, and I'm translating into French and Spanish. What is best for usability and SEO?  Directory option:  http://www.example.com/sample.html http://www.example.com/fr/sample.html http://www.example.com/es/sample.html   Subdomain option:  http://www.example.com/sample.html http://fr.example.com/sample.html http://es.example.com/sample.html   Filename option:  http://www.example.com/sample.html http://www.example.com/sample.fr.html http://www.example.com/sample.es.html   Accept-Language header:  Or should I simply parse the  header and generate content server-side to suit that header?  Is there another way to do this? If the different language versions don't have different urls, what do I do about the search engines?    UPDATE 2011-12-06  Google has new recommendations for meta tags for explicitly pointing to other language content: .  UPDATE 2012-05-25  Related but not precisely:   UPDATE 2013-06-12  includes discussion of several URL schemes directly relevant to the question.


I currently have a long wire ethernet chord travel from my office to my bedroom (the rooms are side by side), as I wish (It's a long ethernet cable wire).  I went from a 1.9 MBPS to a 15.+ MBPS after switching from wireless to ethernet. Yay.  Now, we're thinking to add a splitter to the ethernet line, so that I have a way to connect directly in my office and my bedroom, depending on where I'm at, or say if I have a guest who wants to share ethernet line in one of the two rooms.  My question though, since I am the main person using, will adding a splitter, by default reduce speed, if it's just one person using the connection?  Thanks in advance.

I thought the Ethernet is logically a one-line communication bus (for argument's sake, I am excluding hubs). All machines attached on the bus hears the same signals and the machines themselves try to avoid collisions by randomly backing off.    If so, why would splitting one Ethernet line from my home router into two and connecting two computers not work? Why do I have to add a switch to it?  What the Internet said would not work.                                                             +----------+                                                +---------->|computer 1|                                                |           +----------+     +------------------+       +---------------+     |4 port home router+------>|simple splitter|     +------------------+       +---------------+                                                |           +----------+                                                +---------->|computer 2|                                                            +----------+   What the Internet said I should do                                                             +----------+                                                +---------->|computer 1|                                                |           +----------+     +------------------+       +---------------+     |4 port home router+------>|    switch     |     +------------------+       +---------------+                                                |           +----------+                                                +---------->|computer 2|                                                            +----------+   Is this because of the signal degradation (reduced electric current)?    Thank you for all the answers! The reason why I did not just use the two ports of my home router is...  The 4-port gigabit router is in my room, and I had put a computer in another room (also my room, though). Since a wired network is far more reliable and secure, I had bought a long Ethernet cable and and connected the computer to the router. Now I was thinking about adding another computer to that room. I could buy another long Ethernet cable, but then there will be two cables between the rooms. The one line already is a minor annoyance, so I thought if I could share the one line between the two computers in that room. A switch would work, but it requires power and is a little bit pricey. That is why I wondered why it would not work to simply split the physical Ethernet cable.  Apparently I do not completely understand how Ethernet and a switch work. I just have some bit of knowledge I heard in my college class.


This is the computer I have currently with  13.10 installed on it, and it works well:   OS version: Microsoft Windows XP Professional, Service Pack 3, 32 bit Processor: Intel(R) Pentium(R) 4 CPU 2.80 GHz, x86 Family 15 Model 4 Stepping 1 Processor count: 1 RAM: 1149 MB Graphics card: Intel(R) 82865G Graphics Controller, 96 MB Hard drives: C: Total - 38091 MB, Free - 17316 MB; Motherboard: Dell Computer Corp., 0U2575 Antivirus: CA Anti-Virus Plus, Updated: No, On-Demand Scanner: Enabled   However, I do a lot of editing of large digital photos, and I'm converting a second computer, with the exact same specifications as this one, to Xubuntu 13.10, AND I'm replacing the 128 MB memory module with a 1 GB module, giving me a total of 2 GB. I have read a lot of posts here that say with 2 GB it is best to go with the 32 bit download of 13.10. But I have also read a lot of posts here that say it's best to go with the 64-bit. That 2 GB is plenty to run 64-bit software, and that 32 bit software is rapidly becoming obsolete.  What is the explanation to clear up the confusion?

What is the difference between 32-bit and 64-bit Ubuntu? I've heard the 64-bit platform performs better and can detect more than 4GB of RAM. Also, while some apps haven't ported to 64-bit yet, ia32-libs lets a 64-bit machine run them.  If so, why not promote 64-bit over 32-bit?


I am looking for a book on (one variable) real analysis that includes, simultaneously:   A treatment of the abstract and theoretical aspects of real analysis; A treatment of the more mechanical and computational aspects of calculus (such as techniques of antidifferentiation, for instance).   The reason I'm finding this hard to find is that usually undergraduates take a course in calculus where they learn mostly the mechanics and then take a real analysis course where the emphasis is on theory. I'm looking for a book that integrates these two aspects. Ideally the logical prerequisites should be (besides some mathematical maturity) the mathematics one learns in high school (algebra, trigonometry, ...).

This question is a  of the common question asking for calculus references. It is here to  away the repetition, and give a canonical resource for calculus references.      I'm looking for a resources to learn single-variable calculus.


How to resolve temporary failure resolving 'dl.google.com' and 'in.archive.ubuntu.com' errors?  I have tried using the nameserver for Google (8.8.8.8) but the error still remains.   I don't know what to do about this archive error.

Err http://archive.canonical.com natty InRelease     Err http://security.ubuntu.com oneiric-security InRelease                Err http://extras.ubuntu.com natty InRelease                             Err http://security.ubuntu.com oneiric-security Release.gpg   Temporary failure resolving ‘security.ubuntu.com’ Err http://archive.canonical.com natty Release.gpg   Temporary failure resolving ‘archive.canonical.com’ Err http://extras.ubuntu.com natty Release.gpg   Temporary failure resolving ‘extras.ubuntu.com’ Err http://gb.archive.ubuntu.com oneiric InRelease Err http://gb.archive.ubuntu.com oneiric-updates InRelease Err http://gb.archive.ubuntu.com natty-backports InRelease Err http://gb.archive.ubuntu.com oneiric Release.gpg   Temporary failure resolving ‘gb.archive.ubuntu.com’ Err http://gb.archive.ubuntu.com oneiric-updates Release.gpg   Temporary failure resolving ‘gb.archive.ubuntu.com’ Err http://gb.archive.ubuntu.com natty-backports Release.gpg   Temporary failure resolving ‘gb.archive.ubuntu.com’  Reading package lists... Done W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/oneiric/InRelease       W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/oneiric-updates/InRelease   W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/natty-backports/InRelease   W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/oneiric-security/InRelease   W: Failed to fetch http://archive.canonical.com/ubuntu/dists/natty/InRelease   W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/natty/InRelease   W: Failed to fetch http://archive.canonical.com/ubuntu/dists/natty/Release.gpg  Temporary failure resolving ‘archive.canonical.com’ W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/oneiric-security/Release.gpg  Temporary failure resolving ‘security.ubuntu.com’ W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/natty/Release.gpg  Temporary failure resolving ‘extras.ubuntu.com’ W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/oneiric/Release.gpg  Temporary failure resolving ‘gb.archive.ubuntu.com’ W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/oneiric-updates/Release.gpg  Temporary failure resolving ‘gb.archive.ubuntu.com’ W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/natty-backports/Release.gpg  Temporary failure resolving ‘gb.archive.ubuntu.com’ W: Some index files failed to download. They have been ignored, or old ones used instead.   This is what I'm seeing when I try to run sudo apt-get update. I did an update on my instance yesterday and am now experiencing this.


Everyone has his own port on his hand. Ports was kind of living thing, soft and reshapable. I have only a view in my memory. The idea was awesome. I would like to see the full movie.

I remember seeing this movie (or TV show) when I was a kid (around 1999). My memories are very vague.   I remember the main characters were a guy and a girl. They had some kind of device, which in retrospect looks like a genetically engineered organism. I remember it had small finger-like appendages that they would use as controls. This creature somehow enabled the main characters to visit a parallel universe (or virtual reality) which was indistinguishable from the real world. There was some symbolism here comparing this virtual reality to the internet. At some point during the movie, one of the main characters kills someone, and there was some confusion regarding if it happened inside the virtual world or not. I'm not completely sure but I think the person was actually killed in the real world by accident.   Any ideas?


INBOX and ACHIEVEMENT button images not showing for my SO account. I tried it in chrome and firefox. They didn't show up on either of them. But they show on safari.    You can see in the above image that its empty. But actually there are buttons, better say invisible buttons.See below pic.     So, when i click on that empty space, the popup shows up. I don't understand why its not working with chrome.It happened today and never had such issue before. I like working on chrome or firefox. It's not a big deal with or with out those buttons.But i just want to know how to revert them.   Thanks,

Chrome and IE 11 are fine, I'm only able to reproduce this in Firefox. Using version 27.0.1 on Windows 7. Meta as well as all the other sites are affected.        I can still see the hover effect, but the image is gone. I see this in Firebug:        The image doesn't show up in the Network tab. I am able to see the image by visiting  which goes to   I've done Ctrl-F5, I've cleared the cache and I've tried Private Browsing. Possibly related to  ?


I was wondering if anyone could confirm if this sentence is correct?  It somehow doesn't sound or feel correct but I saw it written today. Can anyone give me any insight if it is right or wrong?  'But for my father, I wouldn't have achieved anything.'

Does 'but for' mean:  'If we had X (but we didn't), Y would have been the consequence'?  Or can it also mean; because we had X, as a result Y happened?   Some different examples of but for:  (Case 1)     But for a cup coffee, it was to be a productive day of writing.   Unfortunately, I'd run out, and spent the day craving.    (Case 2)     But for the glass of wine I had dinner, the house work didn't get   done.   (Case 3)     But for the glass of wine I had for dinner, I would have got the   house work done   What is the correct usage of "but for"?


I am building website using Angular and .net core, some modules will be written in python  I have searched on hosting specs and know the difference between them and I am comfortable for dedicated server to help me manage the website, database , etc myself   the factor that I can not decide about the number of user, I asked the marketing team and they said that the expected number of users per month are 1 to 2 million visit  how to choose server specs that suit this number without affecting the server performance ?

This is a  about  Related:      I have a question regarding capacity planning. Can the Server Fault community please help with the following:   What kind of server do I need to handle some number of users? How many users can a server with some specifications handle? Will some server configuration be fast enough for my use case? I'm building a social networking site: what kind of hardware do I need? How much bandwidth do I need for some project? How much bandwidth will some number of users use in some application?


I'm trying that when I change into drop-down, the input box should be focused and value of input box should be selected. I used   $("#text_qty").focus(function () {     this.select(); });   but it is not working .  This is my input box  <input type="number" name="text_qty" id="text_qty"  value="0" onKeyUp="cal_price()" onChange="cal_price()" min="0"/>

What is a Vanilla JS or jQuery solution that will select all of the contents of a textbox when the textbox receives focus?


show that if A is not compact in $\mathbf{R}$ ,  exists a function continuous and bounded $f:A\to \mathbf{R}$ without maximum or minimum in A. I showed it by examples but it is not enough for my prof. Could this be demonstrated in a more general way? Does anyone have an idea?

Let $E\subset\mathbb{R}$ a non-compact set. Show that      i) Exists a continuous function in $E$ that is not bounded.      ii) Exist a continous and bounded function in $E$ that doesn't have   maximum.      iii) If $E$ is bounded then, exists a continuous function in $E$ that   is not uniformly continuous   I started writting one definition that I have doubt     Def: A set $E\subset \mathbb{R}$ is compact if and only if it is   closed and bounded.   If a set is non-compact then I can say that that it is not bounded or not closed?  i) $f(x)=\sqrt{x}$ is a continous function and it is not bounded.  ii) From the doubt that I have in definition, if a set is non-compact and it is bounded then it is not closed so doesn't have a maximum.  iii) I don't know how to find a example.


$\log_3 4$ and $\log_7 10$: which of these two logarithms is greater?  I figured out that both are between $1$ and $2$, then between $1$ and $1.5$. And then $\log_34$ is greater than $1.25$, and $\log_710$ is smaller than $1.25$. However, that method doesn't work for every example, and I wonder if there's a easier way to solve this?

I need to compare $\log_4 5$ and $\log_5 6$.  I can estimate both numbers like $1.16$ and $1.11$. Then I took smallest fraction $\frac{8}{7}$ which is greater than $1.11$ and smaller than $1.16$ and proove two inequalities: $$\log_4 5 > \frac{8}{7}$$ $$\frac{7}{8}\log_4 5 > 1$$ $$\log_{4^8} 5^7 > 1$$ $$\log_{65536} 78125 > 1$$ and $$\log_5 6 < \frac{8}{7}$$ $$\frac{7}{8}\log_5 6 < 1$$ $$\log_{5^8} 6^7 < 1$$ $$\log_{390625} 279936 < 1$$ thats why I have $\log_5 6 < \frac{8}{7} < \log_4 5$.  But for proving I need estimation both logarithms (without this estimation I cannot find the fraction for comparing). Can you help me to find more clear solution (without graphs)


I am quite inexperienced with using php and javascript etc. but for my website I need to send mysql querys to a php page that will appear in a frame on the same page.  I know that hackers have so many ways to access the database with sql injection that with my inexperience I'm going to leave it wide open.  So I was thinking that instead of sending anything with post and get, I could save the query into a text file and then load the text file into the php script in the frame.   This seems more secure to me, but I expect I'm going to hear otherwise.  If that's not secure, then what is the best way to send 1 very long database query from one page to another?

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


“I’m setting a map activity where i  get updated location in real time database fire base  but not show location in fire base .when i logged in my app then  driver map activity open  and app crashes. I see log cat error show null pointer exception.  error on first line getUid()   ( 168 line  no)     private void DisconnectTheDriver() {      String userID = FirebaseAuth.getInstance().getCurrentUser().getUid();     DatabaseReference DriverAvailibiltyRef = FirebaseDatabase.getInstance().getReference().child("Drivers Available");      GeoFire geoFire = new GeoFire(DriverAvailibiltyRef);  (175 line no)        geoFire.removeLocation(userID);   }   In logcat    at android.os.Handler.dispatchMessage(Handler.java:105)     at android.os.Looper.loop(Looper.java:164)     at android.app.ActivityThread.main(ActivityThread.java:6942)     at java.lang.reflect.Method.invoke(Native Method)     at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)  Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.google.firebase.auth.FirebaseUser.getUid()' on a null object reference     at com.example.uolbuses.DriverMapActivity.DisconnectTheDriver(DriverMapActivity.java:275)     at com.example.uolbuses.DriverMapActivity.onStop(DriverMapActivity.java:268)     at android.app.Instrumentation.callActivityOnStop(Instrumentation.java:1382)     at android.app.Activity.performStop(Activity.java:7452)     at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:4238)     at android.app.ActivityThread.handleStopActivity(ActivityThread.java:4290)      at android.app.ActivityThread.-wrap25(Unknown Source:0)      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1730)      at android.os.Handler.dispatchMessage(Handler.java:105)      at android.os.Looper.loop(Looper.java:164)      at android.app.ActivityThread.main(ActivityThread.java:6942)      at java.lang.reflect.Method.invoke(Native Method)      at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


Before the SE topbar was implemented, there was a hottest-questions-across-the-network feature I was quite fond of. Where did this feature go? Was it completely wiped out?  I'm sad to see it go.

Since the new top bar has been rolled out - a number of different people, established and new users alike, have asked questions on where a specific link has disappeared to with the new top bar design. Where has the link to <X> gone?


I am currently reading  paper and following is the model used in it. I haven't been able to completely understand what is the purpose of using three tanh layers. I read the usage of tanh activation function, how it can reduce learning time compared to sigmoid activation function but I don't understand why three tanh layers are needed.     To explain what it is trying to do is take two sentences, add embdedding of each word in the sentence to create two 100d vector, concatenate these two vectors to form a 200d vector and input it to the stack of tanh layer followed by a 3-way softmax since there are classes to classify into.

I haven't seen the question stated precisely in these terms, and this is why I make a new question.  What I am interested in knowing is not the definition of a neural network, but understanding the actual difference with a deep neural network.  For more context: I know what a neural network is and how backpropagation works. I know that a DNN must have multiple hidden layers. However, 10 years ago in class I learned that having several layers or one layer (not counting the input and output layers) was equivalent in terms of the functions a neural network is able to represent (see Cybenko's ), and that having more layers made it more complex to analyse without gain in performance. Obviously, that is not the case anymore.  I suppose, maybe wrongly, that the differences are in terms of training algorithm and properties rather than structure, and therefore I would really appreciate if the answer could underline the reasons that made the move to DNN possible (e.g. mathematical proof or randomly playing with networks?) and desirable (e.g. speed of convergence?)


The maximum speed limit on most California highways is 65 mph. You may drive 70 mph where posted. Unless otherwise posted, the maximum speed limit is 55 mph on two-lane undivided highways and for vehicles towing trailers.   When they say undivided , do they mean a highway in which traffic go in one direction?

When it appears on a regulatory sign, what it means and what should I do, is the thing I have a great deal of difficulty with.   This is one of those signs I came across - Divided Highway.  What does it mean?  Many thanks in advance.


How are *.dmg packages installed via the command line? I noticed that they can be mounted with:    me@MacBook-Pro:~$ open /Users/me/Downloads/installer.dmg   What's next?

I want to install a dmg file on a remote server. All I have is an ssh access. Since a DMG is a disk image, I tried to mount it, but mount does not seem to recognize its format.   file says my dmg file is a VAX COFF executable.


how get all the subdomains from a url  for example I have this url: www.fk8.ir  and this url have 4 subdomains for example:   test1.www.fk8.ir mytest.www.fk8.ir sample.www.fk8.ir stack.www.fk8.ir   input is: www.fk8.ir  output:  test1.www.fk8.ir  mytest.www.fk8.ir  sample.www.fk8.ir  stack.www.fk8.ir

I want to find out all the subdomains of a given domain. I found a hint which tells me to dig the authoritative Nameserver with the following option:  dig @ns1.foo.bar some_domain.com axfr   But this never works. Has anyone a better idea/approach


Let $n$ be a positive integer. Is $\cos (2\pi/n)$ irrational if $n$ is not $1$, $2$, $3$, $4$ or $6$?

I couldn’t find any proof on the internet. I would appreciate an elementary proof , but any help would be appreciated!  Thank you.


I am aware of the nature of  but I still find the following surprising:  from fractions import Fraction  print(Fraction(0.2))       # -> 3602879701896397/18014398509481984 print(Fraction(str(0.2)))  # -> 1/5  print(Fraction(0.2)==Fraction(str(0.2)))  # returns False print(0.2 == float(str(0.2)))             # but this returns True!   From the  I could not find anything that would explain that. It does state:     ...In addition, any string that represents a finite value and is   accepted by the float constructor is also accepted by the Fraction   constructor...   but to me this implies a similar behavior to float() which I just do not see as shown above.  Is there any explanation for this?    It is important to note that the behavior shown above is not specific to the value (0.2) but rather general; everything I tried behaved the same way.    Interestingly enough:  from fractions import Fraction   for x in range(1, 257):     if Fraction(str(1/x))==Fraction(1/x):         print(x)   prints only the powers of 2 that are smaller than the selected upper bound:  1 2 4 8 16 32 64 128 256

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I have different files differently encoded which I need to read using a program. The problem is how do I read them based on the format they are encoded in automatically? I'm new to python I've tried searching I couldnt go anywhere. Please help?

I received some text that is encoded, but I don't know what charset was used. Is there a way to determine the encoding of a text file using Python?  deals with C#.


I have a 15 inch macbook pro (mid 2009 1.8ghz core 2 duo) and I want to upgrade the memory. It currently has 4gb (2x2gb) and the maximum Apples says will work is 8gb. I am wondering if I could get away with 16gb (2x8gb). I know this is possible on certain other macbooks, I am just wondering if it will work on my model.

I have a 2009 MBP with 8GB of RAM. I run Windows under Parallels pretty much all the time (I use Visual Studio for work). I recently installed an SSD to speed it up a bit and its running beautifully. However I could do with having a few extra gigs available to the Windows VM and was wondering if it would be worth buying 2 x 8GB SIMs to enable this. Apple states that the maxiumum for MBPs is 8GB, but I have seen figures online (possibly at OWC) which would suggest that Apple's specs are just guidelines which can be over-ruled.  Does anyone have any experience of 'overloading' their Macs with RAM? OSX can address terabytes of memory so I thought perhaps it was availability of chips which is the limiting factor ...  Update   for my Macbook Pro 5,5


From high school, my English teacher always emphasized on English words which are read the same in their singular and plural form. One of them being hair, yet most people still say hairs for hair. Please help

When one says I was washing my hair, is it singular or plural? What is the singular for hair?


I would like to use the list of customized Favorites in Character Viewer from my Macintosh on my co-worker's Mac.  Is there a way to do so?

I would like to export the list of Favorites in Character Viewer (which can be launched by selecting "Show Emoji & Symbols" in the menu bar icon for the input source) and import it into a different Mac.  Where is this list of Favorites stored?  I am using macOS Mojave 10.14.2.


I'm trying to prove that if  $$\dfrac{\partial^2 f}{\partial x \partial y} \quad \text{and} \quad  \dfrac{\partial^2 f}{\partial y \partial x}$$  are continuous in an open set containing $a \in \mathbb{R}^2$, then they are equal using the definition of derivative:  First, I say   $$ \dfrac{\partial^2f}{\partial x \partial y} = \dfrac{\partial}{\partial x} \left( \dfrac{\partial f}{\partial y} \right) = \dfrac{\partial}{\partial x} \left( \lim_{h \to 0} \dfrac{f(x,y+h)-f(x,y)}{h} \right) = \lim_{k \to 0} \dfrac{1}{k} \left( \lim_{h \to 0} \dfrac{f(x+k,y+h)-f(x+k,y)}{h} - \lim_{h \to 0} \dfrac{f(x,y+h)-f(x,y)}{h} \right) = \\ \lim_{k \to 0} \left( \lim_{h \to 0} \dfrac{f(x+k,y+h)-f(x+k,y)-f(x,y+h)+f(x,y)}{kh} \right) $$  Then I do the same thing for $ \dfrac{\partial^2 f}{\partial y \partial x} $, and I get  $$ \lim_{h \to 0} \left( \lim_{k \to 0} \dfrac{f(x+k,y+h)-f(x+k,y)-f(x,y+h)+f(x,y)}{kh} \right)$$  My question is: am I allow to say that those limits are equal because both   $$\dfrac{\partial^2 f}{\partial x \partial y} \quad \text{and} \quad  \dfrac{\partial^2 f}{\partial y \partial x}$$  are continuous on $a$, or do I need something extra? Please let me know if the question is clear enough, or if I made some silly mistakes :)  Thanks in advance!

Symmetry of second derivative states that for $u=u(x,y)$ if $u_x,u_y$ exists and $u_{xy},u_{yx}$ exists and continuous then $u_{xy}=u_{yx}$.  I proved that statement using the mean value theorem.   While I was looking in Wikipedia there is a section called "Sufficiency of twice-differentiability", if $u(x,y):E^{\text{open set}}\subset \Bbb R^2\to \Bbb R$ and $u_x,u_y,u_{yx}$ exists everywhere and $u_{yx}$ is continuous at a point in $E$ then $u_{xy}$ exists at that point and equal to $u_{yx}$.  My question is, while I proved Symmetry of second derivative I had to assume the continuity of $u_{xy}$ and $u_{yx}$, so how can I prove that this is true without even assuming the existence of one of the second derivative? I'm sitting on this for a long time and I couldn't think on any starting point and would love help with this.


In line with this question,  review queues should be added to the iOS app. Currently, they can only be accessed from a mobile web browser, where the editing and flagging interface can be hard to interact with.  So why not add Review Queues to the iOS app. If not then at least make the web browser on mobile devices more optimised.

I enjoy reviewing on SO, is it currently possible to review on the iOS app? If not, is it planned to be implemented?


I am trying to verify that $d_{\infty}((x_1,x_2),(y_1,y_2))= \max\{|x_1-y_1|,\,|x_2-y_2| \,\, \forall (x_1,x_2),(y_1,y_2)\in \mathbb{R^2}$ defines a metric. I have verified that $d_\infty$ satisfies the other conditions of a metric, apart from 'the triangle inequality'.  The following is what I did:  Let $(x_1,x_2),(y_1,y_2),(z_1,z_2) \in \mathbb{R^2}$.   Observe, the triangle inequality for real numbers, \begin{equation} |x_i-y_i| \leq |x_i-z_i|+|z_i-y_i|, \text{ where } i=1,2.\tag{$1$} \end{equation}  Then   \begin{align} d_\infty((x_1,x_2),(y_1,y_2)) &:= \max\{|x_1-y_1|,|x_2-y_2|\} \\ &=\max\{|x_1-y_1 +z_1 -z_1 |,\,|x_2-y_2 +z_2-z_2|\} \\ &\leq \max\{|x_1-z_1 |+|z_1-y_1|,\,|x_2-z_2|+|z_2-y_2|\}, \end{align} using $(1)$.  My question is whether $\max\{a+b,\,c+d\} \leq \max\{a,\,c\}+\max\{b,\,d\}$ for any $a,b,c,d \in \mathbb{R}$ is true, so that i can write:  \begin{align} &\max\{|x_1-z_1 |+|z_1-y_1|,\,|x_2-z_2|+|z_2-y_2|\} \leq  \max\{|x_1-z_1 |, \, |x_2-z_2| \} + \max\{|z_1-y_1|, \,|z_2-y_2| \} \\ &:= d_\infty((x_1,x_2),(z_1,z_2))+d\infty((z_1,z_2),(y_1,y_2))? \end{align}  Intuitively it makes sense that $\max\{a+b,\,c+d\} \leq \max\{a,\,c\}+\max\{b,\,d\}$ is true, but would I need to prove sometheing like this or is it a known result?


I am going to Germany (at Hannover) next month, with a Schengen visa (multiple entry) for Germany for a week. But I want to explore Paris for a while as CDG airport is not so far from many tourist places, such as the Eiffel Tower, etc. I am planning to book tickets via Air France having a layover over 10 hrs at CDG Airport so that I can have some time to explore and catch the next flight to Hannover after that. So my questions are...  Q1. Do I need a transit visa for my purpose? or what kind of transit visa do I need?  Q2. If I only want to be at CDG Airport during layover time to explore the airport area only, then also do I need a transit visa?

I found many related questions on this site but I am still not sure about the rules. How can I decide if I need a visa to transit? Schengen members as of May 2021 are as follows:  Austria Belgium Czech Republic Denmark (excluding Greenland and the Faroe Islands - but an open border with the Schengen Area is maintained) Estonia Finland France (excluding overseas departments and collectivities) Germany Greece Hungary Iceland Italy Latvia Liechtenstein Lithuania Luxembourg Malta Netherlands (excluding Aruba, Curaçao, Sint Maarten and the Caribbean Netherlands) Norway (excluding Svalbard) Poland Portugal Slovakia Slovenia Spain (except Ceuta and Melilla) Sweden Switzerland


Here's an excerpt from M. Ziegler's "Lectures on Polytopes":  Remarks:  polytope here means what in other sources may be referred to as a convex polytope - a convex hull of a finite set of points (vertices); $F_1,\dots,F_s$ being a shelling order seems to be irrelevant to the claim (but I'm not sure) , one can probably treat them just as all the facets of $P$.  The highlited claim is given without a proof (as far as I was able to find) also in some other sources on the topic. I see that this is pretty obvious for three or less dimensions. Maybe someone can formalize this claim?

This statement is used without proof in various sources (incl. Ziegler's "Lectures on polytopes" and Gruber's "Convex and discrete geometry"), yet I don't have any idea how to prove it, or have intuition about it in $n>3$ dimensions. Someone suggested me to use a concept of dual polytope to prove it, I have not explored it thoroughly and maybe someone can help with understanding how duality is convenient here.


I have my Nginx conf set up as follows:  server {     listen 443 ssl;     server_name mydomain.com;     ... }   When I load https://mydomain.com, the site loads fine. But when I load https://www.mydomain.com, the site loads as well. Why is this happening?  I set up the DNS records using Amazon Route 53 as:  A        mydomain.com        xxx.xxx.xxx.xxx (IP) CNAME    www.mydomain.com    mydomain.com   So is a request to www.mydomain.com arriving at Nginx as a request to mydomain.com?  If so, how do I differentiate requests to www.mydomain.com and mydomain.com at my server?

This is a  about Hosting multiple SSL websites on the same IP.   I was under the impression that each SSL Certificate required it's own unique IP Address/Port combination. But the  is at odds with this claim.  Using information from that Question, I was able to get multiple SSL certificates to work on the same IP address and on port 443. I am very confused as to why this works given the assumption above and reinforced by others that each SSL domain website on the same server requires its own IP/Port.  I am suspicious that I did something wrong.  Can multiple SSL Certificates be used this way?


How do I solve? I've tried to multiply and divide by the conjugate cannot advance. $$\lim_{x\rightarrow +\infty} \sqrt{(x-a)(x-b)}-x$$

Hi I have a question regarding finding the values of limit for the following question.  Let $a, b \in \mathbb R$. Find the limit $$\lim_{x\to+\infty}\left(\sqrt{(x+a)(x+b)}-x\right)$$


I have a .xal document which can be opened with notepad just fine. Below is the part of it that is important to me:     ...   magV=1   invert=0   text=01000000237843141114052693183714        [Pri1]   enabled=0   ...   I would like to create a script, which would auto replace part of text 140526 in line 128 (it is some old date - 26.05.2014) and replace it with the current date. For example: today it should be 160816, tommorrow there should be 160817, etc.  As said before text is in line 128, characters are from 24 to 30.  If searched around (SED for WIN, VBA, Powershell,...) but i didn't find anything that could work.  Thank you all in advance!

I am writing a batch file script using Windows command-line environment and want to change each occurrence of some text in a file (ex. "FOO") with another (ex. "BAR"). What is the simplest way to do that? Any built in functions?


I am under the impression that stock should not really taste like anything. It should smell nice and have a flavorful aroma, but the taste should be very neutral. The idea is that when you add stock to something else, it will accentuate and add depth. Like sour cream!  Broth should be flavorful and have taste and seasoning. It can be consumed as its own thing or have ingredients added to it to make a different dish such as a soup.   Am I right in this way of defining the difference in taste between the two?

I've now learned (from this site) that broth and stock are not the same product (see ).   So, in any given scenario, why should one use stock rather than broth, or vice versa? i.e. What's the practical difference?   EDIT: I'm mostly looking for when to use one vs the other.


I am using CentOS7 and when I use command   cp /root/test/.* /root/test1   it also copies .. which copies all the files and folder in the parent directory of the source.  How to avoid copying . and ..?

I want to glob every hidden file and directory, but not the current (.) and parent directory (..).  I am using bash.  Observe current behaviour:  $ ls -a .  ..  ...a  ...aa  ..a  ..aa  .a  .aa  .aaa  a $ echo * a $ echo .* . .. ...a ...aa ..a ..aa .a .aa .aaa   I would like .* to behave like this  $ echo .* ...a ...aa ..a ..aa .a .aa .aaa   There is the shell option dotglob  $ shopt -s dotglob   that works in a way; now I can use * to glob everything (hidden or not) but not . and ..  $ echo * ...a ...aa ..a ..aa .a .aa .aaa a   but now I can't differentiate between hidden or not. Also, .* still globs . and ..  $ echo .* . .. ...a ...aa ..a ..aa .a .aa .aaa   Is there a way to make .* not expand to . and ..?


Prove $ n \equiv s(n)\ (mod\ 3)$ using the fact that $\ [10^n] = [1]$. Let $n = (a_k \times 10^k) + (a_{k-1} \times 10^{k-1}) + \cdots +(a_1 \times 10^1)+ (a_0 \times 10^0)$ and $s(n)=(a_k + a_{k-1}+ \cdots +a_1+a_0)$.   When trying to solve this question, I combined the information given and found that $$n-s(n) = (a_k \times 10^k) + (a_{k-1} \times 10^{k-1}) + \cdots +(a_1 \times 10^1)+ (a_0 \times 10^0)-(a_k + a_{k-1}+ \cdots +a_1+a_0)$$ $$=(a_k \times 10^k-a_k ) + (a_{k-1} \times 10^{k-1}-a_{k-1}) + \cdots +(a_1 \times 10^1-a_1)+ (a_0 \times 10^0-a_0)$$  $$=a_k (10^k-1) + a_{k-1} (10^{k-1}-1) + \cdots +a_1 (10^1-1)+ a_0 (1-1)$$ $$=a_k (10^k-1) + a_{k-1} (10^{k-1}-1) + \cdots +a_1 (9)$$ I'm not sure where to go from here, I thought maybe I could deduce that since, for the case of $\ [10^n] = [1]$ -- since that means that $10^n \equiv 1 (mod \ 3)$ -- I could say that since there exists an integer, call it p, such that $10^n - 1=3p$, and then put that "statement" in the parentheses in the last "=" line that I had above. I have a feeling it doesn't make sense though, and it would be incorrect.

I don't know if this is a well-known fact, but I have observed that every number, no matter how large, that is equally divided by $9$, will equal $9$ if you add all the numbers it is made from until there is $1$ digit. A quick example of what I mean:  $9*99 = 891$ $8+9+1 = 18$ $1+8 = 9$  This works even with really long numbers like $4376331$ Why is that? This doesn't work with any other number. Similarly for $11$ and alternating digits sums.


I can't find a better place to ask this question -    if there is one, please suggest it and I will repost there.   expertsoverflow.com is a blatant screen scrape of stackoverflow.com.  Everything is copied - graphics, the name (Stack Overflow), everything.  It's a blatant violation of copyright.  Why don't the Powers That Be at SO shut them down?

of Stack Overflow, all content posted on Stack Exchange sites by their users (i.e. you wonderful people) has been provided to the whole universe under . For my fellow non-lawyers, that license basically means:   Anyone can use any Stack Exchange posts at any time without having to ask for permission Making money off of the copied content is permitted You don't even have to copy stuff from here verbatim; you can just use it as a starting point and make whatever edits you want There are just two rules you have to follow:   You have to provide . Simple links to the original post and author info are just fine. You have to  and allow other people to use your content, as long as they follow these very same rules. How meta!    (If you ever forget any of that, and want to refresh your memory, the license info is linked to in the footer of every page.)  There are, in fact, a lot of people who republish varying amounts of our content for assorted reasons. Unfortunately, there are some Stack Content Republishers Attributing Poorly and/or Excelling at Ranking (SCRAPERs, for short).  In this context, "attributing poorly" means any use that doesn't follow our attribution rules or make any other reasonable attempt at give credit. This can get pretty egregious; I've seen SCRAPERs that not only don't link back to SE originals, but also use fake author info and post dates to make it harder to find originals. By "excelling at ranking," I'm referring to copycat sites that end up higher in Google results than the original SE sites do for the same content. That's not necessarily wrong, but in some cases, it indicates inappropriate SEO hackery.  So, the question is: what can you do if you spot a SCRAPER?


I have a method (par.getstatus) which outputs a message that looks exactly like this: 3::0::P:3::C:2::S:1::M:1::D:0::A:0::Q:0null  problem is when I write:      String s = par.getStatus(3);     assertTrue(s == "3::0::P:3::C:2::S:1::M:1::D:0::A:0::Q:0null");   it does not return true. I know that the string is the right one, cause I printed it to the console, and copied and pasted it directly, checked that I did that right many times. And to check that it is not the assertTrue method that I am using that is wrong, I wrote:      String d = "rr";             assertTrue(s == "rr");   which returns true.  Someone said that it could be null that is causing the problems, so i removed that, but still no luck. Does anyone know what the problem could be here? thanks

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


So in order to prove that the Harmonic series diverge, I want to show that: $$ \sum\limits_{k=1}^{2^n}\dfrac{1}{k}\geq 1+\dfrac{n}{2}$$ It is clear that if we expand the sum that this inequality holds true, $$n=3,\ \sum\limits_{k=1}^{2^3=8}\dfrac{1}{k}=1+\frac{1}{2}+\underbrace{\frac{1}{3}+\frac{1}{4}}\limits_{\geq \frac{1}{2}}+\underbrace{\frac{1}{5}+\frac{1}{6}+\frac{1}{7}+\frac{1}{8}}\limits_{\geq \frac{1}{2}}$$ but how can i show that using induction?  Any tips would be helpful, and thanks.

Prove by induction the summation of $\frac1{2^n}$ is greater than or equal to $1+\frac{n}2$.  We start with $$1+\frac{1}{2}+\frac{1}{3}+\frac{1}{4}+\dots+\frac1{2^n}\ge 1+\frac{n}2$$ for all positive integers.   I have resolved that the following attempt to prove this inequality is false, but I will leave it here to show you my progress. In my proof, I need to define P(n), work out the base case for n=1, and then follow through with the induction step. Strong mathematical induction may be used.  This is equivalent to $$\sum_{k=0}^n\frac1{2^k}\ge 1+\frac{n}2\;.$$  Let $P(n)$ be summation shown above.   Base case for $n=1$, the first positive integer,   $$\sum_{k=0}^1\frac1{2^k}=\frac1{2^0}+\frac1{2^1}=1+\frac12=\frac32\ge 1+\frac12=\frac32\;,$$  so base case is true.  Induction step: Assume $P(n)$ is true and implies $P(n+1)$. Thus   $$\sum_{k=0}^{n+1}\frac1{2^k}\ge\frac1{2^{n+1}}+\sum_{k=0}^n\frac1{2^k}\ge 1+\frac{n+1}2\;.$$  This can be written as   $$\sum_{k=0}^{n+1}\frac1{2^k}\ge \frac1{2^{n+1}}+1+\frac{n}2\ge 1+\frac{n+1}2\;.$$  I work the math out but I get stuck contradicting my statement. Please show your steps hereafter so I can correct my mistakes.


Let $$f(t)=\int_{0}^{\infty}\frac{\sin(tx)dx}{x^2+1}$$     Find exact formula for $f$   Very similar integral $$g(t)=\int_{0}^{\infty}\frac{\cos(tx)dx}{x^2+1}$$, has an exact form. It is $$\frac{\pi e^{-t}}{2}$$  I have tried almost everything, including Laplace transform and Feynman integration.  But what if the answer hides in complex analysis? Will it be simpler to calculate some integral of $\frac{e^{tx}}{x^2+1}$?  EDIT:  The thing i really looking for is to find an integral $$I=\int_{0}^{\infty}\frac{e^{itx}}{Ax^2+Bx+C}dx$$ Where $A,B,C$ are complex numbers I was only managed to change it a little $$I=\int_{0}^{\infty}\frac{e^{itx}}{(x+p)^2+q}dx$$, where $p=\frac{B}{2A}$ and $q = \frac{C}{A}- p^2$ And this is similar to orginal $f$ and $g$  Thank you for any help  Regards

I have seen $$\int_0^\infty \frac{\cos(x)}{x^2+1} \, dx=\frac{\pi}{2e}$$ evaluated in various ways.   It's rather popular when studying CA.   But, what about $$\int_0^\infty \frac{\sin(x)}{x^2+1} \, dx\,\,?$$  This appears to be trickier and more challenging.  I found that it has a closed form of  $$\cosh(1)\operatorname{Shi}(1)-\sinh(1)\text{Chi(1)}\,\,,\,\operatorname{Shi}(1)=\int_0^1 \frac{\sinh(x)}{x}dx\,\,,\,\, \text{Chi(1)}=\gamma+\int_0^1 \frac{\cosh(x)-1}{x} \, dx$$  which are the hyperbolic sine and cosine integrals, respectively.  It's an odd function, so  $$\int_{-\infty}^\infty \frac{\sin(x)}{x^2+1} \, dx=0$$  But, does anyone know how the former case can be done? Thanks a bunch.


townhall 8 level 8 base Max diffence troops I did not have any clan my base name is pran etc

I unintentionally and stupidly wiped my Clash of Clans game data. I went to Application Manager on my Android and clicked 'Clear data'. (I used this for fixes before and it never started a new game.)   Now, my level 60 or so base has been wiped as if was to start a new game. Have I doomed myself to starting again or is there a way in which I can retrieve my old game save? Maybe by contacting Supercell? I have a snapshot of my base.


Suppose we have $$ x^{2} = (-x)^{2}.$$ I understand that this equation holds because $$\begin{aligned} (-x)^{2} & = (-1\cdot x)^{2} \\ & = (-1)^{2} \cdot x^{2} \\ & = x^{2}, \end{aligned}$$ and so $\sqrt{x^{2}} = \sqrt{x^{2}}$ becomes $x = x$ and everything is fine. But what if we just take the square root first, like so: $$\sqrt{x^{2}} = \sqrt{(-x)^{2}}.$$ Wouldn't this gives $x = -x$, which is a contradiction?

Last year in Pre-Algebra we learned about square roots. I was taught then that $\sqrt{64}=8$ and $\sqrt{100}=10$, which I understood and accepted. I was also taught that $\pm\sqrt{64} = 8,-8$ because both of those numbers squared is 64, which I also get. But this year, with a new school and teacher in a different state, our teacher is telling us that: $\sqrt{64}=8,-8$ and $\pm\sqrt{64}$ also is $8,-8$. The way to get the positive root of something is: $+\sqrt{64}=8$ And these seem to contradict each other. I was always taught that a regular square root returned a positive number and only a positive number, but now my teacher is saying a regular square root gives two numbers, and considering the square root of a number $n$ is defined as $y^2=n$ I see where he is coming from. Upon researching this Wikipedia says:  For example, $4$ and $−4$ are square roots of $16$ because $4^{2} = (−4)^{2} = 16$  And Wolfram MathWorld says:  Note that any positive real number has two square roots, one positive and one negative. For example, the square roots of $9$ are $-3$ and $+3$  But on the other side, Wolfram Alpha, when given "The square root of 9" gives only 3.  So, which is right? Is $\sqrt{64}$ considered $8$? or is it $8,-8$?


I am new to server management and earlier I used shared hosting and thought to go for VPS and get more for my websites. VPS specs:  RAM: 12GB CPU: 4 Core Intel E5 SSD: 300GB Server: Apache OS: Ubuntu 16.04 PHP: 7.0 FCGI Stack: Virtualmin Script: Wordpress Number of website: 1(Going to host 5 more websites if server can withstand with it) Cache plugin: W3 Total Cache   I installed memcached on my VPS and want to tune it to serve static file at faster rate. Since I don't know what can be done so I have included my memcached file:  # Run memcached as a daemon -d  # Log memcached's output to /var/log/memcached logfile /var/log/memcached.log  # Start with a cap of 4096 megs of memory -m 4096  # Default connection port is 11211 -p 11211  # Run the daemon as memcache -u memcache  # Specify which IP address to listen on. -l 127.0.0.1   Reason for tuning: Better performance and when running 5 WordPress sites. I purchase popup traffic which is 1000-3000 per 1 minute. So, I want to server each page from memcached and I want to know if there's some tuning needed for this  Please let me know what can be done in order to tune up my website.

This is a  about capacity planning for web sites. Related:      What are some recommended tools and methods of capacity planning for web sites and web-applications? Please feel free to describe different tools and techniques for different web-servers, frameworks, etc., as well as best-practices that apply to web servers in general.


So far what I can remember from books, I have encountered Patronus of a form belonging to Animal Kingdom only. Here's the list:   Harry Potter / James Potter: Stag Hermione Granger: Otter Ron Weasley: Jack Russell Terrier Albus Dumbledore: Phoenix Lily Potter / Snape: Doe Ginny Weasley: Horse Luna Lovegood: Hare Nymphadora Tonks: Jack Rabbit Remus Lupin / Nymphadora Tonks: Wolf Minerva McGonagall / Dolores Umbridge: Cat Kingsley Shacklebolt: Lynx Arthur Weasley: Weasle Cho Chang: Swan Seamus Finnigan: Fox Ernie Macmillan: Boar Aberforth Dumbledore: Goat   I know that a Patronus is unique to a person and it can change because of emotional upheaval.  But, what exactly is the rule of creating Patronus form? Can I create a Patronus of a form X-wings or R2-D2 or Millennium Falcon or USS Enterprise-E or TARDIS?

To my recollection, all physical Patronus charms that we see in the Harry Potter story are in the form of an animal. However, to quote  the nature of a Patronus charm is that it represents that which is hidden, unknown but necessary within the personality, which depending on the traits revealed could be embodied in many different ways.  For example, if a muggle-born wizard's Patronus were to portray strong leadership and perseverance could the physical manifestation appear as Optimus Prime?


After define the equality of the cardinality of two sets, I defined the following ordering in the class of the all sets: let $A,B$ be sets, we define $|A|\le|B|$ if there is a injection $f:A\to B$.  Now, I'm trying to prove that $|A|\ge |B|$ iff there is a surjection $g:A\to B$ using the definitions I made.  I know this is true intuitively, but I couldn't prove it formally using my definitions, I need help.  Another question is this construction is standard in set theory?  Thanks in advance

Theorem. Let $X$ and $Y$ be sets with $X$ nonempty. Then (P) there exists an injection $f:X\rightarrow Y$ if and only if (Q) there exists a surjection $g:Y\rightarrow X$.  For the P $\implies$ Q part, I know you can get a surjection $Y\to X$ by mapping $y$ to $x$ if $y=f(x)$ for some $x\in X$ and mapping $y$ to some arbitrary $\alpha\in X$ if $y\in Y\setminus f(X)$. But I don't know about the Q $\implies$ P part.  Could someone give an elementary proof of the theorem?


If I already asked a professor to serve on my dissertation committee but I now longer want him on my committee for various reasons, how can I politely tell him this through email? I just don't know how to say this in a polite and not at all prideful way.

Out of five needed members for my doctoral thesis committee, four are fixed. For the fifth member, I approached Mr.A. He has no real connection to my research or topic but I contacted him because he was just as good a fit as anybody else in the department to be the fifth member. I have never worked with him or taken any classes but we did talk a lot in the first few years where he would just ask about my progress by the copy machine, etc. We don't even have a "rapport". The relationship is absolutely neutral, nothing positive/friendly, and nothing negative. I asked him to be on my committee and he said yes. I said I'll get back to you with dates, etc. He is a senior tenured professor.  Then about a month later, I was looking at the CV of some of the new hired (junior) faculty in the department Mr.B (this is his first year) and I see that we have a collaborator in common. Mr.B has published multiple papers with him and Mr.B is working with the same code and the code managing team that we are working with. He is definitely a good person to have on my committee. I finally see Mr.B after a few more months (because of busy schedule/travel/etc.) and he agrees to be on my committee.  The question is, how can I tell Mr.A, as tactfully as possible, after about four months of being quiet that he is basically rejected from my committee because I didn't know about Mr.B but now that I know, Mr.B is a much better match than he is? That I don't need him but I do appreciate his offer? I don't want to antagonize Mr.A or burn any bridges. Should this be in email or in person? Should I explain or just keep it terse? Should I keep it vague that I don't need him and thanks for his time? Or should I tell him about Mr.B and why he is a better match?  FYI, this was before anything official/paperwork was done so there is no problem with that.