Fork me on GitHub
#clojure-uk
<
2019-01-15
>
jasonbell09:01:42

Morning friends.

👋 15
maleghast09:01:34

Morning All!

maleghast09:01:06

Has anyone seen the Gilette Ad..?

maleghast09:01:43

I loved it, but my goodness me, the comments on youTube give NEW MEANING to "don't read the comments"

thomas09:01:34

I heard about it... and the fact that Pierce Morgan is giving up on Gilette is enough for me to go back.

maleghast09:01:27

I am too beardy for Gillette but I like their style on this one

thomas09:01:54

maybe use one to cut up a picture or P. Morgan?

thomas09:01:07

seems appropriate.

jasonbell10:01:17

Gillette winning an ad auction to show an ad to @maleghast gives me the impression the algo needs some more work 🙂

maleghast10:01:07

Hahaha @jasonbell I was sent a link by a friend!

maleghast10:01:22

(was not a "pushed" ad)

jasonbell10:01:37

I was only jesting… 🙂

thomas10:01:44

well... maybe Gilette things he could use one!

otfrom10:01:06

if only Gillette wasn't so problematic in other areas (like animal testing)

jasonbell11:01:12

never knew that

otfrom11:01:23

a bit unclear if that has gotten better or not

otfrom11:01:30

the advert is good

maleghast11:01:03

Procter and Gamble have (bad) form for animal testing and other issues too, but they are hard to avoid... I don't know if this is part of a wider move towards better governance in general, but in and of itself I like it 🙂

otfrom11:01:48

they get called Proctor & God for a reason

thomas13:01:02

so... who will be watching telly tonight and follow the proceedings in Westminster?

maleghast13:01:19

@thomas - I can't... I am oscillating between incandescent with rage and scared / sad and in need of a good cry 😞

thomas13:01:20

yup... I know that feeling.

alexlynham13:01:47

:poop:➡️ fan

😰 5
otfrom13:01:19

I think tonight will leave us much in the same place we were before: no agreement and no obvious way forward.

thomas14:01:42

hmmm so my prediction was that the vote today would fail... the market would respond so badly that after a few days they try again and just make it...

thomas14:01:04

but having just looked at the ftse100 it isn't doing too badly at the moment... and surely everyone knows the deal will get voted down so the market has plenty of time to anticipate the outcome. it won't be a surprise.

thomas14:01:26

very complected... if only they had used Clojure.

alexlynham14:01:18

> but having just looked at the ftse100 it isn't doing too badly at the moment... and surely everyone knows the deal will get voted down so the market has plenty of time to anticipate the outcome. it won't be a surprise. a lot of companies that aren't already making contingency plans are in denial AFAICT

alexlynham14:01:19

& remember the markets didn't anticipate or price in either the 2008 crash or brexit

3Jane14:01:51

companies are headed by people

3Jane14:01:56

(a number of) people voted for brexit

3Jane14:01:45

=> (a number of) companies are headed by people who believe brexit is a good thing / is going to improve things

3Jane14:01:17

=> why’d they make contingency plans?

thomas14:01:41

I agree that the markets didn't anticipate 2008 crash or brexit... that last one though is partly because the prediction was remain for a long time.

dotemacs15:01:41

I love these Clojure discussion. That said, from the people that are pro Brexit, that I’ve spoken with, they are aware that things will go down initially. But are hoping that they will bounce back after a short drop.

jasonbell15:01:25

@thomas The markets ignored the fact the markets would crash, the warning signs were there from 2002 once the US had bailed the Valley to stem the flow of the dot com crash.

thomas15:01:13

markets are far from perfect.

jasonbell15:01:31

It was a rare event but it was always there, then the mortgage self certs went through the roof. That only made things more shaky.

practicalli-john15:01:37

17 more Marks & Spencer shops closing 😞

practicalli-john15:01:15

around 100 M&S shops going eventually

thomas15:01:36

not surprising, to be honest... hardly ever went there... maybe some food occasionally.

otfrom15:01:25

part of the reason the FTSE stays up is that the assets are held in dollars but the FTSE is priced in pounds. So the pound going down is keeping the FTSE up

👍 5
thomas15:01:30

that is a good point.

practicalli-john16:01:32

rather than thing of the impending doom... for those in London, join me at the code dojo at Signal media offices tonight. It will be warm and there will be food 🙂

👍 25
😄 5
thomas16:01:01

best advice I heard all day... amen

maleghast16:01:45

Would love to @jr0cket but I have to and look at a room... Have a good dojo!

practicalli-john16:01:36

@maleghast you can come and live in my house, I am sure the cats will like you 🙂

thomas20:01:30

so I have a map where one of the values happens to be a byte-array... but in my deftest it fails the ( is (= map1 map2)) even though the two arrays have the same values in them....

thomas20:01:02

I suspect the problem is that the two arrays are java arrays.... but how to solve it?

mccraigmccraig20:01:33

@thomas you can call seq on a java array

mccraigmccraig20:01:19

(seq (byte-array 5 [0 1 2 3 4]))

thomas20:01:39

aah ok... that might do the trick... let me try

mccraigmccraig20:01:03

huh, clojurebot is very slow tonight... slack told me the command had failed

thomas20:01:54

yup, that does the trick.. thank you @mccraigmccraig!!!

👍 5
rickmoynihan09:01:54

yeah generally mutable objects aren’t values… though specifically here it’s also because a java array’s .equals compares pointer references, so arrays are only .equals if they’re the same reference. To do an equality check on arrays in java you need to do Arrays.equals(a1, a2). Clojure collections use .equals for equality checks. So you need to seq them first.