This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-07
Channels
- # aws (2)
- # bangalore-clj (4)
- # beginners (62)
- # boot (74)
- # cider (408)
- # cljsrn (17)
- # clojure (117)
- # clojure-dusseldorf (1)
- # clojure-russia (21)
- # clojure-spec (17)
- # clojure-uk (15)
- # clojurescript (154)
- # cursive (3)
- # datomic (16)
- # emacs (33)
- # funcool (3)
- # hoplon (99)
- # off-topic (7)
- # om (10)
- # overtone (3)
- # portland-or (1)
- # protorepl (9)
- # re-frame (83)
- # reagent (11)
- # remote-jobs (1)
- # ring-swagger (24)
- # specter (10)
- # untangled (1)
- # yada (11)
@cdine (with-dom el (prn “foo”))
well, that’s a macro
if you want a function specifically
(when-dom el #(prn “foo”))
@thedavidmeister , thank you..
@cdine yeah unfortunately hoplon has some useful things that aren’t in the docs >.<
if you’ve got a sec to update the wiki for the next person that would be awesome
@alandipert having some troubles with svg/use with hoplon and firefox. firefox doesn’t want to render anything 😞
@meeli Did you sort? I make heavy use of SVG and use in my Hoplon app. IIRC it may be an XML namespace issue.
Ah, I see now that it’s one of the elements that I don’t use Hoplon for. https://github.com/candera/weathergen/blob/master/src/weathergen/ui.cljs#L2148-L2151
Hello. I have successfully created a hoplon-castra application that I would like to sell soon. There is one problem: I can't deploy it on a tomcat server. It yields an empty page and complains about TLDs? I scavenged the internet for working boot templates that can successfully deploy to tomcat, but it seems none of those currently exist. Not on the hoplon-demos, not Sean Corfield's hoplon-castra template... What am I doing wrong?
@xssive220 are you making a war file?
It seems to be a set of .tld files related to jars... altough I used the option to not unzip the jars
I don't have a clue... But tomcat is scanning for those and doesn't find them... I could try tomcat 7 instead of 8?
boot -d seancorfield/boot-new new -t hoplon-castra -n point-of-sale does not deploy after a boot make-war
unless tomcat 7 works... After all, I'm about to start my own business and having that POS app running would give me my first customer... Kudos for hoplon/castra/javelin, by the way. It's insanely easy
Nope... But I have H2 database on board and would need a directory where it can scratch
build-jar didn't work either.. I filled handler.clj with :gen-class, but that didn't help
I will need both options in the future, because running boot from an init script just doesn't look professional 🙂
the embedded jetty server will create a servlet internally and you can use ring to actually handle requests
my (jar :main 'foo) antry will need to refer to a start funtion? -main can be in handler.clj?
now you want to make an app.main
namespace that will be compiled into a class that we can use as the Main class in the jar manifest
this is useful because there are all kinds of annoying issues you can run into with AOT compilation in clojure
BTW, this means H2 cannot be embedded anymore, right? I'll need a separate database service?
I'll try and get more involved in Q2 when I'm up and running, rolling out more apps for customers! 😉
@xssive220 seems like a thing: http://www.h2database.com/html/features.html?highlight=embedded&search=embedded#embedded_databases
http://stackoverflow.com/questions/154636/embedding-the-java-h2-database-programmatically
@xssive220 I use a H2 db from a uberjar on code deployed on customers. It works.
@micha , @mynomoto : Thanks... I got it working, but not from an uberjar yet. Probably it needs to be in server mode instead of auto_server... I'll look at the links... thanks again! 🙂
Is there a trick to do a dynamic :class on a div? [i.e. visible is a defc and (div :class [ (cell= (if (get visible id) ["coin" "up"] ["coin" "flip"] ..)) I get both up and flip classes on the div ] The same works fine with :css to position the div..
@wasserspiegel you mean like (div :class (cell= {:coin true :up visible :flip (not visible)}) ...
basically a map where the key are the class names and the values indicate whether to add or remove the class
Yes, I hope I didn't ask the same thing last week I kind of have a deja vue. merci
@candera can you explain more about the namespacing thing? i ended up just putting the paths inline because they’re not very complex, but i’d like to fix use and get it working. also, not really sure about xpath:src compatibility, i messed around in some codepens and saw that firefox didn’t like normal src at all 😞