Sarath's Web Log

The memories are written in INK,for just THINK…

Monthly Archives: August 2012

Barfi

Barfi! is an upcoming Indian romantic comedy film directed by Anurag Basu. The film stars Ranbir Kapoor, Priyanka Chopra and Ileana D’Cruz in lead roles. It is expected to be released on 14 September 2012. The title was earlier credited as Khamoshi and Silence, but it was later changed.

Synopsis

Set in the 1970’s in a pretty corner of India, Barfi! is the story of three young people who learn that love can neither be defined nor contained by society’s norms of normal and abnormal. Barfi, a hearing and speech impaired boy falls in love with Shruti. In spite of her deep affection for Barfii, Shruti gives into societal and parental pressure to marry a ‘normal’ man and lead a ‘normal’ life. Many years later their paths cross once again when Barfi, now in love with Jhilmil, is on the run from the police. Barfi is desperately seeking Jhilmil, who has gone missing. Shruti’s realization that Jhilmil is mentally-challenged makes her recognize that true love is really blind. Caught in a cat and mouse game, in the search for the girl Barfi loves, Shruti realizes that she is still in love with him. She must now choose between her happiness and his.

Casting

Ranbir Kapoor[2] reportedly plays the role of a deaf-mute person.[3] Priyanka Chopra will play the role of girl with autism. In addition, Tollywood actress Ileana D’Cruz will play the role of the narrator.[5] Basu confirmed that Katrina Kaif was the first choice for the role of the narrator, but she later opted out. The film began shooting on 11 March 2011.

Web scraping using python

today i’m telling about some basics of Web scraping using python. i use python 2.7. after a googling and exploring python docs i got some interesting results about this.
(Web scraping is a computer software technique of extracting information from websites.)

a simple way to scrap information from web, using built in python library urllib(urlib2).

import urllib2
response = urllib2.urlopen(''http://www.sarathink.wordpress.com'')
html = response.read()
print html

urllib2 is a Python module for fetching URLs (Uniform Resource Locators). It offers a very simple interface, in the form of the urlopen function. This is capable of fetching URLs using a variety of different protocols. It also offers a slightly more complex interface for handling common situations – like basic authentication, cookies, proxies and so on. These are provided by objects called handlers and openers

Now the real parts start,scrap the data using urls.For that I used BeautiFulSoup.Parsing data is very easy using it.

Before trying it,you have to install it, download the tarball.
Windows: setup.py install
Ubuntu:sudo apt-get install python-beautifulsoup

Parsing is as simple as below:

import urllib2
from BeautifulSoup import BeautifulSoup
url = "http://iamsarath.blogspot.com"
html = urllib2.urlopen(url).read()
data = BeautifulSoup(html)
print data

It will print whole parsed data of the url.And then you can navigate and collect yours need html tag values from the
soup 🙂 .

Rename the Windows XP start menu button

This post will show you how to rename the Windows XP start menu button
Are you bored of having the name “start”? If so now you can rename your start menu button to give the name of your choice.

STEP 1: BYPASSING WINDOWS FILE PROTECTION

1. Launch My Computer, click tools, folder options, then view

2. Select show all hidden files and folders option and uncheck the option hide protected operating system files, unckeck hide extention for known file types

3. Goto C:\windows\system32\restore, select the file filelist.xml, right click it go to properties and uncheck the option read-only

4. Open it (filelist.xml) with notepad

5. Add the line %systemroot%\explorer.exe as shown below

6. Save the file

7. Goto C:\windows\system32\dllcache, you will find a backup copy of explorer.exe. Rename it to explorer.bak.

STEP 2: CHANGING THE NAME OF START BUTTON

1. Using any resource editor, open the file explorer.exe located at C:\windows.

2. Expand string, expand 37, click on 1033

3. On right side rename “start” to anything you want. For ex. “yourname” and press “compile script”

4. Repeat the same procedure for string 38, 1033

5. Save changes in file menu (if error occurs close explorer.exe and repeat sub-step 3 and 4)

6. Restart your computer. After restart you can see the changes. Enjoy!

You can also edit the tool tip ‘Click her to begin’ by Expand string 37,click 1033,edit 533 String .(eg:Click myname to begin :P).
Note:before you click compile the script make sure to kill explorer.exe process.using TaskManager(Ctrl+Alt+Del).

Happy Independence Day

Happy Independence Day Friends. We now live in a country where doctors destroy health, lawyers destroy justice, universities destroy knowledge, governments destroy freedom, the press destroys information, religion destroys morals, and our banks destroy the economy. We live in a decaying hypocratic corrupt country .

#Happy Independence Day again.#Jai Hind

Shutdown computer fastly

i have a doubt why ppl use shutup for humanns beings and shutdown for computers, the purpose of both are same!!. the diffrence i found, humans respond very quickly, im kidding.
your system take long time while windows shutting down?.
i have a solution for reduce shutdown time. this is a simple windows command. and you can perform this command directly on command prompt or creating a seperate batch(.bat) file .

1.Direct use
type the following command on command prompt or run command(WindowsKey+R)
shutdown.exe -s -f -t 00
2.Batch file
open note pad and type(or paste) the above command . save the file with extension .bat( eg:shutup.bat). and place the batch file on desktop. if you want to execute , just double click the batch file.

Raise to Achieve with Dr.Kalam

The last year (2011) the same day August 1 , Dr. A.P.J. ABDUL KALAM, Former President of India inaugurated our college Youth Meet ‘Raise to Achieve’ .

Walk a mile in my shoes

Walk a mile in my shoes, see what I see, hear what I hear, feel what I feel, Then may be you will understand why I do what I do, till then don’t judge me.