This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-25
Channels
- # aws (1)
- # bangalore-clj (1)
- # beginners (15)
- # boot (4)
- # clara (7)
- # cljs-dev (7)
- # cljs-experience (3)
- # cljsrn (1)
- # clojure (143)
- # clojure-austin (2)
- # clojure-germany (1)
- # clojure-italy (11)
- # clojure-serbia (11)
- # clojure-spec (96)
- # clojure-uk (20)
- # clojurescript (70)
- # community-development (58)
- # cursive (14)
- # data-science (1)
- # datomic (45)
- # events (2)
- # fulcro (19)
- # jobs (5)
- # jobs-rus (2)
- # off-topic (40)
- # om (24)
- # onyx (3)
- # parinfer (52)
- # pedestal (6)
- # protorepl (38)
- # re-frame (15)
- # reagent (11)
- # ring-swagger (5)
- # specter (37)
- # sql (3)
- # unrepl (3)
- # vim (1)
@pesterhazy @thheller Many thanks guys!
pretty sure there is no way easy around it, but I'm implementing a facebook login page. Using hiccup to output the [:div.fb-login-button] which needs an onlogin attribute to call once logged in. But hiccup seems to not allow this according to the console since it is a non-standard attribute. Any ideas?
@dnolen is there a reason why we(as community) use slack instead of discord or some other platform? Posts on reddit keep popping up these past few months so i wanted to check is there particular reason why you(personally) are active here and not on other platforms?
@lepistane reddit might be a great spot to try to move questions and answers to. It would open things up to lots of other communities.
Is there any built in method of compressing strings in closure?
e.g. huffman
I'm looking for a way to compress a large json string with a lot of repeating ints (or partially repeating).
@danielstockton If you turn your number into symbols, transit will cache them. (I do that with UUIDs that repeat often).
@rauh I'm actually using closure closure in this case (not cljs), just felt i'd ask here.
i.e. transit isn't really an option
there is https://github.com/cognitect/transit-js, if you weren't aware
I am aware but it still means converting back and forth between keywords and strings and including a fairly large dependency. I'm trying to keep it as lean as possible.
if the goal is to compress strings, why not use https://github.com/cscott/compressjs ? I heard bzip2 is pretty darn good
@qqq I did look at that, ideally I'd like it to be closure compatible to get rid of all the dead weight. It's important to keep file size down to a minimum.
I often find closure has little hidden gems, thought there might be something there.
Hello. 馃榾 I have a problem with foreign libs not packaging correctly. They are not included in the jar.. Have tried pretty much everything, but no luck so far. Here is a gist to the build.boot file: https://gist.github.com/kleinrein/0bec5f822e9c6e34a39d69bb9ba5f310 . Any ideas?
@andreasrein see the guide here https://clojurescript.org/reference/packaging-foreign-deps
basically put foreign-libs
data into deps.cljs
and put the file itself into resources
folder
the same goes to externs
everything that is in :cljsbuild
is used only by lein-cljsbuild
plugin
Hey guys good morning. I'm trying to follow this implementation but using figwheel/cljsbuild without success: https://clojurescript.org/news/2017-07-12-clojurescript-is-not-an-island-integrating-node-modules
the cljs compiler doesnt recognize this syntax in the :require block: ["react-dom/server" :as ReactDOMServer :refer [renderToString]]
I did see something about this, can't find the link right now. It COULD be that you need to express react-dom/server as a string, not a symbol
@au-phiware I may be having the same problem. Not sure. Did you ever work around it?
sorry for the extended delay... I must have missed your mention... my work-around was to npm install "@cljs-oss/module-deps"
...
hi, I have recently started using Cursive for CLJ / CLJS development and I would like to start the repl from here.
For my leiningen project this works with a script/figwheel.clj but I started a test project which uses boot.
hey folks, I'm not using timbre in my cljs , but I'm keep getting this error Uncaught ReferenceError: taoensso is not defined
. any idea ?
is there a slack for re-frame?
thanks
@anmonteiro I made a more minimal version of the repro: https://github.com/johnmn3/modrepro
I'm not getting the aforementioned EvaluateCodeEvent
yet on this repro. I'm back to the Cannot read property 'instrument_btn' of undefined
error. Previously, after I resolved this error I ended up with the EvaluatedCodeEvent
.
@john thanks will take a look soon!
i'd appreciate if you voted. i think something needs to be done and best way to make decisions is to see where people stand
https://www.reddit.com/r/Clojure/comments/6vxqro/lets_settle_this_vote_slack_vs_other_platforms/
Hello. Has anyone got figwheel working on an online IDE like http://cloud9.io? If so please could you send the link.
@U1CUUKHDL haven't imported an npm package as of yet: what's a good resource to learn how to get those dependencies?
I see, I thought you were working in a node environment. I haven't used npm packages with clojurescript myself, but I know clojurescript compatibility with npm is in alpha though. https://clojurescript.org/guides/javascript-modules
https://clojurescript.org/news/2017-07-12-clojurescript-is-not-an-island-integrating-node-modules
I have found this: https://github.com/r0man/sqlingvo.node
@john your example doesn鈥檛 make sense
you鈥檙e trying to load :widgets
at the top level
before the current module is set-loaded
@anmonteiro so, if :core
depends on :widgets
, then :core
must be set-loaded!
before it can load
:widgets
?
Should (l/set-loaded! :core)
simply come before (l/load :widgets ...
in the submodrepro.core
namespace?
there might still be a bug in there, because of the undefined button error
I鈥檒l have a closer look later
@mrg I鈥檓 interested but don鈥檛 know. that looks decent at least