Linux查看历史命令,很关键!history,默认没有时间戳。。。 01、设置系统环境变量 echo 'export HISTTIMEFORMAT="%F %T `whoami` "' >> /etc/profile && source /etc/profile 02、时间参数解析 1.histo ...
分类:
其他好文 时间:
2017-06-09 15:19:41
阅读次数:
167
problem: Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating l ...
分类:
编程语言 时间:
2017-06-09 14:12:32
阅读次数:
137
目录 1. 通过 URL Rewrite Module 组件 2. 通过 nginx 图片防盗链 3.自定义 HttpHandler 处理 4. 通过 MVC 自定义路由规则防盗链 5. 通过 MVC 自定义 RouteHandler 防盗链 6. 通过 HttpModModule 防盗链 7. 涉 ...
分类:
Web程序 时间:
2017-06-09 14:09:41
阅读次数:
300
一、结果跳转方式 <action name="Demo1Action" class="cn.itheima.a_result.Demo1Action" method="execute" > <result name="success" type="dispatcher" >/hello.jsp</r ...
分类:
编程语言 时间:
2017-06-09 13:21:09
阅读次数:
215
1.临时修改主机名 显示主机名:spark@master:~$ hostnamemaster修改主机名:spark@master:~$ sudo hostname hadoopspark@master:~$ hostnamehadoop PS:以上的修改只是临时修改,重启后就恢复原样了。 2.永久修 ...
分类:
其他好文 时间:
2017-06-09 13:16:55
阅读次数:
291
//总浏览量 function SeachTotalCount(){ var par = encodeURIComponent("统计"); $.ajax({ url: "/_api/web/lists/getbytitle('"+ par +"')/items?$select=Title,ID,C... ...
分类:
其他好文 时间:
2017-06-09 12:37:02
阅读次数:
151
jdbc简介 DBC(Java Database Connectivity)是一个独立于特定数据库管理系统、通用的SQL数据库存取和操作的公共接口(一组API),定义了用来访问数据库的标准Java类库,使用这个类库可以以一种标准的方法、方便地访问数据库资源。 jdbc的核心API Driver接口: ...
分类:
数据库 时间:
2017-06-08 23:49:39
阅读次数:
461
在linux系统中,history命令可以输出历史命令,历史命令默认保存在文件~/.bash_history中。 HISTFILESIZE 与 HISTSIZE都是history命令需要用到的两个shell变量,这两个变量到底有什么区别呢? HISTFILESIZE 定义了在 .bash_histo ...
分类:
其他好文 时间:
2017-06-08 22:36:36
阅读次数:
206
Censored! http://poj.org/problem?id=1625 Time Limit: 5000MS Memory Limit: 10000K Description The alphabet of Freeland consists of exactly N letters. E ...
分类:
其他好文 时间:
2017-06-08 20:27:42
阅读次数:
284
在编写SQL语句时,假设要实现一张表有而另外一张表没有的数据时。 通常第一直觉的写法是: select * from table1 where table1.id not in(select id from table2) 这样的写法尽管看起来非常直观。可是运行的效率会非常低下,在数据量非常大的时候 ...
分类:
数据库 时间:
2017-06-08 19:47:01
阅读次数:
180