While drifting through the
web,one comes across many good innovations,techniques and ideas. A mere
bookmarking of that site is of no good I suppose. This blog is short note of
what I actually did and thus learnt (a note to self).
So, today I've just setup an
web environment that can run python programs. It may not seem that intriguing
to those reading,but trust me it's opens up the world's access to your
programs. User can use your programs without having to install them right on the
internet. Now,you might get hasty and term it as cloud computing but I wouldn't
know if it's true. Got to ask a computer geek. Until then it's a way to run
python programs on the web and user can make use of it via their browsers.
So this is how I did it...
Installed Apache server by
downloading the installer from here
Once done had to make some
changes to the configuration files located at C:\Program Files
(x86)\Apache Software Foundation\Apache2.2\logs if your are on a windows
machine.
Found the changes to be
made here.
Opened the python
IDLE,copy/pasted the code from the above website and it worked.
Then I did something I like to
do and often do in python- Image Processing
Since the python environment
already installed in my case (else visit) I had all the image processing modules
installed before hand.
Just punched in some lines to
read an image from the local disk,reduce its brightness and display it in the
web browser.
And guess what,it worked!
All of this has something to do
with CGI scripting which is an alien term to me.Go figure.