大头
Table_bottom

标签云
Table_bottom

分类
Table_bottom

日历
二月
28293031123
45678910
11121314151617
18192021222324
252627282912
Table_bottom

评论
Table_bottom

留言
Table_bottom

微博
Table_bottom

热门文章
Table_bottom

随机文章
Table_bottom

豆瓣上谁关注这里
Table_bottom

链接
Table_bottom

搜索栏
Table_bottom

RSS
RSS Link
Table_bottom

功能
Table_bottom

页面
Table_bottom

计数器
462736
Table_bottom

访客统计
Table_bottom

存档
Table_bottom

身兼数职

看上去好像很忙,可是没有一项工作能做好。成本被放大,效益急剧减少。

阅读全文

Boto Config File

如何用Boto config file配置Credentials。

阅读全文

ISDBT中CC的处理疑问

ISDBT规范中字幕(Caption)部分的一些解读和疑问。

阅读全文

TimeZone里的daylight savings

TimeZone.getDefault()获取系统时区设置是包含夏令时的。

阅读全文

Android里透明的ListView

我遇到的这个状况,在我测试过的不多的手机和平板中,只在Lenovo S890上出现。有谁知道究竟是为什么么?

阅读全文

为什么应用商店里搜索不到你的App?

uses-feature和uses-permission的设置导致无法在应用商店里搜索到App。

阅读全文

病毒传播

病毒传播害死人。

阅读全文

DVB SI中的Network ID

关于DVB SI中的Network ID和Original Network ID。

阅读全文

启动画面坚持多久?

我更能认同快点把门打开,请用户进来坐下再慢慢等待咖啡煮好的设计,而不是拒用户于门外,直到咖啡上桌再开门。

阅读全文

App应用里应该自动跳转到系统设置界面吗?

吐槽我们团队的产品设计。

阅读全文

开始吧

团队建设,就这样开始吧。

阅读全文

source code version control

source code version control rule we use.

阅读全文

吐槽不好的交互设计2——便利通

狗日的便利通,你能更不便利一点吗?我现在非常不满意。

阅读全文

又说遥控器

知乎上看到一个帖子:如果由您来设计一个电视遥控器,你会怎么设计?

阅读全文

吐槽不好的交互设计1——申通/豆瓣

吐槽不好的交互设计1——申通/豆瓣

阅读全文

你讨厌公司什么样的“节约”行为?

你讨厌公司什么样的“节约”行为?

阅读全文

两个ICON网站

推荐两个ICON网站。

阅读全文

有意思吗

老板盯着考勤记录看,就会有人代打卡,直到换成指纹机。代不了了,还会“在上班时间剃上班时间长出来的头发”。

阅读全文

python笔记

BeautifulSoup

how to get the address(href=) <a></a> tag refer to.

from BeautifulSoup import BeautifulSoup 
print soup('a')[0]['href'] # equivalent to soup.findAll('a')

如果用find或者findNext,返回的不是列表,则不需要[0]。

Python Issue 1521491

遇到一个win xp+python2.5.1/python2.6.4上'a+'模式读写文件的bug,写文件时报错:IOError: [Errno 0] Error。stackoverflow上搜到讨论,该bug(Python Issue Tracker上的页面)似乎在win xp + python 2.5/python2.6上都会出现,这里有讨论如何避开该bug:

this is pilot error, inherited from the limitations of C I/O: the effect of mixing reads with writes on a file open for update is entirely undefined unless a file-positioning operation occurs between them (for example, a seek()).

在f.read()和f.write()间插入f.seek(f.tell())。

acc_file = open('bla_path', 'at+')
acc_str = acc_file.read()

acc_file.seek(acc_file.tell())
acc_file.write('bla')

PyInstaller

.py文件复制到python目录下(譬如Python2.5.1),在这个目录下运行:

> python <PyInstaller Dir>/Makespec.py --onefile your_prog.py
> python <PyInstaller Dir>/Build.py your_prog.spec

该目录dist下会生成名为your_prog的目录。创建.spec文件时的参数可查询pyinstaller-1.5\doc\Manual.html。

参考介绍:PyInstaller使用简介

Unicode

很好的presentation:Unicode in Python

Unicode HOWTO

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 0: ordinal not in range(128)的解决方法。

pyExcelerator

 

遥控器的革命?

关于电视遥控器的讨论。

阅读全文