Fork me on GitHub
#clojure-uk
<
2020-05-13
>
dharrigan07:05:49

good morning

thomas07:05:55

mogge 😼

Ben Hammond08:05:31

haha I recently joined Kotlin Slack its amazing how much cheerier this place is than there....

dharrigan09:05:53

I’m there too šŸ™‚

dharrigan09:05:03

Which channels are you hanging out on?

Conor09:05:53

#functional and #server represent

Conor09:05:06

Though frankly it is not super useful as Slacks go

folcon10:05:33

Morn’

dharrigan10:05:13

I'm on the #spring and #coroutines and #intellij channels mostly šŸ™‚

Aleksander10:05:14

how well Kotlin works with Spring Boot?

folcon10:05:55

There’s an #intellij channel? Ahh, in Kotlin Slack… 😳

dharrigan12:05:19

Aleksander - perfect fit. We use Spring Boot and Kotlin at work, a lot, i.e., nearly 99% of our production code is now Kotlin and Spring Boot (with my bit of Clojure thrown into the mix).

dharrigan12:05:48

It's intesting too, that the Spring Framework itself is treating Kotlin as a first-class citizen.

dharrigan12:05:01

The Spring Framework provides first-class support for Kotlin and lets developers write Kotlin applications almost as if the Spring Framework was a native Kotlin framework.

šŸ‘ 4
Ben Hammond09:05:20

is there a sense that Kotlin has become what groovy++ always wanted to be

Ben Hammond09:05:21

and with a much more Google-friendly name

dominicm11:05:14

Is that because kotlin developers are happier?

Ben Hammond15:05:20

I certainly enjoy having a debugger that works more reliably

Ben Hammond15:05:04

Repl support doesn't seem as good though

Ben Hammond15:05:30

I do like a bit of strong typing too

mccraigmccraig15:05:11

a proper HM-style statically checked lisp would be an awesome thing

mccraigmccraig15:05:41

i was sad when lux went off the rails

minimal16:05:34

@mccraigmccraig what happened to lux?

minimal16:05:53

when it tried to be all things?

mccraigmccraig16:05:23

@minimal it seems to have been stalled for quite a long time... probably as a result of trying to be all the things

minimal16:05:25

it did look a bit out there the last thing I saw him propose

mccraigmccraig16:05:42

quite a lot of a bit 😬

Ben Hammond16:05:17

meh my Maltron keyboard seems to have died not impressed

Ben Hammond16:05:27

what do you guys use for keyboards? Cherry MX Brown or Blue? Or Red?

rhinocratic00:05:26

Cherry browns on a Filco Ninja. Excellent keyboard, but I work at home so there's nobody to complain about the clacking.šŸ™‚

alexlynham17:05:59

hako royal clears with kailh box yellow for the mods, box royal for enter and halo true for space, kailh speed copper for backspace and esc

Ben Hammond16:05:15

I know dominicm swears by his Ergodox EZ (did I remember that correctly?)

šŸ‘ 4
Ben Hammond16:05:31

maybe I should give that a try next....

dharrigan16:05:25

I use cherry browns

dharrigan16:05:29

on a das keyboard

dharrigan16:05:56

I used to have blues - but got complaints at the office...

dharrigan16:05:08

but now that I'm wfh, perhaps I should dust it off

Ben Hammond17:05:51

there's browns on the keyboard-that-just-broke, but I find them too easy to double-press

Ben Hammond17:05:09

guess I've just got heavy fingers

mccraigmccraig17:05:06

i like my 2015 macbook-pro keyboard 😬

picard-facepalm 8
šŸ˜‚ 4
Ben Hammond17:05:02

doesn't it feel like you're stubbing your fingers all the time

Ben Hammond17:05:06

not enough travel

Ben Hammond17:05:10

(or perhaps I'm confusing it with a different year...)

Ben Hammond17:05:29

I've got a 2010 MBP, which I still quite like,

Ben Hammond17:05:45

but I've heard much good stuff about them recently

Ben Hammond17:05:59

DVD playing - still a killer feature

mccraigmccraig17:05:47

2015 is before they made a mess of it... there's enough travel to require a positive action, but not too much - and i gather the latest models have a sorted keyboard again

dominicm17:05:50

I have browns on my ergo, but I tried clears and preferred

maleghast18:05:37

Hello everyone…. Quick question, as my Google-Fu is failing me…. Has anyone built a Docker Container, which they are prepared to share or share the Dockerfile for, for use with http://Forestry.io in order to do live preview of Cryogen websites..>?

folcon23:05:00

Not heard of http://forestry.io before, but this v cool =)… I use cryogen myself and was thinking of using it four our company blog, forestry as an approach sounds great, please let me know if you move forward on this =)…

folcon23:05:55

The only thing I could find was this: https://github.com/harlanji/tinydatacenter/tree/master/cryogen-docker Not 100% certain it’s cryogen blog, but I think so?

maleghast13:05:54

Hi @U0JUM502E šŸ™‚ I ended up building my own, and it works! Sadly though, http://Forestry.io does not / cannot support Clojure ā€œFront Matterā€ so the Clojure Maps we use at the top of Cryogen Docs can’t be configured into http://Forestry.io as templates and their editor TOTALLY fucks up the Clojure map at the top of the page. As such I could get it all working but only use the raw editor with no content / non-tech friendly interface for non-programmers and hence my hopes to use it for work are dashed until I can find the time to fork Cryogen to use YAML Front Matter instead of Clojure Front Matter, and now I say that I see how mad it sounds…

folcon13:05:50

Oh dear…

maleghast13:05:37

Anyway, if you wanted to look at my Docker container - ’cos you could use it locally if you can solve the inode / Docker Volumes issue for your editing toolchain, it’s here: https://hub.docker.com/r/maleghast/cryogen-forestry

maleghast13:05:21

It’s linked on the page, but the Public Github repo that drives the Container is here: https://github.com/maleghast/cryogen-docker

maleghast13:05:49

It’s all hooked up on Docker Hub so that new versions of Cryogen can be built by sending a blank commit to Github

maleghast13:05:02

Then on your local machine you’d run it like this: docker run -v [path/to/your/cryogen/site/root]:/opt/gensite -w /opt/gensite -p 8080:8080 cryogen-docker:latest lein ring server-headless 8080

maleghast13:05:19

it’s set to run on 8080 in that example ’cos http://Forestry.io needs that to be the exposed port

maleghast13:05:01

you can leave 8080 of the end and replace the -p 8080:8080 with -p 3000:3000 if you want standard

maleghast13:05:56

Like I said above, if your operating system alters the inode of the file you are editing, i.e. by saving a new one and replacing, in the way Linux and macOS do by default (at least with everything I’ve tried, including nano, so don’t believe what you read on the internet per se) then your files won’t update inside the container, making this whole thing fairly useless unless you like stopping and starting Docker containers…

folcon14:05:33

I might be totally off the mark, but is this the issue? https://stackoverflow.com/a/55103896

folcon14:05:06

It’s the other way around, but in both a cases you want to write to the underlying file?

maleghast14:05:25

Hold on I will read the article…

folcon14:05:38

I’ve not used docker that much >_<…

maleghast14:05:45

I don’t think that this changes anything, the -v … option on the command line should create a mount that binds a host location into the container. The problem is that if you edit a file in that folder, in place, the inode of the file changes and Docker sees that as a security risk so it stays faithful to the old version of the file.

maleghast14:05:57

if you stop and start the container you get the new file

maleghast14:05:23

I remember, a few years back, a colleague at the BBC ā€œsolvedā€ this, as in found a workaround, but I can’t remember how to do it.

folcon14:05:17

Ah, that’s frustrating

maleghast16:05:07

It is, aye…. I’ll let you know if I figure it out…

folcon18:05:00

Is there some way to do this with github actions? Just wondering…

folcon18:05:40

IE, commit a forestry thing, then run an action to convert it? It’s a little bit roundabout, but for a first pass implementation it’s not too awful…

maleghast18:05:23

I am basically trying to avoid the time-sink of making my own if there is one out there, but I accept that I may need to make my own…