linux 查看日志
1、cat命令:
功能:1)显示整个文件。
示例: $ cat fileName
2)把文件串连接后传到基本输出,如将几个文件合并为一个文件或输出到屏幕。
示例: $ cat file1 file2 > file
说明:把档案串连接后传到基本输出(屏幕或加 > fileName 到另一个档案)
cat参数详解:
-n 或 –numb...
分类:
系统相关 时间:
2014-08-23 15:26:01
阅读次数:
256
在python3下使用peewee-2.1.4做ORM。连接MySQL数据库,提示需要MySQLdb模块,发现MySQLdb模块不支持python3,各种折腾、google不得其法。然后又试着使用MySQL官方forPython驱动Connector/Python需要对qeewee代码改动改动的渐入...
分类:
编程语言 时间:
2014-08-23 15:22:10
阅读次数:
511
第一部分:core-site.xml?core-site.xml为Hadoop的核心属性文件,参数为Hadoop的核心功能,独立于HDFS与MapReduce。参数列表?fs.default.name?默认值 file:///?说明:设置Hadoop namenode的hostname及port,预...
分类:
其他好文 时间:
2014-08-23 15:13:50
阅读次数:
217
我们知道,公钥用于发布出来,给别人加密数据,然后将要传输的数据通过公钥加密后,传输给自己时,就可以用自己的私钥解密。检查用户(如root)目录的.ssh下是否存在公钥文件,假设是rsa加密,那么则是检查文件/root/.ssh/id_rsa.pub是否存在。若不存在,则使用ssh-keygen命令生...
分类:
其他好文 时间:
2014-08-23 15:06:30
阅读次数:
173
递归获取某目录下的所有文件名,路径。 1 package test; 2 3 import java.io.File; 4 5 public class GetFileName{ 6 7 public static void main(String[] args) { 8 ...
分类:
编程语言 时间:
2014-08-23 13:58:30
阅读次数:
329
NAME popen, pclose - pipe stream to or from a processSYNOPSIS #include FILE *popen(const char *command, const char *type); int pclose(FILE *stream);DE...
分类:
其他好文 时间:
2014-08-23 13:54:00
阅读次数:
227
当你想要放弃的那一刻,想想当初为什么坚持走到了这里,看看给自己的理由是否足够打动你自己,或许你们都已经是各方面精英了,但是今天我要说的是: 还是先把自己的思想丰富,然后所谓的编码验证就只是一个体力劳动。 大噶好,好男人就是我,我就是疯子阳 (⊙o⊙)。。。...
分类:
其他好文 时间:
2014-08-23 12:47:20
阅读次数:
265
#if语法 ```sh if list then do something here elif list then do another thing here else do something else here fi ``` 基本上和其他脚本语言一样。没有太大区别。不过值得注意的是。[]里面的条件判断。 ##...
分类:
其他好文 时间:
2014-08-23 11:28:50
阅读次数:
187
Android adb setup for ubuntu connect the device to ubuntu, use command $sudo lsusb will display like: mean: Spreadtrum device idVendor 1782 ?idProduct 5d24 1, touch the file: ~/.android/adb_usb.in...
分类:
移动开发 时间:
2014-08-23 03:36:20
阅读次数:
249
代码有详细解释,二分模拟寻找结果,贪心选择从哪开始浇花,原则就是遇到需要浇花的就浇,至于w可以用线段树来维护线段,但也可以用一个数组标记一下,二分总是有很多问题啊,所以写很多输出用来调试,jiong
/*************************************************************************
> File Name: 460c.cpp...
分类:
其他好文 时间:
2014-08-23 01:08:29
阅读次数:
233