Posts filed under “open source”
Getting started with MongoDB and PHP on Mac OS X
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 [...]
Mac OS X Lion PHP upgrade – php.ini and Suhosin
If you have upgraded from Snow Leopard to the new OS X Lion, you will notice PHP has also been upgraded – from 5.2 to 5.3. A couple of points that I noticed post-install. Firstly, my existing /etc/php.ini file was moved to /etc/php.ini-5.2-previous. Restoring this was trivial: sudo cp /etc/php.ini-5.2-previous /etc/php.ini However, I noticed that [...]
Install mcrypt PHP extension on OS X Snow Leopard
Please note: The following instructions apply to Mac OS X 10.6 (Snow Leopard). I have an updated guide for how to install mcrypt on 10.7 (Lion). mcrypt is a useful extension to PHP if you would like to support a wide range of encryption algorithms within your code. This guide explains how you can enable [...]
Normalize URL’s with PHP
I’ve posted to GitHub a PHP class that I’ve written which can handle URL normalization, as specified by RFC 3986. https://github.com/glenscott/url-normalizer Specifically, the following normalization steps are performed: Normalize case Decode unreserved characters Remove dot segments An example of use: require_once ‘URLNormalizer.php’; $url = ‘eXAMPLE://a/./b/../b/%63/%7bfoo%7d’; $un = new URLNormalizer(); $un->setUrl( $url ); echo $un->normalize(); // [...]
Shared memory fix for PostgreSQL Mac installation
EnterpriseDB have kindly created a one-click installer for PostgreSQL, but unfortunately it doesn’t work out-of-the-box, at least not on my MacBook Pro. The problem is down to the amount of shared memory that is configured in OS X; by default it is 4Mb, and PostgreSQL requires 32Mb: The error message suggests looking at the README [...]
Sun and MySQL continue uneasy relationship
As well as moving away from a completely open model, Sun’s MySQL has bigger issues: Sun has announced the official release of MySQL 5.1, a new version of the popular open source database software. Although Sun has declared that this version is ready for widespread adoption in production environments, MySQL creator Michael Widenius says that [...]
Review: London Perl Workshop
Spent an interesting morning in the company of many Perl mongers at the London Perl Workshop. Although I don’t use Perl as my primary language any more, it was was interesting to learn about the current movements of its London-based community. The talks I attended were: The Complete History of the Perle Mongers of Olde [...]
Real World Lisp
Prompted by a question posed by one of my colleagues today, “has anyone ever used Lisp?”, I surprisingly found myself being the only person that had. I played around with it many years ago after being inspired by Eric S. Raymond’s seminal article, “How to Become A Hacker” in which he explained that “getting” Lisp [...]
BrowserPlus to become Open Source
The new BrowserPlus framework – a way of extending your browser capabilities – will become open source next year, which seems a sensible way to increase its adoption: The big idea here is that we’ll have the whole platform open sourced by mid-next year, and as soon as possible we’ll have many of the services [...]
Microsoft considers WebKit for Internet Explorer
Wow. Open source is interesting. Apple has embraced Webkit and we may look at that, but we will continue to build extensions for IE 8. AppleInsider | Microsoft considers adopting WebKit for Internet Explorer