show links ↓

SNF Labs

latest yak facts and grues in the news

SNF: TNG

So, Chris, you had mentioned throwing everything out and starting from scratch… What do you have in mind? Let us discuss.

more from the weblog

i was bored before i even began

In PHP 5.0.4 and _only_ PHP 5.0.4, readfile() has a bug that causes it to halt output at about 1.9 MB. This means that only the tiniest of files can be downloaded successfully from Shoplifters 2.

help me, chris

The following query is intended to show the number of revisions to the wiki over the past 14 days: SELECT DATE_FORMAT(date, ‘%Y-%m-%d’) AS dom, COUNT(id) AS revisions FROM version WHERE DATE_SUB(CURDATE(), INTERVAL 14 DAY) <= date GROUP by dom; Because a few days during the last two weeks had no activity at all, the…

happy jax

I redesigned the wiki yesterday to more closely resemble the main SNF Labs site, and also added a sitewide recent comments page, plus a “what links here” feature for every article. The “what links here” feature provides a good chance to discuss when AJAX might be used and one way you can do it….

latest wiki updates

link-o-matic

The purpose of the link-o-matic is to prevent friends from cluttering up my mailbox with links. bugs when a link is updated or receives comment, the UI will highlight the link the next time a user visits the index page. however, in some cases, it continues to highlight the link on subsequent visits, …

Summary: bug with comments feed, different bug with comments page

link-o-matic

The purpose of the link-o-matic is to prevent friends from cluttering up my mailbox with links. bugs when a link is updated or receives comment, the UI will highlight the link the next time a user visits the index page. however, in some cases, it continues to highlight the link on subsequent visits, …

Summary: comments page shows comments attached to hidden links

mod_rewrite

mod_rewrite is an Apache module that rewrites URLs on the fly. What does that mean and why would you want to do it? Say, for example, that your PHP application for pog collectors expects URLs of the form /pogs/script.php?pogid=34234. You could use mod_rewrite to hide that ugly URL -- with the right …

Summary: mod_rewrite at SNF