Skip to main content

Postman clear cache response

· 7 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

While Postman doesn't have a single "Clear Cache" button that directly affects API results (as it doesn't cache external API responses), the core issue often lies in two areas that mimic caching: DNS resolution and request state persistence.

Check history of specific line in vscode

· 4 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

You can check the history of a specific line in VS Code using the built-in Git Blame feature or the Timeline view. For a much more powerful experience, the free GitLens extension is highly recommended.

How to squash commits

· 6 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Squashing commits is a common Git operation that combines multiple commits into a single, cleaner commit. This is crucial for keeping your branch history tidy before merging into a main branch (like main or master), making the project history easier to read and revert [1].

The primary tool for squashing commits is interactive rebase (git rebase -i).

Google Cloud Workstations: Best Use Cases for Enterprise Development

· 5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Google Cloud Workstations, a fully managed service that provides secure, scalable, and customizable development environments in the cloud.

The best use cases for Google Cloud Workstations center around security, compliance, developer productivity, and managing complex or resource-intensive projects.

The Detached HEAD State: Why Git Won't Push and How to Fix It

· 6 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

This situation is known as being in a Detached HEAD state. It happens because when you use git checkout <commit-hash>, you're telling Git to look at that specific point in history, not a moving branch name.

The solution is to create a new branch at that commit before pushing.

SQL Query Speed Secrets: A Performance Comparison Table and Optimization Guide

· 8 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

There is no single "fastest" SQL query, as query speed is highly contextual and depends on factors like data volume, indexing, and the database's execution plan. Instead of a simple table comparing syntax, the focus must be on query optimization techniques that consistently produce faster results [1].

This article presents a comparison of common SQL constructs and techniques, showing which ones are generally more efficient under specific conditions.

Generate QR code using a URL link

· 5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Generating a QR code for a PDF file is not a matter of embedding the entire file's data into the QR code. QR codes have a strict data limit (typically up to about 4,000 characters), which is far too small for most PDF documents 1.

The correct, industry-standard approach is to host the PDF online and encode the resulting direct URL into the QR code. When a user scans the code, their device opens the URL, which automatically downloads or displays the PDF.

Here is the guide for generating the QR code using a URL link.

QR code reader in Python

· 5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Python QR code reader from image or How to decode a QR-code image in python?

Decoding a QR code from an image in Python is primarily achieved using the pyzbar library, which reads various bar codes and QR codes 1, 2.

Create QR code generator with logo

· 6 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

How to create QR code generator with logo with Python

Creating a QR code generator with logo in Python is best done using the qrcode library, specifically its advanced image capabilities, combined with Pillow (PIL) for image handling. This guide provides two methods: a simple, modern approach and a manual, detailed approach.

QR code generator in Python

· 8 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Creating a QR code generator in Python is remarkably straightforward, thanks to robust, community-maintained libraries. The most popular and simplest choice is the qrcode library. This article will focus on using this library to generate, customize, and save QR codes with minimal code.

Since there are multiple excellent libraries available for QR code generation in Python, I propose we focus this article on the simple and popular qrcode library, and then follow up with another article on the modern, standard-compliant segno library for advanced use cases (MicroQR codes, superior vector output, etc.).

Looking for more content?
Hrekov Blog contains 240 articles. Browse the blog archive or Explore the full timeline.