/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javauname -a显示系统隐藏文件。在终端(Terminal)中输入如下命令:defaults write ~/Library/Preferences/c...
分类:
其他好文 时间:
2014-08-20 19:33:42
阅读次数:
206
数据库基本命令操作数据库经常使用命令1、Help查看命令提示help db.help(); db.yourColl.help(); db.youColl.find().help(); rs.help();2、切换/创建数据库use yourDB;当创建一个集合(table)的时候会自己主动创建当前数...
分类:
数据库 时间:
2014-08-20 17:46:12
阅读次数:
208
在C程序中,文件由文件指针或者文件描述符表示。ISO C的标准I/0库函数(fopen, fclose, fread, fwrite, fscanf, fprintf等)使用文件指针,UNIX的I/O函数(open, close, read, write, ioctl)使用文件描述符。下面重点来说下...
分类:
编程语言 时间:
2014-08-20 16:15:52
阅读次数:
274
安装mongodb1.下载,解压mongodb(下载解压目录为/opt)在/opt目录下执行命令wget fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.6.4.tgztar xzvf mongodb-linux-x86_64-2.6.4.tgz2.创...
分类:
数据库 时间:
2014-08-20 16:09:02
阅读次数:
288
效果图一共3个页面:注册页,欢迎页,用户列表页很简单的例子,主要是为了把流程走通,没有各种验证。注册页: 欢迎页: 用户列表页: 源码地址https://github.com/lemonbar/spring-framework-mongodb参考文档Spring framework:http:...
分类:
数据库 时间:
2014-08-20 16:05:32
阅读次数:
493
Follow up for "Search in Rotated Sorted Array":What if duplicates are allowed?Would this affect the run-time complexity? How and why?Write a function ...
分类:
其他好文 时间:
2014-08-20 13:47:32
阅读次数:
224
Description
FJ and his cows enjoy playing a mental game. They write down the numbers from 1 to N (1 <= N <= 10) in a certain order and then sum adjacent numbers to produce a new list with one fewer...
分类:
其他好文 时间:
2014-08-20 10:33:36
阅读次数:
256
以前学人家倒腾Rails的时候,服务是rails server,会启动一个虚拟的webrick服务器在windows里虚拟一个服务器,只要用mongoose.exe 放在项目的web根目录就可以start browser那么Mac怎么搞?我还用node去装了mongoDB 和mongoose,git...
分类:
其他好文 时间:
2014-08-20 10:25:36
阅读次数:
193
Question:Write a method to sort an array of strings so that all the anagrams are next to each other. 1 package POJ; 2 3 import java.util.Arrays; 4 im....
分类:
其他好文 时间:
2014-08-20 02:41:34
阅读次数:
199
Question:You are given two sorted arrays, A and B, where A has a large enough buffer at the end to hold B.Write a method to merge B into A in sorted o...
分类:
其他好文 时间:
2014-08-19 23:51:25
阅读次数:
309