Creating books with Gitbook

I’m currently tasked with the revision of some lecture material for basic HTML, CSS and PHP studies, so I thought I should give gitbook a try.

It’s a super sweet generator for creating an interactive website, a pdf and even epub from a loosely structured bunch of MarkDown files. You can imagine I love that.

Since I started playing with this locally, I didn’t have my content in a repository yet, but just in a folder and I simply didn’t get a hint in the usage instructions and got the following error:

Starting build ...
TypeError: Cannot call method 'replace' of undefined
 at Object.titleCase (/usr/lib/node_modules/gitbook/bin/utils.js:52:16)
 at /usr/lib/node_modules/gitbook/bin/build.js:36:44
 at _fulfilled (/usr/lib/node_modules/gitbook/node_modules/q/q.js:787:54)
 at self.promiseDispatch.done (/usr/lib/node_modules/gitbook/node_modules/q/q.js:816:30)
 at Promise.promise.promiseDispatch (/usr/lib/node_modules/gitbook/node_modules/q/q.js:749:13)
 at /usr/lib/node_modules/gitbook/node_modules/q/q.js:557:44
 at flush (/usr/lib/node_modules/gitbook/node_modules/q/q.js:108:17)
 at process._tickCallback (node.js:415:13)

Which was just me trying to write something else but the line below:

$ gitbook build -g jonathan/topic-book institution-webcourse/

After that everything worked fine. Since gitbook expects the source to be a repository it demands the author and title divided by the slash, like on github.


Github’s Atom Editor tried out

I’ve tried out Github’s Atom Editor shortly and I must say, they’ve come up with a pretty cool thing.

If you want to try it out, drop a comment, got 3 invites. At the moment only for Mac OS.

Here a couple of screenshots, thanks to Mikkel for providing hardware so I could try it out ;)


The welcome screen shows some general info and a small disclaimer.


MarkDown Preview ships with atom!


The configuration is saved in a file so you easily can synchronize it to other machines


The keybindings can be altered quite extensively


There’s a vim mode plugin already


The settings tab looks a little rough, but it’s functional


Themes can be written in LESS, which is awesome.

Let’s Play: Unganked (our new video game channel)

In my free time that is not spent on programming, blogging, learning, shooting and editing photos and video, I like to play video games, so the fantastic mad dog Mikkel and I have started our video gaming channel on YouTube.

We like playing video games, so we figured, why not leave the microphone rolling! If you like gaming, feel free to comment, subscribe or just have a look! :)



(everybody likes kittens!)

Visit, follow, subscribe and suggest what we should do better or what to play next in the comments!


Sublime Text style multi line selection with Vim

The multiple selection feature of Sublime Text is something that helps you a lot when you’re aiming to change a variable name multiple times in one file. This is immensely practical, also while re-factoring, changing font-names, colours or anything that appears more than one time in your files. The plugin can be found here: vim multiple cursors, I’ve also added it to my vim plugin repository.

Here an example, if I for example want to rename my callback function to cb:


The keybinding for selecting the next match is CTRL+N, to delete: x and to type something new: i (going to insert mode) cb.

CigTrack Day #6: Security and bcrypt

I’m a fan of improvisation, Duct-tape and hacking things into what you want them to do speedily and without a lot of testing. One of the areas, where I wouldn’t follow this approach is security.

Security is something many companies don’t take serious. Their servers get broken into, all their user’s data are stolen, leaked, etc. Not cool.

This is not because security is impossible, it’s because it’s just often ignored and can be expensive. Nothing is unbreakable, but in my opinion it’s worth to at least make an effort towards: hard to break. Continue reading


CigTrack Day #5: Sketching

Sketching is a more powerful tool than most imagine. Also it’s a lot of fun. It’s putting your mind on paper, in the awesome messy ways if graphite and ink! Today I want to show two screens of the app I’m building.


Since I had to spend some time on a train today, I knew I’d be willing to sketch, since it can be a bother to unpack your computer in overly crowded trains and if you frequently have to move, because you’re sitting on the ground some where, it’s just a lot more practical to just hold on to a sketchbook. Continue reading