<?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>code(alpha)</title>
	<atom:link href="http://www.codealpha.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codealpha.net</link>
	<description>Tips &#38; Tutorials for Linux</description>
	<lastBuildDate>Fri, 29 Jan 2010 13:32:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Colored Man Pages</title>
		<link>http://www.codealpha.net/504/colored-man-pages/</link>
		<comments>http://www.codealpha.net/504/colored-man-pages/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 03:22:12 +0000</pubDate>
		<dc:creator>Arnaud Soyez</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://www.codealpha.net/?p=504</guid>
		<description><![CDATA[You certainly know that manpages tend to be very long and boring to read , especially without any colors at all.
You can easily get colored manpages with just one copy&#38;paste into your .bashrc!
Follow this link to Linuxtidbits' post about "Less Colors For Manpages" and you'll know how to make it happen!

© 2010, Arnaud Soyez. Texts [...]]]></description>
			<content:encoded><![CDATA[<p>You certainly know that manpages tend to be very long and boring to read , especially without any colors at all.</p>
<p>You can easily get colored manpages with just one copy&amp;paste into your .bashrc!</p>
<p>Follow this link to Linuxtidbits' post about "<strong><a href="http://linuxtidbits.wordpress.com/2009/03/23/less-colors-for-man-pages/">Less Colors For Manpages</a></strong>" and you'll know how to make it happen!</p>
<p><center><a href="http://www.codealpha.net/wp-content/uploads/2010/01/manpage.png"><img src="http://www.codealpha.net/wp-content/uploads/2010/01/manpage-300x184.png" alt="Colored Manpage" title="manpage" width="300" height="184" class="aligncenter size-medium wp-image-505" /></a></center></p>
<p style='text-align:left'>© 2010, <a href='http://www.codealpha.net'>Arnaud Soyez</a>. Texts and illustrations found in this post are under the preceding copyright, unless specified otherwise. </p>
<div class="acc_license"><a href="http://creativecommons.org/licenses/by-sa/3.0/"><img src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png" alt="by-sa" /></a></div><!--<rdf:RDF xmlns="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><Work rdf:about=""><license rdf:resource="http://creativecommons.org/licenses/by-sa/3.0/" /></Work><License rdf:about="http://creativecommons.org/licenses/by-sa/3.0/"><requires rdf:resource="http://creativecommons.org/ns#Attribution" /><permits rdf:resource="http://creativecommons.org/ns#Reproduction" /><permits rdf:resource="http://creativecommons.org/ns#Distribution" /><permits rdf:resource="http://creativecommons.org/ns#DerivativeWorks" /><requires rdf:resource="http://creativecommons.org/ns#ShareAlike" /><requires rdf:resource="http://creativecommons.org/ns#Notice" /></License></rdf:RDF>-->]]></content:encoded>
			<wfw:commentRss>http://www.codealpha.net/504/colored-man-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Script to capture a screenshot (with Chromium) (Command-line)</title>
		<link>http://www.codealpha.net/492/how-to-capture-a-screenshot-with-chromium-command-line/</link>
		<comments>http://www.codealpha.net/492/how-to-capture-a-screenshot-with-chromium-command-line/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 18:00:48 +0000</pubDate>
		<dc:creator>Arnaud Soyez</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[capture]]></category>
		<category><![CDATA[chromium]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[command-line]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[imagemagick]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[screenshot]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://www.codealpha.net/?p=492</guid>
		<description><![CDATA[Introduction
I wanted to take screenshots of about 15 Websites, but didn't want to install any plugins as I wouldn't use them often. I saw a lot of how-to's using import from Imagemagick but they capture the whole screen, not clearly what I was looking for.
Using chromium, xwininfo (from X) and import, I made this bash [...]]]></description>
			<content:encoded><![CDATA[<h2>Introduction</h2>
<p>I wanted to take screenshots of about 15 Websites, but didn't want to install any plugins as I wouldn't use them often. I saw a lot of how-to's using <strong>import</strong> from <strong><a href="http://www.imagemagick.org/">Imagemagick</a></strong> but they capture the whole screen, not clearly what I was looking for.</p>
<p>Using <strong>chromium</strong>, <strong>xwininfo</strong> (from X) and <strong>import</strong>, I made this bash script which captures only the webpage. <strong>See below for the Source code.</strong></p>
<h2>How it works</h2>
<p>Upon calling chromium-capture:</p>
<ul>
<li>it finds <strong>every running chromium browser</strong> using xwininfo,</li>
<li>gets the window's id of <strong>each browser's currently opened tab</strong> (because hidden tabs cannot be accessed using xwininfo/import)</li>
<li>takes a <strong>screenshot</strong> of each webpages using import and the windows' ids.</li>
<li><strong>saves</strong> the screenshot in the current directy as <strong>chromium-WINDOWID.png</strong> (with WINDOWID = id of the respective window)</li>
</ul>
<p>You get a screenshot of only the website. All of the arguments and options given to chromium-capture will be used as arguments and options when calling import.</p>
<p><span id="more-492"></span></p>
<h2>Usage Examples</h2>
<p>Every argument or option given to chromium-capture will be given to import when called with every capture.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#do a simple capture</span>
<span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>chromium-capture
&nbsp;
<span style="color: #666666; font-style: italic;">#capture and resize to a width of 300px</span>
<span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>chromium-capture <span style="color: #660033;">-resize</span> <span style="color: #000000;">300</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#capture and rotate the image 10degres</span>
<span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>chromium-capture <span style="color: #660033;">-rotate</span> <span style="color: #000000;">10</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#resize to a maximum width of 550px and reduce the number of colors to 16</span>
<span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>chromium-capture <span style="color: #660033;">-resize</span> <span style="color: #000000;">550</span> <span style="color: #660033;">-colors</span> <span style="color: #000000;">16</span></pre></div></div>

<h2>Source Code</h2>
<p><strong>This code is licensed under the <a rel="nofollow" href="http://www.gnu.org/licenses/gpl.txt">GPLv3</a>.</strong><br/><br />
You can download the <strong>source code from <a href="/files/chromium-capture-201001081150.tar.gz">here</a></strong> (<a href="/files/chromium-capture-201001081150.md5sum">md5</a>) or copy it from below.</p>
<h3>chromium-capture</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#    Version: 201001081150</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#    Copyright © 2010 Arnaud Soyez (contact me at codealpha.net)</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#    This program is free software: you can redistribute it and/or modify</span>
<span style="color: #666666; font-style: italic;">#    it under the terms of the GNU General Public License as published by</span>
<span style="color: #666666; font-style: italic;">#    the Free Software Foundation, either version 3 of the License, or</span>
<span style="color: #666666; font-style: italic;">#    (at your option) any later version.</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#    This program is distributed in the hope that it will be useful,</span>
<span style="color: #666666; font-style: italic;">#    but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<span style="color: #666666; font-style: italic;">#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<span style="color: #666666; font-style: italic;">#    GNU General Public License for more details.</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#    You should have received a copy of the GNU General Public License</span>
<span style="color: #666666; font-style: italic;">#    along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'`import` will be called with these args: '</span>$<span style="color: #000000; font-weight: bold;">@</span>
<span style="color: #7a0874; font-weight: bold;">echo</span>
&nbsp;
<span style="color: #007800;">CHROMIDS</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span>xwininfo <span style="color: #660033;">-root</span> -children\
 <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">' - Chromium&quot;: (&quot;chromium-browser&quot; &quot;Chromium-browser&quot;)'</span>\
 <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{ print $1 }'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> getViewableId <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">&#123;</span>
  <span style="color: #007800;">WINID</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span>xwininfo <span style="color: #660033;">-id</span> $<span style="color: #000000;">1</span> -children\
 <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">egrep</span> <span style="color: #660033;">-i</span> <span style="color: #ff0000;">'^ +0x[0-9A-F]+'</span>\
 <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">fgrep</span> <span style="color: #660033;">-v</span> <span style="color: #ff0000;">'1x1+'</span>\
 <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{ print $1 }'</span>\
 <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">xargs</span> <span style="color: #660033;">-n</span> <span style="color: #000000;">1</span> xwininfo -id\
 <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">egrep</span> <span style="color: #ff0000;">'(xwininfo|Map State)'</span>\
 <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'N;s/\
  Map//'</span>\
 <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> IsViewable\
 <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{ print $4 }'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$WINID</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">for</span> CHROMID <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #007800;">$CHROMIDS</span>; <span style="color: #000000; font-weight: bold;">do</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">'Capturing window id '</span><span style="color: #007800;">$CHROMID</span><span style="color: #ff0000;">' ...'</span>
  <span style="color: #007800;">FILENAME</span>=chromium-<span style="color: #007800;">$CHROMID</span>.png
  import <span style="color: #660033;">-window</span> $<span style="color: #7a0874; font-weight: bold;">&#40;</span> getViewableId <span style="color: #007800;">$CHROMID</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span> $<span style="color: #000000; font-weight: bold;">@</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$FILENAME</span>&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">' saved as '</span><span style="color: #007800;">$FILENAME</span>
<span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'Done'</span></pre></div></div>

<p style='text-align:left'>© 2010, <a href='http://www.codealpha.net'>Arnaud Soyez</a>. Texts and illustrations found in this post are under the preceding copyright, unless specified otherwise. </p>
<div class="acc_license"><a href="http://creativecommons.org/licenses/by-sa/3.0/"><img src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png" alt="by-sa" /></a></div><!--<rdf:RDF xmlns="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><Work rdf:about=""><license rdf:resource="http://creativecommons.org/licenses/by-sa/3.0/" /></Work><License rdf:about="http://creativecommons.org/licenses/by-sa/3.0/"><requires rdf:resource="http://creativecommons.org/ns#Attribution" /><permits rdf:resource="http://creativecommons.org/ns#Reproduction" /><permits rdf:resource="http://creativecommons.org/ns#Distribution" /><permits rdf:resource="http://creativecommons.org/ns#DerivativeWorks" /><requires rdf:resource="http://creativecommons.org/ns#ShareAlike" /><requires rdf:resource="http://creativecommons.org/ns#Notice" /></License></rdf:RDF>-->]]></content:encoded>
			<wfw:commentRss>http://www.codealpha.net/492/how-to-capture-a-screenshot-with-chromium-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Piwik Web Analytics - A very good open source alternative to Google Analytics</title>
		<link>http://www.codealpha.net/472/piwik-web-analytics-a-very-good-open-source-alternative-to-google-analytics/</link>
		<comments>http://www.codealpha.net/472/piwik-web-analytics-a-very-good-open-source-alternative-to-google-analytics/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 14:00:18 +0000</pubDate>
		<dc:creator>Arnaud Soyez</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[analytics]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Piwik]]></category>
		<category><![CDATA[stats]]></category>

		<guid isPermaLink="false">http://www.codealpha.net/?p=472</guid>
		<description><![CDATA[Piwik is an open source, licensed under GPL, web analytics tool that uses PHP and MySQL. Piwik aims to be an open source alternative to Google Analytics.

The installation process is very easy to follow. To collect information, you just need to add your site to your Piwik installation then add the given Javascript code before [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://piwik.org/" title="Piwik Official Website" target="_blank">Piwik</a> is an <strong>open source</strong>, licensed under GPL, <strong>web analytics tool</strong> that uses PHP and MySQL. Piwik aims to be an open source alternative to Google Analytics.</p>
<p><center><a href="http://piwik.org/" title="Piwik Official Website" target="_blank"><img alt="" src="http://piwik.org/blog/wp-content/uploads/2009/12/piwik-logo.png" border=0 width="173" height="73" /></a></center></p>
<p>The <a href="http://piwik.org/docs/installation/">installation process</a> is very easy to follow. To collect information, you just need to add your site to your Piwik installation then add the given Javascript code before the <code>&lt;/body&gt;</code> of the site and you're all set!</p>
<p>It gives interesting reports on your website visitors, your popular pages, the search engines keywords they used, the language they speak… and so much more.<br />
Because Piwik has been built on the top of APIs, all the data is available through <strong>simple to use APIs</strong>. All features in Piwik are built inside plugins: you can download new plugins, and easily build your own. The user interface is fully customizable and light speed.</p>
<p><center><a href="http://www.codealpha.net/wp-content/uploads/2009/12/piwik1.png"><img src="http://www.codealpha.net/wp-content/uploads/2009/12/piwik1-300x164.png" alt="" title="Piwik Screenshot" width="300" height="164" class="aligncenter size-medium wp-image-475" /></a></center></p>
<p>You can try out the <a href="http://piwik.org/demo/">Piwik online demo</a> which will show you all the features and see if you like it or not.</p>
<p>I think this is far better than Google Analytics in the sense that:</p>
<ul>
<li>You keep your data on your own server.</li>
<li>You can use the <strong>API</strong> to show stats on your websites.</li>
<li><strong>It's FREE</strong> both as in free speech and as in free beer.</li>
<li>If you know PHP, you can <strong>tweak it</strong> as you wish</li>
<li>You can host as many websites as you like! You can offer web stats to your friends and families!</li>
<li>It's been elected <a href="http://piwik.org/blog/2009/09/piwik-is-sourceforge-project-of-the-month/" target="_blank">SourceForge project of the month</a>!</li>
<li>...</li>
</ul>
<p style='text-align:left'>© 2009, <a href='http://www.codealpha.net'>Arnaud Soyez</a>. Texts and illustrations found in this post are under the preceding copyright, unless specified otherwise. </p>
<div class="acc_license"><a href="http://creativecommons.org/licenses/by-sa/3.0/"><img src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png" alt="by-sa" /></a></div><!--<rdf:RDF xmlns="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><Work rdf:about=""><license rdf:resource="http://creativecommons.org/licenses/by-sa/3.0/" /></Work><License rdf:about="http://creativecommons.org/licenses/by-sa/3.0/"><requires rdf:resource="http://creativecommons.org/ns#Attribution" /><permits rdf:resource="http://creativecommons.org/ns#Reproduction" /><permits rdf:resource="http://creativecommons.org/ns#Distribution" /><permits rdf:resource="http://creativecommons.org/ns#DerivativeWorks" /><requires rdf:resource="http://creativecommons.org/ns#ShareAlike" /><requires rdf:resource="http://creativecommons.org/ns#Notice" /></License></rdf:RDF>-->]]></content:encoded>
			<wfw:commentRss>http://www.codealpha.net/472/piwik-web-analytics-a-very-good-open-source-alternative-to-google-analytics/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to move F-spot pictures folder to another folder (version 0.6.1.5 or higher)</title>
		<link>http://www.codealpha.net/461/how-to-move-f-spot-pictures-to-another-folder-directory-database/</link>
		<comments>http://www.codealpha.net/461/how-to-move-f-spot-pictures-to-another-folder-directory-database/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 18:55:19 +0000</pubDate>
		<dc:creator>Arnaud Soyez</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[f-spot]]></category>
		<category><![CDATA[folder]]></category>
		<category><![CDATA[Karmic]]></category>
		<category><![CDATA[move]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[transfer]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.codealpha.net/?p=461</guid>
		<description><![CDATA[After my second hard disk started failing, I really thought about moving my +11000 pictures to my young main hard disk, BUT, also keep all my favorites, tags, comments in F-spot.

So here's how I did it:


Close F-spot and open a Terminal.
Make a backup copy of the F-spot database:

cp -a ~/.config/f-spot/photos.db ~/.config/f-spot/photos.db.backup


Open the database using the [...]]]></description>
			<content:encoded><![CDATA[<p>After my second hard disk started failing, I really thought about moving my +11000 pictures to my young main hard disk, <strong>BUT</strong>, also keep all my favorites, tags, comments in <strong>F-spot</strong>.</p>
<p><center><div id="attachment_462" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.codealpha.net/wp-content/uploads/2009/12/f-spot-1.png"><img src="http://www.codealpha.net/wp-content/uploads/2009/12/f-spot-1-300x245.png" alt="F-Spot" title="f-spot-1" width="300" height="245" class="size-medium wp-image-462" /></a><p class="wp-caption-text">F-Spot</p></div></center></p>
<p><strong>So here's how I did it:</strong><br />
<span id="more-461"></span></p>
<ul>
<li><strong>Close F-spot and open a Terminal.</strong></li>
<li>Make a <strong>backup copy</strong> of the F-spot database:<br/>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-a</span> ~<span style="color: #000000; font-weight: bold;">/</span>.config<span style="color: #000000; font-weight: bold;">/</span>f-spot<span style="color: #000000; font-weight: bold;">/</span>photos.db ~<span style="color: #000000; font-weight: bold;">/</span>.config<span style="color: #000000; font-weight: bold;">/</span>f-spot<span style="color: #000000; font-weight: bold;">/</span>photos.db.backup</pre></div></div>

</li>
<li>Open the database using the<strong> command-line sqlite3 tool</strong>:<br/>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">sqlite3 ~<span style="color: #000000; font-weight: bold;">/</span>.config<span style="color: #000000; font-weight: bold;">/</span>f-spot<span style="color: #000000; font-weight: bold;">/</span>photos.db</pre></div></div>

</li>
<li>Our old folder is <strong>"/some/old/folder"</strong> and the new folder will be <strong>"/shiny/new/folder"</strong> (<strong>make sure it doesn't already exist!</strong>), so we'll have to do this (replace with the folder names you want, at 6 spots total!):<br/>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">UPDATE</span> photo_versions <span style="color: #993333; font-weight: bold;">SET</span> base_uri<span style="color: #66cc66;">=</span><span style="color: #993333; font-weight: bold;">REPLACE</span><span style="color: #66cc66;">&#40;</span>base_uri<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'/some/old/folder/'</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'/shiny/new/folder/'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">WHERE</span> base_uri <span style="color: #993333; font-weight: bold;">LIKE</span> <span style="color: #ff0000;">'file:///some/old/folder/%'</span>;
<span style="color: #993333; font-weight: bold;">UPDATE</span> photos <span style="color: #993333; font-weight: bold;">SET</span> base_uri<span style="color: #66cc66;">=</span><span style="color: #993333; font-weight: bold;">REPLACE</span><span style="color: #66cc66;">&#40;</span>base_uri<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'/some/old/folder/'</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'/shiny/new/folder/'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">WHERE</span> base_uri <span style="color: #993333; font-weight: bold;">LIKE</span> <span style="color: #ff0000;">'file:///some/old/folder/%'</span>;</pre></div></div>

</li>
<li>Close the database:<br/>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">.quit</pre></div></div>

</li>
<li>Now <strong>mv</strong> your folder <strong>"/some/old/folder"</strong> to <strong>"/shiny/new/folder"</strong> (<strong>make sure it doesn't already exist!</strong>):<br/>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #ff0000;">&quot;/some/old/folder&quot;</span> <span style="color: #ff0000;">&quot;/shiny/new/folder&quot;</span></pre></div></div>

</li>
<li><strong><strong>Wait til everything is moved</strong>, and <strong>then open F-spot</strong>.</strong></li>
</ul>
<p style='text-align:left'>© 2009, <a href='http://www.codealpha.net'>Arnaud Soyez</a>. Texts and illustrations found in this post are under the preceding copyright, unless specified otherwise. </p>
<div class="acc_license"><a href="http://creativecommons.org/licenses/by-sa/3.0/"><img src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png" alt="by-sa" /></a></div><!--<rdf:RDF xmlns="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><Work rdf:about=""><license rdf:resource="http://creativecommons.org/licenses/by-sa/3.0/" /></Work><License rdf:about="http://creativecommons.org/licenses/by-sa/3.0/"><requires rdf:resource="http://creativecommons.org/ns#Attribution" /><permits rdf:resource="http://creativecommons.org/ns#Reproduction" /><permits rdf:resource="http://creativecommons.org/ns#Distribution" /><permits rdf:resource="http://creativecommons.org/ns#DerivativeWorks" /><requires rdf:resource="http://creativecommons.org/ns#ShareAlike" /><requires rdf:resource="http://creativecommons.org/ns#Notice" /></License></rdf:RDF>-->]]></content:encoded>
			<wfw:commentRss>http://www.codealpha.net/461/how-to-move-f-spot-pictures-to-another-folder-directory-database/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Easy Apache log statistics using Visitors</title>
		<link>http://www.codealpha.net/441/easy-apache-log-statistics-using-visitors/</link>
		<comments>http://www.codealpha.net/441/easy-apache-log-statistics-using-visitors/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 14:09:35 +0000</pubDate>
		<dc:creator>Arnaud Soyez</dc:creator>
				<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.codealpha.net/?p=441</guid>
		<description><![CDATA[There are many Apache log analyzers that you can now choose from, but it can be long or confusing to install most of them. I wanted to try and find a simple log analyzer that just does its work using cronjobs. Visitors seems to fit the needs!
We'll also use ip2host to resolve the IP addresses [...]]]></description>
			<content:encoded><![CDATA[<p>There are many <strong>Apache log analyzers</strong> that you can now choose from, but it can be long or confusing to install most of them. I wanted to try and find a simple log analyzer that just does its work using <strong>cronjobs</strong>. <strong><a href="http://www.hping.org/visitors/">Visitors</a></strong> seems to fit the needs!<br />
We'll also use <strong>ip2host</strong> to resolve the IP addresses into domain names.<br />
All of this will be <strong>run daily by a cronjob</strong>.</p>
<p><center><a href="http://www.codealpha.net/wp-content/uploads/2009/09/visitors-1.png"><img src="http://www.codealpha.net/wp-content/uploads/2009/09/visitors-1-300x298.png" alt="Screenshot of a report generated by Visitors" width="300" height="298" class="aligncenter size-medium wp-image-442" /></a><br/><small>Screenshot of a report generated by Visitors</small></center><br />
<span id="more-441"></span></p>
<h1>Requirements</h1>
<p>Here's what you need to keep going:</p>
<ul>
<li><strong>Visitors</strong>: <a target="_blank" href="http://www.hping.org/visitors/">homepage</a></li>
<li><strong>ip2host</strong>: (I couldn't find the homepage) it can be downloaded from <a href="http://ftp.debian.org/debian/pool/main/i/ip2host/ip2host_0.09.orig.tar.gz">here</a></li>
<li><strong>cron</strong>, <strong>apache logs</strong>, ... all the obvious!</li>
</ul>
<h1>Instructions</h1>
<p>First, we need to <strong>create a folder</strong> where to store the ip2host DNS cache file.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>cache<span style="color: #000000; font-weight: bold;">/</span>ip2host<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>Then open a new file <strong>/etc/cron.daily/visitors</strong> and you can put your own variant of the following code:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
&nbsp;
<span style="color: #007800;">MYIP</span>=<span style="color: #ff0000;">&quot;99.99.99.99&quot;</span> <span style="color: #666666; font-style: italic;"># i want to exclude my home ip from the logs</span>
<span style="color: #007800;">SERVERIP</span>=<span style="color: #ff0000;">&quot;222.222.222.222&quot;</span> <span style="color: #666666; font-style: italic;"># my server's ip</span>
<span style="color: #007800;">REPORTDIR</span>=<span style="color: #ff0000;">&quot;/var/www/webstats&quot;</span> <span style="color: #666666; font-style: italic;"># folder where to store reports, this folder must exist</span>
<span style="color: #007800;">ALOGDIR</span>=<span style="color: #ff0000;">&quot;/var/log/apache2&quot;</span> <span style="color: #666666; font-style: italic;"># folder containing the logs</span>
<span style="color: #007800;">VISITORS</span>=<span style="color: #ff0000;">&quot;/usr/bin/visitors -A --exclude wp-cron.php --exclude robots.txt&quot;</span> <span style="color: #666666; font-style: italic;"># i exclude some files from the reports</span>
<span style="color: #007800;">IP2H</span>=<span style="color: #ff0000;">&quot;ip2host --cache=/var/cache/ip2host/cache.db&quot;</span>
<span style="color: #007800;">GREPOPTIONS</span>=<span style="color: #ff0000;">&quot;-hv -e ^<span style="color: #007800;">$MYIP</span> -e ^<span style="color: #007800;">$SERVERIP</span>&quot;</span> <span style="color: #666666; font-style: italic;"># exclude my home ip and my server's ip from the logs</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># we create a tmp file that will hold the logs</span>
<span style="color: #007800;">TMPFILE</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">mktemp</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<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: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-f</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$TMPFILE</span>&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;">echo</span> <span style="color: #ff0000;">&quot;tmpfile doesn't exist.&quot;</span>
  <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># if you only have one site, or you want all the logs in a single report</span>
<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #007800;">$GREPOPTIONS</span> <span style="color: #007800;">$ALOGDIR</span><span style="color: #000000; font-weight: bold;">/</span>access<span style="color: #000000; font-weight: bold;">*</span>.log<span style="color: #7a0874; font-weight: bold;">&#123;</span>.1,<span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #007800;">$TMPFILE</span> <span style="color: #666666; font-style: italic;"># get all the logs into the tmpfile, notice the GREPOPTIONS variable.</span>
<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">$IP2H</span> <span style="color: #000000; font-weight: bold;">&lt;</span> <span style="color: #007800;">$TMPFILE</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #007800;">$VISITORS</span> <span style="color: #660033;">--trails</span> <span style="color: #660033;">--prefix</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.domain.com - <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #007800;">$REPORTDIR</span><span style="color: #000000; font-weight: bold;">/</span>stats.html  <span style="color: #666666; font-style: italic;"># resolve all the ips and generate the reports, note that &quot;--trails --prefix http://www.domain.com&quot; is optional it's only needed for generating trails stats</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># -OR-</span>
<span style="color: #666666; font-style: italic;"># if you have multiple vhosts/prefixes and want separate reports, you can use this:</span>
<span style="color: #666666; font-style: italic;"># replace all the &quot;www prefix1 prefix2 prefix3&quot; by your own prefixes (as in http://PREFIX.domain.com)</span>
<span style="color: #000000; font-weight: bold;">for</span> name <span style="color: #000000; font-weight: bold;">in</span> www prefix1 prefix2 prefix3; <span style="color: #000000; font-weight: bold;">do</span>
  <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #007800;">$GREPOPTIONS</span> <span style="color: #007800;">$ALOGDIR</span><span style="color: #000000; font-weight: bold;">/</span>access-<span style="color: #007800;">$name</span>.log<span style="color: #7a0874; font-weight: bold;">&#123;</span>.1,<span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #007800;">$TMPFILE</span>
  <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">$IP2H</span> <span style="color: #000000; font-weight: bold;">&lt;</span> <span style="color: #007800;">$TMPFILE</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #007800;">$VISITORS</span> <span style="color: #660033;">--trails</span> <span style="color: #660033;">--prefix</span> http:<span style="color: #000000; font-weight: bold;">//</span><span style="color: #007800;">$name</span>.domain.com - <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #007800;">$REPORTDIR</span><span style="color: #000000; font-weight: bold;">/</span>stats-<span style="color: #007800;">$name</span>.html
<span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> <span style="color: #007800;">$TMPFILE</span></pre></div></div>

<p>If you use <strong>logrotate or other tool to rotate your logfiles</strong>, this cron job will use the last two log files (access*.log and access*.log.1). This usually means you get<strong> statistics for the current week and the last week altogether</strong>. And it gets <strong>updated everyday</strong>.</p>
<p>The first run might take some time as the ip2host cache needs to be built, but then it's very quick.</p>
<p>By tweaking <strong>REPORTDIR</strong>, you can put your reports so you can <strong>access them from the internet</strong> like http://www.domain.com/webstats. Note that you might <strong>need to secure this folder</strong>, but this is left as an exercise! (hint: htpasswd!)</p>
<p style='text-align:left'>© 2009, <a href='http://www.codealpha.net'>Arnaud Soyez</a>. Texts and illustrations found in this post are under the preceding copyright, unless specified otherwise. </p>
<div class="acc_license"><a href="http://creativecommons.org/licenses/by-sa/3.0/"><img src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png" alt="by-sa" /></a></div><!--<rdf:RDF xmlns="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><Work rdf:about=""><license rdf:resource="http://creativecommons.org/licenses/by-sa/3.0/" /></Work><License rdf:about="http://creativecommons.org/licenses/by-sa/3.0/"><requires rdf:resource="http://creativecommons.org/ns#Attribution" /><permits rdf:resource="http://creativecommons.org/ns#Reproduction" /><permits rdf:resource="http://creativecommons.org/ns#Distribution" /><permits rdf:resource="http://creativecommons.org/ns#DerivativeWorks" /><requires rdf:resource="http://creativecommons.org/ns#ShareAlike" /><requires rdf:resource="http://creativecommons.org/ns#Notice" /></License></rdf:RDF>-->]]></content:encoded>
			<wfw:commentRss>http://www.codealpha.net/441/easy-apache-log-statistics-using-visitors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Electro Collection #1 - An electro-flow of music</title>
		<link>http://www.codealpha.net/406/electro-collection-1-an-electro-flow-of-music/</link>
		<comments>http://www.codealpha.net/406/electro-collection-1-an-electro-flow-of-music/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 17:44:25 +0000</pubDate>
		<dc:creator>Arnaud Soyez</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://www.codealpha.net/?p=406</guid>
		<description><![CDATA[
Here's a collection of electro/electronica songs (as mp3) I like and that are free and libre. I'll just call this collection "Electro Collection #1"!
I've picked these songs because they each contain a unique melody and they are easy to listen even for those who might think they don't like electro music. Really, listen to the [...]]]></description>
			<content:encoded><![CDATA[<p><center><img src="http://www.codealpha.net/wp-content/uploads/2009/09/225933635_260ce671ed_m_d.jpg" alt="speaker" title="speaker (by swishphotos, licensed under CC by-nc-sa, see post)" width="240" height="180" class="aligncenter size-full wp-image-422" /></center></p>
<p>Here's a collection of electro/electronica songs (as mp3) I like and that are <a target="_blank" href="http://en.wikipedia.org/wiki/Gratis_versus_Libre">free and <em>libre</em></a>. I'll just call this collection "Electro Collection #1"!</p>
<p>I've picked these songs because they each contain a unique melody and they are easy to listen even for those who might think they don't like electro music. Really, listen to the first three songs (though you should listen to them all) and see! I'm sure you'll find one that you like!<br />
They almost all have the same genres. Mostly, it is: Electro/Electronica, Dance, Experimental.</p>
<object type="application/x-shockwave-flash" data="http://www.codealpha.net/wp-content/plugins/mp3FP/player_mp3_multi.swf" width="400" height="110" id="mp3fp_1"><param name="movie" value="http://www.codealpha.net/wp-content/plugins/mp3FP/player_mp3_multi.swf" /><param name="wmode" value="transparent"/><param name="FlashVars" value="mp3=http://weboide.codealpha.net/music/Electro Collection 1/01 - Ambient Voyager.mp3|http://weboide.codealpha.net/music/Electro Collection 1/02 - Jolie Micro Girl.mp3|http://weboide.codealpha.net/music/Electro Collection 1/03 - Wankash.mp3|http://weboide.codealpha.net/music/Electro Collection 1/04 - Struttin'.mp3|http://weboide.codealpha.net/music/Electro Collection 1/05 - dub is dumb.mp3|http://weboide.codealpha.net/music/Electro Collection 1/06 - Chips dreams.mp3|http://weboide.codealpha.net/music/Electro Collection 1/07 - maska %26 goey.mp3|http://weboide.codealpha.net/music/Electro Collection 1/08 - dry martini.mp3|http://weboide.codealpha.net/music/Electro Collection 1/09 - Flocon.mp3|http://weboide.codealpha.net/music/Electro Collection 1/10 - Sun System.mp3|http://weboide.codealpha.net/music/Electro Collection 1/11 - The sun is coming.mp3|http://weboide.codealpha.net/music/Electro Collection 1/12 - Inside the light.mp3|http://weboide.codealpha.net/music/Electro Collection 1/13 - Plume.mp3|http://weboide.codealpha.net/music/Electro Collection 1/14 - don't be shad.mp3|http://weboide.codealpha.net/music/Electro Collection 1/15 - The Creature.mp3|http://weboide.codealpha.net/music/Electro Collection 1/16 - Emptiness.mp3|http://weboide.codealpha.net/music/Electro Collection 1/17 - Pour Toi.mp3|http://weboide.codealpha.net/music/Electro Collection 1/18 - m%2B.mp3|http://weboide.codealpha.net/music/Electro Collection 1/19 - Le nettoyeur.mp3&amp;title=01 - Ambient Voyager|02 - Jolie Micro Girl|03 - Wankash|04 - Struttin'|05 - dub is dumb|06 - Chips dreams|07 - maska %26 goey|08 - dry martini|09 - Flocon|10 - Sun System|11 - The sun is coming|12 - Inside the light|13 - Plume|14 - don't be shad|15 - The Creature|16 - Emptiness|17 - Pour Toi|18 - m%2B|19 - Le nettoyeur&amp;width=400&amp;height=110&amp;volume=100&amp;autoplay=0&amp;loop=0&amp;showvolume=0&amp;showslider=1&amp;showloading=autohide&amp;buttonwidth=25&amp;sliderwidth=15&amp;sliderheight=10&amp;volumewidth=30&amp;volumeheight=10&amp;loadingcolor=ffff00&amp;bgcolor1=7c7c7c&amp;bgcolor2=333333&amp;slidercolor1=cccccc&amp;slidercolor2=999999&amp;sliderovercolor=eeee00&amp;buttoncolor=ffffff&amp;buttonovercolor=ffff00&amp;textcolor=ffffff&amp;showlist=1&amp;playlistcolor=000000&amp;playlistalpha=&amp;currentmp3color=ffff00&amp;scrollbarcolor=ffffff&amp;scrollbarovercolor=ffff00&amp;showplaylistnumbers=0" /></object>
<p><strong>If I had to pick favorite ones</strong> among these, they would be (as <strong>unsorted</strong> list):<br />
02 - Jolie Micro Girl<br />
04 - Struttin<br />
05 - dub is dumb<br />
06 - Chips dreams<br />
11 - The sun is coming<br />
13 - Plume<br />
14 - don't be shad<br />
17 - Pour toi</p>
<p><em>Note that this is not an album. Each song in this collection has its own copyright, copyright holder(s), and license. The songs are in their entirety in unmodified form and are seperate and independent works in themselves. See below for copyrights/licenses.</em></p>
<h2>Download</h2>
<p>Tarball containing all the songs: <a href="http://weboide.codealpha.net/music/electro-collection-1.tar.gz">electro-collection-1.tar.gz</a> (~97Mb)<br />
Download each song separately from:<br />
HTTP: <a href="http://weboide.codealpha.net/music/Electro%20Collection%201/" target="_blank">Here</a><br />
FTP: <a href="ftp://anonymous@codealpha.net/Music/Electro%20Collection%201/" target="_blank">Here</a> or connect using a FTP client to <strong>codealpha.net</strong> on port <strong>21</strong> as <strong>anonymous</strong>.</p>
<h2>Licenses and Copyrights</h2>
<p>Licenses and copyrights are <a href="http://weboide.codealpha.net/music/Electro%20Collection%201/LICENSES">downloadable from here</a> and are also listed below:<br />
<span id="more-406"></span><br />
<strong>01 - Ambient Voyager.mp3</strong> by <strong>Zeropage</strong><br />
Copyright (C) 2006 Zeropage. Licensed to the public under <a href="http://creativecommons.org/licenses/by/3.0/" target="_blank" rel="nofollow">CC by</a> verify at <a href="http://www.jamendo.com/album/2843/" target="_blank" rel="nofollow">www.jamendo.com/album/2843/</a></p>
<p><strong>02 - Jolie Micro Girl.mp3</strong> by <strong>M.E.A</strong><br />
Copyright (C) 2006 M.E.A. Licensed to the public under <a href="http://creativecommons.org/licenses/by-nc-sa/2.5/" target="_blank" rel="nofollow">CC by-nc-sa</a> verify at <a href="http://www.jamendo.com/album/1098/" target="_blank" rel="nofollow">www.jamendo.com/album/1098/</a></p>
<p><strong>03 - Wankash.mp3</strong> by <strong>W. Elektro Projekt</strong><br />
Copyright (C) 2007 W. Elektro Projekt. Licensed to the public under <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" target="_blank" rel="nofollow">CC by-nc-sa</a> verify at <a href="http://www.jamendo.com/album/8300/" target="_blank" rel="nofollow">www.jamendo.com/album/8300/</a></p>
<p><strong>04 - Struttin'.mp3</strong> by <strong>Tryad</strong><br />
Copyright (C) 2006 Tryad. Licensed to the public under <a href="http://creativecommons.org/licenses/by-sa/2.5/" target="_blank" rel="nofollow">CC by-sa</a> verify at <a href="http://www.jamendo.com/album/3661/" target="_blank" rel="nofollow">www.jamendo.com/album/3661/</a><br />
'Struttin' Written and Performed by Tryad. Courtesy Tryad.org</p>
<p><strong>05 - dub is dumb.mp3</strong> by <strong>Kernem</strong><br />
Copyright (C) 2007 Kernem. Licensed to the public under <a href="http://creativecommons.org/licenses/by-nc-nd/2.5/" target="_blank" rel="nofollow">CC by-nc-nd</a> verify at <a href="http://www.jamendo.com/album/3977/" target="_blank" rel="nofollow">www.jamendo.com/album/3977/</a></p>
<p><strong>06 - Chips dreams.mp3</strong> by <strong>Florent Lelong</strong><br />
Copyright (C) 2008 Florent Lelong. Licensed to the public under <a href="http://creativecommons.org/licenses/by-sa/3.0/" target="_blank" rel="nofollow">CC by-sa</a> verify at <a href="http://www.jamendo.com/album/19211/" target="_blank" rel="nofollow">www.jamendo.com/album/19211/</a></p>
<p><strong>07 - maska &amp; goey.mp3</strong> by <strong>CIRC</strong><br />
Copyright (C) 2009 CIRC. Licensed to the public under <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" target="_blank" rel="nofollow">CC by-nc-sa</a> verify at <a href="http://www.jamendo.com/album/47735/" target="_blank" rel="nofollow">www.jamendo.com/album/47735/</a></p>
<p><strong>08 - dry martini.mp3</strong> by <strong>LEGO</strong><br />
Copyright (C) 2006 LEGO. Licensed to the public under <a href="http://creativecommons.org/licenses/by-nc-sa/2.5/" target="_blank" rel="nofollow">CC by-nc-sa</a> verify at <a href="http://www.jamendo.com/album/981/" target="_blank" rel="nofollow">www.jamendo.com/album/981/</a></p>
<p><strong>09 - Flocon.mp3</strong> by <strong>Silence</strong><br />
Copyright (C) 2005 Silence. Licensed to the public under <a href="http://artlibre.org/licence.php/lal.html" target="_blank" rel="nofollow">Licence Art Libre</a> verify at <a href="http://www.jamendo.com/album/395/" target="_blank" rel="nofollow">www.jamendo.com/album/395/</a></p>
<p><strong>10 - Sun System.mp3</strong> by <strong>eNoz</strong><br />
Copyright (C) 2007 eNoz. Licensed to the public under <a href="http://creativecommons.org/licenses/by-nc-sa/2.5/" target="_blank" rel="nofollow">CC by-nc-sa</a> verify at <a href="http://www.jamendo.com/album/4489/" target="_blank" rel="nofollow">www.jamendo.com/album/4489/</a></p>
<p><strong>11 - The sun is coming.mp3</strong> by <strong>Oursvince</strong><br />
Copyright (C) 2007 Oursvince. Licensed to the public under <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" target="_blank" rel="nofollow">CC by-nc-sa</a> verify at <a href="http://www.jamendo.com/album/8726/" target="_blank" rel="nofollow">www.jamendo.com/album/8726/</a></p>
<p><strong>12 - Inside the light.mp3</strong>:<br />
Artist(s): Musician Toy</strong><br />
Copyright (C) 2009 Musician Toy. Licensed to the public under <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" target="_blank" rel="nofollow">CC by-nc-sa</a> verify at <a href="http://www.jamendo.com/album/44123/" target="_blank" rel="nofollow">www.jamendo.com/album/44123/</a></p>
<p><strong>13 - Plume.mp3</strong> by <strong>Silence</strong><br />
Copyright (C) 2005 Silence. Licensed to the public under <a href="http://artlibre.org/licence.php/lal.html" target="_blank" rel="nofollow">Licence Art Libre</a> verify at <a href="http://www.jamendo.com/album/395/" target="_blank" rel="nofollow">www.jamendo.com/album/395/</a></p>
<p><strong>14 - don't be shad.mp3</strong> by <strong>CIRC</strong><br />
Copyright (C) 2007 CIRC. Licensed to the public under <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" target="_blank" rel="nofollow">CC by-nc-sa</a> verify at <a href="http://www.jamendo.com/album/6747/" target="_blank" rel="nofollow">www.jamendo.com/album/6747/</a></p>
<p><strong>15 - The Creature.mp3</strong> by <strong>Musician Toy</strong><br />
Copyright (C) 2009 Musician Toy. Licensed to the public under <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" target="_blank" rel="nofollow">CC by-nc-sa</a> verify at <a href="http://www.jamendo.com/album/44123/" target="_blank" rel="nofollow">www.jamendo.com/album/44123/</a></p>
<p><strong>16 - Emptiness.mp3:</strong> by <strong>Alexander Blu</strong><br />
Copyright (C) 2005 Alexander Blu. Licensed to the public under <a href="http://creativecommons.org/licenses/by-sa/3.0/" target="_blank" rel="nofollow">CC by-sa</a> verify at <a href="http://www.jamendo.com/album/149/" target="_blank" rel="nofollow">www.jamendo.com/album/149/</a></p>
<p><strong>17 - Pour Toi.mp3</strong> by <strong>Elecmutec</strong><br />
Copyright (C) 2007 Elecmutec. Licensed to the public under <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" target="_blank" rel="nofollow">CC by-nc-sa</a> verify at <a href="http://www.jamendo.com/album/8607/" target="_blank" rel="nofollow">www.jamendo.com/album/8607/</a></p>
<p><strong>18 - 短暫.mp3</strong> or <strong>18 - m+.mp3</strong> by <strong>eNoz</strong><br />
Copyright (C) 2007 eNoz. Licensed to the public under <a href="http://creativecommons.org/licenses/by-nc-nd/3.0/" target="_blank" rel="nofollow">CC by-nc-nd</a> verify at <a href="http://www.jamendo.com/album/5097/" target="_blank" rel="nofollow">www.jamendo.com/album/5097/</a></p>
<p><strong>19 - Le nettoyeur.mp3</strong> by <strong>Greg Baumont</strong><br />
Copyright (C) 2005 Greg Baumont. Licensed to the public under <a href="http://creativecommons.org/licenses/by-nc-nd/2.0/fr/" target="_blank" rel="nofollow">CC by-nc-nd</a> verify at <a href="http://www.jamendo.com/album/347/" target="_blank" rel="nofollow">www.jamendo.com/album/347/</a></p>
<p>The <strong>speaker picture</strong> by <strong>swishphotos</strong><br />
Copyright (C) 2006 swishphotos. Licensed to the public under <a href="http://creativecommons.org/licenses/by-nc-sa/2.0/deed.en" target="_blank" rel="nofollow">CC by-nc-sa</a> verify at <a href="http://www.flickr.com/photos/swishphotos/225933635/" target="_blank" rel="nofollow">flickr.com/photos/swishphotos/225933635/</a></p>
<p style='text-align:left'>© 2009, <a href='http://www.codealpha.net'>Arnaud Soyez</a>. Texts and illustrations found in this post are under the preceding copyright, unless specified otherwise. </p>
<div class="acc_license"><a href="http://creativecommons.org/licenses/by-sa/3.0/"><img src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png" alt="by-sa" /></a></div><!--<rdf:RDF xmlns="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><Work rdf:about=""><license rdf:resource="http://creativecommons.org/licenses/by-sa/3.0/" /></Work><License rdf:about="http://creativecommons.org/licenses/by-sa/3.0/"><requires rdf:resource="http://creativecommons.org/ns#Attribution" /><permits rdf:resource="http://creativecommons.org/ns#Reproduction" /><permits rdf:resource="http://creativecommons.org/ns#Distribution" /><permits rdf:resource="http://creativecommons.org/ns#DerivativeWorks" /><requires rdf:resource="http://creativecommons.org/ns#ShareAlike" /><requires rdf:resource="http://creativecommons.org/ns#Notice" /></License></rdf:RDF>-->]]></content:encoded>
			<wfw:commentRss>http://www.codealpha.net/406/electro-collection-1-an-electro-flow-of-music/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>[Ubuntu] Byobu: a very useful enhancement for GNU Screen</title>
		<link>http://www.codealpha.net/393/ubuntu-byobu-useful-enhancement-gnu-screen/</link>
		<comments>http://www.codealpha.net/393/ubuntu-byobu-useful-enhancement-gnu-screen/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 15:25:16 +0000</pubDate>
		<dc:creator>Arnaud Soyez</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://www.codealpha.net/?p=393</guid>
		<description><![CDATA[I'm now using Byobu (earlier known as screen-profiles, but changed to Byobu) everytime I ssh into one of my servers:

&#91;local&#93;$ ssh myserver
Last login: Thu Aug 13 11:03:58 2009 from ...
&#91;remote&#93;$ byobu -R


Byobu can be seen as a replacement for the "screen" command, though it is not really a replacement; It should be seen much like [...]]]></description>
			<content:encoded><![CDATA[<p>I'm now using Byobu (earlier known as screen-profiles, but changed to Byobu) everytime I ssh into one of my servers:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">ssh</span> myserver
Last <span style="color: #c20cb9; font-weight: bold;">login</span>: Thu Aug <span style="color: #000000;">13</span> <span style="color: #000000;">11</span>:03:<span style="color: #000000;">58</span> <span style="color: #000000;">2009</span> from ...
<span style="color: #7a0874; font-weight: bold;">&#91;</span>remote<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ byobu <span style="color: #660033;">-R</span></pre></div></div>

<p><a href="http://www.codealpha.net/wp-content/uploads/2009/08/byobu1.png"><img src="http://www.codealpha.net/wp-content/uploads/2009/08/byobu1-300x201.png" alt="byobu1" title="byobu1" width="300" height="201" class="aligncenter size-medium wp-image-398" /></a></p>
<p>Byobu can be seen as a replacement for the "<strong>screen</strong>" command, though it is not really a replacement; It should be seen much like an addon or a plugin. It can also be used locally without ssh (I just find it useful with ssh). It shows <strong>very useful information</strong> (about the computer where screen/byobu is running) and acts just like screen, same commands (though it adds some more keybindings). See screenshot above.<br />
<span id="more-393"></span><br />
Among all the features it offers (and you can add your own), there is:</p>
<ul>
<li>Screen windows list</li>
<li>Battery status</li>
<li>CPU count</li>
<li>CPU frequencies</li>
<li>Current date/time</li>
<li>Disk space</li>
<li>EC2 cost</li>
<li>Fan speed</li>
<li>hostname</li>
<li>IP Address</li>
<li>Load average</li>
<li>Mail count</li>
<li>Memory available/used</li>
<li>Network transfer speeds</li>
<li>Temperatures</li>
<li>Processes running (count)</li>
<li>Users logged-in (count)</li>
<li>Wifi quality</li>
<li>Updates available</li>
<li>...</li>
</ul>
<p>Byobu's description on its launchpad page :</p>
<p><strong><em>Byobu is a Japanese term for decorative, multi-panel screens that serve as folding room dividers. As an open source project, Byobu is an elegant enhancement of the otherwise functional, plain, practical GNU Screen. Byobu includes an enhanced profile and configuration utilities for the GNU screen window manager, such as toggle-able system status notifications.</em></strong></p>
<p>It's being developed by <a href="https://launchpad.net/~kirkland">Dustin Kirkland</a> (main developer) and by the byobu developers team (Dave Walker, Nick Barcet).</p>
<h2>Download</h2>
<p>You can install the team's ppa at: <a href="https://launchpad.net/~byobu/+archive/ppa">https://launchpad.net/~byobu/+archive/ppa</a> by adding this to your /etc/apt/sources.list file:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">deb http://ppa.launchpad.net/byobu/ppa/ubuntu YOUR_UBUNTU_VERSION_HERE main 
deb-src http://ppa.launchpad.net/byobu/ppa/ubuntu YOUR_UBUNTU_VERSION_HERE main</pre></div></div>

<p>And replace <strong>YOUR_UBUNTU_VERSION_HERE</strong> by either hardy, intrepid or jaunty.<br />
Add the PPA key and update your cache:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-key</span> adv <span style="color: #660033;">--recv-keys</span> <span style="color: #660033;">--keyserver</span> keyserver.ubuntu.com F430BBA5
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update</pre></div></div>

<p>And then type:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> byobu byobu-extras</pre></div></div>

<p>to install byobu and some extra stuff for byobu.</p>
<p>Type "<strong>byobu</strong>" to start a new byobu session, and type F9 to get to the menu.</p>
<p style='text-align:left'>© 2009, <a href='http://www.codealpha.net'>Arnaud Soyez</a>. Texts and illustrations found in this post are under the preceding copyright, unless specified otherwise. </p>
<div class="acc_license"><a href="http://creativecommons.org/licenses/by-sa/3.0/"><img src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png" alt="by-sa" /></a></div><!--<rdf:RDF xmlns="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><Work rdf:about=""><license rdf:resource="http://creativecommons.org/licenses/by-sa/3.0/" /></Work><License rdf:about="http://creativecommons.org/licenses/by-sa/3.0/"><requires rdf:resource="http://creativecommons.org/ns#Attribution" /><permits rdf:resource="http://creativecommons.org/ns#Reproduction" /><permits rdf:resource="http://creativecommons.org/ns#Distribution" /><permits rdf:resource="http://creativecommons.org/ns#DerivativeWorks" /><requires rdf:resource="http://creativecommons.org/ns#ShareAlike" /><requires rdf:resource="http://creativecommons.org/ns#Notice" /></License></rdf:RDF>-->]]></content:encoded>
			<wfw:commentRss>http://www.codealpha.net/393/ubuntu-byobu-useful-enhancement-gnu-screen/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>[ubuntu] Smasher 1.1.1 deb package for Jaunty</title>
		<link>http://www.codealpha.net/382/ubuntu-smasher-1-1-1-deb-package-jaunty/</link>
		<comments>http://www.codealpha.net/382/ubuntu-smasher-1-1-1-deb-package-jaunty/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 13:52:46 +0000</pubDate>
		<dc:creator>Arnaud Soyez</dc:creator>
				<category><![CDATA[.deb Packages]]></category>
		<category><![CDATA[deb]]></category>
		<category><![CDATA[Jaunty]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[Sound]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.codealpha.net/?p=382</guid>
		<description><![CDATA[Smasher is an easy to use and lightweight audio loop slicer for Linux and Windows. I decided I would give it a try and that I should package it for Ubuntu (see Download section below).
It might need a little time before you figure out how this thing works. First you need to understand the Patterns [...]]]></description>
			<content:encoded><![CDATA[<p><strong><a href="http://smasher.sourceforge.net/">Smasher</a></strong> is an easy to use and lightweight <strong>audio loop slicer</strong> for Linux and Windows. I decided I would give it a try and that I should package it for Ubuntu (see <strong>Download</strong> section below).</p>
<p>It might need a little time before you figure out how this thing works. First you need to understand the Patterns (upper-right part); Smasher divided the file you've given him into slices, and each slice gets a number and that's the numbers you see on the left. From there, you can select in which order to play the slices.<br />
Below the pattern area, there is the effects area, that's where you can apply an effect to each slice (first column for first slice being played). Then it is very easy to understand the rest of how it works.</p>
<p><strong>Important:</strong> Smasher doesn't seem to support (or struggles with) files that are relatively big. I suggest you stick with mp3's that are less than 1mb, or Wav files are less than 2 or 3mb. Otherwise you'll see your Ram memory go up and your computer will start freezing.</p>
<p>Here are some of the <strong>features</strong> it offers (from official website):</p>
<ul>
<li>slice loops in seconds</li>
<li>load MP3, WAV, FLAC and AIFF</li>
<li>save as WAV</li>
<li>resonant filters</li>
<li>effects</li>
<li>share presets online</li>
<li>sample packs</li>
<li>free and open source</li>
</ul>
<p><strong>Screenshots:</strong><br />
<a href="http://www.codealpha.net/wp-content/uploads/2009/08/smasher-1.png"><img class="aligncenter size-medium wp-image-383" title="smasher-1" src="http://www.codealpha.net/wp-content/uploads/2009/08/smasher-1-300x234.png" alt="smasher-1" width="300" height="234" /></a><br />
<span id="more-382"></span><br />
<a href="http://www.codealpha.net/wp-content/uploads/2009/08/smasher-2.png"><img class="aligncenter size-medium wp-image-384" title="smasher-2" src="http://www.codealpha.net/wp-content/uploads/2009/08/smasher-2-300x234.png" alt="smasher-2" width="300" height="234" /></a></p>
<h2>Download</h2>
<p>I packaged <strong>Smasher version 1.1.1</strong> for Ubuntu Jaunty Jackalope (9.04) and it can be downloaded from the <a href="https://launchpad.net/~codealpha/+archive/ppa">CodeAlpha PPA</a>:</p>
<ul>
<li>64bits processor: <a href="https://launchpad.net/~codealpha/+archive/ppa/+files/smasher_1.1.1-0ubuntu1~ppa1_amd64.deb">smasher_1.1.1-0ubuntu1~ppa1_amd64.deb</a> (4.2 MiB)</li>
<li>32bits processor: <a href="https://launchpad.net/~codealpha/+archive/ppa/+files/smasher_1.1.1-0ubuntu1~ppa1_i386.deb">smasher_1.1.1-0ubuntu1~ppa1_i386.deb</a> (4.2 MiB)</li>
<li>LPIA processor: <a href="https://launchpad.net/~codealpha/+archive/ppa/+files/smasher_1.1.1-0ubuntu1~ppa1_lpia.deb">smasher_1.1.1-0ubuntu1~ppa1_lpia.deb</a> (4.2 MiB)</li>
</ul>
<p style='text-align:left'>© 2009, <a href='http://www.codealpha.net'>Arnaud Soyez</a>. Texts and illustrations found in this post are under the preceding copyright, unless specified otherwise. </p>
<div class="acc_license"><a href="http://creativecommons.org/licenses/by-sa/3.0/"><img src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png" alt="by-sa" /></a></div><!--<rdf:RDF xmlns="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><Work rdf:about=""><license rdf:resource="http://creativecommons.org/licenses/by-sa/3.0/" /></Work><License rdf:about="http://creativecommons.org/licenses/by-sa/3.0/"><requires rdf:resource="http://creativecommons.org/ns#Attribution" /><permits rdf:resource="http://creativecommons.org/ns#Reproduction" /><permits rdf:resource="http://creativecommons.org/ns#Distribution" /><permits rdf:resource="http://creativecommons.org/ns#DerivativeWorks" /><requires rdf:resource="http://creativecommons.org/ns#ShareAlike" /><requires rdf:resource="http://creativecommons.org/ns#Notice" /></License></rdf:RDF>-->]]></content:encoded>
			<wfw:commentRss>http://www.codealpha.net/382/ubuntu-smasher-1-1-1-deb-package-jaunty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
