2.6内核
1>修改linux-source-2.6.31/kernel/sys.c文件,在文件末尾添加系统响应函数。函数实现如下:
asmlinkage int sys_mycall(int number)
{
printk("这是我添加的第一个系统调用");
return number;
}
2>在linux-source-2.6.31...
分类:
系统相关 时间:
2014-05-15 02:51:56
阅读次数:
382
1、使用新建线程结合handler来更新UI线程中的 ListView,快速点击“刷新”,会出现下面的错误:
??
The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not mod...
分类:
其他好文 时间:
2014-05-15 02:30:17
阅读次数:
254
haproxy调度算法有以下几种:一、roundrobin,表示简单的轮询。二、static-rr,表示根据权重。三、leastconn,表示最少连接者先处理。四、source,表示根据请求源IP。五、uri,表示根据请求的URI;六、url_param,表示根据请求的URl参数‘balanceurl_param‘requiresanURLparamet..
分类:
其他好文 时间:
2014-05-15 01:00:17
阅读次数:
237
标签<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">//声明标签标签都是成对的!<metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/><!--utf-8/gb2312防止乱码--><..
分类:
其他好文 时间:
2014-05-15 00:42:11
阅读次数:
302
MyEclipse中修改项目运行地址栏中项目名称
1、如果出现从SVN上检出的项目名称跟运行地址栏中的项目名称不一致,可以通过以下步骤进行修改
项目鼠标右键,单击“Properties”
2、找到“MyEclipse--》Web--》Web Content-root”,对输入框中的内容进行修改
3、确定后,单击“OK”
比如原来...
分类:
系统相关 时间:
2014-05-15 00:07:13
阅读次数:
500
05-14 22:16:42.808: E/AndroidRuntime(22906): FATAL
EXCEPTION: main05-14 22:16:42.808: E/AndroidRuntime(22906):
java.lang.RuntimeException: Unable to s...
分类:
其他好文 时间:
2014-05-14 23:16:55
阅读次数:
405
描述把文本读出的API,在手机上测试知识支持英文,中文库应该没有所以不支持
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce...
分类:
移动开发 时间:
2014-05-14 21:34:49
阅读次数:
435
CMS,Content Management System,一个很普通的网站内容管理系统,本文章旨在从一定的高度把CMS的功能概念做一个分解论述 ,希望读者可以有所感!...
分类:
其他好文 时间:
2014-05-14 21:28:40
阅读次数:
276
当scrollview中包含listView时,滑动的时候会出现问题。。最常见的问题是listview滑动不了。。。问题原因是在加载listview时它的高度应该按照adapter所绑定的数据来确定,而不是fill_parent或者是wrap_content...
项目中用到了就把它抽取出来做个记录
import android.view.View;
import android.view....
分类:
移动开发 时间:
2014-05-14 21:13:11
阅读次数:
433
{
"cmd":["g++","${file}","-o","${file_path}/${file_base_name}"],
"file_regex":"^(..[^:]*):([0-9]+):?([0-9]+)?:?(.*)$",
"working_dir":"${file_path}",
"selector":"source.c,source.c++",
"encoding":"cp936",
"variants":
[
{
"name":"Run",
"shell":true,
"cmd":["st..
分类:
编程语言 时间:
2014-05-14 17:25:25
阅读次数:
300