Programming in the Stone Age: SHA-1 and HMAC-SHA1 in Pure Lua
NOTE: Images with an icon next to them have been artificially shrunk to better fit your screen; click the icon to restore them, in place, to their regular size.

I've coded up SHA-1 Secure Hash computation and HMAC-SHA1 secure signature computation in pure Lua and thought I'd share them in case anyone else would find them useful. The download is over on my so-inventively-named “SHA-1 and HMAC-SHA1 in pure Lua” page.

Lua is a horrid language, so these were not trivial, but I needed them for the Twitter support I just added to some of my plugins for Adobe Lightroom (I added Twitter support to: Zenfolio, Flickr, Facebook, SmugMug, and Picasa Web). I hope someone else can get some use out of the result.


Serenity at the Sanzen-in Temple
NOTE: Images with an icon next to them have been artificially shrunk to better fit your screen; click the icon to restore them, in place, to their regular size.
desktop background image of a serene view of the gardens at the Sanzen-in Temple (in the mountains north of Kyoto, Japan) -- Serenity Sanzen-in Temple, Kyoto Japan -- Sanzen-in Temple -- Copyright 2009 Jeffrey Friedl, https://regex.info/blog/
Nikon D700 + Nikkor 24-70mm f/2.8 @ 70 mm — 1/1600 sec, f/2.8, ISO 1000 — map & image datanearby photos
Serenity
Sanzen-in Temple, Kyoto Japan
Desktop-Background Versions
Standard: 1024×768  ·  1440×1080  ·  1600×1200      Widescreen:  1280×800  ·  1680×1050  ·  1920×1200  ·  2560×1600

In last week's post “A Visit to Kyoto's Sanzen-in Temple” (which was followed up by some pretty desktop backgrounds and Part II), I included a photo captioned Contemplation, showing a lady at the edge of a garden-viewing room, viewing one of the temple's gardens.

I never got around to actually entering the garden-viewing room myself, but on the way out of the temple grounds an hour or so later, a small break in an intermediate wall gave a glimpse of the garden and the garden-viewing room from right angles to before, and I took the opportunity to snap another shot.

I really like the result, especially when viewed nice and big. I hope you like it, too.

Continued here...


Pleasant Sunday: Family Bike Ride in Kyoto
NOTE: Images with an icon next to them have been artificially shrunk to better fit your screen; click the icon to restore them, in place, to their regular size.
Off for a Bike Ride along the Kamo River, Kyoto Japan -- Copyright 2009 Jeffrey Friedl, https://regex.info/blog/
Nikon D700 + Nikkor 24-70mm f/2.8 @ 24 mm — 1/8000 sec, f/2.8, ISO 280 — map & image datanearby photos
Off for a Bike Ride
along the Kamo River, Kyoto Japan

It was a supremely wonderful day today, with perfect sun and temperatures. The hysteria from the swine-flu plague is mostly past, so we went out for a family bike ride, our first in ages... perhaps the first since last summer in Whistler, Canada.

Just prior to taking the picture above, I discovered that it's possible – though not particularly easy, and certainly not becoming – to change the focus selector switch on a Nikon D700 body with your teeth. (I was riding a standard mamachari Japanese bicycle, which is inherently unstable, and so unlike the bikes I rode growing up, it's almost impossible to ride with no hands, so I had only one hand free to hold the camera.)

Anyway, it was just a wonderful day, with people out and about. You can see in the background of the next photo kids playing in the river, which has stepping stones running across...

Hustle and Bustle of a Relaxing Sunday -- Kyoto, Japan -- Copyright 2009 Jeffrey Friedl, https://regex.info/blog/
Nikon D700 + Nikkor 24-70mm f/2.8 @ 62 mm — 1/4000 sec, f/7.1, ISO 1000 — map & image datanearby photos
Hustle and Bustle of a Relaxing Sunday

We made our way to the grounds of the Kyoto Imperial Palace, and found a nicely wooded trail to enjoy...

Kyoto, Japan -- Copyright 2009 Jeffrey Friedl, https://regex.info/blog/
Nikon D700 + Nikkor 24-70mm f/2.8 @ 70 mm — 1/320 sec, f/7.1, ISO 1000 — map & image datanearby photos

We'd brought along some lunch, so stopped at a nice, quiet area to eat. One of the benches was just an old, large, slab of wood:

Well Aged -- Kyoto, Japan -- Copyright 2009 Jeffrey Friedl, https://regex.info/blog/
Nikon D700 + Nikkor 24-70mm f/2.8 @ 40 mm — 1/200 sec, f/4.5, ISO 1000 — map & image datanearby photos
Well Aged
Anthony and a Friend -- Kyoto, Japan -- Copyright 2009 Jeffrey Friedl, https://regex.info/blog/
Nikon D700 + Nikkor 24-70mm f/2.8 @ 58 mm — 1/100 sec, f/4.5, ISO 1000 — map & image datanearby photos
Anthony and a Friend
Kyoto, Japan -- Copyright 2009 Jeffrey Friedl, https://regex.info/blog/
Nikon D700 + Nikkor 24-70mm f/2.8 @ 70 mm — 1/125 sec, f/4.5, ISO 1000 — map & image datanearby photos

After lunch, and a game of catch with a baseball (Anthony's getting much better at catching with the mitt, something he did for the first time just last month.)

We then took off for another part of the Imperial-Palace grounds...

Sunny Day in Kyoto Gosho -- Kyoto, Japan -- Copyright 2009 Jeffrey Friedl, https://regex.info/blog/
Nikon D700 + Nikkor 24-70mm f/2.8 @ 35 mm — 1/4000 sec, f/5.6, ISO 1000 — map & image datanearby photos
Sunny Day in Kyoto Gosho

We stopped when Anthony spotted a tree that he thought he could try to climb. He's pretty much a scaredy-cat when it comes to stuff like this, so I was happy he wanted to give it a try...

A Bit Stuck -- Kyoto, Japan -- Copyright 2009 Jeffrey Friedl, https://regex.info/blog/
Nikon D700 + Nikkor 24-70mm f/2.8 @ 24 mm — 1/800 sec, f/5.6, ISO 1000 — map & image datanearby photos
A Bit Stuck
Like a Cat -- Kyoto, Japan -- Copyright 2009 Jeffrey Friedl, https://regex.info/blog/
Nikon D700 + Nikkor 24-70mm f/2.8 @ 24 mm — 1/2000 sec, f/3.5, ISO 1000 — map & image datanearby photos
Like a Cat
“Okay, This is High Enough for Me” -- Kyoto, Japan -- Copyright 2009 Jeffrey Friedl, https://regex.info/blog/
Nikon D700 + Nikkor 24-70mm f/2.8 @ 24 mm — 1/250 sec, f/11, ISO 1000 — map & image datanearby photos
“Okay, This is High Enough for Me”
Return to Earth -- Kyoto, Japan -- Copyright 2009 Jeffrey Friedl, https://regex.info/blog/
Nikon D700 + Nikkor 24-70mm f/2.8 @ 24 mm — 1/60 sec, f/22, ISO 1000 — map & image datanearby photos
Return to Earth

We played catch a bit more, but met somewhat of a roadblock when the ball got caught high up in a huge evergreen with wide, thick branches. The roadblock became a bit more troublesome – and substantially more amusing – when the mitt I was throwing to try to dislodge the ball also got stuck.

Luckily, we had a small plastic bottle of water, which dislodged the mitt on the first try, and, with the mitt pressed back into service, we soon had the ball back as well.

I decided to take a break on the ground, and Anthony decided to take a break on me....

Photo by Fumie Friedl, with her cell phone -- Copyright 2009 Fumie
Photo by Fumie Friedl, with her cell phone

Eventually we moved off....

On The Move Again -- Kyoto, Japan -- Copyright 2009 Jeffrey Friedl, https://regex.info/blog/
Nikon D700 + Nikkor 24-70mm f/2.8 @ 70 mm — 1/4000 sec, f/4.5, ISO 1000 — map & image datanearby photos
On The Move Again

... and ended up at the playground in the far corner of the grounds, where Anthony played on a huge fallen tree, and swung on a swing, and did other random assorted play.

Getting late, we headed home via a different route, passing over the Kamo river above the path near where the first picture of this post was taken...

Kamo River, North from Marutamachi Street Kyoto, Japan -- Copyright 2009 Jeffrey Friedl, https://regex.info/blog/
Nikon D700 + Nikkor 24-70mm f/2.8 @ 48 mm — 1/6400 sec, f/4.5, ISO 1000 — map & image datanearby photos
Kamo River, North from Marutamachi Street
Kyoto, Japan

Shocking! IE8 Is Just a Rebranded Version of Firefox
NOTE: Images with an icon next to them have been artificially shrunk to better fit your screen; click the icon to restore them, in place, to their regular size.

While running Windows Update, I noticed that Internet Explorer version 8 is out. Apparently, IE8 is just a rebranded version Firefox 3! Who would'da known...

Internet Exploror 8 is the latest
version of the familiar Web browser that you are mot comfortable using

My reaction to their “these are not the droids you're looking for” attempt was to bypass it. Heck, I haven't even installed IE7.... but then again, why should I?.... I never use the IE6 that I do have.


Insights from a 6yr old: Youth is Wasted on the Young
NOTE: Images with an icon next to them have been artificially shrunk to better fit your screen; click the icon to restore them, in place, to their regular size.

While putting Anthony down to bed last night, he claimed (incorrectly) that he wasn't tired, and so going to bed would be “boring”. We'd been in a large five-story toy store recently, so I suggested that he pass the time by imagining that he lived in the toy store...

Me: What would you play with?
Anthony:      Everything!
Me: Well, you've got to start somewhere.
Anthony:I wish I could really live there.
Me: Well, you can, when you get older. You can buy a toy store and live there.
Anthony:Really?
Me: Sure, you just have to save a lot of money to do it. By the time you get old enough, you'll be able to do that.
Anthony:(thinking....)
But then I wouldn't be a kid anymore!

It took me a moment to realize what his complaint was. He was worried that by the time he was old enough to actually be able to make his dream of living in a toy store come true, he would be too old to enjoy it.

Wise beyond his years.

I explained that it's possible to keep a kid's spirit alive in your heart as you grow into an adult. He liked that idea.