<?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>Nathan Mock</title>
	<atom:link href="http://nathanmock.com/feed" rel="self" type="application/rss+xml" />
	<link>http://nathanmock.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Wed, 02 Nov 2011 04:10:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Top 4 iOS5 Features</title>
		<link>http://nathanmock.com/archives/top-4-ios5-feature</link>
		<comments>http://nathanmock.com/archives/top-4-ios5-feature#comments</comments>
		<pubDate>Wed, 08 Jun 2011 00:46:06 +0000</pubDate>
		<dc:creator>nathanmock</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[ios5]]></category>

		<guid isPermaLink="false">http://nathanmock.com/?p=93</guid>
		<description><![CDATA[Being a registered developer, I&#8217;ve had the chance to check out the iOS 5 Beta. Here are some of my favorite features and observations so far that have been not so published/talked about. Notifications Pull down from the top of the screen from any portion of the OS and down comes the Notification Center. Here, ...]]></description>
			<content:encoded><![CDATA[<div>Being a registered developer, I&#8217;ve had the chance to check out the iOS 5 Beta. Here are some of my favorite features and observations so far that have been not so published/talked about.</div>
<p></p>
<div><span id="more-93"></span></div>
<ol>
<li><strong>Notifications</strong>
<ul>Pull down from the top of the screen from any portion of the OS and down comes the Notification Center. Here, up to 15 notifications will be shown from different apps, including your missed calls/voicemails/email. Increased productivity and no more interrupted games of Tiny Wings. Also of note are two &#8220;widgets&#8221; that Apple has provided, a quick way to view the latest stock and weather info. Slide up at the bottom with the drawer grabber and away goes the Notification Center. A quick overview of your notifications is also visible from your lock screen, swipe the notification from the app icon and you are brought directly to the application. Everything feels more seamless and integrated. Hopefully as the gold master/public release nears, Apple will allow for third party &#8220;widgets&#8221; to be added to the lock screen.</ul>
</li>
<p><img class="aligncenter size-full wp-image-94" title="Notification Center" src="http://nathanmock.com/wp-content/uploads/2011/06/photo-1.png" alt="" width="426" height="640" /></p>
<p><img class="aligncenter size-full wp-image-96" title="Notification" src="http://nathanmock.com/wp-content/uploads/2011/06/photo-3.png" alt="" width="426" height="640" /></p>
<p><img class="aligncenter size-full wp-image-95" title="Notification 2" src="http://nathanmock.com/wp-content/uploads/2011/06/photo-2.png" alt="" width="426" height="640" /></p>
<li><strong>Integrated Hourly Weather Updates</strong>
<ul>The integrated weather app now has hourly updates! Not like information you could have received from a third party application, but the fact that is all integrated is definitely a nice touch. Apple has also included Local Weather updates.</ul>
</li>
<p><img class="aligncenter size-full wp-image-101" title="Weather" src="http://nathanmock.com/wp-content/uploads/2011/06/photo22.png" alt="" width="426" height="639" /></p>
<li><strong>Polished Messaging</strong>
<ul>Apple has upgraded their messaging app. Nice touches include iChat style message bubbles and green button. Contrast this with the iOS 4 messaging bubbles.</ul>
</li>
<p><img class="aligncenter size-full wp-image-99" title="Messaging" src="http://nathanmock.com/wp-content/uploads/2011/06/photo-41.png" alt="" width="426" height="639" /></p>
<li><strong>Twitter Integration</strong>
<ul>Twitter integration throughout the operating system. From photos to maps, everything is very closely integrated from Twitter. This is starting to look like Microsoft-Facebook vs. Apple-Twitter.</ul>
</li>
<p><img class="size-full wp-image-100 aligncenter" title="Twitter" src="http://nathanmock.com/wp-content/uploads/2011/06/photo1.png" alt="" width="426" height="639" /></ol>
<p><strong>Exciting Coming Features</strong></p>
<p><strong>iTunes Sync</strong></p>
<p>Apple has included an iTunes Sync settings page, but no functionality was usable in testing. When this is implemented, you will be able to sync your iPhone. Wirelessly.</p>
<p><strong>iTunes Match</strong></p>
<p>Apple will automatically scan your library, up to 20,000 songs (not including purchased songs) and make them all available from all your devices on the go. Who needs a 32GB iPhone anymore?</p>
]]></content:encoded>
			<wfw:commentRss>http://nathanmock.com/archives/top-4-ios5-feature/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>POSTing Form Data From iOS</title>
		<link>http://nathanmock.com/archives/posting-form-data-from-ios</link>
		<comments>http://nathanmock.com/archives/posting-form-data-from-ios#comments</comments>
		<pubDate>Tue, 07 Jun 2011 06:55:49 +0000</pubDate>
		<dc:creator>nathanmock</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[obj-c]]></category>
		<category><![CDATA[objective c]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://nathanmock.com/?p=74</guid>
		<description><![CDATA[I&#8217;ve had a couple people approach me and ask me how to POST to a web form with a mix of file data and other text values. After much research and lack of resources on the internet describing how to do so, I eventually stumbled upon a library, ASIHTTPRequest which makes it quite easy to ...]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had a couple people approach me and ask me how to POST to a web form with a mix of file data and other text values. After much research and lack of resources on the internet describing how to do so, I eventually stumbled upon a library, <a href="http://github.com/pokeb/asi-http-request/tree" target="_blank">ASIHTTPRequest</a> which makes it quite easy to do so.</p>
<p><span id="more-74"></span> Make sure you get the name attributes of all values you are trying to POST to your web service. In this particular web service, Blotify, we accept an image along with several values pertaining to the particular image. The file attribute is named <code>media</code>.</p>
<p>First, you want to translate your raw image data from the camera into a UIImage, and then into a NSData object. Secondly, set the URL to POST to.</p>
<blockquote><p><code>NSData *imageData = UIImageJPEGRepresentation(image, 70);<br />
NSString *urlString = [NSString stringWithFormat:@"http://api.blotify.com/upload/"];</code></p></blockquote>
<p>Next, create your ASIFormDataRequest object and add the values you want to post to the server, making sure the keys align with the name attributes on the form of your web service, and send the request by sending the object a <code>startSynchronous</code> message. In this particular web service, we are accepting form values: <code>details</code>, <code>rating</code>, <code>lat</code>, <code>lng</code>, and <code>media</code> for the actual file.</p>
<blockquote><p><code>ASIFormDataRequest *asiRequest = [ASIFormDataRequest requestWithURL:[NSURL URLWithString:urlString]];<br />
[asiRequest addPostValue:@"in the lab" forKey:@"details"];<br />
[asiRequest addPostValue:@"3" forKey:@"rating"];<br />
[asiRequest addPostValue:@"35.296574" forKey:@"lat"];<br />
[asiRequest addPostValue:@"-120.668886" forKey:@"lng"];<br />
[asiRequest addData:imageData withFileName:@"image.jpg" andContentType:@"image/jpeg" forKey:@"media"];<br />
[asiRequest startSynchronous];</code></p></blockquote>
<p>To make debugging easier, you may want to log any messages the server responds with as such:</p>
<blockquote><p><code>NSError *error = [asiRequest error];<br />
if (!error) {<br />
NSString *response = [asiRequest responseString];<br />
NSLog(@"upload response: %@", response);<br />
}</code></p></blockquote>
<p>Here is a sample form this code coule be POSTing to, this may not be necessary, in the case that you are writing the back end to your own web service.</p>
<blockquote><p><code>&lt;form action="http://api.blotify.com/upload/" method="post" enctype="multipart/form-data"&gt;<br />
Details: &lt;input type="text" name="details" /&gt;&lt;br&gt;<br />
Rating: &lt;input type="text" name="rating" /&gt;&lt;br&gt;<br />
Latitude: &lt;input type="text" name="lat" /&gt;&lt;br&gt;<br />
Longitude: &lt;input type="text" name="lng" /&gt;&lt;br&gt;<br />
&lt;input type="file" name="media" /&gt;&lt;/br&gt;<br />
&lt;input type="submit" name="submit" value="Upload" /&gt;<br />
&lt;/form&gt;&lt;/code&gt;</code></p></blockquote>
<p>There you have it, with very minimal amount of code, you can start posting files and values to your favorite web services from iOS using the <a href="http://github.com/pokeb/asi-http-request/tree" target="_blank">ASIHTTPRequest</a> library! There is much more you can do with the library, I have just touched the surface with this post. If you would like to read more about the capabilities of this library, check out their wonderful <a href="http://allseeing-i.com/ASIHTTPRequest/How-to-use">documentation</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://nathanmock.com/archives/posting-form-data-from-ios/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>My latest project.</title>
		<link>http://nathanmock.com/archives/my-latest-project</link>
		<comments>http://nathanmock.com/archives/my-latest-project#comments</comments>
		<pubDate>Sun, 05 Jun 2011 00:15:08 +0000</pubDate>
		<dc:creator>nathanmock</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[blotify]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[projects]]></category>

		<guid isPermaLink="false">http://nathanmock.com/?p=55</guid>
		<description><![CDATA[Blotify is my first startup and latest project which aims to allow other to share media with their social circles and enable communities to view hyper-local trends. A media journal, if you will. From the original inception of the idea, there have been many tweaks and changes to the functionality and feel through many cycles ...]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-56" title="blotify_iphone" src="http://nathanmock.com/wp-content/uploads/2011/06/blotify_iphone.png" alt="" width="350" height="675" border="0" /></p>
<p><a href="http://www.blotify.com">Blotify</a> is my first startup and latest project which aims to allow other to share media with their social circles and enable communities to view hyper-local trends. A media journal, if you will.</p>
<p>From the original inception of the idea, there have been many tweaks and changes to the functionality and feel through many cycles of iteration. Learning by doing is the best advice I have to offer those who are wishing to form startups of their own. In the eyes of development, early design decisions were added to, tweaked, and even discarded.</p>
<p>Several technologies were reviewed and selected such as the iOS SDK, Android SDK, and PHP as well as some promising technologies such as the Kohana framework which utilizes a Hierarchical Model View Controller software architecture style.</p>
<p>Stay tuned for the latest news, tips, and tricks, and my personal experiences as a developer and entrepreneur.</p>
]]></content:encoded>
			<wfw:commentRss>http://nathanmock.com/archives/my-latest-project/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

