Where is boost::lambda::ll? - boost

I can't seem to find boost::lambda::ll for a nested ll::for_each() invocations in any header file in the boost_1_39_0 distribution. Could someone point me to the right direction? Thanks.

boost_1_39_0/boost/lambda/algorithm.hpp
first structure defined there is boost::lambda::ll::for_each

Related

2D distributions in the HistFactory?

How can I specify in the construction of the HistFactory the signal and background to be 2-dimensional distributions?
I have understood than in RooStats you need to change the TH1 to a TH2.
At the moment to write my model in the json file can I use a ndarray to do something similar?.
Which is the correct way to do this?
I hope someone can help me and thank you in advance.
Currently the best way is to unroll the distributions e.g.
{'data': 2darray.ravel().tolist()}
Since mathematically it doesn't make any difference.
If you want to convert from XML+ROOT this is not yet supported (but could be). If so, please open an issue on GitHub.
Thanks for using pyhf!

Internationalization-packages for Scene-Builder?

I saw the possibility to change the Internationalization of Scene Builder. But I did not find somewhere suitable language packages. May somebody of you have been faced by same kind of intention? For any hints in this matter I would be grateful.
With best regards
Peter
I checked by the way the possibility to change the language of the scene-builder-menu with use of google. The result of my investigation is: It is not possible to be done by a standard kind of user. Sorry, I did not expect this result. Anyway, I learned by. Thank you very much for the time an efforts you spend to bring me onto the right way to get an answer in regard to the question i did publish in before. Thank you.

FHIR DataRequirement metadata type

I am implementing a CDS system, and I would like to use the DataRequirement type to ask for additional information. However, I am having some difficulties to understand the filter elements ("codeFilter" and "dateFilter").
For example, the property "path" of the filter elements is of string type, but what is the format to specify this path?
I have been searching some examples from the FHIR specification, and I've tried to follow the "path" in the resource object. I attach below an image with an example and the specification of the resource "MedicationRequest" that is being addressed in this example. Can anyone explain me over this example how to traverse throw the elements? What is the element "code" from the path refering to?
example DataRequirement.codeFilter
Can anyone help me with this issue? Examples of use would be appreciated!
Thanks in advance.
It's referring to the FHIRpath query - see spec.
The path element is a FHIRPath, but for simplicity, it assumes the ability to traverse references. Without that, the dereference would have to be explicit, as in:
medicationReference.resolve().code
The spec isn't clear on this, so I will submit a tracker to add that clarification.

Get the current Node in JSP with Jahia?

Is there a way to get the current node you are with Jahia ?
I tried to find in the documentation, but Jahia's not greatly documented.
tried to use ${node.path} but didn't gave me what I wanted.
${renderContext.mainResource.node.path} is the solution.
Use ${currentNode} to get the current node you are.
<%--#elvariable id="currentNode" type="org.jahia.services.content.JCRNodeWrapper"--%>
${currentNode}
https://academy.jahia.com/documentation

How to detect if an element exists in Watir

I'm relatively new to Watir but can find no good documentation (examples) regarding how to check if an element exists. There are the API specs, of course, but these make precious little sense to me if I don't find an example.
I've tried both combinations but nothing seems to work...
if browser.image (:src "/media/images/icons/reviewertools/editreview.jpg").exists
then...
if browser.image (:src "/media/images/icons/reviewertools/editreview.jpg").exists?
then...
If anyone has a concrete suggestion as per how to implement this, please help! Thanks!
It seems you are missing a comma between parameters.
Should be
if browser.image(:src, "/media/images/icons/reviewertools/editreview.jpg").exists?
Also you can find this page useful in future to know what attributes are supported.
The code you posted should work just fine.
Edit: Oops, wrong. As Katmoon pointed out, there is a missing comma.
browser.image(:src "/media/images/icons/reviewertools/editreview.jpg").exists?
One problem you may get caught up in is if the browser variable you specified is actually an element that doesn't exist.
e.g.
b = Watir::IE.start(ipAddress)
b.frame(:name, "doesntExist).image(:src "/media/images/icons/reviewertools/editreview.jpg").exists?
The above code will throw a Watir::UnknownFrameException. You can get around this by first verifying the frame exists or by surrounding the code in a begin/rescue block.
Seems like you are using it correctly. Here is an old RDoc of Watir.
Does it not work because Watir cannot find it? Hard to tell because there is no source or link to the page that is being tested. I think that I only use image.exists?. In general, errors that come from when the image exists but is not found are:
The how is not compatible with the element type. There is a cheatsheet to help you see which object types can be found with different attributes here.
The what is not correct. You may have to play with that a little bit. Consider trying a regex string to match it such as browser.image(:src, /editreview.jpg/). As a last resort, maybe use element_by_xpath, but there are maintenance costs with that.
The location is not correct. Maybe the element is in a frame or something like that. browser.frame("detail").image(:src, /editreview.jpg/).
Try those, but please let me know what worked. One more thing, what are you checking for? If it's part of the test criteria, you can handle it that way. If you need to click on it, then forget the .exists? and just click on it. Ruby will let you know if it's not there. If you need it to be grace, learn about begin/rescue.
Good luck,
Dave

Resources