I like setting up shortcuts to frequently used commands whether I used Windows or Linux. I use the terminal often and create shortcuts to frequently used commands using “alias” feature of BASH. This has saved me considerable time in the past. However, I recently felt that if I could have a helper tool to monitor [...]
Categories: linux,programming,python,text processing,Uncategorized,veveo
Tagged: bash, linux, productivity, python, script
- Published:
- August 28, 2009 – 8:05 am
- Author:
- By prashanthellina
I refer Wikipedia frequently. I use this BASH function to help me do that from the terminal. For explanation of how this works head over here. BASH function # wiki # eg: wiki India # wiki Apple_Inc # wiki Anglo_Saxon wiki() { dig +short txt $1.wp.dg.cx } Example usage prashanth@prashanth-desktop:~$ wiki India “India, officially the [...]
Categories: linux,web,wikipedia
Tagged: bash, code, function, productivity, terminal, wikipedia
- Published:
- August 23, 2009 – 10:52 am
- Author:
- By prashanthellina
I bought two Dane-Elec 8GB USB drives recently. Flash memory (as opposed to Hard disk storage) has faster “seek” capability. This is inherent in the design as flash memory is solid state whereas hard disks are electro-mechanical with a “head” that needs to be moved around using a “drive” mechanism. Since seek times are better [...]
Categories: computer hardware,linux
- Published:
- August 7, 2009 – 5:27 pm
- Author:
- By prashanthellina
I have been a happy Gnome user for many years now and only recently started thinking about switching to KDE 4.2 when Ubuntu 9.04 (Jaunty Jackalope) comes out. However, it so happened that I bought two new widescreen monitors and setup a dual-monitor environment. This is when I started realizing the Gnome was clumsy at [...]
Categories: gnome,linux
Tagged: gnome, gui, linux, tiling window manager, ubuntu, xmonad
- Published:
- April 26, 2009 – 9:34 pm
- Author:
- By prashanthellina
What, why I’ve been reading up on TDD and it has struck me as particularly useful methodology to achieve “clean code that works”. TDD encourages writing unit tests to cover all the code (because by definition, you write a test before a line of code is written). Because all your code is covered you are [...]
Categories: linux,programming,python
Tagged: linux, nose, programming, python, tdd, testing, tools
- Published:
- May 22, 2008 – 8:20 pm
- Author:
- By prashanthellina
In my earlier post, I’d posted links to the Project Gutenberg Ngram data I had computed for e-books of all languages. If you are interested in only the English data, get these files instead. These two files are splits of a compressed file which contains all of the Project Gutenberg English e-books downloaded about a [...]
Categories: data mining,linux,text processing
Tagged: data mining, ngram, project gutenberg, text processing
- Published:
- May 13, 2008 – 9:54 pm
- Author:
- By prashanthellina
I’ve been working on Wordza.com for which I needed Ngram data from a sufficiently large corpus. Initially, I thought of using Wikipedia data which I already have on my disk, but decided on using Project Gutenberg data as it is more representative of the general usage of English language.
Categories: data mining,linux,programming,python,text processing
Tagged: gutenberg, ngrams, project gutenberg, python, text parsing
- Published:
- May 4, 2008 – 9:58 pm
- Author:
- By prashanthellina
I have come across more than one instance when I had to select a random record from a table in a MySQL database. Here is how to do it.
Categories: linux,programming,python
Tagged: database, mysql, query, random record, tip
- Published:
- April 8, 2008 – 9:30 pm
- Author:
- By prashanthellina
The MPEG4 video encoding process makes use of block motion compensation to achieve compression. The motion compensation process serves to produce the intra frames which are the frames between keyframes. I’ve always been fascinated by this process and was delighted to find out that my favorite video player, mplayer, allows one to visualize this process. [...]
Categories: linux,ubuntu,video
Tagged: linux, motion compensation, mpeg4, mplayer, video, video compression, visualization
- Published:
- March 30, 2008 – 12:17 am
- Author:
- By prashanthellina
Generating thumbnails/screenshots of a video is useful in many ways. Youtube and many other video sites use this to show a preview of the video as a small thumbnail. Google video captures a series of thumbnails from a video at various time intervals to show a better video preview.
Categories: linux,ubuntu,video
Tagged: ffmpeg, linux, thumbnail, video
- Published:
- March 29, 2008 – 12:28 am
- Author:
- By prashanthellina
A couple of weeks back, I went shopping looking for a TV tuner card that is compatible with Linux. Googling had told me that “Hauppauge” card was known to be compatible. However, I could not find it anywhere in the market (SP Road, Bangalore, India). On going to one of the shops, I found a [...]
Categories: gutsy gibbon,linux,video
Tagged: home theatre pc, HTPC, linux, mencoder, pinnacle pctv 50i, television, tv tuner card, tvtime
- Published:
- March 23, 2008 – 6:37 pm
- Author:
- By prashanthellina
I love Gnome and its simplicity and use it regularly. I loathe KDE and its complexity. Although I used KDE about 5 years back, ever since Ubuntu was released, I’ve been using Gnome. However, when KDE4 was announced, I decided to check it out with an open-mind and re-evaluate.
Categories: linux
Tagged: gnome, kde, linux, window manager
- Published:
- January 13, 2008 – 5:19 am
- Author:
- By prashanthellina
I have been playing around with Wikipedia data and tried doing some byte pushing on my Dreamhost web space. Since this is shared web space, the processing power and memory available are limited. I was able to create database tables in mysql by parsing the wiki xml dump and some extra processing as well to [...]
Categories: computer hardware,linux
Tagged: benchmark, computer hardware, core duo, linux, motherboard, ram, server
- Published:
- November 27, 2007 – 10:34 pm
- Author:
- By prashanthellina
It has been three weeks since I upgraded to Gutsy from the development repositories. Gutsy got released just a little more than a day back. While going through the news from the blogosphere about this event, I wished Ubuntu had released a “non-brown” desktop. I don’t like brown and have seen quite a few others [...]
Categories: linux
Tagged: awn, compiz, gnome, gutsy gibbon, linux, ubuntu
- Published:
- October 21, 2007 – 12:22 am
- Author:
- By prashanthellina
I’ve been using Ubuntu Feisty and waiting to get Gutsy when the release comes out. However my curiosity got the better of me and I could not resist upgrading from the beta repositories. The first thing I noticed after upgrade was the amount of polish and attention to detail. Everything looks slick (thanks to Compiz). [...]
Categories: linux
Tagged: gutsy gibbon, linux, ubuntu
- Published:
- October 6, 2007 – 10:00 pm
- Author:
- By prashanthellina
This is related to the previous post and is meant in part to demonstrate how great Linux is for doing “weird” stuff . This is what we are trying to do. The circles in the background have been drawn by the python script below. To get the script running you should have python and pygame [...]
Categories: linux,python
Tagged: desktop, gnome, graphics, linux, programming, python
- Published:
- August 24, 2007 – 8:13 am
- Author:
- By prashanthellina
What you see above is how my desktop looks now. You need to be using gnome to get this working. Nautilus draws the desktop (including the icons) for you in gnome by default. We have to tell it to stop doing that, so we can do the matrix animation in its place. Nautilus can be [...]
Categories: linux,programming
Tagged: desktop, gnome, linux, programming, python
- Published:
- August 22, 2007 – 9:50 pm
- Author:
- By prashanthellina