<?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>Viper007Bond.com &#187; Twitter</title>
	<atom:link href="http://www.viper007bond.com/tag/twitter-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.viper007bond.com</link>
	<description>Random stuff written by Alex Mills</description>
	<lastBuildDate>Mon, 06 Feb 2012 01:01:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-alpha-19719</generator>
	<atom:link rel='hub' href='http://www.viper007bond.com/?pushpress=hub'/>
		<item>
		<title>The Proper Way To Review&#160;Code</title>
		<link>http://www.viper007bond.com/2011/04/20/the-proper-way-to-review-code/#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=the-proper-way-to-review-code</link>
		<comments>http://www.viper007bond.com/2011/04/20/the-proper-way-to-review-code/#comments</comments>
		<pubDate>Wed, 20 Apr 2011 21:30:43 +0000</pubDate>
		<dc:creator>Alex (Viper007Bond)</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[code review]]></category>
		<category><![CDATA[funny]]></category>
		<category><![CDATA[John James Jacoby]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://www.viper007bond.com/?p=3094</guid>
		<description><![CDATA[Before committing code, I explain it to Donkey Kong first to make sure it makes sense #codereview /cc @iamjohnford http://t.co/0dtFTYY April 20th, 2011 1:12 PM via Twitter for MacReplyRetweetFavorite @JohnJamesJacoby John James Jacoby (Also known as rubber duck debugging)]]></description>
			<content:encoded><![CDATA[<p><!-- tweet id : 60813105013329920 --><br />
<style type='text/css'>#bbpBox_60813105013329920 a { text-decoration:none; color:#b38752; }#bbpBox_60813105013329920 a:hover { text-decoration:underline; }</style>
<div id='bbpBox_60813105013329920' class='bbpBox' style='padding:20px; margin:5px 0; background-color:#382a19; background-image:url(http://a0.twimg.com/profile_background_images/220152554/x18407f124a1589d4f178c6abad73a7e.jpg); background-repeat:no-repeat'>
<div style='background:#fff; padding:10px; margin:0; min-height:48px; color:#875b2b; -moz-border-radius:5px; -webkit-border-radius:5px;'><span style='width:100%; font-size:18px; line-height:22px;'>Before committing code, I explain it to Donkey Kong first to make sure it makes sense <a href="http://twitter.com/search?q=%23codereview" title="#codereview">#codereview</a> /cc @<a href="http://twitter.com/intent/user?screen_name=iamjohnford" class="twitter-action">iamjohnford</a> <a href="http://t.co/0dtFTYY" rel="nofollow">http://t.co/0dtFTYY</a></span>
<div class='bbp-actions' style='font-size:12px; width:100%; padding:5px 0; margin:0 0 10px 0; border-bottom:1px solid #e6e6e6;'><img align='middle' src='http://www.viper007bond.com/wordpress/wp-content/plugins/twitter-blackbird-pie//images/bird.png' /><a title='tweeted on April 20th, 2011 1:12 PM' href='http://twitter.com/#!/JohnJamesJacoby/status/60813105013329920' target='_blank'>April 20th, 2011 1:12 PM</a> via <a href="http://itunes.apple.com/us/app/twitter/id409789998?mt=12" rel="nofollow" target="blank">Twitter for Mac</a><a href='https://twitter.com/intent/tweet?in_reply_to=60813105013329920' class='bbp-action bbp-reply-action' title='Reply'><span><em style='margin-left: 1em;'></em><strong>Reply</strong></span></a><a href='https://twitter.com/intent/retweet?tweet_id=60813105013329920' class='bbp-action bbp-retweet-action' title='Retweet'><span><em style='margin-left: 1em;'></em><strong>Retweet</strong></span></a><a href='https://twitter.com/intent/favorite?tweet_id=60813105013329920' class='bbp-action bbp-favorite-action' title='Favorite'><span><em style='margin-left: 1em;'></em><strong>Favorite</strong></span></a></div>
<div style='float:left; padding:0; margin:0'><a href='http://twitter.com/intent/user?screen_name=JohnJamesJacoby'><img style='width:48px; height:48px; padding-right:7px; border:none; background:none; margin:0' src='http://a2.twimg.com/profile_images/1293889061/me2_normal.jpg' /></a></div>
<div style='float:left; padding:0; margin:0'><a style='font-weight:bold' href='http://twitter.com/intent/user?screen_name=JohnJamesJacoby'>@JohnJamesJacoby</a>
<div style='margin:0; padding-top:2px'>John James Jacoby</div>
</div>
<div style='clear:both'></div>
</div>
</div>
<p><!-- end of tweet --></p>
<p>(Also known as <a href="http://en.wikipedia.org/wiki/Rubber_duck_debugging">rubber duck debugging</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.viper007bond.com/2011/04/20/the-proper-way-to-review-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What Online Backup Service Do You&#160;Recommend?</title>
		<link>http://www.viper007bond.com/2010/10/09/what-online-backup-service-do-you-recommend/#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=what-online-backup-service-do-you-recommend</link>
		<comments>http://www.viper007bond.com/2010/10/09/what-online-backup-service-do-you-recommend/#comments</comments>
		<pubDate>Sun, 10 Oct 2010 04:16:17 +0000</pubDate>
		<dc:creator>Alex (Viper007Bond)</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[Mozy]]></category>
		<category><![CDATA[online backup]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://www.viper007bond.com/?p=2963</guid>
		<description><![CDATA[About a month ago, I asked on Twitter for suggestions for online backup services as I&#8217;m tired of manually backing up and I never do it often enough. I was suggested Mozy, but I was also suggested a lot of alternatives. However I was leaving on a business trip basically the next day, so I [...]]]></description>
			<content:encoded><![CDATA[<p>About a month ago, I asked on Twitter for suggestions for online backup services as I&#8217;m tired of manually backing up and I never do it often enough. I was suggested <a href="http://mozy.com/">Mozy</a>, but I was also suggested a lot of alternatives. However I was leaving on a business trip basically the next day, so I never got around to reading the Tweets and they eventually slipped off my @mentions list.</p>
<p>So now I&#8217;m asking how I should have done it in the first place &#8212; on my blog. What online service do you use to backup your data? And before anyone suggests it, Dropbox is out of the running as it&#8217;s too expensive for actual backup (it&#8217;s great for sync though!).</p>
<p>Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.viper007bond.com/2010/10/09/what-online-backup-service-do-you-recommend/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>YOURLS + Twitter for iPhone (UPDATE: TweetDeck&#160;Too!)</title>
		<link>http://www.viper007bond.com/2010/05/20/yourls-twitter-for-iphone-and-tweetdeck/#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=yourls-twitter-for-iphone-and-tweetdeck</link>
		<comments>http://www.viper007bond.com/2010/05/20/yourls-twitter-for-iphone-and-tweetdeck/#comments</comments>
		<pubDate>Thu, 20 May 2010 07:47:06 +0000</pubDate>
		<dc:creator>Alex (Viper007Bond)</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPod Touch]]></category>
		<category><![CDATA[TweetDeck]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[YOURLS]]></category>

		<guid isPermaLink="false">http://www.viper007bond.com/?p=1705</guid>
		<description><![CDATA[UPDATE: These instructions now apply to TweetDeck as well! You can find the field at Settings -> Services and pick &#8220;Other&#8221; for the shortening service. Do you run YOURLS? Do you use Twitter for iPhone (aka Tweetie)? If so, this post will be of interest to you. Twitter for iPhone supports using a custom shortening [...]]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE:</strong> These instructions now apply to <a href="http://www.tweetdeck.com/desktop/">TweetDeck</a> as well! You can find the field at Settings -> Services and pick &#8220;Other&#8221; for the shortening service.</p>
<p>Do you run <a href="http://yourls.org/">YOURLS</a>? Do you use <a href="http://itunes.apple.com/app/twitter/id333903271?mt=8">Twitter for iPhone</a> (aka Tweetie)? If so, this post will be of interest to you.</p>
<p>Twitter for iPhone supports using a <a href="http://developer.atebits.com/tweetie-iphone/custom-shortening/">custom shortening service</a>. Thankfully the <a href="http://yourls.org/#API">YOURLS API</a> will output a format that Twitter for iPhone will accept.</p>
<p>So how do you go about setting it up you ask? Start by going to your YOURLS admin area and clicking the &#8220;Tools&#8221; link at the top. About half way down the page will be your signature (it&#8217;s like a password). It will be a 10 character string. Hang onto this, you&#8217;ll need it soon.</p>
<p>Now open up Twitter for iPhone and go to the &#8220;Accounts &#038; Settings&#8221; screen. You can get there by pressing the three dots in the bottom right and then scrolling to the very bottom of the screen that comes up and pressing the &#8220;Accounts &#038; Settings&#8221; button. There will then be a &#8220;Settings&#8221; button in the bottom left. There in the Settings, select &#8220;Services&#8221; and then &#8220;URL Shortening&#8221;. Lastly pick the &#8220;Custom&#8230;&#8221; option.</p>
<p>Now to enter the URL to your YOURLS API script. I found it easiest to craft this URL on my computer and then e-mail myself the URL which I could then copy/paste on my iPod Touch. It was a lot easier than typing it all out on the little keyboard.</p>
<p>This is the URL you will need to use:</p>
<p><code>http://yourdomain.com/yourls-api.php?action=shorturl&#038;format=simple&#038;signature=<strong>YOURSIGNATURE</strong>&#038;url=%@</code></p>
<p>Replace &#8220;YOURSIGNATURE&#8221; with your signature that you located earlier in this post and leave the rest alone (the &#8220;%@&#8221; is the placeholder that Twitter for iPhone will look for). If you e-mail yourself the URL, make sure that you still have &#8220;%@&#8221; at the end of the URL and not &#8220;%25@&#8221; or something.</p>
<p>Now when writing a tweet, press the character count button and the keyboard will disappear. There in the bottom right will be a button to shorten all URLs in your tweet. They&#8217;ll be shortened using your custom domain!</p>
<p>Cool, huh? <img src='http://www.viper007bond.com/wordpress/wp-content/plugins/tango-smilies/tango/face-smile.png' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.viper007bond.com/2010/05/20/yourls-twitter-for-iphone-and-tweetdeck/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>svn&#160;blame</title>
		<link>http://www.viper007bond.com/2010/05/18/svn-blame/#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=svn-blame</link>
		<comments>http://www.viper007bond.com/2010/05/18/svn-blame/#comments</comments>
		<pubDate>Tue, 18 May 2010 20:42:12 +0000</pubDate>
		<dc:creator>Alex (Viper007Bond)</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[svn blame]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.viper007bond.com/?p=1699</guid>
		<description><![CDATA[The other day I wanted to figure out when a particular line in WordPress was changed. I wanted to know this so I could find the commit message and ticket that went along with it so I could figure out the reasoning behind the change. How do you go about doing that though? It turns [...]]]></description>
			<content:encoded><![CDATA[<p>The other day I wanted to figure out when a particular line in WordPress was changed. I wanted to know this so I could find the commit message and ticket that went along with it so I could figure out the reasoning behind the change. How do you go about doing that though?</p>
<p>It turns out that <a href="http://svnbook.red-bean.com/en/1.5/svn-book.html#svn.ref.svn.c.blame">svn blame</a> is the command you want. It will output something like this:</p>
<pre class="brush: plain; auto-links: false; gutter: false; title: ; notranslate">$ svn blame http://svn.red-bean.com/repos/test/readme.txt
     3      sally This is a README file.
     5      harry You should read this.</pre>
<p>So the first line was last modified by sally in revision 3 and the second line was last modified by harry in revision 5. Awesome huh?</p>
<p>Props to <a href="http://twitter.com/ArtemR">@ArtemR</a>, <a href="http://twitter.com/westi">@westi</a>, and <a href="http://twitter.com/zamoose">@zamoose</a> for informing my noob ass on how to do this!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.viper007bond.com/2010/05/18/svn-blame/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Twitter Followers Count Snippet for&#160;WordPress</title>
		<link>http://www.viper007bond.com/2010/05/15/twitter-followers-count-snippet-for-wordpress/#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=twitter-followers-count-snippet-for-wordpress</link>
		<comments>http://www.viper007bond.com/2010/05/15/twitter-followers-count-snippet-for-wordpress/#comments</comments>
		<pubDate>Sat, 15 May 2010 09:31:30 +0000</pubDate>
		<dc:creator>Alex (Viper007Bond)</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[HTTP API]]></category>
		<category><![CDATA[transient]]></category>
		<category><![CDATA[transients]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://www.viper007bond.com/?p=1664</guid>
		<description><![CDATA[Konstantin Kovshenin posted some code on his blog for how to display how many Twitter followers someone has. While the idea was good, I think he went about the implementation in the non-best method. So, for fun and because I don&#8217;t post enough code snippets here on this blog, I thought I&#8217;d post how I [...]]]></description>
			<content:encoded><![CDATA[<p>Konstantin Kovshenin posted <a href="http://kovshenin.com/archives/twitter-followers-count-snippet-for-wordpress/">some code on his blog</a> for how to display how many Twitter followers someone has. While the idea was good, I think he went about the implementation in the non-best method. So, for fun and because I don&#8217;t post enough code snippets here on this blog, I thought I&#8217;d post how I would display how many followers someone has on Twitter. <img src='http://www.viper007bond.com/wordpress/wp-content/plugins/tango-smilies/tango/face-smile.png' alt=':)' class='wp-smiley' /> </p>
<pre class="brush: php; title: ; notranslate">function viper_twitter_followers( $username = 'Viper007Bond' ) {

	// Just to keep the code below cleaner, create the cache key now
	$cache_key = &quot;viper_twitter_followers_{$username}&quot;;

	// First we look for a cached result
	if ( false !== $followers = get_transient( $cache_key ) )
		return $followers;

	// Okay, no cache, so let's fetch it
	$result = wp_remote_retrieve_body( wp_remote_get( 'http://api.twitter.com/1/users/show.json?screen_name=' . urlencode($username) ) );

	// Check to make sure we got some data to work with
	if ( empty($result) ) {
		// Cache the failure for 1 min to avoid hammering Twitter
		set_transient( $cache_key, 0, 60 );
	}

	// Parse the data
	$data = json_decode( $result );

	// Make sure we were able to parse it
	// If not, cache the failure (like above)
	if ( !isset( $data-&gt;followers_count ) )
		set_transient( $cache_key , 0, 60 );

	// Success! Cache the result for an hour.
	$followers = (int) $data-&gt;followers_count;
	set_transient( $cache_key, $followers, 3600 );

	return $followers;
}

echo 'I have ' . viper_twitter_followers( 'Viper007Bond' ) . ' followers on Twitter!';</pre>
<p><strong>Reading Material:</strong></p>
<ul>
<li>HTTP API: <a href="http://codex.wordpress.org/HTTP_API">http://codex.wordpress.org/HTTP_API</a></li>
<li>Transient API: <a href="http://codex.wordpress.org/Transients_API">http://codex.wordpress.org/Transients_API</a> (expiring options basically)</li>
</ul>
<p>If you have any questions about the above code, let me know and I&#8217;ll do my best to answer them. <img src='http://www.viper007bond.com/wordpress/wp-content/plugins/tango-smilies/tango/face-smile.png' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.viper007bond.com/2010/05/15/twitter-followers-count-snippet-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>Keeping Your Blog&#8217;s Theme Up To Date Using&#160;SVN</title>
		<link>http://www.viper007bond.com/2010/02/13/keeping-your-blogs-theme-up-to-date-using-svn/#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=keeping-your-blogs-theme-up-to-date-using-svn</link>
		<comments>http://www.viper007bond.com/2010/02/13/keeping-your-blogs-theme-up-to-date-using-svn/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 21:19:24 +0000</pubDate>
		<dc:creator>Alex (Viper007Bond)</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://www.viper007bond.com/?p=1413</guid>
		<description><![CDATA[Zialus asked me to explain how I keep my blog&#8217;s theme up to date using SVN while keeping my modifications. The answer is too long for Twitter, so I&#8217;m writing a small blog post about it. I checked out a copy of the theme I use to my computer (easier to work on it from [...]]]></description>
			<content:encoded><![CDATA[<p>Zialus <a href="http://twitter.com/Zialus/status/9067643036">asked me to explain</a> how I keep my blog&#8217;s theme up to date using SVN while keeping my modifications. The answer is too long for Twitter, so I&#8217;m writing a small blog post about it.</p>
<ul>
<li>I checked out a copy of the theme I use to my computer (easier to work on it from my PC than my server). The SVN URL for themes <a href="http://wordpress.org/extend/themes/">hosted on WordPress.org</a> is <code>http://themes.svn.wordpress.org/</code>. Find your theme there. For example my blog&#8217;s theme is <code>http://themes.svn.wordpress.org/mystique/1.72/</code> (as of the time of this post).</li>
<li>I made the changes I wanted to the theme on my computer (tweaks and such) and then uploaded it to my server.</li>
<li>When a new version of the theme is released, I run <code>svn diff > file.diff</code> on my local checkout to get a file containing all of my modifications (this will be handy for the next step).</li>
<li>I use <code>svn switch</code> to switch to the new version SVN URL. Your SVN client will attempt to merge in any changes by the theme author into your modified files, but it may run into collisions (where the theme&#8217;s author and you have modified the same area of a file). You&#8217;ll need to manually fix any collisions (this is why I check out to my PC instead of my server). I tend to just hit revert on the file and then using the diff file from the previous step for reference, re-add my modifcations.</li>
<li>Upload the new version of the theme (with your modifications to your server).</li>
</ul>
<p>Questions? Feel free to ask via my comments section. <img src='http://www.viper007bond.com/wordpress/wp-content/plugins/tango-smilies/tango/face-smile.png' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.viper007bond.com/2010/02/13/keeping-your-blogs-theme-up-to-date-using-svn/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

