Luminus directories: src/clj, src/cljs, src/cljc

January 28th, 2017 Clojure, googlefood

When you use the lein plugin luminus to create a web application based on the Luminus Web Stack, it creates three directories under src: clj, cljs, and cljc.

What are these for?
Read the rest of this entry »

Googlefood: chef-spec tries to connect to localhost fauxhai.local

November 16th, 2016 googlefood

There’s lots of different things that can cause this error. The one that I was hitting was rather unintuitive.

Read the rest of this entry »

GoogleFood: Fixing slow font menu on Microsoft Office for Mac

November 10th, 2016 googlefood

This one took me a while to figure out.

Whenever I was using Microsoft PowerPoint or Word, when I tried to drop down the font menu, I would get the “Busy” spinning beach ball for about five seconds, then the menu would open.

Read the rest of this entry »

Googlefood: Running luminus in Cursive (Clojure)

October 4th, 2016 Clojure, googlefood

It took me a bit to figure out how to use the REPL inside Cursive with a Luminus project.

The key difference is you have to add a Leiningen Run Configuration, instead of the usual Clojure Repl Configuration, with how you’d normally run it on the command line.

After that, create a Clojure REPL Configuration that connects to the port that is opened by the run configuration.

Example: If you normally do this:

lein run
lein repl :connect 7000

Then the Leiningen Run Configuration is the first command, and the Clojure REPL Configuration is the second one.

Picture, 1000 words, etc.


Clojure Macro Explorations: cond->

October 26th, 2014 Clojure

Some notes I’ve taken on my journey to really understand Clojure macros. Today I basically walked through the cond-> macro in clojure.core, and these are my notes as I figured out how it works.

Read the rest of this entry »