Year: 2011

  • Christmas gift to the Internet: Hundstallet WordPress plugin

    I recently fell in love with _all_ the homeless dogs on the Hundstallet website. I’m sure everyone would. And seeing as dogs has been mans best friend for many years, i thought we’d better give something back. When installed, this WordPress plugin will override your theme’s 404 page and instead display a random homeless dog…

  • WP e-Commerce on multisite with domain mapping

    Using WP e-Commerce on a WordPress multisite is easy. But getting it to work with Domain Mapping proved a little tricky. WP e-Commerce adds a few options to the wp_options table, like “product_list_url”, “shopping_cart_url”, and a few others. These are full links containing the domain name from your multisite setup. If you want your customers…

  • CodeIgniter/ActiveRecord setup to use master + slave db replication

    This is how you can set up CodeIgniter to direct mysql queries to different read/write hosts in your db replicated environment, using a db_slave for your SELECT’s, and a db_master for the INSERT/UPDATE/DELETE queries. File: application/config/database.php Specify the different database hosts in the database config file: < ?php if ( ! defined(‘BASEPATH’)) exit(‘No direct script…

  • Fetching WordPress content from CodeIgniter

    In a few recent projects we’ve used the excellent WordPress admin for content entry, but built the public facing stuff in CodeIgniter. Making these platforms talk to each other is fairly simple, and this is what we’ve learnt along the way. – Do not, ever, initialize WordPress to fetch the data. WordPress is quite the…

  • Moving WordPress 2.6 posts to a new 3.x installation

    You have an old 2.6 version of WordPress with 2 000+ posts and 100 000+ in total comments. Today you have installed a brand new WordPress 3.x blog and want to import all data from the old blog but it is just too much to export with the built in export function in WP 2.6.…

  • Multiple domains on one WP network installation

    Setting up a new WordPress Network is from version 3.0 very simple and done within 5 min. To set this up so you can use multiple domains to your network blogs is no biggie that either. But what if you want to have multiple domains pointed to the main blog/network and not the sub blogs?…

  • WordPress plugin for fetching hashtag images

    Some time ago i made a quick and dirty site for displaying images from a certain Twitter hashtag. Some hours ago i was asked to tweak this into a WordPress plugin, and here we go. This is just tested on my environment, but should be alright on any WordPress 3+ installation on PHP5 with libcurl.…

  • Line-out scrobbler – when DJ’ing

    Line-out scrobbler – when DJ’ing

    When DJ’ing at Debaser Slussen yesterday, we decided to hook up the Line out scrobbler to the DJ mixer. I knew that Echonest wouldn’t be able to resolve all weird stuff we play, but was hoping for at least 70% success rate. Unfortunately we had a resolve rate of about 20%, which make our little…

  • Line-out scrobbler

    for years i’ve been trying to hijack music recognition services like shahzam to be able to recognize music. i’ve finally got this working thanks to the fine guys at echonest, who kindly provide a proper api for this. my proof of concept is running on a spare macbook. here’s how it works on the mac…

  • kanjagcykla.nu

    kanjagcykla.nu

    Vi som bara cyklar av estetiska skäl är rätt kräsna när det gäller väder. När man saknar skärmar vill man inte att det ska regna. Kanjagcykla.nu är en mobil webbapp som berättar för dig, utifrån var du befinner dig, om du kan cykla eller inte. I bakgrunden Koppling till yr.no:s API mongoDB med en massa orter…

  • NOW On Roskilde

    Now On Roskilde is a mobile application which users easily can add to their homescreen. It shows what’s on right now, together with related artists playing in the near future. Since nothing is playing right now (+ the correct feed hasn’t been published yet), the app is pretty worthless at the moment. There is a…

  • Sami language detection – fugly hack!

    so you want to know if a text string is in sami? sami is way too indie for google translate, so i made a really ugly hack to check if a sentence seems to be sami or not. it’s php, you can download and use any way you want. i have no idea what kind…