Tuesday, April 26, 2005
XML and RSS0.92 Parser
Wrote a basic xmlparser module in python which can parse the xml file and returns UserDict. Using xmlparser module I implemented parsefeed module which can now parse the RSS 0.92 xml file and return UserDict which can be handled easily. You can download the modules here.
Sunday, April 17, 2005
Python implementation of "tail -f"
I wrote a small python script that will show the behavior of UNIX/LINUX "tail -f" command. The python script may come handy for windows users. Click tailf.zip to get the source.
Friday, April 15, 2005
Javascript - tutorial
As a basic introduction to javascript, I have designed the following applications:
Note: Most of the script working is specific to firefox/mozilla/netspace.
- Introduction - Do simple mathematical calculation.
- DataStructures - Understand using Array and Associative Array.
- Calculator - Basic calculator application
- Autohint - A text box that will suggest the available options, some thing simlar to Google Suggest TextBox
- XHR - Explains using XMLHttpRequest , fetches tags of delicious user using delicious api, once you enter the delicious user name and password.
- XHR integrated with Autohint text box.
Note: Most of the script working is specific to firefox/mozilla/netspace.
Monday, April 11, 2005
greasemonkey - feedlink with popup
Today, I enhanced the functionality of feedlink. Here is the user script. Now feedlink userscript not only shows the feeds available as images, but gets you a popup menu when you click on the image and you can subscribe to aggregators like bloglines or newsgator. You can customize the popup menu, by setting proper values in the user script for:
- subscriptions
- MENUWIDTH
- MENUHEIGHT
You can get the zip file here that contains the user script and many more.
If you need the version without popup or for installation help, checkout this entry.
Friday, April 08, 2005
greasemonkey - autodiscover site feed
FeedLink the greasemonkey plugin will enable the autodiscovery of site feeds and display them as anchor images. Here is the user script that you can use.
Following are the steps to install the user script:
Following are the steps to install the user script:
- If you haven't installed greasemonkey Firefox extension. Then get it installed.
- Open this user script in Firefox.
- From "Tools" menu select "Install User Script..." and confirm all the prompt.
- To configure the script, select "Manage User Scripts..." from "Tools" menu.
- By default, User script is added for "http://www.livejournal.com/users/*" (eg:http://www.livejournal.com/users/someone) and "http://*.blogspot.com*"(eg:http://someone/blogspot.com/).
Tuesday, April 05, 2005
Writing Python Module in C
I have designed a module for python with the basic intension of describing how to write modules in c, install and use it. In the module (c program) that I have designed, a prompt (input to c program) will be displayed on the terminal, the user password will be read from the terminal and it will be returned as the python string object to python interpreter. You can download the module here.
Friday, April 01, 2005
Basic Python Calculator - pycalc
Inspired by the first version of my calculator (in c#), I went on with the same application in python but using slightly different logic during the expression evaluation. Well, it was really challenging to sit overnight to get the code done. Get the code here.
View AlgorithmView Output