Category: Programming

The 5 types of programmers

In my code journeys and programming adventures I’ve encountered many strange foes, and even stranger allies. I’ve identified at least five different kinds of code warriors, some make for wonderful comrades in arms, while others seem to foil my every plan. However they all have their place in the pantheon of software development. Without a […]

Read more
PHP Functions

Grammatically Correct PHP Title Capitalization Function

Sometimes a developer has to get their titles from crazy sources that aren’t always capitalized correctly. Nobody wants to change all these titles every time they show up to make the right words capitalized, so here’s a little PHP function that corrects them all for you: function ucTitle($title){ $title = ucwords($title); $title = str_replace(‘ A ‘, […]

Read more

Fun in the Terminal With Lynx

Fun in the Terminal With Lynx The GNU/Linux command line gives you a lot of small tools that can be connected with each other by piping the output of one tool into another tool. For example, you might see a page with a lot of links on it that you want to examine more closely. […]

Read more

How to look at updated access.log or other log files in linux command line

Go to /var/logs directory or whichever on you want to look tail and try these commands: tail -f /var/log/messages less /var/log/messages more -f /var/log/messages vi /var/log/messages

Read more

How to Install and Setup Apache in Ubuntu

Installing Apache Getting apache onto your Ubuntu machine is easy. Using either the Synaptic Package Manager, Ubuntu Software Center, search and install the “apache2” module. Alternatively, you can open a terminal and type the following command: sudo apt-get install apache2 Once the installation finished, open a browser and go to the URL “http://localhost“. If you […]

Read more

How to install festival for Linux/Ubuntu

Installation Install Festival by typing the following command in a Terminal: [cc lang=”php” tab_size=”2″ lines=”40″] sudo apt-get install festival [/cc] Note: Additional voices are available in the Ubuntu repositories. Type “festvox” in Synaptic Package Manager for a list of language packages. Testing Test your setup by typing in a Terminal [cc lang=”php” tab_size=”2″ lines=”40″] festival [/cc] You will […]

Read more

How to install Maxmind’s GeoIP on Ubuntu/Linux for PHP

provides a useful database and API for server side IP Geolocation. It is useful when you don’t want your server to hang on external services each time fetching a location from an IP address is needed. This posts goes through the installation process of the database with a PHP extension on an Ubuntu platform. I’m […]

Read more