成功启动MongoDB后,再打开一个命令行窗口输入mongo,就可以进行数据库的一些操作。输入help可以看到基本操作命令:show dbs:显示数据库列表show collections:显示当前数据库中的集合(类似关系数据库中的表)show users:显示用户use :切换当前数据库,这和MS...
分类:
数据库 时间:
2015-05-15 13:19:46
阅读次数:
140
编写路由:
'URL_ROUTER_ON' => true, //开启路由
'URL_ROUTE_RULES'=>array(
'index/:weather'=>'Index/index',
),
控制器内:
<?php
namespace Home\Controller;
use Think\Controller\RestController;
class ...
分类:
Web程序 时间:
2015-05-15 10:39:31
阅读次数:
190
Yesterday when I use highchart to draw line chart.When I add new serial, highchart failed to update, even I called redraw function. Only redraw when b...
分类:
其他好文 时间:
2015-05-15 10:34:40
阅读次数:
146
在A库上建DB_link,更新B库。报ORA-2020 too many database links in use,是要设置OPEN_LINKS和OPEN_LINKS_PER_INSTANCE两个参数,它们的默认值都是4。
alter system set open_links=200 scope=both;
alter system set open_links_per_instance=...
分类:
数据库 时间:
2015-05-15 09:04:07
阅读次数:
195
转载于:http://www.wfuyu.com/technology/22499.html目前业界主流的版本管理工具主要是 svn/git。svn是1种集中式的代码管理工具,而git是1种散布式的代码管理工具,广受极客的爱好。而基于git的github更是全宇宙码农的提高逼格,深究技术的必备神器。...
分类:
移动开发 时间:
2015-05-15 07:47:37
阅读次数:
307
Given amxnmatrix, if an element is 0, set its entire row and column to 0. Do it in place.click to show follow up.Follow up:Did you use extra space?A s...
分类:
其他好文 时间:
2015-05-14 23:19:26
阅读次数:
148
1.文档全部加在完毕后执行一:$(document).ready(function(){}二:$().ready(function(){}三:window.onload=function(){}2.dom转jQueryvar username=document.getElementById("use...
分类:
Web程序 时间:
2015-05-14 18:13:42
阅读次数:
108
【集锦】Nutch配置错误IO错误 记得出错的时候把出错的目录删除,否则下次还是出错。Command crawl is deprecated, please use bin/crawl instead 1.8和2.3版本不可以使用这个命令,所以才会有之前的错误。 使用以下代替:1 Us...
分类:
其他好文 时间:
2015-05-14 13:54:37
阅读次数:
204
享元模式的英文原文是:Use share to support large number of fine-grained objects efficiently.意思是:使用共享对象可以有效的支持大量的细粒度的对象。这里的共享对象指的是对象常驻内存,都可以使用;细粒度对象指的是,对象的很多属性相似或相同,可以提取出公共属性。享元对象能够做到共享的关键就是区分内部状态和外部状态,上边提到的公共属性就...
分类:
其他好文 时间:
2015-05-14 08:48:59
阅读次数:
145
route命令的用法:操作或者显示IP路由表route:DESCRIPTION Route manipulates the kernel's IP routing tables. Its primary use is to set up static routes to ...
分类:
系统相关 时间:
2015-05-13 18:58:40
阅读次数:
268