Mar 25 2008

Close img bracket …

Tag: Javaberrisch @ 6:49 pm

Close img bracket to convers from html to xml in Eclipse editor (Regular expression)

     Find :          <img(([\d]|[\s]|[\w]|\=|\"|\.)*)>
     Replace with :  <img$1/>

Modifies img source to quick change data source in Eclipse editor (Regular expression)

     Find :          <img(.*)src="([\w]*[\\.][\w]*)
     Replace with :  <img$1src="/img/newsletter/$2

Mar 14 2008

Install perl modules via CPAN (command line)

Tag: Perlberrisch @ 3:11 pm



* Check if module is installed. Errors mean missing module.

      $> perl -MModule::Name -e 1

* See documentation of the module if installed.

      $> perldoc Module::Name

* Open CPAN shell:

      $> perl -MCPAN -e shell

* To reconfigure the shell if needed.

      cpan> o conf init

* Install an available module.

      cpan> install Module::Name

* Force install if test fails.

      cpan> force install Module::Name

* To manual install perl modules.

      $> perl Makefile.PL
      $> make
      $> make test
      $> make install

If there are some missing libraries (ex. libmysqlclient.so )

      export LD_LIBRARY_PATH=/usr/local/mysql/lib/

Mar 13 2008

Test post Jober.org

Tag: JavaScriptberrisch @ 12:29 pm

A simple script for Greasmonkey

    window.addEventListener(
    'load',
    function() { init() },
    true
);