Icon_search
Stephanie Sharp Jennifer Fleece Buck Sharp Kim Landrum Charlie Maffitt Juli Tredwell Kevin Warrick

Travis' Blog

RSS

Search Engine Supremecy

Posted on 04/12/2007
2 Comments

We regularly check our Google Analytics account to follow what kind of traffic we have on this site. It's sometimes very interesting to see what search terms people are using on Google or Yahoo! to reach our site. Natalie and Stephanie, while in a client meeting, noticed that one of the search terms we've been getting traffic from recently is 'private video.' Hmmmmmmm. Interesting.

Buck and I looked into it further, and it turns out that the terms are coming from one of his blog posts describing how to embed YouTube videos in a Web site without having to share them as public on the YouTube site. When we did a Google search for 'private video,' his blog post came up around #17. But when we did a search for 'embed private video,' his blog post was #1. . . above the YouTube article on how to embed a private video! Crazy!

Tagged:  search engine optimizaton, youtube, SEO, google

Back to top

Rails inline ERb effects on HTML structure

Posted on 03/20/2007
40 Comments

When using Ruby on Rails, ERb (embedded Ruby) is used a LOT in the X/HTML. There are two types of ERb,

An evaluation block:

<% some_code %>

And an output block:

<%= @print_this_variable %>

These blocks are necessary when using Rails, and I've noticed that when I do a 'View Source' (via the Web Developer addon for Firefox, of course), I see a lot of funky spacing and line breaking where the ERb's have been evaluated. Probably fine for most people, but it makes reading the outputted HTML code a hassle.

It turns out that there are really three ways to use the evaluation ERb that can affect your spacing and line-breaking.

Firstly, the output block is used just like you'd expect to use it. If your code says this:

<p>
  Text before ERb.
  <%= "code_goes_here" %>
  Text after ERb
</p>

The resulting HTML will look just like this:

<p>
  Text before ERb.
  code_goes_here
  Text after ERb
</p>

Evaluation block use #1: If you just put a block, it will cause a line break after the block in the HTML, so if you had this in your code:

<p>
  Text before ERb.
  <% some_code %>
  Text after ERb
</p>

The resulting HTML code would look like this:

<p>
  Text before ERb.

  Text after ERb
</p>

Evaluation block use #2: If you add a dash(-) at the end of the block, it will prevent it from adding a line break. So, if your code looks like this:

<p>
  Text before ERb.
  <% some_code -%>
  Text after ERb
</p>

The resulting HTML code would look like this:

<p>
  Text before ERb.
    Text after ERb
</p>

The line break is gone, but the space taken by the block is still there. That leads us to. . .

Evaluation block use #3: If you add a dash(-) at the beginning AND end of the block, it will prevent it from adding a line break AND remove the leading space it would have taken up. So, if your code looks like this:

<p>
  Text before ERb.
  <%- some_code -%>
  Text after ERb
</p>

The resulting HTML code would look like this:

<p>
  Text before ERb.
  Text after ERb
</p>

You'd never know there was a code block there! Is this useful? I don't know... maybe.

Tagged:  ruby on rails, rails, ruby, erb, xhtml

Back to top

Overheard in the Office

Posted on 03/09/2007
2 Comments

It must be Friday. . .

Stephanie: I thought you were a vegetarian?
Colin: That doesn't mean I wouldn't kick a possum!

Tagged:  colin, stephanie, possum, friday

Back to top

PayPals Interface Jungle

Posted on 12/06/2006
1 Comment

I was asked to make two simple changes to a PayPal store account this morning. I say 'simple' because, on the surface, they seemed non-trivial. I had to change the shipping charges for all items and update the email address where payment notifications are sent. Easy enough.

Easy enough, I say. . . not quite. PayPal has, surprisingly, an extremely un-intuitive user interface. My first task was to change the shipping charge for all items. My choices in the navigation for "My Account" are: Overview, Add Funds, Withdraw, History, Resolution Center, and Profile. Well, Profile is the obvious choice. It takes me to a screen with no less than 32 links for various settings. After scanning the links I see one that says "Shipping Preferences." Maybe that one. Nope. My next choice down the list is "Shipping Calculations." Bingo! I successfully change the shipping rate charges to $0. Not too bad.

Now I have to change the email address where notifications of payments are sent. This sounds like it will be a snap. Has to be the registered email address, right? Wrong. For some reason, all of the notifications are sent to a different email address than the one set as the primary account address. Hmmmmm. Well, of course I go back to the "Profile" page. I see an "Email" link and think that's the obvious choice. No, that's just the registered email, with no others listed. So, they only have one registered email, no secondary addresses, but the payment notifications are STILL being sent somewhere else. How very odd. So I go back to the "Profile" page and see an option below "Email" called "Notifications." Surely, if the "Email" option wasn't the right choice, "Notifications" is where I need to go. Nope, and don't call me Shirley. "Notifications" only control WHEN they send an email, not WHERE they send the email. Dead end. I scour the rest of the options under the "Account Information" heading. The only other choice that I can see as a stretch is "Business Information." Why not? Surprise surprise, right in your eyes, this is it!

The "Business Information" page has a value called 'Customer Service Email' with a helpful 'learn more' link out to the side. I click on the link to find out why this attribute is here. It explains:
'Your customer service email address is the address we will display to buyers in our communication with them about a transaction. If you choose not to identify a customer service email, your primary email address will be used.'
Who would have guessed. Either way, I was able to change the address and hopefully make the client happy.

Thanks, PayPal, for the giant headache!

Tagged:  paypal, ecommerce, ui

Back to top

The Internet Arms Race

Posted on 10/19/2006
1 Comment

Google recently bought the video site YouTube.com for a whopping $1.65 billion. So, what does this mean for rival companies like Yahoo!, MSN, and News Corp(Rupert Murdoch). They need to keep up, right?

How will they answer Google's surely inevitable rule of the world? Are they going to start acquiring thier own start-ups like Facebook or Digg just to try and combat Google for a larger audience? After all, they can basically buy a segment of users with each purchase of an independent start-up.

Will this be the beginning of an Internet arms race?

Tagged:  google, internet

Back to top