search for: behaviour

Displaying 20 results from an estimated 16601 matches for "behaviour".

Did you mean: behavior
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 di...
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 di...
2017 Jun 11
3
plspm package error in data frame
...essful. 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 Norm" = c(0, 0, 1, 0, 0, 0, 0, 0) > "Control Beliefs" = c(1, 0, 1, 0, 0, 0, 0, 0) > "Perceived Behavioural Control" = c(0, 0, 0, 0, 1, 0, 0, 0) > "Intention" = c(0, 1, 0, 1, 0, 1, 0, 0) > "Behaviour" = c(0, 0, 0, 0, 0, 0, 1, 0) > TPB_path = rbind(`Behavioural Beliefs`, Attitude, `Normative Beliefs`, `Subjective Norm`, `Control Beliefs`, `Perceived Behavioural Contr...
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 raise a spec error if the example DOES NOT fail. So if it "should do something that'...
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 en...
2017 Jun 12
0
plspm package error in data frame
...A, TPB_path, TPB_blocks, modes = TPB_modes) Error in is_tabular(x) : object 'TPBDATA' not found So we need to know what 'TPBDATA' is. Rui Barradas Em 12-06-2017 00:19, Sarah Sinasac escreveu: > Hello Rui, > I must have missed that line when I copied and pasted my code. > Behavioural Beliefs is: > "Behavioural Beliefs" = c(0, 0, 0, 0, 0, 0, 0, 0) > > Thank you, > Sarah > > On Sun, Jun 11, 2017 at 4:36 PM, Rui Barradas <ruipbarradas at sapo.pt> wrote: >> Hello, >> >> Your code throws an error before the line you've mentio...
2019 Apr 11
3
RFC: Feature: MENU HIDDEN behaviour on ANY key
...boot; it would be preferable if there only specific keys were allowed to interrupt, reducing the probability of unwanted interruption. Even with TOTALTIMEOUT present, there's a delay present as TOTALTIMEOUT has to be large enough to make it useable during intentional boot interruption. *Basic behaviour change* Provide a way to assign "reveal menu" to specific key(s) Provide a default behaviour for unassigned keys (other than current "reveal menu") *Possible user interface change* MENU HIDDENMENUKEY key[,key] MENU HIDDDENKEY key[,key] [command...] Add ANY as an acceptable va...
2009 Mar 13
5
Selecting / creating unique colours for behavioural / transitional data
Dear all, This seems like a 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 th...
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
...ality, related by concept if not by implementation, that one wants to inherit in many different 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...
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...
2009 Jun 19
2
Splitting Data by Row
Hello fellow R users! I wonder if someone can help with what i think should be a simple question but i can't seem to find the answer or work it out. My data set is as such: 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 wan...
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 couldn't speculate them, for a start). If so, I think the code ought to be valid: %1 is *some* i16 bitpattern, wh...
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 c...
2003 Sep 25
2
unexpected change in "locked account" behaviour
...some accounts could no longer log in via ssh using hostbased authentication. The affected accounts were those with "*LK*" in the shadow file's password field (and my actual problem was that I had "*LK*" where I should have had "NP"). I believe the reason for the behaviour change is the change of the default for options.use_pam. The reason I find this particularly strange is that USE_PAM is not even #defined (e.g., UsePam cannot be specified in sshd_config). The code which is being affected by the change is in auth.c: | /* check for locked account */ |...
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
...one 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 aspect(name,&block) Behaviour.aspect << name.to_s yield Behaviour.aspect.pop end end end class Behaviour @@aspect = [] def self.aspect @@...
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
...is 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 10000.047401 jitter(c(0,1,10^4)) # bad behaviour #[1] -92.43546 -1454.61126 8269.53754 jitter(c(-1,0,10^4)) # bad behaviour #[1] -1484.3895 -427.5283 8010.3308 jitter(c(1,2,10^5)) # bad behaviour #[1] 4809.238 10578.561 109753.430 To the OP: I am cc-in...