August 17, 2007

OK, got subversion installed, along with tortoise svn, which adds svn commands into windows explorer. I’m a little bit suprised that it (svn) doesn’t have a ‘proper’ interface – i was expecting something along the lines of visual source safe. I guess though that doing everything in windows explorer makes sense.

Anyway, the point of doing this was to get the movie playing stuff in. Let’s just try that command line before trying to work out how to do anything… it was

ruby script/plugin install svn://

Well, it did *something*. I got a load of stuff copied over, but then a cryptic message:

A C:\code\InstantRails\rails_apps\newspipe\vendor\plugins\flashplayrhelpr\install.rb

A C:\code\InstantRails\rails_apps\newspipe\vendor\plugins\flashplayrhelpr\MIT-LICENSE
A C:\code\InstantRails\rails_apps\newspipe\vendor\plugins\flashplayrhelpr\README
Exported revision 14.
Installing flash_player…
Plugin not found: [“svn://”]

What does that mean – do i have it or not? It was supposed (according to this guide) to make a folder called swf in public, but it didn’t. Goddammit, why isn’t anything ever easy? grrrr. ok, chill. The guide has a backup plan if the files don’t appear, which is to run this:

rake flash_player:install

which apparently makes the viewer available to use. Hmm. It didn’t complain when i ran this, but it didnt say it had done anything either. However when i did rake blahblah:install it complained that it couldn’t find blahblah so i guess it’s there in some form. Anyway, let’s try and use it.

I put this in my standard partial, which is the basis for all templates in my app:

<%= javascript_include_tag ‘ufo’ %>

then this in my movie/show view page:

<%= flv_player :file => “/data/movies/feynman.flv” %>

Here goes. Nope – i get this error message
undefined method `flv_player’ for #<#<Class:0x4815ad4>:0x4815aac>

which suggests it didn’t install.

Looking back at the messages, i think that the flash_player did install, but flashplayrhelper, which is a seperate plugin didn’t.

…some time passes…

Got it! After a helpful suggestion from the maker of flashplayrhelpr, Farooq Ali Farooq, I added the svn exe to my path variable, and forced reinstall – worked first time! Good old Feynman lecturing away there. Awesome.

There’s a little bit of tidying up required with the movie – it would be nice to be able to edit the associated details (title, summary etc) after posting for example. This isn’t essential though – what is essential is to be able to convert other video formats to flash video, so people can upload an avi, wmv etc. This is what YouTube does – you can upload various formats but everything is displayed in flv format.

This looks promising :

There’s quite a bit of pre-requisites but all stuff that would be useful i think: It seems perfect for my needs, dan even includes code for making a thumbnail. I’ll have a go with this (next post).


3 Responses to “”

  1. Tony Says:

    Hi, i’m fighting against the same problem right now.
    What do you mean with:

    ‘I added the svn exe to my path variable, and forced reinstall – worked first time’

    Where do you added what? Do you have an source code example?


  2. sharik Says:


    I am having the same exact issue.. Can u let me know what you did when u added the svn exe path variable?
    can u please help me out with what you did? right now i also cannot get past the undefined method error


  3. nubyonrails Says:

    Hey guys

    It’s been a while, i can’t remember exactly what i did here and i don’t use windows any more. But, i think that all i was saying was that windows didn’t recognise the ‘svn’ command, because the location of svn.exe needed to be added to the PATH variable – this is an environment variable which windows uses to look for executables. If you have a program in (eg) “c:/blah/foo”, if you add “c:/blah/foo” to the PATH then you can run that program from any folder.

    To edit the PATH variable (this is in windows XP), right click on ‘My computer’ and choose ‘properties’. Click on the ‘advanced’ tab and then the ‘Environment variables’ button. Look in the ‘System variables’ box for the Path variable, select it and hit edit. You’ll see a list of locations separated by semicolons. Go to the far right, add a semicolon, and then the location of the folder where the svn exe is. OK all the way back out and you should be done. To check, open a command line window and type ‘svn –help’ – you should get the svn help text.

    Hope that helps…

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: