trianglify-api

A few days ago I've come around a quite nice javascript library which generates random pattern SVGs consisting of triangles. It's called Trianglify. The result may look kind of like this: I've rendered a SVG file as PNG as you can see. Of course, those images are ideal for using them as backgrounds or placeholders. Somehow I felt the need of writing an API for that, so you can autmatize the process of generating those SVGs and automatically convert them to PNG You can try it out at Heroku: http://trianglify-api.herokuapp.com/image.svg or http://trianglify-api.herokuapp.com/image.png and feel free to fork and contribute! Cheers!…

Read full article ›

instancetype vs. id

Bringing it to the point, using - (instancetype)initWithFoo:(BOOL)bar has no technical advantage over - (id)initWithFoo:(BOOL)bar except for code consistency. As the compiler automatically translates id to instancetype. It's different with convenience constructor methods as an id won't get translated to instancetype there: + (id)initWithFoo:(BOOL)bar will return a generic object as where + (instancetype)initWithFoo:(BOOL)bar will return an object of class "instancetype". Thus, you got to take special care when instantiating singletons as it may easily conflict with the singleton pattern. Say you've got a class called MySingleton and you'd like to subclass this class and instantiate it using - (instancetype)sharedInstance what happens is that if the sharedInstance method is called…

Read full article ›

SSL on [redacted]

As from today, this blog is (optionally) available over an SSL secured connection using a self-signed certificate. As I've migrated to Heroku on the 30th of July 2014, I'm no longer offering my self signed Certifiacte. Sorry folks, but as no sensitive user data are transported, I think it's ok :-) The fingerprint is was 0D:C5:C8:1D:8C:DE:02:35:B7:21:77:FF:71:DB:C3:78:D8:DE:D6:8C if you'd like to confirm that you're not beein spoofed. Cheers!…

Read full article ›

Setting the Timezone of your Ubuntu 12.04 machine

This evening I realized one of my VMs' Timezone was incorrectly due to some date shown wrongly in my Node.js App. A look at cat /etc/timezone revealed: America/New York Nope, that's not quite correct, setting the Timezone using dpkg-reconfigure tzdata Did it's job quite well ;-)…

Read full article ›

SimPholders

I just meet an App helping me to fiddle around in my iOS Simulator's App-Folders without digging deep thorught my Filesystem, take a look at SimPholders.…

Read full article ›

JSON Accelerator

If you ever need to generate an object model of a JSON payload I can clearly recommend you JSON Accelerator which is available for free at the App Store. Regardles wether you'd like to generate Objective-C, Java or Python classes, this small handy tool does it all.…

Read full article ›