何计辰 | 17 Jan 16:18
Picon

[CPyUG:115593] G.CN真是被逼退了,我们的Gmail还能用不,老外不会吹灯拔蜡吧!

G.CN真是被逼退了,我们的Gmail还能用不,老外不会吹灯拔蜡吧!
我的好多帐号什么的,都是用这个注册的,
还是中国的163保险!
-- 
来自: `python-cn`:CPyUG ~ 华蟒用户组 | 发言:python-cn <at> googlegroups.com
退订: http://tinyurl.com/45a9tb //针对163/qq邮箱:http://tinyurl.com/4dg6hc

详情: https://groups.google.com/group/python-cn

严正: 理解列表! 智慧提问! http://wiki.woodpecker.org.cn/moin/AskForHelp
Albert Lee | 14 Sep 05:50
Picon
Gravatar

[CPyUG:99750] [招聘] 北京,python及php 开发

公司介绍:创业型小公司,规模(20人以下),技术及资金背景比较雄厚,产品为桌面安全软件,说得炫点是“云安全”。

位置:北京海淀区,上地

需要人才: Python或者 PHP 开发,主要做在线安全产品,公司主页,统计系统,大规模文件存储以及工作流控制等

要求:1-2年开发经验,熟悉 python,php, perl, javascript 中的 两种

加分项:数学,linux,C#, FP

待遇,这个真不好说,只能说在行业中不会太差就是了,其实我也不知道,即使有具体的数放在这里,不管多高也还是会有人说太低的。只能说提供了一个快速发展的平台。

其他方面:可能与我直接配合。

--~--~---------~--~----~------------~-------~--~----~
来自: `python-cn`:CPyUG ~ 华蟒用户组 | 发言:python-cn <at> googlegroups.com
退订: http://tinyurl.com/45a9tb //针对163/qq邮箱:http://tinyurl.com/4dg6hc
详情: https://groups.google.com/group/python-cn
严正: 理解列表! 智慧提问! http://wiki.woodpecker.org.cn/moin/AskForHelp
-~----------~----~----~----~------~----~------~--~---

刘格好 | 30 Apr 03:19
Picon

[CPyUG:85361] web2py,apache2,mod_python配置问题

DocumentRoot "/usr/www/blog"
ServerName localhost
#ServerAlias all
<Directory "/usr/www/blog">
    Order deny,allow
Allow from all
</Directory>

<Location "/">
    SetHandler python-program
    PythonHandler modpythonhandler
    PythonPath "['/usr/www/blog/'] + sys.path"
    PythonOption SCRIPT_NAME /blog


    #SetHandler python-program
    #PythonPath "sys.path+['/usr/www/']"
    #PythonHandler django.core.handlers.modpython
    #SetEnv DJANGO_SETTINGS_MODULE fiction.settings
    #PythonInterpreter fiction
    PythonDebug On

</Location>
开始时安装mod_wsgi,后来发现目录下有一个modpythonhandler.py,按它说明配置,显示出错,但是能访问http://localhost/admin,登录后又是

Invalid request

显示/admin的时候是没加载css 些静态文件 ,也就是说,只显示url的第一级,否则显示错误。
freebsd下的默认没有装py-dbbsd,在日志中会出警告,装上也一个样子。
freebsd,ubuntu下都是这个样子,有经验的给指点下

--
从前有只山...

--~--~---------~--~----~------------~-------~--~----~
来自: `python-cn`:CPyUG ~ 华蟒用户组 | 发言:python-cn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
退订: http://tinyurl.com/45a9tb /针对163/qq邮箱:http://tinyurl.com/4dg6hc
详情: https://groups.google.com/group/python-cn
严正: 理解列表! 智慧提问! http://wiki.woodpecker.org.cn/moin/AskForHelp
-~----------~----~----~----~------~----~------~--~---

HD | 19 Apr 05:15
Picon

[CPyUG:84192] 再次招聘,增加两职位说明

职位:
python/C/C++开发
主要开发方向:高性能搜索引擎开发、高性能消息系统开发、大容量数据分析系统开发、大容易数据处理系统开发
能力要求:
.对代码开发是由心的喜欢,喜欢和优秀的工程师一起工作
.对代码的质量是近乎完美的追求,渴求TDD的极限
.对重构和优秀架构的强烈欲望,不断、高效、快速的去改进自己的产品系统
素质要求:
.开放、热情、乐于交流和分享
.对于开发语言有自己的热爱但不抱有偏见

职位:
FreeBSD/Linux/HPUX系统工程师
主要运营方向:高可用性、高可管理性、高性能系统的管理和运行
能力要求:
.喜欢FreeBSD/Linux这样的开放社区,并乐于向社区commit自己的ports/src/doc
.乐于将日常工作脚本化、自动化、简单化
.并注系统中的每一步操作,与业务结合去优化产品和系统甚至于改变产品的架构
素质要求:
.开放、热情、乐于交流和分享
.对于操作系统有自己的热爱但不抱有偏见

啊位:
Web应用开发
主要开发方向:基于Web上的多种渠道的应用开发、基于FLASH/JavaScript的RIA应用开发
能力要求:
.追求完美的用户体验,渴望开发出让用户最容易使用的产品
.追求极致有用户界面,期望让用户赏心悦目的使用自己的产品
.乐于使用简简现成的框架,如ROR、django等
素质要求:
.开放、热情、乐于交流和分享
.对于开发语言有自己的热爱但不抱有偏见

公司是复杂的,但是身边的伙伴是优秀的、敬业的,我们有不低的待遇,有好的愿景。一起来工作,一起来创造。

有意者发邮件到我的邮箱:hdcola <at> gmail.com

工作地点:北京北三环安贞桥
公司行业:无线行业

--

-- 
HD(燃烧中的火)
我工作我快乐,我勤奋我收获。请与我一起快乐,与我一起收获。

--~--~---------~--~----~------------~-------~--~----~
来自: `python-cn`:CPyUG ~ 华蟒用户组 | 发言:python-cn <at> googlegroups.com
退订: http://tinyurl.com/45a9tb /针对163/qq邮箱:http://tinyurl.com/4dg6hc

详情: https://groups.google.com/group/python-cn

严正: 理解列表! 智慧提问! http://wiki.woodpecker.org.cn/moin/AskForHelp
-~----------~----~----~----~------~----~------~--~---

HD | 30 Mar 17:22
Picon

[CPyUG:82582] 小声说一下---找python的兄弟一起干活

长久没有回来鬼混,十分的不好意思。又有半年没有写代码了,最近尽是在搞些awk之流的活。最近工作有了一些明了的进展,所以寻找喜欢编码的优秀工程师加入。

职位:
python/C/C++开发
主要开发方向:高性能搜索引擎开发、高性能消息系统开发、大容量数据分析系统开发、大容易数据处理系统开发
能力要求:
.对代码开发是由心的喜欢,喜欢和优秀的工程师一起工作
.对代码的质量是近乎完美的追求,渴求TDD的极限
.对重构和优秀架构的强烈欲望,不断、高效、快速的去改进自己的产品系统
素质要求:
.开放、热情、乐于交流和分享
.对于开发语言有自己的热爱但不抱有偏见

公司是复杂的,但是身边的伙伴是优秀的、敬业的,我们有不低的待遇,有好的愿景。一起来工作,一起来创造。另外,也寻找优秀的系统工程师。

有意者发邮件到我的邮箱:hdcola <at> gmail.com

工作地点:北京北三环安贞桥
公司行业:无线行业

--

-- 
HD(燃烧中的火)
我工作我快乐,我勤奋我收获。请与我一起快乐,与我一起收获。

--~--~---------~--~----~------------~-------~--~----~
来自: `python-cn`:CPyUG ~ 华蟒用户组 | 发言:python-cn <at> googlegroups.com
退订: http://tinyurl.com/45a9tb /针对163/qq邮箱:http://tinyurl.com/4dg6hc

详情: https://groups.google.com/group/python-cn

严正: 理解列表! 智慧提问! http://wiki.woodpecker.org.cn/moin/AskForHelp
-~----------~----~----~----~------~----~------~--~---

lihui | 29 Mar 07:04
Picon
Gravatar

[CPyUG:82453] 如何判断一个中文字符串的编码?

各位兄弟:

有没有自动判断一段中文代码编码的算法,要高可靠性的
试过两节代码,都不是很成功.


1)代码1:来自modou兄
def utf8Detect(text):
"""Detect if a string is utf-8 encoding"""
lastch=0
begin=0
BOM=True
BOMchs=(0xEF, 0xBB, 0xBF)
good=0
bad=0
for char in text:
ch=ord(char)
if begin<3:
BOM=(BOMchs[begin]==ch) and BOM
begin += 1
continue
if (begin==4) and (BOM==True):
break;
if (ch & 0xC0) == 0x80:
if (lastch & 0xC0) == 0xC0:
good += 1
elif (lastch &0x80) == 0:
bad += 1
elif (lastch & 0xC0) == 0xC0:
bad += 1
lastch = ch
if (((begin == 4) and (BOM == True)) or
(good >= bad)):
return True
else:
return False

2)代码2
def zh2uni(s):
"""Auto converter encodings to unicode

Chinese (PRC): gb2312 gbk gb18030 big5hkscs hz
Chinese (ROC): big5 cp950
Japanese: cp932 shift-jis shift-jisx0213 shift-jis-2004 euc-jp
euc-jisx0213 euc-jis-2004 iso-2022-jp iso-2022-jp-1
iso-2022-jp-2 iso-2022-jp-3 iso-2022-jp-ext iso-2022-jp-2004
Korean: cp949 euc-kr johab iso-2022-kr
Unicode: utf-7 utf-8 utf-16 utf-16-be utf-16-le
-------------------------------------------------------
It will test utf8,gbk,big5,jp,kr to converter"""
if type(s)==unicode:
return 'utf-8',s
for c in ('gb18030','utf-8','big5','jp','utf-16','hz','euc_kr'):
try:
return c,s.decode(c)
except:
pass
return 'unk',s




--~--~---------~--~----~------------~-------~--~----~
来自: `python-cn`:CPyUG ~ 华蟒用户组 | 发言:python-cn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
退订: http://tinyurl.com/45a9tb /针对163/qq邮箱:http://tinyurl.com/4dg6hc
详情: https://groups.google.com/group/python-cn
严正: 理解列表! 智慧提问! http://wiki.woodpecker.org.cn/moin/AskForHelp
-~----------~----~----~----~------~----~------~--~---

lihui | 24 Mar 14:03
Picon
Gravatar

[CPyUG:82051] py2exe编译的程序防病毒软件下报警

各位兄弟:有这方面的经历吗?

难道是以前的那个U盘病毒闹的????????

--~--~---------~--~----~------------~-------~--~----~
来自: `python-cn`:CPyUG ~ 华蟒用户组 | 发言:python-cn <at> googlegroups.com
退订: http://tinyurl.com/45a9tb /针对163/qq邮箱:http://tinyurl.com/4dg6hc
详情: https://groups.google.com/group/python-cn
严正: 理解列表! 智慧提问! http://wiki.woodpecker.org.cn/moin/AskForHelp
-~----------~----~----~----~------~----~------~--~---

jejwe | 23 Mar 13:36
Picon

[CPyUG:81986] tenjin - 号称全球最快的模板引擎

Tenjin, "Tenjin is a very fast and full-featured template engine available in several script languages."

官方的测试结果: 也快得太夸张了

MacOS X 10.4 Tiger, Intel CoreDuo 1.83GHz, Memory 2GB Language Template Engine Test#1(sec) Test#2(sec)
Python(2.5.1) pyTenjin (0.6.1) 6.96 5.61
Cheetah (2.0) 20.36 19.82
Django (0.9.5) 71.33 59.80
Myghty (1.1) 107.88 19.30
Kid (0.9.6) 380.24 378.96
Genshi (0.4.4) 560.30 271.69
Mako (0.1.9) 17.78 13.49
Templetor (web.py 0.22) 428.19 61.53
Ruby(1.8.6) rbTenjin (0.6.0) 7.34 4.52
eruby (1.0.5) 12.29 11.53
ERB(def_method) (Ruby1.8.6) 36.73 5.85
PHP(5.2.0) phpTenjin (0.0.1) 5.39 3.64
Smarty (2.6.18) 10.84 10.21
Perl(5.8.8) plTenjin (0.0.1) 10.42 5.72
Template-Toolkit(XS) (2.18) 103.58 26.30
HTML::Template (2.9) 46.70 30.21
JS(spidermonkey) jsTenjin (0.0.1) 19.00 12.98
JS(Rhino, JDK5) jsTenjin (0.0.1) 24.29 19.15
Java(JDK5) Velocity (1.4) 22.80 11.41
Velocity (1.5) 20.01 8.42

 

这样一来,就可以做到在web端和浏览器端使用相同的模板语法了.

python的例子:

<html>
  
<body>
    
<h1>${title}</h1>
    
<table>
<?py i = 0 ?>
<?py for item in items: ?>
<?py     i += 1 ?>
<?py     color = i % 2 == 0 and '#FFCCCC' or '#CCCCFF' ?>
      
<tr bgcolor="#{color}">
        
<td>#{i}</td>
        
<td>${item}</td>
      
</tr>
<?py #endfor ?>
    
</table>
  
</body>
</html>

javascript的例子:

<html>
  
<body>
    
<h1>${title}</h1>
    
<table>
<?js for (var i = 0, n = items.length; i < n; i++) { ?>
<?js    var color = i % 2 == 1 ? '#FFCCCC' : '#CCCCFF'; ?>
      
<tr bgcolor="#{color}">
        
<td>#{i+1}</td>
        
<td>${items[i]}</td>
      
</tr>
<?js } ?>
    
</table>
  
</body>
</html>

--~--~---------~--~----~------------~-------~--~----~
来自: `python-cn`:CPyUG ~ 华蟒用户组 | 发言:python-cn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
退订: http://tinyurl.com/45a9tb /针对163/qq邮箱:http://tinyurl.com/4dg6hc
详情: https://groups.google.com/group/python-cn
严正: 理解列表! 智慧提问! http://wiki.woodpecker.org.cn/moin/AskForHelp
-~----------~----~----~----~------~----~------~--~---

梅劲松 | 17 Jan 02:03
Picon

[CPyUG:77262] 今天终于把python-qq的代码从坏服务器中恢复出来了,

2009年1月16日,今天终于从原来的trac服务器上将Python-QQ的代码拷贝出来了。恢复到google上,看了一下,最后一次更新代码是2006年10月8日。 Python-QQ
www.easiest.cn的开放源软件下面。

--
梅劲松

--~--~---------~--~----~------------~-------~--~----~
来自: `python-cn`:CPyUG ~ 华蟒用户组 | 发言:python-cn <at> googlegroups.com
退订: http://tinyurl.com/45a9tb /针对163/qq邮箱:http://tinyurl.com/4dg6hc
详情: https://groups.google.com/group/python-cn
严正: 理解列表! 智慧提问! http://wiki.woodpecker.org.cn/moin/AskForHelp
-~----------~----~----~----~------~----~------~--~---

He Jibo | 28 Feb 06:06
Picon

monitor internet browser

Hi, Pythoners,

Could you please tell me some information about how to monitor internet browser? Your help will be appreciated from the buttom of my heart.
I hope to record the URLs of a webpage each time it changes, as well as the time it changes.  If possible, I also hope to save a screenshot of that webpage.
Take www.citeulike.org for example, after I click a hyperlink in this web, the URL will change. I hope to record the time it changes and the URL.
Is there any library of python could do this? Thank you so much!

Jibo
--
  Best Regards,
   
         He Jibo
       jibohe2 <at> cyrus.psych.uiuc.edu
                          hejibo <at> gmail.com


---------------------------
He Jibo
Department of Psychology,
Beckman Institute for Advanced Science and Technology
University of Illinois, Urbana Champaign,
603 East Daniel St.,
Champaign, IL 61820
Tel: 217-244-4461(office)
      217-244-6763(lab)
Email: hejibo <at> gmail.com

He Jibo | 10 Feb 08:47
Picon

xlrd处理excel文件

大家好,
     我想用xlrd来读excel文件,可是遇到了一些问题,请牛人指点一下。谢谢
 
#!/usr/bin/env python
#coding=utf-8
import xlrd
filefilter = open("fixationfilter1.txt",'a')
data=xlrd.open_workbook("try.xls")
sh=data.sheet_by_index(0)
print >>filefilter,sh.cell_value(rowx=1,colx=1)
filefilter.close()
错误报告为:
 
Traceback (most recent call last):
  File "D:/Program Files/python 2.4.3/py2exe code/tryxlrd.py", line 7, in -toplevel-
    data=xlrd.open_workbook("try.xls")
  File "D:\Program Files\python 2.4.3\Lib\site-packages\xlrd\__init__.py", line 370, in open_workbook
    biff_version = bk.getbof(XL_WORKBOOK_GLOBALS)
  File "D:\Program Files\python 2.4.3\Lib\site-packages\xlrd\__init__.py", line 1323, in getbof
    raise XLRDError('Expected BOF record; found 0x%04x' % opcode)
XLRDError: Expected BOF record; found 0x4b50

--
Best Regards,

         He Jibo
       jibohe2 <at> cyrus.psych.uiuc.edu
hejibo <at> gmail.com


---------------------------
He Jibo
Department of Psychology,
Beckman Institute for Advanced Science and Technology
University of Illinois, Urbana Champaign,
603 East Daniel St.,
Champaign, IL 61820
Tel: 217-244-4461(office)
217-244-6763(lab)
Email: hejibo <at> gmail.com
_______________________________________________
python-chinese
Post: send python-chinese <at> lists.python.cn
Subscribe: send subscribe to python-chinese-request <at> lists.python.cn
Unsubscribe: send unsubscribe to  python-chinese-request <at> lists.python.cn
Detail Info: http://python.cn/mailman/listinfo/python-chinese

Gmane