SQLTerminal.app
now available

XPath.app
now available
Want fresh tech tips in your inbox?
XPath Expression Editor
Practice and improve your XPath skills with XPath Editor
Click to buy on the App Store
Photo Location Changer
Easily change the location on your photos and videos
Click here for more info about the app
Photo Date Changer
Easily change the dates and times on your photos and videos
Click here for more info about the app
VocabReminder
English dictionary with notifications so you won't forget what you're studying!
Click here for more info about the app
VocabQuiz
The app that quizzes and scores you on your vocabulary!
Click here for more info about the app

How to Get GPS Location Information from Address String with Swift and iOS CLGeocoder

You can use CLGeocoder geocodeAddressString method. It will return an array of CLPlacemark objects that contain gps coords and city, location info....


How to Get GPS Location Information from a Photo or Movie with Swift and UIImagePickerController

This code assumes you're using the UIImagePickerController. If not you will need to get an image url another way. But, If you are using UIImagePic...


How to Dynamically Call a Method from a String in Swift

You have to subclass NSObject class Car : NSObject { func drive(){ print("Driving..") } } let car : Car = Car() car.perform(...


How to Check if Your iOS or MacOS App is Connected to the Internet

Is your app connected to the internet? You can use this standalone class to check! There are no dependencies so you can copy/paste it into your projec...


How to Flush or Erase Cache of Your XCode iOS or MacOS Cocoa App

If you're working with an XCode application, either iOS or MacOS, and want to do a completely clean build and delete the cache, it's simple. Execu...


How to Find the Directory Locations Your XCode App Uses

You can add this snippet to your application, say for instance in your `viewDidLoad` function, that will print to the XCode console, the location of y...


How to Find Postgres Log File and Postgres Data Directory from PSQL

If you want to find the location of your log file in Postgres, you'll need to hop into a Psql session.. psql dbname Then it's as simple as ru...


How to Use Python Shutil Make_Archive to Zip Up a Directory Recursively including The Root Folder

The documentation for Python's shutil.make_archive is very confusing. Considering that the arguments to this function only need to be source and desti...


How to Just Get SQL Statement Error with SQLAlchemy Python Database Wrapper

If you're working with SQLAlchemy, the best database driver for Python, and want to see only SQL syntax errors, you need to use the StatementError ex...


Extension for Encoding and Decoding Strings in Base64 in Swift

Here is an extension to base 64 encode and decode strings in Swift (3) extension String { func fromBase64() -> String? { guard let data...


How to Emulate Double Tap for Progressive Web Apps (PWA) iOS and Android

The double tap event isn't supported in libraries like jQuery Mobile (out of date anyway). But coding up your own function is very easy. We will co...


How to Log and Query SQL Queries Hitting Your Database with MySQL

Here is some code just in case you want to look at and query the queries hitting your MySQL database. Enter this from the mysql client console....


How to Extract Time Information from a Natural Language String with a Regular Expression and PHP

You can easily extract time information from a string with a regular expression and PHP (or any language with regular expressions). $str = "H...


How to Filter or Search HTML with Vanilla Javascript - No JQuery Required

The basic approach is to use the `document.querySelectorAll` to match certain elements, then manually set the display property to 'none' or 'block' (o...


How to Time Piped *nix Commands

If you want to time how long a piped bash command take, use the `time` command followed by your commands in parens like so.. time (ls -lha | wc -...