fogbound.net




Sun, 18 Feb 2007

Mardi Gras!

— SjG @ 10:26 pm

Saturday was the Grand View Krewe’s annual Mardi Gras extravaganza at Venice Beach.

I took close to eight hundred pictures. I’m currently sorting, refining, color-correcting, cropping, etc. They’ll be available in the webbwerks.com gallery soon! You can see pictures from 2003 and 2004 there now … If I get my act together, I’ll post up pictures from not just this year, but the last three years…

While you’re waiting, check out some music by The Gumbo Brothers.


Mon, 5 Feb 2007

Dogfight, except with birds

— SjG @ 10:46 am

On my walk in this morning, I was surprised to see a red-tailed hawk, fluttering low over the sports-fields of Venice High School. I do occasionally see red-tails in the area, but I didn’t think it would find much to hunt at the high school (then again, I guess there could be other birds there).

The red-tail was fluttering, riding up on thermals, swooping around, and just being generally magnificent. But before long, a single crow vectored in and started harassing it. They spun around in numerous quick dives and spins, with the hawk flipping and keeping its talons pointed crow-wards as much as possible, while the crow kept zipping around and trying to peck from behind.

After a few charges and countermeasures, the crow managing to pull a feather from the hawk, at which time the red-tail skipped all defensive maneuvers and started beating a retreat. As it headed southwest, a whole mob of crows emerged from a deodar. It didn’t look like the flock actually went after the hawk, but it was clear they were defending territory.

Filed in:

Tue, 16 Jan 2007

Javascript in Photoshop

— SjG @ 9:21 pm

Ah, it was such a happy day that a Photoshop junkie and programmer geek discovered that Photoshop could be scripted with a Real Object-Oriented Language, like Javascript!

And yet, as time goes on, this happiness is mitigated. Egregious bugs (such as the failure of Selection.bounds) pop up, requiring internet searches to get the workaround. Then, there are unexpected things, where the document units are not honored for selection translations.

Even worse, it dawns on the programmer that many useful functions are missing — functions that seem like natural features for scripting Photoshop — like, say, getting the RGB value of an arbitrary pixel from an RGB document, or getting the transparency of said pixel, or, even, say, changing that value. Of course, there are workarounds for all of these functions (e.g.,this ). But why should I need fifteen extra lines of code?

Then, there are errors that are in my code. I find that aliasing is a big problem when I’m creating virtual triangles and then getting the pixels from within them. For example, my script for simplifying the creation of images like this:

tessel-test5-big.jpg

has enough slop in the aliasing combines with the rotations and translations to yield problems like this:

tessel-test-detail.jpg

So maybe it’s time for me to start implementing this kind of thing in a vector-based program. I’ve played with the demo of Intaglio, and it looks good. And it’s scriptable too, albeit only using AppleScript, which I’ll have to learn.


Tue, 9 Jan 2007

The Green Odyssey

— SjG @ 7:56 pm

Philip José Farmer, 1957, read as an ebook from manybooks.net

This is far from Farmer’s best, but it’s still a swashbuckling adventure. Reminiscent of the better Edgar Rice Burroughs adventures, it features technologically advanced humans trapped on a medieval backwater planet. As the story progresses, you find that maybe the world isn’t as primitive as our hero thinks.

It’s a fun ride, filled with what I’d call old-school wish-fulfillment sci-fi. Also notably, it features ships that sail through great grassy plains a good thirty or forty years before Dan Simmons’ Hyperion.

Filed in:

Why Things Are and Why Things Aren’t

— SjG @ 7:48 pm

Joel Achenbach, Ballentine, 1996

A collection from a newspaper column where Questions are sent in, and they are Answered.

It’s entertaining, like reading any of various collections of trivia. Will you learn new things that will change your life through their enlightening revelation? Probably not. Is it a book that will help you pass a few pleasant hours? Probably.

Filed in: