SchemaSpy with MySQL on Mac OS X

To get SchemaSpy working on Mac OS X, I:
Downloaded the latest SchemaSpy, schemaSpy_4.0.0.jar
Installed GraphViz using MacPorts

sudo port install graphviz

Installed the MySQL JDBC drivers using MacPorts

sudo port install mysql-connector-java

Ran it like this:

java -jar schemaSpy_4.0.0.jar -t mysql -dp /opt/local/var/macports/software/mysql-connector-java/5.0.7_0/opt/local/share/java/mysql-connector-java-5.0.jar -o <outputdir> -host localhost -db <dbname> -u <username> -p <password>

The DHH Startup School Talk

David Heinemeier Hansson gave this inspiring talk at Startup School ‘08

Meraki mesh networking

This stuff looks fun.

SvROR meetup, 2008/09/25

Jerry Luk, LinkedIn

Bumper Sticker RoR app: 17M users, 900M views/month
NewIN – show new linkedin uses on google maps / ?globe9?
LinkedIn mobile
LinkedIn iPhone App (not rails)
OpenSocial Sandbox (hackday project)
LinkedIn Polls using JRuby
Use Starling, Beanstalk looking at JMS

Emmet @ JustIn.tv

Website for live video on the Internet (Youtube but live!)
Wrote a caching reverse proxy in Python & Twisted.
Use Twisted [...]

Colon confuses custom_require (well an ancestor anyway)

I just started work on an existing project.  Rake would not run and kept dying with “no such file to load — ” exceptions in rubygems/custom_require.rb for files in a vendor/plugin/<foo>/lib folder.
It turns out that when I checked out the source from Subversion with:

svn co https://<hostname>:<portnumber>

It created a folder called <hostname>:<portnumber>
The colon in the path was confusing [...]

Autotest in color

For completeness: to install ZenTest Autotest:

sudo gem install ZenTest

Autotest will display a red/green bar after running tests, if you add this line to ~/.autotest

require ‘autotest/redgreen’

More plugins are described here, but this appears to be the only one that works out of the box.

helper_method

Railscast 20 reminded me that

helper_method :name

makes controller method name available in views.

Ultra-simple git usage

To access a shared repository (e.g. Subversion-style), using no branches, your work cycle will look like this:
Initial ‘checkout’:

git clone <remote-repository>

Daily process:

cd <local-repository>
git pull
# Make some changes
git add <changed files>
git commit
git push 

Mac os x screenshots

As described here, Command-Shift-4 will capture a dragged area of the screen and save it to a file.
Command-Shift-3 will capture the entire screen, or if you have SnapProX running, it activates it.

Setting up a shared (svn-like) git repository

As described here…
Assuming you have an existing project in a git repo called “project”:

mkdir project.git
cd project.git
git –bare init –shared
git –bare fetch ../project master:master
cd ..
scp -r project.git someserver:/some/shared/location
ssh server
sudo chgrp -R group_containing_all_developers /some/shared/location/project.git