13 July 2010

Annoyed by speedbar

Annoyed by speedbar

Just now I tracked down a configuration bug in emacs. Cut to the ending: Speedbar had installed into etc/emacs/site-start.d an overly vigorous configuration file which did things I didn't want. Without telling me.

Backstory: I had tried out CEDET a month or so ago. CEDET emcompasses speedbar, EDE, EIEIO, and other emacs devel tools. EDE the project manager was what I was interested in. (Didn't choose it. I chose project-buffer-mode instead)

I fetched it via Debian aptitude, which automatically installs it. When EDE absolutely wouldn't start, I uninstalled CEDET.

An hour ago when I went to post Review of What If the Earth Had Two Moons? it complained that it couldn't find a file called sb-html. I know very well that org2blog doesn't require this file, because I wrote org2blog. And I know that it was never an issue before, because I tested org2blog meticulously.

So what changed? Finding one change in the whole huge system is a chore not to be taken lightly. I started by using dired search in the packages that I knew had changed recently, org-mode and project-buffer-mode. Nothing about sb-html.

I started another emacs, hoping to find what added the sb-html requirement. To my surprise, it was already present at startup! I know it's not in my customizations, and a quick search confirmed this, so how did it get there.

my-site-start was great about helping. In addition to organizing my emacs startup files, I can binarily divide my load sequence just by renaming a debug file. But when I moved the debug file to first place, 00debug.el, the unwanted config was still there.

So what in .emacs loads before my-site-start does it's work? Not much, and all quickly ruled out.

This could have been very frustrating, but fortunately I thought of etc/emacs. A quick check with dired search revealed the culprit to be speedbar, or rather its configuration file, which for some reason didn't get removed.

All of CEDET's config removed, and problem solved.

Review of What If the Earth Had Two Moons?

What it is

A book by Neil Comins about what the earth would be like if it had two moons, and nine other hypothetical scenarios about the solar system.

I'm tempted to call it science fiction. It nearly matches the original definition of the term. It is fiction about science, carefully based on existing science.

But it is not a story. There is no narrative, other than the vignettes he begins each chapter with. Instead, in each chapter he describes a hypothetical world that is as similar as possible to Earth, except for one major astronomical difference, such as:

  • The title essay What If the Earth Had Two Moons?
  • What if the Earth were a moon?
  • What if the moon orbited backwards?
  • What if the Earth's crust were thicker?
  • What if the Earth had formed fifteen billion years from now?
  • What if there were a Counter-Earth?
  • What if the Earth had formed elsewhere in the galaxy?
  • What if the Sun were less massive?
  • What if the Earth had two suns?
  • What if another galaxy collided with the Milky Way?

This is his second such book. The first was called What If The Earth Had No Moon. I haven't read that one.

Impressions

Comins tries hard to correctly apply current thinking in diverse fields such as astronomy, plate tectonics. To a reader who is already familiar with those topics, he spends too much time on basic explanations, but that can't be helped.

For this book, Comins has to tread a fine line between providing too much support for his conclusions and too little.

Neither goal is entirely satisfied IMO. On the one hand, despite the vignettes, it's a dry read as popular books go. On the other hand, I was occasionally left doubting his conclusions, or at least doubting that they applied with any real certainty.

I have to wonder if it would have been better to have structured the book so that it had multiple levels of support according to the reader's inclination to explore further. Basically I'm suggesting footnotes and a bibliography. He does provide appendixes but could have done more.

04 May 2010

On a shorthand argument

In response to

This is in response to a thoughtful post on Less Wrong titled "But somebody would have noticed". The author Alicorn raises a number of fictional scenarios where the argument "but somebody would have noticed" is seen to be mistaken.

A few words about shorthand arguments

"Somebody would have noticed" is shorthand for a certain argument. Like most shorthand arguments, it can be used well or badly. Using a shorthand argument badly is what we mean by a "fallacy".

A shorthand argument is used well, in my opinion, just if you could expand it to the longhand form and it would still work. That's not a requirement to always do the full expansion. You don't have to expand it each time, nor have 100% confidence of success, nor expand the whole thing if it's long or boring. But expanding it has to be a real option.

A list of salient critical questions

Critical questions that arise in expanding this particular argument:

  • What constitutes noticing?
    • Would other people who noticed understand what they saw?
    • Further, would they understand it the same way that we do?
      • How much potential is there for their understanding of the same phenomenon to be quite different from ours?
    • Further, if their understanding is similar to ours, would they express it in terms that we would recognize?
      • This could include actions that we recognize as relating to the phenomenon.
  • Would we know that they noticed?
    • Motivations: Would people who noticed have strong motivations for letting others know or for not letting others know?
      • Would they want others to see that they noticed?
      • Would they want others to see the phenomenon they noticed?
      • Would they want to do something about it that someone could easily see?
    • Ability:
      • If they did want others to know, could they easily show it?
      • Conversely, if they didn't, could they easily hide it?
    • Who witnesses it:
      • Would they want us in particular to see it (or not see it), as opposed to a select group? For instance, they might write a report about it that you and I probably wouldn't see.
      • If they revealed it to others but not directly to us, what's the likelihood that the information would make its way to us?
  • The suppressed premise in that emthymeme is that "Nobody noticed". Since we didn't ask everyone in the world, how did we determine that?
    • What is the population that would have noticed?
    • What sample size did we take?
    • How representative was our sampling?
    • Assuming we have reasonable answers to the above, what level of confidence can we place on our sampling?

20 April 2010

org2blog released

org2blog is now released as alpha quality software

It is released as a tarball of:

  • Org2blog itself
  • Supporting package tinydb
  • Diffs to g-client
    • g-client is by T V Raman
  • Diffs to org-mode
    • org-mode is by Carsten Dominik, with many additions by others including myself.

To run it you'll also need:

  • org-mode
  • To patch org-mode
  • g-client
  • To patch g-client
  • Bravery (or an equivalent amount of foolhardiness)

Some short documentation is in org2blog/README.org Basically:

  • Have a Blogger account
  • M-x gblogger-blog
    • That will give a parse error - T V tells me it's missing an external entity - but it will set up the blog posting url for your blog
  • Write a blog post (which I'm doing right now)
  • M-x org2blog-post
  • And it will appear on Blogger, just like this did (or will).

Summary of changes to g-client

  • User-visible changes
    • Some automatic capture of data, by only these interface functions:
      • gphoto-feeds
      • gphoto-photo-add
      • gblogger-blog
      • gblogger-new-entry
    • Changed gphoto-photo-add to ask for an album name from the list of albums, not an album id number.
    • Added a more flexible way of getting authentication: Just customize (new variable) `g-user-auth-function'
    • Hooks
      • `g-app-afterpost-hook' which should be a function taking 2 args:
        • The source filename
        • The remote url
    • gphoto treats non-jpgs
      • Can find them in directories
      • (Forthcoming) Sends the right Content-Type for them.
      • Uses (both emacs-bundled packages) `image' and `image-file' to know about image file types.
    • g-load-defs.el now can be used as a symlink with my-site-start, because it knows its real location.
  • Internal additions:
    • Added optional arguments to some interfaces
      • Mostly to pass storers around
        • g-app-send-buffer
        • g-app-view
    • Added internal variables
      • To hold captured data
        • gphoto-album-list
        • gphoto-user-api-location
      • To name new XSL scripts
        • g-xsl-blogpost->url
        • g-xsl-photopost->url
        • g-xsl-feed->albums
      • To hold a buffer-local storer until g-app posts
        • g-app-storer
    • Many commands associated with capturing data
      • gblogger-blog-assign-data
      • gphoto-feeds-assign-data
      • g-app-setup-capture
      • g-util-capture-x
      • g-util-capture
    • Created some convenience functions because I found myself repeating code:
      • g-app-shell-command
      • g-app-build-command
      • g-app-build-storer
      • g-app-setup-posting
      • g-app-succeeded
      • g-display-common
    • Changed g-auth to use customizable variable `g-user-auth-function' for initial authentication.
      • Added g-user-default-auth-function, that variable's default value.

Would have liked real test code

I would have liked to write proper test code for this.

Unfortunately, I basically need an immutable remote site to do it. I contacted Google about this but never heard back from them. That made development more difficult.

19 April 2010

Review of Pinocchio, Vampire Slayer

I know it's hard to believe but...

Yes, there is a real book called Pinocchio, Vampire Slayer. Yes, it's about Carlo Collodi's Pinocchio who wanted to be a real boy, and it's not the Disneyfied version. Yes, he slays vampires in the book.

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDWVGPNHHhFuTxafifp2hfcGQ7i3qsnZYwR_xDOwaQEmpB6qkQAkHHZP6Lzm6-nDvI-kZOobrjraJWZmJFMZ3zozcvOHFIC-6-rx1owQAM1s0H92YJKJU4sEQ5_hVH3Sx9cnqVmA6uPd0/s512/pinocchio1a.jpg

The premise

The premise is just what you probably guessed: Carlo Collodi's Pinocchio is a vampire slayer. He slays vampires with his wooden nose, repeatedly breaking it off to make new stakes.

The familiar characters are there: the Blue Fairy, Master Cherry, the Fox and Cat, the ghost of the cricket. Gepetto however has been killed by vampires before the story begins. (Poor Gepetto; first the shark, now this)

Authors

It's written by Van Jensen. Dusty Higgins both drew it and created the idea. As sole artist, Higgins would ordinarily be "penciller/inker/colorist", but that doesn't seem applicable to the black and white ink style he uses.

What you get

It's 128 black and white pages and essentially no filler. No 8 pages at the end of character drawings, though there is a 1 page bio at the end that covers both Jensen and Higgins.

It begins with a 1-page bow to Collodi's Pinocchio and an irreverent 3-page recap of it, for those who hadn't read the book. I had read it years ago, but the recap was still welcome.

Then it gets to the meat of the book: a noir-style-drawn vampire tale featuring the Real Boy himself.

Impressions

This is a book that doesn't take itself too seriously. That was brought home to me when Master Cherry presents Pinocchio with his newest engine of vampire destruction, The Monsterminator. In a previous draft of this review I quoted the scene, but then I realized the words alone don't do justice to Pinocchio's reaction. It's not overtly silly, it's just something no serious book would have done.

This could easily have been a very dumb book. The noir vampire tale could easily have been played straight, which would have made for a dull, predictable tale. At times it seems about to fall into that trap, but it never quite does. Humor suffuses its pages. Not punchline humor - there are no jokes or gags - just a sense of fun about the kind of book it is.

The art is deliberately somewhat grotesque. The faces are blocky, and typically a quarter of the page area is ink-black. But Dusty Higgins' sense of form is strong. It raises the art from "blah" to "looks nice".

05 April 2010

More progress on org2blog

Re-intro

Org2blog is an emacs package that I wrote. It's not quite releasable yet, but there is a tarball available for the brave or foolish. I use it to post this blog, because I like to write my stuff in org-mode.

Recent progress

Maps from local filename to remote URL

org2blog now has a persistent map from local filenames to remote URLs. This is useful when posting links to other blog posts or to images that you have locally, as long as you upload them to Picasa (Google's image hosting)

It automatically captures a remote URL when you post to Blogger. But it doesn't yet capture a remote image URL when you post to Picasa, because that process call runs asynchronously, which is more difficult to capture from.

Captures album lists

g-client knew what photo albums were but couldn't capture a list of existing albums. org2blog can.

Made org's html export neater

In the course of doing this, I made org's html exporting slightly cleaner and better factored. However, this is all done thru a file that's loaded on top of org-html.el.

Again, credit to others

Carsten Dominick
org-mode
T V Raman
gclient, particularly gblogger

04 April 2010

Some tricks that Blissymbolics misses

Very short introduction to Blissymbolics

Blissymbolics is a visual language. It consists of stylized ideograms. It looks like this:

  • http://www.blissymbolics.us/phraseguide_images/bph013.gif
  • http://www.blissymbolics.us/phraseguide_images/bph004a.gif

Introducing it is not my point, so here endeth the short introduction. For more info see http://www.blissymbolics.us/ or http://www.blissymbolics.org/WebTraining/NewResourceHTMLCSS/index.php

Some neat tricks that Blissymbolics misses

As a conlanger, I noticed a few opportunities that Blissymbolics misses.

Person

Blissymbolics personal pronouns come in the typical 3 flavors, {first, second, and third} person times {singular and plural}. The first, second, and third persons are denoted by the subscripts "1", "2", and "3" respectively.

But why stop at 3? They haven't run out of numerals. How easy it would have been to provide 6 additional placeholder pronouns.

Why would I want such a thing? Consider this ambiguous English phrase from Handel's Messiah:

He trusted in him that he would deliver him; let him deliver him if he
delight in him.

How much less ambiguous it could be if only a fourth-person pronoun were allowed.

Gapping and more expressive relativizers

For relativizers, Blissymbolics has just one symbol (double-quote marks)(Relativizers are words that make a sentential into a restrictive clause with a gap, eg "that" in "The house that Jack built", also "which", "who", "where", "when"). That feels a bit underexpressive.

With such a visual language, it seems easy to indicate the relativized gap explicitly. Perhaps it could build on the previous idea and annotate the personal pronouns and their variants with a reserved symbol. I would suggest "?" but I understand it is already taken by the WH-words, which are almost literal translations of English WH-words.

Connecting verbs to their arguments

I'm not suggesting that little lines must be drawn between each verb and all of its arguments. But with such a visual language, it's too bad there is no provision at all for explicitly indicating the connection of a verb and its arguments. Sometimes that would be convenient.

Classifiers

Blissymbolics has classifiers. The ones they choose seem as if they belong in a philosophical language. The problem with philosophical language classifiers (and other similar regularities) is that when utterances focus on some sub-topic, the classifier gets repeated and repeated. One ends up with monstrosities like:

The medical-vehicle (ambulance) rushed the
medical-heart-bad-situation (heart attack)
medical-person-who-is-acted-on (patient) to the medical-building
(hospital).

I doubt Blissymbolics would accept a less philosophical system of classifiers. So ISTM they need some means of omitting the repeated classifiers. Some possible approaches:

  • A means of applying one classifier to a larger grouping, so the repeated classifiers are unneccessary. Maybe along the lines of namespaces.
    • Con: It still makes the topic unnaturally explicit, and now it's intrusive. It's as if doctors had to say "Now I'm going to talk about medical things" before each utterance.
  • A use-then-abbreviate system, basically like pronouns. So the previous example might be more like:

The medical-vehicle (ambulance) rushed the it-heart-bad-situation
(heart attack) it-person-who-is-acted-on (patient) to the
it-building (hospital).

That's a little neater, but there ought to be a better way.