Installing Voxel.js I just discovered voxel.js, which is a web-based voxel engine that can be used to build block-based games like Minecraft. It’s written in node.js, so lets get that set up. Voxel.js requires node.js 0.8.0 or better, and Ubuntu’s repositories supply 0.6.19, so we need to set up a PPA to get the latest version. sudo… Continue reading Mucking About with Voxel.js
Month: January 2013
Dependency Injection and Drupal 8
Drupal is changing a lot in 8.x, and one of those major changes is adding the Drupal Dependency Container. What is that exactly? Explain Yourself Dependency injection is a design pattern used to dynamically load service objects, such as a mail delivery service. Normally an object decides what service classes it will use – it… Continue reading Dependency Injection and Drupal 8
BumbleBee drivers on Ubuntu 12.10
My ASUS laptop has 2 graphics cards, one Nvidia and the other Intel. Ubuntu uses the Intel one by default, but that leads to poor performance for gaming. So I need to install the Bumblebee drivers. sudo add-apt-repository ppa:bumblebee/stable sudo add-apt-repository ppa:ubuntu-x-swat/x-updates sudo apt-get update sudo apt-get install linux-headers-generic sudo apt-get install bumblebee bumblebee-nvidia bbswitch-dkms Reboot or re-login Swat PPA has the latest Nvidia drivers. Except… Continue reading BumbleBee drivers on Ubuntu 12.10
Features Information Architecture for Drupal 7 Site Builders
Features is a great module that lets Drupal developers export configuration normally stored in the database out to PHP code, which can then be committed to version control and deployed. It’s pretty much a required module these days, but what is the best way to use it when building a site? When should a developer… Continue reading Features Information Architecture for Drupal 7 Site Builders
Clean URLs for WordPress
Clean URLs are great for getting up in the search results, and they give more meaningful links for users too. Here’s how to set them up in WordPress 3.5. 1. Settings->Permalinks 2. Choose ‘post name’. 3. Update .htaccess using the code at the bottom of the page. WordPress can do that automatically if it has… Continue reading Clean URLs for WordPress