<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feedtech.windia.net/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:link href="http://feedtech.windia.net" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feed.feedsky.com/gregtech" type="application/rss+xml"></fs:self_link><lastBuildDate>Fri, 05 Feb 2010 06:34:00 GMT</lastBuildDate><title>月蝎研究</title><description>Gregory 发布的有关技术的文章</description><image><url>http://www.feedsky.com/feed/gregtech/sc/gif</url><title>月蝎研究</title><link>http://blog.windia.net/tech/</link></image><link>http://blog.windia.net/tech/</link><atom:id>tag:blogger.com,1999:blog-18923002</atom:id><openSearch:totalResults>67</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><pubDate>Fri, 05 Feb 2010 06:35:18 GMT</pubDate><dc:creator>noreply@blogger.com (Gregory)</dc:creator><item><title>西数 EARS 绿盘使用心得</title><link>http://blog.windia.net/tech/2010/02/western-digital-ears-hard-drive-review.html</link><thr:total>0</thr:total><description>这周新配了台电脑，主板：微星 P55-CD53 / CPU：Intel i5 750 / 内存：金士顿 DDR3-1333 2G / 显卡：影驰 GTS250 黑将版 / 硬盘：西数 1TB/64M 绿盘（WD10EARS）。&lt;br /&gt;&lt;br /&gt;买回来整体感觉非常好，除了这块西数的新技术 EARS 绿盘。从装 Windows 7 系统开始，到更新系统、安装驱动，系统反应都让人难以忍受。在我 06 年买的笔记本上装 Win7，仅花了不到半个小时，而在这台机器上花了一个多小时。另外用迅雷下载一个几十兆的驱动压缩包，点“开始下载”后，要过 2-3s 界面才会有反应。在使用过程中，硬盘灯大部分时候都长亮，开关机时间也很长，远比我的笔记本开关机慢，系统整体毫无性能可言。这完全不像一台 i 平台的电脑该有的情况。&lt;br /&gt;&lt;br /&gt;经过多番搜索查找，到论坛上询问与讨论，做了如下改进和设置，现在虽然硬盘性能仍不尽如人意，但也算可以忍受。打电话到卖电脑的商家，说硬盘本身没问题不给换，要换也是同样型号的硬盘，因此也只能忍了。&lt;br /&gt;&lt;br /&gt;这里分享一下我做的改进和设置，希望对同样使用西数 EARS 硬盘忍受暴差性能的朋友能有所帮助。&lt;br /&gt;&lt;br /&gt;&lt;b&gt;“高级格式化”技术和 WD Align 软件&lt;/b&gt;&lt;br /&gt;从最近推出的 EARS 系列（有 1.0T/1.5T/2.0T 三个型号）硬盘开始，西数推出了一项称为“高级格式化”的技术，简单的理解，就是将传统硬盘每扇区 512 字节改为每扇区 4K 字节。由于 Vista / Win7 系统都能很好的管理 4K 的扇区，因此如果是在 Vista / Win7 下安装格式化，则不需要做任何特别的设置和操作即可发挥硬盘性能，而在 Windows XP 系统下，则需要用西数提供的专门的软件 WD Align。&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.wdc.com/cn/products/advancedformat/index.asp&quot; rel=&quot;external&quot;&gt;西数官方网站 WD Align 下载&lt;/a&gt;页面详细给出了哪些情况需要使用 WD Align 软件的情况。我的这块硬盘当时装机时是装机师傅用 Ghost 分区然后克隆的操作系统，因此理论上并未发挥硬盘性能。所以特地在 Win7 下安装并执行 WD Align 软件。&lt;br /&gt;&lt;br /&gt;安装和执行过程比较简单，根据提示操作即可。安装完开始执行，程序会自动检测系统中的 EARS 硬盘，确认执行 Alignment 操作后系统重启并进入 WD Align 软件界面。执行转换的过程不需要人工干预。我 1TB 的硬盘，只有 C 盘有大约 5GB 的数据，转换过程耗时约 30 分钟。转换完成后会自动重启，进入 Win7 系统，WD Align 软件自动启动，检查转换是否顺利完成，然后退出。&lt;br /&gt;&lt;br /&gt;执行完 WD Align 的转换操作后，感觉系统性能有明显的提升。桌面窗口、菜单操作明显不像之前有那么多卡顿的感觉。&lt;br /&gt;&lt;br /&gt;&lt;b&gt;开启主板 AHCI 模式及 NCQ 功能&lt;/b&gt;&lt;br /&gt;&lt;a href=&quot;http://zh.wikipedia.org/zh-cn/AHCI&quot;&gt;AHCI&lt;/a&gt;（Serial ATA Advanced Host Controller Interface / 串行ATA高级主控接口），是在Intel的指导下，由多家公司联合研发的接口标准。使用该技术可让 SATA 储存设备启用高级 SATA 功能，例如&lt;a href=&quot;http://zh.wikipedia.org/zh-cn/%E5%8E%9F%E7%94%9F%E6%8C%87%E4%BB%A4%E4%BD%87%E5%88%97&quot; rel=&quot;external&quot;&gt;原生指令队列&lt;/a&gt;（NCQ, Native Command Queuing）及热插拔。&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://zh.wikipedia.org/zh-cn/%E5%8E%9F%E7%94%9F%E6%8C%87%E4%BB%A4%E4%BD%87%E5%88%97&quot; rel=&quot;external&quot;&gt;据 Wikipedia 资料&lt;/a&gt;：使用 NCQ 功能，通过硬盘固件、硬盘控制器以及操作系统三者的互相配合，改善硬盘内部磁区的读取顺序，可以提高硬盘效能约30%，亦能够轻微减轻硬盘损耗的速率。&lt;br /&gt;&lt;br /&gt;从主板 P55-CD53 的说明书上可以看到该主板已经支持 AHCI 模式，而这块新出的硬盘以及 Windows 7 操作系统也理所当然的支持。于是我重启系统到 BIOS 中将 ATA 控制器模式由 IDE 改为 AHCI，重新引导系统，结果 Windows 7 蓝屏，并立即重启了。&lt;br /&gt;&lt;br /&gt;纳闷之余搜索了一番，了解到 AHCI 必须在安装操作系统之前就开启，否则安装后 Windows 7 会认为没有使用 AHCI 模式而屏蔽相关的驱动。不过也搜到&lt;a href=&quot;http://www.ithinkdiff.com/how-to-enable-ahci-in-windows-7-rc-after-installation/&quot; rel=&quot;external&quot;&gt;一篇文章&lt;/a&gt;，讲解通过修改注册表，再开启 BIOS 的 AHCI 模式，然后进入 Windows 7 后，系统就会自动开始安装驱动，从而开启 AHCI 模式。具体的注册表路径为：&lt;blockquote&gt;&lt;div&gt;&lt;code&gt;HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Msahci&lt;/code&gt;&lt;/div&gt;&lt;/blockquote&gt;将值由原来的 3 改为 0 即可。&lt;br /&gt;&lt;br /&gt;照此修改后确实可行，但 AHCI 开启后，HD-Tune、Everest 等软件均无法获取硬盘信息。想起在一篇论坛的帖子中有人提到，安装系统后再开启 AHCI，看起来好像是启用了，但实际对性能并无实际提升。想到目前反正系统也是刚装的，因此索性就在 BIOS 开启 AHCI 的状态下把 Windows 7 重装了一遍，顺便换上了 x64 的版本。&lt;br /&gt;&lt;br /&gt;重装后 HD-Tune 和 Everest 都能顺利查出硬盘信息了，另外安装主板驱动提供的 Intel Matrix Storage Manager 软件后，可以查询到硬盘的 NCQ 功能已经开启。&lt;br /&gt;&lt;br /&gt;至此，整个系统使用起来感觉比刚开始性能有不小的提升。窗口、菜单操作没有明显的卡顿，开关机速度也有非常明显的改观，至少比我笔记本上同样的 Win7 旗舰版要快。尽管从 HD-Tune 的读取测试，FastCopy 软件的文件拷贝测试来看，性能和速度比起网上给出的西数黑盘有较大差距，但这“较差的性能”已经到了一个可以忍受的范围内，毕竟绿盘的卖点是节能、低噪而不是性能和速度。&lt;br /&gt;&lt;br /&gt;最后对于这块西数的新技术 EARS 绿盘，感觉买的比较后悔。或许作为仓库盘来用是不错的选择，但如果是系统盘，完全不值得推荐，价格相差仅几十元的 WD1001FALS 黑盘应该是更好的选择。&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script src=&quot;http://www.google-analytics.com/urchin.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
_uacct = &quot;UA-178540-3&quot;;
urchinTracker();
&lt;/script&gt;
&lt;div id=&quot;sc_image&quot; style=&quot;display:inline;&quot;&gt;&lt;a title=&quot;site stats&quot; class=&quot;statcounter&quot; href=&quot;http://www.statcounter.com/&quot;&gt;&lt;img src=&quot;http://c8.statcounter.com/959241/0/ab2d6787/1/&quot; alt=&quot;site stats&quot; style=&quot;border:none;&quot;/&gt;&lt;/a&gt;&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18923002-4446655837862992877?l=blog.windia.net%2Ftech%2Findex.html' alt='' /&gt;&lt;/div&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/329974024/gregtech/feedsky/s.gif?r=http://blog.windia.net/tech/2010/02/western-digital-ears-hard-drive-review.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/gregtech/329974024/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/gregtech/329974024/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/gregtech?a=283192ff04b7a656228d2d6fd3c2ec58&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/gregtech?i=283192ff04b7a656228d2d6fd3c2ec58&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/gregtech?a=9f9eb98c10fddae82b8dafe5406d2774&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/gregtech?i=9f9eb98c10fddae82b8dafe5406d2774&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</description><category domain="http://www.blogger.com/atom/ns#">知识库</category><category domain="http://www.blogger.com/atom/ns#">高级格式化</category><category domain="http://www.blogger.com/atom/ns#">AHCI</category><category domain="http://www.blogger.com/atom/ns#">硬盘</category><pubDate>Fri, 05 Feb 2010 14:34:00 +0800</pubDate><author>noreply@blogger.com (Gregory)</author><guid isPermaLink="false">tag:blogger.com,1999:blog-18923002.post-4446655837862992877</guid><dc:creator>noreply@blogger.com (Gregory)</dc:creator><fs:srclink>http://blog.windia.net/tech/2010/02/western-digital-ears-hard-drive-review.html</fs:srclink><fs:srcfeed>http://blog.windia.net/tech/rss.xml</fs:srcfeed><fs:itemid>feedsky/gregtech/~7180848/329974024/4180159</fs:itemid></item><item><title>Blogger 将关闭 FTP 发布功能及应对措施</title><link>http://blog.windia.net/tech/2010/01/blogger-ftp.html</link><thr:total>5</thr:total><description>&lt;a href=&quot;http://buzz.blogger.com/&quot; rel=&quot;external&quot;&gt;Blogger Buzz&lt;/a&gt; 上周末&lt;a href=&quot;http://buzz.blogger.com/2010/01/important-note-to-ftp-users.html&quot; rel=&quot;external&quot;&gt;发布消息&lt;/a&gt;称 Blogger 将于 2010 年 3 月 26 日停止 FTP 发布功能，原因是目前所有的活跃 Blogger 用户中，仅有 0.5% 的用户使用 FTP 发布，而 Blogger 用于支持这一功能的资源则远超过这个比率。&lt;br /&gt;&lt;br /&gt;我的 Blog 从 2005 年开始就一直使用 Blogger 的 FTP 功能发布，已经有四年多的时间，也因为这样所以一直可以相对正常的访问。说“相对”是因为 blogger.com 域名被封，时不时的也会引起页面的外部 CSS / JavaScript 资源无法访问，Feed 内容无法访问引起评论失败等问题。现在 Blogger 官方宣布将彻底停止 FTP 功能的支持，将会对我这两个 Blog 带来四年来最大的一次冲击。&lt;br /&gt;&lt;br /&gt;不过可以肯定的是，我不会关闭这两个 Blog，也不回搬家到别家 BSP。其实最近一两年，随着文章数量的增加，利用 FTP 发布已经变得越来越困难，平均十次发布，至少要失败五次。而按现在 Blogger 的机制，无论是发布文章还是有网友发表评论，首页、文章页面以及相关的标签页面都会重建，如果修改模版，则所有的页面都需要重建，这样高的失败率，让人很难觉得这是一个好用的产品。&lt;br /&gt;&lt;br /&gt;由于页面代码优化的需要以及应对 blogger.com 域名从国内无法访问的问题，我已经建立起一套机制实现从 Blogger Feed 下载文章的数据保存到本地数据库，用 PHP 扫描页面进行 XHTML 修改以及用 AJAX 获取相关文章 / 热门文章的功能，现在其实要保持 Blog 继续正常运行，只需要：&lt;ul&gt;&lt;li&gt;在数据同步时将正文部分也下载&lt;/li&gt;&lt;li&gt;利用下载的数据在本地用 PHP 重写 Blog 内容，或生成静态页面&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;这样不但免去了等待漫长的 FTP 发布以及高失败率的问题，也让我维护 Blog 变得更加灵活。&lt;br /&gt;&lt;br /&gt;离 Blogger 停止 FTP 功能还有大约两个月的时间，我想已经足够我做这些改进了。&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script src=&quot;http://www.google-analytics.com/urchin.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
_uacct = &quot;UA-178540-3&quot;;
urchinTracker();
&lt;/script&gt;
&lt;div id=&quot;sc_image&quot; style=&quot;display:inline;&quot;&gt;&lt;a title=&quot;site stats&quot; class=&quot;statcounter&quot; href=&quot;http://www.statcounter.com/&quot;&gt;&lt;img src=&quot;http://c8.statcounter.com/959241/0/ab2d6787/1/&quot; alt=&quot;site stats&quot; style=&quot;border:none;&quot;/&gt;&lt;/a&gt;&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18923002-8973364555696982187?l=blog.windia.net%2Ftech%2Findex.html' alt='' /&gt;&lt;/div&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/329974025/gregtech/feedsky/s.gif?r=http://blog.windia.net/tech/2010/01/blogger-ftp.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/gregtech/329974025/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/gregtech/329974025/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/gregtech?a=0d750795951ccc7b3fc48829ca1b0d2d&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/gregtech?i=0d750795951ccc7b3fc48829ca1b0d2d&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/gregtech?a=b1e948c6cd5137056d1829edbf398f39&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/gregtech?i=b1e948c6cd5137056d1829edbf398f39&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</description><category domain="http://www.blogger.com/atom/ns#">博客维护</category><category domain="http://www.blogger.com/atom/ns#">Blogger</category><category domain="http://www.blogger.com/atom/ns#">FTP</category><pubDate>Mon, 25 Jan 2010 13:04:00 +0800</pubDate><author>noreply@blogger.com (Gregory)</author><guid isPermaLink="false">tag:blogger.com,1999:blog-18923002.post-8973364555696982187</guid><dc:creator>noreply@blogger.com (Gregory)</dc:creator><fs:srclink>http://blog.windia.net/tech/2010/01/blogger-ftp.html</fs:srclink><fs:srcfeed>http://blog.windia.net/tech/rss.xml</fs:srcfeed><fs:itemid>feedsky/gregtech/~7180848/329974025/4180159</fs:itemid></item><item><title>用 Feed 实现 Blogger 分页</title><link>http://blog.windia.net/tech/2009/09/feed-blogger.html</link><thr:total>8</thr:total><description>使用 Blogger 建博客，一个很不爽的问题是在首页下方没有分页功能，这会直接导致有兴趣的读者没有办法方便的翻阅以前的旧帖子；而 Blogger 提供的模板，无论是老的 Template，还是新的 Layout，都没有相关的标签来实现这个功能，因此要加上这个功能，就只能继续 hack 了。&lt;br /&gt;&lt;br /&gt;这两天利用 Blogger 的完整帖子的 Feed，配合 PHP 实现了这个功能。思路为：&lt;ul&gt;&lt;li&gt;读取原始的 index.html，把帖子的部分去掉，也就是 &amp;lt;Blogger&amp;gt;...&amp;lt;/Blogger&amp;gt; 这段内容&lt;/li&gt;&lt;li&gt;读取以下 Feed 地址，解析出文章的日期、时间、标题、正文、标签等，按照原来模板的格式，用 PHP 输出到原来 index.html 放文章的地方&lt;blockquote&gt;&lt;div&gt;http://www.blogger.com/feeds/&lt;i&gt;&lt;b&gt;[blogId]&lt;/b&gt;&lt;/i&gt;/posts/full?max-results=&lt;i&gt;&lt;b&gt;[step]&lt;/b&gt;&lt;/i&gt;&amp;start-index=&lt;i&gt;&lt;b&gt;[startIndex]&lt;/b&gt;&lt;/i&gt;&amp;orderby=published&lt;/div&gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;根据当前页码以及总帖数计算分页，在页面底部添加分页链接&lt;/li&gt;&lt;li&gt;如果有条件，可以利用 .htaccess 文件，将分页的 URL 由原来的 &lt;blockquote&gt;&lt;div&gt;&lt;code&gt;xxx.php?page=x&lt;/code&gt;&lt;/div&gt;&lt;/blockquote&gt;形式替换成对搜索引擎更友好的 &lt;blockquote&gt;&lt;div&gt;&lt;code&gt;/index/x&lt;/code&gt;&lt;/div&gt;&lt;/blockquote&gt;形式&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;如此一来，就可以在自己不存储任何文章数据的情况下，实现分页功能。当然，直到目前，&lt;a href=&quot;http://blog.windia.net/tech/2009/06/gfw-web.html&quot;&gt;以上的 Feed 地址仍然是被墙&lt;/a&gt;的，需要翻墙或者使用 HTTP 代理才能成功地获取内容。&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script src=&quot;http://www.google-analytics.com/urchin.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
_uacct = &quot;UA-178540-3&quot;;
urchinTracker();
&lt;/script&gt;
&lt;div id=&quot;sc_image&quot; style=&quot;display:inline;&quot;&gt;&lt;a title=&quot;site stats&quot; class=&quot;statcounter&quot; href=&quot;http://www.statcounter.com/&quot;&gt;&lt;img src=&quot;http://c8.statcounter.com/959241/0/ab2d6787/1/&quot; alt=&quot;site stats&quot; style=&quot;border:none;&quot;/&gt;&lt;/a&gt;&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18923002-3261380969621729047?l=blog.windia.net%2Ftech%2Findex.html' alt='' /&gt;&lt;/div&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/329974026/gregtech/feedsky/s.gif?r=http://blog.windia.net/tech/2009/09/feed-blogger.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/gregtech/329974026/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/gregtech/329974026/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/gregtech?a=e57a8d03a320530779c5ec0079a3deeb&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/gregtech?i=e57a8d03a320530779c5ec0079a3deeb&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/gregtech?a=b87b7ed0698be352a553f23b06e4d9eb&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/gregtech?i=b87b7ed0698be352a553f23b06e4d9eb&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</description><category domain="http://www.blogger.com/atom/ns#">博客维护</category><category domain="http://www.blogger.com/atom/ns#">PHP</category><category domain="http://www.blogger.com/atom/ns#">Webmaster</category><category domain="http://www.blogger.com/atom/ns#">模版</category><category domain="http://www.blogger.com/atom/ns#">BloggerHack</category><category domain="http://www.blogger.com/atom/ns#">Feed</category><category domain="http://www.blogger.com/atom/ns#">Web</category><pubDate>Mon, 21 Sep 2009 15:18:00 +0800</pubDate><author>noreply@blogger.com (Gregory)</author><guid isPermaLink="false">tag:blogger.com,1999:blog-18923002.post-3261380969621729047</guid><dc:creator>noreply@blogger.com (Gregory)</dc:creator><fs:srclink>http://blog.windia.net/tech/2009/09/feed-blogger.html</fs:srclink><fs:srcfeed>http://blog.windia.net/tech/rss.xml</fs:srcfeed><fs:itemid>feedsky/gregtech/~7180848/329974026/4180159</fs:itemid></item><item><title>phpMyAdmin 使用时 Apache 崩溃问题</title><link>http://blog.windia.net/tech/2009/08/phpmyadmin-crashes-apache.html</link><thr:total>1</thr:total><description>最近笔记本的硬盘时常怪响，因此换了一块硬盘以防万一，系统重装了，因此开发环境 PHP + MySQL + Apache 也需要重搭。因为已经做过很多次，做起来轻车熟路，然而装好 phpMyAdmin 以后，在登入界面输入用户名密码点登入，居然弹出一个 Windows 应用程序进程崩溃的 report 对话框：Apache 崩溃了……&lt;br /&gt;&lt;br /&gt;重新试了几次，仍然如此，换以前硬盘上的 PHP 目录（保证 PHP 的配置和以前一致），无效；换 Apache 版本，无效；换 phpMyAdmin 较早的可以正常使用的版本，无效；用 MySQL 官方的 GUI 客户端登录，可以读写数据，因此不是 MySQL 的问题，于是我就没辙了……&lt;br /&gt;&lt;br /&gt;上 Google，发现很多人都有类似的问题，最早的帖子甚至可以追溯到 2003 年，然而没有看到一个有用的解释或者回答，但终究找到一个网页提到架设 PHP + MySQL + Apache 的时候，要保持 MySQL 的客户端连接库 libmysql.dll 版本一致，最好使用 PHP 自带的 dll。&lt;br /&gt;&lt;br /&gt;想到这次设置 PHP 时，没有像以前把所有的 dll 都拷贝到 %windows_root%\system32 下，而只是直接的把 D:\PHP 加入到了 PATH 环境变量中。于是马上照以前的办法，把 PHP 包中的相关 dll 都拷贝到了 system32 下，再启动 Apache，进 phpMyAdmin，问题解决了。&lt;br /&gt;&lt;br /&gt;用了一会儿，问题有时候仍然存在，于是又把 %Apache%\bin\libmysql.dll 删除（或改名），则问题解决了。但是在 phpMyAdmin 登入后，首页下方会提示说当前使用的 MySQL 客户端版本和服务器版本不相符，可能导致不可预料的结果。&lt;br /&gt;&lt;br /&gt;如果各位对此问题有没有更透彻的解释以及彻底的解决办法，望不吝赐教。&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script src=&quot;http://www.google-analytics.com/urchin.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
_uacct = &quot;UA-178540-3&quot;;
urchinTracker();
&lt;/script&gt;
&lt;div id=&quot;sc_image&quot; style=&quot;display:inline;&quot;&gt;&lt;a title=&quot;site stats&quot; class=&quot;statcounter&quot; href=&quot;http://www.statcounter.com/&quot;&gt;&lt;img src=&quot;http://c8.statcounter.com/959241/0/ab2d6787/1/&quot; alt=&quot;site stats&quot; style=&quot;border:none;&quot;/&gt;&lt;/a&gt;&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18923002-2808082746662152830?l=blog.windia.net%2Ftech%2Findex.html' alt='' /&gt;&lt;/div&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/329974027/gregtech/feedsky/s.gif?r=http://blog.windia.net/tech/2009/08/phpmyadmin-crashes-apache.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/gregtech/329974027/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/gregtech/329974027/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/gregtech?a=c366a84e2002da2efaa30c0c30a09cb7&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/gregtech?i=c366a84e2002da2efaa30c0c30a09cb7&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/gregtech?a=481a3ddef5a6f2e0ee936138957e9e66&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/gregtech?i=481a3ddef5a6f2e0ee936138957e9e66&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</description><category domain="http://www.blogger.com/atom/ns#">知识库</category><category domain="http://www.blogger.com/atom/ns#">MySQL</category><category domain="http://www.blogger.com/atom/ns#">PHP</category><category domain="http://www.blogger.com/atom/ns#">数据库</category><category domain="http://www.blogger.com/atom/ns#">Web</category><pubDate>Sun, 16 Aug 2009 23:26:00 +0800</pubDate><author>noreply@blogger.com (Gregory)</author><guid isPermaLink="false">tag:blogger.com,1999:blog-18923002.post-2808082746662152830</guid><dc:creator>noreply@blogger.com (Gregory)</dc:creator><fs:srclink>http://blog.windia.net/tech/2009/08/phpmyadmin-crashes-apache.html</fs:srclink><fs:srcfeed>http://blog.windia.net/tech/rss.xml</fs:srcfeed><fs:itemid>feedsky/gregtech/~7180848/329974027/4180159</fs:itemid></item><item><title>Google 宣布涉足操作系统：Chrome</title><link>http://blog.windia.net/tech/2009/07/google-declares-to-step-in-os-chrome.html</link><thr:total>1</thr:total><description>&lt;div style=&quot;float: right; margin: 0 0 7px 7px;&quot;&gt;&lt;img src=&quot;http://blog.windia.net/tech/imgs/article/2009-07-08/google-chrome.jpg&quot; width=&quot;348&quot; height=&quot;400&quot; alt=&quot;Google Chrome&quot;/&gt;&lt;/div&gt;Google 官方博客今天早些时候发布文章，&lt;a href=&quot;http://googleblog.blogspot.com/2009/07/introducing-google-chrome-os.html&quot; rel=&quot;external&quot;&gt;Introducing Google Chrome OS&lt;/a&gt;，Google 黑板报随后在下午也发布了此文的中文翻译：&lt;a href=&quot;http://googlechinablog.com/2009/07/chrome.html&quot; rel=&quot;external&quot;&gt;谷歌 Chrome 操作系统&lt;/a&gt;。&lt;br /&gt;&lt;br /&gt;Google 自九十年进入人们的视线，到现在将近二十年时间，从名不见经传的小公司，已经成为世人瞩目的具有极大影响力的互联网巨舰。坊间曾一度传闻 Google 终将涉足操作系统领域，而前两年推出 Android 手机系统也被认为是对涉足操作系统的投石问路。而现在，终于为我们揭开了这层面纱，比想象中要来的早的多，快的多。&lt;br /&gt;&lt;br /&gt;如果说 Chrome 浏览器足以让微软不安的话，那么 Chrome 操作系统对于微软可以说是一枚重磅炸弹。Google 在行业一项有着较好的声誉，其产品也从来不缺乏用户、支持者乃至狂热者。有人说 Google 越来越巨大，并不容乐观，因为极有可能发展成为第二个微软，最终变成另一个邪恶的垄断帝国。但就目前的形式来看，在微软的 Vista 叫好不叫座，强行推行仍无人问津，仓促推出 Windows 7；IE 系列一代不如一代，市场占有率持续下滑的今天，如果有另外一家公司为我们提供更有竞争力的产品、更新的理念、甚至一场革命，未尝不是一件好事。&lt;br /&gt;&lt;br /&gt;当然，以上的担忧也未必就是杞人忧天。这就像一位骁勇善战的将军，为广大民众打败入侵的外敌，带来和平与繁荣，集权利、荣誉与威望于一身，最后到底是成为独裁的暴君，还是继续服务于人民的福祉？期待 Google 能够给我们一个正面的范例。&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script src=&quot;http://www.google-analytics.com/urchin.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
_uacct = &quot;UA-178540-3&quot;;
urchinTracker();
&lt;/script&gt;
&lt;div id=&quot;sc_image&quot; style=&quot;display:inline;&quot;&gt;&lt;a title=&quot;site stats&quot; class=&quot;statcounter&quot; href=&quot;http://www.statcounter.com/&quot;&gt;&lt;img src=&quot;http://c8.statcounter.com/959241/0/ab2d6787/1/&quot; alt=&quot;site stats&quot; style=&quot;border:none;&quot;/&gt;&lt;/a&gt;&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18923002-5185141313466338024?l=blog.windia.net%2Ftech%2Findex.html' alt='' /&gt;&lt;/div&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/329974028/gregtech/feedsky/s.gif?r=http://blog.windia.net/tech/2009/07/google-declares-to-step-in-os-chrome.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/gregtech/329974028/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/gregtech/329974028/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/gregtech?a=4f941553587fa89b8b7ffb6f12307afa&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/gregtech?i=4f941553587fa89b8b7ffb6f12307afa&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/gregtech?a=8829bdecf05957fe7915815a4382b3f6&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/gregtech?i=8829bdecf05957fe7915815a4382b3f6&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</description><category domain="http://www.blogger.com/atom/ns#">操作系统</category><category domain="http://www.blogger.com/atom/ns#">Google</category><category domain="http://www.blogger.com/atom/ns#">Microsoft</category><category domain="http://www.blogger.com/atom/ns#">Chrome</category><pubDate>Wed, 08 Jul 2009 18:53:00 +0800</pubDate><author>noreply@blogger.com (Gregory)</author><guid isPermaLink="false">tag:blogger.com,1999:blog-18923002.post-5185141313466338024</guid><dc:creator>noreply@blogger.com (Gregory)</dc:creator><fs:srclink>http://blog.windia.net/tech/2009/07/google-declares-to-step-in-os-chrome.html</fs:srclink><fs:srcfeed>http://blog.windia.net/tech/rss.xml</fs:srcfeed><fs:itemid>feedsky/gregtech/~7180848/329974028/4180159</fs:itemid></item><item><title>Gmail 结束 Beta</title><link>http://blog.windia.net/tech/2009/07/gmail-is-now-out-of-beta.html</link><thr:total>1</thr:total><description>&lt;div style=&quot;margin: 0 0 7px 7px; float: right;&quot;&gt;&lt;img src=&quot;http://blog.windia.net/tech/imgs/article/2009-07-08/gmail_out_of_beta.png&quot; width=&quot;320&quot; height=&quot;168&quot; alt=&quot;Gmail Out of Beta&quot;/&gt;&lt;/div&gt;&lt;a href=&quot;http://googleblog.blogspot.com/2009/07/google-apps-is-out-of-beta-yes-really.html&quot; rel=&quot;external&quot;&gt;Google 官方博客&lt;/a&gt;及 Twitter 上的 &lt;a href=&quot;http://twitter.com/google&quot; rel=&quot;external&quot;&gt;@google&lt;/a&gt; 昨晚都发布消息，称 &lt;a href=&quot;http://mail.google.com&quot; rel=&quot;external&quot;&gt;Gmail&lt;/a&gt;、&lt;a href=&quot;http://docs.google.com&quot; rel=&quot;external&quot;&gt;Google Docs&lt;/a&gt;、&lt;a href=&quot;http://www.google.com/calendar/&quot; rel=&quot;external&quot;&gt;Google Calendar&lt;/a&gt; 以及 &lt;a href=&quot;http://www.google.com/talk&quot; rel=&quot;external&quot;&gt;Google Talk&lt;/a&gt; 结束 Beta。“Beta” 标记将从这些产品的 LOGO 中去除，但无论是否 “Beta”，Google 都将继续对这些 WEB 应用程序进行创新和改进。&lt;br /&gt;&lt;br /&gt;记得自己在 Gmail 刚推出的时候，就收到邀请注册了，并一度做为自己的主要私人邮箱使用，已经有很多年了。（据 Solidot 文章，Gmail 于 2004 年 3 月 31 日推出，所以到现在已经有 5 年多了。）&lt;br /&gt;&lt;br /&gt;一项以及多项相关产品有如此长的 BETA 期，这是很少见的。加上我所在公司的其它部门曾经做过 Android 平台 API 的单元测试工作，据说该平台自推出后的很长一段时间，该 API 中 bug 非常多且 API 文档混乱。另外据我多年使用 Blogger 作为博客平台的经验，其 bug 之多也是在公众运营的产品中遥遥领先的。&lt;br /&gt;&lt;br /&gt;尽管 Google 的创新能力和“不作恶”是另世人和广大互联网用户称道的，但以上事实也让我非常怀疑 Google 内部的代码质量控制。现在此四项产品的最终结束 Beta，应该可以说对 Google 的形象起到了长远的积极作用，也希望 Google 能为我们提供更多更稳定更惊艳的互联网产品。&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script src=&quot;http://www.google-analytics.com/urchin.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
_uacct = &quot;UA-178540-3&quot;;
urchinTracker();
&lt;/script&gt;
&lt;div id=&quot;sc_image&quot; style=&quot;display:inline;&quot;&gt;&lt;a title=&quot;site stats&quot; class=&quot;statcounter&quot; href=&quot;http://www.statcounter.com/&quot;&gt;&lt;img src=&quot;http://c8.statcounter.com/959241/0/ab2d6787/1/&quot; alt=&quot;site stats&quot; style=&quot;border:none;&quot;/&gt;&lt;/a&gt;&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18923002-3307922626891641345?l=blog.windia.net%2Ftech%2Findex.html' alt='' /&gt;&lt;/div&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/329974029/gregtech/feedsky/s.gif?r=http://blog.windia.net/tech/2009/07/gmail-is-now-out-of-beta.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/gregtech/329974029/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/gregtech/329974029/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/gregtech?a=2c95837335a00c2bc5f014cba5089e02&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/gregtech?i=2c95837335a00c2bc5f014cba5089e02&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/gregtech?a=790f88051dda4e65db7b70055bb43d20&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/gregtech?i=790f88051dda4e65db7b70055bb43d20&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</description><category domain="http://www.blogger.com/atom/ns#">Google</category><category domain="http://www.blogger.com/atom/ns#">Blogger</category><category domain="http://www.blogger.com/atom/ns#">Web</category><pubDate>Wed, 08 Jul 2009 10:19:00 +0800</pubDate><author>noreply@blogger.com (Gregory)</author><guid isPermaLink="false">tag:blogger.com,1999:blog-18923002.post-3307922626891641345</guid><dc:creator>noreply@blogger.com (Gregory)</dc:creator><fs:srclink>http://blog.windia.net/tech/2009/07/gmail-is-now-out-of-beta.html</fs:srclink><fs:srcfeed>http://blog.windia.net/tech/rss.xml</fs:srcfeed><fs:itemid>feedsky/gregtech/~7180848/329974029/4180159</fs:itemid></item><item><title>让 Google 为你导游</title><link>http://blog.windia.net/tech/2009/07/google-touring-guide.html</link><thr:total>0</thr:total><description>&lt;a href=&quot;http://cn.engadget.com/&quot; rel=&quot;external&quot;&gt;瘾科技&lt;/a&gt;&lt;a href=&quot;http://cn.engadget.com/2009/07/07/google-city-tour-test/&quot; rel=&quot;external&quot;&gt;消息&lt;/a&gt;：&lt;a href=&quot;http://www.googlelabs.com/&quot; rel=&quot;external&quot;&gt;Google 实验室&lt;/a&gt;最近推出新服务 - &lt;a href=&quot;http://citytours.googlelabs.com&quot; rel=&quot;external&quot;&gt;Google City Tours&lt;/a&gt;。&lt;br /&gt;&lt;br /&gt;这个服务利用 &lt;a href=&quot;http://maps.google.com&quot; rel=&quot;external&quot;&gt;Google Map&lt;/a&gt; 作蓝本，在 Google Map 上加入了旅行导航。你可以在一个城市中加入不同的景点，然后让 Google 作导游，为你度身订造旅行路线。&lt;br /&gt;&lt;br /&gt;Google City Tour 已经预先准备一些数据，像博物馆的开放时间、脚程时间等等。基本上可以帮你规划一条不错的路线，对背包客来说是一个不错的选择。因为利用 Google City Tours 来作一个蓝图，再更改自家行程，较从零开始更方便。&lt;br /&gt;&lt;br /&gt;现在 Google City Tour 只有一些欧美主要城市的数据，未有加入亚洲城市。而且预设的建议景点也是博物馆，要加入其它的地点要手动加入。&lt;br /&gt;&lt;br /&gt;看到这则消息，首先想到的就是今年 3 月在欧洲出差时，去巴塞罗那和罗马旅行的事情。由于人生地不熟，加上语言也不怎么通，所以在订好机票和旅店后，自己也花了大量的时间做功课，为紧凑的周末做好安排。当时如果有这项服务就好了，可以省去很多人工的查找和计算工作。&lt;br /&gt;&lt;br /&gt;不过，从经验上来看，这项服务要能在手机上使用才方便。在欧洲城市旅游，如果不是跟团的话，通常都是徒步加市内公共交通的方式，很难想象时不时的掏出笔记本查看下一个景点的地点和方向。目前也还不太清楚这项服务是否能够用在手机上，不过倒不妨说说自己当时的解决方案。&lt;br /&gt;&lt;br /&gt;先在 Google Maps 和 Google Earth 上实现查找了所有著名景点的位置并安排了路线，然后存成 KML 文件，并把文件放到可以公共访问的网站上。通过 KML 文件的 URL，可以把景点的位置和路线导入到 Google Maps，并以此共享给同行的其他旅伴。最关键的，是要有一部支持 GPS 的手机，安装好移动版的 Google Maps 后，可以通过 URL 打开之前准备好的 KML 文件，从而把路线安排导入到手机，这样，在旅行的时候，便可以随时拿出手机查询当前的位置，行进方向，以及要去的景点所在的位置。&lt;br /&gt;&lt;br /&gt;当然，纸质的地图也是非常必要的，原因在于其一手机屏幕一般不够大，很难有个总体的概览，第二，最重要的，手机地图上的地铁和公交站信息可能不太完整，而通常当地提供的旅游用地图就有比较详细的公交地铁站的位置以及另外的线路信息，这对于徒步自由旅行来说，是非常方便的。刚出地铁站，可能一时很难搞清楚位置和方向，这个时候再掏出手机上的 Google Maps，通过 GPS 定位后，就知道自己的位置以及该行进的方向了。&lt;br /&gt;&lt;br /&gt;所以强烈推荐纸质传统地图加手机 Google Maps 来配合使用，不过记得要给手机充足电，有必要的话另备一块电池。GPS 和 GPRS 同时开启，可是很耗电的。&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script src=&quot;http://www.google-analytics.com/urchin.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
_uacct = &quot;UA-178540-3&quot;;
urchinTracker();
&lt;/script&gt;
&lt;div id=&quot;sc_image&quot; style=&quot;display:inline;&quot;&gt;&lt;a title=&quot;site stats&quot; class=&quot;statcounter&quot; href=&quot;http://www.statcounter.com/&quot;&gt;&lt;img src=&quot;http://c8.statcounter.com/959241/0/ab2d6787/1/&quot; alt=&quot;site stats&quot; style=&quot;border:none;&quot;/&gt;&lt;/a&gt;&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18923002-7240477948463396490?l=blog.windia.net%2Ftech%2Findex.html' alt='' /&gt;&lt;/div&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/329974030/gregtech/feedsky/s.gif?r=http://blog.windia.net/tech/2009/07/google-touring-guide.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/gregtech/329974030/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/gregtech/329974030/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/gregtech?a=ff4d70c54e07e32e6ded3f412dfc47c4&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/gregtech?i=ff4d70c54e07e32e6ded3f412dfc47c4&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/gregtech?a=d700f078f9bf1954f16121a2ad23936f&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/gregtech?i=d700f078f9bf1954f16121a2ad23936f&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</description><category domain="http://www.blogger.com/atom/ns#">手机</category><category domain="http://www.blogger.com/atom/ns#">地图</category><category domain="http://www.blogger.com/atom/ns#">Google</category><category domain="http://www.blogger.com/atom/ns#">GPS</category><pubDate>Tue, 07 Jul 2009 15:47:00 +0800</pubDate><author>noreply@blogger.com (Gregory)</author><guid isPermaLink="false">tag:blogger.com,1999:blog-18923002.post-7240477948463396490</guid><dc:creator>noreply@blogger.com (Gregory)</dc:creator><fs:srclink>http://blog.windia.net/tech/2009/07/google-touring-guide.html</fs:srclink><fs:srcfeed>http://blog.windia.net/tech/rss.xml</fs:srcfeed><fs:itemid>feedsky/gregtech/~7180848/329974030/4180159</fs:itemid></item><item><title>&lt;Blogger&gt; 模板标签生成奇怪 Javascript</title><link>http://blog.windia.net/tech/2009/07/tag-generates-strange-javascript.html</link><thr:total>4</thr:total><description>昨天由于有新的评论，有一篇帖子的页面被重新生成，然后页面就出现了一些奇怪的问题。仔细查看源代码后，发现在生成页面的时候，模板里面所有的 &amp;lt;/Blogger&amp;gt; 标签的画面，都被加上了一段奇怪的 JavaScript 代码：&lt;blockquote&gt;&lt;div&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;http://www.blogger.com/static/v1/common/js/327583163-csitaillib.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;script&amp;gt;if (typeof(window.attachCsiOnload) != 'undefined' &amp;amp;&amp;amp; window.attachCsiOnload != null) { window.attachCsiOnload('ext_blogspot'); }&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;br /&gt;重新发布了几次仍然是这样，因此推测可能是 Blogger 做了更新。在 Google 上搜索了一下，发现很多 Classic Template 的使用者都发现了相同的问题，并且报告在 &lt;a href=&quot;http://www.google.com/support/forum/p/blogger?hl=en&quot; rel=&quot;external&quot;&gt;Blogger 的 Google Groups 帮助讨论组&lt;/a&gt;，如&lt;a href=&quot;http://www.google.com/support/forum/p/blogger/thread?fid=08b42c131603d6c200046dac6940711b&amp;hl=en&quot;&gt;这篇帖子&lt;/a&gt;，还有&lt;a href=&quot;http://www.google.com/support/forum/p/blogger/thread?tid=5a2a56deb55a6ee0&amp;hl=en&quot; rel=&quot;external&quot;&gt;这里&lt;/a&gt;，以及&lt;a href=&quot;http://www.google.com/support/forum/p/blogger/thread?tid=36c362c289aa5724&amp;hl=en&quot; rel=&quot;external&quot;&gt;这里&lt;/a&gt;。虽然有很多网友提出了各种临时的解决办法，但看起来都不尽如人意。&lt;br /&gt;&lt;br /&gt;个人认为 Blogger 这个新的功能添加得不够专业。先且不论是什么功能，光是直接在&amp;lt;/Blogger&amp;gt; 标签后加入 &amp;lt;Script&amp;gt; 就不可取，因为 &lt;code&gt;Blogger&lt;/code&gt; 这一对标签里面包括和帖子相关的数据，页面上凡是需要帖子标题、ID、时间等相关信息的地方都会用到这一对标签，它可能出现在标题、正文甚至其它的 JavaScript 中（例如我就需要通过这对标签取得帖子的 ID 并作为参数传给 JavaScript 函数）。&lt;br /&gt;&lt;br /&gt;目前暂时通过人工编辑 HTML 去掉了相关的 Script，如果近期 Blogger 不能解决这个问题的话，就只有另外写 PHP 程序来自动处理了。&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Update July. 2, 2009:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;在&lt;a href=&quot;http://www.google.com/support/forum/p/blogger/thread?fid=08b42c131603d6c200046dac6940711b&amp;hl=en&quot; rel=&quot;external&quot;&gt;这篇帖子&lt;/a&gt;中一位来自 The Blogger Team 的用户提到，这的确是他们发现的一个 bug，将很快被修复。让我们拭目以待吧……&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Update July. 8, 2009:&lt;/strong&gt;&lt;br /&gt;这位来自 The Blogger Team 的用户提到，他们已经在 &lt;a href=&quot;http://knownissues.blogspot.com/&quot; rel=&quot;external&quot;&gt;Blogger 的 Known Issues 网站&lt;/a&gt;上记录了&lt;a href=&quot;http://knownissues.blogspot.com/2009/07/javascript-inserted-in-some-classic.html&quot; rel=&quot;external&quot;&gt;这一问题以便跟踪&lt;/a&gt;。从该帖内容来看，他们只认为问题只出在不该在 &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt; 之间输出 script 内容。难道他们不知道这一对 &amp;lt;Blogger&amp;gt;&amp;lt;/Blogger&amp;gt; 还可能用在用户自己定义的 JavaScript 中吗？&lt;br /&gt;&lt;br /&gt;&lt;!--&lt;strong&gt;Update August. 20, 2009:&lt;/strong&gt;&lt;br /&gt;今天收到新的评论，因此页面会被自动重建，但发现之前的页面错误已经没有了，因此这个问题 Blogger 估计已经修复了……--&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script src=&quot;http://www.google-analytics.com/urchin.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
_uacct = &quot;UA-178540-3&quot;;
urchinTracker();
&lt;/script&gt;
&lt;div id=&quot;sc_image&quot; style=&quot;display:inline;&quot;&gt;&lt;a title=&quot;site stats&quot; class=&quot;statcounter&quot; href=&quot;http://www.statcounter.com/&quot;&gt;&lt;img src=&quot;http://c8.statcounter.com/959241/0/ab2d6787/1/&quot; alt=&quot;site stats&quot; style=&quot;border:none;&quot;/&gt;&lt;/a&gt;&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18923002-1761748597802968723?l=blog.windia.net%2Ftech%2Findex.html' alt='' /&gt;&lt;/div&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/329974031/gregtech/feedsky/s.gif?r=http://blog.windia.net/tech/2009/07/tag-generates-strange-javascript.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/gregtech/329974031/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/gregtech/329974031/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/gregtech?a=17cccc2e033c6de212488fc6829ffbe9&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/gregtech?i=17cccc2e033c6de212488fc6829ffbe9&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/gregtech?a=e94c2fe8b890922bebc0df3e6d749b8d&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/gregtech?i=e94c2fe8b890922bebc0df3e6d749b8d&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</description><category domain="http://www.blogger.com/atom/ns#">博客维护</category><category domain="http://www.blogger.com/atom/ns#">Blogger</category><category domain="http://www.blogger.com/atom/ns#">HTML</category><category domain="http://www.blogger.com/atom/ns#">JavaScript</category><pubDate>Wed, 01 Jul 2009 13:07:00 +0800</pubDate><author>noreply@blogger.com (Gregory)</author><guid isPermaLink="false">tag:blogger.com,1999:blog-18923002.post-1761748597802968723</guid><dc:creator>noreply@blogger.com (Gregory)</dc:creator><fs:srclink>http://blog.windia.net/tech/2009/07/tag-generates-strange-javascript.html</fs:srclink><fs:srcfeed>http://blog.windia.net/tech/rss.xml</fs:srcfeed><fs:itemid>feedsky/gregtech/~7180848/329974031/4180159</fs:itemid></item><item><title>GFW 开始识别 WEB 代理</title><link>http://blog.windia.net/tech/2009/06/gfw-web.html</link><thr:total>3</thr:total><description>之前提到&lt;a href=&quot;http://blog.windia.net/tech/2009/05/comment-function-fixed.html&quot;&gt;用 HTTP 中转的办法解决了评论的问题&lt;/a&gt;，今天发现 Blog 上所有的评论又失效了…… 开始以为是因为页面直接引用了 www.blogger.com 域名的某些内容而导致撞墙，但仔细分析后发现，我的 HTTP 中转直接不能访问了，而且之后我的 HTTP 中转程序所在的域名也会在一小段时间内无法访问…… 但同时，用该中转能够访问原本没有被封的内容，比如 Flickr……&lt;br /&gt;&lt;br /&gt;考虑到传入的目标 URL 参数是用 Base64 和 URL Encode 方式处理的，不存在任何加密，而且这和大多数的　WEB 代理相同，所以推测是现在 GFW 能够识别用 Base64 编码的内容，如果该内容刚好是被屏蔽的网址，则阻拦该 HTTP 请求，并且屏蔽该请求所在的域…… 从而让公众无法通过 WEB 代理访问屏蔽内容。&lt;br /&gt;&lt;br /&gt;当然，解决的办法也简单，如果不能简单通过 Base64 decode 得到一个 URL，那么它也就无从判断是不是被屏蔽的网址了……&lt;br /&gt;&lt;br /&gt;我起先想直接把原网址按位取反再 Base64 就行了，结果同事说我作为一个 IT 人士这么干太低级了…… 他们说用 RSA 吧，但是也犯不着这么兴师动众吧…… &lt;br /&gt;&lt;br /&gt;还是 Liuming 小弟比较聪明，提供了一个比按位取反高级，又比 RSA 简单的办法，那就是…… &lt;br /&gt;&lt;br /&gt;两次 Base64…… &amp;gt;.&amp;lt;&amp;quote;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script src=&quot;http://www.google-analytics.com/urchin.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
_uacct = &quot;UA-178540-3&quot;;
urchinTracker();
&lt;/script&gt;
&lt;div id=&quot;sc_image&quot; style=&quot;display:inline;&quot;&gt;&lt;a title=&quot;site stats&quot; class=&quot;statcounter&quot; href=&quot;http://www.statcounter.com/&quot;&gt;&lt;img src=&quot;http://c8.statcounter.com/959241/0/ab2d6787/1/&quot; alt=&quot;site stats&quot; style=&quot;border:none;&quot;/&gt;&lt;/a&gt;&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18923002-177570432883061984?l=blog.windia.net%2Ftech%2Findex.html' alt='' /&gt;&lt;/div&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/329974032/gregtech/feedsky/s.gif?r=http://blog.windia.net/tech/2009/06/gfw-web.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/gregtech/329974032/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/gregtech/329974032/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/gregtech?a=f16524c25414a0f722bd49a279ba2b4e&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/gregtech?i=f16524c25414a0f722bd49a279ba2b4e&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/gregtech?a=f124f59be851351bd14bd77dbbd08e9f&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/gregtech?i=f124f59be851351bd14bd77dbbd08e9f&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</description><category domain="http://www.blogger.com/atom/ns#">HTTP</category><category domain="http://www.blogger.com/atom/ns#">BloggerHack</category><category domain="http://www.blogger.com/atom/ns#">Blogger</category><category domain="http://www.blogger.com/atom/ns#">Web</category><pubDate>Fri, 19 Jun 2009 19:02:00 +0800</pubDate><author>noreply@blogger.com (Gregory)</author><guid isPermaLink="false">tag:blogger.com,1999:blog-18923002.post-177570432883061984</guid><dc:creator>noreply@blogger.com (Gregory)</dc:creator><fs:srclink>http://blog.windia.net/tech/2009/06/gfw-web.html</fs:srclink><fs:srcfeed>http://blog.windia.net/tech/rss.xml</fs:srcfeed><fs:itemid>feedsky/gregtech/~7180848/329974032/4180159</fs:itemid></item><item><title>Google 邮箱收到 Bing 发来的邮件</title><link>http://blog.windia.net/tech/2009/06/email-received-from-bing-webmaster.html</link><thr:total>0</thr:total><description>今天早上 Google 邮箱收到 Bing 发来的题为“Discover Microsoft's new Search services”的邮件，声称微软发布了新的搜索引擎服务，并提供了新的 webmaster 工具 &lt;a href=&quot;http://www.bing.com/webmaster&quot; rel=&quot;external&quot;&gt;www.bing.com/webmaster&lt;/a&gt;。&lt;br /&gt;&lt;br /&gt;然而，由于众所周知的原因，Bing 在当下无法访问，微软在这个时候让 Bing 上线原本已经不合时宜，现在又在这个把邀请邮件发到 Google 邮箱，提供一个无法访问的链接，实在是为微软感到可惜。&lt;br /&gt;&lt;br /&gt;既然如此有诚意，还是用代理打开来看看吧。从界面和内容上看，与微软先前的 &lt;a href=&quot;http://blog.windia.net/tech/2008/10/live-search-sitemap.html&quot;&gt;Live Search Webmaster Center&lt;/a&gt; 如出一辙，加上里头已经有了我两个 Blog 的 Sitemap 信息，可以看出这个 Bing 就是从先前的 Live Search 改头换面升级而来。这大概也是为什么 Bing 上线第一天就能够搜到“&lt;a href=&quot;http://www.bing.com/search?q=%E6%9C%88%E8%9D%8E%E7%A0%94%E7%A9%B6&amp;go=&amp;form=QBLH&quot; rel=&quot;external&quot;&gt;月蝎研究&lt;/a&gt;”和我的另一个 Blog “&lt;a href=&quot;http://www.bing.com/search?q=%E4%BB%8A%E6%97%A5%E6%97%A0%E5%A4%A7%E4%BA%8B&amp;go=&amp;form=QBRE&quot; rel=&quot;external&quot;&gt;今日无大事&lt;/a&gt;”。&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://blog.windia.net/tech/imgs/article/2009-06-04/bing-webmaster-center.jpg&quot;&gt;&lt;img src=&quot;http://blog.windia.net/tech/imgs/article/2009-06-04/bing-webmaster-center_thumb.jpg&quot; width=&quot;600&quot; height=&quot;421&quot; alt=&quot;Bing Webmaster Center&quot;/&gt;&lt;br /&gt;微软新推出的 Bing Webmaster 工具&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;开始以为微软的邮件发到 Google 邮箱是为了故意挖取 &lt;a href=&quot;http://www.google.com/webmaster&quot; rel=&quot;external&quot;&gt;Google Webmaster Tools&lt;/a&gt; 的用户，但后来发现由于 Bing 就是原来的 Live Search，而早先我已将自己的 Google 邮箱登记为 Live Search Webmaster Center 的联系邮箱，所以这次是我自己以小人之心度君子之腹了。&lt;br /&gt;&lt;br /&gt;另外，微软的邮件中，还提到了 Bing 搜索引擎相关的 API &lt;a href=&quot;http://www.bing.com/developers&quot; rel=&quot;external&quot;&gt;www.bing.com/developers&lt;/a&gt; 以及提供支持的讨论社区 &lt;a href=&quot;http://www.bing.com/community&quot; rel=&quot;external&quot;&gt;www.bing.com/community&lt;/a&gt;，有兴趣可以看一下。&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script src=&quot;http://www.google-analytics.com/urchin.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
_uacct = &quot;UA-178540-3&quot;;
urchinTracker();
&lt;/script&gt;
&lt;div id=&quot;sc_image&quot; style=&quot;display:inline;&quot;&gt;&lt;a title=&quot;site stats&quot; class=&quot;statcounter&quot; href=&quot;http://www.statcounter.com/&quot;&gt;&lt;img src=&quot;http://c8.statcounter.com/959241/0/ab2d6787/1/&quot; alt=&quot;site stats&quot; style=&quot;border:none;&quot;/&gt;&lt;/a&gt;&lt;/div&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18923002-7723067758247982104?l=blog.windia.net%2Ftech%2Findex.html' alt='' /&gt;&lt;/div&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/329974033/gregtech/feedsky/s.gif?r=http://blog.windia.net/tech/2009/06/email-received-from-bing-webmaster.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/gregtech/329974033/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/gregtech/329974033/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;fsflare&quot;&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/gregtech?a=3aa92e4736a67c2b396cd0155ec15fb3&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/gregtech?i=3aa92e4736a67c2b396cd0155ec15fb3&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://feed.feedsky.com/~flare/gregtech?a=dd0256b941e5b92def6573bcfb86ecaf&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://feed.feedsky.com/~flare/gregtech?i=dd0256b941e5b92def6573bcfb86ecaf&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/p&gt;</description><category domain="http://www.blogger.com/atom/ns#">Bing</category><category domain="http://www.blogger.com/atom/ns#">Google</category><category domain="http://www.blogger.com/atom/ns#">Webmaster</category><category domain="http://www.blogger.com/atom/ns#">Microsoft</category><pubDate>Thu, 04 Jun 2009 11:01:00 +0800</pubDate><author>noreply@blogger.com (Gregory)</author><guid isPermaLink="false">tag:blogger.com,1999:blog-18923002.post-7723067758247982104</guid><dc:creator>noreply@blogger.com (Gregory)</dc:creator><fs:srclink>http://blog.windia.net/tech/2009/06/email-received-from-bing-webmaster.html</fs:srclink><fs:srcfeed>http://blog.windia.net/tech/rss.xml</fs:srcfeed><fs:itemid>feedsky/gregtech/~7180848/329974033/4180159</fs:itemid></item></channel></rss>