I am writing a python script and I want this script to write some value to an environment variable which does not exist before the running of this script. The OS which I am running is Ubuntu. So ideally, after execution of the script, I should be able to display the environment variable using the echo command on the terminal. By that I mean the terminal behaviour should be as such:  &gt; echo $NEW_VAR environmentvarvalue   I want to be able to access this environment variable in a different python script as well. So the following code:  import os output = "The value of NEW_VAR is " + os.environ.get('NEW_VAR') print output   when run after running the initial script, should produce the following output when executed:  The value of NEW_VAR is environmentvarvalue   I have tried the following code in my initial script after a bit of research about this:  import os os.environ['NEW_VAR'] = 'environmentvarvalue'   but the environment variable gets saved only for the scope of the initial scrpt, and when I run the echo command on the terminal after execution of the script, the behaviour is the same as when the variable does not exist. Is there something wrong with my code? Or is there a better way of assigning an environment variable through python? I know that I can probably run the export command from the subprocess python module, but this does not seem like the right way to solve this problem.
I'm trying to write a shell script that, when run, will set some environment variables that will stay set in the caller's shell.  setenv FOO foo   in csh/tcsh, or  export FOO=foo   in sh/bash only set it during the script's execution.  I already know that   source myscript   will run the commands of the script rather than launching a new shell, and that can result in setting the "caller's" environment.  But here's the rub:  I want this script to be callable from either bash or csh.  In other words, I want users of either shell to be able to run my script and have their shell's environment changed.  So 'source' won't work for me, since a user running csh can't source a bash script, and a user running bash can't source a csh script.  Is there any reasonable solution that doesn't involve having to write and maintain TWO versions on the script?
I have Windows 8 (final, MSDN) on my Macbook Pro Retina.  Windows 8's ongoing, continuous tantrum of insisting that it's on a tablet device is causing it to always have a touch keyboard 'icon' on  the taskbar.  The 'icon' is actually a toolbar and I can temporarily disable it by right clicking the taskbar and DE-selecting it. However, upon rebooting the system, it always insists on coming back and activating itself.    How can I permanently disable the touch keyboard toolbar in the taskbar? Often called "He-Who-Must-Not-Be-Named" and "You know who", was it common knowledge at the Ministry of Magic that Voldemort was the same person as Tom Riddle? Given $f_{n} : [a,b]\rightarrow \mathbb R$ is uniformly Lipschitz and $f_{n}\rightarrow f$, how can I show that $f$ is Lipschitz?  $f_{n}$ is uniformly Lipschitz $\leftrightarrow \exists K &gt; 0$ such that for all $n$ and for every $x,y\in [a,b]$ we have $|f_{n}(x)-f_{n}(y)| &lt; K|x-y|$.  $f_{n}\rightarrow f \leftrightarrow \forall~\epsilon&gt;0~~\exists~N$ such that $\forall~n&gt;N$ we have $\mid f_{n}(x) - f(x)\mid&lt;\epsilon~~~(=\mid x-y\mid?)$  Then we have  \begin{align} |f(x)-f(y)| &amp;\leq |f(x)- f_{n}(x)| + |f_{n}(y)-f(y)| + |f_{n}(x)-f_{n}(y)| \\ &amp;\leq |x-y| + |x-y| + K|x-y| \\ &amp;\leq (K + 2) |x - y| \end{align}  which shows that $f$ is Lipschitz. Can anybody tell me if this makes sense? Sorry if layout is poor. Where is Jon going? At the end of S08E06 of Game of Thrones, Jon Snow along with Tormund and others of the Night's Watch      leave the Night's Watch.   and go into the woods.  Where are they going? And why? Apache doesn't log remoteIP when RemoteIPHeader X-Forwarded-For is present How to execute sudo commands with Expect & send commands in bash script? Publishing a review in a peer-reviewed Wiki vs a traditional journal? The topic of Wikipedia contribution has come up before, but I am interested in the community's opinion on peer-reviewed wiki publishing (e.g., Scholarpedia). I would like to know if there is any advantage for a PhD student to publish in such an online venue versus the traditional journal publication for review content. The advantages I see to the wiki approach is free of charge publication, open access for all, not necessarily being limited by character limits. However, the disadvantages I see could be the citation being completely ignored by the intended audience and therefore missing out on the benefits of scientific communication and the possible loss of accompanying reputation for the publication. I would also worry these publications would be ignored or minimized by future supervisors and review committees. How did Sauron remain in control of the Nazgûl? The One Ring gave Sauron control of the Nine, yet when it was taken from him he still possessed the power to control them (or, at least he regained it towards the end of the third age).  Why is this?   mentions that he drew the Nine to him, but not how. Many To Many Relationships Case assignment rule is always executed in the test class I am new to Ubuntu and want to install VMWare Player. What is the step by step procedure to install that? Can decimal numbers be considered "even" or "odd"? Crossfading Video AND Audio with ffmpeg This Super User answer  has got me so far, but now that I have tried many solutions and seen every SO link out there, it's time to ask you all for help.  I am trying to crossfade 2 videos that are 10 seconds each in ts format with audio and video at the same time.   The steps are:   Add complex filter black screen Fade out video 1 after 9 seconds, with 1 second fade duration Fade in video 2 at 9 seconds, with 1 second fade duration Trim black filter output to 19 seconds   This works fine for just video alone, but when I attempt to add audio, I can't get past this error message:     Output pad "default" with type audio of the filter instance "Parsed_asetpts_4" of asetpts not connected to any destination   It appears I'm not connecting the audio output properly. I think I need to alter the [over] lines to include audio. But how do I do this?  `ffmpeg -i vid1.ts -i vid2.ts -f lavfi -i color=black -filter_complex \ "[0:v]format=pix_fmts=yuva420p,\ fade=t=out:st=9:d=1:alpha=1,setpts=PTS-STARTPTS[v0];\ [0:a]\ afade=t=out:st=9:d=1,asetpts=PTS-STARTPTS[a0];\ [1:v]format=pix_fmts=yuva420p,\ fade=t=in:st=0:d=1:alpha=1,setpts=PTS-STARTPTS+9/TB[v1];\ [1:a]\ afade=t=in:st=0:d=1,asetpts=PTS-STARTPTS+9/TB[a1];\ [a0][a1]amix=inputs=2;\  [2:v]scale=720x406,trim=duration=19[over];\ [over][v0]overlay[over1];\ [over1][v1]overlay=format=yuv420[outv]" -vcodec libx264 -y -map [outv] final.ts` How do I boot from ISO file stored on hard disk? Continuously invertible operators Several badge descriptions contain raw HTML I was reading through some badge descriptions and noticed that Synonymizer's description needs to be updated. As it stands, there is raw HTML (an href) in the description:    EDIT: after reading comments by @ColeJohnson, I have come to the understanding that this post comes off as whiny. I want to make it very clear that I wasn't ever trying to complain. My first reaction was to fix the perceived error myself. When I realized I was unable to do so, I figured the best course of action would be to find someone who would be able to make the necessary edits. Hence the post here. How can metagaming retries on poor skill checks be prevented? I'm sure every DM has had this happen: one PC is trying to find something cool on a dead monster's body. The player rolls poorly, and instead of accepting the paltry 2 copper pieces, the PC calls all the party members over to also try looting the corpse. Invariably, a different player rolls well, and everyone walks away satisfied that everything's been taken down to the poor dead monster's last holey sock.   Another example: One PC is trying to find some useful information in a library. There're no guards, no reason anyone would be bothered, and no time restraints to stress about. The player rolls poorly, so all the other PCs try, too.  I'd describe this as well-intentioned metagaming. The players are afraid of losing out on content, this despite multiple sessions of me making it clear that I don't structure my games to penalize gameplay that way.  These are situations that require a roll to determine the degree of success. (At least I think so; perhaps I'm wrong here?) Failure could set back the PCs a cool item or a bit of information that would have helped a little, but these minor failures aren't game-enders or anything. As a DM I can't see a reason to say "No" and disallow the practice, but it feels vaguely like cheating to let the players roll multiple times to get better results.  How do I prevent players ganging up on skill checks after they've seen someone roll poorly? How to upgrade from 18.10 to 19.10, using the command line? I'm trying to upgrade from 18.10 to 19.10, using sudo do-release-upgrade however I only get an error: An upgrade from 'cosmic' to 'eoan' is not supported with this tool. I performed the steps to update my sources.list to point to old-release server, as suggested here:  This did not help. I get the same error. Optimizing a screenshot for adding in a document and printing Just wondering if someone can give me an explanation for this capacitor layout - what is it's function? The chip to the right is an ADC.  Circled in blue.    I'm guessing it is well known but i don't know how to search for it.