Displaying 20 results from an estimated 68309 matches for "anyth".
Did you mean:
anyt
2008 Nov 13
6
.with(:anything) issue
Hi,
I''m using a expectation like this :
repository.should_receive(:add_gem).with("test.txt", :anything)
When I run my spec, it fails with the following message :
Spec::Mocks::MockExpectationError in ''MiniGemServer should add a new gem to
the repository after it has been uploaded''
#<MiniGemServer::Repository:0xb11164> expected :add_gem with ("test.txt",
:anything...
2006 Apr 24
3
Regex in HTML
...of regex to handle finding anchor tags in
a bit of html.
This is what I''ve got....
/<[aA][^>]*>[^<]*<\/[aA]>/
I''m planning on using this with a gsub!.
Here is what it has to do....
<html><a href="http://stuff.com" class="link">Anything in here.</a></html>
As you can see, the regex I have will indeed work for this instance. It will
match with ''<a href="http://stuff.com" class="link">Anything in here.</a>''
Except, here is where it fails....
<html><a href=&...
2005 Mar 29
7
Fade Anything Technique (FAT)
Has anyone used the built in FAT (Fade Anything Technique) that exists in 0.11.1
of Rails? I could not find anything in the documentation so I was wondering if
anyone has any code snippets on how they used it?
Thanks for your help.
John
2009 Nov 19
4
Is there an variant of apply() that does not return anything?
There are a few version of apply() (e.g., lapply(), sapply()). I'm
wondering if there is one that does not return anything but just
silently apply a function to the list argument.
For example, the plot function is applied to each element in 'alist'.
It is redundant to return anything from apply.
apply(alist,function(x){ plot each element of alist})
2008 May 23
4
Is there an equivalent to anything() for Hash parameters?
Hi -- is there an equivalent to the anything() method to use with Hash
parameters?
So that the following call:
Model.find( :all, :conditions => "name LIKE ''%rt%''", :order => ''name''
)
Could have the two following successful examples:
Model.should_receive( :find ).with( :all, { :condit...
2010 Jul 12
6
Project Management Solutions
I need to implement a solution and not having ever used anything but
MS Project I would be grateful for a reco on something good. The only
hope would be that its web based but I am open to anything!
Thanks!
jlc
2009 Nov 04
0
[LLVMdev] BasicAliasAnalysis: Null pointers do not alias with anything
On Wed, Nov 4, 2009 at 4:51 AM, Hans Wennborg <hans at hanshq.net> wrote:
>
>
> The reason is that it is unsure whether the null pointer which is passed in
> the call to @foo may alias with %t. Obviously, a null pointer doesn't alias
> with anything, because it's not legal to read or write through it (right?).
I don't remember whether LLVM's language spec says anything different,
but whether null may alias anything is generally platform dependent.
On some platforms, null may actually point to things and be
dereferenced legally...
2006 Nov 28
1
find_by_contents never finds anything on my model
...ferret and aaf.
Anyhow, I''m using the aaf plugin on a model named Book. This model isnt
a typical rails model in the fact that it doesnt have an "id" column as
its primary key but instead has a string column named ISBN that is used
as the primary key. When I try to search for anything in the model
using find_by_contents it never finds anything. Trying to troubleshoot,
I added an id column in my model as an integer and made it auto
increment. Once I added this, added my sample data back in, and rebuilt
my index, I noticed that I could search all of a sudden using
find_by_con...
2009 Nov 04
5
[LLVMdev] BasicAliasAnalysis: Null pointers do not alias with anything
...er = load i32* %p ; <--- This should be removed!
%sum = add i32 %before, %after;
store i32 %sum, i32* %p
ret void
}
The reason is that it is unsure whether the null pointer which is passed
in the call to @foo may alias with %t. Obviously, a null pointer doesn't
alias with anything, because it's not legal to read or write through it
(right?).
The attached patch adds this check to BasicAliasAnalysis, and makes the
dead load go away in my test.
Does this seem reasonable, and is my patch doing it the right way?
/ Hans
-------------- next part --------------
A non-te...
2017 May 17
2
DNS (bind_dlz) forwarding not working
>
> Is anything else listening on port 53 ?
I don't think so.
# netstat -npl |grep 53
tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN
27882/samba
tcp6 0 0 :::53 :::* LISTEN
27882/samba
udp 0 0 0.0.0.0:53...
2008 Aug 01
4
DVI + VGA?
I have an LCD monitor with both VGA and DVI connectors on it, and a
video card to match (both connectors). If I want to switch from the
VGA (currently in use) to the DVI, do I need to do anything special
other than switch wires? I didn't see anything in google that was
helpful (though I may not have used a smashing search...).
Thanks.
mhr
2006 Feb 04
4
Test
Ok - I have not gotten anything since 6:03 am this morning. It's now
4:33 pm - has anyone gotten anything?
2014 Dec 23
1
"virsh list" does not show anything after reboot [newbie]
...f21_x86_64_guest2
--file=/var/lib/libvirt/images/guest.qcow2 --cdrom
/workStorage/work/down/f21/Fedora-Live-Workstation-x86_64-21-5.iso
--ram=2048 --force
When runing "virsh list" I see these three guests as running.
Now, I rebooted the machine, and "virsh list" does not show anything.
It turned out that
running "systemctl status libvirtd" showed some error (about some NFS
path which was not found),
and once I fixed that, I restarted the libvirtd, and this time running
"systemctl status libvirtd"
showed that it is running OK. Yet, runnig "virsh list&q...
2009 Sep 29
6
Dualboot CentOS and Windows
Hi,
I have to install CentOS on a spare partition of a laptop with
Windows pre installed. Is there anything I have to watch out for?
Couldn't find anything in the wiki or does the installer handle this
well without me doing some magic, or so?
TIA,
Frank.
2004 Feb 24
1
Inheriting from factors + co.
...ss", 1:10) # works
new("myclass", "Test") # works
new("myclass", factor(1:10)) # fails
While I'm able to specify any object that has a formal class as data part
it won't work with factors or other non-formal classes.
B)
Since it is sufficient to use anything that inherits from "vector" and
"factor", I also tried the following one which seems to be cleaner than
using "ANY" directly.
setClassUnion("myunion", representation("vector", "factor")) #
works
setClass("myclass", represe...
2008 Jul 16
2
anyone know anything about using mod_deflate gzipping with Rails?
Anyone know anything about using mod_deflate gzipping with Rails? I''ve
got it enabled in our .htaccess but it doesn''t seem to handle gzip
anything going through Rails. Any ideas?
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to th...
2011 Mar 17
4
Syslinux 4.04-pre14: anything missing please holler
If there is anything that you think should have been in Syslinux 4.04
which isn't there please holler now.
-hpa
--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.
2006 Aug 13
7
you can pass multiple parameters using link_to? anything bad
...n pass mutiple parameters from views like
<%= link_to doctype.name, :action => "show_towns", :id => doctype.name,
:id2 => doctype.id%>
silly me, i always had the impression that i could only pass 1. i guess
i dont have to use sessions after all for my site. is there anything
wrong with this?
basically instead of the user filling out forms(drop down boxes, radio
boxes etc), i just what them to click on links that gets passed to the
contoller etc...and depending on what the selected, that will be used
for the query. is there anything wrong with this approach?
th...
2006 Jan 04
7
<% if ... -%> What is this?
I seen some RoR code that went like this:
<% if ...blah, blah... -%>
.. blah, blah
<% end -%>
What are the minus signs for in the if statement? Cannot seem to find
anything about this, and searching on "-" in this context is hard to get
anything meaningfull back.
Thanks,
- Mark
--
Posted via http://www.ruby-forum.com/.
2009 Sep 07
1
Why this statement does not print anything in an if-statement that includes 'q()'?
Hi,
I run the following script. I don't understand why the second
'length(args)' does not show anything but the first one shows '0'. Is
it because the command 'q()' affects anything in the if-statement.
However, if I change the second 'length(args)' to
'print(length(args))', the script will print the length of 'args'. Can
somebody let me know what is the di...