###STEP0: Ubuntu Ubuntu 12.04 LTS
###STEP1: Install postgresSQL 9.1
apt-get install postgresql-9.1
###STEP0: Ubuntu Ubuntu 12.04 LTS
###STEP1: Install postgresSQL 9.1
apt-get install postgresql-9.1
Glances is a cross-platform curses-based monitoring tool written in Python.
#install
$ pip install Glances
#usage
$ glances
Email the Speaker of the Lok Sabha, Smt. Meira Kumar. She has the power to refer this Bill to a standing committee and ensure that the public is consulted. Below is a sample email you can send her ([email protected]) with a copy to the Prime Minister ([email protected]).
Dear Madam,
I am writing this email to express my anguish over the proposed amendment to the RTI Act. The RTI Act has been a powerful tool for fighting corruption and I feel it is undemocratic to amend it without hearing the concerns of citizens. I therefore request you to refer this bill to a Standing Committee and thus enable more public discussion on this issue.
Thank you.
#i know pylab is a overkill but it makes it easy to display. | |
#If its already installed then why not? | |
from pylab import * | |
import qrcode | |
img = qrcode.make('Some data here') | |
imshow(img) | |
show() |
<?xml version="1.0" encoding="UTF-8"?> | |
<opml version="1.0"> | |
<head> | |
<title>Thejesh subscriptions in feedly Cloud</title> | |
</head> | |
<body> | |
<outline text="Laws" title="Laws"> | |
<outline type="rss" text="SPICY IP" title="SPICY IP" xmlUrl="http://spicyipindia.blogspot.com/feeds/posts/default" htmlUrl="http://spicyipindia.blogspot.com/"/> | |
<outline type="rss" text="Live Law" title="Live Law" xmlUrl="http://www.livelaw.in/feed/" htmlUrl="http://www.livelaw.in"/> |
Python 2.7.3 (default, Jul 5 2013, 08:39:51) | |
[GCC 4.6.3] on linux2 | |
Type "copyright", "credits" or "license()" for more information. | |
DreamPie 1.1.1 | |
>>> print u'\u0958' == u'\u0915\u093c' | |
False | |
>>> print 'क़' == 'क़' | |
False | |
>>> import unicodedata | |
>>> print unicodedata.normalize('NFC' ,u'\u0958') == unicodedata.normalize('NFC', u'\u0915\u093c') |
from datetime import datetime | |
from datetime import timedelta | |
diff_time_from_gmt = timedelta(minutes=330) | |
incoming = [] | |
with open('/home/thej/Desktop/my_incoming_calls.csv', 'rb') as csvfile: | |
spamreader = csv.reader(csvfile, delimiter='\t', quotechar='|') | |
for row in spamreader: | |
incoming.append( ( datetime.strptime(row[4], '%Y-%m-%d %H:%M:%S')+ diff_time_from_gmt )) |