similar to: Table belongs_to self - good idea?

Displaying 20 results from an estimated 2000 matches similar to: "Table belongs_to self - good idea?"

2006 Jul 29
2
comments on my first context
I have been curious about rSpec for a while, so I thought I''d give it a try... I started reading Ron Jeffries'' articles on Sudoku (http://www.xprogramming.com/xpmag/OkSudoku.htm), and noticed he was doing TDD, I thought, this would be fun to do with BDD... Can you comment on the following? (note that I added a method in the Game class called cells which return @cells) to make
2005 Sep 22
1
ActiveRecord DateTime mapping
Hye, I try to store DateTime as integer (seconds) in my database (MySQL). I''d like to convert seconds to DateTime in the ActiveRecord object to handle it easily in my views. I try to play with callbacks or with method dedicated to my attributes for eg. def fetched upd = nil v =read_attribute(:fetched) if (v) upd = DateTime.at(v) else upd = DateTime.now end end def
2005 Oct 05
3
Shopping Cart: SKU and Product Confusion
Hi there, I''m at a loss... I was on the #ROR channel last night and spoke to a really helpful person (Defiler) who gave me some direction on building a shopping cart. Unfortunately, I wasn''t able to successfully get to where I need to go. This is the predicament I am currently finding myself in: I''m building a shopping cart for a client''s new website. They
2010 May 26
3
Counting indexes
Hallo! I have a vector of ID's like so, id <- c(1,2,2,3,3,3,4,5,5) I would like to create a [start,stop] pair of vectors that index the first and last observation per ID. For the ID list above, it would look like 1 1 2 3 4 6 7 7 8 9 I haven't worked with indexes/data manipulation much in R, so any pointers would be helpful. Many thanks! ~~~~~~~~~~~~~~~~~~~ -Robin Jeffries Dr.P.H.
2012 Aug 15
3
Subsetting with missing data
Simply put, I want to subset the data frame 'a' where 'y=0'. > a <- as.data.frame(cbind(x=1:10, y=c(1,0,NA,1,0,NA,NA,1,1,0))) > a x y 1 1 1 2 2 0 3 3 NA 4 4 1 5 5 0 6 6 NA 7 7 NA 8 8 1 9 9 1 10 10 0 > names(a) [1] "x" "y" > table(a$y) 0 1 3 4 > table(a$y, useNA="always") 0 1 <NA> 3 4
2010 Oct 10
2
GC verbose=false still showing report
I must be reading the help file for gc() wrong. I thought it said that gc(verbose=FALSE) will run the garbage collection without printing the Ncells/Vcells summary. However, this is what I get: gc(verbose = FALSE) used (Mb) gc trigger (Mb) max used (Mb) Ncells 267097 14.3 531268 28.4 531268 28.4 Vcells 429302 3.3 20829406 159.0 55923977 426.7 I'm embedding this in an
2010 Apr 21
1
Cross-checking a custom function for separability indices
Hi list! I have prepared a custom function (below) in order to calculate separability indices (Divergence, Bhattacharyya, Jeffries-Matusita, Transformed divergene) between two samples of (spectral land cover) classes. I need help to cross-compare results to verify that it works as expected (since I don't know of any other foss-tool that will give me quickly some results). Does anybody
2010 Nov 07
2
How is MissInfo calculated? (mitools)
What does missInfo compute and how is it computed? There is only 1 observation missing the ethnic3 variable. There is no other missing data. N=1409 > summary(MIcombine(mod1)) Multiple imputation results: with(rt.imp, glm(G1 ~ stdage + female + as.factor(ethnic3) + u, family = binomial())) MIcombine.default(mod1) results se (lower upper)
2007 Jun 16
3
data.frame and subsetting problem
I have read the R online help and wiki and I cannot seem to get something to work the way I need it to. I want to create a new data frame from an subset of an existing data frame which has no reference to the original superset. If you following this example, what I am trying to do may make more sense. I have a file with values like this: shirt,size,40 shirt,color,10 shirt,length,10
2007 May 10
3
[LLVMdev] T-Shirts: Last Call
To: Everyone That Ordered A T-Shirt Or Wants One If you want a T-Shirt but haven't ordered yet, you have until the 4pm PST tomorrow (24 hours from now) to let me know or alter your existing order. The T-Shirt is described this way: 437 JERZEES 50/50 Spot Shield Polo 50/50 cotton/poly blend, 5.6 oz. Treated with Spot Shield, most water and oil based stains bead up and roll off. 2-button
2011 Feb 02
2
Help with one of "those" apply functions
Hello there, I'm still struggling with the *apply commands. I have 5 people with id's from 10 to 14. I have varying amounts (nrep) of repeated outcome (value) measured on them. nrep <- 1:5 id <- rep(c("p1", "p2", "p3", "p4", "p5"), nrep) value <- rnorm(length(id)) I want to create a new vector that contains the sum of the
2007 Apr 12
1
[LLVMdev] T-Shirts
All, Just to be really clear. The web-site already says this, but .. Despite this message: On Wed, 2007-04-11 at 19:17 -0700, Reid Spencer wrote: > Hi Scott, > > Only attendees can get the T-Shirt as there isn't funds to > ship them all over the place. > > Reid. If you can't attend the meeting you can still get a T-Shirt but you'll have to pay the shipping
2007 Apr 12
3
[LLVMdev] Update: May 25th Developers' Meeting (T-Shirts!)
Hi Scott, On Wed, 2007-04-11 at 18:31 -0700, Scott Michel wrote: > +2 Large T-shirts (me and Mark Thomas, also from Aerospace). Are you confirming Mark Thomas as attending then? Only attendees can get the T-Shirt as there isn't funds to ship them all over the place. Reid. > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at
2011 Jun 09
3
Resources for utilizing multiple processors
Hello, I know of some various methods out there to utilize multiple processors but am not sure what the best solution would be. First some things to note: I'm running dependent simulations, so direct parallel coding is out (multicore, doSnow, etc). I'm on Windows, and don't know C. I don't plan on learning C or any of the *nix languages. My main concern deals with Multiple
2006 Mar 20
5
Sortabls onUpdate function
I have this code. <script type="text/javascript"> Sortable.create(''orderable'', {onUpdate: doAlert}); function doAlert() { alert("Hello"); } </script> But when I move an item it doesn''t fire the doAlert command, am I missing something?
2007 Mar 29
2
FLAC: FLAC T-shirt
Hi, I found some messages on the Internet there was a FLAC T-shirt. Is this T-shirt still available, because I'm really interested. If it is, where can it be ordered? thanks in advance! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/flac/attachments/20070329/69437f9c/attachment.html
2003 Aug 05
1
T-shirt ideas
Digium is planning to make some Asterisk/Digium t-shirts. We'd like to have people submit t-shirt designs from which we might select one in addition to whatever we might come up with on our own. 1) The t-shirt should be primarily for Asterisk but should contain the Digium logo somewhere, too. 2) Designs will need to be disclaimed. Just send your design ideas to webmaster@digium.com and
2004 May 25
3
thanks again
Achim: Thanks again for the conference. We had good fun. I have 2 requests: 1) I'd like to email my R-foundation membership to you. I will scan the form and send just like I did for the meeting. 2) I want a useR t-shirt. After lots of drinking and discussion with Fritz Leisch at dinner on saturday, I feel there will be no chance for an official T-shirt. My question is: any advice/
2015 Mar 13
4
Re: Name resolution not working inside virt-customize
On 03/13/2015 01:29 PM, Richard W.M. Jones wrote: > > I wonder why dhclient doesn't create /etc/resolv.conf . > FWIW, I've also found that on the fedora 21 host, supermin passes all 8 "make check" tests. On the Ubuntu 14.04 host, it fails 2 of 8. The log is attached. Additionally there are other weird differences, like /etc/passwd and /etc/shadow and many other /etc
2013 Mar 03
1
Ordering Table Columns
cdouglass wrote > Hello all, > > Totally new to this and I'm just doing a frequency distribution analysis > on T-shirt sales by size. I have a .csv with 60 orders. I read in the > data using read.csv. If I look at the summary() or table() of the data it > looks fine, except that the shirt sizes are alphabetical rather than from > S-XXL--so the bar graph loses the shape