Deprecated: Assigning the return value of new by reference is deprecated in /customers/getonthenet.eu/getonthenet.eu/httpd.www/wp-includes/cache.php on line 36

Deprecated: Assigning the return value of new by reference is deprecated in /customers/getonthenet.eu/getonthenet.eu/httpd.www/wp-includes/query.php on line 21

Deprecated: Assigning the return value of new by reference is deprecated in /customers/getonthenet.eu/getonthenet.eu/httpd.www/wp-includes/theme.php on line 540

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /customers/getonthenet.eu/getonthenet.eu/httpd.www/wp-includes/cache.php:36) in /customers/getonthenet.eu/getonthenet.eu/httpd.www/wp-content/plugins/enhanced-wp-contactform/wp-contactform.php on line 264

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /customers/getonthenet.eu/getonthenet.eu/httpd.www/wp-includes/cache.php:36) in /customers/getonthenet.eu/getonthenet.eu/httpd.www/wp-content/plugins/enhanced-wp-contactform/wp-contactform.php on line 264
Getonthenet.eu » 2009 » January

Archive for January, 2009

2 Reason why Virtual Box’ “seamless mode” isn’t seamless

Thursday, January 29th, 2009

I’ve been running Virtual Box’ in seamless mode with a Linux host and a Windows guest and it is very impressive, but I wouldn’t call it seamless for 2 reasons.

  1. Windows are not managed by the hosts window manager - like they are with things like WINE.
  2. All the icons in the systray should be in the notification area, and so should things like the Windows Start Menu - see how VirtualPC integrates the Windows Menu with the Mac OSX dock.

If these things were fixed, then it would be seamless.

Python annoyance

Thursday, January 29th, 2009

What really annoys me about python lists (and tuples) is that their ‘append’ method returns ‘None’.  This effectively renders the append method useless when working with custom classes that offer a dict like interface via __getitem__ and __setitem__.

Take the following code for example.

class MyClass( object ):

    def __init__( self ):
        self.dict = {}

    def __getitem__( self, name ):
        return self.dict[name]

    def __setitem__( self, name, value ):
        self.dict[name] = value

myclass = MyClass()
myclass["list"] = ["foo"]
myclass["list"].append( "bar" )

You’d think that myclass[”list”] now contains [”foo”, “bar”]. It actually contains None (the append methods return value).

I’m going to Fosdem

Sunday, January 25th, 2009

I'm going to FOSDEM, the Free and Open Source Software Developers' European Meeting

A ready to run GPE image for the HTC-Universal

Saturday, January 24th, 2009

I was playing with some Linux images on my HTC Universal (aka Xda Exec, Jasjar, etc), when I realized that most of them sucked.

I built my own GPE image using OpenEmbedded, It’s based on the Angstrom distribution so there’s a package manager (ipkg) with plenty of apps ready to try out, pretty cool. Wifi in this image seems far more stable than any other image I’ve tried.

GPE has one of the best mobile browsers I’ve ever used, and some excellent PIM apps, but seems to lack an app for making use of phone functionality.

I’m currently investigating adding support to Conduit for syncing GPE devices.

What works:

  • Touch screen
  • Wifi
  • Keyboard (although the map is a bit out)
  • Suspend/Resume
  • Sound
  • Screen rotation using the panel applet

What doesn’t:

  • Battery applet
  • Wifi applet (network config tool works fine though)
  • Phone/SMS capability
  • Starling Audio Player (segfaults)
  • su - when logged in as a normal user - “chmod u+s /bin/su” as root to fix.

How to install:

  • Find a SD card (I used a 1GB card) and create two partitions; a ext2 partition and a swap partition; make sure the ext2 partition is first. I recommend making the swap partition 256mb.
  • Extract the rootsfs onto the ext2 partition.
  • Copy these files onto your Universal, these are needed to boot Linux.  Make sure they are kept together.

To run Linux, just start haret.  Feedback much appreciated.