R package Installation failed: Timeout was reached: Resolving timed out after 10000 milliseconds

If you are facing problems like above, timeout may be problem of your network( domain name resolution). 
Possible solution is to update the network dns . It should be fast dns like Google DNS or Cloudflare DNS 

Google DNS – 8.8.8.8,8.8.4.4
Cloudflare DNS – 1.1.1.1

With low latency network and responsive dns, this problem will be resolve as resolved in above image. 

This post is also answer to how to install IRkernal for jupyter notebook 

Flask sqlalchemy error : SQLALCHEMY_TRACK_MODIFICATIONS

Problem :FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future. Set it to True or False to suppress this warning.
‘SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and ‘

Solution:  app.config[‘SQLALCHEMY_TRACK_MODIFICATIONS’] = False

Vue JS Issue – Devtool inspection is not available

Full description of problem:  Vue.js is detected on this page. Devtools inspection is not available because it’s in production mode or explicitly disabled by the author.

Cause: You may be using compressed production version of vue

Solution : You need to use development version with debugging support.
<script src=”https://vuejs.org/js/vue.js” ></script>



vue.js source

If your problem solved, share this to others. 

How to improve python requests module with retries and timeouts

I found this useful article at https://www.peterbe.com/plog/best-practice-with-retries-with-requests

Most of time, It will be useful to retry the requests so request loop could be process successfully.

While accessing any webpage, there may be different types of timeout. 


Connection timeout => Time taken to identify the resolved ip and connect to them

Read timeout => Time taken to get response from connected server. If this take longer time, then will be read timeout

connect_timeout, read_timeout = 5.0, 30.0
response = requests.get(URL, timeout=(connect_timeout, read_timeout))