Interrupting an input in python
raw_input in python without pressing enter
In the United States, we say that someone lives on a street, whereas I've noticed that British people say in. For instance:     Bubba lives on Washington Street.   Colin lives in Cavendish Avenue.   I believe we both would use at when a number is given. For instance:     Bubba lives at 16 Washington Street.   Colin lives at 7 Cavendish Avenue.   I don't think it matters if it's a road, avenue, street, circle, or lane — as far as I know, in America, we always live on a street. Does it vary in British English, or is it always in? If it varies, what are the rules? I got the Turkey e-visa several times with my schengen visa. In the e-visa form there is a condition      I have a round-trip ticket with Turkish Airlines, Pegasus Airlines,   Onur Air or Egypt Air.   What if I am traveling from another country to Turkey or using another airlines like Nile Air form Egypt? Linux: clnt_create: RPC: Program not registered NFS mounts recently automatically got un-mounted. When I checked, the NFS service status it was shown to be running.  [root@hsluasrepo]# service nfs status rpc.svcgssd is stopped rpc.mountd (pid 4083) is running... nfsd (pid 4148 4147 4146 4145 4144 4143 4142 4141) is running... rpc.rquotad (pid 4079) is running...  [root@hsluasrepo]# service rpcbind status rpcbind (pid  4203) is running...  [root@hsluasrepo common]# rpcinfo -p 10.80.3.154    program vers proto   port  service     100000    4   tcp    111  portmapper     100000    3   tcp    111  portmapper     100000    2   tcp    111  portmapper     100000    4   udp    111  portmapper     100000    3   udp    111  portmapper     100000    2   udp    111  portmapper   But showmount output was showing an error.  [root@hsluasrepo ]# showmount -e 10.80.3.154 clnt_create: RPC: Program not registered   After restarting the NFS service, showmount output displayed the NFS server's export list.  Can anyone tell me the root cause of this issue and How to avoid this problem in future?  /var/log/messages:  Jul 7 03:22:01 hsluasrepo rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x-pid="1188" x-info="rsyslog.com"] rsyslogd was HUPed Jul 7 03:22:02 hsluasrepo rhsmd: In order for Subscription Manager to provide your system with updates, your system must be registered with RHN. Please enter your Red Hat login to ensure your system is up-to-date. Jul 8 03:22:01 hsluasrepo rhsmd: In order for Subscription Manager to provide your system with updates, your system must be registered with RHN. Please enter your Red Hat login to ensure your system is up-to-date. Jul 8 16:36:55 hsluasrepo kernel: nfsd: last server has exited, flushing export cache Jul 8 16:36:55 hsluasrepo rpc.mountd[4083]: Caught signal 15, un-registering and exiting. Jul 8 16:36:55 hsluasrepo rpc.mountd[24463]: Version 1.2.3 starting Jul 8 16:36:55 hsluasrepo kernel: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory Jul 8 16:36:55 hsluasrepo kernel: NFSD: starting 90-second grace period Jul 8 16:37:32 hsluasrepo rpc.mountd[24463]: authenticated mount request from 10.60.5.208:1004 for /common/PROD (/common/PROD) Jul 8 16:38:09 hsluasrepo rpc.mountd[24463]: authenticated mount request from 10.60.5.181:869 for /common/PROD (/common/PROD)  Jul 8 16:38:43 hsluasrepo rpc.mountd[24463]: authenticated mount request from 10.60.5.180:825 for /common/PROD (/common/PROD) Jul 8 16:39:12 hsluasrepo rpc.mountd[24463]: authenticated mount request from 10.60.5.176:688 for /common/PROD (/common/PROD) The inequality is homogeneous, but I am not sure if that helps. Also, I was thinking about considering a concave function and apply Jensen or Karamata on LHS. Geometric series for two-point function In deriving the expression for the exact propagator  $$G_c^{(2)}(x_1,x_2)=[p^2-m^2+\Pi(p)]^{-1}$$   for $\phi^4$ theory all books that i know use the following argument:  $$G_c^{(2)}(x_1,x_2)=G_0^{(2)}+G_0^{(2)}\Pi G_0^{(2)}+G_0^{(2)}\Pi G_0^{(2)}\Pi G_0^{(2)}+...$$  wich is a geometric series so the formula for the exact propagator.Here  $$G_0^{(2)}$$   is the free propagator and   $$\Pi=X+Y+Z+...+W$$  is the sum of all irreducible diagrams.Here the irreducible diagrams is represented by $X,Y,Z,...,W$.  Using the path integral i can see, that  connected diagrams $D$ can be written in the form  $$D=G_0^{(2)}XG_0^{(2)}Z...G_0^{(2)}W$$  Question: But how to prove that there is no constant $C$ so that instead we have  $$D=G_0^{(2)}XG_0^{(2)}Z...G_0^{(2)}W$$  we would have  $$D=CG_0^{(2)}XG_0^{(2)}Z...G_0^{(2)}W~?$$  In the last case we would not have a geometrical serie. Can someone explain me i t please  or give me another way to derive it. How do I clear Bash's cache of paths to executables? Proving inequality $(a+\frac{1}{a})^2 + (b+\frac{1}{b})^2 \geq \frac{25}{2}$ for $a+b=1$ If $a, b$ are positive real numbers and $a+b = 1$, prove that :  $$\left(a+\frac{1}{a}\right)^2 + \left(b+\frac{1}{b}\right)^2 \geq \frac{25}{2}$$  I can see that the value $\frac{25}2$ is attained for $a=b=\frac12$. But I do not know how to show that this is the minimal possible value.  Thank you. How to write permutations as product of disjoint cycles and transpositions Why does pluralization of compound words typically occur in the middle as opposed to the end of the word? As I understand, correct plural versions of passerby and attorney general become passersby and attorneys general.  But why?  With passerby, the the preposition "by" has been combined with the noun "passer" to become a one word noun "passerby".  So why shouldn't this be passerbys?  If I am an attorney general, and you are an attorney general, why are we not attorney generals?  As an American I have always heard it as attorneys general, however  suggests British English does use "attorney-generals" (as well as an interesting 2nd paragraph that further probes my question).  Are there hard rules to this topic?  Or merely generally accepted practices based on locale? How do I rename all folders and files to lowercase on Linux? I have to rename a complete folder tree recursively so that no uppercase letter appears anywhere (it's C++ source code, but that shouldn't matter).  Bonus points for ignoring CVS and Subversion version control files/folders. The preferred way would be a shell script, since a shell should be available on any Linux box.  There were some valid arguments about details of the file renaming.   I think files with the same lowercase names should be overwritten; it's the user's problem. When checked out on a case-ignoring file system, it would overwrite the first one with the latter, too. I would consider A-Z characters and transform them to a-z, everything else is just calling for problems (at least with source code). The script would be needed to run a build on a Linux system, so I think changes to CVS or Subversion version control files should be omitted. After all, it's just a scratch checkout. Maybe an "export" is more appropriate. Calculus Question: $\int_0^1\frac{(x-x^2)^4}{1+x^2}dx$ I am an Indian student in France on a 6 month visa for an Internship. Currently I don't have my passport with me as I have applied for UK visa and am not hoping to receive it back in next 10 days. I was wondering if I can travel to Germany without my passport in hand.   The documents I can carry are a photocopy of my passport's identity page, Residence proof here, proof of Internship in France,Indian national identity card, receipt from UK embassy stating my visa application.   Please note that I do NOT have a photocopy of French visa page. How to put a variable in anchor tag Why do electron and proton have the same but opposite electric charge? What is the explanation between equality of proton and electron charges (up to a sign)? This is connected to the gauge invariance and renormalization of charge is connected to the renormalization of photon field, but is this explanation enough? Do we have some experimental evidence that quarks have 2/3 and -1/3 charges? By the way I think about bare charge of electron and proton. And I am also wondering if this can be explained by Standard Model. lib32bz2-1.0 missing on 16.04 I have tried installing this package (needed for android studio).  This is the error i'm getting  E: Unable to locate package lib32bz2-1.0 E: Couldn't find any package by glob 'lib32bz2-1.0' E: Couldn't find any package by regex 'lib32bz2-1.0'   I have already tried:  sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get install lib32bz2-1.0   &amp;  sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get install lib32bz2-1.0:i386   I also searched on  and did not find lib32bz2-1.0 for Ubuntu 16.04. So how do i get this package which is available for trusty and precise? Prevent Adobe Reader from switching to "Fit Page" zoom when bookmark is clicked I read following in a web site ()     Lenses with maximum apertures of f2.8 allow the camera to use all high   precision sensors. In low light or other situations that are hostile   to autofocus, that’s a big deal. Lenses with a maximum aperture of   f4.0 use only the center focus sensor in its “high precision” mode,   and use the other sensors in their “horizontal line” only mode. Lenses   with a maximum aperture of f5.6 use all sensors in their   “horizontal-only” mode, and lenses with a maximum aperture of f8 use   only the center sensor point, and that with horizontal sensitivity   only.   I want to understand if this is completely true? I am raising this because recently I have purchased a Nikon 70-200 f/4 lens and would like to understand if I have made a wise investment, or, should I collect some more money and buy a 70-200 f/2.8 VR-II lens. Is it a good practice to refer to countries, ships etc using the feminine form? Is there any Android XML documentation? When I've worked a bit with my source code, I did my usual thing commit and then I pushed to a remote repository. But then I noticed I forgot to organize my imports in the source code. So I do the amend command to replace the previous commit:  &gt; git commit --amend   Unfortunately the commit can't be pushed back to the repository. It is rejected like this:  &gt; git push origin To //my.remote.repo.com/stuff.git/  ! [rejected]        master -&gt; master (non-fast forward) error: failed to push some refs to '//my.remote.repo.com/stuff.git/'   What should I do? (I can access the remote repository.)