<?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>UGiA.CN</title>
	<atom:link href="http://www.ugia.cn/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.ugia.cn</link>
	<description>null</description>
	<lastBuildDate>Mon, 03 Nov 2008 01:06:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>RA3入手</title>
		<link>http://www.ugia.cn/?p=141</link>
		<comments>http://www.ugia.cn/?p=141#comments</comments>
		<pubDate>Sun, 02 Nov 2008 18:17:36 +0000</pubDate>
		<dc:creator>legend</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.ugia.cn/?p=141</guid>
		<description><![CDATA[等了七八年，终于来了。11月28日发售，从香港预定了英文的限量版，但随后被告知英文版无货，只好选了中英合版，跟英文版的区别就是铁盒包装被换成了塑料盒，遗憾。 机器显卡比较差，到手好几天了都没装，还是等有条件了再说吧。 上图先，限量版赠RA3主题t恤+2GB U盘 + OST CD]]></description>
		<wfw:commentRss>http://www.ugia.cn/?feed=rss2&amp;p=141</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>php中几个文件读取函数的贴心功能</title>
		<link>http://www.ugia.cn/?p=140</link>
		<comments>http://www.ugia.cn/?p=140#comments</comments>
		<pubDate>Thu, 15 May 2008 08:10:00 +0000</pubDate>
		<dc:creator>legend</dc:creator>
				<category><![CDATA[PHP Develop]]></category>

		<guid isPermaLink="false">http://www.ugia.cn/?p=140</guid>
		<description><![CDATA[1、用file_get_contents或者fopen、file、readfile等函数读取url的时候，会创建一个名为$http_response_header的变量来保存http响应的报头，使用fopen等函数打开的数据流信息可以用stream_get_meta_data来获取。 2、php5中新增的参数context使这些函数更加灵活，通过它我们可以定制http请求，甚至post数据。 示例代码1: &#60;?php $html = file_get_contents('http://www.example.com/'); print_r($http_response_header); &#160; // or $fp = fopen('http://www.example.com/', 'r'); print_r(stream_get_meta_data($fp)); fclose($fp); ?&#62; 示例代码2： &#60;?php $data = array&#160;('foo' =&#62; 'bar'); $data = http_build_query($data); &#160; $opts = array&#160;( &#160; &#160; 'http' =&#62; array&#160;( &#160; &#160; &#160; &#160; 'method' =&#62; 'POST', &#160; &#160; &#160; &#160; 'header'=&#62; &#34;Content-type: application/x-www-form-urlencoded\r\n&#34; . &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://www.ugia.cn/?feed=rss2&amp;p=140</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>“魅”影的魅力 &#8212; 王久良摄影作品展(2008.4.26&#8211;5.18)</title>
		<link>http://www.ugia.cn/?p=138</link>
		<comments>http://www.ugia.cn/?p=138#comments</comments>
		<pubDate>Sun, 20 Apr 2008 18:01:48 +0000</pubDate>
		<dc:creator>legend</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.ugia.cn/?p=138</guid>
		<description><![CDATA[北京798艺术区七星路E04-11-1，展览时间：2008-4-26 -- 5.18  10:00AM -- 6:00PM(周一休息)。]]></description>
		<wfw:commentRss>http://www.ugia.cn/?feed=rss2&amp;p=138</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>《红色警报3》正式公布</title>
		<link>http://www.ugia.cn/?p=137</link>
		<comments>http://www.ugia.cn/?p=137#comments</comments>
		<pubDate>Thu, 14 Feb 2008 16:49:54 +0000</pubDate>
		<dc:creator>legend</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.ugia.cn/?p=137</guid>
		<description><![CDATA[www.ea.com/redalert 等了7年，终于要来了。时空穿梭出现了点差错，导致出现了第三个阵营&#8211;日本&#8230;，从这些早期的游戏截图看来不是很理想，有点卡通。 具体消息请看]]></description>
		<wfw:commentRss>http://www.ugia.cn/?feed=rss2&amp;p=137</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>再谈nfo文件</title>
		<link>http://www.ugia.cn/?p=136</link>
		<comments>http://www.ugia.cn/?p=136#comments</comments>
		<pubDate>Tue, 08 Jan 2008 04:34:44 +0000</pubDate>
		<dc:creator>legend</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.ugia.cn/?p=136</guid>
		<description><![CDATA[一般的nfo文件是cp437编码的, 而一般的ttf字体是用unicode编码索引的，所以只要将cp437的nfo文件转为unicode编码，直接查看时就不会有乱码了。之前提到的字符映射表也是这个道理，只不过我们有现成的iconv库就更方便了，只需要iconv(&#8216;CP437&#8242;, &#8216;UTF-8&#8242;, $str)就可以了。 顺便总结一下各种显示形式的实现方式： nfo2txt 将cp437编码转为unicode编码即可, php中用iconv(&#8216;CP437&#8242;, &#8216;UTF-8&#8242;, $str), 如果没有现成的库，可以用字符映射表来做，这是我之前仿写的一个c程序，可以在这里下载，下载后把nfo文件关联到此程序，会自动在同目录下成一个同名的txt文件，可以用记事本查看。源代码在下面，仅供参考。 nfo2pic 1. 利用nfo2txt的方式，转码后用gd中的imagettftext将内容写到画板上。参看示例代码2。 2. 制作gd专用字体，用imageloadfont直接绘制nfo内容，参考我以前写的文章和示例代码3。 当然还有其它方式，相比起来麻烦一点，在这里就不说了。 nfo2html 也是利用nfo2txt的方式，将cp437编码转为unicode之后，将那些非ascii字符转为unicode字符引用。ie7和firefox等浏览器就可以显示了，ie6还需要制作eot字体才可以，具体参考以前的文章。 示例代码1: &#60;?php $nfo = file_get_contents(&#34;zwt.nfo&#34;); $nfo = iconv('CP437', 'UTF-8', $nfo); file_put_contents(&#34;zwt.txt&#34;, $nfo); ?&#62; 示例代码2: &#60;?php header(&#34;Content-type: image/png&#34;); &#160; $lines = file('zwt.nfo'); &#160; $im = imagecreatetruecolor(700, count($lines) * 16); &#160; $white = imagecolorallocate($im, 255, 255, 255); $black [...]]]></description>
		<wfw:commentRss>http://www.ugia.cn/?feed=rss2&amp;p=136</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>[php]修正iPhone里的png文件为标准格式</title>
		<link>http://www.ugia.cn/?p=134</link>
		<comments>http://www.ugia.cn/?p=134#comments</comments>
		<pubDate>Thu, 01 Nov 2007 16:04:35 +0000</pubDate>
		<dc:creator>legend</dc:creator>
				<category><![CDATA[Develop]]></category>
		<category><![CDATA[PHP Develop]]></category>

		<guid isPermaLink="false">http://www.ugia.cn/?p=134</guid>
		<description><![CDATA[本想“借”用一下iphone里漂亮的天气图标，没想到在pc上无法使用。google了一下才知道iphone里的png文件并不是标准格式，不知道什么原因，apple在png文件头之后加了一个非标准的CgBI数据段，IDAT段图像数据也没有传统的压缩数据头和尾，并且红色和蓝色是反的。国外已经有了把iphone上的png文件转换为标准格式的代码，我不太会编译，所以自己用php照猫画虎写了个转换函数。 转换后的效果： 使用方法： iphone_fix_png($path); 运行后，修正后的图片会放到fixed文件夹内。 如果要修正一个目录下的所有png文件，可以这样做： foreach (glob($path . '/*.png') as $image){&#160;&#160; &#160;iphone_fix_png($image);} iphone_fix_png函数代码如下： &#19979;&#36733;: iphone_fix_png.php/** * fix iPhone PNGs to PNG-compatible format * * @author: legend &#60;legendsky@hotmail.com&#62; * @copyright &#160; UGiA.CN * @link: http://www.ugia.cn/?p=134&#160; * * usage: *&#160; * include('iphone_fix_png.php'); * * iphone_fix_png($path); */ function&#160;iphone_fix_png($file) { &#160; &#160; $png_header = &#34;\x89\x50\x4e\x47\x0d\x0a\x1a\x0a&#34;; // PNG &#160; [...]]]></description>
		<wfw:commentRss>http://www.ugia.cn/?feed=rss2&amp;p=134</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>严重鄙视挂羊头卖狗肉的国产网游《战火：红色警戒》</title>
		<link>http://www.ugia.cn/?p=133</link>
		<comments>http://www.ugia.cn/?p=133#comments</comments>
		<pubDate>Tue, 30 Oct 2007 04:31:22 +0000</pubDate>
		<dc:creator>legend</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.ugia.cn/?p=133</guid>
		<description><![CDATA[人，真的不能无耻到这种地步。一而再，再而三的混淆视听，误导玩家。继前段时间推出的新区命名为“尤里复仇”外，前几天又声称邀请到了 经过命令与征服爱好者们严格考证后根本不存在的 三位原westwood《红色警戒》开发团队成员。真是人不要脸则天下无敌。]]></description>
		<wfw:commentRss>http://www.ugia.cn/?feed=rss2&amp;p=133</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>我哥哥的摄影作品《鬼神传奇》</title>
		<link>http://www.ugia.cn/?p=132</link>
		<comments>http://www.ugia.cn/?p=132#comments</comments>
		<pubDate>Mon, 29 Oct 2007 10:54:23 +0000</pubDate>
		<dc:creator>legend</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.ugia.cn/?p=132</guid>
		<description><![CDATA[这组片子缘起于小时候奶奶给我讲述的一些民间故事，三十年过去了，这些故事非但不能淡忘，反而愈发体味到它们那种因为疏离于现实世界而具有的独特魅力，这令我无法抗拒。在那个电视机还是奢侈品的年代，这些鬼神故事伴随我度过了童年的漫漫长夜。长大了，也就知道了那些鬼神故事其实就是人间恩怨的曲折反映，所谓鬼神，其实都是人。今天，我的图片无意去复述那些故事，我也知道图片压根就不是讲故事最好的方式。当影像脱胎于故事并游离于故事之外，它便具有了独立的艺术魅力，这也是我借助摄影所要去追寻的。中国当下的意识形态对鬼神这两个字眼有着几近偏执的嫌恶，但我却看到了这些鬼神故事中闪烁着有关于人性的熠熠的光辉。我的鬼神传奇是一个庞大的拍摄计划，今天展出的仅仅是有关于坟地的一小部分，里面蕴含着许多中国民间的丧葬文化元素。我不能确定所有的人都能了解这些文化元素。当观众在欣赏我的作品的时候，也许就如同在猜测一个个令人费解的谜语。不过请不要在乎我的谜底是什么，您猜到的，就是正确的。 王久良 评论：鲍昆：安吉精粹——王久良的《鬼神传奇》 http://baokun.blshe.com/post/27/117135]]></description>
		<wfw:commentRss>http://www.ugia.cn/?feed=rss2&amp;p=132</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>将cmwap代理服务器移植到了iphone上，解决safari不能浏览网页的问题</title>
		<link>http://www.ugia.cn/?p=131</link>
		<comments>http://www.ugia.cn/?p=131#comments</comments>
		<pubDate>Tue, 16 Oct 2007 17:31:12 +0000</pubDate>
		<dc:creator>legend</dc:creator>
				<category><![CDATA[Develop]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[PHP Develop]]></category>

		<guid isPermaLink="false">http://www.ugia.cn/?p=131</guid>
		<description><![CDATA[cmwap在iphone上的设置可参考这篇文章，修改完成之后，如果weather、stocks正常，而safari浏览不了网页的话，就可以考虑使用我的这个cmwap代理服务器了。其原理就是在iphone和移动的cmwap代理10.0.0.172之间加一个代理服务器，将safari发出去的请求和返回来的数据做一定处理，使其绕过移动的限制并使safari能正确显示返回的结果。我不会开发原生的iphone程序，所以这个工具是用php写的，通过web启动和控制。 具体步骤请移步这里查看(zhuantou.org)，我这里更新不及时。]]></description>
		<wfw:commentRss>http://www.ugia.cn/?feed=rss2&amp;p=131</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>php中英文手册（集成用户注释08/12/2007）</title>
		<link>http://www.ugia.cn/?p=130</link>
		<comments>http://www.ugia.cn/?p=130#comments</comments>
		<pubDate>Sun, 12 Aug 2007 23:01:27 +0000</pubDate>
		<dc:creator>legend</dc:creator>
				<category><![CDATA[Develop]]></category>
		<category><![CDATA[PHP Develop]]></category>

		<guid isPermaLink="false">http://www.ugia.cn/?p=130</guid>
		<description><![CDATA[再不更新就跟不上形势了，昨天重新编译了一下，下载链接见内： 中文：CHM(18.2M) &#124; HTML(19.8M) 英文：CHM(18.3M) &#124; HTML(20.6M) 均集成了截至2007-08-12的用户注释，从文件大小上也看得出来，英文版内容比中文的全 :)。 文件较大，请勿盗链]]></description>
		<wfw:commentRss>http://www.ugia.cn/?feed=rss2&amp;p=130</wfw:commentRss>
		<slash:comments>51</slash:comments>
		</item>
	</channel>
</rss>
