`
文章列表
转自:http://hi.baidu.com/deep_pro/blog/item/2d6ea0d997f601e538012ff1.html   听说有人抱怨他的Linux服务器或者嵌入式Linux开发板上的时间越来越慢,当时念头一闪,没有多在意 今天顿悟,果然是有道理的 用户空间的延时和定时器,都是靠内核定时器实现的。内核定时器 struct timer_list 以及相关内核api, init_timer()、add_timer、mod_timer 、del_timer,都依赖于jiffes 一个系统时钟中断,jiffes就加1,每秒将产生 1*HZ 个jiffes 可 ...
  Autotest 是一套开源的完全自动化的测试框架。主要应用于 Linux 内核测试,其内部包含了对 KVM 的自动化测试。 Autotest 系统架构如图所示,通过 Web 前端或者命令行工具提交测试任务, Autotest Server 通过调度器将任务分发到不同的 Client , Client 端任务执行完之后,再将结果返回到结果分析后端, Web 前端与命令行接口即可查看测试结果。 请参考其官方主页(注:由于autotest主页改版,下面的链接可能失效了)。     1.1 Autotest Server 安装 ...
设置combobox的store的query项为remote时,点击 combobox的下拉列表时,会实时发ajax请求去load数据,这时默认会出现loadmask。     /* remove loadMask for combobox load */ Ext.form.field.ComboBox.prototype.defaultListConfig={ emptyText: '', //loadingText: 'Loading...', //remove this //loadingHeight: 70, //rem ...

python发送邮件

首先安装sendmail   yum install sendmail service sendmail start   安装完成后,sendmail默认可以用localhost来向外面发送邮件。     用python发送邮件: 参考 email : Creating email and MIME objects from scratch   实例代码如下: (send_mail.py)   import smtplib import email from email.mime.text import MIMETe ...

rrdtool 学习

下载地址: http://oss.oetiker.ch/rrdtool/pub/   install: 对于RHEL and CentOS, rrdTool已经添加到epel源中,所以直接: (yum install rrdtool)   用源码:   http://www.cyberciti.biz/faq/howto-install-rrdtool-on-rhel-linux/ 注意用whereis pkgconfig 查看其目录位置,再设置: export PKG_CONFIG_PATH=/usr/lib64/pkgconfig/   如果使用rrd-pyth ...
Ext.form.field.Base.prototype.initComponent = function(){ var me = this; Ext.form.field.Base.superclass.initComponent.call(this); me.subTplData = me.subTplData || {}; this.addEvents( 'focus', 'blur', 'specialkey' ); // Init mixins me ...
extjs4让grid的单元格点击时支持手形。   Ext.widget('gridpanel', { title: 'grid', height: 200, width: 200, renderTo: Ext.getBody(), columns: [{ text: 'Col', dataIndex: 'col', renderer: function (val, metadata, record) { if (record.get('col') == 1 ...
How to use search skills to become an effective programmer

如何记忆

转http://www.guokr.com/article/94933/   上课的时候记笔记?哪门功课不行,就集中精力专项突击?自习的时候不要晃,选好一个地儿安安稳稳地待那儿学习?你还在这样学习吗?不要被骗了:这些被我们奉为良好学习习惯的东西,恰恰是冒了学习正道的大不韪。   英文原文:Everything You Thought You Knew About Learning Is Wrong   原文发布于 2012 年 1 月 29 日    文 / Garth Sundem   译 / 小老鼠汪   前不久,我有幸采访了加州大学洛杉矶分校 “学 ...
Global site tag (gtag.js) - Google Analytics