Thursday Night

Paul Betts’s personal website / blog / what-have-you

Yikes! for nerds: how to get the code

2 comments

I ran out of time yesterday, but as promised, here’s how to build and run Yikes!

Quick Start

git clone git://github.com/xpaulbettsx/yikes.git
cd yikes
rake && rake ffmpeg
ruby lib/main.rb -l /path/to/videos -t /path/to/ipod/output -r 1800 -b

Getting the code

By far, the best way to get the code is via Git; this lets you view the entire commit history, as well as send me changes. If you don’t have Git, you can download precompiled source code trees for Linux or Mac OS X 10.5. The Git clone URL via Github is git://github.com/xpaulbettsx/yikes.git

Building (”Huh? Building? On Ruby?”)

(If you downloaded the precompiled version, skip this part!) Even though the application is in Ruby, we need to build ffmpeg and its associated libraries from source, so you need to have the XCode tools installed, and you probably need MacPorts as well. While building this takes forever, it’s fairly easy:

rake && rake ffmpeg

Running the app

Right now, you have to run Yikes! from the command line, but the syntax is pretty easy. Here’s a sample:

cd yikes_public

# The long version
ruby lib/main.rb –library /path/to/videos –target /path/to/ipod/output –rate 1800 –background

# or if you want the short version
ruby lib/main.rb -l /path/to/videos -t /path/to/ipod/output -r 1800 -b

# If you want to run it on the sample files for development, there’s an easier way
rake run

Written by Paul Betts

June 5th, 2008 at 10:27 pm

Posted in Apple, Linux, Ruby, Yikes!

2 Responses to 'Yikes! for nerds: how to get the code'

Subscribe to comments with RSS or TrackBack to 'Yikes! for nerds: how to get the code'.

  1. It appears googlereader is getting confused by your geshi implementation and splurging style information everywhere. If there’s anything I can do to help pinpoint the problem I’d be glad to help, I use geshi on a number of my own sites and now it looks like I’m going to be spending my weekend at least testing all of them with google reader. I’m beginning to think google reader has something against planet linode….

    Sorry to be the carrier of annoying news
    C

    Charles

    6 Jun 08 at 1:57 pm

  2. @Charles: I believe this is Planet Linode instead of Google Reader; I added my site in Reader directly, and it looked fine

    Paul Betts

    6 Jun 08 at 3:54 pm

Leave a Reply