<?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>Stempell &#187; Work Related</title>
	<atom:link href="http://stempell.com/category/work-related/feed/" rel="self" type="application/rss+xml" />
	<link>http://stempell.com</link>
	<description>Urlaubsfotos, Fun</description>
	<lastBuildDate>Mon, 14 May 2012 09:12:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>ls soll auch die Sekunden anzeigen</title>
		<link>http://stempell.com/2011/09/ls-soll-auch-die-sekunden-anzeigen/</link>
		<comments>http://stempell.com/2011/09/ls-soll-auch-die-sekunden-anzeigen/#comments</comments>
		<pubDate>Wed, 28 Sep 2011 08:52:43 +0000</pubDate>
		<dc:creator>Ingmar Stempell</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Work Related]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://stempell.com/?p=649</guid>
		<description><![CDATA[ls -l --time-style=+'%c ' wird zu '-rw-r--r--  1 user           group  1000  Mi 28 Sep 2011 08:43:31 UTC file' Leider gibt es keine Erklärung zur --time-style Option in der ls Manpage. Die Erklärung was mit dem % Parameter dargestellt wird, stammt aus der Man-Page von date: %c     Datum und Uhrzeit gemäß Ländereinstellung (z. B. Die [...]]]></description>
			<content:encoded><![CDATA[<p><code>ls -l --time-style=+'%c ' wird zu '-rw-r--r--  1 user           group  1000  Mi 28 Sep 2011 08:43:31 UTC file'</code></p>
<p>Leider gibt es keine Erklärung zur <code>--time-style</code> Option in der ls Manpage. Die Erklärung was mit dem % Parameter dargestellt wird, stammt aus der Man-Page von date:</p>
<p>%c     Datum und Uhrzeit gemäß Ländereinstellung (z. B. Die 23 Jan 2001 19:10:08 CET).</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://stempell.com/2011/09/ls-soll-auch-die-sekunden-anzeigen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alle .svn Ordner löschen</title>
		<link>http://stempell.com/2010/08/alle-svn-orner-loschen/</link>
		<comments>http://stempell.com/2010/08/alle-svn-orner-loschen/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 11:51:32 +0000</pubDate>
		<dc:creator>Ingmar Stempell</dc:creator>
				<category><![CDATA[Work Related]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Programmieren]]></category>

		<guid isPermaLink="false">http://stempell.com/?p=579</guid>
		<description><![CDATA[#!/bin/sh echo "recursively removing .svn folders from" pwd rm -rf `find . -type d -name .svn`]]></description>
			<content:encoded><![CDATA[<p><code><br />
#!/bin/sh<br />
echo "recursively removing .svn folders from"<br />
pwd<br />
rm -rf `find . -type d -name .svn`<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://stempell.com/2010/08/alle-svn-orner-loschen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Snippet: 1. Zeile löschen ODER alles bis auf erste Zeile löschen</title>
		<link>http://stempell.com/2010/07/php-snippet-1-zeile-loschen-oder-alles-bis-auf-erste-zeile-loschen/</link>
		<comments>http://stempell.com/2010/07/php-snippet-1-zeile-loschen-oder-alles-bis-auf-erste-zeile-loschen/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 13:50:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Work Related]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[String]]></category>

		<guid isPermaLink="false">http://stempell.com/?p=546</guid>
		<description><![CDATA[Codesnippets die man häufig braucht und jedes mal wieder neu erfindet: //1. Zeile löschen, evtl. wgen \n \rn aufpassen $input=substr($input,strpos($input,"\n")); //alles BIS auf 1. Zeile löschen, evtl. wgen \n \rn aufpassen $input = explode("\n", $input); $input = $input[0]; Jaja, ist Quick&#8217;N'Dirty. Manchmal will man das aber. Hoffe, dass es irgend jemandem hilft]]></description>
			<content:encoded><![CDATA[<p>Codesnippets die man häufig braucht und jedes mal wieder neu erfindet:</p>
<p><code><br />
//1. Zeile löschen, evtl. wgen \n \rn aufpassen<br />
$input=substr($input,strpos($input,"\n"));<br />
</code></p>
<p><code><br />
//alles BIS auf 1. Zeile löschen, evtl. wgen \n \rn aufpassen<br />
$input = explode("\n", $input);<br />
$input = $input[0];<br />
</code></p>
<p>Jaja, ist Quick&#8217;N'Dirty. Manchmal will man das aber. Hoffe, dass es irgend jemandem hilft <img src='http://stempell.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://stempell.com/2010/07/php-snippet-1-zeile-loschen-oder-alles-bis-auf-erste-zeile-loschen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Date für MySQL mit Zend</title>
		<link>http://stempell.com/2010/06/date-fur-mysql-mit-zend/</link>
		<comments>http://stempell.com/2010/06/date-fur-mysql-mit-zend/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 09:43:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Work Related]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Zend]]></category>

		<guid isPermaLink="false">http://stempell.com/?p=543</guid>
		<description><![CDATA[Die Frage, wie man Datetime Felder in der MySQL mit PHP befüllen kann, wird normalerweise so beantwortet $now = date(Y-m-d H:i:s) Doch stattdessen kann man im Zend-Framework auch folgendes machen: $date = new Zend_Date(); $now = $date-&#62;toString(&#8216;yyyy-MM-dd HH:mm:ss&#8217;); Allerdings habe ich den Vorteil noch nicht gefunden]]></description>
			<content:encoded><![CDATA[<p>Die Frage, wie man Datetime Felder in der MySQL mit PHP befüllen kann, wird normalerweise so beantwortet</p>
<p><code><code>$now = date(Y-m-d H:i:s)</code></code></p>
<p>Doch stattdessen kann man im Zend-Framework auch folgendes machen:</p>
<p>$date = new Zend_Date();<br />
$now = $date-&gt;toString(&#8216;yyyy-MM-dd HH:mm:ss&#8217;);</p>
<p>Allerdings habe ich den Vorteil noch nicht gefunden <img src='http://stempell.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://stempell.com/2010/06/date-fur-mysql-mit-zend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zeilenumbruch in vi löschen</title>
		<link>http://stempell.com/2010/04/zeilenumbruch-in-vi-loschen/</link>
		<comments>http://stempell.com/2010/04/zeilenumbruch-in-vi-loschen/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 12:05:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Work Related]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[vi]]></category>

		<guid isPermaLink="false">http://stempell.com/?p=539</guid>
		<description><![CDATA[Ha, wer hätte gedacht, dass es so einfach ist: J steht für Join und löscht nur den Zeilenumbruch (Ein großes J). aus Zeile1 Zeile2 Zeile3 wird nach 3 mal drücken der J-Taste Zeile1Zeile2Zeile3 Iggi]]></description>
			<content:encoded><![CDATA[<p>Ha, wer hätte gedacht, dass es so einfach ist:<br />
<code>J</code> steht für Join und löscht nur den Zeilenumbruch (Ein großes J).</p>
<p>aus<br />
<code>Zeile1<br />
Zeile2<br />
Zeile3</code></p>
<p><code><br />
</code>wird nach 3 mal drücken der J-Taste<br />
<code>Zeile1Zeile2Zeile3</code></p>
<p>Iggi</p>
]]></content:encoded>
			<wfw:commentRss>http://stempell.com/2010/04/zeilenumbruch-in-vi-loschen/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Wie Firefox mit weniger Speicher klarkommt</title>
		<link>http://stempell.com/2010/04/wie-firefox-mit-weniger-speicher-klarkommt/</link>
		<comments>http://stempell.com/2010/04/wie-firefox-mit-weniger-speicher-klarkommt/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 09:24:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Work Related]]></category>
		<category><![CDATA[Browsen]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://stempell.com/?p=533</guid>
		<description><![CDATA[Speicherhunger von Firefox beschränken]]></description>
			<content:encoded><![CDATA[<p>Die <a href="http://www.chip.de/artikel/Workshop-Firefox-Browser-mit-weniger-Systembelastung_19406392.html" target="_blank">Anleitung</a> klappt einfach mal. Wert anlegen und FF neustarten. Im Ergebnis 50% RAM gespart. Zurst mit <code>about:config</code> die Experteneinstellungen von Firefox öffnen und danach die boolsche Variable<code>config.trim_on_minimize</code> anlegen und auf den Wert <code>true</code> setzen.<br />
Das Resultat ist beachtlich.</p>
<p>Iggi</p>
]]></content:encoded>
			<wfw:commentRss>http://stempell.com/2010/04/wie-firefox-mit-weniger-speicher-klarkommt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL DATETIME from Bash date</title>
		<link>http://stempell.com/2009/10/mysql-datetime-from-bash-date/</link>
		<comments>http://stempell.com/2009/10/mysql-datetime-from-bash-date/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 09:04:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Work Related]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://stempell.com/?p=506</guid>
		<description><![CDATA[SELECT now( ) equals date +"%Y-%m-%d %H:%M:%S"]]></description>
			<content:encoded><![CDATA[<p>Just execute this:<br />
<code>$> date +"%Y-%m-%d %H:%M:%S"</code><br />
this will produce the same output as:<br />
<code> SELECT now( )</code> </p>
<p>Output: <code>2009-10-29 09:53:19</code></p>
]]></content:encoded>
			<wfw:commentRss>http://stempell.com/2009/10/mysql-datetime-from-bash-date/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PDF in JPG umwandeln</title>
		<link>http://stempell.com/2009/09/pdf-in-jpg-umwandeln/</link>
		<comments>http://stempell.com/2009/09/pdf-in-jpg-umwandeln/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 08:51:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Work Related]]></category>
		<category><![CDATA[imagemagick]]></category>
		<category><![CDATA[jpg]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[pdf]]></category>

		<guid isPermaLink="false">http://stempell.com/?p=476</guid>
		<description><![CDATA[PDF in JPG umwandeln mit imagemagick]]></description>
			<content:encoded><![CDATA[<p>Die Axt im Hause ersetz den Zimmermann!<br />
In diesem Fall sprechen wir von ImageMagick. Unter Debian installiert man es ganz einfach mit<br />
<code>apt-get install imagemagick</code><br />
die folgende Zeile erledigt dann die Konvertierung des PDFs in das JPG<br />
<code>convert -density 300 file.pdf file.jpg</code></p>
<p>Für den Parameter -density sind übliche Werte wie 72, 300, 600 ohne Problem verdaulich. </p>
]]></content:encoded>
			<wfw:commentRss>http://stempell.com/2009/09/pdf-in-jpg-umwandeln/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problems with vsftp and debian</title>
		<link>http://stempell.com/2009/09/problems-with-vsftp-and-debian/</link>
		<comments>http://stempell.com/2009/09/problems-with-vsftp-and-debian/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 15:40:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Work Related]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[vsftpd]]></category>

		<guid isPermaLink="false">http://stempell.com/?p=469</guid>
		<description><![CDATA[https://lists.ubuntu.com/archives/ubuntu-users/2006-October/096075.html ´After spending the whole day tweaking and experimenting with vsftpd I now have it setup as follows. Anonymous login, read only, with upload enabled in one directory. I have a list of local users that can login over SSL, and have read/write access to files in their jails. The problem is that some of [...]]]></description>
			<content:encoded><![CDATA[<p>https://lists.ubuntu.com/archives/ubuntu-users/2006-October/096075.html</p>
<p>´After spending the whole day tweaking and experimenting with vsftpd I<br />
now have it setup as follows. Anonymous login, read only, with upload<br />
enabled in one directory. I have a list of local users that can login<br />
over SSL, and have read/write access to files in their jails. The<br />
problem is that some of these users I want to be ftp-specific so they<br />
don&#8217;t need valid shells. However if any of the users has the<br />
shell /bin/false in the passwd file then when they try to login to the<br />
ftp is says LOGIN INVALID. Please, how can I go about allowing users to<br />
loging but without giving them valid shells?</p>
<p>A lot of experimenting revelaed vsftpd would only let users login that<br />
had a home directory of /home/$user and a shell, either /bin/bash<br />
or /bin/sh specified in /etc/passwd. I&#8217;m stumped. </p>
<p>On Friday 06 October 2006 19:53, Gabriel M Dragffy wrote:<br />
> This would seem to be a bit of a small discrepency, why can&#8217;t vsftpd<br />
> allow a user to login that has a shell of /bin/false? Pureftpd can, no<br />
> probs, hmm.</p>
<p>Sorry, I should have covered that.  You can add /bin/false instead<br />
of /sbin/nologin to the list of shells in /etc/shells.  We use<br />
/sbin/nologin for compatibility across our various Redhat, Fedora,<br />
Debian and Ubuntu systems.</p>
<p>&#8211;Mike Bird</p>
<p>From a nother Source<br />
Make sure you have </p>
<p>pam_service_name=vsftpd</p>
<p>in your /etc/vsftpd.conf</p>
]]></content:encoded>
			<wfw:commentRss>http://stempell.com/2009/09/problems-with-vsftp-and-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rechnen in BASH</title>
		<link>http://stempell.com/2009/08/rechnen-in-bash/</link>
		<comments>http://stempell.com/2009/08/rechnen-in-bash/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 14:13:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Work Related]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://stempell.com/?p=464</guid>
		<description><![CDATA[How to round with bash.
printf %.0f $TEMP]]></description>
			<content:encoded><![CDATA[<p>Wehe man hat bc nicht installiert! Dann nicht weiterlesen. Du kannst sehen, ob Du bc installiert hast:</p>
<p>ls -alh /usr/bin/bc</p>
<p>Wenn es vorhanden ist, dann kann man so wunderbare Funktionen wie sqrt benutzen. Allerdings ist wieder etwas rumprobieren erforderlich, da man bc  über echo füttert.</p>
<p><code>echo $(echo "$temp" | bc )</code></p>
<p>Das Echo in der Mitte übergibt $temp an bc. Das erste echo gibt den Inhalt der Klammer aus. Statt $temp kann da auch eine wilde Rechenoperation wie sqrt($temp) o.ä. drin stehen. Besonders wichtig:<br />
Das(bc) ist die einzige Möglichkeit Fließkommazahlen / Floatingpointnumbers in der bash zu benutzen! Und weil Floatingpointnumbers im normalen Leben einer Bash keine Rolle spielen, muss man die Nachkommastelle wieder entfernen. Wie runden in der bash funktioniert, hab ich noch nicht rausgefunden, aber truncate geht mit:</p>
<p><code>TEMP=$(echo "sqrt($TARGETSIZE/($ROWS/$COLUMNS))" | bc -l)<br />
NEWCOLUMNS=$(printf %.0f $TEMP)</code></p>
<p>Die zweite Zeile ist das Entfernend er Nachkommastelle.</p>
<p>UPDATE:<br />
Wer Mathe kann, ist klar im Vorteil. An dieser Stelle ein &#8220;Danke&#8221; an Johannes für diese verblüffend einfach Lösung.</p>
<p>x=ganzzahlanteil(a+0,5)</p>
<p>Bissel drüber nachdenken und es ergibt sich von selbst. Das klappt natürlich nach diesem System([a*10^nachkommastelle+0,5]/10^nachkommastelle) auch für beliebige Nachkommastellen, nicht nur für die Erste.</p>
<p>Die Umsetzung in ein bash script ist dann einfach gewesen:</p>
<p>bash Script:<br />
<code><br />
function round () {<br />
echo $(printf %.$2f $(echo "scale=$2;(((10^$2)*$1)+0.5)/(10^$2)" | bc))<br />
}</code></p>
<p>echo $(round 3.1234 2)<br />
echo $(round 3.1271 2)</p>
<p>Ausgabe<br />
<code><br />
3.12<br />
3.13<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://stempell.com/2009/08/rechnen-in-bash/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

