clojure-uk

A place for people in the UK, near the UK, visiting the UK, planning to visit the UK or just vaguely interested to randomly chat about things (often vi and emacs, occasionally clojure). More general the #ldnclj
jiriknesl 2021-02-03T06:03:40.141600Z

Good morning

dharrigan 2021-02-03T06:31:05.141800Z

Morning!

djm 2021-02-03T06:37:18.142Z

👋

thomas 2021-02-03T08:23:15.142200Z

mogge

mccraigmccraig 2021-02-03T08:49:59.142400Z

måning

2021-02-03T09:14:38.142600Z

Morning

2021-02-03T09:31:26.142800Z

Morn'

jasonbell 2021-02-03T09:50:31.143Z

Morning

danm 2021-02-03T09:57:06.143300Z

Mornin'

alexlynham 2021-02-03T10:12:21.143400Z

morning

danielneal 2021-02-03T13:59:22.144200Z

what's the best way of getting some kind of report when using cognitects test-runner?

dharrigan 2021-02-03T14:03:05.145300Z

I know this doesn't answer your question, but I use kaocha which has the ability to dump out a lot of report information 🙂

danielneal 2021-02-03T14:05:23.145700Z

what's involved in setting that up? What's the output like?

danielneal 2021-02-03T14:06:04.146100Z

Is there a way of capturing test output as distinct from other logging

dharrigan 2021-02-03T14:09:22.146700Z

It's pretty easy to setup, it's just a runner, like cognitect. I do use <https://clojure-expectations.github.io/> as well, instead of deftest

dharrigan 2021-02-03T14:12:00.147100Z

this is my setup for it

dharrigan 2021-02-03T14:13:11.147600Z

#kaocha/v1
{:plugins [:kaocha.plugin/junit-xml
           :kaocha.plugin/cloverage
           :kaocha.plugin.alpha/spec-test-check]
 :reporter [kaocha.report/documentation]
 :fail-fast? true
 :kaocha.plugin.junit-xml/target-file "target/junit.xml"}

dharrigan 2021-02-03T14:13:42.147800Z

and it produces something like this:

dharrigan 2021-02-03T14:13:57.147900Z

dharrigan 2021-02-03T14:14:16.148500Z

also produces a standard junit.xml file that can be postprocessed how you like 🙂

alexlynham 2021-02-03T15:23:59.148700Z

we've moved over to making our own oat milk during the first lockdown (too much hassle to nip to the shops for milk, and we always have rolled oats in) & now it means there's always oatmeal to use up, so i'm making flapjack traybakes every weekend

alexlynham 2021-02-03T15:24:15.148800Z

which means there's always midafternoon maple syrup & pecan flapjacks about 👀

alexlynham 2021-02-03T15:24:25.148900Z

definitely improves productivity 😂

dharrigan 2021-02-03T15:29:13.149200Z

I do enjoy oat milk in my morning porridge

dharrigan 2021-02-03T15:29:55.149700Z

I am seriously struggling with the feck up that is Spring atm. Don't ask. Job duties.

Conor 2021-02-03T15:34:00.149800Z

Here is my ranking of alternative milks: 1) Minor Figures oat milk, 2) Oatly oat milk, 3) Rebel 'mylk' and then it trails off into a fairly undifferentiated mass of almond, coconut or almond + coconut milks

alexlynham 2021-02-03T15:36:51.149900Z

oat milk is hilariously easy to make

alexlynham 2021-02-03T15:37:04.150Z

and mine is definitely now better than oatly organic

alexlynham 2021-02-03T15:37:10.150100Z

after a few tries getting it right

dharrigan 2021-02-03T15:40:36.150700Z

I grab whichever is reasonable at my local supermarket. Presently it is Rude Health

dharrigan 2021-02-03T15:40:59.151200Z

After spending hours messing around with Spring and Oauth, I wrote my own in Clojure in about 10 mins, works first time

dharrigan 2021-02-03T15:41:07.151400Z

(still not working in Spring/Oauth)

2021-02-03T15:52:35.151900Z

with the caveat that I haven’t verified any of it: https://every.to/almanack/oatly-the-new-coke-10649354

danielneal 2021-02-03T15:55:53.152100Z

I know the feels

danielneal 2021-02-03T15:58:04.152400Z

> Putting 12oz of Oatly into your latte and adjusting for the higher GI of maltose means adding almost a tablespoon of table sugar to your drink. Put a tablespoon of sugar next to your coffee next time you have a chance and seriously consider if that’s a decision that’s “made for humans.”

danielneal 2021-02-03T15:58:06.152600Z

yikes

dharrigan 2021-02-03T15:58:46.152800Z

VEry interesting

alexlynham 2021-02-03T16:05:03.152900Z

regular oatly has lots of random stuff in it

alexlynham 2021-02-03T16:05:08.153Z

oatly organic has less

alexlynham 2021-02-03T16:05:16.153100Z

making your own is just oats, water, salt

mccraigmccraig 2021-02-03T16:09:14.154200Z

who puts 340ml (12oz) of oat milk into a coffee ? i suppose if you are having a latte

mccraigmccraig 2021-02-03T16:09:35.154700Z

but lattes are horrible

dharrigan 2021-02-03T16:09:39.154800Z

In my porridge, it's roughly about 150-160ml each time

dharrigan 2021-02-03T16:10:04.155Z

but <shrug> tis noiiice

alexlynham 2021-02-03T17:13:05.156100Z

340ml is loads

mccraigmccraig 2021-02-03T17:35:18.158900Z

250ml of cow milk is 12 grams of net carbs, and 250ml oatly seems to be about 16g net carbs, so it's about 30% more than cow... but if you are putting 340ml of milk in your coffee you are probably american and the burgers will get you before the oatmilk does

2021-02-03T17:38:18.159500Z

what do you mean by "net carbs"?

mccraigmccraig 2021-02-03T17:39:01.160400Z

the carbs which are absorbed by the body - i.e. not including fibre