<?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>Life and Leisure. Tech and Toys. &#187; workin it</title>
	<atom:link href="http://blog.thaichaiguy.com/category/workin-it/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.thaichaiguy.com</link>
	<description>A blog by a one-man gamer, programmer and hobbyist. Spreading views of life and leisure, tech and toys.</description>
	<lastBuildDate>Wed, 28 Jul 2010 00:40:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Lenovo ThinkPad Fn Ctrl Key Swap</title>
		<link>http://blog.thaichaiguy.com/1478/lenovo-thinkpad-fn-ctrl-key-swap/</link>
		<comments>http://blog.thaichaiguy.com/1478/lenovo-thinkpad-fn-ctrl-key-swap/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 02:54:08 +0000</pubDate>
		<dc:creator>thaichaiguy</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[workin it]]></category>

		<guid isPermaLink="false">http://blog.thaichaiguy.com/?p=1478</guid>
		<description><![CDATA[I just got a new laptop at work and since this is the first time I&#8217;m using a ThinkPad I&#8217;ve been annoyed at the position of the Fn key. The Fn key is literally in the exact spot where I would expect the Ctrl key. After a little searching online I found this is actually [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.thaichaiguy.com/wp-content/uploads/2010/03/lenovo-thinkpad-fn-ctrl.jpg"><img class="alignleft size-thumbnail wp-image-1479" title="lenovo-thinkpad-fn-ctrl" src="http://blog.thaichaiguy.com/wp-content/uploads/2010/03/lenovo-thinkpad-fn-ctrl-150x150.jpg" alt="" width="150" height="150" /></a><a href="http://blog.thaichaiguy.com/wp-content/uploads/2010/03/Lenovo-ThinkPad-W510.jpg"><img class="alignleft size-thumbnail wp-image-1477" title="Lenovo-ThinkPad-W510" src="http://blog.thaichaiguy.com/wp-content/uploads/2010/03/Lenovo-ThinkPad-W510-150x150.jpg" alt="" width="150" height="150" /></a><br style="clear: left;" />I just got a new laptop at work and since this is the first time I&#8217;m using a ThinkPad I&#8217;ve been annoyed at the position of the Fn key. The Fn key is literally in the exact spot where I would expect the Ctrl key. After a little searching online I found this is actually a pretty popular topic. So much so that Lenovo themselves issued a poll on their blog. By popular demand Lenovo has issued BIOS updates all new ThinkPad laptops (ThinkPad X100e, Edge 13″, T410s, T410, T510, and W510).</p>
<p>The BIOS update allows the user to choose to swap the function of the two keys through the BIOS. To enter the BIOS hold the F1 key at start-up. Once in the BIOS select Config, then select Keyboard/Mouse. Once in the Keyboad/Mouse menu enable the Fn Ctrl key swap. Once you have saved and exited the BIOS, the function of the two keys will be swapped, however you still might be fooled by the print on the keys. I thought about swapping the keys but Ctrl key is a little longer than the Fn key and probably won&#8217;t fit.</p>
<p><a href="http://lenovoblogs.com/yamato/?p=453&amp;language=en">Source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thaichaiguy.com/1478/lenovo-thinkpad-fn-ctrl-key-swap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mega Man Solid Snake</title>
		<link>http://blog.thaichaiguy.com/1210/mega-man-solid-snake/</link>
		<comments>http://blog.thaichaiguy.com/1210/mega-man-solid-snake/#comments</comments>
		<pubDate>Sun, 27 Sep 2009 02:56:49 +0000</pubDate>
		<dc:creator>thaichaiguy</dc:creator>
				<category><![CDATA[chillin]]></category>
		<category><![CDATA[video game reviews]]></category>
		<category><![CDATA[workin it]]></category>

		<guid isPermaLink="false">http://blog.thaichaiguy.com/?p=1210</guid>
		<description><![CDATA[
Old Snake from Metal Gear Solid 4: Guns of the Patriots done in Mega Man 8-Bit style.

Old Snake
Old Snake w/ Solid Eye
Old Snake w/ Gun (SA 1911A1 Operator)
Old Snake w/ Both

Inspired by Super Mega Street Fighter IV Mans
]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.thaichaiguy.com/wp-content/uploads/2009/09/mega_man_solid_snake_all.gif"><img class="alignnone size-full wp-image-1211" title="mega_man_solid_snake_all" src="http://blog.thaichaiguy.com/wp-content/uploads/2009/09/mega_man_solid_snake_all.gif" alt="mega_man_solid_snake_all" width="348" height="96" /></a><br />
Old Snake from <em>Metal Gear Solid 4: Guns of the Patriots</em> done in Mega Man 8-Bit style.</p>
<ul>
<li>Old Snake</li>
<li>Old Snake w/ Solid Eye</li>
<li>Old Snake w/ Gun (SA 1911A1 Operator)</li>
<li>Old Snake w/ Both</li>
</ul>
<p>Inspired by <a href="http://www.capcom-unity.com/street_fighter/go/thread/view/7411/20179857/Mega_ManInspired_Street_Fighter_4_Sprites?num=10&amp;pg=1">Super Mega Street Fighter IV Mans</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thaichaiguy.com/1210/mega-man-solid-snake/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>MediaTemple with CakePhp Session Lost during Refresh</title>
		<link>http://blog.thaichaiguy.com/847/mediatemple-with-cakephp-session-lost-during-refresh/</link>
		<comments>http://blog.thaichaiguy.com/847/mediatemple-with-cakephp-session-lost-during-refresh/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 00:56:41 +0000</pubDate>
		<dc:creator>thaichaiguy</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[workin it]]></category>

		<guid isPermaLink="false">http://blog.thaichaiguy.com/?p=847</guid>
		<description><![CDATA[Problem:
I just came across as strange problem with using CakePhp on MediaTemple. This is my first CakePhp application on MediaTemple but I am experienced when it comes to CakePhp. The problem occurs after logging in and creating a session, then quickly refresh the page multiple times. Sometimes the result will be an empty session.
The login [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong><br />
I just came across as strange problem with using CakePhp on MediaTemple. This is my first CakePhp application on MediaTemple but I am experienced when it comes to CakePhp. The problem occurs after logging in and creating a session, then quickly refresh the page multiple times. Sometimes the result will be an empty session.</p>
<p>The login uses the standard php $_SESSION array variables but the result is an empty session regardless if you use CakePhp&#8217;s built in session object. Out of the box CakePhp 1.2 is set up to run using the php.ini configurations and this is probably the problem. I&#8217;m assuming the way MediaTemple configured their (gs) servers prevent CakePhp from utilizing the session path in the php.ini. Why this only works half the time when you&#8217;re not quickly hitting refresh, I have yet to figure out.</p>
<p><span id="more-847"></span></p>
<p><strong>Solution</strong>:<br />
Luckily the solution is simple thanks the CakePhp&#8217;s built in session handling. Simply change the following line in the core.php configuration file:</p>
<pre>Configure::write('Session.save', 'php');</pre>
<p>to:</p>
<pre>Configure::write('Session.save', 'cake');</pre>
<p>This tells the CakePhp configuration to use it&#8217;s built in session handling. Make sure the &#8220;app/tmp&#8221; directory is writable and everything should work correctly. This fix worked for me but if anyone can verify the problem that would get rid of these lingering question marks in my head. If this fix works for you, I&#8217;m glad I could waste the hours trying to figure it out for you.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thaichaiguy.com/847/mediatemple-with-cakephp-session-lost-during-refresh/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Drupal LA Convention</title>
		<link>http://blog.thaichaiguy.com/568/drupal-la-convention/</link>
		<comments>http://blog.thaichaiguy.com/568/drupal-la-convention/#comments</comments>
		<pubDate>Sat, 13 Sep 2008 23:28:03 +0000</pubDate>
		<dc:creator>thaichaiguy</dc:creator>
				<category><![CDATA[Mobile Post]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[workin it]]></category>

		<guid isPermaLink="false">http://blog.thaichaiguy.com/568/drupal-la-convention/</guid>
		<description><![CDATA[So far the convention has been pretty informative on a beginner level. It has really gotten me more excited about learning Drupal since I haven&#8217;t learned much just from listening to presentations. Like they say, there&#8217;s nothing better than jumping right in yourself.
I guess this convention just gave me more confidence in trying it myself. [...]]]></description>
			<content:encoded><![CDATA[<p>So far the convention has been pretty informative on a beginner level. It has really gotten me more excited about learning Drupal since I haven&#8217;t learned much just from listening to presentations. Like they say, there&#8217;s nothing better than jumping right in yourself.</p>
<p>I guess this convention just gave me more confidence in trying it myself. It also gave me more faith in the framework itself. Its as if they&#8217;ve convinced me that Drupal isn&#8217;t just the future. Drupal is now. It really is like preaching a religion, I might be converted.</p>
<p><a href="http://blog.thaichaiguy.com/wp-content/uploads/2008/09/laconvention.jpg"><img class="alignnone size-full wp-image-364" src="http://blog.thaichaiguy.com/wp-content/uploads/2008/09/laconvention.jpg" alt="" width="225" height="300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thaichaiguy.com/568/drupal-la-convention/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Welcome to Quakeville</title>
		<link>http://blog.thaichaiguy.com/460/welcome-to-quakeville/</link>
		<comments>http://blog.thaichaiguy.com/460/welcome-to-quakeville/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 19:23:19 +0000</pubDate>
		<dc:creator>thaichaiguy</dc:creator>
				<category><![CDATA[chillin]]></category>
		<category><![CDATA[workin it]]></category>

		<guid isPermaLink="false">http://blog.thaichaiguy.com/?p=460</guid>
		<description><![CDATA[
I&#8217;ve just witnessed my first big earthquake since moving back to California. I remember running under a table for cover when I was just a little kid but even today earthquakes still scare me to death. About 15 miles north east of where I currently work a 5.8 magnitude earthquake shook Chino Hills, CA.
The building [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.thaichaiguy.com/wp-content/uploads/2008/07/datelinecalifornia2008earthquake.gif"><img class="alignnone size-medium wp-image-461" title="chino hills earthquake" src="http://blog.thaichaiguy.com/wp-content/uploads/2008/07/datelinecalifornia2008earthquake-300x196.gif" alt="" width="300" height="196" /></a></p>
<p>I&#8217;ve just witnessed my first big earthquake since moving back to California. I remember running under a table for cover when I was just a little kid but even today earthquakes still scare me to death. About 15 miles north east of where I currently work a 5.8 magnitude earthquake shook Chino Hills, CA.</p>
<p>The building swayed, people screamed and I couldn&#8217;t help but think that I was in the worst place imaginable. The seventh floor of a building. Luckily it seems like everyone is alright and <a href="http://www.cnn.com/2008/US/07/29/earthquake.ca/index.html">CNN is already reporting</a> that no damages, deaths, or injuries have been reported.</p>
<p>I haven&#8217;t heard this many helicopters since the <a href="http://www.youtube.com/watch?v=WcFXem10H3w">brush fires last year</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thaichaiguy.com/460/welcome-to-quakeville/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Internet Explorer innerHTML SELECT bug</title>
		<link>http://blog.thaichaiguy.com/359/internet-explorer-innerhtml-select-bug/</link>
		<comments>http://blog.thaichaiguy.com/359/internet-explorer-innerhtml-select-bug/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 18:59:34 +0000</pubDate>
		<dc:creator>thaichaiguy</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[workin it]]></category>

		<guid isPermaLink="false">http://blog.thaichaiguy.com/?p=359</guid>
		<description><![CDATA[I was trying to make a quick and dirty AJAX drop-down box yesterday and for some reason after getting it to work in Firefox, IE seemed unresponsive. For both IE6 and IE7 the function would not populate the drop-down.
I know innerHTML is not standard but for a quick fix it seems logical. So basically I [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying to make a quick and dirty AJAX drop-down box yesterday and for some reason after getting it to work in Firefox, IE seemed unresponsive. For both IE6 and IE7 the function would not populate the drop-down.</p>
<p>I know innerHTML is not standard but for a quick fix it seems logical. So basically I have a web service that outputs:</p>
<pre>&lt;option value="1"&gt;blah&lt;/option&gt;
&lt;option value="2"&gt;blah blah&lt;/option
...</pre>
<p>And my Prototype, Ajax.request retrieves these option tags and does the following OnSuccess:</p>
<pre>document.getElementById("selectBox").innerHTML = response.responseText;</pre>
<p>This works fine in Firefox but doesn&#8217;t do anything for IE. After looking it up on the web I came across this <a title="elmicoxcodes" href="http://elmicoxcodes.blogspot.com/2007/02/innerhtml-and-select-option-in-ie.html" target="_blank">article</a>. So, the fact is that you can&#8217;t use <em>innerHTML </em>on select tags in IE, you have to use <em>appendChild </em>or <em>addOption</em>. There goes my quick and dirty method and hours of wasted time. I guess the lesson is that I shouldn&#8217;t do things the non-standard way even when I&#8217;m pressed for time.</p>
<p>*Update* &#8211; Actually the quick way to fix this is to wrap your select tag in a span tag. Now instead of inserting the response into the innerHTML of the select tag, insert the response into the innerHTML of the span tag. Lastly, add the select tag to the web service output. Like so:</p>
<pre>&lt;select name='dropdown'&gt;
&lt;option value="1"&gt;blah&lt;/option&gt;
&lt;option value="2"&gt;blah blah&lt;/option&gt;
..
&lt;/select&gt;</pre>
<p>And in Ajax.request do this OnSuccess:</p>
<pre>document.getElementById("spanTag").innerHTML = response.responseText;</pre>
<p>If you&#8217;re still confused let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thaichaiguy.com/359/internet-explorer-innerhtml-select-bug/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>My feet hurt</title>
		<link>http://blog.thaichaiguy.com/261/my-feet-hurt/</link>
		<comments>http://blog.thaichaiguy.com/261/my-feet-hurt/#comments</comments>
		<pubDate>Fri, 12 Oct 2007 22:21:00 +0000</pubDate>
		<dc:creator>thaichaiguy</dc:creator>
				<category><![CDATA[workin it]]></category>

		<guid isPermaLink="false">http://www.blog.thaichaiguy.com/?p=261</guid>
		<description><![CDATA[I noticed my feet starting to hurt from while I&#8217;m at work. After a little investigation I noticed that I would bounce on the balls of my feet while engaging a problem. Basically anytime I had to really think about something. I haven&#8217;t found a solution for it yet, its just a habit. I started [...]]]></description>
			<content:encoded><![CDATA[<p>I noticed my feet starting to hurt from while I&#8217;m at work. After a little investigation I noticed that I would bounce on the balls of my feet while engaging a problem. Basically anytime I had to really think about something. I haven&#8217;t found a solution for it yet, its just a habit. I started taking my shoes off to relieve the stress on my feet and I&#8217;m starting to notice I feel a little more relaxed sitting at my cubicle. My feet don&#8217;t hurt that badly but I certainly notice it after a long week of work. It&#8217;s a strange feeling because it&#8217;s just the balls of my feet that feel tender. I&#8217;ve never had this problem until now for some reason.</p>
<p>Anyone having a similar issue?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thaichaiguy.com/261/my-feet-hurt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
