<?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>SXPCrazy&#039;s Blog</title>
	<atom:link href="http://sxpcrazy.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://sxpcrazy.com/blog</link>
	<description>技术、想法、观点</description>
	<lastBuildDate>Wed, 11 May 2011 02:53:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>在 chrome 下快速查看完整的下载 url</title>
		<link>http://sxpcrazy.com/blog/2011/05/view-full-download-url-in-chrome/</link>
		<comments>http://sxpcrazy.com/blog/2011/05/view-full-download-url-in-chrome/#comments</comments>
		<pubDate>Wed, 11 May 2011 02:53:45 +0000</pubDate>
		<dc:creator>SXPCrazy</dc:creator>
				<category><![CDATA[工具]]></category>
		<category><![CDATA[生活]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://sxpcrazy.com/blog/?p=28</guid>
		<description><![CDATA[Chrome 浏览器下面的下载很不好用，管理功能极少，连最基本的复制下载的 url 都不可以，以前我都是打开下载窗口，里面有 url 可以复制，但超过一定长度的 url 会变为短地址。以前我都是点到 url 然后审查元素，浏览 DOM 然后从里面复制 url ，但这样很不方便，每次操作都费时费力，就去 google ，结果发现有人写了一个脚本可以方便的做到我想要的效果，代码如下： (function (window, document, Array) { // change all the text to &#60;a&#62; tags Array.prototype.slice.call(document.querySelectorAll('div.url')).forEach(function (el) { var a = document.createElement('a'); a.innerHTML = a.href = &#8230; <a href="http://sxpcrazy.com/blog/2011/05/view-full-download-url-in-chrome/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Chrome 浏览器下面的下载很不好用，管理功能极少，连最基本的复制下载的 url 都不可以，以前我都是打开下载窗口，里面有 url 可以复制，但超过一定长度的 url 会变为短地址。以前我都是点到 url 然后审查元素，浏览 DOM 然后从里面复制 url ，但这样很不方便，每次操作都费时费力，就去 google ，结果发现有人写了一个脚本可以方便的做到我想要的效果，代码如下：</p>
<pre>(function (window, document, Array) {
    // change all the text to &lt;a&gt; tags
    Array.prototype.slice.call(document.querySelectorAll('div.url')).forEach(function (el) {
        var a = document.createElement('a');
        a.innerHTML = a.href = el.innerHTML;
        a.target = '_blank';
        a.style.color = 'inherit';
        el.innerHTML = '';
        el.appendChild(a);
    });
}(this, this.document, this.Array));</pre>
<p>可以将这个代码修改下然后保存到书签栏，以后只要打开下载窗口然后执行这个书签，就可以简单的在 url 上点出菜单，复制 url 了，下面提供可以放到书签的代码：</p>
<pre>javascript:(function (window, document, Array) {Array.prototype.slice.call(document.querySelectorAll('div.url')).forEach(function (el) { var a = document.createElement('a'); a.innerHTML = a.href = el.innerHTML; a.target = '_blank'; a.style.color = 'inherit'; el.innerHTML = ''; el.appendChild(a); }); }(this, this.document, this.Array));</pre>
<p>此代码原始出处来自：<a href="http://userscripts.org/scripts/review/101542">Makes ellipsified download URLs into actual links</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sxpcrazy.com/blog/2011/05/view-full-download-url-in-chrome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在 Mac OS X Snow Leopard 下编译和运行 mtr</title>
		<link>http://sxpcrazy.com/blog/2011/05/compiling-and-run-mtr-for-mac-os-x-snow-leopard/</link>
		<comments>http://sxpcrazy.com/blog/2011/05/compiling-and-run-mtr-for-mac-os-x-snow-leopard/#comments</comments>
		<pubDate>Wed, 11 May 2011 02:29:46 +0000</pubDate>
		<dc:creator>SXPCrazy</dc:creator>
				<category><![CDATA[笔记本]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[package]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[snow leopard]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://sxpcrazy.com/blog/?p=25</guid>
		<description><![CDATA[如果已经装了 Homebrew 那就直接 brew install mtr 就好了，下面要说的是自己通过源码编译的方式。 原文来自：Compiling MTR for Mac OS X Snow Leopard 从 mtr 官方网站 下载最新源码，解压后转到源码目录，执行如下命令： export LIBS='-lm -ltermcap -lresolv' ./configure make sudo make install 这样编译安装了以后并不能在非 root 下执行 mtr，如果执行你将会看到 mtr: unable to get raw sockets. 这时需要将 root &#8230; <a href="http://sxpcrazy.com/blog/2011/05/compiling-and-run-mtr-for-mac-os-x-snow-leopard/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>如果已经装了 <a href="http://mxcl.github.com/homebrew/">Homebrew</a> 那就直接 <code>brew install mtr</code> 就好了，下面要说的是自己通过源码编译的方式。</p>
<p>原文来自：<a rel="permalink" href="http://thepracticeofcode.com/post/457590665/compiling-mtr-for-mac-os-x-snow-leopard">Compiling MTR for Mac OS X Snow Leopard</a></p>
<p>从 <a href="http://www.bitwizard.nl/mtr/">mtr 官方网站</a> 下载最新源码，解压后转到源码目录，执行如下命令：</p>
<pre><code>export LIBS='-lm -ltermcap -lresolv'
./configure
make
sudo make install</code></pre>
<p>这样编译安装了以后并不能在非 root 下执行 <code>mtr</code>，如果执行你将会看到</p>
<pre>mtr: unable to get raw sockets.</pre>
<p>这时需要将 root 运行权限授权给 mtr ，当然你也可以每次都用 <code style="background-color: #eeeeee; padding: 3px;">sudo mtr hostname</code> 来运行 mtr ，看个人喜好了。执行如下命令：</p>
<pre>cd /usr/local/sbin/
sudo chown root mtr
chmod u+s mtr</pre>
<p>之后就可以正常运行 mtr 了，默认 mtr 是使用 x11 图形界面的，如果想要使用非图形界面，使用 <code style="background-color: #eeeeee; padding: 3px;">mtr -t hostname</code></p>
]]></content:encoded>
			<wfw:commentRss>http://sxpcrazy.com/blog/2011/05/compiling-and-run-mtr-for-mac-os-x-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>孟子·离娄章句下</title>
		<link>http://sxpcrazy.com/blog/2011/04/%e5%ad%9f%e5%ad%90%c2%b7%e7%a6%bb%e5%a8%84%e7%ab%a0%e5%8f%a5%e4%b8%8b/</link>
		<comments>http://sxpcrazy.com/blog/2011/04/%e5%ad%9f%e5%ad%90%c2%b7%e7%a6%bb%e5%a8%84%e7%ab%a0%e5%8f%a5%e4%b8%8b/#comments</comments>
		<pubDate>Mon, 25 Apr 2011 02:23:45 +0000</pubDate>
		<dc:creator>SXPCrazy</dc:creator>
				<category><![CDATA[收录]]></category>

		<guid isPermaLink="false">http://sxpcrazy.com/blog/?p=18</guid>
		<description><![CDATA[《孟子·离娄章句下》讲过一个故事：子产主政郑国的时候，用自己的驾乘去帮百姓渡河。孟子对这件事的评价是：“惠而不知为政。”意思是说，这只是小恩小惠，他并不懂得为政。他要是懂得为政的话，就该把桥修好，让百姓不为渡河而发愁。君子只要把政治搞好了，他外出鸣锣开道都可以。今天人们对政治家的要求，比孟子的时代更高，即便修好了路，也应该亲民一些才好。但是，在区分政治事务的主次、提炼重点方面，记者们还得向孟子学习。 From: https://kindle.amazon.com/post/3O32OBSMBMRC]]></description>
			<content:encoded><![CDATA[<p>《孟子·离娄章句下》讲过一个故事：子产主政郑国的时候，用自己的驾乘去帮百姓渡河。孟子对这件事的评价是：“惠而不知为政。”意思是说，这只是小恩小惠，他并不懂得为政。他要是懂得为政的话，就该把桥修好，让百姓不为渡河而发愁。君子只要把政治搞好了，他外出鸣锣开道都可以。今天人们对政治家的要求，比孟子的时代更高，即便修好了路，也应该亲民一些才好。但是，在区分政治事务的主次、提炼重点方面，记者们还得向孟子学习。</p>
<p>From: <a href="https://kindle.amazon.com/post/3O32OBSMBMRC">https://kindle.amazon.com/post/3O32OBSMBMRC</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sxpcrazy.com/blog/2011/04/%e5%ad%9f%e5%ad%90%c2%b7%e7%a6%bb%e5%a8%84%e7%ab%a0%e5%8f%a5%e4%b8%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何让 Mac OS X 从默认 64 位启动变为 32 位启动</title>
		<link>http://sxpcrazy.com/blog/2011/03/mac-os-switch-to-default-boot-with-32-bit/</link>
		<comments>http://sxpcrazy.com/blog/2011/03/mac-os-switch-to-default-boot-with-32-bit/#comments</comments>
		<pubDate>Mon, 14 Mar 2011 19:37:03 +0000</pubDate>
		<dc:creator>SXPCrazy</dc:creator>
				<category><![CDATA[生活]]></category>
		<category><![CDATA[32bit]]></category>
		<category><![CDATA[64bit]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[MBP]]></category>
		<category><![CDATA[OS]]></category>

		<guid isPermaLink="false">http://sxpcrazy.com/blog/?p=11</guid>
		<description><![CDATA[升级了一台最新的 MBP MC721，拿回来换上之前的 MBP 的 SSD 硬盘以后发现无法启动，只好重装系统，用新的 MBP 配的安装盘装了系统以后发现 NTFS 分区无法识别，原来因为我没有格式化硬盘，使用的是系统覆盖的方式安装的，之前装的软件都保留了下来，而之前的系统我一直用的 ParagonNTFS 7.0.2 仍然在系统里。为何之前不装更新版的 ParagonNTFS 8.0.0 是因为之前装了以后发现不稳定，我用 BT 的时候会导致文件系统写错误，经过测试发现 7.0.2 是最稳定的版本，就一直用的这个版本。不知道何故无法继续使用了，每次插入 NTFS 格式的 USB 外置硬盘就有如下错误： Failed to load /System/Library/Filesystems/ufsd_NTFS.fs/Contents/Resources/ufsd_NTFS.kext &#8211; (libkern/kext) link error. 装了 8.0.0 就好，恢复 7.0.2 就坏，最终没法只好使用 8.0.0 结果实在无法忍受，和之前的情况一样，BT &#8230; <a href="http://sxpcrazy.com/blog/2011/03/mac-os-switch-to-default-boot-with-32-bit/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>升级了一台最新的 MBP MC721，拿回来换上之前的 MBP 的 SSD 硬盘以后发现无法启动，只好重装系统，用新的 MBP 配的安装盘装了系统以后发现 NTFS 分区无法识别，原来因为我没有格式化硬盘，使用的是系统覆盖的方式安装的，之前装的软件都保留了下来，而之前的系统我一直用的 ParagonNTFS 7.0.2 仍然在系统里。为何之前不装更新版的 ParagonNTFS 8.0.0 是因为之前装了以后发现不稳定，我用 BT 的时候会导致文件系统写错误，经过测试发现 7.0.2 是最稳定的版本，就一直用的这个版本。不知道何故无法继续使用了，每次插入 NTFS 格式的 USB 外置硬盘就有如下错误：</p>
<p>Failed to load /System/Library/Filesystems/ufsd_NTFS.fs/Contents/Resources/ufsd_NTFS.kext &#8211; (libkern/kext) link error.</p>
<p>装了 8.0.0 就好，恢复 7.0.2 就坏，最终没法只好使用 8.0.0 结果实在无法忍受，和之前的情况一样，BT 开一段时间就会把 NTFS 文件系统写坏，而且必须重启，否则根本无法卸载那个硬盘，导致系统的很多 IO 操作都阻塞了，严重影响了系统性能。好运的是，在卸载 8.0.0 的时候发现日志里面出现了错误，告知 libkern/kext 不支持 64 位，终于想到最新的 MBP 已经默认使用 64 位启动了，而 ParagonNTFS 7.0.2 不支持 64 位，8.0.0 支持但不稳定，这就能解释之前一切的原因了。</p>
<p>去找怎么将系统修改为默认 32 位启动，找到官方资料：</p>
<p><a href="http://support.apple.com/kb/HT3773">http://support.apple.com/kb/HT3773</a></p>
<p>有发生和我类似问题的同学可以参考此文解决。为了让大家能找到此文，特别留下一些问题的情况希望搜索引擎能帮助大家找到这篇文章：最新版 Mac 下 NTFS 无法写入、ParagonNTFS 加载错误、2011 版 Mac 下 NTFS 分区无法识别</p>
]]></content:encoded>
			<wfw:commentRss>http://sxpcrazy.com/blog/2011/03/mac-os-switch-to-default-boot-with-32-bit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

