How to install Docco.coffee on Windows 7

Docco.coffee requires the following to run.

  1. Node.js
  2. Python
  3. CoffeeScript
  4. Pygments
  5. Docco

Step 1:
Download and install Node.js and Python 2.7. Python 3.2 might work but I haven’t yet tried it out.

Step 2:
Add the root and ‘node_modules’ directories for node.js and the root and “Script” directory for python 2.7 to your path environment variable.
C:\nodejs;%userprofile%\node_modules\.bin;C:\python27;C:\Python27\Scripts;

Step 3:
Open up a command prompt, start -> run -> type “cmd”.

Type npm install coffee-script
*You should see installation output on the screen*

Type npm install docco
*You should see installation output on the screen*

Step 4:
Download ez_setup
In command prompt, navigate to where you downloaded ez_setup.py.
Type in python ez_setup.py.

Step 5:
In command prompt type easy_install pygments to install Pygments.

Done.

Test
Download ‘underscore.js’ to your desktop.

Open up a command prompt and type in docco %userprofile%\desktop\underscore.js.
You should see two output files, “p” and “docs”.
The annotated source code is the html file in the docs folder.

Enjoy!

Book Review for “The E-Myth Revisited”

The E-Myth Revisited
The E-Myth Revisited

First off, this book is about “why most small business fail and what to do about it”.
If you’re searching for a guide on how to properly setup a startup then read “Become your own boss in 12 months” by Melinda F. Emerson.

After finishing this book, I feel that I have learned a lot of useful tips.
His business tips are mix-in with the story of Sarah, an owner of a pie shop called “All About Pie”.
The general idea is this.

The goal of owning a business is to create jobs and sell it.
Work ‘on’, not ‘in’, your business by developing a set of “Francaise Prototype” rules for each role and situation in your business.
The “Francaise Prototype” is a manual with the key ingredients (developed by innovation/trail & error) on increasing sales and reduce cost.

I really didn’t like the story because it’s too long and predictable, which makes it boring.
I felt like he was holding back details so that you’ll buy into his “Turn Key Analysis” program.

I recommend entrepreneurs to read this book (“The E Myth”) but it’s not essential since it doesn’t go into the juicy details of starting up a successful business like the book “Become your own boss in 12 months”. For one, she warns you from the start not start a business without secure savings, since a lot portion of startups die from financial reasons. Also her stories are a few paragraphs and not a whole book.