自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

happinux的专栏

Happy with Unix or Linux, or anything.

  • 博客(56)
  • 资源 (2)
  • 收藏
  • 关注

转载 Optimize your code

<br /><br /> <br />From kernelchina.org<br /><br /><br />代码层次的优化是最直接,也是最简单的,但前提是要对代码很熟悉,对系统很熟悉。很多事情做到后来,都是一句话:无他,但手熟尔^-^。<br /><br /><br />在展开这个话题之前,有必要先简单介绍一下Cache相关的内容,如果对这部分内容不熟悉,建议先补补课,做性能优化对Cache不了解,基本上就是盲人骑瞎马。<br /><br /><br />Cache一般来说,需要关心以下几个方面<br

2011-04-17 11:00:00 675

转载 Optimize your code

<br /><br /> <br />From kernelchina.org<br /><br /><br />代码层次的优化是最直接,也是最简单的,但前提是要对代码很熟悉,对系统很熟悉。很多事情做到后来,都是一句话:无他,但手熟尔^-^。<br /><br /><br />在展开这个话题之前,有必要先简单介绍一下Cache相关的内容,如果对这部分内容不熟悉,建议先补补课,做性能优化对Cache不了解,基本上就是盲人骑瞎马。<br /><br /><br />Cache一般来说,需要关心以下几个方面<br

2011-04-17 11:00:00 961

转载 PCI

 PCI configuration spaceFrom Wikipedia, the free encyclopediaContents [hide]1 Technical information2 Standardized registers3 Bus enumeration4 Hardware implementation5 Software implementation6 See also7 External links[edit]Technical informationOne of the

2011-01-17 13:08:00 10157

转载 问题解答理解802.11n

<br />802.11n Frequently Asked Questions<br />While 802.11n technology brings enormous benefits in terms of increased coverage, throughput and capacity, it also requires careful planning and optimization for organizations to fully realize its benefits.  Th

2010-12-29 17:47:00 3538

原创 No space left on device

<br /> <br />在实现“马踏棋盘”问题时,因为程序出错不停循环写文件耗尽硬盘空间。<br />#df<br /><br />/dev/sdc1             20799540  19751436         0 100% /home/sluo无论怎么删除文件,剩余空间都为0,并没有增加。网上很多人遇到的是硬盘还有空间,但是也报错:No space left on device. 显然他们的问题是因为inode耗尽了。Linux上创建文件需要对应的inode如果inode 耗尽也无法写

2010-12-29 14:37:00 20174

原创 Portal技术白皮书

<br />Portal技术白皮书<br />Portal技术白皮书<br />关键词:Portal,CAMS,安全,认证<br />摘    要:Portal认证也叫Web认证,即通过HTTP页面接受用户输入的用户名和密码,对用户进行认证。本文档主要介绍了Portal认证的基本流程和典型组网应用。<br />缩略语:<br />缩略语<br />英文全名<br />中文解释<br />AAA<br />Authentication, Authorization, Accounting<br />认证/授权

2010-12-28 12:31:00 3782

转载 EAP Authentication Protocols for WLANs

<br />EAP Authentication Protocols for WLANsBy Krishna Sankar, Andrew Balinsky, Darrin Miller, Sri Sundaralingam.Sample Chapter is provided courtesy of Cisco Press.Date: Feb 18, 2005.<br />SaveDiggDel.icio.usDiscussPrintE-mailChapter InformationContentsAcc

2010-08-31 11:25:00 2306

转载 EAP Authentication Protocols for WLANs

<br />EAP Authentication Protocols for WLANsBy Krishna Sankar, Andrew Balinsky, Darrin Miller, Sri Sundaralingam.Sample Chapter is provided courtesy of Cisco Press.Date: Feb 18, 2005.<br />SaveDiggDel.icio.usDiscussPrintE-mailChapter InformationContentsAcc

2010-08-31 11:25:00 1108

原创 L

Open SSL verify the certificate path:1. construct the certificate chain2. Check the purpose3. Verify the chain

2010-08-25 18:19:00 1002

原创 如何制作虚拟系统盘文件

<br />  1 #!/bin/sh<br />  2 <br />  3 EPATH=$HOME/happinux/bochs<br />  4 BUILD=WTOS/WTOSII/x86wnosdb<br />  5 <br />  6 rm -f wnos.sym<br />  7 wget ftp://sluo:password@10.151.120.14/$BUILD/wnos.sym<br />  8 mv -f wnos.sym $EPATH/boot/<br /

2010-08-18 16:43:00 1526

原创 如何制作虚拟系统盘文件

<br />  1 #!/bin/sh<br />  2 <br />  3 EPATH=$HOME/happinux/bochs<br />  4 BUILD=WTOS/WTOSII/x86wnosdb<br />  5 <br />  6 rm -f wnos.sym<br />  7 wget ftp://sluo:password@10.151.120.14/$BUILD/wnos.sym<br />  8 mv -f wnos.sym $EPATH/boot/<br /

2010-08-18 16:16:00 844

转载 INT 10, AH=4F

<br />Int 0x10, AH=0x4f104F00 INT 10 - VESA SuperVGA BIOS (VBE) - GET SuperVGA INFORMATION<br />104F01 INT 10 - VESA SuperVGA BIOS - GET SuperVGA MODE INFORMATION<br />104F02 INT 10 - VESA SuperVGA BIOS - SET SuperVGA VIDEO MODE<br />104F03 INT 10

2010-08-16 15:48:00 1424

转载 嵌入汇编程序

<br />嵌入汇编程序的格式如下:<br />__asm__ __volatile__ (<br />asm statements <br />: outputs <br />: inputs <br />: registers-modified<br />);<br />asm statements是一组AT&T格式的汇编语言语句,每个语句一行,由/n分隔各行。所有的语句都被包裹在一对双引号内。其中使用的寄存器前面要加两个%%做前缀;转移指令多是局部转移,因此多使用数字标号。<br />inputs指明

2010-08-16 13:32:00 761

转载 JAVA实例讲解:股指期货交易系统的构建

<br /><br /> 1 股指期货交易系统简介<br />  在本文中所提到的股指期货、期权交易系统,均指券商端的期货、期权交易系统。期货客户通过该交易系统连接到交易所撮合成交平台。系统提供客户下单,行情信息,资金结算和风险控制等功能。<br />  和股票交易系统类似,股指期货交易系统提供在线下单,行情查询等功能。和股票交易系统相比,期货、期权交易在业务上要求更复杂的风险控制和资金结算等功能。在技术架构上,由于交易的标的物是指数或期权、贵金属、全球市场等,市场行情数据变化更频繁、相比于股票市场,风险更

2010-08-13 11:25:00 6700

原创 关于连接参数-Ttext

以bootloader为例解释-Ttext参数在连接中的作用

2010-08-10 11:59:00 6391

转载 Intel汇编指令集(Intel Assemble Instruction Set)

<br /><br />Intel 8086 Family Architecture<br />Instruction Clock Cycle Calculation<br />8088/8086  Effective Address (EA)Calculation<br />Task State Calculation<br />FLAGS - Intel 8086 Family Flags Register<br />MSW - Machine Status Word (286+ only)<b

2010-08-09 10:08:00 4095

转载 X86体系虚拟化缺陷

<br />http://www.mcplive.cn/?controller=Article&id=5788&page=5特权级别<br />        大部分的现代计算机体系结构都有两个或两个以上的特权级别,用来分隔内核和应用软件。以x86为例,为了得到更高的保护控制,在x86的保护模式下定义了当前特权级别(Current Previleged Level,简称CPL),一共有四个特级层次(0 to 3)被定义,我们一般称之为Ring。Ring后面的数字越大特权越小,我们的操作系统一般都运行在Rin

2010-08-03 11:17:00 3429

转载 Ring 0 ~ 3

<br /><br />  intel处理器实现4个权限级别ring0-ring3<br />  windows使用了两个<br />  权限的实现是靠地址的值的范围,和几个寄存器的值<br />  在ring3工作时,CS、DS、SS寄存器总是分别为值8、10、10。这样,系统代码就可以监视段寄存器的值。选择子1b和23用于内核(驱动程序、系统代码)工作时的寻址。选择子30和3b分别指向Kernel Process Region和Thread Information Block。当代码运行在ring0时,

2010-08-02 15:58:00 639

原创 How to solve boot problems with Ubuntu after kernel upgrade

<br />转自:http://www.dedoimedo.com/computers/ubuntu-initrd-bug.html<br /> <br />You may have encountered this problem. You have recently updated your Ubuntu. One of the updates was a kernel upgrade, say from version 2.6.28-11 to 2.6.28-15, for exam

2010-07-30 11:02:00 2089

转载 Xen桥接网络

XEN虚拟网络模型

2010-07-27 17:54:00 5147

转载 Blue tooth Link

Blue Tooth in Linux

2010-07-19 10:51:00 733

转载 XEN虚拟化技术概论

Virtualization is a hot topic these days. With hardware getting more and more capable, by means of cheap multi-core processors and gobs of memory, we can expect virtualization to become only more important in the coming years. Virtualization promises reduc

2010-07-16 14:31:00 2668

原创 讨厌的gnome-keying: Prevent gnome-keyring from asking for password

<br /> <br /><br />或许你也有和我一样的经历,每次开电脑或者打开什么东西,Gnome-keyring总是提示要输入密码,其他程序或者你也忍了,但每次连网络就要蹦出来,真是很烦。不知道怎么关闭,只能咬咬牙忍气吞声,不可能因为这个annoying的gnome-keyring而不用自己钟爱的Gnome吧。<br /> <br />但每个人的忍耐限度总是有限的,遇到你不爽的时候或许你也会利用手中的生杀大权灭了丫的。幸好这也不太难,只要简单的操作就可以关掉这个讨厌的功能。<br /> <br />G

2010-06-20 20:47:00 6578 2

原创 Ubuntu 10.04下的Ralink无线驱动

在Ubuntu 10.04,如果是Ralink的无线网卡,可能会发生可以连接上不加密或者TKIP的无线网络,却不能连接上CCMP的无线网。这由于系统自带的RT2870sta的驱动存在Bug。系统自带了2870sta和3070sta驱动,所以在加载的时候很容冲突,因此要把其他不用的加入blacklist或干脆直接删除,但我的系统原先的3070sta工作不太正常,被我一怒之下删掉了,那就只能自己动手编一个了。9.10的时候就折腾过,许久了记不清了,这回又折腾一会,以免下次再麻烦,谨以短文记之。1. 将rt287

2010-06-20 12:09:00 6631

原创 Don't hesitate to upgrade your ubuntu to Lucid even with Intel GMA 500

It is painful experience to make intel GMA 500 work with Ubuntu. Since there is no official display driver for it, you should use the 3rd party one, paulsbo driver. Anyway, we should be grateful to those people providing such driver. Once you enabled it, I

2010-06-19 16:19:00 927

原创 How to Make a Bochs Disk Image

http://www.julienlecomte.net/blog/2007/07/3/Published by Julien Lecomte at 8:57 pm under System ProgramminIn this article, I try to synthesize several (incomplete or inaccurate) articles I’ve found on the Internet to guide you through the process of creati

2010-06-18 10:47:00 1609

转载 Make WLAN Roaming Faster

WLAN roaming, suit for the network design, to configure your client to make it roaming faster according to your network. But also it is good for develop to understand factors should be considered to make your client roamable.

2010-06-03 15:48:00 1214

转载 WLAN Roaming

A very comprehensive article about WLAN roaming, discussing about roaming technology in same subnet and cross subnet, as well as vendor various solution for fast roaming, detailed in roaming operate flow and IAPP, also mentioned several 802 standard

2010-06-03 13:23:00 2714

转载 RTC/CTS

Keep in mind, though, that an increase in performance using RTS/CTS is the net result of introducing overhead (i.e., RTS/CTS frames) and reducing overhead (i.e., fewer retransmissions). If you dont

2010-05-27 16:30:00 1787

原创 验证码破解尝试经历

去年9月份报了驾校,月底过了法培,然后就等教练帮忙约车,因为要约周末的车,一直都没约到。直到今年三月份,等不住了跑去驾校办了个网上约车,可开始还是约不到,那个破网上约车系统一次只允许100人在线,每周六日早上七点从床上爬起来使劲的按F5,连续地刷,可总是竹篮打水一场空。 无法忍受,就开始琢磨怎么写个程序自动登录约车系统完成约车。显然,整个关键是登录验证码的破解。只要完成验证码破解,就可以自

2010-04-19 21:12:00 2740

原创 delay with MOV/LOOP

Typical Pentium software delay loops can be written using MOV and LOOP instructions.For example, the following instruction sequence can be used for a delay loop: MOV CX,count DELAY: LOOP DELAYThe in

2010-04-14 10:01:00 890

转载 Linux Command

http://bblove1234.blog.ubuntu.org.cn/category/linux-实践记录/Diff 创建软件补丁,用patch 打补丁归类于: UNIX SHELL 日志 — harry199 @ 12:51 pmdiff 是生成源码补丁的必备工具。其命令格式为:diff [命令行选项] 原始文档 新文档常用命令行选项如下:-r 递归处理目录    

2010-03-24 10:12:00 2101

转载 Useful Openssl Commands

Useful OpenSSL Commands Note: For printing purposes, you can SHOW ALL or HIDE ALL Instructions.OpenSSL is a very powerful cryptography utility, perhaps a li

2010-03-22 18:10:00 3120

转载 windows shortcut

F1帮助 F2改名 F3搜索 F4地址 F5刷新 F6切换 F10菜单 CTRL+A全选 CTRL+C复制 CTRL+X剪切 CTRL+V粘贴 CTRL+Z撤消 CTRL+O打开 SHIFT+DELETE永久删除 DELETE删除 ALT+ENTER属性 ALT+F4关闭 CTRL+F4关闭 ALT+TAB切换 ALT+ESC切换 ALT+空格键窗口菜单 CTRL+ESC开始菜单 拖动某一项时按C

2010-03-08 10:56:00 714

原创 ssh

vim color: ssh export TERM=ansi

2010-03-08 10:24:00 534

原创 ACPI & Install NetBSD from USB (plant ISO to USB)

最近折腾ACPI ,一个由Intel/Microsoft等厂商在X86上的power management协议架构。项目到了节骨眼上,我的Suspend to RAM 还是不能wakeup. 进入S3睡眠状态似乎是完美的,甚至得power button的灯都是和标准的S3休眠一样,浅绿色灯的小灯一闪一闪,可第二次按power button后,丫的不能回到之前的状态,黄色灯闪了两下之后就从IDE

2010-01-26 21:57:00 1500 1

原创 How to get freeBSD/NetBSD Source Code

 1. Download ISO:FreeBSD: ftp://ftp.freebsd.org/pub/FreeBSD/ISO-IMAGES-i386/8.0/8.0-RELEASE-i386-dvd1.iso.gz 2. mount ISO to local, e.g. /mnt/bsd, you can found the *-RELEASE (here is 8.0-RELE

2009-12-29 16:15:00 3816

转载 do {} while (0) 用法

#define MACRO_NAME(para) do{macro content}while(0)的格式,总结了以下几个原因:1,空的宏定义避免warning:#define foo() do{}while(0)2,存在一个独立的block,可以用来进行变量定义,进行比较复杂的实现。3,如果出现在判断语句过后的宏,这样可以保证作为一个整体来是实现:#d

2009-12-23 15:16:00 792

转载 Locality of Reference

Locality of ReferenceLets  take a look at the following pseudo-code to see why locality of reference works (see How C Programming Works to really get into it):Output to screen « Enter a numbe

2009-12-21 18:11:00 1434

原创 Chromium OS源码

 经过近两周的折腾,下载Chromium OS 的玩意终于开始下源码了!!真是好事多磨!  

2009-12-14 11:49:00 905

vmwaregateway.exe_

主机和虚拟机之间通过有名管道通信调试,但无论是windows还是Linux没有直接读写有名管道的工具,而这个文件就是可以将有名管道和Socket绑定通过读写socket来达到读写管道的目的。具体用途请见http://blog.youkuaiyun.com/happinux/archive/2009/12/11/4986127.aspx 该问文件来源某个国外大学研究小组,具体的地址记不清了。

2010-03-22

ACPIonFreebsd

ACPI on Freebsd ACPI implementation history on freebsd what is ACPI how to use ACPI ACPI API

2010-03-07

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除