Warning: strpos() [function.strpos]: needle is not a string or an integer in /home/fsimzo2/public_html/akzah/blog/index.php on line 33
Akbar Sherwani - Developer Blog
Regular Expressions
Sunday, March 28, 2010, 03: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.

[ add comment ]   |  permalink  |   ( 3 / 39669 )
Server New Build
Friday, December 18, 2009, 04:44 PM
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).



[ 1 comment ] ( 3 views )   |  permalink  |   ( 3 / 39273 )
GPS Inflight
Thursday, November 12, 2009, 04:50 PM
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?

[ 3 comments ] ( 103 views )   |  permalink  |   ( 3 / 39341 )
Review Wedding
Sunday, October 5, 2008, 05:06 PM
I have created a new website called Review-wedding.com

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

Review Wedding

[ add comment ]   |  permalink  |   ( 3 / 35506 )
ASUS M2N4-SLI & XFX 8600GT 512MB
Sunday, August 17, 2008, 08:17 PM
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 ] ( 5 views )   |  permalink  |   ( 3 / 32266 )

Next