I know I'm a bad poet, but I'm a good man. All I ask is that... is that you try to see me—

William ,'Conversations with Dead People'


Buffistechnology 3: "Press Some Buttons, See What Happens."

Got a question about technology? Ask it here. Discussion of hardware, software, TiVos, multi-region DVDs, Windows, Macs, LINUX, hand-helds, iPods, anything tech related. Better than any helpdesk!


§ ita § - May 06, 2008 8:56:28 pm PDT #6080 of 25501
Well not canonically, no, but this is transformative fiction.

Oh, and what's up with the web server reqs?


Rob - May 06, 2008 9:07:02 pm PDT #6081 of 25501

My understanding is that it's hard to get the update order correct automatically in the face of foreign key constraints. It could probably be done, but the authors of Rails don't feel like it's important enough to do. And it would probably be difficult to maintain across database servers.

The server requirements are due to the fact that a Rails app is expensive to load the first time. If you tried to run it via CGI and paid the load cost for each transaction it would be too slow. So you have to keep it resident, either via FastCGI or something like mongrel.

Rails is also a single-threaded framework, so each running instance of your application can only handle one request at a time. This usually means you need to run a couple of instances in a cluster to get quick enough response times.

This is changing, though, as someone has created an apache module (http://www.modrails.com/) that can host Rails applications.


§ ita § - May 06, 2008 9:34:52 pm PDT #6082 of 25501
Well not canonically, no, but this is transformative fiction.

God bless the geeks and the things they'll give away.

eta:

This usually means you need to run a couple of instances in a cluster to get quick enough response times.

How out of the box is this? I mean, if I install the RPMs on my box, have I gotten myself into the web server config business?


Typo Boy - May 06, 2008 10:13:42 pm PDT #6083 of 25501
Calli: My people have a saying. A man who trusts can never be betrayed, only mistaken.Avon: Life expectancy among your people must be extremely short.

It has no support for using foreign key constraints or stored procedures, and if you try to use them anyway it can be quite painful.

OK lost me at no support for foreign key constraints. Maybe it is a matter of having written too many applications where FK contraints were critical. But I don't think I'd like the design philosophy of a system that considered foreign key constraints "not worth the trouble".

Not as strong on stored procedures. But really, there are occasions when they are critical too - as in you want to use a database, but you want to make sure you maintain security and integrity even if someone accesses it outside your application. Of course most databases have ways of turning stored procedures off.

Anyway, I admit there is more room for argument on stored procedures. But no foreign key contraints? Huh.


Rob - May 07, 2008 5:30:04 am PDT #6084 of 25501

How out of the box is this? I mean, if I install the RPMs on my box, have I gotten myself into the web server config business?

Before mod_rails, you had some significant apache configuration to do. With mod_rails it might be easier.

But I don't think I'd like the design philosophy of a system that considered foreign key constraints "not worth the trouble".

It's a lot of trouble to figure out from the constraints what a legal order is to write a set of mapped objects to the database. In fact, there may not even be a legal order.

That's not to say Rails doesn't provide some very nice validation tools. It just that they choose to do it in the application layer, rather than the database layer. Certainly a more appealing approach for an application writer than a database analyst.


§ ita § - May 07, 2008 5:53:53 am PDT #6085 of 25501
Well not canonically, no, but this is transformative fiction.

At the very least, reading the framework docs helps tidy up my thoughts for code that perhaps doesn't warrant full Ruby on Rails treatment. MVC is dreamy.

I hate validation beyond about every other bit of coding, and streamlining the reporting and presentation was always frustrating. I like seeing how others do it.


§ ita § - May 07, 2008 6:26:44 am PDT #6086 of 25501
Well not canonically, no, but this is transformative fiction.

What's the equivalent of mapping at logon with OS X? When I fired up bittorrent for a download I connected to a network drive for the destination. Upon restarting the machine and restarting Azureus it says the destination file is not found, even if I reconnect the same network drive.

In Azureus the destination is listed as /Volumes/MSHOME;BLAISE-2/Yadda Yadda. When I reconnect, the destination is /Volumes/MSHOME;BLAISE. What's up with the -2 deal? How do I make this more consistent? How can I statically refer to a Samba share, hopefully without having to manually make the connection in Finder?


tommyrot - May 07, 2008 7:40:10 am PDT #6087 of 25501
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

Apple extended warranty - good idea or not? (A friend is buying a Mac right now.)

eta: This will be for a MacBook. She generally doesn't take her laptop with her....

She's calling me back in a few minutes....


amych - May 07, 2008 7:43:10 am PDT #6088 of 25501
Now let us crush something soft and watch it fountain blood. That is a girlish thing to want to do, yes?

Definitely, especially for laptops.


Sean K - May 07, 2008 7:48:31 am PDT #6089 of 25501
You can't leave me to my own devices; my devices are Nap and Eat. -Zenkitty

Apple extended warranty - good idea or not? (A friend is buying a Mac right now.)

Extended Apple Care? Definitely a good idea.