ActiveRecord, Mysql Views, and You.
Posted by Phantom Mongoose
It’s no secret that with Ruby on Rails you can change the database connection an individual model uses.
Why would you want to do this? As on example say that you have two applications that you want to use a single sign-on. You could set your user model for one of the applications to point at the other applications database. This way both applications are using the same set of users, but all of their other tables are separated into their individual databases.
This works for simple cases, but in more complex cases, it may get difficult to manage. And I don’t think Rails will be able to optimize more complex queries due to the different models having different connections.
So what’s a better way to handle more complex situations?
Railsconf was pretty sweet ...
Posted by Phantom Mongoose
... and I learned a lot.
I believe I have already forgotten more than I’ve retained. A lot of genuinely interesting information locked in a life-and-death struggle to be crystallized with what meager neurons are available to do any meaningful processing.
Quest for the NAS appliance of low power
Posted by Phantom Mongoose
This is Part Deux of my low power appliance network quest of extra-ordinary magnitude.
You may recall from Part Un of our grand adventure we replaced the power hungry and quite possibly mad p233 with a new firewall / router / wireless access point / low power appliance with custom firmware.
Where next does our quest lead? I tell you, dear reader, it leads to an even bigger and louder loutish brute—or brutish lout as the case may be: the file server.
Recipe: Buffalo with Tomato Sauce
Posted by Phantom Mongoose
Over the past 6+ years I’ve been running my home firewall on an old P233 running either a custom linux firewall or the IPCop distro1. This old faithful friend has stood as a beacon of courage and truth in a sea of spam and deceitful packets. Tirelessly and without fail it protected my home network and logged its efforts meticulously.
On Earth Day this year I treated this old friend to a hero’s fate: I turned him in to be recycled.