Programming

How to Crash Your Apache Server with PHP

I returned from a trip out of town Monday to crashing web servers that ate my lunch all week long. For several days, I used the top command in Linux and watched helplessly as two servers ground to a halt with load averages higher than 100. Top reports the processes that are taking up the most CPU, memory and time. On the server running Workbench, the culprit was always httpd, the Apache web server. This didn't make sense, because Apache serves web pages, images, and other files with incredible ... (read more)

Twitter: Where Ruby on Rails Goes Off the Track

An article posted on eWeek today was written in an alternate universe where Twitter works: As the maker of one of the largest applications using Ruby on Rails on the Web, Twitter knows a thing or two about scaling applications built with the popular development framework. Britt Selvitelle, a senior engineer at Twitter, offered a few tips and tricks for scaling Ruby on Rails and expressed particular appreciation for the Rails framework itself and the language is it based on, Ruby. "For us, for a ... (read more)

Meme13: Angering New Bloggers in Tech

Meme13 is getting knocked around a bit by people who think that it's just another scraper republishing RSS feeds, hurting the search-engine rank and traffic of the publishers who created the content. Two of those people are Tony Hung and Darren Rowse, bloggers currently featured on Meme13. Hung writes: ... Meme13 is simply pulling feeds and republishing them all. Like any good ol' scraper blog. ... More of the GD same -- and what's really funny (again, not in a ha ha way) is not even that ... (read more)

Meme13: Finding New Bloggers in Tech

Steven Hodson writes: I get a real kick out of it when people start pontificating on why the tech blogosphere is becoming nothing more than [a] self-fulfilling chamber filled with the dull echos of me-too posting that attach themselves like leeches to the supposed brilliant writings of the blogosphere mucky mucks. Me too. Every six months or so, techbloggers reach the joint realization that we're all linking to the same people having the same thoughts about the same subjects. Somebody blames ... (read more)

Loading Ad Javascript with PHP

I serve ads on the Drudge Retort using Blogads, a great ad broker that occasionally has trouble serving the ads. When this happens, pages on the Retort load more slowly because they can't fetch a Javascript program and CSS stylesheet required by Blogads. I decided to fix this problem by writing Cache Remote File, a PHP script that performs three functions: Save a cached copy of a remote file Display the cached copy for 10 minutes before requesting the file again Display the cached copy when the ... (read more)

Hoosgot: The Return of the LazyWeb

Hoosgot a web application for creating a hierarchical Dmoz-style link directory in a browser? The term "hoosgot" is newly coined by Dave Sifry, a founder of Technorati and one of my former homies on the RSS Advisory Board. He's launched the web site Hoosgot (as in "who's got?") for lazy people who have technical requests for help. Just use the word "hoosgot" as a verb in a request on your blog (or @hoosgot on Twitter) and it'll end up on his site, where it's hoped someone more industrious can ... (read more)

Weblog Pinger Extended with MySQL Database

I've added a MySQL database to Weblog-Pinger, my weblog update notification class library for PHP, so that it can track ping attempts and keep from hitting the same server too often. Some notification services reject pings sent too frequently. When I was the king of pings for six months in 2005, Weblogs.Com rejected pings sent more frequently than once per half-hour. If you try to ping Ping-O-Matic too often today, you get the error message "Pinging too fast. Slow down cowboy. Please ping no ... (read more)

UDRP Response Filed to Save Wargames.Com

My attorney Wade Duchene has filed our response to the Uniform Domain-Name Dispute Resolution (UDRP) complaint made by MGM Studios over Wargames.Com. We're getting closer to the day where a panel of three arbitrators decides whether to give the domain to MGM, which owns a trademark registered in 2003 for the 1983 film WarGames. UDRP arbitration is an increasingly popular tool for intellectual property lawyers trying to acquire domains for clients, as MGM's firm is attempting here. If they lose, ... (read more)

It's Not the Size of the Blog in the Fight ...

Wired News has declared Dave Winer vs. me as one of the top blogfights of 2006. Back in early 2005, blogger and RSS guru Dave Winer hired programmer Rogers Cadenhead to port Winer's popular Weblogs.com site to a more robust platform. The project was a success -- Winer sold Weblogs.com to VeriSign for more than $2 million later that year -- and Winer struck a verbal agreement with Cadenhead to perform the same magic on another of Winer's web properties, Share My OPML. Winer paid Cadenhead $5,000 ... (read more)

Sun Sees the Light on Java Applets

I'm working on the next edition of Sams Teach Yourself Java in 21 Days, an 800-page monster that will cover Java 6 so thoroughly that all the other Java authors will stop writing their books and pursue retraining for a non-technical profession. (Computer book authors should talk smack like rappers. One of these days I'm going to start an East Coast/West Coast feud with Seattle's Glenn "PC-Diddy" Fleischman.) Ten years ago, the original edition of Java in 21 Days made a big deal out of Java ... (read more)