<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.9.1" -->
<rss version="0.92">
<channel>
	<title>窄多之Blog</title>
	<link>http://www.zhaiduo.com</link>
	<description>网站，互联网，旅行 - 2010未来：浏览器化，标准化，框架化，三维化</description>
	<lastBuildDate>Tue, 02 Mar 2010 05:56:28 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Are you ready for WebGL?</title>
		<description><![CDATA[The main advantage of WebGL is that cross-device, cross-platform and zero-install. It&#8217;s the new revolution for 3D entertainment on the Internet. It&#8217;s the future.
Javascript with CUDA: Elevating JavaScript Performance Through GPU Power
http://mozillalabs.com/jetpack/2010/01/25/elevating-javascript-performance-through-gpu-power/
It&#8217;s possible to utilize CUDA from within Jetpack now. (See the Jetpack-to-CUDA project)
Jetpack.toGPU() is that hint. Under the hood of Jetpack.toGPU() there is translation [...]]]></description>
		<link>http://www.zhaiduo.com/2010/02/ready_for_webgl/</link>
			</item>
	<item>
		<title>WebGL三维示例和Js版Box2D物理引擎</title>
		<description><![CDATA[WebGL示例
http://spidergl.org/code.php
SpiderGL: JavaScript 3D Graphics Library on top of WebGL.

测试环境：XP sp3 + firefox-3.7a2pre.en-US.win32\firefox
about:config激活 webgl.enabled_for_all_sites 为 true
同系统运行多个Firefox版本的办法：firefox.exe -profilemanager -no-remote创建新的profile，指定irefox-3.7a2pre.en-US.win32的安装目录即可。

Js版Box2D
http://box2d-js.sourceforge.net/index2.html

]]></description>
		<link>http://www.zhaiduo.com/2010/02/webgl%e4%b8%89%e7%bb%b4%e7%a4%ba%e4%be%8b%e5%92%8cjs%e7%89%88box2d%e7%89%a9%e7%90%86%e5%bc%95%e6%93%8e/</link>
			</item>
	<item>
		<title>FLash与HTML5</title>
		<description><![CDATA[苹果新发布的平板电脑iPad不支持Flash(也不支持USB, 扩展内存和蓝牙)，乔布斯做了解释（因为Flash buggy，常常和苹果的宕机有关），
Apple does not support Flash because it is so buggy. Whenever a Mac crashes more often than not it’s because of Flash. No one will be using Flash. The world is moving to HTML5.
与此同时以降低浏览器对插件的依赖程度为主要目的的HMLT5推出了大量的HTML新特性，其中用以替代Flash的Canvas和SVG图形功能(通过Javascript进行二维/三维绘图，其中二维绘图已经被主流浏览器所支持)让人刮目相看。以前只能用Flash做到的效果，现在不用装插件就可以通过Javascript来实现。我们可以看看下面简单的Canvas/SVG例子


Canvas Particle System
Highcharts
Space Invaders game
Some Adventure-y Guy
JS WARS
nifty game
Canvascape &#8211; &#8220;3D Walker&#8221;
Paint.Web &#8211; painting       [...]]]></description>
		<link>http://www.zhaiduo.com/2010/02/flash%e4%b8%8ehtml5/</link>
			</item>
	<item>
		<title>QuickBox2D</title>
		<description><![CDATA[QuickBox2D是AS3二维物理引擎框架Box2D的简化版。可以快速生成二维物理碰撞效果，很容易上手。
QuickBox2D sample &#8211; wonderfl build flash online
这是Wonderfl.net的在线测试，很容易把它做成一个类似于用盘子端皮球的小游戏。有空玩一玩～
]]></description>
		<link>http://www.zhaiduo.com/2010/01/quickbox2d/</link>
			</item>
	<item>
		<title>RewriteRule里正则表达式减号字符的顺序问题</title>
		<description><![CDATA[在用URLRewrite的时候，PHP正则匹配(preg_match)的时候，常常有一个容易忽略的小问题：
有效：RewriteRule ([0-9a-zA-Z\+_\.\-]{3,})/$  /article\-$1.html [L]
无效：RewriteRule ([0-9a-zA-Z\-\+_\.]{3,})/$  /article\-$1.html [L]
仅仅是因为方括号内减号（-）字符顺序的不同，让正则匹配失效。
但这又不是普遍的问题，只是在个别虚拟主机上出现。
下面的解释可以帮我们释疑：
正则表达式通过使用元字符来编码在模式中，元字符不代表其自身，它们用一些特殊的方式来解析。
减号（-）字符可以在字符类中指定一个字符范围。例如，[d-m] 匹配了 d 和 m 之间的任何字符，包括两者。如果字符类中需要减号本身，则必须用反斜线转义或者放到一个不能被解释为指定范围的位置，典型的位置是字符类中的第一个或最后一个字符。
]]></description>
		<link>http://www.zhaiduo.com/2010/01/rewriterule%e9%87%8c%e6%ad%a3%e5%88%99%e8%a1%a8%e8%be%be%e5%bc%8f%e5%87%8f%e5%8f%b7%e5%ad%97%e7%ac%a6%e7%9a%84%e9%a1%ba%e5%ba%8f%e9%97%ae%e9%a2%98/</link>
			</item>
	<item>
		<title>Discuz7用firefox无法登录</title>
		<description><![CDATA[Discuz论坛从5.5升级到6.0，然后再升级到7.0，升级过程很顺利，可是在FireFox3.5.7下用管理员或其它普通用户登录的时候，虽然显示登录成功，但是跳转后还是回到登录窗口。IE8下没有这个问题。
]]></description>
		<link>http://www.zhaiduo.com/2010/01/discuz7%e7%94%a8firefox%e6%97%a0%e6%b3%95%e7%99%bb%e5%bd%95/</link>
			</item>
	<item>
		<title>PHP5成员重载错误: Indirect modification of overloaded property has no effect</title>
		<description><![CDATA[PHP5成员重载的时候
Class Foo{private $arr;public function __get($key) {if(isset($this->arr[$key])){return $this->arr[$key];}}public function __set($key, $val) {if(isset($this->arr[$key])){$this->arr[$key] = $val;}}}$f = new Foo;$f->test = 1;
出现如下错误：
Notice: Indirect modification of overloaded property Foo::$arr has no effect
根据Google结果：
[27 Sep 2007 8:16pm UTC] brjann at gmail dot com
It seems that declaring the getter as &#8220;public function &#038;__get(){&#8230;}&#8221; does the trick. However, it took some googling to find.
php [...]]]></description>
		<link>http://www.zhaiduo.com/2010/01/php5%e6%88%90%e5%91%98%e9%87%8d%e8%bd%bd%e9%94%99%e8%af%af-indirect-modification-of-overloaded-property-has-no-effect/</link>
			</item>
	<item>
		<title>悲哀啊，如果Google关闭谷歌中国</title>
		<description><![CDATA[Google宣布考虑关闭Google.cn：
我们认识到，这很可能意味着必须关闭Google.cn，并有可能我们在中国的办事处。
作为中国大陆的互联网从业人员，我们还可以对国内互联网抱有什么希望？难道这就是我们伟大祖国净化互联网，大力推进建设和谐世界的伟大成就？
面对GFW、网站备案、白名单、黑名单、文字狱&#8230;我们已经头痛不已，如今还能证明国内互联网尚存一线生机的谷歌中国也将不复存在，可悲啊！
中国互联网的希望在哪里？我看不到。都说互联网这个虚拟的世界是多么美好，可是我看到的只是真实社会一样的乌烟瘴气！
如今的环境，愈加恶劣，腥风血雨，希望各位混迹在互联网的同仁们好自为之。
更新：谷歌澄清不实的传言，否认已经关闭在中国的办公室和在中国的员工已经接到通知将于近期离职。
]]></description>
		<link>http://www.zhaiduo.com/2010/01/%e6%82%b2%e5%93%80%e5%95%8a%ef%bc%8cgoogle%e5%85%b3%e9%97%ad%e8%b0%b7%e6%ad%8c%e4%b8%ad%e5%9b%bd/</link>
			</item>
	<item>
		<title>用Curl登录Plesk后台备份文件</title>
		<description><![CDATA[Plesk很不厚道，备份文件不能轻易用压缩软件解压，很不方便。之前我也用过outlook的办法解压plesk备份文件，不过这个方法在系统升级后已经失效。
我们可以用PHP的Curl模块备份网站文件。
其主要思想是通过Curl直接抓取https后台下，file manager中的文件。
备份环境：Apache/2.2.11 (Win32) SVN/1.5.6 PHP/5.3.0 DAV/2
主要Curl代码如下
$ch = curl_init();
//https支持
curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_URL, $url); //plesk 后台路径
curl_setopt($ch, CURLOPT_USERPWD, USERNAME.&#8217;:&#8217;.PASSWORD); //plesk 后台用户名，密码
curl_setopt($ch, CURLOPT_HEADER, 1); //输出header部分
curl_setopt($ch, CURLINFO_HEADER_OUT, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
if ($method == &#8216;POST&#8217;) {
curl_setopt($ch, CURLOPT_POST, 3);
curl_setopt($ch, CURLOPT_POSTFIELDS, $vars); //post提交的urlencode数据
}
$data = curl_exec($ch);
curl_close($ch);
]]></description>
		<link>http://www.zhaiduo.com/2010/01/%e7%94%a8curl%e5%a4%87%e4%bb%bdplesk/</link>
			</item>
	<item>
		<title>[巾*(穴/登)]</title>
		<description><![CDATA[论坛里有些汉字比较生僻，所以发布到论坛就会成为很怪的字符，例如，我们常常可以看见“[巾*(穴/登)]”这个东西，这是‘正’字的发音，实际上是绘画的画字的意思，但古书里用的“证”字，现在已经念不通。
在PHPMyadmin里面搜索：SELECT * FROM `bbs_posts` WHERE message like &#8216;%[巾*(穴/登)]%&#8217;;
可是并没搜索到结果。试着把网页编码改为UTF-8，搜索结果就可以看到。
]]></description>
		<link>http://www.zhaiduo.com/2010/01/%e5%b7%be%e7%a9%b4%e7%99%bb/</link>
			</item>
</channel>
</rss>
