IE tries to be helpful when using JavaScript to set the href attribute

I have to believe that the developers behind Internet Explorer have good intentions. It might ruin my world view and trust in people if that turned out to not be the case. However, there are instances where they go too far.

In this case, Internet Explorer tries to be “helpful” by automatically setting the link text when you set the href attribute of an anchor tag. I present the details of when this will happen and how you can get around it.

Read the rest of this entry »

IE7 resize window problem

When developing for the web, if there is one browser that will not look correct, it is almost guaranteed to be a version of IE.

This was the case when I recently encountered elements that appeared to have a fixed position when they were not styled in that way. The problem was only visible on IE7 and, as I discovered, was a known bug in IE since version 6.

This article describes two different solutions to this problem.

Read the rest of this entry »

Honeypot Captchas for Rails

Honeypot captchas are a simple, unobtrusive way to try to combat automated form spam. I packaged some work I did a few years ago using this technique in Ruby on Rails forms and created a gem.

Read the rest of this entry »

Quick Tip: Rails Named Bind Variables

Sometimes, Rails queries can get long and complicated. Using named bind variables is an easy way to give some context to the query and, when you need to supply the same value to multiple query conditions, can shorten the query parameters.

Read the rest of this entry »

Quick Tip: Cucumber Works-in-Progress

Cucumber has a relatively new feature that allows you to tag individual scenarios as “should pass” versus “work-in-progress”. Rake tasks are provided that run the two groups of tagged scenarios separately.

Read the rest of this entry »

Quick Tip: Rails Singularization of -ess

The Ruby on Rails built-in inflections don’t handle singularizing words like “business” or “address” correctly. Here’s a quick way to make sure it’s handled in your Rails project.

Read the rest of this entry »

Fixing Multipart Uploads in Rack for Ruby 1.9

Describes a fatal error in Rack v1.0.0 that may need to be patched until a new version is released. If you’re seeing a “invalid byte sequence in US-ASCII” error, then read on!

Read the rest of this entry »

Trimming the Fat from your Social Media Diet

Social media isn’t all about the numbers and it’s not about pleasing everyone. Stopping worrying so much about who is or isn’t following you, reading your blog posts or friending you on various social networks (that I don’t belong to, btw).

It’s about finding people that are relevant or interesting to you and establishing a relationship. Why sift through all the noise to find the relevant chunks? Remove the noise and begin to see things more clearly.

I describe my current process for keeping things relevant. Are you ready? It’s time to start trimming the fat from your social media diet.

Read the rest of this entry »

Challenge Yourself to Create Better Relationships… Offline

Even though there has been a big emphasis lately on building relationships online, it is still important to foster your offline relationships, too. It shouldn’t be about quantity of connections as tools like Twitter, Facebook, LinkedIn, etc. would train us to believe.

Instead, it should be about the quality of the connections you have with people. Those relationships can be helped by taking time to meet with those people offline and in small groups. I present a specific challenge to you to do just that.

Read the rest of this entry »

Reevaluating the Handshake

I was taught a long time ago that giving a proper handshake involved only a few key elements. However, I found this ingrained idea about shaking hands challenged recently by an individual who followed a completely different set of rules for giving a handshake.

Afterward, I took a little time to evaluate my thoughts about it, which I document in this article.

Read the rest of this entry »