Re: simple procedure for updating a value one level down

2015-01-25 Thread Lucas Bradstreet
Are you sure you want to return: [ [ { :id 1 :text "foo" } { :id 2 :text "bar" :ack 5 } ] [ { :id 3 :age 12 :somethingElse 29 } ] ] (notice the two nested vectors), or rather [ [ { :id 1 :text "foo" } { :id 2 :text "bar" :ack 5 } { :id 3 :age 12 :somethingElse 29 } ] ] Lucas On 26 January 2015 at

simple procedure for updating a value one level down

2015-01-25 Thread Josh Stratton
I'm new to clojure and FP in general. One thing that has always been a little confusing for me is working with immutable trees. I have a vector of categories, each category containing a vector of items--each one a hashmap. In that hashmap I have a bunch of attributes including an item-id. Now,

Re: ANN: ClojureScript 0.0-2719, JavaScript Dependencies

2015-01-25 Thread David Nolen
Webjars doesn't package JS libs in a useful way for ClojureScript. On Sunday, January 25, 2015, Ivan L wrote: > To this end I would hope everyone takes a look at using webjars.org as > their source for frontend libraries. imo, it's a way forward to dep mgmt > outside of bower/npm/node etc. > >

Re: ANN: ClojureScript 0.0-2719, JavaScript Dependencies

2015-01-25 Thread Ivan L
To this end I would hope everyone takes a look at using webjars.org as their source for frontend libraries. imo, it's a way forward to dep mgmt outside of bower/npm/node etc. On Sunday, January 25, 2015 at 2:42:54 PM UTC-5, David Nolen wrote: > > I strongly recommend the Clojure(Script) communi

Re: ANN: ClojureScript 0.0-2719, JavaScript Dependencies

2015-01-25 Thread David Nolen
On Sun, Jan 25, 2015 at 5:40 PM, Vladimir Bokov wrote: > I saw this initiative, but I hardly imagine a Github repo/organisation > managing the whole infrastructure. As you said: we have clojars and maven. > For the most popular libraries having a curated set is going to be important - Maven knob

Re: ANN: ClojureScript 0.0-2719, JavaScript Dependencies

2015-01-25 Thread Vladimir Bokov
I saw this initiative, but I hardly imagine a Github repo/organisation managing the whole infrastructure. As you said: we have clojars and maven. Besides, they offer a naming convention and versioning policy, which I fully agree with, but I see no need to use 'boot-cljsjs' to follow them. After

Re: Copy binary files in leiningen template

2015-01-25 Thread Sven Richter
Hm, I don't understand this, it seems like everyone is doing it like this: https://github.com/stammi/slides2-lein-template/blob/97c2df63b3fbddf0b09e8b501efce75ef4cb233e/src/leiningen/new/slides2_lein_template.clj (l. 15) And I get a copied file when I do that in my new application, but I cannot

Re: ANN: ClojureScript 0.0-2719, JavaScript Dependencies

2015-01-25 Thread David Nolen
I strongly recommend the Clojure(Script) community join forces when packaging libraries to avoid duplicated effort and dependency conflicts. CLJSJS seems like a good initiative to me along these lines: http://cljsjs.github.io David On Sun, Jan 25, 2015 at 1:49 PM, Vladimir Bokov wrote: > Thank

Re: ANN: ClojureScript 0.0-2719, JavaScript Dependencies

2015-01-25 Thread Vladimir Bokov
Thanks David! I also already packaged https://github.com/razum2um/jquery-cljs using your react repo as example суббота, 24 января 2015 г., 21:10:29 UTC+6 пользователь David Nolen написал: > > ClojureScript, the Clojure compiler that emits JavaScript source code. > > README and source code: https

Re: [ANN] Introducing 'Phoenix' - a new library for declarative configuration and wiring of Component-based systems

2015-01-25 Thread James Henderson
Hi Leif - thanks for the suggestion. You're not the only person that's questioned the auto-namespaced keywords, btw! The original reasoning behind them was to keep Phoenix-related configuration separate from the user's own configuration, but without enforcing typing :phoenix/ in front of all of

Re: [ANN] Introducing 'Phoenix' - a new library for declarative configuration and wiring of Component-based systems

2015-01-25 Thread James Henderson
Hi Dan - it's possible to load configuration from environment variables as of version 0.0.2 (released today) - you can now put [::env :env-var-name]in your configuration to look up the 'ENV_VAR_NAME' environment variable. More info in the env-vars section

Copy binary files in leiningen template

2015-01-25 Thread Sven Richter
Hi, I am creating a new leiningen template. Now I do have a binary file (gif) which I want to copy. I tried several things like: ["resources/public/img/browser_carousel_small.jpg" (io/resource "loading.gif")] for instance, but none of it worked. Sometimes I got it copied, but it was not readab

Re: [ANN] Buddy 0.3.0: Security library for clojure.

2015-01-25 Thread Magnus Rundberget
Nice work ! Started using the 0.3.0 last week. Already enjoying the benefits of the separation :) cheers Magnus On Saturday, 24 January 2015 19:42:25 UTC+1, Andrey Antukh wrote: > > Hi! > > I am happy to announce a new release of buddy (security library for > Clojure). > > Since 0.3.0, buddy

Re: [ANN] Introducing 'Phoenix' - a new library for declarative configuration and wiring of Component-based systems

2015-01-25 Thread Leif
Hi, James. I'll let people with more experience with components critique your solution, but one thing that I thought was weird was that you had auto-namespaced keywords in the config file. I'm referring to: https://github.com/james-henderson/phoenix#adding-dependencies-between-components That

Re: [ANN] Introducing 'Phoenix' - a new library for declarative configuration and wiring of Component-based systems

2015-01-25 Thread Daniel Kersten
Hi James, This looks nice. I do have one question: is it possible to load parts of a configuration from environment variables? Eg, in your "location-aware configuration" example, lets say I wanted to specify the database user and pass configuration options as you do for the dev configurations, bu

Re: ANN: Om 0.8.2

2015-01-25 Thread Elliot Block
On Saturday, January 24, 2015 at 8:39:56 AM UTC-8, David Nolen wrote: > The release depends on ClojureScript 0.0-2719 as it leverages the new foreign > dependency functionality to simplify development and production builds. This is super super awesome. One observation for people trying this, if