Displaying 20 results from an estimated 5000 matches similar to: "Openbase and Rails issue"
2006 Jan 06
0
New Database Adapter: OpenBase
Greetings to all!
I''ve decided to begin my journey into Ruby generally, and Rails
specifically, by writing a new database adapter for OpenBase. It''s
nearly complete, but I''ve run into a small issue:
In OpenBase, you cannot override a default value with a NULL during
an INSERT. OpenBase detects the null value and chooses the default
instead. This means that
2007 Mar 19
1
Again...
Newbie trying to install wine in his Mac OSX, getting the old annoying
message,
home:~/Desktop/wine G3$ /Users/G3/Desktop/wine/tools/wineinstall
WINE Installer v0.75
Running configure...
configure: creating cache config.cache
checking build system type... powerpc-apple-darwin8.7.0
checking host system type... powerpc-apple-darwin8.7.0
checking whether make sets $(MAKE)... no
checking for gcc...
2009 Apr 14
1
Oracle oci8 => OCIError: OCI Library Initialization Error
I''m trying to get ActiveRecord working with an Oracle DB over the
instant client.
On a 32bit machine, I can require ''oci8'':
Linux xxx.xxx.xxx.xxx 2.6.9-78.0.17.ELsmp #1 SMP Thu Mar 5 04:52:17 EST
2009 i686 i686 i386 GNU/Linux
irb(main):001:0> require ''oci8''
=> true
However, on a 64bit machine:
Linux xxx.xxx.xxx.xxx 2.6.18-128.1.6.el5 #1 SMP Tue
2006 Apr 18
1
NoMemoryError
I am using the Openbase adapter and have had a similar glitch here
and there, but after I go into production I consistently get an error
on one page.
ActionView::TemplateError (NoMemoryError: failed to allocate memory:
SELECT * FROM ...
I cannot track down the exact location of the error, but the
production log says it was around:
2006 Sep 27
1
potential setClass bug (with user-defined environment)
the following returns an error in an 'exists' call on my machine
MyEnv <- new.env()
setClass("Numeric", "numeric", where=MyEnv)
franklin parlamis
> version
_
platform powerpc-apple-darwin8.7.0
arch powerpc
os darwin8.7.0
system powerpc, darwin8.7.0
status beta
major 2
minor 4.0
year
2006 Oct 06
1
class unions?
the code below has me confused:
setClassUnion("index", c("numeric", "character", "logical"))
extends("numeric") # i don't see the class union
library(Matrix)
extends("numeric") # now i see the class union
i am aware that the "Matrix" package separately defines the "index"
class union.
is it the case that
2006 Sep 23
1
generics for primitive functions
i think these two code snippets exhibit a bug. they are identical
but for the inclusion of an initial line in snippet [2]
[1]
setMethod("Math", signature(x = "numeric"), function(x) "Works")
getGeneric("sqrt")(4)
[2]
getGeneric("sqrt")(4)
setMethod("Math", signature(x = "numeric"), function(x) "Works")
2006 Dec 18
2
write() gotcha
Hi
I used write() the other day to save some results.
It seems that write() does not record the full precision of
the objects being written:
> write(pi,file="~/f",ncolumns=1)
> pi.saved <- scan("~/f")
Read 1 item
> dput(pi)
3.14159265358979
> dput(pi.saved)
3.141593
> pi-pi.saved
[1] -3.464102e-07
>
This difficulty was particularly difficult to
2006 Oct 11
1
dispatching on group generics with more than one formal
please see the code below. foo2 fails to dispatch correctly, but foo
does fine. i have tried 'cacheMetaData(1)' and a number of different
variants of 'cacheGenericsMetaData', on the possibility there is a
caching issue. but i still can't sort it out.
also one general question: does it really matter what's in the body
of the function definition in a
2006 Jul 11
1
invalid alignment error in R-2.4.0
Hi
I thought I'd pass one of my package through R CMD check with R-2.4.0
with the following result (it's clean under R-2.3.1):
[snip]
>
> # histogram of the fourth power:
> hist(out^4, col="gray")
*** caught bus error ***
address 0x12, cause 'invalid alignment'
Traceback:
1: sort(x, partial = c(half, half + 1))
2: sum(sort(x, partial = c(half, half +
2005 Jul 27
7
Oracle OCI8, or "am I going crazy?"
All of a sudden, on three different systems, the "server_ip_address/sid_name"
syntax in database.yml has stopped working for me.
I can''t even do a OCI8.new(blah blah blah) statement from an IRB shell.
I get "ORA-12541: TNS:no listener", or some variant, depending on how I phrase it.
On systems where I have a real deal client installed, and OCI can find the
tnsnames
2006 Sep 21
1
printing of complex numbers in R-alpha
Hello everyone
I am finding complex numbers to be printed oddly in R-alpha.
> 1e100+1e100i
[1] 1e+100+1e+100i
> 1e100 + 1e44i
[1] 1e+100+100000000000000008821361405306422640701865984i
> dput(1e100+1e44i)
1e+100+100000000000000008821361405306422640701865984i
>
[same thing at home on a linux box]
The first line is what I would expect, the second and third lines
aren't:
I
2006 Sep 20
1
residual '*tmp*' variable after "[<-" error
self-sanity check prior to filing a bug report:
attempted replacement that generates an error leaves a '*tmp*'
variable in the global environment.
test <- 1:10
test[2:4] <- expression(e)
ls()
i've read section 3.4.4 of the "R Language Definition" which
discusses the mechanism for replacement, and it is not clear to me
whether this was intended, but i suspect
2006 Jan 09
1
php with OCI support
Hi,
I'm trying to get OCI support in php on RHEL 4.
So i installed the oracle-client and php.src.rpm
and then typed:
rpmbuild -bb --with oci /usr/src/redhat/SPECS/php.spec
It rebuild fine, but no oci support, on the spec file
of the PHP package it's there the OCI support, it's not
--with oci that i should use?
Thanks
Regards,
Ricardo
-------------- next part --------------
An
2006 Jun 12
2
RoR Developer Needed
Our law firm is looking for a contractor to assist in developing and
extending our internal case management system. This system tracks
most aspects of our workflow. Our current system is deployed as a
WebObjects application and would need to be rewritten in Ruby on
Rails. We need a dedicated person(s) to help us rewrite the system
and drive future development.
Applicants must have at
2008 Feb 06
3
slogging my way thru oracle, not adapter? gem install fails?
<ubuntu_gutsy> me@ubuntu:~/workspace/oracle/ro$ gem install
activerecord-oci-adapter
Bulk updating Gem source index for: http://gems.rubyforge.org
ERROR: While executing gem ... (Gem::GemNotFoundException)
Could not find activerecord-oci-adapter (> 0) in any repository
<ubuntu_gutsy> me@ubuntu:~/workspace/oracle/ro$ rake db:migrate
(in /home/me/workspace/oracle/ro)
rake
2006 Aug 17
0
OCI.DDL (module could not be loaded)
Hi guys,
I had a problem in connecting oracle DB through ROR application. It
says OCI.DDL (module could not be loaded) while running the webrick
server.
I have installed the ruby-oci-0.1.13-mswin.rb.While searching in net I
found saying to copy OCI.DDL in system32 folder but Still i faced the
same problem of not able to start the webrick server.
Can anyone help me out to give me a
2006 Feb 20
2
Oracle & Ruby on Rails
I''ve a remote database create using Oracle. This database use schemas.
I tried to connect to it using Ruby On Rails,with this file Database.yml
:
development:
adapter: oci
host: liber
database: ENERGIA
username: user
password: pass
test:
adapter: oci
host: liber
database: ENERGIA
username: user
password: pass
production:
adapter: oci
host: liber
database:
2006 May 02
1
Tests just deleted my production Database!!! PLEASE
When you run your functional tests, rake wipes the "test" database clean and
recreates it based on what is in the "development" database. Since it
appears you are using the same database for both, that would explain why you
lost your data. In addition, if you omit the data needed to access the
development database you will get an error like you described, because
2007 Jan 05
1
InstantRails with Ruby One-Click Installer?
Hi. I would like to hear how/what other users are installing for
development and reference support. I currently have both InstantRails
and the Ruby One-click Installer installed. I don''t like telling
co-workers to install both (the OCI has lots of nice documentation
useful to Rails developers). Also, the Ruby OCI helps when needing to
run Ruby scripts outside of the InstantRails