search for: template2

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

Did you mean: template
2019 Oct 17
2
[PATCH nbdkit] server: Allow file descriptors to be passed to nbdkit_read_password.
...ned nsec) { diff --git a/server/test-public.c b/server/test-public.c index ea10189..4a7eb17 100644 --- a/server/test-public.c +++ b/server/test-public.c @@ -335,6 +335,8 @@ test_nbdkit_read_password (void) { bool pass = true; char template[] = "+/tmp/nbdkit_testpw_XXXXXX"; + char template2[] = "/tmp/nbdkit_testpw2_XXXXXX"; + char fdbuf[16]; char *pw = template; int fd; @@ -391,6 +393,35 @@ test_nbdkit_read_password (void) unlink (&template[1]); } + /* Test reading password from file descriptor. */ + fd = mkstemp (template2); + if (fd < 0) { +...
2010 Dec 22
1
'No route matches' error with select_tag
...select tag to pick a template, that on dropdown should submit the form which rerenders the page based on the selection: <%= form_tag book_path(@book) do %> > > <%= select_tag "template[]", >> options_for_select([["Template1","template1"], ["Template2", "template2"]]), >> :value => (@template || ''template1''), :onchange => ''this.form.submit();'' %> > > <%end%> > > In my controller, I have > @template = params[:template] || ''post'' In my rout...
2019 Oct 17
0
Re: [PATCH nbdkit] server: Allow file descriptors to be passed to nbdkit_read_password.
...;\n') > + (*password)[r-1] = '\0'; > + > + return 0; > +} > + > +++ b/server/test-public.c > @@ -335,6 +335,8 @@ test_nbdkit_read_password (void) > { > bool pass = true; > char template[] = "+/tmp/nbdkit_testpw_XXXXXX"; > + char template2[] = "/tmp/nbdkit_testpw2_XXXXXX"; > + char fdbuf[16]; > char *pw = template; > int fd; > > @@ -391,6 +393,35 @@ test_nbdkit_read_password (void) > unlink (&template[1]); > } > > + /* Test reading password from file descriptor. */ &g...
2013 Jan 24
3
how to combine unequal rows and columns in R
HI, I have the following list: crosspries $crosspries[[1]] Product Year_Month prod1 A 201208 1 B 201208 2 C 201208 1 $crosspries[[2]] Product Year_Month prod1 prod2 A 201209 1 1 B 201209 2
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 template file to the one in the parent class. The above works (that is, it doesn''t result...
2007 Dec 19
4
Questions on writing plugin for merb
Hey all, I am looking to write a plugin for merb and have a few queries about how to best go about it. I have a few questions (sorry if some are very merb newbie ones): - It seems all the plugins are gems; I can just add dependencies (my plugin will require soap4r) as per any usual gem spec? - If I want my plugin to add some new generate functionality? Is this possible? If so, are there
2010 Mar 29
3
one way to write scripts in R
...$today`, substituting ${show$syntax} in named lists is also possible. `cal $month $year| head` ") cat("here's the demo output\n") cat(demo,sep="\n") ## # output of this demo script when run, show how to use stdin and ppp() ## ## ## me@host:~/uns/bin$ cat ~/tmp/test | template2.rsh ## not comment 1 ## not comment 2 ## not comment 3 ## not comment 4 ## not comment 5 ## here's the demo output ## Getting greetings (I'm an env var!) from the environment, on Mon Mar 29 10:23:49 CDT 2010, substituting 43 in named lists is also possible. March 2010 ## Su Mo Tu We Th Fr...