environment

VS2013: “VSP2340: Environment variables were not properly set” even when running from IDE

我们两清 提交于 2019-11-30 05:21:20
问题 I am profiling a C# program from Visual Studio 2013. I go to Analyze -> Performance and Diagnostics to start the wizard. It gives me a choice of profiling method. If I choose the default, CPU sampling, then profiling works and I can see the results. However if I choose the third option, .NET memory allocation, then after my application has finished I see empty results and this error in the Visual Studio output window: VSP2340: Environment variables were not properly set during profiling run

Spring class EnvironmentCapable

走远了吗. 提交于 2019-11-30 03:54:21
问题 I received run-time error for string ApplicationContext context = new ClassPathXmlApplicationContext("Beans.xml"); java.lang.NoClassDefFoundError: org/springframework/core/env/EnvironmentCapable I have checked jar org.springframework.core-3.0.4.RELEASE.jar and doesnt' found this class. In which package this class? Thanks. 回答1: I think that need use version 3.1.0 - in package org.springframework.core-3.1.0.M2.jar this class presents. 回答2: That's a Spring 3.1 (still a milestone release) class.

How to pass the -D additional parameter while starting tomcat?

☆樱花仙子☆ 提交于 2019-11-30 03:09:08
I have a maven project, after running command mvn install all project as well as module compile and copied to local repository successfully. But now I want to run the generated web application in tomcat6. Client provided some parameter for tomcat like -Dapp.username,-Dapp.username, which will be used internally once project will start.ButI do not know how to set these additional parameter in tomcat6. Below is my development environment OS = Windows Tomcat = tomcat 6.0.27 Please help me? You can set an environment variable to do that. E.g. in Linux: export JAVA_OPTS="-Dapp.username -Dapp

Run a command line with custom environment

﹥>﹥吖頭↗ 提交于 2019-11-30 01:18:04
问题 In Ruby, I want to be able to: run a command line (via shell) capture both stdout and stderr (preferably as single stream) without using >2&1 (which fails for some commands here) run with additional enviornment variables (without modifying the environment of the ruby program itself) I learned that Open3 allows me to do 1 and 2. cmd = 'a_prog --arg ... --arg2 ...' Open3.popen3("#{cmd}") { |i,o,e| output = o.read() error = e.read() # FIXME: don't want to *separate out* stderr like this repr = "

Saving a single object within a function in R: RData file size is very large

一世执手 提交于 2019-11-29 23:55:45
问题 I am trying to save trimmed-down GLM objects in R (i.e. with all the "non-essential" characteristics set to NULL e.g. residuals, prior.weights, qr$qr). As an example, looking at the smallest object that I need to do this with: print(object.size(glmObject)) 168992 bytes save(glmObject, "FileName.RData") Assigning this object in the global environment and saving leads to an RData file of about 6KB. However, I effectively need to create and save the glm object within a function, which is in

Does php have an equivalent to python's virtualenv or ruby's sandbox?

∥☆過路亽.° 提交于 2019-11-29 23:33:47
I'm used to using python's virtualenv tool to create separate environments that can mimic deployment environments for projects I write. Now, I'm going to be working on a php project and I'm wondering if there's any equivalent to that? Specifically I'm hoping to be able to run one virtualhost on apache with one (older) version of php, while everything else runs on the normal up to date version. My development machine is running ubuntu 11.04, so solutions that work on that platform would be preferred. Assuming that you are using mod_php, there is no way to load multiple different versions into

How to use an environment variable inside a quoted string in Bash

爷,独闯天下 提交于 2019-11-29 21:59:58
I've tried various forms of the following in a bash script: #!/bin/bash svn diff $@ --diff-cmd /usr/bin/diff -x "-y -w -p -W $COLUMNS" But I can't get the syntax to correctly expand the COLUMNS environment variable. I've tried various forms of the following: svn diff $@ --diff-cmd /usr/bin/diff -x '-y -w -p -W $COLUMNS' and svn diff $@ --diff-cmd /usr/bin/diff -x '-y -w -p -W ${COLUMNS}' and eval svn diff $@ --diff-cmd /usr/bin/diff -x "-y -w -p -W $COLUMNS" Suggestions? If unsure, you might use the 'cols' request on the terminal, and forget COLUMNS: COLS=$(tput cols) Just a quick note/summary

Codeigniter on Ubuntu no welcome message

一笑奈何 提交于 2019-11-29 16:58:19
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". I have tried to re-download and "reinstall" CodeIgniter. Guys I really could use your help I don't

Problems with umlauts in python appdata environvent variable

纵然是瞬间 提交于 2019-11-29 14:39:56
问题 I can't find a correct way to get the environment variable for the appdata path in python. The problem is that my user name includes special characters (the german ae and ue). I made a workaround wit PyQt for Vista and Windows 7 but it doesn't work for XP Systems. Does anybody know the correct encoding of these environment variables or another solution for this problem? 回答1: As Mike says, you can get the system codepage from getfilesystemencoding . This encoding is used to convert Windows's

How are CMake execute_process commands run?

筅森魡賤 提交于 2019-11-29 13:15:16
I've got the following lines in my CMakeLists.txt file. I'm running CMake 3.5.2 on Windows 7, and using Visual Studio 12 2013 as the generator with "Use default native compilers" checked in the gui. find_path(FORTRAN_DIR NAMES cdll.cpp fdll.f90 Makefile PATHS ../source) execute_process(COMMAND make WORKING_DIRECTORY ${FORTRAN_DIR}) This runs just fine. But exactly how is it being run?? It's on Windows! I've compiled the Makefile via MSYS2 (MinGW) on Windows before, but if that's what CMake is using, then I'm not sure how it knows to do that. Edit: I put execute_process(COMMAND uname -a) into