Pakistan, Japan, Linux and lots more
Tuesday 27th March 2007
Mobile phone number portability
As of yesterday, you are no longer restricted to the service provider that your cell phone's prefix belongs to. Number portability is here and you may continue to use that same number you've had for years with any service provider. There is an interesting FAQ about number portability over at Djuice.PK Mobile Phone Blog. Worth a read.
I think the biggest company to suffer from this move would be Mobilink, the current giant when it comes to the number of subscribers. Though they have the largest customer base, their services probably can't compare to those from newer providers such as Warid.
A large number of people will probably continue with their current connections since more than the service, it depends largely on what your friends and people in your address book are using. But once a large enough number of these people have moved, we are likely to start seeing even more people switching service providers.
This development has brought up a number of questions in my mind. Such as how will you know what service a person is using? Will there still be an incentive for those using the same service? What will be the default number prefix for service providers? And will we start seeing entirely new number sequences that don't belong to a particular provider?
Whatever the case, things are starting to look bright for the consumer. I hope this competition also hastens the arrival of new mobile technologies, such as 3G.
Reminder for reading
Though I really love to read, I hardly get enough time for it, which goes double for writing. This post on Confessions of a sophisticated writer served as a reminder that it has been a while since I did any serious reading. The list of 100 books is an interesting one and though I have read only a few, I must have seen a number of movies based on a large number of the rest.
Here is my marking of the 100 books mentioned. I have made an addition of underlining those that I remember having seen picturized. As you can see, my reading record is quite pathetic and I am far behind most people in this area:
*Look at the list of books below.
*Bold the ones you’ve read.
*Italicize the ones you want to read.
*leave same the ones that you aren’t interested in.
*Underline those that you have seen a movie adaption of
*If you are reading this, tag you’re reading it.
- The Da Vinci Code (Dan Brown)
- Pride and Prejudice (Jane Austen)
- To Kill A Mockingbird (Harper Lee)
- Gone With The Wind (Margaret Mitchell)
- The Lord of the Rings: Return of the King (Tolkien)
- The Lord of the Rings: Fellowship of the Ring (Tolkien)
- The Lord of the Rings: Two Towers (Tolkien)
- Anne of Green Gables (L.M. Montgomery)
- Outlander (Diana Gabaldon)
- A Fine Balance (Rohinton Mistry)
- Harry Potter and the Goblet of Fire (Rowling)
- Angels and Demons (Dan Brown)
- Harry Potter and the Order of the Phoenix (Rowling)
- A Prayer for Owen Meany (John Irving)
- Memoirs of a Geisha (Arthur Golden)
- Harry Potter and the Philosopher’s Stone (Rowling)
- Fall on Your Knees (Ann-Marie MacDonald)
- The Stand (Stephen King)
- Harry Potter and the Prisoner of Azkaban (Rowling)
- Jane Eyre (Charlotte Bronte)
- The Hobbit (Tolkien)
- The Catcher in the Rye (J.D. Salinger)
- Little Women (Louisa May Alcott)
- The Lovely Bones (Alice Sebold)
- Life of Pi (Yann Martel)
- The Hitchhiker’s Guide to the Galaxy (Douglas Adams)
- Wuthering Heights (Emily Bronte)
- The Lion, The Witch and the Wardrobe (C. S. Lewis)
- East of Eden (John Steinbeck)
- Tuesdays with Morrie(Mitch Albom)
- Dune (Frank Herbert)
- The Notebook (Nicholas Sparks)
- Atlas Shrugged (Ayn Rand)
- 1984 (Orwell)
- The Mists of Avalon (Marion Zimmer Bradley)
- The Pillars of the Earth (Ken Follett)
- The Power of One (Bryce Courtenay)
- I Know This Much is True (Wally Lamb)
- The Red Tent (Anita Diamant)
- The Alchemist (Paulo Coelho)
- The Clan of the Cave Bear (Jean M. Auel)
- The Kite Runner (Khaled Hosseini)
- Confessions of a Shopaholic (Sophie Kinsella)
- The Five People You Meet In Heaven (Mitch Albom)
- Anna Karenina (Tolstoy)
- The Count of Monte Cristo (Alexandre Dumas)
- Angela’s Ashes (Frank McCourt)
- The Grapes of Wrath (John Steinbeck)
- She’s Come Undone (Wally Lamb)
- The Poisonwood Bible (Barbara Kingsolver)
- A Tale of Two Cities (Dickens)
- Ender’s Game (Orson Scott Card)
- Great Expectations (Dickens)
- The Great Gatsby (Fitzgerald)
- The Stone Angel (Margaret Laurence)
- Harry Potter and the Chamber of Secrets (Rowling)
- The Thorn Birds (Colleen McCullough)
- The Handmaid’s Tale (Margaret Atwood)
- The Time Traveller’s Wife (Audrey Niffenegger)
- Crime and Punishment (Fyodor Dostoyevsky)
- The Fountainhead (Ayn Rand)
- War and Peace (Tolstoy)
- Interview With The Vampire (Anne Rice)
- Fifth Business (Robertson Davis)
- One Hundred Years Of Solitude (Gabriel Garcia Marquez)
- The Sisterhood of the Travelling Pants (Ann Brashares)
- Catch-22 (Joseph Heller)
- Les Miserables (Hugo)
- The Little Prince (Antoine de Saint-Exupery)
- Bridget Jones’ Diary (Fielding)
- Love in the Time of Cholera (Marquez)
- Shogun (James Clavell)
- The English Patient (Michael Ondaatje)
- The Secret Garden (Frances Hodgson Burnett)
- The Summer Tree (Guy Gavriel Kay)
- A Tree Grows in Brooklyn (Betty Smith)
- The World According To Garp (John Irving)
- The Diviners (Margaret Laurence)
- Charlotte’s Web (E.B. White)
- Not Wanted On The Voyage (Timothy Findley)
- Of Mice And Men (Steinbeck)
- Rebecca (Daphne DuMaurier)
- Wizard’s First Rule (Terry Goodkind)
- Emma (Jane Austen)
- Watership Down (Richard Adams)
- Brave New World (Aldous Huxley)
- The Stone Diaries (Carol Shields)
- Blindness (Jose Saramago)
- Kane and Abel (Jeffrey Archer)
- In The Skin Of A Lion (Ondaatje)
- Lord of the Flies (Golding)
- The Good Earth (Pearl S. Buck)
- The Secret Life of Bees (Sue Monk Kidd)
- The Bourne Identity (Robert Ludlum)
- The Outsiders (S.E. Hinton)
- White Oleander (Janet Fitch)
- A Woman of Substance (Barbara Taylor Bradford)
- The Celestine Prophecy (James Redfield)
- Ulysses (James Joyce)
Time to grab some books and force some time out for them.
Monday 26th March 2007
Another website for anonymous browsing
In my quest to design/create/borrow and then run as many sites as I can (both for curiosity's sake and to try to make a difference), I've added another web-based browser or anonymous proxy if you want to call it that. Off course, calling it another ploy to make money from ads would also not be too inaccurate, though that isn't as lucrative as it may seem.
I present to you, the web cruiser, a tool for browsing (or cruising) the Internet anonymously. Like most of my designs, the front page was just something I patched up together and experimented to see what caught my eye. I hope I can be forgiven for my designs being somewhat bad. I admit that this isn't where my strength lies (at least not since I was a kid).
As for the underlying tech, I have a good idea for a distributed system that I'll implement depending on how successful this one is.
Let the "cruise" begin.
Sunday 25th March 2007
A slow Pakistan Day
I remember a time when I was a kid who eagerly awaited the month of March whenever in Pakistan. Even before the month started, troops and tanks would start gathering around what is now the sight of the luxurious Centaur hotel and the adjoining shopping mall and they would start practising in the then quiet areas of the capital. A few days before the national day, air force jets would also start practising their tricks above the capital and everyone would be out to catch a glimpse of them.
How things change. Though the 23rd March parade, which features everything from tanks, guns, troops and aircraft to various student organizations and all kinds of artists, didn't materialize for the past few years, it was set to happen this year. But the enthusiasm of everyone seems to have vanished. It was just another boring holiday which most people (including yours truly) loathed. The fancy parade was held within the confines of the sports complex instead of out in the open in front of the presidency. I doubt many people even bothered to see it on the tele.
To sum things up, Pakistanis seem to be more occupied with their lives and have little time or will to bother with such festivities. All the security measures and the terrorist threat have taken their toll as well. Then the recent political crises have greatly reduced the popularity of the government and catching a glimpse of our glorious leaders isn't everyone's priority.
On the positive side, the event was more scaled down and didn't have as much of the national budget thrown at it as compared to times past. And off course there should be no restraint in awarding medals and honors to those who truly deserve them. Maybe they should consider holding more constructive events on such occasions to involve all of us who are increasingly finding such times devoid of anything positive.
Oh and Happy belated National Day.
Friday 23rd March 2007
Care for a hairburn?
Via BoingBoing, here's a barber who uses fire to style his customers' hair:
Wonder how he ensures that they're not using flammable hairgel.
Friday 16th March 2007
Law of the land
The streets of Islamabad are very quiet for a Friday night. The shoppers, eaters and those simply enjoying the start of the weekend are not even half the normal crowd. It all seems to be the result of today's events.
Protesters were out in full swing and this time it was more than the usual Mullas angry about some insignificant event somewhere far away. This time, the cause was much closer to home and everyone who had a quarrel with the government, including the Mullas, exploited it to the fullest.
It has been about a week since the President suspended the Chief Justice and today was his second appearance before a tribunal to face the charges brought against him. Maybe the CJ did misuse his powers and maybe he didn't. But the way things were done has really put the government in the firing line and it appears that this time, the result will not be a very good one for it.
To make matters worse, security forces were shown breaking into the offices of Geo TV, the country's top private news channel. It is rumoured that the forces were trying to rescue one of their comrades who had been taken inside and beaten by protesters, but it isn't what the witnesses and the video clip say and Geo is using this to show what freedom of the press really is in this country.
The whole thing may have been overblown, but it just goes to show how badly the present government is handling the situation. Though the President has said that he will accept the decision of the Supreme Court, it is unlikely any of his critics will and things may deteriorate even further.
BBC's coverage here.
Communications blackout or coincidence
We just recovered (partially) from an hour long outage of all mobile and Internet connectivity. Connectivity and redundancy of networks is much better now compared to roughly two years ago when we faced a 2 week outage of international connectivity when the SMW3 fiber cable was cut, the sole Internet carrier at that time. Now there are a number of alternatives available, but what are the chances of all going down at once and all across the country?
I wonder if this could have anything to do with today's scheduled court hearing of the sacked Chief Justice and the countrywide protests that are taking place. Things are really heating up and the government seems to be on a roll when it comes to making blunders. What good can come out of making these silly mistakes and still claiming to be free, open and democratic is anybody's guess.
I had been a big fan of the prez in the khakis, but things don't look too good anymore.
Sunday 4th March 2007
Comment spam solution
Ever since my last post about the subject, I have managed to reduce comment spam on this blog by a significant margin. There were a number of methods that I applied and I will attempt to explain them here, though I won't go into so much detail that it can be used to circumvent these mesaures.
First of all, I disabled links back to the commenter's website. That is unless it is a registered site that I have already approved. A number of spammers and abusers were using this to point back to their sites which were either spam or phishing sites or contained malicious code for various uses.
Secondly, I removed the motivation for putting up comment spam by removing the link code on all posts (except those by registered users). This can easily be done in Python through either the sgmllib module or the re module's "sub" method. Once you remove the link code, all that will be posted is the URL itself without being an active link. Since this is not the aim of comment spammers, it can act as an effective deterrent.
Another method that I implemented was to count the number of links in the post and have the whole post discarded in case it contains a high proportion of links. This is checked before the link code is removed, as described above. I still get a notification of these posts, but so far there has not been a single false positive. This has made it much simpler to handle the spam. I can just discard all comments marked as comment spam.
Something that would be relatively difficult to implement with most other blogging software is changing the form input "names" on the comment form on a periodic basis. This stops spammers from "learning" how your comment system works and using automated tools to directly POST comments. This method helped me cut down on a huge amount of comment spam the last time I changed the values.
I must admit that all this hasn't stopped spam completely, but it has helped a lot. Some other methods that could be used include the use of picture verification codes, using Bayesian algorithms to identify spam and implementing an approval system (using Mailman maybe?). Anyway, I'll leave those for another day and when I have enough time to work on them.
Friday 2nd March 2007
Worlds 2nd tallest building planned for Karachi
I just read this post on All Things Pakistan about plans for a 1947 feet building in Karachi. 1947 was the year of independence for Pakistan and holds a lot of significance, but 1947 feet (or 593 meters) seems like an unrealistic and overambitious target for a country with some serious problems. It's economy has only recently stabilized and still has a long way to go, terrorism is becoming a major threat and poverty is still rampant.
For comparison, 1,947 feet is taller than all current buildings in the world, including Taipei 101 (1,671 feet/508 meters including spire) and the Sears Tower (1,729 feet/527 meters including spire). It is also taller than those under construction with the exception of Burj Dubai whose actual height is yet to be disclosed, but will likely be above 2,600 feet.
Though ambitious projects such as this Karachi project and the Centaurus in Islamabad do represent lots of optimism and maybe some vision, they seem more like pipe dreams. It may be prudent to concentrate on building up a strong economy and tackling the menaces of terrorism, sectarian violence and human rights abuses before embarking on such feats.
Thursday 1st March 2007
Linux multiplayer gaming
The past year or so must have been the longest I have gone without gaming (simple flash or card games once in a while don't count). I'm into both first-person shooter and strategy games, but it has been a while now. I hardly ever use my desktop PC which has a pretty decent graphics card (even by today's standards) and enough power to run the games without issues and although the laptop is better powered in other areas, there was this apprehension that it won't be suitable for gaming.
I resubscribed to Transgaming recently and got the latest version of Cedega which allows you to run Windows games under Linux through a sort of emulation. I also made sure they didn't double charge me like last time, but when it came to trying out some of the latest games, I couldn't find any decent ones.
Counter Strike is a pretty old game now, but it's still loads of fun and one of the few games that will run on everyone's laptop, including the lowly Pentium IIIs. We have even setup teams for it within the office and it is running very well on my laptop (Pentium M 1600MHz, 512MB RAM). By this time, there may even be a Linux client for it, but I haven't seen any so Cedega it is.
At first I tried playing using the laptop's pointing device, but that was quite unbearable (though Riz seems to be quite effective with it). Then I tried my Logitech trackball which is excellent where accuracy is required (sniping for example), but not very good for assault. Now I've dug up an optical Logitech mouse that I had at home which is working out nicely.
My other favorite, Warcraft III, is supposed to work very well since it is well-tested and fully supported by Transgaming, but for some odd reason, it is too slow to be playable. I'll have to try harder to solve this issue. Other games on my "toplay" list include Half Life 2, Oblivion and some car or bike racing game. And multiplayer gaming can't be complete without Quake III.