OpenSource

Weekend picks #017

Linux is definitely Getting Things Done

[1]

Getting things done fast
In theory there is nothing wrong about Getting Things Done. The only problem is that sometime the theory of GTD is just a theory and the work you have is time consuming regardless David Allen. I recently had a large number (around 500) of txt files with some URLs in them. I wanted to collect all the URLs in an Excel file. I also wanted to sort them out alphabetically and delete the duplicates. I can’t imagine how much time would take someone to open manually 500 files and copy paste the 5.000 more or less URLs in Excel. I did in less than 5 minutes. In fact the copy paste, the sorting and the removing of the duplicate URLs just took a little more than 2 or 3 seconds. The rest was just me trying to remember and searching the net for the correct syntax of two or three Linux Bash commands.

grep
grep is a Linux program for searching lines inside a text or text files.You can use it to collect lines from a txt file that match a particular pattern. All I had to do is to collect all the lines from the files that started with “http://*” (yes you can use wildcard in grep).
uniq
If you have a sorted file you can use uniq to remove the duplicate lines.
The whole script was just 5 lines. I had to use a “for” command to open the files one after the other and collect the particular lines.

[2]

Cygwin
I recently installed Kubuntu 7.10 so I did all the testing there but I could also have used my Vista installation if I had installed Cygwin
Cygwin is a Linux Like environment for Windows which gives you access to huge number of Linux tools like the ones I used. You can use it to run other Linux programs and scripts within Windows. It’s really something to open up Command Prompt and instead of “dir” to type “ls” to see the files in a directory. The current version of Cygwin runs in all versions of Windows (32 and 64bit) except Windows CE. I tested in Windows Vista Ultimate 64 bit and it worked without a problem.

[3]

Exploring Flickr
I really love flickr.com. You can find my photos here. Today I came across a new web application with the name flexplore
How does it work? Well flexplore analyzes your favorites and the photos of your contacts and suggests Flickr photos that you might like. Give it a try, it really works!

Until next time... Keep on talking to your friends.