<?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>Luca's forge &#187; Tips</title>
	<atom:link href="http://lucasforge.2bopen.org/category/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://lucasforge.2bopen.org</link>
	<description>Experiments from the land of open source</description>
	<lastBuildDate>Tue, 20 Jul 2010 15:24:36 +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>Caching dynamic contents using Nginx as reverse proxy cache server</title>
		<link>http://lucasforge.2bopen.org/2009/09/caching-dynamic-content-using-nginx/</link>
		<comments>http://lucasforge.2bopen.org/2009/09/caching-dynamic-content-using-nginx/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 12:26:04 +0000</pubDate>
		<dc:creator>Luca Corbo</dc:creator>
				<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[dynamic]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[reverse proxy]]></category>
		<category><![CDATA[static]]></category>

		<guid isPermaLink="false">http://lucasforge.2bopen.org/?p=83</guid>
		<description><![CDATA[If you need a static version of your dynamic web application maybe you may interested to configure Nginx as reverse proxy cache so it can cache also dynamic contents (pages with ? in the URI).

Well, if this is your scenario, let's go to configure Nginx.]]></description>
			<content:encoded><![CDATA[<p>If you need a static version of your dynamic web application maybe you may interested to configure Nginx as reverse proxy cache so it can cache also dynamic contents (pages with ? in the URI).</p>
<p>Well, if this is your scenario, let&#8217;s go to configure Nginx.</p>
]]></content:encoded>
			<wfw:commentRss>http://lucasforge.2bopen.org/2009/09/caching-dynamic-content-using-nginx/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>lighttpd + mod_cache on debian lenny</title>
		<link>http://lucasforge.2bopen.org/2009/03/lighttpd-mod_cache-on-debian-lenny/</link>
		<comments>http://lucasforge.2bopen.org/2009/03/lighttpd-mod_cache-on-debian-lenny/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 16:38:27 +0000</pubDate>
		<dc:creator>Luca Corbo</dc:creator>
				<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://lucasforge.2bopen.org/?p=20</guid>
		<description><![CDATA[~# mkdir ~/tmp &#38;&#38; cd ~/tmp ~# apt-get install dpkg-dev ~# apt-get source lighttpd ~# apt-get build-dep lighttpd ~# wget http://www.linux.com.cn/modcache/lighttpd-1.4.19.modcache.v.1.6.0.patch ~# cd lighttpd-1.4.19 ~# patch -p0 &#60; ../lighttpd-1.4.19.modcache.v.1.6.0.patch ~# echo debian/tmp/usr/lib/lighttpd/mod_cache.so &#62; debian/lighttpd.install ~# dpkg-buildpackage -uc -b ~# ls -l ../*.deb Install the debian packages with dpkg and enjoy Reference Links: - APT HOWTO [...]]]></description>
			<content:encoded><![CDATA[<pre class="brush: bash">
~# mkdir ~/tmp &amp;&amp; cd ~/tmp
~# apt-get install dpkg-dev
~# apt-get source lighttpd
~# apt-get build-dep lighttpd
~# wget http://www.linux.com.cn/modcache/lighttpd-1.4.19.modcache.v.1.6.0.patch
~# cd lighttpd-1.4.19
~# patch -p0 &lt; ../lighttpd-1.4.19.modcache.v.1.6.0.patch
~# echo debian/tmp/usr/lib/lighttpd/mod_cache.so &gt; debian/lighttpd.install
~# dpkg-buildpackage  -uc -b
~# ls -l ../*.deb
</pre>
<p>Install the debian packages with dpkg and enjoy <img src='http://lucasforge.2bopen.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Reference Links:<br />
- <a href="http://www.debian.org/doc/manuals/apt-howto/ch-sourcehandling.en.html">APT HOWTO &#8211; Working with source packages</a></p>
]]></content:encoded>
			<wfw:commentRss>http://lucasforge.2bopen.org/2009/03/lighttpd-mod_cache-on-debian-lenny/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to print the next line after a matching regexp with sed</title>
		<link>http://lucasforge.2bopen.org/2009/02/how-to-print-the-next-line-after-a-matching-regexp-with-sed/</link>
		<comments>http://lucasforge.2bopen.org/2009/02/how-to-print-the-next-line-after-a-matching-regexp-with-sed/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 11:35:51 +0000</pubDate>
		<dc:creator>Luca Corbo</dc:creator>
				<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[sed]]></category>

		<guid isPermaLink="false">http://lucasforge.2bopen.net/?p=14</guid>
		<description><![CDATA[~ $ cat example.txt first line second line third line another line ~ $ sed -n &#8216;/second/{n;p;}&#8217; &#60; example.txt third line ~ $ sed -n &#8216;/second/{n;p;n;p;}&#8217; &#60; example.txt third line another line]]></description>
			<content:encoded><![CDATA[<p>~ $ cat example.txt<br />
first line<br />
second line<br />
third line<br />
another line</p>
<p>~ $ sed -n &#8216;/second/{n;p;}&#8217; &lt; example.txt<br />
third line</p>
<p>~ $ sed -n &#8216;/second/{n;p;n;p;}&#8217; &lt; example.txt<br />
third line<br />
another line</p>
]]></content:encoded>
			<wfw:commentRss>http://lucasforge.2bopen.org/2009/02/how-to-print-the-next-line-after-a-matching-regexp-with-sed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enabling fingerprint scanner on ThinkPad running Ubuntu Hardy in four steps</title>
		<link>http://lucasforge.2bopen.org/2008/06/enabling-fingerprint-scanner-on-thinkpad-running-ubuntu-hardy-in-four-steps/</link>
		<comments>http://lucasforge.2bopen.org/2008/06/enabling-fingerprint-scanner-on-thinkpad-running-ubuntu-hardy-in-four-steps/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 22:42:54 +0000</pubDate>
		<dc:creator>Luca Corbo</dc:creator>
				<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[fingerprint]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://lucasforge.2bopen.org/?p=9</guid>
		<description><![CDATA[Install the ThinkFinger utilities and the relative PAM module: ~$ sudo apt-get install thinkfinger-tools libpam-thinkfinger Acquire and test your fingerprint: ~$ sudo tf-tool --acquire ~$ sudo tf-tool --verify Enable the PAM module: ~$ sudo /usr/lib/pam-thinkfinger/pam-thinkfinger-enable Enjoy Resources - wiki.ubuntu.com/ThinkFinger - Bug #203973 in thinkfinger (Ubuntu)]]></description>
			<content:encoded><![CDATA[<p>Install the ThinkFinger utilities and the relative PAM module:</p>
<pre>
~$ sudo apt-get install thinkfinger-tools libpam-thinkfinger
</pre>
<p>Acquire and test your fingerprint:</p>
<pre>
~$ sudo tf-tool --acquire
~$ sudo tf-tool --verify
</pre>
<p>Enable the PAM module:</p>
<pre>
~$ sudo /usr/lib/pam-thinkfinger/pam-thinkfinger-enable
</pre>
<p>Enjoy <img src='http://lucasforge.2bopen.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Resources<br />
- <a href="https://wiki.ubuntu.com/ThinkFinger">wiki.ubuntu.com/ThinkFinger</a><br />
- <a href="https://bugs.launchpad.net/ubuntu/+source/thinkfinger/+bug/203973">Bug #203973 in thinkfinger (Ubuntu)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://lucasforge.2bopen.org/2008/06/enabling-fingerprint-scanner-on-thinkpad-running-ubuntu-hardy-in-four-steps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Execute commands on folder and files containing spaces</title>
		<link>http://lucasforge.2bopen.org/2008/05/execute-commands-on-folder-and-files-containing-spaces/</link>
		<comments>http://lucasforge.2bopen.org/2008/05/execute-commands-on-folder-and-files-containing-spaces/#comments</comments>
		<pubDate>Thu, 08 May 2008 10:06:40 +0000</pubDate>
		<dc:creator>Luca Corbo</dc:creator>
				<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://lucasforge.2bopen.org/?p=4</guid>
		<description><![CDATA[On Linux or Unix systems perform recursively a command on items might contain white space, quote marks, or backslashes can be a problem when using find &#124; xargs combination. To solve this you may use: find -type d -print0 &#124; xargs -0 &#60;command&#62; find -type f -print0 &#124; xargs -0 &#60;command&#62; For example to fix [...]]]></description>
			<content:encoded><![CDATA[<p>On Linux or Unix systems perform recursively a command on items might contain white space, quote marks, or backslashes can be a problem when using <em>find | xargs</em> combination.</p>
<p>To solve this you may use:</p>
<pre>find -type d -print0 | xargs -0 &lt;command&gt;
find -type f -print0 | xargs -0 &lt;command&gt;</pre>
<p>For example to fix recursively permission:</p>
<pre>find -type d -print0 | xargs -0 chmod 755
find -type f -print0 | xargs -0 chmod 644</pre>
]]></content:encoded>
			<wfw:commentRss>http://lucasforge.2bopen.org/2008/05/execute-commands-on-folder-and-files-containing-spaces/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
