similar to: Picking Part of Large R Object

Displaying 20 results from an estimated 200 matches similar to: "Picking Part of Large R Object"

2006 Jul 18
1
Bad values for acts_as_nested_set?
I moved from acts_as_tree to acts_as_nested_set because I need the all_children method. I''ve seen an alternative way to add this method to acts_as_tree here: http://www.chuckvose.com/articles/2006/05/24/recursive-children But I''d prefer to use the more efficient way of acts_as_nested_set (and not to have to revert to my old code). Anyway, here''s my issue: if I
2005 Mar 08
1
To convert an adjacency list model into a nested set model
Dear R-help I am wondering if somebody wrote some code to convert an adjacency list model into a nested set model. In principal I want to do the same as John Celko mentioned it here with SQL: http://groups.google.co.uk/groups?hl=en&lr=lang_en&selm=8j0n05%24n31%241 %40nnrp1.deja.com Assume you have a tree structure like this Albert / \ /
2005 Oct 12
2
Help with act_as_nested_set
Hi, I''m trying to get act_as_nested_set working, and I''m puzzled. I googled the following http://codefetch.com/cache?url=http://media.pragprog.com/titles/rails/code/r ails-code.tgz <http://codefetch.com/cache?url=http://media.pragprog.com/titles/rails/code/ rails-code.tgz&path=rails-code/ar/acts_as_nested_set.rb&lang=ruby&qy=ruby>
2006 Mar 15
5
acts_as_threaded - help ???
Hi, has anyone successfully used the acts_as_threaded plugin with postgresql? I''m using rails 1.0 and ruby 1.8.4 on linux. Following the screencast on http://www.railtie.net/articles/2006/02/05/rails-acts_as_threaded-plugin , I got to where we''re ready to create our first post, having made the changes to controllers/posts_controller.rb, views/posts/_form.rhtml,
2007 Jan 31
2
has_many :conditions
Is it possible to put conditions relative to the current instance in has_many''s :conditions? For example, in a forum app: class Post < ActiveRecord::Base belongs_to :topic has_many :self_and_descendants, :class_name => "Post", :order => "lft", :conditions => "topic_id = #{topic_id} AND (lft BETWEEN #{lft} AND #{rgt})" end With the
2006 May 31
1
Help enhancing acts_as_nested_set
I''m trying to enhance acts_as_nested_set. Well actually I already have, but I''ve done a hack up job of it. I would like to contribute these enhancements back, but I need a little help. I''m a complete newbie to this stuff. The only thing I new before coming into this project was vanilla HTML. So over the course of two weeks I''ve picked up Ruby, Rails, MySQL,
2006 May 10
1
acts_as_nested_set does not work (in my case).
Hello, I am using acts_as_nested_set. My problem is that the columns "lft" and "rgt" get the value 0 if I create a new entity. If I delete an entity I get negative values (-1, -2, -3) - but for all entities. Is there anything missing? Is there any example for "acts_as_nested_set" in the web? -- Posted via http://www.ruby-forum.com/.
2012 May 25
0
[PATCH 3/3] gnttab: cleanup
- introduce local variables (shortcuts for frequently used <dom>->grant_table) - adjust first parameter of mapcount() - drop lock acquisition from gnttab_get_version() - remove hard tabs and adjust formatting Signed-off-by: Jan Beulich <jbeulich@suse.com> Tested-by: Andrew Thomas <andrew.thomas@oracle.com> --- a/xen/common/grant_table.c +++ b/xen/common/grant_table.c @@
2005 Aug 05
0
Finding by inclusion in nested set
Say I have tasks with a belongs_to association to categories where the later act as a nested set. Now I want to find all tasks belonging to a specific category (given as primary key) or any of its sub-categories. SELECT tasks.*, tasks_category.name FROM categories AS nested_set_categories, tasks LEFT OUTER JOIN categories AS tasks_category ON tasks_category.id = tasks.category_id WHERE
2006 Mar 15
0
Acts_as_nested performance query
Wondering about using the acts_as_nested for a model but concerned about the performance overhead of having to rewrite the table each time and entry is added or removed(and locking it while it''s happening or risking data integrity probs). Wasn''t really familiar with the structure so did a little reading up on it, and one solution to this seems to spreading the table out, so
2011 Nov 23
0
Awesome nested set - how to put there items?
hello guys, I have following structure of the table, where I store items of tree: | id | int(11) | NO | PRI | NULL | auto_increment | | user_id | int(11) | YES | | NULL | | | parent_id | int(11) | YES | | NULL | | | lft | int(11) | YES | | NULL | | | rgt | int(11) | YES
2010 Mar 08
0
betternestedset in rails 3.0
Hi Guys, when i upgraded my rails 2.3.4 to 3.0 my betternestedset is not working. It was working fine in the older version. This is my controller def new cat = Category.new cat.text=''test'' cat.save cat.move_to_child_of(Category.find_by_id(1)) #26 redirect_to :action => ''index'' end It gives me this error : "You cannot move a
2007 Jan 09
0
Bad FCS & hangup
Hello, All! It is a Piece of my log At the moment of a call: Jan 9 09:50:21 NOTICE[10902]: chan_zap.c:8194 pri_dchannel: PRI got event: HDLC Bad FCS (8) on Primary D-channel of span 3 -- Accepting call from '' to '0033444' on channel 1/1, span 1 -- Executing Dial("Zap/1-1", "SIP/3444|60|rgT") in new stack -- Called 3444 -- SIP/3444-0823e6b0 is
2006 Aug 11
2
[PATCH][XEN] Use a union to pack the dual-short combos in an endian neutral way.
The first to members of a grant entry are updated as a combined pair. The following union patch uses a union so updated can happen in an endian neutral fashion. Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com> diff -r 1f611b58729f xen/common/grant_table.c --- a/xen/common/grant_table.c Wed Aug 09 18:53:00 2006 -0400 +++ b/xen/common/grant_table.c Fri Aug 11 12:29:48 2006 -0400 @@ -32,6
2004 Aug 22
1
changing a windowsxp machine name
Howdy All, I need to change the machine names on about 10 machines ( winxp ) on a samba 3.05/redhat9 network ( NO LDAP ) Am I correct in the order I have listed below to accomplish this 1. remove the machines from the domain ( change to a workgroup ) 2. remove the machines from the smbpasswd file ( I can use webmin for this ) 3. stop samba 4. remove the machines from /etc/passwd 5. add new
2007 Aug 30
0
WARNING[22292]: channel.c:780 channel_find_locked: Avoided initial deadlock for '0x82f2fe0', 9 retries!
Hello! I clear remarks in Makefile: DEBUG_THREADS = -DDEBUG_THREADS -DDETECT_DEADLOCKS But same things in CLI: Aug 30 18:16:31 WARNING[22292]: channel.c:780 channel_find_locked: Avoided initial deadlock for '0x82f2fe0', 9 retries! -- Zap/32-1 is proceeding passing it to Zap/31-1 -- Zap/32-1 is ringing -- Accepting call from '2177' to '7141278' on channel
2004 Sep 08
1
curious behavior
Howdy People, I have a small problem with my redhat9-samba3.05 setup. I have various shares which have access to them by valid user = @unixgroup Some of the users in any particular group can get access whilst others cant. The curious thing is that this setup worked happily for some months and then, suddenly, it doesn't. I am now forced to list the users indivdually . I am open to ideas .
2005 Jan 14
1
attaching xp machine to existing domain
Howdy All, I have a problem with a machine which I am trying to connect to an existing samba domain 1. The machine WAS connected to the domain as hrennie$ 2. Removed hrennie$ ( using smbpasswd -x hrennie$ ) from the system. 3. Changed the name of the machine to hrenniedt$ ( found that having a user with the same name as the machine is not a good look ) . 4. Tried to reconnect the hrenniedt$ to
2006 Feb 09
0
domain user + local admin group
Howdy All, My samba server has decided to throw a hissy fit and its quite distressing ( not hair tearing out yet but will be soon ). Samba Version 3.02 To give domain users admin rights to their local machine I have in the past simply made domain users part of the local admin group. Perhaps not the most elegant solution , but it works. I today installed two more machines ( XP sp2 )onto the
2006 Feb 01
2
domain users + local admin group
Howdy All, My samba server has decided to throw a hissy fit and its quite distressing ( not hair tearing out yet but will be soon ). To give domain users admin rights to their local machine I have in the past simply made domain users part of the local admin group. Perhaps not the most elegant solution , but it works. I today installed two more machines ( XP )onto the network and the machines