This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-18
Channels
- # admin-announcements (90)
- # alda (1)
- # aws (23)
- # beginners (60)
- # boot (217)
- # cljs-dev (20)
- # cljsjs (23)
- # cljsrn (85)
- # clojars (28)
- # clojure (101)
- # clojure-art (1)
- # clojure-berlin (10)
- # clojure-dev (16)
- # clojure-my (2)
- # clojure-russia (194)
- # clojure-sg (7)
- # clojure-ukraine (1)
- # clojured (1)
- # clojurescript (99)
- # clojurex (1)
- # community-development (6)
- # core-matrix (11)
- # cursive (26)
- # datomic (51)
- # euroclojure (30)
- # hoplon (560)
- # jobs (44)
- # ldnclj (34)
- # mount (23)
- # music (3)
- # off-topic (10)
- # om (145)
- # onyx (3)
- # perun (38)
- # portland-or (2)
- # proton (55)
- # re-frame (64)
- # reagent (26)
- # ring-swagger (3)
- # spacemacs (21)
- # sydney (3)
- # yada (1)
how to people go about usergrid
and clojure? Is there any wrapper?
what is a usergrid?
it is a Baas, it helps building apps without thinking too much about infrastructure
i dunno, never used it, but if it uses oauth2 then that's pretty easy to do in clojure
I’m trying to use those in a single page app context and I seem to be missing something with respect to how the handlers are being put together
is there a way to see what routes are acceptable to compojure/ring (a la 'rake routes’ in rails land)?
@mheld: in this project https://github.com/electric-it/tosca-lens/blob/master/project.clj#L15 ... i have files in dev that i want to be able to use in the project (and repl) in :source-paths
@clojuregeek: I have :source-paths ["src/clj" "src/cljc”] in my project.clj — shouldn’t that do the same thing?
yes i would think so...
where is the :source-paths
at? is in a profile or first level?
if it is just "src" does it work?
OK, I think https://github.com/brandonbloom/metaclj can now safely be called Alpha. As before, feedback welcome
@clojuregeek: I dunno if I wanna be putting clojurescript on my path but I’ll futz with it!
@mheld: :thumbsup:
i tried (thread (while true (go))). it kinds of run out of heap size. and exited. what if i do (go-loop [] (go)).
(Thread. (fn [] (while true (go)))) memory stays constant, suggesting garabage collection is keeping pace
err... probably not, what are you trying to do? also I presume by thread you meant (Thread. (fn [] ..
i am trying to dump some data from A to B. in the middle, i need to call an external web service to enrich something.
The code you wrote is just creating endless coroutines
so it is like i ready 1k records from A, (doseq [n records] (go (let [] (enrich)(write db)))). outside, it's a while true (read 1k from A)
(go-loop [] (let [v < ch] // do work) (recur))
put the output of a onto a channel
read it in b
also you don't need to launch a thread
curl
gives error. I use the lastest version of that plugin 2.2.1
and latest elasticsearch as well
@jarodzz: in the quickstart session, it does inform that we need to specify the ES_CLUSTER_NAME ? https://github.com/clojurewerkz/elastisch
Elastisch needs ElasticSearch running locally (127.0.0.1). ES_CLUSTER_NAME need to be exported with the name of the local cluster. To find it out, use
i don't think this is a good client with that kind of limitation. if i am getting it right
I got this error
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"No feature for name [nodes]"}],"type":"illegal_argument_exception","reason":"No feature for name [nodes]"},"status":400}
Elastisch 2.1 and 2.2 target ElasticSearch 1.x starting with 1.1 and through 1.7.x. Elastisch does not currently support ElasticSearch 2.x. It will be our focus after the (Elastisch) 2.2 release.
if it's simply use case, i suggest you use http-kit to similute curl. it's simple and straight forward
is this a feature of leiningen or just of command line tools in general? http://twitter.com/piyushpsycho/status/689017202289164288
@borkdude: I think u just need clojure.repl
namespace
Oh wait I see what u mean - forget that
@tord: yup. you only need to use rlwrap
if the program doesn’t already support readline. I’m pretty sure lein repl
does readline stuff correctly by default
Lein uses REPL-y (https://github.com/trptcolin/reply) which uses JLine (https://github.com/jline/jline2) to provide readline support
I have been using tools.namespace successfully to reload changed code in the repl. Now I tried to execute refresh during "runtime" but it fails with an illegalstateexception. Is that even possible? How would I do that? Can I access the repl somehow programmatically maybe?
yep, in clojure (ns foo-bar) is foo_bar.clj file
for reasons that are totally obscure to me.
I always assumed it was some Java thing, but haven't ever really looked it up
@kenrestivo: "When a Clojure namespace is AOT (ahead-of-time) compiled into a Java .class file, it has to have a name that is a valid Java identifier. Dashes aren't valid in Java class names, so Clojure converts them to underscores. It also converts characters like * into words like STAR."