<?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>WarWithinMe &#124; I&#039;m a Warrior king</title>
	<atom:link href="http://warwithinme.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://warwithinme.com/blog</link>
	<description></description>
	<lastBuildDate>Fri, 30 Dec 2011 18:04:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>还是吐槽一下面试吧。。</title>
		<link>http://warwithinme.com/blog/2011/12/or-tucao-about-the-interview-it/</link>
		<comments>http://warwithinme.com/blog/2011/12/or-tucao-about-the-interview-it/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 18:03:39 +0000</pubDate>
		<dc:creator>WarWithinMe</dc:creator>
				<category><![CDATA[其他]]></category>
		<category><![CDATA[面试，lol，随便吐槽，前端]]></category>

		<guid isPermaLink="false">http://warwithinme.com/blog/?p=683</guid>
		<description><![CDATA[<p>前端技术Leader问我，如果点击按钮A或者按钮B会弹出一个对话框，而A、B决定了对话框里面的按钮C有不同的动作，要我来做的话，怎么来做。。</p>
<p>鉴于我只学了半个月的JS、差不多一个月没有碰过前端（几乎忘光了，我不太喜欢针对某个面试特意准备那方面的只是，因为有一种作弊的感觉）、并且JS严重不同于其他那些[......]</p><p class='read-more'><a href='http://warwithinme.com/blog/2011/12/or-tucao-about-the-interview-it/'>继续阅读</a></p>


~没有相关文章~]]></description>
			<content:encoded><![CDATA[<p>前端技术Leader问我，如果点击按钮A或者按钮B会弹出一个对话框，而A、B决定了对话框里面的按钮C有不同的动作，要我来做的话，怎么来做。。</p>
<p>鉴于我只学了半个月的JS、差不多一个月没有碰过前端（几乎忘光了，我不太喜欢针对某个面试特意准备那方面的只是，因为有一种作弊的感觉）、并且JS严重不同于其他那些静态语言。所以只能按照做个人网站的时候的做法来说，做个全局变量，保存到底按的是A还是B。然后按钮C的响应函数直接访问这个。</p>
<p>我当时说的时候就知道这个答案无疑是自寻死路，其实除了自己的个人网站这个project，其他的project（包括AS3、C++、Objective-C）的，我都不会这么写代码。只是因为我对JS的原形链和它一般的代码风格（就是其他程序员会怎么写JS代码）完全没有概念，所以真心觉得这个是最简单，当然也是最不靠谱的方法。</p>
<p>后来，我还是做了些补充，就是把这个变量封装到类里面（如果JS那个能称为类的话）或者放在closure里面吧（其实我对closure也不是了解很深入）。就是说，这个对话框是一个类D，每次按A或者按B都生成这个类D的一个对象，生成的时候把A或者B保存在这个对象的member variable里面。按钮C的处理函数就是类D的一个member function。。。。。。</p>
<p>Leader不满意哎。。他说其实这样子，我们在构建这个object的时候，直接传进一些callback函数，例如（我记得不是很清楚，而且现在JS的基础还是一个样子）：</p>
<p>
<pre class="brush: jscript; title: ;"> var dialog = {variable1:xxx; onCClicked:xxxCallBack; } </pre>
</p>
<p>然后呢，那个记录到底是A或是B的参数就放在这个xxxCallBack里面。（其实只是存放的位置不同，我的意思是存放在variable1那里。leader的意思是存放在callback里面）然后感觉是他为了缓和一下我的尴尬，就说，这也算是closure。最后就说我可能应该要注重一下设计模式，因为这样写能够复用。</p>
<p>可能也因此，被后来的技术2面指责我应该更加注意基本功，而不是去注重经验。</p>
<p>随便吐槽下应该没有问题吧：</p>
<p>1.首先是我觉得用说是&ldquo;设计模式&rdquo;，有点太夸张。。这或许应该算是JS的一种风格（style）吧，就是一般的JS都是这样写，就好比我用C++写代码，一般的style是创建类和对象，而用C写代码，一般的style就是全局变量、函数和一大堆的static variable。</p>
<p>2.我没有反驳2面说，我的基本功（总体方面）其实不错。因为我觉得&ldquo;不错&rdquo;很主观，可能自我评价不错，别人就觉得不足。又或者自己觉得不足，别人又觉得很OK。可能只是因为我个性问题吧，不擅长对自己做评价。但JS方面我确实是欠缺了。</p>
<p>3.另外，我觉得动手起来写代码，去使用你的工具，比单纯的看书看文章看杂志看报刊要更加有效。因为我觉得身体记忆比大脑记忆来得更加靠谱，并且使用的过程中能发现问题并去解决。这样其实经验和基本功都能提升，只是后者相对薄弱一些。还有就是，像我出身于非名牌大学的学生来说，如果没有实际经验的话（实际做些东西出来的话），可能连面试的机会都没有。。。简历一下子就被刷了下去了有木有。</p>
<p>4.面试的这样，被刷下去绝对是理所当然的了。。但是我不认为是自己能力低下，毕竟如果二选一，一个是学了1年的前端，和一个只是学了半个月的前端来说，明显是前者有绝对优势。BTW，前者多出来的11.5个月不能成为经验吗。。。</p>


<p>~没有相关文章~</p>]]></content:encoded>
			<wfw:commentRss>http://warwithinme.com/blog/2011/12/or-tucao-about-the-interview-it/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>xVim 0.12</title>
		<link>http://warwithinme.com/blog/2011/12/xvim-0-12/</link>
		<comments>http://warwithinme.com/blog/2011/12/xvim-0-12/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 16:07:39 +0000</pubDate>
		<dc:creator>WarWithinMe</dc:creator>
				<category><![CDATA[xVim]]></category>
		<category><![CDATA[binding]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[MacOS]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[Vim]]></category>
		<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://warwithinme.com/blog/?p=679</guid>
		<description><![CDATA[<p>So xVim has updated to 0.12.&#160;</p>
<ul>
<li>Fixed some bugs</li>
<li>Added a little more key binding like (ctrl+u and ctrl+d).</li>
<li>Added a simplified key-mapping feature, [......]</li></ul><p class='read-more'><a href='http://warwithinme.com/blog/2011/12/xvim-0-12/'>继续阅读</a></p>


Related posts:<ol><li><a href='http://warwithinme.com/blog/2011/12/xvim-xcode-provides-vim-binding-for-the/' rel='bookmark' title='Permanent Link: xVim, 为Xcode提供vim binding'>xVim, 为Xcode提供vim binding</a></li>
<li><a href='http://warwithinme.com/blog/2010/03/github/' rel='bookmark' title='Permanent Link: GitHub'>GitHub</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>So xVim has updated to 0.12.&nbsp;</p>
<ul>
<li>Fixed some bugs</li>
<li>Added a little more key binding like (ctrl+u and ctrl+d).</li>
<li>Added a simplified key-mapping feature, so that you can type &#39;jk&#39; or other stuff in insert mode to switch back to normal mode.</li>
</ul>
<p>some motions, % and visual mode are still not implemented.</p>
<p><strong>BTW, xVim is a SIMBL plugin to add vim like key-binding to Xcode and other application that uses NSTextView.</strong></p>
<p>Check it out in github :&nbsp;<a href="https://github.com/WarWithinMe/xVim">https://github.com/WarWithinMe/xVim</a></p>
<p>Currently supported are Xcode, espresso and chocalat.</p>
<p>(TextMate does not use NSTextView, so if someone wants to use vim in TextMate, they should use Vico app.)</p>


<p>Related posts:<ol><li><a href='http://warwithinme.com/blog/2011/12/xvim-xcode-provides-vim-binding-for-the/' rel='bookmark' title='Permanent Link: xVim, 为Xcode提供vim binding'>xVim, 为Xcode提供vim binding</a></li>
<li><a href='http://warwithinme.com/blog/2010/03/github/' rel='bookmark' title='Permanent Link: GitHub'>GitHub</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://warwithinme.com/blog/2011/12/xvim-0-12/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>xVim, 为Xcode提供vim binding</title>
		<link>http://warwithinme.com/blog/2011/12/xvim-xcode-provides-vim-binding-for-the/</link>
		<comments>http://warwithinme.com/blog/2011/12/xvim-xcode-provides-vim-binding-for-the/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 10:47:26 +0000</pubDate>
		<dc:creator>WarWithinMe</dc:creator>
				<category><![CDATA[xVim]]></category>
		<category><![CDATA[binding]]></category>
		<category><![CDATA[Vim]]></category>
		<category><![CDATA[xcode plugin]]></category>

		<guid isPermaLink="false">http://warwithinme.com/blog/?p=677</guid>
		<description><![CDATA[<p>发觉XCode唯一一个缺点就是没有Vim binding。</p>
<p>不过还好Cocoa十分好注入代码，所以可以为系统所有的textview都提供Vim binding。现在的问题只是Vim binding的实现了。。</p>
<p>为了学习Cocoa和Objective-C，于是创建了xVim。当然xVim并不是用来替代[......]</p><p class='read-more'><a href='http://warwithinme.com/blog/2011/12/xvim-xcode-provides-vim-binding-for-the/'>继续阅读</a></p>


Related posts:<ol><li><a href='http://warwithinme.com/blog/2011/12/xvim-0-12/' rel='bookmark' title='Permanent Link: xVim 0.12'>xVim 0.12</a></li>
<li><a href='http://warwithinme.com/blog/2011/05/quick-code-windows-to-read-utf-8-text/' rel='bookmark' title='Permanent Link: [Quick Code]Windows读取UTF-8文本。'>[Quick Code]Windows读取UTF-8文本。</a></li>
<li><a href='http://warwithinme.com/blog/2010/03/github/' rel='bookmark' title='Permanent Link: GitHub'>GitHub</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>发觉XCode唯一一个缺点就是没有Vim binding。</p>
<p>不过还好Cocoa十分好注入代码，所以可以为系统所有的textview都提供Vim binding。现在的问题只是Vim binding的实现了。。</p>
<p>为了学习Cocoa和Objective-C，于是创建了xVim。当然xVim并不是用来替代MacVim或者原生的vim的。只是提供一下vim的按键模拟。。预计只会实现一般的按键功能，阉割版的keymap，个别motion command。至于Marco，mark，tag，buffer，kill buffer，register之类都不会实现。</p>
<p>至于感兴趣的同学，请checkout xVim的Github仓库（<a href="https://github.com/WarWithinMe/xVim">https://github.com/WarWithinMe/xVim</a>）</p>


<p>Related posts:<ol><li><a href='http://warwithinme.com/blog/2011/12/xvim-0-12/' rel='bookmark' title='Permanent Link: xVim 0.12'>xVim 0.12</a></li>
<li><a href='http://warwithinme.com/blog/2011/05/quick-code-windows-to-read-utf-8-text/' rel='bookmark' title='Permanent Link: [Quick Code]Windows读取UTF-8文本。'>[Quick Code]Windows读取UTF-8文本。</a></li>
<li><a href='http://warwithinme.com/blog/2010/03/github/' rel='bookmark' title='Permanent Link: GitHub'>GitHub</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://warwithinme.com/blog/2011/12/xvim-xcode-provides-vim-binding-for-the/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>真不知道为啥国产Mac程序占用这么多内存。。。</title>
		<link>http://warwithinme.com/blog/2011/10/i-do-not-know-why-so-many-domestic-programs-are-using-mac-memory/</link>
		<comments>http://warwithinme.com/blog/2011/10/i-do-not-know-why-so-many-domestic-programs-are-using-mac-memory/#comments</comments>
		<pubDate>Fri, 21 Oct 2011 12:57:53 +0000</pubDate>
		<dc:creator>WarWithinMe</dc:creator>
				<category><![CDATA[MacOSX]]></category>

		<guid isPermaLink="false">http://warwithinme.com/?p=665</guid>
		<description><![CDATA[<p><strong>QQ</strong>，11个线程，74MB内存。。。Mac的QQ压根就没那么多功能，还是站这么多内存。虽然几十M内存不是问题，问题是，它究竟在干什么。。。<br />
<strong>搜狗输入法</strong>，5个线程，70MB内存。。。虽然确实输入文本来说做得比FIT好。但是基本功能都没做齐。例如capslock按下之后，输入应该就是输入大写字，根本不应[......]</p><p class='read-more'><a href='http://warwithinme.com/blog/2011/10/i-do-not-know-why-so-many-domestic-programs-are-using-mac-memory/'>继续阅读</a></p>


~没有相关文章~]]></description>
			<content:encoded><![CDATA[<p><strong>QQ</strong>，11个线程，74MB内存。。。Mac的QQ压根就没那么多功能，还是站这么多内存。虽然几十M内存不是问题，问题是，它究竟在干什么。。。<br />
<strong>搜狗输入法</strong>，5个线程，70MB内存。。。虽然确实输入文本来说做得比FIT好。但是基本功能都没做齐。例如capslock按下之后，输入应该就是输入大写字，根本不应该弹出输入框。</p>
<p>这样下去，要是再弄跟多的乱七八糟的功能。。会占用多少资源啊。。。</p>


<p>~没有相关文章~</p>]]></content:encoded>
			<wfw:commentRss>http://warwithinme.com/blog/2011/10/i-do-not-know-why-so-many-domestic-programs-are-using-mac-memory/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>搜狗的Mac输入法。。。</title>
		<link>http://warwithinme.com/blog/2011/10/mac-sogou-input-method/</link>
		<comments>http://warwithinme.com/blog/2011/10/mac-sogou-input-method/#comments</comments>
		<pubDate>Fri, 21 Oct 2011 07:28:41 +0000</pubDate>
		<dc:creator>WarWithinMe</dc:creator>
				<category><![CDATA[其他]]></category>
		<category><![CDATA[Mac，搜狗]]></category>

		<guid isPermaLink="false">http://warwithinme.com/?p=663</guid>
		<description><![CDATA[<p>Mac系统已经自带了一个很完善的截图功能，为啥还要自己带一个截图功能呢。。感觉是用来充数的。。。。</p>


<p>~没有相关文章~</p>


~没有相关文章~]]></description>
			<content:encoded><![CDATA[<p>Mac系统已经自带了一个很完善的截图功能，为啥还要自己带一个截图功能呢。。感觉是用来充数的。。。。</p>


<p>~没有相关文章~</p>]]></content:encoded>
			<wfw:commentRss>http://warwithinme.com/blog/2011/10/mac-sogou-input-method/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Lion安装记录二</title>
		<link>http://warwithinme.com/blog/2011/10/lion-recorded-two-installation/</link>
		<comments>http://warwithinme.com/blog/2011/10/lion-recorded-two-installation/#comments</comments>
		<pubDate>Fri, 21 Oct 2011 06:47:56 +0000</pubDate>
		<dc:creator>WarWithinMe</dc:creator>
				<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[10.7.2]]></category>
		<category><![CDATA[lion]]></category>
		<category><![CDATA[黑苹果]]></category>

		<guid isPermaLink="false">http://warwithinme.com/?p=659</guid>
		<description><![CDATA[<p><strong>HD3000显卡</strong>：<br />
    用最新版的chameleon引导，配合适当的smbios.plist，在lion 10.7.2里面是能直接驱动，什么都不用做的。<br />
    <strong><em>需要注意的是</em></strong>：10.7.2升级之后，这个显卡的驱动明显有改变，兼容性更加强。所以升级10.7.2是有必要的。我之前用10.7.1的时候[......]</p><p class='read-more'><a href='http://warwithinme.com/blog/2011/10/lion-recorded-two-installation/'>继续阅读</a></p>


Related posts:<ol><li><a href='http://warwithinme.com/blog/2011/10/lion10-7-2-installation-log/' rel='bookmark' title='Permanent Link: Lion10.7.2安装记录一'>Lion10.7.2安装记录一</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><strong>HD3000显卡</strong>：<br />
    用最新版的chameleon引导，配合适当的smbios.plist，在lion 10.7.2里面是能直接驱动，什么都不用做的。<br />
    <strong><em>需要注意的是</em></strong>：10.7.2升级之后，这个显卡的驱动明显有改变，兼容性更加强。所以升级10.7.2是有必要的。我之前用10.7.1的时候，只有2G内存，发现显卡经常花屏，QE/CI有时能开，有时不能开。现在升级到8G，特效能稳定开，也不花屏，所以说内存也是很有必要的。</p>
<p><strong>Atheros 9285无线网卡</strong><br />
    利用DSDT能直接用上系统原装的驱动。</p>
<p><strong>Realtek 8101E有线网卡</strong><br />
    硬件id是8136。这个设备是不能用realtek官方的驱动的。目前有几个能够使用的驱动：<br />
    第一个是RealtekR1000, 版本：1.8.1。这个只能用在32位上，但是virtualbox可以上网。<br />
    第二个是RealtekR1000SL, 版本：2.0.0d。可以用在32/64位系统上，但是virtualbox不能上网。<br />
    第三个是这个目前可以使用的是MultiBeast4.0.3附带的Lnx2Mac&#8217;s RealtekRTL81xx驱动，版本：0.0.67。不过用之前要先修改驱动里面的info.plist。将IOMatch改成IOPCIMatch，并且将值改成”0x816910ec 0x816710ec 0x816810ec 0x813610ec”（不含引号）。这样才能让系统识别网卡。同样virtualbox不能上网。</p>
<p>    驱动就直接到kexts.com去搜索吧。下载下来之后，只要看看kext包里面的info.plist就能知道版本号了。</p>
<p><strong>原生电源</strong><br />
    首先将系统升级到10.7.2。如果直接就把NullCPU删掉的话。会出现KP，类型是General Protection。这时就到<a href="http://www.insanelymac.com/forum/index.php?showtopic=258611">这里下载speedstepper</a>。按帖子的方法处理一次AppleIntelCPUPowerManagement。之后进入64位的系统就不会再出现General Protection的错误了。但是进入32位系统依然要NullCPU。用上原生电源的话，自动降频和sleep都能有效。</p>
<p><strong>ALC662声卡</strong><br />
    要想用10.7.x的原生驱动来驱动这个声卡，基本上无解。所以只能用10.6.x的那些声卡驱动。<br />
    我想是，声卡驱动要根据layout和pathmap里面的数据来设置声卡。10.6.x可能就是忽略很多错误。而10.7.x的驱动遇到错误就不能能加载。没有源代码，我们压根不知道layout和pathmap怎么写。pcbeta上面紫米的教程虽然告诉了我们怎么写，但其实是。。。。。。错的。。。。。。或者说是不靠谱的。<br />
    Mac的声卡驱动是针对特殊型号设计的，例如885就运行这段代码，262就运行那一段。同一个系列的不同型号的差别并不大，所以造成了ALC8xx和ALC2xx系列的声卡基本上能蒙混过关。但是ALC662这种6xx系的就悲剧了。</p>
<p>    用10.6.x旧版驱动：<br />
    参照紫米的仿冒声卡驱动做一个出来。然后修改一下Layouts里面的PathMapRef两个参数：<br />
    * Headset_dBV<br />
      应该是用来调整耳机的音量的。10.7.2的原版驱动里面的一些layoutxx.xml文件，如果用普通的文本编辑器打开的话，你会发现这个属性后面有说明某个数值是加多少dBV，某个数值是减多少dBV<br />
    * MuteGPIO<br />
      从字面上来看，应该是跟静音（Mute）有关。GPIO其实是声卡里面的一个芯片。现在的声卡都有两三个GPIO在里面。我的理解是，这个属性应该是告诉驱动如何通知GPIO来让我们的扩音器或者耳机静音。<br />
      我用10.7.2的驱动时，试过将它设置为2、3和20之后，kernel.log里面提示了这个GPIO数值不正确，大于等于GPIO的数量（我的声卡有2个GPIO）。这个MuteGPIO估计就是包含了GPIO芯片的编号。当然它里面肯定包含其他信息。不过对于10.6.x，Headphone和IntSpeaker里面的MuteGPIO写0就OK了。</p>


<p>Related posts:<ol><li><a href='http://warwithinme.com/blog/2011/10/lion10-7-2-installation-log/' rel='bookmark' title='Permanent Link: Lion10.7.2安装记录一'>Lion10.7.2安装记录一</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://warwithinme.com/blog/2011/10/lion-recorded-two-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lion10.7.2安装记录一</title>
		<link>http://warwithinme.com/blog/2011/10/lion10-7-2-installation-log/</link>
		<comments>http://warwithinme.com/blog/2011/10/lion10-7-2-installation-log/#comments</comments>
		<pubDate>Fri, 21 Oct 2011 05:00:07 +0000</pubDate>
		<dc:creator>WarWithinMe</dc:creator>
				<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[10.7.2]]></category>
		<category><![CDATA[lion]]></category>
		<category><![CDATA[黑苹果]]></category>

		<guid isPermaLink="false">http://warwithinme.com/?p=653</guid>
		<description><![CDATA[<p>还是记录一下安装lion的要点吧。凭回忆地&#8230;&#8230;本本是神舟优雅A420P，就是神舟为了抛售intel有bug的芯片那个型号。</p>
<p><strong>一.硬件</strong>：<br />
  * CPU：Core i7-2630QM<br />
  * 芯片：Intel HM65<br />
  * 显卡：HD3000<br />
  * 内存：4Gx2（自己装[......]</p><p class='read-more'><a href='http://warwithinme.com/blog/2011/10/lion10-7-2-installation-log/'>继续阅读</a></p>


Related posts:<ol><li><a href='http://warwithinme.com/blog/2011/10/lion-recorded-two-installation/' rel='bookmark' title='Permanent Link: Lion安装记录二'>Lion安装记录二</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>还是记录一下安装lion的要点吧。凭回忆地&#8230;&#8230;本本是神舟优雅A420P，就是神舟为了抛售intel有bug的芯片那个型号。</p>
<p><strong>一.硬件</strong>：<br />
  * CPU：Core i7-2630QM<br />
  * 芯片：Intel HM65<br />
  * 显卡：HD3000<br />
  * 内存：4Gx2（自己装的）<br />
  * 声卡：ALC662<br />
  * 有线：Realtek 8101 (硬件id是8136)<br />
  * 无线：Atheros 9285<br />
  ** <strong>因为自己的本本是这样的设备，所以这里只是讨论这些设备相关的事情</strong></p>
<p><strong>二.目前状态</strong>：<br />
  可用：鼠标键盘触摸板。亮度调节（没有屏幕提示，但是能调节）。内置喇叭，耳机，外接麦克风。QE/CI。有线和无线网卡。<br />
  不可用：原生电源管理。睡眠。HDMI。</p>
<p><strong>三.安装准备（pcbeta上面N多资源）</strong>：<br />
  * iAtkos L1的镜像<br />
  * 10.7.2GM（11C74）的升级包。<br />
  * chameleon for windows (这个比较难找，<a href="http://bbs.pcbeta.com/viewthread-866655-1-1.html">这里有各版本的链接</a>)</p>
<p><strong>四.安装要点</strong>：<br />
  1.分一个5G的FAT32的分区。然后在windows里面安装chameleon引导。<br />
  2.下载了的iAtkos L1镜像是用来光盘引导的。如果要用硬盘安装（推荐），则需要先用HFS+Explorer提取一下DMG镜像，然后用硬盘安装助手写进5G硬盘。这样才能引导的。<br />
  3.chameleon安装到C盘的版本可能是1577版，需要用HJMAC的wowpc.iso替换C盘同名文件。这样才能用HJMAC进行强有力的引导进入安装。<br />
  4.安装的时候，能不选就不选。必选的：PS2驱动（神舟的键盘是PS2的），RTC那个（防止重启重设CMOS），NullCPUPower（禁用原生电源）。其他的忘了。<br />
  5.如果没有USB键盘的话。安装好之后，在安装界面别重启。这时候从上方菜单那里，打开命令行。用命令把那个USB键盘什么的bundle删掉（那个bundle在什么地方，自行google吧）。<br />
  6.第一次进入系统就应该能安装10.7.2的升级包。（先别管那些驱动）<br />
  7.都搞好之后，还记得那个5G分区吗。用OSX自带的磁盘管理器，将它格式化（因为那个分区的信息是错误的，例如本来是5G，但是由于硬盘安装助手直接写入，导致变了4.3G。这样很不好的）。然后再用磁盘管理器将iAtkos L1的镜像恢复到那个5G硬盘上。这样之后，那个分区的信息就是正确的，并且也可以正常引导进安装界面。保留5G分区的好处是，要是系统搞坏了，还可以用chameleon进入这个安装界面。里面有命令行！！！！你可以敲命令把让系统坏掉的东西删除，例如dsdt文件啊，某些kext驱动啊之类。</p>
<p><strong>五.驱动部分</strong>：<br />
* 需要用到的文件:<br />
  1.smbios.plist<br />
  2.com.chameleon.boot.plist<br />
  3.DSDT.aml<br />
  4.相关的kext驱动</p>
<p><em>smbios.plist</em>：<br />
告诉苹果你的机器是什么。鉴于自己的本本是i7的，所以我用了最贴切的MacBookPro8,2的smbio.plist。(这个文件可以用champlist或者chameleon wizard获得。）</p>
<p><em>chameleon.boot.plist</em>：<br />
告诉chameleon如何启动你的机器。请用chameleon wizard来设置。需要选择的部分是<br />
&#8212;&#8212;&#8212;-<br />
*Verbose mode<br />
*Use Kernel Cache<br />
*32-bit或者64-bit任选<br />
*Ethernet Built In<br />
*Graphics Enabler<br />
&#8212;&#8212;&#8212;-<br />
注：可能是SNB平台比较好兼容，或者是这个本本比较符合规格，发觉npci=0&#215;2000和Force HPET都不用选。另外因为i7自己能动态调整频率，所以电源管理都没有选。</p>
<p>DSDT.aml和kext驱动就以后再说吧。</p>
<p>还记得HJMAC的wowpc.iso吗？设置好Extra目录的这两个plist之后，就可以回到windows，用最新版的chameleon提换掉HJMAC了。之前这两个文件并没有设置好，HJMAC还是能帮我们进入系统。但是设置好了之后，我们就要用最新版的chameleon了。（记得把设置好的这两个文件也拷贝一份，提换掉5G分区里面的Extra目录里面的同名文件，5G分区里面的东西都是隐藏的，请自行想办法。这样就算我们需要再进入安装分区，都不再需要HJMAC）</p>


<p>Related posts:<ol><li><a href='http://warwithinme.com/blog/2011/10/lion-recorded-two-installation/' rel='bookmark' title='Permanent Link: Lion安装记录二'>Lion安装记录二</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://warwithinme.com/blog/2011/10/lion10-7-2-installation-log/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lion基本就这样了，然后就是开工。</title>
		<link>http://warwithinme.com/blog/2011/10/so-basically-lion-and-then-is-started/</link>
		<comments>http://warwithinme.com/blog/2011/10/so-basically-lion-and-then-is-started/#comments</comments>
		<pubDate>Thu, 20 Oct 2011 14:30:11 +0000</pubDate>
		<dc:creator>WarWithinMe</dc:creator>
				<category><![CDATA[其他]]></category>
		<category><![CDATA[lion]]></category>

		<guid isPermaLink="false">http://warwithinme.com/?p=642</guid>
		<description><![CDATA[<p>神舟A420P上lion还是挺麻烦的。Anyway，就这样算了。。虽然不是百分百完美，但是能满足日常要求就好了。<br />
<a href="http://i55.tinypic.com/4l61cm.jpg"><img alt="" src="http://oi55.tinypic.com/4l61cm.jpg" title="MyDesktop" class="alignnone" width="500" height="280" /></a></p>
<p>之后就是一系列计划好的事情。希望能尽快完成吧。。毕竟大家都去找工作了。。。再迟缓就来不及了。</p>


<p>~没有相关文章~</p>


~没有相关文章~]]></description>
			<content:encoded><![CDATA[<p>神舟A420P上lion还是挺麻烦的。Anyway，就这样算了。。虽然不是百分百完美，但是能满足日常要求就好了。<br />
<a href="http://i55.tinypic.com/4l61cm.jpg"><img alt="" src="http://oi55.tinypic.com/4l61cm.jpg" title="MyDesktop" class="alignnone" width="500" height="280" /></a></p>
<p>之后就是一系列计划好的事情。希望能尽快完成吧。。毕竟大家都去找工作了。。。再迟缓就来不及了。</p>


<p>~没有相关文章~</p>]]></content:encoded>
			<wfw:commentRss>http://warwithinme.com/blog/2011/10/so-basically-lion-and-then-is-started/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>今天整个硬盘的数据没了。。。。</title>
		<link>http://warwithinme.com/blog/2011/10/today-not-the-entire-hard-drive-data/</link>
		<comments>http://warwithinme.com/blog/2011/10/today-not-the-entire-hard-drive-data/#comments</comments>
		<pubDate>Tue, 11 Oct 2011 16:04:20 +0000</pubDate>
		<dc:creator>WarWithinMe</dc:creator>
				<category><![CDATA[MetalBone]]></category>
		<category><![CDATA[分区，数据，硬盘]]></category>

		<guid isPermaLink="false">http://warwithinme.com/?p=616</guid>
		<description><![CDATA[<p>所以我一直不赞成windows下面用macdrive，在mac下面用第三方ntfs的驱动。结果搞得我的分区有些坏了。</p>
<p>然后想说修复一下，结果都坏了。。。所以什么东西都没有了。。。。。哎。。。<br />
可惜了MetalBone，源代码都没有了。。虽然我现在都不想搞windows开发了。。但是要是日后搞得话，还[......]</p><p class='read-more'><a href='http://warwithinme.com/blog/2011/10/today-not-the-entire-hard-drive-data/'>继续阅读</a></p>


~没有相关文章~]]></description>
			<content:encoded><![CDATA[<p>所以我一直不赞成windows下面用macdrive，在mac下面用第三方ntfs的驱动。结果搞得我的分区有些坏了。</p>
<p>然后想说修复一下，结果都坏了。。。所以什么东西都没有了。。。。。哎。。。<br />
可惜了MetalBone，源代码都没有了。。虽然我现在都不想搞windows开发了。。但是要是日后搞得话，还可以做个参考嘛。。。只剩下github上面有一个很陈旧的版本。。。</p>


<p>~没有相关文章~</p>]]></content:encoded>
			<wfw:commentRss>http://warwithinme.com/blog/2011/10/today-not-the-entire-hard-drive-data/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>正在上课</title>
		<link>http://warwithinme.com/blog/2011/09/were-in-school/</link>
		<comments>http://warwithinme.com/blog/2011/09/were-in-school/#comments</comments>
		<pubDate>Mon, 26 Sep 2011 10:52:36 +0000</pubDate>
		<dc:creator>WarWithinMe</dc:creator>
				<category><![CDATA[其他]]></category>

		<guid isPermaLink="false">http://warwithinme.com/2011/09/were-in-school/</guid>
		<description><![CDATA[<p>很无聊。<br />
个人网站的构思基本有了。不过发觉没有美工底子真的很不给力。</p>


<p>~没有相关文章~</p>


~没有相关文章~]]></description>
			<content:encoded><![CDATA[<p>很无聊。<br />
个人网站的构思基本有了。不过发觉没有美工底子真的很不给力。</p>


<p>~没有相关文章~</p>]]></content:encoded>
			<wfw:commentRss>http://warwithinme.com/blog/2011/09/were-in-school/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

