Category: How to

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

How can I tell what is taking up space on my hard drive?

WindirStat I use a great utility called Windirstat that gives you a graphical view of EVERYTHING on your drive, how much space it takes, and more. Each of the colored blocks is data, when you hover the mouse over it, it tells you what it is. For example, the two big red blocks on the […]

Read more

How to Hack Wifi (and how to avoid being hacked): WEP/WPA/WPA2

This guide is meant to show how easy it is to hack wireless networks if the proper security measures are not in place. First I will show how to hack a WEP or WPA/WPA2 Network and then I will give tips on how to avoid getting hacked. This is important information in our techno-savy culture. […]

Read more

Transforming Nintendo 64 into Handheld Console aka Grape 64

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 Any Operating System from a Thumbdrive

This example is being performed in Windows   Insert a USB stick with at least 2GB of free space   The easiest way to get up an running with USB is to use the USB installer provided by pendrivelinux.com. You’ll need to download and install and follow the instructions.   Download Pen Drive Linux’s USB Installer Select Ubuntu […]

Read more

How To: Do a CSS Reset

A useful tool to use when starting a website layout from scratch:     body,div,dl,dt,dd,ul,ol, li,h1,h2,h3,h4,h5,h6,pre, form,fieldset,input,textarea,p, blockquote, th,td { margin:0; padding:0; } html,body { margin:0; padding:0; } h1,h2,h3,h4,h5,h6 { font-size:100%; font-weight:normal; } table { border-collapse:collapse; border-spacing:0; } fieldset,img { border:0; } address,caption,cite,code, dfn,th,var { font-style:normal; font-weight:normal; } ol,ul { list-style:none; } caption,th { text-align:left; […]

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