tuna

Kirjoitin tuossa yleishyödyllisen classin php:llä joka hakee uusimmat kuunnellut biisit last.fm Audioscrobbler xml-feedin parsimalla. tuna (kirjoitetaan aina pienellä) osaa myös tietojen cachettamisen, eli siis välimuistiin kirjoittamisen käyttäjän haluamaksi ajaksi käyttäjän valitsemaan kansioon.

Tämä on lajissaan ensimmäinen vapaan lähdekoodin projekti minulta, joten tietty uusi saavutus tämä on. Lisenssoin työn Creative Commons Attribution-NonCommercial-ShareAlike-lisenssillä, joka on myös Audioscrobblerin käyttämä lisenssi tarjoamalleen tiedolle.

Pitemmittä puheitta tunan löydät Subversion repositoriosta osoitteessahttps://svn.assembla.com/svn/tuna/ ja bugit yms kivat voi lähettää minulle (ja kaikille muille jotka haluavat osallistua kehittämiseen ja ylläpitoon) tunan Assembla-profiilinkautta.

Same in english: I released my first open-source (I guess you can spot the license above) for you people. It’s a php5 class that helps you retrieve last played tracks from last.fm and display them on your site nicely. It also does caching. If you find bugs, please report em, the addresses can be found above.

PHP 101: PHP For the Absolute Beginner »

This area is intended for everyone new to PHP. It opens with a series of informal, entertaining tutorials written by Vikram Vaswani, founder and CEO of Melonfire.

Covers the basics of PHP using easy to follow examples and detailed descriptions what is happening in the code.

Must read to all who want to learn and understand the basics.

Upgrading PEAR on Debian

After trying hard to upgrade PEAR 1.3.2 to latest with the build in upgrade tool

pear upgrade pear

on my own Debian 3.1 (Sarge) I got the following error message so many times I can’t count:

pinion:/# pear upgrade PEAR
downloading PEAR-1.4.11.tgz ...
Starting to download PEAR-1.4.11.tgz (283,272 bytes)
..........................................................done: 283,272 bytes
requires package `PEAR' >= 1.3.3

And

Segmentation fault

I came across this workaround:

pear upgrade http://pear.php.net/get/PEAR-1.3.3.tgz
pear upgrade Archive_Tar
pear upgrade PEAR
pear upgrade-all