Archives
Twitter
Error: Twitter did not respond. Please wait a few minutes and refresh this page.
Tag Archives: python
Python Script to Monitor Laptop Battery Charge (Ubuntu/Linux Mint)
I got my laptop two days ago. It’s a Compaq Presario CQ42-220TU. Battery backup is around 3 hours. I am using Linux Mint which is a variation of Ubuntu. Just a few minutes ago I wrote a Python script that … Continue reading
My First Gedit Plugin
I am now using Ubuntu 10.04. In an older post of mine, I described how you can use the PHP_Beautifier tool with Gedit to code php in a fashion. But the major drawback was that a shell output used to … Continue reading
Setting Up Twitter Bots with OAuth
Twitter has decided to kill Basic Authentication on the Twitter API from June 30. They have setup a nice website at http://www.countdowntooauth.com/ to let you all know and help you migrate your apps to use the OAuth OAuth is cool. … Continue reading
Quick GUI Development with wxPython and wxGlade
I don’t know C or C++ that much to develop GUI applications. I hate Java and I’m not really ready to type lines after lines to develop very simple applications. PHP and Python are the only available solutions to me. … Continue reading
Image Resizing With Python
At my workplace, I’m bound to work with PHP but not at my home For PHP, I’ve seen cool image libraries like the GD library, ImageMagick and in-numerous classes to manipulate images. But what does Python have to offer when … Continue reading
Building A Proxy Scraper with 15 lines of Python
Yes, Python is great! It’s beautiful and so on…. I have described the power of Python many times. For now, just the codes Here’s a proxy scraper I built a few moments ago. It scrapes the web page at proxy-hunter.blogspot.com … Continue reading
Using Python on Hostmonster, Umbrahosting And Other General Shared Hosting
I’ve a hostmonster and umbrahosting shared hosting where my sites are running smoothly in PHP. I’m perfectly happy with both UmbraHosting and HostMonster. Additionally both the hosting providers have Python support. Being a Python enthusiast, I decided to check out. … Continue reading
Hosting your Twitter Bots on Google App Engine
UPDATE: Download the improved version of the application. I have made some code changes after the blog post got posted to reddit. The source code is now more readable and the app easily configurable. I am amazed to see the … Continue reading
Building a Jabber Bot (Google Talk) with Python and Google App Engine
To develop a Jabber / Google Talk Bot, we first need to enable the XMPP inbound service for the application. Just add the lines: inbound_services: – xmpp_message to your app.yaml file. That would activate the service for our application. Have … Continue reading
Handling JSON in Python
On php, I just use json_encode() and json_decode() to handle JSON data with ease. Python has a built in module named “json” for the same purpose. Here’s the link for the official documentation: http://docs.python.org/library/json.html The documentation has pretty examples. Still, … Continue reading