Tuesday, December 27, 2011

Importing photos from F-Spot in Picasa

Gnome users know F-spot, a photo management software for Gnome.
I used to use F-Spot for a while and my photo library of almost 13 000 photos is organized with the following directories: Year/Month/Day.
Importing all of this into Picasa could be as simple configuring Picasa to watch the old F-Spot photos directory.
However, I wanted my photo library to fit Picasa's naming conventions which is one directory named Year-Month-Day and all the photos of that day inside.

What follows is the code of a small Python script I wrote to do the job.

Friday, October 28, 2011

How to implement an attribute in WebKit

In a previous article, I explained how to build a custom WebKit for MacOSX.
In this article, I will explain how to implement a custom attribute in WebKit.
Please keep in mind that these articles reflect the current state of my explorations in the WebKit code so do not hesitate to share your thoughts and/or correct me if I'm wrong somewhere.

Thursday, October 20, 2011

Building a Custom WebKit for your MacOSX Application

I recently ran into the issue of how to build WebKit in order to include it in a MacOSX project.
Even though it might look hard at first glance, it is actually a quite simple and straightforward process.
Let's have a look at how you can do it.

Wednesday, June 1, 2011

How to create a UIImage with a gradient from one or more UIColor

I recently needed to create a very specific progress bar not provided "as is" in the iOS SDK.
"The progress bar have an evolving background, a text label in foreground and an animation as the download/upload progresses. It must also be possible to tap on the progress bar like on a button.".

Solving this issue is pretty simple actually; you only need to use two overlapping buttons, one for the background and another for both the text label and the progression image. The latter has a clearColor background, at least for the "not yet filled" part of the progress image of course.

Wednesday, May 25, 2011

Unit Testing an application with CoreData and RestKit.

EDIT: Even though this article was written for RestKit 0.9 with the Object Mapper 1.0, it works with RestKit 0.9 and the Object Mapper 2.0.

I recently had troubles with unit testing an iOS application which rely in RestKit and CoreData.
Since I didn't find a clear solution on the web, I share in this article how I solved this issue. It is, in fact, simpler that It may seem.
Note that for my unit tests, I use the SenTestKit framework provided by Apple with XCode4.