search for: nworld

Displaying 7 results from an estimated 7 matches for "nworld".

Did you mean: world
2013 Mar 06
2
multi-line content= construct for puppet resource file command
...;'puppet resource file ...'' at the command line? For example, I am trying to create a file called /tmp/hw.txt with two lines of content: $ cat /tmp/hw.txt hello world This does not work: $ puppet resource file hello_world \ path=/tmp/hw.txt \ ensure=file \ content="hello\nworld\n" This does, but use "puppet apply" : cat <<"eof" | puppet apply file { "hello_world": path => "/tmp/hw.txt", ensure => "file", content => "hello\nworld\n", } eof Does anyone have any pointers on how to constr...
2006 Jan 27
9
RedCloth Hard Breaks
Has anybody gotten :hard_breaks to work with RedCloth? I''m doing: self.body_html = RedCloth.new(self.body).to_html(:textile) which works, except that it doesn''t transform hard breaks to <br /> tags, which is really important for me. However, if I do: self.body_html = RedCloth.new(self.body, [ :hard_breaks ]).to_html(:textile) then it converts ALL breaks into <br
2004 Nov 16
0
Re: Win32, file descriptors and rb_io_check_writable()
...ed >with the write operations. It seems that there is a line ending issue >between a file descriptor opened with File.open vs File.nopen. You >can see this easily enough by doing something like this: > >fh1 = File.open("test1.txt","w+") >fh1.print "hello\nworld\n" >fh1.close > >Open this up with notepad - looks fine. Now try this: > >fh2 = File.nopen("test2.txt",nil,nil,File::OPEN_ALWAYS) >fh2.print "hello\nworld\n" >fh2.close > >Opened with notepad, you''ll see that the line endings aren'...
2015 Jul 29
2
Re: \n didn't lead to a new line while using remote model
...uestfish --listen` > guestfish --remote add disk.img > guestfish --remote run > guestfish --remote mount /dev/sda1 / > guestfish --remote write-append /a.txt "Hello\n" > guestfish --remote write-append /a.txt "World\n" > guestfish --remote cat /a.txt > Hello\nWorld\n > > # > libguestfs-1.20.11-11.el6.x86_64 The problem is that \n is handled "specially" by guestfish when it is reading the ><fs> command line, but not when it is parsing commands sent via --remote. The way to do this is: $ guestfish --remote write /a.txt "hell...
2015 Jul 30
0
Re: \n didn't lead to a new line while using remote model
...guestfish --remote add disk.img >> guestfish --remote run >> guestfish --remote mount /dev/sda1 / >> guestfish --remote write-append /a.txt "Hello\n" >> guestfish --remote write-append /a.txt "World\n" >> guestfish --remote cat /a.txt >> Hello\nWorld\n >> >> # >> libguestfs-1.20.11-11.el6.x86_64 > The problem is that \n is handled "specially" by guestfish when it is > reading the ><fs> command line, but not when it is parsing commands > sent via --remote. > > The way to do this is: > > $...
2012 Mar 28
1
how to avoid farword slashes in RJSONIO output
Hi All, I wanted know how to get RJSONIO output with out forward slashes? for example: "({\"total\":5,\"results\":[\n {\n \"id\": 1,\n\"name\": \"Monkey D Luffy\",\n\"position\": \"Captain\",\n\"ambition\": \"I Will become the pirate king\" \n},\n{\n \"id\": 2,\n\"name\":
2011 Aug 26
17
strings issue
Hi everybody, I ve got a problem with strings and the class File in rails Indeed, when i try to do this: File.new("archives/sequences/archives-2011.xml") it works perfectly, however when i do string = "archives/sequences/" + @filename => filename being "archives-2011.xml" File.new(string) it doesn''t work! ruby tells me it cannot find the file does