This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-02-10
Channels
- # aatree (4)
- # admin-announcements (1)
- # beginners (62)
- # boot (279)
- # business (14)
- # cider (1)
- # cljsrn (3)
- # clojure (88)
- # clojure-czech (3)
- # clojure-madison (2)
- # clojure-poland (117)
- # clojure-russia (74)
- # clojurescript (168)
- # core-async (8)
- # css (6)
- # datavis (39)
- # datomic (67)
- # devcards (2)
- # dirac (1)
- # editors (9)
- # emacs (13)
- # events (2)
- # hoplon (2)
- # jobs (9)
- # ldnclj (38)
- # lein-figwheel (9)
- # leiningen (7)
- # luminus (4)
- # off-topic (77)
- # om (114)
- # omnext (1)
- # onyx (221)
- # parinfer (10)
- # portland-or (5)
- # proton (3)
- # re-frame (24)
- # reagent (14)
- # ring-swagger (13)
If it interests anyone, I wrote a blog post about a couple “little" things in Clojure that I would miss: https://www.adamfrey.me/posts/clojures-little-things.html
For current_timestamp(), I would say you could set a default column value for the table, or use something to write the insert in plain sql.
Can anyone explain why a clojure program I wrote can print out the classname of a reified interface, but when I pass control to a java framework, it cannot find that class? Does clojure have it's own class-loader? Is there a way to tell the java framework about it?
I can't find the channel for clojure dev like there is for #C07UQ678E but if you can you could ask there as well.
This looks relevant: https://groups.google.com/forum/#!searchin/clojure/classloader/clojure/-n3jul1IeZ8/tKGAg-_zEmIJ
@meow: #C06E3HYPR is for discussions regarding the development of clojure itself, not about advanced questions on clojure
Are there any strong opinions on TrapperKeeper? It's error handling seems superior to component, especially as it means you don't need to try/catch everywhere.
Does anyone know a decent (meaning fast and light) 2d graphics library usable from clojure? I’m trying to design an application with cutom GUI and nothing seems to fit very well. seesaw is too desktopy, Quil uses 5% CPU on rendering a black rectangle on white background, Java2D doesn’t look very solid, OpenGL is an overkill...
ideally, I’d just use cljs and reagent to draw SVG but this would bring huge webkit into the scene
Well, some do that with node-webkit or electron; I'm not sure if it's that big of liability. Apps like atom or visual studio code seem to work relatively well.
But if you want to do it with a 2D graphics lib, then maybe look at game libraries like libgdx? It has both OpenGL and 2D graphics APIs, so it might fit your use-case.
@nooga: even has a skinnable UI library it seems - https://github.com/libgdx/libgdx/wiki/Scene2d.ui
@nooga SVG for clojure/script was discussed in #C0F0V8DT5 but I can't remember the name of the library so check there
Hi, I have created a project via "lein new reloaded myproject" when I try to (reset) the tools.namespace/refresh fails with the exception that one of my namespaces can't be found, although it is at the proper place
ok, seems to be a problem with AOT. Switched off AOT and did a "lein clean" - now it works as expected
clojure.string/trim
doesn't seem to work with some space-like characters...
e.g., (clojure.string/trim (str "hmm" \o240))
Is there stronger stuff out there?
@harold \o240
is not whitespace so trim won't work. You'll probably need to build a regex pattern using replace
more on this here: http://www.adamkoch.com/2009/07/25/white-space-and-character-160/
Some browsers match non breaking space as a whitespace, but in Java is not (which I believe is correct)
sadly, It appears to be…
BTW in a cljs repl trim does treat it as whitespace (or it did when I just tried in using nREPL to a REPL in Chrome)
Yeah, when I tried it I saw that as well. But I didn’t consider the fact that it could be browser-specific
i hate it when something works in dev/test and when you deploy it doesn’t work the same way
can't speak to if this is a good idea roberto, but http://www.uofr.net/~greg/java/get-resource-listing.html
I am writing a service which fetches some rss feeds, scrapes some sites and formats the data into something I want. I have written a simple ring handler which puts this data into the response and everything is fine.. except, I dont want to fetch and parse the data for each request, one time per hour is sufficient. How do you guys usually handle something like this? core.cache
, core.memoize
?
how do I extract information from an error? When I evaluate the error at the repl I see #error{:cause "...", :via ...}
but (:cause error)
returns nil
Use Throwable->map
I’m struggling to create a kerodon test for a toy app using duct. I’ve got a form with one input field. if I’m running it in the repl / browser then the parameter is passed, but when running in kerodon it arrives as ‘nil’ to the handler. any obvious thing i’ve missed? I’m using the same config, so wrap-param should be present for my test too.
Is there a way I could have figured that out on my own? I didn't know that java errors were "Throwable"s
(I am a beginner, so any silly mistake you may think possible (and some that probably aren’t) are fair suggestions.)
@arijun: not sure - it's new so actually not many people know about it