<?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 Black Design</title>
	<atom:link href="http://jamesblackdesign.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://jamesblackdesign.com</link>
	<description>Web Design, Development, 3D animation, Freelance</description>
	<lastBuildDate>Fri, 14 Aug 2009 03:05:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Alternate Language Plugin</title>
		<link>http://jamesblackdesign.com/2009/08/alternate-language/</link>
		<comments>http://jamesblackdesign.com/2009/08/alternate-language/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 21:26:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Dev]]></category>
		<category><![CDATA[wordpress plugin]]></category>

		<guid isPermaLink="false">http://jamesblackdesign.com/?p=46</guid>
		<description><![CDATA[Just wanted to throw up this &#8220;language toggle&#8221; wordpress plugin. It allows you to control a simple bilingual site. It gives you the option to name the 2 languages that you want to switch back and forth from, and then in each page you will select the current page&#8217;s language, the alternate language page it [...]]]></description>
			<content:encoded><![CDATA[<p>Just wanted to throw up this &#8220;language toggle&#8221; wordpress plugin. It allows you to control a simple bilingual site. It gives you the option to name the 2 languages that you want to switch back and forth from, and then in each page you will select the current page&#8217;s language, the alternate language page it should link to and that pages language. Very simple, nothing fancy but it may come in handy for somone.</p>
<p><b>Note: this a Beta release.<a href="http://www.jamesblackdesign.com/alternate_language/alternate_language_v.5.zip" mce_href="http://www.jamesblackdesign.com/alternate_language/alternate_language_v.5.zip"> </a></b></p>
<p><a href="http://www.jamesblackdesign.com/alternate_language/alternate_language_v.5.zip" mce_href="http://www.jamesblackdesign.com/alternate_language/alternate_language_v.5.zip">Download Alternate Language v.5.zip</a><br mce_bogus="1"></p>
]]></content:encoded>
			<wfw:commentRss>http://jamesblackdesign.com/2009/08/alternate-language/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Retro Flash Game</title>
		<link>http://jamesblackdesign.com/2009/06/retro-flash-game/</link>
		<comments>http://jamesblackdesign.com/2009/06/retro-flash-game/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 04:23:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://jamesblackdesign.com/?p=42</guid>
		<description><![CDATA[I&#8217;m planning on building a retro themed flash game in the coming weeks. Inspired by the recently released bit trip beat game for the wii, and my love of 80&#8217;s video games I&#8217;m going to design my own take on a retro puzzle action game. I&#8217;m going to be using the five3D engine to add [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m planning on building a retro themed flash game in the coming weeks. Inspired by the recently released bit trip beat game for the wii, and my love of 80&#8217;s video games I&#8217;m going to design my own take on a retro puzzle action game. I&#8217;m going to be using the <a href="http://five3d.mathieu-badimon.com/" target="_blank">five3D engine</a> to add a bit of depth to the look and game play.</p>
<p>I ran across a great <a href="http://abduzeedo.com/giving-your-design-retro-style" target="_blank">collection of retro atari games and ads</a> I suggest checking out, some are pretty cool. Not much just yet, in the next day or two I will be putting up some gameplay concepts as well as some design.</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesblackdesign.com/2009/06/retro-flash-game/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php chmod and safe mode</title>
		<link>http://jamesblackdesign.com/2009/06/php-chmod-and-safe-mode/</link>
		<comments>http://jamesblackdesign.com/2009/06/php-chmod-and-safe-mode/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 04:56:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Dev]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[server related]]></category>

		<guid isPermaLink="false">http://jamesblackdesign.com/?p=38</guid>
		<description><![CDATA[Changing file permissions on a server is usually pretty straight forward, just log in with your favorite ftp client that supports chmod ( a unix command for changing permissions on a file or directory ) and set the permissions on the selected folder or file with 755 or 777 etc. 
When doing it via php [...]]]></description>
			<content:encoded><![CDATA[<p>Changing file permissions on a server is usually pretty straight forward, just log in with your favorite ftp client that supports chmod ( a unix command for changing permissions on a file or directory ) and set the permissions on the selected folder or file with 755 or 777 etc. </p>
<p>When doing it via php things can become a little more tricky. This depends on your servers hosting company, most of the time the &#8220;safe_mode&#8221; is turned on by default. This will in most cases disable the chmod() function within php. The same mode is a feature in php ( no longer exists in php 6 ) that protects against unauthorized system changes like changing permissions on folders to allow anyone to write to them. </p>
<p>With safe mode on you cannot use the function and the script its contained in can fail. There are a number of ways to get around this. </p>
<ol>
<li>You can disable safe mode. Do this by editing your php config file. </li>
<li>You can set the owner on the <strong>script executing the chmod() function</strong> to the same owner as the directory you are preforming the chmod on</li>
</ol>
<p>I suggest first trying to change the owner of the script that is executing the function, this is a more secure solution then shutting off the safe mode.</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesblackdesign.com/2009/06/php-chmod-and-safe-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a jquery navigation</title>
		<link>http://jamesblackdesign.com/2009/06/a-test-post-web-dev/</link>
		<comments>http://jamesblackdesign.com/2009/06/a-test-post-web-dev/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 20:34:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Dev]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://jamesblackdesign.com/?p=10</guid>
		<description><![CDATA[A quick way to display separate pieces of information on a page without the need for multiple pages is to use jQuery. I&#8217;ll run through the process now.
1 &#8211; include jquery.js
You will need to download jQuery in order to use it. They do allow you to link to the latest version of the javascript framework [...]]]></description>
			<content:encoded><![CDATA[<p>A quick way to display separate pieces of information on a page without the need for multiple pages is to use <a href="http://www.jquery.com" target="_blank">jQuery.</a> I&#8217;ll run through the process now.</p>
<h3>1 &#8211; include jquery.js</h3>
<p>You will need to <a href="http://www.jquery.com" target="_blank">download</a> jQuery in order to use it. They do allow you to link to the latest version of the javascript framework but I only recomend to use it while testing since things change from version to version.</p>
<h3>2 &#8211; setup your &#8220;content divs&#8221;</h3>
<p>I&#8217;m going to use div&#8217;s as a way of dividing up my content into sections. You can use other methods but this will work fine for this example.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;cat_a&quot;&gt;
&lt;h3&gt;category A&lt;/h3&gt;
&lt;/div&gt;
&nbsp;
&lt;div id=&quot;cat_b&quot;&gt;
&lt;h3&gt;category B&lt;/h3&gt;
&lt;/div&gt;
&nbsp;
&lt;div id=&quot;cat_c&quot;&gt;
&lt;h3&gt;category C&lt;/h3&gt;
&lt;/div&gt;</pre></div></div>

<p>Pretty straight forward. Only thing to note here is that we have applied an id to each of the divs, you can use a class instead but make sure you use a unique class for each div.</p>
<h3>3 &#8211; Setup the buttons</h3>
<p>Now I&#8217;m going to layout the buttons that will control the sorting of the 3 categories. </p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;a href=&quot;&quot; id=&quot;a_button&quot;&gt;Category A&lt;/a&gt;
&lt;a href=&quot;&quot; id=&quot;b_button&quot;&gt;Category B&lt;/a&gt;
&lt;a href=&quot;&quot; id=&quot;c_button&quot;&gt;Category C&lt;/a&gt;</pre></div></div>

<p>Again, note that each link has its own id.</p>
<h3>4 &#8211; Building the jQuery</h3>
<p>All we have to do from here is build the jQuery code to control the categories. Create a document ready function that will be called once the page is fully loaded.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">&nbsp;
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#cat_a'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">toggle</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#cat_b'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">toggle</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#a_button'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#cat_a'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">toggle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;fast&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#cat_b'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#cat_c'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#b_button'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#cat_a'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#cat_b'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">toggle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;fast&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#cat_c'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#c_button'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#cat_a'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#cat_b'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#cat_c'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">toggle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;fast&quot;</span><span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Ok, there is a lot of code here. What this does is this: the first line is the main function that everything else is contained in, this executes when the page is loaded.</p>
<p>Then we hide our other categories that we do not want to display by default.</p>
<p>Next, we add click events with functions for each button. In each click event function we toggle ( show ) the appropriate div and hide the others. This is repeated for all of the buttons. </p>
<p>Thats it! nothing more, with this you will have animated toggling of each div. This is a very basic start into jQuery. I suggest reading up on the jQuery documentation available on their site. </p>
]]></content:encoded>
			<wfw:commentRss>http://jamesblackdesign.com/2009/06/a-test-post-web-dev/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
