Winner's Dev Notes
Code, games, and the craft of building better software
Home
Contact Me
Archives
Search
Theme NexT works best with JavaScript enabled
Excellent , 267 posts in total , Keep on posting.╰(*°▽°*)╯
2026
Nov 20
Reject Host Bits in Python IPv4 CIDR Configuration
Nov 19
Share Python Timeout Budgets with time.monotonic_ns
Nov 18
Load Python Script Assets Independently of the Working Directory
Nov 17
Parse Key-Value Overrides with Python partition
Nov 16
Remove Literal Python Filename Suffixes with removesuffix
Nov 15
Compare Duplicate File Inventories with Python Counter
Nov 14
Avoid Shared Python Group Lists with Dictionary Comprehensions
Nov 13
Close Variable Python Input Files with contextlib.ExitStack
Nov 12
Reject Abbreviated Python CLI Options with argparse
Nov 11
Cache Pure Python Lookups with a Bounded lru_cache
Nov 10
Keep the Last N Python Records with a Bounded deque
Nov 09
Measure Adjacent Event Gaps with Python itertools.pairwise
Nov 08
Merge Sorted Python Log Streams with heapq.merge
Nov 07
Slice Sorted Python Events by Time with bisect_left
Nov 06
Await Back-to-Back Node.js Events with events.once
Nov 05
Count Consecutive Events with Python itertools.groupby
Nov 04
Check Imported Object Fields with Object.hasOwn
Nov 02
Validate Integer Query Parameters Without parseInt Truncation
Nov 01
Reject Malformed UTF-8 JSON Imports with TextDecoder
Oct 31
Avoid Stateful RegExp.test with Global and Sticky Flags
Oct 30
Reject Mismatched Python Iterables with zip strict
Oct 27
Sort JavaScript Leaderboards with Explicit ID Tie-Breakers
Oct 26
Deduplicate JavaScript Records by ID with Explicit Ordering
Oct 25
Write JSON Files Atomically in Python with os.replace
Oct 24
Run Python Subprocesses with Argument Lists, Checks, and Timeouts
Oct 23
Hash Large Files with SHA-256 in Python Using Bounded Reads
Oct 22
Reject Duplicate JSON Keys and Non-Finite Numbers in Python
Oct 21
Read UTF-8 CSV in Python with BOM and Header Validation
Oct 20
Validate Date-Only Strings Without JavaScript Date Rollover
Oct 19
Enforce JSON Request Byte Limits with TextEncoder
Oct 18
Build Query Strings with URLSearchParams Without Double Encoding
Oct 17
Preserve Large JSON IDs with Decimal Strings in JavaScript
Oct 16
Limit JavaScript Async Batches with a Worker Pool
Oct 15
Prevent Stale Fetch Results with AbortController and Request IDs
Aug 24
Reliable WebSocket Reconnection in Cocos Creator: Heartbeats, Backoff and App Resume
Jul 29
App Store Review Rejection Guide: Guideline 4.8, 4.3(a), 5.1.2(i) and ATT Fixes
Jul 02
Xcode Archive Build Number Not Updating: Fix CFBundleVersion
Jun 24
Fix Xcode Undefined Symbol swiftCompatibility51, 56 and Concurrency Errors
Jun 17
How to Install an Android AAB: Convert AAB to APKS or Universal APK with Bundletool
Jun 17
Cocos Creator iOS Hot Update Completes but Still Runs Old Code: How to Fix It
Apr 22
Cocos Creator iOS EditBox Shows an Extra Input Field Above the Keyboard: Fix
Apr 22
How to Show the iOS Status Bar in Cocos Creator: ViewController and Info.plist
Apr 21
Firebase FCM Push Notifications on iOS: APNs .p8 Key Setup Guide
Apr 20
Fix Cocos Creator libwebp.a Mach-O Member Not 8-Byte Aligned in Xcode
Apr 17
How to Find App Signing SHA-1 and SHA-256 in Google Play Console
Apr 16
Create an iOS Development Certificate: CSR, App ID, Device and Profile
Apr 16
How to Find an iPhone UDID in Finder for Device Registration
Mar 23
Xcode Stuck on ‘Copying Shared Cache Symbols’: Causes and Fixes
Mar 09
Cocos Creator Circular Mask Shader: Effect, Material and Fragment Clipping
Feb 11
Safari Remote Debugging for iPhone: Web Inspector and Develop Menu
2025
Nov 06
Detect iOS and iPadOS in Frontend Code: User Agent, MacIntel and Touch
Oct 09
Check Android APK 16 KB Page Size Support: Native Libraries and ELF Alignment
Sep 19
Analyze Cocos Creator Web Resource Loading with DevTools and Performance API
Sep 18
Deploy a TRC-20 Token on TRON Nile: Compile, Publish and Verify
Sep 12
Map Cocos Creator Production Errors to TypeScript with Source Maps
Sep 10
Add Android Calendar Events and Reminders with CalendarContract
Jul 30
Fix Google Sign-In Error 12500 and ApiException 12500 on Android
Jun 20
Cocos Creator Web Global Error Handling: error, unhandledrejection and Resource Failures
Jun 11
Fix Cocos Creator TypeError: IX.atlasName Is Null in Production
May 30
Cocos Creator Web Local Images: File Input, Base64 and SpriteFrame
Apr 30
Show the Android Status Bar in Cocos Creator: Remove SYSTEM_UI_FLAG_FULLSCREEN
Apr 11
Cocos Creator Localization: Rich Text and Named Parameters
Apr 09
Google Web Sign-In on Android: External Browser OAuth and App Links
Feb 27
Fix Cocos Creator Sampler Binding cc_spriteTexture Is Not Bounded in Xcode
Feb 22
Fix Cocos Creator run cmake failed and xcodebuild Not Found on iOS
Feb 13
Dynamically Load a PWA Manifest with JavaScript and a Go Server
Feb 13
Compare Git Branches with Beyond Compare: Difftool Setup and Commands
Feb 07
PWA Custom Install Button: beforeinstallprompt, iOS Guide and Standalone View
Jan 17
Export Cocos Creator Web as a PWA with Manifest and Service Worker
Jan 11
Cocos Creator PageView Indicator Animation with Tween and UITransform
Jan 11
Android Image Upload Compression: Bitmap Size, JPEG Quality and File Limit
Jan 05
Fix Android FCM Registration Token Failed and SERVICE_NOT_AVAILABLE Crashes
2024
Dec 23
Fix Cocos Creator Android Visual Static with Camera Clear Flags
Nov 26
TypeScript Object Assignment and Equality: References, Shallow and Deep Copy
Nov 17
How to Cancel a ChatGPT Plus Subscription and Stop Auto-Renewal
Nov 05
Share and Open a Telegram Mini App with Chat Links and Direct Short Links
Sep 24
Cocos Creator Web Local Image Upload: Select, Crop, Compress and Display
Sep 09
Cocos Creator Six-Digit Verification Dialog: Typing, Paste and Delete
Aug 17
Cocos Creator Daily First Login Detection with localStorage
Aug 17
Telegram Mini App Mobile vs Desktop Detection with User Agent
Jul 23
Expand a Telegram Mini App on Open with WebApp.ready and expand
Jul 16
Find Images Larger Than 500 KB Recursively with python
Jul 16
Edit HTML with python Beautiful Soup: Insert Scripts, Styles and Markup
Jul 16
Fix Stale Telegram Web App Assets with Cocos Creator MD5 Cache
Jul 12
Forward Telegram Bot Messages to a Server with grammY, Deno and fetch
Jul 10
Telegram Mini App Close Confirmation with enableClosingConfirmation
Jul 05
Telegram Bot Menu Button: Open a Web App or Show Commands
Jul 04
Cocos Creator Telegram Payments: Send an Invoice with Bot API
Jul 03
Find Unreferenced Cocos Creator Images with UUID Checks and Node.js
Jul 02
Telegram Bot Payments with grammY: Invoice, Pre-Checkout and Success
Jul 01
Get Telegram User Profiles with grammY: ID, Status and Photo URL
Jun 28
Telegram Mini App Bot Setup: BotFather, grammY, Deno and Inline Buttons
Jun 17
Cocos Creator Android Clipboard with TypeScript and Java Native Bridge
Jun 14
Fix Cocos Creator Font Size Too Big for Texture Atlas Label Warning
Jun 10
Add a Photo Gallery to Hexo NexT with Standalone HTML and iframe
May 30
Chrome Remote Debugging for Android: USB and chrome://inspect
May 25
Generate QR Codes in Cocos Creator with TypeScript and Graphics
May 22
Cocos Creator Radial Progress Bar with ProgressBar and Sprite Fill
May 17
Fix Facebook Login Invalid Key Hash with Google Play App Signing
May 17
Fix Facebook Login App Not Active While the App Is in Development Mode
May 17
Fix Android Facebook Login RuntimeException: Failure Delivering Result
May 16
Facebook Android Key Hash: Convert Signing SHA-1 to Base64
May 14
Windows OpenSSL Not Recognized: Install, Configure PATH and Verify
May 07
Cocos Creator Spine Pause, Resume and Restart with sp.Skeleton
Apr 25
Fix Android Entry Name classes.dex Collided by Cleaning Build Outputs
Mar 07
Cocos Creator 3.7 Shine Shader: Material, Light Band and TypeScript Animation
Feb 22
Cocos Creator Native JavaScript Debugging: Build Mode, Port and Android
Feb 22
Fix Android Studio Build Type Isn't Debuggable by Selecting a Debug Variant
Jan 31
Fix Cocos Creator Cannot Read Properties of Null (reading getGFXTexture)
Jan 24
Cocos Creator Label Size Not Updated: updateRenderData and Next Frame
Jan 21
Fix Cocos Creator Android checkReleaseDuplicateClasses with AndroidX and Jetifier
Jan 17
timeRecords Is at Its Maximum Size 64: Meaning and Test Guidance
Jan 16
Cocos Creator Background Events: EVENT_HIDE, EVENT_SHOW and Cleanup
Jan 16
Fix This App Was Built for an Older Version of Android by Updating targetSdkVersion
Jan 11
Fix OpenAI “We Were Unable to Authenticate Your Payment Method”
Jan 04
Cocos Creator Gradient Progress Bar with FILLED Sprite Configuration
2023
Dec 26
Fix Cocos Creator VS Code “Could Not Read Source Map” Chrome Debug Error
Dec 19
Cocos Creator 3.7.2 Particles: Create, Retexture, Export and Switch
Dec 19
Convert Markdown to Word DOCX with Pandoc or pypandoc
Dec 16
WeChat-Style Conversation Generator for Mockups and Demo Screenshots
Dec 05
Troubleshoot HTTP 404 Not Found: URL, Routes, Paths and Server Config
Dec 05
TypeScript Email Format Validation: Practical Regex and Limitations
Dec 04
Cocos Creator EditBox Events: Begin, Text Changed and Editing Ended
Dec 02
Why Cocos Creator Texture Memory Exceeds PNG or JPG File Size
Nov 29
Format a Timestamp in TypeScript as YYYY-MM-DD HH:mm:ss
Nov 24
Open Legacy IE-Only Websites with Microsoft Edge IE Mode
Nov 07
Batch Rename Images with python: Copy JPG and PNG Files with a Prefix
Oct 16
Cocos Creator 3.7 Playing-Card Perspective Shader with Vertex Offsets
Oct 08
Draw a Strawberry Bear with python Turtle: Canvas, Shapes and Layers
Oct 08
Animated Heart with HTML and CSS: Pseudo-Elements and Pulse Animation
Sep 24
HTML Relationship Timer Page with JavaScript and Background Animation
Sep 22
Get Updated Cocos Creator Label Size with UITransform and Next Frame
Sep 18
Debug Cocos Creator Web with VS Code, Chrome and launch.json
Sep 12
Cocos Creator Circular Mask with Graphics and TypeScript
Sep 12
Cocos Creator assetManager.loadRemote: Images, Audio, Text and Device Files
Sep 12
Cocos Creator setSiblingIndex: Reorder Sibling Nodes and Rendering
Sep 04
Shenzhen Zhongren Consulting: ISO Systems and Management Services
Aug 25
Cocos Creator Double-Click Detection with TOUCH_END Timing
Aug 19
Add Algolia Search to Hexo: Index Setup, API Keys and Deployment
Aug 14
Convert Excel to JSON with Node.js: node-xlsx and File Output
Jul 25
Cocos Creator Dynamic PageView: addPage, removePage and Change Events
Jul 15
Cocos Creator Single-Sprite Card Flip with Y-Axis Tween and Frame Swap
Jul 12
Cocos Creator Error Launching App: Version, Cache and Reinstall Checks
Jul 11
Deploy Hexo to Alibaba Cloud with Git Hooks, Nginx and HTTPS
Jul 07
Fix Cocos Creator PageView and ScrollView Touch Conflicts by Gesture Direction
Jun 22
Remove Decimal Trailing Zeros in TypeScript Without Losing String Precision
May 16
Git remote origin already exists: Inspect, Update or Replace the Remote
May 16
Cocos Creator Shared WebSocket: Connection Service and Message Subscribers
May 16
TypeScript String Formatting with {0} and {1} Indexed Placeholders
May 02
Safely Free Windows Disk Space: Temporary Files, Storage Sense and Cleanup
Apr 22
Cocos Creator Broadcast Queue with WebSocket and Tween Animation
Apr 20
Cocos Creator Timer this Binding: setTimeout, setInterval, bind and Arrows
Apr 19
Cocos Creator WebSocket: Connect, Send and Parse JSON or Binary Data
Apr 17
Cocos Creator Event Propagation: Capture, Bubbling and BlockInputEvents
Apr 17
Cocos Creator PageView Auto Paging with schedule and scrollToPage
Apr 13
Cocos Creator Chrome CORS Debugging with Server Headers and Isolated Profile
Apr 13
Change SpriteFrame Dynamically in Cocos Creator with resources.load
Apr 12
Hide Cocos Creator .meta Files in VS Code with files.exclude
Apr 12
Fix Cocos Creator python Build Script Launch Errors
Apr 10
Fix Look for an App in Microsoft Store on Windows 11 for a Trusted EXE
Apr 10
Cocos Creator Multiple Sprite Touch Events: Identify and Unbind Nodes
Mar 21
Cocos2d-x Lua Text Underline: Draw a Reusable DrawNode Segment
Mar 21
Count Lua Table Fields: Length Operator, pairs and table.nums
Mar 21
Get File Size in Cocos2d-x Lua with io.open, seek and Error Handling
Mar 21
Cocos2d-x Lua Degrees and Radians: Formulas and Helper Functions
Mar 21
Split Strings in Cocos2d-x Lua with Single or Multi-Character Delimiters
Feb 28
Open Facebook from Cocos2d-x Lua with Android Deep Link and Web Fallback
Feb 25
Java Conditional Statements: if, else if, Ternary and switch
Feb 25
Java Expressions, Statements and Blocks: Operators, Logic and Scope
Feb 25
Java Operators: Arithmetic, Comparison, Logic, Bits and Precedence
Feb 25
Java Primitive Data Types: Ranges, Defaults, Literals and Examples
Feb 23
Java Variables: Declaration, Scope, Fields and Constants
Feb 22
Java Syntax Basics: Classes, main, Identifiers, Comments and Keywords
Feb 22
Java System.out.print vs println: Line Breaks, Formatting and Examples
Feb 19
Fix python and Tkinter Version Conflicts on macOS with Miniconda
Feb 11
Valentine's Day HTML Message Page with a JavaScript Typing Effect
Feb 04
HTML Canvas Lantern Festival Greeting Animation with Custom Text
Jan 21
Draw a Rabbit with python Turtle: Shapes, Fill and Layered Composition
Jan 15
Cocos2d-x Lua tolua API: cast, type and isnull Explained
2022
Dec 31
python Pygame Fireworks Animation: Particles, Gravity, Trails and Bursts
Dec 31
macOS App Is Damaged: Verify Source, Signature, Notarization and Quarantine
Dec 30
Run Legacy python 2.7 on macOS Safely with an Isolated Environment
Dec 23
Cocos2d-x Texture Source Analysis: CCTexture2D, PVR and TextureCache
Dec 09
Create a US Apple Account or Change App Store Country and Region
Nov 21
Cocos2d-x Lua Sprite vs ImageView: Image Replacement, Atlases and Scale9
Nov 09
Install Android NDK on macOS with Android Studio or sdkmanager
Nov 06
Nginx HTTP to HTTPS Redirect: 301 Server Blocks and TLS Setup
Nov 03
Build a Legacy quick-Cocos2d-x APK: NDK, Native Libraries and Ant
Nov 01
Debug quick-Cocos2d-x Lua in VS Code with launch.json and LuaDebug
Oct 31
Fix Missing DLL Errors on Windows: App Repair, Runtimes and System Files
Oct 29
Style Hexo Matery Categories with EJS Cards and Notebook CSS Animation
Oct 25
Troubleshooting “Password Authentication Failed” over SSH
Oct 22
Customize Hexo NexT Archive Pages with post-collapse and CSS
Oct 22
Add a jVectorMap Travel Footprint Map to Hexo NexT
Oct 19
C Programming Exercises, Part 2: Fibonacci, Matrices and Algorithms
Oct 15
Install lua-cjson with LuaRocks or Source and Verify JSON Encoding
Oct 15
python Pygame Tetris: Grid, Rotation, Collision Detection and Line Clears
Oct 13
Draw a Brown Bear with python Turtle: Shapes, Fill and Layering
Apr 08
Cocos2d-x Lua Nine-Slice Scaling: Resize UI with Scale9Sprite
Mar 29
Send a One-Time WeChat Reminder with python and itchat
Feb 22
python Tkinter Workday Countdown: Live Timer, Reminder and Scheduling
2021
Nov 11
Cocos2d-x Lua ProgressTimer: Build a Radial Skill Cooldown
Nov 06
Cocos2d-x Lua Timers with scheduleGlobal, Callbacks and Cancellation
Aug 31
Cocos2d-x Lua Render Order: setLocalZOrder and Sibling Nodes
Aug 06
Truncating Long UTF-8 Label Text with an Ellipsis in Lua
Jun 19
Cocos2d-x Lua Label Wrapping with Bounded Width and UTF-8 Fallback
Jun 09
Fix Xcode Argument Value 10880 Is Outside the Valid Range
2020
Jul 23
Lua Threads and Independent States: lua_newthread, resume and yield
Jul 22
Xcode Paths and Debugging Tools: DerivedData, Simulators, Leaks and Zombies
Jul 22
Lua C Module Resource Management: Full Userdata, __gc and Safe Close
Jul 16
Lua C API Custom Type: Build a BitArray with Userdata and Metatables
Jul 09
Lua C API Function Techniques: Arrays, Strings, Registry and Upvalues
Jun 28
Calling C from Lua: Functions, Registration, and Modules
Jun 26
Lua C API Overview: State, Stack, Calls, Errors and Memory
Jun 08
Cocos2d-x Lua Keyboard Events: Press, Release and Listener Cleanup
Jun 07
Lua Coroutine Cooperative Multitasking: Schedulers and Async I/O
May 26
Lua Debug Library Reflection: getinfo, Locals, Hooks and Sandboxing
May 17
Lua Coroutines: create, resume, yield, States and Iterators
May 15
Lua Garbage Collection: Weak Tables, Caches, Finalizers and Control
May 10
Lua Environments Explained: _G, _ENV, Dynamic Globals and Modules
Apr 27
Shuffle a Lua Array with Fisher-Yates: In-Place and Copy Variants
Apr 24
Object-Oriented Lua: Classes, self, Inheritance and Private State
Apr 24
Lua Metatables and Metamethods: __index, Operators and Proxies
Apr 23
Lua import vs require: Standard Module Loading and Framework Helpers
Apr 23
python Pillow Pencil Sketch: Grayscale, Invert, Blur and Color Dodge
Apr 22
Lua Iterators and Generic for: Closures, Stateless Iteration and Order
Apr 21
Lua Modules and Packages: require, Paths, Searchers and Submodules
Apr 20
Lua Error Handling with loadfile, pcall, xpcall, error and assert
Apr 20
Raspberry Pi WireGuard VPN Server: Keys, Forwarding, Firewall and Clients
Apr 18
Lua Data Files and Serialization: Tables, Cycles and Safe Loading
Apr 18
Lua Data Structures: Arrays, Matrices, Lists, Queues, Sets and Graphs
Apr 18
Lua Bits and Bytes: Bitwise Operators, string.pack and unpack
Apr 17
Lua Date and Time: os.time, os.date, UTC and Calendar Arithmetic
Apr 15
Lua Pattern Matching: find, match, gmatch, gsub and Captures
Apr 14
Lua Closures: Lexical Scope, Captured Variables and Higher-Order Functions
Apr 13
Lua Control Structures: if, while, repeat, for, break and goto
Apr 13
Lua Local Variables and Scope: Blocks, Shadowing and Lifetime
Apr 12
Lua File I/O: io.open, read, write, Streams and System Commands
Apr 10
Lua Functions: Parameters, Multiple Returns, Varargs and Tail Calls
Apr 10
Lua Tables: Creation, Indexing, Arrays, Iteration and Copying
Apr 08
Lua Strings: Literals, Concatenation, Bytes and UTF-8
Apr 06
Lua Numbers: Integers, Floats, Arithmetic, Randomness and Precision
Apr 01
Getting Started with Lua: Scripts, Syntax, Values, Functions and Tables
Mar 27
Lua Shallow vs Deep Copy: Cycles, Shared References and Metatables
2019
Nov 15
Safely Sync a Local Git Branch to Remote with fetch, reset and Recovery
Mar 17
Lua Dot vs Colon Syntax: self, Method Definitions and Calls
Mar 16
Fix a pip Startup Traceback: Check python and Reinstall pip Safely
Mar 16
Fix pip install SyntaxError invalid syntax in the python Shell
Mar 08
Cocos2d-x Lua Frame Animation: Sprite Sheets and Studio Timelines
Jan 26
Cocos2d-x Lua Physics Collisions: Bodies, Masks and Contact Listeners
Jan 22
Cocos2d-x Lua Virtual Joystick: Touch Direction, Radius and Movement
2018
Dec 21
Cocos2d-x Lua Hot Updates: Manifests, Verification, Search Paths and Recovery
Dec 13
Cocos2d-x 3.17 Lua CSB Loading: Controls, Timelines and ViewBase
Dec 13
Cocos2d-x Lua UI Containers: ListView, ScrollView, TableView and PageView
Dec 06
Cocos2d-x 3.17 Lua Game Development: Screens, Sprites, UI and Touch
Aug 20
C Programming Exercises, Part 1: Strings, Arrays, Dates and Number Theory
Aug 08
Telecommunications Engineering Ethics: Reliability, Privacy and Public Interest
May 21
Create a Windows Wi-Fi Hotspot: Internet Sharing and Troubleshooting
2017
Oct 07
Telecom Internship Report: C&C08 Switching and Optical Transmission
Jun 15
STM32 Sensor Data Glove: Flex Sensors, MPU6050 and Bluetooth
Jun 15
HC-05 Master-Slave Communication: AT Setup, Pairing and UART Test
May 15
MATLAB Speech Denoising with a FLATTOPWIN FIR Filter and Spectrum Analysis
May 07
Arduino Mega 2560 Schematic Explained: Power, USB, MCU, Clock and Reset
May 07
STM32 Clock Tree: HSI, HSE, LSI, LSE, PLL and Bus Prescalers
Apr 17
STM32F407 GPIO Configuration: Modes, Pulls, Alternate Functions and Registers
Jan 13
MATLAB AM Modulation Simulation: Envelope, Coherent Demodulation and Noise
2016
Nov 11
VHDL Vending Machine Controller: FSM, Credit, Change and Simulation
1