Displaying 20 results from an estimated 200 matches similar to: "newbie--how do i load a parsed file?"
2006 Jul 24
2
Newbie error message!
hello you all,
I''m new with Ruby on Rails. I''m developing an application. I got the
follwoign erro, can anybody give a hand?
ArgumentError in AdminController#import_strings
wrong number of arguments (0 for 1)
RAILS_ROOT: ./script/../config/..
Request
Parameters: {"commit"=>"Import",
2006 Jul 27
7
Newbie question---
I wrote a ruby script that parses a file into key-values like so:
class Parser
table = { }
IO.foreach(''Localizable.strings'') { |line|
if line =~ /^ \s* " (.*?) " \s* = \s* " (.*?) "/x
table[ $1 ] = $2
end
}
end
I want to store the key-values in different colums on my database so
that when I enter a key, it gives me the corresponding value...how
2006 Jul 31
10
nothing uploads.....why? (newbie question)
Hi everybody,
I know this is an easy question but I don''t seem to see the solution.
I''m trying to have a user select a file so that my code can parse it and
populate the database with corresponding values. So far it seems like
uploads but nothing shows in my db. Can anybody give me a hand?
thanks
view:
h1>Importing Strings<h1>
2006 Jul 28
0
newbie----what''s wrong with my code
I know i''m new with ruby and i''ve been kind of confused with how rails
manages all the details. I want to store the key-values in different
columns on my database so that when I enter a eky, it gies me the
corresponding value. this is what i have:
my view:
<h1>Importing Strings<h1>
<%=error_messages_for("string_record")%>
<%=
2006 Jul 21
1
Newbie Question about Ruby on rails---cant upload data
Hi everybody,
Ruby on Rails is my first programming lenguage...it looks to me like i''m
missing the big picture. I''m trying to upload a file into a database.
In my app. my user needs to select a file and upload it...however I only
want him to upload certain information from that file. I have written
code to parse only string tables from that file. For example, the table
2006 Aug 02
4
is it possible to duplicate a key? --new
Im not very familiar with RoR so this question might be kind of silly.
I want to store strings from different lenguages in a database. I want
to have the key for the string in english be the ''key'' for all the
corresponding traslations of that string. For example:
(database columns)
lenguage-------------key-----------------value-----
english hello
2006 Nov 16
7
Negating or removing classes
I have a situation where I''d like to perform some actions when a node is
removed from a class. I have a few (homegrown) services that install ssh
keys in authorized_keys and it''s possible that a node may have the
service enabled and disabled during it''s lifetime. When disabled I''d
like to clean up the ssh keys for security reasons.
This brings up the broader
2006 Jul 20
3
Newbie question-----Downloading a file and sending it to DB
Hi everyone,
I''m new with RoR and I''m working on a project that uploads information
(keys-values) from a file into a database. Here is the situation:
Somewhere in this file there is a strin-table such as the following:
"hello" = "hello world"
"sayHIgh" = "Saying hello to the world"
I have parsed the files with a ruby script in such a
2010 Aug 13
2
samba-3.5.4 + OpenLDAP
Hi folks,
I having a problem compiling Samba (Last Stable Version) from source on
a Debian fresh install.
Escenario:
OS: Debian Lenny 5 64 bits
Kernel: 2.6.26-2-amd64
Samba Version: 3.5.4
OpenLDAP Version: slapd_2.4.11-1
I tried this before and after the OpenLDAP installation and always have
the same error:
./configure --with-ldap --with-ldapsam
.
.
.
.
.
checking for LDAP support...
2000 Nov 21
1
Exist the S 'dates' function in R?
Good afternoon,
I am a new user of the R application, and I don't know to much about the
lenguage.
I am trying a to run some of the S programs I have, and some of them are
crashing with the "dates" function. This function translate a character
string into a 'dates representation object'.
Do you know if there is a similar function in R?
Thank you very much for your help
2007 Feb 14
2
Solaris 10 and "store dos attributes"
I'm having trouble with files being marked read-only in Windows because the
Solaris file owner does not have write-permissions on the file; group-write is
allowed:
-r--rw---- 1 user group 32 Feb 13 14:19 testfile.txt
I thought that setting "store dos attributes = yes" for this share would allow
the "read only" setting to be stored in extended attributes, but it
2013 Mar 14
4
exec resource not refreshed when subscribed resource changes
Hello,
I''ve created a little class which should unpack a 7z archive on Windows.
The class has a parameter for passing in the archive version, so that I can
trigger an update when a new version of the archive is available. A
simplyfied version looks like this (requires 7z):
class my_archive ($version = undef) {
file { ''version'':
path =>
2010 Apr 01
0
OpenSSH Coredump and "Bad packet length" errors seen on 5.10 sparc sun4v (Generic_125100-10)
Hi,
OpenSSH coredump was seen on our customer's side causing ssh login slow
and manual command not workable.
We need help to identify the root cause. Thanks!!
>> Background:
1) server info:
# uname -a
SunOS owtnmncccm0cnmo 5.10 Generic_125100-10 sun4v sparc
SUNW,Netra-CP3060
bash-3.00# /usr/local/bin/ssh -v
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
bash-3.00# cat
2006 Jul 21
2
is there a debugger for Ruby?
Hi there,
I''m trying out Ruby on Rails for the first time. I want to know if
there is a good debugger for it. Does anybody know of one?
Thanks
--
Posted via http://www.ruby-forum.com/.
2005 May 04
2
exop vs md5
WHat is the significance to Samba of pam_password exop vs pam_password md5 in ldap.conf?
The reason I ask is that, wherever possible, I prefer to use the vendor supplied tools for
manipulating config files. With Fedora 3 it's system-config-authentication and it doesn't
give you the option of exop. You either enable MD5, which puts pam_password md5 in ldap.conf,
or disable it, which puts
2004 Oct 07
0
NT4 Domain Member Server Access Denied v3.07
I want to set up a Samba Server (Cactus_3) as member server in our NT4
domain (PDC is Cactus_1, BDC is Cactus_2). We have about 50 client
workstations most of which are WinXP but we have a few Win2K and Win98
machines. Shortly we will migrate off the NT4 servers but in the
meantime we wish to test some real time scenarios. It is for this
reason that I want SSO so the tests are transparant
2009 Feb 03
0
lm function
Hi,
I do not use R lenguage for programming, hence Im trying to understand how
are specified the models below. I been reading some webpages with
information about the notation in the "lm" function, but havent understand
exactly what does the ":" do. Can some one give me an explenation of the
models below so I can replicate the results in other program.
#common intercept
2012 Aug 28
17
Tilde en RStudio
Estimados miembros de la lista,
Cómo hago para trabajar con tildes en RStudio.
En concreto, cuando cargo un archivo .txt o .csv en RStudio, no me reconoce
el tilde com tal y me coloca otros caracteres en su lugar.
¿Existe alguna solución?
Saludos,
Manuel
--
*Manuel Spínola, Ph.D.*
Instituto Internacional en Conservación y Manejo de Vida Silvestre
Universidad Nacional
Apartado 1350-3000
2012 Sep 20
4
Duda sobre internacionalización (i18n)
Hola a todos,
Tengo un programa que muestra unos informes generados con R (utilizando la
función cat()), y me gustaría que dichos informes le aparecieran al usuario
en el idioma que tenga definido según su LOCALE. ¿Cómo se podría hacer esto
con R?
En otros lenguajes lo que se hace es definir un diccionario con todas las
palabras que aparecen en los informes, y su traducción en los distintos
2000 Oct 27
6
GIS and R
Dear All,
Does anyone know of any GIS packages for R? I know that there are
GIS facilities for S-Plus (eg Arc Info), and am looking for freeware
equivalents.
Best wishes,
Sam Brown
-----------------------------------------------------------
Sam Brown sam at zoo.cam.ac.uk
Department of Zoology tel +44 1223 330933
Downing Street fax +44 1223 334466