July 1st, 2010 admin No comments

This is a small utility to modify a Windows installation CD so that it can be installed onto an SD card (eg. for use in your SSD-based netbooks with little onboard storage). You just need to copy the contents of your CD to your hard drive, then run the utility and voila it will produce an iso ready to be burned to CD for installing Windows XP onto your computer so that it can then transferred to an SD card. The installation instructions are geared towards the Asus EeePC.

Read more…

Categories: 3eportal, Uncategorized, eeePC Tags:

Google Translate in Python

August 2nd, 2009 admin No comments

I was looking around for an example of how to access Google’s Translation services from Python, and all the examples I found seemed too bloated to me, so I decided to write my own, and managed it in just a few lines of code. Perhaps the Ajax API didn’t exist when others wrote theirs, but it’s certainly much easier now.

So here it is, gtrans.py:

#!/usr/bin/env python
# author: sublime@3euser.com
# usage: gtrans <from_lang> <to_lang> <text>
import sys
import urllib
url = ‘http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=’+urllib.quote(‘ ‘.join(sys.argv[3:]))+’&langpair=’+sys.argv[1]+’%7C’+sys.argv[2]
# Google returns the result string in exactly the same format as a python dictionary, just need to escape ‘null’ values.
transtext = eval(urllib.urlopen(url).read().replace(‘null,’, ‘”",’))
if transtext['responseData']:
print “\n”, transtext['responseData']['translatedText'], “\n”


url = 'http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q='+urllib.quote(' '.join(sys.argv[3:]))+'&langpair='+sys.argv[1]+'%7C'+sys.argv[2]

transtext = eval(urllib.urlopen(url).read().replace('null,', '"",'))

if transtext['responseData']:
print "\n", transtext['responseData']['translatedText'], "\n"


Google Wave

July 30th, 2009 admin No comments

I just received my Google Wave Developer Sandbox account today, and so I’ve spent a good part of the evening playing around with it, finding my bearings in the interface, and working out how it all works. So far it looks like a very nicely integrated communication system, with a lot of API access to ensure it develops rapidly. There’s quite a few bots already running, for code syntax highlighting, for blogging, for starting discussion groups and a whole swath of other things.

Here is a screenshot of a wave:

Wave hints & tips

Wave hints & tips

This wave is a collection of hints and tips on how to get started using Wave, and is a really handy FAQ to get things rolling once you’ve got your account setup.

And here is a shot of the entire interface for Wave, with a wave open that demos some of the stuff that can be embedded into a wave, in this case Google Maps.

Google Wave interface

Google Wave interface

As far as browser support goes, I’ve mostly been using it in Chromium (, where it seems to work best (Surprise Surprise). It didn’t even recognise Firefox 3.5 as being a browser capable of handling Wave for some reason, but 3.0.11 was fine. The experience is a little laggy, but that could just be because it’s only a preview implementation, and therefore is probably not well distributed (like most other Google services usually are).

Categories: Google Wave Tags:

Ultralight text viewer

July 25th, 2009 admin No comments

textview is my first application written in Genie, a python-like language which is converted into C and then compiled as a normal C program. The language is cross-platform also, and I have compiled textview on Windows just to prove it!

Although I think there’s more than enough text editors available for Linux, I was unable to find a really lightweight text viewer that could also perform basic editing functions. Previously I used leafpad or gedit for this purpose, but even that is overkill, since most of the time I just view Readme files etc. which don’t need syntax highlighting, vast arrays of menu options or dialogs popping up asking me if I want to save etc.

Be warned that textview does not have any undo or backup features, and probably never will. It’s primarily for use as a viewer, not an editor. To enter edit mode, press escape, to return to view-only mode press escape again. To save any changes, press “w” in view-only mode.


textview_0.1.deb (deb package)

textview-windows.zip (compiled for Windows)

You will also need to download GTK for windows to run this.

textview.gs (source code)

Categories: Programming Tags: ,