Archive for December, 2009

Things I Saw Today

Wednesday, December 30th, 2009

An article from The Guardian article, “Why dolphins are deep thinkers”:

… [D]olphins at the institute are trained to hold onto any litter that falls into their pools until they see a trainer, when they can trade the litter for fish. In this way, the dolphins help to keep their pools clean.

… One day, when a gull flew into [Kelly, the dolphin's] pool, she grabbed it, waited for the trainers and then gave it to them. It was a large bird and so the trainers gave her lots of fish. This seemed to give Kelly a new idea. The next time she was fed, instead of eating the last fish, she took it to the bottom of the pool and hid it …. When no trainers were present, she brought the fish to the surface and used it to lure the gulls, which she would catch to get even more fish. After mastering this lucrative strategy, she taught her calf, who taught other calves, and so gull-baiting has become a hot game among the dolphins.

As Slow As Possible – Wikipedia, the free encyclopedia

A church in Halberstadt, Germany is playing a song that began in 2001 and will finish in 2640. I’m marking my calendars for July 5th, 2010 so I can tune in and hear a note change.

Settlers of Catan

I played Settlers of Catan at least a dozen times over the Christmas break—on my iPhone as well as the board game. I’m hooked; It is a lot of fun. I’ve wanted to play ever since I read this Wired article earlier this year.

Stuff I remember

Fantastic illustrations of childhood memories by Graham Annable. Inspired me to renew daily doodling.

Twitter Photography

My favorite photographer, Mike Matas, is on his way to India; which means some amazing pictures in a month or more. Until then, he is taking iPhone snaps of the LCD screen of his camera and posting them to Twitter. Quite tantilizing. If you are not impressed by the Twitter pics, check out his site and perhaps you can imagine the end product post-processing.

If you discuss this topic with friends, I recommend using the short URL: http://jwr.cc/x/42.

Books for the Budding Web Designer/Developer

Sunday, December 13th, 2009

I love making websites at Fasturtle, and I always want to get better at my job. As any young designer/developer should, I have been reading voraciously. This holiday season, pick up some books to aid the budding web designer/developer in your life. Even if it’s you.

Designing with Web Standards by Jeffrey ZeldmanThe obvious starting point is Jeffrey Zeldman’s Designing with Web Standards. Originally published in 2003, but recently updated to the third edition with new sections on HTML5 and CSS3, the book offers a history of the pains people fought to establish Web Standards and why they make your job easier. Zeldman’s book will have you peppering your speech with words like “semantic,” “validate,” and “effing tables.” Not only that, but you can ponder the imponderable: Why does he wear that silly beanie? Check this book out and you might just have a new hat to show off next November 26th.

Web Standards Solutions by Dan CederholmAfter all the standards introduction and theory, I highly recommend a few books by Dan Cederholm of SimpleBits. Dan provides thoughtful solutions for common visual layout issues. Zeldman says himself, “Dan is no standards zealot. He’s the guy in the trenches.” After Cederholm gets you off on the right foot in his book Web Standards Solutions, he will show you some great techniques for building stable, scalable websites with Bulletproof Web Design. Dan’s techniques are simple enough to comprehend, will expand your mind about elements and properties, but also make you say aloud, “Why didn’t I think of that?”

book-bringhurst-robert-the-elements-of-typographic-styleLast, a great book to buy and keep forever by your side is The Elements of Typographic Style by Robert Bringhurst. This is a book that you need to hold on to. You will read it once, but then refer to it again and again to recall the proper way to accomplish something in type. Try out The Elements of Web Typography to see if it’s up your alley. Not every writer needs to be a proper coder, but every coder needs to be a proper writer.

If you discuss this topic with friends, I recommend using the short URL: http://jwr.cc/x/3u.

WordPress Plugin: WP Lessn

Saturday, December 12th, 2009

WP Lessn Admin screen

I’ve created a WordPress plugin that automatically creates Lessn short URLs for published posts. Lessn, created by Shaun Inman, is a free, self-hosted URL shortener that you download and upload to your own server.

More details available on the WP Lessn Plugin page.

If you discuss this article with friends, I recommend the short URL: http://jwr.cc/x/3o.

Web Inspector Vs. Firebug

Saturday, December 5th, 2009
Firefox's third-party plugin Firebug vs WebKit's built-in Web Inspector
The following rant references an add-on for Mozilla Firefox called Firebug, and a feature of WebKit browsers called Web Inspector. Both allow you to inspect the source code that makes a website.

If you ever tweet about being unhappy with the WebKit Web Inspector, someone from the WebKit team will inevitably take notice and ask you why. I might reply, “Because it’s not Firebug!” Firefox could almost have it all with Firebug, but Firefox’s main problem is that it’s not WebKit.

My fundamental problem with Web Inspector is the Elements tab. My argument boils down to this: The CSS view does not resemble a stylesheet, and the HTML view does not resemble source code.

Nor does it behave like the code you write all day. Editing a visible HTML element or a CSS property requires at least two clicks to begin–which separates it from the standard user experience of a text-editor.

For example, when I hover an element in the HTML view of Web Inspector, my cursor is an arrow and can select elements to inspect. However, in Firefox, my cursor is the text cursor just as it would be if I were back writing the original code in my favorite text-editor. A simple click puts me into place to begin editing the code. This same action in Web Inspector requires a double-click. I don’t double-click to begin editing in a text-editor, so to me, this makes Firebug feel simpler for quick debugging during development.

But there’s a bit more to it. I’ve noted my issues below:

  1. HTML view is not a monospaced font.
  2. CSS view is not a monospaced font. (This is mostly a personal thing. I prefer code in a monospaced font. I can imagine others do as well.)
  3. CSS view does not show the full cascade of rules for a selected element. For example, if I inspect a div, I should be able to see what font-family it will inherit.
  4. Toggling properties in the CSS view is more troublesome than it is in Firebug. The checkbox on the right is harder to hone in on with a cursor because your eye is already looking to the left at the left-aligned properties.
  5. Web Inspector does not work when JavaScript is disabled.
  6. You cannot make an accurate text selection on a webpage while the Web Inspector is open inside the window. Similarly, you cannot enter text on a webpage without the page scrolling directly to the bottom of the document, where the Web Inspector resides. (A temporary solution to this is to detach the Web Inspector from the window, but I do not prefer working this way.)
  7. You cannot add new elements to the DOM.
  8. You cannot select an element in the DOM from its closing tag. You must select from the opening tag.
  9. More than one Web Inspector may open within the same window. This may be a feature (as you could access more than one tab at a glance) but I have often experienced it as a bug.
  10. Inspected elements do not distinguish between margin and padding with different color visual outlines; instead they are the same color. This is minor but slightly annoying.

The Web Inspector has made great strides since its initial release. For example, many enhancements have been added since I originally drafted this article, such as adding attributes in the HTML view or anchors that point to stylesheets from the CSS view.

But Firebug feels much more like a text-editor, and Web Inspector like a passive, well, text-inspector. And while Firebug solves a lot of my particular issues, Safari remains my favorite browser dues to its speed. I’d like to browse, work, and debug in it all day. For HTML and CSS, I think the Web Inspector could be much better.

If you discuss this article with friends, I recommend the Short URL: http://jwr.cc/x/2h.

Must-Have WordPress Plugin: WP Super Cache

Friday, December 4th, 2009

Yes, you need the WP Super Cache plugin for your self-hosted WordPress site.

JayRobinson.org went from about 10 visits per day to over 5,000 per day for six straight days. WP Super Cache helped me survive my first Fireball-ing:

Google Analytics for JayRobinson.org before and after Daring Fireball'd

If you’d like to discuss this article with your friends, I suggest using the Short URL: http://jwr.cc/x/2c.