Why does zookeeper not use my log4j.properties file log directory

I wanted to add how I fixed this problem / customized my environment. There are 2 logging mechanisms working here: bin/zkServer.sh redirects the zookeeper server’s stdout and stderr to zookeeper.out log4j can append to logs to several places including: CONSOLE – which ends up in zookeeper server’s stdout and stderr ROLLINGFILE – which is sent … Read more

Launch mac eclipse with environment variables set

There is an alternate solution which involves replacing the executable that is run by MacOS X when the user launches the Eclipse application with a shell wrapper that sets up the environment. Create an empty text file called “eclipse.sh” in the Eclipse application bundle directory /Applications/eclipse/Eclipse.app/Contents/MacOS. Open the eclipse.sh in a text editor an enter … Read more

How to disable ActionMailer in Development?

It’s common practice to just let Rails ignore the mail errors. In your config/environments/development.rb file add, uncomment or modify: # Don’t care if the mailer can’t send config.action_mailer.raise_delivery_errors = false You can also set this: config.action_mailer.perform_deliveries = false See the documentation here http://edgeguides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration You can also set the delivery method to :test, but I have … Read more

JAVA_HOME does not point to the JDK

Make JAVA_HOME variable point to a jdk installation, not jre. You are referencing the runtime environment, not the development kit – it can’t find the compiler because its not there. From the line you posted, which states you have open-jdk you can just remove the jre at end: export JAVA_HOME=’/usr/lib/jvm/java-6-openjdk/’

What is the difference between “system32\java.exe” and “Program Files\Java\jdk1.6.0_33\bin\java.exe”?

Setting the PATHvariable is just so that you can get access to javac and the other programs and tools in the jdk bin folder. The java.exe in \windows\system32\ is provided so that not everyone needs to set a PATH variable just to run a java program (from the command line) and selects a version (the … Read more

Invalid syntax with setx

Your path to the Ogre SDK has a space character in it, which is interpreted as a delimiter to another argument. Surround your path with ” to keep it as one single argument to setx: setx OGRE_HOME “D:\Program Files\OgreSDK” To see the current value of the OGRE_HOME environment variable: echo %OGRE_HOME% You may have to … Read more

How do I view my environment variables?

Printing the Environment from the Shell As other answers have pointed out, one can use /usr/bin/env or /usr/bin/printenv from the command line to see what the environment is in the shell before starting Rails, or in a subshell after starting it. For example: rails s RETURN CTRL-Z env RETURN fg RETURN Displaying ENV from the … Read more

Variables are not behaving as expected

You are not the first, who fell into the famous “delayed expansion trap” (and you won’t be the last). You need delayed expansion if you want to use a variable, that you changed in the same block (a block is a series of commands within parentheses (and )). Delayed variables are referenced with !var! instead … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)