Skip to main content

3 posts tagged with "tutorial"

tutorial tag description

View All Tags

Generating Stylized QR Art with Stable Diffusion & ControlNet

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

Gone are the days of boring black-and-white squares! With the advent of advanced AI image generation models like Stable Diffusion, we can now create QR codes that are not only scannable but are also stunning works of art. This guide will walk you through the process of generating stylized QR codes that seamlessly blend into captivating images.

Building a URL Redirector in Python for Dynamic QR Codes

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

If you print 1,000 posters with a QR code and the website URL changes next week, a "Static" QR code becomes a pile of wasted paper. The solution is a Dynamic QR code.

Instead of encoding your final destination (like myshop.com/promo-january), you encode a "Short URL" that you control (like myqr.link/offer). When a user scans it, your server looks up where offer should go today and redirects them instantly.

Dataclass AttributeError Solutions

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

The AttributeError is one of the most common exceptions in Python, indicating an attempt to access or set a class attribute that simply doesn't exist. When it occurs within the context of a @dataclass, it often points to a misunderstanding of how the decorator automatically generates methods like __init__ and __setattr__.

Here is a breakdown of the most frequent AttributeError scenarios involving dataclasses and the high-level solutions to resolve them.