To preface: I’ve been using Gallery for years, since the 1.2.x days. I don’t like how bloated it has become, and the myriad of security issues one faces by having it installed (ironic, as I run a phpBB support board, I know).

I’ve opted to throw together a homebrew system, which is currently replacing Gallery. Please note that it is still in it’s infancy, and the initial display/thumbnail system is all that is fully coded. The picture viewing system is incomplete, and I will rewrite the code to use Apache’s mod_rewrite to keep the URLs clean.

Since I’ve been quite busy otherwise, and have had little to add to the site (codewise), I figured I might give a rather simple, if not overengineered random quote generator.

What this does is look up a prepopulated table of quotes, with personal attributes, and selects, then prints a random one.

First, my mySQL:

CREATE TABLE `quotes` ( `id` int(5) NOT NULL auto_increment, `quote` blob NOT NULL default ‘To err is human. This QuoteDB, however, is in err.’, `ascribe` varchar(200) default NULL, PRIMARY KEY (`id`) )

Then we can just make a silly little subroutine for it like:

– $attribute” : $myString .= ”"”; return($myString); } ?>

Now, connect to your DB as you normally would – for brevity, I’ve created the whole thing as a self containted program, including the data above, as randquote.php:

Note that the above, I populated the existing name for the quote database, the table for the quote, and the person quoted. This is not necessary as I have already set them as defaults within the function – however, again, as a teaching exercise, this might shed a bit more light on how to expand this utility, or use different databases with the same schema.

Notes: I decided upon BLOB rather than varchar() because you can have a really large quote this way, and there should never be a need for an attribute over 200 characters. Again, for brevity, I hardcoded HTML into the random quote generator, this makes it easier to just pass a single string to the executing program.

Note that I have provided no way to edit the existing quotes, or even add existing quotes to the DB. This is left as an exercise to the reader (for now), however, it could be as simple as:

I might later follow up on this, giving a small demonstration of forms in PHP, editing, et al, but that’s beyond the scope of this article.

This may be just what you’ve been waiting for: MKVToolNix 1.4.0.

To quote Mosu:

I’m releasing the new mkvtoolnix version including all the fancy new stuff. It’s v1.4.0.

So what has changed? Tons of new features, tons of bug fixes, tons of
new bugs ;) The more important things are: – support for MPEG-1 and MPEG-2 video read from PS and ES streams, – support for AVC (aka h.264) video from MP4 files, – support for concatenating files, – support for the new elements needed for menus, – support for WAVPACK4 lossless and lossy audio, – support for extracting VobSubs…

Finally, we’ve got VobSub support, menus, file merging, and new audio streams.

You can find it at the same place, same time.

Not really much of note, so I figure this is a “diary” entry, rather than being “front page” worthy –
I’ve updated my unofficial build of uControl to install under MacOS 10.3.8 – trivial work, at best, I know.

I’ve also torn out the guts of my forum, with quite a few CSS changes, more custom template modifications, the integration of an “Ignore User” function, and a few pre-cache tests, so it should load quicker, despite it’s rather elegant (if not image heavy) design.

A few more internal tweaks have been placed upon my download file manager, and I have the stubs set up for Rollator to move to PHP5’s mysqli – as I moved to my own custom shims long ago, this is mostly “above the board”, requiring only the support frameworks be added for mysqli native works.

I’ve removed the left sidebar from my diary page – I figure it’s not really useful – and there’s not much of a point to having it there. I have thought about making it a true frame for all areas of my website, however, it’s so closely tied to my front page – and the lack of useful data.. there’s no point, since I already have my search functionality on the front page, and available due to intelligent 404 (no document) handling.