RSS 简单编程
哪吒推荐该订阅
简介:software is like sex,it is better when it is free.
原站:http://blog.ntsky.com
指数:
点击立即订阅,“简单编程”的内容有更新,哪吒第一时间提醒您
“简单编程”的内容更新
累计:20 篇(自 2009-10-30 起)
更新:约9篇/年,最后更新836 天前
简单编程
开发环境windowns python 2.5 发布环境centos5 python 2.4 ,在发布代码的过程中发现了些区别,记录下来,拒绝犯错。一、strptime2.5、datetime.datetime.strptime("2009-06-08", "%y-%m-%d")2.4、datetime.date(*time.strptime(’2009-06-08′, ‘%y-%m-%d’)[:3])二、try….except….finally2.5支持:try:except:finally:2.4不支持,2.4需要分开写try: try: ... (303 天前)
简单编程
chartdirector是个商业的图标工具,功能强大,使用简单,看看运行效果:下载地址:http://www.advsofteng.com/download_archive.html下面根据例子说下python和chartdirector的整合和开发。1、chartdirector安装:windows:下载得到: chartdir_python_win32_v4.zip解压得到目录,chartdir没有提供install脚本,我们需要手动将chartdirector的类库添加到python的lib中去。打开p... (303 天前)
简单编程
str = "比例:%s%"%("20")print str 错误:valueerror: incomplete format有时候在输出字符串的时候需要输出%,但%是特殊支付,直接这样输出有incomplete的错误,设置%%就可以输出正确的输出:str = "比例:%s%%"%("20")print str 比例:20%... (303 天前)
简单编程
nginx+(1…n)tomcat集群部署时,后端tomcat需要取得用户的ip,这时通过 request.getremoteaddr()取得的始终是127.0.0.1.由于用户请求经过nginx,ngigx转发了请求到tomcat后,tomcat取得的始终是nginx的ip,如果需要取得真实用户ip,只需要在ngix上做些配置。location / 下设置 proxy_set_header x-real-ip $remote_addr; proxy_set_header host $host; 测试配置:./sbin/nginx ... (303 天前)
简单编程
django提供了logger功能,但是呢,这个logger看起来很美好,用起来很恶心,反正我一直在linux上没用起来。用法:python代码import logging logging.basicconfig( level = logging.debug, format = ‘%(asctime)s %(levelname)s %(module)s.%(funcname)s line:%(lineno)d %(message)s’, filename = ‘c:/filelog.log’, ) logging.debug("test") ... (303 天前)
简单编程
安装步骤1、安装myeclipse 6.02、安装wtk。下载wtk2.5.2地址:wtk2.5.2执行安装选择jdk路径,必须要jdk1.5以上。3、继承 eclipseme下载eclipseme地址:http://sourceforge.net/project/showfiles.php?group_id=86829&package_id=90314&release_id=588298下载后解压拷贝到myeclipse目录:c:\program files\myeclipse 6.0\eclipse下。重启eclipse,就可以看到windows–>preference... (303 天前)
简单编程
使用simplecaptcha可以方便灵活的生成各种验证码。下载simplecaptcha : http://sourceforge.net/project/platformdownload.php?group_id=147810&sel_platform=13579添加到classpath中,在web.xml中的设置:xml/html代码 <servlet> <servlet-name>captcha</servlet-name> <servlet-class>nl.captcha.servlet.captchaservlet</servlet-class> ... (303 天前)
订阅者 ( 3 )
lostsnow
carbonjiao
dreamlover2131
相关订阅源
RSS GSeeker

the search business in china

标签: gseeker google it blog web2.0

指数 | 362人订阅  

RSS 不许联想

王小峰,网名“带三个表”,在网上人称“三表哥”。 亦有人称之为“王三表”。毕业于中国政法大学经济专业,曾在政府机关做过监察科员,法国公司做过法方代表,在互联网最火的时候涉足过IT,曾经以“乐评人”形象著称。现任《三联生活周刊》杂志主笔。珍爱生命,远离博客。

标签: 不许联想 王小峰 博客 blog 带三个表

指数 | 1305人订阅  

我要反馈