<?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>ALTERNATE-REALITY.NET &#187; Special Projects</title>
	<atom:link href="http://www.afad.nl/alternate/category/special-projects/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.afad.nl/alternate</link>
	<description></description>
	<lastBuildDate>Fri, 23 Jul 2010 19:56:45 +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>LEFT JOIN, RIGHT JOIN</title>
		<link>http://www.afad.nl/alternate/2009/05/10/left-join-right-join/</link>
		<comments>http://www.afad.nl/alternate/2009/05/10/left-join-right-join/#comments</comments>
		<pubDate>Sun, 10 May 2009 11:26:57 +0000</pubDate>
		<dc:creator>Feles</dc:creator>
				<category><![CDATA[Design & Code]]></category>
		<category><![CDATA[Special Projects]]></category>
		<category><![CDATA[master post]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.afad.nl/alternate/?p=11512</guid>
		<description><![CDATA[<div class="avatar"><img src="http://www.afad.nl/alternate/wp-content/uploads/icons/computerbinary_100.jpg" width="100" height="100" alt="left-join-right-join" /></div>
I&#8217;ve noticed a very interesting difference between my local development environment and my actual webhosting. In the master post this is the query that displays the artists available (if they have downloads). On my local development environment all the artists keep coming up, while on my webhosting only those with downloads show up (as they [...]]]></description>
			<content:encoded><![CDATA[<div class="avatar"><img src="http://www.afad.nl/alternate/wp-content/uploads/icons/computerbinary_100.jpg" width="100" height="100" alt="left-join-right-join" /></div>
<p>I&#8217;ve noticed a very interesting difference between my local development environment and my actual webhosting. In the master post this is the query that displays the artists available (if they have downloads). On my local development environment all the artists keep coming up, while on my webhosting only those with downloads show up (as they should). If I change LEFT JOIN to RIGHT JOIN I reverse the problem. lol.</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw1">SELECT</span> ar_artist_id, ar_artist, ar_image, COUNT<span class="br0">&#40;</span>vi_artist_id<span class="br0">&#41;</span> <span class="kw1">AS</span> ar_numvideo</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">FROM</span> <span class="br0">&#40;</span>artist <span class="kw1">INNER</span> <span class="kw1">JOIN</span> videos <span class="kw1">ON</span> artist.ar_artist_id = videos.vi_artist_id<span class="br0">&#41;</span> <span class="kw1">LEFT</span> <span class="kw1">JOIN</span> videodownloads <span class="kw1">ON</span> videos.vi_video_id = videodownloads.vd_video_id</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">WHERE</span> artist.ar_pubterm &lt;&gt; <span class="st0">&#8216;Actor&#8217;</span> <span class="kw1">OR</span> <span class="st0">&#8216;Actress&#8217;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="kw1">GROUP</span> <span class="kw1">BY</span> ar_artist_id</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="kw1">ORDER</span> <span class="kw1">BY</span> ar_artist</div>
</li>
</ol>
</div>
<p>It&#8217;s the same with this query that shows the downloads per artist on the artist page.</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw1">SELECT</span> artist.ar_artist_id, videotypes.vt_videotype, videotypes.vt_videotype_id</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">FROM</span> artist <span class="kw1">INNER</span> <span class="kw1">JOIN</span> <span class="br0">&#40;</span>videotypes <span class="kw1">INNER</span> <span class="kw1">JOIN</span> videos <span class="kw1">ON</span> videotypes.vt_videotype_id = videos.vi_videotype_id<span class="br0">&#41;</span> <span class="kw1">ON</span> artist.ar_artist_id = videos.vi_artist_id <span class="kw1">LEFT</span> <span class="kw1">JOIN</span> videodownloads <span class="kw1">ON</span> videos.vi_video_id = videodownloads.vd_video_id</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">GROUP</span> <span class="kw1">BY</span> artist.ar_artist_id, videotypes.vt_videotype, videotypes.vt_videotype_id</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">HAVING</span> <span class="br0">&#40;</span><span class="br0">&#40;</span><span class="br0">&#40;</span>artist.ar_artist_id<span class="br0">&#41;</span>=$artistId<span class="br0">&#41;</span><span class="br0">&#41;</span></div>
</li>
</ol>
</div>
<p>What the hell? I have no explanation. haha.</p>]]></content:encoded>
			<wfw:commentRss>http://www.afad.nl/alternate/2009/05/10/left-join-right-join/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Batch of NEWS lives and new function</title>
		<link>http://www.afad.nl/alternate/2009/05/01/batch-of-news-lives-and-new-function/</link>
		<comments>http://www.afad.nl/alternate/2009/05/01/batch-of-news-lives-and-new-function/#comments</comments>
		<pubDate>Fri, 01 May 2009 12:26:15 +0000</pubDate>
		<dc:creator>Feles</dc:creator>
				<category><![CDATA[Design & Code]]></category>
		<category><![CDATA[Special Projects]]></category>
		<category><![CDATA[downloads]]></category>
		<category><![CDATA[master post]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.afad.nl/alternate/?p=11332</guid>
		<description><![CDATA[<div class="avatar"><img src="http://www.afad.nl/alternate/wp-content/uploads/icons/jyannis/news.jpg" width="100" height="100" alt="batch-of-news-lives-and-new-function" /></div>
I&#8217;ve added another batch of NEWS lives. Some of them have their pictures missing, which will be fixed in the next upload. Meanwhile I&#8217;ve added another function from my local catalog to the master post: So now it&#8217;s possible to limit the number of results shown by videotype. Enjoy! The new function I&#8217;m programming will [...]]]></description>
			<content:encoded><![CDATA[<div class="avatar"><img src="http://www.afad.nl/alternate/wp-content/uploads/icons/jyannis/news.jpg" width="100" height="100" alt="batch-of-news-lives-and-new-function" /></div>
<p>I&#8217;ve added another batch of NEWS lives. Some of them have their pictures missing, which will be fixed in the next upload.</p>
<p>Meanwhile I&#8217;ve added another function from my local catalog to the master post:</p>
<p><img class="alignnone size-full wp-image-11333" title="newfunction" src="http://www.afad.nl/alternate/wp-content/uploads/2009/05/newfunction.jpg" alt="newfunction" width="453" height="147" /></p>
<p>So now it&#8217;s possible to limit the number of results shown by videotype.</p>
<p>Enjoy!</p>
<p>The new function I&#8217;m programming will show the last 50 uploaded or something in a list view with the upload date on them. Makes it a little easier to find out what&#8217;s new.</p>]]></content:encoded>
			<wfw:commentRss>http://www.afad.nl/alternate/2009/05/01/batch-of-news-lives-and-new-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Master post runs on my catalog</title>
		<link>http://www.afad.nl/alternate/2009/04/24/master-post-runs-on-my-catalog/</link>
		<comments>http://www.afad.nl/alternate/2009/04/24/master-post-runs-on-my-catalog/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 20:02:19 +0000</pubDate>
		<dc:creator>Feles</dc:creator>
				<category><![CDATA[Design & Code]]></category>
		<category><![CDATA[Johnny's Jimusho]]></category>
		<category><![CDATA[Special Projects]]></category>
		<category><![CDATA[master post]]></category>
		<category><![CDATA[my websites]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.afad.nl/alternate/?p=11187</guid>
		<description><![CDATA[<div class="avatar"><img src="http://www.afad.nl/alternate/wp-content/uploads/icons/computerbinary_100.jpg" width="100" height="100" alt="master-post-runs-on-my-catalog" /></div>
If you click my DL Master Post right now, you will see something awesomely cool. I mentioned I was busy trying to create an &#8216;online&#8217; version of my video catalog (which stems from my anal habit of keeping things organized). I have an application offline to make sure I never loose things and that I [...]]]></description>
			<content:encoded><![CDATA[<div class="avatar"><img src="http://www.afad.nl/alternate/wp-content/uploads/icons/computerbinary_100.jpg" width="100" height="100" alt="master-post-runs-on-my-catalog" /></div>
<p>If you click my <strong>DL Master Post </strong>right now, you will see something awesomely cool. I mentioned I was busy trying to create an &#8216;online&#8217; version of my video catalog (which stems from my anal habit of keeping things organized). I have an application offline to make sure I never loose things and that I always know where they are.<strong> What I&#8217;ve done, is make use of the information already in that database and selectively pull out stuff I&#8217;ve uploaded for you (the batshit crazy fandom). </strong>I&#8217;m not a top programmer, but I can manage that&#8217;s for sure. The proces behind this is actually quite interesting, so here&#8217;s a quick-n-dirty drawing what it is that I did:</p>
<p><a href="http://www.afad.nl/alternate/wp-content/uploads/2009/04/catalog.jpg"><img class="alignnone size-medium wp-image-11188" title="catalog" src="http://www.afad.nl/alternate/wp-content/uploads/2009/04/catalog-400x278.jpg" alt="catalog" width="400" height="278" /></a></p>
<p>It&#8217;s made in such a way that if I ever were to decide I want to show you my full catalog, it&#8217;s pretty much easily possible. For now I will keep it as is. I&#8217;ve deleted a couple of functions that I think may be added to the master post. For instance:</p>
<ul>
<li>When you select an artist now, in my original catalog you can narrow the amount of videos displayed by videotype (pv, tv show, etc). In the online version that&#8217;s been stripped off.</li>
<li>I&#8217;ve deleted the breadcrumb function because I was too lazy to do that.</li>
</ul>
<p>Since it is running by integrating it into a WordPress page template, whichever new template I make in the future, the catalog will adhere to. Right now it has a small glitch because this template outlines text &#8220;justified&#8221;, but I&#8217;ll fix that.</p>
<p>In any case, enjoy the new function. There aren&#8217;t any new downloads yet, but there will be soon. If I ever manage to, I&#8217;ll open up the source code so you can be just as anal as I am. XD. Not sure you want to.</p>
<p> <img src='http://www.afad.nl/alternate/wp-content/plugins/smilies-themer/redfox/msn_red_fox_smilies-17.gif' alt=':smile:' class='wp-smiley' /> </p>]]></content:encoded>
			<wfw:commentRss>http://www.afad.nl/alternate/2009/04/24/master-post-runs-on-my-catalog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Structure, I geeked.</title>
		<link>http://www.afad.nl/alternate/2009/04/21/structure-i-geeked/</link>
		<comments>http://www.afad.nl/alternate/2009/04/21/structure-i-geeked/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 09:37:05 +0000</pubDate>
		<dc:creator>Feles</dc:creator>
				<category><![CDATA[Design & Code]]></category>
		<category><![CDATA[Johnny's Jimusho]]></category>
		<category><![CDATA[Special Projects]]></category>
		<category><![CDATA[master post]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.afad.nl/alternate/?p=11104</guid>
		<description><![CDATA[<div class="avatar"><img src="http://www.afad.nl/alternate/wp-content/uploads/icons/computerbinary_100.jpg" width="100" height="100" alt="structure-i-geeked" /></div>
Been trying to structure the downloads to more pages, since this one is already on the long side. In the meantime I’m also uploading more stuff. It reminds me of the SICK SICK amount of Johnny’s videos I actually have. By the time I finished typing a short category list, I thought it was time [...]]]></description>
			<content:encoded><![CDATA[<div class="avatar"><img src="http://www.afad.nl/alternate/wp-content/uploads/icons/computerbinary_100.jpg" width="100" height="100" alt="structure-i-geeked" /></div>
<p>Been trying to structure the downloads to more pages, since this one is already on the long side. In the meantime I’m also uploading more stuff. It reminds me of the SICK SICK amount of Johnny’s videos I actually have. By the time I finished typing a short category list, I thought it was time to go see the head doctor. Then I thought: neh, it’s one of the very few things I can always smile about when I’m down. What’s wrong with that?</p>
<p>It might actually be easily over 300 gigabytes (excluding drama’s). You can imagine this poses logistical challenges. I would not be God in my own batcave (my room) if I did not know where every file I’ve downloaded is. All presumably 300+ gigabytes of them. This on the other hand has to do with geekery, an uncontrollable desire to organize any information combined with anal perfectionism.</p>
<p> <img src='http://www.afad.nl/alternate/wp-content/plugins/smilies-themer/redfox/msn_red_fox_smilies-17.gif' alt=':smile:' class='wp-smiley' /> </p>
<p>I’ve probably mentioned it before; my entire database is now webbased though I run it offline. I was thinking about adapting a few pages for the intarweb, loading up the tables and dumping the necessary images on another hosting account. And if we’re busy with that anyways, why not expand that webversion with d/l links?</p>
<p>Oo, yes yes, it’s geek. I like the idea; though I’ll have to *cough* remove some files. This is kind of the problem if you know you can do it ‘even cooler’; it takes so dang long.</p>]]></content:encoded>
			<wfw:commentRss>http://www.afad.nl/alternate/2009/04/21/structure-i-geeked/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
