Linux kernel support pass param to kernel, this params can be assigned at load time by insmod or modprobe. or later read from /etc/modprobe.conf file....
分类:
系统相关 时间:
2014-11-08 23:36:56
阅读次数:
365
This problem related to the samba PAM module. You have 2 solution at all. Solution 1#: Remove it( as described below ) $ sudo apt-get remove libpam-sm...
分类:
其他好文 时间:
2014-11-08 18:04:23
阅读次数:
325
在STM32的固件库和提供的例程中,到处都可以见到assert_param()的使用。如果打开任何一个例程中的stm32f10x_conf.h文件,就可以看到实际上assert_param是一个宏定义;在固件库中,它的作用就是检测传递给函数的参数是否是有效的参数。所谓有效的参数是指满足规定范围的参数...
分类:
其他好文 时间:
2014-11-08 02:02:38
阅读次数:
232
/**
*对上传的图片进行缩放
*@param原始文件$srcFile
*@param缩放比例$percent
*/
functionscale($src,$percent){
//原始图像文件类型,或者用getp_w_picpath函数获取
// $src="1.jpg";
// $ext=end(explode(".",$src));//也可以使用扩展名来进行判断
//第一步,得到上传图片..
分类:
其他好文 时间:
2014-11-07 19:18:25
阅读次数:
204
参数计数特殊变量$#可以存储执行脚本时包含的命令行参数个数!#!/bin/bashif[$#-ne2]thenechoUsage:inputabelsetotal=$[$1+$2]echoThetotalis$totalfi[root@localhost~]#./test33.sh34Thetotalis7****************************************************当要获取$#参数的最后面..
分类:
系统相关 时间:
2014-11-07 19:12:27
阅读次数:
220
/** * 获取客户端IP地址 * @param integer $type 返回类型 0 返回IP地址 1 返回IPV4地址数字 * @return mixed */function get_client_ip($type = 0) { $type = $type ? 1 : 0...
分类:
Web程序 时间:
2014-11-07 18:48:11
阅读次数:
187
#import @interface UILabel (Create)/** * 创建普通Label * * @param frame frame * @param text text * @param font font * @p...
分类:
其他好文 时间:
2014-11-06 19:53:33
阅读次数:
181
1 springmvc的异常处理方式,暂时我知道的两种 2 1.在controller中捕获 3 /** 4 * 捕获到异常,用于局部处理 5 * @ExceptionHandler (value={要捕获的异常,可以有多个}) 6 * @param e 7 * @param r...
分类:
编程语言 时间:
2014-11-06 19:48:33
阅读次数:
181
初学STM32,在RealView MDK 环境中使用STM32固件库建立工程时,初学者可能会遇到编译不通过的问题。出现如下警告或错误提示: warning: #223-D: function "assert_param" declared implicitly;assert_param(IS_G....
分类:
其他好文 时间:
2014-11-06 19:38:31
阅读次数:
275
/**
* 将基本数据类型转换为byte数组,以及反向转换的方法
* 只涉及转换操作,对于参数没有进行校验
* 适用范围:RMS操作、网络数据传输
*/
public class DataConvert{
/**
* 将int类型的数据转换为byte数组
* @param n int数据
* @return 生成的byte数组
*/
public ...
分类:
移动开发 时间:
2014-11-06 17:43:32
阅读次数:
238