How many work days are there per month for a given year?

by Hallstein Brøtan

True story: I got a request from our economy guy, he asked me if I knew some online service to give him the number of work days for a given month. Turned out that he was manually counting the number on his calendar (probably several times to be sure), and…

Code on the beach 2015 - Review

by Hallstein Brøtan

This summer, Hans Arne and Hallstein attended the Code on the beach conference in Atlantic Beach, Florida. This is our thoughts about the Code on the beach experience, the conference that promises to "learn code with your toes in the sand." 1. The conference Code on the beach is organized…

One to one (or zero) relationship using NHibernate

by Hallstein Brøtan

One-to-one (or zero) is a common relationship. It's when you want to store some optional information about something, but don't want all the columns in the same table. Still, I often find it unnecessary complicated when using an ORM like NHibernate or Entity Framework. I also see people avoiding this…

AngularJS with JSONP and how I get to work on time

by Hallstein Brøtan

My every morning challenge is reaching the bus to get to work on time. And the bus schedule is not something to rely on. Fortunately, the bus company in Oslo (called "Ruter" from now on) has its own REST API with real time data [1]. This is how I created…

Creating multilingual support using AngularJS

by Hallstein Brøtan

"Create multilingual support for the web site". I just got this task for a client project, and I think it’s fair to assume that others will get this task in the future, so this blog post shows how I implemented this for my project. Because the web site is…