similar to: Making a array to use with @user.

Displaying 20 results from an estimated 4000 matches similar to: "Making a array to use with @user."

2006 May 04
6
Login generator ALWAYS says login unseccesfull
Hey I just ran this "ruby script/generate login loging_in" here is my SQL: CREATE TABLE `users` ( `id` int(11) NOT NULL auto_increment, `user_name` varchar(80) default NULL, `login` varchar(120) NOT NULL default '''', `last_update` timestamp NOT NULL default ''0000-00-00 00:00:00'', `last_attack` timestamp NOT NULL default ''0000-00-00
2006 May 12
1
Some error about adding.
Ok so I''m trying to make a little exchange 3 for 1 of 1 higher rank here is the code in the controller: def exch_link @id = @session[:user].id @type = @params[:type] exch(@id,@type) end def exch(user_id,this_type) @user = User.find(:condtions => "id = " + user_id) @ranks =
2006 May 08
8
Unexpected, Expected
Okay I got ther error below in figure-1, so I added an end then I got figure-2 figure-1 expecting tCOLON2 or ''['' or ''.'' figure-2 unexpected '';'', expecting tCOLON2 or ''['' or ''.'' end ; _erbout -- Posted via http://www.ruby-forum.com/.
2009 Jul 23
1
dimension trouble for a matrix
Dear R People: I'm having trouble with something that should be very simple. I'm setting up a matrix outside of a loop and writing items into it during the loop. Here is the output: > glob3b("sites.info") dim 27 3 [1] "/raid1/osg-app" Error in xy[i, ] : incorrect number of dimensions Here is the function: > glob3b function(xx) { x.df <-
2006 May 09
3
What does this mean?
def cas casses = [@cas.ss,@cas.s,@cas.xl,@cas.l,@cas.m,@cas.w,@cas.xw] casses.each do |cas| if cas >= 10 @user.send(cas) -= 1 @user.save! end end my error: app/controllers/battle_controller.rb:383: parse error, unexpected tOP_ASGN, expecting kEND @user.send(cas) -= 1 ^ app/controllers/battle_controller.rb:388: parse error, unexpected $, expecting kEND -- Posted via
2008 Feb 07
2
a kinder view of Type III SS
A young colleague (Matthew Keller) who is an ardent fan of R is teaching me much about R and discussions surrounding its use. He recently showed me some of the sometimes heated discussions about Type I and Type III errors that have taken place over the years on this listserve. I'm presumptive enough to believe I might add a little clarity. I write this from the perspective of someone old
2006 Mar 15
1
(newbie) Weighted qqplot?
Folks, Normally, in a data frame, one observation counts as one observation of the distribution. Thus one can easily produce a CDF and (in Splus atleast) use cdf.compare to compare the CDF (BTW: what is the R equivalent of the SPlus cdf.compare() function, if any?) However, if each point should not count equally, how can I weight the points before comparing the distributions? I was thinking of
2006 Apr 27
12
Stealing users IP address
Is there a functiaon to take the IP address of person who submits to a form example: <input id="user_ip" name="user[ip]" type="hidden" value="<%= some_ip_call %>" /> -- Posted via http://www.ruby-forum.com/.
2008 Oct 30
1
package pls
Hi, For the package "pls", I need to understand the algorithm for "simpls.fit" for Partial Least Squares. I'm not sure if simpls.fit tries to find the weight vectors (loadings) to maximize which of the two: Cov(Xw, y) or maximize Cov^2(Xw,y)? Are these objective functions equivalent? (in some texts, they use the first and in other texts, they use the second obj.
2017 Nov 24
2
number to volume weighted distribution
Hi Duncan I tried Ecdf and/or wtd.quantile from Hmisc and it is working (probably). Ecdf(x, q=.5) Ecdf(x, weights=xw,col=2, add=T, q=.5) wtd.quantile(x) 0% 25% 50% 75% 100% 10 10 10 100 300 wtd.quantile(x, weights=xw, type="i/n") 0% 25% 50% 75% 100% 10.0000 138.8667 192.5778 246.2889 300.0000 But could you please be more specific in this? >
2006 May 10
7
AJAX effects
I was at http://rails.techno-weenie.net/ and I like what ajax does when you click on "login" how can I do this on my own website? Is this with the defualt JS libary? -- Posted via http://www.ruby-forum.com/.
2017 Nov 24
0
number to volume weighted distribution
Hi Petr, I think that Duncan suggests something like this: x<- c(rep(10,20), rep(300,5), rep(100, 10)) tx <- table(x) prop.x <- tx / sum(tx) vx <- as.integer(names(tx)) prop.wx <- tx * vx / sum(tx * vx) plot(ecdf(x)) plot(vx, cumsum(prop.x), ylim = 0:1) plot(vx, cumsum(prop.wx), ylim = 0:1) Best regards, Thierry ir. Thierry Onkelinx Statisticus / Statistician Vlaamse
2006 May 11
9
Undoing a SHA1
Hello for my password recovery system I want to recover the users password and send it to them. In the DB its saved via SHA1 (login generator) -- Posted via http://www.ruby-forum.com/.
2006 Apr 27
2
Red cloth
what is the require I must put in my enviremnt to use red cloth? -- Posted via http://www.ruby-forum.com/.
2006 Apr 29
2
Creating your own params
I want to pass my own param called randid so I can do this @rnd = params[:randid] this will work if I can pass the :randid -- Posted via http://www.ruby-forum.com/.
2006 Apr 26
7
Not updating
I copied the scaffolding edit and update and made it like this, Note: awnser is edit. Admin_contoller.rb def awnser @question = Question.find(params[:id]) end def update @question = Question.find(params[:id]) if @question.update_attributes(params[:question]) flash[:notice] = ''Question was successfully updated.'' redirect_to :action => ''list''
2009 Nov 15
1
ip source aware Authentication
Is there a way to ensure that the source IP address from witch the SIP user register is not tampred with , is there a feild in the SIP register message header can be used to achive this security ? i have an asterisk server in witch SIP users register through an SBC(session border controller) , i wanna make sure that those users are really registering from the IP they are claimming they are
2006 Mar 29
8
Action Mailer
Does anyone know where I can download an demo app of action mailer. I''ve looked every where. I''ve also done the tuts. but, they don''t work for me. Thanks... -- Posted via http://www.ruby-forum.com/.
2006 Apr 27
11
Action Mailer Error!!!
What does this mean? Bad file descriptor - connect(2) -- Posted via http://www.ruby-forum.com/.
2017 Jun 29
1
NUT supporting Modbus TCP
Yeah, I have its datasheet (it's a Xantrex XW invertor by the way). I do not know why creating a more-or-less generic driver is an issue. Of course, there are Modbus beasts that can scare everyone but mostly one would need to read either intreger or float numbers out of Modbus registers in order to decide whether or not to start or stop the shutdown process. 24 ???? 2017 ?. 19:25:14