Mac OS

Print screen on Mac

The Mac OS keyboard does not have a print screen button. So this is how to capture your screen on Mac:

  • Hold down Apple key ? + Shift + 3 and release all

The screen shot would appear on your desktop.

You can also do a screen capture for a portion of your screen.

  • Hold down Apple key ? + Shift + 4 and release all key
  • Mouse cursor would change to +
  • Select the region you wish to capture

Easy.

Setting up multiple displays on Mac OS

It is now common for users to work with multiple monitors. Laptop users, especially, prefer to work on their laptop screen and an external monitor when at they at work or at home. If you are using netflix or some other service to download movies, you would prefer to watch it on large screen rather than your laptop screen, so you would want to connect your computer to a TV or projector.

It is very easy to connect Mac OS computers to external monitors.

Getting started with Homebrew

Homebrew is a package manager for Mac OS.

Installation

  1. Download and install Xcode from Mac store if you don't already have it installed
  2. In a terminal, type the following code

    xcode-select --install
    
  3. Run the following command

    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"    
    

Some commands

brew search Search for an application:

Getting started with Git

A version control system keeps track of changes in code. It keeps track of every change made by every developer. It allows code bases to be branched and then merged back. You can also go back in time to a point before you introduced something in the code. Version control is absolutely essential for software development.

How to modify your host file

Your host file enables your system to override the DNS setting for a domain. This change only affects your system.

The syntax of a host file entry is as follows

# this is a comment
192.168.22.22 molecularsciences.org

Basically you specify an IP followed by a domain. All lines beginning with # sign are comments.

Host files should only be edited with plain text editors like notepad, notepad++, sublime, etc. Following are the locations of host files on different systems:

MongoDB

MongoDB is document based NoSQL database. This means that:

  • it has no schema
  • it has no relations
  • it is agile and scaleable
  • stores information in nested documents of two-dimensional key/value pairs.

What are the benefits of using MongoDB?

  • you do not have to pre-define your schema or data model
  • works nicely with JavaScript
  • ideal for client-side applications

Installing MongoDB

Installing MongoDB on Mac with Homebrew