//设置导航条的样式 self.navigationController.navigationBar.barStyle=UIBarStyleBlackTranslucent; //默认是白色 Bar字体颜色黑色,如果样式设置黑色,对应的字体就是白色。 //定义导航条的时候使用 self.navi.....
分类:
移动开发 时间:
2014-12-07 21:39:35
阅读次数:
192
CURD插入:Db.foo.insert({“bar”:“baz”});批量插入能传递一个由文档构成的数组给DB.目前MONGODB消息长度是16M,所以批量插入也是有限制的.删除:Db.user.remove(...);清除整个集合:db.drop_collection(“bar”);更新:Upd...
分类:
数据库 时间:
2014-12-07 20:18:15
阅读次数:
346
1.数据定义语言:hive> CREATE TABLE pokes (foo INT, bar STRING);hive> CREATE TABLE invites (foo INT, bar STRING) PARTITIONED BY (ds STRING);--分区是虚拟的,用于加载特别的数据...
分类:
其他好文 时间:
2014-12-07 17:44:34
阅读次数:
150
Largest Rectangle in HistogramGivennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of l...
分类:
其他好文 时间:
2014-12-06 16:39:46
阅读次数:
139
模块路径解析规则:nodejs支持三种解析方式:/或C:开头的绝对路径;./开头的绝对路径;按照一定规则解析路径,直到找到模块位置。
内置模块:如果传递给require的是NodeJS内置模块名称,则不解析,直接返回内部模块导出对象。
node_modules目录:node_modules目录用于存放模块。如某个模块的绝对路径是/home/user/hello.js,在该模块中使用require('foo/bar')方式加载模块时,则寻找顺序如下:
/home/user/node_modules/foo/...
1、设置Info.plist中的View controller-based status bar appearance为YES2、然后在AppDelegate.swift中的func application(application:UIApplication!, didFinishLaunching...
分类:
移动开发 时间:
2014-12-05 20:56:18
阅读次数:
134
Mysql查找字符串函数INSTR(str,substr)返回字符串str中子字符串的第一个出现位置。这和LOCATE()的双参数形式相同,除非参数的顺序被颠倒。mysql>SELECTINSTR(‘foobarbar‘,‘bar‘);->4mysql>SELECTINSTR(‘xbar‘,‘foobar‘);->0这个函数支持多字节字元,并且只有当至少..
分类:
数据库 时间:
2014-12-04 15:49:43
阅读次数:
180
Android一些设备都有上下两条bar,我们可以获取这些bar的信息。下面放上获取高度的代码。代码注释和其他方法有空再放。原文地址http://www.cnblogs.com/rossoneri/p/4142962.html获取顶部status bar 高度private int getStatu...
分类:
移动开发 时间:
2014-12-04 15:33:36
阅读次数:
129
Givennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histog...
分类:
其他好文 时间:
2014-12-03 22:42:18
阅读次数:
127
原文地址:http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/sorting-filtering-and-paging-with-the-entity-framework-in-an-asp-net-mvc-appli...
分类:
编程语言 时间:
2014-12-03 19:07:26
阅读次数:
258