Archive

DuckDuckGo instant answers

DuckDuckGos instant answers is wonderful. Without realizing it I used it to quickly find out the current status of GitHub’s service

Read

Optimize , list items

A common solution for adding a , between a list of things in html/css is the following css.

Read

A fluid width, equal height calendar view.

We created a calendar view for work some weeks back and we wanted the cells to be equal height/width. If you don’t need it to be fluid it’s not a hard problem. But when you want the calendar fluid it gets trickier. To get the days in a week equal width you can either go with the…

Read

Optimizing your WordPress site for Google PageSpeed Insight

I spent some time optimising my page-loading speed a while ago. While I’ve not yet looked into optimising the html and css or even the rendering. Since this is a rather simple page I believe the optimizations I’ve done so far is the biggest improvements you can do. Optimize html…

Read

A very flexible full-width image grid using flex

It’s always an interesting challenge to minimize the amount of Javascript needed to solve a problem. Using smarter CSS, improve your HTML, solve the problem in a different way. This time I looked at how to create a full-width image grid with as little Javascript as possible. The…

Read

Newspaper layout on the web

While the web have come a long way since spacer gifs creating more advanced layouts is still tricky at times. I found an interesting layout question on Stack Overflow some time ago. The author wanted a four column layout with an image spaning 3 columns. A simple layout it would…

Read

Build your docker images from npm

The background, docker and gitflow At work we’re slowly moving over to use docker for all our servers. While I’m not in charge of this I’ve also been toying with moving my work environment to docker as well as development deploys. We’re using gitflow for development meaning we’ll…

Read

Bluetooth problems in Yosemite

I recently ran into some very weird problems with my bluetooth trackpad and keyboard in OS X. Google told me to reboot, resetting SMC or replacing batteries but nothing worked. After even more googling I found a suggestion about removing your bluetooth settings files. This…

Read

Animated toggle checkbox without javascript

and This all thing could have been so much cleaner. Sadly Firefox stoped this (and very possibly also older IE). Firstly Mozilla doesn’t actually hide the checkbox when you add instead it simply just removes all styling. This might have been ok, we could solve this by…

Read

My washing machines are talking to each other

Mitt första twitter-meddelande Men jag minns inte alls vart jag fick det ifrån. Jag hade gärna sett en tjänst som också påminner mig om varför jag skrev det. My washing machines are talking to each other

Read

Broken MySQL on Mavericks

Can’t find file: ‘./mysql/plugin.frm’ (errno: 13 - Permission denied) The reason this happens seems to be that some upgrade process either in brew or in os x changes the permissions for mysql. The solution is simple: This solves the problem for me on Mavericks using mysql…

Read

Ghost is almost ready!

Ember.js and Apps With 0.5 Ghost will start using Ember for the admin interface and will also support apps. Apps is Ghosts solution for plugins/modules or whatever you want to call it. This opens up for more developers to contibute with their apps. I for one will try to implement…

Read

Bot.js a pluggable node.js irc bot

Yet another bot? Yeah that’s right! I’m definitely reinventing the wheel here. There’s already lots of great bots, even great node.js bots. But that’s not the point. I’m just doing this to learn node.js Plugins & Design decisions I’ve tried to extract as much functionality as…

Read

Mailbox – Zero inbox

At work At work I’ve been running a very successful inbox zero for some time. Once an errand is taken care of it goes in the archive. If I need to remember something I move it to the todo list (currently using Wunderlist). At the moment this is working very well and I manage to…

Read

Heroku uses a very old version of node.js

But there’s a solution I spent a while wondering why my code that ran so good localy wouldn’t run on heroku. I couldn’t figure it out when I suddenly noticed that the node.js version wasn’t 0.8 but instead 0.4! Node.js versions on heroku tells you to just add the following to…

Read

dust.js a javascript template engine

Node.js and Client side dust.js seems to be quite similare to mustache but with some added niceness. It also playes nice with node.js and shouldn’t be to hard to get working in express. I’ll be playing with it in the comming weeks.

Read

My currenct Sublime Text 3 configuration

Sublime Text 3, with Phoenix Dark, Base16 color scheme and Source Code Pro. Package controll To install the theme and color scheme I used Sublime Package Control. Since things have change in Sublime 3 Package Control couldn’t be installed as usual but instead needed to be grabed…

Read

DigitalOcean offers 512MB vps for just $5 a month

DigitalOcean offers very cheap VPNs starting at just $5 a month, with servers in both US and Europe. Buy a VPN for less than a Coffee Since I generally spend more than $5 a day for coffee I thought I’d skip just one coffee a month and treat myself to a VPN. From what I’ve seen so…

Read

Write using ruby and rake – Jekyll again

Easier deploy This is a small task that simply deploys the current changes to github. Create a new post This adds a new post to the given category and opens the newly created post in my favorite markdown editor Mou.

Read

Sites that show of

En samling som kanske fylls på Cabin Porn - Sidan är absolut sfw trots dess namn. Simple Desks - Inspiration för jobbskrivborder?

Read

on{X} for android

New Nexus 7, time for a Nexus 4? I recently bought an Nexus 7 to play with and had to try one of the best products created by Microsoft, ever. on{X} lets you automate almost anything on your phone. Microsoft have created a couple of different recipes for you but you can easily…

Read

Https redirect for htaccess

Simplest way to redirect directly in htaccess Sometimes you don’t have access to the server and have to do a redirect in a file.

Read

Ruby screencasts

Just a small collection Will update this post when I find new good screencasts. Rubytapas - Costs $9/month but theres some free casts that I’m currently watching. Railscasts - Lots of free episodes but also have a pro subscription for $9/month.

Read

Track PDFs in Google Analytics

With just 3 lines of code After a quick Google search I couldn’t find a really clean way to track PDF clicks. So I wrote my own solution instead. This solution depends on jQuery. Since I had to implement this on a somwhat old jQuery version I had to use instead of . is…

Read

Att blogga med markdown & Jekyll

Markdown till statiska filer Den största skillnaden mellan Nanoc och traditionella blogglösningar är att Nanoc generera statiska html filer. Det här innebär betydligt snabbare sidladdningar och mindre serverbelastning. Men det betyder också att du aktivt måste generera dessa…

Read

Google ser dig – Det gör DN också

DN övervakar dig rejält I artikeln namnges banker, partier och myndigheter som använder Google Analytics (GA) och det lyfts fram hur otäckt det är. DN har analyserat tio personers surfande och kommit fram till att många siter använder Google Analytics för att samla statistik om…

Read

Kiva

Låna ut pengar utan ränta! Jag har länge gillat iden med Kiva och hur man enkelt når ut till människor som behöver små lån runt om i världen. Att ge lån istället för bistånd känns vettigt och det flyttar över ansvaret till låntagarna. Det är upp till dem att bestämma vad de vill…

Read

No Index

What does it do? All it simply does is to warn you if you ever have a tag in your html. If you ever happen to forget to turn the privacy setting off before going live it will keep nagging you about it. The same thing goes if you for some reason happen to use a theme with it…

Read

Autocomplete from any folder using CDPATH

The magic of CDPATH Bashs man page describes what the `CDPATH variable does. The search path for the cd command. This is a colon-separated list of directories in which the shell looks for destination directories specified by the cd command. A sample value is “.:~:/usr”. This…

Read

Privatkopieringsskatten betalar för piratkopieringen?

I skuggan av FRA och IPRED debatten I skuggan av FRA och IPRED debatten har jag funderat kring skatten på lagringsmedia som faktiskt finns i sverige, 54% i extra privatkopieringsskatt betalar vi till exempel på tomma dvd skivor http://www.idg.se/2.1085/1.131367. Denna skatt går…

Read

The gummi bears only on 8th place

Only 8th place The author of this The 10 Best 80s Cartoon Theme Songs cant have heard the gummi bears theme song in danish. If he had it would definitely been first, given that he speaks swedish.

Read

Urusel på att blogga

Urusel bloggare Jag är verkligen en urusel bloggare. Jag väntar konstant på något tillräckligt intressant och unikt att blogga om. Vad finns det för mening med att blogga om ipred, när google redan ger 800 000+ träffar. Varför skulle jag blogga om mina vpn, slicehost, och min…

Read

Top 4 places on Google

Google analytics makes it easy I just did some google analytics research. I’m using it on this page to track the non-existing visitors. And as I suspected not many people are visiting. But one thing that did surprised me was that someone had done the following google search site…

Read

Reasons for switching to Habari

Server load I’ve used Wordpress for years and year without problem, but it never really felt right. So when I came across Habari I decided to try it out. Not that I’ve published anything for Wordpress but I’ve written a couple of plugins and themes so I’m used to how it should…

Read

Quick svn-web guide for Habari

It’s simple Quick explanation on how to get your habari into your own svn repository. All commands should be run in a console.Ok, so here goes. I assume you’ve got your svn setup. If not google it Make sure you have a new svn repository with the standard branches/, and…

Read

Mitt första blogginlägg någonsin

Ok. I guess the time has come The point of no return. I’ve had a blog for years and years but I’ve yet to write a single entry. So here it is. My first blog entry. If this was an ordinary first-blog-entry I would probably tell you about me, but I’m no fun so what’s the point?

Read

Habari on nginx

Doing it habari style Since this site is running on a vps with a limited amount of ram I felt the need of changing from Apache to something less memory consuming. Slicehost is my new host and they have an excellent section of articles including one explaining how to install Nginx…

Read