The plugin used on the homepage of this blog to display featured articles is called Related Posts with Thumbs. It will display the last X posts published in a given category. For flexibility, I created a categoruy called “Editorial” for the posts which should be displayed with the plugin. The problem was : I didn’t [...]

Here’s a quick code snipet allowing to parse some content (a string), detect the URLs it can contain and make them clickable links. The method uses preg_replace and a regular expression to detect URLs. 123function detectLinks($content) { return preg_replace(’/\s((http|https|ftp|ftps)\:\/\/[a-zA-Z0-9\-\.\/]+\.[a-zA-Z\/]{2,3}(\/\S*)?)/’, ‘<a href="${1}">${1}</a>’, $content); }   Let’s test this snipet by doing : 12$content = "This is [...]

The YouTube API allows a user to retrieve a lot of information about an user’s profile and his videos (his uploads, his favorite videos). For each of these videos, it also allows to retrieve a lot of information like duration, keywords, comments and trackbacks… These information are accessible without the need of an API key. [...]

This post aims to explain how to compile a PHP extension for ZendServer CE on Mac OS X based on my experience with the memcache extension. As it turns out, the memcache extension included in ZendServer CE 5.0.4 is version 2.2.5 which doesn’t work with the latest version of the memcached server insatlled by macposts [...]

Memcached if a free and open source distributed memory object caching system. It is used by web applications to lower database load by caching data in a key-value format for faster retrieval. If you happen to develop on Mac OS X, you can easily setup a development memcached server locally using MacPorts. 1sudo port install [...]

World Gone Web hacked

January 8, 2011 | 3 Comments

On Monday morning, I received an email from Google Webmaster Tools letting me know that my WordPress blog had been hacked and was temporarily blacklisted. Users accessing my blog using Google Chrome or Firefox were advised to stay away for safety. I appreciate Google’s notification of this problem as well as their concern (and Mozilla’s) [...]

I don’t remember how I’ve heard about Chive, a young alternative to PhpMyAdmin (version 0.3 was released less than a week ago). I believe it was a link on twitter. There seem to be two policies when it comes to a MySQL browser for web developers: the desktop app or the web app. A lot [...]

This week I’ve worked on a social lightbox for Teeorama allowing our visitors to tweet or write on their Facebook walls from our tee-shirt shop.The lightbox itself is built using ColorBox, a powerful and customizable lightbox library built on JQuery (MIT License). The Twitter tool is fairly easy to setup, I used bit.ly to generate [...]

Recently, I wrote about geolocalisation of your users/visitors based on the IP to Country table. After using it for a couple of months, I found it painful to have to regularly update the table (even if some people came up with an automatic work around based on PERL scripts for example). So, I decided to find another [...]

Setting up Code Igniter

February 13, 2010 | 2 Comments

A few months ago, we jumped into Teeorama, a PHP based online tee-shirt store front end for Spreadshirt. We finally completed the project and we’re planning on opening it to the public tomorrow. By the way, if you feel you could use a new Geek shirt, please head over to teeorama.com before reading on… When [...]

keep looking »