$ cd ~/Library/Application\ Support/Postgres/var-10
$ \rm -f postmaster.pid
OR
$ \rm -f ~/Library/Application\ Support/Postgres/var-10/postmaster.pid
<script> | |
function setGrades() { | |
// Define those variables! | |
var quiz1 = parseFloat(document.getElementById('quiz1').value); | |
var quiz2 = parseFloat(document.getElementById('quiz2').value); | |
var quiz3 = parseFloat(document.getElementById('quiz3').value); | |
var quiz4 = parseFloat(document.getElementById('quiz4').value); | |
var quiz5 = parseFloat(document.getElementById('quiz5').value); | |
var quiz6 = parseFloat(document.getElementById('quiz6').value); | |
var quiz7 = parseFloat(document.getElementById('quiz7').value); |
module ActionDispatch | |
module Routing | |
class MarkdownFormatter | |
def initialize | |
@buffer = [] | |
end | |
def result | |
@buffer.join("\n") | |
end |
$ cd ~/Library/Application\ Support/Postgres/var-10
$ \rm -f postmaster.pid
OR
$ \rm -f ~/Library/Application\ Support/Postgres/var-10/postmaster.pid
On OS/X Sierra, after recently running a brew update
I started receiving the error message Sorry, you can't use byebug without Readline
when trying to run some rake tasks in my ruby project folder. I observed this in projects and gems that include byebug
or pry
in their Gemfile
or gem.spec
. I've found in my googling that many begin encountering this error message after running a brew update
but there are other triggering conditions as well.
>> rake aws:show_config
WARN: Unresolved specs during Gem::Specification.reset:
mime-types (>= 0)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
Sorry, you can't use byebug without Readline. To solve this, you need to
require 'forwardable' | |
class Blog | |
def edit_post | |
puts "Post edited" | |
end | |
def delete_post | |
puts "Post removed" | |
end |
After automatically updating Postgres to 10.0 via Homebrew, the pg_ctl start command didn't work. | |
The error was "The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0." | |
Database files have to be updated before starting the server, here are the steps that had to be followed: | |
# need to have both 9.6.x and latest 10.0 installed, and keep 10.0 as default | |
brew unlink postgresql | |
brew install postgresql@9.6 | |
brew unlink postgresql@9.6 | |
brew link postgresql |