/* 20150228 hg * 文章内容自动加链接 */ $keys =array( array('网站建设','www.baidu.com'), ...
分类:
Web程序 时间:
2015-03-13 14:08:25
阅读次数:
117
@OverridepublicbooleaninSert(StringdbName,StringcollectionName,String[]keys,Object[]values){ DBdb=null; DBCollectiondbCollection=null; WriteResultres....
分类:
数据库 时间:
2015-03-13 00:19:31
阅读次数:
1945
写两个函数,使其支持中文:function arrayRecursive(&$array, $function, $apply_to_keys_also = false){ foreach ($array as $key => $value) { if (is_array($va...
分类:
Web程序 时间:
2015-03-11 14:23:01
阅读次数:
135
$ ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys只需讲公钥信息追加到authorized_keys 文件內。想无密码登陆哪台 就把自身的公钥信息追加到目标机器的aut...
分类:
其他好文 时间:
2015-03-11 10:34:02
阅读次数:
121
1.在github上面注册。。。2.生成ssh密钥生成过程 1).查看是否已经有了ssh密钥: cd ~/.ssh 2).生成密钥 $ssh-keygen-trsa-C"your_email@youremail.com" (注册github的邮箱账号) 回到github,进入Accoun...
分类:
其他好文 时间:
2015-03-11 00:23:30
阅读次数:
187
Problem Description
In many applications very large integers numbers are required. Some of these applications are using keys for secure transmission of data, encryption, etc. In this problem you are given a number, you have to determine the number of digit...
分类:
其他好文 时间:
2015-03-10 19:30:04
阅读次数:
150
安装及初始化
到这里下载软件,安装时全部默认设置 下载gitbash
运行桌面上产生的Git Bash,会出现命令框,进行下面的设置 ssh-keygen -t rsa -C “your_email@youremail.com” 会提示SSH Public Keys的存放位置,默认就好,按一下Enter; 接下来会出现两次输入密码,可设空密码,即按两下Enter 出现The key fing...
分类:
其他好文 时间:
2015-03-10 14:07:28
阅读次数:
161
紧急出个差,但是又不能不继续写,少写点,先把Shard key和Hash的一些小概念继续写一写。Shard KeysmongoDB的Sharding最重要的就是Shard Key。用Shard Key进行分片,并且按照指定的Chunk的大小进行Chunk的分割和移动(后面细说)。Shard Key的一些特点:Shard Key不可以是multikey index
何为mutikey index?途...
分类:
数据库 时间:
2015-03-10 00:13:05
阅读次数:
223
迭代dict也要讲求效率,不然就要走进性能陷阱以下三种迭代方式:keys,iterkeys, hashkeyimport timeitDICT_SIZE = 100 * 100000testDict = dict()for i in xrange(DICT_SIZE): testDict[i]...
分类:
编程语言 时间:
2015-03-07 15:22:04
阅读次数:
146
为了排除某些特殊的文件后缀名,一开始我自然而然的这样写,判断每一个文件的后缀名: // 去除后缀名 foreach (const QString &strKey, local_map.keys()) { // strKey是本地全路径文件名,带冒号 if (m_Map...
分类:
其他好文 时间:
2015-03-07 01:01:53
阅读次数:
196