Community ID installation and issues

CommunityID is a good server for OpenID. You can run it and provide your own authentication server for all sites that support the OpenID protocol. Unfortunately I had a series of issues when installing the product, so here is a step-by-step guide of how I managed to get it running. Create the Apache configuration file […]

UTF-8 and MySQL

The UTF-8 character set allows a text to encode any of the 1,112,064 code points in the Unicode standard using one to four 8-bit bytes (known as octets in the Unicode Standard). UTF-8 stands for UCS Transformation Format – 8bit and has quickly become the standard text encoding for most internet based communication. Although MySQL […]

XIB File Internationalization

In a previous post I discussed options for internationalizing iOS apps. In this addendum to that article I’m sharing an amazing discovery that has saved me so much work and time. You can actually take all of the strings out of a XIB file using the ibtool command in the terminal. You then translate the […]

Creating custom gesture recognisers for iOS

A custom gesture recognisers allows you to simplify the job of detecting specific touch patterns on a iPhone or iPad. Although some basic gestures (long tap, double tap, pinching and zooming, and so on) are already available from Apple out of the box, more complex finger movements must be detected by yourselves. By implementing your […]

Multiple SSH/SCP invocations

In writing shell scripts sometimes you want to be able to execute several SSH or SCP commands in a row. Unless you have set up authorised keys on the server, each one of the commands executed in the script will require that the user enter their password for the connection to be established. Or you […]

Remove all subversion info from a working copy

If you want to make a plain directory out of a working copy, you could use the svn export command and then delete the working copy. But if you’re running under a *NIX system with a bash shell, it might be quicker to just go find . -name “.svn” -type d -exec rm -Rf {} […]

Objective-C load and initialize

These two static methods of an ObjC class allow you to run initialization logic where you can set up any static state. Both methods are only invoked if implemented and do not need to be declared in the interface of your classes. The differences between them are as follows: In an application, or in a […]