Google exposes some of the indicators nicely in charts based on the data exposed by worldbank
I have checked few indicators across few countries. Here are the links of couple of charts.
CO2 emissions - USA, India, and China
Electric Power Consumption - USA, India, and China
Seeing all, Actually USA and the developed nations has to contribute a lot to save the environment.
Check out the other indicators either through the worldbank datafinder or Google Publicdata charts or develope your own way of rendering the data using the worldbank API
Wednesday, December 02, 2009
Sunday, October 25, 2009
Bangalore Traffic and Circles
Bangalore traffic is going bad day by day. But, I don't see much improvement on the infrastructures. All the government is trying to do is widen the roads and build circles without signals. I hate the circles concept. You expect the bangalore traffic to flow automatically without any signals from any direction to any direction. In bangalore, only the Hebbal flyover is up to the mark in the standards to have a free flow. Recently, they opened the circle near freedom park. Automobiles coming from any direction can circle around and take any direction out. Someone comes from the right end and wants to take the left road, and Someone else comes from the left and wants to take the right road. Both crosses each other and the traffic piles up. At least they would have made some layers of road which exits to different roads. Each and every civil engineer studies about the bridges and fly overs that aids the free flow of traffic. But, In reality they don't implement it quite often as they have constraints on the space, time, budget, and politics.
Saturday, October 17, 2009
Sea Biscuit(2003)
Sea Biscuit(2003) is an amazing movie.Have seen it few times and won't be bored to see many more times.
Well written by Laura Hillenbrand and nicely screen played by Gary Ross.
I liked the four main characters, Tom smith (played by Chris Cooper),
Red (played by Michael Angarano),
sea Biscuit and Charles Howard (played by Jeff Bridges)
Loved their expressions, especially Tom Smith's facial expressions at times for the dialogs of Charles Howard.
The story line was awesome, it clearly shows the mix of right people with greate attitude put together can achieve anything even if they lack in some way. Small Horse, Tall Jockey, Old Trainer and the Owner. Small Horse had the spirit to win the well built horses. Tall jockey had the attitude to understand and mingle with it and beat all the right sized(short) jockeys. Old Trainer could clearly judge the horses, train them, and correct the jockeys mistakes. The Owner had picked the right trainer and he was there whenever they need or any one of them fail.
Few of best dialogs that i liked from this movie are
"You know,you don't throw a whole life away...
just 'cause he's banged up a little."
"Brick by brick my citizens, brick by brick." - by The Roman Emperor, Hadrian
It ain'tjust the speed. It's the heart.
Friday, September 11, 2009
Selenium - Testing AJAX Web Applications
In AJAX applications, we do not reload the whole page, instead we update part of the page based on the response. To test these applications we cannot use wait_for_page_to_load() or wait_for_frame_to_load() or alert_is().
In these cases, we have to use the wait_for_condition() selenium API.
Key thing to observe here is that the code that you write in the condition is in javascript.
In the following example, I am waiting for the alert for 60000 milliseconds. This alert is poped up after updating the page based on the AJAX response.
In these cases, we have to use the wait_for_condition() selenium API.
Key thing to observe here is that the code that you write in the condition is in javascript.
In the following example, I am waiting for the alert for 60000 milliseconds. This alert is poped up after updating the page based on the AJAX response.
my $cond = "try{ if(selenium.getAlert().indexOf('Package successfully deployed') > -1){true;} } catch(ex) {}";
$Common::sel->wait_for_condition($cond, 60000);
Wednesday, September 09, 2009
Selenium - alert and confirm in the page's onload() event
Selenium does NOT support _javascript_ alerts that are generated in a page's onload() event handler. Selenium does NOT support _javascript_ confirmations that are generated in a page's onload() event handler.
You may have some alert in the login page to display some alert on invalid username and password. When you want to automate the test cases on those pages, you need to add some javascript code on those pages before displaying the alert or confirm. These following lines makes the selenium to capture the alert or confirm messages.
You may have some alert in the login page to display some alert on invalid username and password. When you want to automate the test cases on those pages, you need to add some javascript code on those pages before displaying the alert or confirm. These following lines makes the selenium to capture the alert or confirm messages.
var browserbot = parent.selenium.browserbot;
if (browserbot) {
browserbot.modifyWindowToRecordPopUpDialogs(window, browserbot);
}
alert("Alert message after those selenium workaround js snippet");
Subscribe to:
Posts (Atom)