grafana: remove legend caption prefix - grafana

I'm using 6.2.9 version of grafana.
Currently, this is my legend format: {{class}} - {{method}} and I'm getting this legend captions:
I'd like to remove cat.gencat.catsalut.hes.mpi.api.providers. prefix from {{class}}.
Any ideas?

You can try it like this, edit the panel, click Transform and add transformation and rename the query result by regex.
Hope this helps!

Related

Visio Org Chart - Formatting and Numbers Coming Through

I am trying to create a visio org chart that looks like this:
However, this is all I can get so far:
1.) Does anyone know how to get rid of the picture?
2.) Does anyone know how to add in organization abbrev boxes into my org chart, and color them, if necessary?
3.) Does anyone know how to format the text on the boxes so I can have it show up as "POSITION GRADE – LAST NAME, POSITION TITLE" instead of the default list (which is what I have right now)?
4.) Does anyone know why the ID number is only showing up as 0?
Thank you so much!!!!
Files here:
Excel:
https://drive.google.com/file/d/1XewYNXP6JqXVlQQ0kuaLTxK1efZTqm4c/view?usp=sharing
Visio:
https://drive.google.com/file/d/1nSKhCmAVWz8qvtv79-3PuY8SJT58jnzC/view?usp=sharing
Item 1: Select all the shapes then on the Org Chart ribbon click Picture -> Delete.

Getting the content of paragraph in tinymce

Is it possible to get the content of a clicked paragraph in tinymce? If yes, how?
For ex: I have paragraph as shown below
I will use '|' to denote cursor
<p>123</p>
<p>45|6</p>
<p>789</p>
I should get output as
<p>456</p>
Any help would be appreciated.....
I believe this will do what you want:
tinymce.activeEditor.selection.getNode()
Take a look at this TinyMCE Fiddle for an example of how you might do this: http://fiddle.tinymce.com/xAfaab

How to update a grouped caption in MS-Word?

I have a rather large document with a fair ammount of images and I am facing the following problem:
All images have a caption which looks like this: Figure 3-2 Paris. When I add a figure between figure 3-1 and 3-2, I'd like to have the figure updated.
I guess because I group the figure with its caption (so moving the figure around does not mess the position of the caption up) using ctrl+A and pressing F9does not work. Neither does closing the document and reopening.
My question: Is there any way to update the captions which are inside a group, all at the same time to be sure I won't forget any?
This worked:
Make sure all captions have the same format
Select one caption (still possible when caption and figure are grouped
Goto: Start->Edit->Select choose Select Text with Similar Formatting
Hit F9
You have now updated all captions.
PS. Tested in MS word 2013.

How to modify the tooltip for various eclipse commands e.g. Paste, Cut, Copy

I want to modify the existing tool tip text.I have following lines in plugin.xml
<command commandId="org.eclipse.ui.edit.paste"
id="org.eclipse.ui.edit.paste" tooltip="%pasteAction.TIP">
in plugin.properties
pasteAction.TIP=Paste
Existing tool tip appears like following
Paste(Ctrl+V)
I want to modify this existing tool tip to appears like following
Paste(Ctrl+V)
Paste a reference to the object
I am getting three problems to achieve this use case.
(Ctrl+V) added automatically at the end of tool tip text. which is not desired. It should appear where it is expected.
don't know how to Bold the particular string e.g. (Ctrl+V)
don't know how to make tool tip text multiline
we can use \n for multiline. it works but still looking for other two questions.
Thanks
For controls that you create you can use the org.eclipse.jface.window.ToolTip class to define custom tool tips.
For controls that Eclipse creates I don't know of any way to change the position of the key binding text or the font (bold).

Remove blank line in Eclipse

How can I remove lines that only contain spaces when using Eclipse Find/Replace prompt. I checked the "Regular Expression" check box, and tried the following, neither of which worked.
^[:space:]*$
and
^\s*$
Find: ^\s*\n
Replace with: (empty)
sry this might be an different answer but you can set the number of blank lines you wish to have after fields, methods and blocks in the formatting dialog of the eclipse preferences. then you can hit ctrl-shift-f to automatically format your code depending on your custom definitions.
have fun!
I was suprised that for XML files edited with Eclipse there is a good solution:
Select the checkbox value named 'Clear all blank lines' in Formatting panel
Window->Preferences->XML->XML Files-> Editor
Save and use the "Ctrl+Shift+F' shortcut
The blank lines will dissappear!
for the find/replace operation, "\n\r\s" regex will work on windows, for unix based system, "\n\s" can be used
as already suggested, you can format your code by Ctl+Shift+F
for manual work, locate a blank line and press Ctl+D (Cmd+D on Mac) <- gives u satisfaction of killing the line with your own bare hands :)
cheer!
This one worked for me for years:
Replace this: [\t ]+$
With nothing
Hope this helps!
Many thanks to lamamac.
In genereal, when you want to do search replace with regular expressions in eclipse the $ sign doesn't work as it should.
Use '\s*\n' instead of '$'
As already suggested, regular expression and replacement is the solution, but such response would have been saving some minutes to me:
click on ctrl+f
use this replacement: