extras: yum.any
Enabling site-packages-source repository
No source RPM found for tmux – 1.2-1.x86_64
http://yum.any/yum/centos/5_1/site-packages/SRPMS/tmux-1.2-2.src.rpm
Posted by Florent Thoumie on May 7, 2009 2 comments
If you’re not an iPhone owner, then you’re probably not going to be interested by this post. If you don’t like custom ringtones then you’re definitely not going to be interested by this post. If you’re still reading, I’ll explain you quickly how to convert youtube videos to iphone ringtones.
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 youtube-dl) and ffmpeg compiled with faac support.
For FreeBSD users, this is as simple as installing the two ports: net/youtube_dl and multimedia/ffmpeg (make sure to run ‘make config’ and check that FAAC 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 these instructions. Windows users can install iRinger (haven’t tried it but it looks quite nifty).
Ok, now for the actual information (this is actually pretty easy).
Alright, that’s it! Wait, I want to get rid of the first few seconds and the last few seconds as well. Let’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.
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!
Here is the result. It’s far from perfect, and the code is ugly but it does the trick. if I find some motivation another day, I’ll probably add new features besides accounts summary.
Posted by Florent Thoumie on October 27, 2005 3 comments
Yesterday while cleaning my hard drive, I found the 20MinutesWiki video that presents TurboGears I downloaded some days ago and watched it. It’s quite impressive but what I seen besides technical stuff was the editor Kevin Dangoor (the presenter) was using : TextMate. 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 it!
As an example, you can add this to your ~/.vim/ftplugin/c.vim (you need to change delimiter to ‘?’) :
Iabbr inc #include "?file?.h"^M??
There are some issues though, the most important being it breaks the indentation (well, you can still use Ctrl-F).
Recent Comments