<?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>firsttube.com &#187; Social Networking</title>
	<atom:link href="http://www.firsttube.com/category/social-networking/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.firsttube.com</link>
	<description>crunchy nuggets, served semi-daily</description>
	<lastBuildDate>Tue, 03 Jan 2012 00:14:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Creating a JSON API</title>
		<link>http://www.firsttube.com/read/creating-a-json-api/</link>
		<comments>http://www.firsttube.com/read/creating-a-json-api/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 19:22:37 +0000</pubDate>
		<dc:creator>Adam S</dc:creator>
				<category><![CDATA[Phish]]></category>
		<category><![CDATA[Social Networking]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web 2.0]]></category>

		<guid isPermaLink="false">http://firsttube.com/?p=1887</guid>
		<description><![CDATA[I was assisting someone recently in building an API for their website and it occurred to me that while the current trend is generally using XML/REST/SOAP for APIs, there is quite a bit of benefit to using plain old Javascript &#8230; <a href="http://www.firsttube.com/read/creating-a-json-api/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was assisting someone recently in building an API for their website and it occurred to me that while the current trend is generally using XML/REST/SOAP for APIs, there is quite a bit of benefit to using plain old Javascript and JSON.  Most users won&#8217;t venture into API territory, so if your goal is to make your API accessible &#8211; and this goes double if your primary purpose is embedding content in a third party site &#8211; it&#8217;s hard to argue with Javascript.</p>
<p>The <a href="http://api.phish.net">Phish.net API</a>, for example, is a simple HTTP request to an endpoint that returns JSON.  If you provide a callback function name as an argument, and then pre-define that function, it will return the contents wrapped in a function call.  In short, if you define a function called &#8220;example()&#8221; that accepts JSON an array/object as an argument, then by requesting the API with a callback of &#8220;example&#8221;, the response will be returned like so:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">example<span style="color: #009900;">&#40;</span>json response<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>The benefit, of course, is that it allows a user to embed your code easily.  If you host your own callback functions, you can very easily walk a user through a data embed.  For example, on Phish.net, we offer the band&#8217;s latest setlist.  So we host a callback called pnet3setlist().  Then we offer the API response.  Embedding the setlist is literally as easy as this:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;http://api.phish.net/callbacks/pnet3-setlist.js&quot;</span> type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;https://api.phish.net/api.json?method=pnet.shows.setlist.recent&amp;amp;amp;callback=pnet3setlist&quot;</span> type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p>I&#8217;m going to dig more into this later, but the gist of this is that the API can be constructed in a way that allows novice users to interact with it in their WordPress- or Blogger-blogs with little to no modification, it allows semi-skilled users to modify it slightly and tweak it for display purposes, and it allows advanced users to control virtually all aspects.  Since virtually every major web language can encode and decode JSON (Javascript, PHP, Ruby, ASP, etc), it&#8217;s a near-universal way to exchange data.  It doesn&#8217;t carry the overhead or complexity of XML, nor does it have the limited scope of something like serialized PHP.</p>
<p>Javascript-based APIs may not be the ultimate solution to a fully interconnected web, but they&#8217;re certainly going to be one of the best and simplest methods of data exchange for the foreseeable future.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.firsttube.com/read/creating-a-json-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Wobbly World of Corporate Tweeting</title>
		<link>http://www.firsttube.com/read/the-wobbly-world-of-corporate-tweeting/</link>
		<comments>http://www.firsttube.com/read/the-wobbly-world-of-corporate-tweeting/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 23:36:32 +0000</pubDate>
		<dc:creator>Adam S</dc:creator>
				<category><![CDATA[Social Networking]]></category>
		<category><![CDATA[Rant]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://firsttube.com/?p=1250</guid>
		<description><![CDATA[Update: Please see the bottom of this post for the latest. I am feeling spurned.  I used to follow my local news station, Central Florida News 13, on Twitter.  A few days ago, I realized that I wasn&#8217;t seeing their &#8230; <a href="http://www.firsttube.com/read/the-wobbly-world-of-corporate-tweeting/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Update</strong>: Please see the bottom of this post for the latest.</p>
<p>I am feeling spurned.  I used to follow my local news station, <a href="http://www.cfnews13.com/">Central Florida News 13</a>, on Twitter.  A few days ago, I realized that I wasn&#8217;t seeing their tweets anymore.  Anyone who knows Twitter knows that its performance has been a huge pile of suck lately, so I figured it was one of those Twitter bugs.  I went to their page and it was full of garbage: pages and pages of the same nonsense message.  Had they been hacked? Caught that <a href="http://www.google.com/search?q=twitter+worm">Twitter worm</a>?I tried to follow them about 5 times, but it wouldn&#8217;t let me.  Broken Twitter.  Nothing new.</p>
<p>Today I saw that they had posted a new update because someone <a href="http://www.webopedia.com/TERM/R/Retweet.html">re-tweeted</a> it.  So I navigated over to their page and found that they had protected their updates.  I hit the button to  request to follow them, only to be greeted with the following:</p>
<p style="text-align:center;"><img class="aligncenter size-full wp-image-1251" title="Blocked!" src="http://firsttube.com/uploads/2009/04/photo.jpg" alt="Blocked!" width="320" height="480" /></p>
<p><strong>What the eff? </strong>They <em><strong>blocked </strong></em> me? Why? Why would they block me?</p>
<p>So let me ask: in what case does it make sense for a corporation or business to block a normal user.  I must say, I am pretty upset, upset enough that I am seriously thinking that I won&#8217;t be watching channel 13, which I normally watch almost <em>every single day</em>, anymore. If they will single me out as someone who can no longer enjoy their service, why would I be a patron in front of my TV?</p>
<p>This is probably trivial and I should ignore it, but instead, I&#8217;m going to blog my new-found hatred for Central Florida News 13 and their Twitter team. Boooooooo!</p>
<p><img class="aligncenter size-medium wp-image-1252" title="Bitch, Please!" src="http://firsttube.com/uploads/2009/04/77398_512x288_generated__oqbd9c6cy0yyedfgmi0l3w-500x281.jpg" alt="Bitch, Please!" width="500" height="281" /></p>
<p>So, knowing that doing so has lost them a viewer, does that make the world of Twitter a little scarier? Would people stop listening to a band, watching an actor, reading an author, if they expressed a feeling or idea with which the reader didn&#8217;t agree? Would companies feel that Twitter is safe ground knowing that tweeting the wrong thing or blocking a user could result in loss of business or audience?</p>
<p><strong>Update, 4/20/09</strong>: Turns out it was &#8211; unsurprisingly &#8211; a Twitter error.  I got a DM and a tweet from them, and they followed me.  I can&#8217;t understand why Twitter can&#8217;t seem to get their crap together.  You KNOW they aren&#8217;t getting as much traffic as Facebook.  With $55 million+ in the bank, you&#8217;d think they could build the right infrastructure.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.firsttube.com/read/the-wobbly-world-of-corporate-tweeting/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Facebook&#8217;s New Interface</title>
		<link>http://www.firsttube.com/read/facebooks-new-interface/</link>
		<comments>http://www.firsttube.com/read/facebooks-new-interface/#comments</comments>
		<pubDate>Sun, 15 Mar 2009 20:26:21 +0000</pubDate>
		<dc:creator>Adam S</dc:creator>
				<category><![CDATA[Social Networking]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Rant]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://firsttube.com/?p=1194</guid>
		<description><![CDATA[Facebook loosed their new interface this week.  Thus far, there is nothing &#8220;live&#8221; about it.  This makes me very sad. Honestly, if Facebook doesn&#8217;t introduce AJAX-y live update goodness to their homepage, I suspect I&#8217;ll use Facebook about 11% as &#8230; <a href="http://www.firsttube.com/read/facebooks-new-interface/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Facebook loosed their new interface this week.  Thus far, there is nothing &#8220;live&#8221; about it.  This makes me very sad.</p>
<p>Honestly, if Facebook doesn&#8217;t introduce AJAX-y live update goodness to their homepage, I suspect I&#8217;ll use Facebook about 11% as much as I used to.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.firsttube.com/read/facebooks-new-interface/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Beginner&#8217;s Guide to Twitter</title>
		<link>http://www.firsttube.com/read/a-beginners-guide-to-twitter/</link>
		<comments>http://www.firsttube.com/read/a-beginners-guide-to-twitter/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 20:46:25 +0000</pubDate>
		<dc:creator>Adam S</dc:creator>
				<category><![CDATA[Social Networking]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://firsttube.com/?p=1128</guid>
		<description><![CDATA[Suddenly, I find myself kind of addicted to Twitter. Unlike a website, RSS, or even Facebook, it really caters to the ADD side of me in an amazing way. However, Twitter can be a little confusing at first, so this &#8230; <a href="http://www.firsttube.com/read/a-beginners-guide-to-twitter/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Suddenly, I find myself kind of addicted to Twitter.  Unlike a website, RSS, or even Facebook, it really caters to the ADD side of me in an amazing way.  However, Twitter can be a little confusing at first, so this is a very basic primer for the uninitiated. Read on for much more. </p>
<p><span id="more-1128"></span></p>
<p>Twitter is considered a &#8220;micro-blogging&#8221; service.  Like other social networks, Twitter is based on the &#8220;friend&#8221; system, and allows you to do very near real time exchange with your friends.  Twitter also has an <acronym title="Application Programming Interface">API</acronym> which allows programmers to very easily write applications to extend Twitter&#8217;s functionality.  </p>
<p>To get up and running on Twitter, visit twitter.com and go to <a href="http://twitter.com/signup">their signup page</a>. You only need to provide a few bits of info and you&#8217;re ready to get <em>tweeting</em>.</p>
<p>When you &#8220;tweet,&#8221; or post to Twitter, you&#8217;ll have 140 characters to post whatever you want to say.    Most people either post their mood, what they are currently doing, some interesting news, or a link.   You should note that your tweets will be shown on the <a href="http://twitter.com/public_timeline">public timeline</a> of Twitter, so everything you type is very public.  Remember that with only 140 characters, you&#8217;ll want to be concise, and if necessary, you&#8217;ll want to use shorthand.  On Twitter, abbreviations like u, 2, 4, BTW, and other text-style short codes are normal and accepted.  More on short hand in a moment.    </p>
<p><img style="float: right; width: 293px; height:194px;" title="Twitty Bird" src="http://firsttube.com/uploads/2009/02/twitter_bird.jpg" alt="Twitty Bird" />Your next step will be friending people.  Start by clicking on &#8220;Find People.&#8221;  Twitter allows you to &#8220;follow&#8221; people, which is their concept of &#8220;friending&#8221; someone.  You can import from the normal array of web services: Gmail, Yahoo, Hotmail, MSN, and AIM.  You&#8217;ll be prompted about those already on Twitter, and then given an option to invite those who aren&#8217;t.  Nothing will be sent without your explicit approval.  You should then move to the &#8220;Find People&#8221; tab and start typing anything that interests you.  Like Starbucks? Follow them.  Interesting by Fox News? They tweet. So does Barack Obama, Britney Spears, and slews of others.  If you&#8217;re searching for more, try <a href="http://twitterholic.com/">Twitterholic</a> for suggestions.</p>
<p>Twitter is not an email chain.  If you treat it as such, where you have to go back and read every tweet from the people you&#8217;re following, it <strong>will</strong> make you crazy.  If you want to be maximize its value, you need to follow lots of people and treat it like a conversation.  When you show up to a bar, you don&#8217;t ask everyone to repeat everything they said while you were gone.  As such, follow enough people to keep a constant stream of updates coming and just pay attention to now (and maybe the very recent past).  Then you will get all sorts of interesting information from a variety of sources.  If you only follow a few people who don&#8217;t regularly tweet,  you will certainly be disappointed.</p>
<p><img style="float: left; width: 64px; height: 64px;" title="Twitterrific" src="http://firsttube.com/uploads/2009/02/twitterrific.png" alt="Twitterrific" />Once you&#8217;re following a selection of people, you need to start tweeting.  My first recommendation is that you use a desktop client rather than the website.  Although the website is nice, it&#8217;s a lot of work to keep checking it over and over.   There are literally dozens of very capable apps, and hundreds of not-so-glitzy ones out there, but I&#8217;ve tried several, and thus far, the best ones I&#8217;ve found are <a href="http://iconfactory.com/software/twitterrific">Twitterrific</a>, <a href="http://www.twhirl.org/">Twhirl</a>, <a href="http://code.google.com/p/wittytwitter/">Witty</a>, and <a href="http://www.tweetdeck.com/">Tweetdeck</a>.  I use Twitterrific on OS X and iPhone and Twhirl on Windows.  </p>
<p>Having a stand alone application will provide you several benefits:  firstly, you will not need to refresh any webpage.  The app will run silently in the background and as you decide to check it, you can catch up.  Most apps provide you the ability to have popups displayed when new tweets come in, and some allow popups displayed for just some people, which is my preference.   Unlike the Facebook &#8220;Live Feed,&#8221; you don&#8217;t need to check your Twitter stream this way, it will notify you when something you want to check is available.</p>
<p>Now you&#8217;re following people, you understand how to tweet, and you speak the basic lingo.  The last step before you&#8217;re activity tweeting is customing your profile.  Do this by clicking on &#8220;Settings.&#8221;  You should then change your picture from the default blue and brown to something more personal.  Twitter recommends a real picture, but many people use their own image.     As for backgrounds, anything is better than the default.  People are less likely to follow you if you have no picture and no custom page.  It sends the message that you don&#8217;t really care that much about your profile, and therefore, suggesting your tweets won&#8217;t be all that interesting.  </p>
<p>Once you&#8217;re off and running, you need to understand some Twitter-specific terms: @replies, retweets, direct messages, and #hash tags.  Though they sound insider-y, they are very easy.    When you reference another Twitter-er, you&#8217;ll want to prefix their username with an @symbol.  This will not only alert them about your message, it will also automatically link to their name.  That&#8217;s it &#8211; that&#8217;s @replying.  </p>
<p>When someone posts an especially good tweet, whether funny, insightful, or just something you want to share, you should &#8220;retweet&#8221; it.  You generally do this by starting your message with &#8220;RT @username &lt;their message&gt;.&#8221;  The RT indicates a <em>retweet</em>, and the @username, once again, links to their username.   Direct messages can only be sent to people who follow you and are exactly what you&#8217;d expect: non-public messages sent directly to a user.  You do this by prefixing your tweet with d and the person&#8217;s username.  For example, to direct message me, you&#8217;d type &#8220;<em>d sethadam1 hello!</em>&#8221;  Note that if you get confused and prefix your message with <em>dm</em> instead of just <em>d</em>, it will be entered into the public timeline.   </p>
<p>You should also be aware of hash tags.  By prefixing any term, such as iPhone, Orlando, Obama, etc with a pound sign, you are creating what people refer to as a hash tag.  The idea of a hash tag is that it creates a searchable term, which most Twitter clients obey, and allow you to search for other posts containing the same term.  For example, you wouldn&#8217;t necessarily use a hash before the term #vote, but you might use it for #election.  More specifically, if you went to the Macworld show, you might reference #Macworld.  </p>
<p>Don&#8217;t forget to shorten your links.  Since you are severely space limited, you can use URL shortening services like <a href="http://bit.ly">bit.ly</a>, <a href="http://snipurl.com">snipurl</a>, or <a href="http://is.gd">is.gd</a> to crunch your long links.  This is essential if you are a link re-poster.</p>
<p>Lastly, if you&#8217;re a blogger, you can use a service to import your blog posts into your Twitter feed automatically.  <a href="http://friendfeed.com">Friendfeed</a> can do this, as can <a href="http://twitterfeed.com/">Twitterfeed</a>, which specializes in reposting your blog&#8217;s RSS feed into your Twitter stream. </p>
<p>Twitter will be as enjoyable as you let it be.  If you don&#8217;t put some effort into getting up and running, it will never be an enjoyable experience.   On the other hand, if you can get past the initial steps, Twitter can be incredibly entertaining. </p>
<p><a href="http://twitter.com/sethadam1"><img class="aligncenter size-full wp-image-1131" title="Follow Me on Twitter!" src="http://firsttube.com/uploads/2009/02/twitter4.png" alt="Follow Me on Twitter!" width="201" height="74" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.firsttube.com/read/a-beginners-guide-to-twitter/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Add Latest Tweet to WordPress (Without a Plugin)</title>
		<link>http://www.firsttube.com/read/how-to-add-latest-tweet-to-wordpress/</link>
		<comments>http://www.firsttube.com/read/how-to-add-latest-tweet-to-wordpress/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 20:18:07 +0000</pubDate>
		<dc:creator>Adam S</dc:creator>
				<category><![CDATA[Social Networking]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Web 2.0]]></category>

		<guid isPermaLink="false">http://firsttube.com/?p=1101</guid>
		<description><![CDATA[I decided to add my latest &#8220;tweet&#8221; from Twitter to the sidebar of my WordPress blog. Rather than use yet another plugin that adds yet another hook &#8211; and there are many that do this with lots of code, I &#8230; <a href="http://www.firsttube.com/read/how-to-add-latest-tweet-to-wordpress/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I decided to add my latest &#8220;tweet&#8221; from Twitter to the sidebar of my WordPress blog.  Rather than use yet another plugin that adds yet another hook &#8211; and there are many that do this with lots of code, I decided to use a homegrown solution, dependant only on PHP4+ and cURL  (most webhosts already have cURL compiled in, if not, you should request it).  Adding the following to any of the files in your WordPress theme will print out your current Twitter status and cache the results so you don&#8217;t hammer their system.</p>
<p>First, <a href="http://help.twitter.com/forums/23786/entries/15360">snag your Twitter user id</a>.  Then, open up your theme file.  I put mine in sidebar.php found in <em>/wp-content/themes/&lt;THEMENAME&gt;/</em>.    Use the below code.  If you want the output wrapped in a list, you would need to put &lt;ul&gt; and &lt;li&gt; tags around this code.</p>
<p>Carefully set your variables.  The cache file should be writable.  Note that you can use a decimal value for $tw_BlankAfter and $tw_Minutes if necessary.   That&#8217;s it.</p>
<p><em>Due to what must be a bug in WordPress, please ignore the closing &#8220;&lt;/text&gt;&lt;/created_at&gt;&#8221; at the end of this post.  It&#8217;s trying be smart and &#8220;fix&#8221; broken tags, but the code is right. </em></p>
<p><strong>NOTE (2/20/09): I have updated the below code.  The new version can be found at &#8220;<a href="http://firsttube.com/read/posting-your-latest-tweet-in-wordpress/">Posting Your Latest Tweet in WordPress</a>&#8220;. </strong><em><br />
</em></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">/* ~~~~ Custom Twitter Bit ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */</span>
<span style="color: #666666; font-style: italic;">/* ~~~~ Adam S, firsttube.com, twitter @sethadam1 ~~~~~~~~~~~~~~~~~~~~ */</span>
&nbsp;
<span style="color: #000088;">$tw_File</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'/path/to/a/static/writable/file/twitter.html'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$tw_Userid</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'XXXXXXX'</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//set to your Twitter user id</span>
<span style="color: #000088;">$tw_BlankAfter</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">30</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//blank out status if it's older than this many days</span>
<span style="color: #000088;">$tw_Minutes</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">10</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//minutes between reloads</span>
&nbsp;
<span style="color: #000088;">$tw_Offset</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">FALSE</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//leave as is</span>
<span style="color: #666666; font-style: italic;">// uncomment below time if you want to allow a manual reset via ?twitter-reset</span>
<span style="color: #666666; font-style: italic;">// if($_SERVER['QUERY_STRING']=='twitter-reset') { $tw_Offset=0; } </span>
&nbsp;
<span style="color: #666666; font-style: italic;">/* Do not edit below this line */</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">filemtime</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tw_File</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>time<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-</span><span style="color: #990000;">floatval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tw_Offset</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">include</span> <span style="color: #000088;">$tw_File</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">is_writable</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tw_File</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$tw_iswritable</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
	<span style="color: #000088;">$tw_time</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">86400</span><span style="color: #339933;">*</span><span style="color: #990000;">floatval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tw_BlankAfter</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tw_Offset</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$tw_time</span><span style="color: #339933;">=</span><span style="color: #000088;">$tw_Offset</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
	<span style="color: #000088;">$tw_hyperlinks</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$tw_c</span> <span style="color: #339933;">=</span> <span style="color: #990000;">curl_init</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tw_c</span><span style="color: #339933;">,</span> CURLOPT_URL<span style="color: #339933;">,</span>
		<span style="color: #0000ff;">&quot;http://twitter.com/statuses/user_timeline/&quot;</span>
		<span style="color: #339933;">.</span><span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tw_Userid</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;.xml&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tw_c</span><span style="color: #339933;">,</span> CURLOPT_RETURNTRANSFER<span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$tw_src</span> <span style="color: #339933;">=</span> <span style="color: #990000;">curl_exec</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tw_c</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">curl_close</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tw_c</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/(.*)&amp;lt; \/created_at&amp;gt;/'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$tw_src</span><span style="color: #339933;">,</span> <span style="color: #000088;">$tw_d</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">strtotime</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tw_d</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-</span><span style="color: #000088;">$tw_time</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/(.*)&amp;lt; \/text&amp;gt;/'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$tw_src</span><span style="color: #339933;">,</span> <span style="color: #000088;">$tw_m</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$tw_status</span> <span style="color: #339933;">=</span> <span style="color: #990000;">htmlentities</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;&amp;amp;&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$tw_m</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$tw_hyperlinks</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$tw_status</span> <span style="color: #339933;">=</span> <span style="color: #990000;">ereg_replace</span><span style="color: #009900;">&#40;</span>
			<span style="color: #0000ff;">&quot;[[:alpha:]]+://[^&amp;lt;&amp;gt;[:space:]]+[[:alnum:]/]&quot;</span><span style="color: #339933;">,</span>
			<span style="color: #0000ff;">&quot;&lt;a href=&quot;</span>\<span style="color: #0000ff;">&quot;&gt;<span style="color: #000099; font-weight: bold;">\\</span>0&lt;/a&gt;&quot;</span><span style="color: #339933;">,</span>
			<span style="color: #000088;">$tw_status</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		<span style="color: #000088;">$tw_output</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$tw_status</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tw_iswritable</span><span style="color: #339933;">==</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><span style="color: #990000;">file_put_contents</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tw_File</span><span style="color: #339933;">,</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span> 
&nbsp;
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tw_iswritable</span><span style="color: #339933;">==</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #990000;">file_put_contents</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tw_File</span><span style="color: #339933;">,</span><span style="color: #000088;">$tw_output</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$tw_output</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #666666; font-style: italic;">/* ~~~ /Custom Twitter Bit ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */</span></pre></div></div>

<p><small>Please note that portions of this code come from the twtter_status() function that was not written by me, but is available from <a href="http://www.google.com/search?q=function+twitter_status()">various sources online</a>.</small></p>
<p><strong>Update</strong>: Removed function and put code inline.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.firsttube.com/read/how-to-add-latest-tweet-to-wordpress/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Re-Twittering</title>
		<link>http://www.firsttube.com/read/re-twittering/</link>
		<comments>http://www.firsttube.com/read/re-twittering/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 03:15:53 +0000</pubDate>
		<dc:creator>Adam S</dc:creator>
				<category><![CDATA[Social Networking]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://firsttube.com/?p=1097</guid>
		<description><![CDATA[I&#8217;ve decided to give Twitter a go again. It seems to move pretty quickly and satiate my ADD by filling in the gaps in my Facebook live feed.  If you and I know each other, give me a shout @sethadam1.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve decided to give Twitter a go again. It seems to move pretty quickly and satiate my ADD by filling in the gaps in my Facebook live feed.  If you and I know each other, give me a shout <a href="http://twitter.com/sethadam1">@sethadam1</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.firsttube.com/read/re-twittering/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Back to Google Reader</title>
		<link>http://www.firsttube.com/read/back-to-google-reader/</link>
		<comments>http://www.firsttube.com/read/back-to-google-reader/#comments</comments>
		<pubDate>Wed, 31 Dec 2008 18:57:01 +0000</pubDate>
		<dc:creator>Adam S</dc:creator>
				<category><![CDATA[Social Networking]]></category>
		<category><![CDATA[Bloglines]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[RSS]]></category>

		<guid isPermaLink="false">http://firsttubecom/?p=1019</guid>
		<description><![CDATA[I&#8217;ve chronicled my adventures with Bloglines before, several times, in fact.  I was not happy when their new &#8220;beta&#8221; was released, but after several revisions, it proved to be a worth successor.  Some time ago, I switched over full time &#8230; <a href="http://www.firsttube.com/read/back-to-google-reader/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve <a href="http://firsttube.com/index.php?s=bloglines">chronicled my adventures with Bloglines before</a>, several times, in fact.  I was not happy when their new &#8220;beta&#8221; was released, but after several revisions, it proved to be a worth successor.  Some time ago, I switched over full time to the beta version and never looked back.  It&#8217;s better looking, smoother, with a much more modern feel to it.  However, from time to time, it&#8217;s done weird things.  </p>
<p>Most recently, I realized that it simply stopped updating certain feeds.  One, in particular, was <a href="http://www.tuaw.com">TUAW</a>.  I later found that TUAW had moved their feed to Google, and were 301 redirecting requests to their RSS URL, http://tuaw.com/rss.xml.  Bloglines is <em>supposed</em> to follow 301s, but in this case, it just stopped updating the feed.  Other feeds has items that were clearly missing.  All of this came to a head yesterday when I was having regular troubles just <em>getting</em> into Bloglines at all. </p>
<p>The lack of any sort of Sync API and the lack of tools being developed around Bloglines forced me to make a decision: am I going to stick to Bloglines, which has worked well for me for a long time now, or jump ship? </p>
<p>Suffice it to say, I&#8217;m back on Google Reader.  The things that really annoyed me are mostly fixed: the site is <strong>much </strong>faster and smoother than before.  My only gripe is that when I click on a feed, the items must be scrolled past in order to be marked read.  I preferred the Bloglines &#8220;classic&#8221; way, which was clicking on a feed immediately marked all items as &#8220;read.&#8221;  </p>
<p>Anyway, we&#8217;ll see how things go with Google Reader.  You can be certain I&#8217;ll report back on the situation.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.firsttube.com/read/back-to-google-reader/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook Translations</title>
		<link>http://www.firsttube.com/read/facebook-translations/</link>
		<comments>http://www.firsttube.com/read/facebook-translations/#comments</comments>
		<pubDate>Fri, 19 Sep 2008 20:35:55 +0000</pubDate>
		<dc:creator>Adam S</dc:creator>
				<category><![CDATA[Social Networking]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Nerd]]></category>
		<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://firsttubecom/?p=870</guid>
		<description><![CDATA[Did you know that Facebook is offered in both Pirate and l33t sp34k?]]></description>
			<content:encoded><![CDATA[<p>Did you know that Facebook is offered in both Pirate and <a href="http://en.wikipedia.org/wiki/Leet">l33t sp34k</a>?</p>
<div id="attachment_871" class="wp-caption aligncenter" style="width: 510px"><a href="http://firsttube.com/uploads/2008/09/fb.png"><img class="size-full wp-image-871" title="Facebook Translations" src="http://firsttube.com/uploads/2008/09/fb.png" alt="Facebook Translations" width="500" height="212" /></a><p class="wp-caption-text">Facebook Translations</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.firsttube.com/read/facebook-translations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Even Facebook Makes Mistakes</title>
		<link>http://www.firsttube.com/read/even-facebook-makes-mistakes/</link>
		<comments>http://www.firsttube.com/read/even-facebook-makes-mistakes/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 20:29:24 +0000</pubDate>
		<dc:creator>Adam S</dc:creator>
				<category><![CDATA[Funny]]></category>
		<category><![CDATA[Social Networking]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[Facebook]]></category>

		<guid isPermaLink="false">http://firsttubecom/?p=807</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<div id="attachment_808" class="wp-caption aligncenter" style="width: 510px"><a href="http://firsttube.com/uploads/2008/09/facebook_makes_mistakes.png"><img class="size-full wp-image-808" title="Even Facebook Makes Mistakes" src="http://firsttube.com/uploads/2008/09/facebook_makes_mistakes.png" alt="HTML shows as entities... whoops!" width="500" height="342" /></a><p class="wp-caption-text">HTML shows as entities... whoops!</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.firsttube.com/read/even-facebook-makes-mistakes/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Facebook Blows My Mind</title>
		<link>http://www.firsttube.com/read/facebook-blows-my-mind/</link>
		<comments>http://www.firsttube.com/read/facebook-blows-my-mind/#comments</comments>
		<pubDate>Thu, 28 Aug 2008 00:32:26 +0000</pubDate>
		<dc:creator>Adam S</dc:creator>
				<category><![CDATA[Social Networking]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://firsttubecom/?p=794</guid>
		<description><![CDATA[Everyday, I&#8217;m a little more amazed and impressed by Facebook. The way it works, the way information is connected is just so useful and really smart. First of all, I am simply blown away at the &#8220;friend suggestions&#8221; that Facebook &#8230; <a href="http://www.firsttube.com/read/facebook-blows-my-mind/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Everyday, I&#8217;m a little more amazed and impressed by <a href="http://www.facebook.com">Facebook</a>.  The way it works, the way information is connected is just so useful and really smart.</p>
<p>First of all, I am simply blown away at the &#8220;friend suggestions&#8221; that Facebook offers me.  I am constantly seeing people I really do know or names I recognize.   I understand it&#8217;s probably not a very complex algorithm &#8211; see who my friends have recently friended who is not on my friend list and present them to me &#8211; but you know what? &#8211; it works.  And <a href="http://myspace.com">that other site</a> is miles behind, tech-wise.</p>
<p>I&#8217;ve also noticed that the number of people in my age group on Facebook is seemingly tripling every day.  I can&#8217;t believe the people I&#8217;m coming across these days &#8211; people I haven&#8217;t even thought of in over a decade are cropping up regularly.  And the fact that the &#8220;mini-feed&#8221; is keeping me informed of what they do via pictures and blurbs is just genius.</p>
<p>There are plenty of concerns about Facebook, from their Beacon debacle to the privacy issues to the data mining they are presumably doing, but the truth is that they are providing an amazing service in the meantime.</p>
<p>In the past few days, I&#8217;ve had some really interesting conversations pop up on some photos I posted.  The interesting part is that these are people, in some cases, I haven&#8217;t spoken to in years, and others I still talk to, but in all cases, it feels like a mini reunion.  I get to keep up with my friends easily.  I&#8217;ve not experienced another social network that has delivered like this, for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.firsttube.com/read/facebook-blows-my-mind/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

