Articles by Jeff Trawick

  1. Not a fanbois, but…

    I bought an iPad mini on the first day. I like it. I don’t care how bad “everyone” says it is.

    I quickly discovered an app for the iPad called Textastic, which makes it easy to edit files accessible via Dropbox (or a couple of other mechanisms). I particularly …

  2. App App App App

    <?php
    
    function get_key($pi) {
        $terms = strlen($pi) != 0 ? $pi : 'Monday';
        $key = end(explode('/', $terms));
        return $key;
    }
    
    $key = get_key($_SERVER['PATH_INFO']);
    $mckey = 'demowebapp.' . $key;
    
    $mc = new Memcache;
    $mc->connect('192.168.11.199', 11211);
    $val = $mc->get($mckey);
    if (!$val) {
        $pgconn = pg_connect("host=192.168.11.199 dbname=demowebapp");
        $res = pg_query …
  3. Chasing after fd 5

    On FreeBSD 9, the mod_cgid daemon appears to have an odd file open, and in my current configuration that is file descriptor 5. procstat displays it as

    26889 httpd               5 ? - ---------   2       0 -
    

    The question mark is the result of translating unknown through multiple namespaces, and I stopped chasing it through …

Page 11 / 19