Fork me on GitHub
#off-topic
<
2018-03-08
>
justinlee00:03:45

there are advantages to being a little off the radar, however: https://github.com/tc39/proposal-flatMap/pull/56 🙂

artenator01:03:26

has anyone run into the issue with multiple-cursors for emacs where they cannot type forward slash?

richiardiandrea03:03:48

There is an #emacs channel but personally I haven't noticed it, will try that

pooboy09:03:40

user=> (.(Random.)nextInt(100)) ClassCastException java.lang.Long cannot be cast to clojure.lang.IFn user/eval150 (NO_SOURCE_FILE:4)

pooboy09:03:59

Im trying to use the Random class

pooboy09:03:28

I did (import Java.util.Random)

pooboy09:03:36

But I'm getting the above error

rauh09:03:57

@suryapjr Use (.nextInt (Random.) 100)

pooboy09:03:45

@rauh... Thanks !!

rauh09:03:52

Or (. (Random.) (nextInt 100))

rauh09:03:02

or (.. (Random.) (nextInt 100))

pooboy09:03:18

There are multiple ways ❤️

pooboy09:03:58

Loving clojure

pooboy09:03:16

What's the .. for in the second answer

reborg09:03:05

also (rand-int 100) no interop

rauh09:03:50

@suryapjr The .. is a macro that expands to nested ., allows you to write ojb.foo().bar().baz() in clj: (.. (Random.) ints (limit 10) count)

pooboy09:03:55

@rauh cool...thanks !

yogidevbear12:03:31

Hello beautiful people 🙂 Does anyone here have a pro account for http://egghead.io or http://thinkster.io? I'm thinking of getting an account for one of them, but want to get opinions of each from people using them before making a final decision.

sundarj12:03:41

i've had an http://egghead.io pro account before. no complaints, works pretty well, and you can download videos off it

dpsutton19:03:54

who puts on the apropos video? is that you doing it, @mfikes?

ajs20:03:54

i've got a basic statistics question that is confusing me. Taking all the numbers in the range of 1 to 100, all my calculations come up with a standard deviation of about 29. But this means that the range of numbers in the first standard deviation are about 21 to 79, which is about 58 numbers. 58 numbers out of the range of 100 numbers is 58%, but the contents of the first standard deviation is supposed to be 68%. Any idea what I'm doing wrong?

orestis22:03:50

I’m no statistician, but aren’t there some constraints required on the data before you can claim the 68% figure? I think they have to follow the Gaussian distribution?