最近在研究这个东东,按照标准的功能,Log4net只提供下面信息的记录:
CREATE TABLE [dbo].[A_System_Logging] (
[ID] [int] IDENTITY (1, 1) NOT NULL ,
[Date] [datetime] NOT NULL ,
[Thread] [...
分类:
数据库 时间:
2015-04-10 18:06:21
阅读次数:
146
先写了个Service,在服务中通过广播来监听HOME键操作:
public class HomeService extends Service{
private MonitoHomeReceiver mHomeBroadcastReceiver;
@Override
public IBinder onBind(Intent intent) {
return null;
}
@Ove...
分类:
移动开发 时间:
2015-04-10 17:57:57
阅读次数:
373
// 动态开辟一个二维数组
#include
#include
int main()
{
int i = 0;
int j = 0;
int line = 0;
int row = 0;
int **p = NULL;
printf("输入行数:");
scanf("%d", &line);
printf("\n");
printf("输入列数:");...
分类:
编程语言 时间:
2015-04-10 17:55:01
阅读次数:
439
$a="0";if(!$a){ var_dump(""==0) ;}输出bool(true)
分类:
Web程序 时间:
2015-04-10 17:03:53
阅读次数:
126
1IFNULL(expr1,expr2)如果 expr1 不是 NULL,IFNULL() 返回 expr1,否则它返回 expr2。 ifnull()as cloumn和=运算符不同的是,NULL的值是没有任何意义的。所以=号运算符不能把NULL作为有效的结果。所以:请使用 null 不能用 .....
分类:
数据库 时间:
2015-04-10 16:58:09
阅读次数:
180
// 实现strchr(在一个字符串中查找字符,找到的话返回指向该字符的指针,没找到的话返回空)
#include
#include
char * my_strchr( char const *str, char c )
{
assert( str != NULL );
while( *str != '\0')
{
if( *str == c )
return str;...
分类:
编程语言 时间:
2015-04-10 15:39:36
阅读次数:
143
// 实现strrchr(查找该字符串最后一次出现的位置)
#include
#include
char * my_strrchr( char const *str, char c)
{
int count = 0;
int i;
assert( str != NULL );
while( *str != '\0')
{
str++;
count++;
}
str--...
分类:
编程语言 时间:
2015-04-10 15:31:32
阅读次数:
159
最近在使用filp_open打开文件时遇到到一个问题,当打开一个并不存在的文件时,filp_open返回值值为0xfffffffe,而并不是0(NULL),这是因为内核对返回指针的函数做了特殊处理。内核中的函数常常返回指针,通常如果调用出错,会返回NULL空指针,但linux做了更精妙的处理,能够通...
分类:
其他好文 时间:
2015-04-10 15:05:55
阅读次数:
265
public class Solution { public int removeElement(int[] A, int elem) { if(A==null||A.length<1) return 0; // same http://www.cnblogs.co...
分类:
其他好文 时间:
2015-04-10 15:02:18
阅读次数:
90
public class Solution { public int removeDuplicates(int[] A) { if(A==null || A.length==0) return 0; // 巧妙的做法http://www.cnblogs.com/sp...
分类:
其他好文 时间:
2015-04-10 14:53:03
阅读次数:
103