Displaying 20 results from an estimated 600 matches similar to: "stuck on testing validation"
2008 Apr 09
5
Peculiar Hpricot error in Rails app
Hi,
I have been stumped by this error Hpricot is generating in my rails
app. The error looks like this:
$ script/console
Loading development environment (Rails 2.0.2)
>> str = ''<p>lorem ipsum <a href="http://dolor.com/">dolor</a> sit amet.</p>''
=> "<p>lorem ipsum <a href=\"http://dolor.com/\">dolor</a>
2011 Jul 20
2
Variable assigned to grep output - missing letter n!
This is kind of odd.
[scarolan at host:~]$ cat loremipsum.txt
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec quis
ipsum sed elit laoreet malesuada. Quisque rhoncus dui vitae eros
euismod fermentum sollicitudin sem scelerisque. Nulla facilisi.
Maecenas mollis pulvinar euismod. Duis viverra pharetra turpis eget
feugiat. Nulla facilisi. Nullam facilisis, felis vitae lacinia
2010 Oct 04
1
Splitting a DF into rows according to a column
Hi,
I'm turning my wheels on this and keep coming around to the same wrong
solution - please have a look and give a hand ...
The premise is: a DF like so
> loremIpsum <- "Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Quisque leo ipsum, ultricies scelerisque volutpat non, volutpat et nulla.
Curabitur consequat ullamcorper tellus id imperdiet. Duis semper malesuada
2008 Oct 27
1
replace a few strings in a text file
Dear all,
I wrote a wrapper to a FORTRAN program using R. The main program uses
a text file (~200 lines) as an input describing the simulation to be
run. I typically generate the file once with the right parameters
using a combination of file(), paste(), cat(). This is fine, and it
works well, however I then need to update only a few values in the
file many times (~200 times,
2023 Oct 17
1
[Bug 1714] New: Stack smash: libnftables does not enforce string length limits for log prefixes
https://bugzilla.netfilter.org/show_bug.cgi?id=1714
Bug ID: 1714
Summary: Stack smash: libnftables does not enforce string
length limits for log prefixes
Product: nftables
Version: 1.0.x
Hardware: x86_64
OS: RedHat Linux
Status: NEW
Severity: major
Priority: P5
2012 May 24
0
Ruby on Rails Tutorial Chapter 6 RSpec tests failing
Hello all:
I''m a RoR newbie who is currently following the Ruby on Rails
Tutorial: Learning by Example book (http://ruby.railstutorial.org/
chapters/modeling-users#sec:adding_a_secure_password). The following
Chapter 6 RSpec tests are failing:
Failures:
1) User [31mFailure/Error:[0m [31mit { should be_valid }[0m
[31mexpected valid? to return true, got false[0m [36m # ./spec/models/
2006 Apr 14
1
Script.aculo.us Effects with callbacks not working as it should.
Hello all!
I''m having a problem which is driving me insane.
It''s probably related to the fact that I''m new to javascript.... :)
Here''s the thing, I have a couple of effects which are all being put
in the queue.
Some of these effects have callbacks; e.g. "afterFinish".
But the calback is being made directly instead of after the effect is done.
The
2005 Aug 24
1
Strange Bug - Dragging a sortable filled with sortable - the bigger one "stays"...
*** don''t know if i''ll be clear... if not, tell me
Hi.
http://favoris.lichenmedia.com/untitled.htm
I don''t know why, but when I drag those sortables (tagged with the handle
handle) filled with the sortables (the lists with lorem ipsum) The
handled-one "stays" where you dropped them.
When you drag the li between the uls that are the big containers, no
2007 May 01
2
Problem validating boolean
Hi
I''ve got a problem validating a boolean and I can''t see what the
problem is. Here''s my model:
class FinanceAgreement < ActiveRecord::Base
belongs_to :asset
validates_presence_of :finance_company
validates_inclusion_of :balance, :in => 0.01..10_000_000
validates_inclusion_of :term, :in => 1..600
validates_numericality_of
2007 Nov 29
3
Stylistic preferences
What are people''s opinions on which of these two styles is better to
use?
1) before
---------------------------
module UserSpecHelper
include GenericSpecHelper
def valid_sms_attributes(phone_number="12345")
{ :phone_number => phone_number }
end
end
describe User, "with phone number" do
include UserSpecHelper
before(:each) do
@user =
2013 Mar 13
0
sync+Rnw+TeXShop, again
Hi All --
I'm not sure this is the natural place for this question, but this list is
the place with the best Sweave-TeXShop-sync discussion so far.
My problem is that sync+Sweave+TeXShop works sometimes and not others, and
it's not consistent. The failure, in which sync from PDF opens the .tex
file instead of the .Rnw file, always comes after a code chunk.
If I start from a simple
2013 Apr 25
0
Reading data from a text file conditionally skipping lines
Hi,
It would be better to give an example.
If your dataset is like the one attached:
con<-file("Trial1.txt")
?Lines1<- readLines(con)
?close(con)
#If the data you wanted to extract is numeric and the header and footer are characters,
dat1<-read.table(text=Lines1[-grep("[A-Za-z]",Lines1)],sep="\t",header=FALSE)
dat1
#?? V1 V2 V3 V4 V5
#1? 38 43 39 44 45
#2? 39
2007 Jan 28
1
omega: $field{sample} clarification
I'm using omega for a sitesearch and currently having a problem trying
to filter $field(sample). At the moment it returns text from the page
header and navigation within the sample, ideally I'd like it to return
only the page content. I've been trying various omegascript commands to
trim the output or seperate the fields and also looking at scriptindex
to control how the xhtml is
2019 Dec 27
5
Delete Phabricator metadata tags before committing
Many git commits in the monorepo look like the following:
[Tag0][Tag1] Title line
Summary:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque mauris neque, porta nec tristique at, sagittis vel nisi. Fusce pharetra nunc et mauris consequat venenatis.
Reviewers: username0, username1
Reviewed By: username0
Subscribers: username2, username3,
2020 Apr 09
3
Delete Phabricator metadata tags before committing
Can we fix this in reviews.llvm.org's fork of phab?
https://github.com/phacility/phabricator/blob/cac3dc4983c3671ba4ec841aac8efac10744a80c/src/applications/differential/conduit/DifferentialGetCommitMessageConduitAPIMethod.php
Seems straightforward(-ish) to drop the relevant fields there, that way
`arc land` automatically DTRT.
Jon
On Fri, Dec 27, 2019 at 11:30 PM Mehdi AMINI via llvm-dev
2010 Aug 28
1
validates_uniqueness_of missing in rails 3.0 rc2?
Has anybody noticed validates_uniqueness_of missing in rails 3.0 rc2? I''m not sure if this is a bug or I''m just doing something wrong.
Here''s what I''m doing.
Class 1:
class Title < ActiveRecord::Base
validates_length_of :language, :is => 3
validates_uniqueness_of :language, :scope => :book_id
validate :language,
2008 Mar 05
3
having trouble specing an ajax request
Do I need to spec an AR. If yes, what is the best way to spec this.
here is the code -
def index
@deals = Deal.paginate(:all, :conditions =>
prepare_search_conditions, :order
=> ''created_at DESC'', :page => params[:page]
)
if request.xhr?
render :update do |page|
page.replace_html "table", :partial =>
2012 Oct 18
2
help in R
Hello Sir/Madam?
I want to reverse the colour distribution . I want the lowest value of error to be in blue and highest in red .
With Regards?
Namrata Mohapatra
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Rplot.pdf
Type: application/pdf
Size: 214037 bytes
Desc: not available
URL:
2006 May 15
3
Building a library system (ActiveRecord question)
I''m rebuilding a library/academic system (including public web) using
excellent Rails. I''m trying to make the most out of ActiveRecord, but
rethinking the database schema spawned some potential issues that may
cause problems down the road, so I want thoughts on this from more
experienced community.
The thing is, all entities in the system have a fixed set of metadata.
At
2020 Jan 02
3
Delete Phabricator metadata tags before committing
I also find the "Reviewed by" tag useful (as well as the review link), for
the same reasons. In fact, I don't even use arcanist to push commits, so I
do it all by hand, and only include the "Reviewed by" and "Differential
Revision" tags.
On Fri, 27 Dec 2019 at 20:55, David Blaikie via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> I don't think