<?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>MRo Blog &#187; SANE</title>
	<atom:link href="http://blog.mro.name/tag/sane/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mro.name</link>
	<description>Marcus Rohrmoser mobile Software</description>
	<lastBuildDate>Wed, 23 Jun 2010 11:32:27 +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>Upgrade to Snow Leopard</title>
		<link>http://blog.mro.name/2009/11/upgrade-to-snow-leopard/</link>
		<comments>http://blog.mro.name/2009/11/upgrade-to-snow-leopard/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 21:58:42 +0000</pubDate>
		<dc:creator>mro</dc:creator>
				<category><![CDATA[Articles in english]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[Graphviz]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[MacPorts]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[SANE]]></category>
		<category><![CDATA[SenTestingKit]]></category>
		<category><![CDATA[Snow Leopard]]></category>
		<category><![CDATA[Twain]]></category>
		<category><![CDATA[XCode]]></category>

		<guid isPermaLink="false">http://blog.mro.name/?p=1391</guid>
		<description><![CDATA[Mac OS X 10.6 Snow Leopard (partition 25G, HFS+ Journaled, Upper/Lower) Mac OS X 10.5 Leopard (partition 25G, HFS+ Journaled, Upper/Lower) partition userspace 100G, HFS+ Journaled, Upper/Lower $ cat /etc/fstab # mount partition &#34;userspace&#34; as /Users UUID=D016E3FD-E322-3006-A8F5-D2348C6A5B7B /Users hfs rw,auto create user &#8220;mig&#8221; TimeMachine restore Users + Settings delete user &#8220;mig&#8221; manually copy user &#8220;Shared&#8221; [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li>Mac OS X 10.6 Snow Leopard (partition 25G, HFS+ Journaled, Upper/Lower)</li>
<li>Mac OS X 10.5 Leopard (partition 25G, HFS+ Journaled, Upper/Lower)</li>
<li>partition userspace 100G, HFS+ Journaled, Upper/Lower

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>fstab
<span style="color: #666666; font-style: italic;"># mount partition &quot;userspace&quot; as /Users</span>
<span style="color: #007800;">UUID</span>=D016E3FD-E322-<span style="color: #000000;">3006</span>-A8F5-D2348C6A5B7B	<span style="color: #000000; font-weight: bold;">/</span>Users	hfs	rw,auto</pre></div></div>

</li>
<li>create user &#8220;mig&#8221;</li>
<li>TimeMachine restore Users + Settings</li>
<li>delete user &#8220;mig&#8221;</li>
<li>manually copy user &#8220;Shared&#8221;</li>
<li>iPhone SDK 3.1.2 + XCode 3.2.1</li>
<li><a href="http://rentzsch.com/code/mogenerator_v1.5">modgenerator 1.5</a> plus <a href="http://aralbalkan.com/2152">trick</a>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>Developer<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>momc <span style="color: #000000; font-weight: bold;">/</span>Developer<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Xcode<span style="color: #000000; font-weight: bold;">/</span>Plug-ins<span style="color: #000000; font-weight: bold;">/</span>XDCoreDataModel.xdplugin<span style="color: #000000; font-weight: bold;">/</span>Contents<span style="color: #000000; font-weight: bold;">/</span>Resources<span style="color: #000000; font-weight: bold;">/</span>momc</pre></div></div>

</li>
<li><a href="http://code.google.com/p/git-osx-installer/">git 1.6.5.2</a>, manually add to <code>.bash_profile</code>:

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PATH</span>=<span style="color: #007800;">$PATH</span>:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>git<span style="color: #000000; font-weight: bold;">/</span>bin</pre></div></div>

</li>
<li><a href="http://www.macports.org/install.php">Macports</a> / http://trac.macports.org/wiki/Migration

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> port selfupdate
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> bcpp pwgen <span style="color: #c20cb9; font-weight: bold;">wget</span> lftp fortune optipng graphviz ragel imagemagick
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> port clean <span style="color: #660033;">--all</span> installed
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-f</span> uninstall inactive</pre></div></div>

</li>
<li><a href="http://www.graphviz.org/Download_macos.php">graphviz-2.25.20091129.0545.pkg</a></li>
<li><a href="http://www.barebones.com/products/TextWrangler/">Textwrangler 3.0 (2538)</a></li>
<li><a href="http://gimp.lisanet.de/Website/Download.html">Gimp 2.6.7</a></li>
<li><a href="http://www.neooffice.org/neojava/de/mirrors.php?file=NeoOffice-3.0-Intel.dmg">NeoOffice 3.0.1</a></li>
<li><a href="http://www.evernote.com/about/intl/de/download/">Evernote 1.5.2 (62233)</a></li>
<li><a href="http://www.truecrypt.org/downloads">TrueCrypt 6.3a</a></li>
<li><a href="http://www.dropbox.com/">Dropbox v0.6.570</a></li>
<li><a href="http://skype.com/">Skype 2.8.0.722</a></li>
<li><a href="http://www.mozilla-europe.org/de/firefox/">Firefox 3.5,5</a></li>
<li><a href="http://www.getmiro.com/">Miro Video Player 2.5.3 (775f9134)</a></li>
<li><a href="http://sourceforge.net/projects/maxima/files/">wxMaxima-0.8.3 &amp; Maxima-5.19.2.dmg</a></li>
<li><a href="http://blog.mro.name/2008/12/scanner-mustek-1200-cu-unter-mac-os-x-105/">Twain SANE Scanner Support</a></li>
</ol>
<p>Remaining issues:</p>
<ol>
<li>SenTestingKit error highlighting not working.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.mro.name/2009/11/upgrade-to-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sane Batch Scan Workaround</title>
		<link>http://blog.mro.name/2009/07/sane-batch-scan-workaroun/</link>
		<comments>http://blog.mro.name/2009/07/sane-batch-scan-workaroun/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 14:29:36 +0000</pubDate>
		<dc:creator>mro</dc:creator>
				<category><![CDATA[Artikel auf deutsch]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[ImageMagick]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[printf]]></category>
		<category><![CDATA[SANE]]></category>
		<category><![CDATA[scanimage]]></category>
		<category><![CDATA[Scanner]]></category>

		<guid isPermaLink="false">http://blog.mro.name/?p=1141</guid>
		<description><![CDATA[Obwohl scanimage aus dem SANE Werkzeugkasten in der (aktuellen?) OS X Version $ scanimage --version scanimage &#40;sane-backends&#41; 1.0.21cvs; backend version 1.0.21 (installiert nach http://blog.mro.name/2008/12/scanner-mustek-1200-cu-unter-mac-os-x-105/) beim Versuch per &#8220;batch&#8221; mehrere Seiten zu scannen jeweils nach Seite 1 aus der Kurve fliegt: $ scanimage --batch-start=45 --batch-count=16 --batch --batch-prompt \ --format=pnm --mode Color --resolution 300 ... Scanning page [...]]]></description>
			<content:encoded><![CDATA[<p>Obwohl <a href="http://www.sane-project.org/man/scanimage.1.html">scanimage</a> aus dem <a href="http://de.wikipedia.org/wiki/Scanner_Access_Now_Easy">SANE</a> Werkzeugkasten in der (aktuellen?) <a href="http://de.wikipedia.org/wiki/OS_X">OS X</a> Version</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ scanimage <span style="color: #660033;">--version</span>
scanimage <span style="color: #7a0874; font-weight: bold;">&#40;</span>sane-backends<span style="color: #7a0874; font-weight: bold;">&#41;</span> 1.0.21cvs; backend version 1.0.21</pre></div></div>

<p>(installiert nach <a href="http://blog.mro.name/2008/12/scanner-mustek-1200-cu-unter-mac-os-x-105/">http://blog.mro.name/2008/12/scanner-mustek-1200-cu-unter-mac-os-x-105/</a>) beim Versuch per &#8220;batch&#8221; mehrere Seiten zu scannen jeweils nach Seite 1 aus der Kurve fliegt:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ scanimage <span style="color: #660033;">--batch-start</span>=<span style="color: #000000;">45</span> <span style="color: #660033;">--batch-count</span>=<span style="color: #000000;">16</span> <span style="color: #660033;">--batch</span> <span style="color: #660033;">--batch-prompt</span> \
<span style="color: #660033;">--format</span>=pnm <span style="color: #660033;">--mode</span> Color <span style="color: #660033;">--resolution</span> <span style="color: #000000;">300</span>
...
Scanning page <span style="color: #000000;">46</span>
scanimage: sane_start: Invalid argument</pre></div></div>

<p>und das auch ein <a href="http://forum.ubuntuusers.de/topic/probleme-mit-scanner-im-batch-betrieb-scanima/?highlight=pag#post-761267">bekanntes Problem</a> zu sein scheint, gibt&#8217;s einen Workaround per selbstgebautem Shell-Script:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #666666; font-style: italic;"># http://blog.mro.name/2009/07/sane-batch-scan-workaroun/</span>
<span style="color: #007800;">pre</span>=scan-<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">date</span> <span style="color: #ff0000;">&quot;+%Y-%m-%dT%H:%M&quot;</span><span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;To create a pdf, call after scanning the pages:&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;    convert <span style="color: #007800;">$pre</span>*.png -despeckle -density 100x100 -compress JPEG -quality 50 -page a4 <span style="color: #007800;">$pre</span>.pdf&quot;</span>
<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">i</span>=<span style="color: #000000;">0</span>;i <span style="color: #000000; font-weight: bold;">&lt;</span> <span style="color: #000000;">100</span>;i++<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000; font-weight: bold;">do</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Place document no. <span style="color: #007800;">$i</span> on the scanner.&quot;</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Press &amp;lt;RETURN&amp;gt; to continue, &amp;lt;q&amp;gt; + &amp;lt;RETURN&amp;gt; to quit.&quot;</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> \\a
	<span style="color: #c20cb9; font-weight: bold;">read</span> key
	<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$key</span> == <span style="color: #ff0000;">&quot;q&quot;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #007800;">$key</span> == <span style="color: #ff0000;">&quot;Q&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> ; <span style="color: #000000; font-weight: bold;">then</span>
		<span style="color: #7a0874; font-weight: bold;">break</span>
	<span style="color: #000000; font-weight: bold;">fi</span>
	<span style="color: #007800;">dst</span>=<span style="color: #007800;">$pre</span>-page$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #000000; font-weight: bold;">%</span>03d <span style="color: #007800;">$i</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
	scanimage <span style="color: #660033;">--mode</span> Gray <span style="color: #660033;">--resolution</span> <span style="color: #000000;">300</span> <span style="color: #660033;">--buffer-size</span>=<span style="color: #000000;">1024</span> <span style="color: #660033;">--progress</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #007800;">$dst</span>.pnm
	<span style="color: #666666; font-style: italic;"># background conversion:</span>
	<span style="color: #7a0874; font-weight: bold;">&#40;</span>convert <span style="color: #007800;">$dst</span>.pnm <span style="color: #660033;">-level</span> <span style="color: #000000;">15</span>,<span style="color: #000000;">85</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #660033;">-density</span> 300x300 <span style="color: #660033;">-type</span> grayscale \
		<span style="color: #660033;">-resample</span> 100x100 <span style="color: #007800;">$dst</span>.png <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #007800;">$dst</span>.pnm<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>
<span style="color: #000000; font-weight: bold;">done</span>
<span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-l</span> <span style="color: #007800;">$pre</span><span style="color: #000000; font-weight: bold;">*</span></pre></div></div>

<p>é voilá.</p>
<p>Um das ganze dann noch in ein PDF moderater Größe zu verwandeln genügt (<a href="http://www.imagemagick.org/script/binary-releases.php#macosx">ImageMagick z.B. via darwinport</a> vorausgesetzt):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #000000; font-weight: bold;">time</span> convert <span style="color: #000000; font-weight: bold;">*</span>.png <span style="color: #660033;">-despeckle</span> <span style="color: #660033;">-density</span> 100x100 \
<span style="color: #660033;">-compress</span> JPEG <span style="color: #660033;">-quality</span> <span style="color: #000000;">75</span> <span style="color: #660033;">-page</span> a4 out.pdf
&nbsp;
real	3m39.867s
user	2m55.069s
sys	0m9.628s</pre></div></div>

<p>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mro.name/2009/07/sane-batch-scan-workaroun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scanner Mustek 1200 CU unter Mac OS X 10.5</title>
		<link>http://blog.mro.name/2008/12/scanner-mustek-1200-cu-unter-mac-os-x-105/</link>
		<comments>http://blog.mro.name/2008/12/scanner-mustek-1200-cu-unter-mac-os-x-105/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 14:07:21 +0000</pubDate>
		<dc:creator>mro</dc:creator>
				<category><![CDATA[Artikel auf deutsch]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[Mustek]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[SANE]]></category>
		<category><![CDATA[Scanner]]></category>
		<category><![CDATA[Twain]]></category>

		<guid isPermaLink="false">http://blog.mro.name/?p=276</guid>
		<description><![CDATA[Ein aktueller Mac mag den alten Scanner zwar nicht von Haus aus, läßt sich aber dazu überreden: Scanner Mustek 1200 CU unter Mac OS X 10.5 verweist auf TWAIN SANE Interface for MacOS X: libusb SANE backends SANE Preference Pane TWAIN SANE Interface]]></description>
			<content:encoded><![CDATA[<p>Ein aktueller Mac mag den alten Scanner</p>
<div class="wp-caption aligncenter" style="width: 210px"><img title="Scanner Mustek 1200 CU" src="http://images.ciao.com/ide/images/products/normal/587/product-1248587.jpg" alt="Scanner Mustek 1200 CU" width="200" height="150" /><p class="wp-caption-text">Scanner Mustek 1200 CU</p></div>
<p>zwar nicht von Haus aus, läßt sich aber dazu überreden: <a href="http://blog.davidgraesser.de/?p=58">Scanner Mustek 1200 CU unter Mac OS X 10.5</a> verweist auf <a href="http://www.ellert.se/twain-sane/">TWAIN SANE Interface for MacOS X</a>:</p>
<ol>
<li>libusb</li>
<li>SANE backends</li>
<li>SANE Preference Pane</li>
<li>TWAIN SANE Interface</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.mro.name/2008/12/scanner-mustek-1200-cu-unter-mac-os-x-105/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
