Author: Ryan Neudorf

  • How To Detect Mobile Visitors Using .htaccess Rewrite Rules, Simplified

    Since my original posts on mobile redirection in .htaccess files I’ve gotten some comments and emails asking for step-by-step guidance on exactly how to “install” these rules. I hope this post will answer some of those questions. Before you continue reading, if you have php installed on your server, you may want to consider Andy Moore’s php…


  • Sorry Google

    The other day I was doing some surfing as googlebot (using firefox’s user agent switcher plugin) to try to debug some weirdly cloaked spammy search results I was seeing. I had accidentally done 3 searches as googlebot when I was redirected to sorry.google.com with this error screen: Odd.


  • DIGG: 4000% PERFORMANCE INCREASE BY SORTING IN PHP RATHER THAN MYSQL

    To scale at Digg they followed a set of practices very similar to those used at eBay. No joins, no foreign key constraints (to scale writes), primary key look-ups only, limited range queries, and joins were done in memory. When implementing the comment feature a 4,000 percent increase in performance was created by sorting in…