Django Reverse-Engineer from Existing Legacy Tables
I've been playing a bit with Django, a Python-based web framework. One thing that people starting in Django seem to miss out on is the standard "how to I make model classes from my existing database tables"? That's not because you can't do this, but only because most of the newb tutorials start from the other end. It turns out that you can do this easily using "manage.py inspectdb". And you're done, at least most of your work is done. This reverse engineering is not as complete as that in Seam (actually Hibernate) - no compound primary keys, and (presumably because Python's db support is less general than Java's JDBC) it only works on a few databases (PostgreSQL, MySQL and SQL Server, IIRC), but for those database it does the bulk of the work for you.
So, this post is a bit away from my usual topics. I admit it, I'm mainly posting this here in hopes that somebody else using a web search will find the answer more quickly.
So, this post is a bit away from my usual topics. I admit it, I'm mainly posting this here in hopes that somebody else using a web search will find the answer more quickly.
"An Open Letter to my Friends on the Left"
I wanted to write such a thing, but Steven Horwitz beat me to it.
Rage Against the Bailout
"The Bailout" came and went, the market dipped sharply the same day, and went back up the next day as "the market" did what it always does: balances out the interests of the many, impartially. Something governments will never be able to do; they shouldn't even try. All the bailout would do is postpone the agony, and, enrich the few at the expense of the many, an example of government doing what it usually does. Greenwald has a link showing that Speaker Pelosi, claiming to be acting on behalf of the people, is actually acting to save the ten million USD that she has invested in stocks of such well-managed companies as AIG and AT&T...
But the rejection of the bailout is better than a rejection of screwing the many to benefit the few; it's a rejection of the typical big-government back-room deals that are presented to the people as fait accompli. It's wonderful that so many people took the time to write, phone, fax, and email their representatives to voice their displeasure with the bailout (and, one assumes, threaten to vote against the said congress-critters in the upcoming election if they should reject vox populi). This, folks, is democracy in action, 21st Century style.
But the rejection of the bailout is better than a rejection of screwing the many to benefit the few; it's a rejection of the typical big-government back-room deals that are presented to the people as fait accompli. It's wonderful that so many people took the time to write, phone, fax, and email their representatives to voice their displeasure with the bailout (and, one assumes, threaten to vote against the said congress-critters in the upcoming election if they should reject vox populi). This, folks, is democracy in action, 21st Century style.