python

Compatibility Testing for PC Games: A Full Guide

Compatibility Testing for PC Games: A Full Guide

What is Compatibility Testing of PC Games? Compatibility testing, at its core, is a type of non-functional testing conducted to ensure that your apps or games are capable of running on different environments. This includes but is not limited to different hardware configurations & operating systems, different types of screen monitors, as well as various software applications, different network environments, different terminals, different languages, and so on. When it comes to the compatibility testing of PC games, its scope usually narrows down to the following 3 types: Hardware Compatibility: This involves testing the game on different hardware configurations. It includes…
Read More
Creating relationships using SQLAlchemy in Python

Creating relationships using SQLAlchemy in Python

SQLAlchemy can help with many tasks required in Python when trying to create SQL tables one of those tasks is creating relationships. Creating relationships with SQLAlchemy is made much easier than using just SQL. It streamlines the process with easier to follow syntax and less steps. SQLAlchemy is imported into Python and all of the short cut syntax can be used. from flask_sqlalchemy import SQLAlchemy Enter fullscreen mode Exit fullscreen mode To create a relationship you must start by creating a table. SQLAlchemy makes this easy as well by shorting the syntax to: class Owner(db.Model, SerializerMixin): __tablename__ = "owners" id…
Read More
The Quest for Performance Part II : Perl vs Python

The Quest for Performance Part II : Perl vs Python

Having run a toy performance example, we will now digress somewhat and contrast the performance against a few Python implementations. First let's set up the stage for the calculations, and provide commandline capabilities to the Python script. import argparse import time import math import numpy as np import os from numba import njit from joblib import Parallel, delayed parser = argparse.ArgumentParser() parser.add_argument("--workers", type=int, default=8) parser.add_argument("--arraysize", type=int, default=100_000_000) args = parser.parse_args() # Set the number of threads to 1 for different libraries print("=" * 80) print( f"nStarting the benchmark for {args.arraysize} elements " f"using {args.workers} threads/workersn" ) # Generate the data…
Read More
10 Livros de Python que vale à pena você ler

10 Livros de Python que vale à pena você ler

Livros dignos de leitura e para ter na prateleira da sua coleção. Python é uma linguagem de programação dedicada para iniciantes, no entanto, também é muito utilizada por diversos segmentos que requer conhecimentos avançados. Nesse artigo conheceremos 10 Livros de Python que vale à pena você ler !!! Os leitores de Introdução à Computação Usando Python: um Foco no Desenvolvimento de Aplicações vão perceber que os conceitos serão apresentados gradativamente para que haja uma introdução inclusiva à ciência da computação, e críticos da área definem a metodologia do livro-texto como a utilização da “ferramenta certa para o trabalho no momento…
Read More
Week 2 – Creating Simple Blog App

Week 2 – Creating Simple Blog App

Introduction Welcome back to my journey of building a blog app using Django without using ChatGPT. This week, I focused on implementing key features to enhance my blog app. I added a functionality that allow users to create posts, comment on posts, and like other user's posts. Here's a detailed breakdown of what I did: Create Django posts app python manage.py startapp posts Enter fullscreen mode Exit fullscreen mode Designing the Post Model I started by designing the Post model. This model will store the blog posts created by users: from django.db import models from django.contrib.auth.models import User from django.utils…
Read More
How to Create a Simple Markdown to HTML Converter in Python

How to Create a Simple Markdown to HTML Converter in Python

Markdown is a popular format for writing content that’s easy to read and write, but converting it to HTML can be a hassle. In this post, I’ll show you how to create a simple Markdown to HTML converter using Python. This tool will allow you to convert your Markdown files into beautifully formatted HTML documents with just a few commands. What You’ll Need • Python: Make sure Python is installed on your system. • Markdown Library: We’ll use the markdown library to handle the conversion. Step-by-Step Guide Set Up Your Project Create a new directory for your project and navigate…
Read More
Monitor the Performance of your Python FastAPI App with AppSignal

Monitor the Performance of your Python FastAPI App with AppSignal

While building an app with FastAPI can be reasonably straightforward, deploying and operating it might be more challenging. The whole user experience can be ruined by unexpected errors, slow responses, or even worse — downtime. AppSignal is a great tool of choice for efficiently tracking your FastAPI app's performance.It allows you to easily monitor average/95th percentile/90th percentile response times, error rates, throughput, and much more.Useful charts are available out of the box. Let's see it in action! What Can You Do with Performance Monitoring? With performance monitoring, we can track app response times, throughput, error rates, CPU consumption, memory usage,…
Read More
How to use razorpay api and integrate payment gateway

How to use razorpay api and integrate payment gateway

Introduction Razorpay is a leading payment processor in India that provides end-to-end solutions for businesses and individuals. Razorpay offers a comprehensive suite of payment solutions, from payment gateway services to processing transactions and settling funds.Some of them we will be discussing here in this article. We will be using python code here but it can be replicated in other language easily because we are not using any SDK here.If you need SDK examples then let me know in the comment. Example code for razorpay api hereAPI docs can be found hereTest card details - here Step 1: Sign Up for…
Read More
Defining tasks, brokers, workers, and backends in Celery

Defining tasks, brokers, workers, and backends in Celery

Celery can be daunting to learn. While its documentation is comprehensive, it has a tendency to skip the basics. This post will define four of the main concepts in Celery, discuss the relationship between Celery and Kombu, and use a few code examples to illustrate how Celery might be useful in real applications. The examples will use the Django web framework and its @shared_task decorator, but the concepts are also applicable to Flask, FastAPI, and others. Tasks, Brokers, Workers, and Backends You'll be hard pressed to find a place on the current Celery documentation that clearly spells out what it…
Read More
Modernizing Bootstrap in a C# .NET Codebase: A Python-Powered Migration from 3 to 5

Modernizing Bootstrap in a C# .NET Codebase: A Python-Powered Migration from 3 to 5

Introduction As a developer, I recently found myself faced with an exciting challenge: modernizing a legacy C# .NET codebase that was still using Bootstrap 3. The goal was clear - bring the project up to speed with the latest Bootstrap 5. However, I quickly realized that making such a significant leap could be risky and time-consuming. That's when I decided to take a phased approach: First, migrate from Bootstrap 3 to Bootstrap 4 Then, once stable, make the jump from Bootstrap 4 to Bootstrap 5 This strategy would allow for a more manageable transition, easier debugging, and a smoother overall…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.