小编Pat*_*sen的帖子

Prometheus 每天的查询不在 24 小时“桶”中

我有一个以 grafana 作为 UI 的 Prometheus 实例,我想要一个对仪表速率求和的图表。

现在我有类似的东西:

sum(rate(myNiceMetric[1d])*60*60*24) by (result,component)
Run Code Online (Sandbox Code Playgroud)

但问题是费率时间窗口涵盖了过去 24 小时,但为了获得稳定的数字,我需要按天(00:00-24:00)

有办法实现吗?

metrics grafana prometheus

5
推荐指数
1
解决办法
1853
查看次数

OSGI在谷歌应用引擎上?

我正在为谷歌应用引擎的开源应用评估几种技术.我在谷歌应用引擎上搜索有关OSGI的信息.

我找到了Lemmon,但它似乎是一个死的项目.最后一次检查是在2009年中期...: - /2009年4月还有一个日食博客,但这不是一个真正的成功故事.

有人在GAE应用程序中成功使用过OSGI吗?

java google-app-engine osgi

4
推荐指数
2
解决办法
1818
查看次数

tinymce编辑器内容没有正确的样式

我正在为我的网站构建一个小型webapp,并将tinyMCE作为可视化编辑器.我的网站使用免费模板,而contentarea的文章名称为#left_side,几乎所有样式都引用了这些内容.

所以这个编辑器有点像wysiwyg,但样式是错误的,因为我提供的内容为content_css的样式不适合.

我认为是,因为#left_side id不在iframe中的任何位置.

我已经google了很长一段时间,发现没有办法让tinyMCE添加例如带有编辑内容的这个ID的div,所以css会起作用.

我认为这很难完成,我目前还不知道如何...: - /

有任何想法吗?

编辑:内容CSS添加如下:

tinyMCE.init({
    // General options
    mode : "textareas",
    theme : "advanced",
    plugins : "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave",

    // Theme options
    theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
    theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
    theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
    theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,restoredraft",
    theme_advanced_toolbar_location : "top",
    theme_advanced_toolbar_align : "left",
    theme_advanced_statusbar_location : "bottom",
    theme_advanced_resizing : true,

    // Example content CSS (should be your site CSS)
    content_css : "/cms/static/style/site.css",
    ....
Run Code Online (Sandbox Code Playgroud)

tinymce

4
推荐指数
1
解决办法
6008
查看次数

是否有jsp标记文件的DTD或Schema文件?

我正在编写一些JSP 2.x标记文件.我现在已经搜索了几个小时,但是我找不到基于jsp的标记文件的doctype/schema定义/ dtds.

有没有人知道是否有dtd/schema文件来减轻编写这些标记文件的痛苦?在eclipse中没有自动完成等等是非常痛苦的.我必须检查我在编写标签时找到的几个教程.

澄清一下:我不是在谈论基于java的标签,也不是在谈论taglib tld文件.我说的是由jsp代码组成的标记文件,通常是结尾的.tag或tagx,它们位于META-INF/tags或WEB-INF/tags中.

提示非常受欢迎

java jsp jsp-tags

3
推荐指数
1
解决办法
1162
查看次数

如何在主题模板中访问页面的自定义字段

我想使用自定义字段在主题中显示一些特定于页面的字符串.

我创建了一个Textbox类型的自定义字段"intro".

如何访问主题模板中的数据(速度)?

由于没有声明变量的"内省",我发现很难弄清楚如何访问它们.该文档远不能用于自定义字段的主题: - /

velocity liferay

3
推荐指数
1
解决办法
8071
查看次数