Posted on Wednesday, 05th October 2011, 01:55 PM, by
Chris, under
Coding.
I was looking around for a means to grab the URL of the currently playing track in Spotify earlier, but couldn’t find anything. I rattled together an AppleScript to do just that and copy the result, including the track and artist name, to your clipboard. [applescript] tell application "Spotify" set theTrack to name of the [...]
Posted on Wednesday, 06th October 2010, 12:34 PM, by
Chris, under
Coding.
If you’ve ever wanted to convert a date of a UK vehicle into a nice looking representation of the year code then you’ve came to the right place! I’ve written a small PHP function to convert a given date to one of the following formats: Dates before Feb 1963 [YEAR] i.e. “1960″, “1962″ Dates from [...]
Posted on Friday, 09th April 2010, 11:10 AM, by
Chris, under
Coding.
Something I’ve been playing with recently that’s not very well documented is using JavaScript to retrieve and to update the current page anchor from a URL. It’s very simple to do. In order to retrieve the page anchor (i.e. get test from http://chris-miller.org/88#test: var anchor = self.document.location.hash.substring( 1 ); Setting the anchor to update, for [...]
Posted on Thursday, 08th April 2010, 03:17 PM, by
Chris, under
Coding.
I’ve been playing with mootools for a while, they’re very nice, making easy work of some nice visual tweens and effects. One thing I was struggling a bit to do was fade between two divs, having the first one fade out then the second fade in. Rather than grabbing a plugin to do it I [...]
Posted on Sunday, 15th February 2009, 08:19 PM, by
Chris, under
Coding,
HCI.
I spend a lot of time writing bespoke content management systems, a lot! I’m always trying to add some small, lightweight additions to make the user experience a little bit better. One means of doing this is by providing some better custom controls which give good user feedback and emulate similar offline controls. One such [...]