Chip's Quips
A tiny spark of wit for a highly flammable world

Rain, and here comes the sun

February 29th, 2008 7:57:48 pm pst by Sterling Camden

I must be fully adapted to life here in the Northwest. Even after the wet winter that we’ve had, I still like the rain. It plays a soft, percussive cadence on the roof and tinkles into the gutters and downspouts while I sit inside, warmed by the vapors rising from my hot beverage. I even enjoy a walk in the rain with my waterproof boots and jacket on, smelling the fresh air and feeling thousands of tiny pats on my head, shoulders, and arms.

Why do people find the rain depressing? Maybe because the clouds block the sunshine, limiting access to Vitamin D and the healthy effects of ultraviolet light. Or maybe they don’t wear the right gear so they feel cold and damp. But the benefits of rain far outweigh its inconvenience.

Suddenly I’m reminded of a portion of Akhenaten’s Hymn to the Aten:

All distant foreign countries, thou makest their life (also),
For thou hast set a Nile in heaven,
That it may descend for them and make waves upon the mountains,
Like the great green sea,
To water their fields in their towns.
How effective they are, thy plans, O lord of eternity!
The Nile in heaven, it is for the foreign peoples
And for the beasts of every desert that go upon (their) feet;
(While the true) Nile comes from the underworld for Egypt.

It doesn’t rain much in Egypt, so the Nile is the main source of fresh water there. But Akhenaten knew about rainfall in other regions, and how it provided the same benefit — thus a “Nile in heaven”. It’s interesting to me that credit for the water cycle goes to the Sun god here (the Aten), but that’s probably just a coincidence rather than any scientific understanding of the process — the Aten being the only god in Akhenaten’s religion.

As a student of Biblical Literature in college, I became fascinated with Akhenaten’s fourteenth century BCE experiment with monotheism. It represented such a marked break with the ornate polytheism of previous Egyptian religious tradition, and it was just as soon squelched by that priestly establishment after Akhenaten’s death. The images of the Aten (the Sun’s disk) are also markedly less anthropomorphic than other gods of that time, its only human touch being the tiny hands depicted on the end of each of its rays, caressing the king and his family. Of course it’s hard to say whether Atenism was truly a theoretical monotheism or just monolatry (“worship only one god” as opposed to “there is only one god”), it certainly seems to have been purer in practice than any stage of Judaism, Christianity, or Islam. These three continue to condone belief in other divine beings such as angels and demons, who were after all originally lesser gods in the court of the high god El in Canaanite religion. And lets not forget the doctrine of the Trinity, whereby Christians add one plus one plus one and get one. Even if it might all be true, you can’t really call it monotheism.

If you have to choose one thing to worship, then the Sun seems like an especially practical choice. It’s something you can see every day that provides immense benefits to our world (more even than Akhenaten might have realized). “Lord of eternity”, though, is a bit overdone. The Sun may well be the most impressive phenomenon in our daily experience here on Earth, but we now know that it won’t last forever and that there’s much more to the cosmos than our star in one little corner of one galaxy among billions.

Posted in Out of Nowhere | 4 Comments » RSS 2.0

links for 2008-02-29

February 29th, 2008 2:26:28 am pst by Sterling Camden

Posted in Share the Love | No Comments » RSS 2.0

links for 2008-02-28

February 28th, 2008 2:33:37 am pst by Sterling Camden

Posted in Share the Love | No Comments » RSS 2.0

links for 2008-02-27

February 27th, 2008 2:33:31 am pst by Sterling Camden

Posted in Share the Love | 2 Comments » RSS 2.0

Can I get MySQL to call Ruby?

February 26th, 2008 4:07:47 pm pst by Sterling Camden

MySQL and I are acquainted, but we have yet to establish an intimate relationship. She’s a cheap date who’s always available and doesn’t make a scene. But lately she’s been eluding my desire for something more exciting. Maybe she’s jealous because I want to bring Ruby in on one of her triggers.

Maybe you can help me to be more persuasive. I need to execute a Ruby script whenever a row is inserted or deleted on a specific table. Ideally, this should occur as immediately as possible. It would make sense to do this from within a MySQL trigger function, but there doesn’t seem to be any easy way to get there from here. I searched the MySQL forums and found three similar requests, but no answers.

Guy Naor posted exactly what I need except that it uses Postgres’ LISTEN/NOTIFY mechanism, which is sadly lacking in MySQL. Unfortunately, we don’t have the option of changing database servers.

Baron published an approach using advisory locks as a notification mechanism. But commenter Arjen Lentz said “I’ve tended to advise against using MySQL’s advisory locking functions, there are enough pitfalls to make it undesirable in terms of relying on it for an application” — without specifying exactly what those pitfalls are. Besides, the idea of using something intended as a lock in place of a message seems like it’s bound to get, um, locked up.

We’re currently considering using a polling mechanism instead. The trigger function would insert a row into a new table that acts as a queue, and the polling process would read the queue and handle the notifications. But that does introduce a delay of up to a little more than our polling interval, and it also seems just a bit Mousetrappish. I’m hoping that some of my readers who have taken MySQL and Ruby around the block a few more times than I have (glances with puppy dog eyes in the direction of Assaf, lower lip protruding and trembling slightly) might come up with a better idea (pppplease).

Posted in Coding...OK?, Wildly popular | 2 Comments » RSS 2.0

links for 2008-02-26

February 26th, 2008 2:27:53 am pst by Sterling Camden
Tags:

Posted in Share the Love | No Comments » RSS 2.0

links for 2008-02-24

February 24th, 2008 2:23:40 am pst by Sterling Camden

Posted in Share the Love | 3 Comments » RSS 2.0

links for 2008-02-23

February 23rd, 2008 2:23:47 am pst by Sterling Camden

Posted in Share the Love | 4 Comments » RSS 2.0

Any Synergy/DE programmers want to move near the Magic Kingdom?

February 22nd, 2008 4:34:27 pm pst by Sterling Camden

Yesterday I had an email conversation with a headhunter who’s looking for a Synergy/DE (or DIBOL) programmer. Not something I can fill because it’s a permanent, full-time position in the Orlando, Florida area. But if any of my readers are interested, please contact me. Here are the qualifications:

  • Synergy/DE (DIBOL) and C/C++
  • Five years experience desired
  • Salary range $80K – $85K
  • OpenVMS operating system
  • MS SQL Server and Oracle databases
  • Must relocate to Orlando

Synergy/DE programmers are a bit hard to find. Not many people know the language, yet it’s used in business applications around the world. Most of these are what you would call “legacy” apps, but many are still undergoing aggressive enhancement, so demand for programmers is high.

In that relatively small pond, I’m the big fish. I not only work with some companies that use Synergy/DE, I also help Synergex develop the language and tools. Since there are lots of ways for someone to connect Synergy/DE to me, I had to ask how they found me. The answer, Google “Dibol resumes”. The only first-page result that leads to me is for this post, which isn’t about DIBOL or resumes. I mentioned DIBOL as part of my past history with standards, but nothing about resumes.

Then I noticed that Doug Karr added a comment in which he proposed an RSS extension for resume information. Google picked that right up. They’re even serving resume ads on that page.

So, thanks to serendipity, Doug, and the Holy Google, I just might be able to snag a referral bonus.

Posted in Search me | 3 Comments » RSS 2.0

links for 2008-02-22

February 22nd, 2008 2:32:48 am pst by Sterling Camden

Posted in Share the Love | 4 Comments » RSS 2.0