environment

Java beginner web-development toolkit/environment

夙愿已清 提交于 2019-12-02 17:20:52
I have been tasked to develop an interactive website using java & mysql: using servlets to retrieve & massage data, applets to do special handling of the data client-side, and to handle requests from the client for different data views. What would you recommend as an proper general-purpose toolkit/environment for web development using java. I need to know what to use for the following: Server side (tomcat?/?) CMS Editor / IDE General tools/utilities Directed (special purpose) tools/utilities Testing and QA tools/utilities/techniques Reference material (both on- & off-line) Please evaluate the

How to use seed.rb to selectively populate development and/or production databases?

三世轮回 提交于 2019-12-02 15:24:01
I am using seed.rb to populate both my development and production database. I usually populate the first with dummy data and the latter with the real minimal data that my app needs to run (e.g. the first user and so on). How can I specify in seed.rb for what environment each data is? Given that I know "group" to be a Gemfile method, I'd like to achieve the same behavior for seed.rb. E.g. I'd like to write something like this in my seed.rb: group :development do # development specific seeding code end group :production do # production specific seeding code end # non-specific seeding code (it

mysqli_fetch_assoc() expects parameter / Call to a member function bind_param() errors. How to get the actual mysql error and fix it?

夙愿已清 提交于 2019-12-02 11:34:59
In my local/development environment, the MySQLi query is performing OK. However, when I upload it on my web host environment, I get this error: Fatal error: Call to a member function bind_param() on a non-object in... Here is the code: global $mysqli; $stmt = $mysqli->prepare("SELECT id, description FROM tbl_page_answer_category WHERE cur_own_id = ?"); $stmt->bind_param('i', $cur_id); $stmt->execute(); $stmt->bind_result($uid, $desc); To check my query, I tried to execute the query via control panel phpMyAdmin and the result is OK. Sometimes your mysqli code produces an error like mysqli_fetch

values not being copied to the next (local) environment?

我的未来我决定 提交于 2019-12-02 11:25:50
问题 Consider this output from browser() that is located inside calcDistance : Called from: calcDistance(object = rst, xy = xy[[i]][j, ], effect.distance = effect.distance) Browse[1]> ls.str() effect.distance : num 236 object : Formal class 'RasterLayer' [package "raster"] with 12 slots xy : Named num [1:2] -101.8 35.5 Browse[1]> debugging in: xyValues(object = object, xy = xy, buffer = effect.distance) debug: standardGeneric("xyValues") Browse[2]> ls.str() object : Formal class 'RasterLayer'

windows batch command for loop set environment variable

混江龙づ霸主 提交于 2019-12-02 10:17:05
I'm trying to find a way to dynamically build en environment variable that contains a list of JAR files under my app's WEB-INF/lib folder. This is what I have so far, but it's over-writing itself each time, so when you reach the end of the loop, you just have the last file from the loop set in the variable. SETLOCAL ENABLEDELAYEDEXPANSION for %%f IN (WEB-INF/lib/*.jar) DO ( SET JAR_LIST=%JAR_LIST%;%%f ) ECHO JAR_LIST -- %JAR_LIST% So this produces... C:\apache\Tomcat6.0\webapps\myapp>(SET JAR_LIST=.;xsltcbrazil.jar ) C:\apache\Tomcat6.0\webapps\myapp>(SET JAR_LIST=.;xsltcejb.jar ) C:\apache

restore PATH under Mac OS X [duplicate]

喜欢而已 提交于 2019-12-02 10:16:27
This question already has an answer here: How to restore .bash_profile on a mac? None of my unix terminal are working [closed] 1 answer Hi guys I tried to add new directory to the PATH, but instead appending I overwrote it. Is there any way to restore those default paths? If you changed your PATH in a Terminal shell, simply close that Terminal window and open a new one. Changes to environment variables are local to the shell in which you change them (and any subshells created by that one). Just restart your terminal that will assign variables based on your .profile or .bashrc ( if you are

Best way to set environment variables in calling shell

て烟熏妆下的殇ゞ 提交于 2019-12-02 05:43:40
问题 I'm writing a utility that needs to be able to set and use context. I'd like it to use environment variables in the shell so that it can remember what context it's currently in between invocations. Ideally, I'd like to set this environment variable from within the utility itself. Something like: mytool set-context <context> mytool do-stuff # Aware of <context> I'd like this to behave like: export MYTOOL_CONTEXT=<context> mytool do-stuff # Aware of <context> Now, it's not actually possible for

TERM environment variable not set on mac

限于喜欢 提交于 2019-12-02 05:24:46
问题 I keep on getting the "TERM environment variable not set." error when I work with svn commands on my Mac terminal. I thought I had set up my profile by doing: export SVN_EDITOR=/usr/bin/nano export EDITOR=/usr/bin/nano in .profile and .bash_profile, reset the terminal and it still gives me that error. Any help? 回答1: Add this to your profile: export TERM=xterm-color 来源: https://stackoverflow.com/questions/3911574/term-environment-variable-not-set-on-mac

values not being copied to the next (local) environment?

拈花ヽ惹草 提交于 2019-12-02 03:29:17
Consider this output from browser() that is located inside calcDistance : Called from: calcDistance(object = rst, xy = xy[[i]][j, ], effect.distance = effect.distance) Browse[1]> ls.str() effect.distance : num 236 object : Formal class 'RasterLayer' [package "raster"] with 12 slots xy : Named num [1:2] -101.8 35.5 Browse[1]> debugging in: xyValues(object = object, xy = xy, buffer = effect.distance) debug: standardGeneric("xyValues") Browse[2]> ls.str() object : Formal class 'RasterLayer' [package "raster"] with 12 slots xy : Named num [1:2] -101.8 35.5 Functions are as follows: simulationRun >

Environments in R, mapply and get

﹥>﹥吖頭↗ 提交于 2019-12-02 02:57:08
Let x<-2 in the global env: x <-2 x [1] 2 Let a be a function that defines another x locally and uses get : a<-function(){ x<-1 get("x") } This function correctly gets x from the local enviroment: a() [1] 1 Now let's define a function b as below, that uses mapply with get : b<-function(){ x<-1 mapply(get,"x") } If I call b , it seems that mapply makes get not search the function environment first. Instead, it tries to get x directly form the global enviroment, and if x is not defined in the global env, it gives an error message: b() x 2 rm(x) b() Error in (function (x, pos = -1L, envir = as