Fork me on GitHub
#clojure-uk
<
2018-02-16
>
jonpither08:02:46

Morning 🚆

otfrom09:02:44

drat @yogidevbear got it today. 😉

yogidevbear18:02:26

@otfrom I have a 5 year old and two dogs under 3 years old. I'm at a distinct advantage here 😉

otfrom18:02:42

I have an anthropologist who is doing the early shift atm. I got a rest this morning. It isn't as relentless as yours situation. 😄

yogidevbear18:02:08

Wondering what a morning shift for an anthropologist entails

aleksander11:02:33

hi @thomas I swear I was part of the channel before!

aleksander11:02:41

morning everyone 🙂

maleghast12:02:18

Morning everyone - from Arch!

maleghast12:02:11

Any Archies out there prepared to share easy-to-follow guides to setting up wireless networking connections to be more convenient than:

ip link set dev [devname] up
wpa_supplicant -B -i [devname] -c /path/to/config
dhcpcd [devname]
every time I boot..? (I am using KDE, please don't all signal your disgust at once 😉 )

maleghast12:02:02

i am enjoying it much more than Ubuntu already, even with the overhead / learning curve

jarohen12:02:04

I use netctl-auto, if that helps

maleghast12:02:10

and i've only burned a day

maleghast12:02:19

thx, will Google it

jarohen12:02:30

there's a good article on archwiki, iirc

maleghast12:02:02

I am loving Arch, I am not loving__ the wiki

maleghast12:02:42

there's a lot of information, but a severe lack of "howto" type articles that take you in one page from "I need..." to "Yay it works!"

jarohen12:02:26

newbie corner is usually pretty good (even after using it for a few years!)

maleghast12:02:28

There's a place on the ArchWiki called Newbie Corner?

jarohen12:02:10

not sure if it's on archwiki or just a related forum

maleghast12:02:28

That's kinda what I am talking about... The Arch project desperately needs an IA to sort out there knowledge store... I've been reading the Wiki on and off for about a year getting ready for this change and intensively for 2 days and I had no idea that there was a Newbie Corner

jarohen12:02:54

NetworkManager might be worth a shot, as well, given you're using KDE

jarohen12:02:19

might be quicker to configure, has a GUI, etc

maleghast12:02:05

OK, will look at that too - I tried to just use the KDE System Settings stuff, but it's not got any functionality to create connections, just work on them once they are created.

jarohen12:02:47

yeah, just re-reading the above. good once it's all working, but strewth, there's a lot to figure out 😕

maleghast12:02:37

Quick question, do I need to kill my current connection to make a new one with NetworkManager?

maleghast12:02:04

i.e. I have a Wireless network connection at the moment, hence talking to you, but if I try and create another one on the same WiFi network...

maleghast12:02:31

(I also realise that I have no idea how to kill my wpa_supplicant / dhcpcd based connection without powering off)

jarohen13:02:00

idk, I'm afraid 😕

jarohen13:02:56

with netctl, it manages the different connection profiles, so I run something like sudo netctl switch-to <new-profile>

maleghast13:02:31

No worries 🙂 I've installed NetworkManager and I already had the Plasma plugin (plasma-nm), so now it's just a case of figuring out how to run it..

jarohen13:02:30

there's always the nuclear option of ifconfig <network-interface> down, then maybe NM will start it back up if it can see that it's down? just a guess, YMMV

maleghast13:02:40

fingers crossed

bronsa13:02:43

I personally use wicd

bronsa13:02:55

and not worry about having to configure anything

maleghast13:02:14

@bronsa - Is that on Arch?

maleghast13:02:51

I am currently rebooting as NetworkManager is all installed and started but it can’t seem to deal the deal with connecting to my WiFi

bronsa13:02:06

i’ve always found networkmanager to be unnecessary complex

bronsa13:02:07

and unstable

bronsa13:02:11

but I haven’t used it in a few years

maleghast13:02:23

I am wondering if it’s ‘cos I didn’t kill my wpa_supplicant connection down first

maleghast13:02:12

Yeah, that looks like it was it - totally stable, lovely Wifi connection now.

danm13:02:06

Argh, it's late Friday and my brain is melting

danm13:02:25

What's a nice threaded way of returning nil if a map doesn't contain a specific key

danm13:02:03

i.e. I have a single may that goes through several update operations in a thread, then finally if key X has been set to nil by one of the updates, I want to return nil overall instead of the map

maleghast13:02:18

@carr0t - I like the usage / idea, but i've never done that, so I am afraid I have no idea... I am going to watch to see how people suggest solving it, though, so thanks 🙂

danm13:02:03

Frustratingly, I know we've done it before but I can't find the example now

danm13:02:13

It may have just been an additional function we call in the thread

Sam H14:02:00

I’d probably just do it with an additional function as you’ve said.

(defn map-or-nil [m]
  (when (get m :required-key)
    m))

guy14:02:25

Do you mean like with some-> ?

jarohen14:02:15

maybe as->, if you want to stay in the thread?

jarohen14:02:30

something like (-> {:a 1 :b 2} (...) (...) (as-> m (when (contains? m :c) m)))

thomas14:02:23

FYI looks like http://onthemarket.com in Ldn is looking for people. I got two emails today already from recruiters.

maleghast15:02:23

raises eyebrow

maleghast15:02:40

@thomas - Are they growing or do they treat their people badly..?

thomas15:02:55

no idea.... the email I got suggested they are growing. I went there for an interview quite a few years ago. Looked like a good organisation. The juxt folks started the Clojure project there several years ago.

jonpither15:02:12

Yup was there..

jonpither15:02:33

Had a good year, built some good things I believe.

maleghast15:02:45

@thomas - Yeah I know that the Juxt guys got the ball rolling, but I also know that they are not involved anymore and i was wondering if the hiring was because they now treat their devs badly and so people leave or whether or not they were growing; makes a big difference as to whether or not it's a good prospect... 😉

maleghast15:02:18

(kinda academic as I am not looking to change jobs right now, but you never know...)

otfrom18:02:35

let's see if it actually turns into something that makes my design cleaner tho 😉

mccraigmccraig21:02:22

what was the learning @otfrom?

otfrom21:02:22

Just the basics really. Trying to get my head around mult, reduce, and when channels close.