2014年4月3日

实用网页抓取

摘要: 本文主要介绍如何抓取网页中的内容、如何解决乱码问题、如何解决登录问题以及对所采集的数据进行处理显示的过程。 阅读全文

posted @ 2014-04-03 23:43 yao2yao4 阅读(9016) 评论(21) 推荐(9) 编辑

2013年12月6日

总结

摘要: 1、接口 无依赖的静态方法 常数 枚举类型 接口 无依赖的数据模型2、容器 静态对象 静态方法3、必须为public的情况 xml序列化 Window类派生类的构造函数 模型的属性 单元测试项目的方法 IOC用于构造函数注入的构造函数 阅读全文

posted @ 2013-12-06 22:03 yao2yao4 阅读(170) 评论(0) 推荐(0) 编辑

2013年10月15日

IL命令

摘要: hidebysig means HIDE (a method) BY (its) SIGnaturenop //即No Operation 没有任何操作ldcLoad consti4 int32ldstr.:即Load Stringstlocldlocret //即为 returnM1 minus 1 阅读全文

posted @ 2013-10-15 21:26 yao2yao4 阅读(182) 评论(0) 推荐(0) 编辑

2013年10月14日

沟通交流方式

摘要: 通过画图的方式可以极大地增加沟通的效率。 阅读全文

posted @ 2013-10-14 05:57 yao2yao4 阅读(178) 评论(0) 推荐(0) 编辑

降温可以缓解眼睛疲劳

摘要: 当然还有滴眼液了。 阅读全文

posted @ 2013-10-14 05:52 yao2yao4 阅读(152) 评论(0) 推荐(0) 编辑

2013年10月4日

秘钥与单元测试

摘要: 1、对程序集及单元测试的程序集用同一个秘钥签名;2、打开vs开发人员命令提示,输入:D:cd abc\def\来调整目录到D:\abc\def\;3、输入sn -p Key.pfx Key.PK.pfx回车,以生成公钥文件;4、输入sn -tp Key.PK.pfx回车,以产生公钥;5、在AssemblyInfo.cs中添加[assembly: InternalsVisibleTo("SQLiteHelper.Test,PublicKey=00240000048000009400000006020000002400005253413100040000010001001b950384e 阅读全文

posted @ 2013-10-04 06:39 yao2yao4 阅读(222) 评论(0) 推荐(0) 编辑

2013年10月1日

linux 命令缩写

摘要: su super userapt advanced packaging toolifconfig interface configurationso shared objectfsp fractional second part 阅读全文

posted @ 2013-10-01 19:51 yao2yao4 阅读(135) 评论(0) 推荐(0) 编辑

2013年9月11日

单元测试的替代

摘要: 1、智能提示即时进行语句级测试。2、函数的输入、输出、极值通过异常的传递来进行防御编程。3、顶层及捕获异常记录捕获的异常日志。4、需求在体现需求的代码处记录日志。 阅读全文

posted @ 2013-09-11 18:31 yao2yao4 阅读(199) 评论(0) 推荐(0) 编辑

2013年8月14日

获取本机可用端口

摘要: 如下:using System;using System.Collections.Generic;using System.Linq;using System.Net.NetworkInformation;namespace ConsoleApplication2{ public static class AvailablePort { /// public static int GetFirstAvailablePort() { const int MAX_PORT = 65535; cons... 阅读全文

posted @ 2013-08-14 20:07 yao2yao4 阅读(356) 评论(0) 推荐(0) 编辑

textbox的验证

摘要: 代码如下:textBox1.KeyDown += (a, b) => { if (b.KeyCode == Keys.Enter) { textBox2.Focus(); } };textBox1.Leave += delegate { int result; if (!int.TryParse(textBox1.Text.Trim(), out result)) { MessageBox.Show("fsfd"); textB... 阅读全文

posted @ 2013-08-14 07:17 yao2yao4 阅读(298) 评论(0) 推荐(0) 编辑

导航