Displaying 20 results from an estimated 600 matches similar to: "Obtaining the ID of a newly saved model object"
2006 Aug 08
1
How to convert list elements to data.frames or vectors?
Dear R mailing-list comunity!
I'm currently trying to implement an R method. I have two sets of data
that I convert into a data.frame each. These data.frames I'd like to
append to a list:
# generate a list
listTable<-list()
# add one set of data
x<-1000 ;y<-1 ;listTable[[length(listTable) + 1]] <-
data.frame(matrix(rnorm(x*y), nrow=y)); rm(x); rm(y)
# add another set of
2006 Mar 06
4
rails internals?
Is there a list for discussing Rails internals or is that kind of one
of those jealously guarded secret things?
Also, I seem to be being a bit of a prat today, but if you read this closely:
http://www.rubyonrails.org/images/headlines/community.gif
Bit of a grammatical error there. (Sorry!)
Giles
2006 Feb 23
5
sortable_list added to by AJAX question
I have a working sortable_list that is added to by AJAX. The problem is
that when a new item is added, it''s not sortable. I found a post on
scriptaculous using behaviour.js to refresh the DOM when an item is
added, but I can''t figure out how to do it with Rails.
To test the behaviour method, I used this:
var myrules={
''div#steps ul'' :
2008 May 27
3
[PATCH] VT-d: IOTLB flush fixups
On map: only flush when old PTE was valid or invalid PTE may be cached.
On unmap: always flush old entry, but skip flush for unaffected IOMMUs.
Signed-off-by: Espen Skoglund <espen.skoglund@netronome.com>
--
iommu.c | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
--
diff -r 8187fd8113f9 xen/drivers/passthrough/vtd/iommu.c
---
2008 Nov 18
6
[PATCH] fix memory allocation from NUMA node for VT-d.
The memory relating guest domain should be allocated from NUMA node on
which the guest runs.
Because the latency of the same NUMA node is faster than that of a
different one.
This patch fixes memory allocation for Address Translation Structure
of VT-d.
VT-d uses two types of Structures for DMA address translation.
The one is Device Assignment Structure.
The other is Address Translation
2004 Aug 06
4
Problem with ices on OpenBSD 2.9 w/ Icecast 1.3.10
On Tuesday, 10 July 2001 at 14:10, Nick Ludlam wrote:
> From: "Brendan Cully" <brendan@icecast.org>
> > On Tuesday, 10 July 2001 at 03:21, Nick Ludlam wrote:
> > > From: "Brendan Cully" <brendan@icecast.org>
> > > > That handles the segfault, I don't know why the stream wouldn't be
> > > > sent fast enough though...
2006 Feb 07
11
Possible Rails Security Issue?
I have an e-commerce site and users check out with a form. The
results of that form are sent to a "confirm your order" page via
POST. I take great pains to NEVER store the full credit card number
on my server--just the last 4 digits. I was very surprised to find
that by default Rails will record POST requests with parameters in
the production.log. And those parameters
2004 Aug 06
2
Problem with ices on OpenBSD 2.9 w/ Icecast 1.3.10
On Tuesday, 10 July 2001 at 03:21, Nick Ludlam wrote:
> From: "Brendan Cully" <brendan@icecast.org>
> > That handles the segfault, I don't know why the stream wouldn't be
> > sent fast enough though...
>
> Tried with winamp, sonique and freeamp. All exhibit the same problem of
> stuttering play, and eventually this drops out of the icecast log:
>
2006 Feb 16
3
rescue_action_in_public question
I''m using the rescue_action_in_public example from the Agile book to
handle errors and email serious ones to me. In my application.rb
controller:
def rescue_action_in_public(exception)
logger.error("rescue_action_in_public executed")
case exception
when ActiveRecord::RecordNotFound, ActionController::RoutingError,
ActionController::UnknownAction
2005 Nov 14
1
Yeah !!!
Wow !! Seems like RedCloth is now able to output DocBook !!!!
Great I have to Say !!!
--
Frederick Ros aka Sleeper -- sleeper at jabber.fr
Make sure special cases are truly special.
- The Elements of Programming Style (Kernighan & Plaugher)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189
2008 Mar 27
21
[PATCH 0/5] Add MSI support to XEN
Hi, Keir,
These patches are rebased version of Yunhong''s original patches,
which were sent out before XEN 3.2 was released. These patches enable
MSI support and limited MSI-X support in XEN. Here is the original
description of the patches from Yunhong''s mail.
The basic idea including:
1) Keep vector global resource owned by xen, while split pirq into
per-domain
2008 Dec 08
4
[PATCH][VTD] pci mmcfg patch for x86-64 - version 2
Fixes made in version 2:
1) Use PML4[257] for ioremap of PCI mmcfg. As full 16-bit segment support would require 44-bits. Since each slot only has 39-bits, we support 2048 PCI segments for now. This can be easily expanded if deemed necessary in the future.
2) Integrated PCI mmcfg access with existing PCI config interface for x86_64. Use MMCFG interface if offset is greater than 256.
2008 May 19
21
[PATCH 0/5] VT-d support for PV guests
Hi,
I''ve added some preliminary support for VT-d for paravirtualized
guests. This must be enabled using an ''iommu_pv'' boot parameter
(disabled by default).
I''ve added some python bindigs to allow xend to assign PCI devices to
IOMMU for PV guests. For HVM guests this is handled in ioemu. Not
sure if it makes sense to handle both cases in one place.
The
2006 Feb 03
2
JavaScript Prototype Help?
I have a form with a text area. I want to have an observer watch the
text area and update a div with the running count of characters in
the text area. I tried "onchange" but that doesn''t update until you
leave the text area. I was able to get it working using AJAX, but
it''s silly to make a needless round trip to the server, when the page
already knows
2012 Sep 11
4
Should i buy Ruby on Rails 3 Essential Training with Kevin Skoglund from Lynda.com
hello people, i m new to rails and i m thinking of buying Ruby on Rails 3
Essential Training with Kevin Skoglund tutorial
http://www.lynda.com/Ruby-on-Rails-3-tutorials/essential-training/55960-2.html
but problem is the tutorial is created on 2010 oct => so its 2 yrs old
so my question it is fine to Buy these Tutorial in the changing rails world?
Please Help me
--
You received this
2006 Apr 29
1
Textile to LaTeX
Hello,
Is there a patch laying around somewhere to convert
Textile to LaTeX? (Instiki did/does this?)
Or, better yet, is RedCloth 3.1 still in the pipeline?
In ruby-talk 129874 (7 Feb 2005), why the lucky stiff wrote:
>
> Let me give you a roadmap of what to expect with RedCloth 3
> in the coming months.
>
> RedCloth 3.1 will focus on getting us diverse outputs.
2004 Aug 06
1
Ices 0.3 won't play mp3 file
OK...messing with 'gdb' (of which I am completely new to)
<p>Here's is the complete output from what I've done with 'gdb'
----------------------------------------------------------------
# gdb ices
GNU gdb 4.18 (FreeBSD)
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it
2008 Apr 10
8
[PATCH][RFC]Move PCI Configuration Spaces from Dom0 to Xen
Hi, Keir,
This patch will move reading and writing of PCI configuration spaces
from dom0 to Xen. It also changes VTD code, so that they can touch the
PCI configuration spaces with proper lock.
This will also benefit MSI support in Xen.
Can you give some comments? Thanks!
<<pci_conf_xen.patch>>
Best Regards
Haitao Shan
_______________________________________________
Xen-devel
2005 Dec 19
6
custom find methods and pagination
i''ve got several methods in my models i use to find based on certain
criteria...i''ve done this so the controller code is less cluttered, plus the
DRY factor.
example:
class Foo < ActiveRecord::Base
def find_by_something(something)
find :all, :joins => ..., :conditions => ...
end
def find_by_something_else(something_else)
find :all, :joins => ...,
2005 Nov 21
3
New code: proposed release?
So I just wanted to review what most of my new code does for those
who are not familiar with it yet.
======
The biggest feature of my work is the docbook export. This means that
any valid textile markup can be exported to the docbook standard. I
added a new chapter tag to go along with the export.
ch. 1. Here is the title
In HTML, this will produce:
<h1>1. Here is the