08 2014 档案

摘要:向php脚本中传参数可以用http GET 方法,比如要向file.php传两个参数v1和v2.则可以这么做file.php?v1=1&v2=2(一个链接而已,直接编辑URL即可传参数了)这样在file.php中要获得v1和v2的值,可以这么做:$v1= $_GET['v1'];$v2= $_GET... 阅读全文
posted @ 2014-08-31 17:04 zmiao 阅读(172) 评论(0) 推荐(0) 编辑
摘要:http://www.simplehitcounter.com/ 阅读全文
posted @ 2014-08-30 17:50 zmiao 阅读(107) 评论(0) 推荐(0) 编辑
摘要:use the existing service:http://www.foxyform.com/ 阅读全文
posted @ 2014-08-30 12:04 zmiao 阅读(98) 评论(0) 推荐(0) 编辑
摘要:http://howtodoinjava.com/2012/10/09/working-with-hashcode-and-equals-methods-in-java/ 阅读全文
posted @ 2014-08-29 08:05 zmiao 阅读(92) 评论(0) 推荐(0) 编辑
摘要:problem: given an array of integers including positive and negative, a target value. find 2 numbers in the array such that the sum of the 2 numbers is... 阅读全文
posted @ 2014-08-27 03:35 zmiao 阅读(125) 评论(0) 推荐(0) 编辑
摘要:Dynamic programming, or the "put shit in a table" technique, is an optimization for certain types of recurrence problems (specifically, those with ove... 阅读全文
posted @ 2014-08-26 10:45 zmiao 阅读(130) 评论(0) 推荐(0) 编辑
摘要:the algorithm is like this: it evenly spreads an integer N over K cells.for i = 0 to K array[i] = N / K # integer division# divide up the remain... 阅读全文
posted @ 2014-08-26 04:47 zmiao 阅读(155) 评论(0) 推荐(0) 编辑
摘要:http://hi.baidu.com/eehuang/item/22283e220437a80d76272cb7 阅读全文
posted @ 2014-08-20 13:19 zmiao 阅读(93) 评论(0) 推荐(0) 编辑
摘要:\d represent any number\D represents everything but a number\s represents any space\S Anything but a space\w Any character\W Anything but a character.... 阅读全文
posted @ 2014-08-20 10:04 zmiao 阅读(165) 评论(0) 推荐(0) 编辑
摘要:Selection:selection is a trivial problem if the input numbers are sorted. If we use a sorting algorithm having O(nlgn) worst case running time, then t... 阅读全文
posted @ 2014-08-19 03:44 zmiao 阅读(263) 评论(0) 推荐(0) 编辑
摘要:Google TMAC v6.Or click here 阅读全文
posted @ 2014-08-18 10:53 zmiao 阅读(111) 评论(0) 推荐(0) 编辑
摘要:public boolean isEven(int data){ if((data&1)== 0) return true; return false; }much faster than using % 阅读全文
posted @ 2014-08-15 05:59 zmiao 阅读(166) 评论(0) 推荐(0) 编辑