4 ms·
Looks great, I love the simplicity. Although you chose an interesting color scheme. How are you determining when a website is down? What are you using to crea
by colbyolson 17y ago
Looks great, I love the simplicity. Although you chose an interesting color scheme.
How are you determining when a website is down?
What are you using to create the error message on the right?
What's your website running, if you dont mind me asking. Python? Ruby?
On a side note, your blog is just as beautiful as your app. Kudos.
- uggedal 17y agoGlad you liked both the app and my blog! A website is down if it does not return a 200 OK HTTP status code and if the response body does not contain the text provided at registration (if such were provided). The error messages to the right are rendered out in a normal unordered list below each input. On document.ready they are retrieved with JavaScript, hidden, and copied into tool-tips provided by the BeautyTips jQuery plugin (http://www.lullabot.com/files/bt/bt-latest/DEMO/index.html http://www.lullabot.com/files/bt/bt-latest/DEMO/index.html). The entire service is coded in Python. The website is running Werkzeug (http://werkzeug.pocoo.org http://werkzeug.pocoo.org) on mod_wsgi inside Apache with Nginx as a proxy and media server in front. Jinja2 (http://jinja.pocoo.org/2/ http://jinja.pocoo.org/2/) is used for templating both the web pages and the emails. WTForms is used for form handling and validation (http://wtforms.simplecodes.com/ http://wtforms.simplecodes.com/). All data is stored in Tokyo Cabinet trough the Tokyo Tyrant network interface set up with multi-master replication. Fabric (http://www.nongnu.org/fab/ http://www.nongnu.org/fab/) is used for deployment and other kinds of distributed automation.