<?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>Not Really A Blog</title>
	<atom:link href="http://sigmaris.info/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://sigmaris.info/blog</link>
	<description>...</description>
	<lastBuildDate>Mon, 05 Apr 2010 00:15:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>A Service for unmounting volumes in OS X</title>
		<link>http://sigmaris.info/blog/?p=91</link>
		<comments>http://sigmaris.info/blog/?p=91#comments</comments>
		<pubDate>Mon, 05 Apr 2010 00:13:47 +0000</pubDate>
		<dc:creator>sigmaris</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sigmaris.info/blog/?p=91</guid>
		<description><![CDATA[A little while ago I had a problem. My phone is a Sony Ericsson K800i, with 64MB of internal storage and a slot for Memory Stick expansion storage. I was using it as an MP3 player, and so had an 8GB memory stick in there to store MP3s. When I connected it to my Mac [...]]]></description>
			<content:encoded><![CDATA[<p>A little while ago I had a problem. My phone is a Sony Ericsson K800i, with 64MB of internal storage and a slot for Memory Stick expansion storage. I was using it as an MP3 player, and so had an 8GB memory stick in there to store MP3s.</p>
<p>When I connected it to my Mac in USB drive mode to transfer files, it appeared in the Finder as two storage devices, one for the internal storage and one for the memory stick. When I&#8217;d finished transferring files I would click Eject on the memory stick&#8217;s device to safely remove it. Then I&#8217;d do the same on the internal storage&#8217;s device, but this would eventually fail and report an I/O error. The phone&#8217;s screen would show that the USB connection had ended, but one of the devices would still show in the Finder. If I then unplugged the USB cable the Finder would tell me that data might have been lost since I didn&#8217;t eject the storage device properly.</p>
<p>I eventually found a workaround &#8211; go into the Disk Utility app, and Unmount (not Eject) one device, then Eject the other. The order didn&#8217;t seem to matter, as the Eject would cause both devices to disappear. However this required me to launch Disk Utility to do the unmounting every time I had to unplug the phone from the Mac.</p>
<p>I started to get fed up of the extra time and clicking involved, so I decided to write a single-function Service to do the unmounting. Check it out <a href="?page_id=86">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://sigmaris.info/blog/?feed=rss2&amp;p=91</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Student Tech Meetup talk</title>
		<link>http://sigmaris.info/blog/?p=77</link>
		<comments>http://sigmaris.info/blog/?p=77#comments</comments>
		<pubDate>Thu, 18 Feb 2010 09:13:35 +0000</pubDate>
		<dc:creator>sigmaris</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[nds]]></category>
		<category><![CDATA[homebrew]]></category>
		<category><![CDATA[stmu]]></category>

		<guid isPermaLink="false">http://sigmaris.info/blog/?p=77</guid>
		<description><![CDATA[On Wednesday, I gave a talk at the Student Techmeetup here in Edinburgh on DS homebrew development. As promised, I&#8217;ve uploaded the slides from that talk as a PDF here, with links to a few tutorials and resources included in them, along with some notes.]]></description>
			<content:encoded><![CDATA[<p>On Wednesday, I gave a talk at the Student Techmeetup here in Edinburgh on DS homebrew development. As promised, I&#8217;ve uploaded the slides from that talk as a PDF <a title="DS Homebrew presentation" href="/files/dspreso.pdf" target="_blank">here</a>, with links to a few tutorials and resources included in them, along with some notes.</p>
]]></content:encoded>
			<wfw:commentRss>http://sigmaris.info/blog/?feed=rss2&amp;p=77</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>emitSMS plugin update</title>
		<link>http://sigmaris.info/blog/?p=71</link>
		<comments>http://sigmaris.info/blog/?p=71#comments</comments>
		<pubDate>Sat, 16 Jan 2010 15:10:00 +0000</pubDate>
		<dc:creator>sigmaris</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[address book]]></category>
		<category><![CDATA[bluetooth]]></category>
		<category><![CDATA[emitsms]]></category>

		<guid isPermaLink="false">http://sigmaris.info/blog/?p=71</guid>
		<description><![CDATA[The emitSMS plugin has been updated with a small new feature &#8211; it will now strip out dashes and spaces from your phone numbers in Address Book before sending them to the phone, as most phones don&#8217;t seem to accept numbers in this format. Grab the new version here.]]></description>
			<content:encoded><![CDATA[<p>The emitSMS plugin has been updated with a small new feature &#8211; it will now strip out dashes and spaces from your phone numbers in Address Book before sending them to the phone, as most phones don&#8217;t seem to accept numbers in this format. Grab the new version <a title="emitSMS Address Book Plugin" href="http://sigmaris.info/files/emitSMSAddressBookPlugin.bundle.zip">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://sigmaris.info/blog/?feed=rss2&amp;p=71</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>emitSMS plugin bug fix</title>
		<link>http://sigmaris.info/blog/?p=56</link>
		<comments>http://sigmaris.info/blog/?p=56#comments</comments>
		<pubDate>Sun, 25 Oct 2009 23:26:38 +0000</pubDate>
		<dc:creator>sigmaris</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://sigmaris.info/blog/?p=56</guid>
		<description><![CDATA[Here&#8217;s a new version of the Address Book plugin for SMS sending, with a small bug fix intended to stop it hanging after sending an SMS. If you&#8217;ve seen this problem with earlier versions, please let me know if this version has fixed it or not]]></description>
			<content:encoded><![CDATA[<p><a href="http://sigmaris.info/files/emitSMSAddressBookPlugin.bundle.zip">Here&#8217;s</a> a new version of the Address Book plugin for SMS sending, with a small bug fix intended to stop it hanging after sending an SMS. If you&#8217;ve seen this problem with earlier versions, please let me know if this version has fixed it or not <img src='http://sigmaris.info/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://sigmaris.info/blog/?feed=rss2&amp;p=56</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>emitSMS Address Book Plugin updated</title>
		<link>http://sigmaris.info/blog/?p=55</link>
		<comments>http://sigmaris.info/blog/?p=55#comments</comments>
		<pubDate>Thu, 01 Oct 2009 11:26:13 +0000</pubDate>
		<dc:creator>sigmaris</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[address book]]></category>
		<category><![CDATA[bluetooth]]></category>

		<guid isPermaLink="false">http://www.sigmaris.info/blog/?p=55</guid>
		<description><![CDATA[The emitSMS plugin for Address Book has been updated to use native Mac OS methods to access the phone over Bluetooth, rather than using an emulated serial port. This should make it less flaky when used under Snow Leopard. You can get the updated plugin here, and the new source code is here.]]></description>
			<content:encoded><![CDATA[<p>The emitSMS plugin for Address Book has been updated to use native Mac OS methods to access the phone over Bluetooth, rather than using an emulated serial port. This should make it less flaky when used under Snow Leopard. You can get the updated plugin <a title="emitSMS address book plugin" href="http://sigmaris.info/files/emitSMSAddressBookPlugin.bundle.zip">here</a>, and the new source code is <a title="emitSMS address book plugin source" href="http://sigmaris.info/files/bluetooth.zip">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://sigmaris.info/blog/?feed=rss2&amp;p=55</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>emitSMS plugin for Mac OS X Address Book.app</title>
		<link>http://sigmaris.info/blog/?p=43</link>
		<comments>http://sigmaris.info/blog/?p=43#comments</comments>
		<pubDate>Mon, 14 Sep 2009 16:16:27 +0000</pubDate>
		<dc:creator>sigmaris</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://www.sigmaris.info/blog/?p=43</guid>
		<description><![CDATA[In the distant past, the Address Book app in Mac OS X Tiger could send mobile SMS messages directly from within the app, if you paired your mobile phone with your Mac via Bluetooth. Along came Leopard, and the feature mysteriously vanished without trace or explanation, and hasn&#8217;t reappeared since. Missing the feature, I found [...]]]></description>
			<content:encoded><![CDATA[<p>In the distant past, the Address Book app in Mac OS X Tiger could send mobile SMS messages directly from within the app, if you paired your mobile phone with your Mac via Bluetooth. Along came Leopard, and the feature mysteriously vanished without trace or explanation, and hasn&#8217;t reappeared since. Missing the feature, I found a roundabout replacement in the <a title="emitSMS widget homepage" href="http://algoritmer.dk/widget/">emitSMS</a> dashboard widget. It offers SMS sending via Bluetooth and can also search the Address Book for phone numbers. Having seen that the <a title="emitSMS development page" href="http://algoritmer.dk/widget/develop.php">source code</a> for emitSMS was released, I adapted the backend into a plugin for Address Book.app to provide the missing former functionality.<span id="more-43"></span></p>
<p><a title="emitSMS Address Book plugin binary" href="http://sigmaris.info/files/emitSMSAddressBookPlugin.bundle.zip">Download</a>, unzip and place the plugin in /Library/Address Book Plug-Ins/ and restart Address Book. You should then be able to click on a phone number on a person&#8217;s card and select &#8220;Send SMS via Bluetooth&#8221; to send them a SMS.</p>
<p><a href="http://sigmaris.info/blog/wp-content/uploads/2009/09/Screen-shot-2009-09-14-at-16.05.47.png"><img class="aligncenter size-medium wp-image-44" title="Screen shot of emitSMS Address Book plugin" src="http://www.sigmaris.info/blog/wp-content/uploads/2009/09/Screen-shot-2009-09-14-at-16.05.47-300x226.png" alt="Screen shot of emitSMS Address Book plugin" width="300" height="226" /></a>The <a title="emitSMS Address Book plugin source code" href="http://sigmaris.info/files/bluetooth.zip">source code</a> is also available, under the same MIT license as the original emitSMS source code.</p>
<h3>Notes</h3>
<p>The plugin should be compatible with Address Book in Leopard and Snow Leopard.</p>
<p><span style="text-decoration: line-through;">To use the plugin (or the emitSMS widget, in fact) you need to set up a virtual serial port over Bluetooth to your phone. This will normally be set up automatically by OS X when you pair your phone with your Mac, but the serial ports can be edited in the Bluetooth panel in System Preferences if necessary.</span> (edit: No longer necessary in the latest version, all you need to do is pair your phone with your Mac).</p>
<p>After you select a port to use in the pop-up menu, it will test the port for SMS sending capabilities. The port will only be usable if the test succeeds. Some phones seem to be a little flaky when communicating via Bluetooth and require the test to be run a few times before it can establish a connection successfully. If it fails initially, try clicking on the port again.</p>
<p>If &#8216;Long Messages&#8217; is not enabled your messages will be limited to 160 characters (or 70 characters if you use symbols outside the standard GSM set, e.g. ^ ). Not all phones support the sending of long messages (actually splitting the message into several SMSs). Additionally, not all phones support requesting delivery receipts.</p>
<p>In general, if your phone works with the emitSMS dashboard widget, it should work with this plugin as the same underlying method is used to send the SMSs.</p>
]]></content:encoded>
			<wfw:commentRss>http://sigmaris.info/blog/?feed=rss2&amp;p=43</wfw:commentRss>
		<slash:comments>71</slash:comments>
		</item>
		<item>
		<title>Deflektor remake for Nintendo DS</title>
		<link>http://sigmaris.info/blog/?p=19</link>
		<comments>http://sigmaris.info/blog/?p=19#comments</comments>
		<pubDate>Sun, 07 Jun 2009 23:32:03 +0000</pubDate>
		<dc:creator>sigmaris</dc:creator>
				<category><![CDATA[nds]]></category>

		<guid isPermaLink="false">http://www.sigmaris.info/blog/?p=19</guid>
		<description><![CDATA[Here is a project I&#8217;ve been working on for a few weeks to learn more about DS homebrew coding. It&#8217;s a remake of Deflektor, an old puzzle game that I played on the Amiga. I&#8217;ve tried to keep the retro feel of the original while updating it to use the touchscreen interface. The aim is [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a project I&#8217;ve been working on for a few weeks to learn more about DS homebrew coding. It&#8217;s a remake of Deflektor, an old puzzle game that I played on the Amiga. I&#8217;ve tried to keep the retro feel of the original while updating it to use the touchscreen interface.</p>
<p><img class="alignnone size-full wp-image-37" title="ss2" src="http://sigmaris.info/blog/wp-content/uploads/2009/06/ss2.png" alt="ss2" width="186" height="278" /><img class="alignnone size-full wp-image-36" title="ss1" src="http://sigmaris.info/blog/wp-content/uploads/2009/06/ss1.png" alt="ss1" width="185" height="278" /></p>
<p>The aim is to rotate the mirrors (<img class="alignnone size-full wp-image-24" title="mirror" src="http://sigmaris.info/blog/wp-content/uploads/2009/06/mirror.png" alt="mirror" width="16" height="16" />) to reflect the laser beam from the source (<img class="alignnone size-full wp-image-26" title="source" src="http://sigmaris.info/blog/wp-content/uploads/2009/06/source.png" alt="source" width="16" height="16" />) to blow up all the triggers (<img class="alignnone size-full wp-image-30" title="trigger" src="http://sigmaris.info/blog/wp-content/uploads/2009/06/trigger.png" alt="trigger" width="16" height="14" />) and then enter the target (<img class="alignnone size-full wp-image-28" title="target" src="http://sigmaris.info/blog/wp-content/uploads/2009/06/target.png" alt="target" width="16" height="16" />). Rotate the mirrors by tapping on them and then dragging to align the mirror at a particular angle. You start with an amount of energy which is constantly declining (the green bar). Directing the beam into a spike (<img class="alignnone size-full wp-image-27" title="spike" src="http://sigmaris.info/blog/wp-content/uploads/2009/06/spike.png" alt="spike" width="16" height="13" />) or reflecting the beam back to the source will cause it to overload (represented by the red bar). If the source is overloaded too much or if you run out of energy, you lose a life. There are also rotating blocks which only allow the beam to pass at a certain angle (<img class="alignnone size-full wp-image-23" title="angleblocker" src="http://sigmaris.info/blog/wp-content/uploads/2009/06/angleblocker.png" alt="angleblocker" width="16" height="16" />), teleports (<img class="alignnone size-full wp-image-29" title="teleport" src="http://sigmaris.info/blog/wp-content/uploads/2009/06/teleport.png" alt="teleport" width="16" height="16" />) which work in pairs, and blocks which randomize the beam direction (<img class="alignnone size-full wp-image-25" title="random" src="http://sigmaris.info/blog/wp-content/uploads/2009/06/random.png" alt="random" width="16" height="16" />). In addition, in some levels there are gremlins which roam about the board and mess with your stuff. You can get rid of them by tapping on them repeatedly.</p>
<p>There are a few things I&#8217;d like to add to the game, like highscore saving and a level editor, which might appear if I have time to work on it. For now it comes with all the levels from the original game. You can download it <a title="deflektor ds zip file" href="http://sigmaris.info/files/deflektor-ds.zip">here</a>. Any comments, bug reports, etc are welcome!</p>
]]></content:encoded>
			<wfw:commentRss>http://sigmaris.info/blog/?feed=rss2&amp;p=19</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>DesMuME for Mac OS X with GDB stub support</title>
		<link>http://sigmaris.info/blog/?p=10</link>
		<comments>http://sigmaris.info/blog/?p=10#comments</comments>
		<pubDate>Mon, 06 Apr 2009 04:00:11 +0000</pubDate>
		<dc:creator>sigmaris</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[nds]]></category>

		<guid isPermaLink="false">http://www.sigmaris.info/blog/?p=10</guid>
		<description><![CDATA[I&#8217;ve built a Mac (Intel) binary of DesMuME, from the latest SVN code, with a patch to enable masscat&#8217;s GDB stub. With it you can load a homebrew rom, connect to DesMuME with the copy of GDB that&#8217;s provided with devkitARM, and start debugging your homebrew code while it&#8217;s running in the emulator. For more [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve built a Mac (Intel) binary of DesMuME, from the latest SVN code, with a patch to enable masscat&#8217;s GDB stub. With it you can load a homebrew rom, connect to DesMuME with the copy of GDB that&#8217;s provided with devkitARM, and start debugging your homebrew code while it&#8217;s running in the emulator. For more details check out <a title="Desmume + GDB debugger stub" href="http://forums.desmume.org/viewtopic.php?id=85">this post</a> on the official forums.</p>
<p>The binary can be found <a title="DesMuMe Mac binary with GDB stub" href="/files/desmume-gdbstub-svn.zip">here</a>, and the modified parts of the source code can be downloaded <a title="DesMuMe Mac source patched to use GDB stub" href="/files/desmume-gdbstub-svn-src.zip">here</a>. Please let me know if you find any bugs related to using the GDB stub &#8211; I&#8217;ve tested it a bit and most features seem to work, but this is the first time I&#8217;ve worked on the DesMuME code and I may have overlooked something. I take no responsibility for bugs in the unmodified Mac version of DesMuME though <img src='http://sigmaris.info/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<h3>How to use it:</h3>
<p>Currently the only method of specifying the debugger ports to use is on the command line. So, open up Terminal.app and run DesMuME from there, like so:</p>
<pre>orange:~ sigmaris$ /path/to/DeSmuME.app/Contents/MacOS/DeSmuME -arm9gdb 20000</pre>
<p>Note the single dash before the argument. This will start the ARM9 stub listening on port 20000. You can also use -arm7gdb &lt;port&gt; to start the ARM7 stub. You can omit either of the arm9gdb or arm7gdb arguments and it won&#8217;t start the respective GDB stubs at all. If startup was successful you should see log messages like this on the console:</p>
<pre>2009-04-05 22:32:41.896 DeSmuME[29404:10b] Using ARM9 GDB port 20000</pre>
<p>Then go to the DesMuME window, set up a FAT image if necessary, and load your homebrew ROM. You&#8217;ll notice it doesn&#8217;t start immediately but just shows a white screen. It is waiting for GDB to connect, so go ahead and start it up (I assume you have devkitPRO installed in /usr/local)</p>
<pre>orange:~ sigmaris$ /usr/local/devkitPRO/devkitARM/bin/arm-eabi-gdb homebrew.elf</pre>
<p>You should point gdb to the compiled ELF file of the homebrew ROM that you loaded earlier. You should see the (gdb) prompt, now tell GDB to connect to the DesMuME stub:</p>
<pre>(gdb) target remote :20000
Remote debugging using :20000
0x02000000 in _start ()
(gdb)</pre>
<p>If you see the above output, you&#8217;re ready to start debugging. For example, set a breakpoint on a function that you use in your homebrew program, and then enter &#8216;cont&#8217; to tell DesMuME to continue running the program. You should see your program run up to the breakpoint and then stop, and GDB will print a message saying it encountered the breakpoint. You can now examine the state of local variables, print a backtrace, or step line-by-line through your code.</p>
<p>Hopefully this will be useful for some homebrew DS developers on the Mac. Unfortunately, even with the GDB stub in place, DesMuME doesn&#8217;t catch many of the errors that would trip you up on a real DS like writes to invalid memory and other similar errors. But being able to jump in anywhere and examine the running state of your code is a step forward from just using tons of iprintf() calls <img src='http://sigmaris.info/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://sigmaris.info/blog/?feed=rss2&amp;p=10</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
