Tuesday, February 14, 2006

LUMS MS Launch event

Alright, the LUMS Microsoft Launch event last night went very well. The audience was quite good despite the cricket game on the TV. The event was started with a short welcome by Jaffar Haider, MS Student Ambassador at LUMS.



Then, there was recitation from the Holy Quran and I believe that the recitation should be kept a litte bit shorter, with no offense to the person in picture here. I appreciate him doing a very nice recitation.



Then, Rai Yawar, delivered his presentation on SQL Server 2005 Business Intelligence.



He started with an overview of SQL Server 2005, and the need for Business Intelligence. He talked about SSIS architecture and OVAL.




He also talked about scalability, optimization, parallelism, security and extensibility.






And then, I took the stage and introduced myself.


I first talked about Imagine Cup 2006.




I talked about Web Developer features in Visual Studio 2005. I fired up magnifier to let the audience take a closer look as I created a website.






The first thing I talked about was the background of the demo application, "Online airline reservation sytem" which was the cornerstone of the entire presentation.



I showed the audience what the finished demo application looked like and gave them the URL where they could download it from.




I then talked about the need for consisten look and feel in a web application and how it has been accomplished in the past. I talked about the role of Master pages in this context and created a master page and copied and pasted some layout markup into it. I also created a couple of pages that inherited from it to demonstrate the idea.


I then showed the audience how to use the new contentplaceholder control to provide page specific content.






Someone asked about the possibility of developing a web application in Visual Studio 2005 that could run on ASP.NET 1.1.


I answered that question.



I next talked about membership and how easy it is to setup it up using aspnet_regsql wizard.


I then explained the choices that exist for the backend of the membership data.


I dragged and dropped some login realted controls onto the forms and showed the audience how easy to use, yet customizable they are.



I showed them how easily we could use the loginview control to customize what is displayed based on who is logged in.



I summarized the login related functionality.



I then talked about data access. Before I did that, I talked to the audience about the necessity of a good design and architecture. I talked about the layered architecture and shared with them my choices in the design and development of the demo application.





I gave them a look at my business logic layer and what it meant.



I kept this part of the presentation short, as we were almost running out of time and the last thing I want to do is to drag the presentation to bore the audience.



After the presentation, I reminded the audience about Imagine Cup and the lucky draw. People submitted their feedback forms into a carton and then I drew 25 of them randomly and Jaffar handed out the goodies to the winners. We really went crazy at this time, as the audience really got into it and we had all sorts of suggestions on how to turn the carton upside down to best shuffle the feedback forms inside, and suggesting that we should draw the folded feedback forms or the unfolded feedback forms. We had lots of fun and some people from the audience came up to me asking interesting questions and I addressed most of them and asked a couple of them to email me so that I can look into their issues. One of these was about the availability of Licensed software at LUMS. LUMS is a member of MSDNAA so all students and faculty get licensed MS software for free, but the student community is unaware of how to avail it.
It was a very good launch event and I enjoyed being part of it. I hope that the audience was also happy.

Monday, February 13, 2006

Launch event tonight

There's another launch event tonight at LUMS. I'll again be talking about ASP.NET master pages, login controls and data controls. The other presenter is Rai Yawar. Let's see how the event goes. The demo source code is already uploaded.

Friday, February 10, 2006

Blind justice

Well, the SCP has lifted ban of kite flying (if any such thing was in effect) for 15 days. So, killing people has been made legal for 15 days. Thank you, so much.
Indian sugar mills have raised the prices of sugar after news of Pakistan importing sugar from India. Well, I guess they're not much different from us.

Thursday, February 09, 2006

Profit

A few weeks ago, while my car was at the automotive mechanic workshops, I went to buy some gear oil from a nearby shop. The shop owner is a seemingly nice person, has a long beard, always carries a tasbeeh and never misses a prayer in the mosque, which I notice whenever I have been to the workshop.
I gave the oil to the mechanic and went to the university. A while later, when I returned to the workshop, the workshop owner asked me where I had bought the oil from. I told him I bought it at the neighboring shop. I had bought those cans for Rs. 190 each. The owner told me that he had learnt from the mechanic how much I had bought them for and he bought the same oil at the gas station for Rs. 120 each for me and asked me to return the cans to the shop owner if possible.
What a shock! Something that is retailing for Rs. 120 carries sufficient margin for the shopkeeper, yet he'd love to sell it for as much as possible. Cant trust anything in Pakistan, can you. And to think that he seems so religious, and is selling something for about 50% more than necessary. What is all his religious practice teaching him?
At least in the land of the infidel, I could go to WalMart and rest assured that whatever I buy, I buy it for what it is worth. I can find things of various quality on the same shelf, and the best quality is expensive and the compromise is cheaper. The choice is mine. But here, I am confused. I buy expensive, yet low quality.

Tuesday, February 07, 2006

Cloud number nine(teen)

Well, well, strange things happen, dont they. I was coming from the masjid a few minutes ago when I saw my algo teacher approaching. Just as I was about to say salam to him, he said, "Tumhari first assignment achchee thee." Now that's a very interesting course and with the size of the class, it is not easy to impress him. I am so excited!
The fun part is that he recognized and rememberd me by face, name and roll number, which in such a class is remarkable.

Monday, February 06, 2006

Spring cleaning

Two things. First, I saw PM Shortcut on TV today as he was supposedly condemning the cartoon affair. Well, his body language didnt look like it. He looked more to be apologizing than condemning. I guess it is justified with the kind of economic and moral debts that we are under, we are basically sold. And slaves dont complain. See how the condemnation from the government has come almost a week after the incident.
Second, there's news of reforms in jails on, like, not putting restraints in the feet and stuff. Lots of reforms. Well, those who are planning and executing it belong there, so I call it spring cleaning. Starting at the home, so to speak.

Saturday, February 04, 2006

Presentation

Alright, so here I am at Khorsheed Mahal Avari Towers, Lahore, yet again. This time around, I am at the other end of the hall in the speakers' area, where I will be giving a presentation on VSTS 2005 and ASP.NET 2.0. I had a class at 2 pm, which ended at 3:20 pm and getting to Avari before 4 pm was almost impossible given the traffic and the traffic lights. Fortunately, I got here a couple of minutes before 4 pm. Also, Vaqar Khamisani is still giving his presentation, so my presentation will start a few minutes late, which will given me time to catch my breath after almost running all the way from the car parking to the hall.
Wish me luck. As I mentioned, the presentation and demo source code are already uploaded here. Enjoy!
Now, after the presentation I have run back to LUMS because I have another class at 6:40 pm in which I also have a quiz.

Friday, February 03, 2006

Website updated

I just updated my website. The special occasion is Microsoft ISV Community Days, 2006 tomorrow. Since I'd like to offer the source code and presentations on the website for download during the presentation, I decided to do the much delayed update to the website.
Now, the thing here is that I have a quiz tomorrow afternoon in the class from 2 pm to 3:30 pm, then I have to rush to the presentation which is scheduled to start at 4 pm, and then I rush back to another class where there is another quiz. The best part is, I havent prepared for either quiz and I also have to do some work on the demo for tomorrow's presentation.
Let's hope for the best.

Monday, January 30, 2006

Managed Instant Messenger

Many students asked me at various times on how to integrate their own application with MSN Messenger or to import the contacts from the MSN Addressbook. My answer was that this would need to be done on the socket level, connecting to the MSN Messenger Service and a lot of hacking would be needed to figure out the request response possibilities. Well, there is a sample application that does IM through MSN. Check it out. I hope you find that useful. It is a command line based application and there is a link to another application developed using the same code but is richer. I had been wanting to blog about this for months, so I finally succeeded in doing it tonight.

Sunday, January 22, 2006

Merchandise

Recently, I ordered the merchandise from Microsoft company online store for the gift voucher that I got for my MVP award. The merchandise just arrived. Here's a glimpse of it.

Hooded shirt.


Geek T-shirt.


Bag and books.


Microsoft mouse keyring.


Mouse keyring was in this case.Posted by Picasa

Tests on random numbers

If someone (such as a random number generator) claims a set of numbers to be random numbers, following some probability distribution, most commonly, uniform, there are certain tests that can be performed on these random numbers to ascertain or deny this claim. Such tests include Kolmogorov-Smirnov test, Chi-square test, Poker test, Gap test, Runs test. There are also some batteries of tests such as the Diehard battery of tests, that can be performed on the set of random numbers. The results of these tests can be analyzed to accept or deny the claim.
We were asked to perform these tests on the random numbers generated through Microsoft Excel and Matlab. Here is everything, including the Excel workbook to perform the tests on Excel random numbers as welll as a workbook to perform the tests on Matlab random numbers. Different worksheets correspond to each test. Macros have been written to perform and repeat these tests on 100 sets of 100 random numbers. Matlab includes a command called xlswrite() to export some Matlab variable to excel.
Also included is the C# program to export random numbers from Excel to a binary mode file for the DieHard battery of tests using Office Interop. Apart from that, there is a Visual C++ program to export random numbers from Matlab into a binary mode file for the same purpose. Test results from the Diehard battery are also included, as is an MS Word document that summarises and analyzes the results.

Shepherds

"I didn't know shepherds knew how to read," said a girl's voice behind him.
"Well, usually I learn more from my sheep than from books," he answered. The shepherd told her of the Andalusian countryside, and related the news from the other towns where he had stopped. It was a pleasant change from talking to his sheep.

But when he thought to complain about the burden of its weight (his jacket), he remembered that, because he had the jacket, he had withstood the cold of the dawn.
We have to be prepared for change, he thought, and he was grateful for the jacket's weight and warmth.
The jacket had a purpose, and so did the boy. His purpose in life was to travel, and, after two years of walking the Andalusian terrain, he knew all the cities of the region.

Ethan

"Ethan do you copy?"
"No, but I do scan, email and print."

Sunday, January 15, 2006

We failed again

Once again we let our masters down. If we had bombed the shit out of that house in Bajor agency ourselves, they wouldnt have been troubled to do it themselves. What are here for anyway?
And dont you go talking about violation of sovereignty. Sovereignty is violated when one armed force attacks another country's territory. In this case, the attackers were conducting an operation within their own land.
Never forget: we'd sell our mother if the price were right.

New Islamabad police

So, they've set up a new Police force for the federal capital. My argument is, can any police force act against Brigadier Blah Blah, or Secretary Blah Blah, or son of Minister for Waste Management? When the so-called elite considers itself above the law, and the police has no abiliy to enforce the law, you can continue inventing new police forces, which we've been seeing non stop in Karachi for two decades, without any results. Bottom line is, they're spending the tax payers money to get better looking protocol.

Saturday, January 14, 2006

A shepherd and his sheep

He swept the floor with his jacket and lay down, using the book he had just finished reading as a pillow. He told himself that he would have to start reading thicker books: they lasted longer, and made more comfortable pillows.
He arose and, taking up his crook, began to awaken the sheep that still slept. He had noticed that, as soon as he awoke, most of his animals also began to stir. It was as if some mysterious energy bound his life to that of the sheep, with whom he had spent the past two years, leading them through the countryside in search of food and water. "They are so used to me that they know my schedule," he muttered. Thinking about that for a moment, he realized that it could be the other way around: that it was he who had become accustomed to their schedule.
He had always believed that the sheep were able to understand what he said. So there were times when he read them parts of his books that had made an impression on him, or when he would tell them of the loneliness or happiness of a shepherd in the fields. Sometimes he would comment to them on the things he had seen in the villages they passed.
Quoted from The alchemist by Paulo Coelho

Thursday, January 12, 2006

Adams

A while ago I was watching the movie Stepmom on TV. I've seen it before, but I hadnt noticed that old boy Bryan Adams' song was in there, too. And a smashing one at that. Bryan Adams is definitely reputed to be the world's best ever live singer. I've listened to him studio recorded, I've listened to him MTV Unplugged, and I've listened to him recorded from a live performance. He's truly awesome. Summer of 69 is so amazing, it never misses hitting the spot whenever you listen to it.
But then I quite listening to music a long time ago. This particular song that I heard in this movie, brought back old fond memories. The song is called When you love someone. It's one of my favorites and I absolutely loved the MTV unplugged version of it. Here are its lyrics.

When you love someone - you’ll do anything
You’ll do all the crazy things that you can’t explain
You’ll shoot the moon - put out the sun
When you love someone

You’ll deny the truth - believe a lie
There’ll be times that you’ll believe you can really fly
But your lonely nights - have just begun
When you love someone

When you love someone - you’ll feel it deep inside
And nothin else can ever change your mind
When you want someone - when you need someone
When you love someone...

When you love someone - you’ll sacrifice
You’d give it everything you got and you won’t think twice
You’d risk it all - no matter what may come
When you love someone
You’ll shoot the moon - put out the sun
When you love someone

And then there's Jon Bon Jovi that I like very much. They had a soundtrack for a movie, which I think was called Young guns. That soundtrack, by the way, was the first thing I ever listened to on a compact disc on our first ever Aiwa CD player. It belonged to a friend of mine and he leant it to me. Billy get your guns, Blaze of glory, Blood money, absolutely awesome songs. I also used to enjoy Def Leppard. These guys were great.
I was also watching The terminal starring Tom Hanks and I loved it very much. Tom Hanks is truly the best actor ever born. I've seen him do all sorts of characters and he does them like no other and leaves you feeling short of nothing. Mel Gibson is cool, too, with his emotional scenes, but this guy, Tom Hanks is a maestro.
In this movie, towards the end (advance apologies to the ladies), when Tom Hanks is about to kiss Catherine Zeta Jones (cant blame him for that, by the way), my brother switched the channels to Geo, where nothing short of pornography was being played in terms of a hindi song, but that channel stayed put. I wonder why more is acceptable in a more recognizable language.

Check this out

This might be a surprise to some of the readers, but this is no news and there's a lot more going on in our society than meets the eye. Now, though, it has started to meet the eye a lot more and those who dont like it have been ordered vide what you could call an ordinance to keep their eyes shut if they dont like what they see. Daily Times published a feature article recently, a reference to which was made at this blog.
I wouldnt comment on the contents of the article, you can form your own opinions.

Phuns gaay

Now, our big guy is really proud of himself. And how can one get to the top of the (not so) pak foj without having good propaganda and public dealing skills. A couple of days ago we saw him pitted against Karan, an Indian origin journalist on a CNN interview. Karan won hands down. He flattened our big guy very quickly, who wasnt able to get up. Our big guy started talking to him as if he were talking to the Indian government. DUH, even if he were an Indian, he was representing an American (friend?) news channel. Karan, why dont you take over? Our big guy was teaching everyone about leadership and how the leader should dictate his "ideas" onto others and not be dominated by theirs, yet, somehow mysteriously enough, be open to their ideas. Now, I'm an engineer, basically, and I like precise stuff, and this sounds a self-contradictory statement. Karan kept calling him quite rightly, like all other foreign visitors by his military rank instead of Mr. Pres or something.
One analyst earlier on pointed out on the topic of public consensus on Kalabagh that the consensus was not sought on issues like LFO and District Governments, steps that changed everything, and are supposedly in the greater national (we know which nation we are talking about) interests. Kalabagh also being in national (in this case, this nation, if there is such a thing) interests, why do you need consensus now? Yea, Mush boy, lay down the foundation stone baby. Or should I say, cast the stone?

Tuesday, January 10, 2006

Diehard battery of tests

There is a battery of tests that assess the randomness of a sequence of (pseudo-)random numbers, called the Diehard battery of tests. We have been assigned a task to run this battery of tests on random numbers generated by MS Excel and Matlab. It's a strange set of tests in the sense that it requires an input file of 10 to 11 MB, containing nothing but random numbers and the file needs to be in binary format.
I used C++ to generate such a number (2867200 to be precise) of random numbers and dumped it to a binary file of 11.2 MB. I'll upload the code to do that soon.
The squeeze test always failed. I tried to increase and decrease the size of the file but to no avail. Ultimately, I stumbled onto the fact that the random numbers were not in the range from 0 to 2^32 - 1. What I was generating were 0 to 2^16 - 1. This is just so if someone stumbles into this problem and does a search, hopefully they would bump into this.
Now I am working to generate such a file from within Excel.

So, what is the problem?

OK, so we've been pointing out deficiencies, and we've been saying how Pakistanis behave abroad and make it a point to misbehave when not. Why is that? Well, if I were to talk of the US, if I were to skip a red light, or stop at a traffic light beyond the zebra crossing, or stop in the middle of two lanes and the list goes on, it is entered to my record by the policeman whom I can not bribe. The result is not merely a few dollars fine, the result replicates itself into my houserent, my loan interest rates, my insurance premiums (which are mandatory by law) and so many other things, that you can not even imagine doing any of that stuff.
So, it is fear of punishment that makes us behave. Down here, though, there is no fear. When President of the United States of Pakistan, General George W. Mush took over, I thought that he has an opportunity at a critical point in the nation's lifetime. It's now or never. If he puts just a few thousand corrupt people in front of the firing squad, without courts, without lawyers, just shoot, then a few hundred good men would die, but their blood would not go in vain and everyone else would learn the lesson they defie. But no, he wasnt there for that. He is there for other reasons, which are becoming obvious with time.
So, who or what, if ever, will erect those hangman's in the roundabouts of our towns?

Sunday, January 08, 2006

Retribution

I was reading a novel by Paulo Coelho titled, "The Devil and Miss Prym." It is a story of a small town in the mountains which, being remote, is inhabited mostly by criminals, who go there because they know no one would catch them there. A priest also lives there in a small church. The strongest of those criminals is Aheb. The priest, sick of living alone in the church wants to get a good night's sleep in a proper bed, for once. He goes to town and over to Aheb's place. Aheb is astonished how come this guy is sleeping at a killer's place. He gives him a bed and sits close by sharpening his knife while talking to the priest. Soon, the priest goes to sleep, waking up to the sound of Aheb crying. He asks Aheb what is wrong, and Aheb says that his whole life is changed. Aheb is amazed how a person could be so calm to go to sleep knowing that death is on his bed post.
Aheb then tells all the criminals to mend their ways and to find a legal line of work otherwise, Aheb would punish them. Everyone is apprehensive and talking amongst themselves of what to do. Aheb gives the design of a wooden structure to the carpenters and has them build a big structure in the middle of the town's square. He unveils it. It is a sort of hanging place. Now, the criminals are always crafting their crimes, but whenever they do their planning, the wooden structure comes to their mind and being scared, they give it up. The wooden structure is up for years, but no crime is committed. Then when everyone is righteous, whether they like it or not, Aheb has the carpenters take the structure down and replace it with a cross made of the same wood.
We need such wooden structures in our streets. We have no real punishment system. We know that even if we commit wrong, we'll let ourselves off by bribing or by influence.
We need a few of those wooden structures and we need a few million people or so hanged or put to firing squads. That's the only way to survival. We need a Mao Ze Tung.

Car parking

Our lane is currently under maintenance as a new sewerage line is being laid. Half of the lane is dug up in the middle. Now, that means that half of the residents are unable to get their vehicles to their car porches or to park them outside their own homes. The lane being not too wide, means, that our half of the lane is loaded with twice the load. Even with half the load, sometimes, some Einstein would park their vehicle in a creative fashion such that entire empty piece of land where I'm sure we can park six vehicles, is able to house only one.
Even if it is shared, no one wants to park their vehicle inside the plot and would like to park on the outside edge. The situation, now is more severe. No sense of sharing. Everyone's going through a difficult time, can being cooperative be so bad? But I'm living amongst Pakistanis.

Print

Well, thanks to Zeeshan Muhammad, my rants made it to the Daily Dawn of December 31, 2005. I'm sure it will piss off several people in the IT industry, provided they do read it, that is.

Monday, January 02, 2006

Long wedding

Last year I went to Islamabad with technical collaboration of South Korea (Daewoo Express Bus Service) to attend my friend's wedding, which was finally held yesterday. Why the hell did I have to go one year earlier than the marriage? No, I'm not a wedding counselor or consultant, I went there on December 31, 2005 and the wedding was on January 1, 2006.

Friday, December 30, 2005

Each man for himself

My dear friend Adnan used to say, "Saqib sahab, each man for himself" on certain occassions that he knows and I know, too. Something happened a few weeks earlier that reminded me of that saying of his, immediately. It also reminded me of what my Software Engineering teacher, Saima Sheikh often said, "You have to know when to put the foot down."
I was merrily checking my email in the academic block at the university on my laptop sitting on a bench using wifi. Along came a boy and asked me "Yahan pay wifi hay." I get asked that a lot by people who own a laptop and discover that they can actually access the Internet from on campus using wifi when they see me doing it. So, I told him, "Yes."
Now he took the next step, "Can I use your laptop for 'a minute,' I just need to update my address on LUMS admission system." This was kind of outrageous, but I thought, well, I just have to go in five minutes for asr prayers, let the boy use it. So, down he sat and went about his business.
Then he went off. A minute later, he returned telling me that the admissions office people were asking him to do something else, too, right away. That was irritating, but I thought, OK, maybe he really does need it, so I let him do it. During his use of the laptop, he kept chatting asking me whether I taught here or what etc, and I spoke only as much as necessary.
He received a phone call and guided someone to where he was sitting and told them that he'd be over a minute or two. A minute or so later, he then got up with the laptop and told me that he was going to the admissions office, which wasnt too far, for just a minute to show them his progress.
This is when I recalled both these quotes I have mentioned, and I decided enough was enough. I asked him to stop right there, return the laptop right away and that he could do whatever it is that he wanted somewhere else, because I had to go for the prayers and I had waited enough. Everyone has there limitations and he should learn to live by his limitations. If he doesnt own a laptop, he can not do what he was doing, period. Plain and simple. He needs to find a nearby cyber cafe or lab or something to do what he wants to do.
At that moment, I also made a mental note to add 'laptop' to the list of things never to lend out, which already contained, 'wife' and 'car.'
So, if you lend someone your car, your wife, or your laptop, expect them to be returned after identical treatment.

Thursday, December 29, 2005

What does MVP stand for?

OK, some kidding.
Most Voracious Professional
Most Vulnerable Professional
Most Voluminous Professional
Feel free to comment and give more, but kindly avoid foul language.

Sunday, December 25, 2005

More irony

Military cadets have to "guard" the final resting place of the founder of the nation. How ironic! I havent seen military guards on monuments in other countries that I visited.

Advertisements

Some of the advs you see contain some real un-natural stuff. For instance, the Pepsi adv featuring Reema coming out of some sky scrapper in New York, Islamic Republic of USA, and getting into a cab. When the cab finally stops, the Pepsi can flys over to the back seat. Gee, I thought that when a brake is hit, we are pushed forward in our seats, not backwards.
Also, see the new Paktel GSM bill by the second advertisement. Two ladies talking for a mere four seconds? Duh!

Saturday, December 24, 2005

Comrades, get some, get some, fire at will

This post is a reply to an earlier post. I am a bit uncomfortable with reading posts with too many replies myself, so I decided to post this as a separate post so that the largest possible audience could read and take joy.
My dear friend Adnan. I value your commitment and contribution. In the present age, the only thing of value is information. It's what makes or breaks you. Most people keep it to themselves because they feel that it is what gives them the edge over others. Few believe that information should flow freely from mind to mind. You fall in the latter category. I've seen you evangelizing at academic venues with great zeal and effectiveness. I'm sure your intentions are very pure. People with such attributes over the entire human history, have faced criticism and opposition, so why should we be an exception? Time will soon tell who was right and who was wrong. But to me what matters is not to be proven right, but that there is an end to the suffering not of my own, but of all the people I live among. Alas, it seems like a far cry. One thing that keeps reviving my faith are my students, like Sohail Sarwar, Salman Mehmood, Faisal Nasim, Sabrina, Sarfaraz, Shoaib, and so many others that I can not name but I can see them on the screen of my mind's theatre. You, my dear students, are my heros. You, my dear students, are my warriors of the truth. Whether we win or lose, I'm glad we're fighting this war battle after battle, shoulder to shoulder, till the last man, till the last bullet. No retreat, no surrender.

Friday, December 23, 2005

Sara is here

Sara finally arrived in Lahore in an HP Brio carton today.

Jealous?

In case you're jealous of my MVP status, I offer it to you. MVPs are for one year renewable and new nominations are done. By the next nomination cycle, if you can prove to me that you've got what it takes, I'll be happy to nominate you instead of myself. You have my word.

Shamyana

Yesterday there was a report in the TV news that the Hyderabad, Pakistan cricket stadium was being used for wedding receptions and also doubled up as the helipad for VIPs. The DCO was contaceted last night in another news program and asked about that. The DCO said that there was only one wedding on that venue, and it will be ensured that this doesnt happen again.
I guess that the DCO was lying, just like his beloved leader because no wrong is done only once. If a wrong is done once, it is bound to be repeated.

Monday, December 19, 2005

Reply

Well, in response to my last post about Edu blues, qspasta gave a comment and I would like to comment to his comment, but it will be long, so I decided to make another entry.
First, I take back my word "nation" because we are a few hundred million individuals living on a shared piece of land, dying to get out of it whether we admit it or not, and have little else in common. A nation has a share destiny, a collective conscience, and a few other ingredients and we lack all of them. I dont know whether we were born this way in 1947, or something changed us afterwards, and I dont care either, because that is immaterial. What matters is whether we are ready to realize that we are thinking and acting in all the wrong ways, which we are obviously absolutely not interested in.
I agree that there's no use pointing fingers, firstly because it wouldnt solve any problems, but more importantly, because I would run out of fingers, even if I borrow fingers from everyone I see over a period of the next month. The solution as I said, there is no silver bullet. Everyone has to realize their shortcomings and try to improve. As I said, it seems to be our deepest desire to be able to inflict pain and suffering on others in every possible way. Societies are based on cooperating individuals, hence we have no society either. Once again, I can give so many examples, but all of us have been through situations every day that are indicative of this tendency, and there needs to be no reminders and proofs, in my opinion.
In all of this situation, the tiniest motivation that I can see to do right is, that too many wrongs dont make a right. If everyone else is doing wrong, I shouldnt join them. I wouldnt be let off the hook, in a worldly court or the court of the Almighty on the ground that, hey, everyone else was doing it. Unlike most worldly courts, where most of the wrongdoers in such situations get away and a few unfortunate ones get caught, everyone will pay in the court of the Almighty. And even if you dont believe in such a being, then at least, at the end of the day, when the last breath is upon you, it would be nice to look back at your track record and have a smile on your face, that you played well, and went down fighting "the good fight."
Behaving like the rest of the mob, makes a contribution to chaos. Refraining will make problems a little bit less complicated. Yes, you'll be late to where you are trying to get, because you'd be giving way to the other traffic waiting your turn which will be once everyone else in the city has used the road, but, hey, is anyone ever on time anywhere in this country? I'd rahter be late for a good reason.

Saturday, December 17, 2005

Image improvement progam

So, it is reported that the US government has sanctioned US$ 300 Million (if I remember correctly, but the exact figure doesnt matter much) for improving the image of US abroad, especially in the middle eastern, muslim countries by airing news items etc. The debate of whether this is right or wrong is besides the point and futile. What I would like to remind you is that US isnt the only one in this. Dont our beloved heroic armed forces spend a fortune on their image building? We'll talk about why they do it sometime later.

Edu blues

I am very concerned about the standard of education especially so-called higher education in Pakistan. And I dont keep things wrapped in sweet coating, so I name people and institutions openly in my discussions.
Recently, a friend of mine was delivering a seminar at PAF KIET. Now, we already know that the intake in IT related programs in all so-called universities is very poor lately and the intake at PAF KIET, unfortunately, isnt Stanford quality either. What's even worse is that except for a few, the teachers are even worse than the students. Take a load of this.
When my friend talked about polymorphism, inheritance and generalization etc to final year computer science students, every single one of the students were stumped, which embarassed the dean and faculty present at the moment. On their way to the Dean's office, they ran into a faculty member, to whom the Dean complained that he was very disappointed that the students could not answer basic questions about polymorphism, inheritance, generalization etc. To this the teacher responded, "I'm not the Database teacher." When asked what he taught, he said, he taught MFC.
This is a crime and everyone involved should be hung. These idiots are destroying a whole generation. I'm sure it is not limited to computer related institutes, either. And to think that PAF KIET is one of the institutes who are most active in shaping their curricula in line with the industry's requirements through active collaboration and reviews. The Industry keeps complainig of inferior quality output from IT institutes. No wonder.
No one cares! You expect the government to take action in this regard? Parents have a responsibility they dont feel. Students have a responsibility they dont feel. Teachers have a responsibility they dont feel. I'm wasting my Internet dialup time here. I cant think of one walk of life in Pakistan that feels responsibility, so let's suffice at that.
Have you noticed that the nation is looking at Geo as their saviour lately? Just look a bit harder and you'll see. People are reaching out to Geo with their complaints hoping that they'll get them solved. No one can solve our problems except ourselves, and one thing is for sure, we dont want to solve them. We wish there were a magic stick, we're waiting for a miracle that will never come.

Tuesday, December 13, 2005

Chill

We often overlook blessings, and I just realized that since September, I am so much relaxed now that I dont get bombarded by unexpected advice seekers. You wouldnt believe that people actually came, multiple times, from areas of the country that I hadnt even heard of to seek my advice on matters of academic significance. Now I am not complaining for the value that people lay upon my advice, and I'm not saying that they were taking too much of my time, all I'm saying is that it was taking a toll on my professional duties to my job at times. Now, here, no one knows me and I am in peace for once. :-)
But till when will the mother of the male goat celebrate goodness.

Excel

Excel is a tool that never ceases to surprise me with its capabilities. Here's a spreadsheet that demonstrates the vlookup() function in an attempt to model and simulate a queueing system. The interarrival time of customers is uniformly distributed between 1 and 8 minutes. The random number is generated with the help of the rand function whose output is uniformly distributed between 0 and 1, meaning that it is equally likely to be anywhere between 0 and 1. We needed a non uniform distribution for service times, where service time is 1 minute with probability 0.1, 2 with probability 0.2, 3 with probability 0.3, 4 with probability 0.25, 5 with probability 0.1, and 6 with probability 0.05. I used a table in excel and the vlookup function. In connection with the above defined distribution of service times, we generate a random variable between 0 and 1 and use vlookup to find the row in that table that this random number lies in. The value from another column from that table in that row is picked. For example, if the random variable is between 0 and 0.1, we pick 1, if it is between 0.11 and 0.3 we pick 2 and so on according to the above described distribution. This is one way of generating non uniformly distributed random numbers in Excel. Check out the sheet and pay attention to the formulae. Never underestimate the power of Excel! That's serious advice.

Sunday, December 11, 2005

New blog

I started my new blog: Research direction. It has a rather cryptic URL. I tried several simpler ones but none of them was available. I'll leave this space only to myself and to miththu and the other blog for posts regarding my research direction. You could bookmark that blog if you have difficulty remembering that URL and want to visit it from time to time.

Wednesday, December 07, 2005

MSDN Launch Event

I am blogging from Khorshed Mahal, Avari Towers, Lahore from the MSDN and TechNet Launch event. Here are a few photographs of the event. I am manning the INETA Pakistan booth right now. The Wireless LAN is not working well, keeps disconnecting, so I'll blog in more detail later.
Last night, Vaqar Khamisani called me to shock me with the news that the speakers coming in from abroad, their flights had been delayed and I should prepare an emergency presentation, which was no big deal. I was ready, but the speakers eventually did manage to fly in, so I only had to sit back and man the INETA booth.
Jawad Rehman, Country Manager, Microsoft Pakistan is barely visible in this photograph, but you can see how crowded the hall is. They had to put extra chairs in.


Here's a photo of two of the speakers, Asseel and Chad.



I took off at 11:15 am because of class.
Posted by Picasa

Monday, December 05, 2005

One line humor

Here are a few one liners that I stole from a mailing list:

  • Regular naps prevent old age, especially if you take them while driving.
  • Having one child makes you a parent; having two you are a referee.
  • Marriage is a relationship in which one person is always right and the other is the husband!
  • I believe we should all pay our tax with a smile. I tried - but they wanted cash
  • A child's greatest period of growth is the month after you've purchased new school uniforms.
  • Don't feel bad. A lot of people have no talent
  • Don't marry the person you want to live with, marry the one you cannot live without, but whatever you do, you'll regret it later.
  • You can't buy love, but you pay heavily for it
  • Laziness is nothing more than the habit of resting before you get tired.
  • Marriage is give and take. You'd better give it to her or she'll take it anyway.
  • My wife and I always compromise. I admit I'm wrong and she agrees with me.
  • Those who can't laugh at themselves leave the job to others.
  • Ladies first. Pretty ladies sooner.
  • A successful marriage requires falling in love many times, always with the same person.
  • You're getting old when you enjoy remembering things more than doing them.
  • It doesn't matter how often a married man changes his job, he still ends up with the same boss.
  • Real friends are the ones who survive transitions between address books.
  • Saving is the best thing. Especially when your parents have done it for you.
  • Wise men talk because they have something to say; fools talk because they have to say something
  • They call our language the mother tongue because the father seldom gets to speak!

Monday, November 28, 2005

Life on the edge


Some people love to live life as El Paccino would say, "on the edge." Just dont look down. Posted by Picasa

Friday, November 25, 2005

To our society

Our prophet wed four daughters. Only one of them, Fatima, was given dowery. What was she given? Anyone who's read elementary level Islamiat knows that. The only reason she was given dowery and others werent is that she was being wed to Ali, who was also under the Prophet's kifalat. Whatever little dowery was given to her was purchased from the mehr amount paid by Ali himself. There was no meal served.


This is "laanat." I give this laanat to myself, to you, to everybody for being part of this sick society. Here's a couple of letters that were published by the editor of a newspaper recently and were read to us today by the khateeb in the Friday prayers. The first one was written in the blood of the writers. I am only providing the account in my own words, not exact quotation, the letters were in urdu.

Letter number 1, I quote:
We are four sisters. Our father died years ago, and our mother raised us with a lot of effort. Instead of supporting, us, this society only hurled us around. Our mother is now on her death bed with several terminal diseases. We given tuitions and teach the Quran to the neighborhood kids to keep the bread going and to manage to stay indoors. Whenever we are forced to go out for some necessary chore, the beasts of this society await us to peal off our skin. We request someone to kindly do us a favor by wedding us all off so that we can finally live a safe, dignified life.

Letter number 2, I quote:
We are four sisters. Our parents are old and I work on computer composing to keep the livelihood. Whatever little I earn is hardly sufficient to pay the bills and for us to be able to cook pulses (daal) and vegetables. We never even cook beaf. People offer us huge sums to commit adultry, but our parents are asked for huge dowry for marriage. Islam made marriage simple and sin difficult, but our society is making sin inexpensive and marraige expensive.

Laanat on this society, and on you and me for being part of it. I wish that either Allah guide us to correct our ways, or send a bigger earthquake throughout the country to destroy us all, because all we are doing is spreading evil. It is better for a few good men to die alongwith the sinful rather than be supressed and watch evil spread.
If you look at it, women are the most suffering in all this scenario, at least as far as this world is concerned, yet, women are the only flag bearers of these stupid customs that we acquired from the hindus. I dont know if I can convince my parents, but perhaps I can convince you that what is wrong is wrong. Perhaps you can convince your parents, or perhaps at least, as parents ourselves, we would become a wall against this idiocy.

Tuesday, November 22, 2005

My editor


I think there's an error in the third paragraph here. Posted by Picasa

Dead fish


One of my brother's fish died. Here's a post mortum snap of it. It is reportedly a specie termed as Angel. I was wondering why one of the fish was near the top permanently, head upwards. Posted by Picasa

Raqimul huroof


Did I tell you I taught him to write? Posted by Picasa

Correction


and we just erase it if we make a mistake Posted by Picasa

Do the maths! Posted by Picasa

Turning over a new leaf


Oh the sinful life! But now, I'm going to turn over a new leaf. Posted by Picasa

Saturday, November 19, 2005

News

Well, I have changed my blog settings so that anyone can post comments, and not just blogger members.
Also, I've got some really interesting photos to post to the blog, but there's something wrong with the hello picture sharing networking apparently.
Stay tuned.

Friday, November 18, 2005

Quotable quotes


  • On success: A successful man is one who can make more money than he can spend. A successful woman is one who can find such a man.

  • And talking of success: Behind every successful man is a woman. Behind her is his wife.

  • On necessity: Necessity is the mother's invention.

The only prayer I'll ever need

Well, the only prayer I ever need answered is that Allah keep my parents well, because as long as they are with me, all the prayers that I'd never even asked for would be answered for me.
I got my marks for Stochastic Systems I mid term today. Even though 50% isnt a good score, but that's the top 3rd or fourth score in the mid term. The class average is 26. The course is tough, no doubt. I was very sceptical about the mid term and never expected to be anywhere near the top 10. Lo and behold, the result is beyond my expectations. The only reason is my parents' prayers. Otherwise, my own acts wouldnt warrant acceptance of my prayers.
Now I'm preparing feverishly (well, if you'd call taking time out for blog and stuff feverish, that is) for the final that is on Monday next week. I hope the final is easy because most of the final content was covered in the last two weeks with plenty of extra classes. We didnt have enough time to practice.

Balakot

When I went to Sialkot for Eid this year, my aunt told me that one of my cousins was in Balakot on eid. He had gone there earlier in ramazan, too. When he called home, aunt asked him to come back. He told her that if she'd see what he was seeing their, it would make her wish she could give her life to help the people there. Later, most volunteers had gone to their cities on Eid. A doctor whom he had made friends with, called him up and asked him to come to Balakot, so my cousin went to Balakot a few days before eid. He has been a boy scout for several years and has also done weight training with Junior Mr. Punjab, so I'm sure he's an indispensible person for such a situation.

Tuesday, November 15, 2005

Distance vector routing assignment complete

I completed and submitted the distance vector routing programming assignment for the course on network protocols and standards. As I posted earlier, the first part of the assignment was to use pre-built simulator code to implement a fixed static four router topology. The second part was to modify the simulator and to implement a generic distance vector routing protocol that can also handle link cost changes. You can download the code.

Boojho to janain


Can you guess what this is?Posted by Picasa

You will not like me when I'm angry


"Insan banta hay ya bahar a kay lagaoon aik hath" Hamza is upset and he's about to let all hell loose. Posted by Picasa

The professor is in the class


Alright class, so last time, we were discussing the centrifugal rotation of the nth derivative of the subatomic particle neptutron of the element Boron. Posted by Picasa

CAN I PLEASE HAVE SOME PRIVATE MOMENTS?


HEY, CUT THE CAMERA! GEE, YOU CANT EVEN HAVE SOME PRIVATE MOMENTS. Thank God, I had this hand fan to cover up.Posted by Picasa