Displaying 20 results from an estimated 2000 matches similar to: "Best way to get data from n+1 models"
2006 Jun 01
2
Union all
Hi there.
I have two models (and two tables, of course), let''s call them Room and
Reserved, with similar fields but with the last one with some extra
info, and need to get data from both using a "union all". Let''s think on
a hotel where I need to "glue" data to take a snapshot from the
occupation like:
Room (number,date,ocupied_by)
2005 Jun 19
4
dcom98.exe fails to install.
I used the tool wine-config-sidenet from
http://sidenet.ddo.jp/winetips/config.html which works great.
I installed wine 20041201 as recommended and started wine-config-sidenet
setup program and IE6 seemed to run great however, some URLs didn't work
for example: www.arkia.co.il.
Looking at the FAQ I noticed I should install dcom98.exe. When
installing it I got windows popup stating:
2023 Apr 06
3
[PATCH] ocfs2: Fix wrong search logic in __ocfs2_resv_find_window
** problem **
Current code triggers a defragfs bug [1]:
```
tw-tst:~ # defragfs.ocfs2 /mnt/test_from_dd1
defragfs.ocfs2 1.8.7
[ERROR]Move extent failed:"/mnt/test_from_dd1" - No space left on device
[ERROR]"/mnt/test_from_dd1":No space left on device
```
I added some debug messages in relevant functions. When above error
messages appeared, the la-window still had enough
2023 Apr 21
2
[PATCH] ocfs2: Fix wrong search logic in __ocfs2_resv_find_window
Hi,
Could you please share a reproducer?
Thanks,
Joseph
On 4/6/23 11:40 PM, Heming Zhao wrote:
> ** problem **
>
> Current code triggers a defragfs bug [1]:
>
> ```
> tw-tst:~ # defragfs.ocfs2 /mnt/test_from_dd1
> defragfs.ocfs2 1.8.7
> [ERROR]Move extent failed:"/mnt/test_from_dd1" - No space left on device
> [ERROR]"/mnt/test_from_dd1":No space
2013 Aug 22
1
How do I deal with ActiveRecord::RecordInvalid: Validation failed:
Hello all,
I am currently writing model tests in rails 4. I am attempting to add an
error to a reservation object if the total number of reservations for a
given date and time has reached a pre-determined limit.
When my test runs, it is hitting the appropriate code but it is raising the
following error as opposed to just giving me an error in the object that I
can use.
2023 Apr 29
1
[PATCH] ocfs2: Fix wrong search logic in __ocfs2_resv_find_window
ping...
On 4/21/23 3:35 PM, Joseph Qi wrote:
> Hi,
> Could you please share a reproducer?
>
> Thanks,
> Joseph
>
> On 4/6/23 11:40 PM, Heming Zhao wrote:
>> ** problem **
>>
>> Current code triggers a defragfs bug [1]:
>>
>> ```
>> tw-tst:~ # defragfs.ocfs2 /mnt/test_from_dd1
>> defragfs.ocfs2 1.8.7
>> [ERROR]Move extent
2011 May 20
2
scsi3 persistent reservations in cluster storage fencing
I'm interested in the idea of sharing a bunch of SAS JBOD devices
between two CentOS servers in an active-standby HA cluster sort of
arrangement, and found something about using scsi3 persistent
reservations as a fencing method. I'm not finding a lot of specifics
about how this works, or how you configure two initiator systems on a
SAS chain. I don't have any suitable
2006 Mar 25
12
Newbie question about database consistency
I''m a newbie for RoR, and also web dev and database design (but been
doing C++ apps for years). I''m trying to learn to use RoR and mySQL by
doing a toy project. What I''m trying to do is a web base reservation app
for lab machines. I have a number of machines, each can be reserved on
hourly basis. So I set up a the following tables: users, machine,
reservations. The
2008 Oct 24
4
AR object return nil on save
Hi!
I''m upgrading existing app from Rails 1.2.6 to 2.1.2. I have
encountered following problem with AR objects.
Model definition did not change and with 1.2.6:
params={}
params[:flight] = "1111"
params[:airline] = "Air France"
params[:luggage] = 0
r=Reservation.new params
r.save
is working code, new Reservation. With the same dataset, changing only
2019 May 20
5
[PATCH 1/2] drm: Add drm_gem_vram_{pin/unpin}_reserved() and convert mgag200
On Thu, May 16, 2019 at 06:27:45PM +0200, Thomas Zimmermann wrote:
> The new interfaces drm_gem_vram_{pin/unpin}_reserved() are variants of the
> GEM VRAM pin/unpin functions that do not reserve the BO during validation.
> The mgag200 driver requires this behavior for its cursor handling. The
> patch also converts the driver to use the new interfaces.
>
> Signed-off-by: Thomas
2019 May 20
5
[PATCH 1/2] drm: Add drm_gem_vram_{pin/unpin}_reserved() and convert mgag200
On Thu, May 16, 2019 at 06:27:45PM +0200, Thomas Zimmermann wrote:
> The new interfaces drm_gem_vram_{pin/unpin}_reserved() are variants of the
> GEM VRAM pin/unpin functions that do not reserve the BO during validation.
> The mgag200 driver requires this behavior for its cursor handling. The
> patch also converts the driver to use the new interfaces.
>
> Signed-off-by: Thomas
2005 Nov 11
5
xen-unstable: TX/RX ring buffer exhaustion and NR_GRANT_FRAMES
Hi,
it seems as if it is not possible to have more than 3 nics per domU
right now. If I specify more, I get the usual
[...]
xen_net: Initialising virtual ethernet driver.
#### netfront can''t alloc rx grant refs
vif: probe of vif-3 failed with error -12
[...]
message - see bug #183. It was pointed out to me that it might be
possible to adjust this manually in
2013 Feb 07
1
[PATCH] Btrfs: cleanup orphan reservation if truncate fails
I noticed we were getting lots of warnings with xfstest 83 because we have
reservations outstanding. This is because we moved the orphan add outside
of the truncate, but we don''t actually cleanup our reservation if something
fails. This fixes the problem and I no longer see warnings. Thanks,
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
---
fs/btrfs/inode.c | 2 ++
1
2016 Jun 22
1
KVM HA
Once upon a time, Digimer <lists at alteeve.ca> said:
> The cluster software and any hosted services aren't running. It's not
> that they think they're wrong, they just have no existing state so they
> won't try to touch anything without first ensuring it is safe to do so.
Well, I was being short; what I meant was, in HA, if you aren't known to
be right, you are
2016 Jul 07
1
DHCP max-lease-time maximum
Am 06.07.16 um 18:19 schrieb John R Pierce:
> On 7/6/2016 1:27 AM, G?tz Reinicke - IT Koordinator wrote:
>> :) ... the long lease is for some Accesspoints which we dont like to
>> configure static, just plug in and run.
>
> why not configure reservations for those access points?
>
> the downside of a really long lease time is if you have to change
> something like
2019 Apr 10
2
[Qemu-devel] [PATCH v5 2/5] virtio-pmem: Add virtio pmem driver
On Wed, 10 Apr 2019 10:03:01 -0400 (EDT)
Pankaj Gupta <pagupta at redhat.com> wrote:
> >
> > On Wed, Apr 10, 2019 at 09:38:22AM +0530, Pankaj Gupta wrote:
> > > This patch adds virtio-pmem driver for KVM guest.
> > >
> > > Guest reads the persistent memory range information from
> > > Qemu over VIRTIO and registers it on nvdimm_bus. It
2019 Apr 10
2
[Qemu-devel] [PATCH v5 2/5] virtio-pmem: Add virtio pmem driver
On Wed, 10 Apr 2019 10:03:01 -0400 (EDT)
Pankaj Gupta <pagupta at redhat.com> wrote:
> >
> > On Wed, Apr 10, 2019 at 09:38:22AM +0530, Pankaj Gupta wrote:
> > > This patch adds virtio-pmem driver for KVM guest.
> > >
> > > Guest reads the persistent memory range information from
> > > Qemu over VIRTIO and registers it on nvdimm_bus. It
2013 Aug 20
3
Re: Oracle RAC in libvirt+KVM environment
My domain xml is like this:
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<name>2008-2</name>
<uuid>6325d8a5-468d-42e9-b5cb-9a04f5f34e80</uuid>
<memory unit='KiB'>524288</memory>
<currentMemory unit='KiB'>524288</currentMemory>
<vcpu
2007 Jul 06
1
Changing Tick Mark Values for lattice / wireframe
How can I change the tick mark values in lattice, specifically wireframe?
I have a 11*46 matrix of values that I am plotting using wireframe.
Unfortunely, the values range from 0.1-1.1 and 0.5-5. Using the code
below the tick marks have are (2,4,6,8,10) and (10,20,30,40).
Thanks in advance.
graphic5 <- wireframe(output.matrix, shade= TRUE,
scales = list(arrows = FALSE,
cex=.6,
2014 Jul 31
2
[PATCH 00/17] Convert TTM to the new fence interface. v2
This series applies on top of the driver-core-next branch of
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git
Before converting ttm to the new fence interface I had to fix some
drivers to require a reservation before poking with fence_obj.
After flipping the switch RCU becomes available instead, and
the extra reservations can be dropped again.
I've done at least basic