>It is a great feeling to realize that there are only three more chapters and appendixes to complete before the first round of my Qt book project has been completed. Then there is reviewing ad infinitum left to do and lots of details (index, toc, foreword, etc) but I choose to ignore them for the moment and just feel good for a while.
Category: Miscellaneous
>Winter, attempt 5?
>Swedish iPhone un-boxed
>Following the hype around the iPhone I was surprised to find out that the Swedish paper NyTeknik sent iPhones to all their subscribers. I un-boxed mine and took some photos of the process.
This is what I found in the mail.
Unwrapping? Uncutting? Don’t know – just getting it out of there.
I had to add an extra layer of paper to ensure that the structural integrity could be maintained.
Compared to the Topcom DECT phone that I use indoors. Apparently the DECT has better coverage as I can use it up to 50 meters from home. I just was not able to make any calls from the iPhone – but it looks neat.
Also, do not place your iPhone in your pocket. It will not survive it.
Update. Digg it here!
>Oslo, snow and schedules
>I was invited ny Trolltech to come to Oslo and have dinner with the Qt Quarterly contributors from 2006. Yes, I’ve contributed.
The goal was to be in Oslo by 6pm last Thursday so I left Gothenburg just after 1pm. It usually takes 3-4 hours to drive between Oslo and Gothenburg, but there has recently been a landslide, so you have to go around a part of the E6 road that was swept away. That was why I added an hour to my travel plans. Then came the snow.
Apparently most lorrys do not use proper tires adapted for snow. Nor do they keep snow chains. The consequence was that I spent six and a haft hours to travel 400km. When approaching Oslo there where queues in both directions moving at about 10-20kph.
I made it anyway – the dinner did not start before 7pm and I had to be efficient when checking in to the hotel. After getting some food and a beer I could relax and be social again. I got the opportunity to sit down and talk to David Boddie and Jasmin Blanchette (hi guys!).
I also ran into a whole bunch of trolls (I only remember half of the names, so I won’t mention any). After a nice evening at Akers Brygge I left for the hotel.
The next morning I spent in more or less informal meetings at Trolltech. Very giving. The trolls are really a nice bunch of people. Very easy to work with.
>Windows, mingw, Qt and MySQL
>Building the QMYSQL database driver plug-in using the mingw environment shipped with Qt is not a nice process. It seems easy when you look at the documentation, but it is not. I got it working and have summarized it at the QtCentre wiki. I also added a task to the task tracker over at Trolltech.
>One year – and a contest
>As some of you might know I’m one of the admins over at QtCentre.org. The site has being going for a year now and I must say that I’m thrilled by the outcome. The major point for starting the site was to provide the community with a free forum – but we also have a nice wiki and a FAQ.
As we enjoy Qt programming and want you to try your Qt 4 skills we have decided to start the first QtCentre Programming Contest. With great support from the Qt companies out there – Trolltech, basysKom, froglogic, Integrated Computer Solutions and Klarälvdalens Datakonsult – we can offer prizes such as Greenphones, a MacBook and an iPod. The competition entries must enter in one of the following categories: custom widget, development tool, helper library, mobile application and desktop application. The categories have been picked so that pretty much any piece of Qt software can join so register your project today and start coding!
>The Efficient Month Starts Now
>Now Christmas is over and it is time to get seriously efficient. Right now I’ve got 30 days, seven chapters and three articles to write before I get back to writing in my spare time. Before my head falls of from all this writing (I have prepared 9 examples and written down all the notes for a chapter of multi-threading today) I just wanted to show a small update to my Acer fix software.
I found a gap in the calendar last week and added a small loop that looks for the window every five seconds. This means that it works regardless of the starting order of the applications. The new source looks like this.
#include <windows.h>
int APIENTRY WinMain(HINSTANCE hinst, HINSTANCE hinstPrev, LPSTR lpCmdLine, int nCmdShow)
{
HWND acerWin = NULL;
while( (acerWin=FindWindow( NULL, "ACER_GraviSense" )) == NULL )
Sleep( 5000 );
if( !acerWin )
return -1;
SetWindowLong( acerWin, GWL_EXSTYLE, GetWindowLong( acerWin, GWL_EXSTYLE ) | WS_EX_TOOLWINDOW );
return 0;
}
Using this you can alt-tab freely without having to run into an invisible window now and then. I wonder if it would be fun calling their help-desk and trying to give it to them as a contribution. :-)
Another note is that my employer, Bitsim, has announced Badger. This is a platform that I’m really looking forward to playing with. So if you’re ever in need of an Arm system capable of hardware accelerated graphics you know where to look :-)
>A Rainy Day
>Happy new year to everyone! On this rainy day I would like to remind all of you that rain can be a beautiful thing.
>Witold on OpenGL – for the third time
>Witold just announced the third part of his OpenGL + Model-View article series. It is an interesting concept and shows that the model view solution can be applied to many parts of Qt. For example the QGraphicsView would also benefit from having a model holding the items. The different types of items would then be managed by different delegates…
>Holiday Spirits
>Lots of preparations as the holidays are getting closing – quickly. Right now I’ve prepared 1.6kg Swedish meat balls (this is about a third, just before frying them).
The next stage was the Christmas tree. A nice Swedish spruce (gran) with decorations, next to my favourite working arm chair. The pillow is made from the original clothing.
It is the top of the decoration that we use to cover the hole over the stairs since the upper floor is far from done. The other side looks more appealing. Thanks to Illum, Copenhagen for the idea. My wife noticed the style there. Using the right thread and amount of balls – we use 27 – a “cloud” of balls is created.