Node.js garbage collection tip

Some node.js libraries leak memory or do not trigger garbage collection properly. This is very common problem especially when running them in a micro sized servers that have less than 2GB memory. For example when crawling web or using loops to process data can cause your long running script can hog all the memory in the system and […]

Angular 2 RC is here

On May 3th 2016, angular team finally released angular2 release candidate. As of writing this, latest version is rc.1. Not only did it change many things from betas, but also gave more incentive to consider developing your next web app with angular2. Release candidate introduced lots of package refactorings and seems to be missing animations. […]

Angular 1.5 component, $onInit and one way bindings

One of the most difficult to grasp things with angular has been directives. There are couple of problems with them: It’s uncommon name from other frameworks and therefore difficult to wrap your head around Syntax has many switches that depend on your angular version Lifecycle is complex with all the compile, link, controller hooks, leaving you wondering what […]

Angular 1.4 – what's new

Angular 1.4 has arrived with lots of new features. Here is a quick look for the top 5 features: Reworked animations. $animateCss can be used to simplify and support more complex animations than before. ng-messages evaluation. Until now you could just specify strings, now you can evaluate expressions with it. This helps with invalid form validation messages limitTo […]

Angular.js simplest possible tutorial

Angular.js is really popular technology for client-side JavaScript apps. To get started with angular.js, all you need to do is to include it into your page and it just works. No need for dependencies such as jQuery etc. Below is about the simplest possible app you can write with angular.js. app.js angular.module(‘myApp’) .controller(‘MyAppCtrl’, function($scope) { […]

Node.js introduction

Node.js is a technology that has been around for only few years, but it has matured remarkably fast during that time. Big reason of that is probably that Javascript has also risen from nice-to-have to must-have level in web development. This post will show how to get started with node.js and what it can be used for. Introduction […]

How to rewrite git history and remove files

If you have a git repository that contains files with sensitive information or large binary files, you probably want to remove those files before publishing the repository for larger audience. This is actually very simple thing to do with git. Git has a feature to rewrite the history, recreating the repository commit by commit, while […]

How to convert hg repositories to git

Git has gained lately lots of support, and it’s not a bad idea to migrate all your source controls under same system. In the past I often used hg because it had some nice features and better Windows support, but this does not matter anymore these days. So after looking for a solution for a […]

How to create rainbow text in HTML & CSS & JavaScript

Rainbows are colorful things. They make wonderful backgrounds, logos, but I think they are especially cool in texts. I’m certain that many people would like to use them in their web sites, but until lately there hasn’t been a easy and reliable way to achieve it.

Practical Guide To Objective-C Blocks

Objective-C blocks are still fairly new feature to the language. They are not as simple as they could be, and they don’t work on older iOS versions (only 4.0 and above). This is probably why you don’t see them used that widely. However, I don’t care about old iOS versions. Blocks can be extremely useful […]