A blog where Moazzam … rambles

  • PHP and MySQL

    Someone recently sent me a message asking me to explain how to use a database with PHP. So, here it is as an article so everyone can take advantage of it. The following 5 things will be enough for a lot of PHP programmers (and get you started). Connect to MySQL Select the database you…

  • Adding a new post in wordpress

    WordPress is a great tool for blogging. However, sometimes it can be a bit confusing (and cluttered). So here’s my attempt at explaining how to add a new post to your wordpress blog. Below is what you see when you login to the wordpress control panel: And, below is the page where you add/edit blog…

  • The world of programming

    A friend of mine sent me this picture which shows who did what in the field of computing. He found the picture on Smash magazine’s website (don’t know where). But here it is:

  • Setting up your Android environment

    I have seen quite a few posts on some lists asking about how to set up a programming environment for Android. While it is very straight forward, the documentation is all over the place. So, I decided to write this tutorial :). In this tutorial, we will install Android SDK in eclipse (Galileo), we will…

  • PHP and Sabre

    What is Sabre? Sabre is a company that has data of all flight schedules, etc. And, using their system, you can book flights, hotels, rent cars, etc. Getting PHP to talk with Sabre I tried PHP Soap and nuSoap. They both didn’t work for me because of their limitations. So I ended up writing a…

  • Android HttpRequest class (version 2.1)

    Version of of this class had some bugs so I corrected them and here is the latest version 🙂 Enjoy! package moz.http; import java.net.*; import java.io.*; import java.util.ArrayList; import java.util.Enumeration; import java.util.Hashtable; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import java.util.Map.Entry; import org.apache.http.client.HttpClient; import org.apache.commons.*; import android.util.Log; /** * HTTP Request class * *…

  • HTTP Request class for Android (version 2)

    Hi Everyone, After some people pointed out the problems they had with version 2 of this class, I took it all out.  Please go to: http://moazzam-khan.com/?p=490 for version 2.1

  • Removing mywebsearch as the default search engine from Firefox

    If you have accidentally installed myWebSearch as the default search engine for firefox, and want to remove it then do the following : Close Firefox Go to C:\program files\mozilla firefox\chrome\ Delete the files m3ffxtbr.jar and m3ffxtbr.manifest Go to c:\program files\ and delete the mywebsearch folder, if it is there.

  • HTTP Request class for Android

    Here is a class that can be used to make HTTP get and HTTP post requests. I haven’t commented everything but the usage should be pretty clear from the method signatures. Note: This is for Android 1.5. import java.net.*; import java.io.*; import java.util.ArrayList; import java.util.Enumeration; import java.util.Hashtable; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set;…

  • Google Voice Review

    I had signed up for Google Voice a week or so ago and I got an email today saying that I was invited to test it out. So, here is a somewhat detailed review of it. Keep in mind that it is still in testing phase :). How does it work? Google lets you choose…

Got any book recommendations?