*Update: *lol I forgot to add the download link, my bad sorry. Here it is: http://www.mediafire.com/?efbyw74g17361io
Hello everyone, I had some free time and I came up with a script for Xchat. It’s a simple calculator script which can evaluate simple mathematical expressions (haven’t tried with much complex ones ). It can also convert and calculate using Google’s calculator; Yes, the one which everyone uses to convert temperatures and currencies
So, anything the Google’s calculator can do, the script can too
*Download the script from here: *http://www.mediafire.com/?efbyw74g17361io
Here’s a simple guide to get you started:
- Load the script (put it in $HOME/.xchat2/), then either restart Xchat or type:
[plain]/py load ~/.xchat2/calc.py[/plain]
- Test it using: /calc 2+2 , it should output the result in the current window.
/calc – Evaluates mathematical expression using Python. Eg: /calc 2+2
/gcal – Evaluates the given expression using Google. Eg: /gcal 24+24
/convert – It’s just an alias for /gcal, just to make it easy to remember. It just converts the given expression using Google. Eg: /convert 24C in F will convert 24 Celcius in Fahrenheit.
It’s a simple script written in Python, if you find any bugs or you want me to add a feature or two, feel free to comment on this post or email me. Any feedback is much appreciated.
Hey all, I’ve moved to my own domain from a free host (http://gastly.iblogger.org/) to http://kbhaskar.in!
So please update your bookmarks, some of my posts will be missing since my old host didn’t provide me a backup of the database, so some of my posts are gone
Hopefully this new host will be better!
Stay tuned for more articles on Ubuntu, Linux and FOSS
[contact-form-7 id=”459″ title=”Contact Me”]
Hi all! First of all, thanks for visiting my little blog!
My name is Bhaskar Kandiyal. I mainly like to blog about Linux, Ubuntu and FOSS in general. Also, occasionally about programming and web designing.
I am currently pursuing MCA (Master of Computer Applications) and I live in Delhi, India.
My articles about Ubuntu/Linux have been published in various magazine’s like Linux Identity. I’m always looking for opportunities to work with different people to develop my skills in different fields.
So, that’s that…that’s all about me, ask me if you want to know more
You can contact me here: or use the Contact form.