VGTech is a blog where the developers and devops of Norways most visited website share code and tricks of the trade… Read more



Are you brilliant? We're hiring. Read more

The pros and cons of Apples Newsstand, is it worth it?

iOS

Apple introduced Newsstand in iOS5 as a single location for users to gather all their magazine and newspaper app subscriptions. From the users perspective its a type of folder where all their news/magazine periodicals (that support Newsstand) are located. There is also a link to the Newsstand section of the App store where a user can discover new publications.

If you are publishing a news app you have the option to add it to Newsstand, before you do you should consider the advantages and disadvantages of Newsstand.
(more…)


Node and systemd, bff!

DevOps

Since Centos7 was released in July, a “nondesktop” distro(other than rhel7 ofc) is using systemd.
Like it, hate it or discuss it, systemd is here to stay.
As we have been discussing internally how to manage startup of nodejs apps, using monit/pm2/others has been alternatives, and now, imho, systemd is sailing up as the better option. And the main reason is KISS. systemd will already handle the rest of your stack, so why add more.

So how to use it? This is the simplest way.
(more…)


Less is more

Design

One of the things I remember the most from my first year at design school back in 2002 is the phrase “less is more”. The words originally came from architect Ludwig Mies van der Rohe in the early 20th century, and is the unofficial mission statement for the “minimalist” design trend. Twelve years later I can still hear the voice of my teacher explaining the importance of white space, contrast, typography and grids.  (more…)



NPM, Travis, Node 0.8 and the “Caret Operator”

JS

If you have a node.js project that you want to have tested using Travis-CI, you may run in to a problem if you want to support node <= 0.8. The reason for this is the new caret operator, which was introduced in node-semver.

This module is used by npm to figure out how to resolve versions for your dependencies, and while it’s a great idea, it fails to work on older node versions without upgrading npm first. It’s actually fairly trivial to fix this, however. (more…)


Setting up a mobile device lab

Mobile

It is becoming more and more challenging to test apps and websites on different devices, with different screen sizes, running different operating systems and with multiple browsers installed. How can you guarantee that your website or app works on every device and on every browser?

Nothing beats testing on the same devices as your users, not emulated or simulated versions of those devices. Physical interactions like pinching, zooming and scrolling, hardware features like the camera, GPS locations, the accelerometer, testing real occurring events like battery consumption or site performance are all best tested using physical devices.
(more…)


The pursuit of perfection

Many see the aspiration for perfection as an unrealistic endeavor and a recipe for unnecessary strain or disappointment. Most of us know from experience that virtually nothing in our world ever reaches a static state of perfection. Yet, there are ways to relate to the notion of perfection that is both practically useful and inspiring. Think of perfection as a journey – a direction, rather than a final destination. The pursuit of perfection is a consciously directed process of continuous improvement. It serves as a driving force, moving the present condition in the direction of perfection – the desired goal. (more…)


Less code, more beer

Misc

So, a couple of months ago I quit my job of almost 8 years as a developer here at VG to start a micro brewery in my hometown of Fredrikstad, Norway called Ego Brygghus. Because of this I won’t be writing any more posts on this blog (unless I can write some guest posts about brewing beer in the future that is).

I hope you have enjoyed at least some of the stuff I have been writing about since we started. I’ll leave you with a list of some of the (still relevant) posts I have written:

So, until next time, cheers!


Look, look – we built something!

Carpentry

As mentioned in one of the previous blog posts, two of the guys from development @ VG went to The Gathering last week. Together with Prisjakt and Level Up they had a booth there to get in touch with the young and bright geek minds.

With them to Vikingskipet they brought our new pride, and proof of the development departments handiness; a wooden, two by two meter Level Up logo with green cold cathodes. Handcrafted by Espen H, André and Kristoffer. Below I’ll share some pictures from the process. We had a really good time and I think all three of us would do this again any time!

Oh, did I forget? We don’t usually do stuff like this, so we’re very happy with ourselves :) (more…)


JavaScript: What the hell is this!?

JS

In this post we will cover some JavaScript basics with focus on areas experienced JavaScripters take for granted; but beginners sometimes struggle with.. If you fall somewhere in between then maybe this post will teach you something new!

(more…)