jump to navigation

Manipulating images and pdf’s in php October 31, 2006

Posted by maxmil in : php , add a comment

After a quick google the best free options are:

- imageMagick with the Magic Wand For PHP extension for creating images on the fly
- Pdftk for splitting and joining pdf’s although i haven’t found if this is capable of extracting text from pages.

The spenny option is pdflib

ZendStudio and php extentions October 27, 2006

Posted by maxmil in : php , add a comment

Just installed and started to work with ZendStudio. My first problem was getting the internal debugger to function properly. It could’nt load the mysqli extention. The error that i was getting was:

Class 'mysqli' not found

As described in this knowledge base article you have to specify the php extentions directoy in the Zend Studio php.ini. I copied my php extentions from another installation of php to my Zend directory and edited php.ini. However after doing this it still didn’t work.

Eventually i found the solution. The php version that my Zend Studio uses is 5.1.1 whilst i had copied extentions from 5.1.6

After downloading the binaries for version 5.1.1 and extracting the extentions it worked without a problem.

Thunderbird, language packs and Debian Sarge October 16, 2006

Posted by maxmil in : Debian , add a comment

The version of thunderbird in the stable Debian Sarge repository is 0.3.

First i had problems installing language packs with the Thunderbird Extension Manager. This was due to a lack of write priveleges in the /usr/lib/mozilla-thunderbird/components/myspell directory. This can either be solved in one of three ways by

1) Extracting the files in the .xpi and copying them manually as root
2) Executing thunderbird as root and running the Extension Manager
3) Changing the write priveleges on the myspell directory

Having got this working i then noticed that the version 0.3 was lacking some of the functions that i have become used to and enjoy using in V1.5. So i downloaded and extracted V1.5 to /usr/lib/mozilla-thunderbird-v1.5

Now the debian package has been personalized for Debian, in my custom package i will surely find that i’m missing other important stuff, but the first thing that i noticed was that my myspell dictionaries were not available in my new thunderbird.

Studying the debian thunderbird package i realized that in the Debian installation the folder /usr/lib/mozilla-thunderbird/components/myspell is actually just a soft link to /usr/share/myspell.

So i did the same
ln -s /usr/share/myspell/dicts /usr/lib/mozilla-thunderbird-v1.5/components/myspell
I now have a more recent version of thunderbird with all my myspell dictionaries included.

Quooxdoo – Ajax framework and widgets October 11, 2006

Posted by maxmil in : Ajax , add a comment

http://qooxdoo.org/

File permissions for Java Procedure in Oracle October 6, 2006

Posted by maxmil in : Java, Oracle , add a comment

In order to read, write, delete, execute files from an Oracle proceedure written in Java a dba user must issue the following grants:

EXEC DBMS_JAVA.grant_permission(‘SCHEMA-NAME’, ‘java.io.FilePermission’, ‘<<ALL FILES>>’, ‘read ,write, execute, delete’);
EXEC DBMS_JAVA.grant_permission(‘SCHEMA-NAME’, ‘SYS:java.lang.RuntimePermission’, ‘writeFileDescriptor’, ”);
EXEC DBMS_JAVA.grant_permission(‘SCHEMA-NAME’, ‘SYS:java.lang.RuntimePermission’, ‘readFileDescriptor’, ”);