In PHP I use this for script.php?data=something:  $data = $_GET['data']; echo $data;   Is there a way to do the same in Python when I start the script? Or how can I manage to start a script multiple times with different values?
In PHP you can just use $_POST for POST and $_GET for GET (Query string) variables. What's the equivalent in Python?
Can you be refused a visitor visa to US if you have bad Credit there? I did my 3 years of College in the US, 2010-2013 due to finance issues I was unable to pay my credit card bill of a certain bank, which still lie unpaid.  However I plan on visiting the US later this year; could I be denied visa for having an unpaid bill ? Python string prints as [u'String'] This will surely be an easy one but it is really bugging me.   I have a script that reads in a webpage and uses  to parse it. From the soup I extract all the links as my final goal is to print out the link.contents.  All of the text that I am parsing is ASCII. I know that Python treats strings as unicode, and I am sure this is very handy, just of no use in my wee script.   Every time I go to print out a variable that holds 'String' I get [u'String'] printed to the screen. Is there a simple way of getting this back into just ascii or should I write a regex to strip it? I have a atmega8 that is working with 3.6V dc, I need to control some 12V relays with a not chip (7404), what is the simplest way to do this? I have connected a 12V dc to the relays, so when I connect the relays to the chip and then the atmega8, the current returns to the atmega through the not chip. Is this solution correct? There a better way to do this? Finding $\int_0^{\infty}xe^{-\lambda x} \, dx$ How to integrate:  $$\int_0^\infty x \, \lambda e^{-\lambda x} \, dx$$    I tried using integration by parts:  Let $u = x$ and $dv = \lambda e^{-\lambda x} \, dx$  Then $du = dx$  And $v = - \lambda e ^{-\lambda x}$  Correct so far?   Then   $$\begin{aligned} uv - \int v \, du &amp;= -\lambda x e^{-\lambda x} - \int (- \lambda e^{- \lambda x}) dx \\ &amp;= -\lambda x e^{-\lambda x} - \lambda e^{-\lambda x} \end{aligned}$$    The correct answer from lecture notes      UPDATE 2  Let $u=\lambda x$ and $dv = e^{-\lambda x} dx$  Then $du = \lambda \, dx$  $$dv = e^{-\lambda x} \, dx$$  Let $y = -\lambda x$  Then $dy = -\lambda \, dx$  So $dx = -\frac{1}{\lambda} dy$  $$\begin{aligned} v &amp;= \int e^u \cdot - \frac{1}{\lambda} du \\ &amp;= - \frac{1}{\lambda} e^{-\lambda x} \end{aligned}$$  But here I seem to have an extra $- \frac{1}{\lambda}$ in $v$?  If I continue using integration by parts, I get:   $$-x e^{-\lambda x} + \color{red}{\frac{1}{\lambda}} \int e^{-\lambda x} \, dx$$ The photon sphere is a spherical region in space where photons are forced to travel in an orbit at $r = \frac{3GM}{c^{2}}$.   Is it possible to detect these spheres?  What happens if I fall through it? What happens to a photon that tangentially hits the event horizon, wouldn't this also lead to a photon orbiting the black hole? EDIT Since neutron stars also might have a , do we know neutron stars that should have such a sphere? Which nvidia driver from additional drivers option should I choose? I have NVIDIA Geforece 7025 / nForce 630a integrated gfx card on my UBUNTU 12.04.And I have 4 options in Additional drivers:    NVIDIA accelerated graphics driver (version 173)   NVIDIA accelerated graphics driver (post-release updates)(version current updates)  NVIDIA accelerated graphics driver (version current)[Recommended]  NVIDIA accelerated graphics driver (post-release updates)(version 173 updates)   I am currently using the First option.  My Problem is there I can't update the version 173 to the latest version of drivers using xswat PPA. Whenever I do it and reboot but the NVIDIA xserver sttings always shows me the same version.  Which option would allow me to update my drivers to the current version? Why is OpenJDK 10 packaged as openjdk-11-*? While looking to compile OpenJDK from source, the newest General Availability version () insists on OpenJDK 9 or 10.  JDK 11, however, is not due to be released until .    However, to my surprise, when I do apt search openjdk the result is:  ... openjdk-11-jdk - OpenJDK Development Kit (JDK) ... openjdk-8-jdk - OpenJDK Development Kit (JDK) ...   No OpenJDK 9 or 10!  And wait, is that OpenJDK 11?  Maybe a Beta release?  Nooo....  So I looked at apt show openjdk-11-jdk:  Package: openjdk-11-jdk Version: 10.0.1+10-3ubuntu1 ...   Why has OpenJDK 10 been packaged as openjdk-11-*?? I have studied some of Einstein's Theory of General Relativity, and I understand that it states that gravity isn't a force but rather the effects of objects curving space-time. If this is true, then why are we instructed in middle school that it is a force? When should \cdot be used to indicate multiplication? Is this purely personal style, or are the generally accepted guidelines? Clearly, when dealing with numbers either $2 \cdot 2$ or $2 \times 2$ is needed, but within formulae where an absence of an operator implies multiplication, when should a \cdot be used? I tend to use it only sparingly if it aids in grouping. (Of course, barring the cases where it's required, e.g. a dot product.) This is a  about  Related:      I have a question regarding capacity planning. Can the Server Fault community please help with the following:   What kind of server do I need to handle some number of users? How many users can a server with some specifications handle? Will some server configuration be fast enough for my use case? I'm building a social networking site: what kind of hardware do I need? How much bandwidth do I need for some project? How much bandwidth will some number of users use in some application? Restore console session after remote desktop disconnects? Is it possible (through group policy, etc) to automatically restore the console session to a Windows 8.1 PC after a remote desktop session disconnects?  I'm aware that you can run the command "tscon 1 /dest:console" during the RDP session to disconnect yourself and reconnect the console session, but is it possible to have this happen automatically? In an exam paper, there was a picture of an air stewardess in the aeroplane serving passengers. One of my pupils wrote the following:      The air stewardess works on an aeroplane.    Shouldn't it be the air stewardess works in an aeroplane? Unbiased Estimator for a Uniform Variable Support Let $ x_i $ be iid observations in a sample from a uniform distribution over $ \left[ 0, \theta \right] $.  Now I need to estimate $ \theta $ based on $N$ observations and I want the estimator to be unbiased.  I thought about simple estimator $ \hat{\theta} = \max \left( x_i \right) $.  Based on simulation it is not biased, yet I couldn't show it analytically.  Could anyone, please, show it is unbiased?  BTW, I could easily find another, easy to prove, unbiased estimator, $ \hat{\theta} = 2 \mathrm{mean} \left( {x}_{i} \right) $ Prove that, for any $n+1$ integers $a_{1},a_{2},....,a_{n+1}$, there exist two of the integers $a_{i}$ and $a_{j}$ with $i \neq j$, such that $a_{i} - a_{j}$ is divisible by $n$.  Please help me about this problem,I know there is lots of answers can find from Google, but I am not really understand them. I hope someone can give me more details explanation. I would really appreciate your help. How does iCloud Photo Library's "Optimize iPhone Storage" setting work in relation to other photo apps on iOS? If I have Optimize iPhone Storage enabled on my iPhone and my phone storage is completely full, I understand that iOS will only store a low-res thumbnail of many of my photos on the device. (The full high-res version of the image will only exist in iCloud and on devices with Download and Keep Originals enabled.)  But when only thumbnails exist on the device, how does that work in relation to other photo apps on iOS? For example, do third-party cloud-based photo apps (like Google Photos, Dropbox's Carousel, or Amazon Prime Photos) have access to the full high-res images from the iCloud Photo Library? Or will they only see the low-res thumbnails in some cases? Disabling module with config sync and removing with composer I have an issue disabling modules, I've searched but cannot find something useful:  - Developer A disable module and via composer remove it  - I pull his changes so i run composer install that remove the code, then drush cim to update configuration, but it complains that the module is missing while it's trying to delete its configurations.  What's the right way to do this? I can't import config before running composer install because along the uninstalled module there could be also new modules needed for the configuration import. Why is it not true that if $\Phi \models \exists x \phi$ then there is a term $t$ with $\Phi \models \phi \frac{t}{x}$? Op Amps: how do they know whether the supply is split? Most op amps can operate in single and split supply configurations. However, I cannot see how this is possible.  If I connect voltages \$V_\text{SY}^+\$ and \$V_\text{SY}^-\$ to the positive and negative supply pins of a op amp, and \$V_+\$ and \$V_-\$ to the non-inverting and inverting inputs, then the output is (if \$A_\text{OL}\$ is the open loop gain of the op amp): $$V_\text{out}=A_\text{OL}(V_+-V_-)+V_\text{SY}^-\tag{Single-supply}~\text{ }~~\text{ }~~\text{ }~~\text{ }~~\text{ }~~\text{ }$$ The above equation is from personal experience using op amps in single supply (i.e. \$V_\text{SY}^- = \text{GND}, V_\text{SY}^+ &gt; \text{GND}\$).  In split supply, we can use the following diagram from MIT's 6.002 introduction to electronics lecture video:  $$V_\text{out}=A_\text{OL}(V_+-V_-)+(V_\text{SY}^+-V_\text{SY}^-)/2\tag{Split-supply}$$  These two equations, however, are mutually inconsistent: If I take an op amp and hook up a single voltage source between its supply pins, how does the op amp know that the resulting voltage is not split between two sources?   It must know - but how does it know? Why does my Task Manager window outline keep disappearing? Possible Duplicate:          I'm not sure what the proper term for the window outline is (chrome, I think?), but it keeps disappearing.    As you can see, theres no File->Exit or buttons that allow me to minimize or close this dialog. So instead it stays on top of everything else (unless I 'Switch To' another window). There is also no Processes tab or anything.  Since you cant right click the toolbar or bring up another instance of Task Manager, the only way to actually kill this dialog seems to be restarting. However the next time I bring up Task Manager, it will still refuse to go away.  Anyone know whats going on? I'm running 32-bit Vista SP1. JSON.parse: unexpected character