Skip to main content

Posts

Showing posts from July, 2012

Configure opendns in ubuntu 12.04

Today i have changed my dns server name to opendns. which is alternative to default dns and it provide more secure, faster browsing experience. What is opendns? OpenDNS is the leading provider of Internet security and DNS services Industry leading malware and botnet protection Award winning Web filtering Faster, reliable, more secure DNS Ultra-reliable, globally distributed cloud network Simple, Smart, Easy How to configure opendns in ubuntu 12.04: open terminal and type sudo nano /etc/resolv.conf enter your password and change these lines   nameserver 208.67.222.222  nameserver 208.67.220.220 to use google public dns use 8.8.8.8, 8.8.4.4 instead of 208.67.222.222, 208.67.220.220 simple isn't..! now see your facebook load faster than before. opendns comes with parental control, so never worry about unwanted websites, and your childrens are safe now. to check your dns changed successfully goto welcome.opendns.com

My first Python script

Today i have wrote a python script to fetch the results of all the students of my class and generate a html file to view the results. I have already posted a ruby script which is do the same thing. but that was not written by me. It was done by Mr. rajkumar. He uses ruby to do that. I have recently tried to implement my python knowledge so i have write a script to do the same thing. I assume that you already know how to run this script   #author: manimaran g #use: script to fetch all the results and give a html file #!/usr/bin/python import urllib url = "http://www.schools9.com/university-of-madras-exam-results0707.aspx?htno=" #this list will store the exam numbers ex_no=[] for num in range(495,505): ex_no.append('s900'+str(num)) #urlname list used to store the url+exam_number urlname=[] for i in range(len(ex_no)): urlname.append(url+ex_no[i]) for url in urlname: #reading each url in the urlname and read it and store in text text=urllib.url

useful python links

http://www.tutorialspoint.com/python/index.htm http://www.cs.usfca.edu/~afedosov/qttut/ http://www.python-course.eu/python3_course.php http://docs.python.org/release/3.0.1/tutorial/ http://docs.python-guide.org/en/latest/index.html http://www.learnpython.org/ http://www.codecademy.com/#!/exercises/0 http://learnpythonthehardway.org/book/ http://www.dreamincode.net/forums/forum/133-python-tutorials/ http://code.google.com/edu/languages/google-python-class/introduction.html http://www.py4inf.com/    ( Python for Informatics) http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-00-introduction-to-computer-science-and-programming-fall-2008/video-lectures/    <--- uses python 2.x  (video class lectures) http://www.youtube.com/user/themonkeylords?feature=results_main    (python video tutorials - haven't watched any, so don't know how good they are) http://thenewboston.org/list.php?cat=36 http://www.lynda.