Displaying 20 results from an estimated 300 matches similar to: "Self-referential join model does not work"
2006 May 23
6
How to list all models of an application?!?
How can I get a list of all model classes in the domain of a Rails
application (all models, both in "app/models" and in
components/somedir/model.rb)?
Thanx in advance for your precious help!
Edoardo "Dado" Marcora
2006 Jan 30
1
Example on how to boost a field?
I am wondering whether one could boost certain fields (e.g., title and
keywords) to make them ''weigh'' more against searches across all fields.
I know that Document::Field has a boost attribute and that it accepts a
boost argument in the constructor (although I''ve had not much luck with
it, I am just getting back exceptions upon init w/ boost), but I was
wondering
2005 Dec 23
4
OO model style: inheritance
Hi everybody
I am totally new to rails and I am trying to start a
tiny project to get familiar with rails. But I already
got my first problem and I would be happy if somebody
could point me in the best and cleanest direction.
I am trying to develop a small gallery app. Since I
would like to add more features in future I am trying
to design a clean OO architecture of my models:
The base object
2006 Sep 13
3
How to avoid AR confusing way of handling default values for attributes w/ :null => false
How can I avoid AR confusing way of handling default values for
attributes w/ :null => false?
This issue came up before, but I could not find an answer that resolves
the issue, which I outline below:
First, I add a test table using migrations:
class AddTestTable < ActiveRecord::Migration
def self.up
create_table "users", :force => true do |t|
t.column
2020 Aug 05
1
[PATCH v3 35/38] virtio_mem: convert to LE accessors
Virtio mem is modern-only. Use LE accessors for config space.
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
---
drivers/virtio/virtio_mem.c | 30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/drivers/virtio/virtio_mem.c b/drivers/virtio/virtio_mem.c
index f26f5f64ae82..c08512fcea90 100644
--- a/drivers/virtio/virtio_mem.c
+++
2003 Apr 26
1
Maxtor 5000XT Firewire/USB2 Drive
Hi,
I am trying to get FreeBSD 4.7 to connect to a Maxtor 5000XT drive, but I get the following when connecting it ->
Apr 26 09:19:43 chowder /kernel: fwohci0: node_id = 0xc000ffc1, CYCLEMASTER mode
Apr 26 09:19:43 chowder /kernel: firewire0: 2 nodes, maxhop <= 1, cable IRM = 1 (me)
Apr 26 09:19:50 chowder /kernel: fwohci0: BUS reset
Apr 26 09:19:50 chowder /kernel: fwohci0: node_id =
2009 Sep 05
2
Running two R instances at the same time
Dear R experts,
please excuse me for writing to the mailing list without subscribing.
I have a somewhat urgent problem that relates to R.
I have to process large amounts of data with R - I'm in an
international collaboration and the data processing protocol is fixed,
that is a specific set of R commands has to be used.
I wrote a perl program that manages creation of data subsets from my
2009 Sep 05
2
Running two R instances at the same time
Reposting from R-help:
Dear R experts,
please excuse me for writing to the mailing list without subscribing.
I have a somewhat urgent problem that relates to R.
I have to process large amounts of data with R - I'm in an
international collaboration and the data processing protocol is fixed,
that is a specific set of R commands has to be used.
I wrote a perl program that manages creation of
2012 Jan 03
6
Puppet Dashboard: db:migrate failure (1.2.2 to 1.2.4)
An error I managed to hit today, trying to migrate puppet dashboard from
1.2.2 to 1.2.4 (after upgrading the master to puppet 2.7.9 seemed to
prevent the dashboard from importing new reports). I''m trying to re-run it
now, but as you might guess, the DB is pretty huge and the process takes a
while to execute.
Executed from the puppet-dashboard directory: sudo rake db:migrate
2006 Aug 18
10
TreeCtrl update
The previous TreeCtrl.i was very messy and just plain wrong, for
instance it had GetFirstChild as depreciated when in fact only 1
version of it was depreciated not both.
I changed GetFirstChild and GetNextChild to return an array of values
to match the wxPython and wxPerl usage.
I also noticed that wxTreeCtrl is inherited from wxControl on Windows
and wxScrolledWindow on everything else so I #if
2020 Jun 08
4
[PATCH] virtio_mem: prevent overflow with subblock size
If subblock size is large (e.g. 1G) 32 bit math involving it
can overflow. Rather than try to catch all instances of that,
let's tweak block size to 64 bit.
It ripples through UAPI which is an ABI change, but it's not too late to
make it, and it will allow supporting >4Gbyte blocks while might
become necessary down the road.
Fixes: 5f1f79bbc9e26 ("virtio-mem: Paravirtualized
2020 Jun 08
4
[PATCH] virtio_mem: prevent overflow with subblock size
If subblock size is large (e.g. 1G) 32 bit math involving it
can overflow. Rather than try to catch all instances of that,
let's tweak block size to 64 bit.
It ripples through UAPI which is an ABI change, but it's not too late to
make it, and it will allow supporting >4Gbyte blocks while might
become necessary down the road.
Fixes: 5f1f79bbc9e26 ("virtio-mem: Paravirtualized
2006 Jun 06
2
Toggle css for display on page load?
In my layout I have a navigation bar with a few elements in it. The
elements can be toggled on or off and thereby reveal or conceal some
subtopics. I store the state of the toggle for the navigation elements
in the session.
When the page is reloaded, the navigation items are collapsed because
the css for display: none is set by default in the html for the
navigation elements. Is there a
2017 Jan 04
2
Amavis on Centosl help
I'm moving from Ubuntu to CentOS 7
Previously, on Ubuntu, installing amavisd would lead to
etc/amavis/conf.d that contained:
01-debian
05-domain_id
05-node_id
15-av_scanners
15-content_filter_mode
20-debian_defaults
21-ubuntu_defaults
25-amavis_helpers
30-template_localization
40-policy_banks
50-user
However installing amavisd on centos leads to a spaghetti config file
(i.e.
2006 May 08
2
Associating with different classes
Dear Railers,
I am toying with a new project and have a schema design question.
I have a tree-like node structure. Each of the nodes will be
associated with a single object. This associated object can be of a
variety of types.
I represent the tree through a Node class which acts_as_tree. Now
imagine three other classes--Animals, Fruits and Vegetables. Each
node will have an association
2017 Jun 02
1
more recent perl version?
On 2/6/2017 2:05 ??, hw wrote:
> That?s a good thing, though it can be difficult to run systems
> using ancient software.
You may want to check the following paradigm (from another open source
perl-based application) to create a Perl environment within your system,
avoiding to tamper with it:
https://metacpan.org/pod/App::Netdisco#Installation
We are running it in production for
2008 Feb 03
4
Extract vowels and consonants using Ruby Regex
Hello,
I am trying to build a regex to extract vowels and consonants from a
string. So far, I am able to extract the basic a-e-i-o-u sequence
using the following extension to the String class:
class String
def vowels
scan(/[aeiou]/i)
end
def consonants
scan(/[^aeiou]/i)
end
end
examples:
>> "Mary had a little lamb".vowels
=> aaaiea
>> "Mary had a
2012 Oct 24
5
Multiple resource definition error
Hi,
So, I am writing a module to install and configure ucarp. There is only
one module in puppet forge and that is not that good.
In ucarp, same configuration files have to be served on two servers and
to configure the host I am defining a custom resource
ucarp::host::config. So, for using, I''ll have to create this resource
two times on two different servers. So, this resource
2012 Jan 13
1
mysql errors
I''m currently running three puppet masters (version 2.7.3 via apache
+passenger) in a cluster, 2 on CentOS 5.7, 1 on CentOS 6.1
On the 6.1 master, I am frequently getting the following error
(approximately 50% of the time when a client connects):
err: Could not retrieve catalog from remote server: Error 400 on
SERVER: Mysql::Error: Unknown prepared statement handler (7) given to
2020 Mar 03
1
[PATCH v1 02/11] virtio-mem: Paravirtualized memory hotplug
Hi David,
I love your patch! Yet something to improve:
[auto build test ERROR on pm/linux-next]
[also build test ERROR on linus/master v5.6-rc4 next-20200302]
[cannot apply to linux/master mmotm/master]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git