会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
雁渡寒潭
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
2014年11月11日
WARNING:tornado.access:403 GET /websocket (::1) 1.00ms
摘要: 解决办法:
阅读全文
posted @ 2014-11-11 10:05 稻草人.cn
阅读(2236)
评论(0)
推荐(0)
2014年10月28日
得到真正的链接地址
摘要: 这个事,折腾了仨小时。记下来。别再走弯路。一链接地址:查看源代码是这样的:通过审查元素看,是这样的:而,真正的地址,是这样的(scrapy 中 response.body ):
阅读全文
posted @ 2014-10-28 13:24 稻草人.cn
阅读(147)
评论(0)
推荐(0)
2014年10月26日
python正则表达式备忘
摘要: 提取B00MOBUBXE/gp/product/B00MOBUBXE/python正则表达式:/gp/product/(?P\w+)/
阅读全文
posted @ 2014-10-26 18:24 稻草人.cn
阅读(137)
评论(0)
推荐(0)
2012年9月3日
Delphi2007里CategoryButtons组件的一个bug
摘要: Delphi2007的CategoryButtons组件的font属性的color值无效,无论设置什么颜色,都是黑色。
阅读全文
posted @ 2012-09-03 16:47 稻草人.cn
阅读(275)
评论(0)
推荐(0)
在delphi2010中调用gethostname函数出现错误:E2010 Incompatible types: 'Array' and 'PAnsiChar'
摘要: 一个获取本机ip的函数:1classfunctionTGlobal.GetLocalIP:string;2typeTaPInAddr=array[0..10]ofPInAddr;3PaPInAddr=^TaPInAddr;4varphe:PHostEnt;5pptr:PaPInAddr;6Buffer:array[0..63]ofchar;7I:Integer;8GInitData:TWSADATA;9begin10WSAStartup($101,ginitdata);11result:='';12gethostname(buffer,sizeof(buffer));13phe
阅读全文
posted @ 2012-09-03 16:30 稻草人.cn
阅读(1835)
评论(0)
推荐(0)
2011年9月27日
实用栈检查括号是否匹配
摘要: 设字符串仅由圆括号“(”和“)”,方括号“[”和“]”,花括号“{”和“}”组成,利用链栈的操作编写一个检查括号是否正确配对的算法:int Matcher(LstackTP *ls)。例如[{{()}[ ]}(){[ ]}]是正确的,而{({()[ ]})}])}则不正确。设链栈定义如下:(6分) typedef struct node { char data; struct node * next; } LStackTp;//Stack.cpp:Definestheentrypointfortheconsoleapplication.//#include"stdafx.h"
阅读全文
posted @ 2011-09-27 08:24 稻草人.cn
阅读(455)
评论(0)
推荐(0)
2008年8月21日
设置DBGrid当前行的颜色
摘要: 定义个子类MyDBGrid继承TDBGrid,以提供访问父类保护成员的接口。 type MyDBGrid=class(TDBGrid) private public function GetRow:integer; function IsCurrent:boolean; end; function MyDBGrid.GetRow: integer; beg...
阅读全文
posted @ 2008-08-21 11:35 稻草人.cn
阅读(1094)
评论(0)
推荐(0)
2008年8月5日
level不能作为access的表名和字段名
摘要: level不能作为access的表名和字段名。记下来,防止遗忘。
阅读全文
posted @ 2008-08-05 12:47 稻草人.cn
阅读(340)
评论(2)
推荐(0)
2008年6月18日
一个处理多键盘输入的组件
摘要: 最近的项目中需要同时处理来自多个键盘的输入信息,使用raw input可以完美的解决这个问题。封装成一个组件,代码如下: 1unit UnitRawInput; 2 3interface 4 5uses 6 SysUtils, Classes,Windows,uRawInput,Forms,messages; 7 8 9type 10 TRawKeyPre...
阅读全文
posted @ 2008-06-18 13:21 稻草人.cn
阅读(1311)
评论(3)
推荐(0)
上一页
1
2
公告