经常吃秋葵有什么好处| 女性风湿吃什么东西好| 什么去甲醛最快有效| 下腹疼是什么原因| 孕期吃什么水果好| sakura是什么牌子| 江小白是什么酒| 过敏吃什么药| 富贵病是什么病| 一个月大的小狗吃什么| 什么叫软文| 什么察秋毫| 菊花茶泡了为什么会变绿| 什么是翘舌音| sf是什么意思| 发热出汗是什么原因| 含羞草为什么害羞| 上火了吃什么药好| 什么可以代替润滑油| 梦见孕妇大肚子是什么意思| 肾构错瘤要注意什么| 日柱国印是什么意思| 5月19日是什么星座| 01年属蛇的是什么命| 鼻子干燥吃什么中成药| 钓黑鱼用什么饵最好| 胸部胀痛是什么原因| 为什么不建议做融合手术| 吃什么补肝养肝| 德国纳粹是什么意思| 养胃早餐吃什么好| 8.2号是什么星座| 为什么精子是黄色的| 备孕需要注意些什么| 头发干燥是什么原因| 二十四节气分别是什么| 喝藿香正气水不能吃什么| 导管室是干什么的| 面肌痉挛吃什么药效果好| 烧烤用什么油| 阴郁是什么意思| 福建人喜欢吃什么口味| 乳房上长黑色的斑点是什么原因| 不吃早饭有什么危害| 女人右下巴有痣代表什么| 咽痛吃什么药| 擦汗表情是什么意思| 骨头疼是什么病的征兆| 疏风解表的意思是什么| 海马吃什么| 吗啡是什么药| edsheeran为什么叫黄老板| 梦见吃苹果是什么意思| 脑ct挂什么科| 一九三九年属什么生肖| 杜甫的号是什么| trust阴性tppa阳性说明什么| 真菌菌丝阳性什么意思| 导盲犬一般是什么品种| 衣食无忧是什么生肖| 肚脐眼上方是什么器官| 刍狗是什么意思| 青光眼是什么意思| 小沙弥是什么意思| doki是什么意思| 阴部潮湿是什么原因| 灵芝孢子粉是什么| 小孩睡觉磨牙齿是什么原因| 容易受惊吓是什么原因| 冷冻液是什么| 排卵期一般在什么时候| 烀是什么意思| 剖腹产后能吃什么水果| rush什么意思| 羊肉馅饺子放什么菜| 疏离感是什么意思| tct检查什么项目| 梦见刀是什么意思| 嘴巴经常长溃疡是什么原因| 隐是什么意思| 节源开流是什么意思| 发难是什么意思| 近视眼底改变什么意思| 大陆去台湾需要什么手续| 夏天脚出汗是什么原因| 天可以加什么偏旁| 胆固醇偏高吃什么食物可以降胆固醇| 艮什么意思| 右下腹痛挂什么科| 查血糖挂什么科| 五塔标行军散有什么功效| 梦见大胖小子是什么意思| 过生日送什么礼物| 浙江大学校长什么级别| 养成系是什么意思| 低密度是什么意思| ha是什么意思| 缺镁吃什么药| 伤情鉴定需要什么材料| 什么不什么声| 猪横利是什么| 后背凉是什么原因| 秋天有什么花开| 什么什么一惊| 胎心快是什么原因| 肚子绞痛吃什么药| 胃病是什么原因引起的| 海底轮是什么意思| 一九七一年属什么生肖| 鱼工念什么| 孩子为什么不听话| 4月6日什么星座| 最高人民法院院长什么级别| 乳酸杆菌是什么| 日逼是什么意思| 月经量太少是什么原因引起的| 背疽是什么病| 1.8号是什么星座| 下午三点到四点是什么时辰| 滚去掉三点水念什么| 总梦到一个人说明什么| 六月六日是什么节日| bmr是什么意思| 达英35是什么药| 气血不足看什么科室| hcv是什么病毒| 闭门思过是什么意思| 西洋参可以和什么一起泡水喝| 拉稀肚子疼吃什么药| 着凉拉肚子吃什么药| 713是什么星座| 吃维生素a有什么好处| 腰肌劳损是什么原因引起的| 然五行属什么| 篮子房是什么意思| 呵呵是什么意思啊| 保安的职责是什么| 门对门有什么说法| 尿蛋白是什么原因造成的| 直径是什么意思| 泡腾片是干什么用的| 什么能减肚子上的脂肪| 2010年属什么生肖| 出其不意下一句是什么| 淮山和山药有什么区别| 病毒性扁桃体炎吃什么药| 什么时候出伏| sey什么意思| 旺是什么意思| dm是什么| 光杆司令是什么意思| gy是什么颜色| 羊排和什么一起炖好吃| 彩虹旗是什么意思| 润滑油是干什么用的| 白细胞介素是什么| 乙型肝炎表面抗体阳性是什么意思| 月经期喝红糖水有什么好处| 孕妇缺维生素D对胎儿有什么影响| 葵瓜子吃多了有什么危害| 女性夜尿多吃什么调理| 老爷是什么意思| 肌腱炎吃什么药| nbcs是什么意思| 维生素ad和维生素d有什么区别| 婴儿足底采血查什么| 晚上很难入睡是什么原因| 米字五行属什么| 为什么老是做梦| 女人绝经一般在什么年龄段| 宠幸是什么意思| PSV是什么意思| 宝典是什么意思| 梦见滑雪是什么意思| model是什么牌子| 径行是什么意思| epl是什么意思| 身上红痣多是什么原因| 献殷勤是什么意思| 哈怂是什么意思| 首脑是什么意思| 甲钴胺治什么病| 蒲公英长什么样子| 层峦叠翠的意思是什么| 遥遥相望是什么意思| 黄鼠狼的天敌是什么动物| 猫便秘吃什么最快排便| 什么叫收缩压和舒张压| 疣是什么原因造成的| 开大是什么意思| 小马拉大车什么意思| 飞廉是什么意思| 什么是硬盘| 血脂高有什么危害| 痛风吃什么水果最好| 夫妻合葬有什么讲究| 太子龙男装什么档次| 吃山药有什么好处| 葡萄球菌是什么| 82年的拉菲是什么意思| 什么什么不得| 罗姓男孩取什么名字好| 女真族现在是什么族| 什么叫基因| 面膜什么时候敷效果最好| 前列腺穿刺是什么意思| 妇科检查清洁度二度是什么意思| 经常吃蜂蜜有什么好处| 煤气是什么气体| 安抚奶嘴什么时候开始用| fs是什么单位| 菠萝为什么要用盐水泡| 1月30号是什么星座| 塑胶厂是做什么的| 泳字五行属什么| 龙凤呈祥是什么意思| 乐字属于五行属什么| 当兵对牙齿有什么要求| 牙龈炎吃什么药最有效| 什么是tct检查| 拉姆藏语什么意思| 红糖有什么功效| 月子里生气有什么危害| 生命科学专业学什么| 什么生肖最好| 还有什么寓言故事| 立夏吃什么食物| 扩招是什么意思| 梦到屎是什么意思| 1月7号是什么星座| 鸡肚是什么部位| 骨骼肌是什么| 初吻是什么意思| 日单是什么意思| 最近老做噩梦是什么原因| 胸透主要检查什么| 喇叭裤配什么上衣| 暗的反义词是什么| 肾病到什么程度腿会肿| 芭蕉和香蕉有什么区别| 喝什么解渴| 什么是肺腺癌| 子宫后壁低回声是什么意思| 40不惑是什么意思| 地图舌吃什么好得快| 肾炎吃什么药好| 反流性食管炎吃什么中药| 沙僧的武器叫什么| 睡午觉有什么好处| 男人做噩梦是什么预兆| 肚脐眼下方是什么器官| 宫颈潴留囊肿是什么意思| 牛大力是什么| 农历六月初六是什么星座| 生蚝吃多了有什么危害| 雷特综合症是什么症状| 拾荒者是什么意思| 眉毛下方有痣代表什么| 经由是什么意思| 艾滋病的症状是什么样| 长时间手淫有什么危害| 肌酐是什么指标| 肖可以加什么偏旁| 腹黑是什么意思| 百度

世贸组织要求美国纠正对华反补贴违规措施

Tue, 30 Mar 2004
Photo Friday: Neglect
百度 南存辉继续说道,政府还要打造创新发展的软环境。

I've missed a couple of Fridays. Here's the side of the house that I really, some day, should actually get around to cleaning up...

Mon, 29 Mar 2004
Rules of news announcements

First rule of any news you want people to take notice of is "Don't announce on Friday." This is why governments and corporations leave potentially nasty news releases until Friday - nobody pays any attention.

Add to this a new, second rule of announcing any Python-related news, "Don't announce anything during PyCon, unless you're actually there and giving a presentation" ... which probably seems obvious to everyone but me. Oh well, I'll make sure the Roundup 0.7 final release announcement goes out on a Monday :)

category: Python | permanent link
Fri, 26 Mar 2004
What's New in the Roundup Issue Tracker, version 0.7

Beta testing of 0.7 is coming along swimmingly. While updating the documentation, I threw together a What's New in Roundup 0.7 page.

It's got all the big changes, with more of an explanation of what's been done (than what appears in the CHANGES file) and how to take advantage of the new features.

category: Python | permanent link
Thu, 25 Mar 2004
PyCon: "ATOP on BSDDB" looks like the Roundup hyperdb

People probably don't realise that the Roundup hyperdb (which is Atomic, Transactional, Object-Oriented and Persistent) may be used outside of Roundup the issue tracker. Utterly contrived example:

from roundup.hyperdb import String, Number, Multilink
from roundup.backends.back_bsddb import Database, Class

class config:
    DATABASE='/tmp/hyperdb_example'

db = Database(config, 'admin')
# define a simple schema
spam = Class(db, 'spam', name=String(), size=Number())
widget = Class(db, 'widget', title=String(), spam=Multilink('spam'))

# add some data
oneid = spam.create(name='one', size=1)
twoid = spam.create(name='two', size=2)
widgetid = widget.create(title='a widget', spam=[oneid, twoid])

# dumb, simple query
print widget.find(spam=oneid)
print widget.history(widgetid)

... which displays ...

['4']
[('4', <Date 2025-08-06.01:16:1.386365>, '1', 'create', {})]

And of course in the hyperdb, you've got multiple backends to choose from (anydbm, bsddb, bsddb3, metakit, sqlite, mysql and postgresql), full journalling of changes (may be turned off selectively), automatic behaviours (through detectors auditing and reacting), object querying and full-text indexing built-in.

Of course, having come up with this example, I've seen some very simple API changes that could make it even easier to use the hyperdb outside of Roundup. If there's interest, that is...

Wed, 24 Mar 2004
Woohoo! Roundup 0.7, first beta out the door

... and damn it feels good to finally get that sucker out. In short, this release has:

  • added postgresql backend (originally from sf patch 761740, many changes since)
  • RDBMS backends implement their session and one-time-key stores and full-text indexers; thus they are now performing their own locking internally
  • added new "actor" automatic property (indicates user who cause the last "activity")
  • all RDBMS backends have sensible data typed columns and indexes on several columns
  • we support confirming registration by replying to the email (sf bug 763668)
  • all HTML templating methods now automatically check for permissions (either view or edit as appropriate), greatly simplifying templates

See the online CHANGES.txt for the full list (lots of web interface improvements, ZRoundup is back, ....).

There's still a couple of minor changes to make it in, and I need to check over the documentation for the new features, but the hard work for this release is all done.

I'm really hoping that existing users can see their way to spending the half-hour to hour it would take to try this release out while it's in beta.

Tue, 23 Mar 2004
European wasp invasion

We've been noticing more wasps than usual out the front of our house lately. Rachel spotted the nest today, so I'm up for some wasp-nuking action tonight. Strangely, the instructions for killing a wasp nest that she found online were at the Museum of Victoria. It's actually part of a set of pages about how European wasps were introduced to Australia back in the mid-20th century.

This is kind of timely, given recent discussions here about removing some of our restrictive quarantine barriers.

(Yes, that last link is to the personal weblog of one of our independent Federal senators. Neat eh?)

Sun, 21 Mar 2004
Roundup 0.7 release sooo close

I finished off the RDBMS full-text indexing code this morning, meaning that the TODO list for the 0.7 release of Roundup (which has been a long-time coming) now consists of:

  • Converting the currently string-only RDBMS tables to proper data types,
  • Converting the other backends to use numeric IDs, and
  • Performing lots of upgrade tests (for upgrading from 0.6).

Update (6 hours later): postgresql backend is now fully typed, with numeric ids. Sqlite backend uses most of the same code, and happily ignores the datatype declarations :) Now for MySQL. Eugh

Sun, 21 Mar 2004
More Abbey photos up

This post's mostly for those family members who keep bugging me to put more photos up. Well, here they are :)

Sat, 20 Mar 2004
MySQL bizzaro errors

MySQL going senile. On the roundup-users list at the moment, we've got a most bizzare problem we're trying to solve. In a nutshell, we have a table called "_msg". We:

select id from _msg

Then for each id we get back, we:

select __retired__ from _msg where id=%s

And for some of the ids returned from the first statement, we don't get a result from the second.

Unfortunately the same statements entered straight into mysql have no problem. The same simple statements entered into a short Python script have no problem. It's just when this code is run in Roundup.

We're still looking into it, but it's mighty frustrating :(

Mon, 15 Mar 2004
More Video Game Than Meets The Eye

Melbourne House is producing a Transformers video game, and it looks very promising. The Transformers appeared on TV after all I'd already had my fill of Macross and Star Blazers and it just seemed like so much of a cheap US ripoff. But I digress. The game sounds like it's going to be quite fun, and quite a technical achievement as well:

From the five (of the eight) levels I've played so far, it's certainly one of the most exciting console games in prospect for the entire year. Control-wise, it's instantly accessible, with a solid, convincing feel - so important in a game that could have so easily become yet another clunky, dull mechalike.
...
the combat department ... conveys an immensely satisfying sense of fierce, futuristic battle, with enemies always providing a harsh but fair contest - forcing you to go to war with intelligence and tactics rather than merely all guns blazing.
...
But all this would mean very little if it weren't for the impressive power of Melbourne House's game engine which seems capable of rendering an almost impossible degree of scenic detail at vast distances, not to mention immensely impressive character models - some of which truly have to be seen to be believed.

I wonder whether they'll have a Mini Cooper r50 playable? :)

Fri, 12 Mar 2004
Please, MySQL, just drop the database!

Bloody MySQL. I'm so close to just dropping it from Roundup. Only problem is that I now have users who use it. More than metakit, it would seem. Apparently there's a myth out there that MySQL is good, or something.

As previously noted, I'm having trouble managing the test database. The solution at that time was to "rm -rf /var/lib/mysql/rounduptest". Which is fine for a one-off fix. But currently if I try:

mysql> drop database rounduptest;
Query OK, 0 rows affected (0.02 sec)

NO THE "QUERY" IS NOT "OK" YOU LYING HORSE HOCKEY!

(Aside: M*A*S*H was on TV here recently ;)

According to the docs, the command should actually report the number of files removed from disk (as "rows", but I shan't say anything, noo). So even though it's quite happy that the "Query" is "OK", it's clearly not.

The solution to this mess? I have to manually drop all the tables before I drop the database. This was not required in previous versions of MySQL. It's not mentioned in the documentation.

I've logged a bug report about this... for now though, Roundup's unit tests manually iterate through a "SHOW TABLES" listing and drop all the tables. Eugh.

Tue, 09 Mar 2004
Simple usage of Python's logging module

Several people have posted about Python's new logging module. Most are confused by its complexity and inaccessible documentation (great reference, where's the introduction?) Well, I've used it once now, and here's the simplest I could make it:

import logging
logger = logging.getLogger('myapp')
hdlr = logging.FileHandler('var/myapp.log')
formatter = logging.Formatter('%(asctime)s %(levelname)s %(message)s')
hdlr.setFormatter(formatter)
logger.addHandler(hdlr)
logger.setLevel(logging.INFO)

And then to use it:

logger.info('a log message')

... of course, for most people, the ideal usage would be:

import logging
logger = logging.open('var/myapp.log')

Gee, that'd be nice. Maybe I'll submit that as a patch, in one of my spare moments.

Sun, 07 Mar 2004
Photo border and copyright script

Just threw this PIL-using Python script together to automatically resize and add a border with copyright notice to my Photo Friday images:

#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
import sys, Image, ImageOps

photo = Image.open(sys.argv[1])
photo.thumbnail((500, 500), Image.ANTIALIAS)
copy = Image.open('/home/richard/Documents/?2004 richard@mecanicalcat.net.png')
photo = ImageOps.expand(photo, border=copy.size[1])
photo.paste(copy, (photo.size[0]-copy.size[0], photo.size[1]-copy.size[1]))
photo.save('out.jpg')

Yes, I cheated and used a pre-drawn image for the copyright text. Rendering that is left as an exercise for the reader :)

[Edit: switched to using the thumbnail method, thanks Ian Bicking for the pointer in the comments]

[Edit 2: indicated that I use PIL :)]

Photo Friday: Perspective

Abbey's view of the world.

Fri, 05 Mar 2004
10 Tracks

OK Toby, I'll play too:

Track Artist/Composer Album
Funky ShitThe ProdigyThe Fat Of The Land
Blood Of EdenPeter GabrielUs
NightlifeAmon TobinPermutation
Into Deep (UK. Mix)LSGInto Deep Remixes
Mirror of the journeyDef FXmajick
Big Belly ButterfliesBel CantoMagic Box
Suite No. 1, GigueBach, Johann Sebastian6 Suites a Violincello solo senzaBasso (I: BWV 1007-9)
People in the CityAir10000Hz Legend
Inbetween Days (Shiver Mix)The CureMixed Up
UrthonasToaPorta VIII

Rachel's often commented that my random playlist is a strange mix. I'm glad to see Toby's is equally wierd :)

Thu, 04 Mar 2004
Firefly movie greelighted

So far we've lent our Firefly DVDs to four people. They all loved it. My brother was the latest. He watched the whole thing in one sitting. Couldn't stop.

And now it looks like the movie's going ahead:

Based on Whedon's cult hit television series Firefly (which has taken on a second life following its December 9, 2003, DVD release, winning new fans and critical praise worldwide), Serenity will continue and expand upon the adventures of the memorable characters launched in the series, who will be joined by new characters created expressly for the motion picture adaptation. Whedon will act as both screenwriter and director, with Barry Mendel (The Sixth Sense, Unbreakable and the upcoming Wes Anderson film, The Life Aquatic) producing and Chris Buchanan (president of Whedon's Mutant Enemy production company) and Alisa Tager (of Barry Mendel Productions) serving as executive producers. The Serenity cast will include such returning "Firefly" cast members as Nathan Fillion as Captain Malcolm 'Mal' Reynolds, Gina Torres as Zoe Warren, Morena Baccarin as Inara Serra, Jewel Staite as Kaylee Frye, Adam Baldwin as Jayne Cobb, Sean Maher as Dr. Simon Tam and Summer Glau as River Tam.

It's great that they're going to have the original cast, and I'm glad it's got such a good producer behind it (I really liked both The Sixth Sense and Unbreakable.)

category: News | permanent link
Tue, 02 Mar 2004
Another quick PyPI update

I fixed another couple of small problems in PyPI yesterday - one of which was introduced in the last update ;)

  • fixed deletion of packages where there were no versions (oops)
  • list only new releases in RSS and front page, not any old edit

Admittedly the second one had been bugging me for a while, but I just never remembered to fix it.

category: Python | permanent link
Mon, 01 Mar 2004
Argh, MySQL paaain

MySQL really, really shits me sometimes. My latest:

[root@richardpc root]# mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3 to server version: 4.0.16-Max

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> drop database rounduptest;
Query OK, 0 rows affected (0.00 sec)

mysql> commit;
Query OK, 0 rows affected (0.00 sec)

mysql> Bye
[root@richardpc root]# mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 4 to server version: 4.0.16-Max

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> create database rounduptest;
ERROR 1007: Can't create database 'rounduptest'. Database exists
mysql> Bye

So until I can figure how to get rid of that database, my unit tests use "rounduptest2" for testing. Grr.

PyPI updated

I've updated PyPI:

  • add meaningful titles to pages (uses page heading)
  • properly unquote version numbers for release editing page (bug #855883)
  • allow removal of more than one release at a time
  • make "delete whole package" a form button
  • made wording of role admin link more helpful
  • hide all current releases when a new release is added

So now the single-visible-release use-case is the one coded in. If you want to make more than one release visible, you need to go to the package's edit page (linked from the sidebar when you're logged in).

Oh, and PyPI has its own PyPI entry now too :)

一切尽在不言中什么意思 红色加黄色是什么颜色 上海的特产是什么 穿山甲吃什么 2.25是什么星座
en是什么意思 ca199检查是什么意思 九天什么月 吃什么对头发好 mews评分是什么意思
为什么冬天会下雪 1935年是什么生肖 唔该是什么意思 蒂芙尼算什么档次 橡皮泥能做什么
尖锐湿疣用什么药 什么水果对眼睛好 足底筋膜炎什么症状 男生的隐私长什么样 舅舅的女儿叫什么
甲亢平时要注意什么bjhyzcsm.com 什么的小河hcv7jop5ns3r.cn 痰栓是什么意思hcv7jop9ns5r.cn 热依扎是什么民族hcv9jop5ns9r.cn 肝气虚吃什么中成药hcv9jop5ns1r.cn
什么是形声字sanhestory.com 手电筒什么牌子的好hcv9jop6ns0r.cn 211是什么意思hcv8jop5ns9r.cn 手掌心发红是什么原因96micro.com 宫腔线分离是什么意思hcv9jop0ns3r.cn
什么是黄体破裂hcv9jop4ns0r.cn 肚子疼腹泻是什么原因hcv9jop1ns0r.cn 董事总经理是什么职位0297y7.com 细水长流是什么意思hcv7jop9ns5r.cn 壁报交流是什么意思hcv9jop5ns4r.cn
泌尿系统感染什么症状hcv9jop6ns3r.cn 月经来的少是什么原因hcv8jop8ns7r.cn 葬花是什么意思hcv8jop0ns5r.cn 一只耳朵响是什么原因hcv8jop9ns9r.cn 午时属什么生肖creativexi.com
百度