Evolving to Python 3

Everyone’s favourite programming language – yes I am talking about Python – has been powering software in it’s trustworthy 2.x series for some years now.

It’s been already over a year since Python 3.0 was released (December 3rd 2008 to be excact), so it’s about time you took a look this evolution.

Plenty of books and websites, but here are my favourite sources for evolving to Python 3:

Dependency Injection & AOP

An excellent introduction to Dependency Injection (DI) and Aspect Oriented Programming (AOP) can be found in the first chapter of the new ‘Spring in Action‘ book.

The first chapter can be downloaded for free and gives an excellent introduction to this powerful new programming approach.

vSphere SDK & Perl

The vSphere SDK for Perl provides an easy-to-use Perl scripting interface to the vSphere API. Administrators and developers can work with vSphere API objects using vSphere SDK for Perl subroutines. Administrators can use the utility applications included with vSphere SDK for Perl. In addition, the vSphere SDK for Perl includes the Web Services for Management component for writing scripts that retrieve CIM data from the ESX/ESXi host using CIMOM, a service that provides standard CIM management functions. The vSphere SDK for Perl also includes subroutines for managing the VMware Credential Store and an example application that illustrates credential store use.

http://www.vmware.com/support/developer/viperltoolkit/

Sinax-Framework RSS module

Coming soon in the Sinax-Framework version 0.04, the RSS module!
Keeping it clean and simple is our motto.

1
2
3
4
5
6
<?php
include("sx/rss.inc.php'");
 
$r = new SXRSSChannel("Sinax RSS 1", "First Sinax RSS Feed", "http://www.sinax.be/rss/");
$r->addItem(new SXRSSItem("First RSS Item", "http://www.sinax.be/firstrssitem/", "My First RSS item", "Michael Anckaert", "2010-05-11"));
$r->render();

Ubuntu 10.04 – Switching back the window button layout

If you’ve already made the switch to Ubuntu 10.04, the Lucid Lynx you will no doubt have cursed at the switched window button layout (you know, close, minimize and maximize).

Continue Reading »

Ubuntu 10.04 released

Ubuntu 10.04 aka Lucid Lynx was released!

As usual, you can download this spanking new release from the Ubuntu mirrors or follow these instructions to apt-get upgrade your way into this exciting new release!

Recreate id_rsa.pub

If you ever messed up and lost your SSH public key (~/.ssh/id_rsa.pub) but still have your private key (~/.ssh/id_rsa) you can easily recreate your public key with the following command:

-- michael@winston 10-Apr-10 18:15
-- ~:$ ssh-keygen -y &gt; ~/.ssh/id_rsa.pub

This will read your private key and recreate the public key.
More useful gems in the ssh-keygen man page (like changing your passphrase, etc).

New documentation

I’ve published a preliminary version of the documentation I’m writing for the Sinax Framework. All new content can be found here: http://www.sinax.be/software/sinax-framework/

Sinax-Framework ORM with SXModel

I’ve just uploaded some new work on Sinax-Framework ORM and a new sample for the SXModel class.

Defining a model that maps to a database table is fairly straightforward. Simply subclass the SXModel class (or work on an instance) and map the properties of the model to the fields of the database.

Continue Reading »

SXForm sample

The forms component of the Sinax-Framework is designed to facilitate working with forms and fields.

Below is a sample that you can also find in the Sinax-Framework source tree. It creates a simple form containing three fields, two regular SXTextField and one SXEmailField.

Continue Reading »

Designed by Structured Settlement | Download from Wordpress templates | Music text | Cheap domain