DescriptionRailway tickets were difficult to buy around the Lunar New Year in China, so we must get up early and join a long queue…The Lunar New Year ...
分类:
其他好文 时间:
2016-01-21 23:51:02
阅读次数:
268
其实官方已经有详细的 安装教程,如果严格按照官方的步骤来是不会出现这里所说的错误的.出现 initctl:未知任务: mongod 这个错误就是在安装过程的第四步中少了 "sudo",也就是这一步sudo apt-get install -y mongodb-org在安装过程中,因为已经是root用...
分类:
数据库 时间:
2016-01-21 23:13:30
阅读次数:
215
文件地址include/lib_order.php ,要引用需要先导入 lib_order.phprequire_once(ROOT_PATH . 'includes/lib_order.php');/** * 得到新订单号 * @return string */function get_or...
分类:
其他好文 时间:
2016-01-21 23:10:50
阅读次数:
146
用过JavaScript或者jQuery的同学都知道,JavaScript特别是jQuery中存在大量的回调函数,比如Ajax、jQuery的动画等。$.get(url, function() { doSomething1(); // (3)}); // (1)doSomething2(); //....
分类:
Web程序 时间:
2016-01-21 23:03:43
阅读次数:
635
1 //1, get both key and value 2 for(Entry entry : map.entrySet()) 3 { 4 Integer key = entry.getKey(); 5 Strin...
分类:
编程语言 时间:
2016-01-21 19:04:31
阅读次数:
140
Calendar cal = Calendar.getInstance(); int year =cal.get(Calendar.YEAR)+1; int month=cal.get(Calendar.MONTH)+1; cal.add(Calendar.MONTH...
分类:
编程语言 时间:
2016-01-21 18:49:39
阅读次数:
543
URL特殊字符需转义 1、空格换成加号(+) 2、正斜杠(/)分隔目录和子目录 3、问号(?)分隔URL和查询 4、百分号(%)制定特殊字符 5、#号指定书签 6、&号分隔参数转义字符的原因:如果你的表单使用get方法提交,并且提交的参数中有“&”等特殊符的话,如果不做处理,在service端就会将...
分类:
Web程序 时间:
2016-01-21 18:33:51
阅读次数:
134
view:top、left、right、bottom,相对于parent的位置参数,获取通过get*()来获取。width=right-left、height=bottom-top。x=left+translationx,y=top+translationY。translationX和transla...
分类:
移动开发 时间:
2016-01-21 15:49:21
阅读次数:
146
import urllib.requestdef get_price(): page=urllib.request.urlopen("http://www.baidu.com") text=page.read().decode("utf8") where=text.find('="...
分类:
编程语言 时间:
2016-01-21 13:50:47
阅读次数:
252
CentOS7自带MariaDB,将其删掉rpm -qa | grep mariadbrpm -e mariadb-libs-5.5.37-1.el7_0.x86_641.下载源码wget http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6....
分类:
数据库 时间:
2016-01-21 12:02:48
阅读次数:
220