How to add custom data to hystrix-metrics-event-stream? - hystrix

I would like to add some more JSON fields to the hystrix-metrics-event-stream for each HystrixCommand.
What is the proposed way to do it?
Thanks for any hint

Related

Wagtail - how to put two fields in one row in admin form?

I would like to put two fields next to each other. I didn't find any instructions in the wagtail documentation so I think it's more tricky or not possible in the current wagtail solution. I suppose that the only way to achieve it is the override edit form the HTML file, right?
I would like to have something like this:
You probably need the FieldRowPanel. Reference: https://docs.wagtail.io/en/latest/reference/pages/panels.html#fieldrowpanel

Get data from odk Aggregate

I want to get form data using api's.
http://localhost:8080/ODKAggregate/view/submissionList?formId=abcd returns me a list of uuid's like:
<id>uuid:52af4a39-bf13-4305-b1a6-2b02d839dd7c</id>
<id>uuid:2e988c5b-8160-4d59-b2ee-6fe0728416bf</id>
<id>uuid:02c67418-8922-491d-a345-d41d223db949</id>
<id>uuid:4e06eb89-3f2c-4cef-b82b-38b725080c95</id>
<id>uuid:a3e2da91-719d-458d-bf9a-f15f4406eee7</id>
<id>uuid:19ff4408-0f6c-4e37-9d48-ecfb6d74b4e1</id>
Now I want to download each submission individually using downloadSubmission api described here https://github.com/opendatakit/opendatakit/wiki/Briefcase-Aggregate-API
Can anybody tell what will be the exact format to call downloadSubmission?
Thanks in advance!
../view/downloadSubmission?formId=YOURFORMID[#version=null#uiVersion=null]/YOURFORMID2*[#key=uuid:xyz]
*Look this up prefixed with each question in your form's XML

List style article in drupal 7

I'm trying to create a content type that allows me to post multiple images from an external database in this sort of style: http://www.newageman.co.uk/14-time-travelling-celebrities
In an ideal world this is what I would like my group of fields to look like in the article creation screen.
http://oi57.tinypic.com/wi0z8i.jpg
Any idea how I would achieve this using best practices? To post articles like this I'm currently using a piece of php code but it's confusing for my contributors, so would like to use fields. I've never made a module or custom field before.
Thank you!
I have done something similar using the Field Group module, you may give it a try.

Implementing copy-paste directive in my table using Angularjs directive

I am displaying some data in tabular format. I am trying to add the ability to copy contents of one cell and paste into another. i know I have to do something like
element.on('ctrl-c',function(e){
$scope.textToBeCopied = element.innerHTML;
})
and then let the cursor move to the relevant position and implement a similar paste function.
Those with knowhow of how to implement this feature kindly advice.
I have a plnkr here:
http://plnkr.co/edit/YyZLVKtRAR1OYGey0FYj
figured it out.
Those who wanna take a look or offer a better solution please see the plnkr.co here
http://plnkr.co/edit/YyZLVKtRAR1OYGey0FYj
Focus on the file copyOn.js
This is where I have defined the copy-paste directive

Is possible to change pagination url names in cakephp?

Is possible to change pagination url names in cakephp?
For example:
example.com/tests/act/page:2/sort:title/direction:desc
to:
example.com/tests/act/pg:2/link:title/orderby:-date
Thank you all. But I am beginner in cakephp and pleased to see an example.
I read the documentation. but there is nothing about things I want.
Maybe I can translate those parameters and give to the Paginator class. but how?
Yes. Use routing. http://book.cakephp.org/2.0/en/development/routing.html
Just create a rewrite rule for it.
Pagination Works with named parameters, and there is not a simple way to rename them. You will need to modify the PaginatorComponent and PaginatorHelper to modify the parameters of the pagination.

Resources