similar to: How do I test a unique index?

Displaying 20 results from an estimated 1000 matches similar to: "How do I test a unique index?"

2006 Nov 29
6
How do I create an array to represent an empty record?
Here''s something that''s a snap to do in desktop database management systems (like Paradox or Access) but I haven''t figured out how to do it in RoR, and can''t seem to find any examples by googling, etc. My overall goal is to create a temporary space in which to create and process a single new record (representating a payment transaction), and when I''m
2006 Aug 18
2
How do I sort the drop-down list?
I''ve added a drop-down list of first and last names of borrowers to a form. How do I sort them by LastName, FirstName in the drop-down? I''m using code based on the cookbook example: <select name="borrower[borrower_id]"> <% @borrowers.each do |borrower| %> <option value="<%= borrower.id %>"> <%= borrower.FirstName <<
2010 Sep 04
3
its easy but i forgot all
my models borrower ----- has_many :loans loan ----- belongs_to :borrower my loans _controller def new @borrower = Borrower.find(params[:borrower_id]) logger.debug '' @borrower.id'' logger.debug @borrower.id @loan = Loan.new respond_to do |format| format.html # new.html.erb format.xml { render :xml => @loan } end
2006 Apr 17
2
binary info in test fixtures?
Hi all, I have a shopping application I am testing, and one of the models is an Order model, within which a credit card number is encrypted and stored in the db (mysql) as a BLOB field. When trying to run my unit tests, I cannot get my model fixtures to load the encrypted data. If, in my dynamic fixture (YAML) file, I could have access to my app''s models, the problem would be trivial..
2012 Jun 13
4
[LLVMdev] Develop on trunk.
On Wed, Jun 13, 2012 at 11:43 AM, Andrew Trick <atrick at apple.com> wrote: > > On Jun 13, 2012, at 7:15 AM, Sergei Larin <slarin at codeaurora.org> wrote: > > Again, this is branch code, but if I can see something wrong in platform > independent portion, I'll track it on the trunk. > > > I hate to be the one to start this thread, but I have to say it at
2005 Aug 17
1
GLM/GAM and unobserved heterogeneity
Hello, I'm interested in correcting for and measuring unobserved heterogeneity ("missing variables") using R. In particular, I'm searching for a simple way to measure the amount of unobserved heterogeneity remaining in a series of increasingly complex models (adding additional variables to each new model) on the same data. I have a static database of 400,000 or
2005 Dec 13
4
find()ing rows w/ NULL columns?
Agile Web Development with Rails doesn''t seem to have NULL in the index [or my eyes have failed me again], and web searching turns up lots of SQL statements containing NOT NULL. I have a table of loans, and I want to record when something was loaned and returned. The loan date can''t be null, or there''d be no entry in the table. The return date must be something
2006 Aug 17
2
validates_length_of with char field
I am new to ruby/rails and am having a problem with validates_length_of. It seems to work fine on a varchar field, but when I try it on a char field the extra characters are silently truncated and the message appears that the record was successfully updated. How can I get my app to produce my error message instead? I''ve tried various variations, but here''s one of my tries:
2006 Aug 18
3
Can I run multiple apps simultaneously?
I would like to compare and contrast code and effects from various different tutorials and sample applications. Can I run, say, a mongrel server from more than one app location? I know I can''t do that if they''re both using port 3000 (I tried), but is it possible to configure some apps to use a different port? Where would I do that? Most of the apps are using mysql databases.
2006 Oct 21
6
test_create gets 200 instead of :success
Help! I have a new/create process that works fine in the actual app. But when I test I always get a failure in the test_create section. Here''s some controller code: def new end def create begin @borrower = Borrower.new(params[:borrower]) if @borrower.save flash[:notice] = ''Borrower '' + @borrower.FirstName + '' '' +
2012 Nov 29
2
Data Cleaning -New user coming from SAS
Hello, this is my first post. I have a large CSV file where I need to fill in the 1st and 2nd column with a Loan # and Account name that would be found in a line of text : like this: ,,Loan #:,ML-113-07,Account Name:, Quilting Boutique,,,,,,,,,,, I would like to place the Loan #: ML-113-07 in the first column and the account name quilting boutique in the second column. If possible I would also
2010 Oct 25
3
Using tapply?
Dear R helpers, I am trying to calculate the Annualized Percent Rate using following R - Code. # ____________________________________________________________________ ## R Code library(animation) # INPUT C = 250000    # Loan Amount E = 2500      # Other Cost R = 6         # Interest rate r = R/1200    # Monthly interest rate q = 12        # No of Compoundings        n = 20        # No of
2012 Feb 07
1
survfit is too slow! Looking for an alternative
Hi All I found survfit function was very slow for a large dataset and I am looking for an alternative way to quickly get the predicted survival probabilities. My historical data set is a pool of loans with monthly observed default status for 24 months. I would like to fit the proportional hazard model with time varying covariate such as unemployment rates and time constant variables at loan
2012 Jun 13
0
[LLVMdev] Develop on trunk.
On Jun 13, 2012, at 7:15 AM, Sergei Larin <slarin at codeaurora.org> wrote: > Again, this is branch code, but if I can see something wrong in platform > independent portion, I'll track it on the trunk. I hate to be the one to start this thread, but I have to say it at least once... General advice. Working off trunk will be less painful than cherry-picking. When it comes to
2012 Oct 16
0
Loan offer at interest rate of 2 % per annun.
Loan offer at interest rate of 2 % per annun. Do you need a loan to clear your debts/bills, or start up a business? Then consider your financial problems over. In today's economic climate, finding reliable funding sources can be frustrating and full of disappointments, but with our sophisticated loan repayment plan, everyone Smiles home. Qatar Loan Finance Foundation provides financing for
2012 Jun 13
0
[LLVMdev] Develop on trunk.
Guys, that was very interesting and useful stuff you preached there. Mind if I make a patch to the FAQ and include it somewhere? "Q: When should I develop against a branch? A: Only if you are making really big or controversial changes. ... blah blah I am thinking that it would be highly useful for the project, if somebody (yours sincerely) took it upon himself to hunt and gather the very
2013 May 29
0
Lloyd Segal
Lloyd Segal Real Estate News 15-year mortgage rate hits record low Mortgage rates dropped again this week, with the 15-year fixed-rate loan hitting a record low, according to a report from mortgage financier Freddie Mac. The 15-year fixed rate fell to 2.56% from 2.61%. A year ago, it stood at 3.07. The most popular mortgage, the 30-year fixed rate, came in at 3.35%, a drop of 0.05 percentage
2007 Mar 24
2
Two Problems while trying to aggregate a dataframe
Hello! Given is an Excel-Sheet with actually 11,000 rows and 9 columns. I want to work with the data in R. The contents are similar to my following example. I have a list with ID-number, personal name and two kinds of loan-values. I want to aggregate the list, that for each person only one row remains and where the loan-values are added. First I tried some commands with tapply but had no
2003 May 09
2
Configuration for ATA186 behind a NAT?
I wonder if someone out there could loan me a peek at their sip.conf? I have conflicting advice, for instance, about whether or not to use "nat=1" and also whether or not the ATA should be registering with the instance of asterisk it is going to be using to dial out. Thanks in advance. B.
2014 Feb 05
3
zoneminder
Is there a package for zoneminder in the std repos (base, rpmfusion, epel), or just on rpmforge? mark "unless someone's got a security DVR to loan us for testing...."