Just a quick note, I’ve finally found somewhere that you can obtain the Mixmag album artwork from. Excellent news. This months electro effort by Hervé is most definitely worth a listen.
-
Mixmag Album Artwork
August 27, 2008 by andygTags: Artwork, Mixmag | Comments (0)
-
CakePHP: Deleting and the afterDelete() callback
August 4, 2008 by andygHere is the problem I just had. I was trying to delete an image off the disk after all references to it in the database had gone - kinda like unlink(). I couldn’t work out how to access the data in the model. I need to know the filename, so I can delete it. It seems that the only way to do it is:
-
Define a var to hold the filename
private $_tmpImageName;
-
Populate this in the beforeDelete() callback
function beforeDelete() { $this->_tmpImageName = $this->read(null, $this->id); return true; }
-
Then access it in the afterDelete() callback, with something like this:
function afterDelete() { unlink($this->_tmpImageName['Image']['name']); return true; }
If you know of a better way, let me know.
Tags: afterDelete(), CakePHP | Comments (2)
-
-
Fabric and Fabric Live CDs
by andygI’m a FabricFirst member which basically means Fabric send me their latest CD every month and I give them £7 every month. It’s a good deal, their CDs are rarely a let down, even if they have been mostly only used once. They go in to my PC and are ripped to 320kps MP3s, tagged and then go straight on to my iPod where they are listened to over and over.
Until recently however, none of them had any album artwork. For someone who likes to obsessively tag up all his MP3s this is hard to take. But after some frantic Googling, I found a repository of Fabric album artwork so all is again well in the world.
Tags: Artwork, CD, Fabric, Fabric Live, FabricLive | Comments (0)
-
Things I Learned Today
August 1, 2008 by andygThey say everyday is a school day. The things I have learned on this school day are:
- Cypher from The Matrix is Ralph Cifaretto in The Sopranos
- Avoid angry people in the Quiet Carriage
- Other things I can’t repeat in a public place.