«
»

Weblog Archives

You are currently browsing the archives for the Python tag.

pdf2email CUPS Backend

pdf2email is a CUPS backend that uses GhostScript to print a document to PDF and sends the final file to the user that requested the print via email. This software is written in Python. I had written this backend a few months ago, it has worked fine for me, so I decided to release it. Your feedback is welcome.

Use Python to get the web page data in Epiphany

Sometimes, things are not that straightforward as one might think. Yesterday, I spent over two hours on the Epiphany Python Console checking almost all of the available functions in order to find a way to store the displayed page’s HTML data in a variable. Before quitting, I decided to get some help over at the [...]

Epiphany Python Console – Open New Tab

This is a quick tip about how to open new tabs with Python code in Epiphany.

Epiphany Python Console – Documentation

The availability of good and complete documentation for an API is one of the most important factors in order someone to be able to effectively use that API for application programming. Good API documentation saves time and effort. It provides all the needed information a programmer, either professional or amateur, would need in order to [...]

Namespace Declarations With cElementTree

If you use cElementTree and try to create an XML file that uses some extra XML namespaces, you will encounter a wierd situation when the final file is written.

Tab Session Management extension for Epiphany

One of the features I’d like all browsers, that support tabbed-browsing, should include by default is to let the user save the current window’s tab layout (aka tab session) to a file and also provide the ability to load such a saved tab session. My main browser, Epiphany, does not have this functionality and I [...]

Creating An RSS 2.0 Feed Using cElementTree

I’ve made some progress with the cElementTree Python module. After reading the available documentation and the RSS 2.0 specification, I was able to write a very simplistic RSS 2.0 feed generator in order to demonstrate the usage of this module. There is no such example in the documentation, so this might be useful to someone.

A GNOME applet for Totem using Python

Blogs seem to be a great resource of very useful information. Today while searching for any pyGTK code examples on Technorati, I came across a very interesting Python script. Actually, this is not just “interesting“. Owen’s code is a great example of how easily a GNOME applet can be created using the GNOME bindings for [...]

A Useful Script

While browsing the archives of Raphael Slinckx’ blog, among other very interesting things, I came across a post about a Python script of his, which uploads a text file on the on-line pastebin pastebin.ca. A neat script like this proves to be extremely useful sometimes.

Sockets Programming In Python

These are the articles that got me into network programming in Python: Socket Programming HOWTO by Gordon McMillan. Sockets programming in Python by M. Tim Jones.