摘要: public class A{private Vector aListeners = new Vector();private int value;public int getValue(){return value;}public void setValue(int newValue){if(va... 阅读全文
posted @ 2014-07-03 18:33 Liuxiaoke 阅读(308) 评论(0) 推荐(0)
摘要: httpd.exe进程占用cpu超过50%,关闭掉Apache服务,cpu应用率立刻下降到0。 重新启动Apache又出现占用cpu高的情况。 原因是:httpd.exe和防火墙配置有冲突。 解决方法如下: 1.网上邻居->本地链接->属性->internet协议(TCP/IP)->属性->... 阅读全文
posted @ 2014-06-12 14:03 Liuxiaoke 阅读(3603) 评论(0) 推荐(0)
摘要: http://arduino.cn/thread-2528-1-1.html 阅读全文
posted @ 2014-05-19 16:52 Liuxiaoke 阅读(226) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/absurd/article/details/4307903 阅读全文
posted @ 2014-05-08 21:53 Liuxiaoke 阅读(159) 评论(0) 推荐(0)
摘要: 安装完后把导入包名改一下就行了!附上读串口代码:/* * @(#)SimpleRead.java 1.12 98/06/25 SMI * * Copyright (c) 1998 Sun Microsystems, Inc. All Rights Reserved. * * Sun grants y... 阅读全文
posted @ 2014-04-28 15:11 Liuxiaoke 阅读(1147) 评论(0) 推荐(0)
摘要: //对于导入sun.net.TelnetInputStream;报错是权限不足myeclise默认不是使用sun下面的额工具类也可以自己建立一个TelnetInputStream继承FilterInputStream就可以了//项目-->右键-->property-->Javabuilpath--->lib-->//-->jre-systemlibrary-->Accessrule-->edit-->Add-->Accessiblesun/**-->OK 阅读全文
posted @ 2014-03-03 09:11 Liuxiaoke 阅读(1007) 评论(0) 推荐(0)
摘要: 修改一下gedit的设置来让它显示的txt不再是乱码:你可以通过以下步骤,使 gedit 正确显示中文编码文件。按下 Alt-F2,打开“运行应用程序”对话框。在文本框中键入“gconf-editor”,并按下回车键,打开“配置编辑器”。展开左边的树节点,找到 /apps/gedit-2/preferences/encodings 节点并单击它。双击右边的 auto_detected 键,打开“编辑键”对话框。单击列表右边的“添加”按钮,输入“GB18030”,单击确定按钮。列表的最底部新增加了一个“GB18030”。单击选中它,并单击右边的 “向上” 按钮直到 “GB18030” 位于列表的 阅读全文
posted @ 2014-01-01 16:29 Liuxiaoke 阅读(298) 评论(0) 推荐(0)
摘要: 安装之前改一下nam1.11下的agent.h文件73行 Null改为0第一个错误:xxx configuration:Syntax error: Unterminated quoted string,tcl,tk,otcl安装时都会遇到这个问题(原因是gcc对语法要求更加严格)。解决办法:分别进入以下3个文件夹:*/ns-allinone-2.29/tcl8.4.11/unix/*/ns-allinone-2.29/tcl8.4.11/tk8.4.11/unix/*/ns-allinone-2.29/otcl-1.11/gedit进入configure文件 搜索 "relid&qu 阅读全文
posted @ 2013-12-24 10:33 Liuxiaoke 阅读(2680) 评论(0) 推荐(0)
摘要: 1 import java.util.Collections; 2 import java.util.Comparator; 3 import java.util.List; 4 import java.lang.reflect.Method; 5 import java.lang.reflect.InvocationTargetException; 6 /** 7 * 通用排序 8 */ 9 public class SortList{ 10 public void Sort(List list, final String method, final String sort)... 阅读全文
posted @ 2013-12-12 09:14 Liuxiaoke 阅读(439) 评论(0) 推荐(0)
摘要: 今天做无线串口调试的时候用IAR7.51往CC2530无线模块烧程序的时候遇到了问题: 先是下载过程中有许多警告,然后就是提示无法跳断点,找不到main方法,每次烧程序都出现: The stack plug-in failed to set a breakpoint on "main". The Stack window will not be able to display stack contents. (You can change this setting in the Tool>Options dialog box.)的警告。程序能烧进去,只是不能调试。第一 阅读全文
posted @ 2013-12-08 10:13 Liuxiaoke 阅读(2703) 评论(0) 推荐(0)