Blog

25 Latest Articles

Tips & Tricks

14

Selecting outbound links with jQuery

Maps on Kindle has a great article about using jQuery to select all outbound links on your web site.  In a nutshell, it creates a new selector by comparing the url of the link to the domain of the current web page.  That allows you to do things like this:

$('a:external').css('color', '#F00');

Pretty cool, right?

Unfortunately, there was a small oversight in their code, which I hope to rectify here.

In the original source, the code didn't account for the www problem.  If the visitor is looking at www.this.com/page [with the www.], and a link on the page points to this.com/something [without the www.], the script will consider it an outbound link.

To fix this, I've added a small tweak:


$.expr[':'].external = function(obj){
   return !obj.href.match(/^mailto:/) &&
      (obj.hostname.replace(/^www\./i, '') != document.location.hostname.replace(/^www\./i, ''));
};

Just add this to your JavaScript inside the $(document).ready(...) and you're all set.

Enjoy!

 

07

3 Things To Check Before You Release Your App To The iTunes App Store

Months of planning, coding, dreaming, testing, screaming, and you're finally ready to release your iPhone app to the world. Or are you? Before you h...

Read more....

28

Google Apps

This weekend, I converted all of Axeva's email over to Google Apps.  After years of running our own Exchange Server, the time had come to throw in the towel and move to the cloud.

Continue reading for more information about how Google Apps can help your business, and a few tips on how to ease the transition.

Read more....

12

How to create unique passwords that you'll never forget

We all know that we should use a different password for each web site we visit.  Something that's not obvious, like your kids name or the name of your dog.  Something with numbers and letters and symbols -- a mixed up mess that no one can possibly guess.

We all know that we should do that, but let's be honest -- most of us just use the same password over and over again.  Who can possibly remember dozens of weird passwords?

I have a better way.

After the jump, I'll show you an easy way to have strong, unique passwords for every web site without having to memorize each.

Read more....