You are here

Benjamin's Personal Blog

Benjamin's Personal Blog
Checked: 24 min 26 sec ago
Updated: 8 months 1 week ago
Update every: 2 hours

A software development blog
Subscribe to Benjamin's Personal Blog

Anigma Game

Benjamin's Personal Blog - Sun, 18/03/2007 - 7:41am
Originally called "Puzz-le", Anigma was a very well done puzzle game for the Sharp Zaurus. When blocks of the same color are moved next to each other they disappear. The goal is to eliminate all the blocks on each level. Beside colored blocks there are other various objects the player can interact with.

Git and hooks

Benjamin's Personal Blog - Thu, 15/03/2007 - 7:05am
The past few weeks I have started learning Git and this past week started using it for one of my own little project I have been hacking on. It has been a fun experience and once I figured out the basics it went pretty smooth. Here are a few tips that would have been nice to know before I started:

- Don't bother using Cogito, but just use Git directly. Git has matured a lot sense it was first introduced and removing another layer helps to make it less confusing.

QColumnView

Benjamin's Personal Blog - Wed, 28/02/2007 - 10:48am
With 4.3 features wrapping there is a new itemview class called QColumnView. It provides a way of displaying a tree model. Each column is another level in the tree with the far left being the top of the tree and the far right side being a node. It is known for quick and easy keyboard navigation and a final preview area. Most commonly this view is known for its usage in OS X and in particularly in Finder. Below is a screenshot of using the view with the dir model and a simple file preview widget.

Qt QAbstractItemModel ModelTest

Benjamin's Personal Blog - Tue, 27/02/2007 - 7:17pm

With labs.trolltech.com going live this week I was able to release a little tool that provides a way to check for common errors in implementations of QAbstractItemModel.

Home For Christmas

Benjamin's Personal Blog - Mon, 15/01/2007 - 8:05am
For christmas I flew back to Boston to be with relatives. Having lived in America my entire life up until recently it was an interesting experience and I was surprised by the differences in American culture that I noticed upon returning.

My Dream File Manager

Benjamin's Personal Blog - Fri, 01/12/2006 - 8:00am
What follows is a collection of points for my dream file manager. It was collected from notes I have been taking over the past two years so I am sorry if it doesn't flow that well together. So grab a beer and get ready for some chuckles as you read the key points for what would makes my dream file manager.

Netflix Prize Contest

Benjamin's Personal Blog - Sun, 29/10/2006 - 5:39pm
I was very excited when the Netflix contest was first announced. I have been toying with that problem for a while, but I never had enough data to do anything really with so it was always a minor project of mine. As I watched people get interested in the contest many of them were spending the first week figuring out how to manage all the data that was given to them. The worst part was that after a week of doing this it wasn't very fun and they would stop, but yet they hadn't even worked on the real problem yet!

Dynamic Models

Benjamin's Personal Blog - Tue, 10/10/2006 - 11:31pm
When creating a custom tree model in Qt one common request is to lazily populate the tree. Starting in 4.2 there is a nice way to do this using QAbstractitemModel's fetchMore(). In your model overload hasChildren(), canFetchMore() and fetchMore(). hasChildren() should return true for those index's that have children even if the rowCount() is currently 0. The default implementation will return true if rowCount() is greater then 0.

Pages

Subscribe to Benjamin's Personal Blog