Cleaning your database and starting over in Django

I haven’t posted any django information in a while because I haven’t had any time to mess with it. Today, I dove back in.

I wanted to get a fresh start with the project I’m working on so I thought I’d clear out the database. Why for the life of me I couldn’t find the proper incantation to make this happen I’ll never know.

After searching for about 10 minutes I found it. I’m posting it here so I can reference it the next time I have a brain lapse.

Are you ready? Here it is…
manage.py flush

This will reset the database to the state immediately after it was created.

Django

Comments (0)

Permalink

Open Letter to PA Superdelegates

To the superdelegates either supporting Sen. Hillary Clinton or who are undecided:

I have looked at the two candidates as equals for most of this race. They are of the same party and, as such, have policies that align with my political viewpoint. Recent comments by Sen. Clinton have changed my opinion.

Politics is a bloody game, and I realize that if you wish to play you might get bruised. In that spirit, I realize that much of Sen. Clinton’s behavior in recent weeks can be dismissed as typical campaigning. Her recent endorsement of Sen. McCain was a serious breach of protocol that crossed the line from politics to outright betrayal of her party’s beliefs.

Her comments remind me of what has been so wrong about our country over the last eight-plus years. It is time to say “no” to any politician who puts self-interest over the needs of the country or their party.

John Adams and Thomas Jefferson were bitter political rivals. When Adams lost the election to Jefferson, some wondered if he would leave office. This was the first time that a president had lost an election. His decision to leave or stay was an early test of our new republic. On the eve of Jefferson’s inauguration, Adams got in a carriage and rode away. In that single act he showed just what kind of man he was. He had faith in the system, and despite his differences with Jefferson, he did what was right.

Absolute power corrupts absolutely. Is Sen. Clinton really putting the country’s needs above her own?

Please reconsider your endorsement of Sen. Clinton. Do not disenfranchise the majority of people who support Sen. Obama.

Joseph Cotellese
New Britain Township

Politics

Comments (1)

Permalink

Iraq Costing US $12 Billion a Month

The flow of blood may be ebbing, but the flood of money into the Iraq war is steadily rising, new analyses show. In 2008, its sixth year, the war will cost approximately $12 billion a month, triple the “burn” rate of its earliest years, Nobel Prize-winning economist Joseph E. Stiglitz and co-author Linda J. Bilmes report in a new book.

Anyone remember these statement by Paul Wolfowitz:
On the cost of rebuilding Iraq

“There’s a lot of money to pay for this that doesn’t have to be U.S. taxpayer money…We’re dealing with a country that can really finance its own reconstruction, and relatively soon.” (3/27/2003, House Committee on Appropriations testimony)

“The oil revenues of Iraq could bring between $50 and $100 billion over the course of the next two or three years…We’re dealing with a country that can really finance its own reconstruction, and relatively soon.” (3/27/2003, House Budget Committee testimony)

“Fundamentally, we have no idea what is needed unless and until we get there on the ground. This delicate moment—when we are assembling a coalition, when we are mobilizing people inside Iraq and throughout the region to help us in the event of war, and when we are still trying, through the United Nations and by other means, to achieve a peaceful solution without war—is not a good time to publish highly suspect numerical estimates and have them drive our declaratory policy.” (3/27/2003, House Budget Committee testimony)

Regarding getting other countries to help fund reconstruction after the war: “I expect we will get a lot of mitigation, but it will be easier after the fact than before the fact.” (3/27/2003, House Budget Committee testimony)

Iraq

Comments (0)

Permalink

President Clinton responds to Hillary’s “Children” ad.

Last week Hillary Clinton release a fear mongering ad that I would typically associate with Karl Rove and some in the Republican party. Here it is:

Here is Bill Clinton’s response:

Politics

Comments (1)

Permalink

Unbelievable Real-time 3D Facial Motion Capture

Check out these amazing 3D facial animations from Mova.

Mova is a motion capture company, whose Contour Reality Capture system uses an array of cameras to create 100,000 polygon facial models that are accurate to within a tenth of a millimeter. Unlike traditional motion capture technology, Mova doesn’t rely on reflective balls taped to the capture subject. The advantages to this are a higher resolution image and lower cost motion capture. The results are pretty wild.

Entertainment
Games

Comments (0)

Permalink

Cheap Movie Special Effects

When I was a kid, I remember every year checking a book on monster costumes out of the school library. I did this every Halloween. The pictures in the book looked awesome (at least to a twelve year old boy) but after mixing up multiple batches of some kind of goo made of jello and Quaker Oatmeal, my make up effects never looked liked the picture.

I thought of this today when I came across this article talking about how to create creature makeup effects for under 50. I’ve bookmarked the page so that this year when my son and I are arm deep in jello and Quaker Oats, we can look back to it for inspiration.

Entertainment

Comments (0)

Permalink

In Praise of Lazy

“Whenever there is a hard job to be done I assign it to a lazy man; he is sure to find an easy way of doing it.” -Walter Chrysler

Quotations

Comments (0)

Permalink

5 Dangerous Things You Should Let Your Kid Do

Funny talk given by Gever Tulley on why letting your kids do *some* dangerous things is good for their development.



Lifehack

Comments (0)

Permalink

4 Effective Web Design Tips

Your goal may be to display a simple Website that introduces your company and products or services. Or you might be thinking about developing a fully functional ecommerce site. There are plenty of design options to meet your desires and needs. Here are 4 tips that will help you design a Website that meets your goals.

Webdesign
Productivity

Comments Off

Permalink

‘Mind-Reading’ Games Just in Time for Christmas

Sega’s recent announcement that it will be incorporating mind-reading technology from NeuroSky into some games prompts the question: Is the age of brain control upon us? Not quite — the tech needs work, but many companies plan to incorporate it into games and gadgets.

Powered by ScribeFire.

Uncategorized

Comments (0)

Permalink