search for: rgt

Displaying 20 results from an estimated 37 matches for "rgt".

Did you mean: ret
2012 May 25
0
[PATCH 3/3] gnttab: cleanup
...if ( !(map->flags & (GNTMAP_device_map|GNTMAP_host_map)) || map->domid != rd->domain_id ) continue; @@ -476,6 +475,7 @@ __gnttab_map_grant_ref( struct gnttab_map_grant_ref *op) { struct domain *ld, *rd, *owner = NULL; + struct grant_table *lgt, *rgt; struct vcpu *led; int handle; unsigned long frame = 0, nr_gets = 0; @@ -525,7 +525,8 @@ __gnttab_map_grant_ref( return; } - if ( unlikely((handle = get_maptrack_handle(ld->grant_table)) == -1) ) + lgt = ld->grant_table; + if ( unlikely((h...
2010 Aug 01
0
Picking Part of Large R Object
Dear All, I have imported an HTML document to R (called tables) and wish to select certain pieces of it for processing. The first few lines of the object appear as follows: > tables [[1]] <table id="fs-table" class="gf-table rgt"> <thead> <tr><th class="lm lft nwp"> In Millions of USD (except for per share items) </th> <th class="rgt"> 3 months ending 2010-06-30 </th> <th class="rgt"> 3 months ending 2010-03-31 </th> <th class=&q...
2005 Mar 08
1
To convert an adjacency list model into a nested set model
...\ Bert (2,3) Chuck (4,11) / | \ / | \ / | \ / | \ Donna (5,6) Eddie (7,8) Fred (9,10) The data is than stored in the following form: > lft=c(1,2,4,5,7,9) > rgt=c(12,3,11,6,8,10) > print(Per<-data.frame(emp, lft, rgt)) emp lft rgt 1 Albert 1 12 2 Bert 2 3 3 Chuck 4 11 4 Donna 5 6 5 Eddie 7 8 6 Fred 9 10 To find now the supervisor of an employee all you have to do is to look where the employees lft figure is between lft...
2006 Jul 18
1
Bad values for acts_as_nested_set?
...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 already have a root1 element with lft:1 and rgt:4 (has one child) and add a new root2 (has one child also), it is assigned lft:1 and rgt:4 also! So if I ask for root2.all_children I also retrieve the child of root1! My migration schema: create_table "elements", :force => true do |t| t.column "name", :string t...
2006 Mar 15
5
acts_as_threaded - help ???
...post I get an SQL error: PGError: ERROR: null value in column "root_id" violates not-null constraint: INSERT INTO posts ("name", "updated_at", "body", "depth", "lft", "subject", "root_id", "parent_id", "rgt", "created_at") VALUES(''Richard Nixon'', ''2006-03-14 19:45:58'', ''Erase tape number 2347!'', 0, 0, ''Memo'', NULL, NULL, 0, ''2006-03-14 19:43:00'') We can see NULL values being provided for root_id a...
2009 Aug 19
10
acts_as_list / acts_as_tree / acts_as_nested_set - which one
I am creating forum application which needs usage of acts_as_list or acts_as_tree or acts_as_nested_set. I am unable to decide among these. please could some one recommend from their experience? -- Posted via http://www.ruby-forum.com/.
2005 Oct 12
2
Help with act_as_nested_set
....all_children) #Romance[135], Science Fiction[136] display_children(non_fiction.full_set) #Romance[135], Science Fiction[136], Non Fiction[128], Science[129] Look just plain wrong. I looked at the table, and it''s set up correctly: id | name | parent_id | lft | rgt -----+-----------------+-----------+-----+----- 100 | Mystery | 93 | 3 | 4 101 | Romance | 93 | 5 | 6 92 | Books | | 1 | 22 95 | Science | 94 | 11 | 12 96 | History | 94 | 13 | 14 98 | Software...
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/.
2006 May 12
2
Has many through join table issues
I''m trying to wrap my caffeine soaked brain around has_many :through following along at: http://rails.techno-weenie.net/tip/2005/12/23/teaching_your_blog_model_new_tricks_with_has_many_through I think my models are a little more complex than what fits this narrative. I have a directory of members, each member can belong to multiple categories. The category table references itself
2006 Aug 11
2
[PATCH][XEN] Use a union to pack the dual-short combos in an endian neutral way.
...,7 +545,7 @@ gnttab_prepare_for_transfer( struct grant_entry *sha; domid_t sdom; u16 sflags; - u32 scombo, prev_scombo; + union grant_combo scombo, prev_scombo, tmp_scombo; int retries = 0; if ( unlikely((rgt = rd->grant_table) == NULL) || @@ -561,14 +574,16 @@ gnttab_prepare_for_transfer( } /* Merge two 16-bit values into a 32-bit combined update. */ - /* NB. Endianness! */ - scombo = ((u32)sdom << 16) | (u32)sflags; - - prev_scombo = cmpxchg((u32 *)&am...
2007 Jan 09
0
Bad FCS & hangup
...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 ringing -- Channel 1/1, span 1 got hangup request -- Hungup 'Zap/1-1' -- Accepting call from '80577591759' to '7666686' on channel 3/1, span 3 -- Executing Dial("Zap/63-1", "SIP...
2004 Aug 22
1
changing a windowsxp machine name
...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 machines names to /etc/passwd 6. start samba 7. add new machines to smbpasswd 8. add machines to the domain Greg Andrews -- System Manager RGTechnologies Pty Ltd 606 Skipton Street Ballarat 3350 613 53363603 0417 511 731 andrews@rgt.com.au
2009 Feb 17
8
Converting Acts_As_Tree to Acts_As_Nested_Set
Hello, I have a tree structure that needs to be converted into a nested set. A great deal of work has already been done on the tree items, so maintaining the integrity of the id''s is mandatory. However I need the ability to access entire branches of the tree, which is what Nested set does. Does anyone have any suggestions on how to efficiently transfer the tree to the nested set and
2007 Jan 31
2
has_many :conditions
...s_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 above code, I get the following exception: undefined local variable or method `topic_id'' for Post:Class I''m not interested in whether acts_as_nested_set is a good idea or already has this functionality. It''s just an example. So, can you put ins...
2006 Jun 20
2
Converting from acts_as_tree to acts_as_nested_set
I''m currently using acts_as_tree to display threaded Comments on my forums-like site. It''s waaay too slow to display a page with 1,000 comments, as it''s issuing a TON of selects. I''m pretty sure I want to convert to the nested set model, using acts_as_nested_set or acts_as_threaded. This should give me the performance I''m looking for. The problem,
2006 May 31
1
Help enhancing acts_as_nested_set
...''ll include the entire nested_set.rb file I created. Sorry if this is not the best way to post to this forum. def acts_as_nested_set(options = {}) configuration = { :parent_column => "parent_id", :left_column => "lft", :right_column => "rgt"} configuration.update(options) if options.is_a?(Hash) class_eval <<-EOV include ActiveRecord::Acts::NestedSet::InstanceMethods def self.left_col_name() "#{configuration[:left_column]}" end def left_col_name() "#{co...
2003 May 02
2
Suppressing Scientific Notation
R gurus, Every so often(*) someone asks how to suppress scientific notation in printing, so I thought I'd give it a shot, but I need some help. The formatting decision is made(**) on line 286 of src/main/format.c : if (mF <= *m) { /* IFF it needs less space : "F" (Fixpoint) format */ where mF is the number of characters for "normal" printing and *m is the number
2006 Mar 15
0
Acts_as_nested performance query
...40 | Child 1.1 4 | 2 | 50 | 60 | Child 1.2 5 | 1 | 80 | 130 | Child 2 6 | 5 | 90 | 100 | Child 2.1 7 | 5 | 110 | 120 | Child 2.2 Then if you added a new entry 8, which was a child of 2, for example, you could give it a lft of 121 and a rgt of 122, meaning no full-table re-write. Of course this fails down eventually and does require at least a partial table rewrite (and you''d prob want to do a multiple of more than 10 on the entries to begin with), but it would certainly cut down the probs. Anybody got any comments? There'...
2007 Aug 30
0
WARNING[22292]: channel.c:780 channel_find_locked: Avoided initial deadlock for '0x82f2fe0', 9 retries!
...1 -- Executing Monitor("Zap/30-1", "gsm|/asterisk/out-velton-20070830-181638-7141278-2177-1188486998|bm") in new stack -- Executing Set("Zap/30-1", "CALLERID(all)=1759") in new stack -- Executing Dial("Zap/30-1", "Zap/g2/7141278||RgT") in new stack -- Requested transfer capability: 0x00 - SPEECH Aug 30 18:16:38 WARNING[22292]: channel.c:780 channel_find_locked: Avoided initial deadlock for '0x81b0ba8', 9 retries! -- Called g2/7141278 -- Zap/33-1 is proceeding passing it to Zap/30-1 -- Zap/33-1 is r...
2004 Sep 08
1
curious behavior
...ers 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 . Any and all help appreciated. Greg Andrews System Manager RGTechnologies Pty Ltd 606 Skipton Street Ballarat 3350 613 53363603 0417 511 731 andrews@rgt.com.au