基础类型 #ifdef WIN32 #define evutil_socket_t intptr_t #else #define evutil_socket_t int #endif ev_ssize_t 时间兼容函数 //前2个参数的计算结果放到第三个参数里面 #define evutil_tim ...
分类:
其他好文 时间:
2016-08-20 10:04:04
阅读次数:
282
当代码中充斥着若干条件判断时,代码的真正意图会迷失于这些条件判断之中。这时我喜欢将条件判断提取到一个易于读取的属性或方法(如果有参数)中。重构之前的代码如下: public class RemoteControl { private String[] Functions;//getter sette ...
分类:
其他好文 时间:
2016-08-19 09:57:01
阅读次数:
112
mfd: multifunction device drivers 多功能设备驱动开发;A product or device that has multiple functions. An example of this might be a printer that also makes cop ...
分类:
其他好文 时间:
2016-08-18 19:41:20
阅读次数:
166
Process and Thread Functions https://msdn.microsoft.com/en-us/library/windows/desktop/ms684847(v=vs.85).aspx Synchronization Functions https://msdn.mi ...
企业实用脚本16企业案例:写网络服务独立进程模式下rsync的系统启动脚本例如:/etc/init.d/rsyncd{start|stop|restart}。要求:1.要使用系统函数库技巧。2.要用函数,不能一坨SHI的方式。3.可被chkconfig管理#!/bin/bash
[-f/etc/init.d/functions]&&./etc/init.d/funct..
分类:
系统相关 时间:
2016-08-14 22:26:38
阅读次数:
396
在之前的JSTL的总结中已经对函数标签库进行了一些说明,在这里我再一次重新整理一下! 自带函数标签库介绍 引入该标签库的方法为: <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> <!--more--> 解释 ...
分类:
Web程序 时间:
2016-08-14 11:39:42
阅读次数:
199
1.建立ssh无秘钥认证的关系yum-yinstallexpect1.1catauto_deploy.sh#!/bin/sh
./etc/init.d/functions
#1.productkeypair
ssh-keygen-tdsa-P‘‘-f~/.ssh/id_dsa>/dev/null2>&1
if[$?-eq0];then
action"createdsasuccess"/bin/true
else
action"createdsafailed"/bin/f..
分类:
其他好文 时间:
2016-08-14 08:00:03
阅读次数:
238
【URL Quoting】 The URL quoting functions focus on taking program data and making it safe for use as URL components by quoting special characters and ap ...
分类:
Web程序 时间:
2016-08-13 14:14:17
阅读次数:
212
标签: MONGODB 2014-03-11 10:25 9213人阅读 评论(3) 收藏 举报 标签: MONGODB 2014-03-11 10:25 9213人阅读 评论(3) 收藏 举报 分类: NOSQL(41) 分类: NOSQL(41) SQL Terms, Functions, an ...
分类:
数据库 时间:
2016-08-13 10:00:37
阅读次数:
281
一、在jsp页面的表格中,如果有表格中的某一个元素 内容太长,需要截取显示,方法如下: <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> …… <th width="16%">描述</th> …… <td> ...
分类:
Web程序 时间:
2016-08-11 12:40:16
阅读次数:
124