I’ve recently been playing around with Android, and have been building a small app that uses MapView to display various locations on the map. I succeeded in drawing markers on the MapView using ItemizedOverlay, but was having a fair bit of difficulty drawing little bubble popups that appeared when you tapped on the OverlayItems (which [...]
Posted on May 12th, 2011 by Dave
Filed under: Android, Technology | 19 Comments »
I’ve built a plugin that adds XPath search functionality to Vim. Check out the demo video below. Features: Quick XPath search input with smart, context-sensitive tab completion Results shown in a pop-up results window. Jump to the line of a matching result easily. Debug invalid XML – jump to the the line number of an [...]
Posted on April 3rd, 2011 by Dave
Filed under: Vim | 6 Comments »
A post came up a couple of days ago on the Spotify “What’s new” feed: how to stream spotify wirelessly to your stereo, which got me thinking about something I’ve been after for a while – the ability to stream spotify audio to PS3. This is mentioned in the link, but the main method they [...]
Posted on August 15th, 2010 by Dave
Filed under: Linux, Music | 12 Comments »
For small Cake websites with admin routing enabled, I like to use the Auth component to require a login for all admin routes, and allow access to everything else using the following beforeFilter in the AppController superclass: function beforeFilter(){ $admin = Configure::read('Routing.admin'); if (isset($this->params[$admin]) and $this->params[$admin]){ $this->layout = 'admin'; } else { $this->Auth->allow(); } } [...]
Posted on April 7th, 2009 by Dave
Filed under: CakePHP, Technology, Web | 13 Comments »
In the first part of my CakePHP tutorial, I showed you how to use Cake’s Bake utility to set up the basic back end of an online illustration portfolio. In this part, I’ll tweak the automatically generated code into useable website and admin section and show you how to use some of Cake’s features along [...]
Posted on March 31st, 2009 by Dave
Filed under: CakePHP, Technology, Web | 13 Comments »
A friend of mine recently asked me to help him build an online portfolio for his illustration pieces, and I decided to use CakePHP 1.2 to get the back end up and running quickly. I thought someone might find a tutorial taking a simple website through from start to finish useful, so this tutorial series [...]
Posted on March 28th, 2009 by Dave
Filed under: CakePHP, Technology, Web | 12 Comments »
As you may know, if it can’t find an index.html the apache web server will show a list of files in the current directory. I was browsing through lists of images on my file server the other day and I thought, wouldn’t it be nice to have a next button? So I started digging around. [...]
Posted on March 1st, 2009 by Matt
Filed under: Technology, Web | 9 Comments »
Quick Note: This post was originally published on 02/02/2009, so is probably a bit outdated now. Today I had a go at installing awesome window manager. awesome is a great tiling window manager, useful if you have a large monitor and are fed up with having one window taking up all the space when it [...]
Posted on February 2nd, 2009 by Dave
Filed under: Linux | 24 Comments »
I recently discovered the wonders of skype, and tried to get my new webcam working with it under linux, and of course this proved to be quite tricky. After much fiddling I eventually got it to work, hopefully these steps will work for you too.
Posted on August 13th, 2008 by Dave
Filed under: Linux | 127 Comments »
Note: This is a bit out of date now, but Chris Peplin has built a proper plugin for tiddlywiki which does this for the latest versions of everything. So check it out! If you’re still interested in the old way then read on… When adding posts to my TiddlyWiki, I oft found myself craving vi, [...]
Posted on May 13th, 2008 by Dave
Filed under: TiddlyWiki | 6 Comments »