Questions tagged [environments]

An Environment consist of the server, operating system, settings and software that a program runs in. It can also refer to a software development setup where software is created.

Execution Environment

Execution environments are generally grouped into three major categories:

Software Development

  • A is an integrated set of programming tools such as compilers, usually centered around a text editor.
  • A is an environment set up to compile groups of code together in a controlled environment with specific settings to product a software product.
70 questions
51
votes
4 answers

Return elements of list as independent objects in global environment

I have a list, and would like to break the elements of the list into seperate objects in the global environment. For example, I would like the list: obj <- list(a=1:5, b=2:10, c=-5:5) to be three seperate objects a, b, and c. I tried to achieve…
ricardo
  • 8,195
  • 7
  • 47
  • 69
21
votes
3 answers

Grails auto reload functionality in run-app on a custom environment

When running a custom environment with grails via grails -Dgrails.env=custom run-app it appears that the auto reload / hot deploy is turned off, does anyone know how to arbitrarily enable this for any given environment, not just dev, which appears…
Eric Bennett
  • 211
  • 1
  • 2
  • 4
15
votes
1 answer

Can you more clearly explain lazy evaluation in R function operators?

If I create a function as follows: what_is_love <- function(f) { function(...) { cat('f is', f, '\n') } } And call it with lapply: funs <- lapply(c('love', 'cherry'), what_is_love) I get unexpected output: > funs[[1]]() f is cherry >…
peterhurford
  • 1,074
  • 1
  • 13
  • 21
13
votes
2 answers

.htaccess in Multiple Environments

I know similar questions have been asked before but I haven't found any really specific answers for my situation. I have an ExpressionEngine site running on multiple environments (local, dev, production), and each of those environments needs…
kmgdev
  • 2,607
  • 28
  • 41
12
votes
2 answers

How to setup environments for Cypress.io

I am taking a swing at setting up a test suite for my company's web app. We use four environments at the time (Production, Regression, Staging, Development). I have environment variables setup in my cypress.json file but I would like to be able to…
Ryan
  • 1,482
  • 2
  • 11
  • 19
11
votes
2 answers

Different environments on Firebase web application

I am building a web application with Firebase. Currently I can say that I do have two stages - development, the firebase serve which runs the localhost and firebase deploy --only hosting which uploads the web application on Firebase hosting.…
11
votes
1 answer

Move a value to a different environment

Suppose I have a value that is large in memory (perhaps a huge matrix). Is there a way to move that value to a different environment instead of copy then delete? The copy/clone approach temporarily increases the memory footprint by the size of the…
Suraj
  • 35,905
  • 47
  • 139
  • 250
10
votes
3 answers

Change default environment in anaconda

By default, anaconda is using my root environment. However, I'm always using another environment called py34 that I activate manually. Is it possible to change the default environment from root to another one? Edit: I forgot to mention that I'm…
user2553692
7
votes
1 answer

variable-scope in R functions

I'd like to specify functions in a flexible way. How can I make sure that the environment of a given function does not change when I create another function just after it. To illustrate, this works properly: make.fn2 <- function(a, b) { fn2 <-…
user3283722
  • 123
  • 7
6
votes
3 answers

Is it possible to change application.css to application.css.sass?

I would like to change my application.css file to a sass file and use @import to pull all the necessary files. Then I want to @import the application.css.sass into page specific sass files. This all works beautifully in development, but when I…
Lee Quarella
  • 4,662
  • 5
  • 43
  • 68
6
votes
2 answers

Symfony - How to set alias for a service using a parameter's value

I want to set an alias for a service in order to be able to use different services in different environments. So, here is the services.yaml . . . register_request: alias: %register_request_service% main_register_request: class:…
A.Alinia
  • 624
  • 6
  • 12
6
votes
2 answers

Heroku using production configuration instead of staging configuration

I'm running two apps on Heroku, one being myapp-production and the other one being myapp-staging. For some reason however, the staging app uses the production environment configuration rather than the staging configuration, which I have defined in…
5
votes
2 answers

R: How make dump.frames() include all variables for later post-mortem debugging with debugger()

I have the following code which provokes an error and writes a dump of all frames using dump.frames() as proposed e. g. by Hadley Wickham: a <- -1 b <- "Hello world!" bad.function <- function(value) { log(value) # the log function…
R Yoda
  • 8,358
  • 2
  • 50
  • 87
5
votes
0 answers

Python Version Discrepancy from Cloning from a Conda Environment

I'm running Ubuntu 16.04 with Anaconda 4.1.1 (64-bit) installed. I'm using a shared machine, and I'm trying to create a few different Conda environments that serve as a "base" environment that can then be cloned by the other users on the machine to…
Kyle
  • 126
  • 1
  • 8
4
votes
3 answers

Can Spring PropertyPlaceholderConfigurer ignore unset properties in a property location path?

I have a Spring-based web application running in a tomcat container and I want to maintain two different configuration files: src/main/resources/default.properties: contains defaults for development, integration tests and when no other properties…
Kim Hagedorn
  • 43
  • 1
  • 4
1
2 3 4 5