cat 可以将文件输出到屏幕或者 > 输出到文件常用参数:cat -n filename 将文件filename 编号显示如:cat -n test.txt 1 1@qq.com 2 2@qq.com 3 3@qq.com 4 4@qq.com 5 5@qq...
分类:
系统相关 时间:
2014-07-05 20:07:15
阅读次数:
222
Spring bean通过@Autowired注入,spring auto scan配置,在编辑情况下,无法找不到对应的bean,于是提示找不到对应bean的错误。但build项目是能正常运行的。可在File -- Settings -- Inspections。在Spring Model -- A...
分类:
其他好文 时间:
2014-07-05 19:06:55
阅读次数:
185
#-*-coding:utf-8import systry: strInput=int(raw_input('input sth.')) f=file('d:\\kjdsklslkdkl2l23223.datdk')except (EOFError,ValueError): #多重异常...
分类:
编程语言 时间:
2014-07-05 19:03:38
阅读次数:
228
Rack:ruby webserver框架https://rack.github.io/文件上传使用基于tempfile 库文件上传要经历两个过程:1、上传文件传到opennebule sunstone-server的临时目录,临时目录配置文件时/etc/one/sunstone-server.co...
分类:
其他好文 时间:
2014-07-05 17:36:55
阅读次数:
181
BOOL CopyFile( LPCTSTR lpExistingFileName, // pointer to name of an existing file LPCTSTR lpNewFileName, // pointer to filename to copy to BOOL bFailI...
分类:
编程语言 时间:
2014-07-05 17:16:57
阅读次数:
275
You can easily mount remote server file system or your own home directory using special sshfs and fuse tools.FUSE - Filesystem in UserspaceFUSE is a L...
分类:
系统相关 时间:
2014-07-05 16:58:48
阅读次数:
294
pyPdf库 (http://pybrary.net/pyPdf/) ,操作起来相当直接易懂,把代码贴在这儿,做个记录。1frompyPdfimportPdfFileWriter,PdfFileReader23pdf=PdfFileReader(file('original.pdf','rb'))4...
分类:
编程语言 时间:
2014-07-05 11:19:02
阅读次数:
286
Oracle 分割字符查询
select *
from view_psbaseinfo
where DECODE('410782001125,411100000043',
'',
NULL,
'410782001125,411100000043') IS NULL
or PSCODE in
...
分类:
数据库 时间:
2014-07-04 07:20:34
阅读次数:
349
Linux系统其一的哲学思想为一切皆文件,在Linux系统中有众多的文件系统下面我们就对Linux文件系统做一个简单的介绍。Linux的文件类型查看方式为:file/path/to/somefileLinux文件类型有以下几种方式。1):普通文件-2):目录文件d3):链接文件l4):套接字文件c5):设备文件..
分类:
系统相关 时间:
2014-07-04 00:54:14
阅读次数:
316
今天又遇见一个有趣问题,有趣就会分享。 和往常一样,当然是我自认为这个题目有意思,有研究的价值。题目如下:“32瓶液体,1瓶有毒,老鼠喝了1小时死亡,用1小时确定至少30个瓶子无毒,至少需要多少老鼠。” 我的解法如下: 又是一个求最优解的问题。这个问题需要把一个老鼠能使用的信息用到极致,即能...
分类:
其他好文 时间:
2014-07-03 23:55:54
阅读次数:
344