skip to main | skip to sidebar

Tables Latency Benchmark

Being the blog of Pete Hopkins. This pirate kills fascists.

Bling-Bling

www.flickr.com

Thursday, September 29

AJAX Error Arrow

I hope to have the opportunity to see if I can make some long, ugly forms (Blogger Settings pages, anyone?) verify and submit with XMLHttpRequest. Some thoughts:
  • onblur validation would be really neat. It could even call back to the server to check on constraints beyond mere formatting (for example, “is this BlogSpot URL taken?”), or even do everything server-side to prevent the duplication of effort intrinsic in JavaScript validation. When the user pauses, go back to the server and check and, if there’s a problem, the little error triangle could pop up to indicate and explain what’s wrong.
  • In the case of an error after the user clicks “Save,” have a nice looking arrow pointing towards the error explanation, possibly as a prelude to auto-scrolling. It could fade in quickly and serve as an indication that we’re about to scroll the browser window to the location of the problem.
Posted by Fin at 12:39 AM 0 comments

Sub-page Caching Granularity

The <bigwig> project has a neat component that allows them to cache page fragments automatically on the client. The whole strategy is explained in
Language-Based Caching of Dynamically Generated HTML.

It boils down to translating pieces of the templates (templates are written in a domain-specific language) into individual JavaScript files. These files represent static structure (albeit with “gaps,” places where dynamic content will be inserted) and can be safely cached by the browser without worrying about stale content.

Each page of the web application is simply a “string pool,” a list of the bits of dynamic content, and instructions on how to combine template pieces into the final page. All assembly is done client-side with JavaScript.

I think this is a pretty cool idea. It’s also probably a bit of overkill, given the problem. It also has some nasty consequences: no searchability, no view source, and a requirement on JavaScript.

Posted by Fin at 12:21 AM 0 comments

Thursday, September 22

Tuesdays with vim, part 2 (on Thursday)

I’ve been using vimdiff for my code reviews, since it, unlike tkdiff can be run without worrying what my DISPLAY variable is set as. (Important for working with screen over ssh. Though there are workarounds.)

vimdiff automatically folds lines that have no changes in them. This is very convenient. The command to unfold and show the text is,
zo
which stands for “fold open” (if you believe that “z” stands for “fold”). To re-do the fold, and hide the unaffected lines, use “fold close:”
zc
These are typed from command mode and are not ex commands (so no :).
Posted by Fin at 12:57 PM 1 comments

Thursday, September 8

iTunes 5.0 Interface

Many opinions about the new look for iTunes 5.0. Michael Tsai has collected the reactions from the Mac blog regulars.

I really like the lack of window borders, which fits in with what Aqua’s done from the very beginning. The different corner radius is pretty stupid. I don’t dislike it, I just don’t know why they bothered.

My gripe is that the toolbar is hideous looking. The individual pieces are, if not lickable, at least unabrasive. But the combination is pretty terrible. It’s missing an aesthetic sense of balance. The volume slider looks pathetic — fragile, even — and pixelated. The search box looks as if the middle pane just let one and it’s trying to casually slide away to avoid the smell. Meanwhile, it’s overly pale and dull compared to the polished sheen of the other elements. And there seems to be an overall lack of consistency in shadow and depth that I can’t quite put my finger on.

Ah, well. They can’t all be beauties.
Posted by Fin at 11:56 PM 0 comments

Safari 2.0.1 Has No Release Notes

Safari 2.0.1 came out a week or so ago, and I just got around to upgrading my work PowerBook. Given that Safari is one of our supported browsers, I wanted to know what was new and fixed and adjust my testing and development accordingly.

But, the only word is that it “improves website compatibility, application stability and support for 3rd party web applications.” No other release notes or anything. Every Mac website on the planet is parroting Apple’s description, and no one seems to know what’s changed. Other than that this build, unlike development versions from April, doesn’t pass Acid 2.

Not even a peep from the Safari blog. (Though it is more concerned with the open source development of the WebKit framework than specific releases from Apple.)

Update: Apparently there has been a lot of grumbling about this issue, and the fine WebKit blog folks posted release notes for Safari 2.0.1. (But with the caution that they may not in the future.) Looks like Blogger isn’t impacted one way or another.
Posted by Fin at 11:32 PM 0 comments

I Want to Meet Andy Hertzfeld

According to the Wikipedia article on Andy Hertzfeld (so consider the source) that John Gruber’s Linked List pointed to, not only did Andy Hertzfeld (previous accomplishments: the Macintosh) graduate from Brown CS, he just got hired by Google! So he might be hanging around, if only I knew what he looked like (or if he’s even in Mountain View).
Posted by Fin at 11:21 PM 1 comments

Wednesday, September 7

Bonus Wednesday with Vim

These are far too useful not to memorize and internalize:

I

Like i, enters insertion mode, but it moves the cursor to the first non-space character on the line.

A

Similar to a, but the cursor ends up after the last character on the line.

(I learned these with the help of the O'Reilly book on the subject, which just arrived from Amazon. It's been a very good read so far.)
Posted by Fin at 2:32 PM 0 comments

Tuesday, September 6

IE5.5, Relative Position, and Letter Spacing

I like my job. But sometimes I have to deal with some seriously fucked up browser behavior. For example, did you know that if you have nested block level elements in IE5.5/Win, and the inner one is relatively positioned and has letter spacing set, that the first letter in that element won't show up? I mean, fucking shit. What the hell, you know?

My chosen workaround was adding padding to the top of the outer element. I guess I'm lucky that this is one of the bugs with a workaround.
Posted by Fin at 7:11 PM 0 comments

Tuesdays with Vim, part 1

I'm trying to learn vim, the vi-variant text editor. To help out, every Tuesday I'm going to post a little shortcut or command that I'm trying to internalize. Today's command:

nG

Jumps to line n of the file.
Posted by Fin at 4:18 PM 0 comments

Derek Powazek Just Blew My Mind

I was happily reading Powazek's new article about his redesign, nodding and blinking as he described how, despite his respect for 37 signals' clean, "black and white Helvetica" look, he wanted his personal site to have a "dirty" design. And I was intruiged as he began to dismantle the myth that the bottom of the page, as "below-the-fold" space, was the least-important, least-seen part of the site. After all, Powazek argues, if a visitor has scrolled and has gotten that far, they have earned a "special treat."

In 1996, Jacob Nielsen said "users don't scroll." Returning to the subject in 1997, he said they've since learned. As web designers, we should always be prepared to recognize when we can take advantage of users' growing familiarity with the conventions of the medium, and not get stuck designing for out-dated expectations.

So I scrolled down.

And what I found there was amazing. Powazek just killed the sidebar, and it looks stunning.

I think this design has three things going for it:
  • The main content can stand pretty much alone, or be framed by something appropriate. At any rate, it receives the pure initial focus of the visitor's attention. You have the horizontal room to use a bigger font, or just do something plesant in the margins.
  • Things are crammed in sidebars. Putting them down below gives them room to breathe, too. If you have a bit of navigation or mini-content that needs to be wide, it can be wide.
  • The navigation is suddenly right where I want it. I've read the post, and now all I need to explore Powazek's blog further is there, begging to be poked at.
Posted by Fin at 1:20 PM 2 comments
Newer Posts Home
Subscribe to: Posts (Atom)

Followers

Subscribe To

Posts
Atom
Posts
All Comments
Atom
All Comments

Blog Archive

  • ►  2009 (7)
    • ►  March (5)
    • ►  January (2)
  • ►  2008 (36)
    • ►  December (4)
    • ►  October (1)
    • ►  September (4)
    • ►  August (8)
    • ►  July (4)
    • ►  May (2)
    • ►  April (4)
    • ►  March (4)
    • ►  February (3)
    • ►  January (2)
  • ►  2007 (24)
    • ►  December (1)
    • ►  November (2)
    • ►  October (5)
    • ►  September (1)
    • ►  June (6)
    • ►  May (2)
    • ►  March (3)
    • ►  February (1)
    • ►  January (3)
  • ►  2006 (32)
    • ►  December (3)
    • ►  November (1)
    • ►  October (5)
    • ►  September (3)
    • ►  August (2)
    • ►  May (1)
    • ►  April (2)
    • ►  March (1)
    • ►  February (6)
    • ►  January (8)
  • ▼  2005 (53)
    • ►  December (8)
    • ►  November (30)
    • ►  October (5)
    • ▼  September (10)
      • AJAX Error Arrow
      • Sub-page Caching Granularity
      • Tuesdays with vim, part 2 (on Thursday)
      • iTunes 5.0 Interface
      • Safari 2.0.1 Has No Release Notes
      • I Want to Meet Andy Hertzfeld
      • Bonus Wednesday with Vim
      • IE5.5, Relative Position, and Letter Spacing
      • Tuesdays with Vim, part 1
      • Derek Powazek Just Blew My Mind

Gamercard

Geekness

Twitter Updates

Twitter Updates

    follow me on Twitter

    About Me

    My Photo
    Fin
    I play board games and video games, and sing sea shanties when I can. I like shiny things and tech things and cat macros. I am aware of all Internet traditions.
    View my complete profile

    Search This Blog

    Friends’ Blogs

    • Mihai Parparita
      Infinite Mac: Snow and A/UX
      4 weeks ago
    • Jason Shellen
      methaphone
      10 months ago
    • Graham Waldon
      Card Game: The Fellowship of the Ring
      1 year ago
    • Michael Greenberg
      I’m looking for students!
      2 years ago
    • Adam Saks
      Mengatasi Ambeien Atau Wasir Kambuh
      6 years ago
    • Abstractioneer
      Things People Have Been Impeached For In the Past
      6 years ago
    • Kellan Elliott-McCrea
      New-ish site
      7 years ago
    • tins ::: Rick Klau's weblog
      Jaguar I-Pace first impressions
      7 years ago
    • Jason Goldman
      Links for 2017-02-22 [del.icio.us]
      9 years ago
    • Greg Stein
      PSA: Redbud Custom Homes
      9 years ago
    • --verbose
      How to Write Hello World in Go (in Go)
      12 years ago
    • Stacy Jenson
      I promise not to mommyblog
      12 years ago
    • Eric Case
      Creepy
      13 years ago
    • Vast Public Indifference
      Pompe Stevens, Enslaved Artisan
      13 years ago
    • watched pots | news
      Dogs are cool.
      14 years ago
    • Rachel Grey
      Six months with Ido Portal: game-changer 2011
      14 years ago
    • Lauren Davis
      Best Thing Today: Opinioncat Lady
      14 years ago
    • massless
      Dreams, discernment, and Google Reader
      14 years ago
    • saladwithsteve
      Building F# on Mac OS X
      16 years ago
    • Farang
      Kaiseki
      17 years ago
    • Marty Lichmann
      Janko Keyboard
      17 years ago
    • Shriram Krishnamurthi
      Project Beansprout Successful
      17 years ago
    • Mobile Vince
      Hawaii wrap-up
      19 years ago
    • Chinese Migrant Worker
      More Real Than Real
      19 years ago
    • Laurence Gonsalves
      Copyright Law and the King
      19 years ago
    • Josh Peterson
      St. Pardi Gras Shirts
      19 years ago
    • Buzz Andersen
    • Tina Huang
    • Evan Williams
    • Andy Yen
    • Biz Stone, Genius
    • Kimmy Richardson
    • tajc | taj campbell
    Show 10 Show All
    Powered By Blogger