Re: Could I get some feedback on this function?

2014-07-25 Thread boz
stamp %) ids))) - boz On Friday, July 25, 2014 2:32:43 PM UTC-7, Christopher Elwell wrote: > > New to Clojure, how is this function that I wrote? Any suggestions for > improvement; is it too complicated? > > It filters a sequence, leaving only the first occurrence of each item in

having trouble with lein-ring :auto-refresh?

2014-02-05 Thread boz
value. (def x (html [:h1 ("hello")])) (defn ring-handler [request] {:status 200 :headers {"Content-Type" "text/html"} :body x}) The :auto-reload? true works as expected. But not :auto-refresh? true. I'm after the live coding experience here. And I want i

Re: having trouble with lein-ring :auto-refresh?

2014-02-06 Thread boz
ops up in my browser OK. But changes to src/godoggo/handler.clj do not show p unless I refresh manually. ... So have I just got it wrong? Does :auto-refresh? do something else? ??? boz On Wednesday, February 5, 2014 11:16:21 PM UTC-8, boz wrote: > > Hi, > > I've set up lein-ring

Re: having trouble with lein-ring :auto-refresh?

2014-02-06 Thread boz
ot;, and should be > well-formed with a element. > > Try checking the source code of the HTML page being served to see if it's > correctly injecting the script. > > - James > > > On 6 February 2014 16:41, boz > wrote: > >> I'm starting to think my ex

Re: having trouble with lein-ring :auto-refresh?

2014-02-06 Thread boz
string tags to hiccup asap :) On Thursday, February 6, 2014 9:25:30 AM UTC-8, boz wrote: > > Thanks James! > > That was it. Changed my original handler to this and it works perfectly > > (defn ring-handler [request] > {:status 200 >:headers {"Content-Typ

Re: ANN: Om 0.4.0

2014-02-15 Thread boz
Thanks David! I get this on a fresh clone (commit 7327bcdc17a665d5fde66376bfef9aa2b21c675a) Compiling "examples/tests/main.js" failed. java.io.FileNotFoundException: examples/tests/src (No such file or directory) $ mkdir examples/tests/src and build again works fine. --- long version -

Om: trouble with goog reference

2014-02-23 Thread boz
I'm having trouble with the Om basic tutorial Higher Order Components using emacs and a slightly modified version of https://github.com/magomimmo/om-start-template that points to Om 0.5.0 and React 0.9.0. My ve

Re: Om: trouble with goog reference

2014-02-27 Thread boz
>> {:output-to "dev-resources/public/js/om_ho.js" >> :optimizations :none >> :pretty-print false) >> >> With this setup. Evaluating core.cljs (which is taken directly from your >> Higher Order Components tut

Re: Om: trouble with goog reference

2014-02-27 Thread boz
... should have mentioned, in case it's not obvious, I got through the basic tutorial using my fork of Mimmo's excellent work. ,chris (aka boz) On Thursday, February 27, 2014 10:40:23 AM UTC-8, boz wrote: > > Hi David, Clifford, > > I'm pretty sure Clifford is u

Re: Om: trouble with goog reference

2014-02-27 Thread boz
ally every time the HTML files changes or the namespace of core.cljs changes. Don't know why. ,chris On Thursday, February 27, 2014 10:50:03 AM UTC-8, David Nolen wrote: > > Many thanks for taking the time to implement & share your solution! > > David > > > On Thu, Feb 2

test.check :autotest ?

2014-05-05 Thread boz
Is there an :autotest for test.check with Leiningen? Something like midje, where you can do: lein midje :autotest Many thanks, boz -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroup

a data conversion question

2014-06-08 Thread boz
])) result))) ??? Thanks! ,boz -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe

Re: a data conversion question

2014-06-08 Thread boz
est x) result []] (if a (recur (first b) (rest b) (into result (do-one (first a) (flatten (rest a) result))) On Sunday, June 8, 2014 12:12:19 PM UTC-7, boz wrote: > > Is there a better way to take this... > > [[:a [1 2]] > [:b [3 4]]] > > and conver

Re: a data conversion question

2014-06-08 Thread boz
Wow! 'for' is a powerful thing!! This is perfect! On Sunday, June 8, 2014 12:32:44 PM UTC-7, François Rey wrote: > > (for [[k v] [[:a [1 2]] [:b [3 4]]] > n v] > [k n]) > > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Re: [ANN] Recursd - Functional Programming Conference in San Diego

2013-12-09 Thread boz
Just registered! Thanks! Looking forward to it! !!! :) On Monday, December 9, 2013 8:04:05 AM UTC-8, Ron Toland wrote: > > Recursd is a one day technical conference on > functional programming. > > Join other programmers and enthusiasts Saturday January 18th, 2014, to > tak

Re: Clojure west?

2013-12-28 Thread boz
I know it's not January yet :) but any firm date set? thanks! chris On Saturday, December 14, 2013 7:21:33 PM UTC-8, Alex Miller wrote: > > Clojure/West will be in San Francisco this year. We are working on a > contract for the last week in March but this IS NOT YET a firm date. We > will of cou

Re: Debugging with Cider

2014-01-08 Thread boz
I'd like to see Ritz with cider too. :) Just for reference... there is already an issue on the Ritz repo: https://github.com/pallet/ritz/issues/112 and there are a number of Ritz related issues on the Cider repo: https://github.com/clojure-emacs/cider/search?q=ritz&ref=cmdform&type=Issues On T

Re: [ANN] Pedestal-app Tutorial has been released

2013-07-15 Thread boz jennings
Having fun going through the tutorial! Thanks for the good stuff! ,boz On Tuesday, July 9, 2013 9:03:58 AM UTC-7, Ryan Neufeld wrote: > > Hey there, Clojurians/Pedestallions! > > I'm pleased to announce the release of a comprehensive tutorial for > pedestal-app: http:/