If you have a large project with multiple types of dependencies, switching Git branches can be a headache. Xcode will fail to build and the error messages are often cryptic. For simple projects, a basic project clean will resolve most issues. You can do this through the Xcode menu Product -> Clean Build Folder or… Continue reading How to Create an Xcode Reset Script
Category: tutorials
How to Reverse a Number Mathematically
Here’s a simple method for getting the reverse of a positive integer.
Create a Circular Array with the Modulo Operator
If you need to continue looping over an array after you’ve reached the end, you can use the modulo operator to start the index back at 0.
How to Consume an External API in iOS
This is a very gentle introduction to fetching data from an external API in iOS. This tutorial is aimed at beginners and doesn’t assume any prior knowledge.
Fibonacci Sequence Explained
If you’re not familiar with the Fibonacci sequence, the gist is that each number is the sum of the two numbers before it, starting from 0 and 1.
How to Perform a Binary Search in Swift
The basic idea behind a binary search is that you take the midpoint of a sorted array and compare that with the item you’re searching for. The key thing to remember is that the array must be sorted. The steps are:
Symfony New Project Setup
cd into the directory above where you want your project to live Run:
Laravel New Project Steps
Here are my steps for creating a new laravel project. I know the docs are excellent but these are the steps specific to my setup, which is probably pretty common. For reference, I use the laravel installer to create new projects and I use Homestead. I already have Homestead set up so it’s just a matter… Continue reading Laravel New Project Steps
Saving to a .plist file in Objective-C
Here’s a basic how-to for saving data to a .plist file.
Set up Slim Framework on Docker
Here is a bunch of code-dump for setting up Slim Framework on Docker.