Python – date and time utils

  1. Convert timestamp to datetime
    from datetime import datetime
    
    datetime.fromtimestamp(timestamp)

    return value type datetime

  2. Get date time from string
    datetime.datetime.strptime('07/07/2017', '%d/%m/%Y').date()
    
  3.  Get date time and time difference (timedelta)
    from datetime import datetime,timedelta
    
    datetime.strptime('01/09/2018', '%d/%m/%Y').date()- timedelta(days=2)

 

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 

How to Cover possible queries in your page for better SEO ?

You can find this at https://online.pnbmetlife.com/meratermplan  

What is benefit of such type of content ?

This type of content is offering maximum answers without disturbing too much space. It is also very interactive, easy to use and contain near all possible question. QA style content are now featured in snippets which improve the CTR and organic ranking boot. Let user visit least distance to find the desired result.

You can replicate this type of content for your product/service.

Favourite Tweets

Debit Card EMI for your rescue

If you to purchase something very essential and do not have money in Bank Account/ Credit Card , debit card emi can help you in realizing the dream at not extra cost. 

Currently HDFC bank is offering consumar durable loan through debit card. 

How to avail Debit Card EMI 

If you have HDFC debit card, send sms to 56767 . sms format will be  DCEMI xxxx

xxxx is last 4 digit of your hdfc debit card

You can also use netbanking to see consumer durable loan offer ( EasyEmi products) . 

How to avail this :-

If price of product is more than 10000 Inr , Flipkar/Amazon are offering Debit Card EMI as payment options. Most electrical gadgets are covered under it. 

Have you purchase anything with it ?

Yes, I have used it personally to buy Redmi Note 5, Samsung Curved LED . My Friends also availed it to purchase Laptop ( Lenovo with Graphics Card) and Mobile phone at Flipkart. 

https://www.hdfcbank.com/easyemi

Compared to other consumar finance option:

Compared to other consumer finance , it is super convenient , cost effective ,No paperwork , instant processing , 0% interest , flexible payment terms , higher limit and longer duration to repay it.

Person having good credit score and mid-income range could barely avail consumer finance ( more than 80% of salary) . With Debit EMI, you can avail limit upto 15 times of monthly salary. So go for it .

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

Why you need structured data for better SEO ?

Webpage is not 100% data unlike other data only formats ( excel sheets, json , xml , csv ) etc . It has other goal – present information in visual manner, therefore data is mixed with lot of unwanted content( tags ). 

Each and every webpage have some unique design guidelines to present information and carry data. Crawler are not so smart to fetch all information from webpage. Beside fetching data, it is not easy to catagorize and index data correctly all the time. Therefore, there must be some unique method to carry data , without worrying about the html of webpage. 

Structured data comes to rescue. It follow a fixed , validated semantics to present data. I will recommed to use structured data using javascript ( JSON format)

You can find more about it from Google search gallery

In search gallry , you will find information about webpage component and its structure .