similar to: Using the database schema to help validate data

Displaying 20 results from an estimated 100 matches similar to: "Using the database schema to help validate data"

2005 Dec 02
8
UserEngine: stack level too deep
Hi, I''m trying to get the UserEngine running. I have installed the LoginEngine, added the essential lines to environment.rb / application.rb and application_helper.rb. Worked fine. Then I did the same with the UserEngine and when trying to set up the db: rake engine_migrate ENGINE=user I get: Migrating engine ''user_engine'' rake aborted! stack level too deep But...
2012 Dec 14
0
Announce: Puppet 3.0.2-rc3 available
Puppet 3.0.2-rc3 is a bugfix release candidate for the 3.x series of Puppet. This release candidate fixes bug #10963. To see a list of the issues addressed by this release, check out the 3.0.2 version in our issue tracter at: https://projects.puppetlabs.com/versions/337 Downloads are available at: * Source https://downloads.puppetlabs.com/puppet/puppet-3.0.2-rc3.tar.gz RPMs are available at
2007 Sep 20
3
Bug? in wxSugar enumerable_controls.rb
Hi, I wanted to use wxSugar enumerable features to add a method for returning checked items'' index to the CheckListBox class : require ''wx_sugar/version'' require ''wx_sugar/wx_classes/control_with_items'' require ''wx_sugar/wx_classes/listctrl'' class Wx::CheckListBox def checked_items # use of find_all method from Enumerable
2008 May 06
3
DO NOT REPLY [Bug 5440] New: 'relative' test fails on SunOs 5.8
https://bugzilla.samba.org/show_bug.cgi?id=5440 Summary: 'relative' test fails on SunOs 5.8 Product: rsync Version: 3.0.2 Platform: Sparc OS/Version: SunOS Status: NEW Severity: normal Priority: P3 Component: core AssignedTo: wayned@samba.org ReportedBy: brianegge@yahoo.com
2007 Dec 28
2
Arity?
Hello, First off, nice improvements hemant! Thanks for all the hard work. I just whipped up a new worker for a scheduled job that sends digest emails. Very smooth. However, moving some of my old backgroundrb into new backgroundrb isn''t going quite as smoothly. I have a import worker that takes a number of parameters and then is started dynamically. Here''s the a
2013 Aug 07
2
[LLVMdev] Scheme on LLVM IR
Hello! I've been trying to implement a simple compiler from Scheme to LLVM IR, and have run into the following problem: In Scheme, any function can be called on any number of arguments, but it should check at runtime for arity errors. I haven't been able to find a way in LLVM IR to access the actual number of parameters a function was called with. I think the following approach might
2005 Mar 07
6
Automatic timestamping in join tables [596]
Hi, A few days ago I submitted the following ticket http://dev.rubyonrails.com/ticket/596 asking that ActiveRecord::Timestamp also apply for the join tables of habtm. The answer was that it was left for milestone 1.x, and since I think that without this functionality rails 1.0 would be incomplete, I''m raising the issue here to discuss it. My use case is very simple, I
2011 Jul 25
4
ipsets
I haven''t debugged this enough to understand what is happening, but I observe the following: someipset = bitmap:ip,mac 1) br0:+someipset 2) br0:+someipset[2] The first 1) doesn''t match anything in rules or tcrules, the second 2) matches fine. (Also using +someipset[1] doesn''t match anything) Is it possible/sensible/feasible to have shorewall figure out the
2010 Jun 11
5
Issues creating tables in mysql tests
Hello, I''m a beginner, so any hints are appreciated; I''m still trying to find my way around Rails code. For a bug I''ve found I need to create a table called "values" so I added this: create_table :values do |t| t.integer :value end among the other table creations in activerecord/test/cases/migration_test.rb. Is that ok? But then, when I run the tests
2013 Oct 10
3
[PATCH net-next v3 5/5] xen-netback: enable IPv6 TCP GSO to the guest
This patch adds code to handle SKB_GSO_TCPV6 skbs and construct appropriate extra or prefix segments to pass the large packet to the frontend. New xenstore flags, feature-gso-tcpv6 and feature-gso-tcpv6-prefix, are sampled to determine if the frontend is capable of handling such packets. Signed-off-by: Paul Durrant <paul.durrant@citrix.com> Cc: Wei Liu <wei.liu2@citrix.com> Cc: David
2006 Jul 05
2
Serialized object behaves weird
Hi! I got a class named EinsatzFilter which I serialized to session. Before saving to session it works afterwards I keep getting the message: "undefined method `to_s'' for #<Person:0x38c6ab8>". "Person" is a from ActiveRecord::Base inherited class. Code: class EinsatzFilter include ApplicationHelper attr_reader :personen, :monat, :projekte, :kunde
2008 Apr 16
0
[LLVMdev] PATCH: Use size reduction -- wave2
On Apr 16, 2008, at 2:50 AM, heisenbug wrote: > > And now here is my educated speculation: > There are 2 things that became slower > 1) Use::getUser() > 2) Use::get/set due to tagging. > > The former is seldom called: > > $ find lib -name "*.cpp" | xargs grep "getUser(" | wc -l > 41 The majority of those aren't actually Use::getUser, but
2008 Jan 16
0
[CruiseControl] RubyOnRails build 8649 failed
The build failed. CHANGES ------- Revision 8649 committed by gbuesing on 2008-01-16 20:07:10 Introducing DateTime #utc, #utc? and #utc_offset, for duck-typing compatibility with Time. Closes #10002 M /trunk/activesupport/CHANGELOG M /trunk/activesupport/lib/active_support/core_ext/date_time/calculations.rb M /trunk/activesupport/test/core_ext/date_time_ext_test.rb TEST FAILURES AND
2007 Aug 06
1
Stubbing Enumerable#each
I have a mock of an instance of a class which descends from Array: class ArrayDescendent < Array; end #... in the specs... @descendent = mock ArrayDescendent How would I stub out ArrayDescendent#each, which is inherited from Array, to return multiple values successively? I could use and_yield, but that is raising an arity error (the anonymous function/ block should expect only *one
2012 Oct 19
0
[LLVMdev] Arity of the callee at each GC safe point
Hi, In my backend I need to know the arity of the callee at each safe point and export it in the .s file. This is needed for properly creating stack descriptors for the calls. I could easily implement that in the frontend for direct function calls but not for indirect calls (through register). Is there a way to do that with the current infrastructure? For example, I tried adding some metadata to
2005 Aug 10
5
validates_format_of on an optional field using :if
Hi there, I''ve got the following in my model: validates_format_of :postcode, :with => /^([a-zA-Z]{1,2}[0-9]{1,2} [0-9]{1}[a-zA-Z]{2})$/, :message => "is not valid", :if => :postcode ... but it''s not working - it always insists on validation, even if postcode is empty. Basically, the postcode field is optional, but if it''s filled in, I want to
2013 Aug 07
0
[LLVMdev] Scheme on LLVM IR
Hi Peter, > Are there any better ways to solve this? Does any of the existing > calling conventions support this? Can't you handle this entirely in the front-end? Just decide by fiat that all of your scheme functions will take an extra (hidden to the Scheme users) parameter saying how many args they were given. That's how C++ deals with the implicit "this" parameter for
2013 Aug 07
1
[LLVMdev] Scheme on LLVM IR
> Can't you handle this entirely in the front-end? Just decide by fiat > that all of your scheme functions will take an extra (hidden to the > Scheme users) parameter saying how many args they were given. That's > how C++ deals with the implicit "this" parameter for class methods. > Then you could either use varargs or bitcast your functions to a > reasonable
2006 Jun 28
2
[PATCH] Bug fixes and additions to scoped_access
I found that scoped_access does not re-evaluate the filters on every run. If you are filtering access based on parameters, this can be bad. The scope is set on the first request and then further requests use the last generated scoping. The initial part of ScopedAccess::Filter#before looks like this: @scoping = controller.instance_eval(@scoping.to_s) if @scoping.is_a?(Symbol) This makes
2009 Feb 23
1
are arithmetic comparison operators binary?
the man page for relational operators (see, e.g., ?'<') says: " Binary operators which allow the comparison of values in atomic vectors. Arguments: x, y: atomic vectors, symbols, calls, or other objects for which methods have been written. " it is somewhat surprizing that the following works: '<'(1) # logical(0) '<'() #