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 ...
Here is a simple utility created using Python for translating text from various languages into English. It uses the Google AJAX API to do this.
Usage
prashanth@prashanth-desktop:~$ translate bonjour
hello
prashanth@prashanth-desktop:~$ translate guten morgen
Good morning
Code
#!/usr/bin/env python
'''
Translates text into english using Google Translate ...
As a part of a project I am working on, I had to cluster urls on a page. After some light googling I found, python-cluster. You can find below a simple python script to illustrate the usage of python-cluster library.
Code
import pprint
from difflib import SequenceMatcher
# http://python-cluster.sourceforge ...