Recent Web Posts from Tech Monger :///feeds/web/ 2020-11-02T17:50:04.895595Z Werkzeug Postgres ODBC with Mutual SSL in Informatica https://techmonger.github.io/77/odbc-ssl-postgres 2020-11-02T17:50:04.895595Z 2020-07-01T14:36:42.511620Z Tech Monger <p class="lead">Encryption has become security norm and communicating with databases on insecure network should not be an exception to this norm. In this tutorial we will learn how to connect to postgres database using ODBC connection which is configured to use 2 way SSL connection.</p> Script to Recover Web Application After Crash https://techmonger.github.io/73/crash-auto-restart 2019-06-14T13:54:00.029529Z 2019-06-10T11:20:17.800411Z Tech Monger <p class="lead"> So you have web application running in production but it goes down unexpectedly and you get midnight calls to take up application. In this post we will build simple script that will recover web application after server crash due to over resource utilization. Solving Scrapy User timeout caused connection failure https://techmonger.github.io/65/troubleshoot-scrapy-user-timeout 2018-11-20T07:06:50.542649Z 2018-11-19T18:00:39.563913Z Tech Monger <p class="lead">If the website you are scraping is not responding to your requests then your spider would report failure due to request timeout and throw following error.</p> Custom Validation Messages with WTForms https://techmonger.github.io/64/wtf-custom-validation-hack 2018-11-11T09:18:28.423182Z 2018-11-11T07:56:08.911691Z Tech Monger <p class="lead"> While using WTF or Flask-WTF for the form validation you would often find yourself adding custom validation messages according to the requirement of your web application. You can always use WTF's <code>ValidationError</code> API however in this tutorial we will show you clever hack to add validation messages during page rendering. We will show <a href="#example">example code</a> with <a href="/tag/flask" title="Flask Tutorials">flask</a> but you can use this method with any other framework which is using WTF for form validation. Scrapy Random Fake User Agent Example https://techmonger.github.io/62/example-scrapy-fake-user-agent 2018-10-19T19:16:03.373783Z 2018-10-19T18:30:06.053868Z Tech Monger <p class="lead"> If sites you are crawling with scrapy dont respond to your request then you should use randomly generated user agent in your request. Scrapy Fake User Agent is one of the open source and useful extension which will help you evade bot detection programs easily. Apache Configuration - Lets Encrypt SSL Certficates https://techmonger.github.io/50/certbot-apache-configuration 2018-08-25T17:37:12.906153Z 2018-08-24T16:49:09.854892Z Tech Monger <p class="lead"> If you have <a href="/48/free-ssl-wordpress/" title="Lets Encrypt - Free HTTPS Certificate For Website">installed letsencrypt ssl certficate via cerbot client</a> on apache webserver then certbot program must have made configuration changes on your apache webserver. How to Auto Renew Let's Encrypt Certificates https://techmonger.github.io/49/certbot-auto-renew 2018-08-24T16:27:10.332985Z 2018-08-24T15:37:43.153794Z Tech Monger <p class="lead"> If you have ever <a href="/48/free-ssl-wordpress/" title="Lets Encrypt Free SSL on Apache (Wordpress)">setup free ssl certificates provided by let's encrypt</a> for your site then it is of utmost importance to auto renew certificates or else visitors will get greeted with nasty ssl security exception error. Let's encrypt SSL certificates will get expired after <strong>90 Days</strong> of installation and you must renew it before it get expired. If you have installed certificates using certbot then it must have already created cronjob to auto renew certificates. For custom installation you can create similar cronjob too. Lets learn how certbot's auto renew job works.<p/> Wordpress - Free Letsencrypt SSL Certficate https://techmonger.github.io/48/free-ssl-wordpress 2018-08-25T17:40:16.171899Z 2018-08-23T11:59:12.912040Z Tech Monger <p class="lead"> In this tutorial we will enable <code>https</code> on wordpress site. We will install letsencrypt ssl certificate using <abbr title="Electronic Frontier Foundation"> EFF</abbr>'s Certbot client. We will perform installation on <a href="/47/wordpress-google-cloud/" title="Free Wordpress Hosting on Google Cloud">wordpress vm hosted on google cloud</a>. However you can follow the same steps for your self hosted wordpress setup. Host Wordpress on Google Cloud for Free https://techmonger.github.io/47/wordpress-google-cloud 2018-08-24T16:39:26.630317Z 2018-08-22T12:22:19.553739Z Tech Monger <p class="lead"> In this article we will teach you on how to setup Wordpress on google cloud's f1 compute instance. F1 Instance will provide 744 free hours per month which is equivalent to free hosting. If you have google cloud credits then you can utilize those as well. You can also avail this free tire limit to <a href="/45/static-webiste-google-cloud/" title="Free Static Website on Google F1 Compute Instance">host static website on google cloud</a>. Let's Encrypt - Free SSL Certificate for Google Cloud VM https://techmonger.github.io/46/free-ssl-google-cloud 2018-08-25T17:43:22.736552Z 2018-08-19T20:32:04.820019Z Tech Monger <p class="lead"> In this tutorial we will make use of free ssl certificate provided by Lets Encrypt to make website secure by enabling <code>HTTPS</code>. We will install certificate provided by lets encrypt using <abbr title="Electronic Frontier Foundation">EFF</abbr>'s certbot client. Host Static Website on Google Cloud for Free https://techmonger.github.io/45/static-webiste-google-cloud 2018-08-23T09:00:05.989057Z 2018-08-19T15:06:54.379329Z Tech Monger <p class="lead"> In this tutorial we will publish static website on google cloud for free. We will use f1 micro instance on google compute engine to get free hosting. Google provides 744 free hours per month for the f1 compute engine instance which will be same as one month of free hosting. We assume that you have working google account and have signed up for google cloud. Please follow these steps to host your static site on Google VM.