Fork me on GitHub
#clojure
<
2019-12-31
>
introom01:12:44

is there a clojure web framework like django that comes with and admin panel so that users can edit and publish stuff ?

seancorfield02:12:07

@i There are no content management systems written in Clojure as far as I know.

introom05:12:16

I am in search of some library that can handle user account and session management, like django admin

seancorfield06:12:41

Buddy? Friend? Those are the two that come to mind.

noisesmith19:12:50

Caribou was a CMS / hash-map oriented ORM which would create pages / routes based on database entries. Sadly it lost funding and never got mainstream traction (or maybe such things are abominations and it's good it never took off)

noisesmith19:12:58

anyway it was my first paying software job :D

noisesmith19:12:06

@i for this specific task I used an ID stored in an aes encoded jwt token, which indexed a db with session / user info

seancorfield02:12:54

I think most folks feel that there are lots of really good solutions out there in that space and it would be a huge amount of work to create one in Clojure so effort is better spent on other things.

quadron09:12:57

what does the following java statement mean? new Foo.Bar().Baz("something") is Bar a method for the object Foo? or am I missing something here?

Probie09:12:30

afaik new Foo isn't valid Java. It'd have to be new Foo()

quadron09:12:37

well I encountered this code in the wild. I'm having trouble translating it to clojure.

quadron09:12:09

here is the actual code:

new DenseLayer.Builder().nIn(784).nOut(250)

Mattias09:12:57

Speculating a bit, was awhile since I was up to date on the details... but with inner/nested classes it doesn’t seem impossible. I think you need to look at the actual thing being called, not just the calling code.

👍 4
Probie09:12:04

I think it parses that as ((new (DenseLayer.Builder()).nIn(784)).nOut(250)

Probie09:12:14

and Builder is an inner class of DenseLayer

✔️ 4
quadron09:12:51

ahh yes. inner class it is. DenseLayer$Builder was what I was looking for.

😄 4
deep-symmetry18:01:29

Yes, that always feels a bit awkward in Clojure to me. IIRC if you import DenseLayer$Builder to your namespace, it will at least autocomplete in CIDER, which helps me deal with it.

borkdude12:12:12

is it possible to override an implementation of a protocol for a certain type/defrecord?

alexmiller12:12:29

Other than by extending to that type, no

tcrawley14:12:56

Morning folks! We just released a big behind-the-scenes change to Clojars - we migrated from sqlite to postgres. There shouldn't be any user-facing impact, but if you see anything odd in the UI or when deploying, please create an issue at https://github.com/clojars/clojars-web/issues. For more details about this change see: https://groups.google.com/forum/#!topic/clojars-maintainers/B5CjT8381_M

Lennart Buit14:12:49

maybe related, but the response time is fairly large. about 4.72s to load the root html document

Lennart Buit14:12:50

rest of the pages is fine, maybe just a query on the front page that is out of control?

tcrawley15:12:24

Yes, it looks like the query that gets the recent jars isn't very efficient in postgres. I'll take a look. Thanks for the report!

kwladyka18:12:01

for my curiosity - what made you to do this change?

Gulli19:12:35

You could also cache the most recent jars

andy.fingerhut20:12:40

@U0WL6FA77 See the message at the link given above for some details on why.

👍 4
Lennart Buit20:12:55

(that post seems to be closed off? I cannot access it at least)

andy.fingerhut20:12:53

Strange. I tried it again just now, and got the same message as the first time I tried -- it appears to be a public link to a message sent to a Google groups email list, which AFAIK should not require anyone to be a member of that group to read.

Lennart Buit20:12:12

to me it gives an error, then redirects me to https://groups.google.com/forum/#!forum/clojars-maintainers and says I don’t have access to that.

the2bears21:12:11

Link works fine here.

tcrawley21:12:51

I just changed the a visibility setting of the group about 30 seconds ago. Can you try again @UDF11HLKC?

tcrawley21:12:49

In the settings, the posts were public, but the group itself wasn't. I changed the latter.

Lennart Buit21:12:59

yep, working ^^!

Lennart Buit21:12:20

I can now access that message as well as the other messages posted in the group

tcrawley22:12:29

Good deal, thanks for confirming.

tcrawley01:01:12

I just released some query optimizations and caching. Load times of the index page should be much improved.

Gulli07:01:47

Really fast now