上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 23 下一页

2013年10月22日

Ubuntu和Busybox下用make menuconfig配置出错解决

摘要: http://blog.csdn.net/satiling/article/details/6965985# make menuconfigIn file included from scripts/kconfig/lxdialog/checklist.c:24:scripts/kconfig/lxdialog/dialog.h:31:20: error: curses.h: 没有那个文件或目录In file included from scripts/kconfig/lxdialog/checklist.c:24:scripts/kconfig/lxdialog/dialog.h:128: 阅读全文

posted @ 2013-10-22 16:44 屁屁侠 阅读(844) 评论(0) 推荐(0)

SimpleDateFormat转换时间,12,24时间格式

摘要: Date d = new Date(); SimpleDateFormat ss = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");//12小时制 System.out.println(ss.format(d)); Date date = new Date(); SimpleDateFormat sdformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//24小时制 String LgTime = sdformat.format(date);... 阅读全文

posted @ 2013-10-22 16:16 屁屁侠 阅读(562) 评论(0) 推荐(0)

Android---AlarmManager(全局定时器/闹钟)指定时长或以周期形式执行某项操作

摘要: http://www.cnblogs.com/jico/archive/2010/11/03/1868361.htmlAlarmManager的使用机制有的称呼为全局定时器,有的称呼为闹钟。通过对它的使用,个人觉得叫全局定时器比较合适,其实它的作用和Timer有点相似。都有两种相似的用法:(1)在指定时长后执行某项操作(2)周期性的执行某项操作AlarmManager对象配合Intent使用,可以定时的开启一个Activity,发送一个BroadCast,或者开启一个Service.下面的代码详细的介绍了两种定时方式的使用:(1)在指定时长后执行某项操作//操作:发送一个广播,广播接收后Toa 阅读全文

posted @ 2013-10-22 16:08 屁屁侠 阅读(500) 评论(0) 推荐(0)

Android AlarmManager的一些问题

摘要: 我开始的代码是这样写的 alarmManager.set(AlarmManager.RTC_WAKEUP, (5*1000), sender); 我的本意是设定五秒后启动闹钟 但是每次都是我设置完闹钟之后立马就启动了。后来我发现问题出在第二个参数上 我对他的理解是错误的typeOne of ELAPSED_REALTIME, ELAPSED_REALTIME_WAKEUP}, RTC or RTC_WAKEUP.triggerAtTimeTime the alarm should first go off, using the appropriate clock (depending on . 阅读全文

posted @ 2013-10-22 16:02 屁屁侠 阅读(2978) 评论(0) 推荐(0)

2013年10月21日

gtk-gnash大量占用cpu解决办法

摘要: http://blog.csdn.net/papenghan/article/details/7727955gnash是一个firefox的flash插件版本。当使用firefox打开含有falsh的网页时,就产生了大量的gtk-gnash进程,大量占用cpu资源,严重影响工作学习。解决办法:ubuntu下在终端运行命令:sudo kill all gnash pidsudo apt-get remove –purge gnash ,gnash-common ,brower-plugin-gnash然后再安装一个adobe版本的flash插件。(如果提示 confict with flashp 阅读全文

posted @ 2013-10-21 16:09 屁屁侠 阅读(325) 评论(0) 推荐(0)

重装Ubuntu系统

摘要: 1.安装JDK参考:http://weixiaolu.iteye.com/blog/1401786jdk-6u31-linux-i586.bin莫名奇妙的安装失败。所以下载了jdk-7u45-linux-i586.tar.gz,解压到家目录。配置环境变量sudo gedit /etc/profile... 阅读全文

posted @ 2013-10-21 15:58 屁屁侠 阅读(1462) 评论(0) 推荐(0)

2013年10月20日

网卡驱动程序之编写虚拟网卡(二)

摘要: 一、virt_net.c/* * 参考 drivers\net\cs89x0.c */#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include static struct net_device *vnet_dev;static void emulator_rx_packet(st 阅读全文

posted @ 2013-10-20 10:20 屁屁侠 阅读(1365) 评论(0) 推荐(0)

2013年10月19日

网卡驱动程序之框架(一)

摘要: 一、网卡驱动程序框架:app: socket-------------------------------------------------- --------------- --------------- 若干层网络协议--纯软件 --------------- ---------------hard_start_xmit|| /\ \/ || netif_rx sk_buff --------------- 硬件相关的驱动程序(要提供hard_start_xmit, 有数据时要用netif_rx上报) ------------------------------------------. 阅读全文

posted @ 2013-10-19 12:25 屁屁侠 阅读(946) 评论(0) 推荐(0)

NOR FLASH驱动程序

摘要: NOR NAND接口: RAM-Like,引脚多 引脚少,复用容量: 小 1M 2M 3M 大:128M 256M G读: 简单 复杂写: 发出特定命令 慢 发出特定命令 快价格: 贵 便宜特点: 无位反转、坏块 位反转、坏块 关键重要的程序 大数据、容忍可以出错的程序xip 可以 不可以(execute in place)-----------------------------------------------------------(555... 阅读全文

posted @ 2013-10-19 11:07 屁屁侠 阅读(2021) 评论(0) 推荐(0)

2013年10月18日

如何学习总线技术

摘要: http://blog.csdn.net/ce123_zhouwei/article/details/6853195如何学习总线技术以形象生动的比喻来描绘了总线技术的基本思想,指出了总线的基本分类和总线传输的基本原理,以及在学习过程中应当掌握的最基本的知识,对初学者有起到抛砖引入的作用。0引言 如果一座只能容一个人来往的独木桥,两端的人都想要过桥,为了不拥挤、阻塞,那我 们就得采取有效的办法。比如规定某段时间哪端的人过桥,另一端的人就等着该他过桥的时间段的到来,同时也还可以规定人多时要按先来后到或年龄长幼的次序过 桥。在这不经意间,我们就体会到了现代电子信息数据通过总线按时分系统传输的最原始. 阅读全文

posted @ 2013-10-18 17:37 屁屁侠 阅读(661) 评论(0) 推荐(0)

上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 23 下一页

导航