search for: behaviours

Displaying 20 results from an estimated 16501 matches for "behaviours".

Did you mean: behaviour
2007 May 24
25
Specs for ApplicationController, where to put them?
The Rails ApplicationController (app/controllers/application.rb) serves as an abstract superclass for all other controllers in a Rails application and is a good place to put methods and filters which you want all of your controllers to use. In my case I''m using it to provide methods such as "current_user" and "logged_in?" etc. By default, RSpec
2020 Sep 23
3
jitter-bug? problematic behaviour of the jitter function
Dear all, i have noticed some strange behaviour in the ?jitter? function in R. On the help page for jitter it is stated that "The result, say r, is r <- x + runif(n, -a, a) where n <- length(x) and a is the amount argument (if specified).? and "If amount is NULL (default), we set a <- factor * d/5 where d is the smallest difference between adjacent unique (apart from fuzz) x
2020 Sep 23
3
jitter-bug? problematic behaviour of the jitter function
Dear all, i have noticed some strange behaviour in the ?jitter? function in R. On the help page for jitter it is stated that "The result, say r, is r <- x + runif(n, -a, a) where n <- length(x) and a is the amount argument (if specified).? and "If amount is NULL (default), we set a <- factor * d/5 where d is the smallest difference between adjacent unique (apart from fuzz) x
2017 Jun 11
3
plspm package error in data frame
Hello, I am new to R and hope I will not seem ignorant in this post. I am currently using the plspm package by Gaston Sanchez accompanied by his text book. I have attempted to create a square matrix, which has seemed successful. I used the following code: > "Attitude" = c(1, 0, 0, 0, 0, 0, 0, 0) > "Normative Beliefs" = c(1, 0, 0, 0, 0, 0, 0, 0) > "Subjective
2007 Jun 23
4
inverse examples? (should fail)
The new "pending" example feature reminds me of a feature I''ve been bouncing around in my head, to aid in refactoring. Often, when I''m changing existing behaviour, I know that certain aspects of the old behaviour should change. Imagine changing the "it" method to perhaps "not" or "old" or "removed"... The behaviour would be to
2007 Jan 17
4
changing the default behaviour of to_xml for has-many: associations
I recently submitted a patch to work around an issue I was having & added a new optional behaviour to the to_xml method but on further reflection I wonder if the default behaviour should be changed. The gory detail, documentation and test case is all here... http://dev.rubyonrails.org/ticket/7004 Here''s a brief example... class Person < ActiveRecord::Base has_many: children
2017 Jun 12
0
plspm package error in data frame
Hello, Please allways cc the list, don't answer just to me. Now I'm getting a different error. I had noticed that you have no reference to 'TPBDATA' before the call to plspm but I forgot to mention it in my first e-mail. TPB_pls1 = plspm(TPBDATA, TPB_path, TPB_blocks, modes = TPB_modes) Error in is_tabular(x) : object 'TPBDATA' not found So we need to know what
2019 Apr 11
3
RFC: Feature: MENU HIDDEN behaviour on ANY key
Hello, Here's a small enhancement feature for menu.c32. Looking for feedback before starting any coding (not sure when I'll have time for implementation) Regards, Dany St-Amant *Problem statement* When MENU HIDDEN is used on an headless server, any noise on the serial console can interrupt the boot; it would be preferable if there only specific keys were allowed to interrupt, reducing
2009 Mar 13
5
Selecting / creating unique colours for behavioural / transitional data
...simple problem but i've searched the help files and tried various options but failed, so apologies in advance for asking what i'm sure is an easy thing to do! In short, I have displayed behavioural data using the TraMineR package such that there is a colour change between the transition of behaviours, however, all the methods that i have used thus far have given me gradual changes in colour such that it is impossible to tell the difference from several of the behaviours. I have looked in the help section here, and looked at various books and help files in R, but most seem intent on gradual chan...
2007 Oct 23
10
How is everyone structuring stories?
Bleeding-edge story-writers, How are you structuring your specs? I am working on a new project and tried this: ./lib ./blah ./spec ./blah ./stories But it breaks autotest, so I moved stories parallel to lib and spec. Also what about suffixes? I have adopted "xyz_story_spec.rb", and "xyz.story" for the time being, with the line runner =
2007 Nov 01
8
Specifying mixins
...rent classes (e.g. ActiveRecord models) without having to actually use subclassing -- straightforward enough. But since BDD best practice encourages one expectation per example and no mocking in the behaviour setup, the specification for this shared functionality is often spread across many behaviours, each of which may need to do its own setup and teardown. So, how best to mix the mixin spec in with the spec for each class that uses the mixin (IYSWIM)? I''ve tried several permutations of helpers, spec mixins, shared-shared behaviours and so on, but can''t find anything...
2007 Apr 30
1
[PATCH] Option for activation behaviour on window close
Hi, please find attached a patch that makes the behaviour of window activation when a window is closed optional. Currently, always the last active window is activated. Sometimes this might not be the desired behaviour, but users (like me ;-) ) would like the window under the pointer to be activated. This patch adds the latter behaviour as an option while still keeping the former behaviour as
2009 Jun 19
2
Splitting Data by Row
...Day Time ID Behaviour 1 9 A1 2 1 10 A2 3 .. .. .. .. 4 10 A1 10 4 11 A2 1 .. .. .. .. 30 1 B1 14 30 2 C3 4 So basically i have data for several days, for several times, for several IDs and for several Behaviours What i want to do is get an activity budget for ID from these data, e.g: data <- tapply(Behaviour,list(ID,Behaviour),length) This will give me a count of the number of times an ID does a certain behaviour for all the data, which is great - but i want to work out seasonal and diurnal activity...
2016 Jan 22
2
fptosi undefined behaviour
On 22 January 2016 at 12:20, Tom Stellard via llvm-dev <llvm-dev at lists.llvm.org> wrote: >> 1) I realise this is a somewhat silly question, but is this still >> acceptable "undefined behaviour"? > > Yes, it is. I always thought these out-of-range instructions did produce an "undef" rather than allowing fully-general undefined behaviour (otherwise we
2024 Jan 23
1
Listing behaviour in 4.18
Dear all, Passing from samba 4.17 to 4.18 we noticed a change in behaviour in folder/files listing. In 4.17 when someone had read and open rights for a folder but no write/modify access then the folder would be visible but clicking on any "non-accessible" resource resulted in a message notifying that no access was granted. Since 4.18 the folder is simply completely invisible. I
2003 Sep 25
2
unexpected change in "locked account" behaviour
I just ran into what I'd describe as an unexpected side-effect. I don't think it's necessarily a bug, and I don't need any assistance in working around it, but this information might be useful to others for troubleshooting. This was using OpenSSH built under Solaris 2.5.1, and running under 2.5.1 or 8. The symptom was that after upgrading from 3.7.1p1 to 3.7.1p2, some accounts
2008 Apr 06
1
row by row similarity
Hello all and thanks in advance for any advice. I am very new to R and have searched my question but have not come up with anything quite like what I would like to do. My problem is: I have a data set for individuals (rows) and values for behaviours (columns). I would like to know the proportion of shared behaviours for all possible pairs of individuals. The sum of shared behaviours divided by the total. There are zeros in the data that I would like treated as the behaviour does not exist. example data format: ind B1 B2 B3 B4 B5...
2007 Jun 27
6
Aspects in RSpec 1.0.5
Forgot post this when I did it... For anyone else that used the "aspect" method of the rspec-ext gem, here''s a New World version of the code to drop into spec_helper.rb. (I''m assuming rspec-ext hasn''t been updated since I did this a week or two ago) module Spec module DSL module BehaviourEval module ModuleMethods def
2007 May 04
11
spec template for CRUD?
Hello, Has anyone already come up with a set of shared behaviours that someone could leverage when adhering to a CRUD concept, with respect to controllers? Relatedly, it would be nice if there were a way to share generalized behaviour specs. -Chris
2020 Sep 23
0
[R] jitter-bug? problematic behaviour of the jitter function
Hello, R 4.0.2 on Ubuntu 20.04, sessionInfo at end. This came up in r-help, I'm answering to the OP and also posting to r-devel since I believe it is more appropriate there. I can confirm this. The original instructions are the first and the last, but even with smaller numbers the error shows up. set.seed(2020) jitter(c(1,2,10^4)) # desired behaviour #[1] 1.058761 1.957690