<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1845721581161307923</id><updated>2012-02-17T13:34:11.253+09:00</updated><category term='C#'/><category term='C++'/><category term='Flex'/><category term='Flash'/><category term='Alchemy'/><category term='Firefox'/><category term='python'/><category term='software'/><category term='AS3'/><title type='text'>MUDAI</title><subtitle type='html'>MUDAI ... no title, aucun titre, kein Titel ...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://rch850.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://rch850.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>rch850</name><uri>http://www.blogger.com/profile/10250912124034859915</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>17</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1845721581161307923.post-6057422825135127893</id><published>2008-11-19T01:48:00.006+09:00</published><updated>2008-11-19T02:13:05.272+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Alchemy'/><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>Alchemy has arrived eventually !</title><content type='html'>&lt;p&gt;Today the timeline of twitter was filled by the tweets about &lt;a href="http://labs.adobe.com/technologies/alchemy/"&gt;Adobe Alchemy&lt;/a&gt;. This project is quite impressive for me because I am used to C/C++, and relatively new to Flash. Then I began to install it to my Ubuntu 8.04 in the VirtualBox.&lt;/p&gt;

&lt;p&gt;There is a zip file of Alchemy Toolkit for Linux which contains README.ubuntu. At first I thought this file is valuable for me, but it was not. README.ubuntu did not help me. I read the &lt;a href="http://labs.adobe.com/wiki/index.php/Alchemy:Documentation:Getting_Started"&gt;install steps for Mac&lt;/a&gt; that is not so different from Linux's one.&lt;/p&gt;

&lt;p&gt;After that the second problem has come. llvm-gcc is not found. when I tried following command;
&lt;pre&gt;gcc stringecho.c -O3 -Wall -swc -o stringecho.swc&lt;/pre&gt;
there was no output in the console. I checked gcc.
&lt;pre&gt;vim `which gcc`&lt;/pre&gt;
gcc is not a binary executable but a perl script for Alchemy from the time alc-on command is executed until the time alc-off is executed. I put some checkpoints in gcc and found that this script exits when trying to run llvm-gcc command. The reason of that is quite simple. There is no command named llvm-gcc.&lt;/p&gt;

&lt;p&gt;$ALCHEMY_HOME/bin/llvm-gcc is a symbolic link to $ALCHEMY_HOME/bin/llvm-gcc4-ubuntu-install/bin/llvm-gcc that does not exist. I need this file or link llvm-gcc to somewhere appropriate.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1845721581161307923-6057422825135127893?l=rch850.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rch850.blogspot.com/feeds/6057422825135127893/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1845721581161307923&amp;postID=6057422825135127893' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/6057422825135127893'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/6057422825135127893'/><link rel='alternate' type='text/html' href='http://rch850.blogspot.com/2008/11/alchemy-has-arrived-eventually.html' title='Alchemy has arrived eventually !'/><author><name>rch850</name><uri>http://www.blogger.com/profile/10250912124034859915</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1845721581161307923.post-6748377117876321335</id><published>2008-04-03T23:10:00.005+09:00</published><updated>2008-04-03T23:36:33.721+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='AS3'/><title type='text'>VaporVision3D</title><content type='html'>I have published &lt;a href="http://flan495.net/misc/VaporVision3D/"&gt;VaporVision3D&lt;/a&gt; for this year's April fool. I am writing &lt;a href="http://codezine.jp/a/article/aid/1872.aspx"&gt;articles&lt;/a&gt; about 3D representation on Flash from scratch, so this VaporVision3D does not depend on Papervision3D or such 3D graphics framework.

&lt;br/&gt;&lt;br/&gt;

I do not think that Reinvention of the Wheel has no meaning, but reinvention of 3-D graphcis framework is a heavy task. Who want to use 3D graphics on Flash should use Papervision3D or such however implementing 3D engine gives you lots of experiences. But I am seriously interested in performance problems on 3D engines. It is a well-known fact that drawing of FlashPlayer is very slow. What we can do is to reduce drawing. For now, my articles intentionally cut performance problems for simplicity. The time to argue the problems will come soon.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1845721581161307923-6748377117876321335?l=rch850.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rch850.blogspot.com/feeds/6748377117876321335/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1845721581161307923&amp;postID=6748377117876321335' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/6748377117876321335'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/6748377117876321335'/><link rel='alternate' type='text/html' href='http://rch850.blogspot.com/2008/04/vaporvision3d.html' title='VaporVision3D'/><author><name>rch850</name><uri>http://www.blogger.com/profile/10250912124034859915</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1845721581161307923.post-1079840918268895542</id><published>2008-03-05T06:13:00.002+09:00</published><updated>2008-03-05T06:27:15.931+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flash'/><title type='text'>Long path handling of JSFL File API</title><content type='html'>&lt;a href="http://www.adobe.com/devnet/flash/articles/jsapi_06.html#copy"&gt;Copy function&lt;/a&gt; of JSFL File API can not handle long URI, for example a URI consists 300 characters. I've wrote &lt;a href="http://snippets.libspark.org/trac/browser/c/TrueFLfile/trunk/win"&gt;extended copy function&lt;/a&gt; that can handle such long URI. This is first time to write a extension for Flash in C language, but I found that it is not difficult to implement it. The sample extension really helped me to understand how the extension works.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1845721581161307923-1079840918268895542?l=rch850.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rch850.blogspot.com/feeds/1079840918268895542/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1845721581161307923&amp;postID=1079840918268895542' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/1079840918268895542'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/1079840918268895542'/><link rel='alternate' type='text/html' href='http://rch850.blogspot.com/2008/03/long-path-handling-of-jsfl-file-api.html' title='Long path handling of JSFL File API'/><author><name>rch850</name><uri>http://www.blogger.com/profile/10250912124034859915</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1845721581161307923.post-721293128604279340</id><published>2007-11-21T09:17:00.000+09:00</published><updated>2007-11-23T15:20:45.029+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='AS3'/><title type='text'>AS3 3D and physics engines</title><content type='html'>2D physics engines:

&lt;dl&gt;
&lt;dt&gt;&lt;a href="http://www.cove.org/ape/index.htm"&gt;APE&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;This engine may be the most well-known one. It has been ported to C++ and Java. MIT license.
&lt;/dd&gt;

&lt;dt&gt;&lt;s&gt;Box2DAS3&lt;/s&gt;&lt;a href="http://box2dflash.sourceforge.net/"&gt;Box2DFlashAS3&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href="http://www.kloonigames.com/crayon/"&gt;Crayon Physics Deluxe&lt;/a&gt; made the people attracted to this engine. &lt;a href="http://www.box2d.org/"&gt;Box2D&lt;/a&gt; was written in C++, now ported to AS3 as Box2DFlashAS3. zlib/ligpng licence.&lt;/dd&gt;

&lt;dt&gt;&lt;a href="http://code.google.com/p/foam-as3/"&gt;FOAM&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;It was lately released, but &lt;a href="http://drawlogic.com/2007/11/11/as3-2d-physics-engine-foam-demos-and-sources-for-semi-realistic-physics-euler-rk4-comparison/"&gt;seems worth trying&lt;/a&gt;. MIT license.&lt;/dd&gt;

&lt;dt&gt;&lt;a href="http://fisixengine.com/"&gt;Fisix&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;Perhaps you do not know this engine because of its own license. Let's check &lt;a href="http://www.fisixengine.com/demos/mona1.html"&gt;the demo.&lt;/a&gt;&lt;/dd&gt;

&lt;dt&gt;&lt;a href="http://lab.polygonal.de/motor_physics/"&gt;Motor Physics&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;This one is expected to join the AS3 physics engine list. Some demos are already available. zlib/libpng license.&lt;/dd&gt;
&lt;/dl&gt;

This seems a little complicated compared with C++. In C++, there are practically two choices of 3D physics engine, PhyX and Havok. Which engine will survive?




3D graphics engine:

&lt;dl&gt;
&lt;dt&gt;&lt;a href="http://blog.papervision3d.org/"&gt;Papervision3D&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;I think that I do not need to explain about this most known 3D engine. MIT License.&lt;/dd&gt;

&lt;dt&gt;&lt;a href="http://www.away3d.com/"&gt;Away3D&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;This engine is Papervision3D based one, but has has better visual quality.&lt;/dd&gt;

&lt;dt&gt;&lt;a href="http://osflash.org/sandy"&gt;Sandy&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;I immediately understood this name because I am a Japanese (see &lt;a href="http://osflash.org/sandy#why_this_name"&gt;why&lt;/a&gt;). The API resembles Java3D, e.g. TransfomGroup class.&lt;/dd&gt;
&lt;/dl&gt;

-------&lt;br&gt;

Corrected the name of Box2DFlashAS3. (Nov. 23)&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1845721581161307923-721293128604279340?l=rch850.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rch850.blogspot.com/feeds/721293128604279340/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1845721581161307923&amp;postID=721293128604279340' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/721293128604279340'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/721293128604279340'/><link rel='alternate' type='text/html' href='http://rch850.blogspot.com/2007/11/as3-3d-and-physics-engines.html' title='AS3 3D and physics engines'/><author><name>rch850</name><uri>http://www.blogger.com/profile/10250912124034859915</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1845721581161307923.post-7034407565310609698</id><published>2007-10-29T07:17:00.000+09:00</published><updated>2007-10-29T07:35:40.419+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>a nasty one.</title><content type='html'>A really really nasty one. I can not understand a compile error of C#, CS1583 that says 'file' is not a valid Win32 resource file. For details, see &lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=289616&amp;SiteID=1"&gt;MSDN Forum&lt;/a&gt;.
I saw this error when I compiled &lt;a href="http://www.misuzilla.org/dist/net/applewirelesskeyboardhelper/index.en"&gt;Apple Wireless Keyboard Helper for Windows&lt;/a&gt; at 3:00 am. I was sleepy and did not have energy to read articles on the forum. Then I read only the latest post that says:
&lt;br&gt;&lt;br&gt;
&lt;blockquote&gt;
Just double click on properties at solution explorer then you will see an option button with a textbox contaning file name delete it ,or copy same file in your home comp at same location.
&lt;/blockquote&gt;
&lt;br&gt;&lt;br&gt;
I tried this way then succeeded to compile the project. I started to test the application against my JIS keyboard, and found that '英数' and 'かな' key have scan code 113 and 114.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1845721581161307923-7034407565310609698?l=rch850.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rch850.blogspot.com/feeds/7034407565310609698/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1845721581161307923&amp;postID=7034407565310609698' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/7034407565310609698'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/7034407565310609698'/><link rel='alternate' type='text/html' href='http://rch850.blogspot.com/2007/10/nasty-one.html' title='a nasty one.'/><author><name>rch850</name><uri>http://www.blogger.com/profile/10250912124034859915</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1845721581161307923.post-6089864351295010907</id><published>2007-10-02T16:21:00.000+09:00</published><updated>2007-10-02T17:05:03.003+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='AS3'/><title type='text'>Color detection by AS3</title><content type='html'>&lt;a href="http://850mb.net/pukiwiki/index.php?NegiScope"&gt;Here&lt;/a&gt; is a demo of skin color detection by ActionScript 3.

&lt;ul&gt;
&lt;li&gt;Inspired by &lt;a href="http://www.nicovideo.jp/watch/sm1136630"&gt;this video&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Hatsune Miku swings her arm when skin color moves vertically.&lt;/li&gt;
&lt;li&gt;Push V key to show/hide camera input.&lt;/li&gt;
&lt;li&gt;Push M key to show/hide detection result.&lt;/li&gt;
&lt;/ul&gt;

Detection algorithm is of &lt;a href="http://graphics.cs.msu.ru/en/publications/text/gc2003vsa.pdf"&gt;this paper&lt;/a&gt;, section 3.1. Because this algorithm is very simple, it can be implemented by bitmap filter. Performance should be compared between both implementations.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1845721581161307923-6089864351295010907?l=rch850.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rch850.blogspot.com/feeds/6089864351295010907/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1845721581161307923&amp;postID=6089864351295010907' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/6089864351295010907'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/6089864351295010907'/><link rel='alternate' type='text/html' href='http://rch850.blogspot.com/2007/10/color-detection-by-as3.html' title='Color detection by AS3'/><author><name>rch850</name><uri>http://www.blogger.com/profile/10250912124034859915</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1845721581161307923.post-6877784695727176293</id><published>2007-08-29T16:44:00.000+09:00</published><updated>2007-08-29T17:13:23.927+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='software'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>tracd does not accept folded http header</title><content type='html'>I found that &lt;a href="http://trac.edgewall.org/wiki/TracStandalone"&gt;tracd&lt;/a&gt; does not work in some cases, specifically when the http header is folded because of its longness. To solve this problem, I modified &lt;code&gt;/usr/lib/python2.4/site-packages/trac/web/wsgi.py&lt;/code&gt; as following.

&lt;ol&gt;
&lt;li&gt;Make &lt;code&gt;unfold_header&lt;/code&gt; function.
&lt;pre&gt;
def unfold_header(self):
    lineno = 1
    while lineno &lt; len(self.headers.headers):
        header = self.headers.headers[lineno]
        if header.startswith(' ') or header.startswith('\t'):
            self.headers.headers[lineno - 1] += header
            del(self.headers.headers[lineno])
        else:
            lineno = lineno + 1
&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;Call this function from &lt;code&gt;setup_environ&lt;/code&gt; function in &lt;code&gt;WSGIRequestHandler&lt;/code&gt; class.
&lt;pre&gt;
length = self.headers.getheader('content-length')
if length:
    environ['CONTENT_LENGTH'] = length

# insert this line here.
self.unfold_header()

for name, value in [header.split(':', 1) for header
                    in self.headers.headers]:
&lt;/pre&gt;&lt;/li&gt;
&lt;/ol&gt;

This was my first time to program in Python, so there might be some problems. But this modified tracd is working for now.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1845721581161307923-6877784695727176293?l=rch850.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rch850.blogspot.com/feeds/6877784695727176293/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1845721581161307923&amp;postID=6877784695727176293' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/6877784695727176293'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/6877784695727176293'/><link rel='alternate' type='text/html' href='http://rch850.blogspot.com/2007/08/tracd-does-not-accept-folded-http.html' title='tracd does not accept folded http header'/><author><name>rch850</name><uri>http://www.blogger.com/profile/10250912124034859915</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1845721581161307923.post-2183055253283649001</id><published>2007-08-22T01:39:00.000+09:00</published><updated>2007-08-22T01:59:02.011+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='AS3'/><title type='text'>mqo loader beta ?</title><content type='html'>I have eventually submitted my &lt;a href="http://snippets.libspark.org/trac/wiki/rch850/Metasequoia"&gt;metasequoia loader&lt;/a&gt; to &lt;a href="http://snippets.libspark.org/"&gt;Snippets&lt;/a&gt; of &lt;a href="http://www.libspark.org/"&gt;Spark project&lt;/a&gt;. Only few tests about my library have done, so any bug reports are welcomed.

&lt;br/&gt;&lt;br/&gt;

My next task is perhaps to load &lt;a href="http://sasakingdom.com/"&gt;MIKOTO&lt;/a&gt; file that describes motion of metasequoia model. Watching motion of 3D model will fascinate us rather than watching rendered image that never moves.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1845721581161307923-2183055253283649001?l=rch850.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rch850.blogspot.com/feeds/2183055253283649001/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1845721581161307923&amp;postID=2183055253283649001' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/2183055253283649001'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/2183055253283649001'/><link rel='alternate' type='text/html' href='http://rch850.blogspot.com/2007/08/mqo-loader-beta.html' title='mqo loader beta ?'/><author><name>rch850</name><uri>http://www.blogger.com/profile/10250912124034859915</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1845721581161307923.post-3023438960839710135</id><published>2007-08-05T03:45:00.000+09:00</published><updated>2007-08-05T03:52:14.061+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='AS3'/><title type='text'>mqo loader private alpha</title><content type='html'>&lt;a href="http://850mb.net/pukiwiki/index.php?MqoLoader"&gt;Here&lt;/a&gt; is my private alpha version of .mqo file loader for &lt;a href="http://blog.papervision3d.org/"&gt;Papervision3D&lt;/a&gt;. Mqo files are used by &lt;a href="http://www.metaseq.net/english/index.html"&gt;Metasequoia&lt;/a&gt; typically in Japan.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1845721581161307923-3023438960839710135?l=rch850.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rch850.blogspot.com/feeds/3023438960839710135/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1845721581161307923&amp;postID=3023438960839710135' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/3023438960839710135'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/3023438960839710135'/><link rel='alternate' type='text/html' href='http://rch850.blogspot.com/2007/08/mqo-loader-private-alpha.html' title='mqo loader private alpha'/><author><name>rch850</name><uri>http://www.blogger.com/profile/10250912124034859915</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1845721581161307923.post-8553271359200454098</id><published>2007-07-23T14:15:00.000+09:00</published><updated>2007-07-23T14:45:46.446+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='AS3'/><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>Location of flashlog</title><content type='html'>Since I changed my computer from XP to Vista, today is first time to use trace function of AS3. First, I created file named mm.cfg and wrote these lines.

&lt;br/&gt;&lt;br/&gt;

&lt;pre&gt;
TraceOutputFileName=D:\Users\&lt;MyName&gt;\Documents\AS3\trace.txt
ErrorReportingEnable=1
TraceOutputFileEnable=1
&lt;/pre&gt;

&lt;br/&gt;&lt;br/&gt;

But this did not work. I changed all the backslashes into slashes, but nothing has changed. I removed the first line to put the output file in default location, then it worked. Even &lt;code&gt;TraceOutputFileName&lt;/code&gt; is not an necessary option, this behavior is strange.

&lt;br/&gt;&lt;br/&gt;

I found the answer of this problem in the &lt;a href="http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&amp;file=logging_125_04.html"&gt;LiveDocs&lt;/a&gt;.

&lt;br/&gt;&lt;br/&gt;

&lt;blockquote&gt;
&lt;strong&gt;Note&lt;/strong&gt;: Beginning with the Flash Player 9 Update, Flash Player ignores the TraceOutputFileName property.
&lt;/blockquote&gt;

&lt;br/&gt;&lt;br/&gt;

&lt;code&gt;TraceOutputFileName&lt;/code&gt; no longer works.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1845721581161307923-8553271359200454098?l=rch850.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rch850.blogspot.com/feeds/8553271359200454098/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1845721581161307923&amp;postID=8553271359200454098' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/8553271359200454098'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/8553271359200454098'/><link rel='alternate' type='text/html' href='http://rch850.blogspot.com/2007/07/location-of-flashlog.html' title='Location of flashlog'/><author><name>rch850</name><uri>http://www.blogger.com/profile/10250912124034859915</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1845721581161307923.post-5617382624946732568</id><published>2007-07-18T18:01:00.000+09:00</published><updated>2007-07-18T18:27:19.904+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C++'/><title type='text'>Poor Japanese VS2005 Express</title><content type='html'>Playing with &lt;a href="http://msdn.microsoft.com/vstudio/express/future/"&gt;Orcus&lt;/a&gt; is something exciting, but VS2005 Express Edition is still good choice for indie programmers. You can get it by pushing 'Go' button at &lt;a href="http://msdn.microsoft.com/vstudio/express/downloads/"&gt;here&lt;/a&gt;.

&lt;br/&gt;&lt;br/&gt;

&lt;a href="http://www.microsoft.com/japan/msdn/vstudio/express/visualc/"&gt;Japanese version&lt;/a&gt; is somehow complicated. When you click 'Web からインストール', you will be requested to log into msn. Moreover, an annoying form will appear that must be filled out. Your name, email address, address of work location, and some questionnaires will be needed. But you can download Japanese version from English site. Of course, a key to activate Visual Studio is needed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1845721581161307923-5617382624946732568?l=rch850.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rch850.blogspot.com/feeds/5617382624946732568/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1845721581161307923&amp;postID=5617382624946732568' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/5617382624946732568'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/5617382624946732568'/><link rel='alternate' type='text/html' href='http://rch850.blogspot.com/2007/07/poor-japanese-vs2005-express.html' title='Poor Japanese VS2005 Express'/><author><name>rch850</name><uri>http://www.blogger.com/profile/10250912124034859915</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1845721581161307923.post-8088769705560769548</id><published>2007-07-15T00:05:00.000+09:00</published><updated>2007-07-19T11:35:27.201+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C++'/><title type='text'>Use macro for dynamic linking of DLL</title><content type='html'>Dynamic linking of DLL needs more code than static linking. We have to use &lt;code&gt;GetProcAddress()&lt;/code&gt; API for each functions. It may cause bug if we make typo. 

&lt;pre&gt;
m_fnSetCommInfo =
  reinterpret_cast&lt; FnSetCommInfo &gt;(
  ::GetProcAddress( m_hLibrary, "SetCommInfo" ) );
m_fnGetCommInfo =
  reinterpret_cast&lt; FnGetCommInfo &gt;(
  ::GetProcAddress( m_hLibrary, "GetComInfo" ) ); // &lt;-- Ahh !!
&lt;/pre&gt;

Define statement prevents such bug.

&lt;pre&gt;
#define LOAD_FUNCTION(name) \
  m_fn##name = reinterpret_cast&lt; Fn##name &gt;( \
  ::GetProcAddress( m_hLibrary, #name ) );

LOAD_FUNCTION( SetCommInfo );
LOAD_FUNCTION( GetCommInfo );
&lt;/pre&gt;

This is easier to read. Macro sometimes prevents bug.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1845721581161307923-8088769705560769548?l=rch850.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rch850.blogspot.com/feeds/8088769705560769548/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1845721581161307923&amp;postID=8088769705560769548' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/8088769705560769548'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/8088769705560769548'/><link rel='alternate' type='text/html' href='http://rch850.blogspot.com/2007/07/use-macro-for-dynamic-linking-of-dll.html' title='Use macro for dynamic linking of DLL'/><author><name>rch850</name><uri>http://www.blogger.com/profile/10250912124034859915</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1845721581161307923.post-2138419692261275509</id><published>2007-07-09T13:57:00.000+09:00</published><updated>2007-07-09T14:15:57.688+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Firefox'/><title type='text'>Adding feed subscriber to Firefox</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_pKTDjEaFPcw/RpHBfG0aoNI/AAAAAAAAAAM/6VIoFACyW80/s1600-h/ff.PNG"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; cursor: pointer;" src="http://2.bp.blogspot.com/_pKTDjEaFPcw/RpHBfG0aoNI/AAAAAAAAAAM/6VIoFACyW80/s320/ff.PNG" alt="" id="BLOGGER_PHOTO_ID_5085058194428567762" border="0" /&gt;&lt;/a&gt;

&lt;br/&gt;&lt;br/&gt;

There is RSS button on the address bar of Firefox when a web site is providing feed. You can add any feed subscriber by doing follows:

&lt;ol&gt;
&lt;li&gt;Input &lt;code&gt;about:config&lt;/code&gt; into address bar.&lt;/li&gt;
&lt;li&gt;See there are some &lt;code&gt;browser.contentHandlers.types.N.(title|type|uri)&lt;/code&gt; entries.&lt;/li&gt;
&lt;li&gt;Add subscribers after them.&lt;/li&gt;
&lt;/ol&gt;

For example, I add &lt;a href="http://fastladder.com/"&gt;Fastladder&lt;/a&gt; by adding these entries.

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;browser.contentHandlers.types.6.title = Fastladder&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;browser.contentHandlers.types.6.type = application/vnd.mozilla.maybe.feed&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;browser.contentHandlers.types.6.uri = http://fastladder.com/subscribe/%s&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1845721581161307923-2138419692261275509?l=rch850.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rch850.blogspot.com/feeds/2138419692261275509/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1845721581161307923&amp;postID=2138419692261275509' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/2138419692261275509'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/2138419692261275509'/><link rel='alternate' type='text/html' href='http://rch850.blogspot.com/2007/07/adding-feed-subscriber-to-firefox.html' title='Adding feed subscriber to Firefox'/><author><name>rch850</name><uri>http://www.blogger.com/profile/10250912124034859915</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_pKTDjEaFPcw/RpHBfG0aoNI/AAAAAAAAAAM/6VIoFACyW80/s72-c/ff.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1845721581161307923.post-2090080819304853326</id><published>2007-07-09T00:23:00.000+09:00</published><updated>2007-07-09T01:03:01.571+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='software'/><title type='text'>running svk</title><content type='html'>Running svk is not hard, however some terms are different from svn's ones. &lt;code&gt;commit&lt;/code&gt; is &lt;code&gt;push&lt;/code&gt; and &lt;code&gt;update&lt;/code&gt; is &lt;code&gt;pull&lt;/code&gt;. These may be more intuitive terms than svn's. As I said, svk can reduce revision number of repository. To do this, use &lt;code&gt;-l&lt;/code&gt; option for &lt;code&gt;push&lt;/code&gt; that means &lt;em&gt;merge everythins into a single commit log&lt;/em&gt;.

&lt;pre&gt;
svk push -l //local/YourProject
&lt;/pre&gt;

Then you can commit your source files after changing few lines without worrying about revision number. I think this is most important thing for refactoring.

&lt;br/&gt;&lt;br/&gt;

&lt;a href="http://subtech.g.hatena.ne.jp/mayuki/20061108/1163049012"&gt;Another first step guide of svk&lt;/a&gt;. Simple and easy to understand. I do not need boring text but really need sample code or command. When there is something unclear, I will search official document that is more accurate, reliable one than somebody's blog.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1845721581161307923-2090080819304853326?l=rch850.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rch850.blogspot.com/feeds/2090080819304853326/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1845721581161307923&amp;postID=2090080819304853326' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/2090080819304853326'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/2090080819304853326'/><link rel='alternate' type='text/html' href='http://rch850.blogspot.com/2007/07/running-svk.html' title='running svk'/><author><name>rch850</name><uri>http://www.blogger.com/profile/10250912124034859915</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1845721581161307923.post-4120924445015954902</id><published>2007-07-08T09:47:00.000+09:00</published><updated>2007-07-09T01:00:44.098+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='software'/><title type='text'>install svk</title><content type='html'>I know &lt;a href="http://www.selenic.com/mercurial/wiki/"&gt;Mercurial&lt;/a&gt; is a great SCM system which is called distributed one. I am using svn and commiting my code many times when I made changes. It may disturb others because revision number changes frequently. Distributed SCM systems are different, however they do not have integrated GUI like TortoiseSVN. Even if Mercurial got such interface, repositories I am working on are still svn's one. svk is a solution to use svn as distributed one. I refered these sites to install svk.
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://wiki.livedoor.jp/syo1976/d/svk"&gt;svk - 気の向くままに･･･ - livedoor Wiki（ウィキ）&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://mono.kmc.gr.jp/~yhara/w/?SvkTutorial"&gt;Greenbear Laboratory - SVKを使ってみよう&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
At the moment, I made a copy of remote repository and checked out files from there. Revision number had been smaller. It seems that revisions are skipped which are not related to files I got from remote repository. This may be a problem when I use svn:keyword like $Id$ or $Rev$. Later, I will write about it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1845721581161307923-4120924445015954902?l=rch850.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rch850.blogspot.com/feeds/4120924445015954902/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1845721581161307923&amp;postID=4120924445015954902' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/4120924445015954902'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/4120924445015954902'/><link rel='alternate' type='text/html' href='http://rch850.blogspot.com/2007/07/install-svk.html' title='install svk'/><author><name>rch850</name><uri>http://www.blogger.com/profile/10250912124034859915</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1845721581161307923.post-639444096404877792</id><published>2007-07-08T04:59:00.000+09:00</published><updated>2007-07-08T05:36:18.016+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C++'/><title type='text'>template typedef</title><content type='html'>&lt;a href="http://d.hatena.ne.jp/rich850/20070702#p1"&gt;Last week&lt;/a&gt; I knew this code is possible to compile.
&lt;pre&gt;
typedef CWindowImpl&amp;lt;Hoge&amp;gt; CWindowImpl;
&lt;/pre&gt;
I felt it is a little strange. I could not understand how the compiler interpret these two symbols are different ones.

Today, I replaced &lt;code&gt;strtok&lt;/code&gt; by &lt;code&gt;boost::tokenizer&lt;/code&gt; for better security and readability. &lt;a href="http://www.google.com/codesearch?hl=en&amp;lr=&amp;amp;q=boost%3A%3Atokenizer"&gt;Some code fragments&lt;/a&gt; I've found via Google used typedef like above. Perhaps it is possible because their namespaces are different, boost and other. I will continue to use this idiom for readability especially code using boost and WTL.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1845721581161307923-639444096404877792?l=rch850.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rch850.blogspot.com/feeds/639444096404877792/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1845721581161307923&amp;postID=639444096404877792' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/639444096404877792'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/639444096404877792'/><link rel='alternate' type='text/html' href='http://rch850.blogspot.com/2007/07/template-typedef.html' title='template typedef'/><author><name>rch850</name><uri>http://www.blogger.com/profile/10250912124034859915</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1845721581161307923.post-5829985070125448228</id><published>2007-07-05T17:37:00.000+09:00</published><updated>2007-07-05T17:43:53.856+09:00</updated><title type='text'>First post</title><content type='html'>MUDAI, no title, aucun titre, kein Titel, ...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1845721581161307923-5829985070125448228?l=rch850.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rch850.blogspot.com/feeds/5829985070125448228/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1845721581161307923&amp;postID=5829985070125448228' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/5829985070125448228'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1845721581161307923/posts/default/5829985070125448228'/><link rel='alternate' type='text/html' href='http://rch850.blogspot.com/2007/07/first-post.html' title='First post'/><author><name>rch850</name><uri>http://www.blogger.com/profile/10250912124034859915</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
