原题地址:https://oj.leetcode.com/problems/search-a-2d-matrix/题意:Write
an efficient algorithm that searches for a value in anmxnmatrix. This matrix has
the...
分类:
编程语言 时间:
2014-06-29 07:56:13
阅读次数:
321
查询已经创建的数据库 show dbs
选择数据库
use DATABASE_NAME
查询该数据库里面的集合 show collections
删除集合操作:
db.COLLECTION_NAME.drop()
插入数据操作:
db.COLLECTION_NAME.insert(
do...
分类:
数据库 时间:
2014-06-20 10:57:41
阅读次数:
275
以下3步问正确的程序片段:
1.写文件
#! /usr/bin/python3
'makeTextFile.py -- create text file'
import os
def write_file():
"used to write a text file."
ls = os.linesep
#get filena...
分类:
编程语言 时间:
2014-06-20 10:47:27
阅读次数:
278
17.4、Making User-Managed Backups of Online Tablespaces and Datafiles
当数据库打开时,可以备份一个在线表空间所有和一个指定的数据文件。备份过程的区别依赖于在线表空间是read、write或者read-only。
注意:不应该备份临时表空间
17.4.1、Making User-Managed Backups of Onlin...
分类:
其他好文 时间:
2014-06-20 10:04:43
阅读次数:
289
原题地址:https://oj.leetcode.com/problems/sudoku-solver/题意:Write
a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are
indicated b...
分类:
编程语言 时间:
2014-06-07 09:30:06
阅读次数:
342
pymongo是python的一个模块,可能通过sudo pip install
pymongo来安装。导入pymongoimport pymongo创建连接conn =
pymongo.Connection("127.0.0.1",27017)查看所有的数据库conn.database_names...
分类:
数据库 时间:
2014-06-06 20:11:20
阅读次数:
335
目前发现mapreduce的用法有两种:一:计数以及实现聚合函数统计数据二:对数据进行分组简化或者构造自己想要的格式三:根据条件进行数据筛选现在普遍的用法是第一种,对于第二种用法我们会分析一些格式怎么构造。效果图mapreduce原理:参考资料:http://www.csdn.net/article...
分类:
数据库 时间:
2014-06-06 16:01:35
阅读次数:
390
Sublime Text 2 一些设置January 10th, 2013731viewsPosted
in软件Write comment个人的关于Sublime Text
2的一些设置和插件。关于安装:程序主页:https://sublimetext.com/Windows7/8下安装版的配置文件...
分类:
编程语言 时间:
2014-06-05 21:30:48
阅读次数:
452
1.找到app文件的位置 1.1.teminal(终端)相当于windows中的命令行,
Finder->应用程序->实用工具->终端 1.2.在Mac机上显示隐藏文件,
在终端中用如下命令显示和隐藏"隐藏文件"显示:defaults write com.apple.finder AppleShow...
分类:
其他好文 时间:
2014-06-05 19:00:18
阅读次数:
265
使用终端显示隐藏文件的最简单方法是使用终端。只要打开终端(位于应用程序——实用工具),将以下代码复制进去然后回车defaults write
com.apple.finder AppleShowAllFiles -bool YESFinder需要重启才能应用修改,在终端中接着输入killall
Fi...
分类:
其他好文 时间:
2014-06-05 18:16:21
阅读次数:
286