我们正在使用 Grafana 警报。在周末和节假日期间,我们的一些指标较低,这实际上是可以的。但仅限于那些日子。
在周末和假期,我们会收到来自 Grafana 的警报,即使系统实际上没问题。
我们如何防止 Grafana 在周末和假期就某些指标向我们发出警报?
在git cloning python-for-android之后,我尝试创建一个发行版:
./distribute.sh -m "kivy"
Run Code Online (Sandbox Code Playgroud)
并且没有这种错误:
Error compiling Cython file:
------------------------------------------------------------
...
vertex_format.last_shader = self
for i in xrange(vertex_format.vattr_count):
attr = &vertex_format.vattr[i]
if attr.per_vertex == 0:
continue
attr.index = glGetAttribLocation(self.program, <char *><bytes>attr.name)
^
------------------------------------------------------------
kivy/graphics/shader.pyx:448:63: Casting temporary Python object to non-numeric non-Python type
Run Code Online (Sandbox Code Playgroud)
找到这个答案,但没有解决我的问题:
sudo apt-get remove --purge cython
sudo pip install cython
Run Code Online (Sandbox Code Playgroud)
我需要特定的Cython版本吗?
谢谢!
更新
感谢@RyanP我尝试了运行:
cython -V
cython shader.pyx
Run Code Online (Sandbox Code Playgroud)
好吧,Cython版似乎没问题:
Cython version 0.21
Run Code Online (Sandbox Code Playgroud)
但是,shader.pyx仍然无法使用完全相同的错误进行编译.
另一个更新
我做了两件事:
build和dist.export P4A_kivy_DIR=/path/to/cloned/kivy/并 …
我在 Kivy 中使用group: 'my-group'.
如果我单击选定的复选框,它会关闭并且不会选择任何选项。两个复选框都已关闭。
如何强制至少一个复选框处于活动状态?
输入是包含文字,数字和序数如一个句子1st,2nd,60th等.
输出应该只包含单词.例如:
1st → first2nd → second60th → sixtieth523rd → five hundred twenty-thirdnum2words将数字转换为单词.不过,这并不对书中使用诸如工作1st,2nd,60th等.
如何使用python将序数转换为单词?