search for: someobject

Displaying 9 results from an estimated 9 matches for "someobject".

Did you mean: some_object
2011 Apr 07
1
Adding text to page margin with lattice graphics
R: 2.12.1 OS X Colleagues I am working with lattice graphics for the first time and I am confused by some aspects of controlling these graphics. The most pressing issue is the following: I can print the graphics without problems with the command: print(MYFUNCTION(SOMEOBJECT) However, I would like to add margin text (this terminology might not apply in this setting). I am able to do so with the following command: print(MYFUNCTION(SOMEOBJECT, page=function(page) grid.text("SOMETEXT", x=0.5, y=0.01))) Two issues: 1. The added text overlaps text in SOMEOBJEC...
2006 Feb 01
7
Explanation of "alias_method"
Hi! I''m trying to extend ActiveRecord''s find method (Rails 1.0, Ruby 1.8.2), but I recognize a strange behaviour of the "alias_method" call. I wrote a very simple script to explain my problem: ------------------------------------------------------ module ActiveRecordExtension def self.included(base) base.extend(ClassMethods) base.class_eval do
2008 May 30
0
Mongrel handler and root_handler
...s describing by the following code say I create mongrel server (see at the end of the email) and have one handler for the root (so shoudl handle all request..) To my surprise the @a in the following code in the Handlder is not the object I expect but a hash containing the name {:a => <SomeObject Instance> } Looking right before the register is called, @a is correct... but looking inside the handler... suddenly it is all different...... I cannot find any doc or why in the code it is behaving that way,.. I am supposing this something due to how mongrel works but cannot figure out...
2004 Feb 27
0
Re: [R] Is there a way to deactivate partial matching in R?
...ley, Thank you for reminding me to the possibility to place the dots as first argument. If this is the solution against partial argument matching, we e.g. cannot safely define a plot method which gives a demo plot in case of no object (because we have to obey the class paramter conventions). plot.someobject <- function(x=NULL, ...) # another example would be paramter pairs where the second one is optional like in plot.someobject(xAndOry, yOptional=NULL, ...) # the standard plot(x, y=NULL, ...) is a safe exception # I agree that such examples can be avoided, but I ran into my problem after 6 ye...
2006 Aug 17
6
Creating Custom Events using prototype
Hi guys! i know prototype can create custom events and can subscribe to it, but is there already a library for this? thanks! -- <script> ////////////////////////////////////////////////////////////////////////////////// REDBAKS=function (){ var b,r,i,a,n="b=''646f63756d656e742e777269746528225"+ "4686572652773206d6f7265207468616e206f6e65207761792"+
2006 Feb 01
2
IE memory fix leak.
By default the prototype.js gives us the function /* prevent memory leaks in IE */ Event.observe(window, ''unload'', Event.unloadCache, false); But there is no unload event in out application as the content of the div keeps changing using the Ajax.Updater function. To handle such a scenario, we''ve added the following lines of code to prototype.js /* prevent
2006 Apr 03
0
documentation question (ri and binding vs. get_binding vd getBinding)
I was reading up on ERB documentation and a snippet on rhtml requiring the use of Object.get_binding caught my attention: ... rhtml = ERB.new("someTemplate") rhtml.run(someObject.get_binding) ... Curious about tools I have at my disposal to learn more about things I don''t know about Ruby, i typed the following into my DOS console: ri get_binding and got the following disappointing message: Nothing known about get_binding Since I know that Object "inherits...
2009 Jan 20
2
problem with writing data to *.xls file
Hi all, I read data from *.xls file and i did some caliculations on that data and now i have to create a column in the same .xls file and i have to insert the data in to the consicutive rows related to the previous data i tried it with *write.xls() *but the thing is it deleted all the columns previously presented in that file and it created a column and inserted data can any one suggest what to do
2011 Mar 22
25
RFC: Splitting up the file{} type functionality.
The file{} type can do all of the following: * manage single files * manage directories * manage symlinks * manage recursive file copies The intersection of all these bits of functionality makes it difficult to understand exactly what is going on when you''re new to Puppet, and even experienced users often don''t know how combining symlinks/content management is going to work.