• Home
  • RSS Feed
  • Register
  • Log in

Color up your mind-map
Posted by Okke Harsta at around evening time: March 31st, 2007

And now for something completely different: how to mind-map in color with a little help from ruby?

I like to mind-map and the tool I use is FreeMind. You can add icons to your nodes, import pictures etc.etc. You can also add some color to your mind-map; select a node and change the color. For some -strange- reason I wanted to have all my nodes in different colors and after one minute of selecting nodes, changing colors I already abandoned that idea => too tedious. Ruby to the rescue: Freemind stores your mind-maps in XML format and this little ruby script turns your boring mind-map into something colorful:


require 'rexml/document'
include REXML

def traverse_element(element)
    element.elements.each('node') do |e|
        e.attributes['COLOR']= ("#%06x" % rand(0xffffff))
        traverse_element(e)
    end
end

doc = Document.new(File.new("original_boring_mindmap.mm"))
traverse_element(doc.root)
out = File.new("new_colorful_mindmap.mm","w")
out.write(doc)

Nerdy? You bet ya.....

  • Bookmark

Filed under General |



One Response to “Color up your mind-map”



    The mind-mapping.org Blog » Blog Archive » Colourful FreeMind to your taste? Says:
    Posted at: June 17, 2007 at 7:15 am

    [...] “this little ruby script turns your boring mind-map into something colorful” [...]



Leave a Reply

Click here to cancel reply.



Archives

  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008

Xebia Sites

  • Xebia Corporate
  • Xebia France
  • Xebia India

Categories

  • Java (233)
  • Agile (100)
  • General (50)
  • Performance (37)
  • Hibernate (35)
  • Podcast (31)
  • Testing (30)
  • Scrum (27)
  • Spring (24)
  • Project Management (22)
  • Architecture (22)
  • SOA (19)
  • Flex (17)
  • Maven (15)
  • Eclipse (14)
  • JPA (13)
  • Quality Assurance (12)
  • Groovy (12)
  • Articles (11)
  • Grails (11)

Tag Cloud

    Agile Performance Xebia distributed SOA Grails qcon Eclipse Seam Closures Maven Poppendieck Scrum plugin OutOfMemoryError Groovy Java Hibernate Testing Agile Awareness Workshop Lean Ajax sutherland JavaOne Semantic Web offshoring offshore Introduction to Agile IntelliJ fitnesse