Understanding Plain Text Story File Hierarchy
Plain text stories have quite alot of infrastructure that allows you to run the story file. I'm being pretty dumb in understanding this, so I'm going to analyse whats going on in detail so I have a better idea of what is being done and why.
I learnt some important lessons from doing this.
If you don't understand a line of code break it down until you do. This will improve your ruby.
irbis your friend, use it andscript/consoleto explore code you don't understandEven though it takes time, exploring code is far more productive than skipping over it.
Run
Did 21 minutes at an average heart rate of 158 on Tuesday. This is a personal milestone breaking 20 mins - its a long time since I've been able to do that
Installing an Image Processor for attachment_fu
Instructions for both Ubuntu and OSX..
Textmate File Type Detection (RSpec & Rails)
See this Textmate Blog post
Texmate RSpec Bundle
Do following
cd ~/Library/Application\ Support/TextMate/Bundles/
git clone git://github.com/dchelimsky/rspec-tmbundle.git RSpec.tmbundle
Then reload bundles in textmate if its open.
Adding RSpec to Rails Project using Git
Quick reminder how to do this...
Growl, Autotest and Rspec
Idea behind this is a working environment that spends more time in the editor, rather than switching to the terminal ...
Git and Sub Modules
Looking to manage my projects plugins with GIT, however really struggled (again with something so simple). What I couldn't understand was why the contents of the sub-modules wasn't there when I cloned my central repo. Turns out that you have to run a couple of commands when you do this
git submodule init
git submodule update
Now to find out what happens when you add another module, do you have to redo the init or just call the update with your existing repo
Capistrano and database.yml
Finally have a good way of working with Capistrano and database.yml. Here's what I did ...
Textmate Blogging Bundle Key Binding
I wanted to make blogging with markdown and textmate as easy as possible. I struggled to do this, though its very easy ...