exFat in Ubuntu 13.04

Ubuntu 13.04 doesn’t have support for exFAT filesystems, which are now being used on portable hard-drives, especially those with SSDs. Fortunately the fix is one line away: sudo apt-get install exfat-fuse Now reconnect your drive and it should be automatically mounted.

Apt can’t see sources? Try changing the User Agent

If you are trying to use apt behind a corporate firewall, try changing the user agent apt is using with wget to load the package lists. By default it uses: User-Agent: Debian APT-HTTP/1.3 which isn’t recognised by the filter. 1. Create and edit /etc/apt/apt.conf sudo vi /etc/apt/apt.conf 2. Paste the following into the file: Acquire… Continue reading Apt can’t see sources? Try changing the User Agent

Drupal 8 – Create a block plugin

This continues on from the previous post where we created a simple module. In this post we add a basic block, which is pretty easy as it turns out. Create a new file at lib/Drupal/thrones/Plugin/Block/ThronesExampleBlock.php and add the following: <?php /** * @file * Contains \Drupal\thrones\Plugin\Block\ThronesExampleBlock. */ namespace Drupal\thrones\Plugin\Block; use Drupal\block\BlockBase; use Drupal\Component\Annotation\Plugin; use Drupal\Core\Annotation\Translation;… Continue reading Drupal 8 – Create a block plugin

Creating a custom module with routing and menu items in Drupal 8

Drupal 8 changes quite a bit when you go to create a custom module.┬áThis post will take us through setting up a module and adding a route and menu item. We are going to create a module that lets us track whether Game of Thrones characters are alive or dead, because it’s damn hard to… Continue reading Creating a custom module with routing and menu items in Drupal 8