similar to: Why freeze memoization?

Displaying 20 results from an estimated 10000 matches similar to: "Why freeze memoization?"

2012 Feb 03
1
rails memoize and reload class => error raised
Hi, That''s a bit off topic but since I use Spork + Rspec... Well, my classes are reloaded between each test wave so Rails'' "memoize" method raises an error (which is expected, see code: http://rubydoc.info/docs/rails/3.0.0/ActiveSupport/Memoizable:memoize) Anyone resolved this issue with an elegant solution?
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
2007 Dec 23
7
Help with error "undefined method `downcase' for nil:NilClass" after migration
Hi all, I have a rails 1.5.2 application. I''ve frozen the application via the "rake rails:freeze:gems" command. This application worked well on a server I previously had it installed on. My server was getting really slow, and I requested that I be moved to a new server. When I perform a "gem list rails" command on my new host, I receive only version 1.2.6. Since
2007 Aug 24
2
pxelinux / memdisk / afud408 freeze.
Has anyone had a problem with afud408 (Award flash program) freezing the system when ran from memdisk? The freeze occurs when just running afud408 (not attempting to update bios, although it freezes then as well.) I was using pxelinux/memdisk 3.36, I upgrade to 3.51, and also fell back to 2.11 all have the same issue. I have tried all the switches for memdisk that I saw posted on the memdisk
2010 Mar 18
3
rake db:migrate -> uninitialized constant
Hi-- I''m trying to do a first migration (2.3.5). I generated a model "Video", but when I try to migrate I get "uninitialized constant Videos". Why is it trying to find a plural class name? Here''s more complete output: trans@logisys:models$ rake db:migrate --trace ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment **
2009 Mar 17
4
Preventing a submitted hash from ActiveRecord DB store
Hi all, I have a multi model form (Project with many tasks) and I want to prevent a task from being saved to the DB if it is empty ie. if there is no i/p for that task from the user. I tried the following class Task < ActiveRecord::Base before_save :check_if_empty ... def check_if_empty self.destroy if description.blank? end but i get this TypeError in ProjectsController#create
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
2007 Dec 21
4
Action Web Service and rails 2.0
Hi, Just thought I''d share what we did to get action web service to go on rails 2.0 http://www.texperts.com/2007/12/21/using-action-web-service-with-rails-20/ Fred --~--~---------~--~----~------------~-------~--~----~ 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
2010 Feb 26
11
Wine is freezing
I have Opensuse 11.0. Using icewm. When I run winecfg or any windows application it freezes in 1 minutes. Why? PS: Computer is not freezing.
2008 Feb 05
3
How do you update frozen rails in svn?
Every man and his dog recommends you freeze rails, awesome! I''ve done that and setup my svn repo and been modify the code and checking in my updates. Now since 2.0.2 is here and I''m on 2.0.0 How do I get to 2.0.2 ?? Please include the impact that this has on the svn repository. Thanks :D --~--~---------~--~----~------------~-------~--~----~ You received this message because
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
2008 Dec 15
3
Application failing on undefined method `install_gem_spec_st
Hi there, I have rails 2.0.2 installed on my development server and that is where I created this app. I froze the app to 2.0.2 knowing that my host server uses 2.2.2 and that version breaks my application. But when I upload my app to its test bed on the host server I get this error: # ruby dispatch.cgi ./../config/../vendor/rails/railties/lib/initializer.rb:49:in `send'': undefined
2008 Mar 20
5
How to unit test Rails itself (API)?
Hello, I searched unit test for Rails on internet, but all the results are for testing Rails APPLICATION generated by Rails. But I think Rails itself needs unit test, too. I need to make sure that all APIs/methods of Rails work fine in different scenarios. I didn''t see any unit test files in the Rails package. Does anyone know how to unit test Rails itself? Thanks a lot.
2008 Jun 21
5
RJS can't modify frozen string
Any ideas why RJS would start causing "can''t modify frozen string" errors? This was working last night and I''m not sure what could have been changed to cause this. The app is on a VPS not shared hosting. /!\ FAILSAFE /!\ Fri Jun 20 20:13:37 -0700 2008 Status: 500 Internal Server Error can''t modify frozen string
2015 Mar 12
1
[PATCH] generator: small optimization of pod2text cache memoization
Instead of save every time there's a new element in the cache, batch the saving to disk every 100 changes, saving the unsaved remainder at the exit. While not a big optimization, this reduces a bit the disk usage during generator run. --- generator/utils.ml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/generator/utils.ml b/generator/utils.ml index
2012 May 05
3
metafor
Dear users of metafor, I am working on a meta-analysis using the metafor package. I have a excel csv database that I am working with. I am interested in pooling the effect measures for a particular subgroup (European women) in this csv database. I am conducting both sub-group and meta-regression. In subgroup-analyses, I have stratified the database to create a separate csv file just for European
2005 Nov 25
3
Query: Filesystems
Hello, Just a few quick, but not very simple questions...: Do any Linux filesystems (besides XFS) support freezing? (ie. in conjuction with LVM snapshots this can allow a mounted filesystem to be frozen [freezing all processes writing to this filesystem] in a valid state (with possibly dangling unlinked files), the device can be snapshotted via LVM, and the original filesystem unfrozen - the
2020 Feb 14
2
guest-fsfreeze-freeze freezes all mounted block devices
I wondered if anyone here can confirm that virsh qemu-agent-command domain '{"execute":"guest-fsfreeze-freeze"}' Freezes all mounted block devices filesystems. So if I use 4 block devices they are all frozen for snapshotting. Or just the root fs?
2020 Feb 17
2
RE: guest-fsfreeze-freeze freezes all mounted block devices
Hi Peter, Should I assume that the virsh domfsfreeze, does not require the qemu-agent service in the guest? PS. I couldn't find the result. Afaik it looks like it is returning the amount of frozen/thawed filesystem's -----Original Message----- Cc: libvirt-users Subject: Re: guest-fsfreeze-freeze freezes all mounted block devices On Fri, Feb 14, 2020 at 22:14:55 +0100, Marc Roos
2009 Dec 04
1
z to r transformation within print.rma.uni and forest from the package metafor
Dear R community, I'm using the ,metafor'-package by Wolfgang Viechtbauer (Version: 0.5-5) to calculate random-effects meta-analyses using Correlations and Sample Sizes as the raw data. (By the way: Really a nice piece of work, Wolfgang! Thanks heaps.) I specified the "rma.uni' function so that it looks like this: MAergebnis<-rma.uni(ri=PosOutc, ni=N,