Nice Biker Story

Posted in Motocycles on July 16th, 2007 by nazeeh

This is a really cool and inspiring story about Motorcycle riders and how they relate to each other. I hope you enjoy it!

I just got this from my old mans forum, I don’t know how many of you guys can remember your first ride, or just cruising with your dad since… as long as you can remember.Its pretty awesome,even gave me goose bumps…………..

The bike’s passenger seat swept up just enough that I could see over my father’s shoulders. That seat was my throne. My dad and I traveled many backloads together…searching for the ones we had never found before. Travelling these roads just to see where they went. Never in a rush, just be home by supper.

I remember wandering down a backroad with my father, sitting on my throne watching the trees whiz by, feeling the rumble of our bike beneath us like a giant contented cat. A motorcycle came over a hill towards us and as it went by, my father threw up his clutch hand and gave a little wave. The other bike waved back with the same friendly swing of his left wrist.

Read more »

PowerShell Tricks - Trick 3: Better Prompt!

Posted in Powershell on July 16th, 2007 by nazeeh

This one is a small one really, but I found it to be quite useful. One of the things that irritated me was when I would navigate to a folder that is deeply nested under other folders. The prompt would get so damn long that it’s eating up the majority of my command line. So I wrote this small prompt function that handles long folders nicely:

function prompt 
{     
    $pwd = (get-location).path;
    
    if ($pwd.Length -gt 40)
    {
        $pwd = “…” + $pwd.substring($pwd.Length - 20, 20);
    }
        
    if ($IsAdmin)
    {
        Write-Host (“PS (Admin) “ + $pwd +“>”) -nonewline -foregroundcolor Green
        $host.ui.rawui.WindowTitle = “Admin Shell: “ + $(get-location)
    }
    else
    {
        Write-Host (“PS “ + $pwd +“>”) -nonewline -foregroundcolor Green
        $host.ui.rawui.WindowTitle = “Windows Powershell: “ + $(get-location)
    }
    return ” “
}

What this does is it checks if the current path is longer than 40 characters, if it is, it truncates it to the last 20 characters preceded by “…”.  

So as you can see, the path is nice and short and will never be larger than this size. The window title displays the full path so that you can tell with a glance exactly where you are.

Have fun!

The Importance of Backups

Posted in News on July 15th, 2007 by nazeeh

Sigh… I should have known better. I am quite the trigger happy kind of guy when it comes to deleting stuff. By mistake, I deleted the database that was holding my blog thinking I was deleting something else. I hate when I do stupid stuff like that.

Always backup important stuff like that! Specially databases for sites you own on the net. From hackers, ISP blowing up, to your own stupidity… you’ll be happy you had that backup when you need it.

Now to rebuild what I had in here…

p.s. Worse news… I had an earlier backup of my posts… I deleted the file for no reason. Somebody..shoot me…

The page's WebCounter count says that you are visitor number Visitor Counter by Digits
FireStats icon Powered by FireStats