Fork me on GitHub
#clojure-uk
<
2016-12-13
>
jasonbell08:12:32

Didn’t realise there was an update mailing list called The Repl.

thomas09:12:36

just been chasing a red herring for several hours... 😡

dominicm09:12:26

🍰 🎉 MORNING!

korny10:12:02

Our delivery project went live yesterday at 1:25am :-)

thomas10:12:39

wooohoooo @korny!!!! Congrats for the family!!!

thomas10:12:44

All doing well?

agile_geek10:12:23

Congratulations. Your life long journey of wonder, delight....and absolute frustration begins here 😉

agile_geek10:12:49

P.S. Cool name!

korny10:12:49

All well - Becky lost some blood and needed a transfusion, so we're still in hospital, but hopefully going home today.

korny10:12:09

Sleep deprivation, though, that's already lots of fun!

agile_geek10:12:12

It gets worse before it gets better...although the delirium that accompanies it can be quite a high!

dominicm11:12:15

Fuck me. The compete idiocy. Nothing but a bad time this last 5 weeks.

dominicm11:12:52

10 weeks is a good turnaround for a house already wired up, what absolute nonsense.

dominicm11:12:43

I wish I had another choice. Can someone break the monopoly they have please?

thomas11:12:52

@dominicm that is very poor indeed.

minimal11:12:39

but they said it will be here before you know it and used a smiley

dominicm11:12:55

It implies they think 10 weeks is good

minimal11:12:20

complete disconnect between the twitter account and reality

minimal11:12:39

I was lucky in april, was only about 2 weeks to install

dominicm11:12:06

It took me calling 8 times over a period of 2 weeks to get my account opened. 2 weeks after that they came to install. They seem to have gone to the wrong cabinet, they used that to say that I'm not covered (the cabinet is over the road from my house, and they drove off, definitely gone to the wrong place) Then my account was closed, without me being informed, and wires have been left hanging out my wall. I rang up saying "well, noone has contacted me, what's up?" and they told me the account was closed, and that accounts would call me. Still no call.

dominicm11:12:19

Girlfriend was in tears yesterday. And that's the current point in the story.

dominicm11:12:38

Currently getting in touch with our local office, seems that this is a common occurrence in the Coventry area.

dominicm11:12:04

Apparently they wired up a house down the road, even though it already had internal wires. So they have black wires running all over the wall/ceiling now.

glenjamin11:12:31

is it virgin themselves who do it, or contracted out? I know Sky were in-housing these sorts of things to try and avoid such problems

dominicm11:12:20

Seems to be in-house. All virgin branded techs & vans.

dominicm11:12:27

Split over several internal teams.

agile_geek12:12:20

I had an advantage that my area had cable when the houses were built then about 15 years ago virgin put fibre through the whole estate and I wasn't using it for several years so when I started all they had to do was run line from bottom of my garden and tweak cabinet at end of street. Took them about 30 mins.

thomas12:12:12

hmmm my if nil seems to get evaluated first time round to true... second time round to false... :thinking_face:

mccraigmccraig12:12:33

@thomas it's literally if nil ?

thomas12:12:31

I think so...

jonpither12:12:14

some Vim love

thomas12:12:52

I had a if-let before... but trying to get close to the problem I wanted to print out answer closer to the if.

dominicm12:12:40

@agile_geek They've done that in my estate (my house was finished a couple weeks ago!). They just seem deeply confused about it…

thomas12:12:52

when I first load my page (or do a reload) I get the froala editor. I then go somewhere else.. come back and I get the disabled textarea... no change in state though. atoms all stay the same.

mccraigmccraig13:12:16

and when you come back you get the answer : nil line in the console ?

thomas13:12:06

yes... but first time round as well... it never changes.

agile_geek13:12:34

I would replace that ^{:key "froala-view"} line with a div so you can debug

agile_geek13:12:08

Simplify rendering so you can see what's going on

thomas13:12:27

let me give that a try @agile_geek

thomas13:12:48

good idea @agile_geek it does seem to take the correct branch in the if statement (not really that surprising...) but it renders the wrong html for some reason.

thomas13:12:11

no idea yet why this is the case though....

agile_geek13:12:11

It will be something to do with the froala editor thing bootstrapping itself using js

agile_geek13:12:27

I've no idea what it does mind

dominicm13:12:04

If you're using external js, you sometimes have to have custom componentDidMount lifecycle methods

thomas13:12:44

I think we have something like that...

thomas13:12:09

oohhh..... the joys of fixing someone else's code....

thomas13:12:51

but thank you lovely people!!! you are all a great help with my adventure as a professional Clojure developer!

mccraigmccraig13:12:23

anyone have an opinion on current clj kafka clients ? is franzy the way forward @otfrom ?

jasonbell13:12:16

@mccraigmccraig what version of Kafka?

agile_geek13:12:48

Only used Kafka from Java...so I'm worse than useless! 😉

mccraigmccraig13:12:12

@jasonbell we're using kafka 0.10... our onyx is using franzy 0.1 and our api clj-kafka 0.3.4

jasonbell13:12:41

Kafka 8 > use clj-kafka, 9 -> Franzy

jasonbell13:12:53

Not sure either are supporting 10 to be honest.

jasonbell13:12:17

I did a streaming example on the blog last week for K10 but that was just Java interop

mccraigmccraig13:12:19

both onyx (consumer) and api (producer) have been working fine for a good while against 10 - we encountered a bug in 9 iirc which went away with 10

jonpither13:12:54

getting mildly excited about packer

jonpither13:12:00

build & deploy AMI images instead of jars etc

thomas13:12:54

sounds very interesting @jonpither let us know what your experience it.

korny13:12:38

I've known a project that used packer heavily - all machines were built with puppet + packer into AMIs, and then deployed via terraform. (I wasn't directly involved with that area, but I gather it went quite well)

jonpither13:12:27

will do. Will try and blog the final experience of terraform+packer+vagrant (not sure if Puppet will feature)

jasonbell14:12:38

@mccraigmccraig cool, that’s handy to know on the Kafka10/Onyx front. Thanks for the info.

otfrom14:12:59

mccraigmccraig what jasonbell said

glenjamin15:12:43

I've used packer a bit for building base images, worked reasonably well

glenjamin15:12:59

I still think build-speed for an AMI is far too slow 🙂

Rachel Westmacott15:12:01

is it more or less an alternative to docker?

Rachel Westmacott15:12:37

coming from the Java world, I’m not quite sure what the advantage is to containeristion, other than consistency with everyone else

Rachel Westmacott15:12:28

i.e. an uberjar seems to get you 90% of the way there

dominicm15:12:44

@peterwestmacott It's basically to minimize dependency version mismatch (e.g. java version) and also global configurations (e.g... some kinda JVM_USER setting?)

dominicm15:12:56

Java is fairly well contained by itself.

dominicm15:12:19

The other benefit (though, I think this applies better to AppC format rather than Docker) is that it makes a good portable hosting target.

thomas15:12:34

Re my problem earlier on... something is manipulating the DOM directly (looks like the Froala editor we use, and it in turn messes aroudn with jQuery 😡 ) I can't see the entries in the React DOM, but I can see them in the real DOM. more rage3

dominicm15:12:35

@thomas Working with "normal" js from react is frustrating.

dominicm15:12:43

Because of updates & teardowns.

thomas15:12:39

@dominicm it is indeed... I am sure one day I'll get to the bottom of this... but probably not today.

glenjamin15:12:22

dialog is pretty much the worst-case one to handle

glenjamin15:12:51

most of the time you can use an empty <div> in render with a callback-ref and sync data in didUpdate and you’ll be fine

dominicm15:12:06

Portals are so easy though. And worth it in case 1% of the time it's going to do some DOM manipulation without your awares

glenjamin15:12:19

mm, depends on what you’re pulling in

glenjamin15:12:33

the example where he uses willReceiveProps should really be didUpdate though

glenjamin15:12:53

that way you can still use shouldComponentUpdate

dominicm16:12:19

I wouldn't be surprised if that was a distinction chosen on purpose. shouldComponentUpdate isn't appropriate for a lot of the more exotic jQuery interactions.

thomas16:12:57

thank you @dominicm I'll have a look... tomorrow 😉