I made some mass modifications to the website today. Converted all pages into templates, which are individually added to a single page class. So now I can insert comments before the footer if I want, or if later I decided I want to shift them above I can without shifting the PHP with them.
At some point I’ll probably add a page caching system to reduce actual PHP repetition for the same page.
Another feature I plan to implement will be to generate CSS on the fly in order to reduce my CSS. At the moment I’m using it everywhere when its not really needed. For example, loading the syntax.css file even when there is no syntax on the page. Hopefully with this page generation class, I’ll be able to segment parts of my CSS and load it as the PHP decides it will need it.
Despite being nearly four to six years since I did any website designed, I’m still surprised how quickly I adapt to new or changing languages.
My knowledge of PHP and MySQL seems to exponentially increasing with the more I do, and just by glancing at my housemates source code for the professional website he is developing for someone, I pick up so much more.
These two week Easter break have been a much wanted break from programming, learning someone new is quite fun, though would I ever want to get into the web design business again? hell no, I find making applications so much easier to make secure with techniques such as memory mirroring and xor’ing important variables.
But still, it is a nice escape, and good to work on my portfolio website.
Redesigned the avatar which my friend Joey made for me a few years back. Cleaned up the edged, and changed the font.
While editing some videos last night, that I made of World of Warcraft last year (a 3-man Onyxia fight), I got thinking about designing a development codec. Since the files I recorded were at a stupidly high resolution of 1680×1050 at 30fps (about 30GB each), it was taking forever to do anything with them.
So I thought, how about a codec with the high quality bitstream data, but with a low quality editing stream to go with it. Big emphasis on random access and bidirectional seeking would be key to this my friend Gavin pointed out to me on IRC. Then when you’ve done editing using the low quality stream, it can be applied to the high quality when converting.
Would be nice if the C++ standard included constructors like PHP5 is introducing ( __construct() ), so whenever you change a class name, you don’t have to renamed the constructor(s) and destructor.