• 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

Categories

  • Java (292)
  • Agile (136)
  • General (98)
  • Architecture (49)
  • Scrum (46)
  • Testing (45)
  • Performance (42)
  • Podcast (31)
  • Middleware (34)
    • Deployment (22)
  • SOA (25)
  • Project Management (23)
  • Xebia Labs (23)
  • Quality Assurance (16)
  • lean architecture (15)
  • Tools (12)
  • Requirements Management (10)
  • Virtualization (10)
  • Articles (9)
  • Security (7)

Tag Cloud

    ACT Concurrency Control Architecture JPA JPA implementation patterns Moving to India Oracle Ajax qcon lean architecture Java Lean IntelliJ Grails lean architectuur Eclipse websphere agile architectuur Frameworks Maven Scrum Groovy Hibernate Flex Performance Spring Agile SOA Scala XML

Xebia Sites

  • Xebia Corporate
  • Xebia France
  • Xebia India

Archives

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