Sunday, November 4, 2012

How to remove ctrl-M character from unix files using Vi editor


^M is DOS line break charater which shows up in unix files when uploaded from a windows file system in ascii format.

To remove this, open your file in vi editor and type

:%s/(ctrl-v)(ctrl-m)//g

and press Enter key.

Saturday, November 3, 2012

Hurricane Sandy

Sunday, Oct 28th early morning I received a call from a close friend of mine. He warned me about the destructive potential of hurricane Sandy and what it could mean for us. We don't live very far from water and I started thinking whether to act brave and stay at home or go to his home which is far away from water!

My wife was out of town attending a conference which added more pressure on me. After a few hours, I decided to go to the friend's home. Wind was blowing fast and it was not an easy drive, but we felt very safe and taken care after reaching their home. We felt blessed to have such friends who offered us help when we needed it. They lost power after some time, but they had a generator which made life much easier.

We could see the fury of the storm through the windows. Wind was blowing at a very high speed and chairs on the deck were trying to fly away even though they were tied by a rope.

The kids were playing inside and didn't seem to bother about what was going on outside.

Monday morning we drove back to our home in RI. We heard on the radio that Rhode Island was hit hard by hurricane Sandy. We were not sure what to expect when we reach home. Luckily, Sandy had spared our neighborhood! We heard Narragansett, South Kingstown and Westerly were hit hard by Sandy.
Our friends from South Kingstown came to our home in the evening to take a shower because they didn't have electricity.

Overall, people in RI were very lucky. When mother nature gets furious, there is nothing one can do.

We thanked God for keeping us safe and life goes on :)