My Writings. My Thoughts.
JavaScript – The easiest way to clean-up your JavaScript code
// July 28th, 2010 // No Comments » // JavaScript
You can use any desktop tool to clean-up and beautify that poorly formated JavaScript you got from a blog or web resource.
I my case I am working on a JavaScript based event calendar that displays a calendar and highlights the current date with the dates which have events associated with them.
I got this great event calendar thats totally based on JavaScript from this link and it was not formatted correctly. As I had to make a few adjustments to the code as for my needs, I needed it to be correctly formatted so I could work on it. Continue Reading
JavaScript – Adding an pure JavaScript event calendar to your site.
// July 28th, 2010 // No Comments » // JavaScript
You may find this tutorial very useful if you are looking for a way to do a simple event calendar on your site with no dependency on server side scripting.
Please check this simple and elegant way of adding an event calendar on your site.
PHP tip: Best way to get file extension
// July 25th, 2010 // 2 Comments » // PHP, PHP Tips
I tried 100 ways to get the file extension from a complete file path including directories and file name with extension. This one works perfectly. This uses php function pathinfo to get the directory name, filename and its extension for you which is very handy.
Feeling like a Nomad
// July 5th, 2010 // No Comments » // Uncategorized
Even though I am sitting in a better place
Where I don’t have to think of problems I had in homeland, I feel homesick. I don’t even know why
Still I wont deny
The charm of motherland
but,
my accent cannot
return to its song.
Testing zend optimizer encoded PHP applications
// July 4th, 2010 // No Comments » // PHP, PHP Tips
I am working on an expressionengine application these days. As I am using the beta version of expression engine until they release the final version, so the source files are encoded with the zend optimizer. Zend optimizer has a limitation that it can’t work with version 5.3 of PHP so far.
I had the latest XAMPP installed on my Windows VISTA machine for a year now but I found out that Zend optimiser isn’t compatible with version of PHP it provided i.e PHP 5.3, so I downloaded the version 1.6.8 of XAMPP from http://sourceforge.net/projects/xampp/files/ which has the older version of PHP i.e 5.2 which is compatible with Zend Optimizer. Continue Reading
Leaving for Muscat, Oman
// July 1st, 2010 // 2 Comments » // Uncategorized
I am here waiting to board the flight for Muscat, Oman. PIA was no good the last time and hope OmanAir is good. Anyhow, its a good clear day. At least seems like from the air conditioned waiting lounge of the Islamabad airport.
Google search on SSL
// June 1st, 2010 // No Comments » // News
Google search on SSL. Good news. I woke up two hours ago and opened Google for some searchhing and Voila, a new thing every few days. Google in on SSL.
Most of Google Searchers may have recently come to know that Google has publicized SSL version of Google Search. Google SSL doesn’t close the normal http version but Google SSL Search is to provide more secure search service. Continue Reading
Learn from Germans
// April 10th, 2010 // No Comments » // Interesting Stuff, My Friends
We need to learn from Germans. My chat with a friend in Germany
fahd.murtaza: Islamabad bhee gaon hee hai
Shabaz: lolz… Islamabad kidher gaoun hay?
fahd.murtaza: In sense of timings
fahd.murtaza: like the markets close early
Shabaz: ya, but not at 7pm like here in entire germany
Shabaz: 7pm, and even the pharmacies close down
fahd.murtaza: oh Khudaya
fahd.murtaza: yeah kiya karte hain 7 PM ke bad
Shabaz: kuch nahin
Shabaz: dinner fermatay hayn, aur 10pm lites off
fahd.murtaza: wah good
Shabaz:phir 5 am uth jatay hayn
Shabaz: school starts at 6am
Shabaz: and office at 7
Shabaz: humaray sarkaree afsaraan 9 to 5 mein 3 hours lunch, 2 hours tea, 2 hours gup shup aur 1 hour files per sign kertay hayn
Shabaz: yahan 7am to 5pm sirf kaam hota hay, 1 hour luch break
So now I think Islamabad is great
Chrome starts fast
// April 7th, 2010 // No Comments » // Uncategorized
Eid Greetings / عید مبارک
// November 28th, 2009 // 3 Comments » // Bakra Special, Eid-ul-Adha, Eid/ Ead
My heartiest greetings to all my friends
I wish that this Eid brings you happiness. This is a time of thanksgiving and we should all be thankful to God for giving us an opportunity to be with our families once again and celebrate the togetherness.





