environment

How to generate .env file for laravel?

元气小坏坏 提交于 2019-11-28 19:57:43
问题 From the documentation I see it's possible to create a laravel project via laravel installer: $laravel new blog or via composer: $composer create-project laravel/laravel --prefer-dist If I try the first way .env file is not created. How can I ask laravel,artisan or composer to create a .env file for me? 回答1: I had this problem of no .env files showing up in the project. Turns out the IDE I was using (Netbeans, try not to judge) will show certain types of .hidden files but not all. After

How to get virtualenv to use dist-packages on Ubuntu?

风流意气都作罢 提交于 2019-11-28 19:34:46
I know that virtualenv, if not passed the --no-site-packages argument when creating a new virtual environment, will link the packages in /usr/local/lib/python2.7/site-packages (for Python 2.7) with a newly-created virtual environment. On Ubuntu 12.04 LTS, I have three locations where Python 2.7 packages can be installed (using the default, Ubuntu-supplied Python 2.7 installation): /usr/lib/python2.7/dist-packages : this has my global installation of ipython, scipy, numpy, matplotlib – packages that I would find difficult and time-consuming to install individually (and all their dependences) if

No 'server' JVM at '…'

ⅰ亾dé卋堺 提交于 2019-11-28 19:18:51
I'm running a java application that we distribute as a server-side system. I'm trying to write a launcher ("write" is somewhat of an overstatement here, I'm basically just copying the Java.exe file so that we can get the desired name in the process explorer of windows). This exe is in our bin/ directory of our application file tree. Now, we also have a jre/ directory in our file tree, which is where Java.exe actually resides (we ship our product with the Java environment). When I use Java.exe as the launcher, which is located in \jre\jre1.6.0_21\bin, or if I place the copy (call this

Selenium and Headless Environment

这一生的挚爱 提交于 2019-11-28 17:39:15
I recently installed Python 2.7, Robot Framework and the Selenium Library (I still don't know if I succeeded though...) on a Red Hat Server to run some test on a web application. So I tried a simple test case using Robot Framework to see if Selenium Library is functional, just to Open a web page, nothing more... Selenium Server is up and running according to the result of ps, and Firefox binaries are in the PATH... Running the test case from the Robot Framework (with the pybot testcasename.tsv) I get an exception: ERROR: Problem capturing a screenshot to string: java.awt.AWTException: headless

How to find the path of the local git repository when I am possibly in a subdirectory [duplicate]

好久不见. 提交于 2019-11-28 16:03:11
This question already has an answer here: Is there a way to get the git root directory in one command? 22 answers I'm looking for something like git list-path printing the path of the associated repository (the .git directory). A bit of background: I have set up git version control on quite a few of my projects/folders. Some of them are nested, so one directory with echo own repository is a subfolder to another directory tracked with another repository. E.g. in my home directory ( ~ ) I use git to track my dot files, but in folder ~/photo/meta-mix/ I have another project I track with a

Can you get DB username, pw, database name in Rails?

南楼画角 提交于 2019-11-28 15:21:48
I'm writing a rake task that does some DB work outside of Rails/ActiveRecord. Is there a way to get the DB connection info (host, username, password, DB name) for the current environment as defined in database.yml ? I'd like to get it so I can use it to connect like this... con = Mysql.real_connect("host", "user", "pw", "current_db") Robert Gamble From within rails you can create a configuration object and obtain the necessary information from it: config = Rails.configuration.database_configuration host = config[Rails.env]["host"] database = config[Rails.env]["database"] username = config

What is the use of non-separated anaconda environments?

自作多情 提交于 2019-11-28 14:14:18
I noticed that when a conda environment is created without specifying the python version: conda create --name snowflakes instead of: conda create --name snowflakes python=3.6 the environments are not separated and share the package with the default python interpreter. Thereupon, What is the use of non-separated anaconda environments? EDIT - 20170824: The question has been solved. Actually non-separated environments do not exist. With the first command there is no new Python interpreter installed so that it calls the first that it finds in the PATH being the standard Python interpreter because

“Picked up _JAVA_OPTIONS” when no such environment variable exists

余生长醉 提交于 2019-11-28 12:41:23
This issue pertains specifically to Minecraft, but it is affecting all Java programs that run on my computer. It would seem that something is forcibly setting a _JAVA_OPTIONS environment variable. When I run my server, I have specified to allocate 4 GB of RAM to it with -Xms4G -Xmx4G in the startup batch file. However, when the server runs, It prints "Picked up _JAVA_OPTIONS: -Xms2048M -Xmx2048M" to the console, only allocating 2 GB. I have checked my system settings and there is no _JAVA_OPTIONS environment variable in the list. I do not want to add one, since that will also try to allocate 4

How to read properties file from Jenkins 2.0 pipeline script

…衆ロ難τιáo~ 提交于 2019-11-28 12:01:58
I am attempting to write a pipeline script to use with Jenkins 2.0 to replicate our existing build. This original build used the envInject plugin to read a Java properties file, but I can't see how to do this from the pipeline Groovy script. I have Googled and found the following, but it doesn't work (FileNotFoundException): Properties props = new Properties() File propsFile = new File('./Builder/project.properties') props.load(propsFile.newDataInputStream()) Thanks! Mike Kingsbury I just fought with this yesterday and today. I wish the availability of this was easier to find. Grab the '

Codeigniter on Ubuntu no welcome message

孤街醉人 提交于 2019-11-28 10:33:23
问题 I am trying to run CodeIgniter (2.14) on Ubuntu 13.10. I have put the files in "var/www/CodeIgniter" but when I enter the directory from the browser it does not show any welcome message as it did previously when working with CodeIgniter on Microsoft Windows 7. I have verified that PHP works on the environment with the function phpinfo() - PHP Version 5.5.3-1ubuntu2. The rights for the folder are 755 if that is of any importance. I have tried to set the base URL to http://localhost/"myproject"