Displaying 20 results from an estimated 300 matches similar to: "how to monkeypatch Hash's = method, revisted"
2008 May 15
1
How to monkeypatch in a plugin
Hi all,
I''m working on a plugin that enables automatic profiling and
benchmarking for unit tests. I need to monkeypatch
Test::Unit::TestSuite to redefine the run method. Based on the example
I see at http://svn.jthopple.com/plugins/count_limit_associations, I
thought I should be able to simply open the class in question in
/lib/profile_tests.rb, e.g.
module Test
module Unit
2003 Jan 21
0
pam_smbpasswd fails, HP-UX 11i (revisted)
A co-worker of mine (Cliff Green <green@UMDNJ.EDU>) managed to get this
thing to build. What he changed to get it to do so is the following:
configure:
Change all of the references to "<module>.so" to "<module>.$SHLIBEXT."
This, to me, seems to be common sense. Anyone know why this wasn't done?
(Particularly, PAM_MOD="bin/pam_smbpass.so")
2000 Feb 15
0
print problems revisted
I was able to partially debug the problem i was having
I was trying to print the stuck documents in /var/spool/samba but kept
getting error messages saying that the documents where unprintable.
I accidently tried the lpr -v option thinking it was for Verbose info...
That fixed it! Now I just have to figure out why samba is saving my
documents in
raster format. I had a suggestion to try different
2006 May 22
1
FXS Caller ID revisted
Hi All, posted last week but didn't get any responses. I'm trying to figure
out why some of our analog phones aren't showing CID when hooked up to
asterisk. To recap, I have an Aastra Powertouch 350, which shows caller ID
fine when connected to the PSTN, but when hooked up to asterisk, CID does
not show. I've hooked up another phone to the same * port that the Aastra
phone is on,
2007 Mar 05
3
postgres barfage revisted
First of all, I''d like to do what I''ve seen several others here do:
thank Ezra and any other contributors for producing a really great
plugin. Even though I''m having some minor problems, this is all so
approachable and easy to work with and dig into... I hate to think of
the hoops you''d need to jump through (both as creator of such a system
and as a user) to
2004 Nov 19
1
Problem calling rsync from java on OSX
rsync and ajug lists,
been pulling my hair out on this one.
i have some java code which uses the Process object to spawn an rsync
connection in --daemon mode.
the exact same command executes properly when run from outside java (i.e
.on the command line) on osx. it also executes correctly from within
java on linux using a similar jdk (sun 1.4.1 vs sun 1.4.2 for osx)
here is example code:
2004 Nov 19
0
[AustinJUG] Problem calling rsync from java on OSX
yeah, i tried that already.
specifcially, mine was:
/*
String cmd[] = new String[5];
cmd[0] = "/usr/local/bin/rsync";
cmd[1] = "--daemon";
cmd[2] = "--config=/Users/dlippolt/.azerup/rsyncd.conf";
cmd[3] = "--address=127.0.0.1";
cmd[4] = "--port=2873";
*/
as an aside, i dont have my head fully wrapped around the real
2010 Sep 08
2
Rails 2.3.9 breaks sessions with Active Record or Memcache store
A Rails 2.3.9 app with Active Record or Memcache session store will never
send the session ID cookie to a client if the client doesn''t send any HTTP
cookies in its requests. Rails integration tests didn''t catch this because
they always send the HTTP_COOKIE header, even if it''s empty.
This is a huge bug, as it can break keeping sessions on sites which don''t
set
2008 Jan 30
1
Can before_filter using Proc and specify block ?
Hi,
I see from this post
http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/97e333daab05b725/8252c90cb9c36f6d?lnk=gst&q=passing+parameter+before_filter#8252c90cb9c36f6d
it can specify the Proc in the before_filter function, but when
specify when action apply this filter, it raise an syntax error, such
as rthe following code
before_filter {|controller|
2008 Mar 25
0
ActionMailer and Sender validation frameworks ( DKIM or SPF )
What''s the directors'' take on ading DKIM or SPF functionality into
ActionMailer. Is that a function that is better addressed via a
plugin, or would an extension or a monkeypatch of this class be an
appropriate avenue of pursuit?
Steven
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on
2006 Aug 28
2
[Bioc-devel] Sweave windows style path (was Re: texmf error on 7 packages on devel winXP build nodes)
>>>>> On Sun, 27 Aug 2006 07:45:00 -0700,
>>>>> Martin Morgan (MM) wrote:
> [A build system misconfiguration at Bioconductor lead to a discussion
> about whether \usepackage{Sweave} should be included in .Rnw
> documents. Leaving this line out causes a problem on Windows, as
> indicated below.]
> I think the problem is '~', which
2012 Apr 13
0
[LLVMdev] Support for "foreign" Visual Studio 64 bits C++ exceptions?
On Thu, Apr 12, 2012 at 2:02 PM, Jérôme Couture-Gagnon
<Jerome.Couture-Gagnon at fabricengine.com> wrote:
> Hi,
>
> We are currently porting our application to Windows 64 bits (amd64), and we
> are getting regressions from 32 bits relatively to LLVM 3.0's ability to get
> traversed by "foreign" Visual Studio C++ exceptions. That is, there is a
> crash when C++
2008 Apr 17
1
Callback Problem: Why to use self.var= instead of @var=
Hi,
I''ve defined the following model:
class Eintrag < ActiveRecord::Base
before_validation :vali
protected
def vali
# self.feld1.reverse!
self.feld2 = self.feld1
end
end
Now I''m wondering why I have to write
self.feld2=self.feld1
and why
@feld2=@feld1
doesn''t work.
I''ve found the thread
2007 Apr 05
0
(open iscsi) initiator crashes
I think I have found the reason for this:
The setup runs just fine until I set the xen dom0 to only use one of the
four CPUs in my machine (actually 2 HT CPUs).
So with
(dom0-cpus 0)
in /etc/xen/xend-config.sxp
this works. The while-loop actually ran fine for 2 days straight.
With
(dom0-cpus 1)
it crashes as described within a few minutes.
I will cc this to the xen-list.
Full thread here:
2008 May 14
0
draggable gets offset on scrolling when its container is position:fixed
hello,
my draggables are located in a DIV which is position:fixed ... so my
"cart" stays always at the bottom of the page. when the page gets a
vertical scrollbar now, then the droppables zone gets an offset of
exactly the scroll ...
the same topic can be found here:
Having problems with "position:fixed; bottom:0%;" and dropzone div''s
Optionen
2010 Jun 19
0
re:Help needed act as commentable plugin urgent
Hi,,
I am facing problem during act as commentable plugin.
i had follwed these two links
http://juixe.com/techknow/index.php/2006/06/18/acts-as-commentable-plugin/
http://juixe.com/techknow/index.php/2006/07/09/comments-on-acts-as-commentable/
error undefined method order in comment_methods.rb.
shall create commentable model?
2012 May 27
0
[LLVMdev] Call in-library only class member
Hi,
I'm trying to call class members which are not used within the original
source code and therefore are not declared within bitcode. An example
would be calling std::vector<T>::size(). Right now I'm using a helper
function, e.g.
int f(vector<int> &v) {
return (int)v.size();
}
However, this solution is not as elegant as I would like it to have,
mostly due to
2011 Mar 30
1
Problem of: Trust relationship between 2 linux domains
Hi,
I've read John H Terpstra's discussion on Google Groups about Trust
Relationship between 2 linux domains.
http://groups.google.com/group/linux.samba/browse_thread/thread/61ca10be6b510910/472abfdb7bf62c34?lnk=gst&q=trust+relationship#472abfdb7bf62c34
Follow these instructions, i 've done but there were errors, can you help
me?
When I used WinXP, it listed 2 domains, but I
2007 May 02
1
rsync --owner=myaccount
Hello Community ,
We will be using rsync to keep data flowing from a data-collection
computer (data belongs to user "det") to a data-processing
computer where the data is to be owned by whichever
account is doing the experiment.
I would like to run rsync and be able to specify the target
UID/GID to use on the command line.
For security reasons, the user doing data processing
does not
2010 Jul 16
0
Sage and R (was: Mathematica and R)
Dear David,
> I managed to install Sage on Windows (via a Linux VM), but I cannot find any documentation on how to use R from Sage. Maybe I
> should use the web interface of Sage to avoid having to install R on the VM.
In the Sage command line, you can type
sage: r?
to get some very basic info, and
sage: r.[tab]
to get various commands. This part of the interface still needs some