Regular Expressions
Sunday, March 28, 2010, 10:53 PM
Haven't done regular expressions since University and even back then they gave me nightmares.

Had to use regular expressions in PHP to add a css class to doucument with <a href> tags.

After an hour of playing around finally got it to work

$data = preg_replace("/\<a href=\"(.*?)\"\>/",
"<a href=\"\\1\" class=\"greenlink\">",$data);

Not too bad once you know what to do.

[ 245 comments ] ( 54515 views )   |  permalink  |   ( 3 / 44833 )
Server New Build
Saturday, December 19, 2009, 12:44 AM
The server in my room is now ready for its long awaited upgrade.

The box is going to run Windows 7, requirements were to be able to run ANRB 24/7 and for it to be quieter than 32dba.

ASUS V4-M3N8200 Barebone for AM2 with HDMI Output
AMD Athlon II X2 235e 2.7GHz Socket AM3 2MB Cache Energy Effifient
Crucial 2GB DDR2 800MHz/PC2-6400 Memory Non-ECC Unbuffered CL6
Sony AD-5240S 24x DVD±RW DL Internal SATA Black Bare Drive
Western Digital WD5000AAKS 500GB SATAII 7200RPM 16MB Cache
Xilence Quad Core Socket AM2 754 939 940 CPU Cooler
Xilence Red Wing 80mm Quiet Fan - 3&4pin connection

Parts have been ordered. Will be intresting to see how it all comes together (if it does).

[ 2875 comments ] ( 20825 views )   |  permalink  |   ( 3 / 44038 )
GPS Inflight
Friday, November 13, 2009, 12:50 AM
I have been trying to use my GPS on my phone to track some of my flights. I assume it would work without any issue. However on each occasion it would track fine on the ground, departure and then cut out untill the approach.

Confused I came across the quote below:

The biggest headache for GPS systems is the time it takes for the signal to get from the satellite to your receiver. The 6 satellites you get signals from will all be at different distances from you and are rotating the earth at high speed. So the signals your GPS receiver gets will not automatically be time synchronized. Because of this problem, the military has limited civilian GPS units so they don't work if they are moving faster than 900 knots or above 60,000 feet in altitude. But most non-aviation GPS units will give error messages if you are moving faster than 90 miles per hour. Clearly, if you are standing still, a GPS will be a lot more accurate.

This seems to make sense, as pretty soon after departure the speed would be around 90kts (104 mph).

Intresting, I wonder whether I can get around this or get the error plots?

[ 2007 comments ] ( 132252 views )   |  permalink  |   ( 3 / 44065 )
Review Wedding
Monday, October 6, 2008, 12:06 AM
I have created a new website called

Aimed at reviews for locations for weddings at first and then hoping to expand if its popular.

Review Wedding

[ 2563 comments ] ( 8875 views )   |  permalink  |   ( 3 / 40247 )
ASUS M2N4-SLI & XFX 8600GT 512MB
Monday, August 18, 2008, 03:17 AM
Well my Mesh machine crashed earlier this week (it had been doing this recenetley) with a blue screen of death. On restarting I heard One Long beep followed by Two short beeps.

This means in BIOS POST terms that is a Video Card error. Annoyed I said well I have SLI config of two 7300GS's so I will take one out one by one and etc.. However no such luck so I decided to buy the XFX 8600GT but even then it did not work.

After thinking of buying a new pc, I decided to check the net where some people mentioned to check the ram. Hooray I found the socket one with the ram is either faulty or the ram is.

Once everything booted up I tested the new graphis card with FSX and was very impressed, no more stutters and settings could be turned up to 100% (yes 100%!!! :) )

Loving the XFX 8600GT 512mb and will be ordering some new ram. Also cleaned out the case of dust and the AMD Core is idle around 32C and under high load it reaches the high 40Cs which is perfect!

[ 4 comments ] ( 16 views )   |  permalink  |   ( 3 / 36717 )