fogbound.net




Fri, 28 Apr 2006

Redraw delay in Photoshop script.

— SjG @ 11:11 am

I’ve been working on a script to do a bunch of crazy manipulation of images in Photoshop. Basically, it sequentially opens all the image files in a directory, and displays a dialog box requiring user interaction to determine what to do with the image.

I was having the problem that the dialog box would come up before the image could redraw (in the case of large images), so the user would be asked what to do, but would be unable to see the image in question. This, of course, doesn’t work.

I tried writing delay code, to no avail. I had a very hard time finding help, because I didn’t know what search terms to use. None of “delay,” “repaint,” “refresh,” “sleep,” and “wait” yielded anything useful when combined with”Photoshop” and “Javascript.”

Finally I found this posting by Tom Hart in the Adobe forums, where he provides a function called WaitForRedraw which solves the exact problem!

Here’s a link to Tom’s Posting.


Thu, 9 Feb 2006

Married!

— SjG @ 11:44 pm

On Tuesday, the 7th of February 2006, Elizabeth & I were married!

It was the 7th day of the 7th month of the 7th year since we first met. Therefore, we figured that several rituals were necessary to complete the whole experience…

On the 6th, we went down to Pala Resort and Casino near Temecula. Our theory was that the 7-7-7 mojo made it imperative that we throw seven dollars into a one-armed bandit. The morning of the 7th dawned auspiciously, a fine, hot, Santa-Anna-ish day. The Trickster, in the guise of a big ol’ high-desert crow, looked in the bathroom window at me, and uttered something that I can only imagine was along the lines of “Cawwwwwn grats” before flying off (I’m not an expert at beak-reading).

So we went down into the Casino proper, and scouted around ’til we found a dollar slot machine named “Double Diamond 7s.” Earlier, Elizabeth had put aside the seven dollars for the ritual, which, through some mysterious string of events, had grown to eight dollars. We forged boldly ahead, casting our wealth into the Bill-Validator of Fate, and ended up winning a total of $16. We resisted The Trickster’s tempting plan to have us lose it all in one grand roulette bet or something, and cashed out. So we doubled our fortune — a promising metaphor, if not Profound Omen.

Leaving Temecula, we stopped by a local Trader Joe’s to stock up on flowers, and had The Wedding Breakfast of Champions, i.e., cold pizza from the night before, along with some heart-shaped cookies and hot beverages. Then, we faced the traffic to Norwalk.

We actually got to Norwalk early, though, and sat in the Marriage Mobile and fixed up Elizabeth’s bouquet and a basketful of flowers for Elizabeth’s colleagues at County.
Flowers

Then, the Moment was almost upon us. We entered, and waited in the green line, where we paid for our ceremony. They were able to take us immediately, but the news traveled like lightning, and we were greeted by smiling and congratulating throngs of Elizabeth’s colleagues. While Elizabeth handed out flowers, I was told at least a dozen times how lucky I was (a terrible understatement, of course, but I agreed anyway).
Handing out flowers

Maricela performed the ceremony, which was short and sweet, and exactly what I had wanted. Beforehand, I thought I might be nervous, but I was not. Ever since deciding to ask Elizabeth to marry me, I’ve been experiencing a better-than-caffeine clarity.
Donning the Ring
Kissing the Bride
Man and Wife

Well, here it was. We’re official! Did it feel different? Being married? Yes. Yes and no. As I’ve blunderingly said for a long time now, I’ve known that I plan to spend my life with Elizabeth. But there’s no question that a solemnization transforms that feeling into something else. Something deeper, more tangible. I suspect that when we have our public celebration, surrounded by family and friends, it will transform into something deeper still.

From Norwalk, we made our way towards Malibu. We made a brief and disappointing stop at the Ashes and Snow exhibit at Santa Monica pier, and an equally brief but much more satisfactory cappuccino stop at Marmalade Cafe. Then we drove out onto Point Dume, and walked up the trail to the top of the point. It was clear and warm, with only a light breeze. At the lookout point, Elizabeth quickly created a magical chapel.
Chapel

In this chapel, surrounded by the beauty of the coast, we had our own ceremony. With occasional tears of joy, we proclaimed our vows to one another, tied a symbolic shawl around us, rang out bells, and had a chocolate or two.

We wiped our eyes, and wandered down the trail to an outlook deck. The view was spectacular: we could see the whole sweep of Santa Monica bay, Catalina Island, the elusive San Nicholas Island, and the Channel Islands to the north. We watched porpoises leaping in the distance, along with graceful strings of pelicans and surging sea lions. And we watched the sun slowly set.
View
Sunset

As the drama was playing out in the sky, we headed down the hill to an excellent dinner at The Sunset, before returning home. To paraphrase Steinbeck, it was a day like other days and yet perfect among days.

(you can view larger versions of the pictures above by clicking on them)

Filed in:

Mon, 6 Feb 2006

Salamanders

— SjG @ 11:18 am

Yesterday, while moving a pile of tarp-covered sand in the garden, I was amazed to discover a very worm-like salamander. Online research seems to indicate it’s a Batrachoseps nigriventris, although I could easily be mistaken.

In any case, I soon found that there was not one, but several living there. I guess that’s a good sign — we must not have too much in the way of residual pesticides around.

Elizabeth set up some small shelters out of tiles and bits of tarp for them to take refuge in, as their previous home is no longer cluttering the driveway. It gives me a nice warm feeling to think they’re out there, lurking in the garden, along with all the other strange crawling things that I never see.

Filed in:

Sun, 22 Jan 2006

Love

— SjG @ 11:28 pm

Angela Carter, 1987, Penguin Books

Reading a book by Angela Carter can be compared to having a dream where you are reading a book by Jeanette Winterson. Actually, that’s not strictly true. Carter’s books have a strong dream logic, but also a disturbing undercurrent of emotion that makes me, as the reader, feel like I’m tottering on the edge of sanity.

Love is no exception. Ostensibly a simple tale of a dysfunctional relationship, it is simultaneously detached and emotionally intense. It’s difficult to connect to the characters, and yet they are strangely compelling.

Dreamlike? Maybe it’s more like an unsettled awakening. Hours after putting the book down, I felt like I’d been wrested suddenly from a dream, which had quite evaporated except for a few shadows of inexplicable but profound dread that still flicker in the corners of my vision.

Filed in:

Richard III

— SjG @ 11:12 pm

William Shakespeare, circa 1592, read as an eBook from Blackmask.com

This is Shakespeare’s famed hatchet job on old Richard Three, conjuring him as an evil genius and unparalleled manipulator, who is brought down (unsurprisingly) by his own crimes.

The play made me think of Firdusi’s Satire on Mahmud, where he instructs the ruler on how it is the writers who create great heros — or, in this case, tear them down. I don’t care to speculate on the virtues of anyone who managed to claim the bloody and oft-contested throne of England; I have no doubt that any ill things said of them have more than a kernel of truth. But Firdusi’s claims have weight here. What I know of Richard III is based upon Shakespeare alone, and Shakespeare tells me that he was an evil, twisted man.

Filed in: