Questions tagged [environment]

The O/S in which a process is executed, especially settings that affect the process

A computing environment consists of the following items:

  • Server hardware
  • Operating system
  • Software (both the software being used, and supporting software, such as and )
  • Data (input/output) from the software
  • Environment settings, such as executable PATH search directories

Commonly, for software development there are three main groups of environments:

2804 questions
1
vote
3 answers

Codeigniter on Ubuntu no welcome message

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…
Cisum Inas
  • 11,552
  • 11
  • 40
  • 55
1
vote
1 answer

Rails production datebase error 500 (no such table)

I`m sad, because I get an error 500 when try to start my rails app in production environment (in development - works fine) logs ... E, [2013-11-23T13:06:45.285466 #5951] ERROR -- : SQLite3::SQLException: no such table: posts: SELECT "posts".*…
1
vote
2 answers

How to set up environment variable for PHP to access in centos?

I need to set an environment variable in a way that a PHP script is able to access it my system is Centos 6, 64 bits , with Apache server and PHP Basically I'm using a third party linux library that uses xulrunner. Xulrunner is installed on a folder…
1
vote
0 answers

send file with python-requests

I'm doing pretty simple thing - get file from client and send it to process to another server: import requests import logging logger = logging.getLogger(__name__) data = request.environ['wsgi.input'].read() url = request.cfg.DOC_PARSE_URL params…
shiberz
  • 84
  • 5
1
vote
2 answers

Chef: How to use different OS default users based on environment (Vagrant, EC2)?

I am writing a cookbook which will be run on Ubuntu. It will create a directory in home of the default user. directory "/home//my-directory" do owner end The problem is, this default user is different across…
Tung Nguyen
  • 1,874
  • 3
  • 18
  • 28
1
vote
1 answer

Where should I put functions so they are sourced during non-interactive ssh session?

I have a function that needs to be sourced when I connect with my server in a non-interactive shell but it seems that no place fits. I would like to be able to do this ssh user@remote.com 'my_function' I read Why does an SSH remote command get…
bjorgvin
  • 103
  • 10
1
vote
3 answers

Hudson ERROR: M2_HOME is set to an invalid directory

I am using a computer with Windows 7, and I have Hudson installed on it. I have had this installation for a while, and it has been working fine up till now. Something has changed. Now, whenever I try to build a project, after successfully checking…
James Dunn
  • 8,064
  • 13
  • 53
  • 87
1
vote
3 answers

Running a website from an encrypted partition

I am looking at the possibility of running a PHP-based website (built in symfony) from an encrypted partition on a LAMP server. The reason for this is because a client would have access to the server but I don't want them to see the source code…
JB Lesage
  • 81
  • 1
  • 9
1
vote
1 answer

How to avoid nested function definitions and still use <<- operator

Suppose I have these two functions: fInner<-function() { # Do some complicated stuff, and... I<<-I+1 } fOuter<-function() { I<-0 fInner() print(I) } Calling fOuter() produces an error: Error in fInner() : object 'I' not found. I…
Adam Ryczkowski
  • 7,592
  • 13
  • 42
  • 68
1
vote
1 answer

Having trouble setting an environment variable for apache on Mac

I need to set an environment variable on my Mac so when Apache is run, and PHP/PDO loads the pdo_informix driver, it knows the location of the Informix Home directory. And I really have tired everything! In /usr/sbin/envvars I have added: export…
1
vote
0 answers

R - evaluate nested function call in a deserialized environment

I am trying to run an already existing chunk of R code in a sandbox-ed fashion, by saving the global environment (containing functions and data) to a file, then loading it into a new environment (not the global environment) and evaluating a function…
ytsaig
  • 3,267
  • 3
  • 23
  • 27
1
vote
1 answer

Powershell - Replace XML content with an environment variable

First, excuse my poor english :) I've a little headache with the syntax of Get-Content -Replace My code is : (Get-Content $env:HIS_XMLPATH) -replace '(.*?)', '$env:HIS_PWD' | Set-Content C:\test.xml And…
1
vote
4 answers

multithreaded environment in c

I'm just trying to get my head around multithreading environments, specifically how you would implement a cooperative one in c (on an AVR, but out of interest I would like to keep this general). My problem comes with the thread switch itself: I'm…
jayjay
  • 1,017
  • 1
  • 11
  • 23
1
vote
1 answer

Adding mahout to path in Ubuntu

I am working in Ubuntu 12.04. I'm a little unsure on what I've done here. About a month ago I downloaded hadoop from Apache's mirrors and just extracted it into usr/local/hadoop. I also installed mahout via maven, to /opt/mahout. In .bash_profile I…
efx
  • 175
  • 1
  • 14
1
vote
1 answer

Taking snapshot of ruby environment

Is there a way in ruby to store the present (runtime ) environment in Ruby so that I can load from another program and "pick up where I left off?"
1 2 3
99
100