Displaying 20 results from an estimated 100000 matches similar to: "Rails Caching Tips"
2006 Mar 10
3
Changes to class caching between Rails 0.14.3 and 1.0?
Hi all,
We''re having a rather unique problem with class caching. We are
implementing the strategy pattern in the following manner:
1. Set an accessor for the class, let''s call it :strategy
class Widget
cattr_accessor :strategy
end
2. In environment.rb, we instantiate an object that implements the
strategy and use the accessor to set it for the class
strat =
2005 Mar 24
3
Caching computation in rails?
Caching computation in rails?
Simple example: factorial modulus a large number
input: integer x
output: factorial( x ) % 12345678901234567
I want it so that if it computes factorial of N once, it will not have
to compute for N again.
code:
class SiteController < ApplicationController
caches_action :factorial, :inv
def examine
@inv = @params[''inv'']
@outv =
2007 May 20
1
Tips on testing
Hey WWW::Mechanize users,
I''ve been using Mechanize for about 3 or 4 months now, and I''m rather
enjoying it. I''ve done scraping in PHP & Python, starting with raw text and
HTTP requests, moving up to regex and Curl, and finally landed myself here,
making me much more productive when scraping pages.
At the moment, I''m in the middle of a decent sized
2004 Apr 04
3
Please help
Hi Guys,
My name is Marcias, and I am setting up for the first time an Asterisk PBX, I am learning as I go along. I have been able to download and install Asterisk, Libpri and I have been able to get Asterisk up and running. I have several questions:
1 .I can call the Asterisk server from my Xten phone and it picks up. I have 3 computers (one of them being the asterisk server) I can seem to call
2010 Apr 28
0
Route globbing in Rails 3 beta 3
I was just playing around with the new routing dsl to answer someone''s
question on the general rails forum.
I wanted to see how Rails3 handled globbed routes. So I added this
to routes.rb
get ''forum/*path'' , ''forum#show''
And had the show action just display the params.
with a URL of /forum/a/b/c
I got {"path" => "a/b/c"}
2011 Apr 13
1
Asterisk Tech Tips: Cookin' with Asterisk
Greetings Asterisk Users,
I'm happy to announce that Russell Bryant and Leif Madsen have volunteered to host the next Asterisk Tech Tips webinar, next Thursday April 21 at noon central time. Russell and Leif are project leaders and have collaborated on two Asterisk books: Asterisk: The Definitive Guide and Asterisk Cookbook , both published by O'Reilly & Associates. Asterisk: The
2004 Jan 21
1
Join Computer Associates and DM Review for a Web Seminar
Computer Associates and DM Review present a Web Seminar!
Dashboards: Discovering Hidden Opportunities Through On-Demand Information
Date: Wednesday, February 11, 2004
Time: 11:00 a.m. PT/2:00 p.m. ET (Duration approx. 1 hr.)
Making important decisions is your job. To make them effectively, you need the right information at the right time from all the right sources.
Learn how dashboard
2006 Apr 08
2
Is caching in rails broken or at least very flawed?
I was going to add caching to my applications, but everything that I''ve
found through google is about all of the problems everyone has had with
caching. Is is really as bad as I''ve read?
--
Posted via http://www.ruby-forum.com/.
2011 Aug 07
9
How can I disable Rails 3.1's ActiveRecord Query Caching?
Hey guys,
As most of you know, Rails 3.1 introduces query caching for
ActiveRecord. Great change all-in-all, but for those of us with IT
department mandates for using MySQL (yeah, yeah, I know...), it''s kind
of a mixed bag.
I need to disable query caching in a project I''m building based on
3.1. I''ve tried a couple different approaches, both without any
success. I
2009 Apr 04
1
Rails 2.3.2 - template question
Simplest of template files, tst.rb, contains:
PROJECT_NAME = File.basename(RAILS_ROOT)
run ''echo '' + PROJECT_NAME
Running command "rails tst -m ~/Rails_Tools/tst.rb" produces:
create
create app/controllers
.
.
create log/development.log
create log/test.log
applying template: /Users/rick/RailsTools/tst.rb
Anonymous modules
2006 Jun 24
0
integrating paypal pro with rails?
I''m about to get starting integrating Paypal Website Payments Pro, and I''m
wondering if anyone has any tips or best-practices to share. So far I''ve found
a few paypal related tools, of which the ELC Plugin (link below) seems the best
suited for payments pro, but I''d love to hear any experiences verifying or
contradicting that, or any war stories at all.
Best,
2011 Dec 16
2
here's the thing that tips the scale
ok, i waited for 2 weeks, and still no votes -- none! --
on whether my posts are sufficiently on-topic, or not...
and that basically confirms what i suspected all along,
which is that no one really cares one way or the other.
even the guys who put up the bitchy posts are probably
just having a bad day, and they don't have a dog to kick,
and the wife made 'em stop smoking herb, so they
2006 Jun 04
0
[SUMMARY] Rails Core Weekly May 29 - June 4
Rails Core Weekly May 29 - June 4
Dear List,
Another week has passed, here''s RCW, the McCartney Edition:
This weeks kicks of with Josh Susser fixing has_and_belongs_to_many
#create method to properly populate joins with new records
:http://www.ruby-forum.com/topic/67478#new. Check out his test:
def test_create_by_new_record
devel = Developer.new(:name => "Marcel",
2009 Aug 24
3
Two lines, two scales, one graph
First of all, thanks to everyone who answers these questions - it's
most helpful.
I'm new to R and despite searching have not found an example of what I
want to do (there are some good beginner's guides and a lot of complex
plots, but I haven't found this).
I would like to plot two variables against the same abscissa values. They
have different scales. I've found how to make
2001 Mar 12
2
General tweaking tips for wine?
Does anyone have any general tips on how to get programs to work on Wine? I
hear lots of success stories for various programs which I have failed to
get working on my own machine. But then again, my own version of wine is a
bog-standard installation without any special adjustments made to it.
What are the steps usually taken to attempt to get a program to run under
Wine? Or is that too
2005 May 27
1
Fwd: Newbie here. Tips on setting up 100 phones wanted.
So in order to answer the background and backbone questions here is
the system as it is. I hope this isn't too much for the list but I'll
post it in response to a few inquiries.
The current system is quite interesting.
We have an office in a town that is about 50 miles from
the ski area. The ski area is powered 100% of of generators and the
telephone access and internet access goes from
2006 Jul 26
0
Please Ignore/Delete!!
Just testing something. :)
--
Rick Martinez
Director of Technology
Complexity Gaming
2006 Jan 10
6
Can we cache user home pages?
Hi Railers,
I am trying to create a simple application like a guest book which has users
and uses sessions to keep track of
which users are logged on. The user''s page is constructed after doing some
SQL queries and the user clicks on another link and hits the back button I
dont want to regenerate the whole page (which is what happens now) .So I
want to use some kind of caching mechanism.
2004 Aug 12
0
Re: more about messing around with iptables
Hey scty Library,
> I am messing around with iptables, trying to learn
how it works so that I can build my self a
router/firewall and mabey a VPN.
Oops! I forgot about that.
The LinWiz iptables wizards cannot help you, a
router/firewall/VPN application is too complicated for
them.
If you do not care about reinventing the wheel, then
proceed with your learning experience.
If you just
2011 Dec 16
0
as the scale tips
i said:
> here's the thing that tips the scale.
i'm glad i wrote that post.
helped me see the big picture,
and understand my motivation.
> so when they do, i wanna
> be able to reply by saying this:
...
> i tried and tried and tried.
as i continue to "do the mental math",
it has occurred to me that i've already
_done_enough_ to be able to say