Phlip | 16 Feb 2009 02:18
Picon
Gravatar

[ANN] Merb Mind Maps - a tutorial on RSpec, GraphViz & a little Merb

Netizens:

Crispin & Gregory's new book, /Agile Testing: A Practical Guide for Testers and 
Agile Teams/, has a kewt "mind map" at the start of each chapter. It inspired me 
to find a way to use the "tag cloud" on a blog to draw a mind map of the posts, 
linked by their tags in common.

The result is this little project:

   http://broadcast.oreilly.com/2009/02/merb-mind-maps.html

It showcases...

  - graph theory - including Minimum Spanning Tree
  - GraphViz - to typeset the mind maps
  - Merb - a Rails-style website platform
  - Ruby - that annoying language that won't go away
  - RSpec - a Behavior Driven Development system
  - transparent PNG files with ImageMagick drop-shadows
  - assert{ 2.0 } - an assertion that reflects its expressions
  - assert{ xpath } - the latest version of my assert_xpath system
  - TDD for algorithms & graph theory!
  - fixture-dependencies - a Rails fixture clone with more features
  - GraphvizR - a lite Ruby gem that wraps GraphViz dot notation
  - and even a tiny bit of HAML!

The algorithm itself depends on none of those things, so any blog could use the 
algorithm to present the mind-maps that are already latent within it!

(Continue reading)

Alan Baljeu | 16 Feb 2009 15:06
Picon
Favicon

Re: [TFUI] [ANN] Merb Mind Maps - a tutorial on RSpec, GraphViz & a little Merb

I like the concept Phlip, and it's impressive you can achieve that much with so little code. It also looks like a very useful way of presenting a collection of blog articles. Very helpful for someone trying to figure out where to go exploring an archive. So when are you going to substitute this for your blog's tag cloud?

Nevertheless, I must quarrel with your use of the term mind-map. Did Crispin and Gregory use this term? When I saw your letter, I was thinking, how could you /possibly/ make a mind map out of a collection of tags? When I saw the example I immediately thought, "oh! you mean concept graphs". Because to me, a concept graph is a collection of nodes, each containing a keyword, and linked by lines.

A mind map is what Tony Buzan invented, and what MindJet implemented (and many others copied): a radially drawn tree with a central concept fleshed out in increasing detail, with pictures and annotations to illustrate and clarify the concept.

Sorry to be pedantic, but I think it's a valuable distinction.

Alan Baljeu

________________________________
From: Phlip <phlip2005 <at> gmail.com>

Netizens:

Crispin & Gregory's new book, /Agile Testing: A Practical Guide for Testers and
Agile Teams/, has a kewt "mind map" at the start of each chapter. It inspired me
to find a way to use the "tag cloud" on a blog to draw a mind map of the posts,
linked by their tags in common.

The result is this little project:

http://broadcast. oreilly.com/ 2009/02/merb- mind-maps. html

It showcases...

- graph theory - including Minimum Spanning Tree
- GraphViz - to typeset the mind maps
- Merb - a Rails-style website platform
- Ruby - that annoying language that won't go away
- RSpec - a Behavior Driven Development system
- transparent PNG files with ImageMagick drop-shadows
- assert{ 2.0 } - an assertion that reflects its expressions
- assert{ xpath } - the latest version of my assert_xpath system
- TDD for algorithms & graph theory!
- fixture-dependencie s - a Rails fixture clone with more features
- GraphvizR - a lite Ruby gem that wraps GraphViz dot notation
- and even a tiny bit of HAML!

The algorithm itself depends on none of those things, so any blog could use the
algorithm to present the mind-maps that are already latent within it!

_

__________________________________________________________
Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/

[Non-text portions of this message have been removed]

__._,_.___
Recent Activity
    Visit Your Group
    Yahoo! Finance

    It's Now Personal

    Guides, news,

    advice & more.

    Need traffic?

    Drive customers

    With search ads

    on Yahoo!

    Yahoo! Groups

    Everyday Wellness Zone

    Check out featured

    healthy living groups.

    .

    __,_._,___
    Phlip | 16 Feb 2009 16:10
    Picon
    Gravatar

    Re: [TFUI] [ANN] Merb Mind Maps - a tutorial on RSpec, GraphViz & a little Merb

    Alan Baljeu wrote:

    > Nevertheless, I must quarrel with your use of the term mind-map.

    It begins with M, making the title alliterative.

    I myself quarrel with the use of "Merb" in the title. There's almost no Merb in
    the content, and I only forced myself to use it because I personally needed to
    learn it before it devours Rails.

    > Did Crispin and Gregory use this term?

    If they did, would I be off the hook? That's "appeal to authority", you know...

    > When I saw your letter, I was
    > thinking, how could you /possibly/ make a mind map out of a collection
    > of tags?

    Posts are the nodes, and tags-in-common are the edges. But...

    > When I saw the example I immediately thought, "oh! you mean
    > concept graphs". Because to me, a concept graph is a collection of
    > nodes, each containing a keyword, and linked by lines.
    >
    > A mind map is what Tony Buzan invented, and what MindJet implemented
    > (and many others copied): a radially drawn tree with a central concept
    > fleshed out in increasing detail, with pictures and annotations to
    > illustrate and clarify the concept.

    Point. I picked up "mind map" because it's a cool term I saw around the
    interthing. There are two remaining issues:

    - if you blog about your favorite topics (such as "sex", "drugs",
    and "rock-n-roll"), then the links between your posts will
    indeed map your mind

    - I auditioned some GraphViz tools that display radial links out
    from a root, but I couldn't briefly get them to look right
    in a bloggable format

    The "mind map" I learned in the 1970s might have gone under a different name. I
    don't recall it - obviously. It's a classroom note taking technique looking like
    this:

    +-----------------
    / +----
    / /---/____
    +---+------+--------
    \
    +---+-------
    \_______

    It's a side-ways outline on paper, formatted to make adding new callouts easy.
    Maybe GraphViz can do that, but it should not require excess directives. I
    wanted to avoid fun like "noderank".

    > Sorry to be pedantic, but I think it's a valuable distinction.

    Distinct pedantry is where it's at!

    --
    Phlip

    __._,_.___
    Recent Activity
      Visit Your Group
      Yahoo! Finance

      It's Now Personal

      Guides, news,

      advice & more.

      Ads on Yahoo!

      Learn more now.

      Reach customers

      searching for you.

      Support Group

      Lose lbs together

      Share your weight-

      loss successes.

      .

      __,_._,___
      Alan Baljeu | 16 Feb 2009 18:28
      Picon
      Favicon

      Re: [TFUI] [ANN] Merb Mind Maps - a tutorial on RSpec, GraphViz & a little Merb


      Phlip wrote:
      >I myself quarrel with the use of "Merb" in the title. There's almost no Merb in
      >the content, and I only forced myself to use it because I personally needed to
      >learn it before it devours Rails.

      So if you called it "Merb mind map" for alliteration, but Merb, mind, and map
      are all misused words.... :-)

      >> Did Crispin and Gregory use this term?
      >If they did, would I be off the hook? That's "appeal to authority", you know...

      I just want to know if the problem is bigger than just one blog post.

      >- I auditioned some GraphViz tools that display radial links out
      >from a root, but I couldn't briefly get them to look right
      >in a bloggable format

      The thing is, tags and articles represent an undirected cyclic graph, not a tree.
      A mind map is supposed to be a tree.

      >The "mind map" I learned in the 1970s might have gone under a different name. I
      >don't recall it - obviously. It's a classroom note taking technique looking like
      >this:
      >....
      Ascii doesn't do it justice I think :-) Yes it is primarily a note taking technique.
      It's also a medium for thinking and brainstorming.

      -----
      Thinking about the tag graph:

      If you have one article with 4 tags, doesn't that lead to 4 interconnected links
      between those tags? What do you do about that?

      Alan

      __________________________________________________________
      Get a sneak peak at messages with a handy reading pane with All new Yahoo! Mail: http://ca.promos.yahoo.com/newmail/overview2/

      __._,_.___
      Recent Activity
        Visit Your Group
        Yahoo! Finance

        It's Now Personal

        Guides, news,

        advice & more.

        Search Ads

        Get new customers.

        List your web site

        in Yahoo! Search.

        Cat Fanatics

        on Yahoo! Groups

        Find people who are

        crazy about cats.

        .

        __,_._,___
        Donaldson, John (GEO | 17 Feb 2009 13:00
        Picon
        Favicon

        RE: [TFUI] [ANN] Merb Mind Maps - a tutorial on RSpec, GraphViz & a little Merb

        Alan,

        > The thing is, tags and articles represent an undirected cyclic graph, not a tree.
        > A mind map is supposed to be a tree.

        I think the original Buzan meaning wasn´t so limited as this. Basically, it´s a 2-D representation of something in your mind. So, it can be a whatever you can draw...

        John D.

        __._,_.___
        Recent Activity
          Visit Your Group
          Yahoo! Finance

          It's Now Personal

          Guides, news,

          advice & more.

          New business?

          Get new customers.

          List your web site

          in Yahoo! Search.

          Group Charity

          Be the Change

          A citizen movement

          to change the world

          .

          __,_._,___
          Phlip | 16 Feb 2009 20:58
          Picon
          Gravatar

          Re: [TFUI] [ANN] Merb Mind Maps - a tutorial on RSpec, GraphViz & a little Merb

          Alan Baljeu wrote:

          > The thing is, tags and articles represent an undirected cyclic graph,
          > not a tree.
          > A mind map is supposed to be a tree.

          Read the post!

          __._,_.___
          Recent Activity
            Visit Your Group
            Yahoo! Finance

            It's Now Personal

            Guides, news,

            advice & more.

            Yahoo! Groups

            Cats Group

            Join a group for

            cat owners like you

            Y! Groups blog

            the best source

            for the latest

            scoop on Groups.

            .

            __,_._,___
            Alan Baljeu | 16 Feb 2009 21:33
            Picon
            Favicon

            Re: [TFUI] [ANN] Merb Mind Maps - a tutorial on RSpec, GraphViz & a little Merb

            >From: Phlip <phlip2005 <at> gmail.com>
            >
            >Alan Baljeu wrote:
            >
            >> The thing is, tags and articles represent an undirected cyclic graph,
            >> not a tree.
            >> A mind map is supposed to be a tree.
            >
            >Read the post!

            Good idea! [reads] Okay, done.

            So you're building a minimum spanning tree of articles, using
            tag-difference as the metric, and setting the current article as
            root.

            You're right my impression from the initial picture mislead me.
            So why is there a cycle there? Oh there isn't, it just looked
            that way from how the graph got laid out.

            Sorry about that.

            __________________________________________________________
            Looking for the perfect gift? Give the gift of Flickr!

            http://www.flickr.com/gift/

            __._,_.___
            Recent Activity
              Visit Your Group
              Yahoo! Finance

              It's Now Personal

              Guides, news,

              advice & more.

              Need traffic?

              Drive customers

              With search ads

              on Yahoo!

              Health Groups

              for people over 40

              Join people who are

              staying in shape.

              .

              __,_._,___

              Gmane