Fork me on GitHub
#clojure-uk
<
2019-04-10
>
rickmoynihan08:04:35

😢 When you crash your Emacs by C-u M-x evaluating an s/exercise call that inserts 10mb of syntax-highlighted EDN into your code buffer.

rickmoynihan08:04:15

Must remember to set a smaller max-depth before I do that on a recursive tree spec again

maleghast08:04:50

Hello All - A very good morning to you!

guy08:04:02

The only sad thing i found about emacs was how it handled xml in the repl

guy08:04:08

It always seemed to crash for me

guy08:04:16

(with large files ~1mb+)

guy08:04:20

and morning all!

rickmoynihan08:04:51

([{:./+ #{:Z/- :+/X :j/- :y/Q}, :f/S #{:C/W :-/i :V/n :o/C :+/T :i/G :T/f :+/t :F/p :confused:? :!/V}, :!/I {:h/q {:*/D #{:n/g :y/w :x/? :q/x :y/s :z/b :x/B :T/t :y/u :C/. :./r :-/B}, :+/X {:t/_ {:C/! #{:t/e :s/p :!/L :b/_ :?/- :_/g :-/k :+/- :l/? :v/g :F/*}, :u/w #{:D/U :+/E :f/G :F/P :g/- :?/p}, :./+ #{:F/N :X/X :F/!}, :confused:. #{:T/j :X/I}, :S/E #{:*/T :_/? :B/.}, :V/e #{:J/O :B/o :u/! :U/? :U/H :c/_ :k/T :-/x :k/U :-/- :Y/E :+/l :q/w :+/? :+/_}, :D/k #{:Z/A :l/J :N/. :p/c :W/P :o/b :G/l :t/Y :I/L :*/. :./x :L/I :t/U :_/? :O/* :B/h :./* :h/e :b/X}, :+/v #{:./+ :D/_ :+/j :*/z :!/* :_/- :A/J :O/! :S/i :-/x :i/. :V/V :d/? :v/t :I/- :I/U :I/k :+/q :?/!}, :y/Z #{:k/n :u/b :*/Z :s/E :-/X :+/a :_/D :W/K :?/? :Q/Q :_/G :g/+ :v/g :M/e :M/J}, :B/p #{:c/W :Q/V :E/- :v/_ :a/j :d/c :w/l :G/? :!/x :T/A :l/? :L/_ :*/b}, :j/H #{:S/e :e/O :Q/z :./T :*/j :r/. :g/I :*/. :U/m :a/c :k/U :*/o :U/E :?/a :e/q}, :c/x #{:./s :L/i :?/A :Z/o :j/p :z/r :A/D :*/A :+/A :d/P :!/d :./- :+/s :I/+}}, :./J {:X/w #{}, :J/+ #{:j/* :r/p :+/+ :_/Q :?/F :Z/r :t/! :w/r :k/t :N/* :a/G :!/. :+/- :V/. :./? :l/e}, :W/N #{:_/? :Z/i :-/o :E/p :N/n}, :_/c #{}, :_/h #{:n/+ :_/D :q/! :c/x}, :s/* #{:L/h :l/J :!/r :!/s :S/g :N/I :B/? :G/W :Y/* :F/- :+/v :W/s :n/o :O/F :X/v :r/? :z/.},,,,,,

guy08:04:17

you made a crossword! woop woop 😄

rickmoynihan08:04:34

Indeed. (s/def ::three-down (s/coll-of keyword? :kind set?))

😄 4
maleghast09:04:37

:flag-gb: Cervest Ltd has another role going live today -> https://cervest.earth/job-description-junior-platform-engineer/

otfrom11:04:35

big files aren't that big of a problem. big lines definitely are

jasonbell12:04:10

@bronsa It’s the help button 🙂

bronsa12:04:18

this is a game changer

jasonbell12:04:29

that tells you all key bindings are, handy

bronsa12:04:09

I've always used the standard C-h m

bronsa12:04:17

but this dwim help is much better

rickmoynihan12:04:30

The only problem I have with magit is that the speed and muscle memory you develop can sometimes lead you to making mistakes you wouldn’t otherwise if you had a slower workflow e.g. accidentally pushing code to the wrong branch

maleghast12:04:26

@rickmoynihan - That right there is why I context-shift out of Emacs / Vim / whatever I am using and switch to a plain terminal to do my Git stuff.

bronsa12:04:18

if anything magit helps me prevent doing that tbh

otfrom12:04:57

terminal git? heavens no. I couldn't even use git w/o magit

danielneal13:04:43

especially for the complicated stuff, rebase, autostash, make a spin off branch etc

👍 4
danielneal13:04:24

I meant P -f p, not P -f u oh shit

rickmoynihan13:04:59

I think it both helps and hinders it… It helps through better feedback and generally making it much easier… but it also makes the more complicated multi-step things so quick that your autopilot accidentally does the wrong thing. So I have to consciously slow down in those situations

guy13:04:37

🤷 its worth if it you use emacs i guess

guy13:04:44

my colleges say its super useful

guy13:04:15

the flip side is, if you’re already efficient with what you are doing, it might not be worth learning it, depends on your circumstances 😄

maleghast13:04:45

Well, I do use Emacs but I've always done Git on the command-line

guy13:04:01

then i would give it a crack yeah 😄

guy13:04:13

might take you a week to get used to it?

maleghast13:04:27

That's not so bad...

guy13:04:39

also you can ask in here for help too

rickmoynihan13:04:40

rebase interactive is so, so, so, good in magit

guy13:04:48

yeah i’m jealous of that haha

solf13:04:10

probably less than that, one of the good things about magit is how good the discoverability of it's UI is

guy13:04:11

as far as i remember you even make a pr from magit too?

solf13:04:24

there's a magit plugin that does that

solf13:04:27

but not natively

rickmoynihan13:04:16

there’s a new official magit forge-mode that integrates with github issues, PRs etc… and I believe other git services

jasonbell13:04:42

must take a look at that.

maleghast13:04:25

Anyone ever had to read-in / consume a Shapefile in Clojure..?

dominicm13:04:03

What's a shapefile, sounds interesting

maleghast13:04:10

TLDR; I need to convert Lat/Lon to WRS-2, and I have the Shapefile for WRS-2

maleghast13:04:34

Shapefile -> standard format for describing GeoSpatial forms / shapes

maleghast13:04:09

@jasonbell - Thanks, looking now...

jasonbell13:04:03

It may not have exactly what you need, it was a long ago. But it will get most of the heavy lifting done for you. More Java interop 🙂

jasonbell13:04:48

Named after Tina Weymouth so it gets my vote….

rickmoynihan14:04:00

@maleghast: take a look at geotools… ahh I see jasonbell pointed you at more-or-less that

mccraigmccraig15:04:33

hmm. that should be JUPGIS - (as in Just Use PostGIS)

maleghast15:04:46

That's better...

maleghast15:04:38

Insert the Shapefile I have as a postgis table / db and then write a re-usable SQL query and *boom*

maleghast15:04:07

(have I understood correctly?)

mccraigmccraig16:04:22

@maleghast roughly - and PostGIS has conversion and handling functions for just about every geospatial co-ordinate system

maleghast16:04:36

Does it have Lat/Lon to WRS-2?

mccraigmccraig16:04:19

it doesn't need particular conversions iirc - it just needs the metadata for each system and will figure out the conversion for any pair of systems it has metadata for

mccraigmccraig16:04:15

i don't have a PostGIS install to hand - if you look in the PostGIS tables it's pretty easy to figure out if it has a particular co-ordinate system

mccraigmccraig16:04:18

and unless it's a very odd one, it will have it - it's got hundreds of them

maleghast16:04:51

okie dokie - thanks!