<?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>trickeries! &#187; this site</title>
	<atom:link href="http://trickeries.com/tag/this-site/feed/" rel="self" type="application/rss+xml" />
	<link>http://trickeries.com</link>
	<description>it's tricky to rock a style thats liked online</description>
	<lastBuildDate>Tue, 02 Mar 2010 06:01:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>I&#8217;ve made a new theme, help me name it.</title>
		<link>http://trickeries.com/242/ive-mad-a-new-theme-help-me-name-it/</link>
		<comments>http://trickeries.com/242/ive-mad-a-new-theme-help-me-name-it/#comments</comments>
		<pubDate>Sat, 04 Oct 2008 04:18:49 +0000</pubDate>
		<dc:creator>atom</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[pixler]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[this site]]></category>

		<guid isPermaLink="false">http://trickeries.com/?p=242</guid>
		<description><![CDATA[I liked my old theme, but I was getting tired of it and wanted to try something new.  This theme is very different than my last (and I think pretty different in general), which is one of the things I was going for.
It has a full page flexible layout as opposed to a fixed width [...]]]></description>
			<content:encoded><![CDATA[<p>I liked my old theme, but I was getting tired of it and wanted to try something new.  This theme is very different than my last (and I think pretty different in general), which is one of the things I was going for.</p>
<p>It has a full page flexible layout as opposed to a fixed width centered layout, is brightly colored rather than dark, and the biggest thing is that there is no JavaScript, and my last theme was filthy with the stuff.</p>
<p>There is some fine tuning to be done, once the little things are taken care of the theme will be available for download.</p>
<p>If anyone has a great name for it, please drop it in the comments.  Extra points if you can manage the word &#8220;thuggin&#8221; into it.  I can&#8217;t come up with a damn thing.</p>
]]></content:encoded>
			<wfw:commentRss>http://trickeries.com/242/ive-mad-a-new-theme-help-me-name-it/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>situational Javascript based on body ID</title>
		<link>http://trickeries.com/26/situational-javascript-based-on-body-id/</link>
		<comments>http://trickeries.com/26/situational-javascript-based-on-body-id/#comments</comments>
		<pubDate>Mon, 03 Mar 2008 07:26:53 +0000</pubDate>
		<dc:creator>atom</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[this site]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://trickeries.com/26/situational-javascript-based-on-body-id/</guid>
		<description><![CDATA[I know that this is not anything revolutionary or anything, but I found it very helpful when making this site, so I thought I would share.
By assigning the body element an ID, you can check it with Javascript, and then execute what you need to based on this condition, like so(wordpress example):
Some php, for the [...]]]></description>
			<content:encoded><![CDATA[<p>I know that this is not anything revolutionary or anything, but I found it very helpful when making this site, so I thought I would share.</p>
<p>By assigning the body element an ID, you can check it with Javascript, and then execute what you need to based on this condition, like so(wordpress example):</p>
<h3>Some php, for the Wordpress template (in header.php):</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #FF00FF; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #00FF00;">if</span><span style="color: #FF6600;">&#40;</span>is_home<span style="color: #FF6600;">&#40;</span><span style="color: #FF6600;">&#41;</span><span style="color: #FF6600;">&#41;</span> <span style="color: #666666; font-style: italic;">//if we are at the wordpress &quot;home&quot;</span>
	<span style="color: #00FF00;">$location</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'home'</span><span style="color: #339933;">;</span>
<span style="color: #00FF00;">elseif</span><span style="color: #FF6600;">&#40;</span>is_single<span style="color: #FF6600;">&#40;</span><span style="color: #FF6600;">&#41;</span> <span style="color: #339933;">||</span> is_page<span style="color: #FF6600;">&#40;</span><span style="color: #FF6600;">&#41;</span><span style="color: #FF6600;">&#41;</span> <span style="color: #666666; font-style: italic;">// if it is a single post or page</span>
	<span style="color: #00FF00;">$location</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'single'</span><span style="color: #339933;">;</span>
<span style="color: #00FF00;">elseif</span><span style="color: #FF6600;">&#40;</span>is_some_strange_situation<span style="color: #FF6600;">&#40;</span><span style="color: #FF6600;">&#41;</span><span style="color: #FF6600;">&#41;</span> <span style="color: #666666; font-style: italic;">// a user function that test for something strange</span>
	<span style="color: #00FF00;">$location</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'strange'</span><span style="color: #339933;">;</span>
<span style="color: #00FF00;">else</span> <span style="color: #666666; font-style: italic;">// otherwise, nothing special</span>
	<span style="color: #00FF00;">$location</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'default'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;body id=&quot;<span style="color: #FF00FF; font-weight: bold;">&lt;?php</span> <span style="color: #00FF00;">echo</span> <span style="color: #00FF00;">$location</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;</pre></div></div>

<h3>Then some Javascript:</h3>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><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: #00FF00; font-weight: bold;">switch</span><span style="color: #99FF00;">&#40;</span>document.<span style="color: #0066FF;">body</span>.<span style="color: #0066FF;">id</span><span style="color: #99FF00;">&#41;</span><span style="color: #99FF00;">&#123;</span>
		<span style="color: #00FF00; font-weight: bold;">case</span> <span style="color: #3366CC;">'home'</span><span style="color: #339933;">:</span>
			runAtHomeOnly<span style="color: #99FF00;">&#40;</span><span style="color: #99FF00;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #00FF00; font-weight: bold;">break</span><span style="color: #339933;">;</span>
		<span style="color: #00FF00; font-weight: bold;">case</span> <span style="color: #3366CC;">'single'</span><span style="color: #339933;">:</span>
			runOnSingleOnly<span style="color: #99FF00;">&#40;</span><span style="color: #99FF00;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #00FF00; font-weight: bold;">break</span><span style="color: #339933;">;</span>
		<span style="color: #00FF00; font-weight: bold;">case</span> <span style="color: #3366CC;">'strange'</span><span style="color: #339933;">:</span>
			runOnStrangeOnly<span style="color: #99FF00;">&#40;</span><span style="color: #99FF00;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #FF00FF; font-weight: bold;">default</span><span style="color: #339933;">:</span>
			runOtherwise<span style="color: #99FF00;">&#40;</span><span style="color: #99FF00;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #00FF00; font-weight: bold;">break</span><span style="color: #339933;">;</span>
	<span style="color: #99FF00;">&#125;</span>
	runThisAlways<span style="color: #99FF00;">&#40;</span><span style="color: #99FF00;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #FF00FF; font-weight: bold;">function</span> runAtHomeOnly<span style="color: #99FF00;">&#40;</span><span style="color: #99FF00;">&#41;</span><span style="color: #99FF00;">&#123;</span>
		<span style="color: #000066;">alert</span><span style="color: #99FF00;">&#40;</span><span style="color: #3366CC;">'You are home.'</span><span style="color: #99FF00;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #99FF00;">&#125;</span>
&nbsp;
	<span style="color: #FF00FF; font-weight: bold;">function</span> runOnSingleOnly<span style="color: #99FF00;">&#40;</span><span style="color: #99FF00;">&#41;</span><span style="color: #99FF00;">&#123;</span>
		<span style="color: #000066;">alert</span><span style="color: #99FF00;">&#40;</span><span style="color: #3366CC;">'You are on a single post or page.'</span><span style="color: #99FF00;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #99FF00;">&#125;</span>
&nbsp;
	<span style="color: #FF00FF; font-weight: bold;">function</span> runOnStrangeOnly<span style="color: #99FF00;">&#40;</span><span style="color: #99FF00;">&#41;</span><span style="color: #99FF00;">&#123;</span>
		<span style="color: #000066;">alert</span><span style="color: #99FF00;">&#40;</span><span style="color: #3366CC;">'You are somewhere strange.'</span><span style="color: #99FF00;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #99FF00;">&#125;</span>
&nbsp;
	<span style="color: #FF00FF; font-weight: bold;">function</span> runOtherwise<span style="color: #99FF00;">&#40;</span><span style="color: #99FF00;">&#41;</span><span style="color: #99FF00;">&#123;</span>
		<span style="color: #000066;">alert</span><span style="color: #99FF00;">&#40;</span><span style="color: #3366CC;">'You are not home, at a single post or page, and you are not somewhere strange.'</span><span style="color: #99FF00;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #99FF00;">&#125;</span>
&nbsp;
	<span style="color: #FF00FF; font-weight: bold;">function</span> runThisAlways<span style="color: #99FF00;">&#40;</span><span style="color: #99FF00;">&#41;</span><span style="color: #99FF00;">&#123;</span>
		<span style="color: #000066;">alert</span><span style="color: #99FF00;">&#40;</span><span style="color: #3366CC;">'I always run.'</span><span style="color: #99FF00;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #99FF00;">&#125;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p>The example is a little verbose I know, but wanted to make sure my point was gotten <img src='http://trickeries.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://trickeries.com/26/situational-javascript-based-on-body-id/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>its time to get tricky.</title>
		<link>http://trickeries.com/1/hello-world/</link>
		<comments>http://trickeries.com/1/hello-world/#comments</comments>
		<pubDate>Thu, 28 Feb 2008 06:00:08 +0000</pubDate>
		<dc:creator>atom</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[me]]></category>
		<category><![CDATA[this site]]></category>

		<guid isPermaLink="false">http://trickeries.com/1/hello-world/</guid>
		<description><![CDATA[Site launched!
Just launched the site with the sexy theme you see here, inspired by lite-brite and the use of cheap effective vector brushes.
The posting here will be mainly focused on the little pieces of code i write during the course of my day. I will release code, themes and plugins here when i get around [...]]]></description>
			<content:encoded><![CDATA[<h2>Site launched!</h2>
<p>Just launched the site with the sexy theme you see here, inspired by lite-brite and the use of cheap effective vector brushes.</p>
<p>The posting here will be mainly focused on the little pieces of code i write during the course of my day. I will release code, themes and plugins here when i get around to finalizing and packaging stuff.</p>
<p>A couple of notes on the creation of this site, in no reasonable order:</p>
<ul>
<li>Wordpress is annoying sometimes, but it is still the best publishing platform out there.</li>
<li>Wordpress widgets are weak.  They do not allow for the level of customization that i usually like to have.</li>
<li>To anyone who has tangled with it, the backend implementation of the tagging / taxonomy system is nightmarish, which is surprising because it is so reasonable in bbPress.</li>
<li>Transparent pngs are awesome.</li>
<li>I hate it when flexibility is sacrificed for convenience.  I am using several plugins that required way too much work in order to use the way i wanted to.  For example, the &#8220;add this&#8221; plugin uses filters instead of simply allowing template tags, so it shows up where it wants to, instead of where i want it to.  The twitter tools plugin only provides its front end functionality via a widget, rather than providing some means of using it in any other way. :p</li>
<li>IE7 is barely an improvement, it has been an unreal pain in the ass during the creation of this site.</li>
<li>I desire to do everything in excessively flamboyant ways that are completely unreasonable, inaccessible, and totally lacking in subtlety.</li>
<li>CSS3 needs to happen sooner.</li>
<li>so does IE8</li>
<li>i love making websites.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://trickeries.com/1/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
