Revisiting Robert Jordan’s Wheel of Time

Wheel of Time

I began reading Robert Jordan’s Wheel of Time series of novels when I was in junior high school.  They fell under the ‘epic fantasy’ subheading in the local library, but I think ‘exhaustive fantasy’ might have been a more appropriate heading.  At the time, the series had just expanded to 5 books.  At 600+ pages a book, it was by far the longest continuous story I’d ever to read.  And of course it wasn’t yet finished.

Continue reading

A respite

It is 66 degrees out, overcast, and drizzle has been falling intermittently for the past few hours.  In short, perfect.  Thank you, weather gods, for a long-awaited and much appreciated break from unpleasantness that is an east coast summer.

Long island sound

Looking out from Rye on Long Island Sound

Simplecrypt: fun with encryption

The XXTEA encryption algorithm (a.k.a. Correct Block TEA) is an update to the original Tiny Encryption Algorithm (TEA) introduced in 1988 by Roger Needham and David Wheeler.  Designed expressly for simplicity, the algorithm itself can be expressed in a mere 20 lines of C code.  In spite of having been shown susceptible to a chosen-plaintext-attack, for basic uses it is actually reasonably secure.

Simplecrypt is a bare-bones implementation of file encryption using XXTEA as a block cipher in conjunction with several techniques to allow it work with reasonable security and efficiency on standard user files.  The program is written in ANSI C and depends on a few POSIX library calls.

simplecrypt.c (~7k)

Continue reading

The Rise (and fall?) of MacOS X

Mac lion

The 1990s were a rough decade for Apple.  After a promising start in the 1980s, the Macintosh system appeared adrift.  Apple’s attempts to develop a next generation operating system for its hardware were stalled.  Joint efforts with IBM, Microsoft, Sun and others had failed, as had several internal projects, so when Apple acquired Steve Jobs’s NeXT company in 1995 to use as the core of their new system, it seemed a last ditch effort.  Even after Jobs reassumed full control of the company in mid-1996, there were serious doubts whether Apple would survive long enough to release the new system to the public, let alone make it into a successful product.

Continue reading

Session B begins

P7023090

Even after 4 years experience with it, I’m still not all that comfortable with the semester system.  Fifteen week blocks just seem too long, with things inevitably starting to drag around week 6 or so.

It also makes the contrast with the summer term even more jarring.  At Columbia, there are two summer sessions, each six weeks long.  As a result, classes that normally met twice a week for 75 minutes now meet twice a week for 190 minutes.  It’s a lot.

Still, it’s nice to have already finished one session and have started the second one on the first week of July.  Hopefully this one goes as smoothly as the last.  So far (today was the first class), so good.

Tilt lenses

One of the more exotic sorts of lenses available for interchangeable lens systems (mainly SLRs) are tilt lenses.  These lenses have a mechanism that lets you tilt the lens with respect to the film plane (normally, a lens is precisely perpendicular to the film plane).

The advantage that tilt lenses give is that by tilting the lens, you can actually alter the areas of the image that are in focus.  Tilt to a certain point and more of the image will appear in focus.  This is especially handy for landscape photography since it allows one to keep most of the image in focus even when the lens’s aperture is wide open.  Meanwhile, certain tilt distances will drastically decrease the portion of the image that is in focus.  This is mainly used to create a ‘miniaturization’ effect, or to simulate the look of a wide aperture (‘fast’) lens when the actual lens is not very fast.

The main disadvantage of tilt lenses on SLRs is that they tend to be specialized and expensive.  Canon and Nikon between them offer a total of 7 models currently that allow for tilt.

However, with mirrorless formats like m4/3, some enterprising folks have added in a tilt mechanism to the standard lens adapters for common mounts.  As a result, I was able to get ahold of a Nikon-to-Micro-4/3 adapter which provides 8mm of tilt to any Nikon lens attached to it.  This includes a ‘Coligon 28mm f/2.8 lens in Nikon mount that I recently acquired for the princely sum of $20.

Below is an example of the sort of selective blurring you can get by tilting.  I’ll be trying the adapter with more lenses in the future.  In many respects mirrorless systems are actually better for using tilt lenses because it’s very easy to magnify the view in the viewfinder, to ensure that the correct region is in focus (all tilt lenses currently are manual focus).

Rye Playland, (28mm f/4.0, ISO 200 1/3200s)

P7013037

Too clever, by half

My late grandfather was a bright man.  He was the first of his family to go to finish high school, attended City University on scholarship where he received a Bachelor’s degree in Economics and was ABT for the Master’s degree before leaving to go into business for himself.  The IQ test that he took while in the army in WWII classified him as a genius.  Throughout his life, he was a voracious reader who seemed to have been interested in every topic at one point or another, and had done extensive research on all of them.

He often presumed, with good reason, to know more about a given topic than anybody else.  This made him a great person to get advice from, but a poor one to give advice to, for he very rarely listened.  This was particularly true on topics that regarded money.

The downside of all this was that it has taken my uncle and a lawyer the better part of several months to untangle the finances of his estate.  He did everything himself, the result being that he left behind a mess of papers that only he could understand.  And since he did everything himself, none of the stuff is accessible electronically making things like stocks a royal pain to deal with.  The irony of course is that he always believed that his papers were well-organized and set up, and probably for him it was.

I’m not sure there is a particular lesson to be drawn, but after spending much of the day with my uncle and grandmother dealing with banks and lawyers, it’s fairly clear that it is possible to be too smart for one’s own good, and that smart people can just as easily be blind to what they do not understand as everybody else.

Ward Pound Ridge

P6242864

Despite the fact that it’s directly adjacent to New York City, Westchester county actually has quite a lot of open areas, once you get beyond the main suburbs.  One of my favorite parks is the Ward Pound Ridge Reservation, barely a half hour drive from suburban Westchester.

I’ve been to the park more than a dozen times in the past few years, but always in fall or winter.  So in the morning, I got up early, and took the drive up the Saw Mill River Parkway toward Katonah.

I opted for a short route out to one of the park’s lookouts.  It was a pleasant walk, but somehow not nearly as picturesque as I remembered.  In fact minus the colored leaves or the snow, it was almost monotonous winding through the trees and up and down the little hills, each almost indistinguishable from the rest.  It was good to be outside after several 90+ degree days, but I certainly didn’t get many interesting photos.  In fact the drive ended up being the more picturesque part of the trip.  Nothing is ever quite as one remembers it, I guess…

Servlets

The last part of the project for my database class involves building a web front-end for the database we’ve designed and built (information on music, like iTunes).  Fair enough.

Unfortunately, the choice of implementation languages was Java (which I do know) and PHP (which I don’t).  So I was more or less obliged to build the thing using Java servlets.

Mind you, I have no doubt that servlets are quite indispensable in many places.  Creating a HTML front-end for SQL queries is not one of those places though.  Hopefully it works for the presentation tomorrow, but in its current state the code ranks as some of the ugliest I’ve ever written.

Guess that’s good motivation to learn PHP before the next time…

‘You are here because of them’

Cory Booker, mayor of Newark, New Jersey, gave the commencement speech at Stanford University yesterday.  His was the 4th commencement speech I’ve heard there, and I daresay it was the best by a fair margin, though I suspect more than a few in the audience were disappointed.

The traditional commencement speech is a tricky affair: balancing out the expectations of graduates, their families, and the university worthies organizing the show.  Comedy, advice and a certain amount of praise is the norm, although the formula varies widely.

What mayor Booker offered however was a series of life lessons, wrapped in a compelling personal narrative and leavened with more than a touch of humor.  This he did without sounding particularly preachy, speaking smoothly and steadily for more than half an hour with no discernible prompting or notes.  I found it a compelling performance.

I guess if I were to summarize his message in a sentence, it would be that all of us are where we are thanks to a whole community of people, and that it is by working together in such communities that worthwhile things are achieved.  But really, it is worth reading in full**.

I’m not terribly up-to-date on how Newark is doing these days, but if Cory Booker is half as effective at governing as he is at delivering speeches, the city is definitely on the right track.

Meanwhile I still can’t believe the best my graduating class (2006) could get was Tom Brokaw.  Inspiring he was not…


** Stanford has now posted a full transcript of Cory Booker’s speech.  Video of the event is available on Youtube.