Displaying 20 results from an estimated 10000 matches similar to: "incorporating Perl in Ruby on Rails."
2006 Jun 08
1
rails integrated with VideoEgg or ffmpeg.
Hi,
I was wondering if anybody has successfully integrated Rails with VideoEgg''s
publisher using Perl? I was also wondering if anybody''s tried launching
ffmpeg through Rail''s command-line to dynamically convert videos to
different formats? If so, how hast he experience been? Is it worth doing
this on Windows XP or Linux?
Thanks.
-------------- next part
2006 May 23
4
''key not found'' problem with saving model object.
Hello,
I have the following structure:
model foo
has_many :bars:,
:dependent => true
end
model bar
belongs_to :foo
end
In my action, when i try to save foo:
def save
begin
f = foo.new
f.a = 5
begin
b = bar.new
b.a = 10
f.bars << b
rescue Exception => exc
...
end
f.save! <-- This does not happen
2006 May 16
4
question about strftime when called from partial.
Hi,
I''m calling a helper I''ve written - format_time() that is called from my
views with a given time that was selected from my database and was returned
to the view via an instance variable. When I call format_time from a
partial, I see that I get some kind of String error and the partial won''t
render. Basically, the object being passed in to format_time is already a
2006 May 30
3
expected, got Fixnum problem.
Hi,
I was wondering if anybody knew what ''<some type> expected, got Fixnum''
means? My code looks like the following:
begin
anevent = Event.new
anevent.title = params["event"]["title"]
anevent = session[:user_id]
com = Community.find(params[:id])
com.events << anevent
rescue Exception => exc
...
end
But I get an
2006 May 05
1
InstantRails, ruby downgrade to 1.8.2 issue.
Hello,
I''ve been using InstantRails 1.0 that has ruby 1.8.4 and rails 1.0. Some of
you might know that the RMagick package does not work with ruby 1.8.4. I''m
now trying to downgrade to ruby 1.8.2 within my InstantRails 1.0 install.
Is there a clean way of doing this? I basically downloaded ruby 1.8.2 and
replaced the ruby directory with the newly created ruby directory. As
2006 May 10
2
accessing uploaded file on filesystem question.
Hi,
I''m able to upload files onto my webserver filesystem but I had a question
regarding how I''d go about accessing them using the <img src="..." > tag.
If my files, i.e pictures, are being uploaded to
public/images/<dir>/filename.jpg, then should I store the entire path, or
just the picture name in my database table? I would imagine storing just
the
2006 May 10
2
getting absolute paths on files on filesystem.
Hi,
I''d like to be able to store the absolute path for a file so that I could
use <img src = "...." > and give it the path to the file I''d like to
display. I was wondering if there is an easy way to do this and whether
there are any issues with this on Windows.
thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Jun 06
4
Checking if a directory is empty using File
Hi,
I have one minor issue. I''m trying to check whether a directory is empty
given some path to the directory.
My code does the following:
if(File.directory?(dirpath)) # dirpath = public/images/1
if(File.zero?(dirpath))
FileUtils.rm_rf(dirpath)
end
end
The problem is, while testing this, if I put a file in the directory and run
the above code, it still ends up deleting the
2007 Nov 20
2
Incorporating code from sftp-glob.c into lftp
As you might know, LFTP is a popular FTP/SFTP command-line client for
most systems. One feature that is lacking from this tool is the
ability to do a globbed ls via sftp. I have a patch ready for LFTP
that incorporates some of the knowledge [like oddball systems glob()
handling] and some of the code from sftp-glob.c for this tool to add
this capability. I do, however, have some questions about
2009 Dec 02
1
Incorporating the results of White's HCCM into a linear regression:
Using hccm() I got a heteroscedasticity correction factor on the diagonal of
the return matrix, but I don't know how to incorporate this into my linear
model:
METHOD 1:
> OLS1 <- lm(formula=uer92~uer+low2+mlo+spec+degree+hit)
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) -0.0623377 0.0323461 -1.927 0.057217 .
uer 0.2274742 0.0758720
2006 Jul 28
2
passing a variable from controller to model
Hi,
How do I pass a variable from my action into a model before saving the
model. I''d like the model instance to have access to this variable to
do some work before saving the model instance but the variable is not
part of the model itself.
Thanks,
Sam
--
Posted via http://www.ruby-forum.com/.
2006 May 05
1
Uploading files > 10mb using InstantRails 1.0 configuration.
Hi,
I''m using InstantRails 1.0 (rails 1.0 and ruby 1.8.4). When I try to upload
a video file ~11MB, IE just hangs on me. Seems like WEBrick hangs too and I
can''t connect from another IE. I end up manually killing WEBrick. Would
anybody know the problem here? I had to increase my mysql max_packet_size
parameter in order to upload in the first place so mysql doesn''t
2006 May 07
1
file_column problem - uninitialized constant Magick
Hi,
I''m on Windows and getting the following error while trying to use
file_column with RMagick,
uninitialized constant Magick
C:/INSTAN~1.0/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in
`const_missing''
#{RAILS_ROOT}/vendor/plugins/file_column/branches/kyle/lib/file_column.rb:621:in
`file_column''
I installed file_column by
2006 May 07
1
design question - multiple form resubmit problem.
Hello,
My question has to do with a form resubmit problem. Say for example a form
is submitted and within that form, a picture is uploaded. If the user
presses the Back buttom and gets back to the form submission sheet, and then
clicks on resubmit, once again, the same data is populated into my tables
wasting space (another picture upload for no reason in a separate row).
Now, I know there are
2006 May 22
3
rails naming convention for model: community
Hello,
How does Rails deal with the pluralization of community. I have "community"
as my model name. Will Rails automatically look for a table name
"communities" or do I have to name the table "communitys"?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 May 23
11
adding layouts within layouts
Hi,
I want to be able to have several layouts within each other so that I don''t
have to keep repeating the layout code for one, in another. An example
would be having a layout for the title of your web page and then having an
embedded layout for the body portion in which the HTML for whatever view
gets displayed. Is this possible?
Thanks.
-------------- next part --------------
An
2011 Sep 26
1
normalizing a negative binomial distribution and/or incorporating variance structures in a GAMM
Hello everyone,
Apologies in advance, as this is partially a stats question and partially an R question. I have been using a GAM to model the activity level of bats going into and coming out from a forested edge. I had eight microphones set up in a line transect at each of eight sites, and I am hoping to construct a model for each of 7 species.
My count data has a reverse J-shaped skew and
2006 Jun 19
5
RSS reader for rails application.
Hi,
I was wondering if there''s an RSS reader plugin of some sort available
that will basically get the RSS feeds for me and then allow my Rails
application to take those feeds and present them on my website. Would
anybody know how I could get this to work with a rails app?
Thanks.
--
Posted via http://www.ruby-forum.com/.
2011 Apr 25
3
Possibility of Incorporating a psychoacoustic model in CELT
Good Morning;
Iam asking whether any one have knowledge about is it possiple to incorporate a
psycoacoustic model?(specifically?I mean ?MPEG-1 psychoacoustic model 1) into
the CELT codec(any version even older versions of the coder,?no matter) Iam
using version 0.3.2.
Kind Regards;
Osama.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2003 Aug 11
0
Designing and incorporating a digital filter
I have a time series of data from an electroencephalogram (EEG).
I wish to filter the data to get rid of 50Hz mains 'hum'. I have
'designed' a combination bandpass and notch filter using a web-
site. The site returns the filter in "ANSI C" source code. It is:-
/* Digital filter designed by mkfilter/mkshape/gencode A.J. Fisher
Command line: