environment-variables

Numba environment variable not set through .numba_config.yaml [duplicate]

倾然丶 夕夏残阳落幕 提交于 2019-12-25 03:37:36
问题 This question already has answers here : How to access environment variable values? (10 answers) Closed 12 months ago . Some environment variables can be set for numba, as specified in the doc: https://numba.pydata.org/numba-doc/dev/reference/envvars.html However, launching a python shell in the same folder, I cannot see the variable in os.environ : In [1]: !cat .numba_config.yaml warnings: 1 In [2]: import os; os.environ["NUMBA_WARNINGS"] -----------------------------------------------------

npm failing right after installing Node.js

老子叫甜甜 提交于 2019-12-25 02:59:18
问题 I'm working on an installer which automates the installation of Node.js, extracts a node application to a folder, and then installs it via npm install . However, the installer always needs to be run twice in order for npm to work. This is installing onto Windows. During the lifetime of my installer app... If Node.js wasn't already installed, it gets installed In the same process, steps later, npm install is executed If Node.js didn't already exist before installer started, it fails saying npm

Maven Help, mvn is not recognized as an internal/external command

柔情痞子 提交于 2019-12-25 02:25:50
问题 My System variables are: > set PATH > %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program > Files\Java\jdk1.8.0_05\bin;M2_HOME=C:\Program Files\Apache Software > Foundation\apache-maven-3.2.1;M2=C:\Program Files\Apache Software > Foundation\apache-maven-3.2.1\bin;MAVEN_OPTS=-Xms256m -Xmx512m and my System Variables are: C:\Program Files\Java\jre8\bin;C:\Program Files\Apache Software Foundation\apache-maven-3.2.1 EDIT: Can

How can I tell vim where my _vimrc and plugins are

江枫思渺然 提交于 2019-12-25 01:48:52
问题 At work I have gvim installed in C:/Program Files/vim but have no write permission on this folder. I would like vim to use my personal _vimrc and potentially some addins that would be in a bundle directory. Problem is that vim choose the default _vimrc in C:/... What can I do to fix my problem, I was thinking of a script but I can't manage in writing one that work... ? EDIT: Off course I do not have admin rights 回答1: Your configuration belongs in %HOME% (or %USERPROFILE% if the former isn't

xelatex fails unless I re-set PATH to what it already is

China☆狼群 提交于 2019-12-25 01:15:09
问题 I have this PHP script: echo '--- getenv: ' . getenv('PATH') . "\n"; echo '--- echo PATH: ' . shell_exec('echo $PATH') . "\n"; echo '--- xelatex: ' . shell_exec('xelatex 2>&1') . "\n"; putenv('PATH='.trim(shell_exec('echo $PATH'))); echo '--- getenv: ' . getenv('PATH') . "\n"; echo '--- echo PATH: ' . shell_exec('echo $PATH') . "\n"; echo '--- xelatex: ' . shell_exec('xelatex 2>&1') . "\n"; Run from a php-fpm process (with clear_env = yes), it produces the following output: --- getenv: ---

Where is `USERPROFILE` on Vista32?

故事扮演 提交于 2019-12-25 00:43:22
问题 This is a follow-up question to Where are my environment variables set?. In that post it's mentioned how one can find environment variables using the Windows GUI or RegEdit. What's strange to me is that SET from the command line displays a USERPROFILE=C:\Users\brianjd but it doesn't show up using the Windows GUI or RegEdit methods. Q: Where is USERPROFILE ? Why does it show up using SET but doesn't show up using Windows GUI or RegEdit? 回答1: I think you may find what you need in HKLM\SOFTWARE

Externalize configuration Akka

随声附和 提交于 2019-12-25 00:13:52
问题 I am new in Akka and I faced the problem below. I want to externalize the configuration in my App. More specifically, I have some variables that are different per each environment. So I think that I can have specific environment variables (secrets, etc) for each environment. But what I can do with some variables (non-secrets) which are different per each environment? What is the difference between, dev.properties , application.conf , deploy.json files? What is the proper way to load variables

Entity Framework : Set MySQL custom environment variables

可紊 提交于 2019-12-24 22:32:21
问题 I have an issue with Entity Framework 5.0. I'm working with Silverlight 5 and MySQL 5.6 too. I need to set an environment MySQL variable before each connexion to the MySQL server. E.g SET @my_var = 'test'; Under Mysql I don't have any issues. The following raises an EntityFrameworkException (syntax error near '@'). this.ObjectContext.CreateQuery<object>(" SET @my_var = 'test' "); OR this.ObjectContext.CreateQuery<object>(" CALL set_my_var('test') "); This last method raises a MySQLException

How can I use environment variables in body of a curl PUT request?

£可爱£侵袭症+ 提交于 2019-12-24 20:30:08
问题 I want to do a curl request which uses environment variables in the body: curl -XPUT http://${HOST}/create -d'{"user":"${USER}"}' In this request, ${HOST} is correctly replaced by the environment variable, but ${USER} is not. How can I replace ${USER} as well? 回答1: Shell parameter expansion doesn't take place within single quotes. You can close the single quotes and start new double-quotes for the expansion: curl -XPUT http://${HOST}/create -d'{"user":"'"${USER}"'"}' Or you could use double

SASS conditional imports based on env variables using webpack (to use different themes per environment)

*爱你&永不变心* 提交于 2019-12-24 18:31:47
问题 For my Vue website project using a single style sheet generated using Webpack from SASS I want to have: Conditional SASS imports based on an env variable EXAMPLE SETUP: .env : So for instance if I have an env containing: SASS_THEME="soft" soft.scss : A SASS theme file containing something like: $color-alpha: #e5e5e5; main.scss : A main sass file looking something like: // Import theme variables here @import '${SASS_THEME}'; body{ background: $color-alpha; } 回答1: You can use webpack aliases.