Hashing Passwords in PHP - The Secure Way
When you have to save user’s password in a database you should never store them in plain text for security precautions and privacy. If we do hashing the passwords before saving them to the database we...
View ArticleGet android app downloads count and rating from Google Play Store
Google doesn’t provide any API or Widgets to display android application downloads count and rating on your website. Since there is no official google api that provides this data, we need a custom...
View ArticleMaking use of Django Custom Model Manager
Django model managerA Manager is the interface through which database query operations are provided to Django models. At least one Manager exists for every model in a Django application.By default...
View ArticleHow to implement Slack like Magic Link Login in Django
Slack Magic Link (Passwordless) LoginSlack has this feature “Magic link” which allows the user to login into the slack app without a password. This Passwordless login system is very convenient for end...
View ArticleHow to use Python Warnings Framework?
Warnings are issued when future language changes might break existing code in a future Python release. Warnings are ideally used in the places where the condition or usage doesn’t raise any exception...
View ArticleHow to Install Rust in Mac OS
Rust Programming LangaugeRust is a modern systems programming language created by Mozilla and OpenSource Commnunity. Rust focusses on three aspects: safety, speed, and concurrency. It does it without...
View ArticleHow to make random password in Django
Django has builtin method make_random_password for generating random passwords. It accepts two optional arguments length and allowed characters and returns a random password with the given length and...
View ArticleControl Chromecast with Python
Thanks to the pychromecast library. It supports the following features,Auto discovering connected Chromecasts on the networkStart the default media receiver and play any online mediaControl playback of...
View ArticleHow to create gif animation with Python
Today, I came across a python image library imageio that helps to read and write a wide range of image data, including animated images, volumetric data, and scientific formats.Required PackagesInstall...
View ArticleCopy Paste text to Clipboard using Python
Today, I came across a python library called Pyperclip that provides a cross-platform Python module for copying and pasting text to the clipboard.Required PackagesInstall pyperclip via pip pip install...
View ArticleParse RSS Feeds with Python
Today I came across this python library feedparser that is used to parse rss, atom feeds.How to use install feedparser?Install feedparser using pip.pip install feedparser How to use feed parser?import...
View ArticleAutomating Tasks in Web Pages with Selenium Python
Install PackageInstall selenium python package using pip.pip install selenium Download selenium chrome driver and copy to some location, so that you can refer it later in out program.Google search...
View ArticleCaching functions in Python
Function caching is a mechanism to improve the performance by storing the return values of the function. So that each time when they are called with same set of arguments, It will return the value from...
View ArticleImage Classifier in less than 10 lines of code using keras
Keras Keras - Python Deep Learning library provides high level API for deep learning using python. It runs on top of Tensorflow or Theano. Keras takes away the complexities of deep learning models and...
View ArticleThe Set theory and Python + Tips & Tricks
Set theory in mathematics deals with groups of objects. It describes the relationship of an object with a set or group. Python also implements the set as standard python module. The sets module...
View ArticleDeploy a serverless flask app on aws lambda
Serverless?Serverless is the new buzz word right now, what does it really means? Serverless computing actually means the server resources like memory and cpu are allocated dynamically. It lets us focus...
View ArticleCreate your first facebook messenger bot using flask & AWS Lambda
What is a chatbot?A chatbot is an automated or semi-automated service, powered by a set of rules and sometimes artificial intelligence, that you can interact with a chat interface. This chat interface...
View ArticleCreate a Get Started button and Quick Replies for Facebook messenger bot
This blog is part of the chatbot blog series, http://www.idiotinside.com/2017/12/22/create-fb-messenger-bot-aws-lambda/Get started buttonThe welcome screen is the first thing people see when they find...
View Article100 days of code - day 001 - Multiples of 3 and 5
Happy new year everyone! Hope you had a great holiday. As a new hope for this year I wanted to improve my problem solving ability and also to improve my programming skill. So I am doing 100 days of...
View ArticleDay 002 - Even Fibonacci numbers
Today, I am going to solve Project Euler’s 2nd problem Even Fibonacci numbers.Day 002Problem statement:Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting...
View Article