How To Whitelist Better Uptime IPs in UFW
Learn how to whitelist Better Uptime IPs on UFW and prevent any false incident alerting.
How To Whitelist Better Uptime IPs in Digital Ocean
Learn how to whitelist Better Uptime IPs on Digital Ocean and prevent any false incident alerting.
How To Whitelist Better Uptime IPs and User Agent in Cloudflare
Learn how to whitelist Better Uptime IPs on Cloudflare and prevent any false incident alerting.
How To Write Logs To A File With Python?
If you are new to logging in Python, please feel free to start with our Introduction to Python logging to get started smoothly. Otherwise, here is how to write logs to a file in Python: Using Basic...
How To Use Logging In Multiple Modules?
It's recommended to have a logger defined in each module like this: import logging logger = logging.getLogger(name) Then in your main program, do the following: import logging.config logging.config...
How To Log Uncaught Exceptions In Python?
For this, you can use the sys.excepthook that allows us to attach a handler for any unhandled exception: Creating a logger logger = logging.getLogger(name) logging.basicConfig(filename='example.log...
How to Log to Stdout with Python?
If you are new to logging in Python, please feel free to start with our Introduction to Python logging to get started smoothly. Otherwise, here is how to log to Stdout with Python: Using Basic Conf...
How to log data as JSON with Python
How to Log Data As JSON With Python? The simplest way is to use a custom module.
How To Log All Requests From The Python Request Library?
If you are new to logging in Python, please feel free to start with our Introduction to Python logging to get started smoothly. Otherwise, here is how to log all requests from the python request li...
How To Disable Logging While Running Django Unit Tests?
By Disabling Tests At The Start Of The Application Suppose you want to do it the quick way. In that case, the following line of code will disable any log messages less severe or equal to CRITICAL: ...
How To Disable Logging From The Python Request Library?
You can change the log level of the logger taking care of these messages. Setting the level to WARNING will remove the request messages and keep warnings and errors: import logging logging.getLogge...
How To Color Python Logging Output?
If you are new to logging in Python, please feel free to start with our Introduction to Python logging to get started smoothly. Otherwise, here is how to color python logging output: Without Extern...
User authentication in Laravel
Many web applications provide a way for their users to authenticate with the application and "login". Implementing this feature in web applications can be a complex and potentially risky endeavor. ...
How to populate databases in Laravel
Laravel includes the ability to seed your database with data using seed classes. All seed classes are stored in the database/seeders directory. By default, a DatabaseSeeder class is defined for you...
What is the difference between Factory and Seeder in Laravel?
Both Factory and Seeder are used to generate testing data for your application. But there are some differences: Factory By using factories you can easily create test data for your Laravel applicati...
What is the difference between collection and query builder in Laravel?
Query Builder Builder is a layer of abstraction between your application and the database. Typically it's used to provide a common API for you to build platform-agnostic database queries. $users = ...
How to log data in JSON in Laravel
Logging data in JSON format in Laravel can be done using the built-in Monolog logging library that Laravel uses under the hood. Here are the steps to configure Laravel to log data in JSON format: O...
How do I profile a Python script?
By default, Python contains a profiler called cProfile. It not only gives the total running time, but also times each function separately, and tells you how many times each function was called, mak...
How can I make a Python dictionary from separate lists of keys and values?
You can create a Python dictionary from two separate lists, where the first list contains keys and the second list contains values using the zip function. Here is an example of this in action: List...
How can I import a Python module dynamically given the full path?
Importing programmatically To programmatically import a module, use importlib.import_module(). import importlib itertools = importlib.import_module('itertools') Checking if a module can be imported...
We are hiring.
Software is our way of making the world a tiny bit better. We build tools for the makers of tomorrow.
Help us in making the internet more reliable.

Help us with developer education and get paid.
