search for: 10_000

Displaying 16 results from an estimated 16 matches for "10_000".

Did you mean: 10000
2006 Aug 19
3
memcache-client working for anyone?
..._. Their library has get() and put() but no read() and write() as rails expects. What gives? Is everyone quietly writing wrapper libraries around this? No mention on any blogs...help would be greatly appreciated My setup from environment.rb initialize: CACHE = MemCache.new :c_threshold => 10_000,:compression => true,:debug => false,:namespace => ''foo'',:readonly => false,:urlencode => false CACHE.servers = ''localhost:11211'' config.action_controller.session_store = :mem_cache_store config.action_controller.fragment_cache_store = CAC...
2006 Apr 20
12
memcache, sessions, fragments, oh my!
Hi all - I am trying to get rails to use memcache for sessions and fragment caching. I''d also like to use the same connection for general caching of this and that. I''m following the instructions here: http://wiki.rubyonrails.com/rails/pages/HowtoChangeSessionStore and hitting a brick wall. I''m using the new memcache-client since from what I''ve read
2005 Feb 18
5
FXTable segfaults after multiple setTableSize calls
...it is some other problem on this machine I''ll have to track down (display driver?). Thanks for your help. David Peoples ------------------------------------------------------------------------- require "fox12" include Fox class TestWindow < FXMainWindow TABLE_SIZE = 10_000 def initialize(app) super(app, "MyTest", nil, nil, DECOR_ALL, 0, 0, 600, 400, 0, 0) mainFrame = FXVerticalFrame.new(self, LAYOUT_FILL_X|LAYOUT_FILL_Y) @table = FXTable.new(mainFrame, nil, 0, LAYOUT_FILL_X|LAYOUT_FILL_Y) goButton = FXButton.new(mainFrame, " Go...
2006 Apr 22
4
Slice and dice plugin
...ns => {:name_starts_with => ''Tig''} Animals.find :all, :conditions => {:population_more_than => 1_000_000} Conditions can be combined: endangered_tigers = Animals.find :all, :conditions => {:name_contains => ''Tiger'', :population_less_than => 10_000} These conditions can also be used in calculations and scoped queries: Animals.count :conditions => {:population_more_than => 1_000_000} Animals.with_scope :find => {:conditions => {:name_contains => ''Tiger''}} do Animals.find :all end Finally, here''s...
2006 Jan 17
10
ActiveRecord + memcache = cached_model
...rd::Locking to ensure that you don''t perform multiple updates. == Using CachedModel First, install the cached_model gem: $ sudo gem install cached_model Then set up memcache-client: $ tail -n 20 config/environments/production.rb memcache_options = { :c_threshold => 10_000, :compression => true, :debug => false, :namespace => ''my_rails_app'', :readonly => false, :urlencode => false } CACHE = MemCache.new memcache_options CACHE.servers = ''localhost:11211'' session_options = {...
2006 Jan 30
0
cached_model-1.0.1 ActiveRecords + memcache
...rd::Locking to ensure that you don''t perform multiple updates. == Using CachedModel First, install the cached_model gem: $ sudo gem install cached_model Then set up memcache-client: $ tail -n 20 config/environments/production.rb memcache_options = { :c_threshold => 10_000, :compression => true, :debug => false, :namespace => ''my_rails_app'', :readonly => false, :urlencode => false } CACHE = MemCache.new memcache_options CACHE.servers = ''localhost:11211'' session_options = {...
2005 Dec 25
1
How to use mem_cache_store?
...#39;'m trying to use mem_cache_store for sessions. I have installed the server and the gem and have added the following to my config/environment.rb: >>>>>>>>>>>>>>>>>>>>>>>>> memcache_options = { :c_threshold => 10_000, :compression => true, :debug => false, :namespace => ''ruby-forum.com'', :readonly => false, :urlencode => false } CACHE = MemCache.new memcache_options CACHE.servers = ''localhost:11211'' session_options = { :database_manager =&gt...
2007 Jan 30
0
No reaction from memcached
...b require ''cached_model'' CACHE = MemCache.new ''localhost:11211'', :namespace => ''my_rails_app'' I''ve also tried these settings with the same result: require ''cached_model'' memcache_options = { :c_threshold => 10_000, :compression => true, :debug => false, :namespace => ''my_rails_app'', :readonly => false, :urlencode => false } CACHE = MemCache.new memcache_options CACHE.servers = ''localhost:11211'' Here''s my installed versions of the relevan...
2008 Jul 15
1
sex expire time for Sessions in memcached
...re. I''ve been using ActiveRecord session store till now and expired them with SQL query. Yesterday I switched to memcache for storing sessions, however I can''t set an expireation period. My current config is this: ======================== memcache_options = { :c_threshold => 10_000, :compression => false, :debug => false, :namespace => ''fanopic_dev'', :readonly => false, :urlencode => false } memcache_servers = [''192.168.4.1:11211''] config.cache_store = :mem_cache_store, memcache_servers, memcache_options config.acti...
2006 Jun 28
0
PHP SmartyPants Typographer 1.0b2
...re it is." * before a semicolon: "That's what I said_; that's what he said." * before a question mark and an exclamation mark: "Hop_! What_?" * inside french quotes: "Voici la ?_chose_? qui m'a attaqu?." * as thousand separator: "On compte 10_000 maisons sur cette liste." * before a unit abreviation: "This 12_kg of matter costs 10_$." You can control which transformations applies and what each should do (replace, insert, remove) by adding the proper characters to parser attributes. Each of these spaces is represented b...
2006 Feb 12
3
memcache-client/cached_model help
Hi - Just downloaded and installed the memcache-client and cached_model gems and am trying to test it out on a development setup. I added this to my environment/development.rb CACHE = MemCache.new :c_threshold => 10_000, :compression => true, :debug => true, :namespace => ''eztrip'', :readonly => false, :urlencode => false CACHE.servers = ''127.0.0.1:11211'' sessi...
2005 Dec 16
11
mysql mem-tables vs. memcached
Could someone please elaborate on the technical differences and practical impact of whether choosing memory-based tables in MySQL or using memcached. I got this far on my own: It seems that MySQL uses the NDB engine for transaction-safe memory access in a cluster. the memory storage engine seems to be faster but not synchronizable by any means in a cluster. memcached seems to be ultimately fast
2007 Apr 12
9
taille de caractère
en fait je vous renvoi ce message car maintenant la taille de la police change au bout de 500 lignes environ, alors que j''avais reussi à garder la taille jusqu''à environ 5000 lignes. Je ne comprend pas. Est-ce que c''est instable? le bout de code que vous m''avez envoyer ne marche pas. merci Sebastien _______________________________________________ wxruby-users
2006 Sep 18
11
Finally! Mongrel 0.3.13.4 Official (for Unix)
...A "mostly C" version for Unix only that''s fast as blazes. * Getting rid of mongrel_cluster and working on a complete unified system that properly manages a set of Ruby interpreters. Contemplating working this out so that win32 also gets a similar setup. * Is anyone else tired of 10_000 ways to deploy Mongrel? Maybe work on developing "the one true way" with all the others being a optional setups, and working on making this TOTW damn easy. * Nginx module? Why nginx? Because I can read nginx code. Sad that I can read a Russian''s code better than the Apache co...
2007 Sep 18
10
Routes
hi all, I want to move some routing tasks out of the router and into the controller. The goal is to make Merb feel less like mod_rewrite and give the user more control at the controller. The new Router is simple: it takes the path_info (not the whole request) then outputs a controller class and some parameters from the path matching. The rest of the routing would be done at the controller level.
2007 Jan 04
10
Intermittent "can''t convert Float into Hash" and results.rb
Hi, I''m using backgroundrb 0.2.1 in a production environment and for most parts I''m very happy. We are using it to do some heavy video editing on the server side and it works great except that under, what seems heavy load the below problem happens intermittently. The problem has only happened 5 times out of over 500 runs by our backgroundrb worker. This is the code in our