<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>James Van Dyne</title>
	<atom:link href="http://www.james-vandyne.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.james-vandyne.com</link>
	<description>The Life and Times</description>
	<lastBuildDate>Sat, 21 Aug 2010 13:19:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Fireworks in Futagotamagawa</title>
		<link>http://www.james-vandyne.com/fireworks-in-futagotamagawa/</link>
		<comments>http://www.james-vandyne.com/fireworks-in-futagotamagawa/#comments</comments>
		<pubDate>Sat, 21 Aug 2010 13:16:49 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Japan]]></category>
		<category><![CDATA[Travel]]></category>

		<guid isPermaLink="false">http://www.james-vandyne.com/?p=122</guid>
		<description><![CDATA[After almost 3 years in Japan, I finally went to my second Hanabi (fireworks). However, this is my first real time attending. That is, arriving early, finding a good place, putting out a tarp, and having a few beers and relaxing. Summer entertainment is top notch in Japan. I should have read a bit more [...]]]></description>
			<content:encoded><![CDATA[<p>After almost 3 years in Japan, I finally went to my second Hanabi (fireworks). However, this is my first real time attending. That is, arriving early, finding a good place, putting out a tarp, and having a few beers and relaxing. Summer entertainment is top notch in Japan.</p>

<p>I should have read a bit more about taking photos of fireworks before going as I could not figure out the proper settings to really make them come alive. Hence no photos. However, there is a video at the end of the post that turned out pretty well. All photos shot with a Canon Kiss X3/500D.</p>

<p><a href="http://www.flickr.com/photos/90515377@N00/4912428397" title="View 'IMG_1489' on Flickr.com"><img border="0"src="http://farm5.static.flickr.com/4114/4912428397_2cf012434d.jpg"alt="IMG_1489"width="500"style="display:block; margin-left:auto; margin-right:auto;"height="333"title="IMG_1489"/></a></p>

<div style="clear:both"></div>

<p><a href="http://www.flickr.com/photos/90515377@N00/4912428207" title="View 'IMG_1468' on Flickr.com"><img border="0"src="http://farm5.static.flickr.com/4117/4912428207_d3ae080ac5.jpg"alt="IMG_1468"width="500"style="display:block; margin-left:auto; margin-right:auto;"height="333"title="IMG_1468"/></a></p>

<div style="clear:both"></div>

<p><a href="http://www.flickr.com/photos/90515377@N00/4912427933" title="View 'IMG_1435' on Flickr.com"><img border="0"src="http://farm5.static.flickr.com/4099/4912427933_1bfbb60e67.jpg"alt="IMG_1435"width="500"style="display:block; margin-left:auto; margin-right:auto;"height="333"title="IMG_1435"/></a></p>

<div style="clear:both"></div>

<p><object type="application/x-shockwave-flash" width="600" height="360" data="http://www.flickr.com/apps/video/stewart.swf?v=71377" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="intl_lang=en-us&#038;photo_secret=07b96ef80c&#038;photo_id=4913050788"></param> <param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=71377"></param> <param name="bgcolor" value="#000000"></param> <param name="allowFullScreen" value="true"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=71377" bgcolor="#000000" allowfullscreen="true" flashvars="intl_lang=en-us&#038;photo_secret=07b96ef80c&#038;photo_id=4913050788" height="360" width="600"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.james-vandyne.com/fireworks-in-futagotamagawa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Detect Language in WordPress in Multi-installs</title>
		<link>http://www.james-vandyne.com/detect-language-in-wordpress-in-multi-installs/</link>
		<comments>http://www.james-vandyne.com/detect-language-in-wordpress-in-multi-installs/#comments</comments>
		<pubDate>Sat, 14 Aug 2010 03:23:17 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.james-vandyne.com/?p=120</guid>
		<description><![CDATA[Problem When using wordpress our theme (or some other component) might want to check a wordpress defined variable. In a regular install of WordPress (single site), you can access them directly because they are defined in wp-config.php. //wp-config.php define(&#8216;WPLANG&#8217;,'ja&#8217;); //somewhere in my theme echo WPLANG; We can access this on only the base site of [...]]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>

<p>When using wordpress our theme (or some other component) might want to check a wordpress defined variable. In a regular install of WordPress (single site), you can access them directly because they are defined in wp-config.php.</p>

<div class="code">
//wp-config.php
define(&#8216;WPLANG&#8217;,'ja&#8217;); 

//somewhere in my theme
echo WPLANG;
</div>

<p>We can access this on only the base site of our multi-site install. However, if we use it, we would have to litter our theme with inconsistent access methods, or worse, duplicate code depending on our site.</p>

<p>How can we access this in our multi-site install?</p>

<h2>Solution</h2>

<p>You can define variables in wordpress via the web interface. Strangely, these aren&#8217;t run through define(), hence the above doesn&#8217;t work. I end up with something like the following:</p>

<div class="code">
//base site
echo &#8220;Language: &#8221; .WPLANG;
// Language: en-US
// secondary site defined as ja in the settings..
echo &#8220;Language: &#8221; .WPLANG
// Language: 
</div>

<p>If you&#8217;re checking the language, nothing appears. As luck would have it, you can simple use the get_bloginfo() method to pull this same information.</p>

<div class="code">
if(strcmp(get_bloginfo(&#8216;language&#8217;),&#8217;ja&#8217;) == 0)
    echo &#8220;日本語&#8221;;
</div>

<h2>Conclusion</h2>

<p>This might not map for all variables that you can define for wordpress in wp-config.php. Moreover, the inconsistency of naming is rather frustrating. What is defined as WPLANG is accessed via get_bloginfo(&#8216;language&#8217;); Sometimes words are abbreviated and other times they aren&#8217;t.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.james-vandyne.com/detect-language-in-wordpress-in-multi-installs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Freelance Switch</title>
		<link>http://www.james-vandyne.com/freelance-switch/</link>
		<comments>http://www.james-vandyne.com/freelance-switch/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 05:47:43 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Japan]]></category>

		<guid isPermaLink="false">http://www.james-vandyne.com/?p=118</guid>
		<description><![CDATA[After just over a year, my career as a teacher has come to an end. By my own choosing, no less. The year I spent teaching English was not something that I had planned at all. In fact, it was something I was desperately trying to avoid because I didn&#8217;t want to become &#8220;just another [...]]]></description>
			<content:encoded><![CDATA[<p>After just over a year, my career as a teacher has come to an end. By my own choosing, no less.</p>

<p>The year I spent teaching English was not something that I had planned at all. In fact, it was something I was desperately trying to avoid because I didn&#8217;t want to become &#8220;just another English teacher&#8221; i.e. The stereotype.</p>

<p>Looking back on it, I know it was good for me. I was able to see another level of Japan I hadn&#8217;t seen before. I became very comfortable speaking and presenting in front of largish groups (40 or so people). I grew.</p>

<p>I learned to not take myself so seriously and discovered what I was looking for in terms of working. Starting last week, I&#8217;ve started working for myself. I am now a full-time freelance programmer.</p>

<p>And I couldn&#8217;t be happier.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.james-vandyne.com/freelance-switch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Matsuri in Chikura &#8211; Day 2</title>
		<link>http://www.james-vandyne.com/matsuri-in-chikura-day-2/</link>
		<comments>http://www.james-vandyne.com/matsuri-in-chikura-day-2/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 06:16:38 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Japan]]></category>
		<category><![CDATA[Travel]]></category>

		<guid isPermaLink="false">http://www.james-vandyne.com/?p=111</guid>
		<description><![CDATA[Waking up at 8am on Day 2, I had no idea how difficult the day was to be. I had heard that I was going to be carrying the children&#8217;s mikoshi. I had seen it, it looked much smaller than the regular mikoshi that I had carried the day before. Just like I had thought, [...]]]></description>
			<content:encoded><![CDATA[<p>Waking up at 8am on Day 2, I had no idea how difficult the day was to be. I had heard that I was going to be carrying the children&#8217;s mikoshi. I had seen it, it looked much smaller than the regular mikoshi that I had carried the day before.</p>

<p><span id="more-111"></span></p>

<p>Just like I had thought, it was a lot lighter, maybe 100 kilograms instead of the 800 kilograms of the regular mikoshi. Everyone gathers at 8am in front of the children&#8217;s mikoshi. We take a shot of Japanese sake before we begin. As we are drinking our shot I notice some ropes tied to the front of mikoshi. Puzzled I&#8217;m not sure what they are for, but I&#8217;ll find out soon enough I think.</p>

<p>My friend directs me to the front of the children&#8217;s mikoshi and lifts up the rope. We are supposed to use these ropes to help the children carry the mikoshi. This makes sense because there are only a few junior high students and the rest are 4 or 5 years old, nowhere old or strong enough to carry one of these bad boys by themselves.</p>

<p>My naivety led me to believe that these ropes would make carrying this thing simple. I soon discovered the exact opposite was true. They weren&#8217;t long enough to allow us to comfortably carry it with our shoulder and have to carry with mainly our forearm.</p>

<p>We manage to survive our 2 or 3 hours of children&#8217;s mikoshi with a few hours to spare before the yattai. Yattai is like a small car with some taiko on them and long ropes in front. The entire neighborhood pitches in and pulls this cart around town for the next 8 hours or so.</p>

<p><a href="http://www.flickr.com/photos/90515377@N00/4763852056" title="View 'Pulling Yattai' on Flickr.com"><img border="0"width="500"alt="Pulling Yattai"src="http://farm5.static.flickr.com/4118/4763852056_1a447fe663.jpg"height="333"/></a></p>

<p>All of the neighborhoods in the area pull their yattai to a meeting place next to the ocean and play a song songs and rest for a while. Talking with the locals, I discovered that this part of the festival is for asking God that the town receive a good catch this summer fishing.</p>

<p><a href="http://www.flickr.com/photos/90515377@N00/4763854700" title="View 'Boy Wearing Omen' on Flickr.com"><img border="0"width="500"alt="Boy Wearing Omen"src="http://farm5.static.flickr.com/4122/4763854700_d238e55228.jpg"height="333"/></a></p>

<p>As the yattai start to head on the 5 hour path home, I notice something I hadn&#8217;t seen last year. People dressed crazily. Not traditional Japanese &#8220;crazy&#8221;, but crazy crazy.</p>

<p><a href="http://www.flickr.com/photos/90515377@N00/4763860268" title="View 'Untitled' on Flickr.com"><img border="0"width="500"alt="Untitled"src="http://farm5.static.flickr.com/4137/4763860268_77432f4d55.jpg"height="333"/></a></p>

<p>I had missed this part last year, but discovered that my friend&#8217;s neighborhood has a tradition of having people cross-dress or dressing crazily for most of Day 2. A fun way to enjoy the festive spirit indeed!</p>

<p><a href="http://www.flickr.com/photos/90515377@N00/4763861956" title="View 'Untitled' on Flickr.com"><img border="0"width="500"alt="Untitled"src="http://farm5.static.flickr.com/4142/4763861956_b759e3a1c1.jpg"height="333"/></a></p>

<p>Maybe next year I will partake in this part of the festivities, I am still undecided.</p>

<p><a href="http://www.flickr.com/photos/90515377@N00/4763875158" title="View 'Woman Dancing' on Flickr.com"><img border="0"width="500"alt="Woman Dancing"src="http://farm5.static.flickr.com/4100/4763875158_508928bc2c.jpg"height="333"/></a></p>

<p>We slowly made our way back to our neighborhood. Pulling yattai, listening to taiko, and generally just relaxing. I also got to really use my camera all night long and learn a lot more about night photography &#8211; sans-flash.</p>

<p><a href="http://www.flickr.com/photos/90515377@N00/4763228315" title="View 'Boy playing Flute' on Flickr.com"><img border="0"width="500"alt="Boy playing Flute"src="http://farm5.static.flickr.com/4076/4763228315_d14dac0137.jpg"height="333"/></a></p>

<p>Boy playing Flute</p>

<p><a href="http://www.flickr.com/photos/90515377@N00/4763232921" title="View 'Woman playing Taiko' on Flickr.com"><img border="0"width="500"alt="Woman playing Taiko"src="http://farm5.static.flickr.com/4077/4763232921_2e0be5849d.jpg"height="333"/></a></p>

<p>Woman playing Taiko</p>

<p><a href="http://www.flickr.com/photos/90515377@N00/4763878458" title="View 'Father and Son' on Flickr.com"><img border="0"width="500"alt="Father and Son"src="http://farm5.static.flickr.com/4143/4763878458_3939cd03ef.jpg"height="333"/></a></p>

<p>Matsuri really are a great. A perfect chance to let your hair down, enjoy the company of your neighbors, meet old friends, and make new friends.</p>

<p>I&#8217;ve posted all of my photographs from the Matsuri in Flickr in my <a href="http://www.flickr.com/photos/90515377@N00/sets/72157624425804988/" title="View all photos on Flickr" target="_blank">Chikura Matsuri 2010</a> set.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.james-vandyne.com/matsuri-in-chikura-day-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Matsuri in Chikura &#8211; Day 1</title>
		<link>http://www.james-vandyne.com/matsuri-in-chikura-day-1/</link>
		<comments>http://www.james-vandyne.com/matsuri-in-chikura-day-1/#comments</comments>
		<pubDate>Sun, 11 Jul 2010 05:36:02 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Japan]]></category>
		<category><![CDATA[Travel]]></category>

		<guid isPermaLink="false">http://www.james-vandyne.com/?p=101</guid>
		<description><![CDATA[It&#8217;s that time of year again: time to carry a 800 kilo god taxi around town. This time was a little different because I sort of knew what was going on. I knew the course for the most part. This year I also finally understood the proper way to carry Mikoshi. No, it&#8217;s not to [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s that time of year again: time to carry a 800 kilo god taxi around town. This time was a little different because I sort of knew what was going on. I knew the course for the most part. 
<span id="more-101"></span></p>

<p><a href="http://www.flickr.com/photos/90515377@N00/4763877426" title="Me, I wish I could remember his name right now - sorry, Mari, and Naoko"><img border="0"width="500"alt="Me, I wish I could remember his name right now - sorry, Mari, and Naoko"src="http://farm5.static.flickr.com/4077/4763877426_7c34b08a4a.jpg"height="333"/></a></p>

<p>This year I also finally understood the proper way to carry Mikoshi. No, it&#8217;s not to bend your knees a bit and let everyone else carry it. Rather, you should be leaning on it with your feet outside and on walking on your sides. The theory is, if everyone did this, you would collectively form a triangle, which are strong. Also, you can walk forward together without stepping on each other&#8217;s feet. It feels unnatural at first, but you get used to it and &#8220;trust&#8221; the Mikoshi.</p>

<p>This being my second time around, I had a bit more trust with the locals. They knew I could carry it and wouldn&#8217;t give in. A few people in town also thanked for me coming every year.</p>

<p>The Mikoshi and Festival is mostly prepared for by the towns local sonenkai, or &#8220;General Age Club&#8221;. The sonenkai is made up of males between the ages of 18 &#8211; 47ish. It seems reminiscent of a lions or rotary club of sorts in that they do things for the local community. It seems I&#8217;ve proven myself to them and I am joining the club. No secret handshakes though&#8230;</p>

<p>Having an opportunity to participate in the Matsuri from start (well, almost the start) of the festivities through clean up, really gave me a new respect for the work that goes into a Japanese Matsuri and the kind of community and cooperation it requires. Moreover, joining and being &#8220;accepted&#8221; into the local community like I have is a rather humbling experience.</p>

<p>As a &#8220;member&#8221; of the sonenkai, I only have 20 some-odd more times that I am required to carry Mikoshi. To most, this might seem a burden, and truth be told, it is a burden. It&#8217;s a burden that simultaneously strikes fear and excitement into my heart. A burden that I will gladly carry. And then promptly thank God the moment it&#8217;s over that I don&#8217;t have to carry it for another year.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.james-vandyne.com/matsuri-in-chikura-day-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
