Displaying 6 results from an estimated 6 matches for "csv_files".
Did you mean:
csv_file
2009 Jun 23
2
syntax error, unexpected tINTEGER, expecting $end
Please help me solve the following error message:
syntax error, unexpected tINTEGER, expecting $end
I have this model:
Code:
1. class GeoDatum < ActiveRecord::Base
2. end
The database contains the table geo_data, which contains the zip_code
column, filled with zip codes. I get the above error when searching
for a zip code and the zip code exists in the table. Here is the
2018 Apr 19
1
Syntax for capturing and writing file names
Hi all,
I am looking for syntax to read a list of *txt files, (loop through?)
each with a different data content but same fields, then run lines of
code to produce summary stats (I have working code for this) and add the
matching data file name when writing the results of a line of R code.??
Suggestions on any package vignettes that may be useful welcomed.
My manual code for this is below
2006 Feb 06
4
Memory Issue while looping through CSV file
I have a site on a shared host at TextDrive. I have an import process
that imports a CSV file into the database using a ruby script executed
using script/runner. TextDrive has a memory limit which I am hitting
and the process gets killed. I get through to about 400 records before
it dies. I guess each time I instantate a new object for each record I
am using more memory but thought I was using
2007 Jun 06
2
lookup in CSV recipe
I await Luke''s node settings implementation with interest. At the
moment however, I have this sort of ugliness:
$site = $hostname ? {
fred => "opsera",
barney => "bedrock",
default => "unknown site",
...
}
So I''ve knocked up this little function to use CSV files instead. Now
I can just do:
$site =
2012 Oct 22
4
Possible to exclude an event in Puppet dashboard?
...run, but actually I want to exclude this from
showing up as "CHANGED"
Is this possible, if so how can I achieve this?
---
myscript:
---
exec {
"run_myscript" :
# run myscript
command => "/usr/bin/env ruby ${my_script} ${csv_files}",
cwd => "${myscript_dir}",
timeout => 0,
logoutput => "on_failure",
}
--
Regards,
Martin Willemsma
--
You received this message because you are subscribed to the Google Groups "Puppet Users" gr...
2010 Apr 14
3
PGError: duplicate key
I''m running a rails 2.3.5 / ruby 1.8.7 / postgresql 8.4.2 app and have
just run into a curious problem.
I have several tables that are initialized with data from csv files
and I''ve noticed that, when I try to add new data to any of these
tables via Table.new I get a PGError on duplicate key.
For example:
MIGRATION:
class CreateNumbers < ActiveRecord::Migration
def self.up