Blog

Page 157 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for Removing duplicate elements from an array in Swift
arrays

Removing duplicate elements from an array in Swift

Published on September 2, 2023

# Removing Duplicate Elements from an Array in Swift: A Simple Guide ๐Ÿงน Have you ever found yourself dealing with an array that contains duplicate elements, and you just want to keep one of each? Luckily, Swift provides us with a simple way to achieve thi

Cover Image for What is the difference between `let` and `var` in Swift?

What is the difference between `let` and `var` in Swift?

Published on September 2, 2023

# Understanding the Difference between `let` and `var` in Swift ๐Ÿค”๐Ÿ” So, you're diving into the exciting world of Apple's Swift language, but you're running into a common question: "What is the difference between `let` and `var` in Swift?" ๐Ÿคทโ€โ™€๏ธ Don't wo

Cover Image for How can I use String substring in Swift 4? "substring(to:)" is deprecated: Please use String slicing subscript with a "partial range from" operator

How can I use String substring in Swift 4? "substring(to:)" is deprecated: Please use String slicing subscript with a "partial range from" operator

Published on September 2, 2023

# How to Use String Slicing Subscript with Partial Range From in Swift 4 ๐Ÿ˜Ž So you want to use the `substring(to:)` method in Swift 4, but you're getting a deprecation warning? No worries! Swift 4 has a cool alternative for you called the **String Slicing

Cover Image for How do I print the type or class of a variable in Swift?
types

How do I print the type or class of a variable in Swift?

Published on September 2, 2023

๐Ÿ–จ๏ธ๐Ÿ”๐Ÿค”How do I print the type or class of a variable in Swift?๐Ÿค”๐Ÿ”๐Ÿ–จ๏ธ Have you ever found yourself scratching your head and wondering how to print the type or class of a variable in Swift? ๐Ÿค” It may seem like a simple task, but it can be surprisingly tri

Cover Image for How do I generate a custom menu/sub-menu system using wp_get_nav_menu_items in WordPress?

How do I generate a custom menu/sub-menu system using wp_get_nav_menu_items in WordPress?

Published on September 2, 2023

# How to Generate a Custom Menu/Sub-Menu System in WordPress using wp_get_nav_menu_items ๐Ÿ” Are you looking to create a custom menu/sub-menu system in WordPress but are unsure of how to do it using wp_get_nav_menu_items? Look no further, because we have g

Cover Image for Read and write a String from text file
file-iostring

Read and write a String from text file

Published on September 2, 2023

๐Ÿ“ **Tech Blog Post: Easy Ways to Read and Write a String from a Text File in Swift ๐Ÿ“** Hello there, tech enthusiasts! ๐Ÿ‘‹ Are you struggling to read and write data from a text file in Swift? Don't worry, you're not alone! Many developers face this issue

Cover Image for How do I add 1 day to an NSDate?
date

How do I add 1 day to an NSDate?

Published on September 2, 2023

# How to Add 1 Day to an NSDate Are you facing the challenge of adding one day to an `NSDate`? Don't worry, we've got you covered! In this guide, we'll explore different solutions to effortlessly add one day to a given date in Objective-C. ## The Problem

Cover Image for How do I make an attributed string using Swift?

How do I make an attributed string using Swift?

Published on September 2, 2023

# How to Make an Attributed String Using Swift ๐Ÿ˜Ž๐Ÿ“ So, you want to make an attributed string in Swift, huh? ๐Ÿค” Not to worry, I've got your back! In this blog post, I'll guide you through the process step-by-step, so you can create an attributed string li

Cover Image for With "magic quotes" disabled, why does PHP/WordPress continue to auto-escape my POST data?

With "magic quotes" disabled, why does PHP/WordPress continue to auto-escape my POST data?

Published on September 2, 2023

๐Ÿ”ฎ Why does PHP/WordPress continue to auto-escape my POST data with "magic quotes" disabled? ๐Ÿค” Have you ever encountered a situation where you disabled "magic quotes" in PHP's configuration, yet the auto-escaping of your POST data still persists? ๐Ÿ˜ฉ It's

Blog | Matheus Mello