Displaying 20 results from an estimated 80000 matches similar to: "is the model() method no longer necessary"
2007 Jan 30
0
No reaction from memcached
I''ve been following the instructions here http://nubyonrails.com/
articles/read/716 on how to get started with memcached.
Starting up ./script/console production I get at couple of deprecation
warnings:
<snip>
./script/console production
Loading production environment.
DEPRECATION WARNING: model is deprecated and will be removed from
Rails 2.0 See
2015 Mar 18
0
multiple memcached buckets in CentOS 7
>
>
> Now, under CentOS 7, I see we have two files controlling memcached under
> the new sysctl system. At least, using sysctl is new to me!
>
> I see we have this file:
>
> [root at web1:~] #cat /usr/lib/systemd/system/memcached.service
> [Unit]
> Description=Memcached
> Before=httpd.service
> After=network.target
>
> [Service]
> Type=simple
>
2015 Mar 18
1
multiple memcached buckets in CentOS 7
Hi Alberto,
With systemd it will be as easy as creating additional unit files ( one for
> each memcached instance) with its corresponding config file. That should
> allow to stop / start / restart each memcache instance individually while
> also being systemd compliant.
Thanks for the info and for the examples. It really does make sense the way
you explain it. Thanks for letting me
2012 Jan 27
2
to_json performance
Originally posted on github, reported to the right place.
I would like to open a discussion about how `to_json` and `as_json`
operates in Rails from a performance standpoint.
I''m using Rails 3.2 but this issue applies to almost all versions of
Rails.
Our use case presents the challenge in sending out potentially large
JSON (or XML, but we''ll focus on JSON rendering here)
2008 Feb 29
0
Seeking Validation - search web service using memcached
Hi,
I''m looking for some validation for some work I''ve done for a client, and
I''m open to criticism ("mock me" ? ;^), relevant awareness of similar
projects, and alternatives.
When I looked around in about September 2007 for a good scalable search
solution for Ruby on Rails, I found the choices lacking. Firstly, none of
the solutions seemed to have an option
2006 Apr 07
2
has_one not using the pk?
Hello,
im trying to wrap a fairly ugly legacy schema using AR. How to handle
normalized informations which aren''t connected via the pk?
create table what (
myid int,
myclass int, ;; references blahclass.blahid
mygender int
)
create table blahclass (
blahid int,
mdesc1 text,
fdesc1 text)
)
I would like to wrap this as
class What < AR::Base
has_one :blahclass
class
2006 Feb 09
0
rails 1.0 loses its symbol table randomly
Hi all,
I''m running a site on Rails, and since I upgraded from 0.13 to 1.0,
I''ve been seeing trouble with instances (via fastcgi) losing their
symbol table.
After some period of running (several hours), the instance will lose
some section of its symbol table. What I mean by that is, I start
seeing a bunch of exceptions like
undefined constant: xxxxx
where xxxxx is
2008 Mar 13
0
Call for Alpha Users - CloudCache.net
Howdy!
CloudCache.net is seeking alpha users for our new metered service. The
CloudCache services include:
- Basic memcached capabilities wrapped in a ReSTful API
- Improvements on memcached including the ability to backup,
reconfigure, restore, and list keys. This allows us to grow our memcached
farm transparently to our users.
- Improved reliability - your keys and values are
2006 Oct 04
2
Capistrano fails to restart Memcached service
Hi.
I am using Capistrano for my webapp and after deploy I need to restart
memcached service. I am trying to do it with
sudo "/etc/init.d/memcached restart"
But it does not do it, even if memcached service existed - after
deployment memcached service is off.
I did some researching and added
run "sleep 40"
right after sudo command and found that service process existed
2004 Jul 04
1
Re: Seasonal ARMA model
> It might clarify your thinking to note that a seasonal ARIMA model
> is just an ``ordinary'' ARIMA model with some coefficients
> constrained to be 0 in an efficient way. E.g. a seasonal AR(1) s =
> 4 model is the same as an ordinary (nonseasonal) AR(4) model with
> coefficients theta_1, theta_2, and theta_3 constrained to be 0. You
> can get the same answer as from
2008 Apr 20
1
Exception DatabaseCorruptError under php
Hello,
I'm having a litle issue with Xapian-1.0.6 with php bindings under
php5 when trying to add a new document it throws:
Fatal error: Uncaught exception 'Exception' with message
'DatabaseCorruptError: Failed to unlink
/var/lib/xapian/trade.ar/termlist.baseA: No such file or directory'
in /usr/share/php5/xapian.php:1140
Stack trace:
#0 /usr/share/php5/xapian.php(1140):
2007 Jun 22
0
Automating memcached startup for my app.
All,
My app. requires memcached, and I''d like to build any necessary
restarting of the memcached daemon into my site startup. (I already
have my script executing as part of a deploy, but I''d like to
"bulletproof" it more if possible).
I wrote a script which will restart memcached if it isn''t there.
My problem is I need to reliably invoke it whenever my
2009 Feb 18
4
expire_fragment with memcached
Hello all,
We know that memcached or memcached-client doesn''t support regex... But
It seems it doesn''t support expire_fragment either :/
I''m trying to use expire_fragment with memcached as following :
expire_fragment(:controller => ''home'', :action => :list_posts)
But apparently it''s not supported by memcached :
RuntimeError (Not
2007 Sep 04
2
AAF not searching associated record data
I''m using AAF to search through an AR model, with fields from associated
tables included through helper methods in the AR class.
The search is working perfectly for the model''s fields, but the data
from the associated records aren''t included, it seems.
Pastie: http://pastie.caboo.se/93667
I''ve made sure it''s not just a matter of rebuilding the index,
2014 Aug 19
0
failure building memcached rpm
Hi all,
I need to install the latest memcached version (1.4.20) on a number of
machines in this environment. There are only rpm's of this app for RHEL 6.
But we need to install the latest memcached on a number of RHEL 5 machines.
To be specific, they are OEL 5.7 hosts.
I've installed all of the developers tools that I would need.
But when I go to build the RPM I am getting the
2008 Jul 07
1
Non model cascading selects
In my model I have a city_id. ON the form I am using a cascading select
to select the state, which then does a remote_submit to get the list of
cities (and hence the city_id) for the selected state. The problem that
I am having is that if I make a selection, hit SUBMIT and validation
fails, the original selected state/city is now reset (ie, the values
aren''t saved). Since they
2011 Sep 09
1
Exception in NeweyWest - Pre-Whitening necessary?
Hi guyz,
I have run my algorithm in R (see http://pastebin.com/q84Tujfg) and got the following error:
Error in ar.ols(x, aic = aic, order.max = order.max, na.action = na.action, :
'order.max' must be < 'n.used'
I am pretty sure, that the error comes from the NeweyWest function in line 45, as the NeweyWest function uses the ar.ols() function for pre whitening. Does anyone
2007 Nov 05
3
link_to & others really necessary?
One of the areas where I think Rails goes too far is in many of the
helpers that (AFAICT) do nothing more than change the syntax used to
write simple HTML tags. link_to and many of the form tags come to mind.
For me, these helpers aren''t that helpful. I find the HTML much
clearer to write and read, I don''t see any added value in the
overhead costs of using code to
2011 May 19
1
Acer Aspire One 532h Review
Netbook model names normally aren?t exactly easy to remember and I?m sure many people are also confused by the sometimes very similar model names.
It looks like Acer is abut to change that, well on one model at least, with the Laptop Battery for ACER UR18650F-2-QC218 AR-TM3270 (http://www.laptopspark.com/products/Laptop-Battery-for-ACER-UR18650F-2-QC218-AR-TM3270-laptop-5736.html) One Happy.
This
2015 Mar 18
2
multiple memcached buckets in CentOS 7
Hey guys,
OK so I'm pretty familiar with how to edit an init script for memcached so
that I can get multiple memcached 'buckets' when starting up the service.
The init script would ususally have multiple lines such as these under the
start function:
# cache_block
/usr/local/bin/memcached -d -m 128 -l `hostname -i` -p 11318 -u
daemon -c 8172 -v 2>> /tmp/memcached.log