Displaying 20 results from an estimated 5000 matches similar to: "[patch] Properly memoize protected methods"
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
2005 Jun 24
3
flashing divs in IE with use of BlindUp and BlindDown
I''m having an issue with flashing divs in IE (firefox is fine and the
only other browser I''ve used)
My scenario is as follows. I have 2 divs (initially hidden) and using
the BlindDown and BlindUp functions (possibly others) the divs flash
when starting to roll down in BlindDown (due to the Element.show call)
and also at the end of the BlindUp call (due to the Element.hide call)
2008 Mar 06
3
cache_sweeper
Hi,
Why is cache_sweeper not a documented method? I was pretty sure it
used to be, but I could be wrong. I can''t seem to find any
information on it anymore in the online docs.
As a side note, looking at the code for cache_sweeper it appears to
only work with the :only option, not :except (ignores it)... what''s
the reason for this?
Thanks,
Andrew
2006 Jun 21
7
sortable tree problem
Hello,
I''m having a problem when I set the tree option to true on Sortable.
If I set the option to false my remote call works fine, but once I set
it to true, I get some weird log errors from Webrick...
undefined method `update'' for "11":String
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/cgi_ext/cgi_methods.rb:214:in
`build_deep_hash''
2007 Mar 03
5
url_for and arrays parameters (diffs between rails 1.1.6 and 1.2.2)
Hello,
I posted this to the main rails list
(http://www.ruby-forum.com/topic/99845), but haven''t received any
replies yet, so maybe this question is better suited here. Sorry if
this has been brought up before, I couldn''t find any previous
discussion on this.
To summarize the post...
When using the latest Rails (1.2.2)
I''m passing an array to url_for like so...
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
2006 Jun 21
6
vertical menus
Hello all,
Not a directly related question to scriptaculous or prototype, but I
am looking for a good, dynamic vertical javascript menu.
I''ve done some searching and there are a lot of menu implementations
out there. I''m looking for something more or less free, but will
pay/donate a small fee towards something worth while.
I figured I''d ask here to help filter down
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 May 25
4
after_create and has_one association bug?
Hello,
I''ve come across an issue that I''m sure is a bug when using after_create
with a has_one association, but I''m not 100% certain if I''m missing
something.
This is pretty much exactly the code I''m using. Two simple classes
(Account and Contact) and I create the contact after I create an account
(via after_create). I''m not passing in a
2005 Sep 14
13
table sorting/manipulation library?
I have a library I''ve developed that I believe is the most flexible and
useful table sorting/striping/row-selecting library around.
Big features:
Single and multiple-level sort
Arbitrary sort criteria (IP address, date, etc.)
Works with table headers that are > 1 row or column large
Stripe tables and/or enable row selecting
Row selecting supports drag-select and SHIFT-click
No extra
2007 Sep 04
4
Could someone take a look at #9477 (new fieldset_tag helper)?
Hi everyone,
I just submitted a patch for a new fieldset_tag helper.
It''s helpful and encourages developers to follow web standards, etc.
"+1"s welcome :-)
http://dev.rubyonrails.org/ticket/9477
Cheers
Damian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
2006 Apr 28
8
Effects fully display before effect
Why do effects that display an element (like Appear or Slide Down) start by
displaying the element for a split second and then make the element
disappear?
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
2005 Sep 19
9
Rails compatible JS datepicker -- beta
hi all,
I''ve built a simple javascript datepicker for use with Rails. I''m sure
others exist, but think this one is quite decent without being
overengineered.
http://projects.exactlyoneturtle.com/date_picker/
At present there''s no Rails HTML generator method for it; later I will
package it in a script/generator, but for now it is quite easy to use with
Rails and
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?
2010 Jun 09
1
[patch] fix bytesize in exception template; multibyte titleize
Hi all,
I wanted to draw some attention to a couple of very small multibyte-related
patches I believe should be included before Rails 3.0 RC1:
* Use String#bytesize rather than String#length in exception templates:
This is a simple case where string length is checked, but bytes is needed,
so it breaks with string with multibyte chars.
2005 Oct 20
4
cross-fade effect on elements updated by ajax.updater?
Hello.
I was wondering if anybody could point me in the right direction of
creating a cross-fade effect for Ajax.Updater. If you have an element
that gets replaced by a new one with Ajax.Updater, how can we blend
one into the other?
Many thanks.
Tench
2006 May 19
10
Content Rotate, unwanted flashing on IE.
I just wrote a stupid little JS object to rotate DOM Elements (mainly
images) using Prototype and Script.aculo.us as support. Everything seems
to work well on IE and Firefox Linux but on FireFox Windows I am getting
a slight flash prior to transition.
I was wondering if a effects guru could take a quick look and see if
anything jumps out. I can live with the flash for my current project but
2007 Jul 19
3
InPlace[Collection]Editor rewrite: it's in trunk!
Hi all,
For those of you who don''t follow Thomas Fuch''s blog, know that a
complete rewrite of InPlaceEditor / InPlaceCollectionEditor just made it
into the trunk.
You''ll find all the juicy details on Thomas'' post:
http://mir.aculo.us/2007/7/17/in-place-editing-the-summer-2007-rewrite
Do note that this is my rewrite, so if you find bugs etc., don''t
2010 Apr 18
1
Add shorthand support for routes like /projects/status(.:format)
Hi, when trying to migrate Signal to Rails 3 I tried to use the shorthand
route for:
match ''/projects/status(.:format)''
but it thrown an error because the controller was not specified. This
happend because actually the shorthand routes only work with routes without
optional parameters. The modification to support routes ending with a
optional parameters is very simple, as can
2010 Apr 05
2
Harmonizing JSON/XML serialization
The way Rails handles root nodes in JSON and XML serialization is
inconsistent. This has been discussed before:
https://rails.lighthouseapp.com/projects/8994/tickets/2584-232-activeresource-json-doesnt-send-parameters-with-root-node
This seems mostly taken care of with
ActiveModel::Base.include_root_in_json, especially if/when it ends up
in ActiveResource. However, there is also the issue of how