Random Chusses…

Blogging dangerously…

Tandoori nights

with 8 comments

heat

Finally the heat is upon us in the land of the pure. With great heat comes great responsibility. A responsibility to survive, to die another day. 22nd of June, the day it happened, the longest day of the year brought with a heat to remember. The day my friend Chaukas Khan coined the phrase tandoori nights to accurately sum up the situation. This period of 3 months is the best time of the year for the people of the desert plains. The desert heat coupled with unremitting heat make a great combination. Its a period of trial, when their powers of endurance and survival skills are tested beyond limits. In these months of fire its not about living the life, its about survival. Its about going back to your basic instincts, about life and death.

When the sun shines all day, the nights that follow are tandoori nights bringing no respite for those who want to rest. Heat is your only companion dripping from the walls, taking you for a spin. Its all about remembering your loved ones, picturing them in your mind when trying to survive the next hour. The trick is in hour by hour survival. Don’t look beyond the hour. Stock up on lot of water bottles to help ease the pain. At times you may lose all will to survive. You might hear yourself saying what the heck, its all futile. The torture is too much for me to handle. Why don’t I just die and end the misery. For times like these you must stock up on some good memories that will help you through the journey of pain that are the tandoori nights. There will be times when you might think these nights are eternal but you must have faith. Tandoori nights are long but they do end eventually. And when the sun rises, pat yourself on the back. You survived against all odds. You should be proud of your achievement. Take a shower (if you have water i.e. :) ), wash that stench of the tandoori nights off your body, and go to work. After all, what doesn’t kill you makes you ’stronger’…

Written by Daud Ahmad

June 25, 2009 at 1:36 pm

WorldCall EVDO not available in Lahore Cantt yet

with one comment

world-call_107x96So WorldCall launched their USB EVDO thing on 25th May in Lahore. Read all about the packages etc. here. Its supposed to be a pretty nifty service offering ‘broadband Internet’ through a USB. Just the kind of mobility I was looking for. They’re charging 3k as ‘activation fee’ and 1.8k/month for a 512K connection. Not sure if it’ll run on my Linux installation though. Anyway after visiting their shop I found out that its not yet available in Lahore Cantt because the army won’t let them plant any towers here. Maybe asking for a little too much money. So I guess I’ll have to wait until they pay off the khakhis, or maybe I could get this PTCL EVDO. This one also have a USB version…

Written by Daud Ahmad

June 1, 2009 at 12:42 pm

Posted in internet, lahore

Tagged with , , , ,

What happened to ‘the others’?

leave a comment »

So the 5th seson of Lost came to a wierd end with the The Incident. An hour and half of craziness ending with Ben finishing off the immortal saviour and protector of the Island, Jacob. Apparently Jacob is some kind of human God or something like that. Anyway what ever happened to ‘the others’. In the 3 years without Ben they’ve become so meek and submissive. They looked like the lost sheep of Moses. Where did the real  others go. Ones that had passion and fire. Those who were raring to break bones and kill without a second thought. Just look at those of 1970s. People like Charles Widmore and Penelope Widmore, shooting people up for no reason, even killing her own son in the process. That guy on the horse that banged up Jack and Kate, he had some passion for his job.

And then Ben’s guys and girls, the way they moved through the jungle, the way they infiltrated and kidnapped the survivors of Flight 815. That was some scary, cold blooded stuff. This is why Ben was such a great leader. Under his leadership they had a purpose. They were the protectors of the Island, serving Jacob.  Ready to do any crazy thing he wanted done. But the three years without Ben has made them so weak and feeble, following ‘John Locke’ like a bunch of puppies. That’s what happens when you lose a leader of Ben’s calibre. That’s why he’s my favourite Lost character. Way to go Ben! If Jacob deserved to die, he deserved to die at your hands.

Written by Daud Ahmad

June 1, 2009 at 1:48 am

Posted in TV

Tagged with , , ,

Connecting to the Internet on Ubuntu using Nokia E51 as modem

with 4 comments

ufoneSo lets say you have a brand new (or you know, slightly used) Nokia E51 phone. You looked it up, saw it had some cool features, all that smartphone stuff etc. So you buy it and now you want to connect your laptop to the Internets using it as the modem. Well its not very hard to do on Windows because Nokia provides Windows users with the Nokia PC Suite which makes connecting to the Internet a piece of cake.
But in Linux or Ubuntu specifically, because that’s what I use, we can use the wvdial utility to connect to the world wide web. For that we need to install wvdial (if its not already in the system). Since you aren’t connected to the Internet on Linux yet, find a Windows box or if you’re dual booting fire up that trusted Windows XP (or Vista if you’re one of those people) and download it from http://packages.ubuntu.com. Be sure to download all the dependencies as well. Once you have wvdial just create a new wvdial.conf file at /etc. And fill it up with the following:


[Dialer Defaults]
Modem = /dev/ttyACM0
Baud = 460800
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","ufone.pfinternet","",0,0
ISDN = 0
Modem Type = USB Modem
Phone = *99#
Username = "blank"
Password = "blank"
Stupid Mode = 1

|
Since I’m a Ufone subscriber (unfortunately) I’ve used its APN i.e. ufone.pfinternet. If you have a different provider use theirs. If you’re already using GPRS on your phone then you can find it in your phone’s connection settings. And if the username and password are blank use “blank”, otherwise type in the correct credentials. Now fire up a terminal and type:

sudo wvdial

|
Give your password and if successful should show some output like this:


--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT+CGDCONT=1,"IP","ufone.pfinternet","",0,0
AT+CGDCONT=1,"IP","ufone.pfinternet","",0,0
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Sun May 17 13:07:08 2009
--> Pid of pppd: 8662
--> Using interface ppp0
--> pppd: ���  ��  ��
--> pppd: ���  ��  ��
--> pppd: ���  ��  ��
--> pppd: ���  ��  ��
--> local  IP address 10.2.85.37
--> pppd: ���  ��  ��
--> remote IP address 10.6.6.6
--> pppd: ���  ��  ��
--> primary   DNS address 172.16.13.219
--> pppd: ���  ��  ��
--> secondary DNS address 58.65.175.74
--> pppd: ���  ��  ��

|
If the connection process breaks then check your credentials and APN. Most likely one of them is wrong. Fix it and try again. I’ve tried this procedure successfully on both Ubuntu 8.04 and 9.04. Although in 9.04 when you connect your phone to the PC using a USB cable, a dialog will pop up asking you if you want to connect to the Internet using your phone. It provides a very convenient GUI interface to do the same thing wvdial does. But for some reason it gives me slower speeds so I had to go out and install wvdial and now mostly I use that. A word about the Ufone GPRS/EDGE services in case you didn’t know it already, it kind of sucks. Also using your phone as a modem for long periods can result in decreased battery and phone life and a general disturbance in the force. So be careful…

Written by Daud Ahmad

May 17, 2009 at 4:18 pm

Modifying dropdown tooltips using JQuery

leave a comment »

jquery_avatarFinally got to try out some more JQuery goodness in an Asp.Net project at work. The width of the drop down was little too short for the user to see the whole text. So we decided to show it all in the tooltip instead. That meant modifying the title property of the HTML drop down. So I added the following the $(document).ready event handler. The function retrieves the drop down by its ID and iterates over it using the nice .each() provided by JQuery and sets the text to the title. Nice and easy. JQuery is cooool. Write less, do more.


$(document).ready( function() {
  $("#dropdown").each(function(index) {
    $(this).attr({
      title: $(this).text()
    })
  });
});

a

Written by Daud Ahmad

April 24, 2009 at 12:49 pm

IE8 gets a new View Source

leave a comment »

ie8-logo1So IE8 finally got released the other day and I decided to install it. After grabbing the 16MB installer from the Microsoft web site I had to restart the computer of course and there it was in all its glory…the most sophisticated explorer of the internets known to mankind…version 8. I don’t really need it to explore the internet. It’s just a requirement for my software supporting needs since I mostly do Asp.Net stuff which is of course only Internet Explorer 6 compatible. These apps don’t usually work on newer versions of explorer due to a variety of unknown reasons. Something to do with standard HTML.

Anyway, the thing that I really hated about previous versions of explorer was the View Source. That’s about the only thing I actually ended up using for my meagre programming needs. The source opened up in Notepad which is a seriously out dated piece of software with absolutely no sytax highlighting. All I wanted was syntax highlighting. That’s the the mosic basic and probably the only thing one needs from a source viewer. How hard is that? But thankfully IE8 gets a syntax highlited source viewer. So now that HTML looks like this.

ieviewsource1

Instead of this:

notepad

Which is quite an improvement. Plus IE8 also has some development tools like javascript debugging and stuff. Haven’t used them yet though…maybe some day…

Written by Daud Ahmad

April 17, 2009 at 10:30 pm

Firefox and Chrome

with 3 comments

chromeNow that the browser wars are set to begin again, I finally decided to try out the new Google browser. It’s not exactly new anymore but me being a faithful Firefoxian, I never really tried it before. Until now, and man, is it fast or what? I’m completely blown away with its speed. In front of this young cheetah of a browser, Firefox looks like an old man grasping his last breaths. While Firefox is trying to get up on its feet chrome is running around loading up sites like nobody’s business, executing scripts and rendering funky HTML. I don’t even have that many extensions installed on Firefox anymore. Only the bare minimum that I can’t live without like AdBlock, fireguestures and a couple more. But despite this the fox needs at least 10 minutes to load itself up. And then continues to hog memory. And having too many tabs open adversely affect its performance, it starts getting stuck every five minutes.firefox-logo

So does this mean I’m going to switch to Chrome completely. Probably not. I now do all my regular browsing on Chrome, and when I need to quickly fire up a site. But for reading the blogs I subscribe to I need Firefox since guess what? Chrome doesn’t support RSS feeds. Why? because they want you to go use that Google Reader thing. While Google Reader is great for some heavy duty feed reading I just need a simple solution. I can even live with the Ads or without the mouse guestures but I need those feeds. Lack of a built in RSS reader for me is the deal breaker here. In the meantime, I did however get this Firefox theme that makes my Firefox look a lot like a Chrome, maybe not in function but certainly in looks…

Written by Daud Ahmad

March 29, 2009 at 10:27 pm

Taking on Sufi Muhammad…or not…

with 6 comments

Ejaz Haider asks in his column at daily times whether the newly restored CJ can or will take on Sufi Muhammad in the near future. Sufi Muhammad as we all know is the founder of the Tehreek-e-Nafaz-e-Shariat-e-Mohammadi who has now renounced voilence and vowed to bring peace to the Swat region through talks with Maulvi Fazlullah and his followers. He recently signed a peace deal with the NWFP government allowing for the implementation of shariah law in the Swat region. Of course nobody really knows what kind of shariah will be implemented. The details of the deal are a bit sketchy. At first we heard that there would be some kind of parallel legal system where one could go to either the shariah courts (which would follow the Islamic shariah of course) or the civil courts following the Pakistan penal code. But apparently Sufi sahab has ‘asked’ the civil judges not to attend courts anymore.

He said, “I will personally monitor the hearings of Shariah courts.”

Addressing a press conference here he said, “According to the deal signed with government, civil judges will have no role in future whatsoever and all cases will be followed under Shariah courts so the civil judges must refrain from courts from Tuesday.”

“Shariah has already been imposed in Malakand Division therefore there is no need of Presidents’ signature”, he remarked vowing, “We will soon setup Dar-ul-Qaza courts for filing appeals against the verdicts of Shariah courts.”

So as tazeen has asked rightly why isnt’ anyone protesting against this edict. Apart from Altaf Hussein i.e. That’s because the majority of Pakistanis at some level want shariah to be imposed in Pakistan. Most of the people I’ve talked to think that’s the only way to solve the country’s ailing problems. In fact some of them are waiting for Sufi Muhammad to finish his job in Swat and do the same in Punjab and other provinces. It’s the people’s will. The same people who helped CJ get back on his seat. So, no! CJ cannot stand up against Sufi Sahab even if he wanted to…

Link: Sufi Muhammad’s interview with daily times What has happened in the past should not be discussed. (President Zardari and Mian Sahab would certainly agree with that.)

Written by Daud Ahmad

March 19, 2009 at 2:12 pm

Murder of Ahmadi doctor husband and wife in Pakistan

with 12 comments

Got this really really dreadful news today. A doctor couple belonging to the Ahmadiyya Muslim Jamat brutally and senselessly murdered in the Pakistani city of Multan, in Southern Punjab. Ahmadiyya.com.pk has posted more details.

It is with great pain that the Ahmadiyya Muslim Jamaat confirms that two of its members were brutally murdered in Multan yesterday. The deceased, Dr Shiraz Ahmad Bajwa and Dr Noreen Bajwa were husband and wife and were both trained as doctors. Both martyrs were under the age of forty.

Yesterday at around 2.30pm local time, unknown assailants attacked Dr Shiraz and Dr Noreen at their home in Wapda Colony, Multan Road. The assailants first taped together the hands, feet and mouths of both victims. They then tied rope around their necks and strangled them to death. Following death Dr Shiraj was hung from a nearby fan.

The brutality of these murders was further exacerbated by the fact that Dr Shiraz and Dr Noreen were expecting their first child.

Dr Shiraz was an eye-specialist who had served at various hospitals including the Fazl-e-Umer Hospital in Rabwah. At the time of his death he was working at a hospital in Wapda. Similarly Dr Noreen was working at a local children’s hospital.

The Press Spokesman of the Ahmadiyya Muslim Jamaat, Abid Khan said:

“What occurred in Multan yesterday was an act of such cruelty that it can never be comprehended by decent and peace loving people. Dr Shiraz and Dr Noreen had been married for just three years and were expecting their first child together. They had both chosen career paths which allowed them to serve their fellow men, women and children.

Pakistan is a country that is currently facing absolute ruin. Amongst this chaos the hateful acts of religious extremists are ever increasing, to the extent that loving, caring and innocent people are being murdered because they belong to a community whose motto is ‘Love for All, Hatred for None.”

Shocking news. Not just Ahmadis but other minorities are also being killed these days, like shias with alarming regularity. Even the Sri Lankan cricket players were attacked recently. I can only hope things get better…

Written by Daud Ahmad

March 16, 2009 at 4:16 am

How we got the Jinnah Cap

with one comment

Muhamma Ali Jinnah wore the sherwani and the Jinnah cap for the first time in the Lucknow session of the Muslim League in 1937. Excerpt from Stanley Wolpert’s Jinnah of Pakistan:

To symbolize the dramatic Jinnahchange marked by this Lucknow session, not only in the League’s platform and political position, but in Jinnah’s personal commitment and final goal, he changes his attire, shedding the Saville Row suit in which he had arrived for a black Punjabi sherwani long coat, donned by the Quaid-i-Azam (”Great Leader”) for the first time in public on the morning of October 15, 1937. He had spent the night at Mahmudabad House; and after breakfasting with the Raja was about to leave for the packed meeting outside when his eye was attracted to a black Persian lamb cap worn by Nawab Mohammad Ismail Khan (1886-1958), one of the greatest provincial League leaders. He asked his friend if he might try on the compact cap, which would soon be known throughout the world as a “Jinnah Cap”. When he saw how handsome he looked over the white of his sideburns in a mirror, he know it was just the headgear needed to give his Muslim costume its crowning touch. At the 1916 Lucknow session over which he had presided, Jinnah had worn a red fez, but since Ataturk banished the fez from Modern Turkey it was out  of style. The Jinnah cap resembled the fez but was softer, yet equally Islamic in it symbolic significance. It soon became as famous as the flatter “Gandhi cap” of hand-spun cotton, which the Mahatma and Jawaharlal wore. That cap came to symbolize Congress membership, just as the Jinnah cap helped immediately to distinguish and identify Muslim League leaders.

Another excerpt from Jawaharlal Nehru, a biography by Sankar Ghose:

jawaharlal_nehruAt this Lucknow session when Jinnah spoke of the aspirations of the Muslim nation he no longer appeared in his customary European attire. There he, for the first time, put on a long black sherwani and a woollen cap which later came to be known as the Jinnah cap. So Jinnah now gave the Muslims a complete answer to Gandhi, an ideology of the Muslim nation as opposed to Gandhi’s ideology of a composite India nation and sartorially also Jinnah gave the sherwani and the Jinnah cap as an answer to the Congress’ Khadi dress and the Gandhi cap.

Written by Daud Ahmad

March 14, 2009 at 1:58 pm