search for: myobj

Displaying 20 results from an estimated 49 matches for "myobj".

Did you mean: myob
2016 Apr 14
2
Previously extended schema not working in 4.4.0
On Thu, 2016-04-14 at 18:07 +0100, Jonathan Hunter wrote: > On 14 April 2016 at 13:37, Jonathan Hunter <jmhunter1 at gmail.com> > wrote: > > > # samba-tool dbcheck --cross-ncs > > Checking 4079 objects > > MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk: 0x00290001 > > MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk: 0x0029000a > > MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk: 0x00290004 > > MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk: 0x0009030e > > MYOBJ=value,OU=myou,DC=mydomain,DC=or...
2016 Apr 14
0
Previously extended schema not working in 4.4.0
...--cross-ncs --fix' and it has successfully fixed some errors; there were 110 previously, however there are still 69 remaining after a second pass of dbcheck --fix. The remaining errors seem to be mainly of this form: ERROR: duplicate attributeID values for myattrib in replPropertyMetaData on MYOBJ=object1,OU=myou,DC=mydomain,DC=org,DC=uk Fix replPropertyMetaData on MYOBJ=object1,OU=myou,DC=mydomain,DC=org,DC=uk by removing the duplicate value 0x00290003 for myattrib (keeping 0xbd27f44d5)? [YES] [...] ERROR: incorrect attributeID values in replPropertyMetaData on MYOBJ=object1,OU=myou,DC=myd...
2016 Apr 14
2
Previously extended schema not working in 4.4.0
...y, I haven't yet had problems with samba that have caused me to delve quite so deeply into the DB :) so I'm not as familiar with the range of tools as I could be, sorry!) This has flagged up quite a few errors, all along the lines of: # samba-tool dbcheck --cross-ncs Checking 4079 objects MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk: 0x00290001 MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk: 0x0029000a MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk: 0x00290004 MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk: 0x0009030e MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk: 0x00090001 MYOBJ=value,OU=myou,...
2006 Mar 11
2
how do i retrieve a newly created id
in my code i''m calling save on an object. The id gets created as the object is persisted. How can i retrieve that newly created id? I guess I could query the table again using the other attributes of the object but is there another way? thanks in advance. larry -------------- next part -------------- An HTML attachment was scrubbed... URL:
2009 Sep 02
4
diff of two timestamps
...ave the following problem: I have a csv-file consisting of timestamp values (no dates), e.g.: Timestamp1;Timestamp2; 05:24:43;05:25:05; 15:47:02;15:47:22; 18:36:05;18:36:24; 15:21:24;15:22:04; I need a vector with the difference of the two timestamps, so I read the data with the read.csv-function: myObj <- read.csv("file.csv",header=TRUE,sep=";"). I have then tried unsuccessfully to convert the data to time format (e.g. using the strptime function like date1 <- strptime(myObj[0],format="%H:%M:%S")) to be able to perform a datediff operation. I would be very gr...
2010 Nov 17
2
Reference classes: accessor functions via 'getRefClass(...)$accessors(...)'
Hi there, I''d like to choose between an "static" and "dynamic" access of a reference class field, say ''a''. myObj <- getRefClass("Blabla")$new() Static: myObj$a Dynamic: myObj$a.get() where the function retrieves the data from a database (or some other location), stores it to a buffer and optionally updates the static field value ''a''. I'...
2016 Apr 15
2
Previously extended schema not working in 4.4.0
...successfully fixed some errors; there were 110 previously, however > there are still 69 remaining after a second pass of dbcheck --fix. > > The remaining errors seem to be mainly of this form: > > ERROR: duplicate attributeID values for myattrib in > replPropertyMetaData on > MYOBJ=object1,OU=myou,DC=mydomain,DC=org,DC=uk > > Fix replPropertyMetaData on > MYOBJ=object1,OU=myou,DC=mydomain,DC=org,DC=uk by removing the > duplicate value 0x00290003 for myattrib (keeping 0xbd27f44d5)? [YES] > [...] > ERROR: incorrect attributeID values in replPropertyMetaData o...
2016 Apr 14
0
Previously extended schema not working in 4.4.0
On 14 April 2016 at 13:37, Jonathan Hunter <jmhunter1 at gmail.com> wrote: > # samba-tool dbcheck --cross-ncs > Checking 4079 objects > MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk: 0x00290001 > MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk: 0x0029000a > MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk: 0x00290004 > MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk: 0x0009030e > MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk: 0x00090001...
2006 Mar 07
3
Making an S3 object act like a data.frame
"[.ggobiDataset" <- function(x, ..., drop=FALSE) { x <- as.data.frame(x) NextMethod("[", x) } "[[.ggobiDataset" <- function(x, ..., drop=FALSE) { x <- as.data.frame(x) NextMethod("[[", x) } "$.ggobiDataset" <- function(x, ..., drop=FALSE) { x <- as.data.frame(x) NextMethod("$", x) } > class(x) [1]
2008 Feb 23
1
Set without argument
...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 <- new("MyObj",time=3,traj=matrix(c(1:6,NA,8:12),ncol=3)) imputeMyObj(a) ----------------- I find 'setTime<-' to change le slot time, but it can not work in the case of imputeMyObs since this mehod d...
2011 Dec 03
2
Help! Big problem when using "browser()" to do R debugging?
....e. the Step 1), but also all the (many) remaining lines in that function, as shown below: Browse[1]> [1] "Step 1 is done.." [1] "Step 2 is done.." [1] "Step 3 is done.." Then it automatically quited the debugging mode and when I tried to check the value of "myobj", I've got the following error message: > names(myobj) Error: object 'myobj' not found No suitable frames for recover() ---------------------------------------------------- So my question is: why did one key stroke <ENTER> lead it to execute all the remaining lines in t...
2009 Jan 02
1
"registering" a generic method for a class
...o created an implementation of "print" for this class via: > setMethod("print", "myclass", function(x) { print(paste("a myclass instance with a list of length", length(x at slot1), "in slot1")); }); Now I can create a new object, say via: > myobj <- new("myclass", slot1 = list()); The question now is the difference in output when I type the object name alone on the command prompt vs when I type print(myobj) on the command prompt, as seen below: > myobj An object of class ?myclass? Slot "slot1": list() > print...
2008 Jan 15
0
Help with the generic function "["
Hello Everyone: I'm hoping to get some suggestions on this problem i'm having with subsetting on an R object i've created. I would really appreciate any advice. I've created this simple S3 class: >str(ans) Class 'myObj' atomic [1:45000] 0.0428 0.0423 0.0554 0.0338 0.0345 ... ..- attr(*, "Size")= int 10 ..- attr(*, "Region")= chr "EXON" I create instances of this class by doing something like this: ans <- structure(x,class="myObj", Size=length(i), Region=attr(...
2005 Dec 07
1
Dots argument in apply method
...I ran into the following "problem" when I tried to create an "apply" method for objects of one of my new classes. I've found a way around the problem but I wonder if I did not paint myself into the corner. I'd like your opinion about that. So I have an object "myObj" of class "myClass". I define a new function ".apply.myClass" which is a "myClass" specific version of "apply". The trick is that I would like to have an additional formal argument in .apply.myClass compared to apply. More precisely we have: apply(X,...
2007 Mar 30
2
ANOVA and confidence intervals plot
Dear *, I would like to obtain for each factor of my anova model the "response variable vs factor" plot with means and 95% Tukey HSD intervals. I would appreciate any information on how to do that. Cheers -------------------------------------------------------------------- Max MANFRIN Tel.: +32 (0)2 650 3168 IRIDIA - CoDE, CP 194/6
2018 Aug 09
3
WishList: Remove Generic Arguments
I apologize if this issue has been raised before. I really like object oriented S3 programming. However, there's one feature of object oriented S3 programming that I don't like. Generic functions can have arguments other than dots. Lets say you have an R package with something like: print.myfunction (f, ...) { dosomething (f, ...) } Noting that I use function objects a lot. R CMD
2006 Apr 10
3
Simple act_as template
Hello ! I posted a simple template to show how to add ''act_as_whatever'' to ActiveRecord. I think this might be useful to others as there are some trickery ruby things in this file. Here is the template : http://textsnippets.com/posts/show/384 Gaspard Bucher -- Posted via http://www.ruby-forum.com/.
2005 Aug 29
9
can a class find out it''s instance name?
...be called to find out that this particular instance is named "myVariable"? The reason is that this widget writes some html elements with the Builder. I want one of the elements it writes to be a link to call a method on itself when clicked. I don''t want to hardcode the "myObject.doSomething()" call into there. Binding stuff doesn''t help me because I still need to reference some variable to make the call on in the link. Hope that isn''t too poorly described! Thanks for any insight or suggestions, rahul -------------- next part --------...
2013 Oct 30
2
Huge performance difference between implicit and explicit print
...e), is so much slower than an explicit print (i.e. print(df)) in the example below? I see the difference in both Rstudio and in a terminal. # Construct large df as quickly as possible dummy <- 1:18e6 df <- lapply(1:10, function(x) dummy) names(df) <- letters[1:10] class(df) <- c("myobj", "data.frame") attr(df, "row.names") <- .set_row_names(18e6) print.myobj <- function(x, ...) { print.data.frame(head(x, 2)) } start <- proc.time(); df; flush.console(); proc.time() - start # user system elapsed # 0.408 0.557 0.965 start <- proc.time()...
2016 Apr 11
5
Previously extended schema not working in 4.4.0
Hi, About a year ago (I think I was using v4.2.x at the time), I extended the schema of my Samba AD. This worked just fine and since then I have been able to create and edit objects from my custom schema via ADSIEdit. This worked fine under 4.3.x as well - the last such object I successfully created was just over two months ago, at which point I was running some variant of 4.3.x (probably 4.3.5).