<?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>notes.xmarco.info</title>
	<atom:link href="http://notes.xmarco.info/feed/" rel="self" type="application/rss+xml" />
	<link>http://notes.xmarco.info</link>
	<description>On Rails, Git, CoffeeScript, Backbone.js, Sass, Compass and more...</description>
	<lastBuildDate>Tue, 17 Jan 2012 05:39:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Git 快速入门（上）</title>
		<link>http://notes.xmarco.info/2012/01/get-started-with-git-1/</link>
		<comments>http://notes.xmarco.info/2012/01/get-started-with-git-1/#comments</comments>
		<pubDate>Sun, 15 Jan 2012 12:58:54 +0000</pubDate>
		<dc:creator>殷悦</dc:creator>
				<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://notes.xmarco.info/?p=541</guid>
		<description><![CDATA[这是之前写给同事看的《Git 快速入门》，对其他人可能也有用。这篇文档还在不断地调整和修改。 一点说明 这个教程里使用了大量的命令行。简单起见，所有 Command Line Prompt（命令行提示符）都是 Unix 式的（即美元符号$），例如： $ echo "hello, world" 这篇文档里没有包含 Git 的安装方法，不过你可以参考： Mac OS X Linux Windows 文档开始 Git 的初始化 从远端服务器获取已经初始化的 Git 代码仓库 从远端服务器下载一个完整的 Repository（代码仓库，通常简称“Repo”）以开始编辑，使用 $ git clone 举例： $ git clone git://github.com/h5bp/html5-boilerplate.git 在本地文件夹内初始化 Git 要在本地的文件夹里开始使用 &#8230; <a href="http://notes.xmarco.info/2012/01/get-started-with-git-1/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>这是之前写给同事看的《Git 快速入门》，对其他人可能也有用。这篇文档还在不断地调整和修改。</p>
<h2>一点说明</h2>
<p>这个教程里使用了大量的命令行。简单起见，所有 Command Line Prompt（命令行提示符）都是 Unix 式的（即美元符号$），例如：</p>
<pre>$ echo "hello, world"</pre>
<p>这篇文档里没有包含 Git 的安装方法，不过你可以参考：</p>
<ul>
<li><a href="http://help.github.com/mac-set-up-git/" target="_blank">Mac OS X</a></li>
<li><a href="http://help.github.com/linux-set-up-git" target="_blank">Linux</a></li>
<li><a href="http://help.github.com/win-set-up-git" target="_blank">Windows</a></li>
</ul>
<h2>文档开始</h2>
<h3>Git 的初始化</h3>
<h4>从远端服务器获取已经初始化的 Git 代码仓库</h4>
<p>从远端服务器下载一个完整的 Repository（代码仓库，通常简称“Repo”）以开始编辑，使用</p>
<pre>$ git clone</pre>
<p>举例：</p>
<pre>$ git clone git://github.com/h5bp/html5-boilerplate.git</pre>
<h4>在本地文件夹内初始化 Git</h4>
<p>要在本地的文件夹里开始使用 Git ，需要对 Git 进行初始化：</p>
<pre>$ cd /path/to/myapp/           // 进入要使用 Git 的文件夹
$ git init                     // 初始化 git ，这个操作会有两个文件（夹）被创建：
                               // .git -> 用于存储 Git 信息文件夹
                               // .gitignore -> 不需要 Git 追踪的文件，比如系统自动生成的 Thumbs.db 文件。</pre>
<p>参考：<a href="https://github.com/github/gitignore">.gitignore 模板集</a>。</p>
<h3>使用 Git 对代码进行快照</h3>
<p>Git 在初始化后，并未追踪该 Repo 下的任何文件。因此要给 Git 一个命令，指定追踪范围并创建代码快照：</p>
<pre>$ git add .                    // 把当前目录及其子目录下的所有文件加入 Git 并创建快照</pre>
<p>这时快照已经建立，但并未正式进入代码树，这就好比用 Word 新建了一个文档，但并未保存到硬盘里。</p>
<p>下一步需要提交 commit（相当于“存盘”），使用</p>
<pre>$ git commit                   // 其后可接参数 -m 以加入对 commit 的描述信息</pre>
<p>很重要的是，如果在 <code>$ git add .</code> 操作完成后，又对代码进行了修改，则需要在提交 commit 前把 <code>$ git add .</code> 再做一次。</p>
<p>在之前的实例中，我们在 <code>$ git add</code> 中指定的追踪范围为“.”，也就是当前文件夹及其子目录。你也可以使用 <code>$ git add</code> 单独添加任何文件。</p>
<p>在一个项目中初始化 git 并进行第一次 commit 的完整步骤：</p>
<pre>$ cd /path/to/myapp/
$ git init
$ git add .
$ git commit -m "initial commit"</pre>
<p>调整控制 git 追踪的命令其实有三个：</p>
<ul>
<li><code>git add</code></li>
<li><code>git rm</code></li>
<li><code>git mv</code></li>
</ul>
<p>第一个已经讲过了。第二个和第三个分别表示删除和移动文件（mv也可以用来重命名）。</p>
<p>要删除和移动文件，不要直接操作，而应该用 git rm/mv 命令进行，以通知 git 修改其追踪文件范围。用法和基本的 Unix/Linux 命令相同。</p>
<p>举例：要删除文件 delete_me.html 和文件夹 legacy/</p>
<pre>$ git rm delete_me.html
$ git rm -r legacy/</pre>
<p>举例：要重命名 rename_me.htm 文件为 rename_me.html</p>
<pre>$ git mv rename_me.htm rename_me.html</pre>
<p>查看当前代码仓库的变化，使用</p>
<pre>$ git status</pre>
<p>在每一个 commit 之前都检查一下代码仓库的状态永远是个好主意，这可以防止出现一些问题（比如手工删除了某个文件，而没有进行 git rm 以移除 git 代码仓库里的对应文件）。</p>
<pre>$ git add .
$ git status
$ git commit -m "YOUR DESCRIPTION GOES HERE"</pre>
<p>如果你希望查看代码历史，请使用</p>
<pre>$ git log</pre>
<p>系统会出现完整的日志，可以上下翻页，按 q 退出。</p>
<p>举例：</p>
<pre>$ git log
commit 3e45b235fb47095ed8bcccb4233d3ac92812313d
Author: Marco Yin <xmarco .info@gmail.com>
Date:   Mon Oct 17 22:18:55 2011 +0800

    activate non-default modules for Devise

commit b252e45f05c36f4467e559711a08d7a0731346e6
Author: Marco Yin </xmarco><xmarco .info@gmail.com>
Date:   Mon Oct 17 22:03:36 2011 +0800

    generate user model with Devise without any change

commit af5233c3c4b5534fd63cfdf9b93ed36a42ea30be
Author: Marco Yin </xmarco><xmarco .info@gmail.com>
Date:   Mon Oct 17 21:54:15 2011 +0800

    install Devise with related configration done

commit ce948087ff3e91de0cd57e3af4dabccf294ccaac
Author: Marco Yin </xmarco><xmarco .info@gmail.com>
Date:   Mon Oct 17 21:31:35 2011 +0800

    initial commit
(END) </xmarco></pre>
<p>我们还可以使用 git checkout 快速地回到某个历史版本。</p>
<p>接着上面的例子：</p>
<pre>$ git log
commit 3e45b235fb47095ed8bcccb4233d3ac92812313d
Author: Marco Yin <xmarco .info@gmail.com>
Date:   Mon Oct 17 22:18:55 2011 +0800

    activate non-default modules for Devise

commit b252e45f05c36f4467e559711a08d7a0731346e6
Author: Marco Yin </xmarco><xmarco .info@gmail.com>
Date:   Mon Oct 17 22:03:36 2011 +0800

    generate user model with Devise without any change

commit af5233c3c4b5534fd63cfdf9b93ed36a42ea30be
Author: Marco Yin </xmarco><xmarco .info@gmail.com>
Date:   Mon Oct 17 21:54:15 2011 +0800

    install Devise with related configration done

commit ce948087ff3e91de0cd57e3af4dabccf294ccaac
Author: Marco Yin </xmarco><xmarco .info@gmail.com>
Date:   Mon Oct 17 21:31:35 2011 +0800

    initial commit
(END)
$ git checkout af5233c3c4b5534           // 我们只需要输入要回到的历史版本哈希值的前几位就可以了。</xmarco></pre>
<p>要回到最新版本，请使用命令行：</p>
<pre>$ git checkout HEAD                      // HEAD 简单说就是当前工作分支的最新版本（不严谨说法）。</pre>
<p>之前提到，每做一个功能都尽量使用分支。</p>
<p>要列出、创建、删除分支，使用 git branch 携带不同参数。</p>
<pre>$ git branch                             // 列出当前所有分支
* create-workspaces                      // 带星号的表示当前工作分支
  master                                 // master 是主分支
$ git branch a-new-branch                // 创建一个名为 a-new-branch 的分支
$ git branch                             // 列出当前所有分支
  a-new-branch
* create-workspaces
  master
$ git checkout master                    // 切换到 master 分支
$ git branch -D a-new-branch             // 删除 a-new-branch 分支</pre>
<p>还有一个常见的做法就是直接创建并切换到新的分支：</p>
<pre>$ git checkout -b a-new-branch
$ git branch                             // 列出当前所有分支
* a-new-branch
  master</pre>
<p>在切换分支的过程中，可能会遇到当前分支有已修改内容未 commit 的情况。这时候可以将其暂存起来，然后再切换：</p>
<pre>$ git checkout master
error: Your local changes to the following files would be overwritten by checkout:
       app/models/workspace.rb
       db/schema.rb
Please, commit your changes or stash them before you can switch branches.
Aborting
$ git add .
$ git stash
Saved working directory and index state WIP on a-new-branch: 75c5d6e add authentication to workspaces
HEAD is now at 75c5d6e add authentication to workspaces
$ git checkout master
Switched to branch 'master'</pre>
<p>当工作分支完成了它的使命，我们就可以把工作分支合并到主分支上来。</p>
<pre>$ git checkout master                     // 先切换到主分支
$ git merge create-workspaces             // 将 create-workspaces 合并到主分支上
$ git branch -D create-workspaces         // 删除 create-workspaces 分支</pre>
]]></content:encoded>
			<wfw:commentRss>http://notes.xmarco.info/2012/01/get-started-with-git-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>让 Rails Console 中的返回结果以表格显示</title>
		<link>http://notes.xmarco.info/2012/01/nice-formatting-in-rails-console/</link>
		<comments>http://notes.xmarco.info/2012/01/nice-formatting-in-rails-console/#comments</comments>
		<pubDate>Sun, 15 Jan 2012 12:27:17 +0000</pubDate>
		<dc:creator>殷悦</dc:creator>
				<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://notes.xmarco.info/?p=532</guid>
		<description><![CDATA[将 hirb 加入 Gemfile： gem 'hirb' 用 Bundler 安装： $ bundle 进 Rails Console ： $ rails c > require 'hirb' => false > Hirb.enable => true 现在 Model 返回的查询结果将以表格的方式显示。比如用 Client Model 查询： > Client.all Client Load (11.3ms) SELECT "clients".* &#8230; <a href="http://notes.xmarco.info/2012/01/nice-formatting-in-rails-console/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>将 <a href="https://github.com/cldwalker/hirb" target="_blank">hirb</a> 加入 Gemfile：</p>
<pre>gem 'hirb'</pre>
<p>用 Bundler 安装：</p>
<pre>$ bundle</pre>
<p>进 Rails Console ：</p>
<pre>$ rails c
> require 'hirb'
=> false
> Hirb.enable
=> true</pre>
<p>现在 Model 返回的查询结果将以表格的方式显示。比如用 Client Model 查询：</p>
<pre>> Client.all
  Client Load (11.3ms)  SELECT "clients".* FROM "clients" ORDER BY created_at ASC
+----+-------------------+-------------------------+-------------------------+
| id | name              | created_at              | updated_at              |
+----+-------------------+-------------------------+-------------------------+
| 1  | The First Client  | 2012-01-13 12:25:22 UTC | 2012-01-13 12:25:22 UTC |
| 2  | The Second Client | 2012-01-13 12:25:31 UTC | 2012-01-13 12:25:31 UTC |
+----+-------------------+-------------------------+-------------------------+
2 rows in set</pre>
]]></content:encoded>
			<wfw:commentRss>http://notes.xmarco.info/2012/01/nice-formatting-in-rails-console/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac OS X 刷新 DNS 缓存</title>
		<link>http://notes.xmarco.info/2012/01/clear-dns-cache-in-mac-os-x/</link>
		<comments>http://notes.xmarco.info/2012/01/clear-dns-cache-in-mac-os-x/#comments</comments>
		<pubDate>Sun, 15 Jan 2012 12:10:50 +0000</pubDate>
		<dc:creator>殷悦</dc:creator>
				<category><![CDATA[OS]]></category>

		<guid isPermaLink="false">http://notes.xmarco.info/?p=524</guid>
		<description><![CDATA[调整了域名指向，希望立即看到变化有时需要刷新本地 DNS 缓存。 命令行： $ dscacheutil -flushcache dig 一下调整过的域名看看有没有变化： $ dig yourdomain.com Chrome 可能也需要清除缓存： 打开 chrome://net-internals/#dns， 点“Clear host cache”。]]></description>
			<content:encoded><![CDATA[<p>调整了域名指向，希望立即看到变化有时需要刷新本地 DNS 缓存。</p>
<p>命令行：</p>
<pre>$ dscacheutil -flushcache</pre>
<p><code>dig</code> 一下调整过的域名看看有没有变化：</p>
<pre>$ dig yourdomain.com</pre>
<p>Chrome 可能也需要清除缓存：</p>
<p>打开 <a href="chrome://net-internals/#dns">chrome://net-internals/#dns</a>， 点“Clear host cache”。</p>
]]></content:encoded>
			<wfw:commentRss>http://notes.xmarco.info/2012/01/clear-dns-cache-in-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS框架 Elements</title>
		<link>http://notes.xmarco.info/2009/07/excellent-css-frameworks-elements/</link>
		<comments>http://notes.xmarco.info/2009/07/excellent-css-frameworks-elements/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 14:15:34 +0000</pubDate>
		<dc:creator>殷悦</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[框架]]></category>

		<guid isPermaLink="false">http://www.xmarco.info/?p=78</guid>
		<description><![CDATA[实际上大家对“CSS 框架（CSS Framework）”都并不陌生，CSS框架将帮助我们提高开发效率，并获得更好的浏览器兼容性。 参考： 维基百科中的“CSS框架”条目 （英文） 在这儿分享一个轻量级的 CSS 框架 Elements。 项目地址： Elements CSS Frameworks 特点： 重置了浏览器默认的样式属性，您含有图片的链接将不再会有丑陋的蓝色边框了。 在外部链接旁增加指示图标（如下图）。 加入了Prototype库（一个 JavaScript 库，提供完整的 Ajax 框架及其他工具）。 加入了Lightbox功能（点击这里查看官方功能演示，请点击该页的图片）。 未定义网格布局结构（grid structure）。 大小： 约46K（v2版本）。 文件结构： [elements_v2] -&#62; 主文件夹，包含了框架所需的所有文件。 [clientFiles] -&#62; 在合作过程中，客户会提供一些文件给你们。比如相关的协议、工作的范围、时间的安排，或者其他的注意事项。这些东西都可以放在这个文件夹中。 [concepts] -&#62; 用于放置一些想法或初稿。 [copy] -&#62; 用于放置您或客户为网站写的副本。 &#8230; <a href="http://notes.xmarco.info/2009/07/excellent-css-frameworks-elements/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>实际上大家对“CSS 框架（CSS Framework）”都并不陌生，CSS框架将帮助我们提高开发效率，并获得更好的浏览器兼容性。</p>
<p>参考：</p>
<ul>
<li><a href="http://en.wikipedia.org/wiki/CSS_framework">维基百科中的“CSS框架”条目</a> （英文）</li>
</ul>
<p>在这儿分享一个轻量级的 CSS 框架 Elements。</p>
<hr style="margin: 10px 0;" />
<p>项目地址：</p>
<ul>
<li><a href="http://elements.projectdesigns.org/">Elements CSS Frameworks</a></li>
</ul>
<p>特点：</p>
<ol>
<li>重置了浏览器默认的样式属性，您含有图片的链接将不再会有丑陋的蓝色边框了。</li>
<li>在外部链接旁增加指示图标（如下图）。</li>
<li>加入了Prototype库（一个 JavaScript 库，提供完整的 Ajax 框架及其他工具）。</li>
<li>加入了Lightbox功能（点击<a href="http://www.huddletogether.com/projects/lightbox/" target="_blank">这里</a>查看官方功能演示，请点击该页的图片）。</li>
<li>未定义网格布局结构（grid structure）。</li>
</ol>
<p style="text-align: center;"><a href="http://www.xmarco.info/wp-content/uploads/2009/07/excellent-css-fireworks-01-01.png"><img class="aligncenter size-full wp-image-90" title="excellent-css-fireworks-01-01" src="/wp-content/uploads/2009/07/excellent-css-fireworks-01-01.png" alt="excellent-css-fireworks-01-01" width="319" height="108" /></a></p>
<p>大小：</p>
<ul>
<li>约46K（v2版本）。</li>
</ul>
<p>文件结构：</p>
<ul>
<li>[elements_v2] -&gt; 主文件夹，包含了框架所需的所有文件。
<ul>
<li>[clientFiles] -&gt; 在合作过程中，客户会提供一些文件给你们。比如相关的协议、工作的范围、时间的安排，或者其他的注意事项。这些东西都可以放在这个文件夹中。</li>
<li>[concepts] -&gt; 用于放置一些想法或初稿。</li>
<li>[copy] -&gt; 用于放置您或客户为网站写的副本。</li>
<li>[css] -&gt; 放置CSS文件。
<ul>
<li>externalLinks.css -&gt; 这是控制外部链接图标的css文件，同时还会给PDF文件、email地址加上相应的图标。使用时需将这个文件打开，并替换掉文件中已经设置的默认域名。</li>
<li>global.css -&gt; 这是主CSS文件，您可以将自己编写的CSS存入这个文件。里面有一些预先定义好的选择器和一些简单的结构。</li>
<li>lightbox.css -&gt; 这是lightbox的相关文件，最好不要修改。</li>
<li>reset.css -&gt; 帮助您重置浏览器的默认设置，去掉了多余的margin、padding、border、outline。这可以帮助您的页面在不同的浏览器下显示一致。</li>
</ul>
</li>
<li>[images] -&gt; 放置图片的文件夹。
<ul>
<li>[elementsImages] -&gt; 这个文件夹放置了外部链接的图标。</li>
<li>[lightbox] -&gt; 这个文件夹属于lightbox的相关图片。</li>
<li>[nav] -&gt; 你可以在这里放置导航栏的相关图片。</li>
</ul>
</li>
<li>[inc] -&gt; 放置PHP includes或者PHP scripts的地方。</li>
<li>[js] -&gt; 放置JavaScript文件。</li>
<li>[rawPNG] -&gt; 这里可以放入没有压缩过的PNG图片，保存这些未压缩的图片可以方便未来的修改，避免图片质量损失。压缩过的PNG可以放到images文件夹内。</li>
<li>index.html -&gt; 这个文件中包含了需要引用的文件头。里面还有些常用的元素、页头、主体内容、页脚。</li>
</ul>
</li>
</ul>
<p>启示：</p>
<ul>
<li>作者将文件非常精细地分门别类（尤其是图片的放置非常讲究），这是个好习惯。</li>
<li>网格布局会给我们带来方便，但也容易开发丧失部分的灵活性，这个框架没有加入网格布局。</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://notes.xmarco.info/2009/07/excellent-css-frameworks-elements/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>修复 IE6 中 PNG 图片透明度显示故障</title>
		<link>http://notes.xmarco.info/2009/06/png-fix/</link>
		<comments>http://notes.xmarco.info/2009/06/png-fix/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 21:07:36 +0000</pubDate>
		<dc:creator>殷悦</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Bugs]]></category>
		<category><![CDATA[Compatibility]]></category>
		<category><![CDATA[Fixed Up]]></category>
		<category><![CDATA[Graphic]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[修复]]></category>
		<category><![CDATA[兼容性]]></category>
		<category><![CDATA[图像]]></category>
		<category><![CDATA[微软]]></category>
		<category><![CDATA[故障]]></category>
		<category><![CDATA[浏览器]]></category>
		<category><![CDATA[视窗]]></category>

		<guid isPermaLink="false">http://www.xmarco.info/?p=6</guid>
		<description><![CDATA[Windows 下，IE6及其更早版本都无法正常地解析PNG图片的透明度，这让人伤透了脑筋。很多人选择干脆放弃 PNG 透明图片，被迫用低品质的 gif 图像。 下面介绍利用 JavaScript 修复透明 PNG 的方法，痛苦可以暂时解决（IE6 一天不死痛苦一天不除）。 您可以点击这里下载pngfix.js（右键-&#62;目标另存为），并将其放入首页所在的文件夹中。 再将以上代码插入&#60;/head&#62;标签之前。 微软已经在 IE7 及之后的版本中修复了这个错误。其他浏览器像 Firefox、Safari、Opera、Google Chrome 经测试都没有这个故障。 参考资料：The PNG problem in Windows Internet Explorer]]></description>
			<content:encoded><![CDATA[<p>Windows 下，IE6及其更早版本都无法正常地解析PNG图片的透明度，这让人伤透了脑筋。很多人选择干脆放弃 PNG 透明图片，被迫用低品质的 gif 图像。</p>
<p>下面介绍利用 JavaScript 修复透明 PNG 的方法，痛苦可以暂时解决（IE6 一天不死痛苦一天不除）。</p>
<p style="text-align: center;"><img class="size-full wp-image-11 aligncenter" title="修复前后对比图片" src="/wp-content/uploads/2009/06/PNG-fix.png" alt="修复前后对比图片" width="214" height="68" /></p>
<p>您可以点击这里下载<a href="/wp-content/uploads/2009/06/pngfix.js">pngfix.js</a>（右键-&gt;目标另存为），并将其放入首页所在的文件夹中。</p>
<pre lang="html4strict" line="1"><!--[if lt IE 7]>
<script defer type="text/javascript" src="pngfix.js"></script>
< ![endif]--></pre>
<p>再将以上代码插入&lt;/head&gt;标签之前。</p>
<p>微软已经在 IE7 及之后的版本中修复了这个错误。其他浏览器像 Firefox、Safari、Opera、Google Chrome 经测试都没有这个故障。</p>
<p>参考资料：<a href="http://homepage.ntlworld.com/bobosola/" target="_blank">The PNG problem in Windows Internet Explorer</a></p>
]]></content:encoded>
			<wfw:commentRss>http://notes.xmarco.info/2009/06/png-fix/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>新域名 xMarco.info</title>
		<link>http://notes.xmarco.info/2008/05/new-domain/</link>
		<comments>http://notes.xmarco.info/2008/05/new-domain/#comments</comments>
		<pubDate>Fri, 30 May 2008 01:33:00 +0000</pubDate>
		<dc:creator>殷悦</dc:creator>
				<category><![CDATA[Private]]></category>

		<guid isPermaLink="false">http://www.xmarco.info/?p=41</guid>
		<description><![CDATA[经过两天的奋斗和抗战，终于在昨天下午成功在 GoDaddy 买到了 xMarco.info。 GoDaddy 的默认DNS服务器没有乱七八糟的限制。以前在新网买的域名很烦，解析设置生效慢，而且经常会自动跳转到他们的网页上（广告），实在难以忍受。 在 GoDaddy 买还很便宜，这个域名一共才花费了我 1.19USD，合人民币也就不到10块钱。但第二年续费就需要9.9USD了，不过也还算挺便宜的了。 这个域名会长期使用的，不过到底用哪里的空间就成了个问题。Blogspot 大陆地区是无法访问的，只能让它 FTP 发布到大陆的空间。 另外，购买这个域名的时候需要使用 PayPal，注册和信用卡认证都相当麻烦，而且有很多条框限制，帐户很容易被限制，然后要求提交很多证明材料。我就碰上了，主要是因为使用了一些代理服务器软件登陆，系统提示发现我在其他地区登陆过，所以就冻结了，花了我一下午的时间递交材料和口头解释才得以恢复，最终成功付款。另外，联系 PayPal 客服超级不方便，需要在网页上写信，而他们会通过 email 进行回复，但如果你第二次给他们写信的话，回复邮件的客服有百分之九十九的可能不是刚才那个，对你的情况很不了解，沟通起来有极大的障碍。 最后还提到一点，需要使用 PayPal 的朋友需要有国际信用卡，工行的国际卡客户还需要联系95588申请开通无卡网上交易业务，用完之后最好关闭，但关闭这项功能后也会造成帐户冻结，需要关闭前别忘注销 PayPal 帐户。]]></description>
			<content:encoded><![CDATA[<p>经过两天的奋斗和抗战，终于在昨天下午成功在 <a href="http://www.godaddy.com/">GoDaddy</a> 买到了 xMarco.info。</p>
<p>GoDaddy 的默认DNS服务器没有乱七八糟的限制。以前在新网买的域名很烦，解析设置生效慢，而且经常会自动跳转到他们的网页上（广告），实在难以忍受。</p>
<p>在 GoDaddy 买还很便宜，这个域名一共才花费了我 1.19USD，合人民币也就不到10块钱。但第二年续费就需要9.9USD了，不过也还算挺便宜的了。</p>
<p>这个域名会长期使用的，不过到底用哪里的空间就成了个问题。Blogspot 大陆地区是无法访问的，只能让它 FTP 发布到大陆的空间。</p>
<p>另外，购买这个域名的时候需要使用 <a href="http://www.paypal.com/cn">PayPal</a>，注册和信用卡认证都相当麻烦，而且有很多条框限制，帐户很容易被限制，然后要求提交很多证明材料。我就碰上了，主要是因为使用了一些代理服务器软件登陆，系统提示发现我在其他地区登陆过，所以就冻结了，花了我一下午的时间递交材料和口头解释才得以恢复，最终成功付款。另外，联系 <a href="http://www.paypal.com/cn">PayPal</a> 客服超级不方便，需要在网页上写信，而他们会通过 email 进行回复，但如果你第二次给他们写信的话，回复邮件的客服有百分之九十九的可能不是刚才那个，对你的情况很不了解，沟通起来有极大的障碍。</p>
<p>最后还提到一点，需要使用 <a href="http://www.paypal.com/cn">PayPal</a> 的朋友需要有国际信用卡，工行的国际卡客户还需要联系95588申请开通<strong>无卡网上交易</strong>业务，用完之后最好关闭，但关闭这项功能后也会造成帐户冻结，需要关闭前别忘注销 <a href="http://www.paypal.com/cn">PayPal</a> 帐户。</p>
]]></content:encoded>
			<wfw:commentRss>http://notes.xmarco.info/2008/05/new-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在Ubuntu上利用Mac4Lin实现MacOS效果</title>
		<link>http://notes.xmarco.info/2008/03/mac4lin/</link>
		<comments>http://notes.xmarco.info/2008/03/mac4lin/#comments</comments>
		<pubDate>Wed, 12 Mar 2008 08:01:00 +0000</pubDate>
		<dc:creator>殷悦</dc:creator>
				<category><![CDATA[OS]]></category>

		<guid isPermaLink="false">http://www.xmarco.info/?p=34</guid>
		<description><![CDATA[&#160; &#160; &#160; 这些效果看上去都还不错，但感觉还是太花哨了，最后还是换上了最原始的主题,当然那也不错。3D桌面体验结束！]]></description>
			<content:encoded><![CDATA[<div id="attachment_263" class="wp-caption aligncenter" style="width: 310px"><a href="/wp-content/uploads/2008/03/Screenshot1.png"><img class="size-medium wp-image-263" title="Mac风格的桌面 以及Dock" src="/wp-content/uploads/2008/03/Screenshot1-300x240.png" alt="Mac风格的桌面 以及Dock" width="300" height="240" /></a><p class="wp-caption-text">Mac风格的桌面 以及Dock</p></div>
<p>&nbsp;</p>
<div id="attachment_261" class="wp-caption aligncenter" style="width: 310px"><a href="/wp-content/uploads/2008/03/Screenshot2.png"><img class="size-medium wp-image-261" title="使用compiz实现的3D桌面效果" src="/wp-content/uploads/2008/03/Screenshot2-300x240.png" alt="使用compiz实现的3D桌面效果" width="300" height="240" /></a><p class="wp-caption-text">使用compiz实现的3D桌面效果</p></div>
<p>&nbsp;</p>
<div id="attachment_264" class="wp-caption aligncenter" style="width: 310px"><a href="/wp-content/uploads/2008/03/Screenshot3.png"><img class="size-medium wp-image-264" title="轻触屏幕左上角 即可显示四个工作区域" src="/wp-content/uploads/2008/03/Screenshot3-300x240.png" alt="轻触屏幕左上角 即可显示四个工作区域" width="300" height="240" /></a><p class="wp-caption-text">轻触屏幕左上角 即可显示四个工作区域</p></div>
<p>&nbsp;</p>
<div id="attachment_265" class="wp-caption aligncenter" style="width: 310px"><a href="/wp-content/uploads/2008/03/Screenshot4.png"><img class="size-medium wp-image-265" title="轻触屏幕右上角 将当前工作去执行的文件平铺展示 便于选取" src="/wp-content/uploads/2008/03/Screenshot4-300x240.png" alt="轻触屏幕右上角 将当前工作去执行的文件平铺展示 便于选取" width="300" height="240" /></a><p class="wp-caption-text">轻触屏幕右上角 将当前工作区文件平铺展示 便于选取</p></div>
<p>这些效果看上去都还不错，但感觉还是太花哨了，最后还是换上了最原始的主题,当然那也不错。3D桌面体验结束！</p>
]]></content:encoded>
			<wfw:commentRss>http://notes.xmarco.info/2008/03/mac4lin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apt 使用参考</title>
		<link>http://notes.xmarco.info/2008/03/apt-cheatsheet/</link>
		<comments>http://notes.xmarco.info/2008/03/apt-cheatsheet/#comments</comments>
		<pubDate>Tue, 11 Mar 2008 16:08:00 +0000</pubDate>
		<dc:creator>殷悦</dc:creator>
				<category><![CDATA[OS]]></category>

		<guid isPermaLink="false">http://www.xmarco.info/?p=33</guid>
		<description><![CDATA[apt-cache search package 搜索包 apt-cache show package 获取包的相关信息，如说明、大小、版本等 sudo apt-get install package 安装包 sudo apt-get install package &#8211; - reinstall 重新安装包 sudo apt-get -f install 强制安装 sudo apt-get remove package 删除包 sudo apt-get remove package &#8211; - purge 删除包，包括删除配置文件等 sudo &#8230; <a href="http://notes.xmarco.info/2008/03/apt-cheatsheet/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<table border="0">
<tbody>
<tr>
<td>apt-cache search package</td>
<td>搜索包</td>
</tr>
<tr>
<td>apt-cache show package</td>
<td>获取包的相关信息，如说明、大小、版本等</td>
</tr>
<tr>
<td>sudo apt-get install package</td>
<td>安装包</td>
</tr>
<tr>
<td>sudo apt-get install package &#8211; - reinstall</td>
<td>重新安装包</td>
</tr>
<tr>
<td>sudo apt-get -f install</td>
<td>强制安装</td>
</tr>
<tr>
<td>sudo apt-get remove package</td>
<td>删除包</td>
</tr>
<tr>
<td>sudo apt-get remove package &#8211; - purge</td>
<td>删除包，包括删除配置文件等</td>
</tr>
<tr>
<td>sudo apt-get autoremove</td>
<td>自动删除不需要的包</td>
</tr>
<tr>
<td>sudo apt-get update</td>
<td>更新源</td>
</tr>
<tr>
<td>sudo apt-get upgrade</td>
<td>更新已安装的包</td>
</tr>
<tr>
<td>sudo apt-get dist-upgrade</td>
<td>升级系统</td>
</tr>
<tr>
<td>sudo apt-get dselect-upgrade</td>
<td>使用 dselect 升级</td>
</tr>
<tr>
<td>apt-cache depends package</td>
<td>了解使用依赖</td>
</tr>
<tr>
<td>apt-cache rdepends package</td>
<td>了解某个具体的依赖</td>
</tr>
<tr>
<td>sudo apt-get build-dep package</td>
<td>安装相关的编译环境</td>
</tr>
<tr>
<td>apt-get source package</td>
<td>下载该包的源代码</td>
</tr>
<tr>
<td>sudo apt-get clean &amp;&amp; sudo apt-get autoclean</td>
<td>清理下载文件的存档</td>
</tr>
<tr>
<td>sudo apt-get check</td>
<td>检查是否有损坏的依赖</td>
</tr>
</tbody>
</table>
<p><span style="font-style: italic;"> 备注：package 为软件包名称。</span></p>
]]></content:encoded>
			<wfw:commentRss>http://notes.xmarco.info/2008/03/apt-cheatsheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在Ubuntu7.10中安装RealPlayer</title>
		<link>http://notes.xmarco.info/2008/03/%e5%9c%a8ubuntu710%e4%b8%ad%e5%ae%89%e8%a3%85realplayer/</link>
		<comments>http://notes.xmarco.info/2008/03/%e5%9c%a8ubuntu710%e4%b8%ad%e5%ae%89%e8%a3%85realplayer/#comments</comments>
		<pubDate>Sun, 02 Mar 2008 12:28:00 +0000</pubDate>
		<dc:creator>殷悦</dc:creator>
				<category><![CDATA[OS]]></category>

		<guid isPermaLink="false">http://www.xmarco.info/?p=32</guid>
		<description><![CDATA[将文件RealPlayer10GOLD.bin保存到主文件夹中，即/home/[yourusername]文件夹 下。 然后打开终端，进行如下操作： $chmod +x RealPlayer10GOLD.bin $sudo ./RealPlayer10GOLD.bin 当终端显示 Welcome to the RealPlayer (10.0.8.805) Setup for UNIX Setup will help you get RealPlayer running on your computer. Press [Enter] to continue… 时按下回车键，进入下一步： Enter the complete path to the directory where &#8230; <a href="http://notes.xmarco.info/2008/03/%e5%9c%a8ubuntu710%e4%b8%ad%e5%ae%89%e8%a3%85realplayer/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rcQ1VEHqV34/R8UrNnr16vI/AAAAAAAABNI/ix_LJmKSS7s/s200/ubuntulogo.png"><img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 200px;" src="http://3.bp.blogspot.com/_rcQ1VEHqV34/R8UrNnr16vI/AAAAAAAABNI/ix_LJmKSS7s/s200/ubuntulogo.png" alt="" border="0" /></a>将文件RealPlayer10GOLD.bin保存到主文件夹中，即/home/[yourusername]文件夹<br />
下。<br />
然后打开终端，进行如下操作：<br />
$chmod +x RealPlayer10GOLD.bin<br />
$sudo ./RealPlayer10GOLD.bin<br />
当终端显示</p>
<p>Welcome to the RealPlayer (10.0.8.805) Setup for UNIX<br />
Setup will help you get RealPlayer running on your computer.<br />
Press [Enter] to continue…</p>
<p>时按下回车键，进入下一步：</p>
<p>Enter the complete path to the directory where you want<br />
RealPlayer to be installed. You must specify the full<br />
pathname of the directory and have write privileges to<br />
the chosen directory.<br />
Directory: [/home/shixinyu/RealPlayer]:</p>
<p>这里默认安装到用户的主文件夹下的RealPlayer目录下，如果你想要安装到别处，<br />
就在此处输入路径，否则直接回车即可。</p>
<p>You have selected the following RealPlayer configuration:</p>
<p>Destination: /home/shixinyu/RealPlayer</p>
<p>Enter [F]inish to begin copying files, or [P]revious to go<br />
back to the previous prompts: [F]: F</p>
<p>安装程序会提示最后确定信息，如果都确定了，按下F键后回车。<br />
当提示</p>
<p>Copying RealPlayer files…configure system-wide symbolic links? [Y/n]:</p>
<p>时按下Y键回车即可，后面基本上就没有需要用户操作的地方了，通常到这里基本<br />
上就安装好了，你可以到&#8221;应用程序，影音&#8221;下找到RealPlayer10来运行了，首次运<br />
行会有一段安装协议需要同意。</p>
<p>注：如果在跟着上述步骤完成安装操作之后到应用程序菜单下的&#8221;影音&#8221;中单击<br />
RealPlayer无反应，并且你的Ubuntu安装的是SCIM输入法，那么很可能是SCIM与<br />
RealPlayer的冲突，你还需要进行下面操作：<br />
$sudo gedit /home/[yourid]/RealPlayer/realplay \\[yourid]指你的主文件夹<br />
名<br />
在打开的文本编辑器的首行添加下面一行<br />
export GTK_IM_MODULE=xim</p>
<p>之后保存文本编辑器，然后再次执行RealPlayer应该就正常了。</p>
<p>不过貌似在7.10里在安装的时候就：<br />
&#8230;.libstdc++.so.5: cannot open shared object file: No such file or<br />
directory<br />
很明显。。。。没有这个库了，7.10的是版本6－ －！<br />
那就安装：<br />
sudo apt-get install libstdc++5<br />
一切搞定 <img src='http://notes.xmarco.info/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://notes.xmarco.info/2008/03/%e5%9c%a8ubuntu710%e4%b8%ad%e5%ae%89%e8%a3%85realplayer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pidgin</title>
		<link>http://notes.xmarco.info/2007/12/pidgin/</link>
		<comments>http://notes.xmarco.info/2007/12/pidgin/#comments</comments>
		<pubDate>Wed, 05 Dec 2007 04:07:00 +0000</pubDate>
		<dc:creator>殷悦</dc:creator>
				<category><![CDATA[Private]]></category>

		<guid isPermaLink="false">http://www.xmarco.info/?p=23</guid>
		<description><![CDATA[曾经在 Ubuntu 中使用过 GAIM，这是一款集成了众多即时通讯软件的小工具，大小在10M左右。今天忽然想到，准备安装，却发现已经更名成了 Pidgin，大家如果希望尝试可以点击这里下载。 一下是他可以支持的IM软件： AIM Bonjour Gadu-Gadu Google Talk Groupwise ICQ IRC MSN MySpaceIM QQ SILC SIMPLE Sametime XMPP Yahoo! Zephyr]]></description>
			<content:encoded><![CDATA[<p>曾经在 Ubuntu 中使用过 GAIM，这是一款集成了众多即时通讯软件的小工具，大小在10M左右。今天忽然想到，准备安装，却发现已经更名成了 Pidgin，大家如果希望尝试可以点击<a href="http://www.pidgin.im/">这里</a>下载。</p>
<p>一下是他可以支持的IM软件：</p>
<ul class="condensed">
<li>AIM</li>
<li>Bonjour</li>
<li>Gadu-Gadu</li>
<li>Google Talk</li>
<li>Groupwise</li>
<li>ICQ</li>
<li>IRC</li>
<li>MSN</li>
<li>MySpaceIM</li>
<li>QQ</li>
<li>SILC</li>
<li>SIMPLE</li>
<li>Sametime</li>
<li>XMPP</li>
<li>Yahoo!</li>
<li>Zephyr</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://notes.xmarco.info/2007/12/pidgin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

