Tree of Mindfulness

This is an experiment in knowledge and awareness description. It may be wrong and incomplete.

This graph is generated with graphviz.

Also available as pdf.

10KloC explained.

Python source code to generate this is shown below.

knowledge tree

Code that generates this graph. This runs on Debian Stable (5.0) with standard graphviz package with Python 2.6.4

The code is from jEdit plugin Code2HTML.

   1 #! /usr/local/bin/python
   2 import sys, subprocess
   3 
   4 try:
   5     retcode = subprocess.call("twopi  -Tpng knowledgetree.dot -o knowledgetree.png", shell=True)
   6     #retcode = subprocess.call("neato  -Tpng knowledgetree.dot -o knowledgetree.png", shell=True)
   7     #retcode = subprocess.call("dot  -Knop -Tpng knowledgetree.dot -o knowledgetree.png", shell=True)
   8     if retcode < 0:
   9         print >>sys.stderr, "Child was terminated by signal", -retcode
  10     else:
  11         print >>sys.stderr, "Child returned", retcode
  12 except OSError, e:
  13     print >>sys.stderr, "Execution failed:", e
  14 
  15 try:
  16     retcode = subprocess.call("twopi  -Tpdf knowledgetree.dot -o knowledgetree.pdf", shell=True)
  17     #retcode = subprocess.call("neato  -Tpng knowledgetree.dot -o knowledgetree.png", shell=True)
  18     #retcode = subprocess.call("dot  -Knop -Tpng knowledgetree.dot -o knowledgetree.png", shell=True)
  19     if retcode < 0:
  20         print >>sys.stderr, "Child was terminated by signal", -retcode
  21     else:
  22         print >>sys.stderr, "Child returned", retcode
  23 except OSError, e:
  24     print >>sys.stderr, "Execution failed:", e
  25 
  26 

And the .dot file as of August 30 2010 is below. See the raw file (attention Windows users, the .dot extension is associated with Microsoft Word. Please make sure you view as text.)

   1 graph G  {
   2     node[shape="rectangle", width=".1",height=".3",fontsize="9", fontname="helvetica"];
   3     
   4     ratio = auto;
   5     
   6     /* Node label and format*/
   7 active_directory [label="Active\nDirectory" color="red" fontcolor="red"];
   8 ado_dot_net [label="ADO.NET"];
   9 android [label="Android"];
  10 arcostream_com [label="arcostream.com"];
  11 ase [label="ASE\nAndroid\nScripting\nEnvironment"];
  12 band_of_brothers [label="Band of Brothers"];
  13 bbom [label="Big Ball of Mud\n(the Implemented Internet)"];
  14     
  15 c_sharp [label="C#"];
  16 cdn [label="Content Delivery Networks"];
  17 ch [label="Complexity\nHorizon"];
  18 css_hell [label="CSS\nHell\n&#9785;"];
  19 dad [label="Dad"];
  20 dad_father [label="Dad's Father"];
  21 data_storage [label="Data\nStorage"];
  22 deployer [label="Deployer"];
  23 dot_net [label=".NET"];
  24 edgecast_com [label="edgecast.com"];
  25 encoding_com [label="encoding.com"];
  26 extended_family [label="Extended Family"];
  27 Fabric [label="Fabric" color="grey75"];
  28 facebook [label="facebook.com"];     
  29 forrest_gump [label="Forrest\n Gump"];
  30 ftp [label="FTP"];
  31 geni_com [label="Geni.com"];
  32 google [label="Google, Inc."];
  33 google_voice [label="Google Voice"];
  34 half_brother [label="Half-brother"];
  35 half_sister [label="Half-sister"];
  36 htc_incredible [label="HTC Incredible"];
  37 http_streaming [label="HTTP Streaming"];    
  38 john_lennon [label="John Lennon"];
  39 key_value_stores[label="Key/Value\nStores"];
  40 lady_gaga [label="Lady Gaga"];
  41 LOTR [label="The Lord of\nThe Rings"];
  42 mom_father [label="Mom's Father"];
  43 nginx [label="Nginx"];
  44 no_sql [label="No SQL"];
  45 peotw [label="People's\nExperience\nof the Web"];
  46 privacy [label="Privacy or lack thereof"];
  47 programming_languages [label="Programming\nLanguages"];
  48 rest [label="REST"]
  49 self [shape="circle" color="Yellow" label="self"];
  50 setuptools [label="SetupTools\nAlways a battle" color="grey80"];
  51 step_father [label="Step Father"]
  52 system_design [label="System\nDesign"];
  53 stories_unwritten [label="unwritten\nstories"];
  54 stories_written [label="Stories Written"];
  55 television [label="Television"];
  56 Thinking [color="cornflowerblue"];
  57 verizon [label="Verizon, Inc."];
  58 virtualenv [label="virtualenv\nSomehow Struggling" color="orange"]
  59 web_browsers [label="Web\nBrowsers"];
  60 web_design [label="Web\nDesign"];
  61 web_services [label="Web\nServices"];
  62 windows [label="Microsoft\nWindows"];
  63 windows_7 [label="Windows 7"];
  64 windows_XP [label="Windows XP"];
  65 windows_server_2003 [label="Windows\nServer\n2003"];
  66 windows_server_2008 [label="Windows\nServer\n2008" color="red" fontcolor="red"];
  67 ww2 [label="World War II"];    
  68 xml_rpc [label="XML-RPC"];            
  69 zuckerberg [label="Mark Zuckerberg"];
  70     
  71 /*  node relationships */ 
  72 
  73 android -- ase;
  74 android -- mobile_apps;
  75 
  76 Apple -- iPad;
  77 Apple -- iPhone;
  78 
  79 arcostream_com -- xml_rpc;
  80 arcostream_com -- cdn;
  81 
  82 
  83 Art -- Visual;
  84 Art -- Music;
  85 
  86 bbom -- peotw;
  87 bbom -- HTTP;
  88 
  89 cdn -- edgecast_com;
  90 cdn -- ftp;
  91 
  92 
  93 Classical -- Beethoven;
  94 Classical -- Mozart;
  95 
  96 Communication -- Phone;
  97 
  98 dad -- dad_father;
  99 data_storage -- no_sql;
 100 data_storage -- RDBMS;
 101 Debian -- nginx;
 102 dot_net -- c_sharp;
 103 dot_net -- ado_dot_net;
 104 
 105 easy_install -- deployer;
 106 easy_install -- setuptools;
 107 
 108 
 109 encoding_com -- rest;
 110 encoding_com -- arcostream_com;
 111 
 112 
 113 English -- Writing;
 114 
 115 facebook -- zuckerberg;
 116 
 117 
 118 Family -- dad;
 119 Family -- Mom;
 120 Family -- Wife;
 121 Family -- Sister;
 122 Family -- half_sister;
 123 Family -- half_brother;
 124 Family -- Son;
 125 
 126 Family -- extended_family;
 127 Family -- geni_com
 128 
 129 Fapws -- libev;
 130 Fapws -- mako;
 131 Fapws -- nginx;
 132 Fapws -- wsgi;
 133 
 134 Film -- Avatar;
 135 Film -- Zulu;
 136 Film -- forrest_gump;
 137 
 138 France -- Mom;
 139 France -- Sister;
 140 France -- half_sister;
 141 France -- half_brother;
 142 
 143 Friends -- facebook;
 144 
 145 google -- google_voice;
 146 google_voice -- htc_incredible
 147 
 148 
 149 half_brother -- Death;
 150 
 151 htc_incredible -- android;
 152 htc_incredible -- verizon;
 153 
 154 
 155 HTTP -- rest;
 156 HTTP -- web_browsers;
 157 HTTP -- xml_rpc;
 158 
 159 http_streaming -- m3u8;
 160 http_streaming -- arcostream_com
 161 http_streaming -- cdn
 162 
 163 IE -- css_hell;
 164 
 165 iPhone -- http_streaming;
 166 
 167 Japan -- Wife;
 168 Japan -- Son;
 169 
 170 JavaScript -- AJAX;
 171 JavaScript -- jQuery;
 172 JavaScript -- ch;
 173 
 174 Language --Reading;
 175 Language -- English;
 176 Language -- French;
 177 Modern -- john_lennon;
 178 Modern -- lady_gaga;
 179 Mom -- mom_father;
 180 Money -- Work;
 181 Music -- Classical;
 182 Music -- Modern;
 183 
 184 no_sql -- Cassandra;
 185 no_sql -- key_value_stores;
 186 
 187 Phone -- htc_incredible;
 188 Phone -- google_voice;
 189 
 190 PHP -- Smarty;
 191 
 192 
 193 
 194 
 195 Platforms -- Unix;
 196 Platforms -- windows;
 197 
 198 
 199 Programming -- jEdit;
 200 Programming -- bbom;
 201 Programming -- Platforms;
 202 Programming -- programming_languages;
 203 
 204 programming_languages -- dot_net;
 205 programming_languages -- Python;
 206 programming_languages -- PHP;
 207 programming_languages -- ASP;
 208 programming_languages -- JavaScript;
 209 
 210 
 211 Python -- ase;
 212 Python -- Paramiko;
 213 Python -- Fabric;
 214 Python -- Unix;
 215 Python -- Fapws;
 216 Python -- virtualenv;
 217 Python -- setuptools;
 218 
 219 Reading -- Dune;
 220 Reading -- LOTR;
 221 Reading -- Thinking;
 222 
 223 Safari -- Apple;
 224 
 225 
 226 
 227 self -- Art;
 228 self -- Family;
 229 self -- Friends;
 230 self -- Language;
 231 self -- Thinking;
 232 self -- Money;
 233 self -- Communication;
 234 
 235 setuptools -- deployer;
 236 
 237 step_father -- half_brother;
 238 step_father -- half_sister;
 239 step_father -- Mom;
 240 
 241 Stories -- stories_unwritten;
 242 Stories -- stories_written;
 243 Stories -- Fans;
 244 
 245 system_design -- web_design;
 246 system_design -- data_storage;
 247 
 248 Television -- band_of_brothers;
 249 Thinking -- tenKloC -- Programming;
 250 Thinking -- system_design;
 251 
 252 Unix -- Debian;
 253 
 254 Visual -- Film;
 255 Visual -- Television;
 256 
 257 web_browsers -- IE;
 258 web_browsers -- Firefox;
 259 web_browsers -- Chrome;
 260 web_browsers -- Safari;
 261 web_browsers -- Lynx;
 262 web_browsers -- Opera;
 263 
 264 
 265 web_design -- peotw;
 266 
 267 web_services -- rest;
 268 web_services -- xml_rpc;
 269 
 270 
 271 windows -- windows_7;
 272 windows -- windows_XP;
 273 windows -- windows_server_2003;
 274 windows -- windows_server_2008;
 275 windows_server_2008 -- active_directory;
 276 windows_server_2003 -- active_directory;
 277 
 278 
 279 Writing -- Stories;
 280 Writing -- Improve;
 281 
 282 ww2 -- band_of_brothers;
 283 ww2 -- dad_father;
 284 ww2 -- mom_father;
 285 ww2 -- step_father;
 286 
 287 zuckerberg -- privacy;    
 288 
 289 
 290 
 291 }