Sunday, June 23, 2013

vi - opening second file in split screen

Some we get in need of comparing two different files for over the section or lines.
To open the new file in the split window all u need to follow the below steps




to open  already existing file
vi file_name

now type
:new file_name

This will split the screen horizontally 

Tuesday, June 18, 2013

Split the screen in vi - horitzontally or vertically





Most of us have some time in need to compare the two files to compare same file on different line or section,

then you will find 'split' can be very handy.

 the simplest usage is to type 'split' command that will split the screen horizontally.
:split

Thursday, June 13, 2013

Nostalgia in the times of Instant GRatification!!!



This week in India was an memorable one. No no strikes, no scandals, no corruption this week but rather two very important announcements cam through which kind of made me nostalgic.

The first bit of news was that Telegram would be switched off in India from July 15. Am I sad...welll not exactly. i can't remember when was the last time when i sent or received a telegram but I do remember we had to write some as part of our English syllabus in class 10. Yes I remember the last telegram which our family received was from a cousin during the Latur earthquake to tell us that he's safe. And it was exorbitantly priced even for those times. But I guess in the age of SMS and IM it was a relic of old times

The second news was closing of Music World Stores. I still remember the first music world store at Ansal Plaza at Delhi. It was the best place to be. on a hot delhi day. I could listen to all the latest tracks across genres on the listening stations and the variety was mind boggling. My firts tryst with serious english music was at the music world.  But I never realised when youtube became the primary source of music for me and then camethe online music streaming services where I could create my own playlists and won't have to worry either about carrying CD's or illegally downloading music

SO RIP two icons from different era are no more

Monday, June 3, 2013

Interval tree and next generation sequencing


Recently I was working with some genome data on my leisure project. I had some huge number of coordinate of gene and various transcription element . The task was to fetch elements name  between the coordinate given by the required inputs range of the gene.

Though, the above problem challenge can be easily solved, using various approaches, but I wanted to have it best optimized way. Little R&D and small discussion with my programer cousin Najeeb,  I came across a data structure called "interval tree" .I decided to give a try and begin my exploration for this data structure.