Monthly Archive for March, 2009

2009 F1 Melbourne Grand Prix

Melbourne GP 2009

Melbourne GP 2009

A day most awaited ! With all the speculations and rumours flying around, McLaren disappointing in the winter testing, BrawnGP blowing away the field with spectacularly unbelievable performances and the diffuser row threatening to divide the teams. There were talks of Brawn using illegal car to impress a few sponsorers, and people claiming that McLaren failing because they did not have Ferrari’s plans to copy this time.

Nonetheless, the qualifying day arrived. The result was not unexpected. McLaren failed to make the cut into the Q3, in fact Hamilton retired after Q1 citing gearbox problems. Hekki managed only 14. Alonso was knocked out too. Only the Diffuser-Three, Vettel, Kubica and Ferrari saw themselves set for the shoot out in Q3. And finally Button claimed the pole position.

The D-Day ! Toyota were penalised for having an illegal movable component in their car, and Hamilton was to start 18th after changing the gearbox in his car. Massa and Kimi saw themselves promoted to the 6th and the 7th position. A hope or so I thought.

The five red lights lit one by one. The droning sound of cars, eager to explode away. And as soon as the red lights went off, the Australian GP was GO. Ferrari made an awesome start. Rubens was slow to take off and was immediately overtaken by Massa. Through the sequence of corners, Massa managed to squeeze himself into the third position. Kimi though could manage to promote himself only one rank to the sixth. Button was leading the pack of cars.

The drama was to begin quite soon. Ferrari were running on the softer option tyres. This did indeed give them extra speed, but the wear out was quick to happen. By the lap 10, the performance was deteriorating already. The Ferrari were beginning to fall back now. Cars from behind were now threatening to overtake the struggling champions. As a result, Massa and Kimi had to pit in the 11th and the 12th laps.

The game changed drastically after that. The Ferrari were no match for the front runners now. They were falling behind. The hope was fading fast. The Brawn were now threatening to destroy the competition. Indeed the pace of Button’s car was such that he was ahead of Vettel by more than 4 minutes. Oh, and Vettel I suppose was the surprise performance. He was quick. He was too quick. The german driver who has risen to stardom with his win in the Italian GP, and is being compared to Michael Schumacher himself, had a great chance to finish on the podium. Second was not so likely as the third.

However, the wonderful performance came to an end when his car touched that of Kubica’s in the latter’s attempt to overtake. Immediately the safety car came out. Only three laps were left to the end of the race. Both the Ferrari had retired by then. Rubens had managed to slip into the second position by then. There was this small matter of Truli spinning and handing the third position to Hamilton just before the safety car, and then reclaiming the position for himself. This saw him penalised 25 seconds and drop to the 12th position. Hamilton automatically got promoted to the third position and grabs lucky 6 points from a race where McLaren had no hopes. However, the penalty was doled out after the presentation ceremony, so Truli got to celebrate with the champagne at the podium.

Ferrari had a forgettable day at office.  Once again plagued by technical breakdown. Coming into the race they were certainly expected to put in a race winning fight, but instead they went home nursing their cars. A bad start to the new campaign. They can take heart from the fact that Massa had failed to score in the first two races the last year too, and yet came within 1 point of winning the championship.

It is too early to say who will remain at the top after a few races. BrawnGP definitely had the better pace, but their performance was not as great as was expected. There were predictions of their cars being more than 1 minute per lap faster than the rest of the grid. In the end, they managed only about half a minute per lap gap.

But then, there can be Brawn’s shrewd brain working behind this smaller amrgin. In what I have read from a few sources, Brawn could have advised Button to narrow down the gap, otherwise the whole of the grid would have stood up in union and protested against the diffuser. As of now only Red Bull, Ferrari and Renault are appealing against the double decker diffuser. McLaren’s silence hints at a possibility of theirs already being in the process of getting one ready. Do not be surprised if they roll out a modified diffuser after a couple of races. Ferrari with their fat budget will also be working hard to develop their version of a new diffuser. Only Red Bull with a meagre budget might have some difficulty, and could perhaps be forced to see out the whole season with the same diffuser that they have now.

Either way, I suspect the dominance of BrawnGP will continue for long. The McLarens and the Ferraris will be on top  of them pretty soon. BMW will not be left behind either. Though the curtain has been raised and we have had the first look into the season, I refuse to read much into the result of the first grand prix of the 2009 season. The picture will become clearer only after a few races are done.

And I really hope Ferrari come out as the better car. Please, please, please. But I also say -

Kick out Massa and Kimi, I want Vettel in a Ferrari.

Popularity: 1% [?]

BTP Update

Yay !! Finally I have definitely made some progress in my BTP. I have ironed out all the bugs. As I write, a bash script is running my program over and over again with different parameters as input. The loop will execute some 6*3*100 times. And within each program, there is a time counter which counts forward to 30,000 units.

I have left the whole thing to run in development mode, instead of the deployment mode. Printing out details on the screen is slowing down the generation of results though. Perhaps I must go and sleep while the script does its work. I have been awake for more than 24 hrs now, and sleep is very much welcomed.

I do hope to get some pretty good graph. I am making this siulation for a multi-processor system. However, there is this small issue when it comes to division of work between different processors which I need to discuss with Arnab da. Once done, I should be able to wrap up my project in a matter of day or two.

Fingers crossed. I shall put up the result, provided it is what I expect.

Popularity: 1% [?]

I Hate Segmentation Faults

I have  been coding in C for four years now. Any C user knows the segmentation fault error. And trust me, there cannot possibly be anything worse than seeing your program terminate with a seg fault message. It irritates me so much that in my B Tech Project program I have created a signal handler which catches the error and prints a happy message instead of the boring default message.

This is what I have done :

// Include signal.h for signal handling
#include <signal .h>

/**
  * The function which is called upon a seg fault
  */
void SignalHandler(int sig) {
  printf("\n\nHave a happy time debugging. Good luck :D \n\n");
  exit(-1);
  return;
}

/**
  * The main function. Declare the signal handler here.
  */
int main(int argc, char *argv[]) {
  signal(SIGSEGV, SignalHandler);

  /**
    * Do whatever you want to
    */

  return 0;
}

:) . I know this doesn’t do anything, but atleast I do not feel frustrated now.

Popularity: 3% [?]

My Paranoia Self

I’ve always been this paranoid guy who never trusts the people he cannot see. It was the primary reason that I avoided the social networking sites and was reserved while chatting with people I hadn’t met in a long time. However, things changed the last year and I started opening up. I did the most foolish thing of publishing my contact information over online. Contact information includes my phone number and email id’s.
Due to my foolishness, some unknown person has managed to forward all his calls onto my cell phone, and now I am being annoyed by someone I do not know. Damn ! This is the second case of my foolishness, of my letting the guard down over the net. Never again shall this happen.
I have decided to once again revert back to my paranoia self – never trust a person you cannot see. I am removing all my contact information, setting up strict privacy filters and actually pruning the friend list. The whole operation might take a few days to complete as I’ll have to scan all the places where I might have left any information whatsoever. If you are a friend who knows me, then you’ll find some way of contacting me.
Phew ! Some work to do during the weekend.

Popularity: 1% [?]

Case Of The Forwarded Calls

An interesting event occured to me yesterday. I do not know if it is the sheer genius of the other person or an honest mistake on his part. Either way, I have had to deal with an angry sales person the whole evening. The whole affair is described below.

It all started in the evening. I returned back to my room after the evening snacks. As I sat down to work, my phone rang. An unknown number – +919334461925. I pick up the phone. The conversation was in hindi.

‘ello. Who’s this?

When will you return my money?

Excuse me, but may I know who am I talking to?

******, when will you return the money you owe me !

I suppose you have dialled a wrong number. Which number do you think you have dialled?

I got a call from you on this number, asking me to recharge the number +9198——– (I do not remember the other number) for an amount of Rs 3500, with your word to repay me today. When do you intend to pay me back.

I am sorry. I repeat once again, I think you have got the wrong number. I am not the guy you are looking for.

*******. I dialled your number +919002341426. This is the number you called me with. Now ****** tell me your address so that I can set you straight.

I hang up. But immediately the phone rings again. The same number. Damn, he redialled

Hello?

******. Why did you hang up. Afraid of telling me your address are you?

So eager for a fight are you, come on. I am in RK Hall of Residence. Wanna set me straight. Come here. I shall be waiting for you at the gate.

Who the **** do you think you are.

Afraid are we now, huh?

Pay back my money and I’ll let you go.

Dial the correct number first and you’ll get what you want. My number starts with 99, not 90.

Smart chap eh? Tell me, how did you tweak the connections of your mobile phone, that I dial your number on 90 and it goes to your phone at 99.

Am I expected to laugh at your joke, because believe me, I’m not in the mood for it.

I’ll complain to the police.

I’ll thank the gods for putting some sense into you. Please go on and do so.

I just want my money.

Can you talk properly first? ‘Coz I do not see this conversation heading anywhere.

[a few minutes silence]

When will you return back my money?

As I have already told you, you have got the wrong person. I am not the guy who asked you for a recharge. Please redial and check with the right person.

How can it be? I dialled the correct number.

May be a cross connection. You might perhaps want to try after a few hours.

Or a simpler solution is for you to return my money, ******.

Mind your language.

I hang up again. He called me again and again, but I let the phone ring.That was all for yesterday. In the morning today, I got another call. A different number – +916542325507. Again the guy was asking for someone else. Something is definitely wrong, I thought. I told him the same thing, that this is a different number and hung up. But something came back to my mind immediately. I thought I had seen an arrow mark on my screen beside the number of the caller. This never showed up before. Something is definitely wrong.

I went to my neighbours room, Rohit. I asked Rohit to call up the 90 number. The call was on my mobile ! But there was no sign of the arrow mark. Was it my mind playing tricks on me? Was I imagining things? All my screen showed was Rohit Calling. Unless …

I went to Dhangi’s room. Now Dhangi is not added in my contacts list. I made him call up the 90 number. And voila ! There it was, the arrow beside Dhangi’s number. And it immediately occured to me what the whole thing was.

The other person has set up call forwarding on his mobile. Whenever you try to call the 90 number, it gets forwarded to my mobile. All the time the sales person was dialling the correct number. I did not know what to do next. Dhangi suggested I call up the Airtel customer service and tell them.

I called up the Airtel customer service at 121, but I managed to get only one reply -

I am sorry sir. We cannot help you in this matter. Airtel is a service provider. All our customers are equally important to us.

Damn it fool, even after listening to the whole story can you not think out of the box and actually do something. I know you have been taught to blurt out the same response and you are doing a pretty good job as a bot. But don’t you see there could be something fishy here. I suspect a foul play. Can you not for a change use your brains and do justice to the money Airtel pays you.

I am sorry sir. We cannot help you in this matter. Airtel is a service provider. All our customers are equally important to us.

Oh my darling, this is India. Why do they even have call centers here, I wonder. The guy on the other side would have done a better service to the nation pulling a rickshaw. And to think that the Americans outsource all their work to be done by these damned creatures.

So be it. I am going to do nothing in this affair any more. If the sales person calls up again, I’ll tell him to go to the police. Let him fight for his money. Let Airtel value their customers so much that they annoy them. If only there was a way to block out all the forwarded calls.

So ends the Case Of The Forwarded Calls. I shall post any new developments below. But I do not think there will be any.

Popularity: 1% [?]

Oh The Wait !

Oh the wait ! Why does the time always have to play tricks with you. Why does a wait seem infinitely longer than it scientifically should be.Why does a Friday seem so distant from a Monday.

Come this weekend, and Melbourne shall see hoard of crazy, car loving, Formula 1 fans line up outside the Albert Park in Melbourne. Ear plugs in place, they shall all come to cheer and enjoy one of the fastest, most dangerous, high budget sport.Yes, with budgets per team averaging around the 200 million mark, this is no joke. Come this weekend, the Melborne GP is GO !!

Not a single day has passed since the thrilling last turn defeat of Massa, that I have not scanned the internet media for news reports. I have fed my brain every article  there was on rule changes, staggering aerodynamic alterations, huge slash in budgets, the fallout of Honda. I have watched in awe the Jenson Button – Rubens Barrichello show, putting in stellar laps to steal away the P1 in practise of the final week from the favourites Ferrari. I have chuckled  watching the McLaren struggle for pace. The resurgence of Massa (who still heeds Schumachers advice) and a resurrected Kimi fill me up with hopes. The confident Alonso surely does his best to raise the bar for the title contenders. And the BMW are always there at your heels, to take advantage of the slightest error.

I just want the wait to end now. I just want to hear the rumble of the engines, feel the thrill of over taking, experience the joy of winning, and above all, feel alive once again in the world of Formula 1. Oh the wait !

Popularity: 1% [?]

A Day That Should Not Have Been

Today was indeed one of the worst days of my 4 years stay at the Indian Institute of Technology, Kharagpur. A Sunday marred by the shocking and tragic loss of a fellow KGPian, all because of the negligent behaviour of the in-campus hospital doctors and authorities.

Students once again showed their unity by staging a protest in front of the Director’s house as soon as the news broke out. It spread like a viral, and soon enough a mob gathered at the Directors house. The destruction of property was uncalled for, and irresponsible on part of the students. Yet, it was the Directors fault not improving the already degrading standards of the B.C. Roy Hospital. The unfortunate death was only the tipping point.

This is not a first-off incidence. The hospital has been in news earlier too. The Campus Newsletter, The Scholars’ Avenue, published an article which exposed the malpractices there. The report team was suspended for almost 6 months for this. The negligence continues to this day. The whole campus could testify against the hospital.

In news earlier were reports of A.P.J. Abdul Kalam inaugurating a B.C. Roy Multi speciality Research Facility (news at KGPian), but I do not know what happened to that project.

Needless to say, the student community is enraged at the incidence. The Director had to resign immediately. An Open House meeting with the students was scheduled for later in the night. Appropriate action is what we expect from the IIT authorities. Our demand for better basic amenities is not unjustified.

You can read more in this article in The Scholar’s Avenue -

Student Dies En Route From B C Roy Hospital To Kolkata

Popularity: 2% [?]

When Will The Spammers Learn

In the morning today I was reading random blogs. I came across one which said the following

We programmers always work to make our softwares safer from the idiots out there. But unfortunately, the idiots keep getting better, and so does our software have to be updated.

This is nice. A loop wherein either species benefits from the other. But shouldn’t the same rule apply to spammers as well ? When will they learn that their methods are old and taken care of. I hardly get any spams in my gmail inbox now. The last spam that fooled my gmail and got into my inbox, and believe me it was after a long long time, was one telling me about a bank account that I apparently have inherited from some rich recently deceased personality. How do you even want me to believe that !

And then those screened by the gmail spam filter, they all look ridiculous. No one can be naive enough to get fooled by those.

But the worst ones are the chain mails. An example of one is given below :

DO YOU NEED $8,000? ? ? ? ? ?

Let Bill Nelson tell you how I have run one of these promotion letters — four times in the past year. The First time I received $7,000 in cash and around $7,800 the other three. It this letter is continued as it should be, everyone profits! Yes, and don’t worry about financing or paying money back. After the first time, you’ll see what I mean, and next time you will be more eager and glad. Now, let me give you the
complete story and details.

Please forward them and in about 30 days you will be $8,000 richer.

This letter will pay up to $8,000 because there are only four names at all times. Three moves and you are in a position to receive one dollar from each participant. This chain letter was initiated by William Neham from Nashville, Tennessee, for the purpose of investment capital. But, now this has been expanded. Your participation is one dollar to the first person or firm in the Number One position below, while omitting the name to whom you sent the dollar. Then, move the list of names up one place and place your name at the bottom. Mail a copy of this letter to 20 new prospects.

MAIL YOUR LETTERS within 48 HOURS AND DO NOT BREAK THE CHAIN. When your name reaches the Number One position, it will be your turn to collect the fees. They will be sent to you by 8,000 persons like yourself. Please DO NOT BREAK THE CHAIN BECAUSE IT REALLY WORKS!! In fact, I guarantee it, provided you do not break the chain and follow the simple rules above. Try it and see. You are investing ONLY, ONE DOLLAR, and that is all you can lose. Be sure to copy this letter completely. Don’t leave any of it out.

Send your report to Imperial Sales Company, 3096 Ivey Avenue, Knoxville, Tennessee 37914. Let us know when your fee was sent and how much you received within nine days. We have at the present time almost 100% return to the people carrying out this letter promotion. The majority received $7,800. If four names should be listed on your promotion, the one in Number One position is omitted, after you send him your one dollar. Then, put your name and address in the Number Four position.

$8,000 is capital absolutely free! Send letters only to people who have secretaries or whom you personally consider “Doers.” Look — 20 times 20 times 20 equals 8,000!!!!.

People are stupid enough to fall this fraud and immediately mail the letter to as many as they can. And then there are a few mails which tell you that an anonymous lottery had been drawn in your name, and you have been fortunate enough to win a 9 figure digit as reward. The next line says that you need to provide them your identity proof, and also your bank account details so that the money can be promptly wired to your account. People don’t detect fraud even in this ! I know people who have mailed back their bank account numbers and social security numbers and have waited hoping to get lucky. Fools !

Then there is this facebook group I came  across today. It urges everyone to join up. They intend to find your look alike, where ever in the god-damned earth he may be. They claim to be able to send you details of it within a fortnight. This is their statement -

FIND YOUR LOOK ALIKE IN THE WORLD |

Perhaps there is someone in London, Paris, New York, Tokyo or Rome that looks exactly like you!

The experiment works!! Facebook is the perfect virtual platform to discover someone who is
IDENTICAL to you!

All you need to do is invite your friends to join this group!

The experts say that each human being can have around one billion different physical variations.
Since the population of the world is approximately six billion, each one of us has at least
six look-alikes in the world

FIND YOUR LOOK ALIKE IN THE WORLD aims to help us to find our look-alikes and body doubles.

So if YOU WANT, you can invite your friends to find their look alike, too!

¤ ¤ ¤ INSTRUCTIONS ¤ ¤ ¤

1 – Join this group
2 – Invite at least 15 friends (click on “Invite others to join”)
3 – You will receive updates via private messages within three weeks

… And it’s completely FREE!

IMPORTANT !!! , invite at least 15 of your friends .

In a few days we will send you a message with more instructions.

See you soon

Please tell me you can suspect something here, that the sole purpose of the creator of this group is to have lots of people join it, and then have a platform for mass spamming. The last time I checked, the group had more than a million members !

I have always wondered, whether there really exists girls as stupid, naive, senseless as is shown in a few of the tv serials, specially the blondes. Watch Two And A Half Men, and you’ll know exactly what I mean. Alternatively, watch the blondes in the Bond movies, equally stupid.

And then I look at all these spam mails, it seem to suggest an answer. Yes ! Yes indeed, there are people of both genders foolish enough never to use the grey matter and be naive enough to fall for the most foolish and simple trick over and over again. And this is why the spammers never learn. They shall never be able to spam me, but they have countless group of fools willing to dance to their tune.

Just like the Pied Piper
Led rats through the streets
We dance like marionettes
Swaying to the symphony
Of the Spammers

I do intend to write a post on spamming some day. Just so that someone might be clever again not to fall for the stupidity.

Popularity: 1% [?]

Back To The Old Scoring System Again

Just a few days ago FIA had unanimously taken a decision to alter the way a champion is chosen at the end of the F1 season. They voted in favour of adopting a slightly modified version of Bernie’s medal proposal. However after being slammed by all the F1 personalities and the fans alike, they have decided to revert back to the old system for now. The declaration states that in case FIA and FOTA are unable to come to a mutual understanding regarding the point system, previous years system shall be used while a new system being devised to be adopted in the subsequent season.

Prior to the recently concluded FIA meeting, the FOTA had met and unanimously agreed upon an alternative scoring system wherein the first three places were divided by a margin of 3 each as compared to the 2 earlier. This gave greater value to the driver finishing on top, scoring 12 points. The FIA though had different plans. They rejected the proposed system and instead adopted the one suggested by Bernie. This did not go down well with the F1 teams. Almost everyone spoke their minds against it.

Consistency was a trait not being rewarded by this system. A consistent driver who always manages to come second or third has no chance of winning the championship. And when the fans voiced their dismay over the change, catalysed by fears of a split in the F1 grid, the FIA had no chance but to go back.

Thus we have the same old scoring system of 10-8-6-5-4-3-2-1 for the 2009 system as well.

Popularity: 1% [?]

A Logger In C

Now I am working on this fair scheduling for my B Tech Project (BTP). Already having written a 1000 lines of code, it is a great pain to debug it. More so if you do not know which function might have caused the error. I needed a logger which could log all the events. The events include entering a function, any important calculation/decision it makes, any return values, so that if my program breaks down I can exactly pinpoint the source of error simply looking at the log file generated.

I have no idea if any inbuilt logging functionality exists for C programs or not. Either way, I did not have much time to google up and learn how to use it. I decided to make my own logger, a simple one, which would serve my purpose. It hardly took me 10 minutes to get over with it.

One of the important functionalities that I wanted my logger to have is indentation. The log should be properly indented, just the same way as we indent the code. When the program control enters a new function, the logging should get indented to right, and when it leaves the function, the logging should get indented by the same amount to the left. So I defined two macros, $$INDENT$$ and $$OUTDENT$$. To make them work, I defined a global variable – $$logIndent$$. The $$logIndent$$ would at any given time contain the amount of space by which the log has to be indented. Obviously, I initialized it with 0. Also defined is a global variable called $$indentVal$$ which is the amount of spaces with which the indentation should take place. I like the value to be 2. The two macros are

#define INDENT logIndent += indentVal
#define OUTDENT logIndent -= indentVal

int indentVal = 2;
int logIndent = 0;

I defined another macro called $$SPACES$$ which would print the number of spaces to produce the required indentation.

int tempIndent;
FILE *logFile;
#define SPACES for(tempIndent = 0; tempIndent < logIndent; tempIndent++) fprintf(logFile, " ");

Obviously $$tempIndent$$ is a globally declared temporary variable and $$logFile$$ is the file pointer to the file where the log has to be written. I initialize the $$logFile$$ pointer in the $$main()$$ part of my program.

And finally coming to the logger, I created a custom $$printf()$$ statement using the $$vprintf()$$ command. I call my logger as $$LogThis()$$. Its declaration is as follows

void LogThis(const char *format, ...);

It is constructed as follows

void LogThis(const char *format, ...) {
  va_list args;
  va_start(args, format);
  SPACES;
  vfprintf(logFile, format, args);
  va_end(args);
}

That’s it ! To use this logger, I have to do the following in my function :

#include <stdio .h>
#include <stdarg .h>
void TestLogger() {
  int returnVal;
  float retVal;

  LogThis("<testlogger>\n");
  INDENT;

  /**
   *  Inside the function do whatever you want to
   */

  LogThis("Returns: %d, %f\n", retrunVal, retVal)

  OUTDENT;
  LogThis("</testlogger>\n");
}

Done ! A well indented log will be produced. This has really helped me debug the code. I do not have to gdb from the last point that worked in my program. Instead, I know which function the program control was in when it threw an error. I need to gdb from that function onwards only, thus reducing the debuging time considerably. Also, in case of errors, I can increase the debugging data for that particular function, thus eliminating the need to use gdb at all.

Popularity: 5% [?]