With the main site now off the hokey forum integration I finally got around to upgrading it. The forum is now running on phpBB3 (hurray!). While I was at it I also upgraded the photo gallery application to Gallery 2.3. Unfortunately, there are still some hiccups to tend to (plugins page is a big white page ugh!). I also tweaked the blog theme a little. Cheers.
Update: Found the fix for Gallery 2.3 at http://gallery.menalto.com/node/83597. Evidently the plugins repository is bugged and deleting the cache allows one to access the page again.
Unknown8063 Studio Announcement
I’ve revisited a class I wrote last year and made a few updates. You can find the new version on my Snippets page.
Updates on 1/13/2009
- ContentNegotiator is now a singleton. You may only instantiate one instance of the class.
- Constructor no longer kicks off output buffering. I decided this was a “side-effect” and should be moved to a separate method.
- prolog() method no longer emits content-type headers. The prolog() method now echoes only the XML prolog and DOCTYPE.
- sendHeaders() added to emit content-type headers to the browser.
- negotiate() added to begin output buffering for source code negotiation.
- close() method added to flush output buffering. I found some issues with relying on PHP to close buffering at the end of the page execution. It is better to close the buffer manually at the end of the page.
Updates on 1/14/2009
- Broke up the constructor a little bit more.
- Chooses a document type better. It now falls down the big if statement before content type is selected and again if it needs to be changed. This fixes a bug where it sometimes picked a slightly different document type then it guessed it would.
- The $version and $flavor properties now reflect the actual document type chosen. ContentNegotiator does not use these after it picks the document type, but at least they’re there in case someone wants to dump them.
- Implemented a way to specify the fallback document type. If you pass the first parameter as an array, it will pick the first index if the browser accepts it and fallback on the second. Using this it is now possible to send IE XHTML 1.1 even though IE does not accept the XHTML content type.
Use: $contneg->getInstance(array(‘XHTML 1.1′, ‘XHTML 1.1′));
Unknown8063 Studio Announcement
I’m beginning to wrap up the migration to WordPress. There are still a few style sheet modifications I need to get around to so don’t be surprised if things keep changing periodically for the next few weeks.
With the migration complete I have moved the forum back to its original location of http://forums.bluhelix.com/. Recall that it was a sub folder for over a year due to the session sharing between the main site and forum. I am also planning to upgrade the forum after I complete the main site.
Unknown8063 Studio Announcement
It’s been about a year since I last released something, so I am going to throw these little utility classes up.
A long time ago I downloaded some PHP script that demonstrated parsing LogMeIn’s Hamachi web status indicator to build a little Hamachi list for a web site. I cannot for the life of me find the little script – I suspect it was just a forum post I found. Anyway, over the years I rewrote the damn thing three times over, trying to get it into a more generalized form. Thus I introduce my two Hamachi status classes.
HamachiClient – represents an individual Hamachi client. Basically, just instantiate one of these buggers with a 5.x.x.x IP and then ask it what its state is. Pretty simple I hope.
HamachiList – can contain multiple HamachiClient classes. You can instantiate this class without any parameters and add the IP addresses later. or you can feed it one array of IP addresses and aliases in the beginning. Then either ask it for the state of each client, or have it return the complete array. I also included a method to output an HTML list that can be formatted with CSS.
Note: I also got annoyed with the fact that only clients version 1.0.x can enable the web status indicator. The obvious implications are that Linux and Mac versions of Hamachi are left in the cold. I included the possibility of pinging these clients if the web indicator doesn’t work. That’s an advanced parameter and you’ll have to look in the code to figure out what to do
Please visit the snippets section to download…
Unknown8063 Studio Announcement
All our servers will be shutting down on Saturday, August 30th. I will try to get them back up on Sunday, but it might take until Monday to be back online.
Unknown8063 Studio Announcement