Here are some useful tips & tricks I frequently use:
VIM search/replace commands
replace the first 'old' in a line with 'new' :s/old/new
replace all 'old's on a line with 'new' :s/old/new/g
replace all occurrences in the file :%s/old/new/g
confirmation each time :%s/old/new/gc
flv to mpeg4
ffmpeg -i v.flv -s 320×240 -r 15.00 -b 300 -f avi -vcodec mpeg4 v.avi
Extract audio
mplayer -dumpstream v.avi
mplayer -ao pcm stream.dump
subversion add multiple files
svn st | grep "^?" | awk '{ print $2 }' | while read f; do svn add $f;done
subversion remove multiple files (non existent)
svn st | grep "^\!" | awk '{ print $2 }' | while read f; do svn delete $f; done
The adventure of developing my own little blog engine is going better than i previously thought.
Today I finished implementing a simple gallery using acts_as_attachment plugin. I was amazed how easy was to develop it. Now I'll do code cleanup and refactoring and after that ajax support when viewing photos and commenting posts. That will be version 1.0.
Posted in Rails, 2 Comments
Hi ppl,
After weeks of developing this blog finally it's finished. It is my first rails application and I must say I'm very pleased with the results. I'm still learning, but so far it was a joy working with it.
This blog will grow with features in time but for now it has an administration site, atom feed, post commenting, sort by categories and archive. Features to add are comment administration, gallery (i'm an amateur photographer :)), ajaxifed comment form, category cloud …
So this is it for now. Finally I'm starting to blog :)
Update:
Just added in place comment editing for admins.
Let the censorship begin :)

Full name: Ivica Munitic
Age: 28
Profession: Developer
Email: ivica@munitic.com.hr