HarrySun

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

随笔分类 -  web

html、js、ajax
摘要:1. install and config 1). install ubuntu use samba to enable win7 users accessing ubuntu share folder. refer tohttp://www.7tutorials.com/how-cha... 阅读全文
posted @ 2015-02-27 22:51 HarrySun 阅读(342) 评论(0) 推荐(0)

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

摘要: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 阅读(264) 评论(0) 推荐(0)

摘要: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 阅读(213) 评论(0) 推荐(0)

摘要:1. set classpath some functions depend on class path.For example:1 @BeforeClass2 public static void setUpBeforeClass() throws Exception {3 //get bean from spring4 appContext = new ClassPathXmlApplicationContext(new String[] {"applicationContext-dao.xml", "applicationContext-hiber... 阅读全文
posted @ 2013-08-08 00:57 HarrySun 阅读(433) 评论(0) 推荐(0)

摘要:前段日子看完了一本《松本行弘的程序世界》,同时在网上检索了一下松本行弘本人,对这位业内前辈佩服得五体投地。既佩服其起对程序的狂热和以及对事业认真负责的态度,又佩服其淡泊名利、秉承开源的精神。 很自然的,我怀着崇敬的心情,开始了Ruby之旅。 首先,学的是Ruby语法本身,我被其优雅的语法迷住了,其语法更接近自然语言。我被块表达式迷住了,像数学公式一样简明。例如:def initialize(title, price_code) @title, @price_code = title, price_codeend命名约定造就了简洁与优雅。 唯一构造函数,避免了C++中构造函数导致... 阅读全文
posted @ 2013-04-25 02:12 HarrySun 阅读(273) 评论(0) 推荐(0)