Archive for April, 2008

Adsense Split Testing Results for 250×250 vs 300×250

If you remember back to the post I wrote, Using PHP to Determine Which Adsense Ad Works Best, we explored ways to split test the performance of Adsense with the help of PHP. I had also promised to share the results of my testing for the month of April. Below are my results. Read more »

Creating Useful Bash Aliases

Bash can be configured to recognize any word you want and link it to a command. This is called an alias. This is can be used for many reasons. For instance, you could assign a short word like dvdbackupnow to execute a very long command that you don’t want to memorize each time you want to back up a DVD. We will explore a few useful aliases and how to add them to bash. Read more »

Encrypt a File on Linux or FreeBSD with GnuPG

If you ever wanted to quickly encrypt a file in Linux or FreeBSD without complicated keyrings and key files this is the post for you. In this guide we will use gnupg to quickly encrypt any file in Linux or FreeBSD. We will keep it simple and easy and leave out public/private key ring authentication and stick with simple password phrase encryption. Unlike password protection in zip files and other weak security implementation, PGP or GnuPG is a very secure way of encrypting files. It is pretty easy to set up so lets get going. Read more »

Numbering Each Line in a Text File

Sometimes we are given an error message that references a line number in a text file. We can number each line so we can find the error message right a way. In fact, we can print out the exact line that contains the error. This is often useful for finding errors in PHP. If there is an error in the syntax of PHP it will give you the line number it is on. Often times I don’t work in an environment that shows line numbers and I am not about to count each line by hand. Read more »

Weekend Link Roundup: Week 5

BSDTalk - A cool podcast that discusses FreeBSD. They interview many FreeBSD developers and have some interesting discussion.

The 7 Habits of Highly Effective Linux Users - An interesting article with 7 great tips for beginners learning Linux. Although the advice the author gives is very basic and common knowledge, he explains his advice very well. I think Linux beginners would get a lot of value out of reading this. Read more »

Finding Ports to Install in FreeBSD

FreeBSD is founded on the idea that compiling is faster/better than using pre-made packages. To make compiling easy FreeBSD uses a “package management” system called ports; however, it is difficult to find the port to compile since FreeBSD’s package management system is really just empty directories with build instructions. These directories are categorized by the package application so that you can browse them, but it is difficult sometimes to find a package. Read more »

First Time Upgrading FreeBSD

If you remember from my post on my Initial Impression of FreeBSD 7.0 I am fairly new at using FreeBSD. After my recent Wordpress SQL Injection Attack I went around updating everything that I could get my hands on. A FreeBSD server happened to be one of those things that need updating. Read more »

SQL Injection Attack and Updating Wordpress

Well, today one of the blogs that I maintain for someone was compromised by an SQL injection. The hacker had apparently injected an invisible iframe that contained that loaded a website that contained a trojan. They had also placed invisible links to casinos, porn, and other shady sites. Read more »

Next Page »