Thursday, December 27, 2012

Install JMagick

  1. Install imagemagick: sudo apt-get install imagemagick --fix-missing
  2. Install jmagick: sudo apt-get install jmagick --fix-missing
  3. Make sure that jmagick binary files (jmagick*.so or jmagick*.dll for windows os) are accessible for jvm. This files mast be present in /usr/lib for linux os or in java_home/bin folders. If this files are absent simple copy it from jmagick installation package
If you start with Tomcat. Set variables
-Djava.library.path=/usr/local/lib
-Djmagick.systemclassloader=no
[Update] 
If you use Windows x64 and tomcat 7

  1. Download jdk for i586 arhitecture
  2. Copy jmagick.jar to JAVA_HOME_i586/jre/liv/ext directory
  3. Copy jmagick.dll to system_32

Monday, December 3, 2012

Создаем своего пользователя в PLSQL

1. sudo -u postgres createuser --superuser user_name
2. sudo -u postgres psql
3. postgres=#\password user_name
4. createdb user_name
5. psql