Daniele Esposti's Blog

Open URLs in external browser by Javascript in WebKit

It’s very simple with the QtWebKit APIs to open an link with your default browser from a QWebView (you can find some solutions like this in StackOverflow about that) but that works well only with <a> elements. If you are opening an external browser by a window.open() JavaScript function you need a...


CTypes and Incomplete Types

Some days ago I was writing a DLL’s wrapper in ctypes and I came across of this typedef in the header file: typedef struct _FILEHandle *FILEHandle; To translate this definition into ctypes is pretty straight-forward (if you already know the solution :-) ). First of all, _FILEHandle is a forward...


Best compressible serialisation format

For my next project I need to serialise a list of classes using the technology which fits those requirements: ninimum code to serialise/unserialise minmum file size when compressed As you can see the speed for read/write the serialised data is not a requirement but the size of the compressed file...


Execute JavaScript code at the end of an Adobe Edge movie

Adobe Edge is the new product form Adobe which will aim to replicate the features of Flash using HTML5 technology. I’m using Adobe Edge to create an animated introduction for a small GWT project and I ended up with the need to execute code at the end of the movie....


Experiment Necessitas: Qt apps on Android

Some weeks ago I read about the Necessitas project on the Qt Labs Blog which let you able to run Qt application on the Android platform. It was very interesting and now I’m going to try it. My test environment is my Mac Book Pro with Snow Leopard. Unfortunately the...