Fork me on GitHub
#clojure-uk
<
2016-07-12
>
martintrojer07:07:27

New github font, my life will never be the same

glenjamin07:07:42

i changed it back via userstyles

glenjamin07:07:13

-apple-system seems like a terrible font choice, at the size they used it looked like it had gigantic letter spacing

paulspencerwilliams07:07:47

Question to start the day off. I'm writing a little CLI utility and want to output graphs as images - SVGs, PNGs, whatever really. Any recommendations as to best libraries etc to use? Most of my graphing has been with HighCharts on the web, but I specifically don't want this web enabled at present.

martintrojer07:07:31

Clojure+JVM+CLI = facepalm

martintrojer07:07:47

Life is too short for those startup times

paulspencerwilliams07:07:55

Well, the CLI would actually work on a scheduled basis rather than on demand.

thomas08:07:57

no idea if you can write to a file though.

thomas08:07:21

and I solved my Compojure POST problem… that bit is now working. Thank you all.

stathissideris08:07:15

@paulspencerwilliams: dali writes to files, but it provides the most help for diagrams, not so much graphs. So no facilities for axes, scaling of data etc. It's not a d3 replacement

korny08:07:34

@paulspencerwilliams: I’ve done a fair bit of shelling out to gnuplot - it’s such a simple format you don’t really need a library

korny08:07:50

and gnuplot is extremely configurable, if a bit old-school 🙂

korny08:07:42

Hmm - I was going to point to how aphyr does this in jepsen, but it seems he’s extracted it to a library: https://github.com/aphyr/gnuplot

korny08:07:10

"A really simple Clojure interface to Gnuplot. Useful when you just wanna plot some points. A lot of points. More points than Incanter or Analemma can reasonably handle."

korny08:07:00

You obviously get the gnuplot binary as a dependency, so it’s not useful for lots of use cases - it’s quite nice for server-side graphing when you control the server (and it’s a unix server 🙂 )

paulspencerwilliams08:07:09

Cheers @korny I was hoping for a pure jvm style approach tbh and won't need vast amounts of points but I'll have a play.

korny08:07:45

Cool - gnuplot is not so applicable then. Myself, if I want a quick pretty graph I usually end up spitting out some JSON and then using a web browser and D3

korny08:07:10

but analemma does look neat too.

dominicm09:07:21

@paulspencerwilliams: You could possibly switch to planck once stathis has added cljs support. That would make the cli a lighter load.

dominicm09:07:25

Oh, I was scrolled up. Or any other library which has cljs support 😛

paulspencerwilliams09:07:27

@dominicm: good call on plank. There will eventually be another on demand cli that pushed data into a db, and won't need graphing etc. Plank would be ideal for that.

martintrojer09:07:44

Man, UK summers. Is there anything more depressing?

thomas09:07:29

@martintrojer: Don’t ask questions like that…

thomas09:07:37

very dangerous 😉

martintrojer09:07:11

well, there is the next decade in the UK. Almost as pitch black.

thomas10:07:57

true… when will May press the button?

korny10:07:48

It’s quite nice here (near westminster) - is it miserable elsewhere?

korny10:07:12

I still quite like the fact that you never have to try to sleep when it’s 38 degrees at 3am… 🙂

mccraigmccraig11:07:47

it's miserable at euston, even by euston standards

dominicm12:07:57

It's okay in Leicester.

dominicm12:07:17

Cloudy, but warm enough

thomas14:07:31

We had some rain earlier today… but dry at the moment. no idea what the temperature is out side though.

korny14:07:35

Now it’s bucketing down. 😞

glenjamin14:07:17

still nice in Sheffield ☀️

korny14:07:44

Could be worse - they’re forecasting snow in Melbourne tonight

glenjamin14:07:17

in Melbourne?

glenjamin14:07:26

I thought it didn’t snow south of Ballarat

xlevus14:07:18

Snowed in Melb last year I think

korny15:07:09

It’s extremely rare. Snows on the hills every few years, I’ve seen snow fall in the suburbs, but never seen it actually on the ground. You get a fair bit of hail sometimes, though

thomas15:07:50

we had hail in August here in Hampshire a few years ago.. really weird