Displaying 20 results from an estimated 2000 matches similar to: "Rails - associations help"
2010 Oct 16
3
Doubt with symbols in Rails
I was trying to write a wrapper for number_to_currency to return
currency in pounds. I used a helper class to do this.
def number_to_pounds(amt)
number_to_currency(amt, :unit => "£")
end
This works fine, but I am trying to understand why I can''t use a
symbol to pass the values. I thought symbols were like pointers. (you
now know I am a newbie).
def
1999 Sep 14
2
DBase File locking issues
Hi All,
I am experiencing issues with the use of DBase files on a Samba 2.0.5a
share, that appear to be due to locking problems. Basically, I have
test programs for both DOS and Win32 that does nothing but append
records to a DBase database (DBF/MDX files). If more than one client
PC is appending to this file, data loss occurs. I get random data
loss, with records lost, and index file
2006 Jun 03
3
Migrating from a legacy Dbase app
All,
My company uses Goldmine as its contact/sales opportunity manager.
(Uses Dbase for it''s DB).
I''m trying to get a Rails app to implement the parts of it we actually use.
I''ve been building my Rails app in MySQL. Now I''m need to start
getting data from Goldmine into my Rails app.
What''s the recommended approach?
A one time transfer of data?
2003 Feb 14
2
RODBC connection failed
I am trying to restart on R after 2 months stop. Start with previously
functioning procedure:
"ch<-odbcConnect("dBase Files")"
get
"Warning message:
ODBC connection failed in: odbcConnect("dBase Files") "
I have tried unsuccessfully different working directories.
The only change I see is that I am working with a new login account on
the same machine.
2010 Oct 24
1
SAMBA weird situation
Samba: Version 2.2.10
Kernel: 2.4.31
There is share on the server (for DBASE app) with following config:
comment = zwierzaki 2.5.04N
path = /pub/zwierz/
force user = smbguest
read only = No
guest only = Yes
guest ok = Yes
dos filetime resolution = Yes
I have found weird situation:
- not every file in shared dir is visible under windows but
2015 Apr 25
4
Error writing CDR
Hi All
I have dozens of these messages on CLI complaining about database connection and error writing CDR to disk.
The curious thing is I can find them all inside the database.
I "selected" them using uniqueid and manually compared each column with the cdr_adaptive_odbc.c error line.
"mysqlcheck -a -e -v DBase" and "mysqlcheck -c -e -v DBase" both returned OK for
2006 Apr 29
1
Re: running dBase app with wine
On Tue, 25 Apr 2006 13:52:14 +0200, "Mrkljus" <aposdi@brbr.hr> wrote:
>Hi,
>
>I have a problem running dBase application with wine. Is there any solution
>I can try with?
>
>Has anyone succeeded to run dbu.exe with wine, for example...
Use xHarbour ( open source : www.xharbour.org , commercial version :
www.xharbour.com which use the open source compiler plus
2008 Apr 02
4
Windows-Application can't handle .dbf- Files correctly
For several days, I try to run an Windows- Application on an Ubuntu 7.04 System through wine 0.9.58.
In detail, it's a tool for supporting a change of food and sports behavior.
The tool is freeware, named "Di?t- Tagebuch" (diet diary or diet day book) and downloadable at: http://www.diet-daybook.de/DTBInstall2.exe
(unfortunately it's only in german)
The DTBInstall2.exe is an
2011 Dec 04
3
RODBC connect to Excel (64-bit Windows 7)
Hi to all.
I have a problem to connect to an Excel database using RODBC.
Namely, I am using 64-bit R 2.14.0, under Windows 7 and I tried following:
library(RODBC)
> channel <- odbcConnectExcel("results.xlsx")
Error in odbcConnectExcel("results.xlsx") :
odbcConnectExcel is only usable with 32-bit Windows # ok this is
clear why it doesn't work
> channel
2015 Apr 26
1
Error writing CDR
>> Hi All
>>
>> I have dozens of these messages on CLI complaining about database
>> connection and error writing CDR to disk.
>>
>> The curious thing is I can find them all inside the database. I
>> "selected" them using uniqueid and manually compared each column
>> with the cdr_adaptive_odbc.c error line.
>>
>>
2011 Jan 07
2
rpm/yum/repo issue - Error: Package tuple could not be found in packagesack
Hi guys,
I've been working on a yum repo for PHP 5.2 and today I wanted to update
it[1], however on a test machine using my PHP packages (e.g.
php-common-5.2.16-1nux) a yum update to the new RPMs with version 5.2.17
gives the following error: "Error: Package tuple ('php-common', 'i386', '0',
'5.2.17', '1nux') could not be found in
2006 Oct 21
1
new route by caller id
Hi
I have installed, asterisk , with postgresql.
it 's the view of extensions table:
didex=# select * from extensions order by id desc
limit 5;
id | context | exten | priority | app |
appdata |
description
2007 Jan 25
1
Running Windows Database Applications
As it seems that we will be a year or so away from database application
programs for linux like there are for windows (Foxpro, Paradox, dBASE,
Access, Visual Basic, etc.), I am attempting to use windows as a development
system (on a separate computer) and they copying the application to a linux
computer (suse 9.3 to 10.1) to see if it will run under wine.
It seems that the testing that has
2006 Apr 01
4
-newbie | RODBC import query
Greetings -
After 20+ years of using SAS, for a variety of reasons, I'm using [R]
for a bunch of things - while I'm getting a pretty good a handling
[R] for script programming, and statistical analysis, I'm struggling
with 'pulling data into [R]'. For reasons beyond my control, a number
of the files I get sent to 'work with' are in Dbase format (*.dbf).
For
2003 Feb 13
5
ESRI shape file import and time-space models
Dear R user,
I am running R under Windows 2000.
I am looking for a routine for importing
- shape files (ESRI) into R
- dbase files (FOXPRO) into R
and I am looking for time-space models for description and prediction of
Bernoulli-, Binomial- and Poissonvaraibles.
Thank's a lot for a reply.
Sincerely yours,
Ekkehardt Altpeter
Swiss Federal Office of Public
2005 Dec 15
1
bug?
> library(foreign)
> da<-read.dta(file.choose())
> da
startdat starttim enddate endtime days hoursmin secused
1 2005-01-11 2 2005-12-15 20.19 NA NA 9
> attributes(da)
$datalabel
[1] "Example of use of date and time functions"
$time.stamp
[1] "15 伿伄伓侢佋伮 2005 20"
$names
[1] "startdat" "starttim"
2007 Sep 27
2
Connecting R to PostgreSQL via RODBC, on Windows
hey all,
I feel like I must be missing something rather plain, but I don't get it.
how is one supposed to use R as a PgSQL client on Windows? Assume my
windows desktop is on the same network as a PgSQL server, and I just need to
use R to connect and pull down some data.
The thing that is confusing me is that RODBC doesn't seem to know anything
about PgSQL, in that
2004 May 11
3
rsync output -vv differs with dry-run option
I'm trying to figure out if a file has changed since the last rsync call. I
use the following command line:
rsync -cvv /mnt/xxx/vol1/dbase/100/kunden.dbf /mnt/label | grep "^total: "
| sed -e 's/.* data=//'
This gives a 0 if the file is unchanged and the file size if the file has
changed. Adding the "dry-run" option "n" to the command line always
2007 Aug 31
3
Ajax.Updater on a select list not updating correctly in IE7 (fine in FireFox)
Hi all,
Been working with prototype and script.aculo.us now for around 3 days
after never really touching javascript so I am still getting to grips
with things.
So far I have successfully created 4 ajax based functions, or so I
thought until I stupidly showed a client one of them before I had
tested it in IE.
The function in question works fine in FireFox succesfully inserting
any new values
2015 Apr 25
1
Error writing CDR
On Sat, 25 Apr 2015 17:11:34 +0200
jg <webaccounts173 at jgoettgens.de> wrote:
>
> > Hi All
> >
> > I have dozens of these messages on CLI complaining about database
> > connection and error writing CDR to disk.
> >
> > The curious thing is I can find them all inside the database.
> > I "selected" them using uniqueid and manually