April 2008 Archives

Notepad++ PerlTidy in place

I like to be able to sweep my code clean with a quick key stroke. Under the Run dialogue in Notepad++ I use this external command, save and activate with Alt F7 :-

ptidy “$(FULL_CURRENT_PATH)”

A quick batch file ptidy.bat in my path does the heavy sweeping.

@call perltidy -b %1 @del %1.bak

You have to call perltidy as it’s a batchfile itself and we want to remove the .bak file it creates.

Notepad++ should detect the file has changed and reload it.  If perltidy does encounter an error, you’ll get a *.err file and it leaves the original untouched.

Whenever you need somebody

Whenever you need somebody is a better Rick song in my opinion than Never gonna give you up.

An ambulance passes...

While working away at my desk, I heard an unusual siren coming from the distance. I thought it was probably an ambulance, but it was not the normal ambulance siren. By the time I got to the blinds to look out, indeed it was an ambulance, and it quickly passed by.

What struck me was the man standing out the front of my house. In his hand was a dog lead. The dog was hunched over taking a crap on the foot path. As he turned back from watching the ambulance pass, he saw me staring through the blinds.

Recognition passed across his face, and he quickly gave the dog a sharp pull and  moved off.

About this Archive

This page is an archive of entries from April 2008 listed from newest to oldest.

February 2008 is the previous archive.

May 2008 is the next archive.

Find recent content on the main index or look in the archives to find all content.