This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-02-25
Channels
- # beginners (20)
- # boot (25)
- # cider (1)
- # cljs-dev (7)
- # cljsjs (1)
- # cljsrn (1)
- # clojure (79)
- # clojure-austin (2)
- # clojure-berlin (13)
- # clojure-dusseldorf (1)
- # clojure-germany (7)
- # clojure-russia (10)
- # clojure-serbia (1)
- # clojure-spec (18)
- # clojure-uk (4)
- # clojured (1)
- # clojurescript (90)
- # cursive (10)
- # datomic (7)
- # emacs (14)
- # hoplon (6)
- # luminus (16)
- # lumo (4)
- # numerical-computing (2)
- # om (25)
- # om-next (1)
- # onyx (11)
- # pedestal (10)
- # protorepl (1)
- # reagent (11)
- # remote-jobs (1)
- # ring (1)
- # rum (38)
- # spacemacs (5)
- # test-check (7)
- # untangled (122)
- # vim (1)
- # yada (8)
I have a clojure web app running on linode. Any recommendation for software to monitor this app? I just wanna see who connects from where and when really
What is wrong?
(require '[clojure.core.matrix :as matr])
FileNotFoundException Could not locate clojure/core/matrix__init.class or clojure/core/matrix.clj on classpath. clojure.lang.RT.load (RT.java:456)
@kgofhedgehogs do you use leiningen's project clj?
@mavbozo yes I do
I need to add dependency?
Thanks!
So. I need to add this dependency to my project
https://cloojure.github.io/doc/core.matrix/
But I get this
Could not find artifact org.clojure:core.matrix:jar:0.31.2-SNAPSHOT in clojars (
With this dependencies:
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/core.matrix "0.31.2-SNAPSHOT"]
[org.clojure/math.numeric-tower "0.0.4"]])
@kgofhedgehogs it's [net.mikera/core.matrix "0.57.0"]
Thanks again
@dpsutton Hey man, thanks for all your help so far, I really really appreciate it. I'm still investigating my ajax callback and I finally found the source-code for the method included with sente: ajax-ilte
https://github.com/ptaoussanis/encore/blob/master/src/taoensso/encore.cljx#L2712
So I know how the ajax-lite call works, but I don't know what my ring response from the server should look like so that the client can parse it rightly.
do I make a :params key and fill it? passing through the :body doesn't seem to work. Anybody got any tips for a newbie ajaxer?
Is there compact way to do this?
{0 2, 5 1} -> [2 0 0 0 0 1]
positional setting?
@kgofhedgehogs yeah, there's two things you can do and I'll let you work out the rest 🙂. Firstly we create a vector of 0s for a certain size:
(vec (repeat max-size 0))
then using assoc you can update items in that vector:
(assoc v 0 2)
(assoc v 5 1)