Posts by Glen

SimpleCrypt PHP class for simple cryptography

Posted by Glen on . One comment.

I have just pushed a simple class called SimpleCrypt to GitHub: https://github.com/glenscott/simple-crypt This is an OO wrapper around the most common mcrypt functions. An example of use: If you find it useful, please let me know!

Mac OS X 10.7.3 upgrades PHP from 5.3.6 to 5.3.8

Posted by Glen on . No comments.

As described in Apple’s security notes for Mac OS X 10.7.3, PHP is upgraded to version 5.3.8 as part of the update.

Map invoke errors when using MongoDB MapReduce

Posted by Glen on . No comments.

When running MapReduce operations on your data, you must make sure that any fields you refer to within your map operation are available for every document in your collection. If you try a map operation and some documents do not have the required field, you will get the following assertion error when running the command: [...]

Complaining to Virgin Media

Posted by Glen on . No comments.

Yesterday, the 17th January 2012, Virgin Media broadband customers experienced partial or total loss of connectivity throughout the afternoon and evening. As one of those customers affected by the outage, I am making a formal complaint to the company. As I work from home and require internet connectivity at all times, this outage had a [...]

Going Freelance – Part 3

Posted by Glen on . No comments.

In Part 2, I mentioned how I used Google Docs as a way of managing business records. Although this turned out to be a reasonable solution, I soon found myself wanting something more bespoke. Enter FreeAgent. I heard a few other freelancers recommending this service, so I signed up for a free 30 day trial [...]

Exporting specific documents from MongoDB

Posted by Glen on . No comments.

MongoDB comes with a useful tool, mongoexport, for exporting collections. However, you can also use it to export specific documents by utilising the query parameter. You can export a single document using it’s ObjectId using a command similar to the following: Replace host_name, username, database_name and collection_name with the appropriate values. Replace 4f045677a1ef264746000011 with the [...]

iCal 502 error when syncing with Yahoo! Calendar

Posted by Glen on . 14 comments.

In the last few days, my iCal has been giving me the following error message when trying to access my Yahoo! Calendar via CalDAV: The request for account “Yahoo! Calendar” failed. The server responded with “502″ to operation CalDAVAccountRefreshQueueableOperation. Yahoo! have acknowledged this is a problem on their side: We are aware of a Calendar [...]

Camera and photo improvements in iOS5

Posted by Glen on . No comments.

The camera functionality in the iPhone has always been one of my most used features. iOS5 brings some enhancements, which are listed below: Camera improvements Double-click the Home button when device is asleep to bring up a camera shortcut on iPhone 4S, iPhone 4, iPhone 3GS and iPod touch (4th generation) Volume Up button to [...]

Getting started with MongoDB and PHP on Mac OS X

Posted by Glen on . No comments.

Introduction MongoDB is a document-orientated database written with scalability and high-performance in mind. It is one of a growing number of NoSQL systems – a database that does not rely on SQL or relational theory at all. Getting a MongoDB server working with PHP on Mac OS X is relatively straightforward, and this tutorial shows [...]

Steve Jobs, 1955 – 2011

Posted by Glen on . No comments.

For me, it wasn’t the iPod, iPhone or iPad but the Mac that was Steve Jobs’ greatest success. After buying an indigo iMac in 2000, it reignited my passion for computing and I never looked back. The Mac made computing pleasurable, and for that I will be eternally grateful to Steve’s vision and passion. A [...]