05 2012 档案

摘要:/// <summary> /// 正则表达式 抓取需要的内容 /// </summary> /// <param name="HtmlCode">HTML代码</param> /// <param name="RegexString">正则表达式</param> /// <param name="GroupKey">关键字</param> /// <returns></returns> public static 阅读全文
posted @ 2012-05-29 19:11 代码示例 阅读(1139) 评论(0) 推荐(1)
摘要:今天在centos 上执行一个python脚本时出现 sh recode command not find错误这个是少了recode或者recode无法执行的缘故#yum install recode解决 阅读全文
posted @ 2012-05-23 19:32 代码示例 阅读(407) 评论(0) 推荐(0)
摘要:WebMail是指利用浏览器通过web方式来收发电子邮件的服务或技术,不需借助邮件客户端,可以说只要能上网就能使用WebMail,极大地方便了用户对邮件的收发。对于不能熟练使用邮件客户端, 或者在网吧不便使用邮件客户端的用户来说,WebMail更是必不可少的选择。Email能够成为当今Internet上应用最广泛的网络服务,WebMail可谓功不可没。 由于用户的使用不当或者WebMail系统的开发不周,都有可能给WebMail的使用带来更多的安全威胁。同样,WebMail系统作为当今电子邮件系统的重要组成部份,它的安全性也是不可忽视的。 一、邮件地址欺骗 邮件地址欺骗是非常简单和容易的... 阅读全文
posted @ 2012-05-23 00:01 代码示例 阅读(1076) 评论(0) 推荐(1)
摘要:1.在主页拿到cookie(需要的cookie:RPSTAuth)2.在主页response找到<a href="ManageFoldersLight.aspx?n=451754609">3.请求文件夹管理列表http://by150w.bay150.mail.live.com/mail/ManageFoldersLight.aspx?n=4517546094.在3的response找到 href="InboxLight.aspx?fid=00000000-0000-0000-0000-000000000001&n=968401494" 阅读全文
posted @ 2012-05-21 20:08 代码示例 阅读(398) 评论(0) 推荐(0)
摘要:C#如何实现IE代理设置?IE的代理设置存放在注册表中,位置为:HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet SettingsProxyEnable 代理是否启用,ProxyServer 代理服务器操作注册表的类是:Microsoft.Win32.RegistryKeypublic static void ProxySetting(WebRequest request){ WebProxy proxy = WebProxy.GetDefaultProxy();//获取IE缺省设置 //如果缺省设置为空, 阅读全文
posted @ 2012-05-19 11:17 代码示例 阅读(7050) 评论(5) 推荐(1)
该文被密码保护。
posted @ 2012-05-18 13:47 代码示例 阅读(0) 评论(0) 推荐(0)
摘要:转自:C# 和 Linux 时间戳转换 /// <summary> /// 时间戳转为C#格式时间 /// </summary> /// <param name=”timeStamp”></param> /// <returns></returns> private DateTime GetTime(string timeStamp) { DateTime dtStart = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)); long lTime 阅读全文
posted @ 2012-05-18 09:47 代码示例 阅读(30578) 评论(2) 推荐(4)
摘要:通过抓包获取到的字符串如jsonString所示,有对反序列化熟悉的同学能提供个类不 string jsonString = @"{ ""black"": [], ""white"": [], ""contact"": [ { ""pinyin"": """", ""nickname"": ""r"", &q 阅读全文
posted @ 2012-05-17 10:06 代码示例 阅读(632) 评论(1) 推荐(0)
摘要:python get百度获得搜索结果 # -*- coding: cp936 -*-import urllib2,urllib,sys,io"""使用GET在百度搜索引擎上查询此例演示如何生成GET串,并进行请求."""url = "http://www.baidu.com/s"search = [('w','codemo')]getString = url + "?" + urllib.urlencode(search)req = urllib2.Request 阅读全文
posted @ 2012-05-06 11:50 代码示例 阅读(4914) 评论(3) 推荐(4)
摘要:把一个py文件编译为pyc文件了。(假设在windows环境下)import py_compilepy_compile.compile(r'H:\game\test.py')py_compile.compile('webmail_sina.py') # Linux环境批量生成pyc文件 >>> import compileall>>> compileall.compile_dir(r'/home/codemo/Desktop/python') 阅读全文
posted @ 2012-05-02 10:33 代码示例 阅读(3424) 评论(0) 推荐(0)