摘要: http://developer.yahoo.com/python/python-rest.htmlPython provides a number of modules for performing HTTP requests. This HOWTO describes how to perform GET and POST requests using the urllib and urllib2 modules from the Python standard library.Simple GET requests Simple POST requests Authenticated r 阅读全文
posted @ 2011-04-10 11:06 bettermanlu 阅读(321) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/chenzehe/archive/2010/08/30/1812995.htmlhttplib实现了HTTP和HTTPS的客户端协议,一般不直接使用,在python更高层的封装模块中(urllib,urllib2)使用了它的http实现。Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->importhttplibconn=httplib.HTTPConnection("google.co 阅读全文
posted @ 2011-04-10 10:54 bettermanlu 阅读(915) 评论(0) 推荐(0) 编辑
摘要: Python 使用 UTF-8 编码发表于:2010年1月28日 | 分类:Python | 标签: utf8 | views(3,059)版权信息: 可以任意转载, 转载时请务必以超链接形式标明文章原文出处, 即下面的声明.原文出处:http://blog.chenlb.com/2010/01/python-use-utf-8.html一般我喜欢用 utf-8 编码,在 python 怎么使用呢?1、在 python 源码文件中用 utf-8 文字。一般会报错,如下: File "F:\workspace\psh\src\test.py", line 2SyntaxErr 阅读全文
posted @ 2011-03-21 12:39 bettermanlu 阅读(2724) 评论(0) 推荐(0) 编辑
摘要: http://www.gepsoft.com/Gepsoft/APS3KB/Chapter09/Section2/SS03.htmTrue positives (TP), true negatives (TN), false positives (FP), and false negatives (FN), are the four different possible outcomes of a single prediction for a two-class case with classes “1” (“yes”) and “0” (“no”). A false positive is 阅读全文
posted @ 2011-02-23 22:26 bettermanlu 阅读(724) 评论(0) 推荐(0) 编辑
摘要: http://bbs.runbible.cn/thread-33645-1-1.html2011马拉松赛程大连国际, 郑州市, 黄河口, 重庆市, 冠军赛序号 比赛名称 比赛时间 比赛地点1 厦门国际马拉松赛暨全国马拉松积分赛(全程积分赛1) 1月2日 福建厦门市2 重庆马拉松赛 3月20日 重庆市3 郑开国际马拉松赛暨全国马拉松积分赛(全程积分赛2) 3月27日 郑州市-开封市4 扬州半程马拉松赛暨全国半程马拉松锦标赛(团体赛1) 4月24日 江苏扬州市5 大连国际马拉松赛暨全国马拉松冠军赛(团体赛1) 4月30日 辽宁大连市6 黄河口(东营)国际马拉松 阅读全文
posted @ 2011-02-20 16:31 bettermanlu 阅读(838) 评论(0) 推荐(0) 编辑
摘要: http://zengwu3915.blog.163.com/blog/static/2783489720105691622542/ 使用VS2008,debug成功,但Release时会报fatal error C1900的link错误:1>------ Build started: Project: game_client, Configuration: Release Win32 ------1>Linking...1>fatal error C1900: Il mismatch between 'P1' version '20080116' and 'P2' vers 阅读全文
posted @ 2011-02-17 12:30 bettermanlu 阅读(3626) 评论(0) 推荐(0) 编辑
摘要: http://www.codeguru.com/cpp/cpp/cpp_mfc/tutorials/article.php/c9855I was trying to learn DLLs and nothing was really explaining anything; it was just code for you to look at and wonder what was going on. For this article, I assume you know how to use the features of your compiler, such as setting di 阅读全文
posted @ 2011-02-17 11:57 bettermanlu 阅读(333) 评论(0) 推荐(0) 编辑
摘要: http://www.javaeye.com/news/169252010年6月,Google公布全球Top 1000网站。Facebook独占鳌头。以Facebook现在的经营规模,诸多传统服务器的技术均将崩溃或根本无法支撑。那么面对5亿的活跃用户,Facebook的工程师们又将如何让网站平稳运转呢?伯乐在线 - 职场博客的这篇文章将展示Facebook的工程师完成这个艰巨任务所用到的一系列软件。   Facebook级别规模的挑战   在我们深入细节之前,先了解一组Facebook不得不面对数据,你就可以想象这种规模。Facebook每月的PV量:630,000,000,000 (6万3千 阅读全文
posted @ 2011-01-27 22:55 bettermanlu 阅读(476) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/lirincy/archive/2008/09/17/2944195.aspx若一头小母牛,从出生起第四个年头开始每年生一头母牛,按此规律,第n年有多少头母牛?由于这道题出现在钱能的C++书籍当中,因此关于这道题的讨论有很多: http://topic.csdn.net/t/20031207/17/2537255.htmlhttp://ks.cn.yahoo.com/question/1407041505424.html但是很多论述和解答都不太正确,我综合了一下各方的方案,经过推导,给出如下解答:对于母牛的数量,有如下数量关系:时间(年) 1岁牛(头) 阅读全文
posted @ 2011-01-23 21:36 bettermanlu 阅读(402) 评论(0) 推荐(0) 编辑
摘要: http://blogs.msdn.com/b/deviations/archive/2010/06/22/how-to-user-fiddler-and-http-replay-to-have-an-offline-copy-of-your-site.aspxVery often, I’m asked to troubleshoot some client-side issue regarding web applications. Because, most of those times, I’m not onsite at the customer experiencing the is 阅读全文
posted @ 2011-01-20 10:35 bettermanlu 阅读(645) 评论(0) 推荐(0) 编辑