Fork me on GitHub
#clojure-uk
<
2018-09-18
>
alexlynham07:09:33

Morning dude! How's it going?

yogidevbear07:09:07

Morning all o/

maleghast08:09:50

Morning All!

maleghast08:09:03

How is everyone feeling about Tuesday? I am on the fence myself...

Rachel Westmacott08:09:37

we should cancel Tuesdays - have a six day week

otfrom08:09:24

nah, Tuesday should be a day off to recover from the shock of Monday

Rachel Westmacott08:09:50

let’s cancel Monday too!

Rachel Westmacott08:09:14

that would give us a 10 day fortnight, and we’d be well on the way to decimalising time then

alexlynham08:09:05

days and days of conferences/meetups and meetings and I'm completely out of social energy

practicalli-johnny09:09:12

Hopefully we can give you lots of energy tonight :)

alexlynham09:09:35

aaaaarrrggghhh

alexlynham09:09:46

runs away 🏃

practicalli-johnny11:09:03

just dont eat too much pizza and you will be fine 🙂

thomas08:09:55

a unit test that worked fine yesterday suddenly fails... seems to be some sort of environmental reason... 😕 as well

😢 4
😞 4
firthh08:09:18

I’m in my final week at my current role so I’m feeling equal parts excited, sad, and nervous

maleghast08:09:29

Exciting new role incoming?

firthh08:09:59

Yep! I’ve got a week off, but that week also includes a trip to the home office to sort out my visa

benedek08:09:53

good experiences with joker too. apart from the occasional performance issue. as i use it on a windows machine might not be relevant to the ppl here using real OSes

Rachel Westmacott08:09:42

this joker sounds great - like all the stuff you get out of the box with Cursive, but as a separate tool troll

benedek08:09:17

well joker kinda an analyzer or clojure reimplemented in go. cursive has something similar afaik only in java/kotlin

guy09:09:45

Morning folks

alexlynham09:09:51

just got joker running in my emacs setup

alexlynham09:09:15

although the default style for an issue being the ms-word style squiggly underline will need changing 😄

practicalli-johnny10:09:15

The underlines in Spacemacs are straight, so assume it’s easy enough to configure joker output in Emacs. There are nice subtle spots in the margin and a count of issue types in the power line

alexlynham10:09:21

yeah I've got those enabled, I'm just trying to work out the styles now ^_^

alexlynham10:09:37

*those of course being the bit in powerline and sidebar

alexlynham10:09:44

should have been more specific

otfrom10:09:09

@alex.lynham I'd be into seeing your emacs config for joker

alexlynham10:09:16

melpa is flaky on the day job wifi so I've hard coded the .el file into my vendor

alexlynham10:09:24

the rest is in my hacky init.el

alexlynham10:09:15

my emacs config is a mess, sorry. It drifts slightly but it's roughly what I use on my work and personal laptops

alexlynham10:09:53

kind of like everything I do, it's 80% perfect and I'm chipping away at the other 20 so it's actually smooth sailing, but it's taking time... ^_^

alexlynham10:09:28

gosh working out where this style comes from is a rabbit hole...

practicalli-johnny10:09:41

@alex.lynham Hmm, Spacemacs clojure-lint layer doesn't add any of its own config and just uses vanilla flywheel-joker package. I guess the spacemacs dark and light themes control the nice underlines and powerbar display.

otfrom12:09:50

I'm going to have a look at flymake-joker too. Thx @U05254DQM. And don't worry about your emacs config being a mess @alex.lynham. Everyone's is. 🙂

practicalli-johnny12:09:49

@U0525KG62 unless they use Spacemacs 😆 (not that I am in any way bias )

👍 4
otfrom12:09:47

spacemacs looks cool. I'm pretty happy with my use-package and org-mode setup https://github.com/otfrom/otfrom-org-emacs

alexlynham13:09:00

mine's a ball of rubber bands and gaffer tape but I guess I know where the gremlins are by now

alexlynham13:09:15

and it fails me when I need it surprisingly infrequently

alexlynham13:09:47

@U05254DQM gonna use this train journey to spelunk in the emacs styles configuration

alexlynham13:09:54

> style should be a symbol line or wave, meaning to use a straight or wavy line. Omitting the attribute :style means to use a straight line

alexlynham14:09:31

aaand there we go:

alexlynham14:09:36

;; flycheck styling
(set-face-attribute 'flycheck-error nil :underline '(:color "#d32e00"))
(set-face-attribute 'flycheck-warning nil :underline '(:color "#e3795c"))
(set-face-attribute 'flycheck-info nil :underline '(:color "ForestGreen"))

alexlynham14:09:27

add that^ or something like it to yr init.el

alexlynham14:09:55

relevant hooks/styles are around line 733 in flycheck.el

❤️ 4
maleghast09:09:15

Does anyone know whether HugSQL returns a nil or an empty vector from a SELECT that has no results?

Rachel Westmacott09:09:02

can you arrange for it not to matter?

Rachel Westmacott09:09:24

much of the core library will handle nil like an empty sequence

alexlynham10:09:55

yeah nil punning innit

practicalli-johnny11:09:46

I hope everyone in London today is coming along to the meetup at Signal Media offices this evening. We have 60+ signups already, so its a great chance to meet people outside of Slack 🙂 https://www.meetup.com/London-Clojurians/events/rpbqcpyxmbgb/

Igor Garcia11:09:53

I'll be there. Should we grab something to eat before we go or will there be sponsored food?

practicalli-johnny11:09:28

Signal Media will be providing pizza.. however if everyone turns up it may not last long 🙂

3Jane11:09:35

PIZZA RUSH!

3Jane11:09:52

(will also be there, but I have to disappear immediately when things end, sadly)

practicalli-johnny11:09:03

I'll be there early, so feel free to grab me for a chat when you get there

Igor Garcia13:09:45

So you're telling me there will be no serverless horizontal scaling of pizza?? 🙂

bronsa14:09:45

wow loads of people, I'll try to pop by

3Jane11:09:58

o/ relative-morning 😄

thomas11:09:27

@lady3janepl it is always morning here... we use UGT after all!

practicalli-johnny11:09:25

If you use that twitter thing, please consider retweeting this (or comming up with an even better tweet) https://twitter.com/ldnclj/status/1042009203425136641

otfrom12:09:46

mmm... I like those times where I can test my works out of the box emacs setup by deleting my elpa directory

maleghast14:09:35

Anyone know how to set up nginx so that requests to a specific, deep URL are served from the disk, BUT, all other requests are proxied to a Clojure app? e.g. http://hostname.com/admin -> proxy http://hostname.com/public/img -> proxy http://hostname.com/public/img/logo -> disk

maleghast14:09:22

Have burned over 2.5 hours on Googling and experimentation - have decided that I need help 😞

maleghast15:09:41

Nailed it, thanks anyway

alexlynham15:09:33

Was gonna say the Google fu is probably something something rails assets something something nginx and there will be tonnes of hits

alexlynham15:09:42

Years since I had to configure it tho :)

firthh15:09:13

nginx is all just regexes evaulated in order right?

alexlynham16:09:29

well... kinda yeah lol