alert

Monit:开源服务器监控工具

天涯浪子 提交于 2020-01-05 00:31:53
Monit是一个跨平台的用来监控Unix/linux系统(比如Linux、BSD、OSX、Solaris)的工具。Monit特别易于安装,而且非常轻量级(只有500KB大小),并且不依赖任何第三方程序、插件或者库。 Monit可以监控服务器进程状态、HTTP/TCP状态码、服务器资源变化、文件系统变动等等,根据这些变化,可以设定邮件报警、重启进程或服务。易于安装、轻量级的实现以及强大的功能,让Monit成为一个理想的后备监控工具。 官网: https://mmonit.com/monit 文档: https://mmonit.com/monit/documentation/monit.html 最新版本: https://mmonit.com/monit/dist/monit-5.20.0.tar.gz 注意: Monit 是一个开源工具,但 M/Monit 是收费的。 安装 yum install monit 当然也可以下载源码安装。 当前使用版本: # monit -V This is Monit version 5.17.1 Built with ssl, with pam and with large files Copyright (C) 2001-2016 Tildeslash Ltd. All Rights Reserved. 常用命令 monit -t #

JS重写提示框(confirm)

≯℡__Kan透↙ 提交于 2020-01-04 17:28:44
本文转载自: https://www.cnblogs.com/goody9807/archive/2009/04/08/1431732.html 作者:goody9807 转载请注明该声明。 <script language="javascript"> /** * 功能:显示提示窗口 * 作者:申楠 qq:38371354 email: amushen1@yahoo.com.cn http;//amushen.cnblogs.com * 日期:2005-10-26 * 版本:1.1 * 备注:版权没有,随便拷贝,如果用于商业应用请通知本人,同时保留这段注释。 * */ /** * 改造:黑旋风 QQ:23929003 email: lewclear97@163.com * 日期:2006-03-17 * 版本:1.2 * 说明:本人在申楠同志的《显示提示窗口》基础上,将 */ var alternateFrame=null;//生成的iframe var alternateWin=null; window.alert=showAlert; window.confirm=showConfirm; /** * 人机交互窗口,覆盖自带的 */ function alternateWindow(){ this.win=null;//生成对话框的窗口对象 this.pBody=null;/

Does Excel have VBA for “On Alert” like it does for “On Error”?

血红的双手。 提交于 2020-01-04 13:44:02
问题 I have found out that a box popping up in relation to a pivottable is in fact an "alert" box as opposed to an "error" box. Does Excel have any kind of "On Alert GoTo :" like it does for "On Error GoTo :"??? I can disable the alert completely, but then I fail to warn users when they enter an incorrect name that isn't found on the pivottable. This also reassigns things and I don't want that! 回答1: Preventing the Alert by Data Validation One way to ensure that a user supplies a name from a

Cannot start Xcode 6.1.1 after duplicating the app folder

99封情书 提交于 2020-01-04 10:13:50
问题 On our build system, we need to preserve multiple Xcode versions in order to also build older projects. We duplicate the Xcode app folder for every major Xcode release (from within Finder). However, after duplicating the Xcode 6.1.1 folder, I couldn't start the app. After double-clicking on the duplicated folder (Xcode-6.1.1.app), it briefly showed the "Welcome" screen, then immediately closed it and showed an alert saying: /Applications/Xcode-6.1.1.app/Contents/Developer/Platforms

Cannot start Xcode 6.1.1 after duplicating the app folder

感情迁移 提交于 2020-01-04 10:12:28
问题 On our build system, we need to preserve multiple Xcode versions in order to also build older projects. We duplicate the Xcode app folder for every major Xcode release (from within Finder). However, after duplicating the Xcode 6.1.1 folder, I couldn't start the app. After double-clicking on the duplicated folder (Xcode-6.1.1.app), it briefly showed the "Welcome" screen, then immediately closed it and showed an alert saying: /Applications/Xcode-6.1.1.app/Contents/Developer/Platforms

javascript Confirm replacement with return true/false

非 Y 不嫁゛ 提交于 2020-01-04 06:04:35
问题 Since jquery UI dialog does not support returning true/false, I need some other way to replace a javascript confirm. It has to return true/false, so that my validation processes in javascript will run: var where_to_coupon = confirm(pm_info_msg_013); if (where_to_coupon== true) { doSubmit=true; return doSubmit; 回答1: jQuery UI can do what you want, you simply have to adjust your code to work in an async way. Ariel Popovosky gave an answer which attempts to wrap a dialog call into a simple

javascript Confirm replacement with return true/false

岁酱吖の 提交于 2020-01-04 06:04:13
问题 Since jquery UI dialog does not support returning true/false, I need some other way to replace a javascript confirm. It has to return true/false, so that my validation processes in javascript will run: var where_to_coupon = confirm(pm_info_msg_013); if (where_to_coupon== true) { doSubmit=true; return doSubmit; 回答1: jQuery UI can do what you want, you simply have to adjust your code to work in an async way. Ariel Popovosky gave an answer which attempts to wrap a dialog call into a simple

How to make a javascript alert NOT say the name of the page?

£可爱£侵袭症+ 提交于 2020-01-04 02:29:24
问题 My webapp alert looks like this: InputCoordinates.html Latitude must be filled out. I would say this looks unprofessional and rough around the edges. Is there a way to stop the alert from displaying the pagename? 回答1: You can't manipulate that. Maybe you take a look at these bastards called modal popups, if youre able to use jQuery. http://jquery.iceburg.net/jqModal/ There are non-jquery options, too, of course. 回答2: I'd advise you not to use "alert". Use something that allows you to style it

How to make a javascript alert NOT say the name of the page?

为君一笑 提交于 2020-01-04 02:29:08
问题 My webapp alert looks like this: InputCoordinates.html Latitude must be filled out. I would say this looks unprofessional and rough around the edges. Is there a way to stop the alert from displaying the pagename? 回答1: You can't manipulate that. Maybe you take a look at these bastards called modal popups, if youre able to use jQuery. http://jquery.iceburg.net/jqModal/ There are non-jquery options, too, of course. 回答2: I'd advise you not to use "alert". Use something that allows you to style it

apicloud 实现长连接

∥☆過路亽.° 提交于 2020-01-04 02:11:42
在制作app的时候,很多时候需要服务端推送消息给app。现在针对apicloud开放梳理几种解决方案 1.ajax轮询 ajax轮询的原理非常简单,让app隔个几秒就发送一次请求,询问服务器是否有新信息。但是轮训一般及时性比较差,而且网络消耗与电量销毁比较多,因此一般推送功能都是通过长连接实现的 场景再现: 客户端:啦啦啦,有没有新信息(Request) 服务端:没有(Response) 客户端:啦啦啦,有没有新信息(Request) 服务端:没有。。(Response) 客户端:啦啦啦,有没有新信息(Request) 服务端:你好烦啊,没有啊。。(Response) 客户端:啦啦啦,有没有新消息(Request) 服务端:好啦好啦,有啦给你。(Response) 客户端:啦啦啦,有没有新消息(Request) 服务端:。。。。。没。。。。没。。。没有(Response) —- loop 2.使用第三方推送服务 apicloud的push模块 官方也有自己开放的推送模块,亲测有效。 不懂的话可以看 https://docs.apicloud.com/Dev-Guide/push-guide 如果出现 push.setListener无效 可以看 https://community.apicloud.com/bbs/thread-112988-1-1.html 还有极光、融云可以选择