Flickr Watch

Flickr Watch is some PHP code I knocked up (using the Flickr API, via Dan Coulter’s phpFlickr class) to keep track of various users whose photos I like. It shows the last four photos from each person being tracked, along with a link to their photostream. Everything is wired into a database for easy addition… Continue reading Flickr Watch

Published
Categorized as Tech

Last.fm and Google Charts: Examples

Further examples for the Last.fm and Google Charts class. The images on this page are dynamically generated by the class. All-time listening share of your 15 top artists $chart1 = new lastfmChart(); $chart1->setDataFile('http://ws.audioscrobbler.com/1.0/user/mister-brown/topartists.xml'); $chart1->setType('pie'); $chart1->setTitle('Top Artists Shares'); $chart1->doChart(); Listening shares of this weeks top 10 artists: $chart2 = new lastfmChart(); $chart2->setDataFile('http://ws.audioscrobbler.com/1.0/user/mister-brown/weeklyartistchart.xml'); $chart2->setType('pie'); $chart2->setDataPoints('10'); $chart2->setTitle('Weekly Artists… Continue reading Last.fm and Google Charts: Examples

Published
Categorized as Tech

Last.fm and Google Charts

Google let you dynamically generate charts and graphs using their Charts API. Last.fm (or more correctly Audioscrobbler) allow you to track your listening habits and then give access to the data via their web services. This PHP class combines the two services and allows you to make charts showing your listening habits. Usage // include… Continue reading Last.fm and Google Charts

Published
Categorized as Tech

Apache error log

Where is the Apache error log? Under Debian Etch with Apache 2, the error log was at: /var/log/apache2/error.log. You need to be root to view the file. To view the last few lines of the log (useful – this can get to be a long file), enter: tail /var/log/apache2/error.log

Published
Categorized as Tech

Enabling mod_rewrite

Apache’s mod_rewrite is used for changing the way a website URL maps to the underlying file system. It can be used to make URLs more human-readable, and to disguise the underlying workings of a website. For example, you might use mod_rewrite to change http://www.example.com/index.php?post_id=5 to http://www.example.com/5. URL rewriting isn’t enabled by default if you install… Continue reading Enabling mod_rewrite

Published
Categorized as Tech

CD to FLAC to MP3

I’ve started using FLAC (Free Lossless Audio Codec) when I rip my CDs. FLAC compresses the audio, but no data is lost. Converting from one lossy music format to another isn’t a good idea, but there’s no problem going from lossless to lossy. So when, in 2020, I decide I want my music in mp9… Continue reading CD to FLAC to MP3

Published
Categorized as Tech