Posts Tagged ‘Software’

SCP and filename spaces

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 »

Reset your MediaWiki Sysop Password

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 »

From the BlackBerry!

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 »

7 seconds of leg-blowing action

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 »

CodeIgniter’s Form Helper doesn’t respect POST arrays

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 »

PHP Toggle Variable

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 »