currentColor

currentColor is a quite unknown CSS value with good browser support, and i thought i should check it out and see if i could use it for something useful. It’s supported in all major browsers according to caniuse.com, except Internet…

Writing CSS with ITCSS

Inspired by Harry Roberts’ talk about ITCSS at Trondheim Developer Conference in October, i decided to use it for a redesign/optimization i was going to work on for a client at work. What is ITCSS? ITCSS stands for Inverted Triangle…

When ideas become an obstacle

Everyone has ideas and it’s a good thing we have them. But for me they can sometimes become an obstacle. That’s because i always see stuff i want to improve in the solutions i use and get ideas of things…

Creating a command line tool with Node.js

Command line tools are always useful. They can help you do stuff faster and be more productive. And with Node.js it’s really easy to create them yourself. The easiest command line tool may be something like this: #!/usr/bin/env node console.log(process.argv);…

Trondheim Developer Conference 2014

Last week I attended Trondheim Developer Conference #tdconf in Trondheim. It was the first conference I have attended and I must say it was fun and inspiring. I really liked going, and it was a nice way to learn new…

Creating patches for Git

Today i had to fix some bugs in a contributed drupal module in a project i’m working on, and to make sure my changes was not lost in a module upgrade i created a patch for them, and here is…

Configuring Varnish for WordPress

Varnish is a very effective caching software, it can cache every part of your WordPress site. But when you turn it on you loose some nice features of WordPress. Varnish works by sitting in front of your web server, and…

Featured image as background image

If you have a theme with the custom background image feature enabled it’s pretty easy to replace it with the featured image of your posts. First you need to add the wp-head-callback-attribute to your add_theme_support(‘custom-background’)-function: add_theme_support( ‘custom-background’, array( ‘wp-head-callback’ =>…

WordPress development with Vagrant

Vagrant is a tool for creating virtual development environments. It allows you to setup a environment with the OS you want and all the functionality you want without messing with your computer. Why vagrant? Up until recently i used xampp…

Atom.io

Github just released a beta version of their new editor Atom, and i must say it looks good. It has a very clean user interface, and i must say i like what i see. The editor is highly flexible with…