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 … Continued

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 … Continued

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 … Continued

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, … Continued

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 … Continued

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 … Continued

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. … Continued

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 … Continued

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 … Continued