<?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>mixed-it.de &#187; Snippets</title>
	<atom:link href="http://mixed-it.de/blog/category/computer/snippets/feed/" rel="self" type="application/rss+xml" />
	<link>http://mixed-it.de/blog</link>
	<description></description>
	<lastBuildDate>Tue, 14 Jun 2011 12:25:25 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>Gnuplot fit Daten extrahieren</title>
		<link>http://mixed-it.de/blog/2010/03/21/gnuplot-fit-daten-extrahieren/</link>
		<comments>http://mixed-it.de/blog/2010/03/21/gnuplot-fit-daten-extrahieren/#comments</comments>
		<pubDate>Sun, 21 Mar 2010 11:34:14 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://mixed-it.de/blog/?p=365</guid>
		<description><![CDATA[Ein kleines Script das ich mir gerade zusammenkopiert habe (thx to Francois Boulogne)&#8230; Nützlich isses aber, darum poste ichs mal hier&#8230; #!/usr/bin/perl # Extracts final set of fitting parameters out of gnuplots fit.log # # Max, email: webmaster~a.t=mixed-it.de # &#160; use warnings; &#160; # what to seperate the values? $sep=&#34;, &#34;; &#160; open&#40;FITLOG,&#34;fit.log&#34;&#41; or warn [...]]]></description>
			<content:encoded><![CDATA[<p>Ein kleines Script das ich mir gerade zusammenkopiert habe (thx to Francois Boulogne)&#8230;<br />
Nützlich isses aber, darum poste ichs mal hier&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/usr/bin/perl</span>
<span style="color: #666666; font-style: italic;"># Extracts final set of fitting parameters out of gnuplots fit.log</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Max, email: webmaster~a.t=mixed-it.de</span>
<span style="color: #666666; font-style: italic;">#</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">use</span> warnings<span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># what to seperate the values?</span>
<span style="color: #0000ff;">$sep</span><span style="color: #339933;">=</span><span style="color: #ff0000;">&quot;, &quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span>FITLOG<span style="color: #339933;">,</span><span style="color: #ff0000;">&quot;fit.log&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">or</span> <span style="color: #000066;">warn</span> <span style="color: #ff0000;">&quot;Can't open fit.log&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #009999;">&lt;FITLOG&gt;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #666666; font-style: italic;"># nach final variable suchen...regex von http://de.pastebin.ca/1804745</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$_</span> <span style="color: #339933;">=~</span> <span style="color: #000066;">s</span><span style="color: #339933;">/</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">\w</span><span style="color: #339933;">+</span><span style="color: #009900;">&#41;</span>\<span style="color: #000066;">s</span><span style="color: #339933;">+=</span>\<span style="color: #000066;">s</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">.*?</span><span style="color: #009900;">&#41;</span>\<span style="color: #000066;">s</span><span style="color: #339933;">+</span>\<span style="color: #339933;">+</span>\<span style="color: #339933;">/</span>\<span style="color: #339933;">-</span>\<span style="color: #000066;">s</span><span style="color: #339933;">+</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">.*?</span><span style="color: #009900;">&#41;</span>\<span style="color: #000066;">s</span><span style="color: #339933;">+</span>\<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">.*?</span><span style="color: #009900;">&#41;</span>\<span style="color: #339933;">%</span>\<span style="color: #009900;">&#41;</span><span style="color: #339933;">/</span><span style="color: #0000ff;">$1</span> <span style="color: #0000ff;">$2</span> <span style="color: #0000ff;">$3</span> <span style="color: #0000ff;">$4</span><span style="color: #339933;">/</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #0000ff;">@string</span> <span style="color: #339933;">=</span> <span style="color: #000066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/ /</span><span style="color: #339933;">,</span><span style="color: #0000ff;">$_</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000066;">print</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;$string[0]$sep$string[1]$sep$string[2]<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>       
<span style="color: #009900;">&#125;</span>
<span style="color: #000066;">close</span><span style="color: #009900;">&#40;</span>FITLOG<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://mixed-it.de/blog/2010/03/21/gnuplot-fit-daten-extrahieren/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shell-fm</title>
		<link>http://mixed-it.de/blog/2009/01/27/shell-fm/</link>
		<comments>http://mixed-it.de/blog/2009/01/27/shell-fm/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 18:49:35 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://mixed-it.de/blog/?p=344</guid>
		<description><![CDATA[Die meisten von euch kennen wohl schon das Tool &#8220;shell-fm&#8221; &#8211; ein kleiner, feiner Audioplayer für last.fm-Streams aus der Konsole&#8230; Ich bin mal wieder über ein altes, sehr simples Script gestolpert, was hilft, damit man sich die last-fm urls nicht merken muss&#8230; Außerdem empfiehlt sich eine config-Datei anzulegen..siehe hierfür &#8220;man shell-fm-config&#8221;&#8230;. Max Update: Kleine Verbesserung [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">Die meisten von euch kennen wohl schon das Tool &#8220;shell-fm&#8221; &#8211; ein kleiner, feiner Audioplayer für last.fm-Streams aus der Konsole&#8230;</p>
<p style="text-align: left;">Ich bin mal wieder über ein altes, sehr simples <a href="http://mixed-it.de/blog/wp-content/uploads/2009/01/lastfm_play">Script </a>gestolpert, was hilft, damit man sich die last-fm urls nicht merken muss&#8230;</p>
<p>Außerdem empfiehlt sich eine config-Datei anzulegen..siehe hierfür &#8220;man shell-fm-config&#8221;&#8230;.</p>
<p style="text-align: left;">Max</p>
<p><a href="http://mixed-it.de/blog/wp-content/uploads/2009/01/screen1.png" class="alignright" rel="lightbox[344]"><img class="size-thumbnail wp-image-354 alignright" title="Screen shell-fm" style="float:right;" src="http://mixed-it.de/blog/wp-content/uploads/2009/01/screen1-150x150.png" alt="Screen shell-fm" width="150" height="150" /></a></p>
<p><strong>Update:</strong> Kleine Verbesserung auf Wunsch&#8230;mehr &#8220;cases&#8221; kann man aber wirklich selbst einfügen &#8211; ist nicht sooo schwer&#8230; <img src='http://mixed-it.de/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><strong>Update 2:</strong> Sowas wie <em>np-cmd=showmsg &#8220;%a &#8211; %t&#8221;</em> in der ~/.shell-fm/shell-fm.rc (mit beispielsweisse einem</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$1</span><span style="color: #000000; font-weight: bold;">|</span>aosd_cat <span style="color: #660033;">-R</span> <span style="color: #ff0000;">&quot;#0066B3&quot;</span> <span style="color: #660033;">-x</span> <span style="color: #ff0000;">&quot;500&quot;</span> <span style="color: #660033;">-y</span> <span style="color: #ff0000;">&quot;-10&quot;</span> <span style="color: #660033;">-u</span> <span style="color: #ff0000;">&quot;3800&quot;</span> <span style="color: #660033;">-o</span> <span style="color: #ff0000;">&quot;500&quot;</span> <span style="color: #660033;">--font</span>=<span style="color: #ff0000;">&quot;bitstream bold 16&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #000000; font-weight: bold;">&amp;</span>amp;</pre></div></div>

<p>in der ~/bin/showmsg macht sich imho echt gut&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://mixed-it.de/blog/2009/01/27/shell-fm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

