Archive for September, 2007

Week 2 of “Not Working”

Wednesday, September 26th, 2007

It’s such an absolute lie.

I’m totally working. I’m just not working on “work work” stuff, rather I’m working on school work and personal stuff work. I’m a bit ashamed about it, honestly.

It’s a cruel mistress, this thing I have called “a love for learning.” It breaks your heart and makes you hide in rooms at desks behind paper or in front of computers.

But could I be otherwise if I tried? And those stacks of papers, bills, loose receipts, scribbled ideas, would they file and sort themselves?

Deciding that it just wasn’t quite nerdy enough to write an extension set to Textmate to help produce Latin homework in HTML with references to CSS…I decided to write extensions to LaTeX to be able to prepare text in Latin.

Strange, to use all this technology to produce the capability of being able to readily type up a dead language.

And, you can’t argue, this sample,the opening 11 lines of Æneid , looks pretty. These 11 lines, incidentally, I’m currently trying to memorize as an extra-credit assignment. I’ve made it up to the invocation of the muse, only 4 more lines to go.

Embarrassment of Animals

Tuesday, September 25th, 2007

I realized I had forgotten a book I needed at work and decided to run to get it. Literally. My work is about a mile away and is accessible, until the office park, by sidewalk, so I thought I’d take a jog in that direction.

As I left the facility I was nursing a nasty stitch so I decided to work on memorizing the opening 11 lines of Virgil’s Æneid, it’s an extra credit assignment.

As I walked around the road I could feel the warm sun on me, hear the sound of my words:

Arma virumque cano, Troiæ qui primus ab oris Italiam…

I marched slowly, with my eyes closed, slowly reciting and intoning these words until I got to the end of the section that I was memorizing. I stopped and looked up from my note paper and looked to the right into the wooded area that abuts the ring road around the complex.

To my surprise I was not alone.

I looked to the left and, started, for lo there was a doe next to me. For her part, she stopped eating and stared back at me, about slightly more than a meter away from one another.

I think we both shared the awkward sense of having walked into an occupied, but unlocked bathroom.

“Oh, ho, ho, uh, well, uhm, yes, here we are, heh, yes?”

I grimaced, waved, and walked slowly past. She eyed me for another half meter and then, without reserve, went back to the grassy thistles. I listened to my footfalls for another few meters and let my aural focus slide to the humming cicadas which are the sound of the Texas meadows in summer.

News of this week…

Saturday, September 22nd, 2007

After study hall week, I was very glad for this weekend to arrive.

I’ve already gotten the results of my first Latin test back and I’m glad to say that I did as well as can be earned so, I was rather pleased.

My calculus exam went rather well, and featured something I really liked: essay quetions. I think this is really great, because it gives people who may have a more visual / educational conceptualization of the material the chance to prove they understand the concept and can explain them. While they featured a symbolic component as well, I thought this was an innovation and asked the student to understand more than just a bit of fancy notation.

My sister’s husband is out of town so she, the g/f, and I all loaded up to pick up her car which was just free from its shop visit. On the way back into town Lauren and I turned off of the road and headed down to Emma Long Park. I had never been to the park before but after a twisty ride through the hills we reached the area and had a chance to explore a bit of this lake-side park. It was a warm summer day, but under the tall oaks there was a pleasant shade.

I don’t want to jinx it, but I think that Fall may be tip-toeing around Waterloo. But I didn’t say that.

After that Lauren and I headed over to the movies and caught Julie Delpy’s movie “2 Days in Paris”. I wanted to see it because Lord knows that traveling with your beloved is well, challenging. There’s something about getting sick, jet-lag, homesickness, and being locked up in a tiny space with someone for hours on end that can really lead to some interesting farcical disasters. I was hoping for this and for cinematic vistas of Paris.

Well, the film didn’t do much to deliver on the latter, and frankly I found the male character to be an unmitigated jerk ( who only got mildly interesting after meeting a militant vegan ) and the female character to be a flighty dingbat. I also think that it played too much on the “French people screw anything at any time and are more liberated than you repressed Yanks” stereotype.

There were some laugh-out-loud moments, but it was basically a comedy of manners, Franco-Gallic style. Maybe a Netflix rental for you, I would say.

We rounded out the evening by inviting my sister over and grilling some bacon-steaks. We ate and visited and had a very nice time.

(more…)

When I was a young fellow living in The Castilian dorm in the late 90’s, I would occasionally visit the TV lounge on my floor early in the morning and study there. Being a bit of an odd bird in that I would rather “sleep less and get up early” versus “stay up late” this would mean that the lounge was empty ( save the odd beer can and cheetos wrapper before the morning cleaning staff came through ).

The cable provider in Austin at that time carried Classic Arts Showcase which follows a roughly MTV-like format where a clip is introduced by a title-card in the lower left describing the music and the visual, and then the art plays.

It’s a very enjoyable program and far more educational than the sea of infomercials playing in the same time slots. I saw 2 things on Classic Arts showcase in those wee hours that have stuck with me all these years that I wish to possess:

  • “O Fortūna” from Orff’s Carmina Burana with this amazing Tarot-esque stage setup with plague carts and overdone European motley references
  • A video of bowler-clad, Edwardian English society types each walking up to a keyboard to play the progressive downbeat note to something of Chopin’s that I surely saw on “Looney Tunes”. I think it must have been a Hungarian Raphsody, but I failed to make a note of the name…
  • {I didn’t see this at that time, but in a similar vein…} Anna Netrebko singing the same famous opera song ( I think I translated it as “Oh what am I pretty!”, something along the lines of “Wat bin ich schön”) in a variety of settings, but with the video stitched together

Well thanks to the video revolution of the internet, I’ve found the first of these lost treasures.

It’s Jean-Pierre Ponnelle’s réalisation of “O, Fortūna” that so struck me lo those years ago.

While the film quality shows its age ( 30+ years ), the scope and subtext of a devil and an angel turning the rotam fortuna as begging kings, dwarves, whores, and clergy beg for the coins of its favors was something that would really sear your gray matter at 3 in the morning as you worked memorizing logic formulae for your test later that morning. It features a certain sensibility in European theatre of the time that recalls the work of Werner Hertzog, the Italian Sci-Fi epics ( “Dune” / “Flash Gordon”), and Carnivale.

Death reigns resplendent as the tool of of the blind, turning, dog-faced bitch, Fortune in the misty vale on the other side of the wheel-structure as the archetypes dance ( Major Arcana, no? ).

This is a video that hits the collective unconscious tuning fork deep inside my skull with a chi-punch.

Check it out:

We must be living through the end of our Empire

Thursday, September 20th, 2007

This is a popular sentiment, but as I sit here reading and translating my Latin homework I’m always struck by how applicable these lines are ( I think my translation is right, but you may want to go to the source for yourself, I’m also reading a watered-down version for beginners but…)

Livy:

Nec vitia nostra nec remedia tolerare possumus.

“We are able to tolerate neither our vice nor its remedy.”

Cicero:

Ubi l?g?s valent, ibi populus l?ber potest val?re.

“Where the laws are strong, there the free population thrives.”

Those Romans sure could write magnificently about rapid declines.

So far this first week of vacation has been used, as Lauren astutely noted, as, effectively, study hall. This weekend was largely spent preparing for my Latin probatio on Tuesday. The good news is that I managed to catch up on all the optional exercises in the back of my Wheelock’s and I had an interesting opportunity to learn more about extending Textmate.

I have discussed elsewhere the power curve of the editor emacs versus vim, but think that Textmate may have hit the sweet spot in terms of writing extensions.

Extension 1: Writing Macrons

While I had earlier posted about my joy of finding a keyboard map which would allow me to enter macron-ized vowels with Option + Vowel, I found this to me a very straining key combination on my keyboard. It’s not that easy to hook a thumb under to hit option plus a vowel.

Thanks to my crazy remapped keyboard, where Control is where Caps Lock is, I was able to remap Control + Vowel -> Macronized Vowel. This is a much better typing arrangement ( try it: Push caps lock plus a/e/i/o/u ). Even nicer is that on a Dvorak keyboard, all of these combinations can be hit with the left hand solely.

While this may be nifty, you say, I can say that it’s even niftier because I was able to scope the effectiveness of these bindings to be within certain types of documents. While emacs and vim certainly both support this feature it was incredibly easy to implement in Textmate. I simply scoped this command set to be within the text.html scope and it was carried into text.html.markdown ( an HTML shorthand ) text.html.textile and good old text.html itself. This is huge, huge, huge. This means that when editing PHP or Perl code Control + “e” or macronized-e reverts to its default setting of “end of line”. Very handy.

{ Aside: Astute readers may note that by assigning Ctrl+e to be macron I lost a handy mnemonic key-binding for go-to-end-of-line. I did, in fact. I have remedied this by adding, in that same scope Control + “]” as a replacement and that’s worked out pretty well so far. }

Extension 2: Speaking of Markdown

So key bindings and scoping may not be that big of a deal to you, but it was a huge step forward to me. Further, modal text editing is not something particularly foreign to vim or emacs. However, I had a few needs come up that would have been hairy to add in Vim’s scripting language, but that were incredibly easy to add with Textmate.

Ascii Table

Often when answering the questions in the back of Wheelock the question takes the form of:

  1. Identify the personal endings of the future and imperfect tenses of the first two conjugations. 1) -o 2)-s 3)….

Obviously, constructing the answer in a table would be preferable with column headings being the given number, the given ending, the identification / the translation / etc. But the code for entering an HTML table is, while simple, a bit of a pain to enter. It’s very tag-heavy. Textmate has not done the best job of making this process easier.

In the php-markdown-plus wordpress extension, suppotr was added for Ascii tables. Why this hasn’t been added for the Markdown master code base I have no idea.

Step 1: Create columns

There were six rows of data. Add plus one for the headers.

ruby -e ‘7.times{puts “|”}’

I type into textmate and push Ctrl+R. I get this:

 |
 |
 |
 |
 |
 |
 |

Textmate just let me type a Ruby one-liner into the text, hit Control R and insert the text. Not too shabby.

Step 2: Fill in the table headers:

|person|imperfect|future|
|
|
|
|
|
|

Step 3: Let’s fill in the given persons…

|person|imperfect|future|
|1st sg
|2nd sg
|3rd sg
|1st pl
|2nd pl
|3rd pl

Now it would be a pain to closs off all the row definitions with “|” by hand. I could use a search and replace expression like “s#$#|#g” on the highlighted range, but I wrote a simple key-binding to do that search and replace for me. I saved this add on into a bundle I created ( HTML Editing for Latin Students ) and voilá. Thus i hi-lit the section, control + | and…

Step 4: Close off newly-added column

|person|imperfect|future|
|1st sg|
|2nd sg|
|3rd sg|
|1st pl|
|2nd pl|
|3rd pl|

Now I needed to fill in the subsequent columns…I use control +n to go to the next line so that I don’t have to use the mouse or the arrow keys. It makes the vertical editing task much easier. This is an emacs convention. I close the process off with Control + | again.

Step 5: Finish off the table

|person|imperfect|future|
|1st sg|bam|
|2nd sg|bas|
|3rd sg|bat|
|1st pl|bamus|
|2nd pl|batis|
|3rd pl|bant|

and the future…

|person|imperfect|future|
|1st sg|bam|b?|
|2nd sg|bas|bis|
|3rd sg|bat|bit|
|1st pl|bamus|bimus|
|2nd pl|batis|bitis|
|3rd pl|bant|bunt|

Now, to my eye, this is an intelligible table. Nevertheless, I will need to convert this to an HTML table as Markdown doesn’t natively support this conversion. Now, if I were in emacs here, I’d need to break out some eLisp code. In vim I’d have to go through the hell of using the scripting metalanguage. With Textmate, I just write a ruby script and then paste that in ( it’s pasted after the jump ) and then bound that to a key-binding. Thus I have “Turn Ascii table into HTML” bound to Command-Option-T

<table border="0" cellspacing="5" cellpadding="5" style="">
  <tr>
    <th>person</th>
    <th>imperfect</th>
    <th>future</th>
  </tr>
  <tr>
    <td>1st sg</td>
    <td>bam</td>
    <td>b?</td>
  </tr>
  <tr>
  ...
</tr></table>

And that was incredibly handy.

Make styling with CSS easy

One of the things that made me choose HTML for my language of typing was the ease of styling. Per standard didactic purposes, there will be translation sections in exercises. I wanted to style the “given” one way and the answers another. Again, Textmate to the rescue.

Add a tab-trigger.

Typing: “pgiv(tab)”

<p class="sent_given">. </p>

I type a number (say, 11) then hit tab again and I’m inside the tag, typing the given.

Typing “pans(tab)”

<p class="sent_answer"></p>

Similar, but for answers. As both of these <p>-tag elements have classes associated with them, I can format them with CSS to get the look I want. Simple.

But wait, there’s more.

Doing ‘pans’ and ‘pgiv’ is inefficient. How about I type all the sentences at once, in paragraph form, start the paragraph with the question number to start at, and then have each of those set up as <p> tags with the “given” class associated with them?

11.  This is sentence one.  This is sentence two.  This is sentences three.

Highlight run through Ruby script I added called “Line-ify as Given sentences..”

<p class="sent_given">11.  This is sentence one.</p>
<p class="sent_given">12.  This is sentence two.</p>
<p class="sent_given">13.  This is sentence three.</p>

I’ve added other features like a corrections binding (corr-tab) to produce a span elemnent that’s colored red so that I can annotate errors, but I’ll stop here. You get the idea.

Textmate: Pretty, easy to extend with scripting languages you already know to key bindings you want in such a way that you don’t obliterate key bindings you don’t want to lose.

Conclusion

I’ve been so impressed by the power of Textmate in the regard of making HTML so much easier to generate, that I’m thinking about extending these features to LaTeX to get the beautiful formatting power latent there. I hopes this has helped you see that Textmate isn’t just a wonderful editor for code-hackers, it’s great for classicists as well!

(more…)

Taking some time off

Saturday, September 15th, 2007

Is this the familiar blogger’s trope of “I’m taking some time off from writing this site”?

No, in fact, it’s just the opposite. I’m taking some lengthy time off from going to work, that is to say, I’m going on vacation.

The only goal that made immediate sense this afternoon was to eat out at Trudy’s North Star. This was a good start. The second step was to buy a case of Tecate. I don’t really like light Mexican beers, but tomorrow midday, I’m planning on heading out to the pool with said beers.

I do have the twin swords of Damocles, my classes, hanging over me, but right about now, tonight, it’s something for Saturday.

Dvorak Snobbery

Friday, September 14th, 2007

I realized just now that I can type the word ‘enthusiasm’ all in one row of keys on a Dvorak keyboard save for the last m. Compared to the QWERTY implementation, it’s a shocking efficiency improvement. Other words you can spell on the Dvorak home row: annotations, assassinate, Einsteinian, instantiations, tediousness, hideousness.

But alas, the common layout has me beat at typing useful utterances like “asdfjkl;”.

This evening after my classes I was sitting outside of the school at the ‘Dillo stop waiting for the, uh, ‘Dillo to come round. While waiting I was reading a textbook when I felt something alight to my lower calf. I looked down and sow a mosquito.

I hate those bastards.

And so I thought: “By God, it’s a mosquito mid-suck! If I kill it i will have bug guts and, uh, until-recently my blood on me.” About the same time another more primal message came in “Kill that ugly thing stealing your vital hæmocytes.” Before I could be more than just barely conscious of these ideas I smacked the insect into oblivion.

Sure enough, and to my chagrin, said action resulted in a bloody smear on my calf.

So the addition is “When you know you have two choices, but that they will both lead to a disappointing / irksome / irritating end, and, having chosen one, you realized one of the said bitter ends and were, as you expected, disappointed / irked / put out.”

Guy 1: So my boss took us out to lunch Guy 2: Cool! Where? Guy 1: Bennigan’s Guy 2: Ugh, what’d you get? Guy 1: Well it was between the club and the burger, neither of which looked good and pretty much assured disappointment. Guy 2: So which did you get? Guy 1: The club. Guy 2: And it was…? Guy 1: Really average and a bit overcooked, just like I expected. Guy 2: What a total bekanntschlechtwahl Guy 1: I am full, but not content ( shout out SB )

Dorky or Awesome? Iron man and “Iron Man”

Wednesday, September 12th, 2007

So The League informed the world of the availability of the Iron Man trailer. I must say Downey looks like he’s caught the disaffected playboy / Bush-era military-industrial-complex profiteer turns warrior for good ( but with a hint of misanthrope ) lightning in a jar in a way which is not “just the character formula of Batman” yet again.

He can do that because he’s an excellent real actor. See counter-example:

I’m conflicted, you see it, don’t you?

But the thing I’d like to lens in on is the use of Black Sabbath’s Ur-Metal song, uh, “Iron Man”. “Iron Man” is the Epic of Gilgamesh of Heavy Metal. Like the waters of Enki, it’s the source from which all that is meht-haaaaal comes.

Death shows his katana of Mehtuuuuul

[ Death says: “Mehtal rules!” ]

In any case, assuming you have some level of pop culture knowledge and a “The Arrow” formatted radio station somewhere in your experience, when you hear Tony Iommi’s pick-up bending, bridge-buckling, whammy-bar distorted opening air-raid dive-bomb opening of “Iron Man” you get the “Aw shits”.

“Aw shit, it’s “Iron Man” by ür-metal band Black Sabbath in the trailer for “Iron Man” - bet the studio paid through the nose to use that one! But it’s so cool!”

Great moments are achieved by subtlety not by the TOTAL RUINATION OF THE AD BY INCLUDING THE OPENING DISTORTED VOICE EFFECT “I AM IRON MAN” FROM BLACK SABBATH’S “IRON MAN” SONG AS THE MOVIE TITLE IRON MAN IS PRINTED IN A BLADE OF IRON

Wait did you miss it? He’s IRON MAN.

Stupid hacks always butcher good things.

Read more to find out how I would have cut the trailer.

(more…)