If you have installed MySQL on your Mac and forgot your root password, these instructions are for you.
sudo shutdown -h now
sudo shutdown -r now
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
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.
Homebrew is a package manager for Mac OS.
- Download and install Xcode from Mac store if you don't already have it installed
In a terminal, type the following code
Run the following command
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew search Search for an application:
Mac terminal shows the wrong hostname on prompt.
Find out if a hostname is already specified.
$ sudo scutil --get HostName HostName: not set
To set your Hostname
$ sudo scutil --set HostName 'myname'
Exit out of your terminal and start a new terminal. You should see your chosen hostname.
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.
Following is a list windows commands and their mac equivalents:
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 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
- ideal for client-side applications
Installing MongoDB on Mac with Homebrew