Michael H. Hart, The 100, a Ranking of the Most Influential Persons in History MUHAMMAD, No. 1 My choice of Muhammad to lead the list of the world’s most influential persons may surprise some readers and may be questioned by others, but he was the only man in history who was supremely successful on both the […]
Merge/Join Fields and Rows of Tables in MySQL
I was asked the other day by someone about some software that could Join/Merge two tables (fields and rows). I thought it’d be pretty easy with some MySQL query but couldn’t find any solution. Then I turned to google in search of any software or any other source that could help me out… but still […]
Change Filenames to Upper or Lower Case (in bulk) in PHP
Atlast I overcame my laziness and wrote a long overdue script to change filenames. Before writing this code, I couldn’t find a reasonable solution in PHP despite a major search operation. The need, infact, arose when I copied my PHP code from windows to linux machine, and it refused to show alot of images, which […]
Fetch Fields (of one row) from a MySQL Table
I was sick and tired of writing small queries where I had to retrieve one or few or even all records of one row against an id. E.g. when I had a userid and I had to fetch firstname, lastname and/or email against that id, I had to write a query each time and then […]
Sunni vs. Shi’ites & Stretegic Superiority of Israel??? What is this Bush administration upto?
http://www.haaretz.com/hasen/spages/894644.html U.S. officials have said the package – which was announced last month and must still be approved by Congress – is designed to reassure Israel and Sunni Muslim Gulf countries of Washington’s commitment to the Middle East despite its problems in Iraq. It would also strengthen the Gulf nations in the face of the […]
Calculating Age from Date of Birth in MySQL
I was doing some experiments the other day with MySQL and wrote some interesting queries to calculate age using MySQL. Here you go. SELECT DATE_FORMAT(FROM_DAYS(DATEDIFF(NOW(),”1978-03-28″)), ‘%Y’)+0 AS age 1:- DATEDIFF(NOW(),”1978-03-28″) This function DATEDIFF() returns difference of two dates in days, e.g. DATEDIFF(“1978-04-28”, “1978-03-28”) will return 31 days. So by using NOW() i.e. current date, in […]
Simple User Search in PHP
A friend of mine asked me to give him a sample code of some sort for search. He’s a newbie to PHP. I wrote him a piece of code for convenient search and he was like ‘AWSOME!!!’. I thought it was such a simple script that it took me less than 5 minutes to type.. […]
Who were they? Where have they gone?
http://daily.urdupoint.com/todayColumn.php?column_id=3874&page=6&page1=6&writer_id=110&date1=2007-07-16 I literally cried after reading this article. I thank to Almighty Allah that He gave me sufficient enough wisdom to oppose this military action and atleast I’ll not hold myself culprit that I sided with the govt. And I can not imagine how those people would be feeling who had sent messages and calls […]
Another Day At Flying
It had been almost a month since we last went for flying, so I was getting kind of desperate. Along came Sunday and I got ready early morning, collected the flying gear and opened to main door to load the gear in my car….. and uuuuhhhhhhhhh!!! It was dense fog outside. Visibility = 10 meters […]
Improved Flying Skills
I seem to be getting bored with the trainer plane now. Its become so easy now that I feel like playing a video game. 360s… rollovers… mid-air upwards stall… no big deal now… atleast with this plane. Although its not made to do a mid-air upwards stall, but still I managed it… for like 5-6 […]