Hi, I‘m Martin.

📑 👥 📖 🌄 🔊


12 Mar 2014 Heroku-like Deployment With Dokku And DigitalOcean

Over the weekend I sat down to play around with Docker/Dokku and was able to set up a small machine on DigitalOcean that basically offers Heroku-like deployment. It was surprisingly simple so here is some rough outline that should get you going.

Create a Droplet at Digitalocean

Go to DigitalOcean and create a droplet (note the comments below the screenshots):

Make sure the hostname is a fully qualified domain name, as it will be the git remote you'll push to to deploy.
When selecting the image, go to Applications and select the Dokku one.

There are some unresolved problems with Dokku on Ubuntu 13+ so if you are not just playing around you might want to setup Dokku manually. After that you’re ready to hit the create button and a droplet will be created within the next minute. The last bit of server-setup that’s required is Dokku’s.

Setting up Dokku

To get to Dokku’s setup screen just steer your browser to the IP shown in the droplet’s detail view:

What you’ll see next is Dokku’s setup screen:

Add an SSH key, tick the virtualhost checkbox, and make sure the hostname is correct.

DNS Setup

To get the hostname you chose earlier actually point to your machine running Dokku you need to add two A records to the zonefile of your domain. This strongly varies between domain/DNS providers so I can’t exactly say how it’d be done for yours. Whats important is that your provider supports wildcard entries. Also the value of an A record should be only the subdomain part of the hostname you set earlier, not the complete domain.

A       <subdomain-of-hostname>      <droplet-ip>
A       *.<subdomain-of-hostname>    <droplet-ip>

# in a zonefile it’d look like this:
*.apps 10800 IN A 107.170.35.171
apps 10800 IN A 107.170.35.171

Deploying

After you’ve waited three hours for DNS servers to propagate the changes you should be able to do something like the following:

git clone git@github.com:heroku/node-js-sample.git
cd node-js-sample
git remote add digital-ocean dokku@apps.example.com:nodeapp
git push digital-ocean master

Now going to nodeapp.<dokku-hostname> should bring up “Hello World” from the app we just cloned and pushed.

If you want to add have a custom domain point to your app you’ll need to either push to a remote like dokku@apps.example.com:example.com or edit the nginx.conf that comes with Dokku’s nginx plugin.

Thanks to Dokku’s Buildstep that utilizes Heroku’s opensource buildpacks you can now deploy almost every application you can deploy to Heroku to Dokku as well.

Have fun!


19 Feb 2014 Woodworking Masterclasses

Back when I lived at home my dad used to make fun of my mechanical skills. He said if everyone just sits in front of computers the whole day no one will know how to drill a hole at some point. He would like what follows.

Woodworking Masterclasses is an online course to woodworking. It’s the first time that I’ve seen such high quality material about learning a craft. They offer a simple monthly subscription to their courses with a new video being released every week. The videos are top-notch. Kind of like you would expect it by a company like Treehouse but not by people who do woodworking and are probably not too familiar with cutting videos and this type of stuff. Take a look:

Clock Episode 1 from woodworking on Vimeo.

I like how the internet supports the ongoing evolvement of crafts and woodworking has always fascinated me. These videos make me want to be at a farm with a huge workbench.


07 Feb 2014 Early Adopters And Inverted Social Proof

Hirschman credits the stability of early America with the fact that discontents could simply travel west until they felt sufficiently freed from its rules and restrictions. […]
There’s no limit on the number of possible subreddits, stack exchange sites, or wikipedia pages that can be made, so a user can always keep traveling west until they find something that’s worth sticking around to defend.

A great analysis of why people are early adopters and how the constantly changing face of a community can affect their loyality to a product. One of those timeless reads you should probably re-read every now and then.


05 Feb 2014 Living Small

Living in a world where consumerism appears to be the predominant behaviour it seems more and more exciting to me to live a less materialistic lifestyle. What follows are some of the things that stimulated my thinking — maybe they do the same for you.

After stumbling upon Bruce Hauman’s blog while trying to figure out some Clojure stuff I discovered another post on his blog where he talks about building a geodesic dome in which he’s now (partly?) living for 3.5 years. It’s an amazingly analytical post about building something and simplifying it to it’s purest, most functional form. Motivated by spending less money on rent he iterated on his idea resulting in this construction:

In case you were wondering what this “geodesic dome” thing looks like

In his post he also mentions the Tiny Housing Movement through which I found a TED talk that nicely illustrates the pitfalls of the idea of living “a good life” once you have your own income. The key line in the talk is: What does freedom mean to you? I wanted to give a small summary here but, as it is with TED talks, the talk itself does it’s job pretty well.

I believe as thoughtful members of our society we should rethink our relationship to stuff. How can we, as a society, make better use of the things we have at our disposal? What do I really need to own to live my life? Ideas like the share economy seem like a logical step with the increasing ease of sharing/routing information.

Purposely living with less is obviously not a new idea and so it happens to be part of things like the 100 Things Challenge. Coming across the 100 Things Challenge again and again I want to try it myself. In February I’m going to create an inventory of the things I own. Let’s see if the number of things I own is going to be above or below 100.

Stuff has gotten a lot cheaper, but our attitudes toward it haven’t changed correspondingly. We overvalue stuff. Stuff by Paul Graham

Think about it.


09 Jan 2014 Sending You a Telegram

Telegram is a new messenger built by Pavel and Nikolai Durov. They previously founded vk.com, Europe’s second largest social network after Facebook (especially popular in Russia).

A Few Reasons Why It’s Great

  1. Unlike most other messaging apps their clients (Android, iOS) source code and the underlying protocols are released with an open source license (GPL v2)
  2. The founders note that they have no intention of making money with Telegram If they ever run out of money they want to finance it with donations and non-essential goodies.
  3. There is an API that allows anyone to hook into Telegram and build clients, bots and additional tools.
  4. The open API has led to the creation of Mac, Windows and various other clients (eg. commandline) that allow you to use Telegram on multiple devices (with proper syncing).
  5. Groups can hold up to 200 users (compared to WhatsApp that allows you to create 50 groups à 50 participants max.)
  6. All communication in Telegram is encrypted and there is even an option to create “secret chats” that: won’t be stored on Telegram’s servers, can’t be fowarded and will delete themself after some time.

Currently available for iOS, Android, Mac & Windows there is really no reason not to make the switch.

Send me a message how you like it: +49176 64718250.
(It’s easy: just tap the number on your phone, save me as contact and I’ll appear in your Telegram contacts.)

Edit: Although it’s not a completely decentralized service (as communication services should eventually be in the future) it seems to be a big step in the right direction.


« Prev 1 2 3 4 5 Next »