Search Results

Search found 3 results on 1 pages for 'daveg'.

Page 1/1 | 1 

  • Iterating over resources in puppet templates

    - by daveg
    So I've got a puppet manifest, with multiple resources class foo { Custom::Resource {'resource1': attr1 => 'val1', attr2 => 'val2', } Custom::Resource {'resource2': attr1 => 'val3', attr2 => 'val4', } Custom::Resource {'resource3': attr1 => 'val5', attr2 => 'val6', } } If I wanted to loop over the Custom::Resource resource names in an .erb template that are defined in class foo, how do I access them? So if I wanted to write out a template that looked like this: ThisLine = resource1 ThisLine = resource2 ThisLine = resource3

    Read the article

  • How to handle Android SimpleExpandableListAdapter entry selection.

    - by DaveG
    I have created an expandable list in my Android application using the SimpleExpandableListAdapter type. But I'm at a complete loss as to how I detect events when one of the child entries has been selected/clicked. I've tried all the usual OnClickListener/OnChildClickListener etc, but can't seem to find (by experimentation, or half an hour googling) what the correct handler routines should be. Any help greatfully appreciated.

    Read the article

  • PHP file_get_contents() behaves differently to browser.

    - by DaveG
    I'm trying to download the contents of a web page using PHP. When I issue the command: $f = file_get_contents("http://mobile.mybustracker.co.uk/mobile.php?searchMode=2"); It returns a page that reports that the server is down. Yet when I paste the same URL into my browser I get the expected page. Does anyone have any idea what's causing this? Does file_get_contents transmit any headers that differentiate it from a browser request?

    Read the article

1