<?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>Florent Thoumie &#187; Unix</title>
	<atom:link href="http://blog.xbsd.org/category/unix/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.xbsd.org</link>
	<description>Geek stuff follows</description>
	<lastBuildDate>Wed, 23 Mar 2011 12:22:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Quiet FAIL</title>
		<link>http://blog.xbsd.org/2011/03/23/quiet-fail</link>
		<comments>http://blog.xbsd.org/2011/03/23/quiet-fail#comments</comments>
		<pubDate>Wed, 23 Mar 2011 12:01:02 +0000</pubDate>
		<dc:creator>Florent Thoumie</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[fail]]></category>
		<category><![CDATA[quiet]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://blog.xbsd.org/?p=351</guid>
		<description><![CDATA[Here&#8217;s me thinking &#8220;quiet&#8221; means &#8220;just tell me what I want to know&#8221;: dev1578 ~ % yumdownloader -q&#8212;urls&#8212;source tmux Loading &#8220;fastestmirror&#8221; plugin Loading mirror speeds from cached hostfile epel: yum.any common: yum.any base: yum.any site-packages: yum.any updates: yum.any addons: yum.any &#8230;<p class="read-more"><a href="http://blog.xbsd.org/2011/03/23/quiet-fail">Read more &#187;</a></p>
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[	<p>Here&#8217;s me thinking &#8220;quiet&#8221; means &#8220;just tell me what I want to know&#8221;:</p>

	<p><blockquote><br />
dev1578 ~ % yumdownloader -q&#8212;urls&#8212;source tmux<br />
Loading &#8220;fastestmirror&#8221; plugin<br />
Loading mirror speeds from cached hostfile</p>
	<ul>
		<li>epel: yum.any</li>
		<li>common: yum.any</li>
		<li>base: yum.any</li>
		<li>site-packages: yum.any</li>
		<li>updates: yum.any</li>
		<li>addons: yum.any</li>
		<li>extras: yum.any<br />
Enabling site-packages-source repository<br />
No source <span class="caps">RPM</span> found for tmux &#8211; 1.2-1.x86_64<br />
http://yum.any/yum/centos/5_1/site-packages/SRPMS/tmux-1.2-2.src.rpm<br />
</blockquote></li>
	</ul>


 <p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.xbsd.org/2011/03/23/quiet-fail/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hacking youtube videos for iPhun (and profit)</title>
		<link>http://blog.xbsd.org/2009/05/07/hacking-youtube-videos-for-iphun-and-profit</link>
		<comments>http://blog.xbsd.org/2009/05/07/hacking-youtube-videos-for-iphun-and-profit#comments</comments>
		<pubDate>Thu, 07 May 2009 10:24:06 +0000</pubDate>
		<dc:creator>Florent Thoumie</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Iphone]]></category>
		<category><![CDATA[MacOS X]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[ringtones]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://blog.xbsd.org/?p=213</guid>
		<description><![CDATA[If you&#8217;re not an iPhone owner, then you&#8217;re probably not going to be interested by this post. If you don&#8217;t like custom ringtones then you&#8217;re definitely not going to be interested by this post. If you&#8217;re still reading, I&#8217;ll explain &#8230;<p class="read-more"><a href="http://blog.xbsd.org/2009/05/07/hacking-youtube-videos-for-iphun-and-profit">Read more &#187;</a></p>
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[	<p>If you&#8217;re not an iPhone owner, then you&#8217;re probably not going to be interested by this post. If you don&#8217;t like custom ringtones then you&#8217;re definitely not going to be interested by this post. If you&#8217;re still reading, I&#8217;ll explain you quickly how to convert <a href="http://www.youtube.com/">youtube</a> videos to iphone ringtones.</p>

	<p>This is basically going to be a quick walkthrough rather than a long explanation. Basically you need a way to download the youtube video (like <a href="http://bitbucket.org/rg3/youtube-dl/wiki/Home">youtube-dl</a>) and <a href="http://www.ffmpeg.org/">ffmpeg</a> compiled with faac support.</p>

	<p>For FreeBSD users, this is as simple as installing the two ports: net/youtube_dl and multimedia/ffmpeg (make sure to run &#8216;make config&#8217; and check that <span class="caps">FAAC</span> is on). For MacOS X users, the easiest way will be to download youtube-dl to your home directory (and put it in /usr/local/bin if you wish) and install ffmpeg following <a href="http://www.macosxhints.com/article.php?story=20061220082125312">these</a> instructions. Windows users can install <a href="http://www.iringer.net/" class="broken_link">iRinger</a> (haven&#8217;t tried it but it looks quite nifty).</p>

	<p>Ok, now for the actual information (this is actually pretty easy).</p>

	<p>First, find a video you like (in my case, <a href="http://www.youtube.com/watch?v=2WNrx2jq184">Bird is the word in Family Guy</a>) and download it.</p>

	<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/2WNrx2jq184&#38;hl=en&#38;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/2WNrx2jq184&#38;hl=en&#38;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>

<pre>
$ youtube-dl 'http://www.youtube.com/watch?v=2WNrx2jq184'
</pre>

	<p>Then drop the video part and convert the <span class="caps">MPEG</span> stream to <span class="caps">AAC</span>.</p>

<pre>
$ ffmpeg -i 2WNrx2jq184.flv -f ipod -vn birdistheword.m4r
</pre>

	<p>Alright, that&#8217;s it! Wait, I want to get rid of the first few seconds and the last few seconds as well. Let&#8217;s just play it in mplayer (or QuickTime, or iTunes) and find the offset (-ss option) then the length (-t option). The -y option is to force overwrite the output file.</p>

<pre>
$ ffmpeg -i 2WNrx2jq184.flv -f ipod -vn -ss 28.6 -t 44.2 -y birdistheword.m4r
</pre>

	<p>Once this is finished, just send the ringtone to the iPhone, either using scp if your iphone is jailbroken (put it in /Library/Ringtones/) or via iTunes (just drag and drop it in Ringtones, then sync the iPhone). Enjoy!</p>
 <p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.xbsd.org/2009/05/07/hacking-youtube-videos-for-iphun-and-profit/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Permanent TSB Open24 Online Banking</title>
		<link>http://blog.xbsd.org/2006/09/21/permanent-tsb-open24-online-banking</link>
		<comments>http://blog.xbsd.org/2006/09/21/permanent-tsb-open24-online-banking#comments</comments>
		<pubDate>Thu, 21 Sep 2006 15:04:29 +0000</pubDate>
		<dc:creator>Florent Thoumie</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://blog.xbsd.org/2006/09/21/permanent-tsb-open24-online-banking/</guid>
		<description><![CDATA[I really hate perl, really, but sometimes it really does its job well. So today, for the first time, I&#8217;ve used WWW:Mechanize (www/p5-WWW-Mechanize) and I&#8217;ve created a simple script to check my irish bank account on Permanent TSB Open24 Online &#8230;<p class="read-more"><a href="http://blog.xbsd.org/2006/09/21/permanent-tsb-open24-online-banking">Read more &#187;</a></p>
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[	<p>I really hate perl, <strong>really</strong>, but sometimes it really does its job well.</p>

	<p>So today, for the first time, I&#8217;ve used <span class="caps">WWW</span>:Mechanize (<a href="http://www.freshports.org/www/p5-WWW-Mechanize" title="">www/p5-WWW-Mechanize</a>) and I&#8217;ve created a simple script to check my irish bank account on <a href="http://www.open24.ie/" title="">Permanent <span class="caps">TSB </span>Open24 Online Banking</a>.</p>

	<p><a href="http://blog.xbsd.org/wp-content/uploads/scripts/open24.pl.txt" title="">Here</a> is the result. It&#8217;s far from perfect, and the code is ugly but it does the trick. if I find some motivation another day, I&#8217;ll probably add new features besides accounts summary.</p>

	<p><strong><span class="caps">EDIT</span>:</strong> link was broken, it&#8217;s fixed now.</p>
 <p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.xbsd.org/2006/09/21/permanent-tsb-open24-online-banking/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Vim and TextMate</title>
		<link>http://blog.xbsd.org/2005/10/27/vim-and-textmate</link>
		<comments>http://blog.xbsd.org/2005/10/27/vim-and-textmate#comments</comments>
		<pubDate>Thu, 27 Oct 2005 12:59:12 +0000</pubDate>
		<dc:creator>Florent Thoumie</dc:creator>
				<category><![CDATA[MacOS X]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://blog.xbsd.org/?p=30</guid>
		<description><![CDATA[Yesterday while cleaning my hard drive, I found the 20MinutesWiki video that presents TurboGears I downloaded some days ago and watched it. It&#8217;s quite impressive but what I seen besides technical stuff was the editor Kevin Dangoor (the presenter) was &#8230;<p class="read-more"><a href="http://blog.xbsd.org/2005/10/27/vim-and-textmate">Read more &#187;</a></p>
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[	<p>Yesterday while cleaning my hard drive, I found the <a href="http://www.turbogears.org/docs/wiki20/20MinuteWiki.mov" title="">20MinutesWiki</a> video that presents <a href="http://www.turbogears.org/" title="">TurboGears</a> I downloaded some days ago and watched it. It&#8217;s quite impressive but what I seen besides technical stuff was the editor Kevin Dangoor (the presenter) was using : <a href="http://macromates.com/" title="">TextMate</a>. It had some completion features that seemed quite nice. So, as a vim user, I decided to look if someone already wrote such a plugin and finally found <a href="http://www.vim.org/scripts/script.php?script_id=1318" title="">it</a>!</p>

	<p>As an example, you can add this to your ~/.vim/ftplugin/c.vim (you need to change delimiter to &#8216;?&#8217;) :</p>

<pre><code>
Iabbr inc #include "?file?.h"^M??
</code></pre>

	<p>There are some issues though, the most important being it breaks the indentation (well, you can still use Ctrl-F).</p>
 <p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.xbsd.org/2005/10/27/vim-and-textmate/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

