Thursday, June 10, 2010

My age old hobby... got refreshed !

I guess it came to me from my Baba; a hobby of collection. I had inherited stamps collection from Baba and took it forward with Sau who also carries same interests.

After some time both of us got into coins collection, we collected lots of coins like age old coins, all the varieties of one rupee, 50 paisa etc, foreign coins. Where ever we will go, we used to keep our eyes open to catch hold of some new coins. We had tried all our relatives, friends, relative's friends for old coins. We even visited old jewelers in search of some old gold/silver coins. We have a mammoth collection of coins and bills (notes) at home currently locked in bank locker.

Gone those days. For quite a long time after that; coming to think about it, its almost 15 years now. Last year I realised there are US quarters (25 cent USA coin) for each state and I thought of collecting them. I also realised that in US it would be very common to collect those 50 states quarters so I should be able to find some nice albums for that. Sure enough I found few options on Amazon and I ordered one right away. I do deal with lot of quarters because of weekly laundry in our apartment complex which needs about 24 quarters every week. In first go I found 20-25 states coins, Ram also took lot of interest in finding coins and putting them in album. Once done it is sitting in the shelf.


Here, a photo of my album. It does not show all the coins and sure there are lot of blank spaces. It seems they have published 2 coins per state with letters P and D. I found all the coins with P but I am not successful in getting D coins. Well eventually I will get them :)

Again there is a gap of a year and got another chance. Our office building's lease got over and they planned to move to new place. Now our office has been in that building for last so many years and they started removing age old junk and trash them. As I was sharing my cube with our systems guy, Nirmal, I was able to see lot of interesting old stuffs. I could not stop myself to catch hold of some computer antiques which my manager happily handed over to me. He was very happy that some one was interested in those computers,  which otherwise they were going to dispose off.

First one I grabbed is Toshiba T2000SX a performance machine in 1990 with 16 MHz i386 SX processor and memory starts at 1 MB, and can be expanded to an impressive 9 MB; last but not least 20 or 40 MB hard disk ensures that programs and data have plenty of space. Here is details specs from the makers http://www.toshiba-europe.com/bv/computers/products/notebooks/t2000sx/index.shtm




Next one is AST's 800N a 1994 model, AT compatible notebook computer running MS-DOS, Microsoft Office 4.3 and Windows for Workgroups 3.11. with color screen. This one is in working condition. I took these photos myself with my DSLR using white and blank paper sheets in background. Photography is now a days my new hobby. errrrrrrrrrr.... digressed... :)




Newspaper clipping about AST 800N

Finally I got a hold of one 3½-inch floppy disk as well. Just in case those get extinct ;)
I had used this floppy first time in 1993 which is when I touched (well also used it) computer for the first time.Me and Samya wrote lots of programs in 'Basic' language on DOS and we had stored all those programs in this 1.2 Mb floppy.


Lets see if I can grow my collection and to what extent.
Stay tuned !!!!

Tuesday, June 1, 2010

Once again at Savelli Dam...

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.

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

Region
Country
State
City

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)
      }
    }
  }
}