<?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>NSCoriolisBlog &#187; MacOSX</title>
	<atom:link href="http://blog.coriolis.ch/category/macosx/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.coriolis.ch</link>
	<description>Just another Coriolis weblog</description>
	<lastBuildDate>Mon, 01 Aug 2011 11:36:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Get your Apple device model name in a readable format</title>
		<link>http://blog.coriolis.ch/2011/08/01/get-your-apple-device-model-name-in-a-readable-format/</link>
		<comments>http://blog.coriolis.ch/2011/08/01/get-your-apple-device-model-name-in-a-readable-format/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 11:36:04 +0000</pubDate>
		<dc:creator>Stephan</dc:creator>
				<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[device name]]></category>
		<category><![CDATA[lion]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://blog.coriolis.ch/?p=361</guid>
		<description><![CDATA[With OSX Lion, when you select &#8220;About this Mac&#8221; => &#8220;More Info&#8221; (or open the System Profiler), it displays your computer model name in a readable format. After a little snooping with HTTPScoop, I found that the name comes from an Apple server. System profiler will send the last 3 characters of your machine serial [...]]]></description>
			<content:encoded><![CDATA[<p>With OSX Lion, when you select &#8220;About this Mac&#8221; => &#8220;More Info&#8221; (or open the System Profiler), it displays your computer model name in a readable format.</p>
<p><a  href="http://blog.coriolis.ch/wp-content/uploads/2011/08/About-This-Mac.jpg"><img src="http://blog.coriolis.ch/wp-content/uploads/2011/08/About-This-Mac.jpg" alt="About This Mac" title="About This Mac" width="614" height="363" class="alignnone size-full wp-image-383" /></a></p>
<p>After a little snooping with HTTPScoop, I found that the name comes from an Apple server.</p>
<p>System profiler will send the last 3 characters of your machine serial number and the server will send back the machine name, in xml format.</p>
<p>My iMac serial ends with &#8220;5RU&#8221; so calling the url below and passing &#8220;5RU&#8221; as a parameter:</p>
<pre><code>curl -o - "http://support-sp.apple.com/sp/product?cc=5RU&amp;lang=en_US"</code></pre>
<p>gives:<br />
<code>
<pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;
&lt;root&gt;
&lt;name&gt;CPU Name&lt;/name&gt;
&lt;configCode&gt;iMac (27-inch, Late 2009)&lt;/configCode&gt;
&lt;locale&gt;en_US&lt;/locale&gt;
&lt;/root&gt;</pre>
<p></code><br />
Changing the locale works:</p>
<pre><code>curl -o - "http://support-sp.apple.com/sp/product?cc=5RU&amp;lang=fr_CH"</code></pre>
<p>gives:<br />
<code>
<pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;
&lt;root&gt;
&lt;name&gt;CPU Name&lt;/name&gt;
&lt;configCode&gt;iMac (27 pouces, fin 2009)&lt;/configCode&gt;
&lt;locale&gt;fr_FR&lt;/locale&gt;
&lt;/root&gt;</pre>
<p></code><br />
It works also with the iPhone:</p>
<pre><code>curl -o - "http://support-sp.apple.com/sp/product?cc=A4S&amp;lang=en_US"</code></pre>
<p>gives:<br />
<code>
<pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;
&lt;root&gt;
&lt;name&gt;CPU Name&lt;/name&gt;
&lt;configCode&gt;iPhone 4&lt;/configCode&gt;
&lt;locale&gt;en_US&lt;/locale&gt;
&lt;/root&gt;</pre>
<p></code></p>
<p>Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.coriolis.ch/2011/08/01/get-your-apple-device-model-name-in-a-readable-format/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Finally</title>
		<link>http://blog.coriolis.ch/2008/11/07/finally/</link>
		<comments>http://blog.coriolis.ch/2008/11/07/finally/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 16:27:28 +0000</pubDate>
		<dc:creator>Stephan</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[ivault]]></category>

		<guid isPermaLink="false">http://blog.coriolis.ch/?p=19</guid>
		<description><![CDATA[After 14713 lines of code, here is my first iPhone application: iVault, available in the AppStore.]]></description>
			<content:encoded><![CDATA[<p>After 14713 lines of code, here is my first iPhone application:</p>
<p><strong>iVault</strong>, available in the AppStore.</p>
<p><a  href="http://blog.coriolis.ch/wp-content/uploads/2008/11/ivault1.png"><img class="alignnone size-medium wp-image-20" title="ivault1" src="http://blog.coriolis.ch/wp-content/uploads/2008/11/ivault1-200x300.png" alt="" width="200" height="300" /></a> <a  href="http://blog.coriolis.ch/wp-content/uploads/2008/11/ivault2.png"><img class="alignnone size-medium wp-image-21" title="ivault2" src="http://blog.coriolis.ch/wp-content/uploads/2008/11/ivault2-200x300.png" alt="" width="200" height="300" /></a><br />
<a  href="http://blog.coriolis.ch/wp-content/uploads/2008/11/ivault3.png"><img class="alignnone size-medium wp-image-22" title="ivault3" src="http://blog.coriolis.ch/wp-content/uploads/2008/11/ivault3-200x300.png" alt="" width="200" height="300" /></a> <a  href="http://blog.coriolis.ch/wp-content/uploads/2008/11/ivault4.png"><img class="alignnone size-medium wp-image-23" title="ivault4" src="http://blog.coriolis.ch/wp-content/uploads/2008/11/ivault4-200x300.png" alt="" width="200" height="300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.coriolis.ch/2008/11/07/finally/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>TimeMachine: it&#8217;s alive, alive!</title>
		<link>http://blog.coriolis.ch/2008/05/09/timemachine-its-alive-alive/</link>
		<comments>http://blog.coriolis.ch/2008/05/09/timemachine-its-alive-alive/#comments</comments>
		<pubDate>Fri, 09 May 2008 09:33:27 +0000</pubDate>
		<dc:creator>Stephan</dc:creator>
				<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[Time Machine]]></category>
		<category><![CDATA[TimeMachine]]></category>

		<guid isPermaLink="false">http://blog.coriolis.ch/?p=5</guid>
		<description><![CDATA[When I bought my iMac, I did a restore from my MacBook TimeMachine backup. When I continued working on my current project, I did notice a difference between the files that were on my MacBook and the files on my iMac. The files restored from the backup were not up-to-date and were from a few [...]]]></description>
			<content:encoded><![CDATA[<p>When I bought my iMac, I did a restore from my MacBook TimeMachine backup. When I continued working on my current project, I did notice a difference between the files that were on my MacBook and the files on my iMac. The files restored from the backup were not up-to-date and were from a few days ago.</p>
<p>I tried this snippet on <a  href="http://www.macosxhints.com/article.php?story=20071109024812437" target="_blank">MacOSXHints</a> to compare Time Machine backups to the original drive, and it found differences between the original disk and the backup.</p>
<p>After having tried the usual suspect, i.e. check the disks, check the prefs, I tried to force a backup, i.e. <strong><em>touch</em></strong> the files, <strong><em>touch</em></strong> the parent folder, but the files would not backup.</p>
<p>I solved this by doing a clean TimeMachine backup: erase the TM volume and do a full backup.</p>
<p>I also wrote an application (not yet released) to check for differences between TM and the original disk. It can compare files in 2 different ways: the first is to just compare the dates, sizes or attributes between the backup and the original, the second way is to compare the content of the files. This second method being of course considerably slower than the first.</p>
<p>After a month, the first method did not find any differences between the backup and the original. So far, so good.</p>
<p>But using the second method, I found differences between files. The file date, size are identical, but the content is not. Using the <strong><em>diff</em></strong> command on the files confirmed this.</p>
<p>Differences were found in text files, Excel files, and NetNewsWire files (in the Application Support/NetNewsWire folder).</p>
<p>For Excel files, the differences are not visible when opening the files, but can be seen using TextWrangler &#8220;Hex Dump File&#8221; feature:</p>
<p>Original file:</p>
<pre><code>
00100860: 00 00 00 00 00 00 00 00 00 00 00 00 80 D2 AA 71 	...............q
00100870: 18 77 C8 01 FE FF FF FF 00 00 00 00 00 00 00 00 	.w..............
00100880: 57 00 6F 00 72 00 6B 00 62 00 6F 00 6F 00 6B 00 	W.o.r.k.b.o.o.k.
</code></pre>
<p>Backup file:</p>
<pre><code>
00100860: 00 00 00 00 00 00 00 00 00 00 00 00 00 E6 C3 6E 	...............n
00100870: A4 23 C8 01 FE FF FF FF 00 00 00 00 00 00 00 00 	.#..............
00100880: 57 00 6F 00 72 00 6B 00 62 00 6F 00 6F 00 6B 00 	W.o.r.k.b.o.o.k.
</code></pre>
<p>So there is a 6 bytes difference between the original and the backup and I have no idea why.</p>
<p>Comparing text files (the files are perl scripts, shell scripts) using the same method shows that the original files have Mac (CR) line endings and the backup files have Unix (LF) line endings. I double checked using <strong><em>hexdump</em></strong> to make sure TextWrangler did not auto-translate the line endings.</p>
<p>So is TimeMachine acting on his own?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.coriolis.ch/2008/05/09/timemachine-its-alive-alive/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: www.coriolis.ch @ 2012-02-04 23:17:49 -->
