fogbound.net




Mon, 3 Sep 2007

Books Fatal to their Authors

— SjG @ 2:26 pm

P. H. Ditchfield, 1894, read as an e-book from manybooks.com

This litany of imprisoned, tortured, condemned, burnt, exiled, hounded, bankrupted, beaten, abused, reviled, and otherwise rejected authors is a fitting followup to god is not Great. While Ditchfield gave brief histories of authors doomed for their writings in a range of fields (which he groups as Theology; Fanatics and Free Thinkers; Astrology, Alchemy, and Magic; Science and Philosophy; History, Politics and Statesmanship; and Satire), the majority in all of these categories were condemned for ostensible violations of theological dogma. Some of these theological associations are pretty tenuous — for example, Ditchfield references “a recondite treatise on Trigonometry” that was condemned “because they imagined it contained heretical opinions concerning the doctrine of the Trinity.”

Ditchfield repeatedly waxes poetic on the plight of the writer, who nobly labors to share intellectual riches with a world that responds with scorn and violence. I can’t find much information about Ditchfield himself, other than that he was a prolific English writer and the Rector of Barkham Antiquary. His biases come through when he writes of critics, who hound poor authors to death. With regard to religion, he tries to maintain neutrality, but can’t help but chide some authors for their theological errors.

Even if the “fatal” of the title is not necessarily our modern usage of “leading to death,” reading this gives me renewed appreciation for where and when and how I live. I don’t have to think twice if I choose to blaspheme, criticize my government, or even write about trigonometry.

Filed in:

Sat, 1 Sep 2007

How do they know?

— SjG @ 9:29 pm

So, it’s Saturday night, 10pm on a three-day Holiday Weekend. And another important server decides to have a fatal disk error.

How do they f*ing know?

It’s uncanny.

This is just another in a long series of similar failures. The power supply failed in my security-system a few years ago — hours before we were going to leave for a vacation. The previous time the security system crashed (due to unfortunate automatic software update) was — yup — the afternoon Elizabeth and I were leaving for a weekend cruise. And Elizabeth’s Mac had its hard drive fail the day I left for Bulgaria.

Of course, we all know why this is. There have been half a dozen other failures that happened during more mundane times, which evoked the standard rage/repair response. But that was par for the course, and soon forgotten.

So here I am. Saturday night … fixing machines. I should have been a ditch digger or something.


Thu, 30 Aug 2007

god is not Great, How Religion Poisons Everything

— SjG @ 11:18 pm

Christopher Hitchens, Twelve Books, 2007

Reading this book is kind of like coming into your first freshman seminar class where you are harangued by an extremely well-read and well-educated but overbearing, bullying, and quite possibly drunk professor. It’s intimidating, impressive, and, dare I say? amusing.

From the title on, Hitchens flaunts his disdain for religion. He offers up example after example of the philosophical contradictions of various religions, skewers beliefs by pointing out logical flaws, and condemns faith by describing crimes of organized religion. Hitchens spends most of his time on “the big three” of Christianity, Judaism, and Islam, but he is ecumenical in the contempt he heaps on other religions such as Hinduism and Buddhism in the little time he devotes to them. He comes up swinging, winding up with a call for a new Era of Enlightenment, one without religion.

I can’t help but feel ambivalence. Yes, religious fanatics the world over are trying to create their own respective theocracies and suppress everything but their own threads of belief. I can oppose this without reservation. Yes, many of these same fanatics are ignorant, and don’t know much about their own religions. Attacking some of these people (like the kind who say “if English was good enough for Jesus, it’s good enough for me”) is shooting fish in a barrel, and doesn’t do anyone any good. The deeply faithful admire the believers for their faith, ignore their flaws, and take umbrage at the attack, while the nonbelievers already think of them as asinine idiots.

However, in what I feel is the weakest part of the book, Hitchens defends atheism from responsibility in the Soviet Union, Maoist China, and Nazi Germany by casting the personality cults as religions, and, in the case of Germany, by showing how religious groups lent early and vital support to the fascists. It comes off as awfully glib. Furthermore, it seems to me that the evidence supports the idea that religion is not the problem, but that the sins of religion are symptom of a deeper pathology. The universality of the crimes suggests that the accumulation and abuse of power is hard-wired in (at least a portion of) humanity. Religion is a useful tool to incite believers into evil behavior, but tribalism, nationalism, racism, or countless other means of division have done just as well.

As a devout and pious member of the Church of Sacred Doubt, I found some of the attacks on religion appropriate, I found some of them gratuitous, and I found many of them engaging. While the book could be dismissed as an atheist preaching to the choir, it is definitely thought-provoking, and, if nothing else, entertaining.

Filed in:

Wed, 15 Aug 2007

Mysterious Ruby on Rails problem — and solution

— SjG @ 1:51 pm

So, I’m working on an old RoR application, and was having a hard time getting it to work on my newer development machine.

The error dump was not at all clear:

C:\project\foo_bar_baz_quux>rake migrate --trace
(in C:/project/foo_bar_baz_quux)
** Invoke migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute migrate
rake aborted!
wrong number of arguments (1 for 0)
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/vendor/mysq
l.rb:551:in `initialize'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/vendor/mysq
l.rb:551:in `new'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/vendor/mysq
l.rb:551:in `scramble41'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/vendor/mysq
l.rb:141:in `real_connect'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_
adapters/mysql_adapter.rb:316:in `connect'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_
adapters/mysql_adapter.rb:87:in `initialize'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_
adapters/mysql_adapter.rb:37:in `new'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_
adapters/mysql_adapter.rb:37:in `mysql_connection'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_
adapters/abstract/connection_specification.rb:145:in `send'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_
adapters/abstract/connection_specification.rb:145:in `connection_without_query_c
ache='
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/query_cache
.rb:54:in `connection='
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_
adapters/abstract/connection_specification.rb:106:in `retrieve_connection'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_
adapters/abstract/connection_specification.rb:20:in `connection'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/migration.r
b:178:in `migrate'
c:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/tasks/databases.rake:3
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:399:in `call'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:399:in `execute'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:399:in `each'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:399:in `execute'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:369:in `invoke'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:362:in `synchronize'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:362:in `invoke'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:1935:in `run'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:1935:in `each'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:1935:in `run'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/bin/rake:7
c:/ruby/bin/rake.bat:20:in `load'
c:/ruby/bin/rake.bat:20

I went through a lot of work to use older versions of Rails, etc, but none of it worked. I didn’t find much out
there that helped, either, until I finally happened across this page.

Turns out it’s one of those pernicious password / old style password hash issues with MySQL. Simplest solution for now: use no database password on the dev box.


Tue, 14 Aug 2007

Macro

— SjG @ 3:35 pm

Ever since I saw a “how to” in Popular Photography back in the early 80s, I always thought it would be cool to make my own super-macro lens by mounting an ordinary lens backwards.

So, on Saturday, using 58mm skylight filter, a dremel tool, hot glue gun, and camera body cap, I created a reverse mount. Into this contraption, I inserted the kit lens (28-70mm) that came with my Nikon N-80, and, tried it out on the Nikon D-70. Obviously, autofocus and automatic exposure are out of the question (although it might be interesting to run wires across from the lens’ connector to the camera. Hm… maybe it’s not out of the question!), so it entails a lot of manual twiddling of focus and looking at histograms.

It’s too much magnification (even at 70mm) to hand-hold, and, even with my old tripod, it’s hard to get a sharp image. Also, with this kind of macro, there’s not a lot of depth of field to play with. I started by taping the aperture lever at full open, and didn’t get dramatically different results when I allowed it to stop down somewhat. I tried to figure out the optics of the situation, but quickly realized that with a variable aperture and a collection of lenses, I would need to go back and hit the books to understand the physics.

Here’s the stinger of a wasp, who was found dead on the driveway:
Sting