Displaying 20 results from an estimated 40000 matches similar to: "Changing Application Error (Rails) to something pretty?"
2005 Dec 15
8
slightly OT - Ruby division
Hey all,
In my code, it seems that when I divide two integers, the result is an
integer. Is there any way to make it such that when I divide two integers,
the result is a double?
Any help appreciated,
Jin
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails
2005 Nov 01
1
not updating non-changed fields
Hey all,
this is kind of a weird question, but is there any way to tell ActiveRecord
to not update a field that hasn''t been changed? When I see my executed
UPDATE sql, I see it trying to update every single field, regardless of
whether its been changed or not. Is there any way to have ActiveRecord
update ONLY the changed fields?
Thanks guys,
Jin
2006 May 04
1
ruby.exe growing large, possible memory leak in sql server
Hey all,
I believe there is a memory leak when using Win2000 + SQL Server +
Apache2 + scgi + rails 1.1. My apps so far have been pretty ''low
impact'' and i did not notice it before, but the memory footprint of
ruby.exe is growing larger. After 6 queries that fetch ~2,000 rows
each, ruby.exe has grown to 41 megs (originally around 20). The memory
leak is also present in webrick,
2008 Feb 15
1
Conditional Autoregressive (CAR) model simulation
Hi all !
I would like to simulate spatial lattice/areal data with a conditional
autoregressive (CAR) structure, for a given neighbouring matrix and for a
autocorrelation "rho".
Is there any package or function in R to perform it ?
I found the function "CARsimu" in the hdeco library, but this is not what
I'm looking for
Thanks in advance
Dae-Jin
--
2006 Feb 27
3
Send parameter along with method in before_filter
Hello list,
I have an app that has a very simple authorization scheme. A person can have
many roles and roles can have many people.
In my app, I''d like to do
before_filter :login_required (since no role name is provided, it accepts
any users with credentials)
before_filter :login_required ("administrator") (only accepts those with
role administrator)
before_filter
2007 Jul 30
1
stop criteria when "L-BFGS-B needs finite values of 'fn' " in optim
Hi all!
I'm running some simulations and I need to estimate some paramaters with
optim( ),
in some cases optim stops with the next message:
"L-BFGS-B needs finite values of 'fn' "
I would like to know how to include and "if" condition when this happen,
could it be something like:
myfun <- optim(....) # run my function
2006 Aug 08
5
off topic: running non-ruby programs through command line
Hi all,
Slightly OT, but is there any way to run command-line programs through Ruby?
I have a rails web application that performs some database work. After a
certain action is performed, the rails app should then call a java program
that performs additional work to our mainframe. This is under Win 2003
Server.
Any ideas?
Thanks,
Jin Lee
-------------- next part --------------
An HTML attachment
2005 Nov 21
10
Anybody using SCGI in production?
Or does anybody prefer fastcgi/fcgi? I''m using webrick for development, but plan on using scgi
when I switch to production (because it appears to be an update to fastcgi, and I couldn''t get
fastcgi working anyhow).
thanks
csn
__________________________________
Yahoo! Mail - PC Magazine Editors'' Choice 2005
http://mail.yahoo.com
2006 Mar 28
2
[Q] How to make a multi-line title with expression()
Dear R-lister
Could anyone know how to make a multi-line title for a plot with
expression()?
In my plot, the title should be writeen in two lines (because it is two long
for one line) and it should use a mathematical expression. I tried to use
"\n", but "\n" is ignored in expression() call:
hist(diffChangeRequestHintsBeforeAnswering[,4], br = 50, xlab = "Skill
Change in
2003 May 06
1
Hello..
Dear All,
This is JIN with working for Mantech Co.in South Korea.
I have tried to intall rsync 2.5.6 verion on Redhat Advance Server kernel 2.4.9-e.3.
When I compiled the rsync for the "make" and "make install", ths process of compiling has some unknown messages then
the method to use the sync with "rsync -aux with 873 port" did not work but the other method with
2006 May 25
0
Fwd: [ADV] Announcing FamilyAnywhere.com
On May 25, 2006, at 10:01 AM, Jin Lee wrote:
> Cool site, Lee family here I come!
> I must know how you did those screenshots! That''s some nice AJAX
> (right?)
>
> Good luck,
> Jin Lee
Like Michael said, it''s Lightbox. Not really "AJAX" per se, but
definitely some javascript goodness :)
On May 25, 2006, at 9:49 AM, Mickael Faivre-Macon wrote:
2007 Jan 12
1
R2WinBugs and Compare DIC versus BIC or AIC
Dear All
1)
I'm fitting spatial CAR models
using R2Winbugs and although everything seems to go reasonably well (or I
think so)
the next message appears from WINBUGS 1.4 window:
gen.inits()
Command #Bugs: gen.inits cannot be executed (is greyed out)
The question is if this message means that something is wrong and the
results are consequently wrong, or Can I assume it as a simple warning
2007 Mar 06
1
optim(), nlminb() and starting values
Hi all !
I've been trying to maximize a likelihood using optim( ) function, but it
seems that the function has several local maxima. I've tried in my algorithm
with different starting values and depending on them "optim" obtains
different results...
I use the "L-BFGS-B" method setting the lower values as 1e-06, because my
parameters must be strictly positive. Also
2010 Sep 01
1
[Q] Goodness-of-fit test of a logistic regression model using rms package
Hello,
I was looking for a way to evaluate the goodness-of-fit of a logistic regression model. After googling, I found that I could use "resid(fit, 'gof')" method implemented in the rms package. However, since I am not used to the "le Cessie-van Houwelingen normal test statistic," I do not know which statistic from the returned from the "resid(fit,
2006 May 03
2
grouped output
hello,
Suppose I have a table that looks like this:
center name email
Health Jon jon@test.com
Health Bob bob@test.com
Admin Jane jan@test.com
Admin Jill jill@test.com
I would like the output to look like this:
Health
Jon jon@test.com
Bob bob@test.com
Admin
Jane jan@test.com
Jill jill@test.com
when i using cold fusion, this was easy via a tag called cfoutput.
when i was using java, this was
2006 Apr 12
3
[Q] Bayeisan Network with the "deal" package
Dear R-users
I am looking for a help in using the "deal" package.
I followed the manual and paper from the author's web site to learn it, as
shown below, but I could not figure out how to access the local and
posterior probability of the nodes in the constructed network.
library(deal)
data(ksl)
ksl.nw <- network(ksl)
ksl.prior <- jointprior(ksl.nw)
banlist <-
2011 Feb 05
2
Help!!! from R beginner
Hello,
I'm trying to add a column to the following data frame. The new column
will contain "black" when the 5th column(if_TE_related) is
"TE_related", or "orange" when the 4th column is " " (space).
"chromo" "MSU_locus" "end5" "end3" "if_TE_related"
"chr04" "LOC_Os04g01006" 1032
2007 Mar 09
4
How to create a list that grows automatically
Dear R users
I would like to know if there is a way to create a list or an array (or
anything) which grows automatically as more elements are put into it. What I
want to find is something equivalent to an ArrayList object of Java
language. In Java, I can do the following thing:
// Java code
ArrayList myArray = new ArrayList();
myArray.add("object1");
myArray.add("object2");
2007 Mar 09
4
How to create a list that grows automatically
Dear R users
I would like to know if there is a way to create a list or an array (or
anything) which grows automatically as more elements are put into it. What I
want to find is something equivalent to an ArrayList object of Java
language. In Java, I can do the following thing:
// Java code
ArrayList myArray = new ArrayList();
myArray.add("object1");
myArray.add("object2");
2020 Nov 24
0
ID Mapping
I followed your steps, my smb.service is inactive
[root at localhost samba]# systemctl stop winbind
[root at localhost samba]# net cache flush
[root at localhost samba]# ll
total 460
drwxrwxr-x. 10 root printadmin 4096 Oct 29 07:17 drivers
drwxr-xr-x. 4 root root 38 Oct 29 07:17 DriverStore
-rw-------. 1 root root 696 Nov 23 23:39 group_mapping.tdb
drwxr-xr-x. 4 root root