`pg_tblspc` missing after installation of latest version of OS X (Yosemite or El Capitan)

Solved… in part. Apparently, Installing the latest versions of OS X (e.g. Yosemite or El Capitan) removes some directories in /usr/local/var/postgres. To fix this you simply recreate the missing directories: mkdir -p /usr/local/var/postgres/pg_commit_ts mkdir -p /usr/local/var/postgres/pg_dynshmem mkdir -p /usr/local/var/postgres/pg_logical/mappings mkdir -p /usr/local/var/postgres/pg_logical/snapshots mkdir -p /usr/local/var/postgres/pg_replslot mkdir -p /usr/local/var/postgres/pg_serial mkdir -p /usr/local/var/postgres/pg_snapshots mkdir -p /usr/local/var/postgres/pg_stat mkdir … Read more

Using Caps Lock as Esc in Mac OS X

Edit: As described in this answer, newer versions of MacOS now have native support for rebinding Caps Lock to Escape. Thus it is no longer necessary to install third-party software to achieve this. Here’s my attempt at a comprehensive, visual walk-through answer (with links) of how to achieve this using Seil (formerly known as PCKeyboardHack). … Read more

How to open Visual Studio Code from the command line on OSX?

From the Visual Studio Code Setup page: Tip: If you want to run VS Code from the terminal by simply typing ‘code’, VS Code has a command, Shell Command: Install ‘code’ command in PATH, to add ‘code’ to your $PATH variable list. After installation, launch VS Code. Now open the Command Palette (F1 or ⇧+⌘+P … Read more

OS X Terminal Colors [closed]

Here is a solution I’ve found to enable the global terminal colors. Edit your .bash_profile (since OS X 10.8) — or (for 10.7 and earlier): .profile or .bashrc or /etc/profile (depending on availability) — in your home directory and add following code: export CLICOLOR=1 export LSCOLORS=GxFxCxDxBxegedabagaced CLICOLOR=1 simply enables coloring of your terminal. LSCOLORS=… specifies … Read more

Mongod complains that there is no /data/db folder

You created the directory in the wrong place /data/db means that it’s directly under the “https://stackoverflow.com/” root directory, whereas you created ‘data/db’ (without the leading /) probably just inside another directory, such as the ‘/root’ homedirectory. You need to create this directory as root Either you need to use sudo , e.g. sudo mkdir -p … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)