Archive for January, 2007

Batch conversion of jpg files to png

Tuesday, January 23rd, 2007

Make use of bash substring removal

$ for i in *.jpg; do j=${i%.jpg}.png; convert $i $j; done

This, ${i%.jpg} strips the trailing “.jpg” substring from variable i
Need more? Advanced Bash-Scripting Guide
Tweet This Post  Facebook 

Retrieving column metadata with DBIx::Class

Monday, January 22nd, 2007

DBIx::Class is a flexible SQL to OO mapper which I use in most of my projects. No more writing and fiddling around with SQL statements. But its flexible enough, so you can get down and dirty with SQL if you need to.
Here’s how to retrieve column metadata from the underlying database schema.
Lets say I need […]

svn repository backup

Thursday, January 4th, 2007

This is how I take a backup of our subversion repository.

$ svnadmin dump /var/repos > svn_repos_dump_date
$ gzip -9 svn_repos_dump_date

/var/repos is the path to the repository.
Tweet This Post  Facebook 

Resolution for 2007

Monday, January 1st, 2007

Have a more disciplined approach to life, especially work
Tweet This Post  Facebook 


Tweet This Post links powered by Tweet This v1.4.1, a WordPress plugin for Twitter.