Random Thoughts

It’s weird how ideas come in spurts. For weeks, now I’ve had nothing much to say, then last night, riding along the bike path, I had two ideas for posts.

Scheduled Posts

I’ve been having trouble with WordPress scheduled posts. I actually wrote both First Bike Ride of the Season and Subtle CSS Error one after the other last night, but scheduled the second one to publish this morning. It didn’t, so I had to release it manually. I just downloaded a plugin to try to fix the “Missed Schedule” issue; we’ll see if it works with this post. Update: It did.

American Idol

I’m watching American Idol again this year. I skipped it last year because I couldn’t stomach the judges, and also felt that it was eating up too much time. This year I’m liking the judges a lot. Harry Connick is especially good. He’s honest, and specific, without being nasty or disrespectful.

The kids, I’m not liking so much. By Top 8 week, we should have been rid of the weaker singers by now.  It seems absurd to me to have someone (C.J.) in the Top 7 who can’t sing in tune—I don’t care about how passionate someone is if they are painful to listen to. Sam Woolf is good sounding but robotic. I liked Malaya, and felt that overall, she’d been improving, but this week’s performance was a mess. Caleb is an excellent performer, but not my cup of tea, Dexter is very karaoke. I like Jessica —I really liked her original, Blue Eyed Lie— but she can get very nasal sometimes. I don’t think Jena’s vocals are as good as everyone thinks, but I do have a little soft spot in my heart for her, since there’s something about her face that reminds me a little of my niece Ally. I think Alex is probably the best of the bunch technically, but he doesn’t seem to be as much of a performer. I can definitely see a career for him as a studio musician/songwriter or producer though.

Spring

Spring seems to be oozing in on us. I’ll probably burn the downed branches this weekend. I need to look at the lawn and see if it’s dried out to dethatch, assuming I can get a rental.

 

Subtle CSS Error

An exercise in debugging Cascading Style Sheets

We launched a new version of the work website this week. We’re still tweaking things, but overall, I like the look of it, especially the subpages. The report pages haven’t looked this good in ages. I think I’ve kind of fallen in love with Open Sans, the font used in the new design, and I like that it comes in both bold and semi bold versions.

Just before we launched, though, we ran into one of those wonderful head scratchers that seem to be the hallmark of web development. We were clicking through the various views, and Garry clicked into the screen to edit an address. In IE, (of course) there was nothing there except the Save button at the top of the page. Since the section is loaded via Ajax, my first thought was that it was some sort of problem with loader script, especially since I was seeing Javascript errors in the error console. I found that error, fixed it, but it still didn’t fix the page.

Brute Force Debugging

Obviously, since we were dealing with a new theme and a new style sheet, those could be the culprit. So was it the new HTML or the new CSS? Turning off CSS showed the form, but was that issue?  Nothing obvious leapt out at me, and I had no idea where to even start looking. Finally, I bit the bullet, saved a backup copy of the stylesheet, then deleted the last third of it. No luck. I reinstated the section I deleted, then deleted another section. Still no luck. Finally, removing lines 400 to 700 revealed the form. From there, it was a simple matter of removing smaller and smaller parts of the stylesheet, until we zeroed in on the offending line.

Here it is:

main .controlbar .minibutton, main .controlbar .minibuttonactive {width:auto; display:inline;  text-align:center;  margin: .07em 0 .34e7em}

Do you see it?

The problem arose out of the fact that, for accessibility’s sake, we’re using ems instead of pixels (px) as units of measurement, because they make it much easier for a user to resize their screen. Pixels tend to be simple integers; ems are often decimals, and in a longish decimal, a typo can hide. In this case, the margin should be

margin: .07em 0 .347em

Once I narrowed into the right line, it was immediately obvious. Nearly an hour to find, 10 seconds to fix.

First Bike Ride of the Season

I went for my first bike ride of the season tonight. I hadn’t been planning on it—the forecast was for rain, but I do need the exercise, I did have the bike in the car, and it felt warm when I left work, so off I went, despite the overcast. Since the days still aren’t long, I decided to start from the Riverside Square parking lot.

I should have known better as soon as I got out of the car, and a cold wind cut right through my heaviest fleece. I hate riding when it’s cold and raw. My ideal is a nice warm evening when there’s a pretty sunset. Still, I pushed on, my legs despising me. I am so out of shape right now. But I pushed on, knowing that a crummy ride now will pave the way for a better ride next week.

My initial goal was just to do 3 miles. Then I decided to go for the YMCA that’s along the path in Warren. A little further, as it turns out, than I intended, but that was OK. I got there and turned around, and as I headed back, I had a tail wind, and my legs started to loosen up. Eight miles isn’t so bad for the first ride of the season.

Apple II

I began my relationship with computers with a make-believe computer that I drew as a child on on the inside of boxes, and modeled on the computers I’d seen on Lost in Space and Batman (Star Trek was on too late for me) and read about in stories featuring big consoles hooked up to cabinets out of sight. I had fun with that for a couple of days, graduated to making control panels for make-believe spaceships, and that was that. Continue reading

Walk at Sunset

I decided to visit the East Bay Bike path today after work. I was hoping it was still snow covered; I had both my skis and the snow shoes my friend Rich gave me in the car. The plan was to park at Riverside Square and go far enough to see Pomham Rocks Lighthouse.

By the time I got there, the sun had just slipped under the horizon, but the sky was still bright. The path was mostly snow free, so I just walked. It was intensely cold, but also incredibly peaceful– just the water gently lapping at the shore, and geese honking overhead.

Sunset from the East Bay Bike Path, featuring the Pomham Rocks Lighthouse

Sunset at Pomham Rocks

Slide Scanning Update

I was just re-reading my post on my slide scanning workflow, and thought I’d post an update. I’m just about to finish my second carousel, and I’ve made a change that has sped things up a bit.

First of all, I’d like to mention that VueScan no longer requires the the slides to be set to “Mirror”. There was a update a couple of months ago that took care of this issue.

Second, I’ve found a better way to use the “Dust and Scratches” (DS) layer that I generate using the old Polaroid Dust and Scratches plugin. I would imagine this technique would also work with the default Dust and scratches plugin too. To recap, I found that the Polaroid dust and scratches plugin did a very good job of getting rid of dust spots, and to a lesser extent, fungus, but it also left artifacts, and removed detail.

Kids watching my uncle feed a squirrel

Cousin Susan, Uncle Tom, and neighbor watch my Uncle Dick feed a squirrel. Circa 1955

Previously, I was running the filter on a copy of the file, and then adding the result as a layer, and erasing the layer where it was causing problems. This created a lot of work, because I had to carefully inspect the whole image in order to erase the layer where it was causing problems.

Eventually, I realized it would be better to reverse things. Now, I add the layer, and immediately add a layer mask to it in Photoshop, making the layer completely transparent. Layer masks allow you to make make parts of layer transparent or translucent. When the mask is black, the layer is transparent. Where the mask is white, the layer is opaque. Gray generates a semi-transparent area. Once the mask is created, you can paint on it with the brush or any of the other tools, allowing very good control of what parts of a layer are visible. It’s a great tool for creating collages.

So I start off with a completely transparent DS layer, and then use the graphics tablet and brush tool to unmask the layer over dust spots. Generally speaking, for spots and fungus tendrils, it’s faster than using the Spot Healing Brush, and working this way allows me to avoid applying the layer to areas with a lot of detail. For hairs, scratches, and areas of detail, I find the Spot Healing Brush works better—it’s more complete, and it’s less likely to add artifacts or remove detail.

I’ve found this speeds things up quite a bit, since I can keep the brush away from edges and detail, only applying the layer where it’s needed. This means I don’t have to keep checking the DS layer to make sure it isn’t obscuring detail. It’s also usually faster than the Sport Healing Brush — my aim doesn’t need to be as accurate, and I don’t have to fuss with it as much. Using this technique (plus the fact that the current batch of slides hasn’t been as dirty as the first batch) meant that I was able to get many more slides scanned for my aunt than I anticipated in time for Christmas.

It’s Only Snow

If you listened to the news yesterday, you’d think New England was getting ready for The Big One or something. Blizzard Warning! Winter Storm Warning! Danger, Will Robinson!!. (Well, maybe not the last one). And then you listen to the forecast, and you realize, for most of the area… it’s not a big deal. (I will grant that on the South Shore, it was a medium big deal).

First off, we knew yesterday that the snow was going to be light and fluffy. I’ll take a foot of fluff over six inches of heavy stuff any day. Second, for most areas, the forecast was 6-10 inches. Around here, six inches of snow is not a big deal. This is not the South. We have plows and snowblowers and shovels and know how to use them. Here, we wound up with 10 inches of fluff, and even that wasn’t a hard to get rid of.

This is New England. This storm was not a disaster. It was a nuisance, and I wish the media would learn to distinguish between nuisance storms and more serious ones.

I did take the train to work yesterday, but this morning I drove, because there’s no train between 7:40 and 10:16. Route I-95 was mostly clear, but somewhat slush covered. Gary LaPierre once stated that “Snow causes brain damage,” but driving in the snow isn’t really all that hard:

  • Keep the speed down
  • Maintain a lot of space between you and other cars if you can. Don’t tailgate, and don’t let others tailgate you.
  • Avoid sudden movements. Keep turns gentle and gradual if you can, and avoid hard braking.
  • Avoid it if you can. If we’re expecting dirty weather, I’ll take the train if I can.

So I left an hour later than I normally do, and it took slightly longer than normal. No big deal. It’s only snow.

Thousand Year Graveyard

I just finished Science’s online article, “The Thousand Year Graveyard“. It’s a very interesting story about excavations around an Italian monastery that’s been a cemetery since the middle ages. It’s a very slick HTML 5 presentation, with big pictures, video, and elements that slide in and out. It gives the background of the monastery, and explains how the excavations were done and what the scientists were looking for.  I highly recommend it.

The story feels oddly incomplete though. It talks about the excavations, and what the scientists were looking for, but there’s not as much analysis of what they found as I would like. I suspect the article is about a year premature–the text keeps mentioning how the archeologists were planning on looking for pathogen DNA, but doesn’t say whether they found any.  I feel that the article would have benefited from being held a year while the results came in. Only the fourth chapter, which deals with a set of skeletons buried en masse, draws any conclusions. Excavators found five skeletons covered in lime, generally a sign of a hasty mass burial; the lime being put down to prevent smells and contagion from the bodies. The archeologists had hoped that they’d found victims of the Black Death, as that would give them information about what caused the plague.

One of the skeletons was very intact and complete; by the fragility of the bones, they could tell it had been an older woman. The lime had preserved the impressions of her clothing, and they found an earring under her. The style of the earring told the investigators that the grave was not from the Middle Ages, but from the mid 1800’s – around the time of a cholera epidemic. They’re now hoping to culture the earth from the grave in hopes of finding cholera DNA, in order to find out if somehow cholera has become more or less virulent.

It’s all very interesting, and very well done, but I have the same problem with it that I had with the Body Worlds exhibits. The skeletons are too human. They’re not beetle browed monkey-like distant hominids from millions of years ago. I keep remembering these were people. From not too long ago. I get the scientific curiosity; I get the potential for discoveries, but there’s part of me that’s bothered by digging them up in the first place.

Happy 2014

Happy New Year 2014! I tend to agree with what Rich Siegel said on Twitter last night,”Oh, and a final thought to 2013: DONT LET THE DOOR HIT YER ASS ON THE WAY OUT.”

I went to First Night last night, and had a grand time, despite the cold. Dressing for it helped. I saw the procession from around Arlington St. It started off with a big truck carrying Mayor Menino and his party, blowing confetti all over the place:

Confetti truck at the First Night Grand Procession

Confetti truck at the First Night Grand Procession

After the procession passed, I walked up to the Public Garden (re-experiencing the tail end of the procession) to watch the fireworks. They were great.

Fireworks

Fireworks over the Common

After the fireworks, I headed up through the  Common to look at the LED sculpture there; there was also a single, small ice sculpture. I miss having the big sculptures at the Common. From there, I headed down to the Old South Church to see the concert put on by the Old South Brass, Organ & Percussion. They were magnificent. The church boasts an incredible organ with about 8,600 pipes located to the front and rear of the church. When the bass pipes play, the floor shakes, and that’s what it did, as they started the program with the Fanfare to Also Sprach Zarathustra, more commonly known as the theme to 2001, A Space Odyssey. Then, when the brass and kettle drums came in—it was awesome.

After the program, I walked down to the Hynes to see a stand up comedian from Laugh Boston. I wish I could remember his name; he was good. A hall in the Hynes is not the best place to see comedy, but he made the most of it. First Boston had provided a sign language interpreter for him; it was interesting to see him play off her. I wish I could understand what she was ‘saying’.

While at the Hynes I saw a big computerized LED wall. It was kind of mesmerizing.

LED wall

LED wall

I then walked back to Copley Square; there was only one ice sculpture there, called “Peaceable Kingdom”, about the lion laying down with the lamb.

Peaceable Kingdom-- ice sculpture of the lion laying down with a child and lamb

Peaceable Kingdom

At that point, I didn’t feel like heading over to Fanuil Hall or the harbor, so I called it a night and headed home. On the way back from Riverside, I swung by the Weston Ski Track to take a look at the snowmaking.

All things considered, it was a good night. I wish the organizers would schedule around the early fireworks a little better; it’s hard to get from the Common to the Hynes to make a 7:30 program, which is partly why I chose the 8 PM program at Old South Church. I was using the First Night app as a guide; it was good for figuring out the schedule and location of the individual programs, but not good at describing or locating the “overall” features like where to find the ice sculptures or what time the fireworks would take place, what would be the route of the procession, or content that would be available all day.

Here’s to a bright shiny new 2014.