Thursday, July 28, 2011

How to convert videos to be imported in iMovie for free

Hi,

these days I'm preparing a funny video to be shown at the wedding party of one of my best friends. For that, I asked all our friends to send me short clips of greetings or jokes.

But then I received clips in whatever format...and iMovie does not accept many formats actually... :-(

So I started to google to find free tools to get them converted in Quicktime .mov easily.

After many trials I ended up with this list:

- mpg (muxed) --> mov : "ffmpegx"

- AVI --> mov : "ffmpegx"

- wmv --> mov : "HandBrake"

Monday, March 14, 2011

Regular expressions in Eclipse: some working examples

I found very useful the Regular Expressions support in the "Find and Replace" window of the Eclipse IDE.

Here some expressions I used. Mainly a reminder for me, of course; but I think they can be useful for others as well, as working examples.

Note that you can refer to groups within the regular expression in the "Search" field, with the symbol $ followed by an increasing number: $1 for the first group defined in the regular expression, $2 for the second and so on...

---

From: qDebug() << "Hello" << world.name() << "t_int32" << "!";
To: ERS_DEBUG(2, "Hello" << world.name() << "t_int32" << "!");

Search: (qDebug[(][)])(\s*[<]+\s*)(.*)([;])
Replace: ERS_DEBUG(2, $3);

---