Displaying 20 results from an estimated 6000 matches similar to: "Simple Newbie db ???"
2006 Aug 15
3
update or alter cart
I want to modify and update the items in the Depot - "display_cart".
Since the cart is in a session, its a little hard to get at the data.
I just want to create a way to change quantities, prices and
recalculate.
Has someone done this, and could you point me to the right direction.
Thanks
Chas
--
Posted via http://www.ruby-forum.com/.
2006 Jun 07
8
erb Regex ?
Hi
Got a column named ''sku'' in a table named ''product''
<%= product.sku %>
...looks like this.... ''1234_56''
These last two chars (56) are an audio Track number.
I ultimately want to display:
Track <%= product.sku %>
I can isolate the first part with /\d+\_/ = 1234_
But can''t figure out how to get the last two
2014 Jul 17
3
FW: Selección eficiente de individuos
Hola,
Otra forma, utilizando la función de intervalos y la que comprueba si otro
intervalo se solapa del paquete "lubridate":
#----------------------
library(lubridate)
fe.chas <- data.frame(
entra=c('2001-01-01','2001-06-01','2003-01-01')
,sale=c('2002-01-01','2002-06-01','2004-01-01')
)
ref <-
2003 Mar 24
2
Problem with the step() function
Dear all,
I'm having some problems with using the step() function inside another
function. I think it is an environment problem but I do not know how to
overcome it. Any suggestions are appreciated.
I've prepared a simple example to illustrate my problem:
> library(MASS)
> data(Boston)
> my.fun <- function(dataset) {
+ l <- lm(medv ~ .,data=dataset)
+ final.l <-
2010 Feb 25
2
error using pvcm() on unbalanced panel data
Dear all
I am trying to fit Variable Coefficients Models on Unbalanced Panel
Data. I managed to fit such models on balanced panel data (the example
from the "plm" vignette), but I failed to do so on my real, unbalanced
panel data.
I can reproduce the error on a modified example from the vignette:
> require(plm)
> data("Hedonic")
> Hed <- pvcm(mv ~ crim + zn + indus
2006 Jun 17
1
magic disappearing parameters
I have a method in application_helper.rb like this:
def my_method(arg1, arg2 = {})
...
end
when I call this method from an rhtml file like this:
my_method @var
I get this message:
wrong number of arguments (1 for 0)
When I call the method without arguments like this:
my_method
I get this message:
wrong number of arguments (0 for 1)
I am new to Ruby and Rails so I presume that
2008 Mar 16
2
CentOS 5.1 single (server) CD ??
Hi,
Any chance of a CentOS 5.1 single server CD similiar to the one for 4.4?
That CD wa very useful for 90% of the instals that I've been doing and
whatever extras were needed were eaily added through Yum.
Chas.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
2010 Sep 20
2
how to seperate " "? or how to do regression on each variable when I have multiple variables?
Dear All,
I have data which contains 14 variables. And I have to regress one of
variables on each variable (simple 13 linear regressions)
I try to make a loop and store only R-squared
colnames(boston)
[1] "CRIM" "ZN" "INDUS" "CHAS" "NOX" "RM" "AGE"
[8] "DIS" "RAD"
2011 Jul 29
3
help with plot.rpart
? data=read.table("http://statcourse.com/research/boston.csv", , sep=",",
header = TRUE)
? library(rpart)
? fit=rpart (MV~ CRIM+ZN+INDUS+CHAS+NOX+RM+AGE+DIS+RAD+TAX+ PT+B+LSTAT)
Please: Show me the tree.
Mark
-------- Original Message --------
Subject: Re: [R] help with rpart
From: "Stephen Milborrow" <[1]milbo at sonic.net>
2007 May 23
2
Programs like ices
"
Does anyone know if there is a program for linux like ices that can dump live audio from an input to an mp3 file? Or, is there any software for windows that can capture the mic input and line in input and encode them seperately but both live? Thanks,
Andy Carlson
IT Manager
City of Princeton
www.princeton-il.com
Office (815) 875-2631 ext. 253
Cell (815) 719-0023
2015 Aug 21
2
[PATCH 2/2] core/graphics: fix lss16 parsing
getnybble() needs to return four bits at a time from every byte.
During rle decode, rows are rounded to an integer number of bytes.
The rle length needs to be able to hold values > 255.
Signed-off-by: Chas Williams <3chas3 at gmail.com>
---
core/graphics.c | 35 +++++++++++++++++++++--------------
1 file changed, 21 insertions(+), 14 deletions(-)
diff --git a/core/graphics.c
2015 Aug 21
2
[PATCH 1/2] msg: VGAFilePtr should be char
VGAFilePtr is used as a pointer into VGAFileBuf, so it should be the
same type.
Signed-off-by: Chas Williams <ciwillia at brocade.com>
---
com32/elflink/ldlinux/msg.c | 4 ++--
core/graphics.c | 2 +-
core/include/graphics.h | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/com32/elflink/ldlinux/msg.c b/com32/elflink/ldlinux/msg.c
index 9ded33e..37cbe71
2009 Feb 13
1
error with make
Hi,
I am trying to compile the R-dev version on a unix Suse machine
and got errors.
Would someone be able to help me determine what to do to fix
these errors:
make[1]: Entering directory `/lustre/people/schaffer/R-devel/m4'
make[1]: Nothing to be done for `R'.
make[1]: Leaving directory `/lustre/people/schaffer/R-devel/m4'
make[1]: Entering directory
2008 Jun 27
2
converting numbers to characters
Hi,
I need to convert numbers to characters in order
to index an array when I encountered the number
100000 which turned into "1e+05".
Does anyone know how to get around this problem?
Lana Schaffer
Biostatistics/Informatics
The Scripps Research Institute
DNA Array Core Facility
La Jolla, CA 92037
(858) 784-2263
(858) 784-2994
schaffer at scripps.edu
2009 Apr 08
6
Weird error.
Hello everybody, i 'm new here, i 'm new with linux and i want break up friendship with windows :)
but... i run the game(Ancient Conquest), it was made 10 years ago and dont work on windows XP(for me, maybe for someone work).
Problem is with ...yea what's the problem. i ran setup of this game and installed to C:\Program Files\Ancient Conquest\. i run it after i used CD to enter
2006 Sep 26
7
Interesting mechanize difficulty
I found an interesting page today that I was trying to script
against. The server returns a 404 with content and the page just
works normally in firefox despite the 404. Mechanize raises an
exception on it though.
I''m working on a test case now.
2008 Jul 03
1
subset function within a function
Hi,
I am using this subset statement and it works
outside a function.
LIS[[i]]<- lapply(LI, subset, select=cov[[i]])
However, wrapped inside a function this statement
produces the same values for every LIS[[1]] which
is only the first subset of LI.
Does anyone know why is not working correctly inside
a function?
ff = factor(covariate)
nLev <- nlevels(ff)
cov <-
2006 Jun 30
50
Time To Pick the Mongrel BUGS Mascot!
Bradley Taylor shot me this *goldmine* of ugly ugly ugly dogs:
http://www.sonoma-marinfair.org/uglydogvote.shtml
I *have* to use one of these for the Mongrel BUGS Mascot. He''ll go on
our bug list page and replace the little beetles on the left.
Pick the dog you think best represents a lovable but defective pooch and
reply to this with your +1.
Let the voting begin!
--
Zed A. Shaw
2009 Aug 17
4
vector replacement 1/0 to P/A
Hi,
Can someone suggest an efficient way to substitute a vector/matrix
which contains 1's and 0's to P's and A's (resp.)?
Thanks,
Lana
2006 Nov 02
5
Adding fields to a form
Is there a decent way to add a field to a form before posting it? I
haven''t tried using HPricot manipulations just yet, since I can''t
ever find really solid docs on hpricot....
Form#[]= doesn''t work because it first searches only pre-existing
fields. I''m investigating how to write a patch now.
But I thought maybe someone here might have an idea.