Displaying 20 results from an estimated 5000 matches similar to: "Monkey Patching a Plugin"
2011 Jul 06
5
Monkey patching a gem (rails_admin, with Rails 3)
Hi.
I''m trying to monkey patch the rails_admin gem.
First, I tried to add a file in config/initializers containing:
RailsAdmin::MainController.class_eval do
def get_sort_hash
CODE HERE...
end
end
It was only loaded once, and then the method from the gem was always
executed instead of mine.
I also tried to add the code in lib/ with the correct line in
config/application.rb to load
2010 Jul 30
1
[PATCH 1/2] Monkey-patch mongrel to fix rails 2.3.5 incompatibility
Signed-off-by: Nicolas Ochem <nicolas.ochem at alcatel-lucent.com>
---
src/config/initializers/mongrel_patch.rb | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
create mode 100644 src/config/initializers/mongrel_patch.rb
diff --git a/src/config/initializers/mongrel_patch.rb
b/src/config/initializers/mongrel_patch.rb
new file mode 100644
index 0000000..ae2bcf4
---
2009 Sep 09
1
Monkey patching +.POSIXt
Hi all,
This summer I've been working with a grad student to bring more of the
date time classes from JODA (http://joda-time.sourceforge.net/) into
R. To make these work seamlessly with existing date time objects, we
need to patch +.POSIXt. (The ruby community uses the term
monkey-patching for this sort of ill-advised, by sometimes necessary,
internal hackery, hence the title.) The problem is
2001 Oct 23
2
installing/running Monkey Island 3 and 4
I have problems running Monkey Island 3 here. Installing it works fine,
but the problems comes when trying to run it. When pressing "Play Game" (I
think that's what the button says), the program just wants to install
DirectX 5.0. I guess that trying to install it is NOT an option, when
you're using wine.
Second, installing Monkey Island 4 is not successful, because you have
this
2001 Feb 03
2
wine and Monkey Island 4
Hi,
today I wanted to start Monkey Island 4 with wine. I'am using cvs version
of wine from today (04.Feb.2001), I also patched the transgaming directx
patch into it.
My system: SuSE 7.0 with KDE2.1beta2, GeForce 2MX with 0.96 NVidia drivers,
Soundblaster PCI 128 (ES1371) with Kernel drivers.
I use wine with installed Windows. My startup command is:
wine "c:\Monkey4\Monkey.exe"
2010 Apr 20
13
why is ActiveRecord tying to select nonex ID column?
I''ve loaded (and updated) thousands of these MeteredUsage records. In
the middle of a run, I suddenly get:
ActiveRecord::StatementInvalid: Mysql::Error: Unknown column ''id'' in
''where clause'': UPDATE `metered_usages` SET `cost` = 12603.46 WHERE `id`
= NULL
I can''t see anything that''s different about this particular record
compared to
2011 Jan 12
3
Secret of Monkey Island SE, steam on wine, crashes on start
I'm wondering if anyone can help me?
I'm trying to run Secret of Monkey Island special edition in Steam on wine with Ubuntu Maverick Meerkat. I can install steam and use it to install the game (after it installs directx), apparently with no problems, but when I try to run the game, a window opens saying "Preparing to launch The Secret of Monkey Island: Special Edition". This
2013 Jun 16
0
Monkey patching a gem's controller method
I want to change the keys Devise is using in flash alerts. (Devise uses
:notice and :alert flash keys, but I want to change them to :success and
:error so that I can display nice green/red boxes with Bootstrap.)
To that end, I want to monkey patch the `set_flash_message` method in
2010 Sep 05
3
Re: Problem when trying to play Monkey Island 2 Special Edition
MI2 starts ok but when I click new game it just kinda freezes, though the music keeps playing. Any ideas? last line is:
wine: Unhandled page fault on read access to 0x7f0c3400 at address 0x68615040 (thread 0034), starting debugger...
Could you post your .wine/user.reg ? the DllOverrides section?
2007 Nov 16
9
Challenge
The original:
http://pastie.textmate.org/private/lqvrlyyvkv2kbugoxtiz6w
Send your submissions to me by email or on #merb. I''ll blog it, and
pick a winner. The winner does not mean it makes it into Merb, just
means I personally like it best.
But it might make it into Merb.
# Scenario:
# You have a simple application that lists all the monkeys at the zoo.
# Every monkey has a
2004 Sep 10
1
Monkey Audio Open Source?
--- Mark Powell <M.S.Powell@salford.ac.uk> wrote:
> Thought this may be of interest to this list:
>
>
http://66.96.216.160/cgi-bin/YaBB.pl?board=general&action=display&num=995374789
>
> Down the bottom the author of Monkey's Audio claims he's going Open
> Source.
that would be great... the list of usable OS audio codecs
is pretty small and more sharing of
2008 Nov 03
17
SQL queries in Rails
Hi...
I want to know the equivalent instructions to insert, update, search
and delete a registry. I know Rails can do it easily Thanks to
ActiveRecord, but here''s the catch: I''m using PostgreSQL. As I''m using
SQL to do the migration (Including the foreign keys), I need to know
if I can use SQL queries to do those actions. Is there an example out
there?
I uncommented
2018 Apr 10
4
[virtio-dev] Re: [RFC] vhost: introduce mdev based hardware vhost backend
> -----Original Message-----
> From: Paolo Bonzini [mailto:pbonzini at redhat.com]
> Sent: Tuesday, April 10, 2018 3:52 PM
> To: Bie, Tiwei <tiwei.bie at intel.com>; Jason Wang <jasowang at redhat.com>
> Cc: mst at redhat.com; alex.williamson at redhat.com; ddutile at redhat.com;
> Duyck, Alexander H <alexander.h.duyck at intel.com>; virtio-dev at lists.oasis-
2008 Jan 21
13
has_many with different primary key
I''ve got quite the ActiveRecord challenge, any help would be
appreciated.
In my current project Companies can have many reviews.
class Company < ActiveRecord::Base
has_many :reviews, :as => :reviewable
end
However, my company table, I have two different IDs to identify my
company.
id - This is the typical id we use for normal stuff
other_company_id - This is the id we use
2004 Jun 28
2
AGI->Exec Problem
Hello,
I am having some trouble with the Asterisk::AGI perl library. It seems
that the AGI->Exec() command is causing me a problem.
Here's the line in my AGI code: $AGI->exec('Record',"$vmfile:wav, 30");
I'm trying to record voicemail to the file name stored in $vmfile with
a silence timeout of 30. However, this is not being parse by AGI or
Asterisk correctly,
2010 Jun 16
2
class methods from module where active rec is involved
I have a module as shown below and when I extend an active record to
use it, I can not access the
primary_key method. In a simple test program using a similar approach
where active record is not involved, access to the class methods seems
to work ok. What can I do to make this work or so that I can access
the class methods ?
##################################
require
2018 Apr 10
2
[virtio-dev] Re: [RFC] vhost: introduce mdev based hardware vhost backend
> -----Original Message-----
> From: Michael S. Tsirkin [mailto:mst at redhat.com]
> Sent: Tuesday, April 10, 2018 9:36 PM
> To: Liang, Cunming <cunming.liang at intel.com>
> Cc: Paolo Bonzini <pbonzini at redhat.com>; Bie, Tiwei <tiwei.bie at intel.com>;
> Jason Wang <jasowang at redhat.com>; alex.williamson at redhat.com;
> ddutile at redhat.com;
2006 Apr 02
5
adding primary_key to join table using migrations
Hi list,
My tag_question_user join table is not currently a full-blown model. It
doesn''t have a primary key - just tag_id, question_id, and user_id.
I now want to add a primary key to this model (because I want to add a
"description" column as well so users can describe the tag.
I''m not sure how to add this using migrations.
Here is what I have:
class AddNotesToTags
2001 Sep 04
1
(no subject)
I am using GNU CCC 2.95 don't know about binutils?
thanks,
warren
-----Original Message-----
From: Uwe Bonnes [mailto:bon@elektron.ikp.physik.tu-darmstadt.de]
Sent: 03 September 2001 17:44
To: wine-users@winehq.com
Subject: Re: (no subject)
Warren Daly <warren.daly@broadcom.ie> wrote:
: Running a Dell Pentium III with Solaris 8.0 for Intel installed. Have X11
: and Flex installed
:
2006 Mar 12
5
AR - Migrations - how to use a varchar as primary key instead of int ?
Hi
I''d like to have a varchar primary key named id instead of the default int
id. Does anyone knows how to specify this from migrations ?
Should I also specify something in the model class ?
thanks!
Thibaut
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060312/797bca4b/attachment.html