- 博客(9)
- 问答 (1)
- 收藏
- 关注
原创 DJP Hash
[code="php"] HASH_OU_NUMS-->函数 function hash_use($username) { $mask = pow(2, 32) - 1; $micId = 5381; $micChar = 0; for ($i = 0; $i < strlen($username); $i++) { $micId += ($mic...
2009-05-26 14:52:05 176
原创 进度条class
[code="java"] #!/usr/bin/env python ''' NAME: progressBar.py AUTHOR: Augix DATE: 2009-05-20 FUNCTION: this module prints a progress bar to show how much time you have to wait ...
2009-05-26 14:00:56 85
Mysql查询测试
[quote] os:ubuntu 32bit cpu:model name : Intel(R) Pentium(R) Dual CPU E2160 @ 1.80GHz memory:512M 普通7200 rpm:sata硬盘 BEGIN; /** *分组表 *order为了自定义排序 *create_time简化时间排序 */ CREATE TABLE `...
2009-05-25 16:27:45 655
原创 python随机字符串
contactgroup_contact [code="java"] import string rstr = ''.join(random.choice(string.letters) for i in xrange(len)) import os random_string = os.urandom(string_length) #urandom() # Return ...
2009-05-22 15:17:40 147
django doc本地化
把django doc本地化 sphinx最新版本会有问题,使用库里面的就OK了。 [code="java"] #!/bin/sh apt-get install subversion python-sphinx make mkdir django && cd django svn co http://code.djangoproject.com/svn/django/trunk/do...
2009-05-22 10:59:38 102
配置文件和方差计算,读文件
[code="java"] 读配置文件 import ConfigParser config = ConfigParser.RawConfigParser() config.read(pconf) combine = config.getboolean('default', 'combine') filter = config.getbool...
2009-05-18 15:41:51 72
原创 python时间操作
[code="java"] from datetime import datetime import time from datetime import timedelta """ timestamp:111111111 对应: GMT Dates Tuesday 10th July 1973 @ 0:11:51am GMT 10/7/1973, 0:11:51am(d/m...
2009-05-06 09:48:03 81
原创 cups printer
[code="java"] http://127.0.0.1:631/printers/ Description: hp Location: http://10.218.98.2:9100 Printer Driver: HP LaserJet Series PCL 4/5, 1.3 Printer State: idle, accepting jobs, published. Dev...
2009-05-05 15:03:38 196
空空如也
如何对方法体内所有的方法执行时间进行监控?
2008-11-09
TA创建的收藏夹 TA关注的收藏夹
TA关注的人