I have to create system variable in Windows through calling CMD.Exe. I try : cmd.exe /C maVar=maVal  Saddly, no maVar is created. If i open CMD.Exe and type : maVar=maVal  -&gt; maVar is created. Saddly, i have to do it through calling cmd.exe, not launching cmd.exe. Anyone know what is ly mistake ? Thanks
I want to set an environment variable from the command prompt and then be able to access it globally (for instance, I should see it by going to System -> Environment Variables).    When I use the set command, it isn't accessible in a new cmd session.  set NEWVAR=SOMETHING echo %NEWVAR%   Related questions:
Display only relevant reputation points What is the equivalent of Persian idiom "When the reed blooms"? In Persian, we say "When the  blooms" when we want to  express that an event:   Never happens. (This is only the opinion of the speaker so it's not a fact) It's very unlikely to happen. It's going to take so long to actually happen. (It's so long that you'd be better off giving up expecting it)  3.1. We also use it when someone is always postponing something they have to do so you never actually see it happen.   For example:      Kyle: When are you going to pay my money back?      Cartman: When the  blooms.   Now I don't know if I got the plant's name right because there are some other versions like:        In any event, they have mentioned this plant in the idiom because apparently some versions of it actually never bloom. Others believe it's because farmers harvest them before they get the chance to bloom (e.g to make music instruments), so it never happens. I'd love to know the equivalent idioms or expressions for this.  PS: I only know "When pigs fly" but I'm not a fan of it because the word pig sounds a bit rude to me and partly because it implies a strong impossibility which doesn't work for the #3 use. What did Hisoka do in the Hunter Exam? In the first Hunter Exam of the series (Hisoka's second),  was introduced into the series removing another applicant's arms from his body for bumping into him and not apologizing.    What did he actually do? We know Hisoka's abilities are Bungee Gum and Texture Surprise, but they don't explain how the arms are converting into flower petals as seen above. I am working to build a reinforcement agent with DQN. The agent would be able to place buy and sell orders for a day trading purpose. I am facing a little problem with that project. The question is "how to tell the agent to maximize the profit and avoid the transaction where the profit is less than 100$".  I want to maximize the profit inside a trading day and avoid to place the pair (limit buy order, limit sell order) if the profit on that transaction is less than 100$. The idea here is to avoid the little noisy movements. Instead, I prefer long beautiful profitable movements. Be aware that I thought using the "Profit &amp; Loss" as the reward.  "I want the minimal profit per transaction to be 100$" ==> It seems this is not something that is enforceable. I can train the agent to maximize profit per transaction, but how that profit is cannot be ensured.  At the beginning, I wanted to tell the agent, if the profit of a transaction is 50 dollars, I will remove 100 dollars, then It becomes a penalty of 50 dollars for the agent. I thought it was a great way to tell the agent to not place a limit buy order if you are not sure it will give us a minimal profit of 100$. It seems that all I would be doing there is simply shifting the value of the reward. The agent only cares about maximizing the sum of rewards and not taking care of individual transactions.   How to tell the agent to maximize the profit and avoid the transaction where the profit is less than 100$? With that strategy, what guarantee that the agent will never make a buy/sell decision that results in less than 100 dollars profit? Does the sum of reward - # transaction * 100 can be a solution? What's the difference between an argument and a parameter? When verbally talking about methods, I'm never sure whether to use the word argument or parameter or something else. Either way the other people know what I mean, but what's correct, and what's the history of the terms?  I'm a C# programmer, but I also wonder whether people use different terms in different languages.  For the record I'm self-taught without a background in Computer Science. (Please don't tell me to read  because I'm asking this for the benefit of other people who don't already have a copy of 's marvellous book.)  Summary  The general consensus seems to be that it's OK to use these terms interchangeably in a team environment. Except perhaps when you're defining the precise terminology; then you can also use "formal argument/parameter" and "actual argument/parameter" to disambiguate. A weaker Axiom of Infinity? How can I stop Nautilus from dereferencing symlinks? I use symbolic links to tidy my home folder. This works well in the terminal, since the links create the illusion of normal folders:    In Nautilus, however, the links behave more like , immediately teleporting me to their target:    This is particularly troubling when¹ I later want to navigate "up" to the parent folder, as it strands me somewhere outside of the tree I've carefully tidied.  How can I make Nautilus show symbolic links as normal folders, like the terminal does?  Details   Nautilus did not dereference symlinks in Ubuntu 12.10:   Maybe this new behavior is just a bug? I'm not sure how to tell. Here's what I know:   It's not on the . I've skimmed the  and didn't see anything related. The Nautilus mailing list archive . I received no response from about 120 idlers when posing the question on the GNOME IRC channel. A change was made in Nautilus 3.6 to .  ¹ This is an example. A workaround for this particular scenario does not constitute an answer to my question. Since people seem to be interested in discussing it, though:   Using the Back button is not a suitable workaround; it does not always take me to the parent folder. You can navigate up by pressing Alt+Up. The desired behavior in this example is for "up" to navigate to the parent folder of the symbolic link. The current behavior is to navigate to the parent folder of the target of the symbolic link. Prove that for each $n$, there exist $n$ consecutive integers, each of which is divisible by a perfect square larger than $1$. Why upload rates are lower than download rates in normal internet connections? Can anyone help me out with how to make Bing Picture to my Desktop Wallpaper?    So it works by downloading the highest quality of todays picture. Then storing it ex in the Picture folder of your account. After that automatically changing the picture itself.  It should continue the same everyday without hassle in the background.  Probably something I have to add in the Startup Applications. Any differences between Ubuntu versions?    -Do I have to write a script?  This would be appreciated by many others too! Thank You in Advance :) L1 regression estimates median whereas L2 regression estimates mean? Why does parameter expansion with spaces without quotes work inside double brackets "[[" but not inside single brackets "["? I'm confused with using single or double brackets. Look at this code:  dir="/home/mazimi/VirtualBox VMs"  if [[ -d ${dir} ]]; then     echo "yep" fi   It works perfectly although the string contains a space. But when I change it to single bracket:  dir="/home/mazimi/VirtualBox VMs"  if [ -d ${dir} ]; then     echo "yep" fi   It says:  ./script.sh: line 5: [: /home/mazimi/VirtualBox: binary operator expected   When I change it to:  dir="/home/mazimi/VirtualBox VMs"  if [ -d "${dir}" ]; then     echo "yep" fi   It works fine. Can someone explain what is happening? When should I assign double quotes around variables like "${var}" to prevent problems caused by spaces? Where can I find the source code for the Ubuntu Kernel? I'd like to build my own copy of the Ubuntu kernel. Where can I get the source code? Has any Dark Force user/ally ever said "May the Force be with you"? Today I was going through my text book exercise and got hold of the following question.     Let $X$ be a normed linear space with norm $\lVert\cdot\rVert$ and $A$ is a non empty convex subset of $X$ then prove that $\operatorname{Closure}(A)$ is also a convex subset of $X$.   I gave it a try but could not succeed. The Wikipedia article on  mentions two methods of sampling "small" polynomials namely uniform sampling and discrete Gaussian sampling. Uniform sampling is clearly the simplest, involving simply uniformly selecting the coefficients from the set of small coefficients, thereby guaranteeing they will be small. However, the articles mention that security proofs rely on discrete Gaussian sampling.  However, I have a bit of difficulty wrapping my head around    Why discrete Gaussian sampling would be better than uniform, security-wise?   I mean, usually uniform is preferable - it maximizes the entropy/information in each sample, making the outcome more unpredictable. I could understand it if the Gaussian sampling technique would somehow serve to avoid (at least with high probability) "weak" parts of the space of outcomes but I have found no information/justification that this is the case.  Another reason I can see why discrete Gaussian might be better is that there is, after all, a chance (albeit a small one) one would select a non-small coefficient, so the space of outcomes is actually larger. However, given that this probability of hitting this extra space is (by design) quite small but also that one would likely immediately reject such a sample (because the algorithm calls for a small polynomial), this seems to be irrelevant.  It is not because I am against discrete Gaussian sampling I just want to understand why it is more secure. Also, I want to understand if it really IS more secure or it is simply easier to prove security in that model. I would actually consider that very interesting if it is the case because it raises the question of why is it easier to prove the security under conditions that are intuitively worse (i.e. discrete Gaussian vs the intuitively better uniform case)? If it is so intuitively clear that uniform sampling is better, surely it must be possible to transform that intuition into a security proof of RWE also under uniform sampling. Otherwise, I would fear the intuition must with high likelihood be wrong or at least dubious. Objects vs arrays in Javascript for key/value pairs Compiling PHP 5.1.6 with PDO MySQL Most efficient way to check for DBNull and then assign to a variable? Where can I find sugar cane? I played several hours a started three different worlds in Minecraft, but I have never found any sugar canes. I read on Minecraft wiki to search near water but still no luck. Do you have more hints? Is it possible to re-create an environment that allow sugar canes to naturally grow?