similar to: Using Classes in Rails

Displaying 14 results from an estimated 14 matches similar to: "Using Classes in Rails"

2006 Sep 05
2
question about passing array of AR objects to worker
got a wierd problem maybe someone can help with. whenever i try to pass an array or AR objects to my worker, i end up with a DRb object in the worker...here''s an example class SearchWorker < BackgrounDRb::Rails attr_reader :resources def do_work(resources) logger.info resources.inspect end end class SearchController < ApplicationController def start_search
2010 Oct 01
0
Can't plug usb device
Hi I'm trying to hotplug an usb device into kvm but the device is not attached this is the definition: cat kingston.xml <hostdev mode='subsystem' type='usb' managed='yes'> <source> <vendor id='0x1131' /> <product id='0x1001' /> </source> </hostdev> the attach and detach
2010 Apr 27
3
[LLVMdev] Proposal for a new LLVM concurrency memory model
On 27 April 2010 17:28, David Greene <dag at cray.com> wrote: > The compiler integrates into a comprehensive programming environment. > It has to know what the environment provides and uses.  That _is_ very much > the compiler's responsibility. I agree the compilers should know about threads, but enough to work around the issues and not start creating threads the user
2010 Apr 27
0
[LLVMdev] Proposal for a new LLVM concurrency memory model
On Tuesday 27 April 2010 12:16:26 Renato Golin wrote: > I'm not against enhancing the compiler to that point, I just think > that you're digging too deep and Balrog might show up unexpectedly. > Thread issues can be daunting by themselves, automatically creating > threaded code is a recipe to disaster, IMHO. Eventually all compilers are going to have to create threads. The
2007 Jun 28
1
ThreadError from DRb server
Hi there, I''ve just started using aaf for searching and it''s running well apart from one error I received: A ThreadError occurred in person#search: current thread not owner (druby:/localhost:9010) /usr/lib/ruby/1.8/monitor.rb:274:in `mon_check_owner'' (druby:/localhost:9010) /usr/lib/ruby/1.8/monitor.rb:274:in `mon_check_owner''
2007 Mar 13
1
Rcmdir does not work in SciVews-R
Hi, I have recently installed version 2.4.1 of R and also installed SciViews-R 0.8.9. It worked fine. Then I installed the Rcmdr 1.2-7 from CRAN . However the 'R commander menu' in the dockable panel does not work. If I start Rcmdr in R without SciViews, it works perfectly. Is there any way that I can use Rcmdr with SciViews? Many thanks in advanve. Kihwang
2005 May 27
2
Possible bug not deleting files
I am using rsnapshot <http://www.rsnapshot.org/> to make snapshots of my filesystem. rsnapshot uses rsync to do all the heavy lifting. I was recently browsing my snapshots and discovered that none of the excluded files or files deleted in the source are getting deleted from the snapshot. rsnapshot calls rsync like this: /usr/bin/rsync -a --delete --numeric-ids --relative --delete-excluded
2007 Jun 28
3
acts_as_ferret and capistrano
Hi, I''d like to share the ferret indexes between deployments of a Rails app. At the moment the index is stored in #{RAILS_ROOT}/index meaning that it gets moved and must be rebuilt after every deploy. I guess the simplest solution would be to put it under log/ which is already shared by capistrano, any other ideas? Also, script/ferret_stop doesn''t work when run on a fresh
2006 May 14
0
Invoke .Net WebService error in RoR
I have written a webservice: ----------- Service.cs ---------------- using System; using System.Web; using System.Web.Services; using System.Web.Services.Protocols; [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] public class Service : System.Web.Services.WebService { [WebMethod] public string HelloWorld(string name)
2006 Aug 01
1
xmlattr use .net web service from ruby problem
I have a WSDL and used to wsdl2ruby to create the default.rb and defaultdriver.rb ****************************************************************** the method that i''m calling class representation is: # {http://home.setup/abs}DeliverMessage class DeliverMessage @@schema_type = "DeliverMessage" @@schema_ns = "http://home.setup/abs" @@schema_qualified =
2010 Apr 27
0
[LLVMdev] Proposal for a new LLVM concurrency memory model
On Tuesday 27 April 2010 11:01:16 Renato Golin wrote: > On 27 April 2010 16:46, David Greene <dag at cray.com> wrote: > > It shouldn't be very hard for the compiler to detect the second case. > > It's a pretty straightforward pattern.  For everything else it would > > have to assume case #1. > > The only problem is that threads are rarely within language
2010 Apr 27
2
[LLVMdev] Proposal for a new LLVM concurrency memory model
On Tuesday 27 April 2010 13:16:14 David Greene wrote: > On Tuesday 27 April 2010 12:16:26 Renato Golin wrote: > > I'm not against enhancing the compiler to that point, I just think > > that you're digging too deep and Balrog might show up unexpectedly. > > Thread issues can be daunting by themselves, automatically creating > > threaded code is a recipe to
2010 Apr 27
2
[LLVMdev] Proposal for a new LLVM concurrency memory model
On 27 April 2010 16:46, David Greene <dag at cray.com> wrote: > It shouldn't be very hard for the compiler to detect the second case. > It's a pretty straightforward pattern.  For everything else it would > have to assume case #1. The only problem is that threads are rarely within language specs, so the compiler would have to choose one particular flavour of threads or
2008 Jun 06
6
Subsetting to unique values
I want to take the first row of each unique ID value from a data frame. For instance > ddTable <- data.frame(Id=c(1,1,2,2),name=c("Paul","Joe","Bob","Larry")) I want a dataset that is Id Name 1 Paul 2 Bob > unique(ddTable) Will give me all 4 rows, and > unique(ddTable$Id) Will give me c(1,2), but not accompanied by the name column.