Round to two digits after decimal place without any package.

I have the following table. I need to format it so that the figures displayed are rounded to two digits after decimal place. I searched and all the solutions I found involve the use of a Latex package. I can't use a package (I think?) because I'm working with ShareLatex.  \documentclass{article} \usepackage{booktabs} \usepackage{tabularx} \begin{document} \begin{table}[tbp] \centering% \newcolumntype{C}{>{\centering\arraybackslash}X} \caption{Differences}% {\normalsize \begin{tabularx}{\textwidth}{lCCCC} \toprule Economy&year&nef\_en&gdi\_wer&inf\\\tabularnewline \midrule\addlinespace[1.5ex] Belize&2006&4.240267&-7.113768&-11.35403 \tabularnewline Central African Republic&2014&8.2&25.28281&17.08281 \tabularnewline Iran, Islamic Rep.&2012&30.5&27.35739&-3.142611 \tabularnewline Iran, Islamic Rep.&2013&34.78927&39.26636&4.477088 \tabularnewline Iceland&2009&16.27129&12.00581&-4.265474 \tabularnewline Kenya&2006&6&14.45373&8.453734 \tabularnewline Kenya&2007&4.3&9.758881&5.45888 \tabularnewline Kenya&2008&16.2&26.23982&10.03982 \tabularnewline Kuwait&2008&6.3&10.58271&4.28271 \tabularnewline Myanmar&2013&8.876498&5.524279&-3.352219 \tabularnewline Mongolia&2007&17.70245&9.045246&-8.657202 \tabularnewline Mongolia&2013&12.5&8.604828&-3.895172 \tabularnewline Mongolia&2015&1.9&5.775949&3.87595 \tabularnewline Chad&2011&2.040816&-3.704296&-5.745112 \tabularnewline Chad&2012&7.512763&14.01821&6.505443 \tabularnewline \bottomrule \addlinespace[1.5ex] \end{tabularx}% } \end{table}% \end{document}


Set Theory: Proof that there is no surjection from $A$ to its powerset $\mathcal{P}(A)$

Is my proof sufficient to prove that there is no surjection from set $A$ to its powerset $\mathcal{P}(A)$ if A is infinite?  Pf. by Contradiction: Suppose there is surjection from $A$ to $\mathcal{P}(A)$.  Let $n$ be the number of elements in set $A$.  This implies that $n≥2^n$ because every element in $\mathcal{P}(A)$ must have a pointer to it from an element in $A$. This is a contradiction because there is no $n\in\mathbb{N}$ such that the inequality $n≥2^n$ is satisfied. Q.E.D.


Lost reputation on an edited question that was deleted

I lost the reputation just 10-15 minutes ago and not 5hrs ago as it shows. And moreover I remember I only edited the question long back(Do not remember the date). Now it shows the question was removed, and I surprisingly I lost rep. What are the reasons for which I lost the rep?


Why am I not getting Ubuntu 20.04 LTS update?

I have Ubuntu 19.10. When I am using the GUI for update, it shows that the Ubuntu 20.04 LTS is available and that I should click "Upgrade". I am clicking "Upgrade" but nothing is happening. I have searched the internet and executed the following terminal commands:  sudo apt-get update sudo apt-get update -y sudo apt-get dist-upgrade sudo apt-get update && sudo apt-get upgrade sudo do-release-upgrade  It shows:  Checking for a new Ubuntu release. Please install all available updates for your release before upgrading.  Any help on fixing this?


Show If a sequence converges, then each subsucession converges to the same limit in Euclidean space

Show if a sequence converges, then each subsucession converges to the same limit in Euclidean space Then let $(x_{n}) \in \mathbb{R^n}$ a convergent sequence and $(x_{r}) \in \mathbb{R^n}$ a sub-succession of $(x_{n})$, it should be shown that $(x_{r})$ is convergent and its limit is equal to that of the $(x_{n})$ sequence. proof: let $(x_{r}) \in \mathbb{R^n}$ a sub-sequence of $(x_ {n}) \in \mathbb{R^n}$; given an $\epsilon>0$, exists $k \in \mathbb{N}$ such that $(x_{n}) \in B(a,\epsilon)$ for all $k>K$ where $a \in \mathbb{R^n}$ and is the limit of the sequence, that is to say, $\lim x_{k}=a$. now let's see what $\lim x_{r}=a$ I'm stuck, could someone help me?


Dupehammer: don't just automatically close a question, give the Wielder a choice of whether to use Great Power

I just voted to  as a duplicate. There were previously no other votes to close. After I voted to close, the question was closed. This puzzled me for a second, and then I realized it was the Most Foul Dupehammer at work again, because I have a gold java badge.  Could you please make use of the Dupehammer an option rather than an automatic process?  I do not like the Dupehammer, either being on the receiving end or on the causing end, and given the option to close without additional votes, I would not choose to do so.


After installing Ubuntu I just noticed that my resolution resolution is not right and it's wider than normal. After I checked Display settings I noticed that I only have two options 1024x768 and 800x600 in a 4:3 aspect ratio while my monitor is capable of 1366x1080 resolution at 60 hertz.  I checked with other topics and someone said:   " Select System Configuration -> Software & Updates, in the Additional drivers tab you should see a list with some Intel GPU drivers (these used to be proprietary). Choose the most recent one and apply changes. Restart and you should be able to choose your screen resolution."  But when I checked in Software & Updates I have nothing listed. It says no additional drivers available. I don't have discrete graphics. I'm just using integrated graphics.   Specs:   i7 4790k   Integrated graphics Intel 4600   B85M-D3H-A motherboard    DDR3 4 x 2 = 8 GB RAM


Nosey Flynn was sitting up in his usual corner of Davy Byrne's and,   when he heard the story, he stood Farrington a half-one, saying it   was as (1) smart a thing as (2) ever (3) he heard. (James   Joyce, Dubliners)   The meanings of the (1), (2), and (3) seem like:  (1) as : “to the same degree or amount” () : this meaning requires “indirect complement (’s term)”, i.e. as ever ~. (2) as : “used to make comparisons” () : in “as A as ever B,” A has equal importance as ever B. (3) ever : “used as an intensive” () : the best  so, I suspect the highlighted part means: ‘it was as smart a thing as the smartest ones he’d heard.’ Is that a way to understand the construction?


I'm having a very  hard time obtaining a light ball. As far as I know, sometimes Pikachu hold them, at a rate of 5%. If a pokemon with Compound Eyes is in the lead, this jumps to 60%.   I've caught 38 pokemon using a lead with Static. I've caught 4 using a lead with Compound Eyes  I've Thief'ed 5 with Compound Eyes.   No light ball. This  says it's unobtainable. However, I've seen folks in GTS with pikachus carrying the light ball.  Any ideas? Is it obtainable?


Backup files with tar command and progress bar?

Can I see a progress bar or something not only ust the terminal screen output while backing up?   Here is my shell script that I used backup with tar command:  # !/bin/bash   DATEJOUR=$(date +"%Y-%m-%d-%H-%M-%S")  REPABACKUPER="--exclude=/home/(username)/myfolders \  --exclude=/home/(username)/backup                  \  --exclude=/proc                                    \  --exclude=/lost+found                              \  --exclude=/mnt                                     \  --exclude=/media                                   \  --exclude=/sys /"  REPBACKUP="/home/(username)/backup"  NOMFIC=$REPBACKUP/Pavilion_backup-$DATEJOUR.tar.bz2   sudo tar cvpjf $NOMFIC $REPABACKUPER    exit $?


Probably as easy question, I know. But how do I draw something like this:     I know how to draw a 5x5 grid, but I'm not sure how to remove squares from it. Thanks!


How to make Random Forests more interpretable?

Are there any methods that one could utilize to make Random Forest more interpretable? Random Forest performs much better than CART but it is a lot less interpretable.


How can I connect to a web server running in a VM when the VM is in NAT mode?

I've got a development webserver on an Ubuntu box inside of VMWare Workstation 7.1.3. I'd like to run a web browser on a Windows machine (the host OS) for actually testing a web page I'm working on -- hard to run IE tests in Ubuntu :)  However, if I simply try to ping the IP given to the ubuntu VM (192.168.83.137) (or open it in my browser for that matter), it seems the host cannot communicate with the guest.  How do I allow the guest OS to communicate with the host when the guest is running in NAT mode?


Why is the statement "all vector space have a basis" is equivalent to the axiom of choice?

I'm reading a section in an abstract algebra book, where it reviews vector spaces and suddenly comments that "all vector space have a basis" is equivalent to the axiom of choice...I haven't studied axioms of choice yet and after searching on the internet, I do not see why these two statements are equivalent...Could someone briefly explain to me? Thanks!


How could I create a custom windows message?

Our project is running on Windows CE 6.0 and is written in C++ . We have some problems with the code , and we are unable to debug . We also found out that if in our application we create threads and try to printf from them , the output won't appear . The only output that will appear is the one from the main thread . I would like to do the following :   create a custom windows message use as it's WPARAM the address of a char* I want to show on the screen use as it's LPARAM the length of the char* I want to show on the screen send the message process it when it comes , so that it prints the char*   How could I create the custom windows message ? What are the types of WPARAM and LPARAM ? Is it possible to do what I just wrote ?  Thanks


Can Dirichlet's test be applied to establish the convergence of  $1 - \frac 1 2 - \frac 1 3 + \frac 1 4 + \frac 1 5 + \frac 1 6 - \dots$ where the number of signs increase by one in each block?  Can somebody give me some ideas or hints?


How to set Gmail as default email client in Windows 8?

How can I use Gmail (in Chrome) as the default email handler in Windows 8?  I used to use GmailNotifier in Windows 7, but that doesn't seem to work anymore. Clicking on a mailto: link simply opens Chrome with a blank page.  I am not interested in using the Mail app built into Windows 8.


how to unlock phone which gs no internate connection

How can I unlock my phone since it needs Google account sign in , while my phone has no internet connection neither wifi connection.


$x + 2y + 3z = 4$  $w = x + 2\times y$, then the equation becomes $w + 3z = 4$. $\gcd(1, 3) = 1 | 4$, so this two variable equation is solvable. $w = -2, y = 2$  i can't seem to pass this point


I'm trying to find a single adjective that would fit the best to the following person's trait:     One who thinks knows everything/best, and often doesn't listen to orders and instead completes some task his/her own way.    This person, while intelligent, is right about 50% of the time, when doing things its own way.   So far I've thought of independent, idiosyncratic and stubborn, but these words don't imply the "knows everything/best" part of the trait.


how does the yield statement work in python?

G'day chaps, so I'm beginning to learn some python and am trying to understand why the following happens:  def g():     for i in [1,2]:         yield i     print('a')  x=g() next(x) #output=1 next(x) #output=2 next(x) #output='a', StopIteration exception thrown   On the final next(x) call, why is 'a' printed before the StopIteration exception? I would expect since the for loop has ended, it would throw a StopIteration exception and 'a' wouldn't have a chance to be printed. Is it just the case that generator functions are designed so that, on the iteration that produces a StopIteration exception, the code continues to the end of the function, at which point the StopIteration exception is thrown right at the end? I'm just wanting to check this is indeed the case and I am not missing something!  Edit: I think it is a little unfair to mark this question as a duplicate. Yes there are lots of detailed answers on yield, I myself am reading a 1500page book on python, but when you have a mistaken concept in your mind, it can be hard to wrap your head around explanations without someone pointing out where your conception is faulty. Now that I have the right answer, I can see that the issue is with the fact that I thought the StopIteration exception was being thrown when the for loop is exhausted. I now realise it is thrown when no further yield expessions are encountered. Thanks for all the replies, they've helped me iron out my thinking.


The lifetimes of batteries are independent exponential random variables, each having parameter λ. A flashlight needs 2 batteries to work. If one has a flashlight and a stockpile of n batteries, what is the distribution of time that the flashlight can operate?  My friend said this was a gamma distribution with parameters (n/2, λ). But what does that even mean? I honestly have no idea where to begin. I know the distribution for an exponential random variable, $λe^{-λx}$, but other than that, not much. Help


How to access a server on VMware from the web?

Here's what I have done:   I set up an apache server on Ubuntu in VMware. I used the NAT config. I set up port forwarding.     Now on the host machine, I can access the server using localhost. It works. But from the web, if I use the Host's IP address in another computer, I cannot access the web server.  Is there anything more I need to do?


How do I change the vertical location of a line?

How do I change the vertical location of a line by specifying an absolute value measured from the top or bottom of the page? I know that the vspace command can put an arbitrary space, but it is always a relative value from the previous line.


I created an ASMX file with a code behind file. It's working fine, but it is outputting XML.  However, I need it to output JSON. The ResponseFormat configuration doesn't seem to work. My code-behind is:  [System.Web.Script.Services.ScriptService] public class _default : System.Web.Services.WebService {     [WebMethod]     [ScriptMethod(UseHttpGet = true,ResponseFormat = ResponseFormat.Json)]     public string[] UserDetails()     {         return new string[] { "abc", "def" };     } }


Must Indian passport holders have six-month valid passport to enter Nepal?

Do Indian passport holders have to have six-month validity left on their passport to enter Nepal?  I am an Indian passport holder wanting to travel to Nepal soon and do not have enough time to be able to renew my passport which is expiring before 6 months.  So, will I be able to go to Nepal?


I wonder if it is tied to my NIC at all or if the OS or driver intercepts and immediately returns data sent to the loopback address?  Does the signal actually travel to my NIC then the NIC returns it?


How to prove this fact:      If $X \subset \mathbb{R}$ is finite, then the space of continuous functions $C(X)$ is finite dimensional (isomorphic to $\mathbb{C}^n$)?   Thanks for help!


Is there a way to find where other players are in the Minecraft world without asking them for their coordinates? I play with friends. We've sort of aligned ourselves in a 2 vs 2 match-up, and since we wanna PvP with them, we need to find them first.


"Prometheus" is meant to be a prequel to "Alien", happening 30 years before ().  If that's the case, how come one of the very earliest spaceships, Prometheus from 2089, has a spiffy new technology, while Nostromo has antique text based CRTs, mechanical IBM style keyboards, and all the associated technologies screaming "1980s called, and they want their IBM PC back!" ?  The great visuals of this can be seen in this Youtube Video  (ignore the russian voice-over - the guy is a movie critic who is complaining pretty much of the same discrepancy listed above).  Please note that I'm looking ONLY for in-universe answers (movies, scripts, explanations from creative team). I'm utterly un-interested in the obvious out of universe "well, for 1979 Alien film, 1980s technologies was the future, and 2012 movie is expected to look futuristic in 2012, duh" or speculations that make sense but aren't confirmed in canon.          And for those who don't believe me... to quote the immortal quip from Men in Black 2:   Old and busted:        New hotness:


I was recently having a discussion about Pokémon, and it came up that none of us were sure whether Ash's Pikachu in the series was male or female. Some (myself included) always thought it was male, whereas others could've sworn it was female.  Was there ever any canon evidence to point in one direction or another?


In a $\triangle ABC,$ Evaluation of minimum value of $\cot^2 A+\cot^2 B+\cot^2 C$, Given $A+B+C = \pi$  $\bf{My\; Try::}$ Using $\bf{A.M\geq G.M}$ $$\frac{\cot^2 A+\cot^2 B}{2}\geq \cot A\cdot \cot B\Rightarrow \cot^2 A+\cot^2B \geq 2\cot A\cdot \cot B$$ Similarly $$\cot^2 B+\cot^2 C\geq 2\cot B\cdot \cot C$$ and $$\cot^2 C+\cot^2 A\geq 2\cot C\cdot \cot A$$ So $$\cot^2 A+\cot^2 B+\cot^2 C\geq \cot A\cdot \cot B+\cot B\cdot \cot C+\cot C\cdot \cot A=1$$ Using $$A+B+C = \pi\Rightarrow A+B=\pi-C$$ So $$\cot\left(A+B\right) = \cot\left(\pi-C\right)\Rightarrow \frac{\cot B\cdot \cot A-1}{\cot B+\cot A} = -\cot C$$ So we get $$\cot A\cdot \cot B+\cot B\cdot \cot C+\cot C\cdot \cot A=1$$ My question is Instead of using $\bf{A.M\geq G.M}$ Inequality, Can we use Jensen inequality directly $$\frac{\cot^2A+\cot^2 B+\cot^2 C}{3}\geq \cot^2\left(\frac{A+B+C}{3}\right)$$ So we can Write it as $$\cot^2A+\cot^2 B+\cot^2 C \geq 1$$ If no, then what wrong with it, Thanks


Why importing pgfplots changes behavior of \vfill?

When I import pgfplots, it affects behavior of \vfill.  The following code works as expected:  This should be at the top of the page. \vfill This should be at the bottom of the page. \eject \end   whereas with the following, both lines go at the top of the page:  \input pgfplots.tex This should be at the top of the page. \vfill This should be at the bottom of the page but isn't. \eject \end   Why is that? How can I mitigate this effect, so that the latter code work as expected?  (I use plain XeTeX)


This is the code, i want my form keep be alive while downloading code from internet and when its finish i want to update html container. When i do this form freeze. I am new to threading and tasking and i need little help. Thanks!   private void buttonGetHTML_Click(object sender, EventArgs e)     {         Task.Run(() => Download(textBoxUrl.Text)).ContinueWith((Download) => htmlContent.Text = Download.Result);     }      private string Download(string url)     {         using (WebClient client = new WebClient())         {             string context = client.DownloadString(url);             return context;         }     }


Indian Movies have song where Actors Dance but hollywood movies don't

I have Been watching hollywood movies since 2005 but never saw a film where actor dance in beautiful garden and make love.whereas in Indian cinema most film earn from there music.Why there is no concept of music in between scenes in Hollywood. Does this has something to decrease movie length and in indian cinema Mostly Movies always have a title track.


email into a list on 2013 SharePoint-online

I have setup a IT ticketing system in SP (hosted via office 365) and I wanted to make it easier for my employees to send me tickets (sp mobile isn't very friendly)   Is there a way to have an email address that will enter items into a list in SharePoint?


What forces are involved in bending a freekick like that?

Look at this amazing, incredible goal ().    What are the possible forces that can conspire together to make the ball bend like that?


I will have a 10 hour layover in Seoul (ICN) and I want to go out and do some shopping. Is it possible to check in a bag during my layover?  I will be traveling on Korean Air.  I will only have 1 checked bag, and international flights allow 2 bags free.


Trying to create a 5km circular buffer around a point. Comes out oval. If I change shp crs it dissappears, if I change basemap crs it stretches it. Something to do with CRS and I know its simple but can't work it out!


Exchange site about mobile phones and related technology?

I wonder, is there an Exchange site that treats mobile phones and mobile phone technologies in general ? I did a quick check and found there are Exchange sites for Windows phone, Android and Apple. However, I am interested in more general questions about technology, development and industry of the phone area. Discussion and site recommendation please, thank you.


Slicing list of list in python, jumping one item

I'm trying to reduce an important list of list in python as I don't need as much data to get where i want to go, ie drawing a route   mylist = [[1, 2], [3, 4], [5, 6], [7, 8], [9, 10], [11, 12], [13, 14],            [15, 16], [17, 18], [19, 20], [21, 22], [23, 24]]   I would like to "jump" some item of the list to reduce the size. Example below where i skip 2 items every 3 lists.  mylist = [[1, 2], [7, 8], [13, 14], [19, 20]]   I tried with mylist[1::3] but wasn't successful  Thanks.


Book about space faring race that are very old but use swords and dress in black, also features a matriarchal society

I am trying to remember a title for a very large older book that featured among other things a dying race of very tall, graceful people living on a desert planet. They live in a spire and have a matriarchal society.   I remember them dressing all in black and using swords.   Other points I remember:   They leave the planet at some point (I think). They find ruins of their race that are very, very old. Main character also seemed to be a slightly rebellious young man.   I'll try and update if I remember anything else.


Enable TeXstudio's syntax highlighting for custom file extensions

My template makes me use files with file extension ".def". They contain regular tex code. How can I enable syntax highlighting in TeXstudio for these files?


How to ignore a set of Mac addresses in dhcpd.conf?

Is it possible in dhcpd.conf to ignore requests from a set of MAC addresses?  Something like this:  host vminstances {     hardware ethernet d0:0d:*;     ignore booting; }


I have two questions about Magnetic Field.   Given a particle with mass m, charge q and uniform B field.    B is going into the page, and particle is moving to the right   Like this. The textbook says that the particle will go in a circular motion with a centripetal acceleration due to the force by magnetic field.   Also, I was taught that the formula for the force of magnetic field is F(vector) = q*V x B. However, the formula for this particular situation, the text book says it's F = qVB.   What happened to the cross product? I considered the angle formula for cross product ||A x B|| = ||A||*||B||*sin(theta). However, the force formula does not have magnitude signs over V nor B. So How did it get converted to qVB ?   What does it mean by static B field, and how does it do 0 work on a free charged particle evne in a non uniform B field?


Schengen Visa for Switzerland, but travel to Amsterdam & Paris

I am planning to visit Europe in November. My initial plan was to be in Switzerland for the entire duration of the trip. I have got the visa as well. But I wish to go to Amsterdam for two nights out of 9 days and one night to Paris (travel by train). The remaining is in Switzerland only. Is it okay to travel with the visa?


How to make figure and listing share their counter

I'm using the "listings" package to write pieces of code (XML, RDF, Java, etc) and I want them to have the same counter of the Figure environment.  For example,   Listing 1: blablabla Listing 2: blebleble Figure 3: bliblibli Listing 4: blobloblo Figure 5: blublublu   The purpose of doing it is to change the "Listing" label to "Figure". But I need both environments to share the same counter. How I do it?  Thanks in advance.


According to WolframAlpha we should have  $$ \lim_{k \to \infty} \frac{a^k k!}{k^k} = \infty $$  whenever $a \geq e$. I know how to show that the limit is 0 when $a < e$ and that the limit is $\infty$ when $a > e$, but I struggle with the case $a = e$. Setting  $$ f(k) = \frac{e^k k!}{k^k} $$  we have that  $$ \frac{f(k+1)}{f(k)} = e\left(1 - \frac{1}{k + 1}\right)^k $$  converges to 1, but this is not sufficient.


Can I boot memtest86+ if I'm using UEFI?

Downloaded the Ubuntu 16.04.2 .iso install disk and flashed it onto a USB stick.  Booting on the USB stick, there is no memtest86+ option (along with "Try Ubuntu").  Is there a way to add it to the install options?  (it's for a UEFI boot PC running normally Windows, its owner does not want to install Ubuntu. "memtest86+" is completely free (unlike "memtest86"), but is quite old, and does not offer a UEFI boot - this is why having it within the Ubuntu options makes things easier)


Why does Path.Combine not properly concatenate filenames that start with Path.DirectorySeparatorChar?

From the Immediate Window in Visual Studio:   > Path.Combine(@"C:\x", "y") "C:\\x\\y" > Path.Combine(@"C:\x", @"\y") "\\y"   It seems that they should both be the same.    The old FileSystemObject.BuildPath() didn't work this way...


Book about a crippled man fighting the devil

I read a book about 10 years ago where one of the protagonists is a sort of Knight, sent on a mission against the devil from a lady.  This man has nightmares that show him the future: if he is doing well on his mission he sees peace, when he fails he sees a world ruled by the devil.  He is not the only warrior that the lady knighted. Another one is a native American.   The other protagonist is a girl which doesn't know is the daughter of the devil. He is coming to take her to make her ruler of the world. She has a sort of wolf that protects her and an elf helper.   I know the book is part of a series but I only read this one. The author was someone famous in this genre but can't remember the name.


I am using Spring-Data and hibernate. I wanted to compare new value, but the object passed as the method param is the same as the one I got from DB. For my entity I created a listener. @EntityListeners(MyListener.class) public class MyClass{  My listener has hot @PreUpdate method @PreUpdate private void beforeAnyUpdate(MyClass newMyClass) {      MyClassRepo repo = (MyClassRepo )             BeanUtility.getBean("myClassRepo");     Optional<MyClass > previousEntity= repo .findById(newMyClass.getId());        System.out.println("previous : " + newMyClass.toString());     System.out.println("current : " + previousEntity.get().toString());  and well... I get the same object. No idea why as I used pre update not post update. previous : MyClass(id=1, variable1=test, variable2=test change) current : MyClass(id=1, variable1=test, variable2=test change)  No idea what is going one, could someone advice me how to get both objects?


Proof for hamiltonian graph by number of vertex

The question is:  Proof that if $c(n-1, 2) + 1 < |E|$ then $G = (V, E)$ is hamiltonian (Use Ore theorem)  My solution is: Since $c(n-1, 2) + 1 < |E|$ we find $n^2-3n+4 < \sum \limits_{v\in G}deg(v)$. If $G$ is not hamiltonian then there are $u,v$ belonging to $V$ with $u + v < n$ Then $n^2-4n+5 < deg(v)$... Who do I progress from here?


Is there a Noether's theorem in quantum mechanics in the path integral formalism?

is a discussion that talks about Noether's theorem in quantum mechanics in its Hamiltonian formulation. It tells how symmetries give rise to conserved quantities. However, we know that there also exists a Lagrangian version of quantum mechanics called the path integral formalism. Is there a statement of Noether's (Noether-like) theorem in this formalism? If yes, what is the statement, and how do we prove it? I want to confine this post to single particle quantum mechanics only not QFT. I have found  post which I think talks about QFT. I am not sure what Ward-Takahashi identity would mean in quantum mechanics. For example, what is the analog of Ward-Takahashi identity for the motion of a particle in a central potential that has rotational symmetry?


Bought a flight ticket with virtual card issuer Privacy.com. Hours later received an email from airline to bring the physical card at check-in

The airline is Oman Air. I tried 3 times to buy the ticket with my Capital one 360 and it failed everytime. So I had to use privacy.com as a last resort. My flight is in two days and now I received an email that after reviewing the transaction they need me to bring the physical card. Has anyone experienced something like this before like using a virtual visa card and what happened. I am so worried because my flight is categorically non-refundable.


Allow same user to add multiple links as possible duplicates

When searching for duplicates of a question often multiple ones turn up, but when voting to close only one of them can be specified.  It would be useful to be able to add more than one duplicate link when voting to close.  This is not a duplicate of  as that feature only allows gold-badge users to add multiple targets; this proposal would allow everyone to propose multiple duplicates.


Too many of my flags are active; is there no one to review/decline?

I am talking about moderator attention Flags I have flagged many questions, some of them were reviewed very soon but some still remain active. I have some active flags that are older than a month. Is there no one on Stack Overflow to look at these ignored flags? I think providing Reputation benefits may solve this like as we have for edits I am not sure weather it is already in systems but AFAIK its not the part but it could be the part which will definitely increase the rate On Stack OverFlow These 7 ranges from 15-30 days I know this is not much but at which speed usually the flags are being reviewed these have been so long..


Can you reject a postdoc offer after the PI has paid a large sum for flights/accommodation for your visit?

I am being considered for a very nice industry scientist position but this involves many interviews and assessments and can take some time.  However I have also accepted an invitation to the US (I'm in Australia) to give a presentation in relation to high likelihood of employment as a postdoc in a research institute.  The postdoc supervisor has arranged for sightseeing and lab visits and hotels. I feel bad if somehow I wish to pursue the industry position.  Has anyone had a similar experience and have you turned down something like that before?


How do I make the image move with every frame of the video?

I just want to make the image in the frame move with every frame of the video.


It really simple, but for some reason the second segment doesn't work at all. Clicking a card doesn't do ANYTHING.  $('.container__card').hover(function(){      $(this).toggleClass('container__card container__card--hover') });  $('.container__card--hover').click(function(){    $(this).toggleClass('container__card--selected container__card--hover'); });


Is it possible in blender to change the dimensions of a downloaded 3d model in .blend format or .obj format in blender using python scripting?

I am totally new to blender, I have downloaded a 3D model of a humanoid and am able to see it in blender. I want to change its dimensions and size in all perform editing on by changing its size, height, arm width, length, etc. In a more clear picture of the question, suppose i have 5 persons whose 3D model I have to make automatically, so I want to change the dimensions of that humanoid to match the body measurements of these people. If I can mark those points manually on the humanoid and define parameters of shoulder width, arm length, height, etc and just input the values then my project can go a little forward. The model I am using is attached in this link,  Please if anyone can tell me if it is possible to edit the model by defining certain parameters through python scripting. I need it as an add on for my project. And i just need to know how can i do that rest i shall experiment and do.


Fluxx - Monty Python: Finger of God & Play All

I've just encountered a situation playing this with my daughter where she has played the Finger of God and there's a Play All card in the table. Does this mean she can keep Playing Finger of God until there are no more Creepers on the table? Seems to be a loop.


Why does the YN-565EX need a radio trigger with the YN-560-TX?

I am buying a Yongnuo YN-565EX TTL Flash Speedlite for Nikon. I am not sure what radio trigger do I need for this.   I have found the YN-560-TX transmitter on Amazon.  However, the description says the folowing:      If you use it with other Yongnuo flash, like YN-560 II, YN-565EX,   YN-568EX ( Manual mode ), you need a transceiver of Yongnuo RF-602,   RF-603, RF-603 III.   I thought the receiver is built in with this flash. So why do I need a separate transceiver?


When I open my URxvt I can see this:  [username@Lenovo ~]$ ...   however, I can see someone can edit it to make it look like:  username ~ $ ...   with username formatted with a color. Is there a way to do it?


How far into space does one have to travel to see the entire sphere of earth?

Virgin Galactic will take passengers aboard SpaceShipTwo  above the surface of the earth. But from this altitude, passengers will only be able to see a certain segment of the curvature of the earth through .  How much further into space would SpaceShipTwo have to travel to give passengers a view of the entire sphere of earth through one of these windows?


It looks a bit silly question and not that important question, so it is just out of curiosity. Please bear with me. :)  I have just noticed it this morning that the hat is rendered differently on the avatar between the profile page and the one in the top bar on the left of the reputation count and the badges.  I wonder if it is a bug or whether I am doing something wrong. You can find the screenshots taken below. The difference seems to be appealing for instance at my left eye.


Java what does a protected variable mean in enum type?

In Java 9, I can write code like this:  enum Abc {     A, B, C;     static protected int foo = 4; // what is the purpose of the protected variables like this in enum? }   I think it makes no sense, because we cannot inherit or implement an enum.  Edit: This question is the same with


I have to install a new Server with SQL Server 2008, What do you recommend, One server with Raid 10 or the Files in a NAS?  What about iSCSI should I use it?  What about SAN?  The server has 4Gb of RAM and that database file is about 2GB.  To make my self clear today the server has no RAID, I have to implement some kind of strategy so  if something happend I can have my files safe, so What should I choose Local Files, NAS, SAN? What  option has the most performance, what is the more secure?


In linear regression model, how can we define cost function. also after defining cost function how to minimize the error term?


I'm trying to quote a point in the text and I want to skip to another part, how would i do this?

I would like to quote something and then add another point in the text for example:  first part [other stuff] second part  I would like to be able to use first part and then second part in the same quote without using the filler in the middle, how can I do this?


I write     public class Vehicle {         public enum condition {new, used, wrecked, rebuilt, restored};     }   and it doesn't build because new is a keyword. I can change it to  public enum condition {newVehicle, used, wrecked, rebuilt, restored};   but that's clunky. Is there a way to use a keyword as an enum constant?


How to convert from SWF to HTML5 and transfer to IPAD?

I made an Interactive animation by using Flash. But my clients wants an HTML version. And all they need is to play it in IPAD. My question is, Does anybody know how convert from SWF to HTML5 and transfer to IPAD? The file size is like 30MB.


I have a Sony Xperia Z with version 4.1.2 running.  My question is about removing all of the Google baggage from the phone.  I have no Google account tied to my phone and would really like to get rid of all traces of Google from my phone for a few reasons:   Battery performance: Google services ranks in the top 3 of what uses up my battery Privacy: I try to minimize what Google siphons from my phone with the exception of Google maps Less Dependency: I don't want to be dependent on one company for all my needs.   So are there any Android versions out there that are minimalistic and do not invade your privacy?


Is it possible to resize a partition in use?

I have a partition in use, ext4 and the operating system is already run, is it possible resize that partition?


What was Daenerys Targaryen's motive in the final chapter of A Game of Thrones?

If you haven't read the book massive spoilers ahead...     It's been years since I've read the book but is it ever explicitly said what Daenerys' motive was for putting the dragon eggs, Mirri Maz Duur, and herself into Drogo's funeral pyre?  Did she know this would hatch the dragon eggs? Suspect it? Or was it pure grief and desperation?


Excel Formula difference between two dates

I have two dates as the following , I want to get the duration spent between them.   6/29/2015 12:18:04 PM    Regards,


How can I widen a single edge into a face?

Let's say I want to make a triangular floor tile with two materials. I've created the triangular plane and drawn the odd-angle lines that will be the pattern across it. Now I need to offset or widen those edges into faces. In an ideal world this would work similarly to insetting a face: just press a key, specify a distance, and two edges parallel to the original are offset by that distance. Is there an easy way to do something like this?


No right border for input field when suggesting as duplicate

Right border of input field when suggesting closing a question as a duplicate isn't visible:        Tested on Windows 7 for Firefox 64.0.2 and Chrome 71.0.3578.98


I need to add the Templates plugin into Drupal8 CKeditor. So far it is available on the editor configuration page, but not on a node edit page. The code:  namespace Drupal\module_name\Plugin\CKEditorPlugin;  use Drupal\ckeditor\CKEditorPluginInterface; use Drupal\ckeditor\CKEditorPluginButtonsInterface; use Drupal\Component\Plugin\PluginBase; use Drupal\editor\Entity\Editor;  class ContentTemplates extends PluginBase implements CKEditorPluginInterface, CKEditorPluginButtonsInterface {    public function getButtons() {     return array(       'ContentTemplates' => array(         'label' => t('Content templates'),         'image' => drupal_get_path('module', 'module_name') . '/js/CKeditor/Plugin/templates/icons/templates.png',         'image_rtl' => drupal_get_path('module', 'module_name') . '/js/CKeditor/Plugin/templates/icons/templates-rtl.png',       ),     );   }    public function isInternal() {     return FALSE;   }    public function getDependencies(Editor $editor) {     return array('dialog', 'dialogui');   }        public function getLibraries(Editor $editor) {     return array();   }    public function getFile() {     return drupal_get_path('module', 'module_name') . '/js/CKeditor/Plugin/templates/plugin.js';   }    public function getConfig(Editor $editor) {     return array();   }    // TODO: to be sure, should be removed and served by config   function isEnabled(Editor $editor) {     return TRUE;   } }   I also could see the methods injected by templates/dialogs/templates.js while inspecting the CKEditor object, but the file is not listed in the Chrome's resources inspector. I also don't see any code changes in this file takes effect (browser and drupal cache disabled, aggregation disabled).


Ubuntu 14.04.5/16.04 and newer on AMD graphics

I have 14.04.5/16.04 or newer and an AMD GPU. I'm not getting the performance I want, and some programs say they need things like OpenCL.  I've heard about fglrx, but if I try to install it on my machine, it breaks and I have no GUI.  Is there anything I can do to get my AMD card working to its full potential?


Icon for unmasking passwords (open or closed to begin with)?

What is the convention for showing toggle icons to a user? This question is specific to password unmasking, but it can easily be used in "on / off" icons et al. In our situation, we have an unmask button at the end of a password field. The password is masked by default, and the icon is an open eye indicating "if you click me, you will see what's behind the curtain" Then the inverse is true when the password is unmasked. The eye is closed, indicating "if you click me, we will hide your password". see the following two images.   for the user's experience, is this the right approach for this situation, or should it be the opposite? Example:  password masked == eye closed icon password shown == eye open icon  Note: we're additionally using a title attribute on the button that says "show password / hide password"


Bad math environment delimiter in standalone class

Given a file master.tex:  \documentclass{article}  \usepackage{standalone}  \begin{document} \input{sub} \end{document}   and a file sub.tex:  \documentclass{standalone}  \begin{document} \[         0 \] \end{document}   the command pdflatex master.tex runs as expected, but the command pdflatex sub.tex gives the error     Bad math environment delimiter.   Can anyone explain what is going on and/or how to solve this?


i didn't understand why my canvas wasn't drawn. With a little of debugging i discovered that at row 35 the property x of the object "item" returns undefined [ canvasContext.fillRect(item.x, item.y, 5, 5) ]. Someone can explain me why?    var players = []; players.push(new Player(100, 200)); players.push(new Player(300, 200)); players.push(new Player(400, 400)); players.push(new Player(200, 200));  function Player(x, y) {   this.x = x;   this.y = y; }  function auto() {   setInterval(     function() {       movePlayers();       updateCanvas();     },     1000   ); }  function movePlayers() {   for (var item in players) {     item.x += 1;     item.y += 1;   } }  function updateCanvas() {   var canvas = document.getElementById("canvas");   var canvasContext = canvas.getContext("2d");   canvasContext.clearRect(0, 0, canvas.width, canvas.height);   for (var item in players) {     canvasContext.fillRect(item.x, item.y, 5, 5);   }  } auto() <canvas id="canvas"></canvas>


CSGO Drops, can anyone update me on the current csgo 2020 drop rates?

Any CSGO items drops you can get after level 21 or prime status? What can you get? Are stickers drops possible?


Probability of passing this multiple choice exam

A multiple choice exam has 175 questions.  Each question has 4 possible answers.  Only 1 answer out of the 4 possible answers is correct.  The pass rate for the exam is 70% (123 questions must be answered correctly).  We know for a fact that 100 questions were answered correctly.    Questions: What is the probability of passing the exam, if one were to guess on the remaining 75 questions? That is, pick at random one of the 4 answers for each of the 75 questions.


Why is friction not dissipative in rolling motion?

We know that non-conservative forces like friction is a dissipative force.  But according to my book when a solid cylinder is rolling down a rough inclined plane of inclination angle $\theta$ the friction is not dissipative. Why is it so?


Invisible prompt after global redirection of stderr to /dev/null

Studying  I am unable to reconstruct the following shell output in bash 4.4.12 in debian 9, both from tty and pts:  bash$ lsof -a -p $$ -d0,1,2 COMMAND PID     USER   FD   TYPE DEVICE SIZE NODE NAME  bash    363 bozo        0u   CHR  136,1         3 /dev/pts/1  bash    363 bozo        1u   CHR  136,1         3 /dev/pts/1  bash    363 bozo        2u   CHR  136,1         3 /dev/pts/1   bash$ exec 2> /dev/null bash$ lsof -a -p $$ -d0,1,2 COMMAND PID     USER   FD   TYPE DEVICE SIZE NODE NAME  bash    371 bozo        0u   CHR  136,1         3 /dev/pts/1  bash    371 bozo        1u   CHR  136,1         3 /dev/pts/1  bash    371 bozo        2w   CHR    1,3       120 /dev/null   Whenever I run the second command the shell prompt disappears and all keyboard input stops being displayed, though I can still run commands and see their output. Why is that?


Measure the size of a PostgreSQL table row

I have a PostgreSQL table. select * is very slow whereas select id is nice and quick. I think it may be that the size of the row is very large and it's taking a while to transport, or it may be some other factor. I need all of the fields (or nearly all of them), so selecting just a subset isn't a quick fix. Selecting the fields that I want is still slow. Here's my table schema minus the names: integer                  | not null default nextval('core_page_id_seq'::regclass) character varying(255)   | not null character varying(64)    | not null text                     | default '{}'::text character varying(255)   |  integer                  | not null default 0 text                     | default '{}'::text text                     |  timestamp with time zone |  integer                  |  timestamp with time zone |  integer                  |   The size of the text field may be any size. But still, no more than a few kilobytes in the worst case. Questions  Is there anything about this that screams 'crazy inefficient'? Is there a way to measure page size at the Postgres command-line to help me debug this?


are $f(f(x))=f(x)$ and $f(x)=x$ equivalent?

when I apply $f^{-1}$ to both sides $f(f(x))=f(x)$ $(1)$ we get $f(x)=x$ $(2)$.  are $1$ and $2$ equivalent?


javascript Math.abs() different behaviour

I do not understand what's going on in these cases:  Math.abs(40.35 * 100) ->4035 Math.abs(40.36 * 100) ->4036 Math.abs(40.37 * 100) ->4036.9999999999995 Math.abs(40.38 * 100) ->4038.0000000000005 Math.abs(40.39 * 100) ->4039   Why does this happen? I though math.abs() returns absolute values (?).  Thank you a lot   EDIT* Thanks for the referencing link, did not find anything like that


Why does my program say I have not declared?

I am writing a chess program. I have a player class and I have a chessboard class, among many other classes. My program was compiling before on xcode and linux.   The compiler keeps saying 'Player has not been declared' for the ChessBoard.h header file, and 'Chessboard has not been declared' for the Player.h  Player.h      #ifndef PLAYER_H     #define PLAYER_H     #include <string>     #include "ChessBoard.h"       using namespace std;      class Player {   ChessBoard.h  #ifndef CHESSBOARD_H #define CHESSBOARD_H   /* ChessBoard object stores a 2D representation of 32 ChessPieces. Checks for win or tie after each move */  #include "Player.h" #include "ChessPiece.h"  //Board size const int SIZE = 64;  class ChessBoard { public:   Both include guards have an #endif and the cpp implementation files contain includes to the header file.  Why am I getting this error message? Thanks


I've tried to organize my project so I thought that I will include all of my global variables, #includes and struct definition in a global.h header. However I can't fully understand this concept and the errors during build seem to prove that. When i try to access my global.h in logic.h this is what happens.  global.h:  #ifndef GLOBAL_H #define GLOBAL_H #include "logic.h" #include <SDL.h> #include <iostream> #include <string> #include "graphics.h"  //Global variables and structs enum directions {     D_UP,     D_LEFT,     D_DOWN,     D_RIGHT,     D_TOTAL };  struct Character {     float health;     float x;     float y;     float velocity;     bool collision[D_TOTAL];     directions direction;     SDL_Rect animation;     SDL_Rect sprite; };  const int windowWidth = 800; const int windowHeight = 600; const int frameWidth = 64; const int frameHeight = 64; #endif // GLOBAL_H   logic.h:  #include "global.h" //Header for gamelogic functions  //Initialization of all variables for a new character void initCharacter(Character &newCharacter, float x, float y, directions startingDirection);   When i try to build it this is the error I'm getting:  ||=== Build: Debug in GameProject0.2 (compiler: GNU GCC Compiler) ===| C:\Users\Rafał\Documents\GameProject0.2\GameProject0.2\logic.h|5|error: variable or field 'initCharacter' declared void| C:\Users\Rafał\Documents\GameProject0.2\GameProject0.2\logic.h|5|error: 'Character' was not declared in this scope| C:\Users\Rafał\Documents\GameProject0.2\GameProject0.2\logic.h|5|error: 'newCharacter' was not declared in this scope| C:\Users\Rafał\Documents\GameProject0.2\GameProject0.2\logic.h|5|error: expected primary-expression before 'float'| C:\Users\Rafał\Documents\GameProject0.2\GameProject0.2\logic.h|5|error: expected primary-expression before 'float'| C:\Users\Rafał\Documents\GameProject0.2\GameProject0.2\logic.h|5|error: 'directions' was not declared in this scope| ||=== Build failed: 6 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|   I am not sure what I'm missing. Thanks for any advice!


I have a laptop with a 1TB HDD which is divided into two drives, C & D. The C drive is used for Windows 10. I am installing Ubuntu on the D drive, but at the time of creating swap and root partitions I am not getting an option to create a home partition.   How can I create a /home partition during installation?


Name the SciFi book where a person finds a crash-landed alien mech/ship

I remember when I was young really enjoying a SciFi book that I found in a closet of a house that we moved into in the late 80s - early 90s.  What I remember is it being about a kid or person who finds a crash landed alien mech. I don't think it was a very long book so it may have been meant for tweens or just a short story.


A peculiar justification for closing a post - seeking explanation

The question about  was closed because:     "This question does not appear to be about the software that powers the Stack Exchange network, within the scope defined in the help center."   This seems to be a little bit odd to me. The question is definitely about something else but does it mean we now can ask questions only about software that powers the Stack Exchange network?


This is a comment made by a poster on an article about texting:     It seems to me that by texting during class or at meetings, you are in no position to assess whether the topic under discussion is worth your time and attention or not. You're not paying attention. You've already mentally checked out.   What does checked out mentioned above mean? I've looked it up in the dictionaries, but wasn't able to find a definition that's relevant to the context.


Grandi's Series; tends to $1/2$, but why is this considered a valid sum?

Grandi's series,  $$1+1-1+1-1+1-1+...$$  can be expressed as the below:  $$\sum_{n=0}^\infty(-1)^n$$  Two valid sums that make sense to me are $1$, and $0$, depending on how you approach the series. $(1+1)-(1+1)-(1+1)-...=0$, and $1+(1-1)+(1-1)+(1-1)+...=1$.  There is consensus, however, that the actual sum is $\frac{1}{2}$. Why? I understand the approach of finding partial means of the series, and they do indeed tend to $\frac{1}{2}$, but it seems unintuitive to assert that the sum is neither $1$ or $0$.  A more convincing method I found was assuming the series is $S$, then shifting it such that $S-1 = S$, then through algebra finding $S = \frac{1}{2}$, but again, it seems more intuitive answer is either $0$ or $1$. I say this strictly because adding and subtracting integers should equal an integer, never a fraction.  Is this a characteristic of infinite series, which is not specific to Grandi's series?


How to propose UX practice to your employer

How do one propose to have UX practice at the workplace?   UX is not recognised as an essential in the development process of web and mobile in most companies in my country.   How do you approach your employer on the importance of having sketch, prototypes, an ? put aside my confidence issue, what can be done to convince your employer on its importance?


Using Differentials (not partial derivatives) to prove that d𝜃/dx = -sin(𝜃)/r

I am trying to prove the parts of each component of the inverse matrix in the attached image. I have tried using differentials and then solving for the other components. (I'd like to solve it this way). Trying to solve for example, $\frac{d\theta}{dx}$ (in the bottom left of the inverse matrix [attached below]) $$x = r cos(\theta)$$ –> $$dx = cos(\theta)dr - rsin(\theta)d\theta$$Then observing that we are holding $r = constant$, thus $dr = 0$. I get that $\frac{d\theta}{dx} = \frac{- 1}{r sin(\theta)}$, which is close. I put this in a partial calculator and made $\theta$ a function of x and r, $\theta = cos^{-1}\left(\frac{x}{r}\right) = \cos^{-1}\left(\frac{x}{\sqrt{x^2 +y^2}}\right)$. Taking the $\frac{\partial \theta}{\partial x}$ I get the right answer due to r being a function of x and y. If I use the $cos^{-1}\left(\frac{x}{r}\right)$ and take the partial I get what I stated above ($\frac{d\theta}{dx} = \frac{- 1}{r sin(\theta)}$). Also I tried to replace dr in $dx = cos(\theta)dr - rsin(\theta)d\theta$ by using $r^2=x^2+y^2$ by replacing dr with $rdr = xdx + ydy$ where I assumed dy to be constant. Which yielded me the wrong answer. I'd like to improve my logical thinking so any advice on what I did would be great as well. Thank you! Summary: I am trying to prove using differentials (not partials) that $\frac{d\theta}{dx} = \frac{-sin(\theta)}{r}$


Actually, thats it. The question is: Is it possible to write 1 as the sum of the reciprocals of x odd integers? x is the odd number.  For  x - even the impossibility is obvious. But what to do for x - odd?  I have seen some of the similar questions, but almost everywhere there were odd numbers in a row (2n+1,n=1,2...) And the answer was using the Harmonic number. Somewhere it is mentioned that the difference of harmonic numbers can't be an integer, but i don't know if it is true... If it is, then it is possible to write this (finite) series as a combination of harmonic numbers.  Please, correct me if i'm wrong.   Thank you for your attention.


KOMA-Script: change font of sectioning headings to serif

How to change the default KOMA-Script font that is used for chapter/section headings etc. to the Computer Modern font that is used in text body?


Is /usr/bin/bash the same as /bin/bash (CentOS 7)

Are /usr/bin/bash and /bin/bash the same thing? They seem to have the same inode number and attributes:  [vagrant@tmp-ansible-test-vm ip_lookup]$ ls -il /bin/bash /usr/bin/bash 1574356 -rwxr-xr-x. 1 root root 960376 Nov 20  2015 /bin/bash 1574356 -rwxr-xr-x. 1 root root 960376 Nov 20  2015 /usr/bin/bash   But stat only reports one link (not two as I would expect):  [vagrant@tmp-ansible-test-vm ip_lookup]$ stat /bin/bash   File: ‘/bin/bash’   Size: 960376      Blocks: 1880       IO Block: 4096   regular file Device: fd00h/64768d    Inode: 1574356     Links: 1  # <--- Only one link???? Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root) Context: system_u:object_r:shell_exec_t:s0 Access: 2018-01-29 19:48:46.749000000 +0000 Modify: 2015-11-20 05:02:31.000000000 +0000 Change: 2016-07-05 13:38:25.550000000 +0000  Birth: -   Why would they have the same inode number, but only one link?  I'm using  with Virtualbox for this VM if that makes a difference. Is one location more "stable" than the other?  Output of mount (requested in comments):  (ip_lookup) [vagrant@tmp-ansible-test-vm ip_lookup]$ mount sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime,seclabel) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) devtmpfs on /dev type devtmpfs (rw,nosuid,seclabel,size=239448k,nr_inodes=59862,mode=755) securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,seclabel) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,seclabel,gid=5,mode=620,ptmxmode=000) tmpfs on /run type tmpfs (rw,nosuid,nodev,seclabel,mode=755) tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,seclabel,mode=755) cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd) pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime) cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio) cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory) cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu) cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices) cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls) cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset) cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb) cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer) cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event) configfs on /sys/kernel/config type configfs (rw,relatime) /dev/mapper/VolGroup00-LogVol00 on / type ext4 (rw,relatime,seclabel,data=ordered) selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime) mqueue on /dev/mqueue type mqueue (rw,relatime,seclabel) debugfs on /sys/kernel/debug type debugfs (rw,relatime) systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=35,pgrp=1,timeout=300,minproto=5,maxproto=5,direct) hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,seclabel) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime) nfsd on /proc/fs/nfsd type nfsd (rw,relatime) /dev/sda2 on /boot type ext4 (rw,relatime,seclabel,data=ordered) tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,seclabel,size=50080k,mode=700,uid=1000,gid=1000)   Output of ls -la /bin/bash /usr/bin/bash (requested in comments):  (ip_lookup) [vagrant@tmp-ansible-test-vm ip_lookup]$ ls -la /bin/bash /usr/bin/bash -rwxr-xr-x. 1 root root 960376 Nov 20  2015 /bin/bash -rwxr-xr-x. 1 root root 960376 Nov 20  2015 /usr/bin/bash


How can I double the newlines in an output stream

When I have an output stream:  a b c d e   How can I double the newlines:   a  b  c  d  e


I'm putting a diamond symbol at the of a remark by use of  \usepackage{amsthm} ... \newenvironment{rem}{\begin{remark}}{\hfill$\diamond$\end{remark}}  However when the rem environment is finished with a math display mode, the diamond will be placed at the end of a new line. I would prefer that it is placed on the line of the equation. How is this possible?


INT(5) vs SMALLINT(5): numbers in parenthesis after the numeric type

In MySQL table definitions is there a different between INT(5) and SMALLINT(5)?  Or do they both represent the same size?


Counting points out of polygon using QGIS?

I would like to count the amount of points that are out of the polygon because I need to sum them.  I know how to count how many points are inside but in need to find how many there are outside.


Travelling through the US with Canadian Working Visa

I'm Australian and have obtained my Canadian working visa. However rather than flying direct to Canada I am meeting an American friend in LA and driving across the border. I have a return flight booked back to Australia from LA in March of next year too. Will the esta visa will be enough to enter the USA because I have my Canadian working visa and plan to travel there? Or will there be a problem because my return flight is booked later then the 90 days allowed on the visa.


Let $f(t)$ be a continuous function.  so-$$\frac{\pi}{2} \int_{0}^{\pi}f(\sin x)dx=\int_{0}^{\pi}xf(\sin x)dx$$  I tried many times Integration in parts but didn't succeed.


How do I get a thread ID from an arbitrary pthread_t?

I have a pthread_t, and I'd like to change its CPU affinity. The problem is that I'm using glibc 2.3.2, which doesn't have . That's OK, though, because pthread_setaffinity_np() is itself a wrapper of , which can be called by passing a thread ID instead of a process ID to set the affinity for an arbitrary thread.  BUT ... The thread id that sched_setaffinity can work with is an OS thread id, the kind that you can get from the  system call. This is different from the opaque type pthread_t, and gettid() will only return the thread-id of the current thread. I need to be able to set the CPU affinity of an arbitrary thread.  Unfortunately, I can't access the pthread's private parts, which would let me steal the thread id by casting a pthread_t to a struct pthread *. All the better, I guess, since relying on private implementations is asking for even more trouble.  I've also been reading up on the  function, however this returns a "unique integral identifier" -- which I don't believe is in any way shape or form equivalent to an OS thread id.  Hence, the question: How can I get a thread ID from an arbitrary pthread_t?


Youngnuo flash as a compatible slave flash

I have a 600EX-RT Canon flash, and am looking for a cheap Yongnuo flash to be used as a slave to the Canon. Do you know any Yongnuo than can reliably be used as a slave to my 600EXRT ?


Detecting hardware and installing drivers in Windows XP

I have on my desk a computer that I am reinstalling. I have just completed the Windows XP install , which is professional service pack 3. I have also installed an AV package.   Now it is time to install the audio and display drivers. Windows Update does not detect the Display card, and neither the audio device.   I really have no idea what devices are present in this system, and I am thinking of opening the case, and reading some IDs from the cards themselves. Before I do this, is there not some kind of tool that can automatically detect hardware and install drivers automatically. If not then at least tell me what devices are present, with some real descriptions, so I can search for drivers.


phpMyAdmin give eror butlocalhost is working correctly

even i tried sudo apt install php-mbstrin it continues this eror  phpMyAdmin - Error  The mbstring extension is missing. Please check your PHP configuration.


Short story where humans meet a six-fingered primitive alien race that turns out to be smarter than humans

Humans meet primitive aliens with six fingers, they turn out to be more intelligent than humans, there's a tropical kind of planet, and something to do with a young alien.  It's been 6 years since I've read this short story and I'd like to know what it was.


Autogenerate primitive codeblocks for ruby in vim

When looking at screen cast like "destroy all software" or "railscast" it seems the authors are using some kind of tool to auto generate blocks of code like for instance if statements, for loops and more. Do anyone have knowledge of the name of such a tool or what it is called?


How do you make a price in javascript? ex $1.99

I would like the output for each function to yield $x.xx as if it were a price. Being new to javascript is there a simple way to accomplish this or is it a complex system to get the results that I desire for my project?  Below is the code i have made in javascript:      //First function outputs a random number     var myFirstFunction = function(First)     {         return First;      };      var FirstAnswer = myFirstFunction(Math.random());       console.log(FirstAnswer);      //Second function outputs the random number multiplied by 10     var mySecondFunction = function(Second)     {         return Second * 10;     };      var SecondAnswer = mySecondFunction(FirstAnswer);      console.log(SecondAnswer);      //Third function divided the random number by 3.3     var myThirdFunction = function(Third)     {         return Third / 3.3;     }      var ThirdAnswer = myThirdFunction(SecondAnswer);      console.log(ThirdAnswer)


I was wondering if there is something like an interpreter for C.  That is, in a Linux terminal I can type in "python" and then code in that interpreter.  (I'm not sure interpreter the right word).  This is really helpful for testing different things out and I'm curious if something similar exists for C.  Though I doubt it.  The only thing I can think of that would do it would be the C shell...


I have one website. I have two domain names that I want to point to the same site install.   So whether you go to name-one.com or name-two.com you see the exact same site.  Now, I can either set up name-two.com to serve 301 redirect header redirecting to name-one.com – or, I can set up name-two.com as a CNAME in the DNS pointing to name-one.com  What is the different implications for SEO on this? What is recommended?  I would guess it's better for branding to use a 301 redirect, so that visitors will see one consistent url for my site, right?  The reason I want the two domains is that I want a version with regional letters ('ö' instead of 'oe' ) in the name.


I live in KwaZulu-Natal, South Africa, and the only indoor bugs I've experienced issues with are fleas, as I have two cats (and a big garden). This morning, however, I put on a fleece top that had been lying around somewhere, got a lift to the store, and returned to suddenly feel a crawling sensation. I lifted up my shirt to find these tiny bugs crawling all over my upper body. I did some Googling, went upstairs and carefully observed my bedding and bed, however, the only evidence I found was a few newborn fleas / flea larvae (which I intend to deal with today). I should also mention that a flock of wild Egyptian Geese have been raising five goslings in my yard, and they get very close to me when I'm walking outside at times. My house is also not carpeted, it has oregon pine floors throughout. I tried to take a photo of the critters, however, they're very tiny and move very quickly, so it was difficult to get a clear shot. Any advice would be greatly appreciated.


Take a system with two ideal, rigid spheres in vacuum, being under zero net external force. Now suppose I want to make the spheres collide, which I do by pushing one of them towards the other. Now consider the distance between the two spheres: let it be, say, $x$. As you can now obviously deduce, that as the 2 spheres come closer, $x$ will keep getting smaller and smaller, approaching $0$, taking every real value between its initial value and $0$ at different times. Now, well, I'm not sure if I should ask it here, but, if there are infinite real numbers before zero, and it's taking every one of them before getting equal to $0$, how are the balls colliding? What's really going on in there? A little quirky and philosophical, I know. I also asked the same on Physics Stack Exchange.


Show that $(1+\frac{x}{n})^n \rightarrow e^x$ uniformly on any bounded interval of the real line.   I am trying to argue from the definition of uniform convergence for a sequence of real-valued functions, but am struggling quite a lot. My efforts so far have concentrated on trying to find a sequences, ${a_n}$ which tends to zero, such that   $$|(1+\frac{x}{n})^n -e^x |\leq a_n$$ for all $n$. But I have been unsuccessful thus far. All help is greatly appreciated.


Apparently there are two ButterKnifes! 😎


For an arbitrary quadrilateral ABCD prove that Area(ABCD) ≤ (AB·CD+BC·AD)/2


Wifi networks not showing after installing ubuntu 16.04 on Lenovo y50

I installed Ubuntu 16.04 along side windows 10 on my lenovo y50 laptop. The installation finished properly but I cant seem to get the wifi networks to show up. I have spent days trying to do this and have tried almost all relevant posts related to reinstalling the broadcom driver. Can someone please give me advice than can work for my laptop model?  EDIT: I was asked to add the result for the following commands:  Command:  lspci -nnk | grep 0280 -A3   Gives  08:00.0 Network controller [0280]: Broadcom Corporation BCM4352 802.11ac Wireless Network Adapter [14e4:43b1] (rev 03)     Subsystem: Lenovo BCM4352 802.11ac Wireless Network Adapter [17aa:0623]     Kernel driver in use: bcma-pci-bridge     Kernel modules: bcma   Command:  rfkill list all   Gives:  0: ideapad_wlan: Wireless LAN     Soft blocked: no     Hard blocked: no 1: ideapad_bluetooth: Bluetooth Soft blocked: yes     Hard blocked: no     2: hci0: Bluetooth Soft blocked: yes     Hard blocked: no


Usage of 'future perfect' versus 'future simple'

I have a question about the usage of the future perfect thingy: I know that it is used to talk about a completed action before a time in future, but is it wrong to use just plain future simple in this same case?   For example, can we use      I will finish all my money by the end of the week.   instead of      I will have finished all my money by the end of the week?   Do native speakers follow this rule in their speaking?


Can a foreigner get a visa for China in Taiwan?

I'm in China and thinking of taking a ferry to Taiwan. I'm an Australian citizen and I've been to Taiwan before and know I get visa-free entry. But I'm wondering about getting a new visa for China when I'm in Taiwan.  I know China considers Taiwan a part of it so doesn't have embassies or consulates in Taiwan.  But for visa purposes China does consider a trip to Taiwan and back to use up an entry of a China visa. Similar to Hong Kong and Macao.  In Hong Kong you can get a visa to China but it must be done through an agency. Is this also the same for Taiwan or is there a different procedure? Or is it just not possible at all?  (I'm sure the situation and procedure is different for Taiwan citizens so I'm not asking about that.)


For those that don't know about them: Comment shortcuts are handy

I've seen people that don't know about these, so I thought I'd post this just a heads up.  There are comment shortcuts like [edit], [mcve], and [tour] that allow you to quickly link to useful pages in comments. [edit] links to the editing page for that question, [mcve] becomes , and [tour] becomes .    You can use them pretty simply:   Please post an [mcve] of the problem.   Please post an  of the problem.  Please [edit] that information into your question   Please  that information into your question.      They're mentioned  in the help, and are discussed  on Meta.    I know that especially on Meta, a lot of people will know about these. I just thought I'd mention them because I occasionally see people writing things like [tour](https://stackoverflow.com/tour) in comments, which isn't very efficient.


Let's say if some one has Ubuntu server 12.04 should he reinstall and put 16.04 or just update the security updates??? This is just an example.  I want to hear more opinions on this. What is a normal thing to do. I think there is no more linux servers online serving a website with ubuntu 8.04. It needs to be reinstalled at some point. Maybe it's not reinstalled? Maybe it can be upgraded? What is the standard procedure?


Why are there 4 Dimensions and 4 Fundamental Forces?

Is it a coincidence that there are four fundamental forces and four spacetime dimensions ? Does a universe with three spacetime dimension contain four fundamental forces? Can magnetism  be realized in three dimensional spacetime?  Edit 1: Thanks alot for the answer. I'm a first year undergrad student so this may seem naive. If there is a symmetry that mixes spacetime symmetries and internal symmetries of the theory (e.g. gauge symmetry) then there might be ways that spacetime geometry have effects on the particle spectrum and interactions of the theory so you can describe things in geometrical manner . The mechanisms that lead to the structure of spacetime may explain why there are four forces.


So how would I design a replay system?  You may know it from certain games like Warcraft 3 or Starcraft where you can watch the game again after it has been played already.  You end up with a relatively small replay file. So my questions are:   How to save the data? (custom format?) (small filesize) What shall be saved? How to make it generic so it can be used in other games to record a time period (and not a complete match for example)? Make it possible to forward and rewind (WC3 couldn't rewind as far as I remember)


Let $f:\mathbb{R} \to \mathbb{R}$ be a cont. function that statisfies $|f(x)-f(y)| \ge \log(1+|x-y|)$ then the function $f$ is bijective.

I have been able to show the injectivity part but I am stuck with surjectivity.I think we need to use the intermediate value theorem somehow but I don't know how?Also what if $\log(1+|x-y|)$ is replaced by any other surjective function will the function still be surjective?


Filesystem and gparted disagree on free memory

My filesystem says I have:    While gparted says:    And if I run disk analyser on root partition only:    it mentions I only have 6Gb in total, instead of 15 from gparted.  I guess gparted is right, but I also understand I only can use the available memory seen by the system. Which means there might be some leak/miscalculation somewhere. How can I unify those? Should I do some kind of defragmentation?   Thanks    EDIT:  Here are my terminal outputs:  ▶ sudo fdisk -l [sudo] password for augustin:   Disk /dev/sda: 119.2 GiB, 128035676160 bytes, 250069680 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x000ecc64  Device     Boot     Start       End   Sectors  Size Id Type /dev/sda1        62566400 209952767 147386368 70.3G 83 Linux /dev/sda2       241467392 250068991   8601600  4.1G 82 Linux swap / Solaris /dev/sda3  *    209952768 241467391  31514624   15G 83 Linux /dev/sda4            2048  62566399  62564352 29.9G  5 Extended /dev/sda5            4096  30785535  30781440 14.7G 83 Linux /dev/sda6        30787584  62566399  31778816 15.2G 83 Linux  Partition table entries are not in disk order.  ▶ df -h Filesystem      Size  Used Avail Use% Mounted on /dev/sda3        15G   14G  373M  98% / udev             10M     0   10M   0% /dev tmpfs           774M  9.7M  764M   2% /run tmpfs           1.9G  195M  1.7G  11% /dev/shm tmpfs           5.0M  4.0K  5.0M   1% /run/lock tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup /dev/sda6        15G   11G  3.1G  79% /media/partition2 /dev/sda5        15G  7.7G  6.0G  57% /media/partition1 /dev/sda1        70G   56G  9.6G  86% /home tmpfs           387M   36K  387M   1% /run/user/1000   And my full gparted, to make it clearer:    So my /home repository is not in the same partition as my /.  Also I use Docker, which might have something to do with memory usage I think.


Problem 8 (a) in Exercises after Sec. 18 in Munkres' Topology, 2nd ed.: How to show this set is closed?

Let $X$ be an arbitrary topological space, let $Y$ be an ordered set in the order topology, and let the maps $f, g \colon X \to Y$ be continuous. Then how to show that the set $S$ given by $$S \colon= \{ \ x \in X \ \colon f(x) \leq g(x) \ \}$$  is closed in $X$?


Is it possible to use USB 3.0 Pendrive into my Laptop's USB 2.0 Port?

Currently I am having USB 2.0 port Laptop. I am in the plan to buy USB 3.0 Pendrive/External Hard Disk. Whether USB 3.0 pendrive/ext HDD will support USB 2.0 Laptop's port? Or it will have problem to use?  Thanks in advance.


I have this:  \label{appendix:b} \includepdf[scale=0.8,pages=1,pagecommand=\chapter{interview}]{interview/interview} \includepdf[scale=0.8,pages=2-,pagecommand={}]{interview/interview} \label{appendix:bslut}   And I'm calling it with cleveref:  \cpagerefrange{appendix:b}{appendix:bslut}   The problem is that I get the wrong page number for the last page -- it adds a page. What should be "pages 1-5" is instead "pages 1-6". I have Googled this like a madman, and I can't figure out what to do. I hope some of the superstars here can help! I have cleveref after hyperref, as recommended...  EDIT: As requested, I tried to make an MWE, but for some reason it gives me:  LaTeX Warning: Reference `appendix:bslut' on page 1 undefined on input line 7.   Here it is, though. "multipage" should be a PDF spanning several pages.  \documentclass{memoir} \usepackage{pdfpages} \usepackage{hyperref} \usepackage{cleveref} \begin{document} \chapter{Foo} Foo\cpagerefrange{appendix:b}{appendix:bslut}.  \chapter{Bar} \label{appendix:b} \includepdf[scale=0.8,pages=1,pagecommand=\chapter{Multipage}]{multipage} \includepdf[scale=0.8,pages=2-,pagecommand={}]{multipage} \label{appendix:bslut}  \end{document}


Can a pixie fly higher than their altitude of one?

In the pixie description on the compendium:     Altitude Limit: You fall at the end of your turn if you are using your racial fly speed and are more than 1 square above the ground (see the rules for flying and falling in the Rules Compendium).   So can a pixie choose to go two or more squares above the ground?   Here are the relevant rules from the compendium:  Fly speed:     A creature that has a fly speed can fly a number of squares up to that speed as a move action. If it is stunned or knocked prone while flying, it falls. See also “Flying” and "Hover".   Flying:     Flight      Some creatures have the innate ability to fly, whereas others gain the ability through powers, magic items, and the like. The rules for flight in the DUNGEONS & DRAGONS game stress abstraction and simplicity over simulation. In real life, a flying creature’s ability to turn, the speed it must maintain to stay aloft, and other factors put a strict limit on flight. In the game, flying creatures face far fewer limitations.      FLIGHT      Flight follows the basic movement rules, with the following clarifications.         Fly Speed: To fly, a creature takes the walk, run, or charge action but uses its fly speed in place of its walking speed. A creature that has a fly speed can also shift and take other move actions, as appropriate, while flying.   Moving Up and Down: While flying, a creature can move straight up, straight down, or diagonally up or down. There is no additional cost for moving up or down.   Falling Prone: If a creature falls prone while it is flying, it falls. This means a flying creature falls when it becomes unconscious or suffers any other effect that knocks it prone. The creature isn’t actually prone until it lands and takes falling damage.   Remaining in the Air: A flying creature does not need to take any particular action to remain aloft; the creature is assumed to be flying as it fights, moves, and takes other actions. However, a flying creature falls the instant it is stunned, unless it can hover.   Landing: If a creature flies to a surface it can hold onto or rest on, the creature can land safely.   Terrain: Terrain on the ground does not affect a flying creature if the terrain isn’t tall enough to reach it. Because of this rule, flying creatures can easily bypass typical difficult terrain, such as a patch of ice on the ground. Aerial terrain can affect flying creatures.      Crashing        Falling while Flying: If a creature falls while it is flying, it descends the full distance of the fall but is likely to take less damage than a creature that can’t fly. Subtract the creature’s fly speed (in feet) from the distance of the fall, then figure out falling damage. If the difference is 0 or less, the creature lands without taking damage from the fall. For example, if a red dragon falls when it is 40 feet in the air, subtract its fly speed of 8 (8 squares = 40 feet) from its altitude. The difference is 0, so the dragon lands safely and is not prone.         If a creature is flying when it starts a high-altitude fall, it has one chance to halt the fall by making a DC 30 Athletics check as an immediate reaction, with a bonus to the check equal to the creature’s fly speed. On a success, the creature falls 100 feet and then stops falling. On a failure, the creature falls as normal.         High-Altitude Falls: Some encounters take place very high above the ground. In such an encounter, it is possible for a creature to spend more than one round falling to the ground. As a rule of thumb, a creature falls up to 500 feet during its first turn of falling. If it is still falling at the start of its turn, it can take actions on that turn as normal, then falls up to 500 feet at the end of the turn. If none of those actions expressly halts a fall, the creature falls up to 500 feet at the end of the turn. This sequence continues until the creature lands.


android - startActivity using java class

i'm having a problem with starting activity from inside java class , i want to active an activity from java class i tried this code but it doesn't work :   public class AlMA_PRO_Class{    public static void Start_Setting(){         ActionBarActivity mn = new MainActivity2(); // this is the setting activity         //i've tried it like this way ==>  mn.setContentView(R.layout.activity_main_activity2);         //but not working , so i've tried this code below         Bundle b = new Bundle();         b.putString("command","not used , just because it's needed");         startActivity(new Activity(), new Intent(new Activity(),MainActivity2.class), b);    } }   and it return with the following error :  java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference   i've tested many many different ways to do it ,but nothing worked !! any help ?


double and quint64 conversion in Qt environment

quint64 a = 11; double b = 0.1; double v = a / b; quint64 v1 = a / b; quint64 v2 = v; quint64 v3 = (double)((double)a / (double)b); qDebug() << QObject::tr("v = %1, v1 = %2, v2 = %3, v3 = %4").arg(v).arg(v1).arg(v2).arg(v3);   I tried the code in Qt creator as pasted, which use mingw compiler. The result is as following:     "v = 110, v1 = 109, v2 = 110, v3 = 109"   My question is, why v1 and v3 are both 109? How the compiler deal with such a sentence 'a / b'? And how can I get result v3 as 110 in one line?


Create segmented circle in Adobe Illustrator and have each segment be a different color

As the title mentions I need to create a pie of sorts using Adobe Illustrator. It seems like it would be easy using the Polar Grid Tool but I can't, for the life of me, figure out how to make each 'piece' of the pie be into its own independant object/layer/etc. I need each piece to be independantly editible for color/content/text/etc. Please help an AI noob....


There're $25$ tests, each with $2$ questions. There're total of $50$ different questions (the questions do not repeat). The student knows the answer of $44$ questions. To pass the exam, the student needs to correctly answer both questions on the first test he drew, or answer $1$ question from the test he drew first, and $1$ question from the test he drew second. (meaning he draws twice if he answers a question incorrectly on his first try)  What is the probability that the student will pass the exam?  I have never faced a problem like this one so any help is appreciated. I was thinking about approaching it "manually" with some applied combinatorics but I feel like there's a much easier way that I am not familiar with.


Can I still Downgrade my iPhone 4 down to IOS 6.1.3 from IOS 7?

I just wanted to know if there is still a way to downgrade iOS 7, i don't have beta. (on an iPhone 4 which is listed as iPhone3,1 on ).


Standard Error for a Parameter in Ordinary Least Squares

I am studying parameters generated by the method of Ordinary Least Squares, in particular, a parameter's associated standard error.  suggests calculating   $$s^2=\frac{S\left(\hat\beta\right)}{n-p}=\frac{\rvert\rvert y-X\hat\beta\rvert\rvert^2}{n-p}$$  describing this as      the standard error of the regression (SER), or standard error of the equation (SEE).   This, however, is not sufficient to calculate the standard error for a given parameter.   I found , which suggests     For each parameter, the standard error can be obtained by:   $$s_{\hat \beta _j}=s \sqrt{C_{jj}}$$       where $C_{jj}$ is the j$^{th}$ diagonal element of $(X'X)^{-1}$ (note that $(X'WX)^{-1}$ is used for weight fitting).    Note, that using this technique yields precisely the same standard errors as those summarized by the lm method in R.  Where does this $C$ come from? I have been reading about this for days, and this is the first reference I have seen to this matrix.


How would one calculate $\lim_{n\to\infty}n((1+\frac{1}{n})^n-e)$?

What I have thought about this is:   we may use L'Hopstal's rule to calculate $\lim_{n\to\infty}\frac{((1+\frac{1}{n})^n-e)}{\frac{1}{n}}$, both the numerator and denominator goes to 0 as n goes to infinity. But calculating the derivative of $(1+1/n)^n$ seems to be very complicated. Using Taylor series to calculate the dominant terms of $(1+1/n)^n$, but I'm not really sure if it makes sense to let $"n=\infty"$. Equivalently maybe we can expand $(1+x)^{1/x}$ at $x=0$, but it's not defined.    Maybe I wasn't on the right track. Even if the solution uses a different approach, I would still love to know how to expand $(1+x)^{1/x}$. Thanks for any suggestions.


How do i parse and differentiate '4 PM' or 'PM' in a javascript string value returns?

I am getting sometimes '4 PM' or 'PM' for the itemDate string. if itemDate has the value of 'PM' then I should not display anything to my HTML. If i get the value as '4 PM' then I should display that time value.  itemDate = '4 PM'  itemDate ='PM'   P.S : 4 PM is an example time string and it may be 12 AM too.  How do i do the parsing using javascript for my above request?


Jumbo loan amount before or after downpayment?

I want to take out a mortgage, but the value of the house is greater than $417,000, which is the amount when a mortgage becomes a Jumbo loan. I looked for more information on BankRate.com, and even tried out their calculator, but I could not find a clear and concise explanation of the down payment required for the Jumbo loan.  All the calculators I've found only ask for the loan amount and down payment percentage. They don't tell my what my owed principal would be, once the down payment is collected and the loan is initiated. If the value of the house is greater than the jumbo loan limit ($450,000), but my down payment ($60,000) takes the loan below the limit ($390,000), do I still need to get a jumbo loan?  I apologize for being redundant, because this question has already been asked, but the answer given was never accepted and didn't actually answer the question being asked. This question is located at "".


Generated texture coordinates vs Unwrapped texture coordinates

If you want to map an equirectangular image texture to a sphere - like a map of the earth to a sphere - is there any necessity to use an UV map ? Or can I simply use the generated texture coordinates ? In general, when do you choose for UV unwrapping and when to use generated texture coordinates ?  I don't think this question is a duplicate with  question because these answers all start with the uv unwrapping method and I want to know if UV unwrapping or generated texture coordinates works best for my specific question. And I also would like to learn some general guidelines when choosing uv unwrapped vs generated texture coordinates


Does casting Disintegrate on a polymorphed enemy still kill it after the 2018 errata?

After the , the  spell description now reads:     A creature targeted by this spell must make a Dexterity saving throw. On a failed save, the target takes 10d6 + 40 force damage. The target is disintegrated if this damage leaves it with 0 hit points.   If you were to polymorph an enemy into a rat and then disintegrate it, would the enemy be disintegrated or would it just return to its original form? I know that for Druids, it’s not an instant kill anymore, but is this the case for polymorph as well?


A new stackexchange for Linux Desktop Environments is needed : Askubuntu is too specific, Unix and Linux is too broad

PPS. I have added a related question now -  which addresses the point raised here.  PS. The reason not to close can found at the end  Some years ago I proposed a new StackExchange for non-Ubuntu desktop environments because   Ask Ubuntu did not like questions on Debian There are whole areas of Linux which are not Ubuntu specific Unix SE tends to be focused more on lower level, glue level aspects of Linux and the command line and it doesn't go into desktop issues as much.  utilities  bash 14758 grub 6639 swap 5937 init 5076 mysql 3618 init.d 2845 crontab 2626 systemd 2090 docker 1873 zsh 1460 system v 1451 python 1333 upstart 877 rc.d 922 puppet 502   desktops  debian 9389 arch 7574 ubuntu 7510 mint 6290 fedora 3009 gnome 1552 kde 986 kde4 322 kde5 186    You can see from the tags how much Unix/Linux is focused more on the underlying glue and utilities rather than issues relating to the desktop environment. Combining the two areas is like trying to serve Windows server administrators and Windows end users from the same forum. I don't think any SE developers and administrators would ever do that  In Linux server administrator issues are quite different from desktop user related issues, but as most Linux desktop users have to be their own administrators, there is an overlap but only the minimum desktop users need to do to fix the desktop issues and get back to work.  To be honest each of the Linux desktop derivatives need their own SE and admins can probably tag them and move them if they are miscategorized or are in the wrong forum.  I brought this up some years ago and it was shot down immediately on the grounds that Unix and Linux SE is a good substitute. You only have to look at r/unix and r/linux on reddit to see how conceptually differently they are viewed.  Whatever the case may or may not be for different Stack Exchanges for the desktop environments the desktop environments and the OS proper should have different exchanges. Linux itself is the operating system, the kernel more accurately and the derived OSs and desktop environments are quite different.  UPDATE For those who believe I should make a new proposal this is question explains the reason why. .  If there is a means of getting past a proposal which will allow other interested users to chime in before it is immediately turned down  or there is some other faq, question or Q&A on how this point can be discussed I'd like to be directed to it


enumerative combinatorics,In how many ways (as a function of n) can one choose a composition α α of n

Fix $n\in P$. In how many ways (as a function of n) can one choose a composition $\alpha$ of n, and then choose a composition of each part of $\alpha$?


A bullet of mass 20 g travelling horizontally with a speed of 500 m/s passes through the wooden block of mass 10 kg initially at rest . The bullet emerges with a speed 100 m/s and the block slides 20 cm before coming to rest. Find friction coefficient between block and surface      My teacher solved this question by conserving momentum between the bullet and the block. But how can he do that when there is external force (friction) acting on the system? I think impulse momentum theorem is used in such scenarios, but how can I apply it in this problem?


Evaluate the integration : $\int\sqrt{\frac{(1-\sin x)(2-\sin x)}{(1+\sin x)(2+\sin x)}}dx$

$$\int{\sqrt{\frac{(1-\sin x)(2-\sin x)}{(1+\sin x)(2+\sin x)}}dx}$$  $$\int\sqrt{\frac{(1-\sin x)(2-\sin x)}{(1+\sin x)(2+\sin x)}}dx=\int \frac{(1-\sin x)(2-\sin x)}{\sqrt{(1-\sin x)(2-\sin x)(1+\sin x)(2+\sin x)}}dx$$  I am stuck. Please help me....


Show that every nonzero integer has balanced ternary expansion?

show that every nonzero integer can be uniquely represented in the form  $e_k3^k + e_{k-1}3^{k-1}+ … + e_13+e_0$ where $e_j= -1, 0, 1$ for $j = 0,1,2,…k$ and $e_k \neq 0$


I am using DevC++.   when I write void main(), the compiler says main must return int. when I write main(), the compiler reports nothing. when  write int main(), the compiler asks me to return something.   My question is what is main() without int and void?why does compiler behave differently for int main() and just main()?


There exists $C\neq0$ with $CA=BC$ iff $A$ and $B$ have a common eigenvalue

Question:  Suppose $V$ and $W$ are finite dimensional vector spaces over $\mathbb{C}$. $A$ is a linear transformation on $V$,  $B$ is a linear transformation on $W$. Then there exists a non-zero linear map $C:V\to W$ s.t. $CA=BC$ iff $A$ and $B$ have a same eigenvalue.  ===========This is incorrect==========  Clearly, if $CA=BC$, suppose $Ax=\lambda x$, then $B(Cx)=CAx=C(\lambda x)=\lambda (Cx)$, so $A$ and $B$ have same eigenvalue $\lambda$. On the other hand, if $A$ and $B$ have a same eigenvalue $\lambda$, suppose $Ax=\lambda x, By=\lambda y$. Define $C:V\to W$ s.t. $Cx=y$, then $BCx=By=\lambda y=C\lambda x=CAx$. But I don't kow how to make $BC=CA$ for all $x\in V$.   ======================================


How precisely does a star collapse into a black hole?

I think we all heard general statements like "once big enough star burns out there is nothing to prevent the gravitational collapse ending in a black hole". But I can't remember even seeing the process described precisely.  Here's the deal: at first there is a nice object, a star. Stars can be nicely modeled by general relativity, nuclear physics and statistical physics combined and very much is known about these models and it can be observed whether they agree with things like light and neutrino fluxes, surface temperature and probably also lot of other stuff I know nothing about.  After the collapse we are left with another nice object, a black hole. We know that .  The question is: what happens in-between? More precisely, between the time when all of the nuclear material has been burned out (and if possible ignore effects like reheating of the star after big enough compression) and the time where there is nothing more than just a black hole.        Give a description of what happens during the collapse?   How does the star "lose its hair"?   Can the actual collapse be solved analytically?   At what point is singularity created?      Update: I don't want to know what an outside observer will see. Instead, I'd like to find out what an individual part of the dead star will "feel" when a black hole is about to form near it. In other words, I want a complete solution (ideally analytical, but numerical would be also completely fine)  Feel free to assume anything that makes your life easier. Spherical symmetry is definitely fine. Also, if for any reason the questions don't make sense (like Cauchy problem is ill-defined in the presence of the singularity) feel free to interpret them in a way that make them sensible (e.g. assume that black hole is built from D-branes).    Also, I have a feeling that what I intended as a simple question at first ended up being pretty complex. If you think it should be split into smaller (and therefore more manageable and answerable) parts, let me know.


Adding additional fields on user registration page (first name, last name)

In Drupal 7, what methods are there to add additional textfields to the user registration page at /user/register? I mainly want to also get their first + last name during registration. There doesnt seem to be a way via the interface to add these extra fields as required for sign up.   What is the quickest way of adding these extra text fields on sign up?


How to say "You have this much work to do because you decided to do that much" more elegantly?

I want to try word this a bit more elegantly, fancy, etc.  Basically that is a reply to a co-worker who said to me in an email saying "Too much work to do!" and I want to reply to that in an intelligent way.  I was thinking about something along the line of "You only have so much as you decided to have." but that doesn't sound right at all.  Any English experts out there can help?


Module and subtraction of two random variables of uniform distributions

Having X~Uniform(0,1), Y~Uniform(0,1) independent what's the pdf of r = |X - Y|. If I want plot f(r=|X - Y|) against X, what should I do?  about the plot, at first I thought of doing, $r^2 = (x - y)^2$, and call $y=\rho$, but it did not work.


how to check the defintion of a particular environment?

What program can be used to output the definition of some macros or some environments provided by a particular package without having to read all the package file. A program that output only the needed definition.  example: how to check the definition of the TheSolution environment provided by the exam class


An upper bound for derivative of holomorphic function at zero

Let $f \in \mathbb{H}(\mathbb{D})$(I mean$f$ is holomorphic on $\mathbb{D})$ be such that $\forall z \in \mathbb{D},  Re f(z) > 0$ and $f(0) = a > 0$. Prove that: $|f'(0)| \leq 2a$.   I tried to solve it with Cauchy integral formula but I can't. Is there a solution with this method?  It's the problem 1.14 in "A Course in Complex Analysis and Riemann Surfaces(Wilhelm Schlag)".


I did read that sleep can't handle any SIGNAL. So it seems to me that when I send SIGTERM to it, it should ignores it.    sleep 10000 & 26322 kill -s SIGTERM 26322 [1]+  Exited             sleep 1000    Why sleep is killed ? After all, it doesn't install any signal handlers.


Show that if $\sigma=(a_1,a_2,\dots,a_m)$ and $\tau$ is any element of $S_n$, then $\tau\sigma\tau^{-1}=(\tau a_1,\tau a_2,\dots,\tau a_m)$.  I'm not quite sure how to start this.  The solution starts off by saying that  $$\tau\sigma\tau^{-1}(\tau(a_i))=\tau\sigma(a_i)=\begin{cases}\tau(a_{i+1})&i<m\\\tau(a_1)&i=m\end{cases}$$  but I don't see why.


Add external package installation repo source

I need to add the following repo in ubuntu 16.04:  deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty main  I attempted to add that repo by typing following command:  sudo add-apt-repository "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty main"  I want to add that repo because I want to install packages from there.  I see that after the add-apt-repository command there is an entry added in /etc/apt/sources.list  but when I am trying to install the package using sudo apt-get install clang-3.4 I still get error:  Reading package lists... Done Building dependency tree        Reading state information... Done Package clang-3.4 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'clang-3.4' has no installation candidate


Why does this inequality about the false discovery proportion hold?

I am reading an article from Statistics in Medicine ("Tutorial in biostatistics: multiple hypothesis testing in genomics"). For my question it is only relevant to know that $V$ denote the number of falsely rejected hypotheses in a set of $m$ hypotheses, $R$ the number of all rejected hypotheses and $Q:=V/R$ the false discovery proportion (for $R>0$ and $0$ else).  The authors state that since $0 \le Q \le 1$, $$E(Q) \le P(Q>0) = P(V>0).$$  That is, the false discovery rate ($E(Q)$) is always smaller or equal the family wise error rate ($P(Q>0)$). Why is this a sufficient proof?