FLAG_ACTIVITY_NEW_TASKStart the activity in a new task. If a task is already running for the activity you are now starting, that task is brought to th...
分类:
其他好文 时间:
2015-06-29 23:39:11
阅读次数:
353
整理来自https://www.shiyanlou.com/courses/running/77初始化mongodb数据库> use Chenshiswitched to db Chenshi> db.createCollection("shiyanlou") #无参数{"ok...
分类:
数据库 时间:
2015-06-28 21:31:16
阅读次数:
703
整理来自https://www.shiyanlou.com/courses/running/78覆盖索引查询所有的查询字段都是索引的一部分;所有的查询返回字段在同一个索引中。由于索引存在于RAM中,因而从索引中获取数据要比扫面文档更快范例:创建如下users集合(使用前面所学的方法创建该集合):{ ...
分类:
数据库 时间:
2015-06-28 21:30:37
阅读次数:
185
整理来自https://www.shiyanlou.com/courses/running/57启动$ sudo service mongodb start进入MongoDB命令行操作界面,在命令行中敲exit可以退出$ mongo实验中的布尔类型的ture用1代替,false用0代替创建数据库范例...
分类:
数据库 时间:
2015-06-28 20:02:01
阅读次数:
177
select id, grp_factor,sum (id) over(partition by grp_factor order by id rows between unbounded preceding and current row) running_sumfrom NUMBERS wher...
分类:
数据库 时间:
2015-06-28 17:32:45
阅读次数:
136
整理来自https://www.shiyanlou.com/courses/running/501、简介MongoDB 是一个介于关系数据库和非关系数据库之间的产品,是非关系数据库当中功能最丰富,最像关系数据库的。他支持的数据结构非常松散,是类似json的bson格式,因此可以存储比较复杂的数据类型...
分类:
数据库 时间:
2015-06-28 17:29:17
阅读次数:
132
整理来自https://www.shiyanlou.com/courses/running/61一、文件打包和解压缩在讲 Linux 上的解压缩工具之前,有必要先了解以下常见常用的压缩包文件格式。在 Windows 上我们最常见的不外乎这三种*.zip,*.rar,*.7z后缀的压缩文件,而在 Li...
分类:
系统相关 时间:
2015-06-28 17:03:38
阅读次数:
227
整理来自https://www.shiyanlou.com/courses/running/60要解释环境变量,得先明白变量是什么,准确的说应该是 Shell 变量,所谓变量就是计算机中用于记录一个值(不一定是数值,也可以是字符或字符串)的符号,而这些符号将用于不同的运算处理中。通常变量与值是一对一...
分类:
系统相关 时间:
2015-06-28 13:58:59
阅读次数:
175
原本是使用connect-mongo的,可能是express版本的升级报错了,改用connect-mongodb,但是使用后出现了如下的警告:G:\nodejs\moviesite>grunt
Running "concurrent:tasks" (concurrent) task
Running "nodemon:dev" (nodemon) task
Running "watch...
分类:
数据库 时间:
2015-06-28 11:20:38
阅读次数:
514
整理来自https://www.shiyanlou.com/courses/running/59在讲 Linux 目录结构之前,你首先要清楚一点东西,那就是 Linux 的目录与 Windows 的目录的区别,或许对于一般操作上的感受来说没有多大不同,但从它们的实现机制来说是完全不同的。一种不同是体...
分类:
系统相关 时间:
2015-06-28 01:14:13
阅读次数:
214