Fork me on GitHub
#clojurescript
<
2015-07-04
>
locks00:07:41

hi, does anyone know the cljs equivalent to "fze0200002000{:14X}.dat".format(some_number)? it basically prints out some_number as a 14 digit hex

locks00:07:13

seems like clojure.core/format isn't in cljs, and I can't find the syntax for goog.string/format

roberto03:07:54

not sure where script/repl.clj should go

roberto03:07:18

under .emacs.d or under .lein

roberto03:07:25

or under the root project directory

bhagany03:07:01

@roberto I don't do it that way, but I think that script/repl.clj would go in the project directory

jwm03:07:36

any benefit of using that @roberto

jwm03:07:20

ahh ok cljs on node.js in emacs

Petrus Theron08:07:49

Having some trouble with Boot and code reload. I'm using re-frame with reagent and Boot's reloader doesn't seem to be reloading my handlers namespace. Initial load works, then when I change some code in my main namespace that dispatches an event, re-frame complains that there are no handlers registered for that event.

Petrus Theron08:07:16

Reload websocket connected.
repl.cljs:63Opened Websocket REPL connection
reload.cljs:57 Reload
utils.cljs:18 re-frame: no event handler registered for: ":init!". Ignoring.(anonymous function) @ function) @ app.cljs:128

Paco08:07:32

have you tried figwheel?

Petrus Theron08:07:17

figwheel not compatible with boot

Petrus Theron08:07:24

boot has a reloader built in

Paco08:07:26

yeah 😞

Paco08:07:10

I use figwheel with ring reload

Paco08:07:29

all the autoloading reloading I need

escherize08:07:08

@petrus: are you requiring the namespace with the handlers in your main namespace?

escherize09:07:07

Yeah, then I can't offer any help there. Can i see your code base?

Petrus Theron09:07:55

Hm, looks like I had to add my handlers namespace to app.cljs.edn under resources.

sooheon10:07:07

Hm, rather than edit the app.cljs.edn, why not add your handlers namespace to the :require under your .app namespace?

Petrus Theron10:07:50

What is app.cljs.edn's require for?

Petrus Theron10:07:21

@sooheon, it was already there. But it did not seem to be reloaded until I added it so app.cljs.edn too.

sooheon10:07:59

Don’t know quite enough to help you. Could try asking over at #C053K90BR

Petrus Theron11:07:42

How do I get figwheel to compile clojurescript macros defined in .clj files?

Petrus Theron11:07:37

nm figured it out simple_smile

delaguardo11:07:02

:cljs/quit %load macros% (cljs-repl)

sveri16:07:12

Hi, does anyone here have an up to date guide on how to develop and package an application with cljs and cordova?

sveri16:07:32

I see, it's time to make one 😄

akiva17:07:59

C’mon, now. No points for the programming language joke?

escherize17:07:23

We're not as old as you are, akiva

akiva17:07:54

Hah, ya jerk. Even I’m not old enough for Forth programming.

escherize17:07:41

simple_smile I'm probably older than you

akiva17:07:21

Same. Hahaha.

escherize17:07:40

I suppose we're all older than some version of ourselves

akiva17:07:43

Right you are!

locks23:07:37

I'm older than the self that wrote this by the time you read it