<?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>鬼の领地 &#187; Flash</title>
	<atom:link href="http://blog.upsuper.org/tag/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.upsuper.org</link>
	<description>the place where there are some ghost appearing...</description>
	<lastBuildDate>Wed, 19 Oct 2011 13:21:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>与 IE6 的抗争是永无止尽的……</title>
		<link>http://blog.upsuper.org/it-is-endless-to-fight-against-ie6/</link>
		<comments>http://blog.upsuper.org/it-is-endless-to-fight-against-ie6/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 14:29:22 +0000</pubDate>
		<dc:creator>upsuper</dc:creator>
				<category><![CDATA[琐事杂谈]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">http://blog.upsuper.org/?p=871</guid>
		<description><![CDATA[我真是不明白，作为微软有史以来最优秀的操作系统之一的 Windows XP 为什么要配一个如此愚昧的浏览器——IE6！今天一个晚上就耗在与 IE6 的斗争中了，为了新的 Flash 上传方式…… 写下今晚的收获吧…… 首先是很早以前就知道的，IE 里面隐藏的 Flash 会被无效化，也就是什么都做不了。放在今天就是，如果我想让那个上传用的 Flash 消失，后果只有一个——上传无法进行……这是非常无奈的事情，而且更重要的是，IE6 和 IE7 皆为如此。 但与 IE6 抗争更艰苦一点：在 IE6 中，只要一个 Flash 曾经从界面上消失过，这个 Flash 就不可用了，至少是不能用来上传了，不能调用其相关函数了……这是一个非常严重的 bug！这意味着，只要其消失一次，就要删掉原来的 object，重新创建。这件事是我今天好不容易才查到的：Uploadify doesnt fire uploadifyUpload/uploadifyClearQueue，非常佩服发现这个 bug 的牛人…… 然后最后一点，是如果一个 Flash 在建立之时就是隐藏的，似乎也会出问题……不过不是很确定…… 唉……IE6 啊 IE6……我多么想像我在我的首页做的那样直接把你屏蔽掉啊……]]></description>
			<content:encoded><![CDATA[<p>我真是不明白，作为微软有史以来最优秀的操作系统之一的 Windows XP 为什么要配一个如此愚昧的浏览器——IE6！今天一个晚上就耗在与 IE6 的斗争中了，为了新的 Flash 上传方式……</p>
<p>写下今晚的收获吧……</p>
<p>首先是很早以前就知道的，IE 里面隐藏的 Flash 会被无效化，也就是什么都做不了。放在今天就是，如果我想让那个上传用的 Flash 消失，后果只有一个——上传无法进行……这是非常无奈的事情，而且更重要的是，IE6 和 IE7 皆为如此。</p>
<p>但与 IE6 抗争更艰苦一点：在 IE6 中，只要一个 Flash 曾经从界面上消失过，这个 Flash 就不可用了，至少是不能用来上传了，不能调用其相关函数了……这是一个非常严重的 bug！这意味着，只要其消失一次，就要删掉原来的 object，重新创建。这件事是我今天好不容易才查到的：<a href="http://www.uploadify.com/forum/viewtopic.php?f=7&#038;t=1878">Uploadify doesnt fire uploadifyUpload/uploadifyClearQueue</a>，非常佩服发现这个 bug 的牛人……</p>
<p>然后最后一点，是如果一个 Flash 在建立之时就是隐藏的，似乎也会出问题……不过不是很确定……</p>
<p>唉……IE6 啊 IE6……我多么想像我在我的首页做的那样直接把你屏蔽掉啊……</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.upsuper.org/it-is-endless-to-fight-against-ie6/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Ubuntu之旅（四）</title>
		<link>http://blog.upsuper.org/ubuntu-trip-4/</link>
		<comments>http://blog.upsuper.org/ubuntu-trip-4/#comments</comments>
		<pubDate>Fri, 06 Jun 2008 15:30:04 +0000</pubDate>
		<dc:creator>upsuper</dc:creator>
				<category><![CDATA[探究学习]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[插件]]></category>
		<category><![CDATA[虚拟机]]></category>
		<category><![CDATA[论坛]]></category>

		<guid isPermaLink="false">http://blog.upsuper.org/?p=104</guid>
		<description><![CDATA[今天玩了一天，晚上回来弄了一会儿Ubuntu，算是把VMware安装好了。由于有一些奇特的步骤，也在这里说说吧。还调整了Flash的中文显示问题。 可能也有人会遇到VMware编译不过的问题吧，就是会出现类似下面这样的错误： In file included from include/asm/bitops.h:2, from /tmp/vmware-config2/vmmon-only/./include/vcpuset.h:74, from /tmp/vmware-config2/vmmon-only/./include/modulecall.h:23, from /tmp/vmware-config2/vmmon-only/common/vmx86.h:18, from /tmp/vmware-config2/vmmon-only/common/hostif.h:18, from /tmp/vmware-config2/vmmon-only/common/cpuid.c:14: include/asm/bitops_32.h:9:2: error: #error only can be included directly 在参考了这位仁兄的做法后，我自己摸索，找到了Ubuntu下的解决方法：首先，找到vmware-distrib/lib/modules/source里面的vmmon.tar文件，你可以先将它备份。然后解压这个文件，在解压出来的vmmon-only文件夹中找到include/vcpuset.h文件，找到 74 #include &#34;asm/bitops.h&#34; 替换为 74 #include &#34;linux/bitops.h&#34; //#include &#34;asm/bitops.h&#34; 保存。然后删除刚才的vmmon.tar文件，并且重新将vmmon-only文件夹打包为vmmon.tar。现在再次运行VMware的安装程序，就OK了！ 想上传今天拍的照片到论坛上，结果看到组图插件的Flash显示不出中文。查找了些资料，就改好了。具体步骤就是，找到/etc/fonts/conf.d/49-sansserif.conf，可以先备份，然后打开修改，将里面除了 1 &#60;string&#62;monospace&#60;/string&#62; 以外所有中的内容改为某种中文字体，如我用的是wqy-zenhei。改完效果差不多是这样的： 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 [...]]]></description>
			<content:encoded><![CDATA[<p>今天玩了一天，晚上回来弄了一会儿Ubuntu，算是把VMware安装好了。由于有一些奇特的步骤，也在这里说说吧。还调整了Flash的中文显示问题。</p>
<p><span id="more-104"></span></p>
<p>可能也有人会遇到VMware编译不过的问题吧，就是会出现类似下面这样的错误：</p>
<blockquote><p>
In file included from include/asm/bitops.h:2,<br />
                 from /tmp/vmware-config2/vmmon-only/./include/vcpuset.h:74,<br />
                 from /tmp/vmware-config2/vmmon-only/./include/modulecall.h:23,<br />
                 from /tmp/vmware-config2/vmmon-only/common/vmx86.h:18,<br />
                 from /tmp/vmware-config2/vmmon-only/common/hostif.h:18,<br />
                 from /tmp/vmware-config2/vmmon-only/common/cpuid.c:14:<br />
include/asm/bitops_32.h:9:2: error: #error only
<linux/bitops.h> can be included directly
</p></blockquote>
<p>在参考了<a href="http://hi.baidu.com/txcode/blog/item/54cad33fd18a5fc67d1e7101.html" target="_blank">这位仁兄的做法后</a>，我自己摸索，找到了Ubuntu下的解决方法：首先，找到vmware-distrib/lib/modules/source里面的vmmon.tar文件，你可以先将它备份。然后解压这个文件，在解压出来的vmmon-only文件夹中找到include/vcpuset.h文件，找到</p>

<div class="wp_codebox"><table><tr id="p1045"><td class="line_numbers"><pre>74
</pre></td><td class="code" id="p104code5"><pre class="cpp" style="font-family:monospace;"><span style="color: #339900;">#include &quot;asm/bitops.h&quot;</span></pre></td></tr></table></div>

<p>替换为</p>

<div class="wp_codebox"><table><tr id="p1046"><td class="line_numbers"><pre>74
</pre></td><td class="code" id="p104code6"><pre class="cpp" style="font-family:monospace;"><span style="color: #339900;">#include &quot;linux/bitops.h&quot; //#include &quot;asm/bitops.h&quot;</span></pre></td></tr></table></div>

<p>保存。然后删除刚才的vmmon.tar文件，并且重新将vmmon-only文件夹打包为vmmon.tar。现在再次运行VMware的安装程序，就OK了！</p>
<p>想上传今天拍的照片到论坛上，结果看到组图插件的Flash显示不出中文。查找了些资料，就改好了。具体步骤就是，找到/etc/fonts/conf.d/49-sansserif.conf，可以先备份，然后打开修改，将里面除了</p>

<div class="wp_codebox"><table><tr id="p1047"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p104code7"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>monospace<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>以外所有<string></string>中的内容改为某种中文字体，如我用的是wqy-zenhei。改完效果差不多是这样的：</p>

<div class="wp_codebox"><table><tr id="p1048"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
</pre></td><td class="code" id="p104code8"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #00bbdd;">&lt;!DOCTYPE fontconfig SYSTEM &quot;fonts.dtd&quot;&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fontconfig<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">  If the font still has no generic name, add sans-serif</span>
<span style="color: #808080; font-style: italic;"> --&gt;</span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;match</span> <span style="color: #000066;">target</span>=<span style="color: #ff0000;">&quot;pattern&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;test</span> <span style="color: #000066;">qual</span>=<span style="color: #ff0000;">&quot;all&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;family&quot;</span> <span style="color: #000066;">compare</span>=<span style="color: #ff0000;">&quot;not_eq&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>wqy-zenhei<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/test<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;test</span> <span style="color: #000066;">qual</span>=<span style="color: #ff0000;">&quot;all&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;family&quot;</span> <span style="color: #000066;">compare</span>=<span style="color: #ff0000;">&quot;not_eq&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>wqy-zenhei<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/test<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;test</span> <span style="color: #000066;">qual</span>=<span style="color: #ff0000;">&quot;all&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;family&quot;</span> <span style="color: #000066;">compare</span>=<span style="color: #ff0000;">&quot;not_eq&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>monospace<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/test<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;edit</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;family&quot;</span> <span style="color: #000066;">mode</span>=<span style="color: #ff0000;">&quot;append_last&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>wqy-zenhei<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/edit<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/match<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/fontconfig<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>重启一下Firefox就可以了。神奇地发现，Audacious中文显示也正常了！</p>
<p>另外，发现了一点小小的问题，就是奇虎的那个论坛组图插件的Flash上传中使用的文件过滤器中所有的扩展名都是小写，而我新的那些照片却偏偏是大写扩展名……我想Flash这点应该稍微改进一下，或者奇虎的插件稍微改进改进，为这些非Windows区分大小写的操作系统考虑考虑。不过急着要上传，就弄了一个叫做pyRenamer的软件来批量重命名，可以直接通过apt-get安装，而且是图形界面化的，操作也简单，这里就不再详细说明了。</p>
<p>今天好晚了……玩得好累的说……</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.upsuper.org/ubuntu-trip-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>blackflip，Black Flip</title>
		<link>http://blog.upsuper.org/blackflip-black-flip/</link>
		<comments>http://blog.upsuper.org/blackflip-black-flip/#comments</comments>
		<pubDate>Wed, 14 Nov 2007 08:19:50 +0000</pubDate>
		<dc:creator>upsuper</dc:creator>
				<category><![CDATA[小程序]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[游戏]]></category>

		<guid isPermaLink="false">http://blog.upsuper.org/?p=23</guid>
		<description><![CDATA[有一个很好玩的游戏，是Flash+AJAX的：http://blackflip.org/ 玩法就是一笔划，然后划过的格子都会被反色，我们的目标是，使得每一行的颜色相同~ 于是，经过艰辛的摸索，我编写了一个很好的工具blackflip_helper。 这个工具的原理就是每一行反色其实走法是一样的！只不过这样更容易看出来。 经过思考，发现这个游戏似乎使用搜索是非常麻烦的，而基于状态压缩的动态规划似乎也快不了多少，都是次方级的。所以这个游戏的解法有待继续研究哈。]]></description>
			<content:encoded><![CDATA[<p>有一个很好玩的游戏，是Flash+AJAX的：<a href="http://blackflip.org" target="_blank">http://blackflip.org/</a></p>
<p>玩法就是一笔划，然后划过的格子都会被反色，我们的目标是，使得每一行的颜色相同~</p>
<p>于是，经过艰辛的摸索，我编写了一个很好的工具blackflip_helper。</p>
<p>这个工具的原理就是每一行反色其实走法是一样的！只不过这样更容易看出来。</p>
<p>经过思考，发现这个游戏似乎使用搜索是非常麻烦的，而基于状态压缩的动态规划似乎也快不了多少，都是次方级的。所以这个游戏的解法有待继续研究哈。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.upsuper.org/blackflip-black-flip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

