<?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>Variable Resistance</title>
	<atom:link href="http://www.variableresistance.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.variableresistance.org</link>
	<description>Thoughts, Resources, and Musings of Jeff Gray</description>
	<lastBuildDate>Thu, 23 Apr 2009 19:51:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Fitting Start</title>
		<link>http://www.variableresistance.org/2009/04/fitting-start/</link>
		<comments>http://www.variableresistance.org/2009/04/fitting-start/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 19:51:51 +0000</pubDate>
		<dc:creator>Jeff Gray</dc:creator>
				<category><![CDATA[Inspiration]]></category>

		<guid isPermaLink="false">http://www.variableresistance.org/?p=19</guid>
		<description><![CDATA[Seems appropriate that my first inspiring media would be this.]]></description>
			<content:encoded><![CDATA[<p>Seems appropriate that my first inspiring media would be this:</p>
<a href="http://www.variableresistance.org/2009/04/fitting-start/"><p><em>Click here to view the embedded video.</em></p></a>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.variableresistance.org%2F2009%2F04%2Ffitting-start%2F&amp;linkname=Fitting%20Start"><img src="http://www.variableresistance.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.variableresistance.org/2009/04/fitting-start/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iMovie SprintCam v3</title>
		<link>http://www.variableresistance.org/2009/04/imovie-sprintcam-v3/</link>
		<comments>http://www.variableresistance.org/2009/04/imovie-sprintcam-v3/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 19:49:01 +0000</pubDate>
		<dc:creator>Jeff Gray</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.variableresistance.org/?p=15</guid>
		<description><![CDATA[I'd really like to capture some macro depth-of-field moments with the subtle motion in the background.]]></description>
			<content:encoded><![CDATA[<p>Technology gods, please release the prices on this camera soon! I would like to get my fat fingers on it as soon as possible.</p>
<a href="http://www.variableresistance.org/2009/04/imovie-sprintcam-v3/"><p><em>Click here to view the embedded video.</em></p></a>
<p>HD footage at that framerate would be incredibly useful for capturing the banal and everyday surroundings of life in a new way.  I&#8217;d really like to capture some macro depth-of-field moments with the subtle motion in the background.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.variableresistance.org%2F2009%2F04%2Fimovie-sprintcam-v3%2F&amp;linkname=iMovie%20SprintCam%20v3"><img src="http://www.variableresistance.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.variableresistance.org/2009/04/imovie-sprintcam-v3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Testing out various media</title>
		<link>http://www.variableresistance.org/2009/04/testing-out-various-media/</link>
		<comments>http://www.variableresistance.org/2009/04/testing-out-various-media/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 19:38:06 +0000</pubDate>
		<dc:creator>Jeff Gray</dc:creator>
				<category><![CDATA[Musings]]></category>

		<guid isPermaLink="false">http://www.variableresistance.org/?p=10</guid>
		<description><![CDATA[Here is some tests on media being displayed throughout my template.]]></description>
			<content:encoded><![CDATA[<p>Have to do a bit of testing on this blog for various media loading&#8230;</p>
<a href="http://www.variableresistance.org/2009/04/testing-out-various-media/"><p><em>Click here to view the embedded video.</em></p></a>
<a href="http://www.variableresistance.org/2009/04/testing-out-various-media/"><p><em>Click here to view the embedded video.</em></p></a>
<a href="http://www.variableresistance.org/2009/04/testing-out-various-media/"><p><em>Click here to view the embedded video.</em></p></a>
<p><object width="100" height="100" data="http://www.grayfuse.com/mux/coffee/res/mediaplayer.swf" type="application/x-shockwave-flash"><param name="src" value="http://www.grayfuse.com/mux/coffee/res/mediaplayer.swf" /></object></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.variableresistance.org%2F2009%2F04%2Ftesting-out-various-media%2F&amp;linkname=Testing%20out%20various%20media"><img src="http://www.variableresistance.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.variableresistance.org/2009/04/testing-out-various-media/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some Objective-C Helpers for Data Wrangling</title>
		<link>http://www.variableresistance.org/2009/04/some-objective-c-helpers-for-data-wrangling/</link>
		<comments>http://www.variableresistance.org/2009/04/some-objective-c-helpers-for-data-wrangling/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 22:36:35 +0000</pubDate>
		<dc:creator>Jeff Gray</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.variableresistance.org/?p=3</guid>
		<description><![CDATA[Getting my feet wet in a new language means finding some combinations of functions which allow you to do traversal.  Usually, half of the woes that go with this process revolve around shifting data from what format to another. In the case of objective-c, all objects are relatively anagolous to each other.  Additionally, as a message-based language, you can essentially run functions on your objects and if they can called, they will, otherwise it will simply ignore you.  Here's a bit of a breakdown of code snippets I've been snagging, for use in various aspects of iPhone development specifically.]]></description>
			<content:encoded><![CDATA[<p>Getting my feet wet in a new language means finding groups of functions which allow you to do traversal.  Usually, the woes that go with this process revolve around shifting data from what format to another. In the case of objective-c, all objects are relatively analogous to each other.  Additionally, as a message-based language, you can essentially run functions on your objects and if they can called, they will, otherwise it will simply ignore you.  Here&#8217;s a bit of a breakdown of code snippets I&#8217;ve been snagging, for use in various aspects of iPhone development specifically. Additionally, a roundup of some online resources I&#8217;ve been referring to at the bottom of the post.</p>
<p><strong>Throwing Image Data into Arrays, Sets, Dictionaries</strong></p>
<p>There are multiple ways of drawing image data out, but this way draws directly into a graphics context, which is good for doing procedural animation (ala processing/computational visualization)</p>
<p><code>//throwing it in from jpg in resources folder<br />
UIImage *myImage = [UIImage imageWithContentsOfFile:@"myImage.jpg"];<br />
NSArray *myArray = [NSMutableArray array];  // this will autorelease<br />
[myArray addObject:myImage];</code></p>
<p><code>//drawing back out<br />
CGContextRef context = UIGraphicsGetCurrentContext();  // get GC<br />
UIImage *myImage = [myArray lastObject];<br />
CGImageRef *myCGImage = [myImage CGImage];<br />
CGContextDrawImage(context, rect, myCGImage);<code></p>
<p><em><br />
<a href="http://stackoverflow.com/questions/181442/can-any-of-the-iphone-collection-objects-hold-an-image" target="_blank"></a></em></p>
<p><strong>Converting JPEG/PNG Images in NSImage into NSData</strong></p>
<p><code> NSData *imageData = UIImagePNGRepresentation(image); // png</code></p>
<p><code>NSData *imageData = UIImagePNGRepresentation(image); // jpg/jpeg</code></p>
<p><strong>Grabbing a quick URL's data for (for quick API calls)</strong></p>
<p><code>NSString *text = [NSString stringWithContentsOfURL:[NSURL URLWithString:@"http://www.google.com"]];<br />
if(text){<br />
   textView.text = text;<br />
}</code></p>
<p><strong>Additional Resources</strong></p>
<p>Making a POST of image/metadata to <a href="http://forums.macrumors.com/showthread.php?t=427513">tumblr</a> (easy to migrate to another <a href="http://www.cocoadev.com/index.pl?HTTPFileUpload" target="_blank">receiving server</a>)<br />
<a href="http://iphone.zcentric.com/2008/08/05/first-json-iphone-application/" target="_blank">Using JSON in Obj-C/iPhone</a><br />
<a href="http://cocoadevcentral.com/d/learn_objectivec/" target="_blank">Learn Obj-C Shortlist</a><br />
<a href="http://vimeo.com/user647705/videos" target="_blank">Nick Myer's Tutorials</a><br />
<a href="http://iphoneincubator.com/blog/tag/nsurlrequest" target="_blank">Simple linking to MP3 streaming content</a><br />
<a href="http://www.v2ex.com/2008/09/20/uitableview/" target="_blank">UITableView Overview</a></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.variableresistance.org%2F2009%2F04%2Fsome-objective-c-helpers-for-data-wrangling%2F&amp;linkname=Some%20Objective-C%20Helpers%20for%20Data%20Wrangling"><img src="http://www.variableresistance.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.variableresistance.org/2009/04/some-objective-c-helpers-for-data-wrangling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

