Node.js based Forum: NodeBB

NodeBB is a Node.js based forum software that has gained a lot of traction in the first year of its existance. It’s making use of socket.io to communicate between client and server in real time. This means that the whole experience of using a forum gravitates towards the feeling of a chat, with the benefits of only tuning in on topics that interest you. Continue reading “Node.js based Forum: NodeBB”

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 #6: Security and bcrypt”

GHOST 0.3: A Themes Structure

The theme structure in GHOST is something I’ve been really waiting to take a look at, mainly because I build websites and run blogs. The default theme casper is built using the handlebars template engine and we’re going to have a quick look at how everything is set up. Firstly I have to notice a resemblense to WordPress, which I personally like. Continue reading “GHOST 0.3: A Themes Structure”

GHOST launched: first impressions

The first public alpha has been released to all GHOST backers right now. While some of the emails still are rolling out, you can access the GHOST launch page, even if you’re not a backer and read about what’s inside and what shortly will be released to everybody. Continue reading “GHOST launched: first impressions”

jsnews.de – German JavaScript blog

UPDATE: I have closed down jsnews.de, but I’m still writing about JavaScript in German on my other other German Blog: http://vollzeitblogger.de/tag/javascript/

I’ve just launched jsnews.de, which is JavaScript blag in German. I’m hoping to contribute to the German node.js and JavaScript community through fast news and comprehensive tutorials. Looking for a good resource in German, I didn’t find a lot of frequently updated pages, so I made one. Continue reading “jsnews.de – German JavaScript blog”

Poet – displaying an author link

I’m still fiddling around with poet, the node.js blog generator and it’s really easy to add additional meta information like an author link for collaboratively driven sites.

Assuming you want to power a site with poet as a multi-user blog, you can easily attach the meta information in the individual MarkDown files:

{{{
    "title" : "Amazing Tutorial",
    "tags"  : [ "JavaScript" ],
    "category" : "Sanity",
    "date" : "2013-07-20",
    "author" : { "nick" : "Jonathan", "url" : "http://jonathanmh.com"} // additional line
}}

After that, these informations will directly be available inside your templates when you render the posts. Assuming the views from the example repository, these are changes you could make to your template files:

post.jade:

extends layout

block content
	article.post
		h1
			a(href=post.url)
				= post.title
		span.date #{post.date.getFullYear()}.#{post.date.getMonth()+1}.#{post.date.getDate()}
		- if (typeof(post.author) != 'undefined')
			span.author
				p  by 
					a(href="#{post.author.url}") #{post.author.nick}

		div.post.content
			!= post.content
		div.tags
			- each tag in post.tags
				a(href=tagUrl(tag))
					span.label.label-info #{tag}

includes/postSnippet.jade

div.post
.script(console.log(#{post}))

	h1
		a(href=post.url)
			= post.title
	span.date #{post.date.getFullYear()}.#{post.date.getMonth()+1}.#{post.date.getDate()}
	- if (typeof(post.author) != 'undefined')
		span.author
			p  by 
				a(href="#{post.author.url}") #{post.author.nick}
	article.post.content
		!= post.preview
	div.tags
		- if (typeof(post.tags) != 'undefined')
			- each tag in post.tags
				a(href=tagUrl(tag))
					span.label.label-info #{tag}

With this method, you can add all kinds of meta information, that you might like with your posts 🙂

Poet – a node.js blogging platform

Poet is a great little node.js based project that allows you to start a blog in no time.

TLDR; Put a bunch of MarkDown files in a folder and it’s available as a blog to the rest of the world. I just started a new project for JavaScript and I of course wanted to run it on JavaScript, even before GHOST was released, so I went with Poet.

The description of the project by the author made me smile, so I’ll just quickly share this quote: Continue reading “Poet – a node.js blogging platform”

Ghost: Blogging Platform on node.js: I backed!

I just backed Ghost on Kickstarter. Ghost is, according to the ambitious authors, going to be a blogging platform based on node.js, that will be extendable with plugins and themes, like WordPress.

My incentive for throwing in 10£ was that backers get a month early access to the projects source code, whereas everyone else will be granted that about a month later. Time for me to poke at this project, which I am burning to do. Continue reading “Ghost: Blogging Platform on node.js: I backed!”

Node.js and blinking keyboards

Did you ever want to make your keyboard back light (or any other light source you can control with a bash command) show Morse code?

keyboard_morse_code_nodejs

I have and since I’m primarily back on Linux now, this wasn’t a hard thing to do. For the first time I really looked at executing bash commands from inside node.js. The very quickly written and barely documented source is to be found here: https://github.com/JonathanMH/morse-board Continue reading “Node.js and blinking keyboards”

Firefox OS – The Web goes Native

A theory I share with many people is, that natively compiled code will lose many advantages and also the significance of advantages, compared to interpreted, JIT-compiled code. Here are my 800-something words on what I expect of Firefox OS and app/platform development in the future.

The kickoff in my head

I want to point some of the things out, that I was thinking about when I listened to Linux Outlaws 301. It’s a great linux podcast, that Lennart recommended to me a while ago and I’ve been keeping up to date with Fab and Dan ever since.

In their episode Fab questions why he would have a web app compared to a native app on his phone. Overall he is positive towards Mozilla’s initiative and their work on Firefox OS, but this skepticism towards web-apps struck me. Continue reading “Firefox OS – The Web goes Native”