Mar 29 2017

Simple Algebra

I always forget or mix up how to extract variables from a formula when division is involved, which always slows me down as I have to sit with pen and paper to get it straight. So lets just get it straight and simple here, so I can look it up whenever I need it!

(Note: the one furthest down is the interesting one. Not even sure why I have addition in there, but I let it stay.)

Oct 12 2016


A few days ago I came across Markdeep. A simple way to write formatted documents using markdown syntax.

I think markdown syntax is nice, and I'm already using it for all content on this site.

The idea is that you only need a small snippet of javascript text in the bottom of the document. You edit it in your regular notepad app, and view it through a browser. It will fall back to unformatted markdown text (still pretty readable) if it cannot fetch the javascript file.

However the original markdeep.js has a big flaw. At least for me! It cannot detect single line breaks! Like this one. So I modified it a bit.

If you want to use it, just copy and paste the following snippet in the bottom of a text document, and make sure the file ending is .html.

<!-- Markdeep: --><style class="fallback">body{visibility:hidden;white-space:pre;font-family:monospace}</style><script src=""></script><script src=""></script><script>window.alreadyProcessedMarkdeep||("visible")</script>

You might want to paste the following at the very top <meta charset="utf-8">

View a demo page with all the features

Mar 09 2015

Linking Libraries in C++ (Linux)

(Disclaimer: I am not an experienced C++ developer, there might be inaccuracies in the following text. I will correct any mistakes I’ll find as I progress. This article is mainly targeting myself for future references).

Oct 29 2014

Profiling Out Of Memory Exception on Android devices

Last week at work we noticed a huge amount of OutOfMemoryExceptions being reported in the Android app that I work with through Crashlytics.

May 29 2012

Actionscript Vector Short Hand Notation

I can never remember the short hand notation for Vectors in actionscript 3, so I write it down here once and for all. Hopefully it might even help someone else.

You can declare and instanciate a new Vector by typing one of the following:

// Long way
var vec1:Vector.<int> = new Vector.<int>();

// A little bit better
var vec2:Vector.<int> = Vector.<int>([1, 2, 3]);

// Yeah, I like this one B-)
var vec3:Vector.<int> = new <int>[1,2,3];
Nov 05 2010

Git Cheat Sheet

I’m pretty experienced with svn, but I’m a total newbie to git – and having some problem remembering the all the command-line syntax, so I’ll use this page as a cheat sheet. Feel free to bookmark =)

Apr 27 2010

A collection of tutorials

Here are some really good tutorials. They are definetly worth your time! Excellent tutorials by Keith Peters about Perspective, Elasticity, 3D Rotation and more. A good place to start looking for your first steps in 3d! Learn some really cool old school computer graphics effects such as perlin noise fire, ray casting or some Image Arithmetic.

Feb 28 2010

How to make a game like Metro.Siberia

A guy named Emanuel Feronato has written a series of tutorials about how to make a game like Metre.Siberia. I think the tutorial is a good place for thoose of you who are pretty new with flash/actionscript, and I’m flattered that he choose MS to make a tutorial of!