December 2007 Archives

Goodbye 2007

| No Comments

Seems like a very short year. I still remember the last few days of 2006. I was a having a personal turmoil. It ended sometime in Jan and the next few months were spent finding out what went wrong. But once I got out of that imbroglio, it has been one heck of a ride.

  • Met a whole lot of friends, whom I had not met in around 8-10 years.
  • Visited a few places.
  • Did gymming for a couple of months and have been regular to Yoga classes since July. This is a welcome change.
  • Reduced coffee intake. From around 10 cups a day to around 5-6 cups a week.
  • Spent some time clicking.

Hope 2008 gets even better.

I am mostly heading off to some remote place with a bunch of friends and will be back only next year. So here is wishing everyone a very happy and prosperous new year 2008.

BSNL Portal on Firefox

| 1 Comment

I have a BSNL Cellone connection. BSNL has its portal for viewing / paying bills online. This was giving JS errors on FF while working fine on IE. I did not pay too much attention to debugging this. Today, I had enough time at hand and decided to poke around to see what was wrong. Within a few minutes, I was able to spot the error.

<input name="hdnBID" id="hdnBID" type="hidden" />
<input name="hdnCID" id="hdnCID" type="hidden" />
...
...
<script language="javascript">
function SubmitForm(BId,Cid){
  document.getElementById("hdnBId").value=BId;
  document.getElementById("hdnCid").value=Cid;
...
}
</script>

Simple enough to fix. But however, I was using a flawed approach of trying to replace the SubmitForm function with the correct values. Spent close to an hour reading Dive Into Greasemonkey and a few other documents on greasemonkey when I realised that there was something very much easier.

A few lines of code and this works fine now on FF

(function() {
window.addEventListener("load", function(e) {
var currentElement = document.getElementById("hdnBID");
currentElement.setAttribute("id", "hdnBId");
var currentElement = document.getElementById("hdnCID");
currentElement.setAttribute("id", "hdnCid");
}, false);
})();

May be there are more easier ways, but this solves my problem for now. So if you want to use the BSNL portal on FF, go ahead and install this user script.

Sholay - Reloaded

| No Comments

Another funny flash ad. Check it out.

December Vacations

| No Comments

What is so good about December? There is some slack in work and I have 10 days of vacation to take. So here I am, sitting in Coimbatore, watching TV, listening to music, eating home food and most importantly sleeping.

I initially had plans of traveling to either Sri Lanka or somewhere outside but had to give my passport for renewal. Also, food poisoning put me onto bed rest for 3-4 days. So I decided to stay indoors except for a 4 day trip to Sabarimala.

I also watched most of the second and third test matches against Pakistan. If there is someone who has made a comeback in Indian cricket with a bang, it has to be Ganguly. I used to hate him when every other politician for lobbying for him to be included in the team. But he did make it to the team due to the lack of form of some cricketers and he has cemented his place now. I still remember the third test match against England. Rahul Dravid had a good lead and he did not enforce follow on saying his bowlers weren't fit. India started to bat and was soon 11/3. Dravid started his super slow innings taking ages to score 11 runs. While on the other side, Ganguly stroked brilliantly to get a half century. From then on, I have been keenly watching Ganguly. His emotions where very much in control when he got his century in Kolkata and the double century and the 90 odd runs in the Bangalore test that followed. I hope the big guns including Tendulkar, Dravid and Laxman have a good series in Australia since this is mostly going to be their last visit there.

About this Archive

This page is an archive of entries from December 2007 listed from newest to oldest.

November 2007 is the previous archive.

January 2008 is the next archive.

Find recent content on the main index or look in the archives to find all content.

OpenID accepted here Learn more about OpenID
Powered by Movable Type 5.12