l-Satz

Archive for May 2009

sed commands useful for hibernate

Posted by: sathyz on: May 26, 2009

After generating hibernate files using ant tasks the column names and table names has to be edited.

say generated code

This has to be edited as,

I use the following sed commands to do this.

sed -i ’s|table=”\([a-zA-Z_]*\)”|table=”\"\1\"”|g’ table.hbm.xml
sed -i ’s|column name=”\([a-zA-Z_]*\)”|column name=”\"\1\"”|g’ table.hbl.xml
sed -i ’s|schema=”\([a-zA-Z_]*\)”|column name=”\"\1\"”|g’ table.hbm.xml

gnome-do plugin [part 1]: create an action

Posted by: sathyz on: May 11, 2009

I started trying out gnome-do when I read an article about the upcoming ontology based tools (gnome-do and ubiquity) in Linux for you. There are many plug-ins available for gnome-do (official and community). I am using Debian(lenny) and had a hard time in setting it up. Setting up do from source was easy, but setting [...]