Displaying 20 results from an estimated 300 matches similar to: "Fwd: [PATCH] Remove warning in expectation.rb"
2006 Jul 12
4
error when using plugin discover
When I run ./script/plugin discover to register new plugin sites I get
stopped at this point with the following error.
...
http://svn.northpub.com/plugins/
http://rhnh.svnrepository.com/svn/public/rails/plugins/
(eval):3:in `each'': undefined method `[]'' for nil:NilClass (NoMethodError)
from /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/plugin.rb:658:in
2010 May 26
2
Avoiding Loops When Iterating Over Statement That Updates Its Input
Since `for' loops are slow in R, and since `apply' functions are
faster, I was wondering whether there were a way to use an apply
function?or to otherwise avoid using a loop?when iterating over a
statement that updates its input.
For example, here's some such code:
r.seq <- 2 * (1 / d$Dt[1] - 1)
for (i in 2:nrow(d)) {
rf <- uniroot(bdt.deviation, interval=c(0, 1),
2011 Feb 16
5
validates_inclusion_of with range on ruby 1.9
I found out today that Range#include? behaves differently on 1.9 than on 1.8 ( http://rhnh.net/2009/08/03/range-include-in-ruby-1-9 )
In order to deal with various edge cases, instead of just checking whether range.first <= value <= range.last, in ruby 1.9 include? steps through all the values in the range, checking for equality.
This is of course a lot slower - in my case, checking a date
2007 Jan 24
0
Mocha 0.4 released
So I finally got round to releasing a new
version<http://rubyforge.org/frs/?group_id=1917&release_id=9184>of
Mocha <http://mocha.rubyforge.org/>. Much of the functionality has been
available for some time if you''ve been using the Rails plugin based on
subversion HEAD, but now you can get it in all in a gem (or other package).
The most recent changes centre around allowing
2007 May 04
1
ASA-2007-013: IAX2 users can cause unauthorized data disclosure
> Asterisk Project Security Advisory - ASA-2007-013
>
> +----------------------------------------------------------------------------------+
> | Product | Asterisk |
> |----------------------+-----------------------------------------------------------|
> | Summary | IAX2
2007 May 04
1
ASA-2007-013: IAX2 users can cause unauthorized data disclosure
> Asterisk Project Security Advisory - ASA-2007-013
>
> +----------------------------------------------------------------------------------+
> | Product | Asterisk |
> |----------------------+-----------------------------------------------------------|
> | Summary | IAX2
2006 Jun 30
9
User engine problems with 1.1.4 + Test driven development??!
The following two posts (at the bottom) were posted to engine-
users@lists.rails-engines.org and suggests further issues with 1.1.4
I''m forwarding it here for two reasons:
1. Just a heads-up that 1.1.4 breaks engines that are customised.
login/user_engine are probably almost as widely deployed as Typo, and
if you''ve done any controller-level customisation, 1.1.4 appears to
2011 Feb 17
2
Newbie Rccp module question. "Failed to initialize module pointer"???
Hi all. I started looking at Rcpp, which looks pretty great, actually. At the
moment just trying to compile a module to get a feel how it all works without
fully understanding how all the pieces fit together.
Basically, i took the first example from Rcpp modules vignette:
fun.cpp
========================
#include <Rcpp.h>
#include <math.h>
using namespace Rcpp;
double
2006 Jun 21
26
Implementing a boolean "switch" in a Class
I need a single boolean which would be "globally" accessible to all
instances of a class. Seems like the boolean should be in the class
prototype, but I was troubled by the difficulty of setting the prototype
boolean to true. Maybe I''m missing something?
var MyObject = Class.create();
MyObject.prototype = {
bSwitch: false,
... other methods and properties
}
var oMyOb1
2010 Mar 01
1
[LLVMdev] RegisterPass isAnalysis parameter
On Feb 26, 2010, at 7:42 PM, Tom Prince wrote:
> You cannot refer to anything in anonymous namespace by name from
> another file, however, if you have a pointer, say, then you can
> still use the
> pointer.
Yes, that would make sense, except I don't see any pointers being
passed. The relevant line in lib/Transforms/Hello.cpp is:
static RegisterPass<Hello>
2011 Apr 11
1
Edate and EOmonth
Hi,
I was wondering if anyone could point me to the excel look alike "Edate"
and "eomonth" functions in R. I have found the "timeLastDayInMonth" and
"timeFirstDayInMonth" in the "timeDate" package. However, I am looking
for a bit more flexibility. I would like to be able to obtain dates and
EOM dates "n" months prior/forward to the
2007 Jul 21
0
Fwd: Tagging Mocha 0.5.x
Mocha 0.5.2 now tagged in svn repos.
Begin forwarded message:
> From: James Mead <james.mead at mail.com>
> Date: 21 July 2007 10:21:11 BDT
> To: Zach Dennis <zach.dennis at gmail.com>
> Subject: Re: Tagging Mocha 0.5.x
>
> Hi Zach,
>
> Thanks for pointing that out. I''ve just tagged 0.5.2 and will try
> to retrofit earlier tags as soon as I can.
2004 Apr 02
1
isolinux - memdisk problems
I had posted the problem described below about two weeks ago,
and I would like to add some odd behaviour even on machines where
the zip image is loaded correctly (without divide by zero).
If I call DOS fdisk, when booted from the image, fdisks asks
if it should enable the large disk support and the returns
immediately to the command prompt.
regards
--
Bernhard Treutwein
2005 Apr 25
0
-test68, -stable and ldap
Hello Timo,
Thanks to your patches, LDAP authentication now works with -test68.
However, I'm still experiencing a segmentation fault with today's
snapshot of -stable, as shown in the following gdb backtrace. [I'm
still running FreeBSD 5.3]
Can you see where it comes from ? Is it because the ldap new code (as
in -test68) hasn't been backported into -stable yet ?
Thank you,
--
2006 May 17
1
IMAP server <defunct> (beta 7)
Hi,
We've been using a 0.99 version of Dovecot for nearly a year without
problems, but due to a server death I had to reinstall with the same
configuration as before, but more recent versions of the software, on
different hardware.
This time though, every few days IMAP login and access fails, and the
output of ps ax shows entries such as [imap-login] <defunct> and
[imap]
2000 Jun 07
2
samba head
I was wondering if anyone could help me out.
I read the Samba-PDC LDAP howto for both the HEAD
and TNG samba versions. Since it appears the TNG
LDAP stuff isn't functional, I wanted to try to
setup samba using the older HEAD schema.
I have tried several times to to compile the
10/15/99 samba on a linux box using the 2.2.14
kernel, but I consistantly get the same compile
error. I have
2007 Jun 15
0
Fwd: [ mocha-Patches-11583 ] Mocha 0.5.0 throwing unexpected warnings, one line patch included
Begin forwarded message:
> From: <noreply at rubyforge.org>
> Date: 15 June 2007 10:44:07 BDT
> To: noreply at rubyforge.org
> Subject: [ mocha-Patches-11583 ] Mocha 0.5.0 throwing unexpected
> warnings, one line patch included
>
> Patches item #11583, was opened at 2007-06-14 21:28
> You can respond by visiting:
> http://rubyforge.org/tracker/?
>
2006 Mar 09
0
RE: extending an existing DOM object in a prototypeway
Gosh darn Outlook seems to have stripped some newlines from my
response... last few lines should read...
var myActiveSpanBase = new ActiveSpan({"red"});
Object.extend($(''someSpan''), myActiveSpanBase);
$(''someSpan'').setup();
Or, more concisely...
Object.extend($(''someSpan''), new ActiveSpan({"blue"});
2010 Feb 23
1
Problem with strptime generating missing values where none appear to exist
Dear R Helpers,
I am having difficulty with strptime. I wish to find the differences between
two vectors of times. I have apparently no difficulty to convert the vectors
to the appropriate format using strptime. But, then difftime does not
calculate all the differences.
Here is the code and output:-
dob=strptime(as.character(datx$BDT),'%d-%b-%y'); dob$year=dob$year-100
2006 Mar 09
0
RE: extending an existing DOM object in aprototypeway
..lol... and I screwed up the option... one more time...
var myActiveSpanBase = new ActiveSpan({color: "red"});
Object.extend($(''someSpan''), myActiveSpanBase);
$(''someSpan'').setup();
Or, more concisely...
Object.extend($(''someSpan''), new ActiveSpan({color: "blue"});
$(''someSpan'').setup();