- Remove the old postmaster.pid file:
trash /usr/local/var/postgres/postmaster.pid
# or rm /usr/local/var/postgres/postmaster.pid
- Restart the postgresql service:
brew services restart postgresql
| <template> | |
| <div class="editorjs" ref="htmlelement"></div> | |
| </template> | |
| <script setup> | |
| import EditorJS from '@editorjs/editorjs'; | |
| import EmbedTool from '@editorjs/embed'; | |
| import ListTool from '@editorjs/list'; | |
| import ImageTool from '@editorjs/image'; | |
| import VideoTool from './editorjs/video.js'; | |
| import { onMounted, onUnmounted, ref, watch } from 'vue'; |
trash /usr/local/var/postgres/postmaster.pid
# or rm /usr/local/var/postgres/postmaster.pid
brew services restart postgresql
We will install OpenJDK for anything Java 8 and later. Anything prior is probably Oracle JDK.
Prerequisite: Install Homebrew.
Remember to update your formulas.
$ brew update| // create a bookmark and use this code as the URL, you can now toggle the css on/off | |
| // thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3 | |
| javascript: (function() { | |
| var styleEl = document.getElementById('css-layout-hack'); | |
| if (styleEl) { | |
| styleEl.remove(); | |
| return; | |
| } | |
| styleEl = document.createElement('style'); | |
| styleEl.id = 'css-layout-hack'; |
The following are a couple examples of some common array opperations done in the Miva Template Language.
They include a couple example problems and illustrate some different ways of providing a solution in MVT.
There are also JavaScript examples of the same problems & solutions to help bridge the MVT concepts for people that are more familiar with JavaScript.
| "use strict"; | |
| // Load plugins | |
| const autoprefixer = require("autoprefixer"); | |
| const browsersync = require("browser-sync").create(); | |
| const cp = require("child_process"); | |
| const cssnano = require("cssnano"); | |
| const del = require("del"); | |
| const eslint = require("gulp-eslint"); | |
| const gulp = require("gulp"); |
Keywords: Java, JDK (Java Development Kit), MacOS, Homebrew, Specific Version
This how-to guide covers how to install different versions of the JDK on MacOS with Homebrew.
| #!/bin/sh | |
| # based on guide from Microsoft https://docs.microsoft.com/en-us/visualstudio/mac/uninstall | |
| # Uninstall Visual Studio for Mac | |
| echo "Uninstalling Visual Studio for Mac ..." | |
| sudo rm -rf "/Applications/Visual Studio.app" | |
| rm -rf ~/Library/Caches/VisualStudio | |
| rm -rf ~/Library/Preferences/VisualStudio |
| /* Pre-requisite | |
| ================== | |
| 1) Create an Environment (if you don't already have on) and enable it for your request | |
| 2) Add a new Header with key as "Authorization" and value as "{{hmacAuthHeader}}" | |
| 3) Add the following Pre-request Script that computes the hmacAuthHeader variable and adds it to the environment | |
| 4) Fill your CLIENT_KEY and SECRET_KEY with valid values | |
| */ | |
| function getPath(url) { | |
| var pathRegex = /.+?\:\/\/.+?(\/.+?)(?:#|\?|$)/; |