Friday, August 10, 2012
Thursday, June 21, 2012
Configure Datanucleus Plugin
1. The MANIFEST.MF must have correct content in MANIFEST.MF tag
3. persistence.xml must have all persistencable classes' correct full class names.
2. For datanucleus enhancer running every time you build, right click on project name, go to properties, Maven-> Lifecycle Mapping, change the two lifecycle to process-test-classes
Friday, May 11, 2012
ZooKeeper-Coprocessor-QuickNote
1. In Coprocessor-start, a call on env.getTable will lead to connection refused error.
To solve this, using HTable constructor HTable(configuration, tableName) instead, configuration is necessary since zookeeper port number is not consistant always.
Remember to call htable.close() after operation to salve resource.
2. look for the thread using port 60010
lsof | grep 60010
Then kill the thread
To solve this, using HTable constructor HTable(configuration, tableName) instead, configuration is necessary since zookeeper port number is not consistant always.
Remember to call htable.close() after operation to salve resource.
2. look for the thread using port 60010
lsof | grep 60010
Then kill the thread
Wednesday, April 25, 2012
mvn quick review
1. Get dependency source: mvn dependency:sources
2. Sometime, better remove the whole thing and install for multiple version updating
rm -Rf ~/.m2/repository/
In Eclipse, maven build... + insall + skip tests
3. An workaround for "Internal error when enable maven dependence management", check in with svn, them import --> import existing maven project, select local projects as a whole.
4. Switch maven version :
$ cd /usr/share/java
$ ls -q1 | grep maven #check if your desired maven version is there
apache-maven-2.0.9
maven-2.2.0
maven-2.2.1
maven-3.0.2
$ cd .. #go up
$ ls -l | grep maven #check what current version is
maven -> java/maven-3.0.2$ sudo rm maven #remove unwanted symlink
Password:
$ sudo ln -s java/maven-2.2.1 maven #set it to maven 2.2.1
5. mvn update version
3. An workaround for "Internal error when enable maven dependence management", check in with svn, them import --> import existing maven project, select local projects as a whole.
4. Switch maven version :
$ cd /usr/share/java
$ ls -q1 | grep maven #check if your desired maven version is there
apache-maven-2.0.9
maven-2.2.0
maven-2.2.1
maven-3.0.2
$ cd .. #go up
$ ls -l | grep maven #check what current version is
maven -> java/maven-3.0.2$ sudo rm maven #remove unwanted symlink
Password:
$ sudo ln -s java/maven-2.2.1 maven #set it to maven 2.2.1
5. mvn update version
mvn versions:set -DnewVersion=2.50.1-SNAPSHOT
It will adjust all pom versions, parent versions and dependency versions in a multi-module project.
update child module version
mvn versions:update-child-modules
If you made a mistake, do
mvn versions:revert
afterwards, or
mvn versions:commit
Friday, January 20, 2012
OpenSuse install Chrome
1. Download Chrome frome google.com
2. At terminal: sudo zypper in ~/Downloads/[package name]
2. At terminal: sudo zypper in ~/Downloads/[package name]
Thursday, January 19, 2012
Kubuntu Missing Virtical Scoll Bar
sudo modprobe -r psmouse
sudo modprobe psmouse proto=imps
This enables scrolling for your current session - test and make sure it works. If so, you can make it permanent by:
sudo gedit /etc/modprobe.d/options
and adding the line:
options psmouse proto=imps
Then close and reboot.
Tuesday, December 6, 2011
OSX and Mac Quick Note
Add environment variable: apply commands in bash style in ~/.profile,
ex.
ACE_ROOT=~/Documents/ACE_wrappers; export ACE_ROOT
LD_LIBRARY_PATH=$ACE_ROOT/lib; export LD_LIBRARY_PATH
Install wget in OSX
curl -O http://ftp.gnu.org/gnu/wget/wget-1.13.4.tar.gz tar -xzvf wget-1.13.4.tar.gz cd wget-1.13.4 ./configure --with-ssl=openssl make sudo make install which wget #Should output: /usr/local/bin/wget
ex.
ACE_ROOT=~/Documents/ACE_wrappers; export ACE_ROOT
LD_LIBRARY_PATH=$ACE_ROOT/lib; export LD_LIBRARY_PATH
Install wget in OSX
curl -O http://ftp.gnu.org/gnu/wget/wget-1.13.4.tar.gz tar -xzvf wget-1.13.4.tar.gz cd wget-1.13.4 ./configure --with-ssl=openssl make sudo make install which wget #Should output: /usr/local/bin/wget
Subscribe to:
Posts (Atom)