Displaying 20 results from an estimated 2000 matches similar to: "ActiveRecord Parent-Child relationship bug? config problem?"
2024 Aug 13
1
[PATCH] harden parent-child check in sshbuf.c
This simple additional check hardens sshbuf against linking an
sshbuf into itself as parent/child pair, which could lead to ref
counting issues.
Purely defensive measure. I am not aware that this could happen
somehwere in the code by now.
Okay?
Index: sshbuf.c
===================================================================
RCS file: /cvs/src/usr.bin/ssh/sshbuf.c,v
diff -u -p -u -p -r1.19
2005 Jul 25
2
acts_as_tree and traversing parent/child relationships
I am working on an Rails application that uses a pretty complex
category structure through out the site. I have defined a table to
house all the info and a FK to reference parents within the table
CREATE TABLE categories (
id int(11) NOT NULL auto_increment,
name varchar(50) NOT NULL,
parent_id int(11) default NULL,
constraint fk_category_id foreign key (category_id) references
2004 Sep 29
3
7912G SCCP only?
Mmm...I swear I read somehwere that the 7912G did SIP? Cisco lists it as
an SCCP only phone?
--
Undocumented Features quote of the moment...
"It's not the one bullet with your name on it that you
have to worry about; it's the twenty thousand-odd rounds
labeled `occupant.'"
--Murphy's Laws of Combat
2013 Feb 04
1
Meaning of .noemail extension for CRAN uploads?
Hi all!
I've uploaded two packages to CRAN via FTP [1] about a week ago, and
while one was promptly processed by Brian Ripley (thanks for that!), the
second got the .noemail extension added, and nothing else happened. So I
wonder whether CRAN maintainers are waiting for some action on my side
or whether I should just wait without worrying. (Of course, I did send a
manual e-mail stating I
2001 Aug 27
2
How to use wine, pls documentation pointers needed.
hello:
I have successfully compiled (no problems at all) Wine release 20010824
on Suse 7.2.
I have created the config file as mentioned in the README and man files,
but so far have figured out how to go much farther.
How do I really run a widows application?
It must be some HOWTO or some like this....
What are the documentation/*.sgml files (tried konqueror browser... no
success)?
Some
2006 Mar 10
8
multiple sub categories (parent-child)
hi.
base from the cookbook example, where each categories can have many
recipes,
id like the categories to have multiple sub categories, unlimited
levels.
please show some code, as i am new to Ruby and Ruby On Rails.
thanks
--
Posted via http://www.ruby-forum.com/.
2009 Feb 19
3
Associated child records not created on creation of a parent.
I am trying to create a record with association. Within the create
method, I would also like to pre-populate dependent (has_many) records
from a template in the database.
The child records are <u>mysteriously rolled back </u> if I insert
them in a loop. If I try to insert a single child record, it works.I
have read the books and tried to google my way out of this but am at a
dead
2006 Jul 13
1
How to create a child from a parent
Hi i am trying to figure out what is the best way to do this very basic
thing:
lets say i have two tables: one with parents and one with children.
there is a one to many relation between them.
I scaffolded the parents tabel and i can open each parent. Now i want to
add a link to the ''show'' view which will create a new child record.
In the model i defined the has_many and
2006 Jun 24
2
:limit => Parent / Child Relationship
Hi all,
I trying to find the best way to do the following and I''ll use a blog
with comments for an example.
Blog has many comments
Comments belongs to blog
My question is how to limit the number of comments (child) records read
for each blog (parent) record. Most of the solutions I''ve come up with
are limiting the number of records displayed within the views but the
2006 Jul 20
3
sort_by with via a parent models child
I am having a problem with ruby''s sort_by function. I want to sort a
list of parent model objects based on the children of the parent models.
Normally you might say sortedList = modelList.sort_by { |model|
model[''someAttribute''] }
What I am tring to do is
sortedList = modelList.sort_by{ |model| model.children.find(:first,
order=>"price desc" ).price}
2015 Mar 20
2
Samba AD DC and browsing of shares
----- V?stule no Rowland Penny <rowlandpenny at googlemail.com> ---------
Datums: Fri, 20 Mar 2015 09:19:10 +0000
S?t?t?js: Rowland Penny <rowlandpenny at googlemail.com>
Temats: Re: [Samba] Samba AD DC and browsing of shares
Sa??m?js: samba at lists.samba.org
>>> You can recompile it if you want to, but if you use packages from
>>> your distro, you
2006 Feb 14
8
Assigning has_many child in parent creation question
If I have...
class Parent
has_many :children
end
class Child
belongs_to :parent
end
...then...
* Assigning a _new_ child during parent''s creation saves the child
record with the parent''s id.
child = Child.new
Parent.create(:children => [child])
# Results in child being associated with parent
* Assigning an existing child after a parent''s creation
2012 Nov 03
1
[LLVMdev] import/export functions between Modules
I'm having trouble figuring out how to export/import IR functions at the
C++ API level. I think I've got the linking part figured out, but I need
to get the functions exporting from one module into another. I see how I
can iterate over the functions in one, but I'm not clear on how to
expose this name/reference into the other module.
Is there a simple example/tutorial of this
2005 Dec 21
3
IE/CSS issue using Sortables....but only on the first drag
OK, I''m in need of help :)
I''ve got a bug in IE (whoa!) that I can''t figure out. I think its
CSS-related, but I sure can''t figure out what the problem is.
Go here: http://jerod.ontasksoftware.com/demo/index.php
and drag one of the items in the center listbox. In FF, it works
beautifully. In IE6, it shoots off to the left...but ONLY once. After
2004 Sep 24
3
bug in power.t.test( ) (PR#7245)
Full_Name: Mai Zhou
Version: 1.9.1
OS: Win XP Professional
Submission from: (NULL) (12.222.227.93)
> power.t.test(n=25, delta=0.1, sig.level=1.1, strict=TRUE, type="one.sample")
One-sample t test power calculation
n = 25
delta = 0.1
sd = 1
sig.level = 1.1
power = 1.088311
alternative = two.sided
### power can never be
2014 Nov 24
3
[PATCH] v2v: -i ova: Remove incorrect warning for disks that have no parent controller (RHBZ#1167302).
Don't assume every disk <Item> has a <Parent> field. For floppy disks
this is not the case.
Thanks: Junqin Zhou
---
v2v/input_ova.ml | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/v2v/input_ova.ml b/v2v/input_ova.ml
index 95af2e5..9a9c10a 100644
--- a/v2v/input_ova.ml
+++ b/v2v/input_ova.ml
@@ -187,14 +187,17 @@ object
for i = 0 to
2014 Dec 08
2
Error: mremap_anon(###) failed: Cannot allocate memory
We're running dovecot 2.2.15 with pigeonhole 0.4.6, in a clustered
environment, nfs with proxy and backend on all servers.
I've been seeing some odd errors from lmtp:
Error: mremap_anon(127930368) failed: Cannot allocate memory
It seems to affect specific users, but it doesn't seem to manifest in any
particular way; no user complaints. Just the occasional log message.
I would
2006 Feb 07
3
Creating a new object with a passed in parent?
I have a simple object, Article, which has_one :parent of the same time.
On my Show page for a given article there will be a "new child" button
which will pass the current :id (or the current Article itself) to the
new form. What is the proper way to hide a reference to this parent in
the form so that when it is submitted back, the create method knows what
to do with it?
2011 Nov 01
1
parent folder rX -> child file in it rwx => child file from windows read only????
dear everybody
samba is 3.5.11-79.fc14
is this weird or my logic fails, I was hoping that if a file
has unix 770 then Win clients should be able to write to it
even if parent folder is 750
also if a folder is 770 and a Win client creates a new
folder in it, its unix permissions get set to 755, and yet!
another(different) Win user can just delete this newly
created folder.
with what
2006 Apr 05
2
How to add add child items to parent via parent show view?
I want to know the standard/easiest way to add items to a parent?
Example: comment added to post
I would like this to happen in the ?show? view of post using a form that
is shown when the user clicks the ?add new? button/link. I would also
like validation on the child form with the validation errors appearing
in the post show? view.
Two problems are presented:
1) When the user clicks the