Posted in 15 August 2009 ¬ 19:20h.John
Copying files with scp is difficult enough without spaces. So when a filename contains a space, scp seems to start behaving by its own rules.
Here’s a command that will copy unusual filenames without any problems in scp.
Read the rest of this entry »
Posted in 10 August 2009 ¬ 14:21h.John
When you’re stuck without sysop access to MediaWiki because you cannot remember the sysop details then there’s a handy maintenance script that’s available (if you’ve used the package manager) to reset the sysop username and password.
On Ubuntu server you can run the following command:
php /usr/share/mediawiki/maintenance/changePassword.php –user=sysop –password=password
The script will immediately reset your sysop username and [...]
Read the rest of this entry »
Posted in 18 July 2009 ¬ 19:14h.John
Just putting in my first post using the official Wordpress for Blackberry software.
About time, too!
Although only a beta version at the moment, it’s working nicely and I think that this will be one of my must have apps when i’m on the move!
Read the rest of this entry »
Posted in 23 March 2009 ¬ 14:42h.John
Well, I finally beat my 8-second record before. I’m sure that I haven’t bested 7 seconds in Minesweeper before – so here we are:
Evidence of a good score! Wahay!
Read the rest of this entry »
Posted in 4 January 2009 ¬ 21:53h.John
I’ve been working on my first ‘proper’ CodeIgniter project this week. It’s been quite gruelling, as there are some moments where I have definitely sped up my production. But it’s constantly getting hampered by the learning curve. It may be slight, but is frustrating when I hit a wall.
One issue that just cam up is [...]
Read the rest of this entry »
Posted in 4 January 2009 ¬ 10:51h.John
A neat trick I use in PHP is a toggle variable, usually when I’m creating tables and want to alternate the styles.
To use a toggle variable:
#Create the variable
$toggle=true;
#Switch it
$toggle=(!$toggle);
Simple!
Read the rest of this entry »