/* Begining of jQuery cookie part 1 */ /* End of jQuery cookie part 1 */

Srini's Blog

Sunday, February 05, 2017

Monthly Expenses Calculator

Recurring Expenses Calculator

Displays the expected balanace at the end of each day of the month. Required inputs:

  • Starting balance
  • Start date
  • Known incomes (+) and expenses (-) for each day of the month

Expenses for this month: Click 'Calculate'

Friday, February 14, 2014

Cross Country Trip - Boston to San Francisco Winter '14


Before the trip me and my wife Pavithra initially thought we'll ship the car. Few friends from work suggested we do the road trip. With record-breaking cold spreading across the US we were really thinking if we should do the trip at all. Checked Google Maps to do a quick route between Boston and San Francisco. It was about 3000 miles. The combined cost of lodging eating fuel and other expenses was almost the same as shipping the car. It was a choice between Comfort and adventure. We chose adventure. Did some research online about which route to take, preparations required, how to plan the trip and how to drive a car in winter weather. Also got some expert opinion at roadtripAmerica.com to help with the planning. Planned the route as they guided - avoiding the snow prone I-90 highway in NY state that borders the great lakes. But we decided to do two small modifications to sneak in some sight seeing in Chicago and Vegas!!
Did a maintenance check on the car, bought a lot of supplies including storm candles (in the event of getting stuck in a winter storm for hours in the car), flares, micro emergency blankets, sand salt mixture, jump start cables, non-perishable food, an extra gallon of water, updated the maps on the GPS and took AAA emergency roadside assistance service. I still had not done all the recommended purchases! We decided this preparation had to do and moved on.

Day 0
We had a million things to pack and finally shipped all the big things via truck. Apparently had a million more small things that we had to take with us in the car - it was past 11pm before we hit our air-bed for the night :)

Day 1
We were a good two hours later than we planned to start. We hit the road at 9:30 a.m. Traffic was light. The weather was pretty good for driving though it was around 0C (33F). We had breakfast at D'Angelos Italian restaurant. Got a call from work for me to send a document had to take a detour via Hartford CT for sending documents . That cost us another 45 minutes. Pavi started her first highway driving at this point. For a first timer on the highway , she was pretty cool and did a good job. She drove for an hour and then we stopped for lunch at a South Indian restaurant in Newton, CT, longing for some good home style food. The food turned out to be just average. Moving on after lunch, we had no problems moving on - listening to every single song in my cell phone, tuning to the radio when available, taking pictures, talking to family back in India or simply talking about how the trip will progress, eagerly awaiting sunny places - especially Utah.
All the delays of the day resulted in a late night check in at the hotel in Grove City, PA around 10:30 pm. Had a tricky time taking the required trolleys from the packed trunk with light snow falling and hand freezing, as we were just about ready to fall on the bed.
Bottom line: Day 1 was a success even if a little late :)

Day 2
The shortest driving day of the trip started with a breakfast delay - we didn't like the breakfast in the hotel and decided to go to a nearby restaurant only to see a house in that address. We decided to hit the road managing with our home bread and butter for the time being. Pavi started the drive. The sun was shining bright (not warm) and she had no trouble driving :)
After 45 minutes, we entered Ohio and stopped at a Burger King for breakfast. I have been in Ohio for the majority of my stay in the US. But I had never been to these northern parts, approaching Cleveland. We stopped in a rest area after a couple of hours. All the rest areas in Ohio were shiny new and great looking. We switched seats twice and after some driving entered Indiana. I was lazing around in the passenger seat and missed to click the Welcome to Indiana sign board :P Also managed to miss snapping the 'Entering Central Time Zone' sign - we had just gained one more hour of time to spend on day 2 :) A mix of radio and cell phone music made us enter a zone with light snow and light wind, causing Pavi to drive with some additional concentration. She pulled it off perfectly and I managed to snap a picture of the next board - Welcome to Chicago. I swear I didn't see a Welcome to Illinois sign :) Entering the city, we decided to park in a public parking garage next to our hotel and walked with our trolleys to our downtown hotel. The 5 minute walk seemed a bit longer due to Chicago's weather - but nothing too bad. It was still Chicago, not Chiberia :) The hotel room was stunning - it was a suite complete with a hall, couch and mini kitchen. Started off the evening by walking to the Willis tower. There was no crowd as it was a weekday and not so great weather outside. Enjoyed the views and the experience of the ledge :)
Had a tricky time trying to get the pictures just right due to poor lighting. Managed a couple of ok shots before moving on to the next landmark - Millennium park. Google maps guided us perfectly through subway trains. But it took some plain old asking-for-directions to reach the actual landmark from the station. By the time we got to the bean, my hand was practically numb but Pavi was doing great and was actually ready to go ice skating in the nearby rink :)
And I thought she had trouble with cold weather :) I was the one running into Walgreens on the way to our restaurant. We went to Fire top grill suggested by colleague Akash. It turned out to be a good, fun dinner. A lot of similarities to Ohio's Mongolian grill chain. Post dinner didn't have much trouble getting back to the hotel. It was time to hit the bed. Lot more driving ahead.

Day 3
What was going to be the most adventurous day of the trip started off with another breakfast delay. From our Chicago hotel, we hit the road early enough (around 8.30 AM) and started driving. I was driving, with the radio on and we both discussed and decided upon a restaurant that was close to our location. We took an exit and realized we have to drive an additional 2 miles to get to this restaurant. When we got there, we were shocked to see the restaurant closed. All restaurants nearby would open only at 11 AM. We hit the highway again, deciding to only stop in Service plazas. It was snowing lightly but there was a decent amount of snow on the highways. The scenery was miles upon miles of winter wonderlands - looked like big fields covered in snow. There was no service plaza in sight and we were approaching the 25% mark on our fuel. After a few hungry, slightly anxious miles, we saw sign boards for a service plaza. It was aptly named 'Delakb Oasis'. We were happy to get some chinese food from Panda Express for 'Brunch' and filled up our gas, moving onto more adventurous times. The snow was more pronounced on the roads and all vehicles were visibly slow. Changing lanes meant crossing over a small patch of snow between the two lanes - the vehicle needed some careful steering control for crossing the snow safely.
A few more miles ahead, we decided to stop on the side of the road. What followed was some pretty tense moments. I slowed the car to a really low speed (about 35 miles on a 70mph highway) and entered the shoulder in the side of the road. The car was completely out of control, non responsive to any steering moments. We were in some deep snow. Finally, after some real tense moments, the vehicle stopped. Though we couldnt see where the shoulder ended and the ditch begun, we were sure we were almost at the end of usable road by the time our vehicle stopped. Now what? Are we stuck in serious snow for hours? Did we make a mistake taking a shoulder stop in such snow? Probably. I reversed the car slowly so that we were away from the ditch and into the shoulder lane. Watched for oncoming traffic, signalled left and slowly inched forward. Thankfully, the car pulled through the snowy shoulder just fine and we were on the way without any trouble, just a little shaken. The rest of the road had some snow, but we were fine for the remainder of the drive. There was some pretty strong winds trying to push our car and Pavi handled all the windy driving conditions perfectly in Iowa and Nebraska.
I didnt realize how hard this was until I got hold of the steering in slightly less intense winds and that required a lot of concentration. This trip would not have happened with such ease if not for Pavi's driving :) We did take a small shopping detour in a recently opened Outlet (Factory) mall - Nebraska Crossing Outlets. The mall had just opened in Nov '13 and the shops were shiny new, with a huge collection of clothes and not even a few scattered clothes here and there. After getting myself a shirt, we moved on. Dinner was a real surprise - Ruby Tuesday in Lincoln, NE gave us some delicious Squash Spaghetti :)
As we checked into our hotel in Hastings, Nebraska we heaved a sigh of relief and went into sound zzzz....

Day 4
We realized we were at the half way point. What are road trips without a little adventure? We had a good share in day 3 and a tiny bit in Day 4 :) We finished the complimentary breakfast in the hotel - Hurray! No breakfast delays :) We stepped out to some decent weather (about 55 F [+10 C]). We had to wear sunglasses to drive safely. The weather and the scenic farmlands of Nebraska tempted us to take a photo break. We stopped in the shoulder [no, there was not even traces of snow this time :) ] and took a picture with a beautiful farm in the background (Tamil folks would recall the Vayamoodi Summa Iru da song style rolls).
We had to walk a little bit to get to a decent spot. Someone on the opposite side of the road thought we were stuck and offered help. We told him we were fine and moved on... After taking photos and walking back to the car, we were staring at a possibility of further delays. The car key didnt fit correctly and (obviously) the car didnt start. This went on for about 5-10 minutes. At this time, I thought of calling AAA for roadside assistance, but we decided to give it one final shot. After applying some light fluid on the keys and some persistent trying, the key worked and the car started :) Phew.. That was a tiny little scare in the heartland of America :) We moved on without much trouble, enjoying scenic farms and still battling some light winds. Shortly, we entered 'Colorful Colorado' - I missed to take a picture of this sign as well :( Colorado seemed largely deserted. No cities/towns in sight as we kept going for miles in sunny (65-70 F [20 C]) territory.
Lunch was in a pretty interesting place. We finally spotted a food exit and took it. The food was a small restaurant attached to the gas station. The only option was classic American food (veggie ofcourse). The cashier lady was on her first day at work - leading to some unexpected delays. We finally finished our lunch and moved on to see my school friend John. It was nice to meet him and his wife. It was a brief visit and felt good catching up with a childhood friend. Pavi resumed driving and it was mountain land. The car frankly struggled a little to go up on the mountainous Colorado highway.
After dark, it was tough to see the road especially in curves. Had to turn the high beam on momentarily in those places. We moved on to our day 4 destination - Rifle, Colorado a little over 10.30 pm. This trip has been going rapidly by us.

Day 5
Utah was finally arriving. As we finished breakfast in the hotel and started the initial drive, he couldn't help being in awe with the beautiful snow covered mountains of Colorado. Even the people seemed to look a little different in these parts, leading us to conversations about weather and its impact on people. We were quick to enter Utah but the initial stretch was full of snow and even some pockets of fog, in contrast to the desert we imagined and the 'desert wildlife' poster we saw in a coffee shop. As we kept going, the car's 'Maintenance required' indicator came on when the car was in motion. The last time that happened, the car needed an oil change. We were about 2500 miles into the roadtrip and I was sure we needed an oil change soon. We enquired in a small town and were directed to the town of Green River. Entering the town, we found a car service shop. The guys were working on a cop car and told we would have yo wait 30-45 minutes before they even started the oil change. We decided to move on to the next town, triggering the next mini adventure. We moved out of Green river and drove past canyon after canyon.
One of the experts at roadtripamerica.com had warned us about a stretch in Utah that had no service for 100 miles. It was between Green river and Salina - the exact stretch we were driving on! I recalled reading about the relation between driving speed and how fast you will need an oil change. The faster you drive, the sooner you will need that oil change. This realization led me to driving a lot slower then the posted speed limit (was driving at 55 on a 70 mph highway). We were counting down the miles to the next big town - Salina - and also Googling car service shops in the town. We found a lot of shops and decided we would be ok. We managed to reach Salina in our embattled, snow battered car. We found a car service shop soon enough and they told they would be done with the oil change in 20-25 min. Enough time for us to finish lunch in a small Mexican restaurant nearby - the lunch was pretty decent and tasted like authentic Mexican.
After lunch, our car was ready and we moved on towards Sin City. The next few dozen miles were the last patches of snow we would see on the trip. We quickly took I-15 South highway - it was an 80mpg highway. We briefly touched speeds of 90+ mph once or twice :)
There was no sign board announcing the time change, but we had entered Pacific time zone, pushing the clock back by 3 hours in 5 days. We soon reached the outskirts of Vegas and its skyline was impressive even though it hadn't turned dark yet. Our stay for the night was at The Mirage, at the very end of the Las Vegas strip. We started casino hopping from Ceasars to MGM Grand, taking in the views of the Bellagio fountains, the Paris tower, Mini versions of New york among others.
Ended the night with Mediterranean dinner at The Venetian and some light gambling. Not enough time or energy to cover all of Vegas..

Day 6
Started the day with a normal breakfast at IHOP. With some time at hand, decided to go to one last casino - Stratosphere. We went straight to the rides. The first ride was the X-Scream which scares you with a free fall like quick burst before stopping abruptly mid air and then suddenly lowering the ride down just a little to give a second scare :) The next ride was the Big shot
- just a vertical ride that rockets you to great heights instantly and then let's you freefall for a brief time, repeating the process a few times. After the first up and down motion, it was nice and just time to enjoy the view :) Soon after, we bid farewell to Vegas and headed home. The scenery was full of desert type lands with cactus and dust blowing up due to stopping vehicles.
We stopped for lunch at Dominos. We ate in the car and noticed the neighborhood. It looked really run down and we were wondering if this was the US at all.. We moved on and encountered narrow one lane roads with 50mph speed limit, which was a little challenging. Whizzed past those without much trouble and reached our destination just after 9 pm. It was over. We had done it. 3300+ miles, 6 days, snow, sun, mountain, desert, awesome cities and one unforgettable trip :)

Monday, February 20, 2012

8queens is back

I had uploaded this puzzle in my original post in 2008 using geocities. Managed to grab a working copy from my old pc and finally managed to upload it online.

My implementation of the 8 queens puzzle is now available in the below location:
http://srinivasang87.net84.net/8queens/8-queen.html
Update Feb 2017: 8 queens is now on Github

Saturday, December 18, 2010

jQuery cookies - set, get and delete

jQuery can be used to play around with cookies..
As simple as:
Set a cookie: $.cookie('the_cookie', 'the_value');
Get a cookie: $.cookie('the_cookie');
Delete a cookie: $.cookie('the_cookie', null);

There is also :
$.cookie('the_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true });

See it below in action :)


Please enter your name





Welcome

Labels: , , , , , , , ,

Wednesday, January 13, 2010

The simple plesaures of life.. and HTML !

Took a while to figure out this unicode :)
ராஜேஷ்

ராஜேஷ்


Thanks to Alan Wood’s Tamil unicode page

Sunday, March 08, 2009

My first trip to USA

20 Feb 2009 20:00
After finishing all the packing, I was all set to go. The company provided cab arrived on time and we made it early to the airport. After bidding a tear-free, short and sweet farewell to the family, I proceeded to the security check area.

I had a shadow of doubt about the weight of my baggage and if it will be rejected. Luckily, the security check went fine and I proceeded to immigration. A fellow tamilian noticed me dutifully filling my immigration form and he handed over his form to me. I was glad to fill it out for him as he seemed quite lost. After finishing the formalities, it was time to board the flight.

We took a bus from the airport gate to the plane. As usual, there was no place to sit :P I got to my seat and was pretty nervous as it was my first flight. The person close to me was atleast 60 years old and he was chilling out with a newspaper! That gave me some confidence and indeed the takeoff was just fine. Not even close to a roller coaster ride!

The flight ride was pretty boring. There was no entertainment system as it was a domestic flight to Mumbai. Ten minutes prior to landing, I felt a severe head ache and it was worsening. Somehow after the landing things were normal again. Turns out I didnt have any 'ear protection' and that caused the headache. Dont ask me, it was mom's theory :P

21 Feb 2009 02:20
We got out of the flight and headed to the Mumbai airport for a long halt. Our flight to Chicago was due only at 7:55. I made friends with a fellow Indian who was on the way to London. Just happened that his flight was at 7:00 am and he had a long wait ahead, too. After two coffees, some chit chat with the UK friend, it was finally time to board the flight to Chicago

21 Feb 2009 07:55
This flight was very promising. It had an entertainment system with music, movies and some other stuff. There were even a couple of tamil movies!
We were all set to fly from Mumbai to Chicago. But wait. There was some traffic on the runway and it caused a 20 min delay. At around 08:20 we were ready to take off and this time I was ready. I took out a scarf and wrapped it around my ears, granny style :P Takeoff was smooth.

It was time for food. The person near me looked American and he handled the bread and butter well with the fork. I tried to follow his style and it worked. I was cutting bread and applying butter in style! The flight was long and painful (for the legs atleast). I managed to watch a film I always wanted to watch, but kept evading me - Billa (2007, Tamil). It was good.
I also managed to watch 'When in vegas'. It was pretty funny.

21 Feb xx:xx
We landed in Frankfurt Germany for transit and the pilot announced the outside temperatue - 4 degree celsius. I instantly dashed for my gloves and jerkin. It was indeed cold when we eventually made it out. But it wasn't too bad. We took another bus to get into the gates of the world's second busiest airport.
After a 45 min wait in a room with packed chairs, we were on the way to board the flight for part 2 of the journey.
There was a family with a small kid in front of me. The kid kept crying. The immigration officer told (with a strange accent) "Crying kids will stay in Frankfurt". The kid stopped crying. We had a good laugh :)

22 Feb xx:xx
After Germany, the flight was pretty normal and we reached Chicago airport after 9 hours of flight. The pilot announced the outside temperature to be -4 degrees celsius! When I went out, it was indeed freezing. But it wasnt terrible. We made our way to the 'Port of entry' immigration check and there was a big queue for the "Non US-citizens" queue. The immigration check was pretty smooth and I got my baggage (with a little difficulty) and checked the baggage into my next flight - a domestic to Dayton.

It you thought all was hunky dory so far, you'd be wrong. For, Chicago was the starting point of all fun!
I had to make my way to gate C17. En route, I lost ten minutes in physical security as 'something' was setting off the metal detector. It was my belt!! After the security check, I had about 15 mins to board the flight, but quite a distance to cover by foot.

22 Feb 19:00 EST
The Chicago airport is built for the busy. There is a 'flat escalator' which will move you forward (instead of up). If you WALK on it, you will go much faster. After two such 'flat elevator' walks and some looking around at signs, I arrived at gate C-17. A black officer welcomed me and told me I just missed my flight. He told me to go to gate F12 and check for the next flight.

22 Feb 19:15 EST
I went to gate F12 and the airlines people told me I have a confirmed ticket on the next flight. Well, thats awesome. Just a two hour delay. I'd be flying at 21:02 EST!! Things were looking good. I called my manager (with a friendly samaritan's cell phone) and informed there'd be a two hour delay.

22 Feb 20:00 EST
I went around looking for phones that worked for long distance calls. My search was in vain. None of the phones were useful for calling long distance (other US states). Finally I went back to my gate and was shocked to see the display board. It said "21:02 to Dayton - Cancelled".

Ok. Now I was in trouble. I was told to go to gate F2 and speak to Customer service. They told me the next flight was either in 25 mins to a close-by town OR at 23 Feb 7:35 am EST!

Now that my baggage had gone to Dayton in my 'missed' flight, I didnt want to go to any other city. So I told them I'd take the 7:35 flight next morning. That meant a whole night long wait in Chicago airport. I teamed up with a group of Americans who were also stranded because of the cancelled flight. We introduced to each other and they were glad to help me out in my 'first visit'.

22 Feb 22:00 EST
We went to a nearby hotel named Candlewood suites. The room rent was 49$ and that was manageable for me, even with cash. I ultimately payed with my traveller's cheque. We planned to leave in the 11:35 flight next morning, but I was concerned about my baggage that would have already reached its destination!

The hotel room was very good. It has a very comfy bed, a tv, a mini kitchen and a good bathroom. I ordered a pizza and they delivered it in 30 mins. In the interim, I used the hotel phone to call up others whom I wanted to inform. After having pizza and watching a bit of tv (Who wants to be a millionaire), I was feeling pretty sleepy.

23 Feb 05:00 EST
After sleeping for a decent amount of time, I woke up at 5 am. Called up one of my American friends and told them Im trying for the 7:35 flight. After checking out, I was at the airport in no time. After roaming around for a while, got a fruit salad and a copy of USA today and was skimming through it. At 06:45 hrs, my name appeared on the waiting list for the 7:35 flight, I was able to get a seat on the 7:35.

23 Feb 07:35 EST
Made it out of Chicago at last! After a short 35 min flight, we landed in Dayton. My ultimate destination. In comparison to the bustling Chicago airport, this one was quiet and small.
I immediately rushed to the baggage area and managed to find one of my big babbages. The second big baggage was missing! Lodged a complaint with the airport folks and left the airport. The weather was indeed very cold here. The wind made it worse. Since there was no one to pick me up, I spotted a taxi stand and made my way there. Got into a taxi and finally made it to apartment.

My ex-colleague here was kind enough to mark and label all things related to cooking and a colleage here helped me get into the apartment and settle down.

23 Feb xx:xx EST
After a while, I thought of unpacking the one baggage that I managed to find. To my utter shock, the last (maybe the mightiest) comedy was in store. We didnt know how to set a pass code for the luggage. So we just used keys to lock it. Well, just so happens that someone else (during the course of the journey) had kindly (and quietly) locked my baggage with a 3 digit code that I didnt know!!

This was indeed a hilarious situation. Out of my two big baggages, one was lost (and allegedly ON THE WAY) and the other was locked. I just had to try out (a possible) 999 combinations before I manage to unlock it!!!
I waited for a while, had some food and started with the himalayan task of cracking a 3 digit code. Out of sheer luck, the suitcase opened at the fourth code - 003!!!!

And in the evening, my other baggage too arrived safely.

I sure had a long, adventurous and fun flight!

Labels: , , , , , , , , , , ,

Wednesday, December 31, 2008

2008 - Looking back - II

Events/Experiences
. The year began with a trip to the temple of our deity in Sholingar and later to one of greatest temples in India - Tirupathi. While Sholingar was a physically intense experience as always - you have to climb almost 2000 steps in all - , Tirupathi was a different experience. We experienced enormous crowds, took part in a kalyanotsavam, had a footboard ride with my dad to a nearby place and overall enjoyed the trip.
Sholingar




Tirupathi:


. IPL fever gripped the country in the month of February and I was also thrilled to see the IPL live, in person.

. Travel and friendship took a giant leap this year. I became free at work for a while and we conveniently arranged for a north India trip, in the pretext of attending our friend's marriage in Patna. The trip was amazing.. From long train journeys to exploring the attractions of Delhi to roaming the streets of Delhi on foot and shopping for goodies to traveling in the Delhi metro, Delhi showed us why it's the capital of India. In Agra, our first view of the Taj was breathtaking. One has to see it in person to realise why it is given adjectives like PURE, DIVINE, BEAUTIFUL and so on. The first sight of the Taj justified all those adjectives. The trip also bonded our friendship strongly and we realised that college friendship has certainly changed, after 3 years of corporate life. The trip also brought out the accountant it me :)

Raju's marriage and North India Trip


The north India trip wasn't the end of my travel. I also travelled to Hyderabad and good ol Bangalore on official purpose. It would have been nice if I had stayed a little longer in Hyd. Bangalore was......




. Bangalore was a pleasant experience. I made new friends and also caught up with my old friends working in Bangalore. Even watched back to back films in PVR. Most of all, I discovered a lost part of me and did things I also wanted to do - like the 8 queens and 21 card trick puzzles. I think the discovery was basically due to very little travel (relatively) and because of near-zero distractions. Towards the end of the year, that part of me went missing :(







. Diwali was the biggest festival of the year, as always. We had loads of fun, burst crackers (more of fancy stuff this year) like never before and caught up with old friends from college.



. The year also showed us that mother nature is above all. We had rain water coming into our house, we rescued two enormously cute kittens from the clutches of death and felt gifted to having rescued them. They gave us company during the zero-electricity days :)








. Work went well this year with good technological scope. Finally got a chance to put jquery to use at work in the JavaScript area, also worked on java as usual and towards the end learnt a couple of bpm tools - Intalio and Tibco. Also completed the evasive SCJP exam for java 5 and was glad to learn and appreciate the new features of java 5, though I believe I won't be using java 5 or higher anytime soon in my current line of work :p
. Looking forward to 09, the year holds a lot of promise at work. Personally, it is a watershed and a very important year.
Wishing you all a happy and prosperous new year 2009. Meow!

Labels: , , , , , , , , , , , , , , ,