problem:
Given a string containing just the characters '(', ')', '{', '}', '[' and ']',
determine if the input string is valid.
The brackets must close in the correct order, "()" and "()[]{}" are...
分类:
其他好文 时间:
2015-03-19 22:08:16
阅读次数:
105
window.opener.location.reload(); 刷新上一个页面window.opener=null;window.open('','_self');window.close(); 关闭当前页面例子:刷新上一个页面并关闭当前页面alert('添加成功!');window.opener...
分类:
Web程序 时间:
2015-03-18 17:58:10
阅读次数:
137
1. Open new Terminal:Ctrl + Alt + T 或者 Ctrl + Shift + N2. Open Tab:Ctrl + Shift + T3. Close Tab:Ctrl + Shift + W4. Close Window:Ctrl + Shift + Q5. Cop...
分类:
系统相关 时间:
2015-03-18 13:48:59
阅读次数:
130
1.FileWriterFileWriter fw = new FileWriter("demo.text");fw.writer("abcde");fw.flush();fw.close();writer()方法只是把数据写入到内存(流)中;flush():把当前流中的数据刷入到目的地中(demo...
分类:
其他好文 时间:
2015-03-17 17:51:20
阅读次数:
162
net.ipv4.netfilter.ip_conntrack_tcp_timeout_time_wait=30net.ipv4.netfilter.ip_conntrack_tcp_timeout_close_wait=30net.ipv4.netfilter.ip_conntrack_tcp_timeout_fin_wait=30echo100000>/proc/sys/net/netfilter/nf_conntrack_maxnet.ipv4.tcp_fin_timeout=30修改系?.
分类:
其他好文 时间:
2015-03-17 14:29:02
阅读次数:
209
$url="http://p_w_picpath.zujuan.com/ChangeToImg_parse.aspx?q=2889684&b=11&w=700";$curl=curl_init($url);$filename=date("Ymdhis").".jpg";curl_setopt($curl,CURLOPT_RETURNTRANSFER,1);$p_w_picpathData=curl_exec($curl);curl_close($curl);$tp=@fopen($filena..
分类:
Web程序 时间:
2015-03-17 14:21:54
阅读次数:
114
1 sourceinsight screen font 的默认字体是Verdana的,它是一直变宽字体。在Document style中可以将字体改为定宽的Courier2 document options->auto indent 去掉indent Open Brace和Indent Close ...
分类:
其他好文 时间:
2015-03-17 00:25:40
阅读次数:
172
import hashlibimport osimport itertoolsf = open(r'D:\KEY\gesture.key','r')psd = f.readline()f.close()ANS = psd.encode('hex')print ANSb = ['00','01','0...
分类:
移动开发 时间:
2015-03-16 21:00:49
阅读次数:
146
A close look at ALSAhttp://www.volkerschatz.com/noise/alsa.htmlLinux ALSA sound noteshttp://www.sabi.co.uk/Notes/linuxSoundALSA.html[alsa-devel] [PATC...
分类:
其他好文 时间:
2015-03-16 16:09:04
阅读次数:
150
一、MyBatis缓存介绍
正如大多数持久层框架一样,MyBatis 同样提供了一级缓存和二级缓存的支持
一级缓存: 基于PerpetualCache 的 HashMap本地缓存,其存储作用域为
Session,当
Session flush 或 close 之后,该Session中的所有 Cache 就将清空。
2. 二级缓存与一级缓存其机制相同,默认也是采用 Perpe...
分类:
其他好文 时间:
2015-03-16 11:05:44
阅读次数:
136