Displaying 20 results from an estimated 5000 matches similar to: "Accessing Oracle Package in models"
2006 Nov 01
3
active_record_base_without_table plugin - Easily use models without tables
Hi all,
Here''s another little plugin I wrote to use AR models without tables. It''s
dead simple, just extend from ActiveRecord::BaseWithoutTable instead of
ActiveRecord::Base:
class Contact < ActiveRecord::BaseWithoutTable
column :name, :string
column :email_address, :string
column :message, :text
validates_presence_of :name, :email_address, :message
end
2004 Mar 31
2
[LLVMdev] Function pointers
Hello out there!
I am trying to build a table of 2 function poiters by using an array:
%kernel = alloca [ 2 x int ()* ]
I try to access the first pointer to be able to store location of my first function like this:
%function_pointer_1 = getelementptr [2 x int ()* ]* %kernel, long 0, long 0
store int ()* %function_1, int ()* %function_pointer_1
But, I get the error message from llvm-asm:
2004 Mar 31
0
[LLVMdev] Function pointers
On Wed, 31 Mar 2004, Anders Alexandersson wrote:
> Hello out there!
>
> I am trying to build a table of 2 function poiters by using an array:
>
> %kernel = alloca [ 2 x int ()* ]
>
> I try to access the first pointer to be able to store location of my first function like this:
>
> %function_pointer_1 = getelementptr [2 x int ()* ]* %kernel, long 0, long 0
>
>
2004 Apr 01
1
[LLVMdev] Function pointers
Yes! :-)
What would I do without you folks?!
I am the one trying to build a Ruby compiler prototype, so be prepared for
more questions...:)
Thanks again!
Anders
----- Original Message -----
From: "Chris Lattner" <sabre at nondot.org>
To: <llvmdev at cs.uiuc.edu>
Sent: Wednesday, March 31, 2004 5:49 PM
Subject: Re: [LLVMdev] Function pointers
On Wed, 31 Mar 2004, Anders
2004 Apr 02
2
[LLVMdev] Function pointers
OK, I solved it all ( so far :) ), mixing in some load-instructions and called on the result of that, which worked.
Here is the skeleton-code:
%kernel = type { int ()* }
int puts_kernel(){...}
; main()
%theKernel = malloc %kernel
%puts_kernelPTR = getelementptr %kernel* %theKernel, long 1, ubyte 0
store int ()* %puts_kernel, int ()** %puts_kernelPTR
%tmp.11 = load int ()** %puts_kernelPTR
2006 Jul 19
11
Getting data from the database only once
Hi,
I am a little bit new to ruby. I have a requirement that I need to
get the data from the database. I need to do this many times in the
whole application. But, I am looking for a way with which I can get the
data from the database table only once and store it in some variable,
and I can use it anywhere I want.(I am trying not to use the global
variable for this purpose). Is there a way
2004 Apr 02
0
[LLVMdev] Function pointers
On Fri, 2 Apr 2004, Anders Alexandersson wrote:
> OK, I solved it all ( so far :) ), mixing in some load-instructions and
> called on the result of that, which worked.
>
> Here is the skeleton-code:
>
> %kernel = type { int ()* }
>
> int puts_kernel(){...}
>
> ; main()
>
> %theKernel = malloc %kernel
> %puts_kernelPTR = getelementptr %kernel* %theKernel,
2006 Jun 05
3
How to configure two NICs on a DomU?
Hi,
When I install Oracle RAC on Xen VM, some problem occurred. How can
I configure two NICs on a Xen''s DomU. You know, RAC''s installation requires
two NICs on a node. I am a newbie about Xen. Please give me some advice.
Thanks.
Yaqiong lee
Beijing,China
-----邮件原件-----
发件人: xen-users-bounces@lists.xensource.com
[mailto:xen-users-bounces@lists.xensource.com] 代表
2011 Feb 10
0
[LLVMdev] Building LLVM on Cygwin.
Hi Anand
On Wed, Feb 9, 2011 at 7:19 PM, Anand Arumugam wrote:
> On Wed, Feb 9, 2011 at 9:40 AM, NAKAMURA Takumi wrote:
>>
>> Anand,
>>
>>
>> I have not tried building llvm-gcc, though, ...
>>
>> Please show me "/path/to/config.status --version".
>
> [Anand] Here is the config.status output taken from '/cygdrive/c/llvm-2.8':
2005 Nov 04
2
R-2.2.0 Compile problem on Slackware 10.2
Hello,
I am trying to compile R-2.2.0 on Slackware 10.2.
I did ./configure --prefix=/usr --build=i486-slackware-linux. It went
off without any problem and gave this configure status:
R is now configured for i486-slackware-linux-gnu
Source directory: .
Installation directory: /usr
C compiler: gcc -g -O2
C++ compiler: g++ -g -O2
Fortran
2018 Jan 09
0
Bricks to sub-volume mapping
No, we don't store the information separately. But it can be easily
predictable from the Volume Info.
For example, in the below Volume info, it shows "Number of Bricks" in
the following format,
??? Number of Subvols x (Number of Data bricks + Number of Redundancy
bricks) = Total Bricks
Note: Sub volumes are predictable without storing it as separate info
since we do not have
2004 Apr 02
0
[LLVMdev] Function pointers
So, here comes the next question:)
Now the program compiles, but crashes when run, "Segmentation fault".
%kernel = type { int ()* }
int %puts_kernel()
{
ret int 0
}
int %main() {
%theKernel = alloca %kernel
%puts_kernelPTR = getelementptr %kernel* %theKernel, long 1, ubyte 0
store int ()* %puts_kernel, int ()** %puts_kernelPTR
ret int 0
}
I want to learn how to
2003 Sep 25
0
FW: [LLVMdev] basic block tracing
Rahul,
Were you talking about tracing in the sense of "profiling" (which Anand
did), or tracing of values as they are computed for debugging generated
code (which I did)?
For tracing of values for debugging, the answer is yes: we insert code
in each BB and print out the values computed in that BB that are live at
the end of the BB (so we don't print out temporaries computed and
2023 Apr 04
2
[PATCH 5/5] fstests/MAINTAINERS: add a co-maintainer for btrfs testing part
Darrick J. Wong would like to nominate Anand Jain to help more on
btrfs testing part (tests/btrfs and common/btrfs). He would like to
be a co-maintainer of btrfs part, will help to review and test
fstests btrfs related patches, and I might merge from him if there's
big patchset. So CC him besides send to fstests@ list, when you have
a btrfs fstests patch.
Signed-off-by: Zorro Lang <zlang
2011 Feb 09
3
[LLVMdev] Building LLVM on Cygwin.
On Wed, Feb 9, 2011 at 9:40 AM, NAKAMURA Takumi <geek4civic at gmail.com>wrote:
> Anand,
>
>
> I have not tried building llvm-gcc, though, ...
>
> Please show me "/path/to/config.status --version".
>
[Anand] Here is the config.status output taken from '/cygdrive/c/llvm-2.8':
./config.status --version
llvm config.status 2.8
configured by
2016 Jul 29
2
[Bug 1081] New: /tmp/ccKT2Q7s.o: In function `help': ipset.c:(.text+0x27c): undefined reference to `ipset_envopts'
https://bugzilla.netfilter.org/show_bug.cgi?id=1081
Bug ID: 1081
Summary: /tmp/ccKT2Q7s.o: In function `help':
ipset.c:(.text+0x27c): undefined reference to
`ipset_envopts'
Product: ipset
Version: unspecified
Hardware: i386
OS: Ubuntu
Status: NEW
Severity:
2019 Jun 30
2
orc vs mcjit
yeah i m concerned about jit compilation time..
On Sun, Jun 30, 2019 at 12:57 PM Praveen Velliengiri <
praveenvelliengiri at gmail.com> wrote:
> Yes I think so.. Could you please tell me in which context (compile time
> improvement)? That is whether you are interested in knowing whether having
> ORC instead of MCJIT, will increase your LLVM Build time or you are
> concerned
2007 Oct 23
11
validates_confirmation_of not working?
I just can''t get validates_confirmation_of working for the life of
me!...
It''s not the first time I''m having problems with it but I just never
understand why!... This time I pretty much followed *exactly* the
example in Agile Rails Development and still...it just won''t work! I put
2 different passwords in the form and it doesn''t trigger an error,
2018 Jan 09
2
Bricks to sub-volume mapping
But do we store this information somewhere as part of gluster metadata or something...
Thanks and Regards,
--Anand
Extn : 6974
Mobile : 91 9552527199, 91 9850160173
From: Aravinda [mailto:avishwan at redhat.com]
Sent: 09 January 2018 12:31
To: Anand Malagi <amalagi at commvault.com>; gluster-users at gluster.org
Subject: Re: [Gluster-users] Bricks to sub-volume mapping
First 6 bricks
2004 Apr 02
0
[LLVMdev] Function pointers
I solved that one by substituting alloca into malloc, and forwarded the problem to actually calling the %puts_kernel function via my newly created function pointer.
This works:
%tmp.1 = call int %puts_kernel()
This:
%tmp.2 = call int %puts_kernelPTR()
issues error:
"Reference to an invalid definition: 'puts_kernelPTR' of type 'int () *'"
How do I call the function