1、复制/etc/profile至/tmp/目录,用查找替换命令删除/tmp/profile文件中的行首的空白字符2、复制/etc/rc.d/init.d/functions文件至/tmp目录,用查找替换命令为/tmp/functions的每行开头为空白字符的行的行首添加一个#号3、复制/etc/rc.d/init.d/functions文件至/tmp目录;替换..
分类:
系统相关 时间:
2016-08-10 01:04:57
阅读次数:
1138
1.Linux下的五种I/O模型1)阻塞I/O(blockingI/O)2)非阻塞I/O(nonblockingI/O)3)I/O复用(select和poll)(I/Omultiplexing)4)信号驱动I/O(signaldrivenI/O(SIGIO))5)异步I/O(asynchronousI/O(thePOSIXaio_functions))(前四种都是同步,只有最后一种才是异步IO。)五种I/..
分类:
系统相关 时间:
2016-08-10 01:01:38
阅读次数:
442
http://acm.hdu.edu.cn/showproblem.php?pid=5095 分析:当a[i]不为0的时候,就有输出; 输出内容:1.系数为正数且不是第一个位置输出一个'+'; 2.当系数为-1时且不是最后一个常数时输出一个'-'; 3.系数不是-1或1或者是最后那个常数时输出这个数 ...
分类:
其他好文 时间:
2016-08-08 19:00:41
阅读次数:
174
Item 09-绝不在构造函数和析构函数中调用virtual函数(Never call virtual functions during construction or destruction)
Why?
由于base class构造函数的执行更早于derived class构造函数,当base class构造函数执行derived class的成员变量尚未初始化。如果期间调用的vir...
分类:
编程语言 时间:
2016-08-07 21:47:34
阅读次数:
217
来自 http://www.codingpy.com/books/thinkpython2/03-functions.html 的题目 教程下方给出的答案 :http://greenteapress.com/thinkpython2/code/grid.py 感觉好麻烦 ...
分类:
编程语言 时间:
2016-08-06 17:14:46
阅读次数:
304
转自 https://jellybool.com/post/php-encrypt-functions 在网站的开发过程中,常常需要对部分数据(如用户密码)进行加密,本文主要介绍PHP的几个常见的加密函数 MD5加密: string md5 ( string $str [, bool $raw_ou ...
分类:
Web程序 时间:
2016-08-06 16:00:41
阅读次数:
233
知识体系 1、认识less 2、使用less 3、变量( variables ) 4、混合 ( mixins ) 5、嵌套规则 ( nested-rules ) 6、运算(operations) 7、函数(functions) 8、命名空间 9、作用域 10、引入(importing) 11、关键字 ...
分类:
其他好文 时间:
2016-08-05 19:56:32
阅读次数:
1294
php配置:/usr/local/php/bin/php–i|head这里找到php.ini的路径这里找到的php.ini文件最靠谱、/usr/local/php/etc/php.iniVi/usr/local/php/etc/php.ini配置disable_functiondisable_functions=
eval,assert,popen,passthru,escapeshellarg,escapeshellcmd,passthru,exec,sys..
分类:
Web程序 时间:
2016-08-05 18:09:41
阅读次数:
216
这个问题把我花了1小时都没弄出来 各种报错 还是最后同学告知才知道的。 导入 :<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fu" %> 显示截取:<td>${fu:substring(p.tabTime,0,10) ...
分类:
Web程序 时间:
2016-08-03 13:20:52
阅读次数:
348
5 函数(Functions) 函数是用来完成特定任务的独立的代码块。 5.1 定义与调用Defining and Calling Functions 函数名(参数列表)->返回值 { 函数体(要干什么) } 函数名用来描述其要完成的任务,调用函数时要向函数传递其要求的输入参数,参数顺序必须与函数参 ...
分类:
编程语言 时间:
2016-08-01 11:54:10
阅读次数:
244