Programming language popularity

As a PHP enthusiast I was very pleased a couple of weeks ago when I read that PHP is already in the top 3 in programming language popularity only after Java and C. This popularity index is based on the number of professional programmers, training courses and vendors.


Programming language popularity Sept 2009

Source: TIOBE Software – http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html

Setting up a web server with Apache 2.2.x and PHP 5.2.x with extensions, PEAR, MySQL 5.x and pdo_mysql on FreeBSD 7 step by step tutorial

This quick tutorial will show you how to set up a FreeBSD machine (based on minimal install) to run as a web server using Apache 2.2.x, PHP 5 and MySQL 5. This tutorial is based on FreeBSD 7.2 (the current stable release at the time of this writing).

This tutorial builds on the minimal installation described here and assumes you have also downloaded the ports collection. If you haven’t done so please read the following article first: Managing ports in FreeBSD.

Read more

Fetching tweets with jQuery and the Twitter JSON API

Just thought it’d be nice to share this little script that fetches tweets using a jQuery AJAX request and the Twitter API. The script is based on a snippet I picked up from my good friend Sven Lito.

I’ve added verbose comments in the code itself, so let’s keep this post short ;-)

You can see the working demo here: http://www.lupomontero.com/tuts/jQuery-TwitterAPI/index.html

Read more

Managing ports in FreeBSD

freebsd-logoThe aim of this article is to summarise the installation, reinstallation and deinstallation of ports (packages) in FreeBSD. The FreeBSD ports collection ir probably one of the most compelling reasons to choose FreeBSD (and you will soon see why). This tutorial continues from where we left the minimal installation in my previous post, so I am assuming you already have a working FreeBSD box.

Before we download the ports collection lets install curl, a very useful tool that will help us download the ports archive itself. We do this using the pkg_add command.

# pkg_add -r curl

As simple as that. The previous command should download the packages from the remote repo (the -r option stands for “remote”) and install them. If everything goes according to plan you should output that resembles the following:

Read more