Python — Yield, Iterator and Generator Introduction A tutorial to understand the concepts of yield, iterator, and generator. Python Development
Django-Sonar: The Essential Debugging Tool for Django Django-Sonar is becoming a pivotal tool for debugging and introspection tailored for Django applications, inspired by the Laravel Telescope’s functionality. It aims to address the gap felt by developers transitioning from Laravel to Django, missing the robust debugging capabilities Laravel Telescope offered. Django Development
Understanding Django ORM Foreign Key Deletion Constraints One essential feature of Django’s ORM is the ability to define relationships between models using Foreign Keys. While Foreign Keys facilitate data integrity and consistency, it’s crucial to understand and manage the deletion of related objects to avoid unintended consequences. In this article, we’ll explore Django ORM Foreign Key deletion constraints and how they impact your database. Django Development
Ultimate CSS Selector Cheatsheet CSS Basic Selectors Name CSS Description Results Universal Selector * Select all elements Type Selector div Select elements of that typeSelect div elements Class Selector .c Select elements with that classSelect elements with the c class ID Selector #c Select elements with that idSelect elements with the c id CSS Combination Selectors Name CSS Description Results And Selector div.c Select elements that match all the selector combinations Descendant Selector div a Select elements that are descendants of the first element Direct Child div > a Select elements that are direct children of the first element. Development
A Gentle Visual Intro to Data Analysis in Python Using Pandas If you’re planning to learn data analysis, machine learning, or data science tools in python, you’re most likely going to be using the wonderful pandas library. Pandas is an open source library for data manipulation and analysis in python. Python Development
NumPy Typecodes Cheatsheet If you've used NumPy long enough, you've most probably run into those incomprehensible type abbreviations and were supposedly most annoyed by them. Gradually NumPy replaces them with something more readable, but internally they are still present, and they frequently leak out here and there. Python Development
Django: Top 5 Class Based Views Class Based Views in Django are an incredible tool that reduce boilerplate code and help me get right into the business logic of my apps. This is why for all my Django projects, I rely exclusively on CBVs for all my views. In this article, I will list out the top 5 CBVs that I use the most often in my Django projects, what they do, and how to make the best use of them. Django Development
Django Commands Cheat Sheet Django, a high-level Python web framework, provides a set of management commands that help you perform various tasks during the development and management of a Django project. Here’s a comprehensive list of Django management commands along with brief descriptions of their features: Django Development
Mastering Asynchronous Programming in Python: A Comprehensive Guide This comprehensive guide is designed to unravel the complexities of asynchronous programming in Python. Aimed at both beginners and seasoned programmers, it seeks to provide a thorough understanding of the asynchronous programming model and its practical applications in Python. Python Development
Preloading responsive images This article gives me an opportunity to discuss two of my favorite things: responsive images and preload. As someone who was heavily involved in developing both of those features, I'm super excited to see them working together! Development
Python Dictionaries on Steroids with Python-benedict Python-benedict is a powerful Python library that extends the capabilities of Python's built-in dictionary (or dict) class. The library enables you to easily access, search, and modify nested values, manipulate and transform data, and convert various formats to and from dictionaries. As the dictionary is one of the most commonly used data structures in Python, this library could be a potential boost to productivity. Python Development
Bash Parameter Substitution Table 1: Bash Parameter Substitution Variable Description ${parameter:-defaultValue} Get default shell variables value ${parameter:=defaultValue} Set default shell variables value ${parameter:?"Error Message"} Display an error message if parameter is not set ${#var} Find the length of the string ${var%pattern} Remove from shortest rear (end) pattern ${var%%pattern} Remove from longest rear (end) pattern ${var:num1:num2} Substring ${var#pattern} Remove from shortest front pattern ${var##pattern} Remove from longest front pattern ${var/pattern/string} Find and replace (only replace first occurrence) ${var//pattern/string} Find and replace all occurrences ${! Linux Bash Development