<?xml version="1.0" encoding="utf-8" ?>
<feed version="0.3"
	xml:lang="ja"
	xmlns="http://purl.org/atom/ns#"
	xmlns:dc="http://purl.org/dc/elements/1.1/">
	<title>SimpleBoxes.e</title>
	<link rel="alternate" type="text/html" href="http://serennz.sakura.ne.jp/sbe/" />
	<modified>2011-11-22T20:52:53+00:00</modified>
	<tagline><![CDATA[]]></tagline>
	<generator url="http://serenebach.net/">Serene Bach</generator>
	<entry>
		<title>Auckland Marathon 2011 (half marathon)</title>
		<link rel="alternate" type="text/html" href="http://serennz.sakura.ne.jp/sbe/log/eid11.html" />
		<id>http://serennz.sakura.ne.jp/sbe/log/eid11.html</id>
		<issued>2011-11-23T05:30:00+09:00</issued>
		<modified>2011-11-22T20:30:00Z</modified>
		<summary>I've finished Half Marathon at adidas Auckland Marathon 2011 &amp;rarr; My time is around 1 hour and 42 mins.It's my first half marathon.  I'm glad at my time which is faster than my target time (1 hou...</summary>
		<author>
			<name>takkyun</name>
		</author>
		<dc:subject>report</dc:subject>
		<content mode="escaped" type="text/html" xml:lang="ja"><![CDATA[<p><img src="http://serennz.sakura.ne.jp/sb/img/thm381_auckland_marathon_2011_record.jpg" width="192" height="200" alt="" class="pict-tail" />I've finished Half Marathon at <a href="http://www.aucklandmarathon.co.nz/">adidas Auckland Marathon 2011</a> &rarr; My time is around <a href="http://tiktok.biz/aucklandmarathon/2011/11204/">1 hour and 42 mins</a>.</p>
<p>It's my first half marathon.  I'm glad at my time which is faster than my target time (1 hour and 45 mins).</p>
<p>I've been jogging about 3 km after work for 2 years to be fit myself.  At the begging of this year, I decided to try longer distance.</p>
<p>Although I've considered full marathon (42.195 km); it's too long as the first try, so I decided to enter half marathon.</p>
<p>Auckland Marathon starts very early in the morning; before sunrise.</p>
<p><img src="http://serennz.sakura.ne.jp/sb/img/img372_auckland_marathon_2011_devonport.jpg" width="600" height="450" alt="[Picture] At Devonport" class="pict" /></p>
<p>Too early for normal public transport, but there are special ferries and special buses for the Marathon.</p>
<p>There are about 4 km to the closest bus stop of the special buses; so I have to walk (and jog a bit) there, it was good warm-up for me as a result.</p>
<p><img src="http://serennz.sakura.ne.jp/sb/img/img373_auckland_marathon_2011_sunrise.jpg" width="600" height="450" alt="[Picture] Sunrise from the start point" class="pict" /></p>
<p>The start point is the same for full marathon and half marathon.  Full marathon started first then half marathon started.  I could see sunrize during waiting a start.</p>
<p><img src="http://serennz.sakura.ne.jp/sb/img/img374_auckland_marathon_2011_start.jpg" width="600" height="450" alt="[Picture] Start gate" class="pict" /></p>
<p>Here was the start gate.  You can see &quot;Elite&quot; sign, can't you?  Faster runners lined at the start gate then slower runners started at posterior.</p>
<p><img src="http://serennz.sakura.ne.jp/sb/img/img375_auckland_marathon_2011_northcote.jpg" width="600" height="450" alt="[Picture] At Northcote" class="pict" /></p>
<p>About 10 km from the start, my wife and daughter cheered me.  My daughter has created a big banner for me.</p>
<p><img src="http://serennz.sakura.ne.jp/sb/img/img376_auckland_marathon_2011_bridge1.jpg" width="600" height="450" alt="[Picture] Climbing Harbor Bridge" class="pict" /></p>
<p>About 15 km from the start, finally I've started climbing Harbor Bridge.</p>
<p>It's just started, I had to climb about 1 km long steep hill...</p>
<p><img src="http://serennz.sakura.ne.jp/sb/img/img377_auckland_marathon_2011_bridge2.jpg" width="600" height="450" alt="[Picture] The flags on the bridge" class="pict" /></p>
<p>There are New Zealand national flags on the top of the bridge.</p>
<p><img src="http://serennz.sakura.ne.jp/sb/img/img378_auckland_marathon_2011_bridge3.jpg" width="600" height="450" alt="[Picture] City from the bridge" class="pict" /></p>
<p>Only cars can go through Harbor Bridge usually.  So I would like to take pictures when I ran on the bridge.</p>
<p>I've brought my mobile phone to take pictures.  Fortunately it's sunny day and bright enough to take pictures without stop.</p>
<p><img src="http://serennz.sakura.ne.jp/sb/img/img379_auckland_marathon_2011_goal.jpg" width="600" height="450" alt="[Picture] At the goal" class="pict" /></p>
<p>At the goal.  The runner with yellow balloons was &quot;Pace Maker&quot;.</p>
<p><img src="http://serennz.sakura.ne.jp/sb/img/img380_auckland_marathon_2011_finishing.jpg" width="267" height="400" alt="[Picture] Last spurt" class="pict" /></p>
<p>Finally I could reach the goal.  There are a lot of up-down in the course; it was tough.  I'm not sure I can run full marathon next time.</p>]]></content>
	</entry>
	<entry>
		<title>Pudding</title>
		<link rel="alternate" type="text/html" href="http://serennz.sakura.ne.jp/sbe/log/eid9.html" />
		<id>http://serennz.sakura.ne.jp/sbe/log/eid9.html</id>
		<issued>2011-07-19T19:00:00+09:00</issued>
		<modified>2011-07-19T10:00:00Z</modified>
		<summary>In this about a half year, I am making a pudding every week.  It seems to score high points with not only my family but also my friends.The original recipes come from &amp;quot;Cookpad&amp;quot; which is t...</summary>
		<author>
			<name>takkyun</name>
		</author>
		<dc:subject>report</dc:subject>
		<content mode="escaped" type="text/html" xml:lang="ja"><![CDATA[<p><img src="http://serennz.sakura.ne.jp/sb/img/img324_weekly-prin.jpg" width="154" height="154" alt="" class="pict-tail" />In this about a half year, I am making a pudding every week.  It seems to score high points with not only my family but also my friends.</p>
<p>The original recipes come from &quot;<a href="http://cookpad.com/" title="Cookpad (in Japanese)">Cookpad</a>&quot; which is the most famous sharing recipe website in Japan.</p>
<h3>Caramel sauce</h3>
<p class="source">[&#x2192;<cite><a href="http://cookpad.com/recipe/578510">Original recipe (in Japanese)</a></cite>]</p>
<p>The following ingredients for about three puddings.</p>
<ul>
<li>Water : 100 ml</li>
<li>Caster suger : 200 g</li>
<li>Boiled water : 100 ml</li>
</ul>
<ol>
<li>Putting sugar into the water then heating it over moderate heat.</li>
<li>It will become brown after boiling.</li>
<li>Stopping heating when it became dark brown.</li>
<li>Putting boiled water into it.  [<em>Caution</em>] Please be careful not to burn.</li> 
</ol>
<h3>Pudding (steamed)</h3>
<p class="source">[&#x2192;<cite><a href="http://cookpad.com/recipe/917993">Original recipe (in Japanese)</a></cite>]</p>
<p><a href="http://www.amazon.co.jp/Fissler-%E3%83%95%E3%82%A3%E3%82%B9%E3%83%A9%E3%83%BC-11-633-06/dp/B0000DIJ1F%3FSubscriptionId%3D1G0DK1CVZZ3T83XTA982%26tag%3Dsimpleboxes-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB0000DIJ1F"><img src="http://ecx.images-amazon.com/images/I/411BWAxxKcL._SL160_.jpg" alt="" class="pict-tail" /></a>I'm using a pressure cooker (<a href="http://www.amazon.co.jp/Fissler-%E3%83%95%E3%82%A3%E3%82%B9%E3%83%A9%E3%83%BC-11-633-06/dp/B0000DIJ1F%3FSubscriptionId%3D1G0DK1CVZZ3T83XTA982%26tag%3Dsimpleboxes-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB0000DIJ1F">Fissler in Japanese</a>) for this.</p>
<ul>
<li>Milk : 500 〜 550 ml</li>
<li>Brown sugar : 40 g</li>
<li>Egg : 3</li>
<li>Vanilla extract : a few drops</li>
</ul>
<p><img src="http://serennz.sakura.ne.jp/sb/img/img316_prin-step0.jpg" width="306" height="306" alt="[Picture]Pudding ingredients" class="pict" /></p>
<p>I'm using a glass bowl although using 4 small glasses in the original recipe.</p>
<table>
<tr>
	<td><img src="http://serennz.sakura.ne.jp/sb/img/img317_prin-step1.jpg" width="306" height="306" alt="[Picture]Making pudding STEP 1" class="pict" /></td>
	<td>Pouring caramel source into the bowl.  Putting about 200 cc water into the pressure cooker then putting the bown on steamer bascket.</td>
</tr>
<tr>
	<td><img src="http://serennz.sakura.ne.jp/sb/img/img318_prin-step2.jpg" width="306" height="306" alt="[Picture]Making pudding STEP 2" class="pict" /></td>
	<td>Heating and stirring milk with sugar over gentle heat.</td>
</tr>
<tr>
	<td><img src="http://serennz.sakura.ne.jp/sb/img/img319_prin-step3.jpg" width="306" height="306" alt="[Picture]Making pudding STEP 3" class="pict" /></td>
	<td>Whisking eggs then pouring the milk into it.  Stirring it well.</td>
</tr>
<tr>
	<td><img src="http://serennz.sakura.ne.jp/sb/img/img320_prin-step4.jpg" width="306" height="306" alt="[Picture]Making pudding STEP 4" class="pict" /></td>
	<td>Adding vanilla extract then pouring fluid pudding onto caramel source (using a sieve basket to strain).</td>
</tr>
<tr>
	<td><img src="http://serennz.sakura.ne.jp/sb/img/img321_prin-step5.jpg" width="306" height="306" alt="[Picture]Making pudding STEP 5" class="pict" /></td>
	<td>Steaming it with the pressure cooker (using lower pressure level). Taking 2 minutes after a pressure ring up.</td>
</tr>
<tr>
	<td><img src="http://serennz.sakura.ne.jp/sb/img/img322_prin-step6.jpg" width="306" height="306" alt="[Picture]Making pudding STEP 6" class="pict" /></td>
	<td>Then stopping heating.  Leaving it about 1 hour without heating.  Putting it into fridge, it will be ready to eat next day.</td>
</tr>
</table>]]></content>
	</entry>
	<entry>
		<title>He was so tired ...</title>
		<link rel="alternate" type="text/html" href="http://serennz.sakura.ne.jp/sbe/log/eid8.html" />
		<id>http://serennz.sakura.ne.jp/sbe/log/eid8.html</id>
		<issued>2011-04-19T19:30:00+09:00</issued>
		<modified>2011-04-19T10:30:00Z</modified>
		<summary></summary>
		<author>
			<name>takkyun</name>
		</author>
		<dc:subject>report</dc:subject>
		<content mode="escaped" type="text/html" xml:lang="ja"><![CDATA[<p class="image"><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/a77_auqJpwc?hl=ja&fs=1" /></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/a77_auqJpwc?hl=ja&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>]]></content>
	</entry>
	<entry>
		<title>Two kittens joined my family.</title>
		<link rel="alternate" type="text/html" href="http://serennz.sakura.ne.jp/sbe/log/eid7.html" />
		<id>http://serennz.sakura.ne.jp/sbe/log/eid7.html</id>
		<issued>2010-05-03T20:00:00+09:00</issued>
		<modified>2010-05-03T11:00:00Z</modified>
		<summary>I took over two kittens from my coworker.They were gradually getting used to our house, although they were a bit nervous when they came.  Now they are often playing together freely.</summary>
		<author>
			<name>takkyun</name>
		</author>
		<dc:subject>report</dc:subject>
		<content mode="escaped" type="text/html" xml:lang="ja"><![CDATA[<p><img src="http://serennz.sakura.ne.jp/sb/img/img274_timmy_tummy_100501.jpg" width="463" height="264" alt="[Photo] Kittens who joined our family." title="[Photo] Timmy (left) and Tummy" class="pict" /></p>
<p>I took over two kittens from my coworker.</p>
<p>They were gradually getting used to our house, although they were a bit nervous when they came.  Now they are often playing together freely.</p>]]></content>
	</entry>
	<entry>
		<title>My birthday present is ...</title>
		<link rel="alternate" type="text/html" href="http://serennz.sakura.ne.jp/sbe/log/eid6.html" />
		<id>http://serennz.sakura.ne.jp/sbe/log/eid6.html</id>
		<issued>2009-11-22T19:00:00+09:00</issued>
		<modified>2009-11-22T10:00:00Z</modified>
		<summary>I was getting one year older this week.Usually we go out to eat on the family member's birthday.I thought that I'd like to eat &amp;quot;Italian&amp;quot; this year, so we've been to PORTOFINO in Takapuna....</summary>
		<author>
			<name>takkyun</name>
		</author>
		<dc:subject>report</dc:subject>
		<content mode="escaped" type="text/html" xml:lang="ja"><![CDATA[<p>I was getting one year older this week.</p>
<p>Usually we go out to eat on the family member's birthday.</p>
<p>I thought that I'd like to eat &quot;Italian&quot; this year, so we've been to <a href="http://www.portofino.co.nz/"><strong>PORTOFINO</strong></a> in Takapuna.</p>
<p><img src="http://serennz.sakura.ne.jp/sb/img/img271_bolognses.jpg" width="408" height="308" alt="[Photo] Spaghetti Alla Bolognese" class="pict" /></p>
<p><img src="http://serennz.sakura.ne.jp/sb/img/img272_chiken_fettechine.jpg" width="408" height="308" alt="[Photo] Chiken Fettechine" class="pict" /></p>
<p><img src="http://serennz.sakura.ne.jp/sb/img/img270_pizza_prosciutto.jpg" width="408" height="308" alt="[Photo] Pizza Prosciutto" class="pict" /></p>
<p>It was quite good.  We really enjoyed the dinner.</p>
<p>Good meal and my family make me so happy, and there was futher surprise on that day......</p>
<p>......</p>
<p>............</p>
<p>..................</p>
<p>........................</p>
<p><img src="http://serennz.sakura.ne.jp/sb/img/img268_present_2009.jpg" width="318" height="408" alt="[写真]2009 年の誕生日プレゼント" class="pict" /></p>
<p>Wow!  That's a <strong>recliner</strong>!</p>
<p>It has footrest, too.  I've never known we call it &quot;ottoman&quot; so far.</p>
<p>I wonder where my wife hide it in our house.  She said &quot;You may notice it...&quot; ... No, I have never noticed.</p>
<p>Thank you very much.  I am a really lucky man.</p>]]></content>
	</entry>
	<entry>
		<title>Updating my Lightbox script (ver 20090729)</title>
		<link rel="alternate" type="text/html" href="http://serennz.sakura.ne.jp/sbe/log/eid5.html" />
		<id>http://serennz.sakura.ne.jp/sbe/log/eid5.html</id>
		<issued>2009-07-29T18:30:00+09:00</issued>
		<modified>2009-07-29T09:30:00Z</modified>
		<summary> I haven't implemented new feature in Lightbox script in ages, but I've mucked around with my Lightbox script aka &amp;quot;Lightbox plus&amp;quot; in this month.  You can see the details and samples in Li...</summary>
		<author>
			<name>takkyun</name>
		</author>
		<dc:subject>code</dc:subject>
		<content mode="escaped" type="text/html" xml:lang="ja"><![CDATA[ <p>I haven't implemented new feature in Lightbox script in ages, but I've mucked around with my Lightbox script aka &quot;Lightbox plus&quot; in this month.  You can see the details and samples in <a href="http://serennz.sakura.ne.jp/toybox/lightbox/"><strong>Lightbox plus</strong> page</a></p>
<p><a href="http://www.lokeshdhakar.com/projects/lightbox/">Lightbox</a> is very cool and useful script to display an image on the page.  Lightbox is quite attractive, so nowadays we have a lot of alternatives (see <a href="http://www.tripwiremagazine.com/tools/css-techniques/25-extensive-list-essential-pop-up-window-enhancements.html">examples</a>).  Lightbox plus is one of alternatives as well.</p>
<p>The original &quot;Lightbox&quot; has been updated as <a href="http://www.lokeshdhakar.com/projects/lightbox2/">Lightbox JS v2</a> which supports several new feature such as image set and cool animation transition.  I've already implemented image set feature in lightbox plus, however I haven't touch any animation transition so far.  Recently one of my script users requested animation transition into my script, so I tried to implement this feature.</p>
<p>Fortunately my script has already been using a timer (<code>setInterval</code>) to keep the proper position and size for a image against the browser window.</p>
<p>Once the corresponding anchor is clicked, <code>_show</code> method will be called.  The lightbox will start a timer in <code>_show</code> as follows:<code>
<blockquote><pre><code class="javascript">self._timer = window.setInterval( function() { self._run() }, 20);</code></pre></blockquote>
<p><code>_run</code> method is a callback of the timer, so it will be called priodically.  Animation transition is not main functionality for my lightbox, so I've made do with simple implementation.</p>
<p>I've added new member variable <code>_anim.step</code> to check the current state regrding animation.</p>
<ul>
	<li>0 : initial resizing (opening lightbox)</li>
	<li>1 : fading in (opening lightbox)</li>
	<li>2 : done animation (lightbox is opened)</li>
	<li>3 : fading out (closing lightbox)</li>
</ul>
<p>So it's quite obvious what the script is doing in <code>_run</code>.</p>
<blockquote><pre><code class="javascript">_run : function()
&#123;
&nbsp;&nbsp;var self = this;
&nbsp;&nbsp;self._set_size(true);
&nbsp;&nbsp;if ( self._anim.step == 0 || self._anim.w != self._img.width || self._anim.h != self._img.height )
&nbsp;&nbsp;&#123;
&nbsp;&nbsp;&nbsp;&nbsp;self._doResizing();
&nbsp;&nbsp;&#125;
&nbsp;&nbsp;else if ( self._anim.step == 1 )
&nbsp;&nbsp;&#123;
&nbsp;&nbsp;&nbsp;&nbsp;self._doFadeIn();
&nbsp;&nbsp;&#125;
&nbsp;&nbsp;else if ( self._anim.step == 3 )
&nbsp;&nbsp;&#123;
&nbsp;&nbsp;&nbsp;&nbsp;self._doFadeOut();
&nbsp;&nbsp;&#125;
&nbsp;&nbsp;else
&nbsp;&nbsp;&#123; // normal state
&nbsp;&nbsp;&nbsp;&nbsp;self._img.width = self._anim.w;
&nbsp;&nbsp;&nbsp;&nbsp;self._img.height = self._anim.h;
&nbsp;&nbsp;&nbsp;&nbsp;self._show_caption(true);
&nbsp;&nbsp;&#125;
&#125;</code></pre></blockquote>
<p>Resizing image will occur when a user enlarges the image, resizes the window, or changes the zoom level of the image.  So the lightbox will do resizeing in those cases as well.</p>
<p>The latest lightbox script (ver 20090729) also supports the delayed initialization.</p>
<p>Normally the lightbox will check through all anchors (links) in the page when the page is loaded.  There is the following code at the end of script:</p>
<blockquote><pre><code class="javascript">Spica.Event.run(function() &#123; 
&nbsp;&nbsp;var lightbox = new Lightbox(&#123;
&nbsp;&nbsp;&nbsp;&nbsp;loadingimg:'resource/loading.gif',
&nbsp;&nbsp;&nbsp;&nbsp;expandimg:'resource/expand.gif',
&nbsp;&nbsp;&nbsp;&nbsp;shrinkimg:'resource/shrink.gif',
&nbsp;&nbsp;&nbsp;&nbsp;blankimg:'resource/blank.gif',
&nbsp;&nbsp;&nbsp;&nbsp;previmg:'resource/prev.gif',
&nbsp;&nbsp;&nbsp;&nbsp;nextimg:'resource/next.gif',
&nbsp;&nbsp;&nbsp;&nbsp;closeimg:'resource/close.gif',
&nbsp;&nbsp;&nbsp;&nbsp;effectimg:'resource/zzoop.gif',
&nbsp;&nbsp;&nbsp;&nbsp;effectpos:&#123;x:-40,y:-20&#125;,
&nbsp;&nbsp;&nbsp;&nbsp;effectclass:'effectable',
&nbsp;&nbsp;&nbsp;&nbsp;resizable:true,
&nbsp;&nbsp;&nbsp;&nbsp;animation:true
&nbsp;&nbsp;&#125;);
&#125;);</code></pre></blockquote>
<p>The code <code>Spica.Event.run</code> means running at onLoad.</p>
<p>You can modify this code if you want to update or initialize the lightbox at your own timing as follows:</p>
<blockquote><pre><code class="javascript">var lightbox = new Lightbox(&#123;
&nbsp;&nbsp;loadingimg:'resource/loading.gif',
&nbsp;&nbsp;expandimg:'resource/expand.gif',
&nbsp;&nbsp;shrinkimg:'resource/shrink.gif',
&nbsp;&nbsp;blankimg:'resource/blank.gif',
&nbsp;&nbsp;previmg:'resource/prev.gif',
&nbsp;&nbsp;nextimg:'resource/next.gif',
&nbsp;&nbsp;closeimg:'resource/close.gif',
&nbsp;&nbsp;effectimg:'resource/zzoop.gif',
&nbsp;&nbsp;effectpos:&#123;x:-40,y:-20&#125;,
&nbsp;&nbsp;effectclass:'effectable',
&nbsp;&nbsp;resizable:true,
&nbsp;&nbsp;animation:true,
&nbsp;&nbsp;<strong>skipInit:true</strong>
&#125;);</code></pre></blockquote>
<p>Then later you can call <code>refresh</code> method at the time when the page is ready.</p>
<blockquote><pre><code class="javascript">lightbox.refresh(window.document);</code></pre></blockquote>
<p><code>window.document</code> could be any DOM element here.</p>]]></content>
	</entry>
	<entry>
		<title>Sightseeing - Kamakura, Tokyo</title>
		<link rel="alternate" type="text/html" href="http://serennz.sakura.ne.jp/sbe/log/eid4.html" />
		<id>http://serennz.sakura.ne.jp/sbe/log/eid4.html</id>
		<issued>2008-10-24T00:00:00+09:00</issued>
		<modified>2008-10-23T15:00:00Z</modified>
		<summary>My co-worker asked me about sightseeing in Japan, so I noted about it here.She set the following conditions out.She will stay at her friend's house in Yokohama for 10 days.She will visit in Novembe...</summary>
		<author>
			<name>takkyun</name>
		</author>
		<dc:subject>report</dc:subject>
		<content mode="escaped" type="text/html" xml:lang="ja"><![CDATA[<p>My co-worker asked me about sightseeing in Japan, so I noted about it here.</p>
<p>She set the following conditions out.</p>
<ul>
<li>She will stay at her friend's house in Yokohama for 10 days.</li>
<li>She will visit in November.</li>
<li>She has never been to Japan so far.</li>
<li>She prefer to day trips because she can back to Yokohama everynight.</li>
<li>She can buy <a href="http://www.japanrailpass.net/">Japan Rail Pass</a> if necessary.</li>
</ul>
<p>Well, I listed the candidates of sightseeing as follows:</p>
<ul>
<li><a href="#eid4_kamakura">Kamakura (鎌倉)</a></li>
<li><a href="#eid4_disney">Tokyo Disney Resort (東京ディズニーリゾート)</a></li>
<li><a href="#eid4_asakusa">Asakusa (浅草)</a></li>
<li><a href="#eid4_shibuya">Harajuku / Aoyama / Omotesando / Shibuya (原宿・青山・表参道・渋谷)</a></li>
<li><a href="#eid4_ginza">Ginza (銀座)</a></li>
<li><a href="#eid4_koukyo">Tokyo Imperial Palace (皇居)</a></li>
<li><a href="#eid4_akihabara">Akihabara (秋葉原)</a></li>
<li><a href="#eid4_ither">Other places</a></li>
</ul>
<p>I've checked fares/fees as of October 2008, but they basically show the costs from Yokohama station.  They may be changed depends on your nearest station, so please take them only as a guide.</p>
<p>I've also estimated the cost (fares and lunch) for each place very ruoghly, but the cost does not include any shopping cost.</p>
<p class="note">I've got pictures from <a href="http://commons.wikimedia.org/wiki/Main_Page">Wikimedia Commons</a> (<em>except ones in Tokyo Disney Resort</em>).  They are pubshed as public domain.</p>
<h3 id="eid4_kamakura">Kamakura (鎌倉)</h3>
<p class="source">&rarr; <a href="http://wikitravel.org/en/Kamakura">Kamakura</a> (in Wikitravel)</p>
<p class="source">&rarr; <a href="http://en.wikipedia.org/wiki/Kamakura,_Kanagawa">Kamakura</a> (in Wikipedia)<img src="http://serennz.sakura.ne.jp/sbe/img/bit1_file0_daibutsu.jpg" class="pict-tail" alt="" width="200" height="150" /></p>
<dl class="note">
<dt>Transportation</dt>
<dd>JR Yokosuka line (Yokohama - Kamakura)</dd>
<dt>One way fare</dt>
<dd>330 yen</dd> 
<dt>Rough cost estimation</dt>
<dd>3,000 - 4,000 yen</dd>
</dl>
<p>Kamakura is a city located next to Yokohama.  Kamakura is well known as one of ancient cities in Japan.  Kamakura was used to be the capital of Japan around 1200 A.D.</p>
<p>There are a lot of historical temples and shirines in Kamakura.</p>
<dl>
<dt>Tsurugaoka Hachiman-gu (鶴岡八幡宮)</dt>
<dd class="source">&rarr; <a href="http://en.wikipedia.org/wiki/Tsurugaoka_Hachiman-g%C5%AB">Tsurugaoka Hachiman-gū</a> (in Wikipedia)</dd>
<dd>I think this shrine is the biggest shrine in Kamakura.  It's quite famous in Japan.  Especially lots Japenese visit there on the first of January.</dd>
</dl>
<dl>
<dt>Kotoku-in (高徳院)</dt>
<dd class="source">&rarr; <a href="http://en.wikipedia.org/wiki/K%C5%8Dtoku-in">Kōtoku-in</a> (in Wikipedia)</dd>
<dd>This temple is renowned for Daibutsu (大仏), in other words, the Great Buddha (see the picture).</dd>
</dl>
<dl>
<dt>Jufuku-ji (寿福寺)</dt>
<dd class="source">&rarr; <a href="http://en.wikipedia.org/wiki/Jufuku-ji">Jufuku-ji</a> (in Wikipedia)</dd>
<dd>This temple was founded by Hojo Masako (北条政子) who was the wife of Minamoto no Yoritomo (源頼朝) who was the founder and the first shogun of the Kamakura Shogunate of Japan.</dd>
</dl>
<dl>
<dt>Hase-dera (長谷寺)</dt>
<dd class="source">&rarr; <a href="http://en.wikipedia.org/wiki/Kaik%C5%8Dzan_Hase-dera">Kaikōzan Hase-dera</a> (in Wikipedia)</dd>
<dd>This temple is one of the great Buddhist temples.  It has one of the largest wooden statue in Japan.</dd>
</dl>
<p>You can take <a href="http://www.enoden.co.jp/flangu/e1top.htm">Enoden (江の電)</a> to move around Kamakura and visit to Enoshima (江ノ島).  One-day ticket is available (580 yen).</p>
<p>There are several famous temples in Kita-Kamakura (北鎌倉) as well. &rarr; <a href="http://en.wikipedia.org/wiki/Yamanouchi,_Kanagawa">Yamanouchi</a> (in Wikipedia)</p>
<h3 id="eid4_disney">Tokyo Disney Resort (東京ディズニーリゾート)</h3>
<p class="source">&rarr; <a href="http://wikitravel.org/en/Tokyo_Disney_Resort">Tokyo Disney Resort</a> (in Wikitravel)</p>
<p class="source">&rarr; <a href="http://en.wikipedia.org/wiki/Tokyo_Disney_Resort">Tokyo Disney Resort</a> (in Wikipedia)<img src="http://serennz.sakura.ne.jp/sb/img/thm138_disney005.jpg" width="200" height="150" class="pict-tail" /></p>
<dl class="note">
<dt>Transportation</dt>
<dd>JR Tokaido line (Yokohama - Tokyo), JR Keiyo line (Tokyo - Maihama)</dd>
<dt>One way fare</dt>
<dd>690 yen</dd>
<dt>Admission fee</dt>
<dd>5,800 yen (Tokyo Disneyland)</dd>
<dt>Rough cost estimation</dt>
<dd>10,000 - 15,000 yen</dd>
</dl>
<p>As you may know, <a href="http://www.tokyodisneyresort.co.jp/index_e.html">Tokyo Disneyland</a> is the most famous thema park in Japan.</p>
<p>I've visited there in January 2008.  Please see <a href="http://serennz.sakura.ne.jp/sbe/log/eid2.html">my report</a> for details.</p>
<p>The opening time of Tokyo Disneyland / DisneySea will be changed as follows:</p>
<table>
<tr> 
<th>Date</th>
<th>Disneyland</th>
<th>DisneySea</th>
</tr>
<tr>
<td>01.11.2008 (Sat)</td>
<td>8:00 - 22:00</td>
<td>9:00 - 22:00</td>
</tr>
<tr>
<td>02.11.2008 (Sun)</td>
<td>8:00 - 22:00</td>
<td>8:00 - 22:00</td>
</tr>
<tr>
<td>03.11.2008 (Mon)</td>
<td>8:00 - 22:00</td>
<td>9:00 - 22:00</td>
</tr>
<tr>
<td>04.11.2008 (Tue)</td>
<td>9:00 - 22:00</td>
<td>9:00 - 22:00</td>
</tr>
<tr>
<td>05.11.2008 (Wed)</td>
<td>9:00 - 22:00</td>
<td>9:00 - 22:00</td>
</tr>
<tr>
<td>06.11.2008 (Thu)</td>
<td>9:00 - 22:00</td>
<td>9:00 - 22:00</td>
</tr>
<tr>
<td>07.11.2008 (Fri)</td>
<td>8:30 - 22:00</td>
<td>9:00 - 22:00</td>
</tr>
<tr>
<td>08.11.2008 (Sat)</td>
<td>8:00 - 22:00</td>
<td>8:30 - 22:00</td>
</tr>
<tr>
<td>09.11.2008 (Sun)</td>
<td>8:00 - 22:00</td>
<td>8:30 - 22:00</td>
</tr>
<tr>
<td>10.11.2008 (Mon)</td>
<td>8:00 - 22:00</td>
<td>9:00 - 22:00</td>
</tr>
<tr>
<td>11.11.2008 (Tue)</td>
<td>8:30 - 22:00</td>
<td>9:00 - 22:00</td>
</tr>
<tr>
<td>12.11.2008 (Wed)</td>
<td>8:30 - 22:00</td>
<td>9:00 - 22:00</td>
</tr>
<tr>
<td>13.11.2008 (Thu)</td>
<td>8:30 - 22:00</td>
<td>9:00 - 22:00</td>
</tr>
<tr>
<td>14.11.2008 (Fri)</td>
<td>8:00 - 22:00</td>
<td>9:00 - 22:00</td>
</tr>
<tr>
<td>15.11.2008 (Sat)</td>
<td>8:00 - 22:00</td>
<td>9:00 - 22:00</td>
</tr>
<tr>
<td>16.11.2008 (Sun)</td>
<td>8:00 - 22:00</td>
<td>8:30 - 22:00</td>
</tr>
<tr>
<td>17.11.2008 (Mon)</td>
<td>8:00 - 22:00</td>
<td>8:30 - 22:00</td>
</tr>
<tr>
<td>18.11.2008 (Tue)</td>
<td>8:30 - 22:00</td>
<td>9:00 - 22:00</td>
</tr>
<tr>
<td>19.11.2008 (Wed)</td>
<td>8:30 - 22:00</td>
<td>9:00 - 22:00</td>
</tr>
<tr>
<td>20.11.2008 (Thu)</td>
<td>8:30 - 22:00</td>
<td>9:00 - 22:00</td>
</tr>
<tr>
<td>21.11.2008 (Fri)</td>
<td>8:30 - 22:00</td>
<td>9:00 - 22:00</td>
</tr>
<tr>
<td>22.11.2008 (Sat)</td>
<td>8:00 - 22:00</td>
<td>8:00 - 22:00</td>
</tr>
<tr>
<td>23.11.2008 (Sun)</td>
<td>8:00 - 22:00</td>
<td>8:00 - 22:00</td>
</tr>
<tr>
<td>24.11.2008 (Mon)</td>
<td>8:00 - 22:00</td>
<td>9:00 - 22:00</td>
</tr>
<tr>
<td>25.11.2008 (Tue)</td>
<td>8:00 - 22:00</td>
<td>9:00 - 22:00</td>
</tr>
<tr>
<td>26.11.2008 (Wed)</td>
<td>9:00 - 22:00</td>
<td>9:00 - 22:00</td>
</tr>
<tr>
<td>27.11.2008 (Thu)</td>
<td>9:00 - 22:00</td>
<td>9:00 - 22:00</td>
</tr>
<tr>
<td>28.11.2008 (Fri)</td>
<td>9:00 - 22:00</td>
<td>9:00 - 22:00</td>
</tr>
<tr>
<td>29.11.2008 (Sat)</td>
<td>8:00 - 22:00</td>
<td>8:30 - 22:00</td>
</tr>
<tr>
<td>30.11.2008 (Sun)</td>
<td>8:00 - 22:00</td>
<td>8:30 - 22:00</td>
</tr>
</table>
<p>You can check the schedule on the <a href="http://www.tokyodisneyresort.co.jp/index_e.html">official website</a>, but some information is available in Japanese page only (like the above time table).</p>
<p>It will take about 1 hour from Yokohama to Tokyo Disney Resort by train.</p>
<p>Some attractions are very popular, so you need to stand in very very long line.  You may consider to use <a href="http://www.tokyodisneyresort.co.jp/tdr/english/plan/schedule/fastpass.html">FASTPASS</a> system to avoid long waiting.</p>
<p>I recommend you to select some attractions where you want to join in advance.  I personally recommend the following attractions:</p>
<ul>
<li><a href="http://www.tokyodisneyresort.co.jp/tdl/english/7land/fantasy/atrc_pooh.html">Pooh's Hunny Hunt</a></li>
<li><a href="http://www.tokyodisneyresort.co.jp/tdl/english/7land/fantasy/atrc_small.html">It's A Small World</a></li>
<li><a href="http://www.tokyodisneyresort.co.jp/tdl/english/7land/western/atrc_mountain.html">Big Thunder Mountain</a></li>
<li><a href="http://www.tokyodisneyresort.co.jp/tdl/english/7land/tomorrow/atrc_mountain.html">Space Mountain</a></li>
<li><a href="http://www.tokyodisneyresort.co.jp/tdl/english/7land/tomorrow/atrc_micro.html">MicroAdventure!</a></li>
</ul>
<h3 id="eid4_asakusa">Asakusa (浅草)</h3>
<p class="source">&rarr; <a href="http://wikitravel.org/en/Asakusa">Tokyo/Asakusa</a> (in Wikitravel)</p>
<p class="source">&rarr; <a href="http://en.wikipedia.org/wiki/Asakusa">Asakusa</a> (in Wikipedia)<img src="http://serennz.sakura.ne.jp/sbe/img/bit2_file1_kaminarimon.jpg" class="pict-tail" alt="" width="200" height="150" /></p>
<dl class="note">
<dt>Transportation</dt>
<dd>JR Tokaido line (Yokohama - Shinbashi), Toei Asakusa line (Shinbashi - Asakusa)</dd>
<dt>One way fare</dt>
<dd>660 yen</dd>
<dt>Rough cost estimation</dt>
<dd>3,500 - 4,000 yen</dd>
</dl>
<p>Asakusa is located on the north-east part of Tokyo.  Asakusa is well known as one of traditional town areas in Tokyo.</p>
<p>Senso-ji (浅草寺) is one of the most popular temples in Tokyo.  Kaminarimon (see the picture) is a gate of Senso-ji.</p>
<p>If you visit to Asakusa, I recommend you to visit to Kappabashi (合羽橋) as well.  In Kappabashi, there are a lot of shops supplying the restaurant trade.  You may marvel at especially plastic display foods (we call them &quot;sample shokuzai&quot;).</p>
<p>To visit to Kappabashi, you can use subway [Tokyo Metro Ginza line (Asakusa - Tawaramachi) 160 yen (one way, about 2 mins)].</p>
<h3 id="eid4_shibuya">Harajuku / Aoyama / Omotesando / Shibuya (原宿・青山・表参道・渋谷)</h3>
<p class="source">&rarr; <a href="http://wikitravel.org/en/Harajuku">Harajuku</a> (in Wikipedia)</p>
<p class="source">&rarr; <a href="http://en.wikipedia.org/wiki/Harajuku">Harajuku</a> (in Wikipedia)<img src="http://serennz.sakura.ne.jp/sbe/img/bit4_file3_meijijingu.jpg" class="pict-tail" alt="" width="200" height="150" /></p>
<dl class="note">
<dt>Transportation</dt>
<dd>Tokyu Toyoko line (Yokohama - Shibuya), JR Yamanote line (Shibuya - Harajuku)</dd>
<dt>One way fare</dt>
<dd>390 yen</dd>
<dt>Rough cost estimation</dt>
<dd>3,000 - 3,500 yen</dd>
</dl>
<p>This area is well known internationally for youth style and fashion.</p>
<p>Local landmarks include Yoyogi park (代々木公園) and Meiji shrine (明治神宮).  Meiji shrine is one of the biggest shrine in Japan.</p>
<p>If you visit to Harajuku, I recommnd you to walk from Harajuku to Shibuya (see <a href="http://wikitravel.org/en/Harajuku#Walking_tour:_Harajuku_to_Shibuya">the guidance in Wikitravel</a> for details).</p>
<p>If you walk to Shibuya, the fare of returning to Yokohama will be 260 yen.</p>
<h3 id="eid4_ginza">Ginza (銀座)</h3>
<p class="source">&rarr; <a href="http://wikitravel.org/en/Ginza">Tokyo/Ginza</a> (in Wikitravel)</p>
<p class="source">&rarr; <a href="http://en.wikipedia.org/wiki/Ginza">Ginza</a> (in Wikipedia)</p>
<dl class="note">
<dt>Transportation</dt>
<dd>JR Tokaido line (Yokohama - Shinagawa), JR Yamanote line (Shinagwa - Yurakucho)</dd>
<dt>One way fare</dt>
<dd>450 yen</dd>
<dt>Rough cost estimation</dt>
<dd>4,000 - 4,500 yen</dd>
</dl>
<p>Ginza is well known as a upmarket are of Tokyo.</p>
<p>I recommend you to visit to <a href="http://www.sonybuilding.jp/e/index.html">Sony Building</a> which is the showrooms of Sony.  The first Apple Store in Japan is also located at Ginza.</p>
<p>You can see Japanese traditional style drama at Kabuki Theater (歌舞伎座).  It may cost around 800 yen depends on the length of drama.</p>
<h3 id="eid4_koukyo">Tokyo Imperial Palace (皇居)</h3>
<p class="source">&rarr; <a href="http://wikitravel.org/en/Tokyo/Chiyoda">Tokyo/Chiyoda</a> (in Wikitravel)</p>
<p class="source">&rarr; <a href="http://en.wikipedia.org/wiki/Tokyo_Imperial_Palace">Tokyo Imperial Palace</a> (in Wikipedia)<img src="http://serennz.sakura.ne.jp/sbe/img/bit3_file2_koukyo.jpg" class="pict-tail" alt="" width="200" height="150" /></p>
<dl class="note">
<dt>Transportation</dt>
<dd>JR Tokaido line (Yokohama - Tokyo)</dd>
<dt>One way fare</dt>
<dd>450 yen</dd>
<dt>Rough cost estimation</dt>
<dd>3,000 - 3,500 yen</dd>
</dl>
<p>Tokyo imperial place, we call &quot;Kokyo&quot; in Japanese, is the place where Japanese imperial family lives.  Tokyo imperial place is located 10-minite walk away from JR Tokyo station (Marunouchi central exit).</p>
<p>The place is basically is closed in normal days, however there is a official guided tour.  You can <a href="http://sankan.kunaicho.go.jp/order/index_EN.html">apply the tour online</a> if you want.  The online service of application can be accessed from 5:00 to 24:00 in Japanese time.</p>
<p>This place is also known as the castle ruin of Edo-jo (江戸城).  There is a moat around Kokyo.</p>
<h3 id="eid4_akihabara">Akihabara (秋葉原)</h3>
<p class="source">&rarr; <a href="http://wikitravel.org/en/Akihabara">Tokyo/Akihabara</a> (in Wikitravel)</p>
<p class="source">&rarr; <a href="http://en.wikipedia.org/wiki/Akihabara">Akihabara</a> (in Wikipedia)</p>
<dl class="note">
<dt>Transportation</dt>
<dd>JR Tokaido line (Yokohama - Shinagawa), JR Yamanote line (Shinagwa - Akihabara)</dd>
<dt>One way fare</dt>
<dd>540 yen</dd>
<dt>Rough cost estimation</dt>
<dd>3,000 - 3,500 yen</dd>
</dl>
<p>Akihabara is well known as Electric town.</p>
<p>There are many consumer appliance stores around Akihabara.  You can buy PC, peripherals and gadgets at a reasonable price.</p>
<p>Akihabara is located in the central Tokyo (Chiyoda ward), so you can probably visit there at the same day of Tokyo imperial palace.</p>
<h3 id="eid4_other">Other places</h3>
<p>You can consider to visit the following places as well (I've linked to the Wikitravel).</p>
<ul>
<li><a href="http://wikitravel.org/en/Shinjuku">Shinjuku (新宿)</a></li>
<li><a href="http://wikitravel.org/en/Roppongi">Roppongi (六本木)</a></li>
<li><a href="http://wikitravel.org/en/Odaiba">Odaiba (お台場)</a></li>
<li><a href="http://wikitravel.org/en/Yokohama">Yokohama (横浜)</a></li>
</ul>]]></content>
	</entry>
	<entry>
		<title>localizer.js - multilingualization in JavaScript </title>
		<link rel="alternate" type="text/html" href="http://serennz.sakura.ne.jp/sbe/log/eid3.html" />
		<id>http://serennz.sakura.ne.jp/sbe/log/eid3.html</id>
		<issued>2008-02-08T00:00:00+09:00</issued>
		<modified>2008-02-07T15:00:00Z</modified>
		<summary>I just consider internationalization on JavaScript.  It should have simple and visceral interface.For instance,document.write(_('Hello world!'));We can get a localized string via the function _.The...</summary>
		<author>
			<name>takkyun</name>
		</author>
		<dc:subject>code</dc:subject>
		<content mode="escaped" type="text/html" xml:lang="ja"><![CDATA[<p>I just consider internationalization on JavaScript.  It should have simple and visceral interface.</p>
<p>For instance,</p>
<blockquote><pre><code class="javascript">document.write(_('Hello world!'));</code></pre></blockquote>
<p>We can get a localized string via the function <code>_</code>.</p>
<p>The name of function, <code>_</code> is used in a standard internationalization <a href="http://www.gnu.org/software/gettext/gettext.html">gettext</a>.</p>
<blockquote><pre><code class="javascript">var __Localizer = function()
&#123;
&nbsp;&nbsp;this.strings = &#123;&#125;;
&nbsp;&nbsp;this.getLocalizedString = function(str)
&nbsp;&nbsp;&#123;
&nbsp;&nbsp;&nbsp;&nbsp;if (__Localizer.strings[str] &amp;&amp; __Localizer.strings[str] != '')
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return __Localizer.strings[str];
&nbsp;&nbsp;&nbsp;&nbsp;return str;
&nbsp;&nbsp;&#125;;
&nbsp;&nbsp;return this;
&#125;
__Localizer = new __Localizer();
_ = __Localizer.getLocalizedString;</code></pre></blockquote>
<p><code>__Localizer</code> is defined as a global object here.</p>
<p>To configure the list of localized strings against <code>__Localizer.strings</code>, the following javascript will be loaded:</p>
<blockquote><pre><code class="javascript">__Localizer.strings = &#123;
&nbsp;&nbsp;'Hello world!' : 'Hallo Weld!'
&#125;;</code></pre></blockquote>
<p>The localized data script (locale/de.js) can be included in header of HTML document as follows:</p>
<blockquote><pre><code class="html">&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /&gt;
&lt;meta http-equiv=&quot;Content-Script-Type&quot; content=&quot;text/javascript&quot; /&gt;
&lt;meta http-equiv=&quot;Content-Style-Type&quot; content=&quot;text/css&quot; /&gt;
&lt;title&gt;samples - localizer&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;localizer.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;locale/de.js&quot;&gt;&lt;/script&gt;
&lt;/head&gt;</code></pre></blockquote>
<p>I think it's better to consider to use lang or xml:lang attribute in html element.  The following code will load localized data automatically depends on lang attribute:</p>
<blockquote><pre><code class="javascript">var __Localizer = function()
&#123;
&nbsp;&nbsp;this.strings = &#123;&#125;;
&nbsp;&nbsp;this.getLocalizedString = function(str)
&nbsp;&nbsp;&#123;
&nbsp;&nbsp;&nbsp;&nbsp;if (__Localizer.strings[str] &amp;&amp; __Localizer.strings[str] != '')
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return __Localizer.strings[str];
&nbsp;&nbsp;&nbsp;&nbsp;return str;
&nbsp;&nbsp;&#125;;
&nbsp;&nbsp;var path = '';
&nbsp;&nbsp;var jses = document.getElementsByTagName('script');
&nbsp;&nbsp;for (var i=0,n=jses.length;i&lt;n;i++)
&nbsp;&nbsp;&#123;
&nbsp;&nbsp;&nbsp;&nbsp;if (jses[i].src.indexOf('localizer.js') == -1) continue;
&nbsp;&nbsp;&nbsp;&nbsp;path = jses[i].src.replace('localizer.js','');
&nbsp;&nbsp;&nbsp;&nbsp;break;
&nbsp;&nbsp;&#125;
&nbsp;&nbsp;var html = document.getElementsByTagName('html')[0];
&nbsp;&nbsp;if (html)
&nbsp;&nbsp;&#123;
&nbsp;&nbsp;&nbsp;&nbsp;var lang = html.getAttribute('xml:lang') || html.getAttribute('lang');
&nbsp;&nbsp;&nbsp;&nbsp;if (!lang) lang = 'en';
&nbsp;&nbsp;&nbsp;&nbsp;document.write(['\n&lt;','script type=&quot;text/javascript&quot; src=&quot;',path,'locale/',lang,'.js&quot;&gt;&lt;/','script&gt;'].join(''));
&nbsp;&nbsp;&#125;
&nbsp;&nbsp;return this;
&#125;;
__Localizer = new __Localizer();
_ = __Localizer.getLocalizedString;</code></pre></blockquote>
<p>We can use <code>document.createElement</code> to generate a script element, but <code>document.createElement</code> may not work under some browsers.  So I use <code>document.write</code> instead of <code>document.createElement</code>.</p>
<p>The script is named as &quot;localizer.js&quot;, and language data should be put into &quot;locale/&quot; directory as follows.</p>
<ul class="tree">
<li>localizer.js</li>
<li>locale/<ul>
	<li>en.js (English)</li>
	<li>ja.js (Japanese)</li>
	<li>de.js (German)</li>
	<li>... any other language data</li>
</ul></li>
</ul>
<p><a href="http://serennz.sakura.ne.jp/sb/junk/localizer/ja.html">A sample HTML document</a> looks like:</p>
<blockquote><pre><code class="html">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.1//EN&quot; &quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;ja&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /&gt;
&lt;meta http-equiv=&quot;Content-Script-Type&quot; content=&quot;text/javascript&quot; /&gt;
&lt;meta http-equiv=&quot;Content-Style-Type&quot; content=&quot;text/css&quot; /&gt;
&lt;title&gt;sample - localizer.js&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;localizer.js&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p&gt;&amp;quot;Hello world!&amp;quot; is translated in Japanese.&lt;/p&gt;
&lt;p&gt;However this document is writtin in English, so it looks nothing to be changed. You can also see &lt;a href=&quot;en.html&quot;&gt;English page&lt;/a&gt;.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
&nbsp;&nbsp;document.write(_('Hello world!'));
// --&gt;
&lt;/script&gt;&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;</code></pre></blockquote>
<p>We can see &quot;<code>Hello world!</code>&quot; in source code, however this string will be translated in Japanese because of xml:lang attribute (&quot;ja&quot;).</p>
<p>If there is no resource for corrsponding language, the string won't be translated.</p>
<p>This script is distributed under MIT license. =&gt; <a href="http://serennz.sakura.ne.jp/sb/junk/download.cgi/localizer.zip">Download localizer and samples</a>.</p>]]></content>
	</entry>
	<entry>
		<title>Tokyo Disney Resort</title>
		<link rel="alternate" type="text/html" href="http://serennz.sakura.ne.jp/sbe/log/eid2.html" />
		<id>http://serennz.sakura.ne.jp/sbe/log/eid2.html</id>
		<issued>2008-02-01T00:00:00+09:00</issued>
		<modified>2008-01-31T15:00:00Z</modified>
		<summary>I have stayed at Tokyo Disney Resort overnight from 8 Jan.  Tokyo Disney Sea on the first day, then Tokyo Disney Land on the next day.My daughter is crazy about Disney Princess recently.  This visi...</summary>
		<author>
			<name>takkyun</name>
		</author>
		<dc:subject>report</dc:subject>
		<content mode="escaped" type="text/html" xml:lang="ja"><![CDATA[<p>I have stayed at <a href="http://www.tokyodisneyresort.co.jp/index_e.html">Tokyo Disney Resort</a> overnight from 8 Jan.  Tokyo Disney Sea on the first day, then Tokyo Disney Land on the next day.</p>
<p>My daughter is crazy about <a href="http://www.disney.com/princess/">Disney Princess</a> recently.  This visit would be one of biggest events during the trip to Japan.</p>
<p>I've been to Tokyo Disney Land several times ever.  My last visit, however, was over 10 years ago.  Tokyo Disney Sea didn't exist at that time.</p>
<h3 id="eid4-sea">Tokyo Disney Sea</h3>
<p>This is the first visit of Tokyo Disney Sea for me.</p>
<p>The environment of park (buildings and objects) were quite impressive for me in comparison with Tokyo Disney Land.</p>
<p class="image"><img src="http://serennz.sakura.ne.jp/sb/img/img134_disney001.jpg" width="400" height="300" alt="[Picture]Tokyo Disney Sea Entrance.  " title="[Picture]Tokyo Disney Sea Entrance." class="pict" />There is a big globe at DisneySea AquaSphere.</p>
<p class="image"><img src="http://serennz.sakura.ne.jp/sb/img/img135_disney002.jpg" width="400" height="300" alt="[Picture]to Mediterranean Harbor.  " title="[Picture]to Mediterranean Harbor." class="pict" />in the atmosphere of mediterranean town.</p>
<p class="image"><img src="http://serennz.sakura.ne.jp/sb/img/img136_disney003.jpg" width="400" height="300" alt="[Picture]looks like in Venice.  " title="[Picture]looks like in Venice." class="pict" />beatiful night scene</p>
<p>We've attended the following attractions:</p>
<ul>
<li>Ariel's Greeting Grotto (Mermaid Lagoon)</li>
<li>Mermaid Lagoon Theater (Mermaid Lagoon)</li>
<li>The Magic Lamp Theater (Arabian Coast)</li>
<li>Tower of Terror (American Waterfront)</li>
<li>DisneySea Transit Steamer Line (American Waterfront)</li>
</ul>
<p>There are not lots because we've put the weight on seeing shows.</p>
<p><em>Ariel's Greeting Grotto</em> is a tiny attraction as taking photo with Ariel who is main character of Little Mermaid.  My daughter has talked with the mermaid; &quot;Ariel talked in Japanese with English accent!&quot;, she said.</p>
<p>I don't like the attraction such as Free Fall, however I didn't have any idea regarding <em>Tower of Terror</em>.  Probably I won't ride it any more!</p>
<p><em>The Magic Lamp Theater</em> was a pretty good.  It's not only magic show but it is Disneyfied very well.</p>
<p>We've seen the following shows:</p>
<ul>
<li>Meet &amp; Smile (Mediterranean Harbor)</li>
<li>The Legend of Mythica (Mediterranean Harbor)</li>
<li>Over the Waves (American Waterfront)</li>
<li>BraviSEAmo! (Mediterranean Harbor)</li>
</ul>
<p><em>The Legend of Mythica</em> and <em>BraviSEAmo!</em> are grand production, however <em>Meet &amp; Smile</em> was the best show for me on that day.</p>
<p class="image"><img src="http://serennz.sakura.ne.jp/sb/img/img137_disney004.jpg" width="400" height="300" alt="[Picture]Disney characters greeted at Meet &amp; Smile.  " title="[Picture]Disney characters greeted at Meet &amp; Smile." class="pict" />The Disney characters danced nearby.</p>
<p>Tokyo Disney Resort had not crowded on that days.  We had easygoing opportunity to go around the park.  All attractions had no wating queue.</p>
<p>I strongly <strong>recommend to visit Tokyo Disney Resort at the mid of January</strong>.</p>
<h3 id="eid4-land">Tokyo Disney Land</h3>
<p>To tell the truth, an accident that a float had been broken during a parade happened on 8 Jan, so all parades were cancelled when we've visited Tokyo Disney Land.</p>
<p>Thus we've been around there to attend attractions mainly.</p>
<p class="image"><img src="http://serennz.sakura.ne.jp/sb/img/img138_disney005.jpg" width="400" height="300" alt="[Picture]The symbol of Tokyo Disney Land, Cinderella Castle.  " title="[Picture]The symbol of Tokyo Disney Land, Cinderella Castle." class="pict" />It's a trademark of Tokyo Disney Land.</p>
<p class="image"><img src="http://serennz.sakura.ne.jp/sb/img/img139_disney006.jpg" width="400" height="300" alt="[Picture]A scene in Toontown.  " title="[Picture]A scene in Toontown." class="pict" />I like such funny builings in Toontown.</p>
<p class="image"><img src="http://serennz.sakura.ne.jp/sb/img/img140_disney007.jpg" width="400" height="300" alt="[Picture]We've found Wendy and Peter Pan.  " title="[Picture]We've found Wendy and Peter Pan." class="pict" />Wendy and Peter Pan performed a skit.</p>
<p>We've attended the following attractions:</p>
<ul>
<li>Buzz Lightyear's Astro Blasters (Tomorrowland)</li>
<li>Space Mountain (Tomorrowland)</li>
<li>Star Tours (Tomorrowland)</li>
<li>Jolly Trolley (Toontown)</li>
<li>Roger Rabbit's Car Toon Spin (Toontown)</li>
<li>Snow White's Adventures (Fantasyland)</li>
<li>Pooh's Hunny Hunt (Fantasyland)</li>
<li>Dumbo The Flying Elephant (Fantasyland)</li>
<li>Jungle Cruise (Adventureland)</li>
<li>Pirates of the Caribbean (Adventureland)</li>
</ul>
<p>I felt a sense of speed for <em>Space Mountain</em> as much as I expected.  It has been <a href="http://en.wikipedia.org/wiki/Space_Mountain_%28Tokyo_Disneyland%29#2006-present">renewed at once</a>, so that's reason why I felt so possibly.  I wondered for my daughter too fast, but she quite enjoyed it.</p>
<p>The both of my wife and daughter disappointed <em>Star Tours</em> which I suggested.  I'm sorry!</p>
<p>There are few attarctions regarding <a href="http://www.disney.com/princess/">Disney Princess</a>.  One of them is Snow White's Adventures.  I think Snow White's Adventures looks like a haunted house, but my daughter like that attraction.</p>
<p>I looked forward to <em>Pooh's Hunny Hunt</em> personally.  It's one of the most popular attractions.</p>
<p class="image"><img src="http://serennz.sakura.ne.jp/sb/img/img141_disney008.jpg" width="400" height="300" alt="[Picture]looks like inside a book!  " title="[Picture]looks like inside a book!" class="pict" />We enjoyed a waiting zone as well.</p>
<p>The hunny pots go around the course in the building.  However there is no rail, they seem to move freely.</p>
<p>Disney characters marched in the park because of parade cancel.</p>
<p class="image"><img src="http://serennz.sakura.ne.jp/sb/img/img142_disney009.jpg" width="400" height="300" alt="[Picture]The march instead of parade.  " title="[Picture]The march instead of parade." class="pict" />Greeting march instead of the parade.</p>
<p>We can see the characters nearby and shaked hands.</p>]]></content>
	</entry>
	<entry>
		<title>merging hashs in perl</title>
		<link rel="alternate" type="text/html" href="http://serennz.sakura.ne.jp/sbe/log/eid1.html" />
		<id>http://serennz.sakura.ne.jp/sbe/log/eid1.html</id>
		<issued>2007-11-07T00:00:00+09:00</issued>
		<modified>2007-11-06T15:00:00Z</modified>
		<summary>I've investigated the merge of hashs (associative arrays) in perl.  Then I've recorded it as a note for myself.Probably the following code is the most intuitive.%hash = (%hash, %addition);To add %a...</summary>
		<author>
			<name>takkyun</name>
		</author>
		<dc:subject>code</dc:subject>
		<content mode="escaped" type="text/html" xml:lang="ja"><![CDATA[<p>I've investigated the merge of hashs (associative arrays) in perl.  Then I've recorded it as a note for myself.</p>
<p>Probably the following code is the most intuitive.</p>
<blockquote><pre><code>%hash = (%hash, %addition);</code></pre></blockquote>
<p>To add <q><code>%addition</code></q> into <q><code>%hash</code></q>.</p>
<blockquote><pre><code>my %hash = (
&nbsp;&nbsp;'key1' =&gt; 'value1',
&nbsp;&nbsp;'key2' =&gt; 'value2',
);
my %addition = (
&nbsp;&nbsp;'key3' =&gt; 'value3',
&nbsp;&nbsp;'key4' =&gt; 'value4',
&nbsp;&nbsp;'key1' =&gt; 'override1',
);
%hash = (%hash, %addition);</code></pre></blockquote>
<p>When the above code is run, <q><code>%hash</code></q> will be as follows:</p>
<blockquote><pre><code>&nbsp;&nbsp;'key1' =&gt; 'override1',
&nbsp;&nbsp;'key2' =&gt; 'value2',
&nbsp;&nbsp;'key3' =&gt; 'value3',
&nbsp;&nbsp;'key4' =&gt; 'value4',</code></pre></blockquote>
<p>A value of <q><code>key1</code></q> is overwritten.</p>
<p>We can use <code>while</code></q> or <q><code>foreach</code></q> loop to merge hashes.</p>
<p>The following code uses <code>while</code></q> and <q><code>each</code></q>:</p>
<blockquote><pre><code>while (my($key,$val) = each (%addition))
&#123;
&nbsp;&nbsp;$hash&#123;$key&#125; = $val;
&#125;</code></pre></blockquote>
<p>The following code uses <q><code>foreach</code></q> and <q><code>keys</code></q>:</p>
<blockquote><pre><code>foreach my $key (keys %addition)
&#123;
&nbsp;&nbsp;$hash&#123;$key&#125; = $addition&#123;$key&#125;;
&#125;</code></pre></blockquote>
<p>We can also use <q><code>map</code></q> to merge hashes such as:</p>
<blockquote><pre><code>map &#123; $hash&#123;$_&#125; = $addition&#123;$_&#125; &#125; keys %addition;</code></pre></blockquote>
<p>At last, we can use <em>slice</em>.  Using &quot;slice&quot; is like a hack, I'm not familiar with this way.</p>
<blockquote><pre><code>@hash &#123; keys %addition &#125; = values %addition;</code></pre></blockquote>
<p>We should use <q><code>@hash</code></q> instead <q><code>%hash</code></q> to use slice.</p>
<p>Using hash reference, we can code as follows:</p>
<blockquote><pre><code># normal merge
$hash = &#123;%&#123;$hash&#125;, %addition&#125;;
# use while
while (my($key,$val) = each (%addition))
&#123;
&nbsp;&nbsp;$hash-&gt;&#123;$key&#125; = $val;
&#125;
# use foreach
foreach my $key (keys %addition)
&#123;
&nbsp;&nbsp;$hash-&gt;&#123;$key&#125; = $addition&#123;$key&#125;;
&#125;
# use map
map &#123; $hash-&gt;&#123;$_&#125; = $addition&#123;$_&#125; &#125; keys %addition;
# use slice
@&#123;$hash&#125; &#123; keys %addition &#125; = values %addition;</code></pre></blockquote>
<p>I've taken benchmarks for those ways.  The code for the benchmarks is in <a href="http://serennz.sakura.ne.jp/sbe/log/eid1.html#sequel">sequel part</a> of this article.</p><p><a href="http://serennz.sakura.ne.jp/sbe/log/eid1.html#sequel">[続きがあります]</a></p>]]></content>
	</entry>
</feed>

