By epb on September 11, 2010
Heh, this Saturday I spent nearly 7 hours playing Recettear: An Item Shop’s Tale and I have to say that I love it. Beyond a fairly enjoyable cast of characters you can choose just about every aspect of your shop from what is stocked to the wallpaper, flooring and carpeting used. As for inventory, you [...]
Posted in Games
By epb on July 18, 2010
I really don’t have a shorter description for this. I was working on a personal project the other day and realized that this might be a nifty function. Basically, you know all those snippets to make cropped thumbnails (squares and the like), and how most of them either center or crop to the top of [...]
Posted in php | Tagged gd, images, php
By epb on June 23, 2010
I have a sizable collection of music, so sizable in fact that I can’t store the full collection on any portal media. Since I only use Windows to play video games, I use Rhythmbox to manage my music and found myself in need of a way to sync to a USB thumbdrive. Now, the issue [...]
Posted in linux | Tagged linux, mp3, music
By epb on May 31, 2010
An odd quest perhaps: but adding album art to an MP3 (in ID3 tags) is readily doable with the KTaglib extension for PHP. Once you have it, you can use a script like this to add artwork to an MP3: $mp3 = new KTaglib_MPEG_File(’2.mp3′); $idv2 = $mp3->getID3v2Tag(true); $album = new KTaglib_ID3v2_AttachedPictureFrame(); $album->setType(KTaglib_ID3v2_AttachedPictureFrame::FrontCover); $album->setPicture(‘testalbum.jpg’); $album->setMimeType(‘image/jpeg’); $idv2->addFrame($album); [...]
Posted in php | Tagged metadata, mp3, php
By epb on May 21, 2010
This week I was working on a computer that was having problems with it’s hard drive. I could get it to start once, and then it would fail to start up again. As you can imagine, the drive had some bad sectors, but the people I was fixing this for could not afford another $60 [...]
Posted in Problems | Tagged computer problems, hard drive
By epb on May 6, 2010
I made a pretty normal trip to jlist (an online shop selling all manner of things Japanese) and for some reason thought: I bet I could change this store layout with Greasemonkey! With a couple of hours of fiddling, I had managed to create a script that took their HTML and mangled it to my [...]
Posted in Uncategorized
By epb on March 12, 2010
You can do quite a bit of unorthodox stuff with PHP. If you head over to epbsoft.com, you’ll find several flash coloring sheets I made with PHP, not Flash. (Sort of anyway.) I make them by first creating specially formatted SVG (Scalable Vector Graphics) files and feeding them to a PHP script that writes ActionScript [...]
Posted in linux, php | Tagged actionscript, flash, php
By epb on March 3, 2010
I might take a look at installing MongoDB on my server. I like the idea of a document-driven, NoSQL database, especially after working with relational SQL databases for years, and MongoDB looks interesting. You can read more about it in Developing scalable PHP Applications using Mongo DB. What caught my interest is how flexible using [...]
Posted in linux, php | Tagged php, rambling
By epb on January 17, 2010
Let’s say you have a VHD file you’d like to access while in Linux without attaching it to a Virtual Machine. There are many reasons you might like to do this, but it’s not immediately obvious how to do so with Linux. There are two ways I know of: You can use vmware-mount provided by [...]
Posted in linux | Tagged fuse, linux, mounting, vhd
By epb on January 8, 2010
Typing this from Deepest Sender (while listening to a remixes of Septette for the Dead Princess) It’s kinda nice and exactly what I was looking for – An extension for Firefox that allows you to post directly to your blog. (Of course you need XML RPC turned on to do so.) I note that it [...]
Posted in Wordpress