<?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>Sean Gates' Blog &#187; Work</title>
	<atom:link href="http://www.seangates.com/category/work/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.seangates.com</link>
	<description>By the looks of it {he thinks} he knows what he's doing.</description>
	<lastBuildDate>Sat, 10 Jul 2010 21:22:04 +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>Get Dropbox, Work Better, Work Smart</title>
		<link>http://www.seangates.com/2009/10/04/get-dropbox-work-better-work-smart/</link>
		<comments>http://www.seangates.com/2009/10/04/get-dropbox-work-better-work-smart/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 04:30:53 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[Dropbox]]></category>
		<category><![CDATA[file managment]]></category>
		<category><![CDATA[versioning]]></category>
		<category><![CDATA[workflow]]></category>

		<guid isPermaLink="false">http://www.seangates.com/?p=71</guid>
		<description><![CDATA[I love Dropbox. I&#8217;ve been using Dropbox for some of my file storage across my computers for about a year now. It was a great place to store my resume so that all my computers were synced with the changes that I was constantly making while out of work. And now I have begun to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="https://www.dropbox.com/referrals/NTUzNzA1NTk"><img src="http://www.seangates.com/wp-content/uploads/2009/10/logo.png" alt="Dropbox Logo" title="Dropbox Logo" width="230" height="60" class="alignnone size-full wp-image-77" /></a></p>
<p>I love <a href="https://www.dropbox.com/referrals/NTUzNzA1NTk">Dropbox</a>.</p>
<p>I&#8217;ve been using Dropbox for some of my file storage across my computers for about a year now.  It was a great place to store my resume so that all my computers were synced with the changes that I was constantly making while out of work.</p>
<p>And now I have begun to use Dropbox for development and syncing among all my computers &#8230; and it rocks.  If you haven&#8217;t considered it for your development projects, Dropbox is your answer.  No more USB sticks, or emailing myself a zip file, or anything like that.  It&#8217;s perfect!</p>
<p>Here are some highlights:</p>
<ul>
<li>2 gigabytes free</li>
<li>Any file is welcome</li>
<li>You handle your files on your computer normally; no funky upload/download</li>
<li>Versioning!  Yes, I said versioning!</li>
<li>Auto-syncing across all computers: Windows <em>and</em> Mac</li>
<li>Shared folders</li>
<li>Undo and Undelete!</li>
<li>Did I mention it was FREE?</li>
</ul>
<p>So, take a moment and <a href="https://www.dropbox.com/referrals/NTUzNzA1NTk">get your Dropbox</a>. You won&#8217;t regret it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seangates.com/2009/10/04/get-dropbox-work-better-work-smart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TurnItUp Media &#8230; DOA</title>
		<link>http://www.seangates.com/2009/10/04/turnitup-media-doa/</link>
		<comments>http://www.seangates.com/2009/10/04/turnitup-media-doa/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 02:21:18 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[dead]]></category>
		<category><![CDATA[failed]]></category>
		<category><![CDATA[startup]]></category>
		<category><![CDATA[TurnItUp Media]]></category>

		<guid isPermaLink="false">http://www.seangates.com/2009/10/04/turnitup-media-doa/</guid>
		<description><![CDATA[Well, I&#8217;m sad to say that TurnItUp Media is now officially dead. It was a great idea, and one that had my full support and faith, but it wasn&#8217;t enough. Of course, I learned an incredible amount and feel the experience was invaluable to my current work. There were things I truly could have done [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I&#8217;m sad to say that TurnItUp Media is now officially dead.  It was a great idea, and one that had my full support and faith, but it wasn&#8217;t enough.</p>
<p>Of course, I learned an incredible amount and feel the experience was invaluable to my current work.  There were things I truly could have done without (like mild panic attacks, being away from my wife, etc.) but on the whole I learned a ton.</p>
<p>In the end I feel that I gave it my all, and no matter what happens in the future, I don&#8217;t have any regrets.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seangates.com/2009/10/04/turnitup-media-doa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cool Companies</title>
		<link>http://www.seangates.com/2009/05/09/65/</link>
		<comments>http://www.seangates.com/2009/05/09/65/#comments</comments>
		<pubDate>Sat, 09 May 2009 22:55:21 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.seangates.com/2009/05/09/65/</guid>
		<description><![CDATA[I&#8217;ve been in contact with a few great companies lately, all who have really good contacts for contract work, and have great people running them. Firstoff, my friend Mitch has started http://barkingants.com. He seems to be picking up steam with his work, which is mostly small- and medium-sized websites. His work and development knowledge are [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been in contact with a few great companies lately, all who have really good contacts for contract work, and have great people running them.</p>
<p>Firstoff, my friend Mitch has started <a href="http://barkingants.com">http://barkingants.com</a>.  He seems to be picking up steam with his work, which is mostly small- and medium-sized websites.  His work and development knowledge are top notch.</p>
<p>Then, there is <a href="http://bluetractor.com">http://bluetractor.com</a> which is the online home of my friend John Thomas.  John specializes in flash presentations, and even flash games, but he also does a lot of traditional web design.  Look for Blue Tractor to break out this year with a lot of great work.</p>
<p>Lastly, there is <a href="http://gelfusion.org">http://gelfusion.org</a>, whom I just met this week.  Greg is the principle owner and he has a vast amount of experience in the online world.  I&#8217;m finding he is the silent type doing delivery of work for some pretty well-known clients, and doing awesome at it in the meantime.</p>
<p>Anyhow, things are still going okay for me.  I can&#8217;t believe it&#8217;s been over a year since I moved to the Nashville area.  Time really flies.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seangates.com/2009/05/09/65/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Related Bridge in EE</title>
		<link>http://www.seangates.com/2008/05/01/related-bridge-in-ee/</link>
		<comments>http://www.seangates.com/2008/05/01/related-bridge-in-ee/#comments</comments>
		<pubDate>Thu, 01 May 2008 21:49:27 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Expression Engine]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.seangates.com/2008/05/01/related-bridge-in-ee/</guid>
		<description><![CDATA[I&#8217;ve been using Expression Engine for a couple of weeks now, mostly for work projects. It&#8217;s been good to see how a group of people have thought of abstracting data for almost any application. It will be interesting to see if it can solve many of the problems I&#8217;ve run into when developing extremely custom [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using Expression Engine for a couple of weeks now, mostly for work projects.  It&#8217;s been good to see how a group of people have thought of abstracting data for almost any application.  It will be interesting to see if it can solve many of the problems I&#8217;ve run into when developing extremely custom applications.</p>
<p>So, one problem that we&#8217;ve come across is a way to relate several tables (or weblogs as EE calls them) together.  An example would be like so:  doctors, their specialties, and the locations of their practice.  A likely scenario is a user wants to find out what locations provide a certain specialty.  Thus, you have to use the doctors as the bridge of the data.</p>
<p>In Expression Engine you can use a related field to tie two tables of data together.  For instance, I can tie a Doctor to a certain specialty using a related field.  But, creating a bridge between the doctors&#8217; specialties and all the locations is not possible without a little custom programming.</p>
<p>Also, throw in the mix that doctors can have offices at several locations, and you&#8217;ve got a hairy set of data. (We&#8217;re using the multi-relationship plug-in from <a href="http://expressionengine.com/forums/viewthread/39595/">here</a>).<br />
<span id="more-57"></span><br />
So, let&#8217;s get to the code.</p>
<pre class="brush: php;">&lt;?php
global $DB;
$addresses = $DB-&gt;query(&quot;SELECT * FROM `exp_weblog_data` WHERE weblog_id = 6&quot;);
foreach($addresses-&gt;result as $address){
	$doctors = $DB-&gt;query(&quot;SELECT * FROM `exp_weblog_data` WHERE weblog_id = 3&quot;);
	foreach($doctors-&gt;result as $doc){
		$rel_field_ids = array(2);
		$rel_field_ids_new = '';
		$rel_field_ids[0] = $doc['field_id_34'];
		$rel_field_ids[1] = ereg_replace(&quot;\r&quot;,&quot;,&quot;,$doc['field_id_35']);
		$rel_field_ids_new = &quot;'&quot; . implode(&quot;','&quot;,$rel_field_ids) . &quot;'&quot;;
		$specialties = $DB-&gt;query(&quot;SELECT * FROM exp_relationships WHERE rel_id IN (&quot; . $rel_field_ids_new . &quot;)&quot;);
		foreach($specialties-&gt;result as $specialty){
			if($specialty['rel_child_id'] == $address['entry_id']){
				$specs[] = $specialty['rel_parent_id'];
			}
		}
	}

	if(sizeof($specs) &gt; 0) {
		$specialties_ids = $DB-&gt;query(&quot;SELECT field_id_13 FROM exp_weblog_data WHERE entry_id IN(&quot; . implode($specs,',') . &quot;)&quot;);
		foreach($specialties_ids-&gt;result as $s_id){
			$related_spec = $DB-&gt;query(&quot;SELECT * FROM exp_relationships WHERE rel_id = &quot; . $s_id['field_id_13']);
			$related_spec_title = $DB-&gt;query(&quot;SELECT title FROM exp_weblog_titles WHERE entry_id = &quot; . $related_spec-&gt;row['rel_child_id']);
			if(!in_array($related_spec_title-&gt;row['title'],$titles_array)){ $titles_array[] = $related_spec_title-&gt;row['title']; }
		}
	}
	implode($titles_array,&quot;','&quot;)
}
?&gt;</pre>
<p>So, in a nutshell the code above will compare the locations with the specialties using the exp_relationships table and the doctor as the bridge.</p>
<p>I had to think about it a bit, but you kinda get the idea.  I hope this helps someone out there struggling with the same issue.</p>
<p>Happy coding.</p>
<p><strong>Note:</strong> When copying this code make sure you replace the curly quotes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seangates.com/2008/05/01/related-bridge-in-ee/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New job &#8230;</title>
		<link>http://www.seangates.com/2008/03/12/new-job/</link>
		<comments>http://www.seangates.com/2008/03/12/new-job/#comments</comments>
		<pubDate>Thu, 13 Mar 2008 00:43:43 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.seangates.com/2008/03/12/new-job/</guid>
		<description><![CDATA[Just a quick note to say that I&#8217;ve got a new job. It&#8217;s taken me 3 weeks to get it on here. Anyhow, the new place is Paramore &#124; Redd Online Marketing. A great place to work. They&#8217;re an all Apple shop, too. So, they must be cool.]]></description>
			<content:encoded><![CDATA[<p>Just a quick note to say that I&#8217;ve got a new job.  It&#8217;s taken me 3 weeks to get it on here.  Anyhow, the new place is <a href="http://www.paramoreredd.com">Paramore | Redd Online Marketing</a>.  A great place to work.  They&#8217;re an all Apple shop, too.  So, they must be cool.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seangates.com/2008/03/12/new-job/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
