Displaying 20 results from an estimated 700 matches similar to: "Flash / Flex on Rails (Ruby AMF)"
2007 Aug 21
2
ActionPack raw_post_data_fix.rb#read_body bug with AMF data.
Hey Everyone,
I just found a slight problem with the "read_body" method in
raw_post_data_fix.rb.
This line:
# Fix for Safari Ajax postings that always append \000
content.chop! if content[-1] == 0
This causes problems with Flash AMF binary format. As AMF always appends
a \000 to the stream as well. I''m the developer over at RubyAMF and have
been running into problems with AMF
2009 Nov 12
3
Got NoMethodError on Model's find method.
Hi All,
I don''t know how this could happen. I got NoMethodError on running a simple
Model''s find method. At first i have the same error for running
find_all_by_country method where country is one of the model''s attributes.
So, running a find method also doesn''t help. I have no problem running the
methods on rails console. What should i check? Has anyone had a
2008 Jun 07
5
Can create record but can not update it => has_many through
Hi All,
I have a problem using has_many through association. I can create a product
without problem, but when i edit it, i got this NoMethodError:
undefined method `reciters='' for #<Product:0xb71a77e8>
Did i miss something to code? I provided the codes below. Please help
Thanks,
Dida
product_controller.rb
======================
def create
@product =
2011 Nov 24
2
This is not the error: ActionView::MissingTemplate
Hey everyone,
I am getting the following error:
Started POST "/rubyamf/gateway" for 127.0.0.1 at 2011-11-24 16:27:20 +1300
Processing by RubyamfController#gateway as */*
Processing by ProjectsController#templates as */*
←[1m←[36mProject Load (1.0ms)←[0m ←[1mSELECT `projects`.* FROM
`projects` ←[0
m
Completed 200 OK in 34ms (Views: 3.0ms | ActiveRecord: 28.0ms)
Completed 500
2007 Aug 21
7
rails truncating raw_post_data?
Has anyone ever run into any problems with rails truncating
raw_post_data. My situation is this: I''m the developer for RubyAMF
(wiki.rubyamf.org). Which is a flash remoting application server. With
the rails plugin, it allows flash to talk to a controller and return AMF
data..
So long story short, the flash player makes a request to a rails
controller sending AMF binary format in the
2008 Aug 26
1
upload_column NoMethodError
Hi all,
I''m using uploadcolumn plugin for file uploading. Followed the README file.
Put "upload_column :src_file" in my model file as instructed, and i got this
NoMethodError for the upload_column. This is the full trace:
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/base.rb:1667:in
`method_missing''
app/models/speech.rb:2
2002 Mar 14
1
restart term in wine
Hi all,...
what 'restart' term in wine? Since i've installed apps that
need to reboot the windows.
Thanks,
Adinda Praditya
2007 Oct 11
0
RubyAMF methods not being found - plugin not being included?
Hi, Im trying to use rubyAMF, and I installed the plugin into my
vendor/plugins directory.
However, it doesnt seem to be loading the active_record and
action_controller utilities.
There is a method in rubyAMF called "as_single!" This method is not
being found in AR. Looking through the plugin code, I dont see how the
file gets required since there is no "init.rb" file in the
2013 May 16
2
R looping help
Hey I'm not really sure what I should put on here, but I am having trouble
with my R code. I am trying to get the p-values, R^2s etc for a number of
different groups of variables that are all in one dataset.
This is the code:
#Stand counter
st<-1
#Collections
stands<-numeric(67)
slopes<-numeric(67)
intercepts<-numeric(67)
mses<-numeric(67)
rsquares<-numeric(67)
2009 Jan 18
0
ActiveResource and file uploads
I am trying to figure out how I could ActiveResource with one of my
web services. I have a desktop application which basically sends and
receives data to and from the server via AMF. (It is an Adobe AIR
application for multiple platforms.)
I''m using RubyAMF as the remoting gateway and Rails v 2.2.2 as the
base of my web application.
I''ve managed to get file uploads work with
2012 Nov 13
1
About systemfit package
Dear friends,
I have written the following lines in R console wich already exist in pdf
file systemfit:
data( "GrunfeldGreene" )
library( "plm" )
GGPanel <- plm.data( GrunfeldGreene, c( "firm", "year" ) )
greeneSur <- systemfit( invest ~ value + capital, method = "SUR",
+ data = GGPanel )
greenSur
I have obtained the following incomplete
2004 Jul 01
2
R can't find some functions in assist package
Oh yes. The "load package" under the "packages menu" in the Windows version
does that. To check I typed "library(assist)" after starting R. Same
behavior, ssr is found, but others like predict.ssr, and plot.ssr, give a
"not found" message.
Thanks for the suggestion.
Mike
2012 Nov 16
2
R-Square in WLS
Hi,
I am fitting a weighted least square regression and trying to compute
SSE,SST and SSReg but I am not getting SST = SSReg + SSE and I dont know
what I am coding wrong. Can you help please?
xnam <-colnames(X) # colnames Design Matrix
fmla1 <- as.formula(paste("Y ~",paste(xnam, collapse=
2009 Mar 14
0
Problem with phantom calls
Hi everybody:
I'm having a problem with asterisk 1.4.22-3 on trixbox, This server
have 8 lines connected at SIP VOIP provider vono in Brasil, all calls
going to a same queue and are answered with 4 attendent on other
network and location connected via PAP2 over nat. When the network
down, in asterisk or pap in other locations, calls hang up but doesn't
close on asterisk (Phantom call).
2010 Feb 27
1
Newbie help with ANOVA and lm.
Would someone be so kind as to explain in English what the ANOVA code (anova.lm) is doing? I am having a hard time reconciling what the text books have as a brute force regression and the formula algorithm in 'R'. Specifically I see:
p <- object$rank
if (p > 0L) {
p1 <- 1L:p
comp <- object$effects[p1]
asgn <-
2010 May 17
0
plm(..., model="within", effect="twoways") is very slow on unablanaced data (was: Re: Regressions with fixed-effect in R)
Hello Giovanni
I made a minor modification to your function, which now allows to
compute the within R-sq in Twoways Within models (see below).
However I ran into an issue that I have already encountered before:
whenever I try to fit Twoways Within models on my unbalanced data, the
process is strangely slow and I usually terminate it either after
~15min or when my CPU hits 100C. This is similar to
2009 Oct 09
0
Help from Bill Liao
Dear Matthieu or other friends,
I want to select two unknown thresholds with the following function:
grid<- selectSETAR(x1, m=1, thDelay=0, criterion=C("AIC","SSR"),
nthresh=2)
print(grid)
plot(grid)
where x1 is a price time series.
However, it always shows the following error.
Error in selectSETAR(x1, m = 1, thDelay = 0, criterion = C("AIC",
2007 Jul 12
1
p-value from survreg
The question was how to get the p-value from the fit below, as an S object
sr<-survreg(s~groups, dist="gaussian")
Coefficients:
(Intercept) groups
-0.02138485 0.03868351
Scale= 0.01789372
Loglik(model)= 31.1 Loglik(intercept only)= 25.4
Chisq= 11.39 on 1 degrees of freedom, p= 0.00074
n= 16
----
In general, good places to start are
> names(sr)
>
2002 May 11
2
Bug on Mac version of lm()?
Dear Mac users,
Hi, as you might have probably read the thread of
"[R] Rsquared in summary(lm)" on May 10, it seems that Mac version of
lm() seem to be working incorrectly.
I enclose the script to produce the result both for lm() and manual
calculation for a simple regression. Could you run the script and
report with the version of R, so I don't have to go through every
builds
2010 Aug 30
2
while loop until end of file
Hi Guys,
stumped by a simple problem. I would like to take a file of the form
Pair group param1
1 D 10
1 D 10
1 R 10
1 D 10
2 D 10
2 D 10
2 D 10
2 R 10
2 R 10
etc..
and for each pair, calculate the average of