Displaying 20 results from an estimated 100 matches similar to: "Some Ruby code help?"
2009 Feb 26
1
composed_of, aggregate object isn't saved
I am relatively new to rails and I cannot figure out what is going on
here. I am using the composed_of method in an ActiveRecord class to
create two aggregate properties: shipping_address and billing_address.
The object properties are getting populated from the form and validation
is working - no problem. When I call order.save, though, everything is
being saved except the address fields. I am not
2013 Dec 10
2
form_tag + fields_for Rails 4
Hi There,
I''m trying to user fields_for inside a form_tag, but i can''t catch it
on my controller.
I just take some html code off to makes it easy to read
my view...
i''m using campuses_path(current_church, @campus) instead form_for
@campus, because my route is like
resources :campuses, :path => ":church/campuses"
<%= form_tag
2007 Apr 11
1
SiS 661FXon CentOS?????
I have a CentOs 5 beta running on a Desktop with a video card SiS 661FX,
unfortunaly I can't run compixz on that card, and neither run any 3D
aplications. My question is: How can I give 3D acelaration on that video
card and Is there any way to run compixz.
I've been looking on google about the driver for that card and I've found
nothing.
Any idea??.
Ps. Forgive me any bad writing,
2007 Apr 06
1
Troubles with starting CentOS beta 5
Hi list
I'm new here, but I've been using CentOS for about 2 years.
I had some problems today, there was a blackout and I couldn't poweroff my
machine on the right way, when I turn on the machine again everything
when right until the dialogo Activating swap/fstab. the pc freezed there
and didn't go on,
my question is,what was going on and how can I resolve that without
2007 Feb 04
0
Very strange observe_form problem
I am doig something very simple here and this is not working correctly.
So any help is greatly appreciated.
I ahve this code in my template:
<% form_for :company_branch, @company_branch, :html => {:id =>
"company_branch_form"} do |f| %>
<%= f.text_field :street1 %>
<%= f.text_field :street2 %>
<% end %>
<%= observe_form("company_branch_form",
2007 Oct 11
0
display problem with to_csv
Hi all,
I need to export the document as csv file, i have exported
successfully, but the problem is not displayed as per my format, in csv
file the format is suffuled, i want the orderwise as how i have
mentioned in my query, please help me to come out in the order wise.
My coding is:
@report_data=EdiaUserContact.find_by_sql(
"SELECT '''' as ''Title'',
2014 Mar 10
3
Frecuencia absoluta acumulada por individuo y por año
Hola,
Vaya, en el código que he enviado, cusum no se incrementaba..
Y has indicado que se introduce un año más, con el mismo ID que el anterior
y con la misma cantidad acumulada. Pero si el siguiente año es del mismo
ID, acumula el valor de la cantidad que hemos introducido en esa fila...
Con el siguiente código se resuelve este error y además ya está preparado
para contemplar cualquier tipo de
2012 Oct 09
1
how to convert by lists in data.frames
Dear R-helpers,
I’ve got a summary of results from a by() call that I am making with a list
of more than two of factors not very different from the example in the by()
help page
require(stats)
by(warpbreaks[, 1], warpbreaks[, -1], summary)
The result of the command gives a list of the form
wool: A
tension: L
Min. 1st Qu. Median Mean 3rd Qu. Max.
25.00 26.00
2006 Jun 03
8
confused about ActiveRecord relationships
I am very confused about where to put the belongs_to and the has_one
(and other relationship identifiers). I have read the RDoc and the
agile book many times about this and I think i still see it backwards.
Let me outline my app so you have an understanding...
I have 2 tables:
Schools { id, school_name, address_id }
and
Addresses { street1, street2, city, state, zip, country }
*** this
2007 Dec 19
1
FW: cgh package
Hi,
I would like some extra information on the 'cgh' package in R. I noticed
that there isn't much activity regarding this package on the R and BioC
mailing list (I googled it).
I started using this package and I have few questions:
1/ As I have a custom tiling like array @8um features resolution (affy),
I have a lot of probes to work with. I'm assuming it is correct to
2005 Aug 16
0
eth1: mismatched read page pointers 0 vs ff
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
I am a newcomer to CentOS and been lurking the list for a week or so.
This morning I installed CentOS 4.1 on a Compaq Evo (Pentium IV, 512MB RAM)
After the initial boot just after installing, the console if constantly
filled with "eth1: mismatched read page pointers 0 vs ff". This message
appears at least every 40 seconds.
The same
2005 Sep 16
0
Two strange behaviours with dovecot+postfix+squirrelmail
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
About a week ago I was forced to migrate my main (production) email server from RH9 to
Centos4.1. The installation has dovecot-0.99.11 + postfix-2.1.5 and >600 mbox accessed email
accounts.
Number 1. Some users accessing thru squirremail (installed in my webserver) can read their
INBOX at /var/spool/mail directory but when trying to
2014 Mar 12
3
Frecuencia absoluta acumulada por individuo y por año
Llego tarde al hilo, pero creo que se llega rápidamente al resultado con la
complicidad del paquete "reshape2". Si DT es el data.table que escojo Francisco como
ejemplo:
> DT
ID YEAR CANTIDAD
1: 100 2005 1
2: 100 2005 2
3: 100 2007 1
4: 100 2007 1
5: 100 2007 1
6: 120 2006 1
7: 120 2006 5
8: 120 2006 1
9: 120 2007 3
2005 Sep 19
1
Two strange behaviours with dovecot+postfix+squirrelmail
Hi all,
About a week ago I was forced to migrate my main (production) email server from RH9 to
Centos4.1. The installation has dovecot-0.99.11 + postfix-2.1.5 and >600 mbox accessed email
accounts.
Number 1. Some users accessing thru squirremail (installed in my webserver) can read their
INBOX at /var/spool/mail directory but when trying to delete a message they receive the
following error
2014 Apr 15
2
Fwd: ¿Cómo generar informes con R sin utilizar LaTeX?
Victor,
Me parece que podrías investigar si Scribus puede generar e insertar la
salida de R en sus documentos, por lo que estás agregando a tu pregunta me
parece que BI no es el camino. Si lo haces, creo que a más de uno en esta
lista le interesará la experiencia. La alternativa sugerida por Emilio
usando Rthml y CSS con probablemente markdown y, yo agregaría, pandoc me
resulta muy interesante y
2009 Dec 07
0
zelig logit survey
When I use zelig to compute parameter estimates with "model = logit.survey",
I receive the following error:
Nicholas Carnes. 2007. "logt.surveyWarning message:
In eval(expr, envir, enclose) : non-integer #successes in a binomial glm!
I believe this is because the model is not using "quasibinomial" (see R-News
2003, Analyzing Survey Data in R, by Thomas Lumley). Is there
2017 Apr 13
2
Variograma - Bins
Hola, cordial saludo, estoy trabajando con geoestadística y tengo la
siguiente inquietud ¿Existe algún criterio óptimo para determinar el número
de bins en un semivariograma? sé que el paquete geoR tiende a tomar por
defecto 13 bins y gstat 15 ¿pero existe algún criterio detrás de dicha
elección? Gracias de antemano a quien pueda resolver mi duda.
--
*Carlos A. Taimal Yepes*
*Estudiante de
2009 Oct 30
1
salto de carro
Hola a todos:
Tengo un problemita y no se como solucionarlo, uso macosx 10.5, de
apple el leopard que es Unix, leo una base de datos mysql desde R,
luego escribo un archivo de la siguiente forma:
write.table(paraBlup, file="paraBlup", sep="\t", eol="\r\n")
Este archivo lo abro desde una aplicación escrita en fortran, que
compile con gfortran para mac.
Al
2011 Jan 03
1
Formatted output with alternating format at different rows
Dear all,
I have a simple question. I couldn't find a solution in the
forums/R-user manual; I have also asked to my friends who use R, but
couldn't get any answer from them either. I would appreciate any
solutions.
I want to write formatted text file like in Fortran. More specifically
with the format choice of mine for any given line (more specifics are
given below).
The R function
2002 Jul 02
1
Strange behaviour in plot and points?
Hello R-users
I was puzzled by some strange results of an analysis and I found out what is
for me a strange behaviour (I won't dare to say a bug) in both plot and
points (and I suspect lines and other kind of lower level plots). If you try
the following code:
> data<-data.frame(dummy1=c(1:10),dummy2=c(1:10))
> plot(data$dummy1,data$dummy3)
A plot of the values of dummy1 against