• Home
  • RSS Feed
  • 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.....

  • Share/Bookmark

Filed under General | 1 Comment »



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.

Deployment automation for Java application running on Websphere, WebLogic and JBoss

Archives

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

Xebia Sites

  • Xebia Corporate
  • Xebia France
  • Xebia India

Categories

  • Java (282)
  • Agile (109)
  • General (50)
  • Testing (42)
  • Performance (42)
  • Hibernate (36)
  • Scrum (33)
  • Podcast (31)
  • Architecture (31)
  • Spring (28)
  • SOA (24)
  • Maven (22)
  • Project Management (22)
  • Middleware (23)
    • Deployment (14)
  • Flex (17)
  • JPA (17)
  • Eclipse (15)
  • Xebia Labs (15)
  • Quality Assurance (14)

Tag Cloud

    Spring Semantic Web Testing XML Hibernate product owner Scala IntelliJ Agile Agile Awareness Workshop Maven Functional Programming Seam JavaOne Closures SOA Introduction to Agile Xebia Groovy Performance Lean Ajax Java Architecture Grails Poppendieck fitnesse esb Scrum qcon