1. Mixmag Album Artwork

    August 27, 2008 by andyg

    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.


  2. CakePHP: Deleting and the afterDelete() callback

    August 4, 2008 by andyg

    Here 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:

    1. Define a var to hold the filename

      private $_tmpImageName;
    2. Populate this in the beforeDelete() callback

      function beforeDelete() 
      {
          $this->_tmpImageName = $this->read(null, $this->id);
          return true;
      }
    3. 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.


  3. Fabric and Fabric Live CDs

    by andyg

    I’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.


  4. Things I Learned Today

    August 1, 2008 by andyg

    They say everyday is a school day. The things I have learned on this school day are: