Towards My Own Markup

Please note: this entry was written while sitting in my daughter’s hospital room. It was written for want of something to do on this the second day of her hospitalization as the timelessness and placelessness of hospitals continued to fray the edges of my consciousness. It was written in an attempt to begin to smooth some of the fraying.

For general purposes, Markdown, as well as the other “plain text markup languages”, serves very well. I do not, however, find Markdown very conducive when I am writing either for myself or writing to think. For one, I find I do generally prefer an indented line for the beginning of a paragraph, with no blank line above or below. It’s especially useful when you are either writing through a series of short paragraphs or bits of dialogue, where the Markdown language could very well have half your screen filled with white space.

I also find that I prefer the Creole language’s use of equal signs for headers a better option than the hash signs, which it reserves for numbered lists. Using the hash sign also resolves the problem of having numbers get out of order as you write a list. Markdown of course fixes this as it converts to HTML, but you still have some confusion in the plain text original.

Now, one solution to developing my own markup language would be to fork a version of Markdown, in whatever programming language I would prefer to work in — there are versions of Markdown in Perl, PHP, Python, and Ruby (and I am sure there are more versions in other programming languages). My problem is that I have a pretty extensive back catalog of entries in my WordPress database, 1034 posts as of today, and most of them are in Markdown. I also have over 200 notes in MacJournal, most of which are by default marked up similarly.

It would be easy, I think, to write a script, using something like awk, to go through those posts and replace \n\n with \n\t. The same would be true for numbered lists — replace ^d. with #. — and most uses of the hash signs for headings would be similar.

But instead of working with over one thousand bits of text, and with no real interest in double-checking if everything came out correctly, the better solution might be to proceed with my new markup language and then simply write a quick script to change it to Markdown when I decide to make a text public.

Mind, only some of this is brought about by my current return to command line geekery. It’s also the case that my favorite note-taking application, MacJournal, cannot sync all of my devices easily. Two (or more) computers by Dropbox? No problem. iPhone and iPad … well, you can sync but only through the abomination of getting both machines on the same network, setting them up to sync, etc. This is silly. I already have my MacJournal data sitting in a DropBox account. My iPhone can connect to my Dropbox account. Sync to that.

MacJournal can’t do that. The cool new journaling application Day One can sync many devices through DropBox, but it currently cannot hold images and it does not feature tags. (I suppose one could make tags work the same way I make them work in my textCMS, as hash tags, e.g. #tag, but that only offers me searchability not my preferred way of working with tags, via browsing.) And Day One stays away from plain text files for storage, preferring a variant of the Mac OS plist for formatting entries in the file system. And, too, I have to abide by its preferred markup language, which is Markdown, and not one of my own choosing. But, its UI is quite nice.

Next morning, new day. Lily wa…

Next morning, new day. Lily wants hospital staff to stop scanning her wrist ban bar code: “I’m not groceries!” Good spirits but dozing now.

Surgeon came and briefed us. L…

Surgeon came and briefed us. Long recovery but outlook good. Harshest moment was description of torn muscles (by bone). Waiting now to see L

Word from surgery is everythin…

Word from surgery is everything went well. They are re-splinting her arm now.

Still in surgery.

Still in surgery.

Surgery is just now getting st…

Surgery is just now getting started.

Lily is headed into surgery no…

Lily is headed into surgery now.

In holding now.

In holding now.

Compound fracture. Bone thru s…

Compound fracture. Bone thru skin. Headed to surgery.

Following ambulance with lily …

Following ambulance with lily in it. Broke arm at gymnastics.

Thingiverse

The 3D printing revolution is here and it looks like consumers, or rather makers, are going to lead the way and industry is going to play catch-up. Remember the idea of print books on demand at your local book store? Never happened. Now it’s print anything on demand. (Okay, anything plastic, but with printed concrete houses under consideration, I think the possibility for other media is open for the time being.)

Occasionally, I feel like I write the right thing when corresponding with writers and filmmakers and journalists:

On 2012 Jan 24, at 1:29 PM, abc@def.xyz wrote:

Dear Professor Laudun,

My name is A. B. See, and I am a writer in New Orleans. I spoke to you briefly by telephone several weeks ago, in search of folklore related to the Mississippi River, and you were very helpful. Since then, I have been researching Mike Fink and Annie Christmas, and while there certainly are many iterations of the tall tales, I have not yet encountered any information that is considered factual. My understanding is that both people were real keel boat pilots, and if that is the case, I am wondering if you know of any sources where I might find information about their true lives.

Many thanks, A. B.

Dear A. B.,

I don’t know anything about the individuals you name nor have I heard any of the local character anecdotes, as folklorists tend to call such things, associated with them. I once tried to track down a local character, a legendary character if you will, but in the end, it’s not unusual for you never to be able to tie any body of such stories to a particular historical individual. And the more time that passes the more uncertain it becomes. Oh, you can find people, or bits of writing in places like newspapers, who will swear up and down that all those stories are really about X person, but it’s rarely the case that folklore is born so clearly. It takes time, and time obscures a great deal in the process.

More importantly, the truth of such anecdotes, legends, or tales isn’t in any historical reference — this is what most people who focus on urban legends get wrong — because that isn’t where their truth value lies. Their truth value, their purpose or function, is in the present moment with the tellers and the community within which the tales circulate. Like any item of folklore, the stuff has to mean something to the people who use it. If it fails to do that in any capacity, then it drifts out of existence — perhaps enshrined in pages of a book — but no longer an active part of a living tradition. What draws people like me to the study of this stuff is the idea that things decades, or even centuries, old can still produce meaning for us. What’s inside that thing that gives it such staying power? And what does it say about the nature of the human imagination, of the mind itself, that some things can continue to mean, even long after any reference to them in the “real” world is long gone?

best,

john

Learn AI

You know you want to.

I am finally making progress on learning to code. I don’t know that I am ready to do any complicated natural language processing in Python just yet, but the basics are finally making sense to me. A lot of my education comes in ten minutes I grab here or twenty minutes I grab there to learn about while loops or what a method is. I am keeping all my notes and my code in a sub-sub-subdirectory. It’s long to type. Thank goodness bash is so customizable:

alias Learn='cd Dropbox/personal/programming/learn'

Much easier.

I decided to use an initial capital as a way to distinguish my alias from a regular bash command. The alias depends upon being in the home (~) directory to work, which is usually where I begin, but if my work in the jstor directory begins to pick up, I can easily add a ~/ to the beginning of the directory structure above to make it possible to use the command from wherever I am.

Screen Shot 2012-01-18 at 7.42.32 PM

Safari Books Online Keyboard Commands

Nice to have. I find that I only really enjoy using SafariBooks Online on the iPad. Their DRM consists, really, in reproducing the printed page in a way that makes it downright unpleasant to work with their books on a computer: that is, the books are not simply transformed into easy-to-use HTML. Instead, you have flippable pages. Even though I am getting more use out of the platform than I ever have before — and I have been paying %10 a month for a while now — I find myself considering canceling because the usage is so limited. (I’m told the mobile interface is the way to go, I will check this out later.)