<?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>boyfarrell.com &#187; Micro Post</title>
	<atom:link href="http://www.boyfarrell.com/category/micro-post/feed" rel="self" type="application/rss+xml" />
	<link>http://www.boyfarrell.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Mon, 10 Aug 2009 22:52:12 +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>Duhmac err MobileMe</title>
		<link>http://www.boyfarrell.com/micro-post/duhmac-err-mobileme</link>
		<comments>http://www.boyfarrell.com/micro-post/duhmac-err-mobileme#comments</comments>
		<pubDate>Tue, 02 Sep 2008 09:12:42 +0000</pubDate>
		<dc:creator>boyfarrell</dc:creator>
				<category><![CDATA[Micro Post]]></category>

		<guid isPermaLink="false">http://www.boyfarrell.com/?p=99</guid>
		<description><![CDATA[MobileMe sync failed today. I&#8217;m sure you&#8217;ll want to know why, well the reason was because there was an error. Phew I&#8217;m glad we got that one sorted.]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_100" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.boyfarrell.com/wordpress/wp-content/uploads/2008/09/duh-mac.jpg"><img src="http://www.boyfarrell.com/wordpress/wp-content/uploads/2008/09/duh-mac-300x72.jpg" alt="Duh-mac the new cloud computing service from Apple." title="duh-mac" width="300" height="72" class="size-medium wp-image-100" /></a><p class="wp-caption-text">Duh-mac the new cloud computing service from Apple.</p></div>
<p>MobileMe sync failed today. I&#8217;m sure you&#8217;ll want to know why, well the reason was because there was an error. Phew I&#8217;m glad we got that one sorted.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.boyfarrell.com/micro-post/duhmac-err-mobileme/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Garbage collected buffers</title>
		<link>http://www.boyfarrell.com/micro-post/cocoas-version-of-malloc</link>
		<comments>http://www.boyfarrell.com/micro-post/cocoas-version-of-malloc#comments</comments>
		<pubDate>Wed, 07 Nov 2007 18:17:16 +0000</pubDate>
		<dc:creator>boyfarrell</dc:creator>
				<category><![CDATA[Micro Post]]></category>

		<guid isPermaLink="false">http://www.boyfarrell.com/micro-post/cocoas-version-of-malloc</guid>
		<description><![CDATA[Since the original post I realised there is a problem with the approach (thanks to Rick Hog). The garbage collector only collects objects! As such you must not dereference the pointer to the NSMutableData, you must assign it, and, on another line, make the method call to mutableBytes. Now that Cocoa as garbage collection there [...]]]></description>
			<content:encoded><![CDATA[<div class="notice">Since the original post I realised there is a problem with the approach (thanks to <a href="http://lists.apple.com/archives/cocoa-dev/2007/Nov/msg00755.html">Rick Hog</a>). The garbage collector only collects objects! As such you must not dereference the pointer to the NSMutableData, you must assign it, and, on another line, make the method call to mutableBytes.</div>
<p>Now that Cocoa as garbage collection there if a real advantage to using it to allocate buffer. Where before I would have just made a quick malloc statement to get some dynamic memory:<br />
<code><br />
// buffer/dynamic array that holds with 10 doubles<br />
double *x;<br />
x = (double*) malloc(sizeof(double) * 10);<br />
//... sometime later ...<br />
free(x);<br />
</code></p>
<p>Now I find myself doing,<br />
<code><br />
<del>double *x = [[NSMutableData dataWithCapacity:sizeof(double) * 10] mutableBytes];</del><br />
NSMutableData *buffer = [NSMutableData dataWithCapacity:sizeof(double) * 10];<br />
double *x = [buffer mutableBytes];<br />
</code></p>
<p>Garbage collected buffers; for the lazy at heart.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.boyfarrell.com/micro-post/cocoas-version-of-malloc/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>syntax error before &#8216;AT_NAME&#8217; token</title>
		<link>http://www.boyfarrell.com/code/syntax-error-before-at_name-token</link>
		<comments>http://www.boyfarrell.com/code/syntax-error-before-at_name-token#comments</comments>
		<pubDate>Mon, 29 Oct 2007 11:10:27 +0000</pubDate>
		<dc:creator>boyfarrell</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Micro Post]]></category>

		<guid isPermaLink="false">http://www.boyfarrell.com/code/syntax-error-before-at_name-token</guid>
		<description><![CDATA[This means you have some junk in one of your header file that shouldn&#8217;t be there. Tip of the hat to Infurious Blog for pointing out one possible meaning of this error; a missing @end in an Objective-C class header file. Another possibility for this (this took me an hour to find!) is that you [...]]]></description>
			<content:encoded><![CDATA[<p>This means you have some junk in one of your header file that shouldn&#8217;t be there.</p>
<p>Tip of the hat to <a href="http://blog.infurious.com/2007/10/22/syntax-error-before-‘at_name’-token/">Infurious Blog</a> for pointing out one possible meaning of this error; a missing @end in  an Objective-C class header file.</p>
<p>Another possibility for this (<bold>this took me an hour to find!</bold>) is that you have a curly bracket somewhere in you header file. For example, from cut and pasting your method definition from the implementation file into your header file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.boyfarrell.com/code/syntax-error-before-at_name-token/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>gracebat: quickly print a graph from Terminal</title>
		<link>http://www.boyfarrell.com/micro-post/gracebat-quickly-print-a-graph-from-terminal</link>
		<comments>http://www.boyfarrell.com/micro-post/gracebat-quickly-print-a-graph-from-terminal#comments</comments>
		<pubDate>Fri, 19 Oct 2007 15:10:00 +0000</pubDate>
		<dc:creator>boyfarrell</dc:creator>
				<category><![CDATA[Micro Post]]></category>

		<guid isPermaLink="false">http://www.boyfarrell.com/micro-post/gracebat-quickly-print-a-graph-from-terminal</guid>
		<description><![CDATA[Later for that meeting with your supervisor, bashing the computer to hurry up and finished number crunching&#8230; the last thing you want to do it open Excel for Mac and make a crap looking graph of your results&#8230; enter gracebat&#8230; Print a graph from an X Y1 Y2 formatted data file straight from the command [...]]]></description>
			<content:encoded><![CDATA[<p>Later for that meeting with your supervisor, bashing the computer to hurry up and finished number crunching&#8230; the last thing you want to do it open Excel for Mac and make a crap looking graph of your results&#8230; enter gracebat&#8230;</p>
<p>Print a graph from an X Y1 Y2 formatted data file straight from the command line using:</p>
<p><quote><code>gracebat -nxy datafile.dat</code><quote></p>
]]></content:encoded>
			<wfw:commentRss>http://www.boyfarrell.com/micro-post/gracebat-quickly-print-a-graph-from-terminal/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
