Let's discuss the matter further

Archive for the ‘Web Notes’ Category

this is a visual separator

A database symbol for GraphViz

Friday, November 23rd, 2007
Download the source for my GraphViz database symbol featured in this article: DatabaseShape.ps

I have started using the GraphViz application, which accepts a list of nodes and arrows, and figures out how to attractively arrange them in a diagram. For example, you can very nearly produce this output:

by supplying this rather modest input file to GraphViz (most of whose length comes from my wanting particular colors)::

 digraph Application {
    rankdir=LR;
    node [shape=box,style=filled,fillcolor="#C0D0C0"];
    subgraph clusterClient {
       label=”Client”; style=filled; bgcolor=”#D0C0A0″;
       “Browser”;
    };
    subgraph clusterServer {
       label=”Server”; style=filled; bgcolor=”#D0C0A0″;
       “App”;
       “Database” [shape=DatabaseShape,peripheries=0];
    };
    “Browser” -> “App” [label="HTTP"];
    “App” -> “Database” [label="SQL"];
 }

I used the words “very nearly” because, in fact, GraphViz only knows how to draw simple shapes like rectangles, and is ignorant of the standard cylinder-shaped database symbol that I have used here by asking for a DatabaseShape. Submitting the above code to GraphViz will, normally, produce three nodes that are all rectangles. To teach it about the database shape, I had to write some PostScript.

(more…)

this is a visual separator

Check!

Thursday, November 1st, 2007

I treated my Facebook account as little more than a curiosity, browsing occasionally for friends of my youth, until discovering the Chess Application!

Online chess relieves the game of two horrors for me, of which I had not even been aware until I noticed them during this first online game because of their absence: the horror of a waiting opponent, and the curse of having to wait for them in turn! It turns out that, for a novice like myself who can take upwards of a half-hour to even begin to appreciate the complexity of a given position, to play a live game is only to be rushed through a series of bad decisions. But now, over morning coffee, I can ponder the board for as long as I wish, and can therefore begin — just begin — to glimpse the beauty of the complex possibilies that each move offers. And then, my move complete, I can go about my day without being fixed, inactive, in a chair while my opponent weighs his decision.

I will have to thank Ilan for telling me about this — maybe even by playing him in person sometime, like he originally asked!

this decorates the bottom of the main column this decorates the bottom of the screen

Powered by WordPress