Displaying 20 results from an estimated 700 matches similar to: "Is active record 3.1.1 supposed to be threadsafe?"
2011 May 05
9
[threadsafe] Arel ToSql visitor is not threadsafe
Hey,
We hit a bug today because Arel::Visitors::ToSql is not threadsafe.
Here is what is happening:
Arel::Visitors::ENGINE_VISITORS is a cache of visitors instances.
These instances are not inherently threadsafe because it contains
state ''@last_column'', ''@connection'' that is shared between threads.
The other variables ''@pool'',
2002 Mar 27
1
What exactly is threadsafe
Hey I am playing with a LOT of threads right now, and I want to know if the
threads all need their own little vorbis encoders running in them or what
exactly is threadsafe in vorbis?
So here are the functions that would be called from many threads of with
buffer = vorbis_analysis_buffer( &m_vorbisDsp, 4*DATA_CHUNK_SIZE );
vorbis_analysis_wrote( &m_vorbisDsp, dataLength/dataSize );
2013 Mar 06
2
Refresh a partial onClick using ajax call in rails 3.x
Hi All,
I want to refresh a partial onClick, onClick i am making ajax call
and getting the data but i am unable to refresh the partial. here is the
code
IN views: home.html.erb
$(document).ready(function() {
var currentCellText;
$(".inline").click(function() {
currentCellText = $(this).text();
$.ajax({
type: ''GET'',
dataType: "json",
2015 Jan 08
9
[LLVMdev] Separating loop nests based on profile information?
I've been playing with approaches to getting better optimization of
loops which contain infrequently executed slow paths. I've gotten as
far as throwing together a proof of concept implementation of a profile
guided optimization to separate a single loop with multiple latches into
a loop nest, but I want to get feedback from interested parties before
investing much more effort.
The
2008 Jan 21
1
ActionController majic gone bad
Overriding method missing in ActionController destroys magic even when
passed back
ie.
def method_missing(method, *args)
if some_condition
do_something
else
#let rails handle it normally
super(method,args)
end
end
if I don''t over ride method missing then i can call a view without an
action
with the override i get a method missing error.
MAJIC
--
Posted via
2015 Jan 08
4
[LLVMdev] Separating loop nests based on profile information?
On 01/07/2015 05:33 PM, Chandler Carruth wrote:
>
> On Wed, Jan 7, 2015 at 5:19 PM, Philip Reames
> <listmail at philipreames.com <mailto:listmail at philipreames.com>> wrote:
>
> I've been playing with approaches to getting better optimization
> of loops which contain infrequently executed slow paths. I've
> gotten as far as throwing together
2009 Mar 04
2
FW: flow control
Hi all,
I need a little help with flow control in R. What I'd like to do is to
advance a for loop by changing its counter. However, what seems obvious
to me does not yield the proper results. An example of my problem is
for (i in seq(1, some_number, some_increment)){
<some stuff>
if (some_condition == T) i <- i + 2; #want to advance the loop
by 2
}
Whenever the counter goes
2010 Jan 31
3
Append/Prepend to a template from controller method
I want a method in app/controllers/application.rb that can
prepend/append text to whatever template gets rendered. Of course I
can''t call render twice w/o getting a double render error, so is this
possible?
I want to redirect after a delay using a meta refresh. Here''s what I''ve
got:
app/controllers/application_controller.rb:
def redirect_after_delay (url, delay)
1999 Nov 03
1
Samba 2.0.6pre3 snapshots available.
As Andrew is a little busy right now I've made a Samba 2.0.6pre3
snapshot available at :
Source code
-----------
ftp.samba.org:/pub/samba/alpha/samba-2.0.6pre3.tar.gz
RedHat 6.1 Intel RPM
--------------------
ftp.samba.org:/pub/samba/alpha/samba-2.0.6pre3-19991102.i386.rpm
RedHat 6.1 Source RPM
---------------------
ftp.samba.org:/pub/samba/alpha/samba-2.0.6pre3-19991102.src.rpm
Please
2004 Dec 02
2
installing Microsoft Office under wine
I have been unable to install Microsoft Office 2000 under wine on
several Fedora Linux machines. The problem seemed to start with the
June 2004 release of wine and has persisted for every version I have
tried up to and including the latest 12/01/2004 version.
I have tried both RPM install and compiling from source with similar
results.
I have one machine running the May 2004 wine that
2004 Dec 02
1
Microsoft Office XP Install problems on wine
I'm trying to install Office XP on Fedora 3, with the 12/1/2004 wine build from
the source. I tried the suggestions given by Ronald Nave on Dec 2/2004
(installing DCOM98, windows installer), but to no avail, and I get the following
errors, any help/suggestions are appreciated!
------------------------------------
fixme:wininet:FindFirstUrlCacheEntryA ((null), 0x7fd943b0, 0x5b41ea38): stub
2007 Aug 29
1
What makes Rails'' routes non-thread-safe?
I was reading here and there about the differences between Merb and
Rails [1] and became curious about statements such as this:
> It is threadsafe with configurable Mutex Locks (Routing is also
> threadsafe)
Having mucked with the routes system, I had this awful feeling that I
don''t understand threading well enough to know if my contribution is
"thread safe".
2006 Aug 09
7
Mongrel and multi apps
Hi,
I use Mongrel to serve my Rails applications on my server, but how can I
serve more than one application with one mongrel server?
Thanks.
-jec
--
Best regards / Salutations.
Jean-Eric Cuendet
Senior developer / Technical support
Riskpro Technologies SA
Av. Louis-Ruchonnet 2
CH-1003 Lausanne
Switzerland
Direct : +41 21 637 0123
Principal : +41 21 637 0110
Fax : +41 21 637 0111
2006 Jun 24
1
@version_control_book not available while testing - AWD book 1 page 148
In the page 148 of the AWD book it''s mentioned that the while testing
@products and @version_control_book are automatically made available.
That''s not the case with me. In my test environment I don''t get those two
variables.
I was wondering if anything has changed in Rails 1.1 because in the new
edition of the book (AWD - edition 2) there is no mention of such
2012 Oct 05
1
Is Rails Logger Thread Safe?
Is Rails Logger truly not Thread Safe?
http://log.kares.org/2011/04/railslogger-is-not-threadsafe.html
This seems like an issue that should have been picked up quite a long time
ago. I just set config.threadsafe! in my config/application.rb and my log
output from rails server has completely disappeared.
If the logger is not thread-safe, I cannot help but wonder how much of the
Rails core is
2005 Mar 09
20
WebGUI Scripts announcement
Dear Shorewall Users, having noticed that the request for a WebGUI is
growing, after a very short conversation I''ve had with Tom, I''d like to
let you all evaluate the Web interface to Shorewall I''ve written,
integrating the original weblet package made available for the LRP project.
----------------------------------------------------------------------------
Preamble
2006 Apr 27
7
HTML Title
Hi there,
If I have an application.rhtml template what''s the best way to set
the contents of title element in the html -> head area of the
template to something set in the view for action in a controller. I
want to just have one template which renders the basic layout for all
pages and I''ve been scratching my head over this one for a couple of
hours now.
Any help
2006 Aug 22
11
Multiple mongrels for one app
Hi mongrel-users,
This is my first post, so I''m not sure if it''s been asked before, but
I can''t find an answer anywhere.
If I have one rails application running, one processor I''m running it
on, and mongrel is multi-threaded, why should I have more than one
mongrel running?
Everyone seems to agree on 3-5 mongrels per rails app, but why?
I must be
2010 Aug 17
6
Overly aggressive constant unloading of Rails 3.0
In Rails 3.0 (both RC and edge), any constant that''s defined while loading a
file in development mode will get unloaded on each request, regardless of
whether it comes from an autoload path in the application or from external
code such as a gem.
Example file (tested on a fresh edge app):
# kittens.rb
require ''nibbler/json'' # "nibbler" is a gem specified
2006 Apr 03
3
AJAX Insertion.Before
Can anyone point me to an example of how to use the Insertion.Before technique? I''ve just begun trying to use AJAX and worked through Curt''s "Ajax on Rails". The description in AWD of what this does is just what I need, there''s no example of how to use it, and I''m getting no joy using Google. Any help is tremendously appreciated.
-------------- next