Friday, August 26, 2005

Good Year

No, we're not talking about GoodYear Tyres. First, let me tell you today's account. Today, was another one of those unbelievable days. This time, it was Second Year, section A. They had the green board with some nice word art of good byes when I went to class. I bored them for a while with Object Oriented Design and then opened the floor for any rants, comments or questions.
They asked questions, I went around, answered them. There were all sorts of questions ranging from my date of birth, to why I wasnt going abroad for PhD, to how I would like being in Lahore etc. Then, they announced, that there was something stuck at the gate and it would take a little while. I was fine with waiting for a few more minutes, with the suspense of what was about to happen. So, we kept talking.
Then, they presented me with several greeting cards, and a lovely bouquet. It was just as good as the one the other section had given me. Once again, I have taken photographs of it and will upload them soon, I promise.
They took photos of me, too, with Gosphy and her class fellow (I keep forgetting her name, I'll edit this blog once I remember it. Sorry if you're reading it yourself). There was lots of clapping, too. They thanked me and wished me luck etc. Nice, wonderful words that anyone would wish for. I was touched and lost for words. There was another gift for me, too. Unfortunately, I didnt have enough carrying arms for everything, and there was no way I was going to leave the bouquet behind, so the gift is still sitting wrapped on my desk. I'll open it tomorrow and blog about it.
Anyway, after that, they requested a photograph, and I was all for it. They said they had a frame already and would place the photo in the frame and give it to me tomorrow. That'll be so nice of them. We went outside to the lawn and line up, ladies standing, the gentlemen sitting down, and me (do I fit into any of those categories ;-p) standing behind the sitting boys, the ladies behind me. There were photos. Then I went in to collect my gifts and several students wanted me to write something for them in their notebooks, and autographbooks. I wrote some in Urdu, some in English.
When I was going back to my laboratory, some boys for some other department passing by whispered to each other to look at the pretty flowers. It was truly an incredible bouquet, and its not the only one I have received, each one just as good, each time, the same amount of love with it, each time the whispers of appreciation for the bouquet in the hands of a guy with an identity card hanging around his neck indicating that he is a teacher.
It was all so incredible. So much love, for so little that I have done for them. That's why I say that this has been an incredible year. So much travel, so much honor, so much love. Turkey, India, PDC 2005, admission at LUMS, such love at NED. I'm lost for words. There's more coming up tomorrow. There's a good bye to be said to Second Year, section B. It'll probably be the toughest one. Then, some ladies from final year have requested my company for some informal refreshments any time tomorrow, so we'll have that, too.

Second instalment in Lahore

The second instalment of myself has arrived in Lahore today. It was 65 kg worth of mostly books, a few CDs containing backups of all the junk I've been collecting or authoring over the past two or three years, and some clothes. I'll start packing my clothes and stuff soon, leaving only the bare essentials for the few days left.

Thursday, August 25, 2005

Another good bye

Well, today there was another farewell for me. It was lunch at Pizza Hut thrown by some students from BE(CIS) A. I feel very sorry that I couldnt attend a lunch that was thrown by some of their class fellows purely because I had forgotten that I had a meeting at Microsoft Pakistan that afternoon. It was a coincidence and no prejudice.
The event was fantastic, and I had a very good time with the students. The environment was very light and we talked about all sorts of things ranging from doing MS, doing PhD, doing job, doing MBA to what kind of music I like.
Before the lunch, they presented to me a very beautiful bouquet, and I promise I'll post photos of that bouquet soon. I have put it in the vase on my desk. The feelings of the students are present in that bouquet in the form of color and scent that is independent of time. The flowers may fade in the vase, but the memory will remain.
In the end there were lots of photographs, too. I'm just an ordinary man, but they treat me as if I'm some kind of a celebrity or something. I just want them to know that they are my heros, the leaders and builders of tomorrow. Looking at them, I feel relieved that the future is in good hands.
Then, we said good bye and four of them dropped me off on campus because I hadnt brought my wife (read, my car) along today, as she was getting some rubbing polish job. She looks very good, by the way.
So, when they dropped me off, they wish me all the best, thanked me very much, while it was all my pleasure. One of them, Farhan, said something that was enough to blow anyone away. He said, "Sir, waqaee aisa lug raha hay jaisay koi cheese chin rahee hay." or so I remember, meaning, "Sir, it really feels as if something is being snatched from me/us." Very touching words. I'm sure he saw the moisture in my eyes at that moment, which I did my best to hold back, wished them all the best and went back to my office.
Then, there was a Masters Student from SSUET who was supposed to come see me regarding her thesis and she was expected to arrive at 4:00 pm. It was past 5:15 pm when I got back, so obviously, she had already left. She wasnt me, after all, who waited two hours outside Dr. Irfan Haider's office on appointment and didnt utter a word because it was for my good that I was there. ;-P

Touching

Just ran into this nice litte thing that is so cherishable. Fond memories! It's good to know that you're loved so much by so many people.

Wednesday, August 24, 2005

The end of it

Well, as the moment draws closer, the thoughts of endless possibilities, the unknown that may lie ahead, of what might come, for instance, what will they offer for the meal on the aircraft keeps me on the edge.
I've been put on 26L on PK 306, so if you're reading this, and they try to put you in an adjacent seat, take my advice, decline, revolt, call the terminal manager, whatever. Otherwise, I'll bore you to death on the hour and thirty minute flight. I wouldnt tell you the date, though. It's next week, so let there be travel advisories and stuff.

Independence Day

Yea, well, Independence day is long gone now. I know that, but a naughty thought just came to my mind. So, here goes:
We were not celebrating "Indepence Day", we were celebrating "In Dependence Day."
ROFL, LMAO

Tuesday, August 23, 2005

Nicest little thing

It was the nicest, cutest little thing. I went to my sophomore section B class at 12 noon. They were waiting for the arrival of some key elements. Shahab Saheb also dropped in, and so did Mr. Zafar Qasim. Students gathered around as we chatted very informally and cordially. Some other faculty members couldnt or didnt come. They missed it. Then the cake arrived which was stopped at the gate by security (no surprises). There was comment about the security person at the gate boasting about being a special services group guy while my fellow faculty member Anita asked them to clear it in.
All this while, there was a knife in front of me, and we were joking about hypothetical scenarios about it. Then, the knife was put to the cake and I cut out two pieces from it. The students were impressed by my expertise. Well, two and a half years, cooking and what not, in the US didnt go to waste. I still remember those days and I loved cooking. I just hope no one tells my in-laws to be, whoever and wherever they are, otherwise, my wife to be would have frequent headaches asking her better half to cook instead.
Anyway, the ladies did the rest of the honors to the cake. Oh, and it was also the birthday for one of my students, and she sliced the cake, too while we wished her happy birthday. We ate the cake, there were photos taken. Then the biggest and sweetest bouquet that I have ever been given was presented to me and I was touched. Then another nice and pretty bouquet was given to me by some other students and I appreciated their gesture, too. As I carried them over to my lab, I was spotted by many people, I'm sure they'd been envious, and why shouldnt they, as not everyone gets so much loving and caring. As for me, I dont know what I did to deserve it. I wonder what I ever did to deserve a lot of other things I've earned in life, and the pointer always points to the never ending prayers that my parents, my friends and my students give to me selflessly.
I brought the bouquets back to my place and photographed them to save and cherish the memory forever. I'll upload them soon. So, thank you everyone for this gesture of your love. I couldnt repay you for your feelings, actions and words for me.
Oh, and I was also asked to say how I felt, but I had already decided to save the emotional speech for the last class. I just hope teardops dont break the dam. So, my students, wait till Saturday morning. I love you all, and pray and await for your successes in life.

Driving 103

Good boys and girls! This time you're not running for the keys. Now you're learning. Some more points:

Ever seen those sometimes broken (dashed), sometimes solid lines on the road? They're not done to spend tax payer's money for kickbacks, well, at least that's not the only reason. Those lines mean something. Yellow lines are placed on the edges of a road. For instance, on an undivided two-way traffic road, there would be yellow lines on the sides and the middle to show drivers from both directions what their territory is.

White lines divide the road into lanes. The laning on Pakistan's roads, especially Karachi, are absolutely pathetic. I've seen lanes suddenly get created out of nowhere, and lanes ending without proper signage. Think about the (ex) intersection at Nursery, where they now have an flyover. A lane suddenly emerged on the right handside. It used to be for right turns only, but people would use it for going straight as well, which was very very wrong, because that lane was ending on that intersection and was not continuing on the road ahead at all. Being in that lane for going straight is extremely selfish, and if you're like that, read lesson number 1, driving is a responsibility, not a privilege. So, be particular about right turn and left turn lane. On almost every intersection, you'll find a guy towards your right who wants to turn left, and a guy to your left who has his hand (which should be chopped off immediately) sticking out making a gesture that he wants to turn right. You're going straight and he drives in front of you and goes around you. That is very very wrong. Dont ever do that. Petrol is expensive, but it isnt that expensive. It wouldnt cost you much more if you were to just drive courteous and safe and go straight instead, move into the fast lane when the opportunity arrives and then make a U-turn when you come to an intersection that allows right or U turns.

Monday, August 22, 2005

Driving 102

Second lesson

What? You're running for the car keys again already? Go and read the first lesson thoroughly.

Know your traffic signs. Well, we dont have many in Pakistan, so its not difficult to know that, and actually know what they mean. A few important points:

Geen light means, go, amber means, get ready, red means stop. No, no, no, RED DOES NOT MEAN GO! If you have entered the intersection and the light turns amber, go ahead and go through the intersection. If the light is already amber before you have entered the intersection, do not proceed. Stop! Read the last three sentences again and understand what they mean. If there is a car stopped at the other end of the intersection, you should not enter the intersection even if the light is green. Do not block the intersection. What if an ambulance or fire engine comes from the other road and you're in the way? We dont care, right? Let the sucker on the death bed die, right? Sigh.

Sunday, August 21, 2005

Driving 101

The first lesson in driving

No, no, no, boys and girls at home, dont run off to get your car keys. Not yet, sit back down. The first lesson in driving is the toughest one, and it is this:

Driving is a responsibility, not a privilege.

What does that mean? It means that if you're driving it is not because you have a certain prestige to own (or rent) a car. It means that you have a responsibility towards other vehicles, people, protruding poles, animals etc on and around the road. So, understand "the road." The road is a road, it is not a joke, it is serious business. That goes for pedestrians, thelay walas etc as well. I'll elaborate.

If you're driving wrong way, bang, you're wrong, there is no excuse for it. You're risking life and property, you are constituting a "traffic hazard." You should be taken off the street, license suspended, and put behind bars immediately. If you're backing up on a road for a short distance, fine, otherwise, you are again becoming a traffic hazard. Trust me, it doesnt cost a lot to drive forward a kilometer or so and the take a U-turn back to where you want to go, and it will be a hell of a lot safer, will cause fewer traffic blocks and will be convenient to everyone, including you.

For pedestrians and thelay walas, being on the road is a big no no. Off the street, right now. You're not risking anyone but yourself. Think about it, you are weighing your life against a little bit of dust that will be on your pretty little shoes if you would walk on the earth off the road. What is better? A bit of dust or a few feet underground? You're lucky if you get away with it, but is it a gamble worth taking? Only a matter of time until someone comes up driving behind you, who is as reckless as you are and is lighting a cigarette and doesnt see you until it's too late, and then two days later, others will be eating biryani in front of your house, but you wouldnt be there to hear them saying "Yaar, achchee see botian to lay ker ao." Yes, the driver would be to blame, but you would be to blame more, because you were doing the first wrong, he only helped you on your way, by doing the second wrong thing. The first error is always the culprit, other errors will immediately, automatically follow.

So, be responsible, think about it, be safe. They've wasted a sh*t load of money on building walkways in NED University and everyone is still walking everywhere from one end of the road to the other. Maybe they should now just build ramps on the walkways so that at least I could drive my car on them.

Driving me crazy

Yesterday when I was driving back from the INETA Pakistan Executive Committee's meeting, at NIPA intersection, I was in the fast lane, and there was a white Civic to my left and slightly ahead of me, being driven by (in Adnan's words) a dogess, such that my car's hood was flush level with the tip of her nose. Thrice in five seconds she drifted her vehicle towards mine, each time I honked at her. And then she's staring at me as if I was doing something wrong. To hell with you, dogess! You may be cute, you may have a nicer car, but that doesnt change traffic rules, princess! One day, when I have lots of filthy money, I'll buy me a big, bad, mean, Dodge Ram truck. Their slogan is, "If you cant dodge it, ram it!" And then, I'll ram into and drive over all these idiots, and they couldnt ever catch up with my ride! Eeeeee haaaaawwwww, cowboy! Those who wrong others will pay!
I've decided that I'll blog a few entries about how to drive, on my blog. Why not, right? I've blogged about everything but the kitchen sink. So, stay tuned for some driving lessons.

Saturday, August 20, 2005

Some people never learn

Friday afternoon, some students (boys and girls both) from final year came down to the ground floor corridor, made some noise gathering their friends, and then reportedly the lady accomplices went to first year section A and asked a few girl students out during the Pakistan Studies lecture. All the noise disrupted my lecture and I stepped out to see what was going on. There was chaos and students were leaving the class and hurrying away while the students from final year taunted the first year students.
The entire episode reflected how they were brought up and what happens in their homes every day. Such a sorry lot. Some people never learn, no matter how you preach them to tell right from wrong.
If that's their idea of enjoyment, then enjoyment befits those who do their job full well, and not to those who rely on twenty sessional marks just to pass the exam. And then, enjoyment does not mean behaving like idiots. Oh, but wait! I forgot that they were muslims and Pakistanis on top of that. Their satisfaction lies in hurting others. My mistake.

Friday, August 19, 2005

Huge resource on web services security

A huge resource on web services security. Lots of papers and stuff.

Elliptic curve cryptography

Mr. Athar Mahboob, a very respected name in computer networking in Pakistan was working towards his PhD with interest in Elliptic curve cryptography. I reckon he would've finished by now, but no confirmation. I checked what elliptic curve cryptography is. I quote from Microsoft Research's website:
Ever notice when you're shopping online how as you enter that secure cash register zone where you give the merchant your credit card, your connection to the Internet seems to slow down? That's because the information you're sending back and forth is encrypted using public-key cryptography.

Now a modern computer can perform the several complicated mathematical operations on 128-digit numbers necessary for ordinary public-key cryptography in about 1/100th of a second. That seems fast, but a server computer on a busy merchant's site has to reply to thousands of requests every minute. Those hundredths of a second add up pretty quick when you're waiting for your real-time stock quotes.

The merchant can't compromise the security of the transaction. He either has to buy more servers or let the customers wait. So the challenge for the cryptographers at Microsoft Research is to strike a balance between speed and security. The fewer steps in an algorithm, the faster it works. The question then becomes, does a fast encryption message provide enough security for the data? That's always a judgment call.

Here we go again!

Right outside my window is a loud speaker. The loud speaker is connected to a music player of some sort. The music player is inside a canopy (shamyani). Someone is getting married in my neighborhood. It's 9:50 pm, and they've started test playing the player now. The speaker sure is loud. There is no one but a few kids in the canopy. I'm sure people would start arriving for the ceremony of "hina" after 11 pm. I'm an early sleeper and early waker, so its sleeplessness tonight. It's not my fault that she is getting married. Nor is it that of the other human inhabitants of the neighborhood. Some of them would be ill. But even though I can't hear them say it, the bride's family is saying "To hell with you all." to us all. Well, actually, they're saying something much more nasty than that, but I cant post verbal abuses on this blog. See, I wasnt kidding when I said there should be a ban on loud speakers in residential areas.
I'm sure the bride is only about to be taken to the beautician now and the celebrations will continue way past midnight. If it wouldnt mean that I would be sleeping without a fan, I would wish there were a power breakdown. But even then, I am sure they wouldnt spare us and would fire up their power generator.
When you do something good, base it on solid and good foundations. Starting something good (such as married life) by subjecting dozens of people to unrest?
When I get married, I'll specifically arrange for a voice over IP link all the way down from the city where I get married to Karachi in my street and have the loudest available speakers bang the shit out of my soon to be ex-neighbors. Revenge! HAHAHAHAHAHAHA

Thursday, August 18, 2005

More on the nation of shortcuts

Well, we are a nation of shortcuts, (which basically translates to the word "corrupt", but I wouldnt use exactly that word to save some of your ego), and I was watching an interesting show on TV last night. I hate talk shows, but this one was nice. There were three learned people and a jerk of a host (who reminds me of that stupid, idiot, stubborn O'Reilly from Fox), who was behaving for once. They talked about the way our youth celebrates Independence Day by riding bikes without silencers etc. I'm glad that unlike other talk shows they didnt catch every tom dick and harry from the streets, because we love to talk, and try to sound intellectual when we actually dont even know what we are saying, and dont mean what we are saying, dont follow/implement what we are saying. Adnan Farooq was pointing out a show a while ago on TV in which a lady on the street was urging everyone to come out and "cast as many votes as possible." That is stupid!
Anyway, the discussion on last night's talk show was quite intellectual as there actually were learned people talking (for a change). They cited a number of reasons for this behavior, one of which is lack of healthy or constructive release of energies, which in turn goes out negatively. I agree. For instance, an Islamabad Police Psychiatry Doctor suggested that we build racing tracks for cars and bikes and give an opportunity to our skilled riders and drivers the opportunity to try out their skills and prove that they are the best. Maybe someone would actually get international recognition. He cited that less deaths occur on the international racing tracks in an year than on Lahore streets due to wheeling in one day. Also suggested were other competitions of theatre, sports etc, and roadside arts galleries.
They pointed out the lack of organization amongst us. The police is not going to provide that, we should have it in us. Let's be fair, what would you do, if you had an adolescent son, who was caught by the police doing something nasty like snatching a lady's purse or wheeling (I'm not saying the actually nasty things through self sensorship)? Wouldnt you call up everyone of your "influential" relatives and friends? Wouldnt you try to get the sucker out of the lockup asap? Why? Are you above the law? Like the Federal Law Minister? See, it's in us all. You cant blame the Law Minister. You would've done the same thing if you were him, so if he's a criminal, so are you. (And me, too.) What do we complain of then? We have no right to complain. We are the wrong doers ourselves. Why not let the sucker stay in the lockup for a change amongst the sewer stuff. It'll do him/her some good. What do we do when we are stopped after a traffic violation? We try to avoid the proper punishment and try to escape by greasing the palm of the traffic cop. Once again I say, we are a nation of shortcuts, and what stinks is that the shortcut is always longer than the regular route. Wake up, we've slept way too long.

Tuesday, August 16, 2005

Data (objects) between ASP.NET web forms

I dont know if you've noticed or not, but I stink at web forms. A group of students were asking me how to pass object data between web forms, and I showed them one way of doing it. I found another one on this page. Feel free to comment.

Decoupling ASP.NET UI and BOL

Found that a lot of people are usually doing it wrong, especially when it comes to web applications. Here's an interesting article that we could perhaps learn a bit from. I know there are many more articles better than this one, but I think it's not a bad place to start. Seems compact enough.

Sunday, August 14, 2005

Irony

Irony, if you dont know what the word means, first read this definition of the word. Then, read this editorial from the Daily Dawn of Sunday, August 14, 2005. We are a nation full of irony. The son of the Federal Minister for Law, is above the law. The brat beat up a citizen that asked ASF personnel to searched the Minister and his son. What a shame! What is happening to us! The ASF people should have shot that citizen first. Why did the Minister's son had to be troubled to beat the stupid idiot. I think that a standing committee should be formed immediately to review the training process for ASF personnel.

Words of wisdom

"Go Kiss the World" by Subroto Bagchi, Chief Operating Officer, MindTree Consulting, India contribution copied from Syed Azhar Hussain on a mailing list.

Welcome Address by Subroto Bagchi, Chief Operating Officer, MindTree
Consulting to the Class of 2006 on July 2, 2004 at the Indian Institute
of Management, Bangalore, India on defining success.

I was the last child of a small-time government servant, in a family of
five brothers. My earliest memory of my father is as that of a District
Employment Officer in Koraput, Orissa. It was and remains as back of
beyond as you can imagine. There was no electricity; no primary school
nearby and water did not flow out of a tap. As a result, I did not go to
school until the age of eight; I was home-schooled. My father used to
get transferred every year. The family belongings fit into the back of
a jeep
- so the family moved from place to place and, without any trouble, my
Mother would set up an establishment and get us going. Raised by a
widow who had come as a refugee from the then East Bengal, she was a
matriculate when she married my Father. My parents set the foundation
of my life and the value system which makes me what I am today and
largely defines what success means to me today.

As District Employment Officer, my father was given a jeep by the
government. There was no garage in the Office, so the jeep was parked
in our house. My father refused to use it to commute to the office. He
told us that the jeep is an expensive resource given by the government
- he reiterated to us that it was not 'his jeep' but the government's
jeep. Insisting that he would use it only to tour the interiors, he
would walk to his office on normal days. He also made sure that we
never sat in the government jeep - we could sit in it only when it was
stationary. That was our early childhood lesson in governance - a
lesson that corporate managers learn the hard way, some never do.

The driver of the jeep was treated with respect due to any other member
of my Father's office. As small children, we were taught not to call
him by his name. We had to use the suffix 'dada' whenever we were to
refer to him in public or private. When I grew up to own a car and a
driver by the name of Raju was appointed - I repeated the lesson to my
two small daughters. They have, as a result, grown up to call Raju,
'Raju Uncle' - very different from many of their friends who refer to
their family drivers as 'my driver'. When I hear that term from a
school- or college-going person, I cringe. To me, the lesson was
significant - you treat small people with more respect than how you
treat big people. It is more important to respect your subordinates
than your superiors.

Our day used to start with the family huddling around my Mother's
chulha - an earthen fire place she would build at each place of posting
where she would cook for the family. There was no gas, nor electrical
stoves. The morning routine started with tea. As the brew was served,
Father would ask us to read aloud the editorial page of The Statesman's
'muffosil' edition
- delivered one day late. We did not understand much of what we were
reading. But the ritual was meant for us to know that the world was
larger than Koraput district and the English I speak today, despite
having studied in an Oriya medium school, has to do with that routine.
After reading the newspaper aloud, we were told to fold it neatly.
Father taught us a simple lesson. He used to say, "You should leave
your newspaper and your toilet, the way you expect to find it".

That lesson was about showing consideration to others. Business begins
and ends with that simple precept.

Being small children, we were always enamored with advertisements in
the newspaper for transistor radios - we did not have one. We saw other
people having radios in their homes and each time there was an
advertisement of Philips, Murphy or Bush radios, we would ask Father
when we could get one. Each time, my Father would reply that we did not
need one because he already had five radios - alluding to his five
sons. We also did not have a house of our own and would occasionally ask
Father as to when, like others, we would live in our own house. He
would give a similar reply, "We do not need a house of our own. I
already own five houses". His replies did not gladden our hearts in
that instant. Nonetheless, we learnt that it is important not to
measure personal success and sense of well being through material
possessions.

Government houses seldom came with fences. Mother and I collected twigs
and built a small fence. After lunch, my Mother would never sleep. She
would take her kitchen utensils and with those she and I would dig the
rocky, white ant infested surrounding. We planted flowering bushes. The
white ants destroyed them. My mother brought ash from her chulha and
mixed it in the earth and we planted the seedlings all over again. This
time, they bloomed. At that time, my father's transfer order came. A
few neighbors told my mother why she was taking so much pain to
beautify a government house, why she was planting seeds that would only
benefit the next occupant. My mother replied that it did not matter to
her that she would not see the flowers in full bloom. She said, "I have
to create a bloom in a desert and whenever I am given a new place, I
must leave it more beautiful than what I had inherited". That was my
first lesson in success. It is not about what you create for yourself,
it is what you leave behind that defines success.

My mother began developing a cataract in her eyes when I was very
small. At that time, the eldest among my brothers got a teaching job at
the University in Bhubaneswar and had to prepare for the civil services
examination. So, it was decided that my Mother would move to cook for
him and, as her appendage, I had to move too. For the first time in my
life, I saw electricity in homes and water coming out of a tap. It was
around 1965 and the country was going to war with Pakistan. My mother
was having problems reading and in any case, being Bengali, she did not
know the Oriya script. So, in addition to my daily chores, my job was
to read her the local newspaper - end to end. That created in me a
sense of connectedness with a larger world. I began taking interest in
many different things. While reading out news about the war, I felt
that I was fighting the war myself. She and I discussed the daily news
and built a bond with the larger universe. In it, we became part of a
larger reality. Till date, I measure my success in terms of that sense
of larger connectedness.

Meanwhile, the war raged and India was fighting on both fronts. Lal
Bahadur Shastri, the then Prime Minster, coined the term "Jai Jawan,
Jai Kishan" and galvanized the nation in to patriotic fervor. Other than
reading out the newspaper to my mother, I had no clue about how I could
be part of the action. So, after reading her the newspaper, every day I
would land up near the University's water tank, which served the
community. I would spend hours under it, imagining that there could be
spies who would come to poison the water and I had to watch for them. I
would daydream about catching one and how the next day, I would be
featured in the newspaper. Unfortunately for me, the spies at war
ignored the sleepy town of Bhubaneswar and I never got a chance to
catch one in action. Yet, that act unlocked my imagination. Imagination
is everything. If we can imagine a future, we can create it, if we can
create that future, others will live in it. That is the essence of
success.

Over the next few years, my mother's eyesight dimmed but in me she
created a larger vision, a vision with which I continue to see the
world and, I sense, through my eyes, she was seeing too. As the next
few years unfolded, her vision deteriorated and she was operated for
cataract. I remember, when she returned after her operation and she saw
my face clearly for the first time, she was astonished. She said, "Oh
my God, I did not know you were so fair". I remain mighty pleased with
that adulation even till date. Within weeks of getting her sight back,
she developed a corneal ulcer and, overnight, became blind in both
eyes.

That was 1969. She died in 2002. In all those 32 years of living with
blindness, she never complained about her fate even once. Curious to
know what she saw with blind eyes, I asked her once if she sees
darkness. She replied, "No, I do not see darkness. I only see light
even with my eyes closed". Until she was eighty years of age, she did
her morning yoga everyday, swept her own room and washed her own
clothes. To me, success is about the sense of independence; it is about
not seeing the world but seeing the light.

Over the many intervening years, I grew up, studied, joined the
industry and began to carve my life's own journey. I began my life as a
clerk in a government office, went on to become a Management Trainee
with the DCM group and eventually found my life's calling with the IT
industry when fourth generation computers came to India in 1981. Life
took me places - I worked with outstanding people, challenging
assignments and traveled all over the world. In 1992, while I was
posted in the US, I learnt that my father, living a retired life with
my eldest brother, had suffered a third degree burn injury and was
admitted in the Safderjung Hospital in Delhi. I flew back to attend to
him - he remained for a few days in critical stage, bandaged from neck
to toe. The Safderjung Hospital is a cockroach infested, dirty, inhuman
place. The overworked, under-resourced sisters in the burn ward are
both victims and perpetrators of dehumanized life at its worst. One
morning, while attending to my Father, I realized that the blood bottle
was empty and fearing that air would go into his vein, I asked the
attending nurse to change it. She bluntly told me to do it myself. In
that horrible theater of death, I was in pain and frustration and
anger. Finally when she relented and came, my Father opened his eyes
and murmured to her, "Why have you not gone home yet?" Here was a man on
his deathbed but more concerned about the overworked nurse than his own
state. I was stunned at his stoic self. There I learnt that there is no
limit to how concerned you can be for another human being and what is
the limit of inclusion you can create. My father died the next day.

He was a man whose success was defined by his principles, his
frugality, his universalism and his sense of inclusion. Above all, he
taught me that success is your ability to rise above your discomfort,
whatever may be your current state. You can, if you want, raise your
consciousness above your immediate surroundings. Success is not about
building material comforts - the transistor that he never could buy or
the house that he never owned. His success was about the legacy he left,
the mimetic continuity of his ideals that grew beyond the smallness of
a ill-paid, unrecognized government servant's world.

My father was a fervent believer in the British Raj. He sincerely
doubted the capability of the post-independence Indian political
parties to govern the country. To him, the lowering of the Union Jack
was a sad event. My Mother was the exact opposite. When Subhash Bose
quit the Indian National Congress and came to Dacca, my mother, then a
schoolgirl, garlanded him. She learnt to spin khadi and joined an
underground movement that trained her in using daggers and swords.
Consequently, our household saw diversity in the political outlook of
the two. On major issues concerning the world, the Old Man and the Old
Lady had differing opinions. In them, we learnt the power of
disagreements, of dialogue and the essence of living with diversity in
thinking. Success is not about the ability to create a definitive
dogmatic end state; it is about the unfolding of thought processes, of
dialogue and continuum.

Two years back, at the age of eighty-two, Mother had a paralytic stroke
and was lying in a government hospital in Bhubaneswar. I flew down from
the US where I was serving my second stint, to see her. I spent two
weeks with her in the hospital as she remained in a paralytic state.
She was neither getting better nor moving on. Eventually I had to return
to work. While leaving her behind, I kissed her face. In that paralytic
state and a garbled voice, she said, "Why are you kissing me, go kiss
the world." Her river was nearing its journey, at the confluence of
life and death, this woman who came to India as a refugee, raised by a
widowed Mother, no more educated than high school, married to an
anonymous government servant whose last salary was Rupees Three
Hundred, robbed of her eyesight by fate and crowned by adversity - was
telling me to go and kiss the world!

Success to me is about Vision. It is the ability to rise above the
immediacy of pain. It is about imagination. It is about sensitivity to
small people. It is about building inclusion. It is about connectedness
to a larger world existence. It is about personal tenacity. It is about
giving back more to life than you take out of it. It is about creating
extra-ordinary success with ordinary lives.

Thank you very much; I wish you good luck and Godspeed. Go, kiss the
world.

Plagiarism

For everyone out there, all the advisors and teachers who sign things without readin them, the advisors who willingly become co-authors on reports and papers to get "yet another publication" with out reading it and verifying it, and I know that few are exceptions in Pakistan, read this.
Shame on these idiots. Just read Schneier's comments there. We bring disgrace to our country and to our nation so shamelessly. Reading that piece, I feel confused whether I should be celebrating our independence or not. Yet another case of restriction in freedom and freedom in restriction. When will we become self policing.
For all advisors out there, for God's sake, read anything that you sign, anything that has your name on it. Maybe (God forbid) you will be someone famous, some day, then when you look at your CV, you would feel proud until you come to that line with the plagiarized publication. You couldnt escape it. Even if you remove it by selecting and deleting from MS Word, you can note erase history. The web will be evidence to your crime.
Multiple cases have been caught, of plagiarism from SSUET and IIU recently. I'm sure other institutions are no exceptions. For God's sake, please be responsible. With the HEC stressing on "numbers" of PhDs and papers, I am afraid we might see a rising trend in this rat race.

A free nation!

A free nation celebrating its independence day! To me, there is freedom in restriction and restriction in freedom. When little chickens are with the mother hen, they pick food from the ground, bathe themselves in the sand and the sun and play around with freedom while the mother hen restricts them from wandering off too far. When the chickens grow up, they become free to go wherever they please, but at the same time, become responsible for their own safety, for facing the consequences of their own decisions. The same thing holds for nations of the world as well. We are no exception.
How long will we blame all the shortcomings on either our country or on the proverbial corrupt politician or bureaucracy? They are all a mirror of us all. They are form amongst us, they are one of us. They represent us, our thinking, our actions. If anyone of us would get a chance to be in their place, would we be any different? Yes? Easier said, than done.
Let's face it, today more than ever. We are either to blame, me and you, my friend, for all the shortcomings, or even if we arent, we are responsible for setting things right. Little deeds, little corrections in our actions, in our words, in our thoughts, in our surroundings, can go a long way.
Who's that guy that just cut me off in traffic like a lunatic? He's a guy like me and you. I cant stop him and have him correct himself for the wrong that he just did, but I can use this as an enforcer of the resolve that I will not behave that way, because it is wrong. No matter how many people do it and proclaim it, wrong stays wrong and right stays right.
A while ago, I posted on an orkut group for students at CIS NED to come forward and plan on doing something different, something good, like, I dont know, maybe clean a barren field of rocks and stones, like planting a few plants, like painting an ugly, dirty wall, like placing a clock on a wall that needs it, anything. I dont have much ideas, because I havent done much good in life, but I promised that I would love to be the first one to pick up the broom if the occassion arrives, but the initiative must come from the students, because the students will always be here, in spirit, by setting an example to their juniors, forever, their memories, their deeds engraved invisibly and visibly in the walls, the floors, the environment, but I am just a leaf floating in the wind, here one day, dont know where I'll be the next. I had eagerness from one student only. I dont have much time left, I hope something materializes in the remaining time. Anyone can hoist a flag and ride a bike without silencers and fire gun shots in jubiliation, but few will try to make a difference. Let's make a difference, let's be the enablers instead of the spectators.

Saturday, August 13, 2005

My first instalment in Lahore

The first instalment of me has arrived in Lahore in the form of 21 kg of books. I've started moving.

Thursday, August 11, 2005

Spoke at SZABIST

Koshish Foundation had organized a seminar on "Computer Network Security Basics" at SZABIST, Karachi, today at 5:30 pm. Yours truly was the speaker. Since the classes there start at 6:30 pm, we started a little late to let the students come in. For a change, I discussed cryptography, cryptography, and cryptography. It was a risky proposition to talk about something that can be so boring at times. I did try to keep it as light and easy to grasp as possible. Of course, I cant tell whether I was successful or not. I dont think there were any feedback forms. I hope some people took my email address from the slides and send feedback. The presentation slides are now uploaded.

Sunday, August 07, 2005

Practice

I have a bad habit. I answer most of the questions I get by using google. So, I thought I'd blog for everyone this one. Practice! Try google with different search strings. It comes with practice. In the end you'll be able to find anything you want from an authentic source effortlessly. If you are looking for something from a specific website, try site search on google which is quite easy. For instance, if I am looking for delegates tutorial on microsoft's website I would type in the search textbox on google: delegate tutorial site:microsoft.com and hit enter. That'll search all of microsoft.com and msdn.microsoft.com, research.microsoft.com etc. Get the idea?

Spoken today

I spoke today at Sir Syed University of Engineering and Technology from 4:05 pm to 5:40 pm about Introduction to .NET Framework. I tried to keep cracking people up with funny comments here and there. Most people seemed straight faced. I hope they got the jokes. There was a not very lively, but an interesting question and answers session at the end. We gave away VS 2005 Beta 2 DVDs and Code Zone magazines courtesy of SSUET .NET User Group. The presentation for the session is uploaded on my website.

Wednesday, August 03, 2005

our psyche

I'm back with my famous rants. I'll tell you about the psyche of an average Pakistani, which I'm sure you would find so fitting and true. And the average Pakistani fits all but a handful of Pakistanis, the ones that the average ones call "charya" or knuckleheads.
Imagine a Pakistani crowd, whether it is us driving on the road, or shopping in the market, or at the airport, or at a lunch/dinner buffet. Take an imaginary photo of that event in your mind. Here is how the average Paki looks at that picture: subtract everyone except yourself.
Now I dont have to wonder why we drive that way, or disregard everyone else the way we do, but what exactly causes us to think that way?

How to ask a question

As myself and Adnan Farooq have been whining about people asking questions the wrong way or with the wrong attitude, Mr. Kamran Sorathia nailed it by emailing on INETA Pakistan's mailing list, this page from Microsoft's website which is quite well written and guides one on how best to ask a question on a forum so that you would get an answer, too.

Tuesday, August 02, 2005

Matlab

Someone brought up this situation where they wanted to build a rich frontend using C# for something they were developing in Matlab. I suggested that one way they could go is use file I/O to write variable values that they can then pull from a C# program and display in whatever way they find appropriate. If you know of a better way, feel free to comment on this post. I found this page that describes writing XML files from Matlab.

Monday, August 01, 2005

Enough countdown!

Enough annoying countdown. Hush for now.

Sunday, July 31, 2005

XML Serialization of a record list

XML Serialization only serializes public data, so I wrote a small contact book application that demonstrates serializing collections by creating a couple of records consisting of name and phone number objects and serializing them.
I wouldnt want to define my variables as public, so I defined them as private, but exposed them through public properties, in which we could implement value checks etc. I annotated those properties with the [XmlElement] attribute so that each of those properties when serialized would become an XML Element as you would see shortly. I did similar with the name class. Note that you need to define default constructors.

public class PhoneNumber
{
int _countryCode;
int _cityCode;
int _number;

[XmlElement("CountryCode")]
public int CountryCode
{
set { _countryCode = value; }
get { return _countryCode; }
}

[XmlElement("CityCode")]
public int CityCode
{
set { _cityCode = value; }
get { return _cityCode; }
}

[XmlElement("Number")]
public int Number
{
set { _number = value; }
get { return _number; }
}

public PhoneNumber(int countryCode, int cityCode, int number)
{
_countryCode = countryCode;
_cityCode = cityCode;
_number = number;
}
public PhoneNumber()
{
}
}

public class Name
{
string _firstName;
string _middleName;
string _lastName;

public Name(string firstName, string middleName, string lastName)
{
_firstName = firstName;
_middleName = middleName;
_lastName = lastName;
}
public Name()
{
}

[XmlElement("firstname")]
public string FirstName
{
get { return _firstName; }
set { _firstName = value; }
}

[XmlElement("middlename")]
public string MiddleName
{
get { return _middleName; }
set { _middleName = value; }
}

[XmlElement("lastname")]
public string LastName
{
get { return _lastName; }
set { _lastName = value; }
}
}


Then, I defined the Record class that aggregates Name and PhoneNumber. I defined private members for name and phone number and exposed them through public properties, annotated with [XmlElement] attributes.

public class Record
{
Name _name;
PhoneNumber _phoneNumber;

[XmlElement("Name")]
public Name name
{
set { _name = value; }
get { return _name; }
}

[XmlElement("PhoneNumber")]
public PhoneNumber phoneNumber
{
set { _phoneNumber = value; }
get { return _phoneNumber; }
}
public Record()
{
}
}


Then, our top level class, which I was too lazy to rename from the VS .NET name Class1, I annotated it with the [XmlRoot] attribute to provide a name for the XML root element. Then, in the accessors for the records, I annotated it with the [XmlElement] attribute so that the name and phone number elements would be nested inside a Record element and Record elements would be inside the root element. Of course, there can only be one XML root element for a document. I also implemented a get accessor indexer so that you could access collection elements through array-like syntax. The rest of the code isnt too difficult to follow.

[XmlRoot("NameList")]
public class Class1
{
ArrayList _nameList;

public Class1()
{
_nameList = new ArrayList();
}

[XmlElement("Record")]
public Record[] Records
{
get
{
Record[] names = new Record[_nameList.Count];
_nameList.CopyTo(names);
return names;
}
set
{
if ( value == null )
return;
Record[] names = (Record[]) value;
_nameList.Clear();
foreach (Record name in value)
_nameList.Add(name);
}
}

public Record this [int index]
{
get
{
return (index < _nameList.Count) ? (Record) _nameList[index] : (Record) null;
}
}

public void Add(Record rec)
{
if (rec != null)
_nameList.Add(rec);
}
///
/// The main entry point for the application.
///

[STAThread]
static void Main(string[] args)
{
Class1 oMain = new Class1();
Name hisName = new Name("Adnan", "Farooq", "Hashmi");
Name anotherName = new Name("Hammad", "", "Rajjoub");
PhoneNumber ph1 = new PhoneNumber(92, 21, 888222);
PhoneNumber ph2 = new PhoneNumber(92, 21, 777333);
Record rec1 = new Record();
rec1.name = hisName;
rec1.phoneNumber = ph1;
Record rec2 = new Record();
rec2.name = anotherName;
rec2.phoneNumber = ph2;
oMain.Add(rec1);
oMain.Add(rec2);
XmlSerializer ser = new XmlSerializer(typeof(Class1));
StreamWriter sw = new StreamWriter("data.xml");
ser.Serialize(sw,oMain);
sw.Close();
}
}


I was a bit miserly with comments on this, which is rare. The reason is that I had a couple of other programs to do today, and I also had to do extra time on campus this morning to finish off some unfinished business.
If you're as lazy as I am, or even beat me, which is difficult, because lazy people are too lazy to beat others, just download the source code. I am including the XML file for good measure. Dont blame me for the stupid application, I am a lousy developer.

29 days to go!

29 days left. The countdown continues!

More than just a man

You traveled the world, now you must journey inwards, to what you fear. There's no turning back. Feeling is nothing, will is everything. If you make yourself more than just a man, if you devote yourself to an ideal, you become something else entirely. Are you ready to begin?

Batman begins

Configuring Cisco router through ASP.NET 2.0

OK, so how do you do interactive programming of the Cisco device using the cool .NET 2.0 System.IO.Ports.SerialPort class? Here's a sample. This sample will work with Visual Studio 2005 Beta 2. I built a website project based on the filesystem (i.e., not on IIS or FTP). The web page gives you a dropdown list to choose from amongst COM1, COM2, and COM3, lets you type the enable password in a text box and the command to run. It then displays the result of the command into a label. What you can do with it is only limited by your imagination. Enjoy again!

Mobile Web App to configure Cisco router/switch

Some of my students were working on this project, so I brought home a Cisco 2950 catalyst switch and built on top of the telnet C# library, a mobile web application project, which I have uploaded to my web site. Just download the zip file, uncompress it. The folder MobileWebApplication1 contains the solution file so you can place it in your Visual Studio Projects folder in your My Documents folder and place the folder MobileWebApplication1 inside it in InetPub\wwwroot\. The Telnet C# library is included with the project, so you dont have to download it separately. Enjoy!
This one is a proof of concept for configuring a Cisco router over an IP network. I'll try to upload something that does the same over a serial port soon. I'll probably use VS 2005 Beta 2 to do that, owing to its cool System.IO.Ports namespace.

Saturday, July 30, 2005

30 days to go

The count down continues. 30 days to go.

For those wanting to write a conference paper

Those of you who are wanting to write a conference, for SCONEST 2005, for instance, and wondering how to go about writing a paper, I have a presentation on my website that you can use. You can download it in PDF format or in Microsoft PowerPoint format.
You can write a paper about something that you have done, a project, your senior project maybe. You can write a paper about something you have studied from various sources. You can write a paper about something that you are going to do but havent started. You can write a paper about something that you have done partially and is not yet complete. Good luck!

My website is back

My domain has now been renewed and my site was moved to a new server. The new server seems good enough. You might be interested to know that my presentations for the PDC 2005 sessions that I gave as well as the source code for the demos are available there. Enjoy!

Thank you for your comments that I cherish

I got so many comments and such great comments to my posting titled "Got it!" that I had a very long reply. So, I decided to write a new post with replies to those comments.
Thanks loads guys and girls. I thank those who have posted there comments and those who havent. You all mean so much to me. It takes a good person to see good in others. It is not me that is good, but you, who see me as good.
Adnan, I understand your feelings, and you understand mine. We make a great team. I have a feeling that some day soon, we'll be working together, and I'll wait for that day anxiously, because it will be source of pride and honor for me.
Faisal, it is an honor and a great source of pride for anyone to know that one has been an inspiration for someone. In fact it is something that people dream of, it is an achievement of a lifetime. It greatly humbles me to know that I have been able to touch someone's life and influence it in such a subtle way. Yes, I hope you'd see me on research journals time and again. Yes, I have a very long way to go. Lots of hard work to be done.
Khurram, it takes a good man to appreciate someone, and I assure you, you are the good man, I am just a guy who's doing his job.
Yahya, I'm glad you feel that way. I wish I could say that I deserved it. I certainly worked hard, but I do strongly feel that the prayers had a lot to do with it.
Nouman, I understand your feelings, but I am certain that I am leaving with several very competent teachers behind. I always want to be different, I want to make a difference, in someone's life, at my workplace. I see several people who will still be here, who want to do the same. I fought a battle, they will continue.
Kanizeh, that is a huge huge thing that you said. I thank you immensely for that. Me, in that league, at this age? That is quite something. I am happy that you and some other people feel that way. My bottom line has always been, I am not doing anything great. I am only trying to execute my job. I feel that as a teacher, it is my responsibility to assist my students in and out of class, with my subject, or on anything else. That is the job duty that I have tried to execute. Quite honestly, and not being humble, I always feel that I have not been able to do that to the extent that I am supposed to. So, I just keep trying my best, without the greed for any rewards. Fortunately, many many rewards have come my way, the greatest of which are the statements like yours and Faisal's that, to me, are greater than the MVP award, greater than a million rupees a month salary, an airconditioned office and a car, greater than anything else. I once again say, it takes a great person to appreciate someone. I am not great, I am not good, it is you who is/are great to see the good in me and not the bad. Thank you all, and know that I am not going anywhere. I am happy to know and say that I will be right here for you, in your hearts and minds, anytime. Just think of me, and I'll be thinking of you. We're inseparable.

Friday, July 29, 2005

Configuring device from serial port in ASP.NET

Well, you could either do that over a DNS name or IP address, for which there are a number of methods as I have already blogged earlier. Otherwise, if you are connected over a serial port, try this, an article by a fellow MVP. Better still, a blog entry by the same guy for working with .NET 2.0.

31 days to go

The count down has begun. 31 days left.

I fall in love over and over

Every time I see her after I wash her and rinse her, I cant take my eyes off her. Sitting there, an object of beauty. I just cant decide whether I love my Nissan more than I used to love my Civic 89. What exactly were you thinking?

This entry rated PG-13

This blog entry is rated PG-13. Dont read it unless you're comfortable with it. I cant help posting on this. Meera just keeps coming on the screen so outrageously in that new Lux advertisement saying "khoobsoortee ka raaz. Janna chahtay hain?" And the way she is in that adv, every single time I see that adv, I fear that she's about to tell the truth. No, no, I dont wanna know the secret of your beauty. I already know it. Since when did we start getting silicone advertisements. What is wrong with our advertising industry?

Another C# Telnet

I found another C# Telnet solution.

I'm a very strange fellow!

Back in 1991, when I was applying for admission to high schools, I had a difficult case because I had been out of country for one year and the board of intermediate education had just recently erected a rule that people who have a gap of one year after their secondary school certificate will not be admitted to colleges on priority. I was determined that I wanted admission at DJ Science College. My percentage was good, but I didnt want to even apply at Adamjee College, which was reputed top in the city at that time. I only applied at DJ Science College. My folks kept asking me to apply elsewhere, but I strongly said, DJ or nothing. In the end, when the merit list was displayed, my name was not there. We were shocked. We went to see the principal and showed him my passport and my marks statement. He was a thorough gentleman and was impressed by my marks statement. He immediately instructed one of the teachers, Mr. Raju Kalip to accompany me to the admission office and have me admitted immediately. Mr. Raju Kalip is another fine gentleman that I can not forget not just because he helped me out, but because he was an excellent teacher. He taught us maths with a zeal and excitement that I cant even come close to attain even when teaching my favorite courses. I heard later that Mr. Raju Kalip had developed diabetes. I hope that he is well, wherever he is.
This time again, for PhD, I only applied at LUMS. There came a moment, when I started thinking, I should've applied to other universities, but alhamdulillah, in the end I not only got admission, but much more. Allah is nice to me. Allah is nice to us all, we just dont notice it.

See, I told you!

See, I told you the wind of change was about to blow! If you dont know what I mean, read by blog entry "Got it!" But the wind of change has only started to blow. There's much more, so just wait and see.

Got it!

I am blogging from a few hundred light years above cloud number nine thousand nine hundred and ninety nine. I received news today of what I had been dreaming of so desperately. I was admitted to LUMS Department of Computer Science and Engineering in the MS/PhD program and have been granted full fee waiver and a monthly stipend. They offer that to the top five candidates. That's quite an achievement. I'm sure you can never understand what or how much it means to me. Just think of it this way. Ever have so much joy that you wanted to cry and couldnt stop crying for a long time?
First position in eighth grade. Highest percentage record at my school in ninth and tenth grade. Second position in my first year at NED University. Assistantship two weeks into my first semester at Wichita State. A freelance software development that gave me so much to learn. Student Activities Committee Chair for IEEE Karachi Section. IEEE Student Branch Counselor at NED University. INETA Pakistan Country Leader. Invited to Dubai twice to attend Microsoft Research .NET 3-day Crash Course, everytime with free air travel, five star hotel stay and meals. Invited to Turkey to attend and speak at INETA MEA Country Leaders' Summit. Nominated Secretary IEEE Karachi Section, which I turned down. Elected Secretary/Treasurer IEEE Communications Society, Karachi Chapter. Endless list of praises and appreciations from so many people and platforms. All for an incompetent and incapable person like me. I can not attribute it to anything but my parents' prayers. And there is so much more that Allah has blessed me with that I cant even begin to encompass. If I would be in prayers for my entire life, I could thank Allah enough for all that I have been given.
Success is a journey and not a destination. This is only the first step to a journey. I have a daunting task ahead of me to live up to the confidence placed in me by the gentlemen at LUMS. My faculty advisor is Dr. Shahid Masud who is a graduate from Queen's University of Belfast. He maintains a home page, too. With teachers like the ones over there, I am ready for action, ready to take on the world.
I pray for strength at this crucial juncture of my life. Pray for me, like you have prayed for me before.

Yea, right!

As I was dialing up to my ISP, I heard tones that indicated a noisy line and an imminent slow connection. When the connection completed, Windows showed me a balloon saying connected at 115.2 kbps. Yea, right! I have a 56kbps modem. Maybe everything goes right together just as everything goes wrong together.

Thursday, July 28, 2005

The wind of change

The wind of change is starting to blow. I have a feeling it is going to be very strong.

Goodness is its own reward

Doing good with the greed of a reward is probably very much like doing evil. Goodness is its own reward. I had this argument with a few faculty members from some so-called universities in Karachi, back in 2003. We were talking about the community activities that I have been involved in for quite some time, and the formidable donations that I had brought to my department at NED University through my networking and efforts. The "faculty" immediately asked me if the university recognizes my efforts. I said, "no, and I dont care." They said, "no, you should care and you should be acknowledged."
I told them and I tell you, I do what is right because that is the thing to do. If you're doing right, that's nothing extraordinary. If you're doing wrong, that should be denounced. It's like if someone returns someone else's lost wallet, the whole thing gets published in the newspapers. Give me a break, he did what he was supposed to do, he did what he should've done. Do you get a reward for working 9 am to 5 pm? No. You get a reward if you work beyond your job description. Well, quite frankly, I've been working beyond the call of duty, but that's because it brings me satisfaction. I dont care about the fact that I earned four to five times less than what my class fellows did.
By our society's standards, I am a nut case. A student of mine, an year or so back, when he noticed how and what I've been doing admitted exactly that. He said, "Sir, you're a nut case." I said, "damned right I am a nut case. And we need as many such nut cases as we can get." If you find any, get me in touch with them.

Wednesday, July 27, 2005

IEEE

My good student Farhan Khan was telling me that at a time IEEE membership specialities expanded so fast from being Electrical and Radio Engineers, that some people joked that it should be called IEEE - Institute of Electrical Engineers and Everyone else.

Traffic blues

Picture this. You're on a single lane road. You come to a "T" where you have to either turn right or left. The road to the left and right is also single lane, with traffic in both directions sharing the lane. You stop behind the car in front of you because there is approaching traffic from the righthandside. Once that car clears out, you start off turning to the right, and on that god-damned single lane road, there is a car passing you from the right, and a car passing you from the left. That's a god-damned turn idiots, you're not supposed to pass on a turn. And its a single lane road, for crying out loud.

Sunday, July 24, 2005

Is there a way out?

So, with all these sarcastic and gloomy blogs and emails from me, is there hope? Is there light at the end of the tunnel? Is there a way out? Yes, there is. And it lies in you, it lies in me, the common man. We must correct ourselves, and the society will improve. We must inculcate in us the desire to change, to improve.
Seen the new pavements built in N.E.D. University? And still I see that people, sometimes including myself are walking on the road, in the middle of the road (I dont do that, though). We are the most educated lot of this country, and our behavior is not indicative of that. Can we correct ourselves? Yes, we can start with small things, like beginning to:
walk on the pavement instead of the road
by not sitting on the stairs
by not standing blocking the corridor
by not shouting out whenever possible
by not littering everywhere but throwing garbage in the dustbin
by not writing on the chair, the wall, the desk, and the computer
by leaving the chair neatly tucked near the desk when we leave the laboratory instead of in the middle of the isle
by not breaking the plants and instead planting new ones
Sounds easy doesnt it? That's because it is. These small changes can make a difference. So, dont be part of the mob, be different, be remembered as such. Do something unique, out of the box, do something that is right, not what is considered "cool." Are you with me? Do you wanna start tomorrow? Do you wanna start today? Do you wanna start right now? Let's do it. Let's show the world what we're made of. Let's be an example for the illiterate, instead of following their example.

Of progress and men

"We" had a very interesting discussion yesterday. I said something that I have said often. And it goes something like this.
Governments and bureaucracy everywhere believes in one thing: Status Quo. Meaning, everything remains the way it is. That means no progress. That is true everywhere. If you think that it's different in the west, think again. Progress is driven by the academia and the enterpreneurs in the private sector.
Unfortunately in our case, the academia where there is a desire and action to move forward, there isnt quality intake of students. And where there is quality intake of students, there is lack of desire and drive to progress, there is status quo.
We have to step out of this in order to move forward.
As for entrepreneurs, ours want returns before they make any investment. In progressive nations, there is investment in R&D of a product for years before it bears fruit. To our entrepreneurs, salaries are not an investment, but an expense.

Writing a paper

I'm writing a paper right now about security in Wireless LANs along the lines of the project I've been blogging about. It'll be copyright IEEE if it gets published where I want to submit it, so I cant share it with y'all.

Dreaming in red

Dreaming in red by The Calling

Once upon a time
Somewhere far away from here
I was drowning in a deep sleep
Got no ground beneath my feet
And there's so many faces
I'm New York and I'm Japan
There's so many things that I want to know
But I'll never understand...

Now I'm dreaming in red
Just drifting away
I'm dreaming in red
Come and take me away

I just got to get it right
Before I make it wrong
Cause I'm breaking out and rising up
While the world is falling down...

I see the sun behind the night, sky
One last moment before I say goodbye...

tape 'em

Well, this Friday, we came to know that there were new regulations that the "waaz", i.e., the sermon that is given in Urdu language before the formal "Khutba" of the Jumaa prayer, was not to be done unless it is taped and delivered to the police station afterwards, hence, there was no waaz at our mosque.
There are good and bad points about this. One bad point is that we dont have provision for women praying in the mosques so some ladies did benefit from hearing the waaz from the mosque loudspeakers so that they learn something new every week. Now they wouldnt.
One good point, however, is reduction in noise pollution. I dont mean the traditional meaning of noise pollution, but I'm very concerned about the fact that any tom, dick and harry can put up a loud speaker any time and start howling into it whatever he wants. I'm not talking about mosques here, this is generally applicable to your neighborhood musical party during birthdays, naat competitions, qawwali nights all of which are excellent recipes for ruining people's peace.
All of that might be done in good spirit, but it is hurting the very spirit of Islam of caring about the comfort of the neighbor. Maybe someone is ill, someone needs rest, someone needs to concentrate on studies, maybe even pray. You cant even pray while someone is shouting on a loudspeaker.
In the US, no one could use loud speakers without prior approval, and I never heard anything on a loud speaker. I heard that there was one mosque in Houston, Texas, around which there were only muslim families and the mulsim faimilies certified that they were all OK with the calling for prayers on a loud speaker, hence the only mosque in the US that has call for prayers on loud speaker.
I wish that something would be done to ban loud speakers on all occassions. If you wanna do a concert, go do it at the creek where no one else could hear it, or maybe in an indoor theatre.

Telnet with C#

Here is a library for doing telnet scripting from within C#

Saturday, July 23, 2005

I have a job too

At times people have told me that they cant do something because they have a job. Yea, right, and I'm supposed to do it because I dont. Sheesh! Others working at non-academic organizations feel that I have a luxurious job, 8:30 am to 3:30 am, summer and winter vaccations. Heaven, right? Sure! I leave for work at 7:45 am and if I enter home before 10 pm, my folks offer thanksgiving prayers. All this time I'm out earning money left and right? Not at all. I'm out spending on stuff that I do for others, because of the inward pleasure that it brings to make a difference in others' lives.
Try to leave your jobs and spend a day in my life. Try dealing with a 140 students a class, for two classes that you're teaching, and one class that you taught last year, four batches that graduated being your student, who would come down for recommendation letters, advice, discussion, the department's sweeper, the department's electrician, other faculty members with their day to day needs that I'm supposed to take care of, the services department employees who need my advice and signatures when they replace a tube light or a door knob or a water tap based on a written complaint from myself, and the suppliers who are supplying everything from computers to printers, to paper, to tube lights, to electric wires, to furniture, and a few other things for icing on the cake. Not a moment goes by when there is only one thing on my mind, only one person in the queue. Today, after leaving class, I counselled three students within ten steps of walking distance, another five at the foot of the staircase to the laboratory corridor, not to mention those who were waiting upstairs. No wonder I cant make it to class on time. Some people suggest that I should force consultation during designated consultation hours only. But our patients wouldnt understand that. They want it "right now." I'm pushed towards burn out, but since its not for long, I let it be. But the worst is when all of them minus a couple ask you the magic question, "Sir aap busy to naheen hain?" meaning, asking me if I am not busy. For all of you, know that the true answer is, of course I'm busy, just throw your question and save us both some time. Your questions help me learn, so keep them coming, but be understanding, too.
A certain group of people, when they ask a question, they want the solution, not the path to the solution, which is exactly what Adnan is saying in his posting. They dont want you tell them a big picture of how things are to be done, they dont even want you to tell you which menu to go to and which option to select and which method to write what code into, they want you to give them the solution. Thank God, none of my students are like that. My students are all smarter than me.
As Adnan said, if you feel that I (we) helped you, if you feel that we did the right thing, do help others. You dont have to acquire a certain status to start helping, you can start anytime.
If you seek help, do your homework. Often people come asking for help when they dont even understand what they are about to do. Fine, no one knows what they are about to do most of the time, but if you want to extract something out of a consultation session, you should read ahead and plan and prepare so that you can actually absorb what is being said. Many times people have come and I tell them what to do and in the end we are still where they started, and they ask me what they should do, I'm like, DUH! That's why, when I give anyone a lot of directions, I pause, repeat my instructions, write them down with numbering and give it to them.

Phew!

Finally, my DS0 is functional again. I'm paying line rent for most of this month without service. They say that the diggers hit the telephone cable. Same old excuse.
Two sessions for INETA Pakistan today. First, Hammad at Jinnah University for Women on Introduction to .NET Framework and then Zeeshan Muhammad with his debut session at NED University on Master Pages and Themes. Both sessions started late but went well. I hope the audience at NED University liked the broasts. The broasts had to be in the boxes for a few minutes which may have caused some deterioration, but I tried to do the best I could do. I hope it ended up well for the audience. There wasnt any left for us in the end, so we had to go out and get some for ourselves. I'm glad we had something of a volunteer force today. I'm hopeful they'll take a lot of load off my back now.

Friday, July 22, 2005

One way of staying ahead

Some people believe that one of the ways of ensuring that you stay ahead is to ensure that others stay behind. Our nation seems to be following the same doctrine.

Wednesday, July 20, 2005

Who am I?

It's not who I am underneath, but what I do that defines me.

Batman Begins

Sunday, July 17, 2005

How to setup a CA of your own

In my efforts to implement a secure wireless LAN, utilizing RADIUS based authentication, I had quick success on username/password based authentication, but we had considerable difficulty getting X.509 certificate based authentication because we were not very well versed on it. Finally I managed to get it done. Here is how. Please know that some of the links would not work because I have not uploaded the files to my web server yet. Please be patient, I'll upload them shortly.

Create your own Certificate Authority

One way to create your own Certificate Authority (CA) is to use the Certificate Services that come with Windows 2000 Server. Having already installed FreeRadius on RedHat Linux 9.0, I decided that we should set the CA up on Linux as well. Well, you could actually set up your RADIUS server on Windows 2000 Server also.
So, the first thing to do to set up your own CA is to install openssl. I isntalled version 0.9.7a and freeradius 2.0.
While you can set everything up in the directory where openssl is installed, this page suggests that you create a different directory structure, so that it is not affected by any OS updates etc. In my case, openssl was installed in /usr/share/ssl. I took the advice and ran the following commands on the console:

[root@localhost CA]# mkdir /CA
[root@localhost CA]# cd /CA
[root@localhost CA]# mkdir certs
[root@localhost CA]# mkdir private
[root@localhost CA]# chmod 700 private
[root@localhost CA]# echo '01' > serial
[root@localhost CA]# touch index.txt
[root@localhost CA]# cp /usr/share/openssl/openssl.cnf

I copied over a few files including openssl.cnf from the /usr/share/ssl and /usr/share/ssl/misc directories:

[root@localhost CA]# cp /usr/share/ssl/openssl.cnf .
[root@localhost CA]# cp /usr/share/ssl/c_* .
[root@localhost CA]# cp /usr/share/ssl/C* .

You can download my openssl.cnf if you wish, for reference. Having done that, it is also useful to setup an environment variable called OPENSSL_CNF so that the various openssl commands look up the configuration from the file in /CA instead of the usual install location. So, I issued the following command:

[root@localhost CA]# export OPENSSL_CONF=/CA/openssl.cnf

Next, the CA needs a certificate for itself. We generate a server certificate (cacert.pem) as well as private key (privkey.pem) using the following command:

[root@localhost CA]# openssl req -x509 -newkey rsa -out cacert.pem -outform PEM
-days 10000 -extensions xpserver_ext
Generating a 1024 bit RSA private key
..............++++++
...++++++
writing new private key to 'privkey.pem'
Enter PEM pass phrase:
Verifying - Enter PEM pass phrase:
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [PK]:
State or Province Name (full name) [Sind]:
Locality Name (eg, city) [Karachi]:
Organization Name (eg, company) [NED University]:
Organizational Unit Name (eg, section) [CISD]:
Common Name (eg, your name or your server's hostname) [Secure Wireless LAN]:
Email Address [linux@linux.org]:

I then copy the private key file to where it is expected to be found, inside the 'private' folder and save it with a different name, even though this isnt necessary, as this can be changed in openssl.cnf.

[root@localhost CA]# cp privkey.pem ./private/cakey.pem

At this time, it would be useful to look at what we have just produced. You can cat or vi cacert.pem if you wish, but more useful is the following:

[root@localhost CA]# openssl x509 -in cacert.pem -text -noout
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 0 (0x0)
Signature Algorithm: md5WithRSAEncryption
Issuer: C=PK, ST=Sind, L=Karachi, O=NED University, OU=CISD, CN=Secure Wireless LAN/emailAddress=linux@linux.org
Validity
Not Before: Jul 16 17:12:24 2005 GMT
Not After : Dec 1 17:12:24 2032 GMT
Subject: C=PK, ST=Sind, L=Karachi, O=NED University, OU=CISD, CN=Secure
Wireless LAN/emailAddress=linux@linux.org
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public Key: (1024 bit)
Modulus (1024 bit):
00:b5:29:bd:88:15:f0:b0:44:35:91:a1:59:e4:a2:
0b:8c:fa:63:05:0e:8c:e7:0b:3c:0f:96:65:fd:ea:
7e:8c:0f:c3:e5:fc:b0:37:bb:71:9e:74:1f:fe:01:
a6:e5:99:df:fe:8f:47:4c:43:ed:98:ca:79:72:58:
39:53:6c:b0:24:69:31:0d:f2:31:e4:f4:1d:3d:07:
71:c2:e6:49:76:3b:f3:22:4e:b6:17:a3:fe:c1:22:
5d:e6:18:fd:18:30:ab:a1:d7:f3:24:c1:7b:f3:77:
c8:41:eb:bc:48:a4:c4:09:c1:df:8a:fc:e9:ca:00:
ff:f7:77:66:86:bf:55:2a:fb
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Extended Key Usage:
TLS Web Server Authentication
Signature Algorithm: md5WithRSAEncryption
3d:d4:6c:45:98:ee:6d:f9:f1:b8:69:c1:29:8e:fb:e9:1f:d2:
5f:ce:07:52:0e:e7:a1:71:4b:53:12:84:e7:79:50:e7:1b:85:
3b:7a:ba:51:82:a4:46:9d:6e:12:fd:15:c8:f0:80:42:a3:21:
78:f8:f4:65:90:cc:2e:86:c4:b2:2b:a1:bc:6d:89:ce:21:c0:
e8:79:a8:b7:ec:0d:69:52:9f:5a:78:9b:80:f4:61:f4:90:6f:
93:68:f7:9f:0c:79:3f:5e:fe:06:2a:bc:e9:4b:1f:95:3d:59:
87:db:5d:94:4a:a9:78:76:5b:ca:6f:ee:24:4a:85:18:bb:da:
95:cd

Cute, isnt it? Next thing we need to do is to find out the hash for this key and create a file with the name hash.0 from a copy of the certificate. How do you get the hash? There is a utility to do that, that comes with openssl, called c_hash. I invoked it as follows:

[root@localhost CA]# ./c_hash cacert.pem
8dc69078.0 => cacert.pem
Since my openssl.cnf is setup such that a file with the name hash.0 is expected in the newcerts directory, I do the following:

[root@localhost CA]# cp cacert.pem ./newcerts/8dc69078.0

Know that we could also have created a symbloic link back to the certificate file. Next, being the curious kind, I decided to verify the certificate thus:

[root@localhost CA]# openssl verify -CApath ./newcerts/ cacert.pem
cacert.pem: OK

Great! Now let's give the client a certificate. The procedure is quite similar but this time around, we give a different value for "Common Name." First we generate a certificate request.

[root@localhost CA]# openssl req -newkey rsa:1024 -keyout testkey.pem -keyform PEM -out testreq.pem -outform PEM -extensions xpclient_ext
Generating a 1024 bit RSA private key
......++++++
...++++++
writing new private key to 'testkey.pem'
Enter PEM pass phrase:
Verifying - Enter PEM pass phrase:
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [PK]:
State or Province Name (full name) [Sind]:
Locality Name (eg, city) [Karachi]:
Organization Name (eg, company) [NED University]:
Organizational Unit Name (eg, section) [CISD]:
Common Name (eg, your name or your server's hostname) [Secure Wireless LAN]:LaptopNumber1
Email Address [linux@linux.org]:laptop1@linux.org

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:wireless
NED University []:

Next, we sign it with the CA's key thus:

[root@localhost CA]# openssl ca -in testreq.pem -notext -out testcert.pem
Using configuration from /CA/openssl.cnf
Enter pass phrase for ./private/cakey.pem:
Check that the request matches the signature
Signature ok
Certificate Details:
Serial Number: 3 (0x3)
Validity
Not Before: Jul 16 17:17:44 2005 GMT
Not After : Jul 16 17:17:44 2006 GMT
Subject:
countryName = PK
stateOrProvinceName = Sind
organizationName = NED University
organizationalUnitName = CISD
commonName = LaptopNumber1
emailAddress = laptop1@linux.org
X509v3 extensions:
X509v3 Basic Constraints:
CA:FALSE
Netscape Comment:
NED OpenSSL Generated Certificate
X509v3 Subject Key Identifier:
BC:D7:6F:77:03:FE:94:88:C5:A2:2F:3C:64:43:6B:4E:D9:8F:A3:72
X509v3 Authority Key Identifier:
DirName:/C=PK/ST=Sind/L=Karachi/O=NED University/OU=CISD/CN=Secure Wireless LAN/emailAddress=linux@linux.org
serial:00

Certificate is to be certified until Jul 16 17:17:44 2006 GMT (365 days)
Sign the certificate? [y/n]:y


1 out of 1 certificate requests certified, commit? [y/n]y
Write out database with 1 new entries
Data Base Updated

Cool! Now we need to put the hash.0 file in the newcerts directory:

[root@localhost CA]# ./c_hash testcert.pem
5bab441e.0 => testcert.pem
[root@localhost CA]# cp testcert.pem ./newcerts/5bab441e.0

Verify:

[root@localhost CA]# openssl verify -CApath ./newcerts/ testcert.pem
testcert.pem: OK

For MS Windows XP, let's convert the PEM file to P12 format.

[root@localhost CA]# openssl pkcs12 -export -in testcert.pem -inkey testkey.pem
-out testcert.p12 -clcerts
Enter pass phrase for testkey.pem:
Enter Export Password:
Verifying - Enter Export Password:

And, let's convert the server certificate to DER format:

[root@localhost CA]# openssl x509 -in cacert.pem -inform PEM -out cacert.der -outform DER -extensions xpclient_ext

There you go! Now transfer cacert.der and testcert.p12 over to the client. I used a floppy disk. First on your Windows XP machine double click on cacert.der and click on install certificate. Click next on the certificate import wizard. Click on the "Place all certificates in the following store:" and click on the Browse button that brings up the select certificate store dialog. Select "Trusted Root Certification Authorities" and click OK. You will be notified that the import was successful.

Next, double click on testcert.p12 and click "next" twice. Type your password in the next dialog and click next. Leave the next dialog's selection as is and click "Next" followed by "Finish." You will be notified that the import was successful.

Authentication on wireless LAN working both with Username/password and X.509 certificates

I managed to get everything up and running yesterday. I had to bring some equipment home from the laboratory to implement a full wireless LAN, RADIUS and CA scenario at my place. I got down to work, did a few quick searches on the net, read a few howtos and got everything working. I'll place all the steps that I followed on the blog shortly. My very own howto on CA.

Friday, July 15, 2005

Poised to enter IT business boom

Pakistan is poised to enter an era where we will benefit from a lot of IT related business activity. We dont have consistent electric power, my phone line, which is the tiniest thing that you can imagine for IT, has been down for the last week with no clue as to what is wrong and what is going on, we only have one "real" link to the Internet, which is apparently programmed or scheduled to go down every few months. We're poised to......yea, right, whatever!

The difference between Karachiites and the rest of the world!

OK, ladies and gentlemen, we have a million dollar question here. What is the difference between Karachiites and everyone else in the world? What is one thing that others have and us Karachiites dont? One thing, one word. And I'll answer that question. Trust me, I've travelled, I know for sure. One word: COURTESY.

Tip for car owners

Want to increase the resale value of your car? Want to give it the new car shine, or the new car smell? Want to double the gas mileage of your car while still increasing the whroooom power? Sorry I cant help you with any of those, but I can give you three tips: 1- Keep checking radiator water level, keep checking and replacing engine oil at regular intervals and 3- Keep checking and correcting battery water level

Livin la vida loca

Ever felt life go crazy? I thought things were roller coastering upto PDC 2005 and life went absolutely nuts, ballistic and berserk on me starting June 23, 2005. It ketp getting crazier not even every day, not even every hour, but every minute. Non stop, all the way to July 7. What happened you ask? You have to be kidding, things were happening and changing every minute, how many days do we have between June 23, and July 2? Dont ask me, I couldnt even keep track of what date it was, in fact, I still havent been able to come to that state of consciousness. So, multiply the number of days by number of minutes, and how can you expect me to remember, let alone write down all that happened?
Things are beginning to pick up pace, here we go again!

Thursday, July 14, 2005

Ode to Karachi Traffic

To all the morons who fit in any of the following categories, I have a message that follows the categories:
- Those who turn right from the leftmost lane
- Those who turn left from the rightmost lane
- Those who recall that they need to turn precisely when the turning is 90 degrees to the right or left
- Those who turn without an indicator
- Those who turn the indicator on after stopping to turn
- Those who drive three feet into the road they want to join, thereby blocking an entire lane, and stay there (you might as well move on because you've already caused the incoming traffic to stop)
- The rickshaw walas
- The minibus walas
- The big bus walas
- The Suzuki pickup which Allah himself has forbidden to drive anywhere but the fast lane and has directed it to drive extremely slow
- The motorbikers the only light they have working is the one on their cell phones
- The motorbikers who cut out in front of you on a red traffic light and when it turns green, they put their Harley in gear and it shutsdown with you right on her tail
- The motorbikers who insist that you're the one who should be watching, they have the right to suddenly swing from one side of the road to the other as and when they like
- The car drivers who drive into an intersection after the traffic light turns red

I apologise to all Karachi drivers minus the ones that fit in any of the above categories, because, hey, what did you do to deserve to be left out of this list. This list is not comprehensive and exhaustive. If you cant fit yourself into this list, know that there is an implicit "include all" at the end, so dont be sad that you were denied the title that everyone else got towards the beginning of this post. Driving in this city, I wish I were driving a tank.

Wednesday, July 13, 2005

FreeRADIUS EAP/TLS Howto

FreeRADIUS EAP/TLS Howto

RADIUS

Turned out that we went with Username/password based authentication in the end. The "start simple" approach always work. While we were having getting the system working as given in the articles, we decided to configure a Cisco Catalyst switch to do Telnet authentication to our RADIUS server and once we were satisfied, we cut open the configuration on the XP box and the access point and got things working soon.

Tuesday, July 12, 2005

What exactly is IEEE membership worth?

Someone I respect very highly mentioned today that someone was asked this question, "What is the benefit of IEEE membership." And he replied, "It's what you make of it."
How true, and how true of membership to all community groups. You can change your life with them, you can changed others lives with them, or you can totally waste your money on it.
So, see the value of networking, see the value of volunteering, see the value of sharing and participate (dont just sit back and receive the magazine that go to your teen dabbay wala before you read them), give value of the membership to others, and get the value for yourself.

Weller boy!

Weller boy, aint nothing does it like this one:

You do something to me - something deep inside
I'm hanging on the wire - with love I'll never find
You do something wonderful - then chase it all away
Mixing my emotions - that throws me back again

Hanging on the wire, I’m waiting for the change
I'm dancing through the fire, just to catch a flame
And feel real again.

You do something to me - somewhere deep inside
I'm hoping to get close to- a peace I cannot find

Dancing through the fire- just to catch a flame
Just to get close to, just close enough
To tell you that

You do something to me-something deep inside

Monday, July 11, 2005

Yea, yea, I know!

Yea, yea, I know they're Azfar and Mani and they have an Orkut community too. So buzz off. What matters is what the message is, not who the messenger is.

Sunday, July 10, 2005

A nation of complainers

I was listening to a program on radio last night. I think it was 103 FM. The program was called Karachi Complaint or something. I must say that the two presenters were quite talented. They were talking in the typical Karachi accent about Karachiites' strange mindset and life style.
They had a very unique way of criticising people's bad habits and mindset. They took a very controversial topic and took phone calls on it. The topic was, if the girls are getting married and sitting at home, why are they studying? First they themselves commented on what some typical responses would be, for instance, it gives awareness etc.
People started calling in. That's what's distinctive about our nation, we are a nation of complainers and we love to talk on issues, but no one has the solutions. We love to talk, though, pretending to be intellectuals. No one cares to do the slightest to make a difference, however. Seen that LifeBouy advertisement that shows a single kid who starts off cleaning the street? That's the kind of people who change the future of nations. Unfortunately for us, there's only one such person in our country and that is that boy who was cast in that advertisement, and even he isnt really that kind, he was paid to pretend to be that way. But that's philosophy!
So, one girl calls in saying that it gives you "broadmindedness." Now these two guys hosting the show are very good. They ask her what is broad-mindedness, and she cant define it. See, we love to talk, even when we dont know what we are talking about. No one has the solutions, everyone loves to talk. Later these guys define broadmindedness as accepting other people for what they are and keeping from poking your nose into other people's business, or something to that effect, which was quite right.
Then there was this girl that said that she wanted to study Nuclear Sciences and she had taken a test at KANUPP's institute. They asked her what she would do, make a nuclear bomb? She couldnt think beyond Hydrogen bomb. We're all like that. That's one of our tragedies, we dont even know why we're doing something. Yet, we try to defend it with lame explanations. The two guys asked her, can Nuclear sciences ascertain a rise for our nation? She said yes, they asked her several other nations such as Sweden have made progress not because of nuclear science. She was stumped.
Then there was this girl who wanted to serve humanity so first she wanted to be a lawyer then she changed her mind to study child psychology and work with some NGO. They asked her what was the guarantee that she wouldnt change her mind again, she was stumped, too.
Then there was this lady talking BS asking all the people with their houses and apartments alongside Shara-e-Faisal to please remove the trash and clutter from their balconies and put plants there because we should give a good image to the expatriates who come home. Yea, right, those expats who come home because they want to buy clothes and shan masalas for the an year or two because they cost too much abroad, want to boast about their house and car that they dont own, but have on financing terms, and cant even guarantee that they would live to pay them off. I mean, come on, what is the guarantee that your source of income is constant? What makes you think that you can surely pay the monthly instalment of your car, or your house, or even your credit card? Dont go making lame excuses now, like the ladies on that program. Face it, you're wrong, feel bad about it. Maybe you have no other option, but have at least the conscience not to defend your lame lifestyle.
The guys also talked about girls who wanted to marry the handsome rich guy. They didnt find one for some years, they fell down to the rich guy, not necessarily handsome, didnt even find that, then a few years later compromised to a rich guy even with an acid-accident-face. I wonder what they would compromise to a few years after that.
What I want to summarise here is this: People, shut the hell up! If you dont have a solution, at least dont complicate the problem with your shitty, lame, no good debates. Those who have a solution are already working on it, silently. They dont care to talk about it. Whether they will succeed, or the complainers will get them down like so many others in the past, time will only tell. So stay tuned!

Saturday, July 09, 2005

Indigo again!

I had a couple of partitions on my home desktop for Fedora which I wasnt working on for quite some time, so I thought let's install XP on those to dual boot with my existing Windows 2000. So, now I have a "production" (yea, right) Windows 2000 box, dual booting to my development Windows XP box, which is running much cleaner.
I have Visual Sutdio 6.0, Visual Studio .NET 2003 installed on it, installed .NET framework 2.0 Beta 2 onto it, took it to the university campus, and installed Avalon and Indigo Beta 1 RC while updating Windows and BitDefender antivirus. I brought it back home and installed Visual Studio 2005 Beta 2 onto it followed by WinFX SDK Beta 1.
I then went back and developed an Indigo service hosted on IIS by going to File -> New Website and then selecting Indigo Service. Having built the service, I ran svcutil against it using the command svcutil http://localhost/IndigoService1/service.svc?wsdl which generated a proxy class and a configuration file.
I added a console application project to the solution, added the two generated files to it, renamed the output.config file to App.config, built the small sample code below and it ran fine.

MyServiceProxy proxy = new MyServiceProxy();
string result = proxy.MyOperation1("My name is ");
Console.WriteLine("The hello service returned: {0}",result);
proxy.Close();

It's nice how easy it is to develop an interoperable service that is secure at the same time. I'll experiment further utilizing gates to enforce access control using credentials and post to the blog later.

Thursday, July 07, 2005

FreeRADIUS and EAP

Read article 1 and article 2 for information about how to setup Wireless LAN security using FreeRADIUS. There's another useful article here.
This is another blog entry which seems excellent as it matches our access point exactly.