Installing Postgres via Brew
In your command-line run the following commands:
|(defn create-function-call [param expr]|
|"Create an sexp for calling expr with a first argument provided by a promise.|
|If expr is a list (already in form suitable for a function call), insert the first argument at second position,|
|otherwise turn expr into a function call expression, unless the function is an fn, which is simply returned.|
|println -> (fn [param] (println param))|
|(* 2) -> (fn [param] (* param 2))|
Around 2006-2007, it was a bit of a fashion to hook lava lamps up to the build server. Normally, the green lava lamp would be on, but if the build failed, it would turn off and the red lava lamp would turn on.
By coincidence, I've actually met, about that time, (probably) the first person to hook up a lava lamp to a build server. It was Alberto Savoia, who'd founded a testing tools company (that did some very interesting things around generative testing that have basically never been noticed). Alberto had noticed that people did not react with any urgency when the build broke. They'd check in broken code and go off to something else, only reacting to the breakage they'd caused when some other programmer pulled the change and had problems.
Outdated note: the process is a lot easier now: after you
brew install postgresql you can initialize or stop the daemon with these commands:
brew services start postgresql or
brew services stop postgresql.
new out put may look like
To have launchd start postgresql now and restart at login: brew services start postgresql Or, if you don't want/need a background service you can just run: pg_ctl -D /usr/local/var/postgres start