You are here

Sunrise in winter

My Scratchpad - Wed, 22/12/2004 - 10:15pm

Last monday I had an extra hour before work, so I drove into the fields between Delft and Rotterdam and took some pictures of the sunrise. It had been freezing that night, with an almost clear sky and there was frost everywhere.

image 02

(more…)

New site layout

My Scratchpad - Mon, 13/12/2004 - 3:58am

I have changed the site design again, the old one got boring. The new layout is vaguely based on an article from A List Apart, called Creating Liquid Layouts with Negative Margins.The layout works like I intended in mozilla, opera and konqueror, and looks not-entirely-horrible in internet explorer. The latter looks fixable, and I’ll try to do that some time soon. I will probably be tweaking the layout for some time to come.

Python decorators

My Scratchpad - Fri, 26/11/2004 - 5:24pm

As another example of what you could do with python 2.4 decorators, I tried to wrap class methods in a database transaction, and this is what it became:

Another Look at Events

Articles from Qt Quarterly - Fri, 15/10/2004 - 12:00am
What is a spontaneous event? Which event types can be propagated or compressed? What is the difference between posting and sending an event? When should I call accept() or ignore() on an event? If you don't know all the answers, read on!

Mandatory Fields

Articles from Qt Quarterly - Fri, 15/10/2004 - 12:00am
There are many situations where we need to present the user with a form that has mandatory fields. In this article, we present a class that simplifies handling such fields.

Implementing a Read/Write Mutex

Articles from Qt Quarterly - Fri, 15/10/2004 - 12:00am
Developing threaded software is always a challenge. Breaking a complex application into separate units of execution without compromising its stability requires not only a well-structured design that prevents the developer from accessing unsafe data, but also a good understanding of the concepts, tools, and caveats of multithreaded programming.

Not Your Standard Pie Menu

Articles from Qt Quarterly - Fri, 15/10/2004 - 12:00am
Pie menus are great fun to work with. They come in various shapes, sizes, and colors, often tailored to fit the specific application. They are especially frequent in games and in specialized applications. Because all items are available at an equal distance from the mouse pointer origin, pie menus are much more efficient to use than standard menus.

A String List Editor

Articles from Qt Quarterly - Fri, 15/10/2004 - 12:00am
We often need to present users with a list of strings that they can add to, edit, or remove from. This article presents a generic StringListEdit class and a FileListEdit subclass to simplify these common tasks.

Deploying Applications on Unix/X11

Articles from Qt Quarterly - Fri, 15/10/2004 - 12:00am
This article is the last in a series of three covering the deployment of Qt applications on various platforms. This time, we focus on Unix systems with X11.

Implementing a Read/Write Mutex

Articles from Qt Quarterly - Thu, 14/10/2004 - 9:00pm
Developing threaded software is always a challenge. Breaking a complex application into separate units of execution without compromising its stability requires not only a well-structured design that prevents the developer from accessing unsafe data, but also a good understanding of the concepts, tools, and caveats of multithreaded programming.

A String List Editor

Articles from Qt Quarterly - Thu, 14/10/2004 - 9:00pm
We often need to present users with a list of strings that they can add to, edit, or remove from. This article presents a generic StringListEdit class and a FileListEdit subclass to simplify these common tasks.

Deploying Applications on Unix/X11

Articles from Qt Quarterly - Thu, 14/10/2004 - 9:00pm
This article is the last in a series of three covering the deployment of Qt applications on various platforms. This time, we focus on Unix systems with X11.

Not Your Standard Pie Menu

Articles from Qt Quarterly - Thu, 14/10/2004 - 9:00pm
Pie menus are great fun to work with. They come in various shapes, sizes, and colors, often tailored to fit the specific application. They are especially frequent in games and in specialized applications. Because all items are available at an equal distance from the mouse pointer origin, pie menus are much more efficient to use than standard menus.

Another Look at Events

Articles from Qt Quarterly - Thu, 14/10/2004 - 9:00pm
What is a spontaneous event? Which event types can be propagated or compressed? What is the difference between posting and sending an event? When should I call accept() or ignore() on an event? If you don't know all the answers, read on!

Mandatory Fields

Articles from Qt Quarterly - Thu, 14/10/2004 - 9:00pm
There are many situations where we need to present the user with a form that has mandatory fields. In this article, we present a class that simplifies handling such fields.

Implementing Model/View/Controller

Articles from Qt Quarterly - Fri, 23/07/2004 - 12:00am
Qt 4 uses the MVC pattern for its item view classes (QListView, QTable, etc.). But MVC is more than just a pattern for item views: it can be used generally as a means of keeping different widgets synchronized. In this article, we show how to apply it, taking full advantage of Qt's signal--slot mechanism.

Scripting Qt

Articles from Qt Quarterly - Fri, 23/07/2004 - 12:00am
This article covers several aspects of scripting Qt applications. There are two common approaches to scripting Qt applications. One is to write entire applications in a scripting language instead of in C++. The other is to extend, automate, or customize a C++/Qt application; this article concentrates on the second approach.

Mapping Many Signals to One

Articles from Qt Quarterly - Fri, 23/07/2004 - 12:00am
Qt allows us to connect multiple signals to the same signal or slot. This can be useful when we provide the user with many ways of performing the same operation. Sometimes, however, we would like the slot to behave slightly differently depending on which widget invoked it. In this article we explore various solutions, including the use of QSignalMapper.

Secure Networking with QtSSLSocket

Articles from Qt Quarterly - Fri, 23/07/2004 - 12:00am
Secure networking has two main requirements. Firstly, you must be sure that you are communicating with your intended recipient. Secondly, you need to be confident that the data exchanged has not been tampered with or even read by a third party; and that even if it was read, it could not be deciphered. This article shows how to create a secure client using the OpenSSL library and the QtSSLSocket Qt Solution that meets these requirements.

Deploying Applications on Windows

Articles from Qt Quarterly - Fri, 23/07/2004 - 12:00am
This article is the second in a series of three covering the deployment of Qt applications on various platforms. Here the focus is on Windows. Just like Mac OS X applications, deploying an application on Windows does not require any C++ programming. All you need to do is build Qt and your application in release mode, and follow the procedures described in this article. We will demonstrate the procedures in terms of deploying the showimg application that is provided in Qt's examples directory.

Implementing Model/View/Controller

Articles from Qt Quarterly - Thu, 22/07/2004 - 9:00pm
Qt 4 uses the MVC pattern for its item view classes (QListView, QTable, etc.). But MVC is more than just a pattern for item views: it can be used generally as a means of keeping different widgets synchronized. In this article, we show how to apply it, taking full advantage of Qt's signal--slot mechanism.

Deploying Applications on Windows

Articles from Qt Quarterly - Thu, 22/07/2004 - 9:00pm
This article is the second in a series of three covering the deployment of Qt applications on various platforms. Here the focus is on Windows. Just like Mac OS X applications, deploying an application on Windows does not require any C++ programming. All you need to do is build Qt and your application in release mode, and follow the procedures described in this article. We will demonstrate the procedures in terms of deploying the showimg application that is provided in Qt's examples directory.

Scripting Qt

Articles from Qt Quarterly - Thu, 22/07/2004 - 9:00pm
This article covers several aspects of scripting Qt applications. There are two common approaches to scripting Qt applications. One is to write entire applications in a scripting language instead of in C++. The other is to extend, automate, or customize a C++/Qt application; this article concentrates on the second approach.

Pages