Markdown

This is my first post using the WP-Markdown plugin.

“Markdown is a text-to-HTML conversion tool for web writers. Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML).”

I think the first time I’ve used Markdown was for GitHub Readme files. It feels very natural to structure [...]

Using Redis as Node.js Express Session Storage on Heroku

The default way to use sessions with Node.js and Express is using the bundled memory store. However, if you want to deploy your app to Heroku and use multiple dynos it won’t work because the memory store doesn’t work across dynos.

The solution is to use a database for session storage and it seems like Redis or MongoDB [...]

Node.js server-side compile Hogan.js templates

If you are using Node.js with Hogan.js you want to compile your templates on the server.
With Node.js you can create a route which looks like this:

Include it like: <script src=’templates’ type=’text/javascript’></script>
Templates are in the T namespace and can be renderered [...]

CoffeeScript with Sublime Text

Recently I’ve played with node.js and the Play! framework and I came across CoffeeScript.
CoffeeScript is a language which compiles to JavaScript. The advantage over using JavaScript is basically having a more compact language which looks a lot like Ruby. Sometimes one very readable line of CoffeeScript translates into 7-10 complex lines of JavaScript.

My dear friend Alec [...]