search for: booboo

Displaying 20 results from an estimated 46 matches for "booboo".

2012 Nov 08
1
validates_uniqueness_of(*attr_names) w scope not working in unit test
Rails 3.2.8 Very strange , it works in dv mode console , but not in a unit test class User < ActiveRecord::Base belongs_to :subdomain validates_uniqueness_of :email, :scope => :subdomain_id class UserTest < ActiveSupport::TestCase def initialize_user @booboo = FactoryGirl.create(:subdomain, name: "booboo") @coocoo = FactoryGirl.create(:subdomain, name: "coocoo") FactoryGirl.create(:user, subdomain_id: @booboo[:id], email: "user.doe-PV5Ro7/Mrj4@public.gmane.org", password: "UkZaHWcy", password_confirmatio...
2017 Oct 25
4
Problem Subsetting Rows that Have NA's
On 10/25/2017 4:38 AM, Ista Zahn wrote: > On Tue, Oct 24, 2017 at 3:05 PM, BooBoo <booboo at gforcecable.com> wrote: >> This has every appearance of being a bug. If it is not a bug, can someone >> tell me what I am asking for when I ask for "x[x[,2]==0,]". Thanks. > You are asking for elements of x where the second column is equal to zero. > &gt...
2017 Oct 24
5
Problem Subsetting Rows that Have NA's
This has every appearance of being a bug. If it is not a bug, can someone tell me what I am asking for when I ask for "x[x[,2]==0,]". Thanks. > #here is the toy dataset > x <- rbind(c(1,1),c(2,2),c(3,3),c(4,0),c(5,0),c(6,NA), + c(7,NA),c(8,NA),c(9,NA),c(10,NA) + ) > x [,1] [,2] [1,] 1 1 [2,] 2 2 [3,] 3 3 [4,] 4 0 [5,] 5 0
2017 Oct 25
0
Problem Subsetting Rows that Have NA's
> On Oct 25, 2017, at 6:57 AM, BooBoo <booboo at gforcecable.com> wrote: > > On 10/25/2017 4:38 AM, Ista Zahn wrote: >> On Tue, Oct 24, 2017 at 3:05 PM, BooBoo <booboo at gforcecable.com> wrote: >>> This has every appearance of being a bug. If it is not a bug, can someone >>> tell me what I am...
2008 Sep 25
1
ggplot: adding layer using different data, groups and also controlling appearance
...(unified!) legend: foo.gg <- ggplot ( mapping = aes ( x = x, y = y , colour = membership ) ) foo.gg <- foo.gg + geom_point(data = foo) foobar.gg <- foo.gg + geom_point ( data = bar ) # works fine, creates a unified scale showing "membership" foobar.gg # This does not work: booboo.gg <- foo.gg + geom_point ( data = bar, colour = "black" ) # so far, so good, but... booboo.gg # it will not let me over-ride the colour specifications when it actually tries to construct the graph The error message is: "Error in `[.data.frame`(df, , var) : undefined columns se...
2017 Oct 25
0
Problem Subsetting Rows that Have NA's
On Tue, Oct 24, 2017 at 3:05 PM, BooBoo <booboo at gforcecable.com> wrote: > This has every appearance of being a bug. If it is not a bug, can someone > tell me what I am asking for when I ask for "x[x[,2]==0,]". Thanks. You are asking for elements of x where the second column is equal to zero. help("=="...
2009 May 21
4
Re placing a "+" in a string
I know this is easy, but I am stumped: > gsub("0","K","8.00+00") [1] "8.KK+KK" > gsub("+","K","8.00+00") Error in gsub("+", "K", "8.00+00") : invalid regular expression '+' In addition: Warning message: In gsub("+", "K", "8.00+00") : regcomp error:
2004 Mar 13
2
simple migration 2.8 -> 3.02; simple test cases fail
...file's and "re-add" the machines to get them recognized properly? But I don't see what that would have to do with a user being able to mount a share on the same samba-linux machine and still getting login failures.... Do any of these symptoms sound familiar to some fundamental booboo I'm making? If not, any ideas on what directions to go for debugging other than going back to 2.8 where I'm obviously safer? (sigh).... thanks, -linda
2008 Jun 17
1
Simultaneous Confidence/Prediction Bands
Is there a built-in function in R that will generate simultaneous confidence and prediction bands for linear regression? Tom -- View this message in context: http://www.nabble.com/Simultaneous-Confidence-Prediction-Bands-tp17941537p17941537.html Sent from the R help mailing list archive at Nabble.com.
2009 Feb 01
2
Extracting Coefficients and Such from mle2 Output
The mle2 function (bbmle library) gives an example something like the following in its help page. How do I access the coefficients, standard errors, etc in the summary of "a"? > x <- 0:10 > y <- c(26, 17, 13, 12, 20, 5, 9, 8, 5, 4, 8) > LL <- function(ymax=15, xhalf=6) + -sum(stats::dpois(y, lambda=ymax/(1+x/xhalf), log=TRUE)) > a <- mle2(LL,
2008 Sep 24
1
How do I Convert "<1" to the number 1?
Is there an elegant way in R to change a number reported as a less-than number in text format, "<1" for example, to the numeric equivalent 1? I have been trying to use as.numeric, but have not come up with anything clever yet. Tom -- View this message in context: http://www.nabble.com/How-do-I-Convert-%22%3C1%22-to-the-number-1--tp19651018p19651018.html Sent from the R help
2009 Aug 19
1
moving color key in heatmap
Dear list, I have a question on moving color keys when side color bars are added to a heatmap. The R code below produces the color key in the upper left corner. Notice I have added side bars to the heatmap, but how could I move the color key below the image? ------ library(gplots) data(mtcars) x <- as.matrix(mtcars) rc <- rainbow(nrow(x), start=0, end=.3) cc <- rainbow(ncol(x),
2005 Jun 06
2
Erro message - Received mini frame before first full voice frame
I see this sometimes in the SLI, what does it mean? Jun 6 15:23:27 WARNING[1916]: chan_iax2.c:7326 socket_read: Received mini frame before first full voice frame Chris Mason
2012 Nov 17
0
How to get more debug information in test log ?
...one of my unit tests, I got an error I cannot even start looking for the issue as few information are logged ... Using the test console , there is no error at all : > rails console test >> Loading test environment (Rails 3.2.9.rc3) > site1 = FactoryGirl.create(:cms_site, label: "booboo") >> BEGIN .. .. >> but running my tests > unit > ruby -Itest test/unit/user_test.rb -n "/should_save_user_with_required_fields/" >> STARTED >> Error: test_should_save_user_with_required_fields(UserTest) NoMethodError: undefined method `respond_to...
2008 Oct 14
6
Doing a Task Without Using a For Loop
Assume that I have the dataframe "data1", which is listed at the end of this message. I want count the number of lines that each person has for each year. For example, the person with ID=213 has 15 entries (NinYear) for 1953. The following bit of code calculates NinYear: for (i in 1:length(data1$ID)) { data1$NinYear[i] <- length(data1[data1$Year==data1$Year[i] &
2005 May 11
1
Unable to join W2K pro to samba domain
I am trying to setup a a samba machine as a PDC. There are no windows domains on the network. I just want to startup as a samba PDC so users can login change there passwords access shares and printers. I am running on redhat es 4 with samba version 3.0.10.-1.4E It appears to be working but I can't seem to join a computer to the domain. I am joining a windows 2000 pro machine. I am getting the
2009 Jan 23
2
Dates in Common
I have two collections of dates and I want to figure out what dates they have in common. This is not giving me what I want (I don't know what it is giving me). What is the best way to do this? Tom > data1 [1] "1948-02-24 EST" "1949-04-12 EST" "1950-05-29 EDT" "1951-05-21 EDT" [5] "1951-12-20 EST" "1953-01-22 EST"
2010 Mar 28
3
Ellipse that Contains 95% of the Observed Data
I can take the results of a simulation with one random variable and generate an empirical interval that contains 95% of the observations, e.g., x <- rnorm(10000) quantile(x,probs=c(0.025,0.975)) Is there an R function that can take the results from two random variables and generate an empirical ellipse that contains 95% of the observations, e.g., x <- rnorm(10000) y <- rnorm(10000) ?
2006 Jul 23
3
help jedit
Hi, i was hoping (maliciously enough) if someone has also bumped into this problem. apologies in advance; this isn''t a rails/ruby question, but as i am a newbie developing in RoR and switching to Linux correspondingly, i was referenced to use Jedit as the prefferable editor for rails/ruby. but i have been having some trouble installing it - - i was wondering if anyone had bumped
2018 Oct 10
5
PROPOSAL: Extend inline asm syntax with size spec
On Wed, Oct 10, 2018 at 01:54:33PM -0500, Segher Boessenkool wrote: > It would be great to hear from kernel people if it works adequately for > what you guys want it for :-) Sure, ping me when you have the final version and I'll try to build gcc with it and do some size comparisons. Thx. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the