Displaying 20 results from an estimated 8000 matches similar to: "validate_uniqueness_of builds queries with IS NULL when value is nil (since RC 5)"
2008 Mar 18
0
Case sensitive validate_uniqueness_of isn't working
Hi,
validate_uniqueness_of has the option :case_sensitive, this option is
true by default, there are tests to check that :case_sensitive =>
false is working, but there isn''t any test to check that, when set to
true (the default!), is working, in fact it doesn''t work at.
There isn''t a database agnostic way to do a case sensitive search,
there is in myql (binary like)
2010 Jun 15
8
Allow blank on should validate_uniqueness_of
Hello,
Using shoulda, any ideas how to allow blank when having this test:
should validate_uniqueness_of(:email)
Thanks.
--
J. Pablo Fernández <pupeno-GAtDADarczzQT0dZR+AlfA@public.gmane.org> (http://pupeno.com)
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2006 Mar 26
9
validate_uniqueness_of {combination of fields} ???
I''ve looked at the validates documentation and it appears that validates_uniqueness_of works on only one field at a time. So I can, for example, validate that "sam" is unique to the record set, and that "smith" is unique to the record set.
My problem is that each record includes two fields, the _combination_ of which must be unique to the record set, but each of
2009 Sep 08
1
How to validate_uniqueness_of the joint of two attributes?
Hi,
I have a form that asks users to put in their :first_name and :last_name.
How do I validate that their full_name (first_name + last_name) is unique?
Thanks!
Nguyen Anh Hung
Assistant Project Manager/ Consultant/ Business Analyst
Tech Propulsion Labs
Mobile: +84987 005 477
Twitter: http://www.twitter.com/anhhung
Blog: http://www.fresco20.com
Skype: anhhung.n | Yahoo: hero.tuxer | Gtalk:
2006 Feb 11
2
validates_uniqueness_of - how to use multiple values for scope
Hi
I''m trying to create a basic test management tool to organise the manual
testing I have to do. I''m working on the results recording module and have a
problem.
Basically, I want each test result to belong to a test case, a test
environment and a build.
I want to make sure there''s no duplication of results with these 3
properties. If someone tries to enter a new test
2016 Apr 10
0
what is the faster way to search for a pattern in a few million entries data frame ?
Hi Fabien,
I was going to send this last night, but I thought it was too simple.
Runs in about one millisecond.
df<-data.frame(freq=runif(1000),
strings=apply(matrix(sample(LETTERS,10000,TRUE),ncol=10),
1,paste,collapse=""))
match.ind<-grep("DF",df$strings)
match.ind
[1] 2 11 91 133 169 444 547 605 734 943
Jim
On Mon, Apr 11, 2016 at 5:27 AM, Fabien Tarrade
2016 Apr 10
2
what is the faster way to search for a pattern in a few million entries data frame ?
Hi there,
I have a data frame DF with 40 millions strings and their frequency. I
am searching for strings with a given pattern and I am trying to speed
up this part of my code. I try many options but so far I am not
satisfied. I tried:
- grepl and subset are equivalent in term of processing time
grepl(paste0("^",pattern),df$Strings)
subset(df,
2016 Apr 09
0
fast way to search for a pattern in a few million entries data frame
Hi there,
I have a data frame DF with 40 millions strings and their frequency. I
am searching for strings with a given pattern and I am trying to speed
up this part of my code. I try many options but so far I am not
satisfied. I tried:
- grepl and subset are equivalent in term of processing time
grepl(paste0("^",pattern),df$Strings)
subset(df,
2016 Apr 10
5
what is the faster way to search for a pattern in a few million entries data frame ?
Hi Duncan,
> Didn't you post the same question yesterday? Perhaps nobody answered
> because your question is unanswerable.
sorry, I got a email that my message was waiting for approval and when I
look at the forum I didn't see my message and this is why I sent it
again and this time I did check that the format of my message was text
only. Sorry for the noise.
> You need to
2012 Mar 21
1
Invitation à se connecter sur LinkedIn
LinkedIn
------------
J'aimerais vous inviter ? rejoindre mon r?seau professionnel en ligne, sur le site LinkedIn.
Fabien
Fabien Dupont
Architecte Syst?me Unix/Linux chez CEA
France
Veuillez confirmer que vous connaissez Fabien Dupont?:
https://www.linkedin.com/e/h24oga-h02h13s2-1w/isd/6381163954/lTfQQJ_9/?hs=false&tok=2oumAa6oXER581
--
Vous recevez des invitations ? vous connecter
2018 Feb 27
0
Re: [PATCH] v2v: remove MAC address related information
In this case, shouldn't that be done by the upload-disk API ? When you
upload a VM, oVirt knows what to do with it and handle the locking and any
operations required to make the VM an oVirt VM.
On 27 February 2018 at 13:53, Tomáš Golembiovský <tgolembi@redhat.com>
wrote:
> On Tue, 27 Feb 2018 13:43:59 +0100
> Fabien Dupont <fdupont@redhat.com> wrote:
>
> > We can
2018 Sep 25
0
Re: OpenStack output - server_id
On my current instance, the meta_data.json is the following:
{
"availability_zone": "nova",
"devices": [],
"hostname": "ims-host-1",
"keys": [
{
"data": "ssh-rsa
2003 Dec 17
0
help: samba server don't work in embeded linux
hi all,
I want to use samba as a file server in some embeded enviroment, becase I have only 8M flash to hold file system of linux, so I have to
put samba files into harddisk.
we mount the harddisk as /mnt/c,mkdir samba in /mnt/c, and mkdir
bin,lib,log,pid,codepage in /mnt/c/samba.
we put smbd,nmbd in /mnt/c/samba/bin
we put all the lib files needed in /mnt/c/samba/lib and make all the
2006 Jan 31
11
ez_where plugin updated features.
Friends-
I wanted to let people know that there is a new experimental release
of this plugin. I would love feedback on syntax and features. There
is now a full test suite with fixtures that covers all the available
syntax. Look at the test suite for more syntax possibilities. There
have been many additions since my last release. Fabien Atelier has
been working on this with me and has
2003 Aug 26
2
French Translation of the Shorewall Setup Guide
Thanks to Fabien Luciole, there is now a French version of the Shorewall
Setup Guide (http://shorewall.net/shorewall_setup_guide_fr.htm).
Thanks Fabien!!!
-Tom
--
Tom Eastep \ Shorewall - iptables made easy
Shoreline, \ http://shorewall.net
Washington USA \ teastep@shorewall.net
2018 Oct 04
1
Re: OpenStack output workflow
New code tries SIGTERM first, with a grace period of 30 seconds:
https://github.com/ManageIQ/manageiq-content/pull/433.
On Wed, Sep 26, 2018 at 6:10 PM Richard W.M. Jones <rjones@redhat.com>
wrote:
> On Wed, Sep 26, 2018 at 04:57:19PM +0200, Fabien Dupont wrote:
> > It's not virt-v2v-wrapper that kills virt-v2v, it's ManageIQ. We have the
> > PID from
2005 Feb 08
0
NetBIOS wildcard queries repeated by wireless access points
I am trying to resolve a problem with NetBIOS wildcard broadcast queries
being relayed/repeated by around 50 US Robotics wireless access points.
The APs only re-broadcast wildcard queries from our samba3 server - our
numerous windows 2003 servers do not appear to use wildcard broadcast
queries (if they do, they are not causing the same problems).
Any help would be appreciate as this problem is
2010 Jun 07
3
Model validation giving problem
Hi,
I have a member registration form which takes a "Name", "Login",
"Password", "Confirm Password" and "Location". In the user model I have
added the validation
validate_uniqueness_of :login, validate_presence_of :password, :name,
:confirm_password.
When the member tries to register every thing working fine. I am using
same form for user to edit
2020 Jan 26
2
Vacation use different SMTP server
Thanks for idea but it won't work for me as 'internal domains' can be
anything, including gmail.com (and i don't know which of them are
really internal/local, this is decided by sending SMTP everytime
something is sent, based on MX records). Problem is that Dovecot/Sieve
is using wrong SMTP server (one used for receiving e-mails which
should NEVER be used for sending [and
2020 Jan 28
0
Vacation use different SMTP server
Really no more info?
Cit?t azurit at pobox.sk:
> Thanks for idea but it won't work for me as 'internal domains' can
> be anything, including gmail.com (and i don't know which of them are
> really internal/local, this is decided by sending SMTP everytime
> something is sent, based on MX records). Problem is that
> Dovecot/Sieve is using wrong SMTP server