search for: file_content

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

2013 Jul 19
2
puppet master and fileserver separate problem
...group => "root", mode => 644, ensure => "file", source => "puppet://fileserver.uc.local/extra_files/hello", } } but i found that, the agent fetch file_metadata from fileserver.uc.local and fetch file_content from puppet.uc.local puppet.uc.local: ================================================ [2013-07-19 18:25:07] DEBUG accept: 192.168.0.17:43547 [2013-07-19 18:25:07] DEBUG Puppet::Network::HTTP::WEBrickREST is invoked. [2013-07-19 18:25:07] 192.168.0.17 - - [19/Jul/2013:18:25:07 CST] "GET /pro...
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 fi...
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_attribut...
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. Ap...
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) > > # Esc...
2011 Jul 08
2
Puppetmaster setup with separate CA server configuration help
...SSL_CLIENT_S_DN $ssl_client_s_dn; passenger_set_cgi_param SSL_CLIENT_VERIFY $ssl_client_verify; # make sure we serve everything as raw types { } default_type application/x-raw; # serve static file for the [files] mountpoint location /production/file_content/files/ { allow 192.168.122.0/24; allow all; alias /etc/puppet/files/; } # serve modules files sections location ~ /production/file_content/[^/]+/files/ { allow 192.168.122.0/24; allow all;...
2011 Jun 27
12
Ruby script to download files without 'puppet agent'
...t, i did not find any examples on the REST API documentation for the fileserver. for example if the file is /etc/puppet/manifests/files/sudo/sudoers fileserver.conf: [files] path /etc/puppet/manifests/files allow 127.0.0.1 allow *.bar to what path would this translate? https://foo.bar:8140/file_content/sudo/sudoers https://bli.bla:8140/file_content/files/sudo/sudoers Greetings Andy -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send e...
2007 Oct 18
4
Polymorphic Association?
...es of content: TextContent, ImageContent, or FileContent. So my current thinking is this: ContentPage has_many :content_blocks, :order => :position ContentBlock belongs_to :content_page acts_as_list :scope => content_page_id has_one :text_content has_one :image_content has_one :file_content TextContent belongs_to :content_block ImageContent belongs_to :content_block FileContent belongs_to :content_block But when I envision looking up a Content Page and its associated Content Blocks, I feel like it will be difficult to keep going and find the actual Text, Image, or File data...
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 | GZip c -> sprintf "gzip %s" (string_of_file_content c) @@ -56,6 +57,7 @@ and string_of_file_content = function | Packages -> "packages" | Hostfiles -> "hostfile...
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_fi...
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...
2010 Oct 19
14
client won't use remote file bucket
...+0100] "GET /testing/ catalog/..." 200 1439 "-" "-" 10.44.222.42 - - [19/Oct/2010:16:18:26 +0100] "GET /testing/ file_metadata/modules/test/sudoers HTTP/1.1" 200 307 "-" "-" 10.44.222.42 - - [19/Oct/2010:16:18:26 +0100] "GET /testing/ file_content/modules/test/sudoers HTTP/1.1" 200 1421 "-" "-" 10.44.222.42 - - [19/Oct/2010:16:18:27 +0100] "GET /testing/ file_content/modules/test/sudoers HTTP/1.1" 200 1421 "-" "-" 10.44.222.42 - - [19/Oct/2010:16:18:27 +0100] "GET /testing/ file_met...
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
..., 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 > | GZip c -> sprintf "gzip %s" (string_of_file_content c) > @@ -56,6 +57,7 @@ and string_of_file_content = function > | Packages -> "packa...
2013 Mar 15
1
pluginsync trouble over SRV lookups
...nc" 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 not find file_content plugins/puppet/parser/functions/xxxx". This occurs both over passenger and over the over the built in webrick? services. If I stop either of masters, everything proceeds fine ! thanks for any help, Ash -- You received this message because you are subscribed to the Google Groups "Pup...
2012 Oct 10
6
Puppet client not listening on port 8139
...he one used below): # --------------------------------- # path /path/to/resource # [environment envlist] # [method methodlist] # [auth[enthicated] {yes|no|on|off|any}] # allow [host|ip|*] # deny [host|ip] # # The path is matched as a prefix. That is /file match at # the same time /file_metadat and /file_content. # # Regex syntax: # ------------- # This one is differenciated from the path one by a ''~'' # # path ~ regex # [environment envlist] # [method methodlist] # [auth[enthicated] {yes|no|on|off|any}] # allow [host|ip|*] # deny [host|ip] # # The regex syntax is the same as ruby ones. #...
2012 Jul 11
0
Announce: Puppet 2.7.18 Available [ Security Release ]
...rentheses 2d01c2b Use head method to determine if file is in file bucket 40ee670 Always use the local file_bucket on master d881b4b Fail more gracefully when finding module files if no file is specified 20ab0e9 Reject file requests containing .. 10f6cb8 Add Selector terminus for file_content/file_metadata ab9150b Deprecate IP-based authentication -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to puppet-dev@googlegroups.com. To unsubscribe from this group, send email to puppet-dev+...