Fork me on GitHub
#clojure
<
2018-11-06
>
mfikes01:11:03

@slipset Dang, in ClojureScript, you can get away with (keyword nil :user/foo); my friend Hyrum showed me this.

🐼 4
andy.fingerhut01:11:25

Hyrum is such a jerk sometimes 🙂

emccue02:11:52

welp (cracks knuckles

emccue02:11:58

time to publish a package

didibus05:11:53

It be nice if instead of using rlwrap, clj used rebel-readline. That would prevent the need for having rlwrap separately installed, and would just be in general a superior readline experience

didibus05:11:32

I know you can do it with an Alias. Just saying, if you're going to depend on another tool with a different license, why not depend on a rebel-readline as default instead

didibus05:11:59

One which clojure can pull on its own at that, so it doesn't even have to be installed

seancorfield05:11:02

It's been discussed. There just aren't the right hooks to enable it right now, as I recall the discussion...

didibus05:11:40

Hum, interesting. Wonder what can be missing, since you can right now start it given an alias.

seancorfield05:11:59

It doesn't run the same way as the built in REPL.

seancorfield05:11:05

Bruce and Alex have talked about it a few times. Can't remember which channel.

jwhitlark06:11:36

@seancorfield I've been looking at extending clj-new.generate. make the defn able to handle specifying args, docs, body, etc. generate yaml and some other stuff. Do you think it could grow, or should I be looking somewhere else?

jwhitlark06:11:51

drat. missed him.

didibus06:11:18

I wonder if it could be related to the passing of arguments

didibus06:11:29

Hum, or I guess rebel readline does need to bootsrap itself with its own main class, and maybe kicks off its own repl. Anyways, hopefully it could eventually be leveraged.

didibus06:11:43

Its a much improved experience

didibus06:11:09

To be the first thing you get when you first try Clojure, it would be pretty impressive

seancorfield06:11:12

@jwhitlark I'm still here. It's early here in CA 🙂 I'm open to PRs on that, for all sorts of stuff.

cfleming07:11:09

@fastcarguy4 Please don’t at-everyone, you just pinged 14,000 people

simple_smile 12
rhansen07:11:21

This also happened in elixir and elm slack

munen07:11:35

And he's asking if we need help with coding Java (according to Google Translate).

Ajay07:11:39

help pls?

michael_teter07:11:46

you just asked for help coding java

munen07:11:54

@fastcarguy4 This is not the right channel for asking for a coding gig.

christos07:11:24

especially in java ?

tanayseven07:11:46

Excuse me please ban such racist people from the Slack team.

amarjeet07:11:55

Vivesh Siddharthipor and Vikram Banerjee seem to be bots - they joined the channel together - should be blocked. (Update: they have updated their names and profile pics by coping other users name and pics)

tanayseven07:11:21

Please block them right now, whoever has admin right.

christos07:11:33

looks like hes is not a bot

munen07:11:58

Doesn't matter. He started swearing and calling 14k people white idiots.

michael_teter07:11:04

This is the wrong channel to ask for Java help

munen07:11:05

Vote to kick-ban.

👍 12
tanayseven07:11:31

@munen how can we vote to kick-ban?

munen07:11:20

There's no built-in way. Only an admin can do it.

munen07:11:31

Just leaving a little bit of breadcrumbs for the next admin to read the thread.

christos07:11:34

I concur it was a racist comment

michael_teter07:11:40

google? google for java forum

amarjeet07:11:51

@seancorfield should help i believe as an admin

macalimlim07:11:28

how the hell did that bot got in?

levitanong07:11:17

I don’t think that’s a bot…

cmdrdats07:11:28

:face_with_rolling_eyes:

amarjeet07:11:42

Looks like some coordinated (human or bot) time-waste attack goin on here - New person Shekhar just joined

munen07:11:46

I'm muting this channel until an Admin has this under control. Imho we shouldn't give these people any more attention by answering or anything.

👍 48
leonoel07:11:00

looks like a bot to me

🤯 4
macalimlim07:11:30

bot or not, please ban this idiot!

Ajay07:11:42

@seancorfield @robert-stuttaford @martinklepsch couple of accounts need blocking here

👍 28
seantempesta07:11:57

And maybe disable everyone messages?

cfleming07:11:53

I’ve pinged the mods.

tanayseven07:11:47

Or you can just but by typing /mute

Ajay07:11:21

Please beware - he just copied my picture and name

tanayseven07:11:34

We can see that.

Ajay07:11:31

What should I do?

cmal07:11:07

It is a day which make people depressed.

martinklepsch08:11:41

Blocked one user but it’s a little hard tracking users down. If you can provide they exact usernames please send me a DM

😓 4
martinklepsch09:11:01

Ok also deactivated @munen's clone 🙂

👍 4
martinklepsch09:11:08

Sorry for the hassle folks, we'll explore ways to prevent this in the future.

Lennart Buit09:11:01

may I suggest limiting at-everyone, I think its relatively easy to limit who can use it when

martinklepsch09:11:24

@UDF11HLKC I looked into this but either my permissions (workspace admin vs. owner) are lacking or those docs are outdated. I asked a workspace owner to take a look as well.

Lennart Buit09:11:45

Sure, just trying to help right ^^

🙌 4
amarjeet12:11:46

@martinklepsch There are some abusive messages with “everyone” marked by “Ajay” and “munen” handles (timestamp 12.55PM onward) - please delete when you get time.

amarjeet12:11:56

in Clojurescript channel

martinklepsch12:11:30

@U623NFZ17 thanks, deleted all of them I think.

👍 4
piotr-yuxuan12:11:21

Would be more accurate to reference them by their member id instead of their handle.

cfleming21:11:49

Right, we have a legit Ajay and a copy.

martinklepsch21:11:09

Now we only have a legit Ajay left 😄

seancorfield15:11:20

Just woke up to see the remains of the chaos from while I was asleep. FWIW @-everyone can only be used by Admins and Workspace Owners, as can @-channel and @-here -- regular members should not be able to use them.

👍 12
dominicm15:11:18

I think they're only blocked by the UI, not by the API itself. That means a bot can bypass it.

seancorfield15:11:08

Interesting. I'll see what control Slack gives us over API access.

dominicm16:11:33

I think Slack has taken a firm stance that you should trust your employees, which doesn't really apply to us.

dominicm16:11:02

API access is useful, e.g. for wee-slack and such.

dominicm16:11:04

Hard trade-off.

cfleming21:11:14

I don’t think they were bots, but @-everyone was definitely working for them.

seancorfield22:11:50

Weird, since it is admin/owner-only in the settings. Well, sorry for all the inconvenience. We are definitely "short" in terms of Admin coverage for that period of time (late Pacific through until early Europe time). We need at least one Asian or Antipodean Admin added.

Vincent Cantin09:11:02

Taiwan time, here. I can join the admin team if needed.

seancorfield15:11:54

Thank you @U8MJBRSR5 -- I'll let the Admin team know you're willing and you and I can chat about what's involved later today (the start of your day).

JH18:11:05

Hey all, Currently I am trying to deploy a repo to a private maven repository. I am having an issue figuring out how to reference a environmental variable in the project.clj of the project. I have tried the 3 following methods but have had no success. Side Note: I am using a Windows operating system

noisesmith18:11:24

if it is defined via :foo in env, use "FOO"

noisesmith18:11:18

if something outside lein is setting "foo", ~(System/getenv "foo") should work

JH18:11:17

I am currently defining the environment variable via the cmd.exe with windows. When I use ~(System/getenv "foo") I get the following error... `WARNING: please set :description in project.clj. WARNING: please set :url in project.clj. No credentials found for snapshots(did you mean lein deploy clojars?) See lein help deploying for how to configure credentials to avoid prompts. Username:` It seems as though it's not even checking my environment variables

hiredman18:11:01

where in your project.clj do you have :deploy-repositories?

JH18:11:52

It is the last key within the project.clj after :profiles

chrisulloa21:11:52

I’m sure this has been talked about before on here, but does anyone have any opinions about having predicates that return true or nil?

chrisulloa21:11:15

Rather than true or false

enforser21:11:24

My personal preference is that any function that ends with ? returns a boolean, but if it doesn't then I'm fine with truth-y or false-y return values

schmee21:11:49

I’d be surprised and slightly annoyed if foo? returned anything other than a boolean

👍 8
schmee21:11:58

if you have something that can return true, false or nil it might make more sense to return keywords that describe what’s happening instead

noisesmith21:11:43

(s/def my-bool (s/or :boolean boolean? :not-found #{:file-not-found}))

noisesmith21:11:43

(that doesn't actually work because false / nil don't work in set-as-spec but anything else would ruin the joke) fixed

cjohansen21:11:31

I wouldn’t loose much sleep over using nil/`false` interchangeably in a predicate, but I would nerd rage over a non-boolean truthy value. straight booleans would be preferred

👍 4
escherize22:11:41

Is there something like sed for edn data?

escherize22:11:54

or maybe: what’s ?? in: jq : json :: ?? : edn

johnj22:11:46

clojure 😉

☝️ 4
schmee22:11:27

personally, I love https://github.com/nathanmarz/specter for navigating edn data

jsa-aerial22:11:53

☝️or any kind of nested data!