Tuesday, June 21, 2011

Some more great Unix Lines!

for each in `ls | cut -f1 d '-'`; do mv $each /remoteFolder/; done


find E-GEOD-* \( ! -name dir -prune \)

Thursday, April 14, 2011

More useful Unix one line scripts

Goal: Take the 9th column of the document and count all of the lines that  have a semicolon.
cat document.txt | cut -f9 | egrep ';' | wc -l

Goal: count the number of columns in a text.
head -1 document.txt | awk '{print NF}'

Monday, April 11, 2011

Best Latex Editor On Ubuntu

I have been looking far and wide for the best Latex Editor on Ubuntu and little did I know, it was living right under my nose.

Gedit with the latex plugin is simply wonderful!

Monday, March 21, 2011

How to increase the volume on Ubuntu audio preview.

For some odd reason, the audio preview on my Ubuntu machine became inaudible. I thought that there was some missing library but I knew that it worked before and had only recently stopped working. 

I found the problem in my sound preferences.

When I hovered over a music track, the "Audio Preview" label showed up but the audio levels were near mute. Any attempt to adjust the volume with the mouse proved useless as the label would disappear once the mouse moved off the music track. 

The solution that I found was to use the keyboard. By opening the window first, and hovering over the music track, I could use the tab key to move to the slider and adjust the volume.

This solved an annoying problem and I hope it helps someone who has the same problem. 

Saturday, March 5, 2011

VIM

This feature in VIM is quite useful for viewing spreadsheet like documents.

vim document.csv
:set tabstop=60
:set nowrap


Saturday, November 6, 2010

Delete Empty Folders Recursively

I found a useful command yesterday that I intended on posting but only remembered now.

find . -type d -empty -delete

This little line works wonders when you have a lot of empty folders to delete.

Guayadeque - A linux compatible music player that I have fallen in love with

In this post I will talk about a new open source music player which I have fallen in love with. It's name, Guayadeque. Sadly I don't know how to pronounce it, nor do I know why it has such a peculiar name, but I know that this music player does what I want it to do and I highly recommended it.

Before I tell you about how great this music player is, I have to say a little thing about my music preferences and habits. First of all, I listen to a lot of Asian music including Japanese, Korean, and Chinese. For those of you who listen to this genre, I am almost positive that you have also encountered the same issue I have, that is, music filenames, and meta data are in unreadable and corrupt characters.

This problem is very annoying and itches my slight ocd for perfectly uniform and correct tags. I can't leave the track as is because I don't understand Japanese, Korean, or Chinese, and it becomes impossible for me to find it in my collection of songs. I found a great solution to this which I will post about in the future, but lets fast forward a bit and assume that I have perfectly tagged tracks.

Even if my songs are correctly tagged, a new problem arises: there are just no music players that can display and manage the correctly tagged music either! I have tried all the popular media players such as banshee, rhythmbox and amarok but all of them fail to display my tags correctly. 

This is when Guayadeque comes into play. As described from the sourceforge page:

Guayadeque is a music management program designed for all music enthusiasts. It is Full Featured Linux media player that can easily manage large collections and uses the Gstreamer media framework

This music player has a very simple and clean design, and as I eluded to before, it does a great job at displaying my music tags correctly. It does most everything a media player should do and has a host of other features such as a crossfader, last.fm audio scrobbler, and a very customizable interface (though a little buggy).


I can see that this player has lots of potential so go try it out! If you are using Ubuntu, installation is very easy. Just search for it in the Ubuntu Software Center to install it.