Archive for October, 2008

Copy 3MU Playlist to Directory

One day, I want to copy music from my amarok playlist’s to my cellphone. This playlist has so many files that spread across directories. As a php ninja, I create a php script to do the hard work.
Here’s the script if you want to try:

<?php
$playlist_file = $argv[1];
$output_dir = $argv[2];
$lines = array_map("trim", file($playlist_file));

if(!is_dir($output_dir)) mkdir($output_dir);

foreach($lines as $line)
{
if(substr($line, [...]

Auto Mount Iso Image Via /etc/fstab

So, you have a cd image and want to mount automatically every time you start your linux? Here, I’ll show you how to do it.

First step is, put your file at some place where you will not move it again. Why? Because you’ll have to adjust your /etc/fstab entry if you move the file. For [...]

Using SVN to Easily Update Online Project(s)

I guess all of you are already know that Version Control System is a good tools to manage your project files. Be it a collaboration project or your own single man project. I have several online projects, some are my own projects, some are paid projects. Some I’m the only developer while some others are [...]

silent [say] Happy Birthday To Me!