Explore a blog dedicated to a wide spectrum of topics including Django, Python, Machine Learning, Salesforce, Angular, React, Flutter, Svelte, LINUX, and Amazon Web Services.
Factory Boy - An Alternative for Fixtures
Factory Boy is a fixtures replacement tool. It allows you to use objects customized for the current test, while only declaring the test-specific fields. For testing the Django app, create a root directory named tests. Then create __init__.py, tests.py (to write your tests), factories.py (to write your model factories) in that directory.
Extract Text with OCR for All Image Types in Python Using Pytesseract
Optical Character Recognition(OCR) is the process of electronically extracting text from images or any documents like PDF and reusing it in a variety of ways such as full text searches. In this blog, we will see, how to use 'Python-tesseract', an OCR tool for python. It will recognize and read the text present in images. It can read all image types - png, jpeg, gif, tiff, bmp etc. It’s widely used to process everything from scanned documents.
Improving Page Speed Score in Google Page Score Test- PART2
In our previous blog post we got an idea of what are the things that Google's Page Speed Insights will take into count to give page score, now in the present blog post we'll get to know what are the techniques we can use to improve the page score.
Getting Started with the IPython Notebook
IPython is a set of tools developed to make it easier for the programmers to work with Python and data. IPython provides extensions to the Python programming language that make working interactively convenient and efficient. IPython Notebook lets you write and execute code, analyze data in your web browser.
Python Arrow to Show Human Friendly Time
Arrow is a python library and command-line tool to genrerate, manipulate dates, times, timestamps.
use of arrow:
With the use of arrow, we can also create, manipulate, format and convert dates, times, and timestamps, convert timezones, generates time spans, ranges, floors and ceilings with a less code.
Configuring and Testing Load Balancer in AWS EC2
When You have an application that is serving Huge Customer Base, so will be your Traffic. Sometimes The Application stops responding. We can use load Balancer in cases like this which distribute the Traffic it receives between the multiple VPS running the same application. AWS Professional Services helps to scale your application as your business grows.
Customize and Embed Vimeo Videos using Python Requests
Using python requests and vimeo endpoints it becomes very easy and simple to upload our videos and customize them.
Vimeo Access token:
1. Create an account at vimeo, vimeo has different levels of account, so based on your requirement signup for suitable account.(This article assumes pro account)
2. After you log in, create an app and generate token based on your requirement like editing, uploading, view etc..
Creating Elastic Search Cluster (EC2, Cloud-AWS Plugin)
While handling Large amounts of data with elastic search, you may run out of server capacity or compute power, Forming an Elasticsearch cluster will reduce the load distribution. In Single, ElasticSearch Instance endpoint acts as Data Node + Master Node + Client Node.
Working with Python Collections Part 1
Python Collections - named tuple is to access by the names specified and deque is to append and pop the elements from both sides of queue are explained with real time examples in part 1 of collections series
Paginating S3 Objects using Boto3
When using Boto you can only List 1000 objects per request. So to obtain all the objects in the bucket. You can use s3 paginator. To use paginator you should first have a client instance