Tuesday, May 29, 2007

一招打遍天下,就靠python

可能是自己的信仰還不夠深
對於如何說服人家用python還是覺得不太夠力
上星期Tim表演, django請神
原來django還是有一些magic要留意的

Tim在他的
http://timchen119.blogspot.com/2007/01/tip-django-orm.html
原本
from django.conf import settings
settings.configure(
DATABASE_ENGINE = 'sqlite3',
DATABASE_NAME = 'rules.db'
)
這是Tim的方法,我就覺得可能會有些問題,畢竟原本的configure還有很多東西
後來我們在 http://code.djangoproject.com/ticket/1796 裡面找到了另外的作法

哇哈哈,神棍不是當假的,太厲害了
讓我多學了好幾招

今天認識幾個好物,
其實也不算新東西啦
取代make的SCons,當然也有configure的功能,
外加以python撰寫,當然要什麼功能有什麼功能
http://www.scons.org

http://docutils.sourceforge.net
ReStructuredText這東西就更久一些了
只要靠rst2html就可以把文字檔轉html
靠rst2latex就可以轉latex
有稍微試了一下

Matplotlib整合畫圖plot的工具
http://matplotlib.sourceforge.net/

Mercurial的web 可以另外在每個project的root下
.hg/hgrc中設定web瀏覽的特性 比如allow_archive = gz zip bz2 等

2 comments:

aiyipianni said...

Aston Villa rode their luck at Hull City where an 88-minute own goal from Kamil Zayatte saw them leapfrog three points clear of Arsenal and into fourth place in the Premier League wow gold with a 1-0 win.

Villa had to survive Hull penalty wotlk gold appeals for a handball against Ashley Young in time added on, television replays showing that referee Steve Bennett wow gold correctly rejected the claims after consulting a linesman.

Bennett had been involved in controversy after just five minutes when American goalkeeper Brad Friedel looked to have handed Hull the initiative and threaten Villa's return to the Champions League qualifying wow gold zone.

Friedel spilled the ball under pressure from wow gold Nick Barmby and stand-in right-back Nigel Reo-Coker turned it into his own net as he attempted to wow gold clear.

But Bennett cut short celebrations at the KC Stadium -- and let Friedel off the hook -- when he ruled out the score for an wow wotlkapparent infringement by Barmby.

Zayatte's intervention from a Young cross bound for wow gold Gabriel Agbonlahor then saw Villa leapfrog Arsenal and draw level with Manchester United on 38 points -- seven adrift of leaders Liverpool and four wow gold behind Chelsea.

Stung by an on-pitch dressing down wow gold by manager Phil Brown at Manchester City last week, Hull showed five changes and a vastly improved performance.

Promoted Hull were looking for only their second win in 11 games while wow gold Villa arrived unbeaten in seven and it looked to be heading for a goalless draw when the home side suffered a cruel late blow.

aiyipianni said...

Premier League leaders Liverpool thrrew their "full support" world of warcraft gold behind Steven Gerrard after their captain was charged with assault on Tuesday following an incident at a local nightclub.

Gerrard, 28, and two other men were charged with assault occasioning bodily harm and affray, Merseyside police said.

They are scheduled to world of warcraft gold appear in court on January 23.

In the wake of the charges, Liverpool issued a wow power leveling statement on their official Web site.

"Steven has been an outstanding servant to Liverpool for the last world of warcraft gold ten years and the club will give him all the support he needs at this time," it read.

The offenses with which Gerrard have been charged carry a maximum penalty of five years in prison.

Three other men, who were also arrested, were world of warcraft gold released without charge pending further inquiries.

Gerrard was arrested cheap wow gold in the early hours of Monday morning and eventually charged after over 20 hours in police custody.

His wife Alex Curran was seen near the police station where world of warcraft gold he was held but drove off without talking to reporters.

Gerrard had been celebrating his side's 5-1 buy wow gold win over Newcastle on Sunday when the alleged altercation occurred.

He had scored two goals in the victory at St James' Park which left world of warcraft gold Liverpool top of the English Premier League and on course for their first English title in 18 years.

He was released on bail to wow power leveling appear in court on January 23 with John Doran, 29, and Ian Smith, 19, who were charged with the same offenses.

Gerrard, who has spent his entire career with Liverpool, world of warcraft gold is one of the most celebrated players in the club's history and renowned as a model professional.

In 2005 he lifted the European Cup -- Liverpool's fifth -- wow gold kaufen after a thrilling penalty shooting victory over AC Milan and turned down the advances of cash-rich Chelsea to stay with his local club.

The midfielder has also made 70 appearances for England, captaining his country on four occasions.

He was made an Member of the British Empire (MBE) last year and received an buy wow gold
honorary fellowship from Liverpool's John Moores University.

Liverpool's next match is against Preston in the English FA Cup on Saturday, a game Gerrard was due to sit out because of suspension