Automatic complexity-limiting is actually enabled.
A divide-by-zero bug affecting the rendering of line-glyphs with
exactly one `rib' sub-glyph has been fixed.
Under-reporting of the complexity added to Line-glyphs by multiple
`ribs' has been fixed.
Two issues in the best-common-substring logic used to associate
file-names with pre-existing VisualID-glyphs for other, related
files have been resolved: memory-leaks have been fixed, and
strings that were treated as circular are now treated correctly.
The VisualID Explorer now renders glyphs with a fixed 1:1
aspect-ratio, scaled without distortion to fit the available
drawing-area.
The latest libvisualid code produced this, during testing:
When I asked Jay what he saw in it, he said, "three houseflies forming
a political party".
I printed it out and brought it to Pam, who responded, "what's with
the flies?". I told her that it was a VisualID. She trimmed it and
hung it on the refrigerator.
I recently started hacking on tangoGPS:
it's mostly pretty swell (which has made it the most popular GPS/mapping
application on the FreeRunner)
but there are a couple of things about it that just vex me:
One thing is that, because the FreeRunner's amazingly high-resolution
LCD is of an amazingly higher resolution than
OpenStreetMap expects when they
rasterise their map-tiles, labels (and a lot of other details) that
would be perfectly legible on a 96-DPI desktop computer monitor are
inscrutable on the FreeRunner's >280-DPI screen.
Another thing is that it can be hard to make much sense out of the
stock points-of-interest display. For example, here are a bunch of
schools around the area where I grew up:
Plotted on this map are campuses for UNH, U-Mass, MIT, Souhegan High
School, and a few other random items. It takes considerable conscious
effort for me to figure out which is which, even though these are all
places that I know (places that I marked on the map!).
This display would be great as some sort of statistical scatter
plot, but it's mostly useless as
a tool for locating specific, individual points of interest: since all of
the points look exactly the same, the only attribute that can be used
to identify a point is its position, and there's often just not enough
`cognitive resolution' to
completely disambiguate solely by position--we often just don't think in
that level of detail with regard to location, and there's often something
akin to quantisation-error
when we try.
If you happen to be unfamiliar with this region or the schools that
I've plotted, then you can immediately appreciate how problematic it
can be to have positional cues be the only way to distinguish
points: it's worse for unfamiliar territory, where either the region
as a whole or the desired point within the region is just not familiar
enough for any spatial cues to be useful by themselves.
If you're at all familiar with the region depicted in the map, and
where the points of interest are supposed to be, then you might expect
it to be pretty easy to pick things out, but it turns out that it's
actually quite hard to find or identify an individual point in a
scatter plot even for `easy' datasets. On the above map, for example,
there are very few points of interest, several of them have well-known
locations, and no two points are colocated. In other words, this is
an `easy' example, and things only get harder from here. The version
that has markers for all of the places that are actually of interest
to me (or anyone else, I imagine) is much worse.
Throw in enough identical-looking `clutter' and anyone would find
it virtually impossible to determine which of several closely-spaced
points is the desired one. Unfamiliarity just changes the metric for
`close', increasing the distance at which two things can remain
indistinguishable.
This whole situation actually sounds like
exactly
the same sort of problem-space that motivated the developent of
VisualIDs in the first place. The problem was originally laid-out in
terms of `scenery for data worlds', with datascapes as an analogue to
actual landscapes; but what if the datascape in question turns out to
relate somewhat more directly to an actual landscape--what if the
`virtual landscape' over which the scenery-points or `landmarks' are
strewn is actually a direct representation of an actual, physical
landscape?
There's something about that that's just perfect.
So, I did it. And it was an impressively quick (and impressively clean)
modification--all I had to do was to generalise tangoGPS' POI-icon code
a little bit (adding get_poi_icon() and get_poi_icon_path() functions
where the (singular) POI-icon's path had been hardcoded), and then plug-in
a call to mkvisualid. It turns out that GDK-PixBuf `just works' with
the SVG graphics that mkvisualid outputs, so then I was basically... done!
And, after only some minor tweaks, I can say that it's a resounding
success: in my own real-world experience over the past month or so
since I actually implemented this and started using it, it's turned
out to be a real boon, making tangoGPS' POI display significantly more
useful--I've been able to use the POI display to quickly and easily
identify travel-destinations before or while navigating to them, and
it's also been quite helpful in showing other people where things
are. I've even been able to add POIs for new and unfamiliar places
just by inputting their lat/lon coordinates and then looking out for a
new and unfamiliar icon--then, once I've seen it, it's trivial to find
it again. The experience is just so much better that I'm completely
unwilling to go back to life without VisualIDs.
But pictures can be so much more illustrative, so here's a primer--a
quick introduction to mapping with VisualIDs: take a look at each of
these icons and the associated place-name, just for about as long as
it would take you to say `oh, that's an interesting icon' for each
one (as you might when you see it appear after recording your point of
interest into your GPS):
MIT
NH Community College
Souhegan High School
U-Mass
UNH
Worcester Polytechnic Institute
Middle of nowhere
Buried Treasure
Now, try to to find:
UNH (yes, there are 2)
Worcester Polytechnic Institute
MIT
It's even easy to find the `buried treasure' site, isn't it?
So, it works!
Though, I've yet to explain the `minor tweaks' mentioned above: while
most of the glyph-types make perfectly legible cartographic icons, two
of them (`line' and `path') are, unsurprisingly, often difficult to
distinguish from the street-segments over which they are drawn--so I
simply disabled them. Almost all of the other glyph-types are
represented in this screenshot (`shape', `radial', `symmetry',
`figure'; the only one that's missing, by sheer happenstance, is
`spiral'), and they all work reasonably well; though one obvious
issue is that the rendering of `symmetry' glyphs (as for Souhegan
High School and U-Mass) may have potential to be confusing, so it may
make sense to disable them too, if I can't find a way of rendering
them such that the sub-glyphs are more clearly connected to each
other.
An interesting side-effect of using distinctive icons for POIs,
actually relating back to the whole `map with scatterplot' concept:
not only is it easier to recognise any single given POI, but multiple
POIs are recognisable simultaneously, which causes the
relationships between POIs to become apparent. For example: when I was,
for the first time, able see all of my favorite places plotted on the
map simultaneously and recognisably, it became clear that many
things just weren't situated physically in the same way that I had
organised them mentally--places that I'd always thought of as `close
to each other' turned out to be physically further apart, vice versa,
etc. In cases like those, the improvement in POI-recognition has been
profound: where I would previously have had to spend time picking
through numerous mistaken selections just because I'd started looking
in the wrong place, I'm now able to immediately, correctly recognise
and select the point that I want--even if it's not quite where I
expected it to be.
There's some new functionality, and a new toy
included, but the biggest change is that the internals have been
completely refactored to use GObject.
Restructuring everything around GObject has actually been really
helpful in clearing up some points of confusion that I encountered
during the initial implementation--now those semantic bugs have been
squashed.
Now that the big pieces of new architecture are in place, I can start
shedding the old (and less usable) interfaces, I can start developing
the finer points in the new interface, and I can start evolving the
actual functionality to include things like:
A glyph-mutator system that can automatically derive new glyphs
from existing glyphs (I have a weighted Levenshtein algorithm
on which I've been working).
New glyph-types (Pam wants butterflies...).
More dimensions to the system (colour should be fun).
Tools that end users can use to provide feedback to the system
and tune its operation.
A portable, stable, and re-entrant PRNG (glib provides the
base
for this).
etc.
(look for that stuff to start showing up in 0.3)
The existing patches
for Nautilus still work, for anyone who's using them (or who hasn't
tried them but would like to).
[From the NEWS file included in the tarball]
Version 0.2.0 is a significant revision of libvisualid, though the
user-interface of the `mkvisualid' command remains mostly unaltered;
visible changes include:
* A new "--base-weight" option has been added, to set the default
weight for generators in the probability-set; it's possible to
disable all generators with "--base-weight=0" and then easily
enable only specific generators.
* A new "--autocache-dir" option has been added, allowing the
glyph-cache directory to be specified.
* The "--autocache" and "--output" options can now be used
simultaneously (in the future, the `autocache' files will be in
a different format capable of storing glyph-structures with all
attribute-data intact, instead of just storing renditions).
* If the path specified via the "--output" option exists and is a
directory, then a file is created in that directory with a name
according to the input name.
A new `VisualID Explorer' demo-application has been added, using GTK+ with
several alternate GUIs defined using Glade.
The libvisualid library contains several new features, including:
* visualid_complexity(), a function providing overall
complexity-metrics for VisualID glyphs.
* visualid_set_cachedir(), a function that allows the global
cache-directory to be changed.
* Automatic limiting of overall glyph-complexity: an integer in
constants.c (complexity_max) controls the maximum
glyph-complexity, having a default value of 5000 (a measure of
something akin to `number of brushstrokes').
* As the result of everything having been refactored using GObject
(cf. details below), we finally have a way to *deallocate*
VisualID glyph-structures!
* Some bugfixes.
This release of the libvisualid library is binary-incompatible from
all previous releases, and is source-incompatible in a few minor ways:
* exec_generator() has been renamed to visualid_draw_path().
* generate_child() has been split into two special-purpose functions:
- visualid_glyph_new(), for producing root glyphs,
- visualid_glyph_spawn(), for producing and assigning
subordinate glyphs.
* All of the class-specific generator-functions have been reworked
to have the same parameters as visualid_glyph_spawn().
Aside from the above changes, libvisualid should be source-compatible
in every meaningful way.
The `generator' structs have been converted into GObject classes,
including a base `VisualID_Glyph' class; the existing structs have
been preserved for the time being, but this marks the beginning of
API-redesign whereby terminology will be corrected and the API will be
reformed into something more fit for general consumption (e.g.: public
names put into a namespace).
The naming of the structs in 0.1.x as `*_generator' was somewhat
inappropriate, and due to some misinterpretation of some ambiguous
text in the essay: while the `*_generator' structs /are/ data
/related/ to generators, the `gen_*' function itself (not the data
that it produces) /is/ the generator. The term, "glyph", has been
chosen for the base-class in the VisualIDs `shape grammar' by analogy
with written-language grammar where `glyphs' of typography are
realisations of abstract `characters'; the `characters' of the
shape-grammar would then be the classes per se: `radial', `spiral',
`figure', `line', etc.