Skip to main content

Postman clear cache response

7 min read
Serhii Hrekov
Senior Software Engineer & System Architect specializing in Python, Web Systems, Cloud Infrastructure & Automation

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
Senior Software Engineer & System Architect specializing in Python, Web Systems, Cloud Infrastructure & Automation

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
Senior Software Engineer & System Architect specializing in Python, Web Systems, Cloud Infrastructure & Automation

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
Senior Software Engineer & System Architect specializing in Python, Web Systems, Cloud Infrastructure & Automation

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
Senior Software Engineer & System Architect specializing in Python, Web Systems, Cloud Infrastructure & Automation

Have you made changes in your repository only to realize git push fails because you are in a Detached HEAD state? This happens because when you run git checkout <commit-hash>, you are telling Git to look at a specific point in history, not a moving branch name.

In this state, any new commits you make are not part of any branch, making them very easy to lose. The solution is to create a new branch at that commit to save your work.

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

8 min read
Serhii Hrekov
Senior Software Engineer & System Architect specializing in Python, Web Systems, Cloud Infrastructure & Automation

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.

QR Codes in Python: The Complete Developer Guide to Generation and Decoding

9 min read
Serhii Hrekov
Senior Software Engineer & System Architect specializing in Python, Web Systems, Cloud Infrastructure & Automation

Quick Response (QR) codes are two-dimensional matrix barcodes widely used for encoding URLs, text, contact information, and authentication tokens. Integrating QR code generation and decoding into Python applications is straightforward using robust libraries like qrcode, pyzbar, and Pillow.

This guide details how to generate basic QR codes, apply custom styles and colors, embed brand logos safely, output print-ready vector formats (SVG), host large files like PDFs via encoded links, and decode QR code images (including NumPy video streams).

Create and use a private python library on github in your projects

7 min read
Serhii Hrekov
Senior Software Engineer & System Architect specializing in Python, Web Systems, Cloud Infrastructure & Automation

Creating a private Python library on GitHub and using it in your projects is a great way to manage internal code, share reusable components across teams, and protect proprietary intellectual property. This process involves setting up a private repository, configuring your local environment for authentication, and then installing the library using a dependency manager like pip or poetry [1].

Mock vs. Fake vs. Spy: The Key Differences

7 min read
Serhii Hrekov
Senior Software Engineer & System Architect specializing in Python, Web Systems, Cloud Infrastructure & Automation

While all are a form of test double-an object used to replace a real one during testing-their purpose and implementation differ significantly [1]. Understanding these differences is crucial for writing effective, maintainable tests.

Python Mocking: The Ultimate Guide from Basics to Advanced Test Double Patterns

7 min read
Serhii Hrekov
Senior Software Engineer & System Architect specializing in Python, Web Systems, Cloud Infrastructure & Automation

Unit tests must execute in complete isolation from external resources like databases, networks, and file systems. Python's built-in unittest.mock library and the pytest-mock plugin are the standard tools for creating test doubles, enabling you to inspect invocations, mock complex class initializers, verify function signatures, and control time.

This guide provides a comprehensive manual on Python mocking: foundational concepts, interface enforcement via spec/autospec, stateful simulations with side_effect, class constructor and instance method patching, Pytest mocker fixture workflows, asynchronous coroutines, and time freezing.

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