Wednesday, July 20, 2016

That Night :1

The Puri express came to a screeching halt at Thaparam Station. The halt had been sanctioned recently by the Indian Railways, or else Uncle Srini
would have come by bus from Bheemavaram as usual. He got down at the station and looked at his watch. It was 11:45 pm. Soon the train left the station leaving him alone. The station was near empty except for a stray dog and a drunkard lying beside him, mumbling something in his sleep.

Srini pulled out the bottle of water from his bag and drank the left over. He then threw it on to the tracks. He had to walk at least 4 Kms to reach home.
Everyone would be asleep by the time he reached.  He hadn't had dinner and was feeling hungry now. He thought he would reach home by 10:00 PM,but due to a rail cross over, the train had stopped at Yekkarolu station was almost an hour.
Anyways the week's gruelling job of Salesman under the sun at Bheemavaram would be eased now.
'I will take my wife and kids to Anaparthy tomorrow, for a movie' he thought. 'Then we will go to Babai hotel and have dinner'.

He slowly started walking off the platform towards the railway gates following the railway tracks. The gates were closed, implying another train, probably goods on its way.He bent below the closed gate and went ahead.
He remembered his wife insisting him to chant Hanuman Chalisa, as there were an age old tale of the Railway Cabin Ghost, which he trashed away as some urban legend. He was anyways an athiest and never believed in all this.
As he approached the gate, he could see the Cabin labelled abandoned. He knew it was due to some technical fault, that they had to abandoned to Thaparam East Cabin and only the West was functional now, though the villagers assumed something else.
He took left , bending his back below the gate and made for the village road. He couldn't wait for the train the pass over.

He crossed the village lake which lay towards the right of the road. When would they make this mud road tarmac he thought. He could hear dogs barking distantly. God, these stray dogs, the only way to avoid them was to ignore them. He slowly tip toed his way , lest he disturb these creatures,till
the Seetharamaraju center which forked the road into two.The right leading to Post office "Sandu" and left towards to newly established Cloth Market Center.
The Seetharamaraju center was famous for its Panchayat TV in the 80s, villagers used to flock every night to watch Doordarshan programmes- he recalled. Now it was just a sign board.
Srini preffered to take the Cloth Market route as it was easier to get to the Tanker street where his family lived. He looked straight as he could feel a group
of dogs walking behind him. He kept walking till he reached the Cloth Center.  He took a right and kept walking closing his eyes partially, he felt he could kill
time by not looking at anything. He opened his eyes and could see the Water Tank. The barkings ceased as well. Thank god! He thought, though he was an athiest, finally escaped from Dogs.

He could see the Sodium street light flickering near the street bend, from where he could take a left and go to his house. There were series of houses adjacent to the street end.
The Arugus (kind of pavement in front of village homes) were usually filled with elderly people chitchatting during the evenings, but at this late hour they were eerily empty. As he approached the street end, suddenly his eyes fell on the Arugu. In the flickering golden light of the Sodium bulb, he could see here clearly. Yetulamma. She was lying on the Aurgu, with her head turned towards the road. What was she doing here in this dead of the night? He wondered.
Clad in a white saree, and overflown matted hair, she looked at him, sadness in her face, a face that seemed to be longing for someone. Her eyes were charcoal red.
'Anyways she is mentally retarded' he thought and walked ahead, still focussing on her. She followed him with her eyes, as he turned left following the path that left to his house.

He tried opening the gates but they were locked,

He knocked at the gate and shouted.. "This is me.. open the door!"

Slowly his elderly father came in a while, with keys in his hands. He opened the lock, 'Come' he said feebly, as Srini pushed the gates open. He could see his wife at the grill door way inside.

'How was the journey' his father asked him yawning. 'Yeah it was ok, but train was late by an hour..' he said, 'Will wash my feet and come'. He went near the Goluva (a traditional water storage, made of stone), and filled the floating pitcher with water and washed his face and legs.
***********


Thursday, July 14, 2016

How to check if Ubuntu is 64 bit or 32 bit

The below command can be used.

hadoop@ubuntu:~$ file /sbin/init
/sbin/init: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=0x96b0ea3f2c8a1377a872c6cdd2a0d56070b9387b, stripped
hadoop@ubuntu:~$

Wednesday, July 13, 2016

Creating nested directories in UNIX

hadoop@ubuntu:~$ mkdir dir1/dir2
mkdir: cannot create directory `dir1/dir2': No such file or directory

Oops. To achieve this, we need to user mkdir with the 'p' switch.

hadoop@ubuntu:~$ mkdir -p dir1/dir2
drwxrwxr-x  3 hadoop hadoop  4096 Jul 13 15:57 dir1
hadoop@ubuntu:~$ cd dir1
hadoop@ubuntu:~/dir1$ ls
dir2

Monday, July 11, 2016

How to find version of Ubuntu

We can find the version of Ubuntu only from the terminal unlike Windows where we can find from Control panel.

The below command is helpful

hadoop@ubuntu:~$ lsb_release -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 12.04 LTS
Release:    12.04
Codename:    precise
hadoop@ubuntu:~$

Sunday, July 10, 2016

Visit to Parvati Hill, Pune

Yesterday I visited Parvati hills, the second highest point in Pune. The hill raises about 640 meters (80 meters from base) from Sea level, and the whole of  Pune can be seen from top of it.

Getting there

The easiest way to get there is to catch a bus to Pune station. From there take bus to SwarGate. Keep walking straight till you reach the next junction and take left and keep walking. The hill would be visible to the right. Take right and keep walking and towards the left there would be a staircase that will take you up to a little bridge. Cross the bridge towards left and keep walking and you would reach the entrance of Parvati hill and steps leading the the top of the hill (there are 103 steps),

















Attractions:

This is indeed a break from the traffic and rush from this bustling city. Its ambience is quite and green and above all very clean. 

Apart from the temples, there is a museum as well, with ticket costing Rs 10.


Gallery:













Tuesday, June 28, 2016

Under the Cot

'Sssh.. ' said the maid to 8 year old Abhay. 'Sleep tight, or else Kosh will get angry.  He will crawl out from the cot's underneath and take you... '
Abhay looked at her with a reddened face. "I am scared". He said
"Then sleep"..  she commanded.
"Ok auntie.. " he mumbled and pulled his bed sheet over his face,  closing his eyes forcibly. 'Wish father and mother were at home' he thought tears rolling from his eyes.
Both his parents were out for a one week business trip and had left him under the maid's care.  'I don't like her'  he spoke to himself.  'She keeps telling about
Kosh under the cot and I get scared. '

The huge grandfather clock in the hall stuck 12:00 am. 
A heavy wind blew outside enough to shatter the window panes. The trees in the compound of the villa swayed as though they were in trance. The moon struggled out of the clouds casting shadows of the trees on the building.

Then there was lightning follows by a distant rumble. 
Abhay woke up with the thunder. The maid would be downstairs in her room..
He started shivering.
Then he heard the sound..  it started as a hiss and was resonating from the cot underneath...
Koshhhh...  koshhhhh...
He could see a small shadow emerging.. 

Wednesday, May 18, 2016

Matching every instance of a pattern in UNIX

For example I have a string "raghuraghuraghuhello" and I want to display the number of times 'raghu' has occurred in the string. 

We can use the below variant of grep

 echo raghuraghuraghuhello|grep -o raghu|wc -l



hadoop@ubuntu:~$ echo raghuraghuraghuhello|grep -o raghu
raghu
raghu
raghu
hadoop@ubuntu:~$ echo raghuraghuraghuhello|grep -o raghu|wc -l
3


Note: When in the first command it just printed out the instances of the pattern, hence we piped it to wc -l