Posts

IE will not render my dynamic table

Image
And today I wasted an entire afternoon trying to figure out why IE will not render my dynamic table got from an AJAX call. And as usual all the other browsers were rendering the table without skipping a beat. I stripped out everything till nothing was remaining in the table and still IE will not render the table.  Finally I found out the culprit. I did not have a tbody tag. UGhhhh.  Should I send a bill to Bill for all the wasted hours because of this inconsistent browser?

Freebie alert - ajax loader generator

Image
I did not expect that such a thing will exist - but it does exist. You can customize your ajax loader circle here -  http://www.ajaxload.info/  . Here are some samples ( which blogger is converting to png - so you will not be able to see the gif animation )  

Javascript : Attaching to an event with a function that takes parameters

Thanks to IE refusing to play well on a dynamically loaded table with controls - I am learning new things. Here is how to attach a function which takes parameters to a control. document.getElementById('button').onclick=new Function("some_function('parameter')"); God bless IE. 

another Gotcha - adding event to dynamically added control

This time the culprits were Chrome and IE. The table I dynamically pulled had a select all button. But the onclick was never getting fired. The work around was quite simple. I had to attach the event to the control once again. Then the onclick event worked. Attaching the event is quite simple.  document.getElementById('button').onclick = functionName;

IE 7 does not show the table header - THEAD on AJAX call

Image
I would have spent more than an hour breaking my head with IE.  Problem : I have a table which is fetched using AJAX. Now this table has a thead with header contents and rendered fine in all the browsers except IE.  My code looked something like this  <table> <thead> <th>Name</th> <th>Age</th> </thead> <tbody> Solution :   There should be a TR within the THEAD. Now the header started showing fine after the ajax call. The funny thing is - IE rendered it fine when this table was part of the page. When I moved it to be rendered from an AJAXy call this problem surfaced.  Now the code looks like this. <table> <thead> <tr> <th>Name</th> <th>Age</th> </tr> </thead> <tbody>

Server issues but I am sticking with my hosting provider.

It was a harrowing time yesterday. My virtual hosting provider had network issues and so ApartmentAdda was down for 1 hour 44 minutes. First time in it's short history that it has been unreachable. I discovered it after an hour and quickly changed the dns settings to point to a page that had please be patient - we are facing network issues message. It seems they had a hardware fault in one of their main switches and the  hazaar virtual hosts became unaccessible. Wondering who the service provider is - it is eapps.com. I always wanted to write about them - but let me do it now. Perhaps they are getting a bad rap everywhere because of the downtime they had and their 9999 something went for a toss because of yesterday's down time. But I will stick to them. They are good.  Here is why : They are prompt and whoever I talked to is knowledgeable. Either they can call you ( yes I am in India and they use skype or something ), or you can chat with them - and they answer  you any time of...

and I give Dravid Man of the Match award

Image
The man-of-the-match award committee did not give Dravid the man of the match award - they are a bunch of fools anyway. But I confer the man of the match award to Rahul Dravid.  Why? No one deserves the award better than Dravid. He faced 19 balls and scored 4 runs ( see my earlier post about 5 opt repeated cliches - point no. 5 - I still have some cricket left ). After 19 balls he sacrificed his wicket so India can go and win the match.  He could have easily wasted 113 balls to score 5 runs - and then get out - so that the asking rate is impossible to achieve, and also the other batsman would have lost all interest in playing cricket. But he did not do such a thing. The noble soul sacrificed his wicket for a just cause. He deserves to be honoured. Also he pleasantly surprised the poor crowd who had come to see a defeat or a draw. Man of the match always should be given to the ad model who is instrumental in shaping the victory - who else is responsible for paving the way for an India w...

Hi Venkat.

This post is to that Venkat - oh you are a little confused is it? Let me clear the air a bit. This post is for that Venkat ( I don't know him though ) who keeps occupying the online world before I get there.  I probably rank somewhere on a 7 on a 1 to 10 scale when it comes to the nerdish world. Why 7 - because I started twitting only a month back, had this blog since 2004 but seriously started writing only now, have an xbox - but have not completed a single game - better than the average unwashed masses but not a complete certified nerd yet. Now this Venkat is miles ahead of me. He has grabbed venkat@gmail.com ( spam that guy you bots ughh ), has already created an an account with the name "Venkat" wherever I go. Today I tried to register in an online game - tavarian - and lo and behlod venkat is already taken. So to you Venkat - I salute. And I certify that you are a 8 on a 1 to 10 scale. And my parting words to you - GET A LIFE. 

Airtel GPRS - it is quite good.

Image
Next week I will be traveling to Calcutta to my in-laws place. Apartment Adda is live and I need to keep monitoring the servers, reply to support emails etc. and I cannot afford to be cut off. Also going to a cyber cafe is not an option - I am paranoid of key stroke loggers and what nots.  I did quite some research - USB cards, data access card - which were quite expensive for the 1 week access that I needed. Finally ended up trying Airtel GPRS. The speed is dial up - as advertised. My site loads up fast and I am able to SSH. That is all I will need.  You need a data cable for your phone - so you can use your phone as a modem. Then send the message "MO" to 6123 - this is a week plan for Rs 140 - unlimited usage. And when you want to stop the service send the message "MO CNCL" to 222. Simple isn't it? Also with the frequent power cuts I am facing - probably I will go for the 1 month plan - 100MB for 350Rs or so.  Thanks AR Rahman for the tune and Airtel for your ...

Google Chrome now shows alert

My of late favorite browser has become my regular browser once again. It has started showing alert boxes in pop up windows. This is of build 0.4.154.29. Enjoy !!

The seed, the nucleus and the tribe

I have been following Seth Godwin for a while - he posts frequently, and each post teaches me something new. Here is a video of him giving a speech on creating a nucleus and building around it - and identifying tribes and telling them a story -  http://sethgodin.typepad.com/seths_blog/2008/12/the-seed-the-pi.html What I learnt? * You need to sell your service to the whole world. Identify a little group of people - and show them your service, tell them your story - they will spread the word for you - if they like it and your service is good. * Everything starts small - as a seed, as a nucleus. Hold on tight to it  - and start developing on it - working around it and slowly let it evolve. Much like the agile process that I follow - in many iterations - adapting and modifying according to the feedback and what the customer wants.

5 oft heard cliches

I am still fuming from the Mumbai carnage and hearing our politicians soundbytes. Felt it is bad for my blood pressure - so here is a post on a lighter vein - the cliches that media,politicians, pundits, commentators - keep telling on and on. 1. "Iraq is in the danger of going into a civil war." Knock knock - Iraq was in civil war from the very beginning since Dubya started his engagement 4 years back. Stop saying it and call what it is - civil war, failed state etc.  2. "We will give a fitting reply" This is what our Indian politicians say immediately after a bomb goes off somewhere. They have been giving fitting replies for the past 50 years. No one knows what the reply will be. Our youth leader has said Pakistan has slapped us and we should give a fitting reply. When asked what will that be - he says that is for the PM to give.  Dude don't pretend to be a leader come join me  in writing blogs - I can speak such things without giving any solution. 3. "Our...

Scapegoat

Image
The man on the left is the scape goat because of the incompetency of the following stalwarts. 1. Manmohan Singh 2. A.K.Antony. 3. Sonia Gandhi. Mrs.Gandhi has successfully placed "dummies" for Prime Minister, President, Defense Minister and Home Minister. 1 and 2 might be clean but that did not come of any good to handle crisis. I prefer a corrupt paan chewing bad guy who will make our enemies think twice before indulging in any such adventures. Venkat how can you say such a thing? I know I know - even if 1. and 2. are clean - the rest of 3,4...272 are  looting - remember the just concluded Telecom scandal  - Rs 60,000 crores swindled by a Swan technology and one more company - who never had any plans of selling mobile network - but got the spectrum from Mr.Raja for a measly sum and resold it within days to companies who wanted the spectrum badly.  So corruption will happen - its a serious cancer. But the wounds that are being inflicted now will bring us a quick death. It has...

2 reasons why Terrorists made a mistake this time

Terrorists choose the wrong place and wrong time to strike. They have dug their own graveyard. Here is why.  1. It is election year . The in power, out of power, no chance of power - all politicians with half,quarter brain will be baying for terrorist blood. Any draconian bill will get passed this time in the assembly.  Of course the short term impact will be - the terrorists will look for alternative professions and lie quietly. The long term impact will be - too much power with police,army will backfire in the long run. Then a peace loving government will come to power and clip its wings. 2. Those idiots attacked business capital. In the past few years business lobbying has started growing. So now enough businesses ( I am counting on you feuding Ambanis, Tatas and Birlas) will lobby for tougher security - and the half and quarter brains will comply and pass the laws even if they do not understand a thing. And in another note :  We are  tired of our Neighbour  My great neighbour nex...

Art of the start

Image
Art of starting... Well this is the name of my blog, inspired by a great book - Art of The Start by Guy Kawasaki.  I bought this book on Nov 27,2006. ( I write the day I bought a book with an interesting event that day if I had one ) - and read it half way. But never finished it - gave me lot of crazy ideas and inspiration. Now I picked the book again and re-reading from the beginning. And suddenly it makes sense - every word of it. Earlier when I read this book it was as if I was reading the syntax of a language in a book. Now when I read the book it is as if I am coding and compiling and running it.  If you are a wannabe entrepreneur, just starting like me, or a seasoned entrepreneur who eats VCs for breakfast - this is the one book you should have read back to back. 

Shame on us

Image
I respect Mumbai more than Delhi. It is India's capital according to me - so many businesses, ideas, entrepreneurs have flourished here.  I got my coffee ready and picked up Indian Express and saw "Terrorists take over Mumbai" - I could not believe it. Thought it was a prank. Economic Times concurred. This is like a movie script. What is going on with our country? Knock Knock Sonia Gandhi, Manmohan Singh and Shivraj Patil - what are you guys doing? Enough of your vote bank politics and cuddling terrorists. Terrorists have gone from 0 to 1000s in the last 4 years - thanks to your inaction.  If you cannot deal with it - quit. Take with you the crores that you got from Telecom licences and what nots and go holiday in France or Swiss - I don't care. Leave my country alone - and let an able administrator take over. Cannot watch this country bleed slowly to death. 

Who is John Galt?

Image
I completed Atlas Shrugged by Ayn Rand. After 1000 pages and sitting through the philosophical discourses by John Galt ( what a fabulous speech in the end), Atkinson - the philospher, Fransisco the Copper Barron, a pirate, a car manufacturer, a music composer - I am still in one piece and I still love humanity - more later. First Who is John Galt? This phrase gets asked by everyone in the book. John Galt is the intellectual who decides to stop the motor of the world - by withdrawing the forces that drive it - and he is successfull in doing so.  The whole story is about intellectuals going on strike . The intellectuals - producers,scientists,thinkers - are the one who are bearing the weight of this earth - like Atlas holding the earth. But they are not rewarded for what they deserve - the industrialists are accused of exploiting others for their wealth, the scientists are not rewarded for their inventions but ridiculed and stifled, the music composer is not appreciated "with the...

Comprehensive list of Tools for Web site testing

http://uitest.com/en/analysis/ Accessibility,SEO,Validation,Load Time

Top 5 things I lost by shunning TV

Image
It has been almost 2 months since I stopped watching TV. With 2 exceptions - Followed Chandrayaan launch on the (t)rusty Doordarshan and saw  Obama creating history . Rest of the time I have shunned TV. Here is my top 5 things that I miss about TV. 1. Breaking News - yeah right. I do miss a whole lot of things that seem to break continuously round the clock.  2. Cricket - Oh I miss so much. During this time 4 test matches and 2 ODIs were played and I missed  the painful ecstasy of watching world's most boring entertainment and not to mention Rahul Dravid score 0 in 3 balls or Ganguly's o in 1 ball of his last match (don't take the knives out yet, my next post will be on Ganguly - in fact I like him a lot)  3. Movies laden with Ads  -  A good hollywood movie will take 3 hours with all the ads strewn  inbetween. I really miss the analysis I do with all the products and advertisements that are shown between the movies - so I can plan the next unwanted purchase and help the ...

Free website monitoring

Image
Site24x7.com This is a very useful free resource. They let you monitor up to 2 websites free. Also they send a weekly report about your site uptime and performance. This is just one of the many free services that are available which we can take advantage of.