similar to: No subject

Displaying 20 results from an estimated 50000 matches similar to: "No subject"

2006 Aug 28
10
Templates and arrays
I''m in the process of documenting templates right now, and I figured I should see what happens when you use them with arrays: $ cat ~/bin/test.pp $values = [this, is, an, array, of, values] $content = template("/tmp/templates/testing.erb") file { "/tmp/temtest": content => $content } $ cat /tmp/templates/testing.erb <% values.each do |val| %> I got
2006 Feb 20
7
Native erb lacks -%>, where is Rails'' erb?
Native ERB in ruby, and eruby, seem to lack the -%> feature for suppressing trailing newlines. Thus erb -n script gives errors. Where is Rails ERB so I can invoke it directly? Thank you Hugh
2006 Jan 04
7
<% if ... -%> What is this?
I seen some RoR code that went like this: <% if ...blah, blah... -%> .. blah, blah <% end -%> What are the minus signs for in the if statement? Cannot seem to find anything about this, and searching on "-" in this context is hard to get anything meaningfull back. Thanks, - Mark -- Posted via http://www.ruby-forum.com/.
2006 Feb 20
4
SHow do you suppress ERB newlines globally
Is there a config flag to suppress the newline at the end of every ERB ''%>'' tag, so it would not be necessary to type ''-%> each time? -- Posted via http://www.ruby-forum.com/.
2011 Nov 18
2
Are tildes actually valid in templates or is this a bug?
Hi all, First off, we''re running Puppet 2.7.6 with Ruby 1.8.7 on CentOS 6.0. Now, I''m using tildes in a template to prevent newlines from appearing but ruby/puppet is choking on them. */tmp/puppet$ cat test.erb* Line 1: Line 2 will exist if running on CentOS. <% if operatingsystem == "CentOS" ~%> Line 2: Yay, we''re running CentOS. <% end ~%>
2011 Aug 25
0
Fwd: nut 2.6.1 on OpenSolaris/OpenIndiana doesn't find Tripp-Lite ECO550 UPS
Begin forwarded message: > From: Kostas Oikonomou <ko at research.att.com> > Date: August 25, 2011 9:51:27 AM EDT > To: Charles Lepple <clepple at gmail.com> > Subject: Re: [Nut-upsuser] nut 2.6.1 on OpenSolaris/OpenIndiana > doesn't find Tripp-Lite ECO550 UPS > > Hi Charles, > > The log hasn't been trimmed. The man page says: > > The
2011 Apr 06
5
Blank lines in conditional templates
I''m writing ldirectord.cf files via puppet and unfortunately ldirectord is sensitive to blank lines in the file. I have the following code in my .erb file virtual=<%= vip %>:<%= port %> <% if weights.empty? then -%><% real_servers.each do |real_server| -%> real=<%= real_server %>:<%= port %> gate <% end -%><% else -%><%
2007 Apr 26
5
class parameters
Hello there, Just wanted to know if class will be able to have parameters ? Right now i use: define resolver( $options =''rotate'', $nameserver, $search='''',$domain='''',$sortlist=''''){ file{ ''/etc/resolv.conf'': content =>
2009 May 17
2
Problem with domain part in user_query in dovecot 1.1.14
Hi. I'm using dovecot 1.1.14 with pgsql. I tried to configure dovecot to get the domain part in user_query by specifying different variants of auth_username_format variable such as %Lu, %Lu@%Ld, %Lu-at-%Ld and so on... So dovecot gets domain part in password_query, but not in user_query. I noticed the username is changed like this: kostas at mgupb.net->kostas in log. For some reason it
2016 Sep 30
2
[PATCH] customize: Add --append-line.
This appends a single line to a file, with some cleverness involving guessing the right line endings to use. Also adds a test. --- builder/test-virt-builder.sh | 57 +++++++++++++++++++++++++++++++++++- customize/Makefile.am | 2 ++ customize/append_line.ml | 70 ++++++++++++++++++++++++++++++++++++++++++++ customize/append_line.mli | 20 +++++++++++++ customize/customize_run.ml
2007 May 04
3
fileserver hanging
hello, we just wanted to rollout our new puppetized dmz. therefore i change all ip adresses from the test network to the live ips. after restarting puppetmasterd it seems that the fileserver hangs: client log: debug: //true_base/update-check/File[/sbin/update_check.pl]/require: requires Package[libmail-sendmail-perl] debug: //true_base/puppetd/File[/etc/puppet/puppetd.conf]/require: requires
2009 Apr 22
0
Frequent stating of template files
Puppet-dev folks, I think I have found a bug in 0.24.4''s puppetmasterd. I was tracing puppetmaster and found that it was running stat on my template files at a very significant rate. (in the many many hundreds of times/second ballpark). I realize it makes sense for the puppetmaster to look for changes in the configs and templates, but this seemed way out of whack. Has anyone else seen
2007 Jan 16
1
<BR> and <P> in RedCloth v. Textism
Hi, I''m using RedCloth right now for some simple markup in a Rails project. It''s simple and easy - thanks for a great tool! I have a question about an apparent discrepancy between RedCloth and Textile, relating to newline characters. I''ve played with the "hard_breaks" feature and that seems to generate it''s own problems.. If I go onto the Textile
2023 Jul 25
1
Seeking Assistance: Plotting Sea Current Vectors in R
Hi Kostas, The function vectorField in the plotrix package may do what you want. See the example. Jim On Tue, Jul 25, 2023 at 9:30?PM konstantinos christodoulou <konstantinos.christodoulou1 at gmail.com> wrote: > > Dear Rcommunity, > > I hope this email finds you well. I am writing to seek your assistance with > a data visualization problem I am facing while working with R.
2010 Sep 20
0
No subject
+0100 From: Daniel Schall <tinc-devel at mon-clan.de> Date: Mon, 3 Jan 2011 21:04:17 +0100 Subject: [PATCH] Console Logging showing user-readable datetime Logging using flags instead of counters diff --git a/src/logger.c b/src/logger.c index bc20438..5312ef5 100644 --- a/src/logger.c +++ b/src/logger.c @@ -69,14 +69,23 @@ =20 va_start(ap, format); =20 + time_t t =3D time(NULL); + char
2006 Sep 01
5
templates and require
Thanks everyone for your quick responses to my questions. I''m trying to get templates working. I want to pull the template down from the puppet server, then use it. It looks like the require parameter is not being enforced when using the content parameter so the template can''t be found. This doesn''t work: file { "/etc/lighttpd/lighttpd.conf" :
2010 Aug 06
0
adding options to erb scaffold generator to include or skip custom views / templates
created a small patch.. looking for feedback / etc.. https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/5319-adding-options-to-erb-scaffold-generator-to-include-or-skip-custom-views-templates#ticket-5319-2 When I was working on customizing the erb scaffold generator to match the style and design I wanted to use by creating custom templates in / lib/templates/erb/scaffold I found
2008 Apr 09
4
apply lm() for all the columns of a matrix
Hi all, My question is not really urgent. I can write a loop and solve the problem. But I know that I'll be in a similar situation many more times so it would be useful to find out the answer Is there a fast way to perform linear fit to all the columns of a matrix? (or in the one dimension of a multi-dimensional array.) I'm talking about many single linear fits, not about a multiple fit.
2009 May 27
3
[PATCH server] correctly set collectd dnsmasq entry to udp
--- .../modules/ovirt/templates/ovirt-dns.conf.erb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/installer/modules/ovirt/templates/ovirt-dns.conf.erb b/installer/modules/ovirt/templates/ovirt-dns.conf.erb index ae3eb48..f4ee39b 100644 --- a/installer/modules/ovirt/templates/ovirt-dns.conf.erb +++ b/installer/modules/ovirt/templates/ovirt-dns.conf.erb @@ -1,7 +1,7
2011 Feb 01
4
Delay Loading Rails Views
Hi All, I''m having trouble with a Rails app and I can''t figure out what / where the problem is. From the logging and testing I''ve done, it looks like there is a consistent 3 second delay between the time that Rails finishes rendering the view and the time that the browser actually receives the data. That delay doesn''t show up on my laptop, running in