September 2010
2 posts
Debugging shared library issues →
Excellent tutorial.
Are we there yet by Rich Hickey →
AWESOME TALK
August 2010
2 posts
:include in Rails
This may or may not be relevant if you are using Rails 3.
If you use :include in a finder and try to access it’s association, it will load without an extra hit to the DB. However, you have to explicitly load the name of the association even if it is accessed another way. Assume products (hasmany) skus, and skus (hasmany) units:
class Product
has_many :units, :through => :skus...
Reverse tunneling with SSH
This was tricky. If you have a web service that is hitting a URL, but you’re behind a firewall, a reverse tunnel with SSH might save you. Assuming you have outgoing access to an open machine, you can do the following:
ssh -R :8888:localhost:2222 host.youhave.access.to
This will forward all interfaces on port 8888 on the remote host (host.youhave..) to your localhost on port 2222. However,...