Friday, October 3, 2014

Extract Initials from Names using Python

>>> name = "Rizauddin Saian"
>>> ' '.join([n[0] + "." for n in name.split()])
'R. S.'

Friday, September 26, 2014

[nltk_data] Error loading all: HTTP Error 401: Authorization Required

If you get the following error, when downloading the corpus for NLTK,
[nltk_data] Error loading all: HTTP Error 401: Authorization Required
you need to update the current data server setting in "/usr/lib/python2.7/dist-packages/nltk/downloader.py" file on line 370 from
DEFAULT_URL = 'http://nltk.googlecode.com/svn/trunk/nltk_data/index.xml'
to
DEFAULT_URL = "http://nltk.github.com/nltk_data/"

Thursday, March 13, 2014

Ubuntu: How to enable spellchecker in LyX


  1. Open the Terminal and install Enchant.
    sudo apt-get install enchant
  2. Open LyX and select Tools > Preferences > Language Settings > Spellchecker
  3. Select Enchant for Spellchecker Engine.
  4. Click on Apply, Save and finally Close.

Monday, February 24, 2014

Disable Blogger Navbar

Follow this steps to disable the Blogger Navbar:
  1. Click on Layout link.
  2. Look for the Navbar text and click on the Edit link.
  3. When the pop-up window appears, scroll down and select Off, then click on Save button.
  4. Finally, click on Save arrangement button.