HarrySun

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2014年6月20日

摘要: 1. gocrawl 类结构 1 // The crawler itself, the master of the whole process 2 type Crawler struct { 3 Options *Options 4 5 // Internal fields 6 ... 阅读全文
posted @ 2014-06-20 01:03 HarrySun 阅读(818) 评论(0) 推荐(0) 编辑

2014年5月23日

摘要: 1. test 驱动学习 tinyXML2, 画出类图,时序图 完成重构,学会Dll构建,发布1) learn "C++ memory Pool" of tinyXML and an open source athttp://www.codeproject.com/Articles/15527/C-... 阅读全文
posted @ 2014-05-23 00:55 HarrySun 阅读(178) 评论(0) 推荐(0) 编辑

2014年5月20日

摘要: 本来准备 学习 Lime, Lime 是 由 go + python+界面工具 写的一个 sublime 的开源实现。但是这个配置比较复杂,所以我决定先研究一下它的兄弟产品notepad++。 notepad++的实现已经有10年了,已经是一款非常成熟的软件了。我现在 需要做的就是慢慢 把它的... 阅读全文
posted @ 2014-05-20 00:36 HarrySun 阅读(313) 评论(0) 推荐(0) 编辑

2014年5月8日

摘要: 最近看了几个 用 go 写的实现 gmail 发送邮件的程序,发现代码甚是简单。然后仔细研究了一下 smtp 协议,已经相关技术。1.go code调研go 的 "net/smtp"包的两个函数就可以了。func SendMail(addr string, a Auth, from string, ... 阅读全文
posted @ 2014-05-08 01:53 HarrySun 阅读(890) 评论(0) 推荐(0) 编辑

2014年4月22日

摘要: 昨晚,读完《HTTP权威指南》第一章,收货颇多。禁不住埋怨自己以前怎么没去弄明白,同时又有“早问道,夕死可矣”的感觉。先别急着读第二章,Hold my fire。最近读《怪诞行为学2》,得到一个结论:美好的事情值得慢慢做,痛苦的事情适合一鼓作气。回到主题,谈谈所感所得。(1) HTTP请求和响应报文... 阅读全文
posted @ 2014-04-22 00:00 HarrySun 阅读(493) 评论(0) 推荐(0) 编辑

2014年4月12日

摘要: 1. install beegoFirstly, I have installed Go and set the enviroment and set PATH.However, I fail to download github.com/astaxie/beego.solution: install git and set the PATH asC:\Program Files (x86)\Git\binthen rund:>go get github.com/astaxie/beegothen the files are created as 2.install bee and ad 阅读全文
posted @ 2014-04-12 01:06 HarrySun 阅读(256) 评论(0) 推荐(0) 编辑

2014年2月15日

摘要: 1. install go2. configure sublimehttp://blog.csdn.net/cyxcw1/article/details/103294813.io package1) io.Reader 1 // io.Reader 接口示例 2 package main 3 4 import ( 5 "fmt" 6 "io" 7 "os" 8 "strings" 9 )10 11 func main() {12 FOREND:13 for {14 readerMenu()15 16 var ch 阅读全文
posted @ 2014-02-15 02:39 HarrySun 阅读(411) 评论(0) 推荐(0) 编辑

2014年1月13日

摘要: 1. install softwareCygwin, jdk, ant, nutch2. configureenvironment variableJAVA_HOME =C:\PROGRA~1\Java\jdk1.7.0_45ANT_HOME = C:\PROGRA~1\Ant\apache-ant-1.9.3PATH = ...copy source filecopyapache-nutch-2.2.1-src folder into home of Cygwinbuildenter home/apache-nutch-2.2.1-src then buildantIt takes abou 阅读全文
posted @ 2014-01-13 00:43 HarrySun 阅读(273) 评论(0) 推荐(0) 编辑

2014年1月4日

摘要: Design:I want to give a general authentication design long time ago.Now I just sit down and do it.As dipicted above,we only concern two aspectsfor security:Network transmissionstorage on server side1.Network transmissionThe best way is alway using SSL.Asymmetric encryption is another choice.1) Every 阅读全文
posted @ 2014-01-04 17:13 HarrySun 阅读(205) 评论(0) 推荐(0) 编辑

2013年12月16日

摘要: 1. give a description of QR Code before 2013/1/1I get a description doc in details from baidu doc: http://wenku.baidu.com/view/5c4c28e9856a561252d36f6e.htmlBesides, I store a copy in baiduYun: http://pan.baidu.com/s/1d6BUp Done!2. recommend a good article of garbage collector.http://journal.stuffwi. 阅读全文
posted @ 2013-12-16 00:30 HarrySun 阅读(212) 评论(0) 推荐(0) 编辑