Displaying 20 results from an estimated 32 matches for "_type".
Did you mean:
type
2019 Mar 08
1
syslog / logstah problem with timestamp
Hallo,
I try to send my centos 7 logfiles to an logstsah server.
Can anyone give me an hint how to fix this problem?
Thanks
Ralf
> {"index"=>{"_index"=>"%{[@metadata][comline]}-%{[@metadata][version]}",
> "_type"=>"doc", "_id"=>"U1XLXGkBpfl5FoHeY4J8", "status"=>400,
> "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"failed to
> parse field [timestamp] of type [date]",
> &q...
2010 Aug 21
0
[PATCH,DOC] Document how 4gb_segment_notify notifys
This documents how 4gb_segment_notify actually notifys the guest of the
required emulations.
diff -r aecf092da748 docs/src/interface.tex
--- a/docs/src/interface.tex Wed Jun 30 22:12:54 2010 +0100
+++ b/docs/src/interface.tex Sat Aug 21 23:34:14 2010 +0200
@@ -431,8 +431,8 @@
\item[VMASST\_TYPE\_4gb\_segments] Provide emulated support for
instructions that rely on 4GB segments (such as the techniques used
by some TLS solutions).
-\item[VMASST\_TYPE\_4gb\_segments\_notify] Provide a callback to the
- guest if the above segment fixups are used: allows the guest to
+\item[VMASST\_TYPE...
2006 Mar 13
1
adding custom cache field
...lymorphic
associations also.
Any comments are welcome.
module ActiveRecord
module Associations # :nodoc:
def self.append_features(base)
super
base.extend(ClassMethods)
end
module ClassMethods
def belongs_to_extra(association_id, options = { })
association_type = association_id.to_s + "_type" if association_id
association_primary_key = association_id.to_s + "_id"
if options[:total_cache]
module_eval(
"after_create ''#{association_type}.constantize.modify_value(\"#{self.t...
2006 Jan 02
13
Naming Conventions
So, RoR is better at grammer than I. Well so is my nine year old.
If I have a table named "people_type" will Rails see this as singular
because of the _type or will it consider it the plural of "person_type"
?
Is there a link to Rails that lists what words it knows, or what words
not to use in table design etc.
Kindest regards.
--
Posted via http://www.ruby-forum.com/.
2013 Aug 28
2
[PATCH] xen/docs: Correct documentation for the conswitch parameter
...matically
switch the console input to dom0 during boot. Any other value,
including omission, causes Xen to automatically switch to the dom0
-console during dom0 boot.
+console during dom0 boot. Use `conswitch=ax` to keep the default switch
+character, but for xen to keep the console.
### cpu\_type
> `= arch_perfmon`
--
1.7.10.4
2005 Jan 28
0
Line types in the legend function
Hi,
I'm using version 2.0.1 of R on a Windows 2000 platform. The legend function
has parameters _lty_ and _pch_ for drawing line types and point types in the
legend box, but I can't find any way of getting the patterns corresponding
to _type='b'_ in the _plot_ function. When you enter _type='b'_ as a
parameter in the plot function, you get an alternating series of dashes and
points. The closest I can come to duplicating this is to get the dash and
point lying on top of each other in the legend box. Any suggestions?
Tha...
2006 Apr 25
1
protection needed?
...if I really need to protect a coerced object if I
immediately access its value and don't access the object anymore. I
tried to find out by looking into the R sources but didn't find
something similar.
It's about the variable _skipLines in the call "function ReadXls(
_file, _sheet, _type, _header, _colHeader, _skipLines: pSExp ): pSExp;
cdecl;".
I did:
skipLines:= riInteger( riCoerceVector( _skipLines, setIntSxp ) )[0];
but am unsure if I would have to something along:
skipInt:= riProtect( riCoerceVector( _skipLines, setIntSxp ) );
skipLines:= riInteger( skipInt...
2008 Jun 24
1
Get model from polymorphic association
Hi,
If using a polymorphic belongs_to, is it possible to access the "_type"
field that contains the name of the model ?
Thanks!
--
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 e...
2012 Sep 04
2
[PATCH] valgrind: Support for ioctls used by Xen toolstack processes.
...----------------------------------------------------------*/
diff --git a/coregrind/m_syswrap/syswrap-linux.c b/coregrind/m_syswrap/syswrap-linux.c
index 2f1155f..22c1842 100644
--- a/coregrind/m_syswrap/syswrap-linux.c
+++ b/coregrind/m_syswrap/syswrap-linux.c
@@ -63,7 +63,7 @@
#include "priv_types_n_macros.h"
#include "priv_syswrap-generic.h"
#include "priv_syswrap-linux.h"
-
+#include "priv_syswrap-xen.h"
// Run a thread from beginning to end and return the thread''s
// scheduler-return-code.
@@ -5527,6 +5527,73 @@ PRE(sys_ioctl)
case VK...
2006 Jan 08
8
I need untyped associations
I am in the process of trying to migrate to ROR from a home grown ORM,
but one stumbling block is ActiveRecord''s typed associations and object
ID assignment scheme. In the home grown system, I have a master table
which *all* objects are packed into and a master associative table which
holds *all* associations. This allows each object, regardless of type,
to have a unique ID and thus it
2006 Jul 31
3
Polymorphic associations and single table inheritance
...s:
class Address < ActiveRecord::Base
belongs_to :addressable, :polymorphic => true
end
class Person < ActiveRecord::Base
has_many :addresses, :as => :addressable, :dependent => :destroy
end
class Member < Person
end
Adding an Address to a Member results in the addressable_type column
equaling "Person" when it should be "Member". Looking in
ActiveRecord::Associations::AssociationProxy#set_belongs_to_association_for
and ActiveRecord::Associations:: HasManyAssociation#construct_sql it''s
clear why.
>From
ActiveRecord::Associations::Assoc...
2006 Feb 11
6
Rails Edge, has_many :through in searches
I have two tables, a Projects table and a Clients table.
It''s basically a HABTM relationship, but I have additional project/
client-specific information in the join table. I''m trying to use the
new has_many :through method to join these. It works fine when
displaying records, but when I try to search, I''m having this problem:
When I used a HABTM model to search
2007 Mar 14
0
#content_column and polymorphic columns
Hi !
I'm need to use ActiveRecord::Base#content_columns, but this method
does not filter out columns suffixed with _type, which is what
polymorphism uses.
I checked the 1.2 branch and trunk, and both don't do it:
http://dev.rubyonrails.org/browser/trunk/activerecord/lib/active_record/base.rb#L810
Is that considered a bug ? I'll whip up a test and patch if that is
indeed a bug.
Bye !
--
François Beausolei...
2008 Sep 25
1
defining polymorphic type condition
...see:
def construct_sql
case
when @reflection.options[:as]
@finder_sql =
"#{@reflection.quoted_table_name}.#{@reflection.options[:as]}_id
= #{@owner.quoted_id} AND " +
"#{@reflection.quoted_table_name}.#{@reflection.options[:as]}_type
= #{@owner.class.quote_value(@owner.class.base_class.name.to_s)}"
else
@finder_sql =
"#{@reflection.quoted_table_name}.#{@reflection.primary_key_name} =
#{@owner.quoted_id}"
end
@finder_sql << " AND (#{conditions})" if conditions...
2007 Sep 14
0
[LLVMdev] C interface
...y instead. They're just glue
> which the linker will trivially DCE, so that approach may have merit.
>
> — Gordon
>
>
> [1]
> *$ cat emit_bc.ml*
> open Llvm
>
> let emit_bc filename =
> let m = create_module filename in
>
> let big_fn_ty = make_pointer_type
> (make_function_type (void_type ())
> [| make_vector_type (float_type ()) 4;
> make_pointer_type
> (make_struct_type [| double_type ();
> x86fp80_typ...
2007 Sep 12
7
[LLVMdev] C interface
...e more sense
to implement the C bindings in each library instead. They're just
glue which the linker will trivially DCE, so that approach may have
merit.
— Gordon
[1]
$ cat emit_bc.ml
open Llvm
let emit_bc filename =
let m = create_module filename in
let big_fn_ty = make_pointer_type
(make_function_type (void_type ())
[| make_vector_type (float_type ()) 4;
make_pointer_type
(make_struct_type [| double_type ();
x86fp80_type ();...
2012 Jun 11
2
[LLVMdev] VMKIT: Assertion at build
...all
>>> vmjc:
>>> /home1/public/zakkak/llvm/lib/**__VMCore/Type.cpp:747:
>>> static
>>> llvm::PointerType
>>> *llvm::PointerType::get(llvm::**__Type *,
>>> unsigned int):
>>> Assertion `EltTy && "Can't get a pointer to
>>> <null>
>>> type!"' failed.
>>> 0 vmjc...
2008 Sep 03
5
Eager load associations in Oracle problem with more than 1000 records
I think Rails 2.1 introduced a bug when eager loading of associations
with Oracle. In 2.1 ActiveRecord loads the included table with a big
''IN'' query: ''where association.id in (1, 2, 3, 4...)''. The problem
is that Oracle has a hard limit of 1000 values in an IN clause. I get
this error:
''OCIError: ORA-01795: maximum number of expressions in a list
2005 Dec 19
8
Single Table Inheritance question
Hello,
I''m having a heck of a time getting Single Table Inheritance to work in my app.
I have the following models and have scaffolded out Person and Contact.
person.rb
class Person < ActiveRecord::Base
has_many :contacts
end
client.rb
class Client < Person
end
contact.rb
class Contact < ActiveRecord::Base
belongs_to :person
end
phone.rb
class Phone < Contact
end
In
2012 Jun 10
0
[LLVMdev] VMKIT: Assertion at build
...mmtk-vmkit.jar all
>> vmjc:
>> /home1/public/zakkak/llvm/lib/__VMCore/Type.cpp:747:
>> static
>> llvm::PointerType
>> *llvm::PointerType::get(llvm::__Type *,
>> unsigned int):
>> Assertion `EltTy && "Can't get a pointer to
>> <null>
>> type!"' failed.
>> 0 vmjc 0x0000...