And Finally, A Social Search Engine

28 July, 2008

Ever wished for a search engine with a human element– with user comments and votes on each search result? How would you like it if it throws up top results from Google, Yahoo! and MSN? And how about making some money as you search the web? And some more when you vote and comment on a search result!! Well, Scour grants all your wishes. Wonder why it didn’t occur to folks at Google!!

The Social Search Engine

The Social Search Engine

Well, it’s time to go Scour!

How to Screen Your Programs on the Terminal?

30 June, 2008

The GNU screen is a terminal multiplexor. It enables users to run a collection of multiple, independent shells within the terminal (no parent-child relationships, so each shell can run its own programs independently without “waiting” for its children to die). screen can be detached from its terminal, and later reattached to any other terminal, without losing any running programs. Here’s a short tutorial:

$screen          launches shell #0 in the terminal.

Let’s run an application here to mark this shell, say irssi.

^a c          launches shell #1 in the terminal.

In this shell let’s run the w3m browser: w3m google.com

^a c          launches shell #2 in the terminal.

Here, I run a ping: ping yahoo.com

^a c         launches shell #3 in the terminal.

Here we ‘ll do a simple file listing: ls -l

Another ^a c will launch shell #4, yet another will launch shell #5 and so on.

Now we can cycle through the open shells with ^a [SPACE], or go to a numbered shell with ^a num.

We can also give names to shells:

First go to shell #0: ^a 0.

Now give it a name: ^a A       Type chat when it asks for a name.

Similarly assign names to shells 1, 2 and 3, say browser, ping and listing respectively.

Now do ^a “ to see a list of open shells, and move up and down between them with k and j respectively.

You can even detach the entire screen (with all its shells) from the terminal. Just do ^a d. Now type exit and logout of the terminal. The terminal is gone, but the programs are still running inside screen. Fire another terminal and type screen -r to reattach the screen with all its shells and programs intact. Shells inside a screen are terminated by the regular command exit.

Lear more about screen from these pages:

GNU Screen: an introduction and beginner’s tutorial

screen – The Terminal Multiplexer

A Visual Introduction to Screen

A Beautiful Desktop from GNOME

29 June, 2008

Beautiful Green Desktop From GNOME

And yet I say unto you, That even Solomon in all his glory was not arrayed like one of these.

Serve Files on Your Blog with Box.net Widget

29 June, 2008

Box.net widget enables bloggers to share files on their WordPress or Blogger blogs. You can upload/remove/rename/move files and folders right from the widget button, or even change the widget’s name ( mine is called “Downloads”). Visitors can download files and subscribe to RSS feed to receive updates about latest uploads. Files can be sorted by their name, type and date of upload.

The setup is fairly intuitive:

  1. Sign up for a box.net account.
  2. Get widget code by uploading a file. Choose “Advanced” for the widget’s “Type” attribute if you want to configure the it beyond colors and dimensions.
  3. Login to your WordPress blog and go to Design -> Widgets. Add the widget named “Box.net file sharing“. Choose a different theme from Design -> Themes if your current theme is not compatible with the widget.
  4. Click Save Changes first, and then click Edit, on the newly added widget box.
  5. Now copy and paste the widget-code over the existing code-snippet. Set proper size (width: 190 and height: 260, for a normal sidebar) for your widget before saving changes again.
  6. Now visit your blog and configure the widget to your liking.
  7. The code can be embedded into any blog, not just Blogger and WordPress. Box.net provides a one click mechanism to embed the code into Blogger and WordPress.

Happy file sharing.

Index Your Disks

29 June, 2008

The find utility can be used to create a searchable index of floppies, CDs and DVDs. Let’s say a CD by the name disk2 is mounted at /media/cdrom, then:

cd    /media/cdrom    &&    find    -type    f    >    disk2

will create a text file disk2 listing all the normal files in the CD one per line. We repeat this with all the disks in the cabinet, say disk3, disk4, disk5… diskXYZ. Now we ‘ll create .disks directory in our home and move the disk files into it:

mkdir    ~/.disks    &&    mv    disk*    ~/.disks

Henceforth we can use grep to search through .disks for filenames:

cd    ~/.disks    &&    grep    -i    abiword\*.deb    *

This will list the name of each disk (like disk25) containing abiwordxyz.deb, and full path to the respective file. Now it’s as simple as popping disk25 into the drive and doing a

sudo    dpkg    -i    /full/path/to/abiwordxyz.deb

to install abiword.

Note: Don’t forget to label the disks with a marker.