<?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>Focus the Web &#187; Coding</title>
	<atom:link href="http://www.focustheweb.com/category/coding/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.focustheweb.com</link>
	<description>Music, Web Design, Ideas</description>
	<lastBuildDate>Thu, 27 May 2010 07:53:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How do I make existing non-bare repository bare?</title>
		<link>http://www.focustheweb.com/2010/05/how-do-i-make-existing-non-bare-repository-bare/</link>
		<comments>http://www.focustheweb.com/2010/05/how-do-i-make-existing-non-bare-repository-bare/#comments</comments>
		<pubDate>Thu, 27 May 2010 07:48:32 +0000</pubDate>
		<dc:creator>Giovanni Cappellotto</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[bare]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[repository]]></category>

		<guid isPermaLink="false">http://www.focustheweb.com/?p=188</guid>
		<description><![CDATA[I started a git local repository, but how can I make this existing repository a bare repository?

ssh to remote server
git clone --bare -l &#60;path_to_repos&#62; &#60;new_dir&#62;
renamed old repository directory
renamed new repository dir to what old repository used to be

Source: https://git.wiki.kernel.org/index.php/GitFaq
]]></description>
			<content:encoded><![CDATA[<p>I started a git local repository, but how can I make this existing repository a bare repository?</p>
<ol>
<li>ssh to remote server</li>
<li><code>git clone --bare -l &lt;path_to_repos&gt; &lt;new_dir&gt;</code></li>
<li>renamed old repository directory</li>
<li>renamed new repository dir to what old repository used to be</li>
</ol>
<p>Source: <a href="https://git.wiki.kernel.org/index.php/GitFaq#How_do_I_make_existing_non-bare_repository_bare.3F">https://git.wiki.kernel.org/index.php/GitFaq</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.focustheweb.com/2010/05/how-do-i-make-existing-non-bare-repository-bare/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mp3 to png source code</title>
		<link>http://www.focustheweb.com/2010/04/mp3-to-png-source-code/</link>
		<comments>http://www.focustheweb.com/2010/04/mp3-to-png-source-code/#comments</comments>
		<pubDate>Sat, 17 Apr 2010 21:57:48 +0000</pubDate>
		<dc:creator>Giovanni Cappellotto</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[conversion]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[pcm]]></category>
		<category><![CDATA[png]]></category>
		<category><![CDATA[raw]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[sox]]></category>
		<category><![CDATA[wav]]></category>
		<category><![CDATA[waveform]]></category>

		<guid isPermaLink="false">http://www.focustheweb.com/?p=180</guid>
		<description><![CDATA[In a previous article I talked about a little rails project to convert mp3 audio files to their graphical representation (waveform) in png format. After few comments asking me to release the source code here it is, but before this I must thank rjp&#8217;s cdcover project from where I took some of the code showed [...]]]></description>
			<content:encoded><![CDATA[<p>In a previous article I talked about a little rails project to <em>convert mp3 audio files to their graphical representation</em> (waveform) in png format. After few comments asking me to release the source code here it is, but before this I must thank <strong>rjp&#8217;s cdcover project</strong> from where I took some of the code showed here.</p>
<p>If you plan to use this code as it is or in a modified version <em>please let me know</em> so maybe we can contribute to improve the code or just to keep in touch!</p>
<p><strong>Notes</strong></p>
<ul>
<li>the code is <strong>written in ruby</strong> programming language (great!), you can run it from command line with few modifications or use it as a library in your rails projects</li>
<li>to run this code you must install some dependent gems: <strong>RMagick</strong> (which also depends on <em>ImageMagick</em> libraries) and <strong>NArray</strong></li>
<li>to enable the conversion from mp3 audio encoding to raw audio format you must install <strong>SoX</strong> a command line utility described as <em>&#8220;the Swiss Army knife of sound processing programs&#8221;</em></li>
<li>I&#8217;ve embedded some content from sox man pages near the command execution to better explain how sox works</li>
</ul>
<p>You&#8217;ll find all <a href="#useful_links">useful links</a> at the bottom of this page.</p>
<p>If you find this code useful <strong>please donate!</strong><br />
<a href='http://www.pledgie.com/campaigns/10116'><img alt='Click here to lend your support to: Waveform and make a donation at www.pledgie.com !' src='http://www.pledgie.com/campaigns/10116.png?skin_name=chrome' border='0' /></a><br />
<span id="more-180"></span><br />
<script src="http://gist.github.com/369816.js"></script></p>
<p><strong id="useful_links">Useful links:</strong></p>
<ul>
<li>SoX &#8211; <a href="http://sox.sourceforge.net/">http://sox.sourceforge.net/</a></li>
<li>RMagick &#8211; <a href="http://rmagick.rubyforge.org/">http://rmagick.rubyforge.org/</a></li>
<li>ImageMagick &#8211; <a href="http://www.imagemagick.org/">http://www.imagemagick.org/</a></li>
<li>NArray &#8211; <a href="http://narray.rubyforge.org/">http://narray.rubyforge.org/</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.focustheweb.com/2010/04/mp3-to-png-source-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Select all Facebook friends</title>
		<link>http://www.focustheweb.com/2010/03/select-all-facebook-friends/</link>
		<comments>http://www.focustheweb.com/2010/03/select-all-facebook-friends/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 07:57:36 +0000</pubDate>
		<dc:creator>Giovanni Cappellotto</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[friends]]></category>
		<category><![CDATA[suggestions]]></category>
		<category><![CDATA[trick]]></category>

		<guid isPermaLink="false">http://www.focustheweb.com/?p=157</guid>
		<description><![CDATA[This little script helps you to select all your facebook friends (to share something or send page suggestions):

Using Firefox and Firebug open a facebook page, click &#8220;Suggest to friends&#8221;, a popup window with all your contacts will open.
Paste inside the console area the code above than click &#8220;run&#8221;, all your friends should be now selected!
Update:
There&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>This little script helps you to <strong>select all your facebook friends</strong> (to <em>share something</em> or send <em>page suggestions</em>):</p>
<p><script src="http://gist.github.com/368187.js?file=select_all_facebook_friends_1.js"></script></p>
<p>Using <strong>Firefox</strong> and <strong>Firebug</strong> open a facebook page, click &#8220;Suggest to friends&#8221;, a popup window with all your contacts will open.<br />
Paste inside the <em>console area</em> the code above than click &#8220;run&#8221;, all your friends should be now selected!</p>
<p><strong>Update</strong>:<br />
There&#8217;s an <em>easiest</em> way to run this code, just put it all in a row and prepend the keyword <samp>javascript:</samp> than paste the object code inside the address input field of the browser and press enter.</p>
<p>Copy and paste inside address bar:<br />
<script src="http://gist.github.com/368187.js?file=select_all_facebook_friends_2.js"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.focustheweb.com/2010/03/select-all-facebook-friends/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Silly question</title>
		<link>http://www.focustheweb.com/2009/10/silly-question/</link>
		<comments>http://www.focustheweb.com/2009/10/silly-question/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 09:50:22 +0000</pubDate>
		<dc:creator>Giovanni Cappellotto</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[question]]></category>
		<category><![CDATA[sources]]></category>

		<guid isPermaLink="false">http://www.focustheweb.com/?p=110</guid>
		<description><![CDATA[Talking about a new web project with Nicholas:
me: &#8220;Can i have access to project source files?&#8221;
Nicholas: &#8220;No we&#8217;ll give you two magnets to tweak the harddisk&#8230; (big laught)&#8221;
]]></description>
			<content:encoded><![CDATA[<p>Talking about a new web project with Nicholas:</p>
<p>me: <em>&#8220;Can i have access to project source files?&#8221;</em><br />
Nicholas: <em>&#8220;No we&#8217;ll give you two magnets to tweak the harddisk&#8230; (big laught)&#8221;</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.focustheweb.com/2009/10/silly-question/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
