<?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>mcBachmann.de TechBlog &#187; cexec</title>
	<atom:link href="http://blog.mcbachmann.de/tag/cexec/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.mcbachmann.de</link>
	<description>Der Blog zur Website ;-)</description>
	<lastBuildDate>Wed, 11 Jan 2012 21:12:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Vorstellung des Tools cexec</title>
		<link>http://blog.mcbachmann.de/linux/vorstellung-des-tools-cexec</link>
		<comments>http://blog.mcbachmann.de/linux/vorstellung-des-tools-cexec#comments</comments>
		<pubDate>Fri, 29 May 2009 06:54:08 +0000</pubDate>
		<dc:creator>Sven Bachmann</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[cexec]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://blog.mcbachmann.de/?p=294</guid>
		<description><![CDATA[Wer kennt das nicht? Da hat man ein tolles Kommandozeilenprogramm mit dutzenden von Einstellmöglichkeiten und weiß nicht, welche Kombination zum besten Ergebnis führt. So erging es mir mit Metapixel &#8211; einem Programm zur Erstellung von Foto Mosaiks und Collagen. Daher habe ich mir kurzerhand cexec entwickelt, was für &#8220;Combination Execute&#8221; steht. Es hat die Aufgabe, [...]]]></description>
			<content:encoded><![CDATA[<p>Wer kennt das nicht? Da hat man ein tolles Kommandozeilenprogramm mit dutzenden von Einstellmöglichkeiten und weiß nicht, welche Kombination zum besten Ergebnis führt.<span id="more-294"></span></p>
<p>So erging es mir mit <a href="http://www.complang.tuwien.ac.at/schani/metapixel/">Metapixel</a> &#8211; einem Programm zur Erstellung von Foto Mosaiks und Collagen.</p>
<p>Daher habe ich mir kurzerhand <strong>cexec</strong> entwickelt, was für &#8220;Combination Execute&#8221; steht. Es hat die Aufgabe, alle in einer Konfigurationsdatei angegebenen Optionen zu kombinieren und das Ergebnis des auszuführenden Programmes fortlaufend abzuspeichern.</p>
<p><a href="http://github.com/sven/cexec/blob/9c0a7e4438eedd899d0c0c656c750b134a6594d3/presets/metapixel">Metapixel-Beispielkonfiguration</a>:</p>
<blockquote><p><code>[main]<br />
exec = "metapixel --metapixel"<br />
pre = "%infile% %outfile% -l ~/.metapixel"<br />
post = ""</p>
<p>[param::collage]<br />
append = "--collage"<br />
optional = true</p>
<p>[param::cheat]<br />
append = "--cheat="<br />
values = 30, 60, 90<br />
optional = true<br />
...</code></p></blockquote>
<p>Daraus macht cexec dann folgendes:</p>
<blockquote><p><code>Executing: metapixel --metapixel original_image.png new_image_1.png -l ~/.metapixel --search=local --distance=40 --metric=subpixel<br />
Executing: metapixel --metapixel original_image.png new_image_2.png -l ~/.metapixel --search=local --distance=40 --metric=subpixel --collage<br />
Executing: metapixel --metapixel original_image.png new_image_3.png -l ~/.metapixel --search=local --distance=40 --scale=2 --metric=subpixel<br />
Executing: metapixel --metapixel original_image.png new_image_4.png -l ~/.metapixel --search=local --distance=40 --scale=2 --metric=subpixel --collage<br />
...</code></p></blockquote>
<p>Es ist sinnvoll, sich die Ausgabe von cexec zu speichern, damit man später den Dateien die Parameter zuordnen kann.<br />
<a href="http://github.com/sven/cexec/">Cexec gibt es zum Download in meinem github Repostory.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mcbachmann.de/linux/vorstellung-des-tools-cexec/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

