Code Comments

Notepad++ launcher batch file

The otherwise excellent Notepad++ application has an issue that sporadically causes its langs.xml file to become corrupt upon shutdown. This means that the next time you launch the application it will tell you just that, and none of your code will have syntax highlighting. I got so annoyed with it happening I knocked up the following little batch file to automatically replace the previous langs.xml file with the back-up copy, before launching Notepad++;

@echo off
cd "c:\Program Files\Notepad++"
del langs.xml
copy "langs.model - Copy.xml" langs.xml
"notepad++.exe"
EXIT /b

To use it, just create a new text file on the desktop and rename it “Notepad++ Launcher.bat”, or whatever takes your fancy – so long as it ends in “.bat”. If necessary, alter the paths to suit your chosen install directory, then save it, close it, and click on it whenever you want to launch Notepad++ with a fresh langs.xml file.

Eagle eyed viewers will note that you don’t actually have to change directory in the batch script – you could use an absolute path each time, but I like doing it the way it does it.

Continue Reading
Comment

At Argyll & Bute Council…

A man applies for a job at Argyll & Bute council and is invited in for interview. When he arrives he takes a seat in the interview room, while the head of the department leafs through his CV.

“I see you’re a Gulf War and Iraq War veteran?” The department head asks, visibly impressed.

“Yes – I love serving my country. That’s why I want to work for the council, now that I’m fit enough to return to work.”

“Oh, I see… you were invalided out of the forces?”

“Yes, unfortunately. I had both my testicles blown off after triggering a land mine in Iraq.” The applicant reveals. “I do hope you won’t hold that disability against my suitability for the job.”

“Of course not – in fact I’m humbled by the sacrifice you’ve made for your country.” The department head says, choked with emotion in the presence of one who had given so much. “As far as I’m concerned you’re exactly what we’re looking for – in fact, the job is yours if you want it.”

“That’s fantastic!” The applicant beams, “When can I start?”

“Well, Monday – if you’re available. We normally start at 9:00 and work until around 4:30 – it’s a short day, but you can come in about 12:00 if you like.”

“Really? Why’s that?”

“Well, the thing is…” The department head lowers his voice. “Here at Argyll & Bute we normally just sit around scratching our balls until lunch time…”

Continue Reading
Comment, Journal

Indoctrination masquerading as education

Yesterday morning we took Elisha to John Logie Baird primary school in order to enroll her for the term starting in August 2010. I had wanted to go along to speak to the head teacher after he’d said in the introduction meeting the week before that we could then ask questions specific to our child.

On that day I’d seen displays hung on the walls of the assembly hall, created by classes from each year. What got my attention was not the colourful work done by year 2 – a mural showing Dumbo the Elephant flying over some clowns, but the work done by year 1 showing the Christian story of creation.

Religious theology seemed a bit deep for year one, when year two was getting taught about flying elephants and clowns, so I made up my mind that I was going to question the head teacher regarding the level of religious agenda pushed upon the children at our follow-up meeting.

Continue Reading