Sunday, April 3, 2016

Take Back The Text!

I am getting very tired of going to a web site or blog and seeing something like this:

Welcome to my web site. It's awesome and I'm cool because I designed it and think it's beautiful whether you can read it or not!

Ugly, right? OK, maybe you don't think so. But I do. the text is too small, I'm old fashioned and like serifs on my text, and there's no contrast between the text color and the background.

Not only is it ugly, but I have lots of trouble reading it. So what can I do?

Background Information

Font Size

It is possible for a font size to be specified in many ways:

  • As a number of pixels (dots on the screen)
  • As a number that equates to real-world size (i.e. inches)
  • small, medium, large, and so on.
  • Relative to the thing containing the text (smaller, larger, etc)
  • Various other ways

The default, if not specified, is "medium".

In your browser's settings, you can set how big "medium" is (and "small" and "large" and so on). This is a great feature - if your eyes are awesome and you can always read the bottom line on the chart at the eye doctor, you can set it to something tiny and fit lots of text on the screen. If, however, your eyes suck (like mine), you can set it to something larger and not have to squint.

Other settings

And guess what? You can also set a default for text color, font, and so on.

So what's the problem?

The problem is that the designers of many web sites don't care about how you've set up your browser. They care more about their vision of what the site should look like. Whether it's aesthetics, branding, arrogance, or lack of thought, they override the settings in your browser

Hacky fix

A while back, I installed the Stylebot extension in Chrome. This extension lets me change the style on any element on any web page, so that I can fix garbage like the above as I run into it. Even better, it remembers my changes so that when I go back to a page on that site, it looks right for me.

But that's a hack. It puts the burden on me. And it can sometimes be very hard to get it right, because web designers will often be very specific about their styles, so that a single paragraph with normal text, bold text , italic text , links, and so on, they all are styled separately.

Or sometimes, the first paragraph of an article is styled differently than the rest of an article. Lists are often styled differently. And so on.

I could go on a rant here about how that's poor use of CSS (the styling language of the web) - about how you don't need to specify the font, font size, color, and so on for each of these things because if you set them once for the page, all of these different pieces will use the page-level settings. But I'm trying to lower my blood pressure, so I won't.

Take Back The Text

I've had enough. I've decided to Take Back The Text. Whenever I have to use Stylebot to fix something, I'm going to find the "Contact Us" link on the page, and send the following email to the webmaster, editor, publisher, author, technical support, or whoever else seems appropriate, asking them to cut it out.

Dear web site or blog author, editor, publisher, or webmaster,

I am writing because I find your site to be extremely unreadable because of your choice of one of the following:

  • Text color
  • Background color
  • Font size
  • Font family
  • Line Height

Please consider the idea that people come to your web site or blog to read it and/or get information, and that your choice of formatting may introduce problems for some, perhaps even many, of your visitors. The readability of your site is far more important than your brand or your designers' ideas about aesthetics. To that end, would you please consider removing the following attributes from your CSS files for the primary content of your site?

  • color
  • background-color
  • font-size
  • font-family
  • line-height

Doing so will allow each visitor's browser settings to format the text the way the visitor prefers, making it readable for each visitor.

Take Back The Text!

Rob Freundlich

If you are tired of having to squint to read on the web, I invite you to do the same, and to spread the word. Feel free to use the above text if you'd like (with your name instead of mine, of course) or your own. But please be sure to include "Take Back The Text" somewhere in it so they start to get the idea that this isn't just a few isolated people.

Friday, August 22, 2014

How Verizon learned to stop holding an MX record and let their users send me email

Recently, I moved into an area that doesn't have FIOS, so I needed to cancel my Verizon services. I had a "Verizon My Domain" account with them, which I used for an email forwarding domain such that each of my foo@verizon.net addresses had a corresponding foo@my_domain.com email address. Naturally, since I was dropping Verizon services, I needed to drop VMD account and transfer my_domain.com to another registrar.

I chose NameCheap, and successfully completed the transfer on July 28, 2014. A few days after that, I (actually, my wife, since she was the primary) cancelled Verizon services. I then tried to cancel the VMD account, but it failed with an error. After a few more tries, I called the support number listed on the site.  It was one of those "if you are having this problem, call this number or go to this site; if you are having that problem, call that number or go to that site" numbers. No way to get to an actual person.

My wife got on the phone and persevered, finally getting to a person, who told her he couldn't cancel the VMD account because our Verizon services account was cancelled (duh!). She argued, and eventually got him to cancel the VMD account. Or so we thought. I could still log into the account, but it listed no domains or email forwarding, and the DNS records for my_domain.com looked good, so I figured everything was OK.

Also, emails to @my_domain.com are getting forwarded to the correct addresses.

Fast forward to last Friday, when someone with an @verizon.net gets a bounce message "illegal alias". Uh-oh.

Click the title to read the entire story.

Monday, February 4, 2013

Most of what you read on the Internet is false

Most of what you read on the Internet is false. Including this blog posting.

Thursday, October 6, 2011

ListCollectionViewCursor and 0-length lists

There's an ugly bug in ListCollectionView's cursor class (ListCollectionViewCursor). To see it, do the following:
  1. Start with a List whose dataProvider is a ListCollectionView around the array [ "a", "b", "c", "d", "e", "f" ].
  2. Click "c" in the list.  yourList.selectedItem is now "c"
  3. Do something that filters "c" out of the dataProvider but keeps at least 1 item.  yourList.selectedItem is now null
  4. Reset the filter
  5. Click "c" again.  yourList.selectedItem is now "c"
  6. Do something that filters the dataProvider down to 0 length
  7. yourList.selectedItem is still "c"

#3 is the correct behavior - you should not be allowed to have selectedItem be something that's not included in the dataProvider. #6 is a bug.

Wednesday, July 28, 2010

Creating a variable in a Flex class that the class can't access

If you use namespaces in Flex classes, it's possible to create a variable or function that isn't accessible from within the class. For example:

package whatever
{
  import path.to.some_namespace;

  some_namespace var bar : String;

  public class Foo()
  {
    bar = "Hello World";
  }
}

Because the class has not declared this:

use namespace some_namespace;

it has no access to its own variable bar, so compiling it gives this error:

Attempted access of inaccessible property bar through a reference with static type whatever:Foo.

I'm sure this can be used in some arcane way to really confuse things in your Flex code.