Monday, June 23, 2008

*Friends Forever*

Sometimes you gotta run away so you can see who will run after you

Sometimes you gotta talk quietly just to see who's listening

Sometimes you gotta step into a fight just to see who's standing by your side

Sometime you gotta make a wrong decision to see who's there to fix it

Sometimes you gotta let of the one you love just to see if they love you enough to come back

and most importantly

Sometimes its not about your own self, its about those you care for

We: the ungrateful lot (Collection of Random Thoughts)

We, human beings, are amazing creatures. We are highly unpredictable. There is nothing in this world that can satisfy us. We are almost always unhappy with what we have and we are always looking for things that we don't have. Well, here by we I mean mostly ME, but I think there are a lot of people out there who are like me in this respect. Not all human beings but most of us are like this.
We should always try to bring betterment in our lives but is it necessary to have it on the expense of our happiness? We worry ourselves sick for the things that don't matter. Work hard, yes but be happy at the same time. Why not be satisfied with what you have and still work for greater things.

I have always noticed that we (again mostly me) thank other human beings a lot. Whenever someone does anything for us we thank them. That is fine, we should thank them. But why not thank Allah as well. After all, Allah is the one who really helps.

When we succeed we give the credit to ourselves, but when we loose it was all our luck. I believe in luck, I believe in what has been written. But I also believe that for some things Allah has given us the power to change. He has given us the power to make the choices and face the circumstances, enjoy the good that those choices will bring and also bear the bad that those choices might bring. But isn't success is something that Allah decided to give us for our hard work, then why not thank him too. Why does it become so hard for us to offer those 2 rakats of shukrana. But when it is defeat that we face, we never fail to blame others and then eventually qismat. Why???

Wednesday, June 18, 2008

Post Back: PROCOM.net 2008

It all started in our point. I had come back after volunteering at our second PROCOM. My friend, Nazia, asked me to give her the problem set and after going through it she was confident that she could have solved some of the problems. And she wanted me to make a team with her for the next PROCOM. Though I wasn't confident myself that I would be able to do anything good, but I still had no good reason to say no to her, so just for the sake of it I said Yes. And this turned out to be a very good decision, as the next year as PROCOM's internal programming competition was near Nazia asked me again, as I had already said no and, therefore, she was relying on me I couldn't say no to her now, and I thought "How worse can it be. Let's sign up, practice and then sit in the competition". After I agreed we had to look for a third member and I chose Sundus, Nazia agreed to it too. We only got a little time for practice, but still we did practice. We would sit together and solve the questions of past competitions.
Let me tell what actually happens in a programming competition. In such competitions you are given a problem set that may contain around 8 questions, and you have a time limit during which you are supposed to solve maximum questions possible. You solve it of course by making computer programs. The winners are decided on which team submitted the most questions and the time of submission. Plus, there is a penalty thing, if you first submitted a question and it was wrong then you submit it again, you are penalized for it.
So we practiced all we could. Nazia and I would sit in the point, where we wouldn't have a computer to check our solutions but we'll still come up with a logic together. The most important thing in such competitions, besides your ability to program and come up with logics, is how good you are as a team. Only one computer and one problem set is given to each team. And the victory depends on how well you utilize the scarce resources. It would all be too easy with three computers, but what makes it challenge able is how you deal with it using only one computer. If two of the group members get a logic at the same time, who would use the computer, and what would the other member do in the meantime. It all depends on the strategy you design. Ours has always been split the questions, each person would start with one question, ask for help from other members if needed, and then when she comes up with a solution, she can start using the computer.
So it all started with that PROCOM internal programming competition. All of us signed up for the competition as well as for volunteers.
And when I was in the internal competition, it felt so good, that after that all three of us longed for a programming competition to participate in. It felt sooooo good participating in a programming competition, being there, doing it... aahhh!
Khair anyways, as I said it all depends upon the strategy you design and also on the decisions you make on spot. Like in this internal competition, Nazia and I had come up with a logic together. As the computer wasn't free I started writing the program on paper, when I got the computer and finally wrote the program I got some errors, while I was trying to solve them Sundus said I am done with one more questions. And Nazia and I asked her "See we have very little time, are you confident that you'll do it, you'll write the program and it would run perfectly" and somehow, she got the guts and confidence to say "Yes" and we gave her the computer, which turned out to be a very good competition. As she sat there typing the program, Nazia and I helped her but only a little, teeny weeny bit, and it worked, we submitted the program. And then after the competition we were confident that we have lost, that we won't be able to participate in the external PROCOM as the first two teams from the internal are the ones which go to the external.
The results were to be announced in the auditorium, I was a bit down knowing we wouldn't win but still I thought we should make the most of it and so I told Nazia that we'll hoot for every team no matter if we do or don't know them and that's what we did. And then the time came for the announcement of winners of internal programming competition, the first was a team from our batch but section b the second was a seniors team the third was a team from our section, we hooted for all the teams and so I hooted for the team that came fourth as well and after a second I reaized "Wait a minute, she said Synergy, isn't that our team" and that was a great great feeling. Although we were fourth but still yaar it was our first competition and we came fourth.
And that competition got us rolling, after that we tried to participate in any programming competition we could.

This was all a lot of history.
Let's get the point now: PROCOM 2008
So this was our last PROCOM, we had to win it. But before we could win the external we had to win the internal competition. And it wasn't just Programming competition only, we wanted to submit our Final Year Project Blog Digger as well. We got selected for the software competition, our FYP Coordinator evaluated our project which had no interface, none at all, all the modules were running separately, but they were running fine, so she just ordered us to integrate them make a good interface and we are in!
But for the programming competition we had to win the internal. I had collected a lot of programming questions from the internet for practice. But we didn't get time to practice either individually or as a team. Of course, you don't have much time on your hands with FYP going on.
So we just practiced a bit, only one or two questions. Sundus and I stayed back on a Friday to practice. And then we set in the internal competition. After the competition we were in HRM's class, discussing whether we would loose or win, we didn't have our hopes high, and not really concentrating on what was being taught. In the HRM break, we went off to find Farooq, programming competition department's co-head. We found him at schon, and we shouted from above, asked him the results, he said "You people are third, a freshie team beat you yaar" I guess he was trying to embarrass us but we continued "so we are third, how many teams are going in the external" I knew universities other than ours were allowed three teams so how many from ours? and he said "Three teams"
Us: "So we are going?"
Him: "Yes. But a freshmen team beat you....."
Oh we weren't interested in that, we were just happy we won. That was another good day. I half ran, half-walked back to the class room and shouted "Sundus..... hum jeet gaye". Never mind the teacher, never mind the other students just saying "hum jeet gaye" I also dropped my teacher's papers on the way and reluctantly stopped to pick them up before I could go to Sundus.
The days passed.... without us practicing.
And finally the day came when on the next day we had PROCOM, but still we were celebrating Cheap Day and a company had come for taking Job Hiring Test. I dressed up as cheap, bunked the job hiring test so that we can make our software ready for the competition.
And then it was PROCOM Day 1.
That day we were also getting our promised scholarships. The parents of the students getting the scholarships were also invited. My parents came along with my sister. And what were we doing before the ceremony started, Sundus and I were in the lab, completely engrossed in her laptop, because the software that worked perfectly before (at least it was perfect by our standards) stopped working, errors were sprouting up every now and then and we were sorting them out, also waiting for the ceremony to start. Any ways, we got the scholarships finally. And as our software wasn't working as it should Sundus and I decided that as the programming competition's first day is just the practice session we should not attend that and be at the software competition. When I told this to Nazia I could tell by her face that she was really angry on us but she still agreed.
In the software competition too we both were trying to make the software work, people came up to us so that we can give them a presentation and we would say "Can you come later". And then though we haven't really gotten rid of all the errors we were forced to give the presentation, how long can the judges be asked to wait anyways? We gave our presentation one after the other. We got comments like "A very good idea, but the work is only initial". We tried to convince them that we have done everything possible. We got some good hints, tips and tricks like "Sell your product...."
The day ended, it started with a feeling of despair (with the software not working) and ended with a feeling that "we did okay in the software competition but what would we do in the programming competition tomorrow?"
The next day, PROCOM Day 2, I was relieved to find out that all the judgments for the software competition had been tomorrow, the software competition head had the results in his hands when he told me about the judges thing but of course he wasn't allowed to tell me the results. Now we can go for the programming competition without worry about the software competition.
HMMM.... sitting in that programming competition finally, sitting in external PROCOM Programming Competition for the first time. It started..... and then it ended, without us doing anything productive. We knew as soon as the competition ended that we have lost it, that we have missed our first and last chance to win PROCOM Programming Competition.
With long faces we left the lab and went towards the software competition lab to find out that amazingly the rest of our team wasn't there, Sundus's laptop had vanished with them. And we were worried and angry at the same time "yeh loog kahan chalay gaye?" And when we found one of them she said "Rafi bhai ne aa ke kaha hai yeh project hatao yeh laiq hee nahi hai software competition ke liye". And Sundus and I just stood there, trying to contemplate the possibility of her just trying to scare or her telling us what really happened.
Finally she said herself "I am just kidding.... We are third...." *Wide Wide smiles*
So it was a mixed feeling.... relief and joy at winning software competition, and disappointment at loosing the programming competition, the competition we had been trying to win for a long time.
I commanded my software team not to go before the results were announced. I wanted the entire team to go up there on the stage when our names were announced..... that turned out to be the wishful thinking of the century... Third positions weren't announced for any competition.
The anchor started with the software competition results... but started with the second position. Another disappointment.
Another reason to have long faces.
Any ways the day ended.
At least we came third, though even nobody at our university knew about it besides us and the people who had direct access to the results and those were few.
So we had some unknown, anonymous victory (can third position be called victory? :P)
The day ended, another chance lost, another experience gained.
We had TechElite to look forward to. Which happened to be on the very next day.

Tuesday, June 17, 2008

Memories I'll cherish

14 of June 2008, my last day of bachelors..... finally, done with the Open House, finally done with Blog Digger..... Four years of bachelors done, 16 years of education completed. 16 years seems a very very long time.
All these four years of bachelors, it was like "kab khatam hoon gein yeh 4 saal" In the fourth year the thoughts were "yaar buhat parh liya... 4 saal buhat hotay hain 3 saal ka bachelors hee theek tha".
And now when it has finally ended, I know there are a lot of memories I have made, a lot of things I'll miss, a lot of things I'll think about whenever I think about my university. A lot of things I'll remember... no, a lot of memories I'll cherish.

  • The time when we used to bargain with the teachers while setting marks distribution. Talking like it was something we are buying rather than discussing the distribution. Saying things like "Munasib kar dein, Sir".
  • Celebrating Color days in our last year. We celebrated Red day, Black day, White day... ahhh just a few days yaar we missed so many colors. Any ways, it was great, I participated in Black day, even though I HATE Black.
  • The day we celebrated cheap day.... and even I got in the mood, and became cheap.. which was pretty unexpected, one of my friends Nazia stood there looking at me with her mouth agape, wondering what had gotten into me. Ahhh, celebrating cheap day, that was something :)
  • When Ambreen and I used to chat just to decide what should be our next nick. Both of us would listen to English songs, choose lines from the songs and ask each other "would this be fine?" :P
  • The get together at Midhat's place. We had loads and loads of fun, taking photos with funny poses :D
  • The picture day. When all of us gathered at schon and took pictures, when we had our individuals pictures taken, when the entire batch gathered for the batch pic and started singing songs. Go to my previous post on picture day. :)
  • When we used to sit in E1 in the seventh semester and talked as we always had the first slots free, discussing FYP, at first it was "yaar banayein to banayein kya sab kuch to phele se hee bana hua hai?" and then, when we finally got what to make it was "kaisay banaye ga itna sab kuch?" and of course there were the PMs to discuss about, and we had many other things to discuss completely irrelevant to studies. Planning the next day to celebrate, the next place to gather at, the next restaurant to hit (though we only got to hit Pizza Next and Karachi Food Centre) and many many things. The room changed to E4 in the 8th semester but the stuff was the same.
  • The time we all played 'Bingo'. I didn't even know how to play Bingo, Ashba taught, it was like a class coz she used the white board to explain and believe me when I say it was the most interesting class :) And then we all played bingo. Bari mushkilon se mein aik hee game jeeti thi :P But it was a lot of fun. I also came to know that day that a couple of my friends used to play "Name Place Animal Thing" back in the initial semesters before papers as in, they had a paper in the evening and they would play Name Place in the morning instead of studying. I wanted to do the same thing, and so we decided that we too would play the game in one of the papers. In the last semester whenever one of us remembered this plan and voiced it, others would say, "nahi yaar aaj to nahi, Media mein khilein gain". But we didn't even play it in Media. But the Bingo day was fabulous. That day too has a post dedicated to it. :)
  • The one hour long ride in Point. Some days were spent sleeping, some times we used the time reading books (most of the times novels rather than course books), some times the solace was used in thinking... and most of the times it was spend talking, talking continuously for one complete hour. I would remember the time when we talked only about food.
  • The time when we finally got the opportunity to cross the "Quaidabad Bridge". The took a long time completing it and when it was finally done and our point crossed it all the students hooted. :D
  • The time when I listened to my MP3 player in IPT lab and the next day the teacher said, looking specifically at me, "I know what was going on in the lab". I still don't know how she got to know I was listening to MP3 player, or maybe she just looked at me and as I was guilty I assumed that she was talking about me.
  • My first and last Picnic. Definitely memorable.
  • My first and last Annual Dinner, and that play.....

It's a long long list and I know I'll be coming back to it adding more bullets. For most of you, all these things won't sound as fun, but it was, all those days were fun. For me at least, I know my friends would relate to it. :)

Tuesday, June 10, 2008

Celebration means
four friends
Bahar barsat
four glasses of pepsi

Celebration means
100 bucks of petrol
A rusty old bike
and open road

Celebration means
Maggi noodles
A hostel room
4:25 am


Celebration means
three old friends
three separate cities
three coffee mugs
one internet messenger


Celebration means
Rain on a hot tin roof
Pakoras deep frying
Neighbor droping in a party


Celebration means
you and mom
a summer night
a bottle of coconut oil
and a head massage

You can spend 100 on birthdays
1000 on festivals
Lacs on wedding
but to celebrate all you have to do
is spend your time with your loved ones.
Keep in touch with those who care for you.

I have been Tagged :)


Finally got to know how tagging thing works :)


1. Last movie you saw in a theater?
Jumanji, wayyyy back when I was a kid. Went with my bro. Or wait... maybe it was Jinnah the movie, I went with my father, and loved the movie, but can't exactly remember which was the last movie I saw. It was most probably Jinnah the movie.

2. What book are you reading?
Have started reading Ken Follett's The Hammer of Eden. Haven't gone much far, and read the few pages days ago, because of our Final year project. In fact, I didn't even remember the name, I had to take out the book from my shelf to write the name here.

3. Favorite board game?
Ludo. :)

4. Favorite magazine?
Don't really read magazines, but whenever I have the urge and I have those magaizes I read Reader's Digest and Spider.

5. Favorite smells?
My mom's cooking.

6. Favorite sounds?
Haven't thought about that. Hmmmm, my neices and nephews laughter.... a child's smile can make you forget your tensions and become a kid with them.

7. Worst feeling in the world?

Being neglected and ignored. And not being able to achieve what you dreamt of. And also, realizing some day that you are not what you thought you were.

8. What is the first thing you think of when you wake up?
These days, its....Ahhh, nahi uthna, time kya ho raha hai? thoda aur so leti hoon :P

9. Favorite fast food place?
KFC, Pizza Hut or Pizza Next.

10. Future child’s name?
Yeh bhi koi sochnay kee baat hai. Yahan apnay project ka naam bhi nahi socha jata yaar. :P

11. Finish this statement. “If I had lot of money I’d….?

I'll put it in a bank :) and buy all the things I want to if my mom lets me. She is always saying "buhat kharcha karti hai".

12. Do you sleep with a stuffed animal?
Nopz.. and never have.

13. Storms - cool or scary?
Don't know.

14. Favorite drink?

Mirinda, Lassi, Apple Juice, Falsa juice

15. Finish this statement, “If I had the time I would….”?

Spend more time with my friends and family and of course watching tv. :P

16. Do you eat the stems on broccoli?

Nahi bhiee.

17. If you could dye your hair any color, what would be your choice?
I'll keep it the way it is. Allah ne sab ko sahi combinations ke saath hee bheja hai, that's what I believe.

18. Name all the different cities/towns you’ve lived in?
Karachi.

19. Favorite sports to watch?
Cricket.

20. One nice thing about the person who sent this to you?
Well, Hina Aman is purely purely talented. There are a so many things she knows, there are so many things she is good at. How can a person be good at so many things... but she can. She is one in many. And you'll always find her smiling, she is a person who can crack a joke and make people laugh even at the most tense situations. And she is very down-to-earth. And I like her low tones. I usually am very loud, when I get excited I start shouting, but she always speaks in a very leveled tone and voice.

OHHHH.... it was supposed to be one thing :)

21. What’s under your bed?
I don't have a bed. I like sleeping on my gadda or just the zameen when it gets very hot.

22. Would you like to be born as yourself again?
Yup

23. Morning person, or night owl?
I used to be a morning person. But these days, I have become so fed up of working that I am neither a morning person nor a night owl. I used to wake up at 4 o' clock in the morning to study during exams or for making projects. Now I don't wake up till 8 (that I guess is early morning for some people, for me it isn't)

24. Over easy, or sunny side up?
Neither

25. Favorite place to relax?
In kitchen while talking to my mother (not cooking my self ofcourse), my room and drawing room where we have our TV

26. Favorite pie?
None.

Saturday, June 7, 2008

Changing the shape of Mouse Pointer

I was searching for a way to change the shape of mouse pointer in C#. Say, in any application a button is clicked and the application is performing some functions on the back end, there must be some way through which the user can know that something is working, otherwise the confused user would go on pressing buttons and irritated the user would close the application.
(I know, I know I am not telling you anything new :P)
Anyways, I was searching for a way to do this. I wanted to change the mouse pointer to look like an hourglass to signify "be patient, work is being done, your output will be served to you soon". A simple hourglass to say all that.
First MSDN search returned a page that taught how to change the shape in VB.Net then while checking other articles I found a namespace by the name "System.Windows.Input". But I think it's not a namespace of C# 2005.
Amazingly I found my answer in a question. To change the shape all you have to do is write the following line of code:

Cursor.Current = Cursors.WaitCursor;

As soon as the function ends the cursor turns back to it's original shape.

In case you want to change it back to original shape before the function ends, here's what you'll have to write
Cursor.Current = Cursors.Arrow;

This is where I read it from.
You are educated when you have the ability to listen to almost anything without losing your temper or self-confidence.
-Robert Frost.

Sunday, June 1, 2008

I received this sms from one of my friends, and thought I should share this with every one.

"Expecting the world to treat you fairly because you are a good person is a little like expecting a bull not to attack you because you are a vegetarian."