<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IMEE.CN</title>
	<atom:link href="http://imee.cn/feed" rel="self" type="application/rss+xml" />
	<link>http://imee.cn</link>
	<description>Knowledge is a city to the building of which every human being brought a stone</description>
	<lastBuildDate>Thu, 19 Aug 2010 16:24:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>在Windows 7中隐藏导航窗格项目</title>
		<link>http://imee.cn/archives/560</link>
		<comments>http://imee.cn/archives/560#comments</comments>
		<pubDate>Thu, 19 Aug 2010 10:35:20 +0000</pubDate>
		<dc:creator>elite</dc:creator>
				<category><![CDATA[System]]></category>
		<category><![CDATA[windows7]]></category>

		<guid isPermaLink="false">http://imee.cn/?p=560</guid>
		<description><![CDATA[打开Windows 7资源管理器（Windows Explorer），左侧是一个导航窗格，包括：收藏夹，库，家庭组，计算机，网络。这些项目链接到文件夹，硬盘或者其他电脑系统。 但是，不是每一个Windows 7用户都需要这些项目。没有直接选项可以隐藏它们，我们可以通过注册表编辑器来实现。 去掉家庭组，收藏夹或者库应该会使得导航窗格更简洁一些，也有利于操作。 隐藏“家庭组“项目 打开”注册表编辑器“（点击开始按钮，输入 regedit，在结果中选择程序里的regedit.exe） 定位注册表到 HKEY_CLASSES_ROOT\CLSID\{B4FB3F98-C1EA-428d-A78A-D1F5659CBA93}\ShellFolder 将Attributes的键值由 b084010c 修改为 b094010c 你可能先要获得权限。右击ShellFolder，在菜单中选择”权限“ 选择已登录的用户，给予“完全控制”的权限 隐藏“库”项目 打开”注册表编辑器“，定位注册表到 HKEY_CLASSES_ROOT\CLSID\{031E4825-7B94-4dc3-B131-E946B44C8DD5}\ShellFolder 将Attributes的键值由 b080010d 修改为 b090010d 隐藏“网络”项目 打开”注册表编辑器”，定位注册表到 HKEY_CLASSES_ROOT\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder 将Attributes的键值由 b0040064 修改为 b0940064 隐藏“收藏夹”项目 打开”注册表编辑器“，定位注册表到 HKEY_CLASSES_ROOT\CLSID\{323CA680-C24D-4099-B94D-446DD2D7249E}\ShellFolder 将Attributes的键值由 a0900100 修改为 a9400100 隐藏”计算机“项目 打开”注册表编辑器“，定位注册表到 HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\ShellFolder 在右面窗格中，右键新建-Dword 32-bit，命名为 Attributes，数值数据为 b094010c （删掉这个Attributes可以还原） 最后一步 上述修改不会立即生效，你需要重启计算机，或者注销后再登入，或者关掉 explorer.exe 进程，之后资源管理器（Windows Explorer）导航窗格才会改变。 我隐藏了”家庭组“项目]]></description>
			<content:encoded><![CDATA[<p>打开Windows 7资源管理器（Windows Explorer），左侧是一个导航窗格，包括：收藏夹，库，家庭组，计算机，网络。这些项目链接到文件夹，硬盘或者其他电脑系统。</p>
<p>但是，不是每一个Windows 7用户都需要这些项目。没有直接选项可以隐藏它们，我们可以通过注册表编辑器来实现。<span id="more-555"></span></p>
<p><span id="more-560"></span></p>
<p><img alt="" src="http://i654.photobucket.com/albums/uu262/JasonChao87/2010-05-10_191839.png"></p>
<p>去掉家庭组，收藏夹或者库应该会使得导航窗格更简洁一些，也有利于操作。</p>
<p><strong>隐藏“家庭组“项目</strong></p>
<p>打开”注册表编辑器“（点击开始按钮，输入 regedit，在结果中选择程序里的regedit.exe）</p>
<p>定位注册表到</p>
<p>HKEY_CLASSES_ROOT\CLSID\{B4FB3F98-C1EA-428d-A78A-D1F5659CBA93}\ShellFolder</p>
<p>将Attributes的键值由 b084010c 修改为 b094010c</p>
<p>你可能先要获得权限。右击ShellFolder，在菜单中选择”权限“</p>
<p><img width="450" height="217" alt="" src="http://i654.photobucket.com/albums/uu262/JasonChao87/2010-05-10_193415.png"></p>
<p>选择已登录的用户，给予“完全控制”的权限</p>
<p><strong>隐藏“库”项目</strong></p>
<p>打开”注册表编辑器“，定位注册表到</p>
<p>HKEY_CLASSES_ROOT\CLSID\{031E4825-7B94-4dc3-B131-E946B44C8DD5}\ShellFolder</p>
<p>将Attributes的键值由 b080010d 修改为 b090010d</p>
<p><strong>隐藏“网络”项目</strong></p>
<p>打开”注册表编辑器”，定位注册表到</p>
<p>HKEY_CLASSES_ROOT\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder</p>
<p>将Attributes的键值由 b0040064 修改为 b0940064</p>
<p><strong>隐藏“收藏夹”项目</strong></p>
<p>打开”注册表编辑器“，定位注册表到</p>
<p>HKEY_CLASSES_ROOT\CLSID\{323CA680-C24D-4099-B94D-446DD2D7249E}\ShellFolder</p>
<p>将Attributes的键值由 a0900100 修改为 a9400100</p>
<p><strong>隐藏”计算机“项目</strong></p>
<p>打开”注册表编辑器“，定位注册表到</p>
<p>HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\ShellFolder</p>
<p>在右面窗格中，右键新建-Dword 32-bit，命名为 Attributes，数值数据为 b094010c</p>
<p>（删掉这个Attributes可以还原）</p>
<p><strong>最后一步</strong></p>
<p>上述修改不会立即生效，你需要重启计算机，或者注销后再登入，或者关掉 explorer.exe 进程，之后资源管理器（Windows Explorer）导航窗格才会改变。</p>
<p><img alt="" src="http://i654.photobucket.com/albums/uu262/JasonChao87/2010-05-10_191301.png"></p>
<p><em>我隐藏了”家庭组“项目</em></p>
]]></content:encoded>
			<wfw:commentRss>http://imee.cn/archives/560/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>linux下分割压缩rar</title>
		<link>http://imee.cn/archives/556</link>
		<comments>http://imee.cn/archives/556#comments</comments>
		<pubDate>Mon, 24 May 2010 10:30:25 +0000</pubDate>
		<dc:creator>elite</dc:creator>
				<category><![CDATA[System]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://imee.cn/?p=556</guid>
		<description><![CDATA[1.安装rar和unrar和序 $ sudo aptitude install rar unrar 2.示例,分割压缩temp文件，每个包为1MB $ rar a -v1024k temp.rar temp]]></description>
			<content:encoded><![CDATA[<p>1.安装rar和unrar和序</p>
<pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> rar unrar</pre>
<p>2.示例,分割压缩temp文件，每个包为1MB</p>
<pre class="bash" style="font-family:monospace;">$ rar a <span style="color: #660033;">-v1024k</span> temp.rar temp</pre>
]]></content:encoded>
			<wfw:commentRss>http://imee.cn/archives/556/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>禁用ubuntu 10.04登录窗口中的用户列表</title>
		<link>http://imee.cn/archives/552</link>
		<comments>http://imee.cn/archives/552#comments</comments>
		<pubDate>Mon, 24 May 2010 10:13:52 +0000</pubDate>
		<dc:creator>elite</dc:creator>
				<category><![CDATA[System]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://imee.cn/?p=552</guid>
		<description><![CDATA[如果处于安全考虑，想禁用登录窗口的用户例表，做以下几步操作 1.打开终端输入 $ cd /usr/share $ sudo cp applications/gconf-editor.desktop gdm/autostart/LoginWindow 2.注销到登录界面，会看到gconf-editor已运行 3.找到/apps/gdm/simple-greeter,把disable_user_list这一项的值改为true 4.关闭gconf-editor重启系统，再看到gdm登录窗口的时候就没有用户列表了.]]></description>
			<content:encoded><![CDATA[<p>如果处于安全考虑，想禁用登录窗口的用户例表，做以下几步操作</p>
<p>1.打开终端输入</p>
<pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> applications<span style="color: #000000; font-weight: bold;">/</span>gconf-editor.desktop gdm<span style="color: #000000; font-weight: bold;">/</span>autostart<span style="color: #000000; font-weight: bold;">/</span>LoginWindow</pre>
<p>2.注销到登录界面，会看到gconf-editor已运行</p>
<p>3.找到/apps/gdm/simple-greeter,把disable_user_list这一项的值改为true</p>
<p>4.关闭gconf-editor重启系统，再看到gdm登录窗口的时候就没有用户列表了.</p>
]]></content:encoded>
			<wfw:commentRss>http://imee.cn/archives/552/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>判断网页是否在iframe中</title>
		<link>http://imee.cn/archives/549</link>
		<comments>http://imee.cn/archives/549#comments</comments>
		<pubDate>Wed, 19 May 2010 10:41:14 +0000</pubDate>
		<dc:creator>elite</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[IE6]]></category>

		<guid isPermaLink="false">http://imee.cn/?p=549</guid>
		<description><![CDATA[网上提供的很多方法都是判断当前窗口与顶部窗口是否相同来实现。代码如下 if&#40;top!=this&#41;&#123; 　// 在frame中时处理 &#125; 但这个脚本并没有区分frame和iframe。 　　在使用脚本时IE下遇到奇怪的问题:页面只有在iframe有问题frame中是正常的。而且在firefox和chrome中都是正常的。已经不想对IE发表什么意见了，最终自己在MSDN找到了可以判断当前页面是否在iframe中的方法，脚本如下： if&#40;self.frameElement.tagName==&#34;IFRAME&#34;&#41;&#123; // 页面在iframe中时处理 &#125; frameElement属性MSDN页面]]></description>
			<content:encoded><![CDATA[<p>网上提供的很多方法都是判断当前窗口与顶部窗口是否相同来实现。代码如下</p>
<pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>top<span style="color: #339933;">!=</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
　<span style="color: #006600; font-style: italic;">// 在frame中时处理</span>
<span style="color: #009900;">&#125;</span></pre>
<p>但这个脚本并没有区分frame和iframe。</p>
<p>　　在使用脚本时IE下遇到奇怪的问题:页面只有在iframe有问题frame中是正常的。而且在firefox和chrome中都是正常的。已经不想对IE发表什么意见了，最终自己在MSDN找到了可以判断当前页面是否在iframe中的方法，脚本如下：</p>
<pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>self.<span style="color: #660066;">frameElement</span>.<span style="color: #660066;">tagName</span><span style="color: #339933;">==</span><span style="color: #3366CC;">&quot;IFRAME&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
  <span style="color: #006600; font-style: italic;">// 页面在iframe中时处理</span>
<span style="color: #009900;">&#125;</span></pre>
<p><a href="http://msdn.microsoft.com/en-us/library/ms533771(VS.85).aspx">frameElement属性MSDN页面</a></p>
]]></content:encoded>
			<wfw:commentRss>http://imee.cn/archives/549/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>把ubuntu的消息通知显示位置改回右上角</title>
		<link>http://imee.cn/archives/543</link>
		<comments>http://imee.cn/archives/543#comments</comments>
		<pubDate>Thu, 15 Apr 2010 02:15:57 +0000</pubDate>
		<dc:creator>elite</dc:creator>
				<category><![CDATA[System]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://imee.cn/?p=543</guid>
		<description><![CDATA[1.安装apt-src软件包 $ sudo aptitude install apt-src 2.安装notify-osd的源码 $ mkdir notify $ cd notify $ sudo apt-src install notify-osd 3.改写源码文件 $ cd notify-osd-0.9.29/src $ sudo nano defauts.c 按Ctrl+w查找SLOT_ALLOCATION_FIXED,会找到以下两行 // use fixed slot-allocation for async. and sync. bubbles self->slot_allocation = SLOT_ALLOCATION_FIXED; 然后改写成 // use dynamic slot-allocation for async. and sync. bubbles self->slot_allocation = SLOT_ALLOCATION_DYNAMIC; 4.编译构建deb包 $ sudo [...]]]></description>
			<content:encoded><![CDATA[<p>1.安装apt-src软件包</p>
<pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> apt-src</pre>
<p>2.安装notify-osd的源码</p>
<pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">mkdir</span> notify
$ <span style="color: #7a0874; font-weight: bold;">cd</span> notify
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> apt-src <span style="color: #c20cb9; font-weight: bold;">install</span> notify-osd</pre>
<p><span id="more-543"></span></p>
<p>3.改写源码文件</p>
<pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> notify-osd-0.9.29<span style="color: #000000; font-weight: bold;">/</span>src
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">nano</span> defauts.c</pre>
<p>按Ctrl+w查找<font color="red">SLOT_ALLOCATION_FIXED</font>,会找到以下两行<br />
<font color="blue">// use fixed slot-allocation for async. and sync. bubbles<br />
self->slot_allocation = SLOT_ALLOCATION_FIXED;</font><br />
然后改写成<br />
<font color="green">// use dynamic slot-allocation for async. and sync. bubbles<br />
self->slot_allocation = SLOT_ALLOCATION_DYNAMIC;</font></p>
<p>4.编译构建deb包</p>
<pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> apt-src build notify-osd</pre>
<p>5.安装deb包</p>
<pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-i</span> notify-osd_0.9.29-0ubuntu2_i386.deb</pre>
<p>如果想省事儿，可以直接复制src目录下编译生成的notify-osd二进制文件粘贴到/usr/lib/notify-osd/文件夹中，覆盖原来的notify-osd，在此之前可以先备份一下原来的文件</p>
]]></content:encoded>
			<wfw:commentRss>http://imee.cn/archives/543/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>改变苹果电脑默认截图保存格式的方法</title>
		<link>http://imee.cn/archives/539</link>
		<comments>http://imee.cn/archives/539#comments</comments>
		<pubDate>Thu, 08 Apr 2010 18:01:51 +0000</pubDate>
		<dc:creator>elite</dc:creator>
				<category><![CDATA[System]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[PNG]]></category>

		<guid isPermaLink="false">http://imee.cn/?p=539</guid>
		<description><![CDATA[苹果电脑MacOSX系统内截图后的默认照片文件格式是png的，如果你想把苹果电脑默认截图格式改为jpg、GIF或PDF，可以在终端输入以下命令 修改苹果电脑截图默认格式为jpg defaults write com.apple.screencapture type jpg 修改苹果电脑截图默认格式为GIF defaults write com.apple.screencapture type gif 修改苹果电脑截图默认格式为png defaults write com.apple.screencapture type png 修改苹果电脑截图默认格式为PDF defaults write com.apple.screencapture type pdf png格式的照片有很多优点（否则Apple也不会默认保存成.png照片，对吧），首先它是无损压缩；其次png格式的照片显示速度很快，只需下载1/64的图像信息就可以显示出低分辨率的预览图像。]]></description>
			<content:encoded><![CDATA[<p>苹果电脑MacOSX系统内截图后的默认照片文件格式是png的，如果你想把苹果电脑默认截图格式改为jpg、GIF或PDF，可以在终端输入以下命令</p>
<p>修改苹果电脑截图默认格式为jpg</p>
<pre class="bash" style="font-family:monospace;">defaults <span style="color: #c20cb9; font-weight: bold;">write</span> com.apple.screencapture <span style="color: #7a0874; font-weight: bold;">type</span> jpg</pre>
<p>修改苹果电脑截图默认格式为GIF</p>
<pre class="bash" style="font-family:monospace;">defaults <span style="color: #c20cb9; font-weight: bold;">write</span> com.apple.screencapture <span style="color: #7a0874; font-weight: bold;">type</span> gif</pre>
<p><span id="more-539"></span></p>
<p>修改苹果电脑截图默认格式为png</p>
<pre class="bash" style="font-family:monospace;">defaults <span style="color: #c20cb9; font-weight: bold;">write</span> com.apple.screencapture <span style="color: #7a0874; font-weight: bold;">type</span> png</pre>
<p>修改苹果电脑截图默认格式为PDF</p>
<pre class="bash" style="font-family:monospace;">defaults <span style="color: #c20cb9; font-weight: bold;">write</span> com.apple.screencapture <span style="color: #7a0874; font-weight: bold;">type</span> pdf</pre>
<p>png格式的照片有很多优点（否则Apple也不会默认保存成.png照片，对吧），首先它是无损压缩；其次png格式的照片显示速度很快，只需下载1/64的图像信息就可以显示出低分辨率的预览图像。</p>
]]></content:encoded>
			<wfw:commentRss>http://imee.cn/archives/539/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ThinkPad T410s&amp;Ubuntu 10.04控制风扇转速</title>
		<link>http://imee.cn/archives/535</link>
		<comments>http://imee.cn/archives/535#comments</comments>
		<pubDate>Sun, 04 Apr 2010 10:34:43 +0000</pubDate>
		<dc:creator>elite</dc:creator>
				<category><![CDATA[System]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://imee.cn/?p=535</guid>
		<description><![CDATA[T410s本子上的传感器还不能被lm-sensors当前的版本所识别，所以fancontrol进程就没效果，只能手动控制了 １.给thinkpad_acpi模块加参数 $ sudo nano /etc/modprobe.d/thinkpad_acpi.conf 在文件中输入 options thinkpad_acpi fan_control=1 2.重新加载thinkpad_acpi模块 $ sudo modprobe -r thinkpad_acpi &#38;&#38; sudo modprobe thinkpad_acpi 3.查看一下当前的风扇转速 $ cat /proc/acpi/ibm/fan status: enabled speed: 3984 level: auto commands: level &#60;level&#62; &#40;&#60;level&#62; is 0-7, auto, disengaged, full-speed&#41; commands: enable, disable commands: watchdog &#60;timeout&#62; &#40;&#60;timeout&#62; is 0 &#40;off&#41;, 1-120 &#40;seconds&#41;&#41; 一般默认的控制级别是auto 4.手动更改控制级别 $ sudo [...]]]></description>
			<content:encoded><![CDATA[<p>T410s本子上的传感器还不能被lm-sensors当前的版本所识别，所以fancontrol进程就没效果，只能手动控制了</p>
<p>１.给thinkpad_acpi模块加参数</p>
<pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>modprobe.d<span style="color: #000000; font-weight: bold;">/</span>thinkpad_acpi.conf</pre>
<p>在文件中输入</p>
<pre class="xconf" style="font-family:monospace;">options thinkpad_acpi fan_control=1</pre>
<p><span id="more-535"></span><br />
2.重新加载thinkpad_acpi模块</p>
<pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> modprobe <span style="color: #660033;">-r</span> thinkpad_acpi <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> modprobe thinkpad_acpi</pre>
<p>3.查看一下当前的风扇转速</p>
<pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>acpi<span style="color: #000000; font-weight: bold;">/</span>ibm<span style="color: #000000; font-weight: bold;">/</span>fan
status:		enabled
speed:		<span style="color: #000000;">3984</span>
level:		auto
commands:	level <span style="color: #000000; font-weight: bold;">&lt;</span>level<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">&lt;</span>level<span style="color: #000000; font-weight: bold;">&gt;</span> is <span style="color: #000000;">0</span>-<span style="color: #000000;">7</span>, auto, disengaged, full-speed<span style="color: #7a0874; font-weight: bold;">&#41;</span>
commands:	<span style="color: #7a0874; font-weight: bold;">enable</span>, disable
commands:	watchdog <span style="color: #000000; font-weight: bold;">&lt;</span>timeout<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">&lt;</span>timeout<span style="color: #000000; font-weight: bold;">&gt;</span> is <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>off<span style="color: #7a0874; font-weight: bold;">&#41;</span>, <span style="color: #000000;">1</span>-<span style="color: #000000;">120</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>seconds<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></pre>
<p>一般默认的控制级别是auto</p>
<p>4.手动更改控制级别</p>
<pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #660033;">-s</span>
<span style="color: #666666; font-style: italic;"># echo level 2 &gt; /proc/acpi/ibm/fan</span></pre>
<p>以上命令把风扇转速更改为慢速</p>
<p>关于速度的控制说明可以参考这里：</p>
<p>http://www.thinkwiki.org/wiki/How_to_control_fan_speed</p>
]]></content:encoded>
			<wfw:commentRss>http://imee.cn/archives/535/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>解决T410s装ubuntu 10.04的声音问题</title>
		<link>http://imee.cn/archives/532</link>
		<comments>http://imee.cn/archives/532#comments</comments>
		<pubDate>Sat, 03 Apr 2010 17:54:01 +0000</pubDate>
		<dc:creator>elite</dc:creator>
				<category><![CDATA[System]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://imee.cn/?p=532</guid>
		<description><![CDATA[也许是因为硬件太新，装上ubuntu 10.04后，声卡没有识别,这里有个临时的解决方法 1.查看一下声卡的pci id号 $ lspci -vvxxx ............................................................ &#160; 00:1b.0 Audio device: Intel Corporation Device 3b57 &#40;rev 06&#41; Subsystem: Lenovo Device 215e Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast &#62;TAbort- &#60;TAbort- &#60;MAbort- &#62;SERR- &#60;PERR- INTx- Interrupt: pin B routed to IRQ 11 Region [...]]]></description>
			<content:encoded><![CDATA[<p>也许是因为硬件太新，装上ubuntu 10.04后，声卡没有识别,这里有个临时的解决方法</p>
<p>1.查看一下声卡的pci id号</p>
<pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">lspci</span> <span style="color: #660033;">-vvxxx</span>
............................................................
&nbsp;
00:1b.0 Audio device: Intel Corporation Device 3b57 <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">rev</span> 06<span style="color: #7a0874; font-weight: bold;">&#41;</span>
        Subsystem: Lenovo Device 215e
        Control: I<span style="color: #000000; font-weight: bold;">/</span>O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- <span style="color: #007800;">DEVSEL</span>=fast <span style="color: #000000; font-weight: bold;">&gt;</span>TAbort- <span style="color: #000000; font-weight: bold;">&lt;</span>TAbort- <span style="color: #000000; font-weight: bold;">&lt;</span>MAbort- <span style="color: #000000; font-weight: bold;">&gt;</span>SERR- <span style="color: #000000; font-weight: bold;">&lt;</span>PERR- INTx-
        Interrupt: pin B routed to IRQ <span style="color: #000000;">11</span>
        Region <span style="color: #000000;">0</span>: Memory at f2520000 <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">64</span>-bit, non-prefetchable<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">size</span></span>=16K<span style="color: #7a0874; font-weight: bold;">&#93;</span>
        Capabilities: <span style="color: #000000; font-weight: bold;">&lt;</span>access denied<span style="color: #000000; font-weight: bold;">&gt;</span>
00: <span style="color: #000000;">86</span> <span style="color: #000000;">80</span> <span style="color: #000000;">57</span> 3b 02 01 <span style="color: #000000;">10</span> 00 06 00 03 04 <span style="color: #000000;">10</span> 00 00 00
<span style="color: #000000;">10</span>: 04 00 <span style="color: #000000;">52</span> f2 00 00 00 00 00 00 00 00 00 00 00 00
<span style="color: #000000;">20</span>: 00 00 00 00 00 00 00 00 00 00 00 00 aa <span style="color: #000000;">17</span> 5e <span style="color: #000000;">21</span>
<span style="color: #000000;">30</span>: 00 00 00 00 <span style="color: #000000;">50</span> 00 00 00 00 00 00 00 0b 02 00 00
&nbsp;
............................................................</pre>
<p><span id="more-532"></span><br />
可以看到这一行00: 86 80 57 3b 02 01 10 00 06 00 03 04 10 00 00 00，所以pci id号应该是<font color="red">8086 3b57</font></p>
<p>2.编辑rc.local文件，把pci id号加入到内核驱动中</p>
<pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.local</pre>
<pre class="xconf" style="font-family:monospace;">.......................................................
# By default this script does nothing.
&nbsp;
# make sound work
modprobe snd-hda-intel
cd '/sys/bus/pci/drivers/HDA Intel'
echo '8086 3b57' &gt; new_id
&nbsp;
exit 0</pre>
<p>3.重启系统，声卡就可以正常运作了</p>
]]></content:encoded>
			<wfw:commentRss>http://imee.cn/archives/532/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>为ubuntu 10.04安装Realtek 8172和8192se无线驱动</title>
		<link>http://imee.cn/archives/527</link>
		<comments>http://imee.cn/archives/527#comments</comments>
		<pubDate>Sat, 03 Apr 2010 17:37:54 +0000</pubDate>
		<dc:creator>elite</dc:creator>
				<category><![CDATA[System]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://imee.cn/?p=527</guid>
		<description><![CDATA[刚为新到手的ThinkPad T410s装上了ubuntu 10.04 beta1,兴奋之余发现无线列表中列出的无线网络没有公司的，公司的无线类型为802.11/g，而列表中列出的都是802.11/n类型的，感觉是驱动的问题，于是先看一下芯片类型 $ lspci -vvxxx ........................................ &#160; 03:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device 8172 &#40;rev 10&#41; Subsystem: Realtek Semiconductor Co., Ltd. Device e020 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast &#62;TAbort- &#60;TAbort- &#60;MAbort- &#62;SERR- &#60;PERR- INTx- Latency: 0, Cache [...]]]></description>
			<content:encoded><![CDATA[<p>刚为新到手的ThinkPad T410s装上了ubuntu 10.04 beta1,兴奋之余发现无线列表中列出的无线网络没有公司的，公司的无线类型为802.11/g，而列表中列出的都是802.11/n类型的，感觉是驱动的问题，于是先看一下芯片类型</p>
<pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">lspci</span> <span style="color: #660033;">-vvxxx</span>
........................................
&nbsp;
03:<span style="color: #000000;">00.0</span> Network controller: Realtek Semiconductor Co., Ltd. Device <span style="color: #000000;">8172</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">rev</span> <span style="color: #000000;">10</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
	Subsystem: Realtek Semiconductor Co., Ltd. Device e020
	Control: I<span style="color: #000000; font-weight: bold;">/</span>O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- <span style="color: #007800;">DEVSEL</span>=fast <span style="color: #000000; font-weight: bold;">&gt;</span>TAbort- <span style="color: #000000; font-weight: bold;">&lt;</span>TAbort- <span style="color: #000000; font-weight: bold;">&lt;</span>MAbort- <span style="color: #000000; font-weight: bold;">&gt;</span>SERR- <span style="color: #000000; font-weight: bold;">&lt;</span>PERR- INTx-
	Latency: <span style="color: #000000;">0</span>, Cache Line Size: <span style="color: #000000;">64</span> bytes
	Interrupt: pin A routed to IRQ <span style="color: #000000;">17</span>
	Region <span style="color: #000000;">0</span>: I<span style="color: #000000; font-weight: bold;">/</span>O ports at <span style="color: #000000;">2000</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">size</span></span>=<span style="color: #000000;">256</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
	Region <span style="color: #000000;">1</span>: Memory at f2400000 <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">32</span>-bit, non-prefetchable<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">size</span></span>=16K<span style="color: #7a0874; font-weight: bold;">&#93;</span>
	Capabilities: <span style="color: #000000; font-weight: bold;">&lt;</span>access denied<span style="color: #000000; font-weight: bold;">&gt;</span>
	Kernel driver <span style="color: #000000; font-weight: bold;">in</span> use: rtl819xSE
	Kernel modules: r8192se_pci
00: ec <span style="color: #000000;">10</span> <span style="color: #000000;">72</span> <span style="color: #000000;">81</span> 07 01 <span style="color: #000000;">10</span> 00 <span style="color: #000000;">10</span> 00 <span style="color: #000000;">80</span> 02 <span style="color: #000000;">10</span> 00 00 00
<span style="color: #000000;">10</span>: 01 <span style="color: #000000;">20</span> 00 00 00 00 <span style="color: #000000;">40</span> f2 00 00 00 00 00 00 00 00
<span style="color: #000000;">20</span>: 00 00 00 00 00 00 00 00 00 00 00 00 ec <span style="color: #000000;">10</span> <span style="color: #000000;">20</span> e0
<span style="color: #000000;">30</span>: 00 00 00 00 <span style="color: #000000;">40</span> 00 00 00 00 00 00 00 0b 01 00 00
&nbsp;
........................................</pre>
<p><span id="more-527"></span><br />
可以看出芯片厂商是Realtek,模块是r8192se,然后到<a href="http://152.104.125.41/downloads/downloadsView.aspx?Langid=1&#038;PNid=21&#038;PFid=48&#038;Level=5&#038;Conn=4&#038;DownTypeID=3&#038;GetDown=false&#038;Downloads=true">Realtek的网站</a>上下载驱动</p>
<p>以下是安装步骤：</p>
<p>1.先安装gcc和linux-header</p>
<pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> build-essential linux-headers-<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">uname</span> -r<span style="color: #000000; font-weight: bold;">`</span></pre>
<p>2.把下载的压缩包解压到/usr/src</p>
<pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">tar</span> xzvf <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>rtl8192se_linux_2.6.0015.0127.2010.tar.gz</pre>
<p>3.替换/lib/firmware中的RTL8192SE文件夹</p>
<pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> rtl8192se_linux_2.6.0015.0127.2010
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-rf</span> firmware<span style="color: #000000; font-weight: bold;">/</span>RTL8192SE <span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>firmware</pre>
<p>4.现在编译驱动</p>
<pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span></pre>
<p>这一步可能会出现错误，不过别担心。</p>
<p>5.接下来替换掉10.04自带的无线驱动模块,不用make install了</p>
<pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> HAL<span style="color: #000000; font-weight: bold;">/</span>rtl8192<span style="color: #000000; font-weight: bold;">/</span>r8192se_pci.ko <span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>modules<span style="color: #000000; font-weight: bold;">/`</span><span style="color: #c20cb9; font-weight: bold;">uname</span> -r<span style="color: #000000; font-weight: bold;">`/</span>kernel<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span>rtl8192se
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> depmod <span style="color: #660033;">-a</span></pre>
<p>6.这一步可以不做，呵呵，就是删除源文件</p>
<pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>rtl8192se_linux_2.6.0015.0127.2010</pre>
<p>7.重启系统，就可以正常使用了</p>
<p>注意：如果ubuntu更新了内核，那么重复以上步骤就可以了(第3步可以省略)</p>
<p>英文原文地址：</p>
<p>http://www.linwik.com/wiki/using+the+realtek+8172+and+8192se+wireless+controller+with+ubuntu+9.10</p>
]]></content:encoded>
			<wfw:commentRss>http://imee.cn/archives/527/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE overflow auto的宽度问题</title>
		<link>http://imee.cn/archives/524</link>
		<comments>http://imee.cn/archives/524#comments</comments>
		<pubDate>Wed, 31 Mar 2010 12:07:27 +0000</pubDate>
		<dc:creator>elite</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE6]]></category>

		<guid isPermaLink="false">http://imee.cn/?p=524</guid>
		<description><![CDATA[在IE中，当窗口的样式为overflow:auto时，出现滚动条的时候，内部元素的宽度不会自适应 解决方法是在样式中把内部元素的宽度用expression定义 div.parent&#123; width:300px; height:500px; overflow:auto; &#125; div.sub&#123; width:expression&#40;this.parentNode.offsetHeight &#62; this.parentNode.scrollHeight ? '100%' : parseInt&#40;this.parentNode.clientWidth&#41; + 'px'&#41;; height:800px; &#125;]]></description>
			<content:encoded><![CDATA[<p>在IE中，当窗口的样式为overflow:auto时，出现滚动条的时候，内部元素的宽度不会自适应</p>
<p>解决方法是在样式中把内部元素的宽度用expression定义</p>
<pre class="css" style="font-family:monospace;">div.parent<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">300px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">500px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
div.sub<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span>expression<span style="color: #00AA00;">&#40;</span>this<span style="color: #6666ff;">.parentNode</span><span style="color: #6666ff;">.offsetHeight</span> <span style="color: #00AA00;">&gt;</span> this<span style="color: #6666ff;">.parentNode</span><span style="color: #6666ff;">.scrollHeight</span> ? <span style="color: #ff0000;">'100%'</span> <span style="color: #00AA00;">:</span> parseInt<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">this.parentNode.clientWidth</span><span style="color: #00AA00;">&#41;</span> <span style="color: #00AA00;">+</span> <span style="color: #ff0000;">'px'</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">800px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre>
]]></content:encoded>
			<wfw:commentRss>http://imee.cn/archives/524/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
