Blog

Page 146 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for Swift: print() vs println() vs NSLog()
debugging

Swift: print() vs println() vs NSLog()

Published on September 2, 2023

# Swift: print() vs println() vs NSLog() So you're new to Swift and wondering what's the deal with these three printing functions: `print()`, `println()`, and `NSLog()`.πŸ’­ Let's break it down!πŸ” ## `print()` The `print()` function is a built-in functio

Cover Image for How to detect if it is an AJAX request in WordPress?
ajax

How to detect if it is an AJAX request in WordPress?

Published on September 2, 2023

πŸ‘‹ Hey there, techies! πŸ’» Are you struggling with detecting AJAX requests in your WordPress website? πŸ€” Don't worry, I've got you covered! In this blog post, I'll show you a simple way to detect if an AJAX request is happening in WordPress. πŸŽ‰ So, let's

Cover Image for Why are emoji characters like 👩‍👩‍👧‍👦 treated so strangely in Swift strings?
stringunicode

Why are emoji characters like 👩‍👩‍👧‍👦 treated so strangely in Swift strings?

Published on September 2, 2023

## Why are emoji characters like πŸ‘©β€πŸ‘©β€πŸ‘§β€πŸ‘¦ treated so strangely in Swift strings? πŸ€” Have you ever wondered why emoji characters like πŸ‘©β€πŸ‘©β€πŸ‘§β€πŸ‘¦ are not behaving as expected in Swift strings? It can be quite frustrating when you try to perform operatio

Cover Image for Any way to replace characters on Swift String?
string

Any way to replace characters on Swift String?

Published on September 2, 2023

# Any way to replace characters on Swift String? 🧐 Are you struggling to replace characters in a Swift `String`? Don't worry, we got your back! In this guide, we'll address the common issues and provide easy solutions to help you achieve your desired res

Cover Image for dispatch_after - GCD in Swift?

dispatch_after - GCD in Swift?

Published on September 2, 2023

# Dispatch_after - GCD in Swift: A Complete Guide πŸš€ So, you've stumbled upon the mysterious `dispatch_after` function in Swift and you're wondering what it's all about. Don't worry, you're in the right place! In this guide, we'll break down the structure

Cover Image for Using a dispatch_once singleton model in Swift

Using a dispatch_once singleton model in Swift

Published on September 2, 2023

# Swift Dispatch_once Singleton Model πŸš€πŸ’» Have you ever come across the need to create a singleton instance in your Swift project? Singletons are a great way to ensure a class has only one instance throughout the application. They are commonly used for m

Cover Image for How can I make a weak protocol reference in "pure" Swift (without @objc)

How can I make a weak protocol reference in "pure" Swift (without @objc)

Published on September 2, 2023

# Making a Weak Protocol Reference in 'Pure' Swift: The Definitive Guide Are you tired of dealing with strong reference cycles in your Swift code? Wondering how to make a weak protocol reference without resorting to the `@objc` attribute? You've come to t

Cover Image for How to enumerate an enum with String type?
enumsstring

How to enumerate an enum with String type?

Published on September 2, 2023

# πŸƒ How to Enumerate an Enum with String Type in Swift? 🎴 Do you ever find yourself with an enum that has string values and wonder how to iterate over each case? πŸ€” Fear not, because in this guide, we will show you how to enumerate an enum with a string

Cover Image for How to disable theme updates on WordPress to avoid losing my changes?

How to disable theme updates on WordPress to avoid losing my changes?

Published on September 2, 2023

πŸ“πŸŒŸ Hey there WordPress users! Have you ever spent hours customizing your theme, only to panic at the thought of losing all your hard work when the theme updates? 😱 Don't worry, we've got your back! In this blog post, we'll guide you through the process

Cover Image for WooCommerce products showing β€œOut of stock” message when not actually out of stock
mysql

WooCommerce products showing β€œOut of stock” message when not actually out of stock

Published on September 2, 2023

# πŸ›’ WooCommerce products showing β€œOut of stock” message when not actually out of stock Are you facing a frustrating issue with your WooCommerce store where products randomly display an "Out of stock" message even though they are in stock? 😑 Fear not! I