Work Results

Slackware 13.0

Given that, as of this writing, the "newest" note is about Slackware 13.0, this section is in desperate needs of something new. So why not talk about the newest Slackware and all of the fun changes that came with it? The latest-and-greatest release of the oldest surviving distro has finally made the leap to KDE 4.2, ditching the (almost) four-year-old KDE 3.5. Because of the leap, users are forced to delete their KDE settings and start anew. Is it worth it? While it took some getting used to, it's really not all that different. Here's an overview of some of the biggest changes in both Slackware and KDE:
...Final Notes
...ETA - As if to affirm how buggy KDE 4.2 is, not 3 minutes after writing I got a lovely message stating, "Could not start ksmserver" followed by X/KDE/whatever crashing.
Tags: slackware, kde, amarok, kdevelop, intel, ati, fglrx, slacky, swaret, upgrade

SDL Grid Tech Demo

Windows Binaries
...Windows Binaries are available in addition to the source code, which is GPL'd.
Tags: SDL, sdl_gfx, grid, geometrywars, trig, simple, harmonic, motion

Gaming Layout

I am recently going to be renovating one of my many sites (although which site is a secret), so I created a new design. I used several elements from different sites to create a bright and colorful layout. The blue color scheme is similar to the colors on this button from BHLabs. The diagonal lines in the header were inspired by ColourMod, and the tab menu was inspired by Ordered List's previous layout.
Tags: layout, game, blue, green, orange, light, bright, gradient

Getting Firefox to use KDE's file associations


...
application/pdf; kpdf '%s'; test=test "$DISPLAY" != "" ; description="PDF Document" ; nametemplate=%s.pdf
...
application/msword; openoffice.org2.3 -writer '%s'; test=test "$DISPLAY" != "" ; description="Microsoft Word Document" ; nametemplate=%s.doc	application/vnd.ms-powerpoint; openoffice.org2.3 -impress '%s'; test=test "$DISPLAY" != "" ; description="Microsoft PowerPoint Document" nametemplate=%s.pps	application/vnd.ms-excel; openoffice.org2.3 -calc '%s'; test=test "$DISPLAY" != "" ; description="Microsoft Excel Document" ; nametemplate=%s.xls
...
application/x-tar; ark '%s'; test=test "$DISPLAY" != "" ; description="Tar Archive" ; nametemplate=%s.tar	application/x-bzip-compressed-tar; ark '%s'; test=test "$DISPLAY" != "" ; description="BZ2 Compressed Tar Archive" ; nametemplate=%s.tbz	application/x-bzip-compressed-tar; ark '%s'; test=test "$DISPLAY" != "" ; description="BZ2 Compressed Tar Archive" ; nametemplate=%s.tar.bz2	application/x-bzip; ark '%s'; test=test "$DISPLAY" != "" ; description="BZ2 Compressed Archive" ; nametemplate=%s.bz2	application/x-gtar; ark '%s'; test=test "$DISPLAY" != "" ; description="GZipped Tar Archive" ; nametemplate=%s.tgz	application/x-gtar; ark '%s'; test=test "$DISPLAY" != "" ; description="GZipped Tar Archive" ; nametemplate=%s.tar.gz	application/x-gzip; ark '%s'; test=test "$DISPLAY" != "" ; description="GZipped Archive" ; nametemplate=%s.gz	application/x-rar; ark '%s'; test=test "$DISPLAY" != "" ; description="Rar Archive" ; nametemplate=%s.rar	application/x-7z-compressed; ark '%s'; test=test "$DISPLAY" != "" ; description="7zip Archive" ; nametemplate=%s.7z	application/zip; ark '%s'; test=test "$DISPLAY" != "" ; description="Zip Archive" ; nametemplate=%s.zip

Tags: Firefox, KDE, file, associations, pdf, word, doc, powerpoint, pps, excel, xls, openoffice, tar, bz2, zip, gz, rar, 7z,

PHP: uniqid() speed test

There have been several comments in the notes of the uniqid() manual page about uniqid() being very slow. I set off to see for myself if this were true, using several combinations of input. I tried different length prefixes, as well as toggling the function's more_entropy parameter. For those interested, the code looks something like this:
Tags: php, uniqid, test, speed, compare, time

Comments Feature


...First up is displaying comments. I'll be using this page to test, so keep checking, if lurking on web sites for updates is your thing.
Tags: techno.dev, comment, feature

Wii Browser Viewport Size

Since making web sites that are compatible with any browser is a big thing nowadays, making sites work on the brand new Wii browser is important. Of course, without some information on what to design for, that's pretty hard. So, I created a test web page with a few statically sized div's and set to work finding out some information. Other sites say 640x480, but that's are based on the Wii Shop channel. Here's my results:
Tags: Wii, Opera, WiiBrowser, Design

Followup: PHP: rand() vs. mt_rand()

My past comparison of rand() and mt_rand() only compared the speed, and I saw very little difference. This time I'll compare how truly random the numbers each function produces are. The code used to test this is:
Tags: php, rand, mt_rand, test

PHP: rand() vs. mt_rand()

The documentation for mt_rand() says that it produces numbers four times faster than the standard rand(). So, being that I use random numbers in my code often, I decided to test this.
...Note: There is a followup to this article that discusses the randomness of the numbers generated by the two functions on different operating systems.
...The test code:
Tags: php, rand, mt_rand, test

MySQL Class


...Updates:
... · Implemented a rough version of an absolute DB link, so if you have multiple DB's going, they won't all use the latest database link.
Tags: mysql, php, database, access, class