Displaying 20 results from an estimated 1100 matches similar to: "rails memoize and reload class => error raised"
2012 Apr 26
2
Memoize and vectorize a custom function
My goal is simple: calcuate GC content of each sequence in a list of
nucleotide
sequences. I have figured out how to vectorize, but all my attempts at
memoization failed.
Can you show me how to properly memoize my function?
There is a StackOverflow post on the subject of memoization, but it does not
help me:
http://stackoverflow.com/questions/7262485/options-for-caching-memoization-hashing-in-r
2010 Aug 25
2
Why freeze memoization?
I was wondering what was the reasoning behind freezing the Memoizable
return values?
Thanks
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
2016 May 12
0
[PATCH 4/4] lib: qemu: Memoize qemu feature detection.
qemu feature detection takes about 95ms on my laptop. The overhead is
almost all due to the time taken by the glibc link loader opening the
170+ libraries that qemu is linked to (×2 because we need to run qemu
twice).
Fixing that is seriously hard work.
Therefore memoize the results of guestfs_int_test_qemu.
This is keyed on the size and mtime of the qemu binary, so if the user
changes the
2009 Jan 20
5
Problem running rake test
I''m using the One-click 1.8.7rc2 Ruby Windows installer, everything
has been working fine up till now, when i want to start getting into
testing, i got this error, any reason why?
C:/Ruby/bin/ruby -Ilib;test "C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/
lib/rake/rake_test_loader.rb" "test/unit/word_test.rb"
C:/Ruby/lib/ruby/1.8/erb.rb:469:in `scan'': You have a
2010 Sep 23
1
[patch] Properly memoize protected methods
This patch fixes an issue with protected methods becoming public if
they are memoized.
Looking for +1''s and/or a commit by core...
https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/5695
Thanks.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to
2007 Oct 29
1
BackgrounDRb, Schedule and Clean Up
Hey all,
I''ve come accross BackgrounDRb and I have to say it''s a wounderful piece of software. It has the potential to solve so many of the problems that I am facing with a current RoR project.
Like many others I was having issues with the scheduling side of things, I noticed that hemant said there was a new version coming out. So I checked out the version from trunk, and have
2013 Nov 03
3
[LLVMdev] freeing alloca'd variables before function exits
Hi,
In my llvm code I want to create some function calls. The function prototype is as follows:
int memoize ( char *function_name,
int *int_params, unsigned num_ints,
double *double_params, unsigned num_doubles)
In order to create these calls I do the following for example:
%88 = alloca [7 x i8]
store volatile [7 x i8] c"ORACLE\00", [7 x i8]*
2012 Feb 09
0
memoize and invalidation - backwards?
Maybe this is because I''m missing something but it seems to me that
asking users of a memoized method to know when the method needs to be
reloaded is a bit backwards. To me it seems like whoever is messing
with something that affects the results of the memoized function
should be the one that after doing its work should call something like
memoized_method(:reset). Thoughts?
--
You
2013 Nov 04
0
[LLVMdev] freeing alloca'd variables before function exits
Stack colouring should be able to reuse the same stack space, if the live
ranges of the pointers don't overlap. But I don't think anyone has built a
general solution for alloca'd space.
On Mon, Nov 4, 2013 at 6:30 AM, Ali Javadi <aj14889 at yahoo.com> wrote:
> Hi,
>
> In my llvm code I want to create some function calls. The function
> prototype is as follows:
>
2012 Mar 08
5
FXRuby 1.6.23 released
Hi fxruby hackers,
new version 1.6.23 is out with the following changes. Unfortunately
the fxruby.org homepage is down and I don''t have access to it.
Therefore I''ve moved the documentation to
http://rubydoc.info/github/larskanis/fxruby/1.6/frames and converted
to yard.
Have fun!
=== 1.6.23 / 2012-03-08
* Add YARD documentation support
* Use generated Manifest.txt
* Support
2010 Dec 20
2
The Rails3 way for in-place editing
Currently I want to implement in-place editing directly on the index-page
(for the sake of learning just xx products with a name to be edited).
These are my favorite links from yesterday''s research (for the archives):
*On the spot is a Rails3 compliant unobtrusive javascript in-place-editing
plugin: http://rubygems.org/gems/on_the_spot
2005 Feb 20
11
Suggestion for wxruby name change
We''ve had some discussion in the past about the wxruby vs wxruby-swig
name, and how they are a bit confusing. My big problem with
''wxruby-swig'' is that unless you know what ''swig'' is, it''s not a
terribly useful (or sexy) postfix. It''s like naming a car after it''s
manufacturing process - "the all new Acura
2011 Feb 21
2
self.prepend_view_path - am I missing something
I have an app that varies its content based upon the domain from which
it is being accessed. Some of the domain characteristics are
supported in the model but it is easier varying static text in the
views and then sharing the form templates via partials etc.
Rails 2.3.10 and looking at the documentation at
2016 May 12
7
[PATCH 0/4] lib: qemu: Memoize qemu feature detection.
Doing qemu feature detection in the direct backend takes ~100ms
because we need to run `qemu -help' and `qemu -devices ?', and each of
those interacts with glibc's very slow link loader.
Fixing the link loader is really hard. Instead memoize the
output of those two commands.
This patch series first separates all the code dealing with qemu into
a separate module (src/qemu.c) and
2007 Dec 20
4
object.send problem within ActiveRecord
I am using the send method in one of my active records ... executing a
method without any parameters works fine.. but when it comes to
parameters it says
ArgumentError: wrong number of arguments (1 for 0)
u = User.new
#works
u.send :firstname
#does not work => ArgumentError: wrong number of arguments (1 for 0)
u.send :firstname, ''michal''
does someone know why? the rubydoc
2008 Mar 13
5
[LLVMdev] exact semantics of 'nounwind'
Hi everyone,
Since I'm busy muddying the waters by changing how exception handling
works, I thought I should ask for clarification on the exact behaviour
of the current 'nounwind' attribute found on functions, calls and invokes.
I was thinking these would be similar to the AA analysis notes like
"doesNotAccessMemory" which is a provable property of the function or
call
2010 Mar 11
1
Associative array?
Hi, can someone tell me how to use associative arrays in R? It can be
a hashtable or some kind of tree, as long as the lookups aren't O(n).
One way to do this is to use names, e.g. in:
list(a=3, ...)[["a"]]
presumably looking up "a" is very quick. (Can someone tell me offhand
how that is implemented? Hashtable?) However, if I wanted to, say,
memoize a numeric
2011 Sep 19
14
gmaps4rails "acts_as_gmappable" error
Hi all,
I started to see fun of gmaps4rails gem from
https://github.com/apneadiving/Google-Maps-for-Rails.
After everything done. When visited the locahost, i got the following
error.
undefined local variable or method `acts_as_gmappable'' for #<Class:
0x31a9da8>
the error is due to i have line "acts_as_gmappable" in my model.
Anybody knows how this is
2014 Jun 03
0
bundle exec spork error need help
Using RSpec, Rails
Preloading Rails environment
undefined method `generators' for
#<Rails::Railtie::Configuration:0x0000000339a898> (NoMethodError)
/home/rorway/.rvm/gems/ruby-2.1.2/gems/railties-4.1.1/lib/rails/railtie/configuration.rb:95:in
`method_missing'
/home/rorway/.rvm/gems/ruby-2.1.2/gems/rspec-rails-2.0.0.beta.18/lib/rspec-rails.rb:4:in
`<class:Railtie>'
2005 Apr 14
6
Ruby/Odeum Full Text Inverted Index Extension
Hello Everyone,
Announcing the Ruby/Odeum library--a full text inverted indexer for
Ruby:
http://www.zedshaw.com/projects/ruby_odeum/
Ruby/Odeum is an extension that wraps Mikio Hirabayashi’s QDBM Odeum
library for fast reverse indexing of documents. It supports indexing
documents by their words, breaking the text into words, normalizing the
words, searching, and attaching meta-data to each