similar to: tough activerecord problem

Displaying 20 results from an estimated 120 matches similar to: "tough activerecord problem"

2006 Apr 25
5
Authorisation question
My authentication (signup/login) is up and running in my app, now I need to implement an authorisation system. Its not going to be a complex one. One admin (me) and then normal members and premium members. Any tutorials or tips on a simple way to get this running? Thanks. -- Posted via http://www.ruby-forum.com/.
2002 Oct 23
3
How to pipe debugmsg to a file?
Is there a wine option to send the log output to a file? I'm doing the following: wineconsole --debugmsg +all program_name parm1 parm2 parm3 > /mylog.txt mylog.txt is not receiving a copy of the millions, nay billions!, of messages output. I'm using Redhat 7.3 and the 10/07/2002 RPMs. - Bill
2009 Aug 03
3
session logging
Consider all the text that one sees on the console during an R session. Is there a way, within R, to make all this text--both the "output" and the "messages"--automatically get copied to a single text file, in addition to seeing it on the console? If I remember to save the console to a file at the end of my R session, that does it. But (1) That requires pointing and
2012 Apr 27
5
How to cap table with active record
We want to use SQL/active record for logging but limit the table size so that older messages disappear off of the table Some process has to run periodically to do that. Suppose I want to keep my table size to not much bigger than 50,000,000 rows or so. What is the easiest, most efficient way to delete any extra rows that there may be ? This is an SQL/active record problem I have not encountered
2004 Nov 19
3
Tools for data preparation?
Hello list, I'm regularly in the position where I have to do a lot of data manipulation, in order to get the data I have into a format R is happy with. This manipulation would generally be in one of two forms: - getting data from e.g. text log files into a tabular format - extracting sensible sample data from a very large data set (i.e. too large for R to handle) In general, I use Perl or
2009 Jul 14
2
SOS! error in GLM logistic regression...
Hi all, Could anybody tell me what happened to my logistic regression in R? mylog=glm(mytraindata$V1 ~ ., data=mytraindata, family=binomial("logit")) It generated the following error message: Error in model.frame.default(Terms, newdata, na.action = na.action, xlev = object$xlevels) : factor 'state1' has new level(s) AP Thank you!
2010 Mar 20
2
EM algorithm in R
Please help me in writing the R code for this problem. I've been solving this for 4 days. It was hard for me to solve it. It's a simulation problem in R. The problem is My true model is a normal mixture which is given as 0.5 N(-0.8,1) + 0.5 N(0.8,1). This model has two components. I will get a random sample of size 100 from this model. I will do this 300 times. That means, I will have
2006 Jan 10
4
Problem creating MockController
Hi there, I''m trying to create a mock controller to test the use of UrlHelper in ActionMailer. I''m trying this: require ''d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller'' # Re-raise errors caught by the controller. #class DiscussionsController; def rescue_action(e) raise e end; end class MockController < ActionController::Base def
2013 Jan 14
3
function coverage
Is there an easy way to identify all the functions called as a result of invoking a function? Getting the calling hierarchy too would be nice, but is definitely not essential. I'm trying to understand someone else's package, which is in a namespace and has some S3 functions. I could probably live without tracing the S3 functions. All the functions I want to trace are in R. The code
2011 Feb 18
2
How to flag those iterations which yield a warning?
Hi, I am running a simulation study with the survival::coxph. Some of the simulations result in problematic fits due to flat partial likelihood. So, you get the warning message: Warning message: In fitter(X, Y, strats, offset, init, control, weights = weights, ... : Loglik converged before variable 2 ; beta may be infinite. How can I keep track of the simulations which yield any kind of
2007 Oct 04
2
newbie question with login form
hi, i''m just starting to work with this incredible tool... but i got a first problem with the login process i''m logging on my app like this : ------ @agent = WWW::Mechanize.new { |a| a.log = Logger.new("mech.log") } @agent.user_agent_alias = ''Mac Safari'' @page = @agent.get("http://myappAdress/") @form = @page.forms.first
2001 Sep 29
1
fsck still running as of ext2 (even tough it is ext3)
Hi, I've downloaded and installed kernel-2.4.9 from rawhide in order to use ext3 support (I've also upgraded the necessary packages). I've used tune2fs to make the current ext2 partitions (incluind /) and changed fstab to reflect that. In order to test if everything is ok (this is a test machine) I've switched off with no shutdown. Except the / all other partitions accused
2001 Mar 20
1
tough file
Here's a tough file to encode well at 128 kbit/s average: https://www.idrive.com/miyaguch/files/Shared/?curr-node=8821135668693434409 "duel.wav" It is the first few seconds from "Duel of the Fates" off of the Star Wars I soundtrack. Vorbis beta 4 at 128 produces artifacts that sound like some tones are beating with others. I identified the Vorbis encode 16 of 16
2002 Jul 31
1
tough problem joining test domain
I've been working on this all night without success... I'm setting up a HEAD (from today) test domain and want to join XP machines to it. I've applied the signorseal patch to the client I've set use spnego = no in the smb.conf I'm using ldapsam talking to a remote machine. smbldap tools all work to change passwords add/del users etc. i've set the ldap admin password via
2002 Oct 02
2
really tough question about wins database
I sent this twice, but since nobody answered, I guess its not a "quick question" anymore. ;) Version 2.2.5 on 2.4.18-6mdk ive got the following in my smb.conf [global] add user script = /usr/sbin/useradd -d /dev/null -g machines -c 'Machine Account' -s /bin/false -M %u workgroup = ARCHANGEL netbios aliases = CYBERCENTER PARISHCENTER netbios
2011 Feb 25
1
Small enhancement for CMD check
It would be nice if the 00check.log file also included this part of the output: Running ?bladder.R? Comparing ?bladder.Rout? to ?bladder.Rout.save? ... OK Running ?book1.R? Comparing ?book1.Rout? to ?book1.Rout.save? ... OK Running ?book2.R? Comparing ?book2.Rout? to ?book2.Rout.save? ... OK etc. The survival package has enough test scripts that it exceeds my terminal's scroll
2006 Apr 11
0
Problem using generate/scaffold and FireRuby
Hi to all, I am trying to use "ruby script/generate scaffold product". I always get the message "uninitialized constant CHARACTER_SET". I have a products table in a Firebird database called depot_development.fdb. Here is my config file : > common: &common > adapter: firebird > host: localhost > username: SYSDBA > password: masterkey >
2001 Mar 04
1
Wine, Stars!, and the Battle VCR
I've got a situation where the current version of Wine is crashing when a very repeatable action occurs. What command line parameter should I add to create a log for the developers to look at and figure out what's going on? Regards, Mark Norton
2005 Dec 29
3
NoMethodError problem
Hello. Id like you to help me with something here, i m trying to create a log manager just for fun but I cant make it work since the beginning. I created my project, configured the db, initialized my model Log and then my controller Log, then im just trying to use scaffold :log for the controller but I cant make it work, the error says: undefined method `errors'' for
2000 Mar 31
7
Samba on Linux with no ACL's is making things tough
Please for give me if this gets a bit long. I am presently in the process of moving my company's file server from Windows NT 4.0 over to Linux with SAMBA and the lack of ACL support in the ext2 filesystem is making things very difficult to design. To clarify I am NOT writing about Samba's support for NT ACL's on NTFS. I am writing to possibly get some tips for getting around the lack