• Maker vs. Manager schedule

    This essay captures something I struggle with all the time: how to get momentum on a project when your day is dominated by calls & meetings. Short answer, you can’t. You need to do project work in relatively long uninterrupted chunks of time.

    “For someone on the maker’s schedule, having a meeting is like throwing an exception. It doesn’t merely cause you to switch from one task to another; it changes the mode in which you work.”

    Maker’s Schedule, Manager’s Schedule, and also by the same guy (Paul Graham), Good and Bad Procrastination.

     
  • Expose everything in $_REQUEST

    Uncomment to use

    //Debug - display vars
    /*
    print "
    
    n";
    print "nContents of $_GET:n";
    foreach ($_GET as $k => $v) {
    print "   $k = $vn";
    }
    #
    print "nContents of $_POST:n";
    foreach ($_POST as $k => $v) {
    print "   $k = $vn";
    }
    #
    print "nContents of $_COOKIE:n";
    foreach ($_COOKIE as $k => $v) {
    print "   $k = $vn";
    }
    #
    print "nContents of $_REQUEST:n";
    foreach ($_REQUEST as $k => $v) {
    print "   $k = $vn";
    }
    #
    print "nContents of $_SERVER:n";
    foreach ($_SERVER as $k => $v) {
    print "   $k = $vn";
    }
    print "

    \n";
    */
    //End debug

     
  • Allow directory browsing using .htaccess

    All you need is “Options +Indexes” in the .htaccess file.

     
  • MM_XSLTransform error – could be php4 vs. php5 issue

    The dreamweaver MM_XSLTransform include requires php5. My godaddy hosting uses php4 by default, but you can use php5 by using a php5 extension (.php5). You can make the subdirectory use php5 for files with the .php extension by editing the .htaccess file to include:

    AddHandler x-httpd-php5 .php

     
  • block access by country codes with .htaccess

    Paste into existing .htaccess file or create a new .htaccess file at the root of the web directory
    order allow,deny
    deny from .ru
    allow from all