Displaying 20 results from an estimated 6000 matches similar to: "Very strange - major leak, crashed mongrel"
2012 Jul 18
0
Rails 3.1 Optional Routes
Hi all,
I am using Rails 3.1 and Ruby 1.9.2
In my application i am using optional routes like below
match ''Gallery(/:gallery_id(/:image_id))(/page/:g_page)'' => "wps/
gallery#show_gallery_page",:as => :gallery_page
in console i am trying to call the routes like below
include Rails.application.routes.url_helpers
=> Object
1.9.3dev :002 > gallery_page_path
2010 Sep 08
2
subbing a string vector for another string vector
I have a data frame with two columns:
image pattern
1 http://$IMAGE_ID$ www.url.com/image.jpg
2 $IMAGE_ID$ http://www.blah.com/image.gif
...
I want to replace "$IMAGE_ID$" with the corresponding entry in the pattern
column such that the result would appear as follows:
url
http://www.url.com/image.jpg
2006 Sep 03
7
using polymorphic associations with acts_as_list
This is what I have
class Photo < ActiveRecord::Base
belongs_to :image, :polymorphic => true
acts_as_list :scope => image
end
class Place < ActiveRecord::Base
has_many :photos, :as => :image
end
class Child < ActiveRecord::Base
has_many :photos, :as => :image
end
I want to be able to reorder the images. What I need is for the
position of the photos to be set
2006 Jan 14
0
Compact db design a bad idea?
Hi,
I have tried two db designs and both can work but I wonder which one
the Rails Gurus would go with. This is a general db design question
that has cropped up in a few situation. Here is the example I''ve been
working on.
In an online store, categories has_and_belongs_to_many images and
products has_and_belongs_to_many images. The db has the basic three
tables
categories
- id
- name
2006 Mar 20
1
FileColumn question
Can someone please help me with this.
I have an Images table :-
create table images (
id integer unsigned not null auto_increment primary key,
image varchar(200) not null default ''''
)ENGINE=InnoDB default CHARSET=latin1;
And a car table :-
create table cars (
id integer unsigned not null auto_increment primary key,
user_id integer unsigned not null,
title varchar(100) not
2007 Feb 08
0
mongrel limiting amount of connections ?
Hi!
I''ve been using Mongrel in a Rails setup with HAProxy as a loadbalancer.
I used to use Pound, but HAProxy is much more performant and has the
very nice option to limit the amount of requests sent to the backend
servers/processes. In practice, this means that a new incoming request
will not be sent to a Mongrel that''s already busy processing a request.
There''s
2008 Jan 22
1
getting multiple select to work: options_for_select
Hi,
<%= select_tag ''image_id'', options_for_select(Image.find(:all) {|
an_image| [ an_image.name, an_image.id ] }), :multiple => true %></p>
* I am in a view, and I am trying to search the image table and make a
multiple select box with each image''s name.
* Right now it is working, but I see this:
---------------------------------------------
2024 Jan 26
3
[Bug 3660] New: Prevent disastrous unintended local copying
https://bugzilla.mindrot.org/show_bug.cgi?id=3660
Bug ID: 3660
Summary: Prevent disastrous unintended local copying
Product: Portable OpenSSH
Version: 9.6p1
Hardware: Other
OS: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: scp
Assignee: unassigned-bugs at
2006 Jul 18
0
another 2 newbie questions
Hey all,
Ok I have three tables:
Images(id,name,dirid) #dirid is a foreign key to Album.url, the path
to the image
Albums(id,url)
Tags(id,name)
ImagesTags(image_id,tag_id)
I have a HABTM relation for tags and images and a belongs_to/has_many
relation for albums and images.
Now in my views/tag/show.rhtml I have this:
<% for album in @albums %>
<% for image in @images %>
<% if
2006 May 16
0
strange MySQL data populating
I am getting weird data when trying to use HABTM.
I have a Images table with columns id, title, and file.
I have a Categories table with columns id, name.
I have a join table for them with image_id, and category_id
when I do @images.inspect I get:
[#"image 1", "id"=>"52", "portrait"=>"0",
2006 Jul 17
6
3 newbie questions
hey all,
I have 3 tables like this:
Images (id,name)
Tags (id,name)
ImagesTags(imageid,tagid)
in my image model I do a "has_and_belongs_to_many :tags" but to make
it work I need to rename ImagesTags(imageid,tagid) to
Images_Tags(image_id,tag_id). My question is that given that I can''t
rename the table, is there any way to make it work with the original
names?
Second question:
2012 Apr 03
2
pairwise linear regression between two large datasets
Hi all,
I am trying to perform some analysis on the residuals of pair-wise linear
regressions between two large sets A with dimensions {k x m}, and B {k x n}
. So I need to regress every column B[,j] of B on every column A[,i] of A
and produce a matrix C with dimensions {m x n}, so that C[i,j] contains the
z-score of the k-th (last) residual of the aforementioned linear regression.
I have tried
2018 Jan 09
0
[cfe-dev] Why is #pragma STDC FENV_ACCESS not supported?
>The standard argument against trying to introduce "scope-like" mechanisms to LLVM IR is inlining;
>unless you're going to prevent functions that use stricter/laxer FP rules from being inlined >into
>each other (which sounds disastrous), you're going to need to communicate strictness on an
>instruction-by-instruction basis. If the backend wants to handle that by
2009 Jan 29
0
File descriptor leak in Mongrel server?
Excuse my ignorance for I''m a RoR newby.
We have a number of RoR applications running on a server with a cPanel
installation. One of the clients sites went belly up with the error
message:
Errno::EMFILE
Too many open files - socket(2)
Digging a bit I found that the mongrel server had a large number of
sockets open and appears to be leaking them fairly frequently. The
lsof looks like
2008 Sep 17
0
memory leak? shows up in mongrel, not webrick
I''ve got an app that iterates through an array of 1000+ ActiveRecords
in order to support quick AJAX filtering. When the app is running on
mongrel(s), this process makes the RAM usage go through the roof
(i.e., adding 50MB per iteration) and the usage never goes back down.
Running on webrick, the app stabilizes at around 70MB and never goes
higher no matter how many times I iterate
2006 Aug 26
0
Mongrel 0.3.13.4 Pre-Release -- Ruby's LEAK Fixed (Death To Mutex!)
Howdy Folks,
This release is after painstaking analysis of a memory leak that was
reported by Bradley Taylor, reduced by myself, and then fixed after much
work. You should all thank Bradley for finding the bizarre fix.
It turns out the Ruby has a memory leak when you use pretty much any
thread locking primitive other than Sync (Mutex, Monitor, etc.):
http://pastie.caboo.se/10194
The fix (for
2006 Apr 24
1
rmeta: forest plot problem
Der useRs,
I'm working on meta analysis using rmeta package. Using code below I
plot the forest plot:
library(rmeta)
data (catheter)
a<-meta.MH (n.trt, n.ctrl, col.trt, col.ctrl, data=catheter, names=Name,
subset=c(13,6,5,3,7,12,4,11,1,8,10,2))
summary(a) # odds ratio values and confidence intervals
metaplot(a$logOR, a$selogOR, nn=a$selogOR^-2,a$names, summn=a$logMH,
sumse=a$selogMH,
2006 Jan 25
1
asterisk 1.2.3 call problem
Hi,
I've tried to upgrade my asterisk to 1.2.3 again after disastrous bug
incident yesterday but when I called and the phone was picked up, there
was simply busy tone...
Weird, is this another bug in asterisk 1.2.3?
Currently, I rollback again to asterisk 1.0.10...:(
Is there any configuration change issue in 1.2.3 cause I've just used my
configuration that worked in asterisk1.2.2 ?
2014 Sep 22
1
CentOS 7 installer
I dunno if this ours, or an upstream enhancement, but I was just
rebuilding a 6.5 box with 7. I selected custom formatting.
1. It seems to autoselect *ALL* drives. I would strongly argue that it
should *only* select the first drive, or whichever is already bootable.
That could be disastrous if someone doesn't notice they're all selected.
2. There's NO BACK BUTTON once you get into the
1999 May 27
1
Factor structures not preserved after dump/dput (PR#200)
Full_Name: Marek Ancukiewicz
Version: 0.64.0
OS: Linux (RedHat 6.0)
Submission from: (NULL) (132.183.12.87)
I've noticed that factor structures get recoded when the data is dumped
using either dump or dput and then restored with source or dget. This
occurs when the values taken by factors do not include 1. For example:
a <-