/** * ThinkPHP version 3.1.3 */ThinkPHP ( 官方网站:http://www.thinkphp.cn/ ) 目前最新版本是 3.2.2,它要求 PHP 的版本高于 5.3.0,由于我的 WAMPServer 集成的 PHP 版本是 5.2.6,所以下载了低一版本...
分类:
Web程序 时间:
2014-11-14 17:26:08
阅读次数:
243
rpm版本的jdk好安装,直接运行一个命令即可解决,下面是压缩包版本的jdk安装 1.首先查看linux是否安装了jdk,安装了就先卸载掉。 rpm?-qa?|?grep?jdk
java?-version?#查看java版本 2.去官网下载对应linux版...
分类:
系统相关 时间:
2014-11-14 16:01:15
阅读次数:
214
创建表设置的AUTO_INCREMENT属性在执行truncate操作后,自增序列会自动被置为0http://dev.mysql.com/doc/refman/5.0/en/truncate-table.htmlFor an InnoDB table before version 5.0.3, In...
分类:
数据库 时间:
2014-11-14 15:33:10
阅读次数:
383
1:环境准备 1台linux服务器, hadoop安装包(apache官方网下载) jdk1.6+2:安装jdk ,配置好环境变量(etc/profile),java -version 测试正确进行下一步。3:配置ssh免密码登录 cd ~ ssh-keygen -t rsa 产生密钥,位于~/.....
分类:
系统相关 时间:
2014-11-14 14:12:16
阅读次数:
229
Given a string S and a string T, count the number of distinct subsequences of T in S.
A subsequence of a string is a new string which is formed from the original string by deleting some (can be none)...
分类:
其他好文 时间:
2014-11-14 12:40:18
阅读次数:
111
题目:给你一个数字n0,将它的每个位的数字按递增排序生成数a,按递减排序生成数b,
新的数字为n1 = a-b,下次按照同样方法计算n1,知道出现循环,问计算了多少次。
分析:数论、模拟。直接模拟计算即可,利用hash表判重。
说明:注意初始化。
#include
#include
#include
#include
#include
#include
...
分类:
其他好文 时间:
2014-11-14 12:32:49
阅读次数:
169
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at...
分类:
其他好文 时间:
2014-11-14 12:18:20
阅读次数:
139
1、在Javascript中只有五种简单类型,分别为null,undefined,boolean,String和Number.一种复杂类型:object。代码类型只有一种形式就是function其实function也是一种变量 例如我们在写函数时:function Hello(){}等同于 var ...
分类:
编程语言 时间:
2014-11-14 12:11:37
阅读次数:
234
given several intervals, how to find a interval which is a intersect of the most number of the given intervals?Method:Step1: Represent eachreturnedint...
分类:
其他好文 时间:
2014-11-14 12:10:22
阅读次数:
246
一、查看信息1、查看puppet版本[root@puppet~]#puppet--version
3.7.12、查看模块位置[root@puppet~]#puppetconfigprintmodulepath
/etc/puppet/modules:/usr/share/puppet/modules3、查看报告[root@puppet~]#puppetagent-t--summarize
Info:Retrievingpluginfacts
Info:Retrie..
分类:
其他好文 时间:
2014-11-14 10:50:00
阅读次数:
199