The READIN Family Album
Me and a lorikeet (February 24, 2008)

READIN

Jeremy's journal

When he woke up, the dinosaur was still there.

Augusto Monterroso


(This is a page from my archives)
Front page
More recent posts
Older posts

Archives index
Subscribe to RSS

This page renders best in Firefox (or Safari, or Chrome)

Saturday, March 29th, 2008

🦋 AJAX geekery

Permit me to wax geeky for a moment: last night I added a new feature to the site, which involves dynamic loading of page elements. Fun! About half (a little less) of the size of this page (ie, roughly 20K bytes) is the blogroll, on the right-hand side of the page under the "Where to go from here" heading -- which you might not think to look at it, since most of the data is hidden when the page loads and only shown when you click on the category headings.

This means that whenever a person or a robot downloads the page, 20K of data is sent that is probably not going to be displayed or used. I've been trying for a while to figure out how to only send it to people who are interested in it, i.e. not to robots or to one-time visitors who come here from a Google search for a book their class is reading, which together account for the great majority of page views. Last night I came up with a pretty seamless solution:

I recently implemented a sticky blogroll, using cookies to ensure that once you have clicked a blogroll category header, the category will remain visible when you reload the page. So it's easy to check whether a user is a repeat visitor who has in the past looked at the blogroll -- since the blogroll is stored in a file on the server that gets read at load time, all I had to do was create a truncated version of that file (containing only data for the default visible categories) and include that instead if the relevant cookie was not set.

But then when a new visitor decides s/he wants to look at the blogroll, and clicks on a category header, how is s/he going to get data? Well in the truncated blogroll file, the empty headers are linked to a Javascript function called load_full_links, which uses XMLHttpRequest to download the complete blogroll -- so the first time you click a category you will see about a 1-second delay. But then your cookie is set, so going forward the blogroll is loaded with the page. I think it's a pretty nice bit of design/programming and I'm looking forward to using a similar algorithm for other pieces of functionality.

Potential problems:

  • I have tested this with Firefox and Internet Explorer. I'm not sure how it will work with other browsers, and it will definitely not work in a browser where Javascript is disabled. This doesn't seem like a big deal to me but if it causes trouble for you, let me know and I'll try and come up with a solution.
  • Search engines will no longer index most of my blogroll. This is, on one hand, good -- I have seen referrals from searches that hit an item on the blogroll, which generally seem like my page is not what the searcher was looking for -- and on the other hand, possibly not ideal -- Google and Technorati both pay a lot of attention to outgoing links.

posted morning of March 29th, 2008: Respond
➳ More posts about The site

Wednesday, March 26th, 2008

🦋 Bob's Mix

I bought a record at Starbucks! I feel so dirty! But listen, it's a really good record: Bob Dylan, Music That Matters to Me -- a mix of tracks Bob has put together as representative of what he's listening to these days. (In the excellent liner notes, he says, "Some people have favorite songs, but I have songs of the minute -- songs that I'm listening to right now. And if you ask me about one of those songs a year from now, I might not even remember who did it, but at the moment it's everything to me.... I hope you enjoy them as much as I do.")

The track list is just great. I think I've only ever heard 5 or fewer of the 16 tracks previously -- and many of the performers I had never heard of before today -- there is blues, country, reggae, Hawai'ian, jazz and more. And what really makes the record -- what makes me happy to have it and want to listen to it as a record, rather than as a collection of songs, is Dylan's commentary. The liner notes are a small booklet, with one long paragraph for each song, and they are frankly much better writing than I have oherwise seen from Dylan's pen. The way they are written gives you a sense you're listening to him speak, and he's in a really good, congenial mood, grinning and saying "Now listen to this one, it's gonna blow your mind!"

Listening to the first song, "Do Unto Others", is funny because the opening riff is exactly the same as "Back in the USSR" -- Dylan says he thinks John Lennon probably heard the recording at a party sometime and forgot about it -- Ellen asked Sylvia if she knew what the lyric "they say, do unto others/ what you would have them do unto you" means; Sylvia nodded and said, in a bored-little-girl tone, "Yeah, what goes around comes around...."

Full track listing below the fold, mainly because I could not find it online anywhere.

posted evening of March 26th, 2008: Respond
➳ More posts about Mix tapes

🦋 Wrist

I discovered, during my violin lesson today, that I am not moving my wrist at all when I pull and push the bow. This seems like something that will be pretty easy to fix now that I know about it, and should have a very beneficial effect on my sound.

posted evening of March 26th, 2008: Respond
➳ More posts about Fiddling

🦋 A fragile coalition

This story just gets me down. My first reaction (well after the inevitable "WTF are these people thinking?!!!1!") is, aw crap, does this mean I need to support Hillary now because Obama getting the nomination means McCain wins the election? or words to that effect. And obviously (a) my support is in no way crucial to a presidential candidate, indeed if history is any guide it's a liability; (b) extrapolating from a headline to a visualised course of the entire rest of the campaign is silly, and I'm no political scientist to begin with. But the whole narrative seems to have shifted from Democrats triumphant and united, to a slim, shaky majority of Democrats which can be broken apart by a minor news story pumped up by the Republican machine. (Of course I blame Hillary.) Unhappy about this development.

posted afternoon of March 26th, 2008: 2 responses

Tuesday, March 25th, 2008

🦋 Singing and playing fiddle

I like to sing and to play violin; what I am aiming for is a style of playing where I can sing, play rhythm in between the lines of the verse, and play melody on breaks and between verses. I only have two songs where I can really do this, viz. "The Louisville Burglar" and "John Hardy was a Desperate Man"; I have mapped out how to do it for "The Ballad of Hollis Brown" and "Stagger Lee", and I think those two will come fairly quickly with practice; in Blues, I am close to knowing how to do it for "Sweet to Mama" and "Rising Sun Shine On". With this and a couple more songs, I would have a set -- but I need to find a partner, preferably either a guitarist or a banjo player. Jerry is not satisfied with the progress we've been making together and wants to play on his own. Hopefully I will be able to find somebody at one of the folk music jams around here.

posted evening of March 25th, 2008: Respond
➳ More posts about Music

🦋 Song to learn

Listening this evening to MS John Hurt playing "Stagger Lee", and it hit me that his guitar part would translate really well to violin. Going to try it out when I go downstairs later on.

...Yep -- really fun.

posted evening of March 25th, 2008: Respond
➳ More posts about Songs

🦋 A couple of reviews

Today I recommended Never Let Me Go to Heebie-Geebie, who is leading (under duress?) a small reading workshop at her college. I think it would be a great book for the workshop; I thought I might also take a look at what some reviewers have said about it. Two I found very insightful: Louis Menand in The New Yorker -- Menand is not enthusiastic, exactly, but he seems to like Ishiguro and to get what he is writing about, and makes me really interested in reading the rest of Ishiguro's novels; and M. John Harrison writing in The Guardian, whose final paragraphs just made me tear up:

By the final, grotesque revelation of what really lies ahead for Kathy and Tommy and Ruth, readers may find themselves full of an energy they don't understand and aren't quite sure how to deploy. Never Let Me Go makes you want to have sex, take drugs, run a marathon, dance - anything to convince yourself that you're more alive, more determined, more conscious, more dangerous than any of these characters.

This extraordinary and, in the end, rather frighteningly clever novel isn't about cloning, or being a clone, at all. It's about why we don't explode, why we don't just wake up one day and go sobbing and crying down the street, kicking everything to pieces out of the raw, infuriating, completely personal sense of our lives never having been what they could have been.

(James Browning's review in The Village Voice, which I think is the closest of the three to a "rave", seems pretty incoherent to me and gets some details of the story wrong.)

posted evening of March 25th, 2008: Respond
➳ More posts about Never Let Me Go

Monday, March 24th, 2008

🦋 The Onion News Network

Wow. I had no idea there was such a thing. We are living in marvelous times!

posted afternoon of March 24th, 2008: Respond

🦋 The Leak, resolved

So the plumber (from the heating company) came and let us know, the pressure relief valve is leaking because the water main pressure is too high -- 120psi*, when the house wants it to be between 80 - 100psi. We called Donald (at the water company) and he was like "Oh, well of course you need to have a pressure regulation valve on your main." Turns out we don't have any such thing. So, another plumber (from the plumbing company) is coming (hopefully this afternoon), to install the valve. In the meantime, this guy adjusted the relief valve so that it will hold 120psi without leaking.

(Later on:) The second plumber came, installed the valve, everything's fine.

*psi is a lovely acronym in that it could also be spelled ψ.

posted afternoon of March 24th, 2008: Respond
➳ More posts about Steam heat

🦋 The leak

Hm. Well, I turned the main water supply off last night. Turned it on this morning, and the pressure relief valve is not leaking. I'm not sure what to make of that -- it could mean the problem was a transitory surplus of pressure in the main line; or it could (more likely, I think) mean giving the valve a chance to rest made it stop leaking, which probably means the leak will come back after a little while. I don't want to call a plumber and have him come over here while there is no leak, I don't think that would be useful. So, deputizing Ellen to check on the pipe through the day (assuming it is still not leaking at 8:30, when I go to work -- otherwise I will take a personal day and interact with plumbers.)

...Aaand, we're dripping! A very slow drip right now, I'm assuming it will get worse as the day goes on. I have called the heating company and the plumber should be here later this morning.

posted morning of March 24th, 2008: Respond
➳ More posts about Home improvement

Previous posts
Archives

Drop me a line! or, sign my Guestbook.
    •
Check out Ellen's writing at Patch.com.

What's of interest:

(Other links of interest at my Google+ page. It's recommended!)

Where to go from here...

Friends and Family
Programming
Texts
Music
Woodworking
Comix
Blogs
South Orange