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
djm 2020-10-26T06:48:35.271800Z

I've heard people calling for it to be abandoned, and people calling for it to be 2 hours, rather than 1

dharrigan 2020-10-26T06:54:58.272Z

Good Morning!

dharrigan 2020-10-26T06:55:47.272600Z

I think there are studies that show the shift in times causes adverse affects to physical and mental health

dharrigan 2020-10-26T06:57:42.272800Z

Clock shifts were found to increase the risk of heart attack by 10 percent,[92] and to disrupt sleep and reduce its efficiency.

dharrigan 2020-10-26T06:57:52.273Z

<https://en.wikipedia.org/wiki/Daylight_saving_time#Health>

djm 2020-10-26T07:27:30.274300Z

I think most people don't understand the benefit of it (it's just an annoyance for most of us!), whereas others are very grateful for it. A quick google search turned up https://www.scotsman.com/news/scottish-news/uk-faces-choice-between-time-border-or-darkness-scotland-until-9am-1555400

👍 1
djm 2020-10-26T07:28:13.275200Z

It seems like those in favour of DST are generally farmers (I think?), and those in (north?) Scotland

mccraigmccraig 2020-10-26T07:34:31.276700Z

why do farmers care - the only thing DST changes is what time the shops open relative to dawn, and i've never seen queues of farmers outside tesco first thing ?

djm 2020-10-26T07:41:09.277400Z

Hmm, maybe they don't, although I have always heard that it was for their benefit

djm 2020-10-26T07:41:29.277700Z

https://www.marketplace.org/2018/03/09/5-things-you-need-know-about-daylight-saving-time/ "Farmers hated daylight saving time. So much that they lobbied against it,"

thomas 2020-10-26T08:25:39.278100Z

morning

thomas 2020-10-26T08:26:19.278800Z

but cows milk themselves these days don't they? (with robots etc.)

mccraigmccraig 2020-10-26T08:27:26.279500Z

and robots all run on UTC (well i hope they do)

thomas 2020-10-26T08:30:31.279800Z

that would make sense

2020-10-26T08:50:01.280100Z

Interesting: > Daylight Saving Time was first suggested as a joke by Benjamin Franklin in his whimsical essay “An Economical Project for Diminishing the Cost of Light” published in the Journal de Paris (1784-04-26). Not everyone is happy with the results.

2020-10-26T09:06:37.281300Z

the clock changing is really handy for about 2 weeks; after that there is so little sunlight that it doesn't make very much difference

2020-10-26T09:09:44.284700Z

I've moved to a new machine that has 3 USB-C ports and not much else; one of them is taken up by a power cable, so in effect I've lost a port Trying to see if there is a USB-C hub, but a search brings up lots of devices with USB-B sockets and one USB-C plug Why aren't there multi-USB C socket -> USB-C plug adapters? is the spec not so amenable to daisy-chaining? am I looking in the wrong places?

2020-10-26T09:24:13.286Z

@ben.hammond I’ve not looked for a year; but every time I look I’m left with the feeling USB-C is a disaster, because of the absence of things like that.

2020-10-26T09:25:08.286800Z

Also there’s so many incompatibilities with USB-C stuff, you can’t just plug any USB-C device into another and expect it to work.

2020-10-26T09:26:08.287600Z

I’ve found issues even with various USB-C -> USB 3/2 converters

alexlynham 2020-10-26T09:28:06.287700Z

morning

alexlynham 2020-10-26T09:29:57.287800Z

yeah and you still have the power vs data cable issue too

alexlynham 2020-10-26T09:30:01.287900Z

like rick says, disaster

alexlynham 2020-10-26T09:30:21.288Z

i have TWO hubs on my usb-c macbook where the previous gen retina just had enough ports

alexlynham 2020-10-26T09:30:31.288100Z

it had hdmi, two usb, firewire, etc

alexlynham 2020-10-26T09:30:44.288200Z

and a separate magsafe

alexlynham 2020-10-26T09:32:22.288300Z

not sure if @mccraigmccraig was in the office the day my work laptop (non magsafe) got pulled off the side and landed on the floor.. .but i remember raging about the fact that it was a completely solved problem (w/ magsafe). that laptop had to have its screen replaced (luckily inside warranty) less than a mth later and im sure it was coz of that

2020-10-26T09:57:14.289800Z

ah well; sound like the solution is to stick with USB-B as long as possible and stock up on USB-socket -> USB-C plug adapters and hope for the best

2020-10-26T09:57:17.290Z

thanks

flefik 2020-10-26T10:08:35.291300Z

i’m experiencing lots of issues with USB-C chargers. My phone will only accept charge from a subset of chargers in the house. The macbook will accept charge from a different (but not disjoint) subset of chargers in the house. and other devices accept all chargers. confused

2020-10-26T10:41:20.291700Z

Morning

jiriknesl 2020-10-26T10:59:43.291900Z

Morning 🙂

dharrigan 2020-10-26T14:23:31.293900Z

anybody work with GIS data?

mccraigmccraig 2020-10-26T14:32:32.294600Z

i've done lots in the past @dharrigan, not for a few years though... @otfrom is maybe more current than me ?

mccraigmccraig 2020-10-26T14:33:09.295400Z

(although he's quit this channel so :man-shrugging:)

mccraigmccraig 2020-10-26T14:33:51.296300Z

what dyu need to do ?

dharrigan 2020-10-26T14:33:53.296500Z

My question may still be relevant 🙂 I'm looking to import the boundary of the UK (to determine if things are inside/outside of the UK). I've stumbled upon <https://geoportal.statistics.gov.uk/datasets/countries-december-2019-boundaries-uk-bfc>

dharrigan 2020-10-26T14:34:09.296800Z

Before I delve further....

dharrigan 2020-10-26T14:34:56.297500Z

I think it may be okay, it contains a shapefile

mccraigmccraig 2020-10-26T14:35:23.298Z

import those boundaries into PostGIS, then issue SQL queries is generally my favoured ad-hoc GIS query approach

dharrigan 2020-10-26T14:35:35.298300Z

yes, I am a fan of postgis too 🙂

dharrigan 2020-10-26T14:35:57.298900Z

However, for my purposes, perhaps if I just enclose the UK in a box with min/max lat/lng that may be good enough

dharrigan 2020-10-26T14:36:14.299400Z

it doesn't have to be super precise, just whether it's outside of the box

dharrigan 2020-10-26T14:36:35.299600Z

will play

alexlynham 2020-10-26T14:39:26.299700Z

@rickmoynihan might also have thoughts, assuming PMD/zib still does lotsa geo goodness

alexlynham 2020-10-26T14:39:42.299800Z

iirc back in the day a lot of it was using the geo tools in elasticsearch :thinking_face:

dharrigan 2020-10-26T14:41:51.301200Z

dharrigan 2020-10-26T14:41:52.301600Z

w00t

mccraigmccraig 2020-10-26T14:41:54.301800Z

elasticsearch is great for fast-as-f* online stuff... we used to use PostGIS for all our pre-processing and ad-hoc stuff, then load pre-processed GeoJSON objects (often at different resolutions) from pg into ES for the API to serve to web clients

dharrigan 2020-10-26T14:42:07.302100Z

that's the shapefile, converted, imported into postgresql then viewed using qgis 🙂

dharrigan 2020-10-26T14:43:02.302700Z

We have ES at work too, but tbh, I tend to go with PostgreSQL 🙂

dharrigan 2020-10-26T14:43:20.302900Z

(this is for batch, overnight work)