How To Get Telugu Books If You Are Out Of Andhra!

If you are a (Telugu) bookworm, and you are living out of Andhra, then getting Telugu books is a huge problem. Thankfully a lot of online stores are coming forward to solve this problem. Let's look at a few sites where we can get Telugu print & e-books.

1. Digital Library of India1: [Free]

Government of India is spending a crazy amounts of money to digitize public domain books. This is the best place to get telugu ebooks for free of cost. Currently there are 23,370 books in Telugu. Eventhough you won't new books there, you can find a lot of great classics.

2. Kinige2:

This is the most popular site(Alexa Traffic Rank: 118,798) for buying Telugu books online. They supply both print books & e-books. The good thing about Kinige is they rent the for a period of 30 days at a reduced price. Most books are available here and is a good place to get started.

3. Logili3:

One more popular (Alexa Traffic Rank: 138,459) website to buy books online. It's also has great collection. However they sell only print books but no e-books. At times when there are no print books on Kinige, this is a great alternative.

4. Flipkart4:

Most of you heard of Flipkart. You can't get all telugu books here but a few. If you are a regular shopper at flipkart, you might get available books at discount price.

5. Amazon5:

It is struggling & competing with other online stores in India. Here also you can find a reasonable number of telugu books are great discounts.

You can also buy telugu books at Supatha, BooksForYou, InfiBeam, EveningHour.

In addition to these sites, authors or publication houses might be running their own sites ( for example Yandamoori sells his books from his site also ), you can buy from them also.

Update:
AVKF:
Recently I came across AVKF. It also has a great collection of telugu books.

How To Fix Washedout Colors In VLC Media Player?

Have you ever played a video on VLC or any other media player and seen this type of washed out colors or distorted video like these??




To get rid of this problem, just open preferences from the Tools menu. Uncheck "Accelerated video output" from the video settings.



 If you are using and old version of VLC, you might have an option to "Skip frames", you can select that option. Save your preferences and restart the VLC player. Now you can enjoy your videos. If the problem still persists make sure you have installed all your video drivers.



Django Meetup In Bangalore

"Krace played a key role in bringing back the almost dead Bangalore Python Users Group into action."
- Shreyansh Singhal on YourStory.



Few weeks back, while I was searching for Python I came across Krace's blog. Then I checked his Github, Stackoverflow, Quora profiles and I was amazed.

Last week when I found there was a Django users workshop by him & his friends, without a second thought I decided to go.

Since the organizers marked the location (ThoughtWorks Technologies) on Google Maps, its quite easy to reach there w/o any trouble.

Workshop took place from 10 A.M. to 5 P.M. The goal was to build a simple phone book app to add/view/edit contacts with Django & SQLite.

Before starting of workshop, organizers helped with installation of requirements(Django & South).

Krace showed the agenda. At each & every step, he first explained what he is going to do. Then he would do it and gives us time to complete the task. All organizers patiently helped in troubleshooting the errors at each and every step. In the end we had little Q & A session.

Overall it was a great hands on experience with great content & crew! Looking forward for more meetups!! Thank You very much!!!

If you are form Bangalore & love Python, don't miss Django & BangPypers meetup.


P.S: A snap of workshop.. 




A Weather Widget For Your Terminal!

Getting weather info right on the terminal..?? Sounds cool.. Isn't it? With Python, it's even easier to make one! Lets get started.

First we need to determine the location of the user. So let's find out ip address. There are a lot of sites which gives the ip address but this site is the simplest & very easy to get.

Once we have the ip address, we can use it to determine the location and then use any weather api to get the info. However Worldweatheronline api gives weather info directly based on the api, which makes it easier to fetch data.

We can get the data in JSON format and by parsing it we can make the weather widget.

I wrote a simple script for that and here is the sample output of the script.

 

The Mysterious Wall - Best Zen Story By Osho!

Osho is a great story teller. Whether he is writing a book, preaching his students, giving speeches, he tells interesting short stories. I have read a lot of them from his books. This is one of my favorite stories.

Osho I used present tense above because Osho believes that he is 'Never Born, Never Died. Only Visited this Planet Earth.'

The Mysterious Wall!


There was an ancient mysterious wall which stood at the edge of a village, and whenever anyone climbed the wall to look onto the other side, instead of coming back he or she smiled and would jump to the other side, never to return. 

The inhabitants of the village became curious as to what could draw these people to the other side of the wall. After all, their village had all the necessities of living a comfortable life.They made an arrangement to where they would tie a person's feet, so that when he or she looked over and wished to jump, they could be pulled back.

The next time someone tried to climb the wall to see what was on the other side, they chained her feet so that she could not go over. She looked on the other side and was delighted at what she saw, and smiled.Those standing below grew curious to question her and pulled her back, but to their great disappointment she had lost the power of speech.


"Those who have Seen cannot say. That which has been Seen cannot be painted, cannot bereduced to words. But still each one has to give a try - and the world goes on becoming more and more beautiful because of these efforts."

A Simple Way To Split & Merge Multipage PDF Files With PDF Toolkit!

Sometimes we come across a situation where we need to scissor or stitch the pdf document. There are several tools to do this job. The simplest and easiest way is to use PDF Toolkit.

This tutorial is for Geeks. If you are not one, go get GUI App for windows  or if you just want to split one single file, use online tools like Split PDF.

I am going to split and stitch several pdf documents using pdftk & Ubuntu 12.04.

Lets first install it
sudo apt-get install pdftk
Now you are armed with tool kit, lets have some fun with it.

Splitting PDF:

Lets say you want to split the entire pdf into single pages, you can do that by
pdftk myFile.pdf burst
If you want you can split only a specific page by using
pdftk myFile.pdf cat 21 output page_21.pdf
You can also split specific set of pages by using
pdftk myFile.pdf cat  21-end output 21_to_last.pdf

Merging PDF:

Now we have scissored a lot of pages. Lets go ahead and stitch a few of them.
Lets stitch the pdf's we have created in the previous steps.
pdftk page_21.pdf 21_to_end.pdf cat output stitched.pdf
This will stitch the two pdf's we created above.

If you have a huge list of single age pdf's in a folder and if you want to stitch them together, change the current working directory to the required directory and use this
pdftk *.pdf cat output newFile.pdf
This will stitch all the pdf in the current directory to a single pdf.

These are few simple things to do with pdftk, if you want to dig deep into this visit pdftk and explore it.

How To Use Python & Beautiful Soup To Scrap Web Pages On Ubuntu

In this tutorial, You will learn to install Beautiful Soup and parse any web page you like.

Python & Beautiful Soup Installation On Ubuntu 12.04:


1. Open your terminal ( Alt + Ctrl + T ). Install Python & Soup by using these commands.

sudo add-apt-repository ppa:fkrull/deadsnakes

sudo apt-get update

sudo apt-get install python2.7

sudo apt-get install python-bs4


Scraping A Web Page:

Lets start our programm by importing Beautiful soup. Since we are going to open a web page, we need urllib2 ( This is for Python 2, For Python 3 see urllib.request ). So import that library also. Select any url to parse. I have selected the home page of this blog and opened that page with urlopen(). Pass the web page contents of 'page' variable to beautiful soup. Lets print all the links which are present in this page.
So, the final code is

from bs4 import BeautifulSoup
import urllib2

url = "https://www.goodreads.com/quotes/tag/love"
page = urllib2.urlopen(url)
soup = BeautifulSoup(page.read())

for anchor in soup.find_all('a'):
print(anchor.get('href', '/'))


Go ahead and run this file. I have name the file as scrap_web_page.py

python scrap_web_page.py


It will produce all the links in the terminal itself. I have added a screenshot of the output I have received.



anchor.get() is just one method to get all links, you can grab any element or class or name or anything from the page. For complete details, read the documentation of Beautiful Soup.

Custom Key Maps For Vimium To Speed Up Browsing

For keyboard ninjas, Vimium is a boon! Vimium made browsing with keyboard a cat walk and ditch the mouse completely! This post is specifically written for those who are good at Vim and installed Vimium on Chrome or Firefox!

Vimium is THE BEST Chrome extension for Keyboard navigation! Since it was inspired by Vim, most of the shortcuts resemble that of vim. In Vim, we can set custom maps, if we are not comfortable with a particular command. The same goes for Vimium also!

By having some custom mapping, we can make surfing the web much easier and productive! Lets look at some custom maps which will come handy in everyday browsing.

0. Characters Used for Link Hints!

By default some characters are set for link hints. But I am more comfortable with the following keys
"sdfercvjkluim". So I set the characters to "fjdkslrueiwvm". But You can choose the key which you are comfortable with and use them. So when you press "f" or "F", characters used to suggest links will be the ones which you are comfortable to type!

1. Navigating Your History!

I navigate back and forth a lot. To back in history, I need to press "H" ( which means SHIFT + h ). So I mapped this 'h'. Actually by default h is mapped to scroll left, which I never use at all. So, to go back 3 pages in history, U just press "3h". The same applies for "L" also.

2. Navigating to New pages

By default "o" is mapped to open URL ( or bookmarks or history ) in current tab and "O" to open them in new tab. Most of the time, I need to open URL in new tabs only so I swapped the above options. The same goes for "b" ( for bookmarks ) also.

You can get a list of all shortcuts  at Vimium Github page or if You have installed Vimium, You can just press "?" You can set these custom maps in advanced settings of Vimium 

Custom Key Mappings


map h goBack
map l goForward
map o Vomnibar.activateInNewTab
map O Vomnibar.activate
map b Vomnibar.activateBookmarksInNewTab
map B Vomnibar.activateBookmarks

Characters used for Link hints:

fjdkslrueiwvm
With these custom key maps, browsing becomes much productive.

Access Clipboard From Linux Terminal

If You are going back and forth between terminal and any other application, accessing system clipboard contents from command line will be invaluable.

If You are using mac, there are inbuilt commands pbcopy & pbpaste. But in Ubuntu these are not available. You need to install a small utility called xclip. Go ahead and install it.

sudo apt-get install xclip

Now, You can copy any text ( or the output one command ) into the clipboard using xclip. To copy contents of fruits.txt to clipboard,

cat fruits.txt | xclip

If You want to see the contents of clipboard, You can use

xclip -o

This copy and paste will work only in the terminal, If You switch to another application and try to paste there, it wont work.

If You want to paste in another application, You need to copy like this

cat fruits.txt | xclip -selection clipboard

Now, You can switch to any other application & You can paste (CTRL + V) the contents.

Tip:

Instead of typing all of this everytime, You can setup alias in .bashrc file

alias c='xclip -selection clipboard'
alias v='xclip -o'



Now You can easily copy the contents like this

cat fruits.txt | c


I found this a lot helpful while switching between browser and terminal.