My first crossover cable. I used the following diagram from Tournas Dimitrios' Blog: So the normal ends of the cable is wired as T-568B as shown above on the right. So I cut one end and manipulated the wires as shown on T-568A above: Cut the... » More
I had this error message when uploading images in WordPress. Image dimensions were set to 0x0 and the thumbnails did not appear. A quick scan of the Apache logs PHP Warning: ... » More
The following scripts can help in determining good values for Apache and MySQL configurations based on the amount of memory available: MySQL Tuner Apache Tuner Apache Buddy The following will give a list of Apache Modules loaded: apachectl... » More
I had a text file with multiple lines of input that I was manipulating using awk and sed but I found the following 'tr' command easiest to remove the line breaks:
cat input.txt | tr -d '\n'
The configuration directive below is one I used to protect multiple URLs with a htpasswd file. So match (~) /url01/ or (|) /url02/ or (|) .... <Location ~... » More
The version of Bind in the normal Red Hat / CentOS repositories is a little out of date. To get more up-to-date versions (9.7.4 at the time of writing) use the Centalt and EPEL repositories. Create the following file: vi... » More
This tool from pendrivelinux.com is a useful utility to help create a bootable USB pen drive with a menu system for booting into multiple operating systems. It works from within Linux/Ubuntu although there is a Windows tool available too. Useful for... » More
I was helping someone with some jQuery to read XML files of Shakespeare plays and this is what I came up with. Very incomplete but he so I can reference it in future.... shaXpeare... » More
Creating customised content based on the origin country of your website visitors requires installing the mod_geoip module for Apache and also the MaxMind GeoIP database as follows (on CentOS): mkdir ~/geoip cd ~/geoip wget... » More
So I wanted to create screenshots of my HTC Hero Android phone from my Ubuntu desktop. So I ... downloaded and extracted the android sdk to e.g. ~/programs cd into the ./tools directory run the ./android program Install any version specific... » More