search for: file_contents

Displaying 20 results from an estimated 25 matches for "file_contents".

Did you mean: file_content
2013 Jul 19
2
puppet master and fileserver separate problem
my environment: 192.168.0.13 puppet.uc.local 192.168.0.14 puppetca.uc.local 192.168.0.15 report.uc.local 192.168.0.16 fileserver.uc.local 192.168.0.17 agent01.uc.local i want run a master as fileserver (fileserver.uc.local) the puppet.uc.local and fileserver.uc.local use one ca.pem on puppet.uc.local, i wrote a class for test class test { notify { "hello
2017 May 09
2
source(), parse(), and foreign UTF-8 characters
...n-r/ [4] http://stackoverflow.com/search?tab=votes&q=%5br%5d%20encoding%20windows%20is%3aquestion # Use one of the following: id <- "Gl\u00fcck" id <- "\u5e78\u798f" id <- "\u0441\u0447\u0430\u0441\u0442\u044c\u0435" id <- "\ud589\ubcf5" file_contents <- paste0('"', id, '"') Encoding(file_contents) raw_file_contents <- charToRaw(file_contents) path <- tempfile(fileext = ".R") writeBin(raw_file_contents, path) file.size(path) length(raw_file_contents) # Escapes the string parse(text = file_contents)...
2006 Jul 28
1
How do I get an original file name from an upload using file_field?
...;t need/want to save the uploaded file on the server, I just need to import it and delete it. Right now the file name get returned as some random temp file name... there has to be an easy way to do this. Thanks for any help. This is what I currently have... In the controller: def upload ... file_contents = params[:document][:file] FasterCSV.parse(file_contents) do |row| result = Source.create_from_csv_array(row) logger.error(result.inspect) if result.kind_of?(Exception) end redirect_to :action => ''update_charges'' end In the view: <h2>Import CSV fil...
2008 Feb 09
0
a problem with before_create and validations
I stumble across some strange problem. I have a model with a virtual attribute file_contents that is a string. The model has validates_format_of :file_contents, :on => create, :unless => no_contents? (The method that returns file_contents.nil?) Then, I have a before_create callback, where I get my model''s title and description by parsing file_contents, and do write_attribute...
2008 Jul 08
6
Data type of input type file
If I have a form that includes something like: <input type="file" name="file_content" /> and I try to get at the file content using: params[''file_content''].read I get: undefined method `read'' for "filename":String where "filename" is the *NAME* of the file that was assigned to "file_content" in the input tag.
2017 May 09
0
source(), parse(), and foreign UTF-8 characters
...=votes&q=%5br%5d%20encoding%20windows%20is%3aquestion > > > > # Use one of the following: > id <- "Gl\u00fcck" > id <- "\u5e78\u798f" > id <- "\u0441\u0447\u0430\u0441\u0442\u044c\u0435" > id <- "\ud589\ubcf5" > > file_contents <- paste0('"', id, '"') > Encoding(file_contents) > raw_file_contents <- charToRaw(file_contents) > > path <- tempfile(fileext = ".R") > writeBin(raw_file_contents, path) > file.size(path) > length(raw_file_contents) > > # Esca...
2011 Jul 08
2
Puppetmaster setup with separate CA server configuration help
Hi All, I am setting up puppetmaster with nginx and passenger and separating the Puppetmaster primary CA server. I have 3 host loadbalancer01 - Nginx doing LB on IP address and also running puppetmaster with passenger under 127.0.0.1 (port 8140). primaryca - Puppetmaster Primary CA pclient - Puppet Client The did the following steps: On Primary CA server: ---------------------------- cd
2011 Jun 27
12
Ruby script to download files without 'puppet agent'
We have often the Problem that some files need to be checked for updates faster than the cycle of the puppet agent. I try to solve this with a script which tries to download the files directly from the fileserver of the puppetmaster. So far i couldn''t get it to work. I don''t know if i got the URL right, i did not find any examples on the REST API documentation for the
2007 Oct 18
4
Polymorphic Association?
Hi there- I''m a newbie to this board, RoR, and web development in general. So please forgive me if this is in the wrong place or if the solution is really simple... I''m trying to conceptualize the relationships between a series of models for a page creation function. What I''d like is to have a Content Page which consists of a series of Content Blocks. The Content
2018 Dec 03
3
[supermin PATCH] build: ignore empty files
Do not error out on empty files, just ignore them. --- src/mode_build.ml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mode_build.ml b/src/mode_build.ml index b5f5fa6..9cd0a21 100644 --- a/src/mode_build.ml +++ b/src/mode_build.ml @@ -46,6 +46,7 @@ and file_content = | Packages | Hostfiles | Excludefiles +| Empty let rec string_of_file_type = function |
2017 May 09
1
source(), parse(), and foreign UTF-8 characters
...uestion >> >> >> >> >> # Use one of the following: >> id <- "Gl\u00fcck" >> id <- "\u5e78\u798f" >> id <- "\u0441\u0447\u0430\u0441\u0442\u044c\u0435" >> id <- "\ud589\ubcf5" >> >> file_contents <- paste0('"', id, '"') >> Encoding(file_contents) >> raw_file_contents <- charToRaw(file_contents) >> >> path <- tempfile(fileext = ".R") >> writeBin(raw_file_contents, path) >> file.size(path) >> length(raw_fil...
2010 May 20
10
Question about templates from variables
I''m running into an issue trying to do something like the following: class test { file {"test": content => template(''mytemplate1'',''mytemplate2''), } } class test::test2 inherits test { File["test"] { content +> template(''mytemplate3''), } } So, basically I want the inherited class to tack on another
2008 Jul 04
9
file upload
is there any link for step by step guide in file upload in database ... im follwing the link http://www.tutorialspoint.com/ruby-on-rails/rails-file-uploading.htm.. which shows file upload into folder not in database ..pls help.. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2011 Apr 29
3
running libguestfs as a service?
...self (until a timeout much later?). I believe this sometimes causes my image edits to clobber each other and corrupt the image now and then. Each image edit usually amounts to: g = guestfs.GuestFS() g.add_drive(image_file) g.launch() g.mount("/dev/vda1", "/") g.write(file_name, file_contents) g.sync() g.umount_all() g.close() del g As I understand things, there is a reference count that should close "g" once the reference count = 0. However, I can't seem to make that happen inside of my python daemon which continues to run. Any clues on how I might accomplish this or w...
2010 Oct 19
14
client won't use remote file bucket
Hi all, I''m having a stupid moment getting a remote file bucket working. My client only file buckets locally, not remotely. I have this site.pp: ********* filebucket { "main": server => "puppet" } File { backup => "main" } node ''default'' { include test } ********* and this test module: ********* class test { file {
2006 Aug 18
11
#<Errno::EMFILE: Too many open files
My application runs a backgrond process and after running for a while I get this error in my logs: #<Errno::EMFILE: Too many open files Lasty, the ONLY code I have that does anything with files is: File.open(image_path, "wb") do |file| file.puts file_content end Any idea what this means? -- Posted via http://www.ruby-forum.com/.
2018 Dec 03
0
Re: [supermin PATCH] build: ignore empty files
On Mon, Dec 03, 2018 at 04:32:19PM +0100, Pino Toscano wrote: > Do not error out on empty files, just ignore them. > --- > src/mode_build.ml | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/src/mode_build.ml b/src/mode_build.ml > index b5f5fa6..9cd0a21 100644 > --- a/src/mode_build.ml > +++ b/src/mode_build.ml > @@ -46,6 +46,7 @@ and
2013 Mar 15
1
pluginsync trouble over SRV lookups
Hi folks, When using SRV lookups (over 2 puppetv3.1.1/RHEL6 masters), does anyone know why the "pluginsync" fails to sync at irregular intervals ? I am using "pluginsync = true" and "pluginsource=puppet:///plugins" on my puppet-clients(3.1.1/RHEL6). Yet I get failures such as "Error: Could not set ''file'' on ensure: Error 404 on SERVER: Could
2012 Oct 10
6
Puppet client not listening on port 8139
Hi everyone, Please help, I have built a new server and installed puppet (2.6.17) running on RHEL 6.3. It seems that it is not listening on port 8139. iptables -L: Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt
2012 Jul 11
0
Announce: Puppet 2.7.18 Available [ Security Release ]
Puppet 2.7.18 is a security release in the 2.7.x branch. The security changes in 2.7.18 address CVEs 2012-3864, 2012-3865, 2012-3866 and 2012-3867. All users of Puppet 2.7.x are encouraged to upgrade when possible to Puppet 2.7.18. More information available at http://puppetlabs.com/security or visit http://puppetlabs.com/security/cve/cve-2012-3864,