Saturday, May 31, 2008

Using mencoder based solution to format video for my iPod

I was having trouble converting the videos I downloaded from my ReplayTV DVR into a format I could watch on my iPod. So, of course, google and ubuntu forums are indispensable. I tried a few ways, first using VLC which didn't produce any sound. Second I tried getting ffmpeg functional for this task. Finally the solution I settled on was found in this how to and here are the commands:

sudo aptitude install lsdvd mplayer gpac zenity mencoder
sudo wget http://diveintomark.org/public/2007/06/podencoder.txt -O /usr/local/bin/podencoder
sudo chmod +x /usr/local/bin/podencoder
podencoder foo.mpg
podencoder foo.avi
podencoder foo.wmv
podencoder
podencoder --help

Getting my iPod classic working on Ubuntu

I couldn't put files on my iPod using gtkpod... discovered that I needed to turn off journaling on the HFS+ file system on the iPod. Fired up the family iMac and ran the following commands with the iPod mounted:

diskutil list
diskutil disableJournal disk1s2

done.

Wednesday, May 21, 2008

WoW on Ubuntu

Got WoW up and running on my ATI cards and HH 8.04. Here is how Follow the entire set of directions ... include all tweaks. I still had a nasty little flicker which stopped when I disabled Compiz by going to system>preferences>appearance>Visual Effects>None ... awesome

Sunday, May 18, 2008

MOBO Info

Since I have been having lockup problems on my HH8.04 Desktop ... I am trying to collect as much information here as possible. So here is a link to my MOBO .

I was able to successfully flash the BIOS today using this page on Ubuntu Forums. I am now running on a FOXConn N570SM2AA motherboard with version 4.071.0101/16/07 version of code, file name 5C4W1P51.BIN. We'll see if I continue to have lockups.

Thursday, May 15, 2008

How to spin through an array that is a hash entry in Perl

foreach $i (0 .. $#{$server_lookup_hash{$final_server}}) {
print "$server_lookup_hash{$final_server}[$i]\t";
}

changing the default editor for crontab in ubuntu

sudo update-alternatives --config editor

There are 3 alternatives which provide `editor'.

Selection Alternative
-----------------------------------------------
1 /usr/bin/vim.tiny
2 /bin/ed
*+ 3 /bin/nano

Press enter to keep the default[*], or type selection number: 1
Using '/usr/bin/vim.tiny' to provide 'editor'.

Wednesday, May 14, 2008

Field based sort in perl

Sort records in an array, sort first by the first field and then by the second field. Use a tilde as a field separator.

my @final_array = sort {
(split "~", $a)[0] cmp (split "~", $b)[0]
||
(split "~", $a)[1] cmp (split "~", $b)[1] } @formatted_sorted_array;