Ghost + Amazon S3 = <3

Some days ago I've showed you how to deploy a Ghost Blog onto Heroku, using PostgreSQL and Amazon S3, as time passed by there has been a new Release of the Ghost Blog System, namely the big Update to v0.5.0 and finally v0.5.1. I've received quite some Feedback on my last Post, and on how to integrate S3 using this new Release. Well, integration with S3 pretty stayed the same, I've just refurbished the s3.js and forked Ghost so you can get it going immediately. Altenatively you may just check out Ghost v0.5.1 and apply this git patch: git apply https://github.com/kimar/Ghost/commit/1c9c1e33d172512a9543c7f69c006533667b89b8.patch Copy config.example.js to…

Read full article ›

Ghost on Heroku. The most complete Guide. (Ever.)

I recently decided to move my blog away from a hosted VM to Heroku. The main reason for this were maintenance costs. Please don't get me wrong, I loved (and still love) my VM hoster, and if your in need for a lot of custom Software etc. you won't get around setting it all up manually, but for the needs of my blog, this was a huge overload. The Key-Situation for this Post is as follow: Whenever I use {this}, I want you to replace it using a Value (you'll find out what I mean by reading the Text carefully :-)) So I decided to move all my stuff to Heroku, formerly working on my VM instance using a sqlite3…

Read full article ›

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 ›