Thursday, August 30, 2012

The Simplest Gallery UIScrollView class for iOS 4+ ... ever ;)

In my last post about UIImage decompression nightmare, I told you I was working on a Gallery scrollView and now it's been released on github.

the gallery in action on iPhone

Wednesday, August 29, 2012

On iOS UIImage decompression nightmare

Yesterday I tried to polish a Gallery class that I work on which I'll be posting to Github soon. This class is intended to be used as the ultimate gallery view ;) It's really easy to understand and thanks to blocks it is really easy to use. But anyways I will make a post when it's available on github.

The problem I encountered while using my new gallery class to display images was that even though the pages creation was separated from the data sourcing using dispatch queues the first time an image was loaded, the scrolling would be really bad.

Friday, August 17, 2012

Objective-C blocks for fun

Today I had to solve a simple problem and since I am a lazy programmer I always tend to look for the solution that is the most easy to implement (less coding) but I never choose the easiest path to find this solution. I mean I try to follow this sentence: "Un objet est parfait quand on ne peut plus rien lui retirer de futile" which could more or less be translated to "An object is perfect when no more can be taken away". I don't know who ever said that but I often remind me this sentence when I work.

Problem:

I want to register a timer (NSTimer) that runs a block.

Sunday, August 12, 2012

Two hours I'll never get back

Today I had to install node.js on a CentOS 5.7 box.
As usual with system administration you never know how long it will take to complete. But since I managed to do it and found it rather painful I wanted to share the moment with you :)
This is a commented copy/past of the operation log.