磁盘类,端口,小端口驱动(Class,Port,Miniport Drivers)

April 8th, 2010 proguru No comments

During initialization, the Windows I/O manager starts the disk storage drivers. Storage drivers in Windows follow a class/port/miniport architecture, in which Microsoft supplies a storage class driver that implements functionality common to all storage devices and a storage port driver that implements functionality common to a particular bus—such as a Small Computer System Interface (SCSI) bus or an Integrated Device Electronics (IDE) system—and OEMs supply miniport drivers that plug into the port driver to interface Windows to a particular controller implementation.

系统初始化期间,windows I/O管理器开始装载磁盘存储驱动.windows中的存储驱动遵循类/端口/小端口(class/port/miniport)架构,MS提供一个存储类驱动实现与具体设备无关的、所有存储设备共同的功能特性和一个存储端口驱动实现一类特殊总线共同的功能—比如SCSI(Small Computer System Interface)总线或者IDE(Integrated Device Electronics)总线—然后OEM(Original Equipment Manufacturer)制造商提供挂接到端口驱动的小端口驱动来为windows提供到一个特殊控制器实现的访问接口。

—译自《windows internals》(5th)

Categories: Windows Tags:

ASPI,SPTI,SPTD简介

April 3rd, 2010 proguru No comments

这三个东西都是用来支持主机与外围SCSI或ATAPI接口存储设备通讯的编程接口。ASPI(Advanced SCSI Programming Interface)是由存储领域大名鼎鼎的Adaptec于1990年代初期开发的,最初是为了支持SCSI驱动器,后来加入了ATAPI驱动器的支持。MS获取授权在windows 9x系列使用这个开发接口。后来MS在NT系列开发了自己的接口,这就是SPTI(SCSI Pass Through Interface)用以取代ASPI。NT系统默认是没有安装ASPI驱动的,不过有些存储应用程序还在使用ASPI接口,可以从Adaptec下载此驱动安装。而SPTD则是由Duplex Secure Ltd.开发的同类接口。

此外,Nero也开发了自己的ASPI驱动。其他比较有名的还有ASAPI等。

Categories: Misc Tags:

wordpress站点更换域名

April 2nd, 2010 proguru No comments

主要是修改wp_options表里面的siteurl和home选项以及wp_posts的post_content和guid字段。

update wp_options set option_value=’http://new_domain_name’ where option_name=’siteurl’ or option_name=’home’;

update wp_posts set post_content=replace(post_content,’http://old_domain_name’,'http://new_domain_name’);

update wp_posts set guid=replace(guid,’http://old_domain_name’,'http://new_domain_name’);

Categories: Misc Tags:

xp机器ping出现问号无法上网解决一例

March 22nd, 2010 proguru No comments

一台xp系统机器,无法上网浏览, ping本地私有地址和外部公有地址都通,但是ping命令输出出现问号并伴随一声蜂鸣。输出类似如下:

ping ? 192.168.1.1 with 32 bytes of data:
reply from 192.168.1.1: bytes=32 time <10 ttl=64
reply from 192.168.1.1: bytes=32 time <10 ttl=64
reply from 192.168.1.1: bytes=32 time <10 ttl=64

卸载网卡驱动,重新安装故障依旧。交换机及网线确认无问题,执行如下命令
netsh winsock reset
重置winsock组件,问题解决,应该是恶意软件或插件所为。

Categories: Windows Tags:

ff带套(tor)翻墙上youtube无法播放视频问题的解决办法

February 20th, 2010 proguru 6 comments

firefox 3.6带套上youtube(一定要代理*.youtube.com,只代理www.youtube.com是不可以的),首页页面显示混乱,打不开视频,随便点击一个视频连接,出现提示“Hello, you either have JavaScript turned off or an old version of Adobe’s Flash Player. Get the latest Flash player.” flash版本不够新云云。如果更新了adobe flash player并且打开了JavaScript还是无法观看,请将这个网址ytimg.com一并加入tor代理网络,应该就可以正常观看了。不是火狐的问题,也不是洋葱的问题,都是该死的Great Fucking Wall的问题。郁闷了很久…

Categories: GNU/Linux Tags:

Ubuntu播放视频定期黑屏问题

February 5th, 2010 proguru No comments

使用mplayer播放视频的时候,如果没有鼠标或键盘活动,大约10分钟后显示器会自动关闭,要动下鼠标才能继续观看,比较烦.我是没有设置屏保的,因为包gnome-screensaver已经卸载掉了.而且power manager里面已经把所有的电源选项都关闭了.竟然还会定期自动关闭LCD,真败了,无法容忍.

其实”罪魁祸首”就是X server,在/etc/X11/xorg.conf的ServerFlags节增加一下选项就可以了.
Section “ServerFlags”
Option “BlankTime” “0″
Option “StandbyTime” “0″
Option “SuspendTime” “0″
Option “OffTime” “0″
EndSection

该问题是由Blanktime控制的,这个值控制多长时间没有动作来启动屏保,默认时间是10分钟,设置为0就可以关闭该特性了.

其他三个选项依次是DPMS的待机、挂起、关闭超时值,也可以通过Monitor节的DPMS选项来关闭这三个特性

Section “Monitor”
Option “DPMS” “false”
EndSection

注意,BlankTime特性是不受DPMS特性控制的。

这四个参数的详细信息参见xorg配置文件手册

Categories: GNU/Linux Tags:

Copyleft © 2009-2010 Proguru 本站为原创网站,除非另有声明,本网站采用知识共享“署名2.5 中国大陆”许可协议授权.