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 VMWare Server. I don’t actually like this method because VMWare Server is huge and I don’t use VMWare. However, if you do, take a gander at this: http://www.vmware.com/support/reference/linux/loopback_linux.html
The method I ultimately went with was vdfuse since I use VirtualBox. It allows you to mount any disk image supported by VirtualBox. Basically, if you follow the instructions at that the vdfuse forum link I just provided, you can mount the VHD to a mount point in your filesystem. Now, this alone doesn’t yet give you access to your files yet. It provides the partitions as standard files (and a file for the entire disk as well). The partitions are named Partition1, Partition2, etc. You can then mount the partition you want as a loopback device.
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 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.
Posted in Wordpress
By epb on January 2, 2010
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.
Continue reading “Installing Danbooru”
Posted in Uncategorized |
By epb on December 20, 2009
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.)
Posted in Uncategorized
By epb on November 17, 2009
Yeah, I could probably file this one under “overkill.” I’ve managed to set up a virtual machine running Danbooru so that I may finally get my personal photo collection organized AND be able to do so regardless of operating system I choose to boot.
The traditional hierarchial manner of organizing files is a complete waste of time. Even assuming you can actually find anything again, you’ve already wasted several hours performing the initial organization. I like the idea of being able to store a photo with some tags or other meta data and then be able to SEARCH it instead of browsing for it. It would be nice if this ability were built directly into the file system though. WinFS and Apple’s spotlight seem promising so I may set out to investigate their potential at some point in the future.
Posted in Small Project | Tagged danbooru, metadata
By epb on November 4, 2009
Alrighty, I finally tracked down a link to v.06 of the Touhou lossless music collection so there should be an update once I get off my lazy hind-quarters and load all the cuesheets from it into the database. (Probably the end of the month)
Update: A link to the DB can be found here: http://touhoumusic.rrbits.com/
Posted in Uncategorized
By epb on October 14, 2009
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);
Posted in Uncategorized | Tagged code, php |
By epb on September 17, 2009
I’ve created a new project, which I’ve dubbed the touhou music database. Well, it doesn’t actually contain the raw MP3 files or anything, however. I collected the track listings of over 1200 touhou music/remix albums and entered them into a database. Given the name of a song, you can find what albums it can be found on.
Also, when you view a track’s page, I attempt a search of Youtube to see if the track can be found on Youtube, so you can immediately find music videos for most of the more popular songs! Additionally, I have a page that shows the some of the most recent Touhou music videos from Youtube. I love the Youtube data API.
Links: Main site Most recent videos
Posted in Uncategorized |
By epb on August 29, 2009
Sorry for the lack of updates, I’ve been working on a pretty large project that has eaten much of my time. Posting should be a little more regular in a couple of weeks, and I should plop in some new stuff soon.
Posted in Uncategorized