Posts

Showing posts from December, 2017

How to Install MongoDB (Without Brew) for Mac

Image
How to Install MongoDB (without Brew) for Mac I had previously wished I could host a MySQL database on my computer without having to run it 24/7. The commands give you more flexibility than does Excel, and Store data in a MySQL. I will cover the steps to install MongoDB (Community Edition) so that you can host a local MongoDB database and use MongoDB shell to connect to other databases. I largely followed the instructions in this video . 1. Download the MongoDB Software 1. Go to the MongoDB Download Center and click the tab for "Community Server". 2. Make sure that you are looking at Community Server for Mac. 3. Download the tgz file for MongoDB Community Server. It is probably best to save it in your home directory (usually Users/You). 2. Install the Software 1. Go to your terminal shell, change directories to wherever the downloaded file is, and unpack the downloaded file by running tar xvf mongodb-osx-x86_64-3.6.0.tgz . Note that this tutorial is n

Guide: Local Notifications in Foreground in iOS

Image
Guide: Local Notifications in Foreground in iOS In iOS 11, scheduling a notification will always result in delivery (i.e. the user sees it) as long as the user is not using the app at delivery time (and the iPhone is on). This means that either the user has the iPhone locked, is using a different app, or is on a home screen. Below are the steps to present a local notification in the foreground (i.e. while the user is in your app).

Gist Test

//This is a test gist. let things = ("Hello", "World") for item in things { print(item) }

Test

1: def main(): 2: print("Hello")