官方地址:http://dojotoolkit.org/reference-guide/1.10/dojo/_base/lang.html#dojo-base-lang应用加载声明:require(["dojo/_base/lang"], function(lang){ // lang now c....
分类:
其他好文 时间:
2014-07-09 22:09:00
阅读次数:
431
官方地址:http://dojotoolkit.org/reference-guide/1.10/dojo/json.html#dojo-jsonrequire(["dojo/json", "dojo/dom", "dojo/on", "dojo/domReady!"],function(JSON,...
分类:
Web程序 时间:
2014-07-09 21:51:12
阅读次数:
276
官方地址:http://dojotoolkit.org/reference-guide/1.10/dojo/string.html#dojo-stringrequire(["dojo/string"], function(string){ var a = string.pad("pad me", ....
分类:
其他好文 时间:
2014-07-09 21:28:13
阅读次数:
202
IOS开发中的CGFloat、CGPoint、CGSize和CGRecthttp://developer.apple.com/library/ios/#documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.htm...
分类:
移动开发 时间:
2014-07-09 00:54:36
阅读次数:
247
1、定义shared_ptr的作用有如同指针,但会记录有多少个shared_ptrs共同指向一个对象。这便是所谓的引用计数(reference counting)。一旦最后一个这样的指针被销毁,也就是一旦某个对象的引用计数变为0,这个对象会被自动删除。这在非环形数据结构中防止资源泄露很有帮助。aut...
分类:
编程语言 时间:
2014-07-09 00:36:15
阅读次数:
250
题目大意:求二进制的a加到b的进位数。思路:列出前几个2进制,找规律模拟。#include #include #include #include #include #include #include using namespace std;int main(){ int a,b,id; ...
分类:
其他好文 时间:
2014-07-08 22:58:23
阅读次数:
295
1、错误描述
java.sql.SQLException:Column count doesn't match value count at row 1
2、错误原因
在插入数据时,插入的字段个数跟数据库表字段个数不一致
insert into student(sno,sname,sage,ssex) values(1,'张三丰','man');
3、解决办...
分类:
数据库 时间:
2014-07-08 20:14:16
阅读次数:
286
支持标前缀
1)查询不等于且有等于
$this->db->get_where('host',array('host'=>'ddd','id !='=>0))->row();
2)2表相交
return $this->db
->select('f.*,count(s.id) as subtotal')
->f...
分类:
数据库 时间:
2014-07-08 20:05:19
阅读次数:
241
最近做图像的时候,突然有个idea,需要进行聚类,其实算法很简单,但是当时很急,就直接使用了scipy的cluster。
使用起来其实很简单,但是中文的文章很少,所以就简单的介绍一下,感兴趣的也可以自己去看一下英文的文档:http://docs.scipy.org/doc/scipy/reference/cluster.html。
这是我从stackoverflow看到的一个demo,如果只是...
分类:
其他好文 时间:
2014-07-08 19:25:48
阅读次数:
309
官方地址:http://dojotoolkit.org/reference-guide/1.10/dojo/domReady.html#dojo-domreadydom加载完成后,执行。require(["dojo/domReady!"], function(){ // will not be c....
分类:
其他好文 时间:
2014-07-08 00:43:09
阅读次数:
250