<?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>XOBO</title>
	<atom:link href="http://xobo.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://xobo.org</link>
	<description>Don&#039;t Panic</description>
	<lastBuildDate>Wed, 16 Nov 2011 16:40:31 +0000</lastBuildDate>
	<language>zh</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Arch Linux 使用小结</title>
		<link>http://xobo.org/arch-linux-manual/</link>
		<comments>http://xobo.org/arch-linux-manual/#comments</comments>
		<pubDate>Sun, 13 Nov 2011 03:40:38 +0000</pubDate>
		<dc:creator>xobo</dc:creator>
				<category><![CDATA[Cheat sheet]]></category>
		<category><![CDATA[arch linux]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[关闭独显]]></category>
		<category><![CDATA[字体]]></category>

		<guid isPermaLink="false">http://xobo.org/?p=105</guid>
		<description><![CDATA[<h3>Flash中文字体</h3>
Arch Linux中Flash中文字体显示看不清，模糊，总之不正常就是了
方法一，修改/etc/fonts/conf.d/49-sansserif.conf，把里面的sans-serif改成sans
方法二，pacman -S ttf-fireflysung （推荐）
PS：我尝试过修改配置文件但是没有效果，不过安装好ttf-fireflysung的时候，网址一刷新就好了。又把配置文件还原，字体依旧正常。
<a title="不一定能打开" href="http://lilacblog.appspot.com/2011/10/30/archlinux-flash-font.html" target="_blank">原贴地址</a>
<h3>关闭独显</h3>
BIOS竟然不支持关闭显卡，不经常玩游戏的我，真是后悔买这样的本本。
原本想跟Ubuntu一样解决呢，结果 /sys/kernel/debug/ 目录下是空的。

原来是因为没有加载debugfs。Mount上去就好了。
<blockquote># mount -t debugfs debugfs /sys/kernel/debug</blockquote>
让他自动加载就更好了/etc/fstab:
<blockquote>debugfs /sys/kernel/debug debugfs 0 0</blockquote>
参考：<a title="太喜欢arch linux" href="https://wiki.archlinux.org/index.php/Acer_TimelineX#Switchable_Graphics" target="_blank">https://wiki.archlinux.org/index.php/Acer_TimelineX#Switchable_Graphics</a>]]></description>
			<content:encoded><![CDATA[<h3>Flash中文字体</h3>
<p>Arch Linux中Flash中文字体显示看不清，模糊，总之不正常就是了<br />
方法一，修改/etc/fonts/conf.d/49-sansserif.conf，把里面的sans-serif改成sans<br />
方法二，pacman -S ttf-fireflysung （推荐）<br />
PS：我尝试过修改配置文件但是没有效果，不过安装好ttf-fireflysung的时候，网址一刷新就好了。又把配置文件还原，字体依旧正常。<br />
<a title="不一定能打开" href="http://lilacblog.appspot.com/2011/10/30/archlinux-flash-font.html" target="_blank">原贴地址</a></p>
<h3>关闭独显</h3>
<p>BIOS竟然不支持关闭显卡，不经常玩游戏的我，真是后悔买这样的本本。<br />
原本想跟Ubuntu一样解决呢，结果 /sys/kernel/debug/ 目录下是空的。</p>
<p>原来是因为没有加载debugfs。Mount上去就好了。</p>
<blockquote><p># mount -t debugfs debugfs /sys/kernel/debug</p></blockquote>
<p>让他自动加载就更好了/etc/fstab:</p>
<blockquote><p>debugfs /sys/kernel/debug debugfs 0 0</p></blockquote>
<p>参考：<a title="太喜欢arch linux" href="https://wiki.archlinux.org/index.php/Acer_TimelineX#Switchable_Graphics" target="_blank">https://wiki.archlinux.org/index.php/Acer_TimelineX#Switchable_Graphics</a>
<div style="margin-top: 15px; font-style: italic">
<p>Don&#8217;t Panic!  <strong>From</strong> <a href="http://xobo.org/">XOBO</a>, <strong>post</strong> <a href="http://xobo.org/arch-linux-manual/">Arch Linux 使用小结</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://xobo.org/arch-linux-manual/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Hybrid Graphics</title>
		<link>http://xobo.org/linux-hybrid-graphics/</link>
		<comments>http://xobo.org/linux-hybrid-graphics/#comments</comments>
		<pubDate>Sat, 12 Nov 2011 13:11:21 +0000</pubDate>
		<dc:creator>xobo</dc:creator>
				<category><![CDATA[Copys]]></category>

		<guid isPermaLink="false">http://xobo.org/?p=101</guid>
		<description><![CDATA[This team is a group of hybrid graphics laptop owners and/or
developers interested in getting them to work 100% under Linux.

Please join this team if you are new by clicking on the "Join Team"
link at the right of the Launchpad page. It's important to have as
many users in the community as possible to request for appropriate
support.

### RESOURCES: acpi_call -- byo-switcheroo -- ironhide/bumblebee:

There are two modules for switching on/off the discrete card,
acpi_call and byo-switcheroo:

You can try them like this:
### a) acpi_call
sudo apt-get install git
# type password
git clone https://github.com/mkottman/acpi_call.git
cd acpi_call
make
sudo insmod acpi_call.ko
### To check that the status of your VGA devices, run this command:
lspci -vnnn &#124; grep VGA
### Now run this script:
./test_off.sh

### If you see a "works!" message, it's found a method. To check that
### the status of your VGA devices has changed, run this command
### again:

lspci -vnnn &#124; grep VGA

### On an unplugged laptop, clicking on the battery indicator before
### and after running the test.sh script, should show a difference of
### about an extra 1-3 hours battery life.

### b) byo-switcheroo:
git clone https://github.com/awilliam/asus-switcheroo.git
cd asus-switcheroo
make
### To install, pick your distro from:
sudo make install-fedora
sudo make install-ubuntu
sudo make install-arch
### To switch off the card:
echo OFF &#62; /sys/kernel/debug/vgaswitcheroo/switch
### more instructions in the README file

### On an unplugged laptop, clicking on the battery indicator before
### and after running the switch, should show a difference of about an
### extra 1-3 hours battery life.

For a list of DSDT ON/OFF methods, subscribe to the mailing list at
the bottom of the Launchpad page
http://launchpad.net/~hybrid-graphics-linux and also follow the
blogspot page http://linux-hybrid-graphics.blogspot.com/

We are gathering technical information to improve Linux support for
hybrid graphics systems. If you have a switchable graphics laptop,
please submit your laptop's DSDT.dsl and SSDT tables as an attachment
to this bug report:

http://bugs.launchpad.net/bugs/752542

To compile your DSDT and SSDTs information, install if you haven't
already the acpidump and iasl tools:

sudo apt-get install acpidump iasl
### or
sudo yum install pmtools iasl

Then run the following commands on a bash terminal:

mkdir ~/acpiinfo ; cd ~/acpiinfo
sudo acpidump &#62; acpidump.txt
# enter password
sudo acpixtract acpidump.txt
ls *.dat &#124; while read i; do iasl -d "${i}"; done
pid=`sudo dmidecode -s system-product-name`
vid=`sudo dmidecode -s system-version`
name=${pid// /}.${vid// /}
mkdir "${name}" &#38;&#38; cp *.dsl "${name}"/
tar czf "${name}.tar.gz" "${name}"/ &#38;&#38; ls -l "$( pwd )/${name}".tar.gz

This will create a tar.gz file that you can attach to the bug report.

Finally, for posting the information in the bug report, you can check
the laptop and graphics card model identifiers with these commands:

sudo dmidecode -s system-product-name &#38;&#38; sudo dmidecode -s system-version
lspci -vnnn &#124; perl -lne 'print if /^\d+\:.+(\[\S+\:\S+\])/' &#124; grep VGA

This information will allow the full development of hybrid graphics
features for Linux. Thanks for your help!

--------------------
STATUS
--------------------
ATI hybrid:
The PowerXpress pre-4.0 models have a mux solution to switch between
discrete and integrated card.
For most ATI/Intel hybrid configurations:

a) try the latest closed-source Catalyst Driver for login/logout card switching,
or
b) try vga_switcheroo and open-source graphics drivers (kernel 2.6.35 or newer).

The PowerXpress 4.0+ models have a muxless solution to use both cards
and switch on/off the discrete card.
For Muxless PowerXpress 4.0+ models, please submit your DSDT tables
information as described here:
http://linux-hybrid-graphics.blogspot.com/

NVIDIA hybrid:
For nvidia hybrid configurations:
### a) try acpi_call or byo-switcheroo for switching on/off
### b) try ironhide/bumblebee for simultaneously using the intel and nvidia cards:

### For ironhide (Ubuntu Natty/Oneiric instructions):
sudo apt-get remove bumblebee
### reboot
sudo apt-get install dialog
### or
sudo apt-get install cdialog
sudo apt-add-repository ppa:mj-casalogic/ironhide
sudo apt-get update &#38;&#38; sudo apt-get install ironhide

### For bumblebee (git installation):
sudo apt-get install git
# type password
git clone http://github.com/MrMEEE/bumblebee.git
cd bumblebee/
sudo ./install.sh
### For a WebGL benchmark, install google-chrome or use a
### WebGL-enabled browser and can try it with/without optirun and
### report the FPS values on the mailing list:

optirun google-chrome http://webglsamples.googlecode.com/hg/aquarium/aquarium.html
# close window
google-chrome http://webglsamples.googlecode.com/hg/aquarium/aquarium.html

There is ongoing work to support for Nvidia Optimus/Intel hybrid
offloading for nouveau drivers:
http://airlied.livejournal.com/74176.html

We are looking for Linux users with Nvidia Optimus-enabled or AMD
BACON muxless laptops willing to provide debugging information for the
multi-gpu support features being worked on. Please join the team by
clicking on "Join" on the right, fill in this doodle:
http://www.doodle.com/63fyczzrxqaquhqx
and send an email to the mailing list specifying your laptop model
with these commands:
sudo dmidecode -s system-product-name &#38;&#38; sudo dmidecode -s system-version
lspci -vnnn &#124; perl -lne 'print if /^\d+\:.+(\[\S+\:\S+\])/' &#124; grep VGA
<h1>Using acpi_call module to switch on/off discrete graphics card in Linux</h1>
sudo apt-get install git
# type password

git clone http://github.com/mkottman/acpi_call.git
cd acpi_call
make
sudo insmod acpi_call.ko

# To check that the status of your VGA devices, run this command:

lspci -vnnn &#124; grep VGA

# Unplug laptop, click on the battery indicator and take note of
# estimated remaining time.
# Now run this script:

./test_off.sh

# If you see a "works!" message, it's found a method.
To check that the status of your VGA devices has changed,
run this command again and check for the differences:

lspci -vnnn &#124; grep VGA

Click on the battery indicator after running the test.sh script,
it should show a difference of about an extra 1-3 hours battery life.

Please join the hybrid graphics team if you are new by clicking on the
"Join Team" link at the right in this URL:

http://launchpad.net/~hybrid-graphics-linux

If you have any comments/questions, the best way to get an answer is to
subscribe to the mailing list at the bottom of that page and send an email there.

&#160;

&#160;

copy from: <a href="http://linux-hybrid-graphics.blogspot.com/2010/07/using-acpicall-module-to-switch-onoff.html" target="_blank">http://linux-hybrid-graphics.blogspot.com/2010/07/using-acpicall-module-to-switch-onoff.html</a>]]></description>
			<content:encoded><![CDATA[<p>This team is a group of hybrid graphics laptop owners and/or<br />
developers interested in getting them to work 100% under Linux.</p>
<p>Please join this team if you are new by clicking on the “Join Team”<br />
link at the right of the Launchpad page. It&#8217;s important to have as<br />
many users in the community as possible to request for appropriate<br />
support.</p>
<p>### RESOURCES: acpi_call &#8212; byo-switcheroo &#8212; ironhide/bumblebee:</p>
<p>There are two modules for switching on/off the discrete card,<br />
acpi_call and byo-switcheroo:</p>
<p>You can try them like this:<br />
### a) acpi_call<br />
sudo apt-get install git<br />
# type password<br />
git clone https://github.com/mkottman/acpi_call.git<br />
cd acpi_call<br />
make<br />
sudo insmod acpi_call.ko<br />
### To check that the status of your VGA devices, run this command:<br />
lspci -vnnn | grep VGA<br />
### Now run this script:<br />
./test_off.sh</p>
<p>### If you see a “works!” message, it&#8217;s found a method. To check that<br />
### the status of your VGA devices has changed, run this command<br />
### again:</p>
<p>lspci -vnnn | grep VGA</p>
<p>### On an unplugged laptop, clicking on the battery indicator before<br />
### and after running the test.sh script, should show a difference of<br />
### about an extra 1-3 hours battery life.</p>
<p>### b) byo-switcheroo:<br />
git clone https://github.com/awilliam/asus-switcheroo.git<br />
cd asus-switcheroo<br />
make<br />
### To install, pick your distro from:<br />
sudo make install-fedora<br />
sudo make install-ubuntu<br />
sudo make install-arch<br />
### To switch off the card:<br />
echo OFF &gt; /sys/kernel/debug/vgaswitcheroo/switch<br />
### more instructions in the README file</p>
<p>### On an unplugged laptop, clicking on the battery indicator before<br />
### and after running the switch, should show a difference of about an<br />
### extra 1-3 hours battery life.</p>
<p>For a list of DSDT ON/OFF methods, subscribe to the mailing list at<br />
the bottom of the Launchpad page<br />
http://launchpad.net/~hybrid-graphics-linux and also follow the<br />
blogspot page http://linux-hybrid-graphics.blogspot.com/</p>
<p>We are gathering technical information to improve Linux support for<br />
hybrid graphics systems. If you have a switchable graphics laptop,<br />
please submit your laptop&#8217;s DSDT.dsl and SSDT tables as an attachment<br />
to this bug report:</p>
<p>http://bugs.launchpad.net/bugs/752542</p>
<p>To compile your DSDT and SSDTs information, install if you haven&#8217;t<br />
already the acpidump and iasl tools:</p>
<p>sudo apt-get install acpidump iasl<br />
### or<br />
sudo yum install pmtools iasl</p>
<p>Then run the following commands on a bash terminal:</p>
<p>mkdir ~/acpiinfo ; cd ~/acpiinfo<br />
sudo acpidump &gt; acpidump.txt<br />
# enter password<br />
sudo acpixtract acpidump.txt<br />
ls *.dat | while read i; do iasl -d “${i}”; done<br />
pid=`sudo dmidecode -s system-product-name`<br />
vid=`sudo dmidecode -s system-version`<br />
name=${pid// /}.${vid// /}<br />
mkdir “${name}” &amp;&amp; cp *.dsl “${name}”/<br />
tar czf “${name}.tar.gz” “${name}”/ &amp;&amp; ls -l “$( pwd )/${name}”.tar.gz</p>
<p>This will create a tar.gz file that you can attach to the bug report.</p>
<p>Finally, for posting the information in the bug report, you can check<br />
the laptop and graphics card model identifiers with these commands:</p>
<p>sudo dmidecode -s system-product-name &amp;&amp; sudo dmidecode -s system-version<br />
lspci -vnnn | perl -lne &#8216;print if /^\d+\:.+(\[\S+\:\S+\])/&#8217; | grep VGA</p>
<p>This information will allow the full development of hybrid graphics<br />
features for Linux. Thanks for your help!</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
STATUS<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
ATI hybrid:<br />
The PowerXpress pre-4.0 models have a mux solution to switch between<br />
discrete and integrated card.<br />
For most ATI/Intel hybrid configurations:</p>
<p>a) try the latest closed-source Catalyst Driver for login/logout card switching,<br />
or<br />
b) try vga_switcheroo and open-source graphics drivers (kernel 2.6.35 or newer).</p>
<p>The PowerXpress 4.0+ models have a muxless solution to use both cards<br />
and switch on/off the discrete card.<br />
For Muxless PowerXpress 4.0+ models, please submit your DSDT tables<br />
information as described here:</p>
<p>http://linux-hybrid-graphics.blogspot.com/</p>
<p>NVIDIA hybrid:<br />
For nvidia hybrid configurations:<br />
### a) try acpi_call or byo-switcheroo for switching on/off<br />
### b) try ironhide/bumblebee for simultaneously using the intel and nvidia cards:</p>
<p>### For ironhide (Ubuntu Natty/Oneiric instructions):<br />
sudo apt-get remove bumblebee<br />
### reboot<br />
sudo apt-get install dialog<br />
### or<br />
sudo apt-get install cdialog<br />
sudo apt-add-repository ppa:mj-casalogic/ironhide<br />
sudo apt-get update &amp;&amp; sudo apt-get install ironhide</p>
<p>### For bumblebee (git installation):<br />
sudo apt-get install git<br />
# type password<br />
git clone http://github.com/MrMEEE/bumblebee.git<br />
cd bumblebee/<br />
sudo ./install.sh<br />
### For a WebGL benchmark, install google-chrome or use a<br />
### WebGL-enabled browser and can try it with/without optirun and<br />
### report the FPS values on the mailing list:</p>
<p>optirun google-chrome http://webglsamples.googlecode.com/hg/aquarium/aquarium.html<br />
# close window<br />
google-chrome http://webglsamples.googlecode.com/hg/aquarium/aquarium.html</p>
<p>There is ongoing work to support for Nvidia Optimus/Intel hybrid<br />
offloading for nouveau drivers:</p>
<p>http://airlied.livejournal.com/74176.html</p>
<p>We are looking for Linux users with Nvidia Optimus-enabled or AMD<br />
BACON muxless laptops willing to provide debugging information for the<br />
multi-gpu support features being worked on. Please join the team by<br />
clicking on “Join” on the right, fill in this doodle:</p>
<p>http://www.doodle.com/63fyczzrxqaquhqx</p>
<p>and send an email to the mailing list specifying your laptop model<br />
with these commands:<br />
sudo dmidecode -s system-product-name &amp;&amp; sudo dmidecode -s system-version<br />
lspci -vnnn | perl -lne &#8216;print if /^\d+\:.+(\[\S+\:\S+\])/&#8217; | grep VGA</p>
<h1>Using acpi_call module to switch on/off discrete graphics card in Linux</h1>
<p>sudo apt-get install git<br />
# type password</p>
<p>git clone http://github.com/mkottman/acpi_call.git<br />
cd acpi_call<br />
make<br />
sudo insmod acpi_call.ko</p>
<p># To check that the status of your VGA devices, run this command:</p>
<p>lspci -vnnn | grep VGA</p>
<p># Unplug laptop, click on the battery indicator and take note of<br />
# estimated remaining time.<br />
# Now run this script:</p>
<p>./test_off.sh</p>
<p># If you see a “works!” message, it&#8217;s found a method.<br />
To check that the status of your VGA devices has changed,<br />
run this command again and check for the differences:</p>
<p>lspci -vnnn | grep VGA</p>
<p>Click on the battery indicator after running the test.sh script,<br />
it should show a difference of about an extra 1-3 hours battery life.</p>
<p>Please join the hybrid graphics team if you are new by clicking on the<br />
“Join Team” link at the right in this URL:</p>
<p>http://launchpad.net/~hybrid-graphics-linux</p>
<p>If you have any comments/questions, the best way to get an answer is to<br />
subscribe to the mailing list at the bottom of that page and send an email there.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>copy from: <a href="http://linux-hybrid-graphics.blogspot.com/2010/07/using-acpicall-module-to-switch-onoff.html" target="_blank">http://linux-hybrid-graphics.blogspot.com/2010/07/using-acpicall-module-to-switch-onoff.html</a>
<div style="margin-top: 15px; font-style: italic">
<p>Don&#8217;t Panic!  <strong>From</strong> <a href="http://xobo.org/">XOBO</a>, <strong>post</strong> <a href="http://xobo.org/linux-hybrid-graphics/">Linux Hybrid Graphics</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://xobo.org/linux-hybrid-graphics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Win7 Tweak Win7优化指南</title>
		<link>http://xobo.org/win7-tweak/</link>
		<comments>http://xobo.org/win7-tweak/#comments</comments>
		<pubDate>Fri, 11 Nov 2011 05:39:07 +0000</pubDate>
		<dc:creator>xobo</dc:creator>
				<category><![CDATA[Logs]]></category>
		<category><![CDATA[altdrag]]></category>
		<category><![CDATA[dock]]></category>
		<category><![CDATA[expose]]></category>
		<category><![CDATA[win7]]></category>
		<category><![CDATA[Wizmouse]]></category>

		<guid isPermaLink="false">http://xobo.org/?p=90</guid>
		<description><![CDATA[XP时代电脑配置低，为了让电脑高效的运行，可以关的服务，启动项都禁了。正常使用的情况下，进程也不过是20个左右。天天没事扫扫病毒、清清垃圾、优化一下注册表。

后来才发现硬件才是王道。给电脑加个内存条，比啥优化都实在。渐渐对电脑的要求更多的是方便效率，而不仅仅是速度了。
<h3>Switcher, Expose for Win</h3>
在Windows上模拟Mac的Expose效果。Expose效果，在演示的时候，我以为是华而不时，真正在用的时候发现真的好方便。
虽然软件版本很老，但是在我的64bit win7上表现正常。
下载地址: <a href="http://insentient.net/Files/Projects/Switcher/Switcher-2.0.0.2705.msi" target="_blank">http://insentient.net/Files/Projects/Switcher/Switcher-2.0.0.2705.msi</a>
<h3>AltDrag, Alt键配合鼠标拖动窗口</h3>
习惯了在Linux下，按着Alt键，用鼠标拖动窗口。上网，看电影，玩游戏啥的基本用不到这个功能，但是写代码的时候会用到。屏幕太小需要调整窗口位置来适应，多窗口的需求。
下载链接：<a title="官网" href="http://code.google.com/p/altdrag/downloads/list" target="_blank">http://code.google.com/p/altdrag/downloads/list</a>
<h3>Wizmouse, 在非激活的窗口用滚轮。</h3>
不用激活鼠标指向的窗口，就可以使用滚轮滚动它。
可以使不支持滚轮的软件支持鼠标滚动。
可以反向滚动就像OS X Lion的"Natural"滚动一样。

下载链接：<a title="官网" href="http://antibody-software.com/web/software/software/wizmouse-makes-your-mouse-wheel-work-on-the-window-under-the-mouse/" target="_blank">http://antibody-software.com/web/software/software/wizmouse-makes-your-mouse-wheel-work-on-the-window-under-the-mouse/</a>
<h3>RocketDock</h3>
只是喜欢鼠标指向会变大的效果。]]></description>
			<content:encoded><![CDATA[<p>XP时代电脑配置低，为了让电脑高效的运行，可以关的服务，启动项都禁了。正常使用的情况下，进程也不过是20个左右。天天没事扫扫病毒、清清垃圾、优化一下注册表。</p>
<p>后来才发现硬件才是王道。给电脑加个内存条，比啥优化都实在。渐渐对电脑的要求更多的是方便效率，而不仅仅是速度了。</p>
<h3>Switcher, Expose for Win</h3>
<p>在Windows上模拟Mac的Expose效果。Expose效果，在演示的时候，我以为是华而不时，真正在用的时候发现真的好方便。<br />
虽然软件版本很老，但是在我的64bit win7上表现正常。<br />
下载地址: <a href="http://insentient.net/Files/Projects/Switcher/Switcher-2.0.0.2705.msi" target="_blank">http://insentient.net/Files/Projects/Switcher/Switcher-2.0.0.2705.msi</a></p>
<h3>AltDrag, Alt键配合鼠标拖动窗口</h3>
<p>习惯了在Linux下，按着Alt键，用鼠标拖动窗口。上网，看电影，玩游戏啥的基本用不到这个功能，但是写代码的时候会用到。屏幕太小需要调整窗口位置来适应，多窗口的需求。<br />
下载链接：<a title="官网" href="http://code.google.com/p/altdrag/downloads/list" target="_blank">http://code.google.com/p/altdrag/downloads/list</a></p>
<h3>Wizmouse, 在非激活的窗口用滚轮。</h3>
<p>不用激活鼠标指向的窗口，就可以使用滚轮滚动它。<br />
可以使不支持滚轮的软件支持鼠标滚动。<br />
可以反向滚动就像OS X Lion的”Natural”滚动一样。</p>
<p>下载链接：<a title="官网" href="http://antibody-software.com/web/software/software/wizmouse-makes-your-mouse-wheel-work-on-the-window-under-the-mouse/" target="_blank">http://antibody-software.com/web/software/software/wizmouse-makes-your-mouse-wheel-work-on-the-window-under-the-mouse/</a></p>
<h3>RocketDock</h3>
<p>只是喜欢鼠标指向会变大的效果。
<div style="margin-top: 15px; font-style: italic">
<p>Don&#8217;t Panic!  <strong>From</strong> <a href="http://xobo.org/">XOBO</a>, <strong>post</strong> <a href="http://xobo.org/win7-tweak/">Win7 Tweak Win7优化指南</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://xobo.org/win7-tweak/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>21克的灵魂</title>
		<link>http://xobo.org/21%e5%85%8b%e7%9a%84%e7%81%b5%e9%ad%82/</link>
		<comments>http://xobo.org/21%e5%85%8b%e7%9a%84%e7%81%b5%e9%ad%82/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 15:21:05 +0000</pubDate>
		<dc:creator>xobo</dc:creator>
				<category><![CDATA[流言止于智者]]></category>

		<guid isPermaLink="false">http://xobo.org/?p=85</guid>
		<description><![CDATA[电影21克的介绍是这样说的，“不管你是否恐惧，他都会最终降临，在那一时刻，你的身体轻了21克”，“他们说，在人死亡的瞬间，人失去21克的重量”。这部电影鉴证了灵魂重21克这个流行已久的说法。

带着疑惑，我找到了21克的来历。这是美国麻省的大夫，邓肯.麦克道高（Dr. Duncan MacDougall）于1907年4月发表在“美国医学”杂志上的研究，在“鬼魂网”（http://www.ghostweb.com/soul.html）上有原文全篇。题目是“关于灵魂是物质的假说并用实验证明灵魂物质的存在”。作者为了验证灵魂是一种可以测量的物质，特殊设计了一种安装在一种很灵敏的秤上的床，试验方法是让快死的人躺上面，然后一直精确测量这个人的体重，看在死亡的瞬间体重的变化。死亡的瞬间轻了部分就是因为死亡丢失的部分，作者称之为灵魂的重量。

作者一共测量了6个人，4个结核病人，1名糖尿病昏迷的病人，另一个不明原因。21克的说法来自第一个病人，这是一个患结核病的垂死的男人，麦大夫选择这个病人的理由是，这个人死的时候基本上不动，因为这样才能保持秤的平衡，以便于准确测量。这个人死亡前共观察了3小时40分钟，在这段时间里，这个人的重量缓慢地下降，速度是每小时1安士（28.3495克），作者估计是因为体液的蒸发所致。然后作者把秤的平衡调到接近上限条，以期待死亡时候的下降，然后在死亡的瞬间，秤的指针快速下降到了秤的下限条，就再没有弹回来，这一瞬间重量下降了4分之3安士（3/4X28.3495=21.26克），这个著名的21克就诞生了。<span style="background-color: #ff6600;">其后的5例测量都无法重复这个结果</span>，第2例，因为没有办法确认具体的死亡时间，结果不能用。第3例，死亡的瞬间，重量下降了1.5安士，随后的几分钟，又下降了1安士。第4例，因为秤没有调节好，尽管人死的时候重量下降了8分之3到半安士，但这个结果也不能用。第5例，因为死亡来的太突然，尽管重量下降了8分之3安士，但这个结果因为秤的原因，也不能算数。第6例，也不能算，因为病人刚放到床上不到5分钟就死了，秤还没来得及调整。

所以一共测量了6例，也只有第一例是作者比较满意的，有意思的是第3例，重量居然下降了2次，按照作者的推理，就是说死的时候灵魂先走一部分，剩下依依不舍的在10几分钟以后才不得不离开。随后的研究，作者集中精力研究狗，发现狗死的时候，重量没有任何变化，结论就是，狗是没有灵魂的。

从科学的角度看，这个绝对不是一个好的研究，问题有几个方面，1）失误率太高，6例里有5例基本不能用，这样的失误率必须大量增加例数才能有统计学意义，但问题是以后的几乎100年里，没有人去重复这样的试验；2）既然考虑到体液的蒸发，就应该把这些蒸发的体液用一个罩子收集起来，把重量也算进去；3）作者说的死亡的精确时间并不可信，当时的条件，这个是很难确定的，4）他的精确的秤，太难调整，好象也不是那么精确。

但这个已经足够了，其新闻价值远远超过其实际的价值，纽约时报很快就有了报道，这样的研究很得当时宗教人士的喜爱。几年以后，纽约时报再次采访麦大夫，卖大夫说，在死亡的瞬间如果能抓拍一张X光片，肯定能给灵魂照个相片，因为X光照的是人的阴影，一直躲在骨头阴影后面的灵魂，在出鞘的时候肯定就暴露原形了。但遗憾的是，当时他那里还没有X光机，要到费城去才行，又过了几年，麦大夫的也失去了他的21克，给灵魂拍照的工作就成了千古遗憾。

在麦大夫的文章里还提到，灵魂是比空气轻的物质，所以人死后，灵魂是向上飘的。按照他的理论推断，人的灵魂必定会悬浮在大气层中，密度和灵魂类似的地方，估计全球变暖，是大气里灵魂物质堆积的太多的缘故，因为百万年来，死的人也太多了，那么多的21克，大气层也吃不消了。这也说明因为灵魂太轻，总是向上飘，也是不可能转回到地上来投生的。]]></description>
			<content:encoded><![CDATA[<p>电影21克的介绍是这样说的，“不管你是否恐惧，他都会最终降临，在那一时刻，你的身体轻了21克”，“他们说，在人死亡的瞬间，人失去21克的重量”。这部电影鉴证了灵魂重21克这个流行已久的说法。</p>
<p>带着疑惑，我找到了21克的来历。这是美国麻省的大夫，邓肯.麦克道高（Dr. Duncan MacDougall）于1907年4月发表在“美国医学”杂志上的研究，在“鬼魂网”（http://www.ghostweb.com/soul.html）上有原文全篇。题目是“关于灵魂是物质的假说并用实验证明灵魂物质的存在”。作者为了验证灵魂是一种可以测量的物质，特殊设计了一种安装在一种很灵敏的秤上的床，试验方法是让快死的人躺上面，然后一直精确测量这个人的体重，看在死亡的瞬间体重的变化。死亡的瞬间轻了部分就是因为死亡丢失的部分，作者称之为灵魂的重量。</p>
<p>作者一共测量了6个人，4个结核病人，1名糖尿病昏迷的病人，另一个不明原因。21克的说法来自第一个病人，这是一个患结核病的垂死的男人，麦大夫选择这个病人的理由是，这个人死的时候基本上不动，因为这样才能保持秤的平衡，以便于准确测量。这个人死亡前共观察了3小时40分钟，在这段时间里，这个人的重量缓慢地下降，速度是每小时1安士（28.3495克），作者估计是因为体液的蒸发所致。然后作者把秤的平衡调到接近上限条，以期待死亡时候的下降，然后在死亡的瞬间，秤的指针快速下降到了秤的下限条，就再没有弹回来，这一瞬间重量下降了4分之3安士（3/4X28.3495=21.26克），这个著名的21克就诞生了。<span style="background-color: #ff6600;">其后的5例测量都无法重复这个结果</span>，第2例，因为没有办法确认具体的死亡时间，结果不能用。第3例，死亡的瞬间，重量下降了1.5安士，随后的几分钟，又下降了1安士。第4例，因为秤没有调节好，尽管人死的时候重量下降了8分之3到半安士，但这个结果也不能用。第5例，因为死亡来的太突然，尽管重量下降了8分之3安士，但这个结果因为秤的原因，也不能算数。第6例，也不能算，因为病人刚放到床上不到5分钟就死了，秤还没来得及调整。</p>
<p>所以一共测量了6例，也只有第一例是作者比较满意的，有意思的是第3例，重量居然下降了2次，按照作者的推理，就是说死的时候灵魂先走一部分，剩下依依不舍的在10几分钟以后才不得不离开。随后的研究，作者集中精力研究狗，发现狗死的时候，重量没有任何变化，结论就是，狗是没有灵魂的。</p>
<p>从科学的角度看，这个绝对不是一个好的研究，问题有几个方面，1）失误率太高，6例里有5例基本不能用，这样的失误率必须大量增加例数才能有统计学意义，但问题是以后的几乎100年里，没有人去重复这样的试验；2）既然考虑到体液的蒸发，就应该把这些蒸发的体液用一个罩子收集起来，把重量也算进去；3）作者说的死亡的精确时间并不可信，当时的条件，这个是很难确定的，4）他的精确的秤，太难调整，好象也不是那么精确。</p>
<p>但这个已经足够了，其新闻价值远远超过其实际的价值，纽约时报很快就有了报道，这样的研究很得当时宗教人士的喜爱。几年以后，纽约时报再次采访麦大夫，卖大夫说，在死亡的瞬间如果能抓拍一张X光片，肯定能给灵魂照个相片，因为X光照的是人的阴影，一直躲在骨头阴影后面的灵魂，在出鞘的时候肯定就暴露原形了。但遗憾的是，当时他那里还没有X光机，要到费城去才行，又过了几年，麦大夫的也失去了他的21克，给灵魂拍照的工作就成了千古遗憾。</p>
<p>在麦大夫的文章里还提到，灵魂是比空气轻的物质，所以人死后，灵魂是向上飘的。按照他的理论推断，人的灵魂必定会悬浮在大气层中，密度和灵魂类似的地方，估计全球变暖，是大气里灵魂物质堆积的太多的缘故，因为百万年来，死的人也太多了，那么多的21克，大气层也吃不消了。这也说明因为灵魂太轻，总是向上飘，也是不可能转回到地上来投生的。
<div style="margin-top: 15px; font-style: italic">
<p>Don&#8217;t Panic!  <strong>From</strong> <a href="http://xobo.org/">XOBO</a>, <strong>post</strong> <a href="http://xobo.org/21%e5%85%8b%e7%9a%84%e7%81%b5%e9%ad%82/">21克的灵魂</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://xobo.org/21%e5%85%8b%e7%9a%84%e7%81%b5%e9%ad%82/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>不听话的Ubuntu</title>
		<link>http://xobo.org/naughty-ubuntu/</link>
		<comments>http://xobo.org/naughty-ubuntu/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 13:42:19 +0000</pubDate>
		<dc:creator>xobo</dc:creator>
				<category><![CDATA[Logs]]></category>
		<category><![CDATA[gnome-shell]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://xobo.org/?p=76</guid>
		<description><![CDATA[换了新电脑，arch linux下，Gnome死活不启动。只好用Ubuntu了。最新版11.10。
<h2>折腾</h2>
<h3>1. 习惯了Gnome Shell.</h3>
安装gnome-shell
<blockquote>sudo apt-get install gnome-shell #gnome-shell界面
sudo apt-get install gnome-session-fallback #gnome传统界面</blockquote>
首先要系统设置用户帐户里启用自动登录

默认启动gnome shell<strong></strong>
<blockquote>sudo /usr/lib/lightdm/lightdm-set-defaults -s gnome-shell</blockquote>
改回unity
<blockquote>sudo /usr/lib/lightdm/lightdm-set-defaults -s ubuntu</blockquote>
更多的问题可以来这里 <a href="http://forum.ubuntu.com.cn/viewtopic.php?f=120&#38;t=349186&#38;sid=3df09530be5e5c73681f3f53716959bb" target="_blank">本帖集中了11.10中多次出现的各种问题，和解决方法。</a>

<h3>2. mysql-workbench无法启动，卡在启动画面</h3>
好像是当前的mysql-workbench跟ubuntu 11.10不兼容引起的，要打上补丁重新编译一下。
更多信息参考<a href="http://mysqlworkbench.org/?p=1217" target="_blank">http://mysqlworkbench.org/?p=1217</a>。
我找到一个64bit的，直接安装就可以了。
下载地址：<a title="Dropbox" href="http://dl.dropbox.com/u/773778/mysql-workbench-gpl_5.2.35-2_amd64.deb" target="_blank">Dropbox</a> <a title="115网盘" href="http://115.com/file/clflb3or#mysql-workbench-gpl_5.2.35-2_amd64.deb" target="_blank">115网盘</a>

<h3>3. 一进ubuntu，风扇狂转，发热变大</h3>
查资料发现是因为两显卡都在工作原因。关闭不在使用的显卡就好了。不过要先换root帐户，sudo好像都不好使。
<blockquote>echo OFF &#62; /sys/kernel/debug/vgaswitcheroo/switch</blockquote>
原理待补充。 可以期待xobo版的双显卡切换。

参考： <a title="csdn" href="http://blog.csdn.net/geyongqi/article/details/6691360%20" target="_blank">Linux下双显卡切换</a>  <a title="zhyu" href="http://zhyu.me/linux/ubuntu-disabled-independent-graphics-card.html" target="_blank">双显卡笔记本ubuntu下禁用独显</a> <a title="ubuntu" href="https://help.ubuntu.com/community/HybridGraphics" target="_blank">HybridGraphics</a>
<h3>4. 接上个问题，如何启用root帐户</h3>
<blockquote>sudo passwd root</blockquote>
此命令将会重新设置 root 的密码，按照提示输入新的密码，并加以确认。之后，重启系统时，就可以用 root 登录了。
如果你想要禁用 root 帐号，则执行下列命令：
<blockquote>sudo passwd -l root</blockquote>
引自 <a title="linuxtoy" href="http://linuxtoy.org/archives/howto_enable_ubuntu_root_account.html" target="_blank">linuxtoy.org</a>]]></description>
			<content:encoded><![CDATA[<p>换了新电脑，arch linux下，Gnome死活不启动。只好用Ubuntu了。最新版11.10。</p>
<h2>折腾</h2>
<h3>1. 习惯了Gnome Shell.</h3>
<p>安装gnome-shell</p>
<blockquote><p>sudo apt-get install gnome-shell #gnome-shell界面<br />
sudo apt-get install gnome-session-fallback #gnome传统界面</p></blockquote>
<p>首先要系统设置用户帐户里启用自动登录</p>
<p>默认启动gnome shell<strong></strong></p>
<blockquote><p>sudo /usr/lib/lightdm/lightdm-set-defaults -s gnome-shell</p></blockquote>
<p>改回unity</p>
<blockquote><p>sudo /usr/lib/lightdm/lightdm-set-defaults -s ubuntu</p></blockquote>
<p>更多的问题可以来这里 <a href="http://forum.ubuntu.com.cn/viewtopic.php?f=120&amp;t=349186&amp;sid=3df09530be5e5c73681f3f53716959bb" target="_blank">本帖集中了11.10中多次出现的各种问题，和解决方法。</a></p>
<h3>2. mysql-workbench无法启动，卡在启动画面</h3>
<p>好像是当前的mysql-workbench跟ubuntu 11.10不兼容引起的，要打上补丁重新编译一下。<br />
更多信息参考<a href="http://mysqlworkbench.org/?p=1217" target="_blank">http://mysqlworkbench.org/?p=1217</a>。<br />
我找到一个64bit的，直接安装就可以了。<br />
下载地址：<a title="Dropbox" href="http://dl.dropbox.com/u/773778/mysql-workbench-gpl_5.2.35-2_amd64.deb" target="_blank">Dropbox</a> <a title="115网盘" href="http://115.com/file/clflb3or#mysql-workbench-gpl_5.2.35-2_amd64.deb" target="_blank">115网盘</a></p>
<h3>3. 一进ubuntu，风扇狂转，发热变大</h3>
<p>查资料发现是因为两显卡都在工作原因。关闭不在使用的显卡就好了。不过要先换root帐户，sudo好像都不好使。</p>
<blockquote><p>echo OFF &gt; /sys/kernel/debug/vgaswitcheroo/switch</p></blockquote>
<p>原理待补充。 可以期待xobo版的双显卡切换。</p>
<p>参考： <a title="csdn" href="http://blog.csdn.net/geyongqi/article/details/6691360%20" target="_blank">Linux下双显卡切换</a>  <a title="zhyu" href="http://zhyu.me/linux/ubuntu-disabled-independent-graphics-card.html" target="_blank">双显卡笔记本ubuntu下禁用独显</a> <a title="ubuntu" href="https://help.ubuntu.com/community/HybridGraphics" target="_blank">HybridGraphics</a></p>
<h3>4. 接上个问题，如何启用root帐户</h3>
<blockquote><p>sudo passwd root</p></blockquote>
<p>此命令将会重新设置 root 的密码，按照提示输入新的密码，并加以确认。之后，重启系统时，就可以用 root 登录了。<br />
如果你想要禁用 root 帐号，则执行下列命令：</p>
<blockquote><p>sudo passwd -l root</p></blockquote>
<p>引自 <a title="linuxtoy" href="http://linuxtoy.org/archives/howto_enable_ubuntu_root_account.html" target="_blank">linuxtoy.org</a>
<div style="margin-top: 15px; font-style: italic">
<p>Don&#8217;t Panic!  <strong>From</strong> <a href="http://xobo.org/">XOBO</a>, <strong>post</strong> <a href="http://xobo.org/naughty-ubuntu/">不听话的Ubuntu</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://xobo.org/naughty-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>S-ON/S-OFF相关名词解释</title>
		<link>http://xobo.org/s-on/</link>
		<comments>http://xobo.org/s-on/#comments</comments>
		<pubDate>Thu, 09 Jun 2011 04:05:52 +0000</pubDate>
		<dc:creator>xobo</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[刷机]]></category>

		<guid isPermaLink="false">http://xobo.org/?p=55</guid>
		<description><![CDATA[以下内容均收集整理自网络, 本人Android小白一个，有错误欢迎指出。
<!--PutTableHere-->
<h2>什么是IPL/SPL</h2>
IPL (Initial Program Load), 负责 Android 手机上的主板, 电源等硬件的初始化, 装载 SPL 进入内存, 并移交控制权.

SPL(Second Program Loader) 是 Android 手机上真正的启动引导管理器, 它负责引导”恢复模式”或”操作系统”进入内存并移交控制权。相当于电脑中的BIOS，可以被刷写和升级。它同时还集成了很多其它功能, 包括硬件检测、通过数据线与 PC 进行交互等、寻找系统启动分区，启动操作系统为系统的基本维护提供操作界面！
这个东东很很重要，刷它的时候一定要小心，不然爱机可能会变砖。用笔记本防止意外断电，刷之前再三确认md5校验值。
<h2>SHIP和ENG有什么区别</h2>
SHIP：shippment的缩写，出货的意思，零售版的hboot版本。对于我们刷ROM是没有任何区别，但是对于刷RECOVERY和刷IMG是要验证签名的

ENG：Engineer的缩写，工程的意思，修改版的hboot版本。而ENG的SPL，去掉了这些签名机制，可以直刷RECOVERY和刷IMG
<h2>什么是s-on/off</h2>
S代表 Security Lock安全锁，保护锁的意思。是硬件设计商用于保护自己固件不被刷写而设计的安全锁。如果这个安全锁是关闭的，那么对手机内的闪存芯片的刷写保护就关闭了。言外之意就是可以随便刷ROM了。
<h3>安全锁状态</h3>
<h4><strong>SHIP S-ON</strong></h4>
<strong> </strong>这种是最原始的状态，手机出厂的时候，是零售版的hboot，所以显示为SHIP，安全锁也是打开的，所以显示S-ON。
此时手机的system和recovery分区是只读的并且开启CID校验。这时候即使取得了root权限，通过安装RE管理器来删除修改或替换系统自带的程序，但是，只要重启机器，一切将会恢复原样。这也是我的Legend无法换字体的罪魁祸首。HTC的机器在用RUU刷机的时RUU会将安全锁暂时关闭。然后就可以刷HTC自己的ROM。而HTC的HBOOT还有签名验证。所以没有HTC签名的ROM在刷机的时候是无法通过验证的。
<h4><strong>SHIP S-OFF</strong></h4>
这种是关闭安全锁后的状态。这种关闭安全锁的方法并没有对hboot做修改，所以还是显示为SHIP，由于安全锁被关闭了，所以显示S-OFF。此时手机的system和recovery分区是可写的。也就是说，可以允许我们进行刷机操作。
<h4><strong>ENG S-ON</strong></h4>
这种组合不会出现。
<h4><strong>ENG S-OFF</strong></h4>
这种是通过刷入修改版的hboot(官方修改版)，达到关闭安全锁目的后的状态。因为刷入了修改版的hboot，所以SHIP显示为ENG，这时候安全锁其实还是打开的，就是说实际上你的机器还是S-ON的。
但为什么会显示成S-OFF呢？
手机是由hboot来负责引导启动的，hboot启动后，会检查安全锁的状态：如果检查后发现是S-ON，说明安全锁是打开的，那么hboot在完成引导启动的同时，会将system和recovery分区做写保护。如果检查后发现是S-OFF，说明安全锁是关闭的，那么hboot在完成引导启动的同时，会将system和recovery分区的写保护打开。
那这个经过修改后的hboot在这里起到什么作用呢？
当手机通过hboot启动，hboot在检查安全锁是什么状态的时候，无论检查结果是什么，这个修改过的hboot都会认为安全锁是关闭的，即让hboot自己欺骗自己，认为安全锁处于S-OFF状态。实际上此时的安全锁还是S-ON，只不过显示出来是S-OFF罢了。
<h2>哪种S-OFF比较好</h2>
<h4><strong>ENG S-OFF</strong></h4>
ENG S-OFF是单独的SPL级别的OFF，这种工程版SPL，因为是是用于开发人员调试的，所以开启了fastboot调试功能，也就是可以通过fastboot命令去刷机。
优点是，允许你执行大部分的指令，例如fastboot，可以让我们更彻底的操作手机；
缺点是，刷官方包会失去S-OFF。而且刷写修改版的hboot有使手机变砖的危险。
<h4><strong>SHIP S-OFF</strong></h4>
在零售版本或者说是发布版本的SPL基础上，用HTC内部的解锁工具进行解锁，而达到的S-OFF, 也就是白卡解锁。这种S-OFF的特点是没有开启fastboot功能，比较稳定，并经过很多次测试，硬件兼容性也比较好，不会出现信号不好，wifi断线等问题；HTC的任何版本ROM，官方RUU都可以直接刷，刷完官方还是S-OFF。
优点是：刷官方包不会失去S-OFF。而且刷写方法较安全。而且可以卡刷ROM。此方法可以让你的CID，变为superCID。这点是ENG S-OFF所不具备的。
缺点是：无法使用fastboot命令。刷RECOVERY和刷IMG是要验证签名的。

不过两种off不冲突，你完全可以双解锁。也有说白卡解锁不稳定，这个不稳定是应该相对S-ON来说的，杞人忧天型，也就不再引用了。
<h2>什么是CID</h2>
英文全称就是Cutomer I Dentity，简单来说就是一个手机的平台版本，擦除破解之后的CID称为“SUPRECID”，刷机过程中SPL需要根据CID校验ROM是否可用，并决定是否刷入，一般情况下要求一定要对应CID的ROM才可以用，CID不同的ROM是刷不上去的！
对于普通的CID来说限制就是不能刷入不同平台的ROM（比如：在台版的机子上刷欧版的ROM、跨型号刷ROM等）！
也就是为什么我们要跨越不同区域刷官方原版ROM（RUU）时为什么要求一定要金卡的原因！
(这里我删了一条降级限制，因为跟我找文档的矛盾)
<h2>什么是金卡</h2>
这里的卡，是指的你手机里面的TF卡，普通的卡经过特殊的处理，就会变身为金卡，做好的金卡，和平时的TF卡一样来使用，并不会对用户造成什么影响。之所以叫金卡，是因为他可以达到和上面SuperCID一样的目的，即让你跳过验证机制，从而进行刷机。那我们有了SuperCID了还需要金卡吗？不需要。那什么时候需要金卡？当我们没法通过破解得到SuperCID的时候，我们就需要制作金卡了。在做金卡的时候获得的CID是TF卡的CID跟手机没关系的。
金卡不是获得SUPERCID，而是绕过验证机制。(也有说是获得，不予采纳:-P)
<h2>各版本刷RUU权限比较</h2>
RUU就是官方的ROM.

SHIP S-ON(包括软解锁ENGS-OFF)
<p style="padding-left: 30px;">交叉版本限制：不可以在不同地区版本互相刷
降级限制： 不可以从高级版本降级到低级版本</p>
SHIP S-ON带金卡
<p style="padding-left: 30px;">降级限制： 不可以从高级版本降级到低级版本</p>
SHIP S-OFF
<p style="padding-left: 30px;">无限制，区域通刷，升降级随意。</p>
现在就有问题，降级限制是谁负责。不像是金卡或CID，要不然我的Legend降级之前也不用那么麻烦了。
<h2>什么是alpharev</h2>
alpharev是国外的高手反汇编HTC的SPL然后修改成S-OFF的。是第三方修改的SPL。相对于上面2个官方SPL，他也是ENG SPL也开启了fastboot权限。更不稳定，风险更大。
<h2>参考链接</h2>
白卡解锁与软解锁风险全面分析 http://bbs.goapk.com/thread-1779914-1-1.html

关于SHIP S-OFF的说明 http://bbs.goapk.com/thread-598158-1-1.html

HTC Desire HD刷机指南 http://wenku.baidu.com/view/5ec4833f0912a216147929a7.html]]></description>
			<content:encoded><![CDATA[<p>以下内容均收集整理自网络, 本人Android小白一个，有错误欢迎指出。<br />
<!--PutTableHere--></p>
<h2>什么是IPL/SPL</h2>
<p>IPL (Initial Program Load), 负责 Android 手机上的主板, 电源等硬件的初始化, 装载 SPL 进入内存, 并移交控制权.</p>
<p>SPL(Second Program Loader) 是 Android 手机上真正的启动引导管理器, 它负责引导”恢复模式”或”操作系统”进入内存并移交控制权。相当于电脑中的BIOS，可以被刷写和升级。它同时还集成了很多其它功能, 包括硬件检测、通过数据线与 PC 进行交互等、寻找系统启动分区，启动操作系统为系统的基本维护提供操作界面！<br />
这个东东很很重要，刷它的时候一定要小心，不然爱机可能会变砖。用笔记本防止意外断电，刷之前再三确认md5校验值。</p>
<h2>SHIP和ENG有什么区别</h2>
<p>SHIP：shippment的缩写，出货的意思，零售版的hboot版本。对于我们刷ROM是没有任何区别，但是对于刷RECOVERY和刷IMG是要验证签名的</p>
<p>ENG：Engineer的缩写，工程的意思，修改版的hboot版本。而ENG的SPL，去掉了这些签名机制，可以直刷RECOVERY和刷IMG</p>
<h2>什么是s-on/off</h2>
<p>S代表 Security Lock安全锁，保护锁的意思。是硬件设计商用于保护自己固件不被刷写而设计的安全锁。如果这个安全锁是关闭的，那么对手机内的闪存芯片的刷写保护就关闭了。言外之意就是可以随便刷ROM了。</p>
<h3>安全锁状态</h3>
<h4><strong>SHIP S-ON</strong></h4>
<p><strong> </strong>这种是最原始的状态，手机出厂的时候，是零售版的hboot，所以显示为SHIP，安全锁也是打开的，所以显示S-ON。<br />
此时手机的system和recovery分区是只读的并且开启CID校验。这时候即使取得了root权限，通过安装RE管理器来删除修改或替换系统自带的程序，但是，只要重启机器，一切将会恢复原样。这也是我的Legend无法换字体的罪魁祸首。HTC的机器在用RUU刷机的时RUU会将安全锁暂时关闭。然后就可以刷HTC自己的ROM。而HTC的HBOOT还有签名验证。所以没有HTC签名的ROM在刷机的时候是无法通过验证的。</p>
<h4><strong>SHIP S-OFF</strong></h4>
<p>这种是关闭安全锁后的状态。这种关闭安全锁的方法并没有对hboot做修改，所以还是显示为SHIP，由于安全锁被关闭了，所以显示S-OFF。此时手机的system和recovery分区是可写的。也就是说，可以允许我们进行刷机操作。</p>
<h4><strong>ENG S-ON</strong></h4>
<p>这种组合不会出现。</p>
<h4><strong>ENG S-OFF</strong></h4>
<p>这种是通过刷入修改版的hboot(官方修改版)，达到关闭安全锁目的后的状态。因为刷入了修改版的hboot，所以SHIP显示为ENG，这时候安全锁其实还是打开的，就是说实际上你的机器还是S-ON的。<br />
但为什么会显示成S-OFF呢？<br />
手机是由hboot来负责引导启动的，hboot启动后，会检查安全锁的状态：如果检查后发现是S-ON，说明安全锁是打开的，那么hboot在完成引导启动的同时，会将system和recovery分区做写保护。如果检查后发现是S-OFF，说明安全锁是关闭的，那么hboot在完成引导启动的同时，会将system和recovery分区的写保护打开。<br />
那这个经过修改后的hboot在这里起到什么作用呢？<br />
当手机通过hboot启动，hboot在检查安全锁是什么状态的时候，无论检查结果是什么，这个修改过的hboot都会认为安全锁是关闭的，即让hboot自己欺骗自己，认为安全锁处于S-OFF状态。实际上此时的安全锁还是S-ON，只不过显示出来是S-OFF罢了。</p>
<h2>哪种S-OFF比较好</h2>
<h4><strong>ENG S-OFF</strong></h4>
<p>ENG S-OFF是单独的SPL级别的OFF，这种工程版SPL，因为是是用于开发人员调试的，所以开启了fastboot调试功能，也就是可以通过fastboot命令去刷机。<br />
优点是，允许你执行大部分的指令，例如fastboot，可以让我们更彻底的操作手机；<br />
缺点是，刷官方包会失去S-OFF。而且刷写修改版的hboot有使手机变砖的危险。</p>
<h4><strong>SHIP S-OFF</strong></h4>
<p>在零售版本或者说是发布版本的SPL基础上，用HTC内部的解锁工具进行解锁，而达到的S-OFF, 也就是白卡解锁。这种S-OFF的特点是没有开启fastboot功能，比较稳定，并经过很多次测试，硬件兼容性也比较好，不会出现信号不好，wifi断线等问题；HTC的任何版本ROM，官方RUU都可以直接刷，刷完官方还是S-OFF。<br />
优点是：刷官方包不会失去S-OFF。而且刷写方法较安全。而且可以卡刷ROM。此方法可以让你的CID，变为superCID。这点是ENG S-OFF所不具备的。<br />
缺点是：无法使用fastboot命令。刷RECOVERY和刷IMG是要验证签名的。</p>
<p>不过两种off不冲突，你完全可以双解锁。也有说白卡解锁不稳定，这个不稳定是应该相对S-ON来说的，杞人忧天型，也就不再引用了。</p>
<h2>什么是CID</h2>
<p>英文全称就是Cutomer I Dentity，简单来说就是一个手机的平台版本，擦除破解之后的CID称为“SUPRECID”，刷机过程中SPL需要根据CID校验ROM是否可用，并决定是否刷入，一般情况下要求一定要对应CID的ROM才可以用，CID不同的ROM是刷不上去的！<br />
对于普通的CID来说限制就是不能刷入不同平台的ROM（比如：在台版的机子上刷欧版的ROM、跨型号刷ROM等）！<br />
也就是为什么我们要跨越不同区域刷官方原版ROM（RUU）时为什么要求一定要金卡的原因！<br />
(这里我删了一条降级限制，因为跟我找文档的矛盾)</p>
<h2>什么是金卡</h2>
<p>这里的卡，是指的你手机里面的TF卡，普通的卡经过特殊的处理，就会变身为金卡，做好的金卡，和平时的TF卡一样来使用，并不会对用户造成什么影响。之所以叫金卡，是因为他可以达到和上面SuperCID一样的目的，即让你跳过验证机制，从而进行刷机。那我们有了SuperCID了还需要金卡吗？不需要。那什么时候需要金卡？当我们没法通过破解得到SuperCID的时候，我们就需要制作金卡了。在做金卡的时候获得的CID是TF卡的CID跟手机没关系的。<br />
金卡不是获得SUPERCID，而是绕过验证机制。(也有说是获得，不予采纳:-P)</p>
<h2>各版本刷RUU权限比较</h2>
<p>RUU就是官方的ROM.</p>
<p>SHIP S-ON(包括软解锁ENGS-OFF)</p>
<p style="padding-left: 30px;">交叉版本限制：不可以在不同地区版本互相刷<br />
降级限制： 不可以从高级版本降级到低级版本</p>
<p>SHIP S-ON带金卡</p>
<p style="padding-left: 30px;">降级限制： 不可以从高级版本降级到低级版本</p>
<p>SHIP S-OFF</p>
<p style="padding-left: 30px;">无限制，区域通刷，升降级随意。</p>
<p>现在就有问题，降级限制是谁负责。不像是金卡或CID，要不然我的Legend降级之前也不用那么麻烦了。</p>
<h2>什么是alpharev</h2>
<p>alpharev是国外的高手反汇编HTC的SPL然后修改成S-OFF的。是第三方修改的SPL。相对于上面2个官方SPL，他也是ENG SPL也开启了fastboot权限。更不稳定，风险更大。</p>
<h2>参考链接</h2>
<p>白卡解锁与软解锁风险全面分析 http://bbs.goapk.com/thread-1779914-1-1.html</p>
<p>关于SHIP S-OFF的说明 http://bbs.goapk.com/thread-598158-1-1.html</p>
<p>HTC Desire HD刷机指南 http://wenku.baidu.com/view/5ec4833f0912a216147929a7.html
<div style="margin-top: 15px; font-style: italic">
<p>Don&#8217;t Panic!  <strong>From</strong> <a href="http://xobo.org/">XOBO</a>, <strong>post</strong> <a href="http://xobo.org/s-on/">S-ON/S-OFF相关名词解释</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://xobo.org/s-on/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>c++ error logs</title>
		<link>http://xobo.org/c-error-logs/</link>
		<comments>http://xobo.org/c-error-logs/#comments</comments>
		<pubDate>Tue, 07 Jun 2011 07:26:29 +0000</pubDate>
		<dc:creator>xobo</dc:creator>
				<category><![CDATA[Logs]]></category>

		<guid isPermaLink="false">http://xobo.org/?p=29</guid>
		<description><![CDATA[<strong>启用-Wall</strong>
帮忙解决太多bug.
<pre class="syntax bash">alias g++='g++ -Wall'</pre>
写入配置文件
<pre class="syntax bash">echo "alias g++='g++ -Wall'" >> ~/.bashrc &#038;& source ~/.bashrc</pre>

以下代码皆为错误代码

<strong>括号,万恶的括号！</strong>
accept 返回值是0
<pre class="syntax cpp">
if ((fd = accept(Sockfd, Addr, (socklen_t*) AddrLen) < 0)) {
}
</pre>

<strong>函数没有返回值！</strong>
string产生的Segmentation fault
<pre class="syntax cpp">
string testString(string &#038;a){
    a = "I'm string";
}
</pre>

<strong>循环</strong>
栈溢出
<pre class="syntax cpp">
char *lists[maxToken];
lists[0] = strtok(buffer, white);
int i = 1;
while ((lists[i] = strtok(NULL, white)) != NULL &#038;& i < maxToken) {
    i++;
}
</pre>]]></description>
			<content:encoded><![CDATA[<p><strong>启用-Wall</strong><br />
帮忙解决太多bug.</p>
<pre class="syntax bash">alias g++='g++ -Wall'</pre>
<p>写入配置文件</p>
<pre class="syntax bash">echo &quot;alias g++='g++ -Wall'&quot; &gt;&gt; ~/.bashrc &amp;&amp; source ~/.bashrc</pre>
<p>以下代码皆为错误代码</p>
<p><strong>括号,万恶的括号！</strong><br />
accept 返回值是0</p>
<pre class="syntax cpp">
if ((fd = accept(Sockfd, Addr, (socklen_t*) AddrLen) &lt; 0)) {
}
</pre>
<p><strong>函数没有返回值！</strong><br />
string产生的Segmentation fault</p>
<pre class="syntax cpp">
string testString(string &amp;a){
    a = &quot;I'm string&quot;;
}
</pre>
<p><strong>循环</strong><br />
栈溢出</p>
<pre class="syntax cpp">
char *lists[maxToken];
lists[0] = strtok(buffer, white);
int i = 1;
while ((lists[i] = strtok(NULL, white)) != NULL &amp;&amp; i &lt; maxToken) {
    i++;
}
</pre>
<div style="margin-top: 15px; font-style: italic">
<p>Don&#8217;t Panic!  <strong>From</strong> <a href="http://xobo.org/">XOBO</a>, <strong>post</strong> <a href="http://xobo.org/c-error-logs/">c++ error logs</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://xobo.org/c-error-logs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>我的Android, 我的HTC Legend</title>
		<link>http://xobo.org/lengend/</link>
		<comments>http://xobo.org/lengend/#comments</comments>
		<pubDate>Sat, 04 Jun 2011 04:51:23 +0000</pubDate>
		<dc:creator>xobo</dc:creator>
				<category><![CDATA[Cheat sheet]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[legend]]></category>

		<guid isPermaLink="false">http://xobo.org/?p=19</guid>
		<description><![CDATA[脑子一热，买了一个二手Legend, 从此开始了我的刷机，重起，不换电池（只有一块）之旅。。。

以下内容，大多整理自网络

Q&#038;A

Q：清除通知栏的下载失败提示
A："设置"=>打开"应用程序"=>进入"管理应用程序"=>找到机锋市场=>点击"清除数据"。
用同样的方法我解决了Camera360在我手机上无法保存照片的问题。

Q: 制作金卡时Reverse String.
A: 可以使用软件QMAT，或者网站 http://hexrev.soaa.me/, 也可以手动。
输入AA112233445566778899AABBCCDDEEFF
得到00eeddccbbaa998877665544332211aa
把最后一个数改成0，然后逆序输出。

Links


To Do
<ul>
<li>一次提交就可以得到gold card 镜像</li>
<li>换字体，s-on的机器真的那么悲剧</li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>脑子一热，买了一个二手Legend, 从此开始了我的刷机，重起，不换电池（只有一块）之旅。。。</p>
<p>以下内容，大多整理自网络</p>
<p>Q&#038;A</p>
<p>Q：清除通知栏的下载失败提示<br />
A：”设置”=>打开”应用程序”=>进入”管理应用程序”=>找到机锋市场=>点击”清除数据”。<br />
用同样的方法我解决了Camera360在我手机上无法保存照片的问题。</p>
<p>Q: 制作金卡时Reverse String.<br />
A: 可以使用软件QMAT，或者网站 http://hexrev.soaa.me/, 也可以手动。<br />
输入AA112233445566778899AABBCCDDEEFF<br />
得到00eeddccbbaa998877665544332211aa<br />
把最后一个数改成0，然后逆序输出。</p>
<p>Links</p>
<p>To Do</p>
<ul>
<li>一次提交就可以得到gold card 镜像</li>
<li>换字体，s-on的机器真的那么悲剧</li>
</ul>
<div style="margin-top: 15px; font-style: italic">
<p>Don&#8217;t Panic!  <strong>From</strong> <a href="http://xobo.org/">XOBO</a>, <strong>post</strong> <a href="http://xobo.org/lengend/">我的Android, 我的HTC Legend</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://xobo.org/lengend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress文章目录插件：jQuery Table of Contents</title>
		<link>http://xobo.org/wordpress%e6%96%87%e7%ab%a0%e7%9b%ae%e5%bd%95%e6%8f%92%e4%bb%b6%ef%bc%9ajquery-table-of-contents/</link>
		<comments>http://xobo.org/wordpress%e6%96%87%e7%ab%a0%e7%9b%ae%e5%bd%95%e6%8f%92%e4%bb%b6%ef%bc%9ajquery-table-of-contents/#comments</comments>
		<pubDate>Mon, 16 May 2011 10:47:51 +0000</pubDate>
		<dc:creator>xobo</dc:creator>
				<category><![CDATA[Hello World]]></category>

		<guid isPermaLink="false">http://xobo.org/?p=6</guid>
		<description><![CDATA[博客被黑，真的很很无奈。
<h1>head1</h1>
<h2>head2</h2>
<h3>head3</h3>
<h2>head4</h2>]]></description>
			<content:encoded><![CDATA[<p>博客被黑，真的很很无奈。</p>
<h1>head1</h1>
<h2>head2</h2>
<h3>head3</h3>
<h2>head4</h2>
<div style="margin-top: 15px; font-style: italic">
<p>Don&#8217;t Panic!  <strong>From</strong> <a href="http://xobo.org/">XOBO</a>, <strong>post</strong> <a href="http://xobo.org/wordpress%e6%96%87%e7%ab%a0%e7%9b%ae%e5%bd%95%e6%8f%92%e4%bb%b6%ef%bc%9ajquery-table-of-contents/">wordpress文章目录插件：jQuery Table of Contents</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://xobo.org/wordpress%e6%96%87%e7%ab%a0%e7%9b%ae%e5%bd%95%e6%8f%92%e4%bb%b6%ef%bc%9ajquery-table-of-contents/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello xobo!</title>
		<link>http://xobo.org/hello-world/</link>
		<comments>http://xobo.org/hello-world/#comments</comments>
		<pubDate>Mon, 16 May 2011 08:41:03 +0000</pubDate>
		<dc:creator>xobo</dc:creator>
				<category><![CDATA[Hello World]]></category>

		<guid isPermaLink="false">http://xobo.org/?p=1</guid>
		<description><![CDATA[Don't Panic!]]></description>
			<content:encoded><![CDATA[<p>Don&#8217;t Panic!
<div style="margin-top: 15px; font-style: italic">
<p>Don&#8217;t Panic!  <strong>From</strong> <a href="http://xobo.org/">XOBO</a>, <strong>post</strong> <a href="http://xobo.org/hello-world/">Hello xobo!</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://xobo.org/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

