Displaying 13 results from an estimated 13 matches for "mehods".
Did you mean:
methods
2011 Nov 28
4
getting a subdomain name in model.
Hi all,
I am facing problem in getting subdomain name inside the model. The
following is my setup.
I am using cancan for authorization.I wanted a specific condition in
Ability.rb ( the file which is placed in models if we install cancan gem).
Below is the condition I wanted:
=========================================================
user ||= User.new # guest user (not logged in)
if
2009 Aug 20
3
how to categorize continuous variable when useing regression
assume dependent variable y( continuous),independent variable x (
continuous),I try to categorize x with some interval,such that,those
intervals would has most significant different effect on y.
any one knows which method I should apply,I really need some hints,thanks
so much~
[[alternative HTML version deleted]]
2008 Feb 23
1
Set without argument
Hi the list,
I am defining S4 objet. Is it possbile to define a method that change
the slot of an object without using <- ?
My object contain a numeric and a matrix. At some point, I would like to
impute the missing value in the matrix. So I would like to use something
like :
-----------------
setClass("MyObj",representation(time="numeric",traj="matrix"))
a
2007 Nov 14
6
My own methods on model + "extends" problem?
Hello.
I have a UsersController and a Model called User with a "new" method,
like this:
class User < ActiveRecord::Base
def test
return 1 #I can do anything and return any data, the
problem continues.
end
end
The problem is that I cannot access my "test" function from the
controller. It says that the method doesn''t exists.
class
2007 Jan 08
1
fSeries Package
Dear All;
I have used fbmSim to simulate a fbm sequence, however, when I tried to
estimate the Hurst effect, none of the nine procedures gave me an answer
close enough to the real value, which is 0.5 (n=1000). So, would you please
advice,
1. which is the best method to estimate the H among the 9 mehods, R/S,
higuchi or Whittle?
2. how to choose the levels (default=50), minnpts, cutoff values or if there
is any other issues to consider? Would you please send your code if you can
get the right estimate for the attached dataset?
3. I also simulated multiple sequences, but some of the estimated res...
2004 Sep 22
1
S4 methods and polymorophism
Hello R Power Users,
There is a rather large introduction you may skip to go directly to
my question about S4 classes.
I am working on some toy code to help me get in through S4 classes.
Doing this homework, I have some questions about S4 classes. I have
carefully read available help and some additional material such as Robert
Gentleman's slides and special attention to "Programming
2009 Jul 16
12
Find_all_by and find(:all) to only select certain values for a selection box
So....let''s have a look if I understood the issue:
-Find_all_by is actually the same like Find(:all), however Find_all_by
is much shorter and less complicated than the syntax of Find(:all)
-So in my CONTROLLER it says @files = find(:all) however I don''t want
to see all files displayed in my selection box, because I only want to
see the foles whose mandant_id is the same like
2005 Dec 14
0
eager loading all associations
Hi Railers,
Is there a way to specify all relations in a :include option while
find()ing?
I have a model with a lot of associations, and sometimes i would like to
query for all them.
Something like Model.find(params[:id], :include => :all) would be nice.
Alternatively, i don''t know if there is a mehod to retrieve all model''s
associations, to do something like
2009 Jul 02
0
[LLVMdev] JITCodeEmitter plans
...the newer version of the MachineCodeEmitter being
submitted, when it is replaced by the ObjectCodeEmitter. Anyway I have
attached the code for you to look at. It is also a endian speedup patch for
included. The ObjectCodeEmitter patch should hopefully go in this weekend.
There are inline raw*emit mehods, these and the reserveBytes method are
intended on being used by the cpu *CodeEmitters so they just reserve the
maximum instruction length and then use the raw methods to do writing. These
and the endian speedup should help to make the raw mechanics of JIT code
generation a bit faster.
Aaron
20...
2007 Jan 10
3
Fractional brownian motion
Dear All;
I have used fbmSim to simulate a fbm sequence, however, when I tried to
estimate the Hurst effect, none of the nine procedures gave me an answer
close enough to the real value, which is 0.5 (n=1000). So, would you please
advice,
1. which is the best method to estimate the H among the 9 mehods, R/S,
higuchi or Whittle?
2. how to choose the levels (default=50), minnpts, cutoff values or if there
is any other issues to consider? Would you please send your code if you can
get the right estimate for the attached dataset?
3. I also simulated multiple sequences, but some of the estimated res...
2010 May 24
1
Fixed Effects Estimations (in Panel Data)
dear readers---I struggled with how to do nice fixed-effects
regressions in large economic samples for a while. Eventually, I
realized that nlme is not really what I needed (too complex), and all
I really wanted is the plm package. so, I thought I would share a
quick example.
################ sample code to show fixed-effects models? in R
# create a sample panel data set with firms and years
2018 Feb 03
0
as.list method for by Objects
Maybe behavior of 'as.list' in R is not inherited from S?
- From https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=78 , in "the prototype" (S), 'as.list' on a data frame gave a list, not a data frame as given by the default 'as.list' in R. That led to introduction of 'as.list.data.frame'.
- From
2015 Jun 04
0
After the classicupgrade from samba3 to sernet-samba-4.2.1 , users are not able to remote desktop anymore ( bug11061 )
Hello Mario..
first.. sernet has samba 4.2.2 release.
i suspect these settings are for the RDP..
> server services = -winbindd +winbind
> auth methods = winbind, sam
but if u use it like about, remove the auth mehods line.
samba 4.2 with 4.1 winbind beheavor, and a working rdp. :
+ server services = -winbindd +winbind ( and the defaults, see below )
samba 4.2 winbindd with winbind like member server behaivor, and a working rdp :
server services = -dns ( and the defaults, see below )
+...