Cursor stuck on Firefox Page?

Posted on January 16th, 2012

For more information: http://en.wikipedia.org/wiki/Caret_browsing

If you ever get stuck with a blinking cursor on a webpage in a strange spot that doesn’t seem to be editable. You might have accidentally turned on Caret Browsing in Firefox. F7 is your fix.
Continue reading

View Full Post

Windows 7: Classic Control Panel

Posted on January 5th, 2012

When I first saw the control panel in the new Windows 7 I looked for the ’switch to classic view’ button which seemed to be missing. After poking around I found out how to list all the icons. Just choose ‘All Control Panel Icons’ from the drop down menu.

From readers comments Stuart and Richard Lange among others posted how to get it to ‘stick’.

There’s drop-down that says “View by:”. The default view is by category; choosing “large icons” or “small icons” will show this view all the time.

Untested but Xerxes posted this trick:

Please use this as your shortcut to get the classic control panel without the extra clicking:

C:\Windows\explorer.exe shell:::{26EE0668-A00A-44D7-9371-BEB064C98683}\0

View Full Post

How to Properly Open a Closed Optical (DVD/CD) Drive

Posted on January 3rd, 2012

First some background. Whenever you stick your media into your disk drive and close it, that’s not all that happens. After your CD/DVD is in place, an arm raises up and grabs the disk. This arm contains the motor that spins the disk and the lasers that read it. If you were to pull the drive out in this condition, you risk damaging the drive.
Continue reading

View Full Post

Offsite Backup In Action

Posted on December 31st, 2011

A couple of days ago we recieved a Western Digital external hard drive from New Egg. I set it up to rsync my home backup server and then took it to a secure location. Presto! Offsite backup is born.

As of right now it isn’t automated. So I’m stuck lugging the drive back and forth every month. But shortly I’ll have it hooked up to a machine which automatically grabs the files. I’m looking into using a RasperryPi for this.

View Full Post

Quoting a password using mysql or mysqldump

Posted on December 4th, 2011

Trying to use one of the following symbols in a mysql password using -p from the command line will throw you an error: * ? [ < > & ; ! | $ \ ( ) # ~ { } ] ” ‘

The solution is to surround the whole -p parameter in quotes. IE:

mysqldump -uusername '-p*#&PassWord&#*' database > dump.sql

View Full Post

jQuery Google Analytics Super Tracker

Posted on November 26th, 2011

I’m not really sure where I found this, and it’s undergone a few changes since then but here is what I use on most sites to automatically track outgoing links, mailto links and downloads.

It requires jQuery and Google Analytics to already be installed on your site. This piece of JavaScript should go below your analytics code.


if(jQuery) {
jQuery(document).ready(function() {
  jQuery('a').click(function() {
    var $a = $(this);
    var href = ($a.attr('href')) ? $a.attr('href') : '';

    if ( (href.match(/^http/i)) && (! href.match(document.domain)) ) {
      var category = 'outgoing';
      var event = 'click';
      _gaq.push(['_trackEvent', category, event, href]);
     } else {
      if ( href.match(/.(doc|pdf|xls|ppt|zip|txt|vsd|vxd|js|css|rar|exe|wma|mov|avi|wmv|mp3)$/i) ) {
        var category = 'download';
        var event = 'click';
        _gaq.push(['_trackEvent', category, event, href]);
      } else {
        if ( href.match(/^mailto:/i) ) {
            var category = 'mailto';
          var event = 'click';
          _gaq.push(['_trackEvent', category, event, href]);  
        }
      }
    }      
  });  
});
}

Bonus: I’ve built a simple wordpress plugin out of this code.


&lt;?php

/*
Plugin Name: Add Analytics
Plugin URI: http://fallsgeek.com
Description: A simple plugin to add analytics code so we can easily update the theme.
Author: Anthony Taylor
Version: 0.1
Author URI: http://fallsgeek.com
*/

function load_analytics() {
  if (!is_admin()) {
    //nowdoc would be perfect for this.
    $analytics_out = '&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
/* &lt;![CDATA[ */
  var _gaq = _gaq || [];
  _gaq.push([\'_setAccount\', \'UA-#############\']);
  _gaq.push(["_trackPageview"]);
if(jQuery) {
jQuery(document).ready(function() {
  jQuery(\'a\').click(function() {
    var $a = jQuery(this);
    var href = ($a.attr(\'href\')) ? $a.attr(\'href\') : \'\';
    if ( (href.match(/^http/i)) && (! href.match(document.domain)) ) {
      var category = \'outgoing\';
      var event = \'click\';
      _gaq.push([\'_trackEvent\', category, event, href]);
     } else {
      if ( href.match(/.(doc|pdf|xls|ppt|zip|txt|vsd|vxd|js|css|rar|exe|wma|mov|avi|wmv|mp3)$/i) ) {
        var category = \'download\';
        var event = \'click\';
        _gaq.push([\'_trackEvent\', category, event, href]);
      } else {
        if ( href.match(/^mailto:/i) ) {
            var category = \'mailto\';
          var event = \'click\';
          _gaq.push([\'_trackEvent\', category, event, href]);  
        }
      }
    }      
  });  
});
}

  (function() {
    var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true;
    ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\';
if (\'http:\' == document.location.protocol) {
  ga.src = \'http://www.google-analytics.com/ga.js\';
} else {
  ga.src = \'https://ssl.google-analytics.com/ga.js\';
}
    var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s);
  })();
/* ]]&gt; */
&lt;/script&gt;';

  echo $analytics_out;
  }
}

add_action('wp_head', 'load_analytics');

?&gt;

Here’s a pure Javascript version that seems to do the same thing.

View Full Post

Add auto increment column in Mysql table

Posted on November 24th, 2011

To add an auto increment column `id` to a table named `table`.

ALTER TABLE `table` ADD `id` INT UNSIGNED NOT NULL auto_increment PRIMARY KEY FIRST;

View Full Post

New Facebook Page

Posted on November 5th, 2011

We sold our soul and started a Facebook page. I’m also experimenting with linking the website to Facebook to Twitter so hopefully shortly we should have a steady stream of social goodness. Without further ado, I invite you to visit the Falls Geek Facebook page.

View Full Post

Introducing Pazz

Posted on November 4th, 2011

We wanted to keep clients passwords safe and sound. After looking high and low for a solution we came across an open source product called ClipperZ.

ClipperZ is what they call a zero-knowledge application. ClipperZ encrypts all information and doesn’t even know your username. Because of this you must remember your username and password.

ClipperZ features an easy way to export your data in printable, offline and json formats. It also features one time passwords for those situations when you doubt the computers security. An easy to use password generator is available.

We have set up a local copy of ClipperZ which we affectionately call Pazz. It is a secure ssl site so nothing can be intercepted. We encourage you to use it for all your security needs.

View Full Post

Falls Geek Flyer

Posted on November 2nd, 2011

The Falls Geek Flyer is out. Print out thirty copies and hand them to all your friends. Or better yet, email this pdf to thirty friends.. who print out thirty copies.. and well you get the point.

View Full Post