mysql 优化mysql> SHOW VARIABLES LIKE '%innodb_flush_log_at_trx_commit%';+--------------------------------+-------+| Variable_name | Val...
分类:
数据库 时间:
2014-06-28 10:40:55
阅读次数:
292
十进制转二进制://十进制转二进制#includeusing namespace std;void printbinary(const unsigned int val){ for(int i = 16; i >= 0; i--) { if(val & (1 #include using name....
分类:
编程语言 时间:
2014-06-25 21:11:01
阅读次数:
241
$arr=array('','7','9','11','2','5','13','10','14','12'); $n=count($arr); for($i=2;$i$arr[0]) $high=$m-1; else $low=$m+1; } for($j=$i-1;...
分类:
其他好文 时间:
2014-06-24 14:09:04
阅读次数:
223
$arr=array('1','7','9','11','20','23','33','44','50'); $len=count($arr); $low=0;$high=$len-1; while($low'; if($arr[$mid]>9) { $high=$mid-1; ...
分类:
Web程序 时间:
2014-06-24 14:08:25
阅读次数:
223
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(...
分类:
其他好文 时间:
2014-06-24 13:40:33
阅读次数:
214
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(...
分类:
其他好文 时间:
2014-06-24 13:32:40
阅读次数:
157
phpcms 每个pc标签对应modules控制器下一个 tag.class类比如{pc:content action="position" posid="2" order="listorder DESC" num="4"} {loop $data $key $val} {$val['titl...
分类:
Web程序 时间:
2014-06-24 12:28:21
阅读次数:
344
在JSP页面中,经常使用javascript,但是要出javascript获取存储在request,session, application中的值,如下是获取request中的值:
假设后台中有:
request.setAttribute("value", "123");
在前台的javascript中有如下获取方式:
1 : var val = "${value}";
...
分类:
编程语言 时间:
2014-06-22 18:14:51
阅读次数:
143
//防止页面进行跳转
$(document).ready(function(){
$("#submit").click(function(){
var str_data=$("#form1 input[type=text]").map(function(){
return ($(this).attr("name")+'='+$(this).val());
})...
分类:
其他好文 时间:
2014-06-22 16:04:47
阅读次数:
200
欢迎关注我的新博客地址:http://cuipengfei.me/
在Scala中,名字叫做update的方法是有特殊作用的。
比如:
1
2
3
val scores = new scala.collection.mutable.HashMap[String, Int]
scores("Bob") = 100
val bobsScore =...
分类:
其他好文 时间:
2014-06-22 07:37:52
阅读次数:
282