Deepest Sender

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 can’t upload or resize photos for you, but that would kinda be feature bloat anyway, wouldn’t it? Ack, it seems to lack the ability to easily make headings and such as well, but you can add them with raw HTML in the source editting tab though.

For a quick one-off post like this, it seems as though it might be a useful tool to have at your disposal.

What’s better yet is that it allows you to save your post so you can come back to it later.  (Might want to make sure you give it an XML file extension and don’t accidentally load the Kanji Dictionary XML file either.  It really doesn’t like that.  Oops.)

Looking for more Firefox blogging extensions?  I found them at speckboy design magazine.

Installing Danbooru

I noticed a couple of searches for ‘running danbooru’ in my search phrases for this site, so I decided to post a little bit more about that.  I assume someone searching for this was actually searching for help with installing danbooru.  Admittedly, I had some difficulty with it.  For one thing, I’d never used psql in my life. 😛

Here’s the INSTALL file that’s packaged with the source code so you know what you’re getting yourself into before you even fetch the source tree from Subversion.

(more…)

Freaking Bioshock!

Gah!  I finaly got my Steam-purchased copy of BioShock to work.  If you’re using Windows Vista or Windows 7 and use a Realtek High-Definition Audio device and Bioshock crashes at startup: update your driver to the latest version from Realtek’s site.  Additionally, you may or may not need to enable the ‘stereo mix’ recording device in the ‘manage recording devices’ control panel applet.  (Right click in empty space and check show disabled devices for them to show up.)

PHP: Random Password Oneliner

I am exceedingly lazy, so I made a one-liner random password generator.

How it works: Creates an md5 from a random string, packs this into binary representation, base64 encodes that, strips some of the characters used by base64 (most importantly the = that are typically at the end), and then limits it to 8 characters. It’s been broken out here on several lines to make modifying it a bit easier.

(Could make longer passwords by changing what’s allowed and providing more text to base64_encode or hexadecimal to pack.)

$randpw = substr(
   preg_replace('/[^a-zA-Z0-9\.\-!\$]/', '',
      base64_encode(
         pack('H*', md5(time().rand()))
      )
   ), 0, 8);