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
Setting up Rasbmc (XBMC) on a Raspberry Pi
This is a cheap way to get a high quality and flexible media center sitting under (or in my case, behind) your TV. RaspBMC From Windows: Download the installer Insert your SD card into the computer. Unzip and run the raspbmc-win32 installer. Once that is done, stick the card into the Pi and give it… Continue reading Setting up Rasbmc (XBMC) on a Raspberry Pi
Christmas 1983 Ohh yeah, Galaxy Commander!
Full build instructions at http://letsbuilditagain.com/instructions/6980/, could be fun!