We have been to Savelli Dam so many times. Every time we go there (which is 45 minutes drive from home), I have experienced a peace of mind. Been there in summer and fall; now thinking of it may be we should try in spring and winter as well ;)
Recently we went there after office taking 'subway' subs for dinner and had a nice dinner overlooking the river. Ram wanted to walk down to the river hence we took those steps with wooden rails which I had photographed so many times before.
Ram was excited to go down; suddenly we saw a baby squirrel she was scared and she tried to hide under a big rock.
I had to answer 5-6 questions then and there about squirrels and why they get scared by us. Continued after that through wild grass and flowers and finally we reached down to the road, from here we could barely see Preeti.
After spending few minutes there, Ram was still not ready to start back. So I gave him an idea that we will go up from another route which was a rough stairs made of stones. This turned out to be really a good idea we could see one hidden part of the water flow.
Once we were up and walking back there was old wooden hut; an interesting specimen for taking photos; and sure I did take advantage to the point that Ram started saying 'Baba stop taking photos'.
It was getting dark and we started feeling some mosquitoes so we decided to go back. But before getting in the car we had a nice view of Savelli dam from other side.
There we called it a day and started for home.
Tuesday, June 1, 2010
Friday, April 23, 2010
Select list for countries by region using javascript
Have have a simple form to input City, State, Country and Region. I though lets make it little easier for users so tried to search for regions list and countries list. Finally realized there is nothing the way I want it, hence took data from net (of-course) and wrote a small pretty much pluggable script.
| Location | ||||||||
|
var countries = new Array();
var african = new Array(); //African Countries
african["Algeria"] = "Algeria";
african["Angola"] = "Angola";
african["Benin"] = "Benin";
african["Botswana"] = "Botswana";
african["Burkina Faso"] = "Burkina Faso";
african["Burundi"] = "Burundi";
african["Cameroon"] = "Cameroon";
african["Cape Verde"] = "Cape Verde";
african["Central African Republic"] = "Central African Republic";
african["Chad"] = "Chad";
african["Comoros"] = "Comoros";
african["Congo"] = "Congo";
african["Congo, The Democratic Republic of The"] = "Congo, The Democratic Republic of The";
african["Cote D'ivoire"] = "Cote D'ivoire";
african["Djibouti"] = "Djibouti";
african["Egypt"] = "Egypt";
african["Equatorial Guinea"] = "Equatorial Guinea";
african["Eritrea"] = "Eritrea";
african["Ethiopia"] = "Ethiopia";
african["Gabon"] = "Gabon";
african["Gambia"] = "Gambia";
african["Ghana"] = "Ghana";
african["Guinea"] = "Guinea";
african["Guinea-bissau"] = "Guinea-bissau";
african["Kenya"] = "Kenya";
african["Lesotho"] = "Lesotho";
african["Liberia"] = "Liberia";
african["Libya"] = "Libya";
african["Madagascar"] = "Madagascar";
african["Malawi"] = "Malawi";
african["Mali"] = "Mali";
african["Mauritania"] = "Mauritania";
african["Mauritius"] = "Mauritius";
african["Mayotte"] = "Mayotte";
african["Morocco"] = "Morocco";
african["Mozambique"] = "Mozambique";
african["Namibia"] = "Namibia";
african["Niger"] = "Niger";
african["Nigeria"] = "Nigeria";
african["Reunion"] = "Reunion";
african["Rwanda"] = "Rwanda";
african["Saint Helena"] = "Saint Helena";
african["Sao Tome and Principe"] = "Sao Tome and Principe";
african["Senegal"] = "Senegal";
african["Seychelles"] = "Seychelles";
african["Sierra Leone"] = "Sierra Leone";
african["Somalia"] = "Somalia";
african["South Africa"] = "South Africa";
african["Sudan"] = "Sudan";
african["Swaziland"] = "Swaziland";
african["Tanzania, United Republic of"] = "Tanzania, United Republic of";
african["Togo"] = "Togo";
african["Tunisia"] = "Tunisia";
african["Uganda"] = "Uganda";
african["Western Sahara"] = "Western Sahara";
african["Zambia"] = "Zambia";
african["Zimbabwe"] = "Zimbabwe";
var asian = new Array(); //Asian countries
asian["Afghanistan"] = "Afghanistan";
asian["Armenia"] = "Armenia";
asian["Azerbaijan"] = "Azerbaijan";
asian["Bahrain"] = "Bahrain";
asian["Bangladesh"] = "Bangladesh";
asian["Bhutan"] = "Bhutan";
asian["British Indian Ocean Territory"] = "British Indian Ocean Territory";
asian["Brunei"] = "Brunei";
asian["Cambodia"] = "Cambodia";
asian["China"] = "China";
asian["Christmas Island"] = "Christmas Island";
asian["Cocos (Keeling) Islands"] = "Cocos (Keeling) Islands";
asian["Cyprus"] = "Cyprus";
asian["Georgia"] = "Georgia";
asian["Hong Kong"] = "Hong Kong";
asian["India"] = "India";
asian["Indonesia"] = "Indonesia";
asian["Iran"] = "Iran";
asian["Iraq"] = "Iraq";
asian["Israel"] = "Israel";
asian["Japan"] = "Japan";
asian["Jordan"] = "Jordan";
asian["Kazakhstan"] = "Kazakhstan";
asian["Kuwait"] = "Kuwait";
asian["Kyrgyzstan"] = "Kyrgyzstan";
asian["Laos"] = "Laos";
asian["Lebanon"] = "Lebanon";
asian["Macao"] = "Macao";
asian["Malaysia"] = "Malaysia";
asian["Maldives"] = "Maldives";
asian["Mongolia"] = "Mongolia";
asian["Myanmar"] = "Myanmar";
asian["Nepal"] = "Nepal";
asian["North Korea"] = "North Korea";
asian["Oman"] = "Oman";
asian["Pakistan"] = "Pakistan";
asian["Palestinian Territory, Occupied"] = "Palestinian Territory, Occupied";
asian["Philippines"] = "Philippines";
asian["Qatar"] = "Qatar";
asian["Saudi Arabia"] = "Saudi Arabia";
asian["Singapore"] = "Singapore";
asian["South Korea"] = "South Korea";
asian["Sri Lanka"] = "Sri Lanka";
asian["Syria"] = "Syria";
asian["Tajikistan"] = "Tajikistan";
asian["Taiwan"] = "Taiwan";
asian["Thailand"] = "Thailand";
asian["Timor-leste"] = "Timor-leste";
asian["Turkey"] = "Turkey";
asian["Turkmenistan"] = "Turkmenistan";
asian["United Arab Emirates"] = "United Arab Emirates";
asian["Uzbekistan"] = "Uzbekistan";
asian["Vietnam"] = "Vietnam";
asian["Yemen"] = "Yemen";
var europian = new Array(); //Europian countries
europian["Albania"] = "Albania";
europian["Andorra"] = "Andorra";
europian["Austria"] = "Austria";
europian["Belarus"] = "Belarus";
europian["Belgium"] = "Belgium";
europian["Bosnia and Herzegovina"] = "Bosnia and Herzegovina";
europian["Bulgaria"] = "Bulgaria";
europian["Croatia"] = "Croatia";
europian["Czech Republic"] = "Czech Republic";
europian["Denmark"] = "Denmark";
europian["Estonia"] = "Estonia";
europian["Faroe Islands"] = "Faroe Islands";
europian["Finland"] = "Finland";
europian["France"] = "France";
europian["Germany"] = "Germany";
europian["Gibraltar"] = "Gibraltar";
europian["Greece"] = "Greece";
europian["Guernsey"] = "Guernsey";
europian["Hungary"] = "Hungary";
europian["Iceland"] = "Iceland";
europian["Ireland"] = "Ireland";
europian["Isle of Man"] = "Isle of Man";
europian["Italy"] = "Italy";
europian["Jersey"] = "Jersey";
europian["Kosovo"] = "Kosovo";
europian["Latvia"] = "Latvia";
europian["Liechtenstein"] = "Liechtenstein";
europian["Lithuania"] = "Lithuania";
europian["Luxembourg"] = "Luxembourg";
europian["Macedonia"] = "Macedonia";
europian["Malta"] = "Malta";
europian["Moldova"] = "Moldova";
europian["Monaco"] = "Monaco";
europian["Montenegro"] = "Montenegro";
europian["Netherlands"] = "Netherlands";
europian["Norway"] = "Norway";
europian["Poland"] = "Poland";
europian["Portugal"] = "Portugal";
europian["Romania"] = "Romania";
europian["Russia"] = "Russia";
europian["San Marino"] = "San Marino";
europian["Serbia"] = "Serbia";
europian["Slovakia"] = "Slovakia";
europian["Slovenia"] = "Slovenia";
europian["Spain"] = "Spain";
europian["Sweden"] = "Sweden";
europian["Switzerland"] = "Switzerland";
europian["Ukraine"] = "Ukraine";
europian["United Kingdom"] = "United Kingdom";
europian["Vatican City"] = "Vatican City";
var northAmerican = new Array(); //North american countries
northAmerican["Anguilla"] = "Anguilla";
northAmerican["Antigua and Barbuda"] = "Antigua and Barbuda";
northAmerican["Aruba"] = "Aruba";
northAmerican["Bahamas"] = "Bahamas";
northAmerican["Barbados"] = "Barbados";
northAmerican["Belize"] = "Belize";
northAmerican["Bermuda"] = "Bermuda";
northAmerican["British Virgin Islands"] = "British Virgin Islands";
northAmerican["Canada"] = "Canada";
northAmerican["Cayman Islands"] = "Cayman Islands";
northAmerican["Clipperton Island"] = "Clipperton Island";
northAmerican["Costa Rica"] = "Costa Rica";
northAmerican["Cuba"] = "Cuba";
northAmerican["Dominica"] = "Dominica";
northAmerican["Dominican Republic"] = "Dominican Republic";
northAmerican["El Salvador"] = "El Salvador";
northAmerican["Greenland"] = "Greenland";
northAmerican["Grenada"] = "Grenada";
northAmerican["Guadeloupe"] = "Guadeloupe";
northAmerican["Guatemala"] = "Guatemala";
northAmerican["Haiti"] = "Haiti";
northAmerican["Honduras"] = "Honduras";
northAmerican["Jamaica"] = "Jamaica";
northAmerican["Martinique"] = "Martinique";
northAmerican["Mexico"] = "Mexico";
northAmerican["Montserrat"] = "Montserrat";
northAmerican["Navassa Island"] = "Navassa Island";
northAmerican["Netherlands Antilles"] = "Netherlands Antilles";
northAmerican["Nicaragua"] = "Nicaragua";
northAmerican["Panama"] = "Panama";
northAmerican["Puerto Rico"] = "Puerto Rico";
northAmerican["Saint Barthélemy"] = "Saint Barthélemy";
northAmerican["Saint Kitts and Nevis"] = "Saint Kitts and Nevis";
northAmerican["Saint Lucia"] = "Saint Lucia";
northAmerican["Saint Martin"] = "Saint Martin";
northAmerican["Saint Pierre and Miquelon"] = "Saint Pierre and Miquelon";
northAmerican["Saint Vincent and The Grenadines"] = "Saint Vincent and The Grenadines";
northAmerican["Trinidad and Tobago"] = "Trinidad and Tobago";
northAmerican["Turks and Caicos Islands"] = "Turks and Caicos Islands";
northAmerican["United States"] = "United States";
northAmerican["Virgin Islands, U.S."] = "Virgin Islands, U.S.";
var southAmerican = new Array(); //South american countries
southAmerican["Argentina"] = "Argentina";
southAmerican["Bolivia"] = "Bolivia";
southAmerican["Brazil"] = "Brazil";
southAmerican["Chile"] = "Chile";
southAmerican["Colombia"] = "Colombia";
southAmerican["Ecuador"] = "Ecuador";
southAmerican["Falkland Islands (Malvinas)"] = "Falkland Islands (Malvinas)";
southAmerican["French Guiana"] = "French Guiana";
southAmerican["Guyana"] = "Guyana";
southAmerican["Paraguay"] = "Paraguay";
southAmerican["Peru"] = "Peru";
southAmerican["Suriname"] = "Suriname";
southAmerican["Uruguay"] = "Uruguay";
southAmerican["Venezuela"] = "Venezuela";
var oceanian = new Array(); //Oceanian countries
oceanian["American Samoa"] = "American Samoa";
oceanian["Australia"] = "Australia";
oceanian["Baker Island"] = "Baker Islands";
oceanian["Cook Islands"] = "Cook Islands";
oceanian["Fiji"] = "Fiji";
oceanian["French Polynesia"] = "French Polynesia";
oceanian["Guam"] = "Guam";
oceanian["Howland Island"] = "Howland Island";
oceanian["Jarvis Island"] = "Jarvis Island";
oceanian["Johnston Atoll"] = "Johnston Atoll";
oceanian["Kingman Reef"] = "Kingman Reef";
oceanian["Kiribati"] = "Kiribati";
oceanian["Marshall Islands"] = "Marshall Islands";
oceanian["Micronesia"] = "Micronesia";
oceanian["Midway Atoll"] = "Midway Atoll";
oceanian["Nauru"] = "Nauru";
oceanian["New Caledonia"] = "New Caledonia";
oceanian["New Zealand"] = "New Zealand";
oceanian["Niue"] = "Niue";
oceanian["Norfolk Island"] = "Norfolk Island";
oceanian["Northern Mariana Islands"] = "Northern Mariana Islands";
oceanian["Palau"] = "Palau";
oceanian["Palmyra Atoll"] = "Palmyra Atoll";
oceanian["Papua New Guinea"] = "Papua New Guinea";
oceanian["Pitcairn Islands"] = "Pitcairn Islands";
oceanian["Samoa"] = "Samoa";
oceanian["Solomon Islands"] = "Solomon Islands";
oceanian["Tokelau"] = "Tokelau";
oceanian["Tonga"] = "Tonga";
oceanian["Tuvalu"] = "Tuvalu";
oceanian["Vanuatu"] = "Vanuatu";
oceanian["Wake Island"] = "Wake Island";
oceanian["Wallis and Futuna"] = "Wallis and Futuna";
var antarctican = new Array(); //Antarctican countries
antarctican["Antarctica"] = "Antarctica";
antarctican["Bouvet Island"] = "Bouvet Island";
antarctican["French Southern Territories"] = "French Southern Territories";
antarctican["Heard Island and Mcdonald Islands"] = "Heard Island and Mcdonald Islands";
antarctican["South Georgia and The South Sandwich Islands"] = "South Georgia and The South Sandwich Islands";
countries["Africa"] = african;
countries["Asia"] = asian;
countries["Europe"] = europian;
countries["North America"] = northAmerican;
countries["South America"] = southAmerican;
countries["Oceania"] = oceanian;
countries["Antarctica"] = antarctican;
function populateRegions(selObjId){
var selectObj = document.getElementById(selObjId);
if(selectObj){
selectObj.options[0] = new Option("Select", "", true, true);
var counter = 1;
for (var region in countries){
selectObj.options[counter++] = new Option(region, region, true, false)
}
}
}
function populateCountries(selObjId, region){
var selectObj = document.getElementById(selObjId);
if(selectObj){
selectObj.options.length=0;
if(countries[region] != null){
selectObj.options[0] = new Option("Select", "", true, true);
var counter = 1;
for (var country in countries[region]){
selectObj.options[counter++] = new Option(country, country, true, false)
}
}
}
}
Thursday, February 4, 2010
My updates
After a long thought finally decided to stay here for some more time.
We had almost decided to return to India and also started all the planning. Reason being any way we want to go back so as Ram will start his school (first grade) next year; lets move by that time.
One day our friends Barnak and Bharti were at our place and started talking about our decision, they came up with some really sensible points. Considering all the advantages of being here in short term and final reason being for Ram the way we are grooming him (he is comfortable with all the relatives in India) it should not be hard for him to adjust in India even after few years.
There are few more things happening in life. Started some extra work which is giving self satisfaction, I hope to go well and really strike something this time.
Also I love my new hobby; photography. I want to put some more time on that but winter cold is terrible :). Although right now reading some books and preparing myself for the next season.
Preeti is also happy and busy in her activities; which she likes. She has already started planning for summer. Ram is as usual growing fast, talking a lot and having fun. The other we 3 played bingo which was fun.
Not getting time for 2009 photos collection, we already passed one month of new year.
So lot of things are happening and right now I am happy with my life.
We had almost decided to return to India and also started all the planning. Reason being any way we want to go back so as Ram will start his school (first grade) next year; lets move by that time.
One day our friends Barnak and Bharti were at our place and started talking about our decision, they came up with some really sensible points. Considering all the advantages of being here in short term and final reason being for Ram the way we are grooming him (he is comfortable with all the relatives in India) it should not be hard for him to adjust in India even after few years.
There are few more things happening in life. Started some extra work which is giving self satisfaction, I hope to go well and really strike something this time.
Also I love my new hobby; photography. I want to put some more time on that but winter cold is terrible :). Although right now reading some books and preparing myself for the next season.
Preeti is also happy and busy in her activities; which she likes. She has already started planning for summer. Ram is as usual growing fast, talking a lot and having fun. The other we 3 played bingo which was fun.
Not getting time for 2009 photos collection, we already passed one month of new year.
So lot of things are happening and right now I am happy with my life.
Subscribe to:
Posts (Atom)









