similar to: ActiveRecord and Form Data Coupling: A Bad Design

Displaying 20 results from an estimated 4000 matches similar to: "ActiveRecord and Form Data Coupling: A Bad Design"

2005 Dec 16
4
Validation with Aggregation
ActiveRecord supports composed_of for value objects which is fantastic but one thing that it doesn''t seem to support (or at least I am unable to find any documentation for) validation of the value objects. For example, given the following: class Message < ActiveRecord::Base composed_of :sender, :class_name => ''EmailAddress'' composed_of :recipient,
2006 Jan 19
2
Easy way to handle form input without a model class?
I have a couple forms that I''d like to be able to validate and automatically populate, but it shouldn''t be based on AR. In fact I often have a bunch of small forms that I can''t really justify writing a whole new model class for anyway. I''d like to validate the form input, and then use rails helpers to automatically populate the form if validations fail.
2005 Dec 30
1
HABTM Dependency Question
I have a habtm relationship like the following: Automobile <--> Options What I want to do is when an option is deleted, make sure that there are no Automobiles that still have that option. It seems simple enough, but I am having a tough time with it. I believe Rails automagically deletes the relationships when the automobile is deleted, but not the other way around. Any help would
2019 Oct 04
4
CentOS 8 network-scripts
On 10/4/19 10:40 AM, Valeri Galtsev wrote: > My impression is younger generation doesn't value rules that > programmers were following 2-3 decades ago. One of which is: > > Do not make any changes [in the program] unless they are absolutely > necessary. > I have in the past agreed with this assessment more than once.? And I _am_ somewhat of an old hand at this, having run
2019 Oct 04
5
CentOS 8 network-scripts
Once upon a time, Ljubomir Ljubojevic <centos at plnet.rs> said: > Bridge for VM's is main reason I hate NM. I now mess with both NM and > br0 controled by network because I use Windows VM on my laptop. As soon > as you disconnect LAN cable your eth and bridge connection are gone and > stupid KVM can not recover and reconnect to newly activated bridge when > you return LAN
2019 Oct 05
2
CentOS 8 network-scripts
On Fri, 4 Oct 2019 at 18:11, Japheth Cleaver <cleaver at terabithia.org> wrote: > > On 10/4/2019 8:17 AM, Lamar Owen wrote: > > On 10/4/19 10:40 AM, Valeri Galtsev wrote: > >> My impression is younger generation doesn't value rules that > >> programmers were following 2-3 decades ago. One of which is: > >> > >> Do not make any changes [in
2007 Apr 19
5
Best practice thoughts: Model helpers, mocks
Hello! I''m pretty new to unit testing, and have only been using RSpec for a few weeks. I found that for my controller specs, my setup methods were getting very long building mocks/stubs for all the model objects I needed to work with. I''ve started creating helpers like the following for each of my models. The "min_" methods are short for "minimum", and
2011 Sep 13
4
S4 vs Reference Classes
Hi, I'm looking for some guidance on whether to use S4 or Reference Classes for an analysis application I'm developing. I'm a C++/Python developer, and like to 'think' in OOD. I started my app with S4, thinking that was the best set of OO features in R. However, it appears that one needs Reference Classes to allow object methods to assign values (other than
2011 Jun 27
1
multiple cluster doesn't work
We're trying to setup 3 PRDM partitions (VMware) across 2 nodes. As long as only one is configured in cluster.conf, there's not problem. As soon as we try to use 2 or more we get issues. It looks the same as bug 636: http://oss.oracle.com/bugzilla/show_bug.cgi?id=636 I posted my cluster.conf and command line results there. I'm including them here in the hopes that someone on this
2017 Oct 11
1
issues with the WD
ood morning, I am reaching out to discus an issue I am having with setting a working directing. I have tried github, stack overload, setwd, getwd, all to no avail. I am used to setting a working directory in 3.1.1 and have yet to get 3.4.1 to work properly. Let me know if there is anyone who I can talk to about this. Thank you so much, My best, Peter Wight, MPA [[alternative HTML version
2006 Nov 07
1
Gregexpr - extract results with lapply
Gregexpr - extract results with lapply Hello, I need to extract sequences of three upper case letters in a string. In other words, in this string: str <-c("ABC", "this WOUld be gOOD") The result I'm looking for is ABC WOU OOD. With gregexpr, I can get the position and length of the sequences gregexpr('[A-Z]{3}',str,perl=TRUE) [[1]] [1] 1
2008 Sep 24
5
Bug#500047: xen-utils-3.0.3-1: domU reboot fails when using DRBD as vbd
Package: xen-utils-3.0.3-1 Version: 3.0.3-0-4 Severity: normal Rebooting from inside domU hangs in initrd: Begin: Waiting for root file system... ... Root file system is not available because underlying DRBD device got deactivated during reboot: $ cat /proc/drbd version: 8.0.13 (api:86/proto:86) GIT-hash: ee3ad77563d2e87171a3da17cc002ddfd1677dbe build by phil at fat-tyre, 2008-08-04
2005 Feb 22
4
Samba Best Practices -- Integration with Active Directory
ood Morning Everyone: This question is a bit different from the run of the mill -- HELP ME I GOT TROUBLE questions here on the list, however I am interested in getting this situation working correctly and also need to understand the basis behind the process so that I can implement it properly and extend it as necessary First off -- Some Background I am running a 150 station lan where all the
2006 Apr 04
1
"uninitialized constant Reloadable" error heads-up
I can''t duplicate this problem on my local machine, but also can''t find any mentions of it on the Gmane archive, so thought I''d just throw in a quick mention in case anyone else comes across it. On Textdrive, using gem rails 1.1, in an app that works fine on my local machine, I get the following error in my production.log: "uninitialized constant
2013 Oct 02
1
R Excel - Microsoft Excel is waiting for OLE action
Hi, I am hoping you may be able to help please? I am trying to use R Excel to run an R script using "RInterface.RunRFile" I have tested this command on basic scripts and they work fine. However when I try to run quite a long script which runs a number of forecasts using the forecast package, linear regressions and then tries to print and excel workbook I get the error Microsoft
2008 May 16
2
heatmap on pre-established hclust output?
Hi, Can someone please guide me towards how to produce "heatmap" output from the output of "hclust" run prior to the actual "heatmap" call? I have some rather lengthy clustering going on and tweeking the visual output with "heatmap" recalculating the clustering every time is not feasible. Thanks, Joh
2016 Jun 07
2
Can't delete emails from or write replies to Inbox
Hi, I'm running Dovecot and Thunderbird, with 2 separate accounts (business and personal). One operates fine, but the other one won't allow me to write replies to the Inbox (so that I can track current threads), and if I move emails to another folder, it copies them instead. New emails do appear in the Inbox. I've checked the permissions on the two Inboxes, and they are the same
2004 Mar 17
1
ANCOVA when you don't know factor levels
Hello people I am doing some thinking about how to analyse data on dimorphic animals - where different individuals of the same species have rather different morphology. An example of this is that some male beetles have large horns and small wings, and rely on beating the other guys up to get access to mates, whereas others have smaller horns and larger wings, and rely on mobility to
2019 Nov 08
2
Enable Contributions Through Pull-request For LLVM
I'm not sure the idea that enabling pull requests will make it easier for new contributors is fully thought out. Just because more people might be familiar with GitHub, doesn't mean it is superior. I've found the workflow on Phabricator to be really easy. I think many people agree that Phabricator is really good, I don't think we would want to get rid of Phabricator and while its
2007 Dec 20
5
[PATCH 0/16] lguest: introduce vcpu structure
this patch makes room for the vcpu structure in lguest, already used in this very same way at lguest64. It's the first part of our plan to have lguest and lguest64 unified too. When two dogs hang out, you don't have new puppies right in the other day. Some time has to be elapsed. They have to grow first. In this same spirit, having these patches _do not_ mean smp guests can be launched