Initialize UIColor from RGB hex in Swift

Want to initialize a UIColor object from a hex code?

Create a new Swift class named “UIColor+FromRGB.swift” with the following content:

Initializing a UIColor object then is now a matter of a one-liner, e.g.:


Seat map shows best seat in aircraft

You most certainly know the seat maps that allow you to choose your seat during check-in. Some airlines provide very detailed seat maps, some don’t and you are left to randomly chose one. seatguru solves this. Select the airline you’re flying and the aircraft type and you get a detailed overview which seats are ‘good seats’ and ‘bad seats’.

Airbus 312 Seat map
1) In the online check-in (Swiss Airlines Airbus 312 Seat Map)
Select best seat available on
2) Select best seat available on
3) Seat with comfy legroom

With a little luck you get a seat with plenty of legroom instead of a seat in the vicinity of the restroom…

Quick note: I am not affiliated with seatguru, nor got paid for this article. I just like service.

Unpack part’ed tarballs

Need to unpack a bunch of files such as:

with the following command:

cat bigfile.tar-part000* | tar xzf –

which untars the part file’s contents to the current folder.

Shredding data on your Mac

You need to get rid of data in form of files, directories or drives? May be you know the ‘shred’ command on linux. On OS X, there is srm (stands for ‘secure rm‘):

The following command will apply the secure remove to -directory in a -recursive way using all -force needed in a -medium (though DoD compliant) way.

My favourite five pics from our 4500 mile Africa trip

These are my favourite 5 pictures from our southern Africa trip through South Africa, Zimbabwe, Botswana and Namibia. Check out the gallery featuring a lot of other pictures -> check out full gallery

Love this image. Using it as background on my iDevices, Kruger National Park, South Africa
Victoria Falls seen from Zimbabwe
Jeffrey’s Bay view from Hostel, South Africa
Breakfast in the Dunes of Sossusvlei, Namibia
With the beat and the marcu, somewhere on the road
Elephant in Etosha National Park, Namibia

check out full gallery