#clojure logs

2012-06-16

20:52chouserOops -- I've been failing to log for the last couple days.
20:53chouserFirst time that's happened without somebody noticing and telling me.
20:53chouserSo... anyone know how to tell lein cljsbuild to include the closure/webgl lib in my project?
20:56amalloychouser: someone mentioned it in here, but since you weren't logging you didn't notice
20:57chouserNoooo
20:58amalloychouser: i can't help you at all with your cljs problem, so instead i'll distract you by noting that http://dev.clojure.org/jira/browse/CLJ-865 has a new patch that seems to address the issues you raised last time we discussed it (in like November)
21:00chouserhm, interesting...
21:01chouserbut it doesn't help me draw 3D airships in my browser, so I'll just leave it at "hm interesting" for now.
21:01amalloyfair. i just wanted to make you aware of it for whenever you have time
21:04brooksbphello
21:04brooksbpI hope someone here can help me get started with leiningen and compojure
21:05brooksbp`lein version' is 1.7.1 on Java 1.7.0_03 OpenJDK 64-Bit
21:05brooksbpI did a `lein new'
21:06brooksbpthen I added `[compojre "1.1.0"] to the dependencies in project.clj
21:06brooksbpI am following the README.md from github.com/weavejester/compojure
21:06brooksbpthen I run `lein deps'
21:07brooksbpbut then it doesn't succeed
21:07weavejesterbrooksbp: Could it be because you've added "compojre" as the dependency, instead of "compojure"?
21:08brooksbpwow
21:08brooksbpit was a typo
21:09weavejesterbrooksbp: Those happen :)
21:09brooksbphow come some of the worst mistakes you make when programming requires reaching out for another pair of eyes... usually typos or extremely stupid syntactical mistakes....
21:10weavejesterI'd guess because debugging relies on chains of logic, and a typo or some other false assumption breaks the chain
21:11brooksbpno tool or compiler can save you there...
21:11brooksbpsheesh
21:18brooksbpare there popular or heavy-traffic web sites/apps powered by clojure?
21:19brooksbpnearly every language has their posterchild web site/app... which are clojure's?
21:19xeqibrooksbp: prismatic gave a talk at clojure/west about using it
21:22kovasb_clojure is not just for web programming
21:22kovasb_various poster child applications in other domains, e.g. data processing
21:22brooksbpxeqi: link? I don't see links to videos/slides at clojurewest.org
21:23kovasb_more like python and less like ruby in the diversity of applications
21:23brooksbpok. what are some posterchild programs / efforts?
21:25bbloombrooksbp: http://www.quora.com/Whos-using-Clojure-in-production
21:26kovasb_cascalog and storm are pretty cool
21:29xeqibrooksbp: http://www.infoq.com/presentations/Why-Prismatic-Goes-Faster-With-Clojure
21:30xeqistorm does seem cool
21:32kovasb_most clojure libs solve specific problems, rather than growing to "huge" proportions
21:33kovasb_eg, ring, noir, enlive
21:36jayunit100_yippee got clojure auto deployed via github using https://github.com/ajlai/github-heroku-pusher (only semi relevant to clojure , but i was moaning about this earlier :) )
21:47brooksbpwow... ring + compojure + hiccup == fast ass development
21:47brooksbpjust whipped up the example app in no time
21:47brooksbpactually... more of a tribute to clojure itself... but still...
21:48brooksbpand the source for hiccup... is readable.. and small
22:43jayunit100_hmmm leon is running some ghost code. lein clean didn't do the trick. anyone see this before ?
22:44jayunit100_s/leon/lein
22:45akhudekno, but I just encountered something similarly strange
22:45akhudekI built a new session store library, pretty simple overall
22:46akhudekif I include it as a dependency before noir-cljs, everything is fine
22:46akhudekif I include it after noir-cljs, I get a compile time error when I do lein run
22:47akhudekI can't imagine there is a namespace collision, the library uses the namespace: aging-session
22:47chouserBleh. So I helped write Clojurescript, but can't figure out how I'm supposed to use it. Frustrating.
22:48jayunit100_hmmm oh well.. leon clean did wind up working
22:48jayunit100_is there a simple string.contains ?
22:48jayunit100_.contains
22:49jayunit100_ha
22:49jayunit100_,(.contains "ASDF" "A")
22:49clojurebottrue
22:50akhudekchouser: it's certainly a bit frustrating to use at the moment due to little documentation and other rough edges
22:57akhudekwell, at least the new session store works
22:57akhudekit's an in memory session store that has a concept of time
22:57akhudekso it can do autoexpiry and memory cleaning
22:58akhudekamong other things that need to mutate the session based on request time intervals or lifetime intervals
22:59akhudekwill publish it tomorrow after I write a readme in case anyone else finds it useful
23:03mmarczykchouser: maybe try depending on clojurescript explicitly in project.clj with an exclusion for org.clojure/google-closure-library and provide your own google-closure-library based on a version of GClosure lib which includes WebGL stuff; I'm not positive the explicit dependency will override lein-cljsbuild default cljs version, but I think it should (otherwise some things I've been doing should never have worked)
23:05mmarczykchouser: alternatively, if the WebGL parts of recent closure lib work fine when used alongside the older closure lib that cljs uses, you could package them up as a separate jar and depend on that
23:26loliveiraMay I have some help about this error using lein-ring? http://pastebin.com/Lya9fddk
23:35akhudekloliveira: it's looking for the namespace ring.server.leiningen for some reason.
23:36akhudekbut that's not in the lein-ring code base at all
23:37akhudekdid you perhaps use it in your own source somewhere?
23:37xeqihttps://github.com/weavejester/lein-ring/blob/master/src/leiningen/ring/server.clj#L33
23:38akhudekoh, so it is
23:40loliveiraakhudek: could be.
23:40loliveiraakhudek: brb
23:40akhudekput this in your deps: ring-server "0.2.3"
23:57loliveirai put [ring-server "0.2.3"] and [hiccup "1.0.0"] i know i am getting the following error. java.io.FileNotFoundException: Could not locate hiccup/page_helpers__init.class or hiccup/page_helpers.clj on classpath: