Global Reset

Please note that the url for this blog has changed!

Use the following url instead:

http://blog.globalreset.org/articles/2005/06/06/tivo-and-mac-osx/

Please update your links to this new url.

I used to have this path setup so that it auto-redirected to the new blog site from the server side. Unfortunately, it doesn't appear that Google or Technorati can grok that the two URLS (blog.host and host/blog) are the same page. I tried making the host/blog appear as a 'permanent' redirect, hoping that would let the engines know that no blog lived at this address any longer... But that doesn't seem to help. It's just plain annoying to ask Technorati how many blogs link to my blog, and see the deck stacked with my own self links. Hopefully, this helps fix that.

Hit Counter: 9868

index.rb - The Script used to generate this page:

      #!/home/globalreset/local/bin/ruby
      
      require "cgi"
      
      bloghome = "http://blog.globalreset.org"
      newurl = bloghome + (ENV['PATH_INFO'] || "/")
      
      count = File.open("hit.cnt","r") do |f| f.readline.to_i + 1 end
      File.open("hit.cnt","w") do |f| f.write count end
      
      cgi = CGI.new("html3")  # add HTML generation methods
      cgi.out{
        CGI::pretty(
          cgi.html{
            cgi.head{ cgi.title{ "Global Reset" } } +
            cgi.body{ 
              cgi.img( 
                "http://globalreset.org/images/Banner-ski-3dlet-lo.jpg",
                "Global Reset" ) +
              cgi.h3 { "Please note that the url for this blog has changed!" } +
              cgi.h3 { "Use the following url instead:" } +
              cgi.h2 { cgi.a(newurl) { newurl } } +
              cgi.h3 { "Please update your links to this new url." } +
              cgi.p  { "I used to have this path setup so that it auto-redirected "+
                       "to the new blog site from the server side.  Unfortunately, "+
                       "it doesn't appear that Google or Technorati can grok "+
                       "that the two URLS (blog.host and host/blog) are the same "+
                       "page.  I tried making the host/blog appear as a 'permanent' "+
                       "redirect, hoping that would let the engines know that no "+
                       "blog lived at this address any longer...  But that doesn't "+
                       "seem to help.  It's just plain annoying to ask Technorati "+
                       "how many blogs link to my blog, and see the deck stacked "+
                       "with my own self links. Hopefully, this helps fix that." } +
              cgi.h4 { "Hit Counter: " + count.to_s } +
              cgi.h3 { "index.rb - The Script used to generate this page:"} +
              cgi.pre { File.open("index.rb") do |f| f.readlines.collect end } +
              cgi.h3 { ".htaccess - The htaccess rules for this page:"} +
              cgi.pre { File.open(".htaccess") do |f| f.readlines.collect end } +
              cgi.h3 { "All available environment variables"} +
              cgi.pre { ENV.inject("") do |n,val| n+val[0]+"="+val[1]+";\n" end }
            }
          }
        )
      }
      
    

.htaccess - The htaccess rules for this page:

      AddHandler cgi-script .rb
      Options +ExecCGI
      
      RewriteEngine On
      # old Wordpress blog used 'archives', but typo uses 'articles'
      RewriteRule ^blog/archives(.*)$ /index.rb/articles$1 [R]
      RewriteRule ^blog(.*)$ /index.rb$1 [R]
      
      Redirect /index.html http://blog.globalreset.org/
      
      Redirect /files/index.html http://blog.globalreset.org/
      
      Redirect /images/index.html http://blog.globalreset.org/
      
    

All available environment variables

      PATH=/usr/local/bin:/usr/bin:/bin;
      UNIQUE_ID=T7mBzkPNAAoAALiSErgAAAAB;
      SCRIPT_URL=/index.rb/articles/2005/06/06/tivo-and-mac-osx/;
      SCRIPT_URI=http://globalreset.org/index.rb/articles/2005/06/06/tivo-and-mac-osx/;
      HTTP_X_CC_ID=ccc02-01;
      HTTP_HOST=globalreset.org;
      HTTP_USER_AGENT=CCBot/1.0 (+http://www.commoncrawl.org/bot.html);
      HTTP_ACCEPT=text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5;
      HTTP_ACCEPT_LANGUAGE=en-us,en;q=0.5;
      HTTP_ACCEPT_ENCODING=gzip;
      HTTP_ACCEPT_CHARSET=ISO-8859-1,utf-8;q=0.7,*;q=0.7;
      HTTP_CONNECTION=close;
      HTTP_CACHE_CONTROL=no-cache;
      HTTP_PRAGMA=no-cache;
      SERVER_SIGNATURE=;
      SERVER_SOFTWARE=Apache;
      SERVER_NAME=globalreset.org;
      SERVER_ADDR=69.163.183.198;
      SERVER_PORT=80;
      REMOTE_ADDR=38.107.179.219;
      DOCUMENT_ROOT=/home/globalreset/globalreset.org;
      SERVER_ADMIN=webmaster@globalreset.org;
      SCRIPT_FILENAME=/home/globalreset/globalreset.org/index.rb;
      REMOTE_PORT=38728;
      GATEWAY_INTERFACE=CGI/1.1;
      SERVER_PROTOCOL=HTTP/1.1;
      REQUEST_METHOD=GET;
      QUERY_STRING=;
      REQUEST_URI=/index.rb/articles/2005/06/06/tivo-and-mac-osx/;
      SCRIPT_NAME=/index.rb;
      PATH_INFO=/articles/2005/06/06/tivo-and-mac-osx/;
      PATH_TRANSLATED=/home/globalreset/globalreset.org/articles/2005/06/06/tivo-and-mac-osx/;