Archive for the 'Uncategorized' Category

My HandBrakeCLI Perl Script

Posted by Markus on June 23rd, 2009

I had the dilemma of having 4 seasons of a TV show on DVD, and I wanted it all in iTunes for my AppleTV. I also have a dual-core mac, but a much beefier Ubuntu box running Ubuntu 9.04. I compiled the ever-so-useful HandBrakeCLI 0.9.3 from source on this box. More on that later!

I wanted an automated process that will find each episode on the DVD’s VIDEO_TS folder, and then send that to Handbrake to encode. Problem is, there are tons of titles on a DVD that ARE NOT the actual episodes. Luckily, I noticed that every episode is between 40-49 minutes in length. This is what I came up with:

(email me for file)

Share:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • E-mail this story to a friend!
  • LinkedIn
  • MySpace
  • Print this article!
  • Reddit
  • Slashdot
  • StumbleUpon
  • TwitThis

A cool little discovery.

Posted by Markus on April 3rd, 2009

I work on HPUX hosts. The sad thing about HPUX is that it has very few of the oh-so-wonderful GNU tools that Linux and other *NIX OSes have.

Last night I tried to figure out which service has a particular port open on a host. I searched the internet high and low for something specific for HPUX. All I could find on all the HP forums, etc was that the best thing to do is install a little app name lsof that is normally associated with Linux. lsof will give you the Process ID of whichever port you give it. But alas, installing open source software is not an option.

But wait…if lsof most likely queries a system library to figure this out, why can’t I? My workaround is not as elegant, but it gave me enough information to find and kill the culprit:

perl -e ‘$i=getservbyport(”22″,”tcp”);print “$i\n”;’

Of course this is just an example, we all know tcp port 22 is ssh. Next on the list, find the pid…

Share:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • E-mail this story to a friend!
  • LinkedIn
  • MySpace
  • Print this article!
  • Reddit
  • Slashdot
  • StumbleUpon
  • TwitThis

Google CADIE

Posted by Markus on April 1st, 2009

This morning I woke up, and in my usual procrastinating fashion, surfed the web a little to see what is going on in the world. I noticed that Google launched something new called CADIE. Some sort of artificial intelligence super-computer. (http://www.google.com/intl/en/landing/cadie/index.html) Alas, half way through emailing the whole world about CADIE, I realized what the date was April Fools day!

I though CADIE was a cool concept though. I’m not a big computer dystopia fan (such as Terminator), although a very interesting movie was Eagle Eye, which had a supercomputer that guarded our constitutional rights.

Well, that’s all for now. Bye CATIE, and may you and all the other Google April Fools jokes see the light of day yet some day.. :-)

Share:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • E-mail this story to a friend!
  • LinkedIn
  • MySpace
  • Print this article!
  • Reddit
  • Slashdot
  • StumbleUpon
  • TwitThis

Testing…we are live now!

Posted by Markus on March 15th, 2009

Hai, this is my wordpress blog!

Share:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • E-mail this story to a friend!
  • LinkedIn
  • MySpace
  • Print this article!
  • Reddit
  • Slashdot
  • StumbleUpon
  • TwitThis