search for: add_

Displaying 12 results from an estimated 12 matches for "add_".

Did you mean: add
2006 Apr 20
4
ActiveRecord: Many-to-Many problem
I am trying to make many-to-may relationship on classes Section and Content. Both Content and Section has: has_and_belongs_to_many :contents and has_and_belongs_to_many :sections and I have an exception when trying to access model properties: "undefined method `add_contents'' for #<Section:0xb745c514>" def add_content_entry @section = Section.find(params[:section_id]) @content = Content.find(params[:content_id]) @section.add_contents(@content) @section.name = ''test'' @section.update redirect_to :action => '...
2014 Nov 22
1
Get rid of printf format warning format ‘%llx’ expects type ‘long long unsigned int’, but argument 2 has type ‘uint64_t’
...nd),"0x%016llx",map[i].addr+map[i].size); + snprintf(begin,sizeof(begin),"0x%016" PRIx64,map[i].addr); + snprintf(size,sizeof(size),"0x%016" PRIx64,map[i].size); + snprintf(end,sizeof(end),"0x%016" PRIx64,map[i].addr+map[i].size); CREATE_NEW_OBJECT; add_s("memory.segment.start",begin); add_s("memory.segment.size ",size); @@ -108,9 +108,9 @@ void dump_e820(struct s_hardware *hardware, ZZJSON_CONFIG *config, ZZJSON **item char begin[24]={0}; char size[24]={0}; char end[24]={0}; - snprintf(begin,sizeof(begin),"0x...
2006 Dec 09
1
manipulate headers?
Hi... Here''s a working Perl script that I want to be able to do in Ruby: use WWW::Mechanize; my $url = "http://host/tt?name=chris"; my $mech = WWW::Mechanize->new(); $mech->add_header( Referer => "http://chrismcmahonsblog.blogspot.com" ); $mech->add_header( Cookie => "messageid=170118; memberid=1007"); $mech->get($url) so the header values for Referer and Cookie are passed with the HTTP GET. There seems to be an add_field method in mechani...
2005 Apr 08
1
TrustedNodes option in TINC
...a new node which will be connected directly to others. A solution could be TLS (signing public keys), but create a PKI is another issue for us. Instead, we have an idea : would it be possible to have a option in tinc.conf like "TrustedNodes=aaa,bbb,ccc" ? With this option : (a) any ADD_EDGE/ADD_SUBNET/ANS_KEY/... will be cancelled if it comes from a non-trusted connection (b) all REQ_KEY will be sent to trusted nodes only. (a) is easy, but we do not know how to manage (b). In net_packet.c and protocol_key.c we see : send_req_key(n->nexthop->connection, myself,...
2005 Apr 23
7
Validation question
Hi all, Is there a way to invoke validations at times other than save, create and update? I know that I can do this by writing my own validation checks using errors.add_[blah], but I''d like to leverage the existing validation code. What I have is two sets of fields in a record, set A and set B. Both sets must be validated on record create. However, the trouble is that after create, fields from both of these sets can be changed, and changed independen...
2016 Jan 19
5
Building SVN head with CMake - shared libraries?
...oncern is that that API is the documented way to use LLVM in an application with CMake so there could be many such clients. > * The way that LLVM components are linked against seems really messy > to me. We have this ``llvm_config()`` macro for linking against > components but also ``llvm_add_library()`` does this too. We don't > need two ways of doing the same thing. I think there should be one > clean way of doing this. > > * If the static libraries are not installed then external projects > that use LLVM via [1] won't build because > ``llvm_map_components_to...
2006 Mar 23
2
Way to iterate over each associtaion
Is there a way with ActiveRecord to get ahold of a collection containing each association? I want to write a rake task that will dump a model and all its related models to yaml. Thanks, Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060323/abdf4305/attachment.html
2005 Jun 28
2
symbol.For problem? (PR#7974)
It seems as though 'symbol.For' does not work correctly. > library("foo") > add(3,4) [1] 7 > sym.add(3,5) Error in .Fortran(symbol.For("add"), as.numeric(a), as.numeric(b), c = as.numeric(0)) : "Fortran" function name not in load table The function 'add' is a R wrapper to a simple fortran 77 subroutine that adds two numbers. In
2012 Jan 04
5
Making a system user member of a Puppet managed group
Hi All, I have a particular requirement where a Puppet managed group needs to have several members that are either local and not managed by Puppet (e.g. mysql) or they reside in LDAP. Apart from running an exec call to "groupmems", is there another way to achieve this? Thanks in advance. Gonzalo -- You received this message because you are subscribed to the Google Groups
2015 Apr 09
5
How can I have new users/groups to include posixAccount/posixGroup schema automatically?
Greetings, Rowland Penny! > well tough, the smbldap-tools were written to do a job, map windows > users to unix users and vice versa. No. smbldap-tools were doing exactly the same as AD do: kept all users in one database. > So what you need now is something to do the same, except you don't have > separate Unix users any more, I never had separate unix users ever (aside from one
2015 Dec 18
0
[ANNOUNCE] iptables 1.6.0 release
...dername in ipv6header for protocols extensions: icmp6: added missing icmpv6 dest-unreach codes added missing icmpv6 codes in REJECT Anton Danilov (1): xtables: SET target: Add mapping of meta informations (skbinfo ipset extension) Arturo Borrero (38): iptables-compat: kill add_*() invflags parameter nft-compat: create a separated object update type to rename chains nft-bridge: fix printing of inverted protocols, addresses nft-bridge: fix inversion of builtin matches iptables: xtables-eb: delete extra 'policy' printf iptables: xtables-...
2007 Jan 23
20
"Found a bug" message when purging services
I attempted the following: resources { service: purge => true, noop => true } service { sshd: ensure => running; iptables ensure => running; } And got the following message: notice: Starting configuration run err: Found a bug: uninitialized constant Parse notice: Finished configuration run in 0.47 seconds When I remove the ''resources'' line, everything works