Displaying 20 results from an estimated 7000 matches similar to: "Fast inserts?"
2005 Sep 10
4
has_too_many
Assuming you have Person that has_many :messages, what will it happen if it
has 10000 messages?
Will rails attempt to initialize @person.messages with 10000 rows from
database? If that is the case, is combining finder_sql and counter_sql the
common practice to avoid this?
Bogdan
_______________________________________________
Rails mailing list
2006 Jan 08
4
Finding memory leaks?
Where are the memory leaks and what is the way to fix them?
I''m working on a game that was fairly stable in terms the memory consumption
and it was staying at around 200MB. Recently it has gone crazy, and unless I
restart it, it goes straight up to 350-400+MB after 30 minutes-1hour.
I am using Apache 1.3+fcgi in production mode.
Also the dispatch.fcgi processes take a really high toll
2006 Feb 25
10
Performance issue.. after a while
Hello,
I have an project running on a dedicated server:
Debian, P4 CPU 3.00GHz, 1GB RAM,
ruby 1.8.4 (2005-12-24) [x86_64-linux],
rails (1.0.0), activerecord (1.13.2)
lighttpd-1.4.10 + fastcgi + mysql 5.0
7 dispatchers.
The project is a game, so a typical user would visit 100+ pages.
When the server is busiest, it gets 35-40k requests/hour.
For some misterious reason after a number of hours the
2006 Jan 31
3
Random 502 Bad Gateway
I have moved my project to a dedicated server and I am getting a very
annoying behaviour.
I am able to view the site just fine when using the ip.
The name is properly resolved on my computer, however I am getting
"Bad Gateway The proxy server received an invalid response from an upstream
server."
This is simply random. The site works for several minutes, then i get this
message for some
2006 Jan 21
1
db access or @session?
Does it make sense to use the @session to store some values instead of
accessing the db on each request?
I am trying to optimize the most accessed area, a page that every visitor
would access hundreds of times daily.
Thanks,
Bogdan
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Feb 02
4
Random (connections.c.1330) error-handler not found: /dispatch.fcgi
Hello,
Again another random occurance of a problem.
lighttpd.error.log contains lines like:
2006-02-02 05:02:00: (connections.c.1330) error-handler not found:
/dispatch.fcgi
2006-02-02 05:02:00: (connections.c.1330) error-handler not found:
/dispatch.fcgi
2006-02-02 05:02:00: (connections.c.1330) error-handler not found:
/dispatch.fcgi
2006-02-02 05:35:08: (connections.c.1330) error-handler not
2006 Jul 16
3
RJS problem
I have an odd problem while trying to use a simple rjs.
_test.rjs : page.alert "test"
test.rhtml: <script><%=render_partial(''test'')%></script>
When I am attempting to view controller/test the page comes as if it was a
text file.
So i am actually seeing:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2006 Mar 25
3
Rails and Lighttpd, hangs?
I know this is kind of a generic question. But, when hitting my
lighttpd/rails site on some of the first hits, the site hangs. I
think it has something with the lighttpd configuration, possibly
something I am missing with rails or ruby? Any ideas or how to track
this down.
fastcgi.server = (
".fcgi" => (
"0.0.0.0" => (
"socket" =>
2006 Apr 18
2
link_to_function onmousedown
Hi,
Is there some way to produce an anchor that looks like the following
using helpers, or should I just code it in the rhtml like this?
<a href="#" onmousedown="javascript:foo(); return false">
Thanks,
Brad
--
Bradley Mazurek
2006 Sep 26
9
Encrypt URL Params, such as the id
Is there any easy way to encrypt the URL params that is seen in the URL.
I dont feel comfortable exposing the id of the models to the external
user.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2006 Mar 01
15
Is there a perl equivalent of .= in ruby/rails??
I want to make a for loop that concats strings onto a variable:
html .= var1 + "this is a test" + whatever
What is the syntax that does this in ruby/rails?
Also, is there a ''print'' method in ruby? Because when I try to use
render_text it will only let me use this once.
--
Posted via http://www.ruby-forum.com/.
2006 Mar 13
2
Prototype ajax/javascript q
I''m trying to send to my application the coords x,y on an "input type
image" in a html form, but x,y variables are not present in the
POST_DATA (are not submitted). Any other field (hidden inputs) are being
sent when I click on the image input form field.
I use rails 1.0 and prototype 1.4, browsers Seamonkey
2.0, Firefox 1.x and Konqueror, Linux, and I''m just a
2015 Jun 17
1
Can't login to Windows 2012R2 with domain user
Thank you!
Does it possible to convert this git diffs -
https://attachments.samba.org/attachment.cgi?id=11162 to common patch? I
would like to apply it to Sernet packages sources and rebuild it for test.
On Wed, Jun 17, 2015 at 6:05 PM, mourik jan heupink <heupink at merit.unu.edu>
wrote:
> Perhaps this:
>
> https://bugzilla.samba.org/show_bug.cgi?id=11061
>
>
> On
2001 Mar 01
1
a directory refresh bug in dos.
I'm very sorry, but I cannot find any way to send you my bug report.
(The email account samba-bugs is disabled, while it can be found on the
web page http://de.samba.org/samba/bugreports.html)
Can you please send my bug report to the right place, or tell me what
should I do to send it to the right person?
Thank you very much!
Bogdan Zavalnij
system administrator
---------- Forwarded
2017 Jun 06
1
integrating 2 lists and a data frame in R
Here's another approach:
N <- data.frame(N=c("n1","n2","n3","n4"))
M <- data.frame(M=c("m1","m2","m3","m4","m5"))
C <- data.frame(n=c("n1","n2","n3"), m=c("m1","m1","m3"), I=c(100,300,400))
# Rebuild the factors using M and N
C$m <-
2017 Jun 06
0
integrating 2 lists and a data frame in R
Hi Bogdan,
Kinda messy, but:
N <- data.frame(N=c("n1","n2","n3","n4"))
M <- data.frame(M=c("m1","m2","m3","m4","m5"))
C <- data.frame(n=c("n1","n2","n3"), m=c("m1","m1","m3"), I=c(100,300,400))
2017 Jun 06
1
integrating 2 lists and a data frame in R
Simple matrix indexing suffices without any fancier functionality.
## First convert M and N to character vectors -- which they should
have been in the first place!
M <- sort(as.character(M[,1]))
N <- sort(as.character(N[,1]))
## This could be a one-liner, but I'll split it up for clarity.
res <-matrix(NA, length(M),length(N),dimnames = list(M,N))
res[as.matrix(C[,2:1])] <-
2017 Jun 06
2
integrating 2 lists and a data frame in R
> On Jun 6, 2017, at 4:01 AM, Jim Lemon <drjimlemon at gmail.com> wrote:
>
> Hi Bogdan,
> Kinda messy, but:
>
> N <- data.frame(N=c("n1","n2","n3","n4"))
> M <- data.frame(M=c("m1","m2","m3","m4","m5"))
> C <-
2011 Jul 16
4
Z-test
Hi,
please could you recommend a R package that computes a 2 sample z-test ?
thanks,
Bogdan
[[alternative HTML version deleted]]
2017 Jun 06
0
integrating 2 lists and a data frame in R
Thank you David. Using xtabs operation simplifies the code very much, many
thanks ;)
On Tue, Jun 6, 2017 at 7:44 AM, David Winsemius <dwinsemius at comcast.net>
wrote:
>
> > On Jun 6, 2017, at 4:01 AM, Jim Lemon <drjimlemon at gmail.com> wrote:
> >
> > Hi Bogdan,
> > Kinda messy, but:
> >
> > N <-