Re: [ANN] Clojure 1.8.0-RC3

2015-12-14 Thread Noam Ben-Ari
Brian: it's not an issue with Midje. On Tuesday, December 15, 2015, Brian Marick wrote: > Noam: does this mean it's not an issue with Midje? If it is, I'll look > into it. > > Noam Ben-Ari wrote: > >> After upgrading to [reduce-fsm "0.1.4"] a

Re: [ANN] Clojure 1.8.0-RC3

2015-12-08 Thread Noam Ben-Ari
After upgrading to [reduce-fsm "0.1.4"] all my tests pass with RC3 :-) On Tuesday, December 8, 2015 at 3:14:21 PM UTC+2, Noam Ben-Ari wrote: > > Thanks for the prompt response, I have filed a ticket to the library > author: > > https://github.com/cdorrat/reduce-fs

Re: [ANN] Clojure 1.8.0-RC3

2015-12-08 Thread Noam Ben-Ari
t; > This is now an exception http://dev.clojure.org/jira/browse/CLJ-1456. > > > > On 8 Dec 2015, at 13:05, Noam Ben-Ari > > wrote: > > > > Hi, > > I have just tried 1.8.0-RC3 and saw a problem. > > > > I have a project in which I run tests with

Re: [ANN] Clojure 1.8.0-RC3

2015-12-08 Thread Noam Ben-Ari
Hi, I have just tried 1.8.0-RC3 and saw a problem. I have a project in which I run tests with `lein midje`, and this runs fine with 1.7.0. When I change the clojure dependency to 1.8.0-RC3 and run it I get this exception: --- Exception in thread "main" java.lang.RuntimeException: Too many arg

Re: camelize-dasherize - reinventing the wheel?

2015-01-07 Thread Noam Ben-Ari
Cool! I'm glad you found it useful :-) On Wednesday, January 7, 2015 2:12:35 AM UTC+2, Andrey Antukh wrote: > > Hi! > > 2015-01-06 20:25 GMT+01:00 Noam Ben-Ari >: > >> Hi, >> >> I've written a small library (1 ns, 100 lines) to transform nested maps

Re: camelize-dasherize - reinventing the wheel?

2015-01-07 Thread Noam Ben-Ari
You are right. If it is only applied to keys, like in Thomas's example, it can be very helpful. On Wednesday, January 7, 2015 11:21:39 AM UTC+2, Andrey Antukh wrote: > > Hello > > 2015-01-07 10:11 GMT+01:00 Noam Ben-Ari >: > >> @Thomas >> >> Unfortunatel

Re: camelize-dasherize - reinventing the wheel?

2015-01-07 Thread Noam Ben-Ari
1561deaf13e11 > "Elapsed time: 35.488 msecs" > > clojure.walk has keywordize-keys and stringify-keys, maybe a suitable > starting point for your implementation. > > HTH, > /thomas > > > On Tuesday, January 6, 2015 8:25:57 PM UTC+1, Noam Ben-Ari wrote: >&g

Re: camelize-dasherize - reinventing the wheel?

2015-01-06 Thread Noam Ben-Ari
l-snake-kebab > > It mentions in its docs that it avoids using regex's. > > Andy > > On Tue, Jan 6, 2015 at 11:25 AM, Noam Ben-Ari > wrote: > >> Hi, >> >> I've written a small library (1 ns, 100 lines) to transform nested maps >> from

camelize-dasherize - reinventing the wheel?

2015-01-06 Thread Noam Ben-Ari
Hi, I've written a small library (1 ns, 100 lines) to transform nested maps from "dash-case" keys to "camelCase" keys and back. The original use case was taking MySQL records that use camelCase field names and convert them to dash-case so they don't stick out like a sore thumb in my code. Simi

Re: [ANN] cuerdas 0.1.0: A string manipulation library for clojure and clojurescript.

2014-12-23 Thread Noam Ben-Ari
Nice job. I would add to docs how each function handles nil. Also, I'm used to another meaning for "blank?", from Ruby/Rails and other places, which returns true iff the string is empty or nil. On Tuesday, December 23, 2014 7:48:35 PM UTC+2, Andrey Antukh wrote: > > Hello everybody. > > I want

Re: Securing Clojure + Clojurescript Web App

2013-03-01 Thread Ari
On Tuesday, February 26, 2013 8:54:19 PM UTC-5, Ari wrote: > > On Tuesday, February 26, 2013 3:16:23 PM UTC-5, Chas Emerick wrote: > > >> What do you mean by "sidesteps the auth"? If you're using >> shoreleave-remote-ring, then the handler produced by

Re: Securing Clojure + Clojurescript Web App

2013-02-26 Thread Ari
original post. Following up on my original post, is it possible to create a "roles" cookie upon initial authentication; if so, how? Thanks. -Ari -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, se

Securing Clojure + Clojurescript Web App

2013-02-26 Thread Ari
ess rights to views, while on the serverside I use a "roles" session variable to determine access rights to GET/POST data. But Shoreleave side-steps the serverside authentication/authorization (via friend), so I'm not sure how to proceed. Thanks. -Ari -- -- You received t

Re: Unable to Authenticate via Friend + Interactive Form Workflow

2013-02-20 Thread Ari
uris can be separated via configuration? Also, if the username is an email address authentication, in spite of correct credentials, fails. Anyone know why that is? Thanks. -Ari -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To p

Unable to Authenticate via Friend + Interactive Form Workflow

2013-02-20 Thread Ari
Hi, I'm trying to incorporate authentication via the interactive form workflow; however, I'm currently unable to receive submitted credentials for verification. When I submit the sign-in form that has it's action bound to "/login", I get "Page not found" as per my default route below. I've inc

Packaging/Deploying Web App

2013-02-13 Thread Ari
a less auto-magically way), i.e. without the lein-ring (or lien-war) plugin? 2. How can I create a deployable jar or war -- with or without lein-ring/lein-war -- when the app relies on an alternative adapter such as aleph, http-kit, etc? Thanks. -Ari -- -- You received th

Bootstrapping Web Apps

2013-02-12 Thread Ari
s, message queues, active background jobs, etc. Thanks. -Ari -- -- 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 pati

Re: How to Process Files in Background

2013-02-11 Thread Ari
>From what I understand, futures would work. But is there a way to limit thread creation to a predetermined pool size? I'm concerned as more files are uploaded the continual future calls would soon overwhelm the system. -Ari On Monday, February 11, 2013 11:54:19 AM UTC-5, Zack Mar

How to Process Files in Background

2013-02-11 Thread Ari
olved. Suggestions/recommendations appreciated. Best, Ari -- -- 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

Re: Help with Clojurescript + DOM Manipulation

2013-01-25 Thread Ari
Additionally, ".each()" is another option -- (defn listen-to-links [links] (.each links (fn [idx, el] (.log js/console el However, how does one reference "this" within the anonymous (or defined) function? On Wednesday, January 23, 2013 11:45:13 PM UTC-5, Evan Mezeske

Help with Clojurescript + DOM Manipulation

2013-01-23 Thread Ari
Hi, The following clojurescript code is *supposed* to identify all anchor tags and print them (originally, I was trying to attach listeners and callbacks); unfortunately, I can't get it to work. Confusingly, there are no compilation or runtime errors. Anyone see what could be wrong? Thanks. N

Re: ClojureScript + Jayq Resulting in Error

2013-01-18 Thread Ari
I also noticed that when I compile the cljs code I get: WARNING: Use of undeclared Var jayq.core/clj->js On Friday, January 18, 2013 9:56:22 PM UTC-5, Ari wrote: > > Hi, > > Below is the project.clj -- anything stand out? Thanks for the help. > > (defproject s

Re: ClojureScript + Jayq Resulting in Error

2013-01-18 Thread Ari
; :optimizations :whitespace :pretty-print true}}] :repl-listen-port 3000 :repl-launch-commands {"firefox" ["firefox" :stdout "stdout.log" :stderr "stderr.log"]}} :ring {:handler sample.routes/app}) On Friday, January 18, 2013

Re: ClojureScript + Jayq Resulting in Error

2013-01-18 Thread Ari
ure"}), "\ufdd0'contents":cljs.core.ObjMap.fromObject(["clojure"], {"clojure":/edn|clojure/}), "\ufdd0'converters":cljs.core.ObjMap.fromObject(["text edn", "text clojure"], {"text edn":jayq.core.mimetype_converter,

ClojureScript + Jayq Resulting in Error

2013-01-18 Thread Ari
query/1.8.3/jquery.min.js"</a>;> var CLOSURE_NO_DEPS = true; Clojurescript: (ns myapp.example (:use [jayq.core :only [$]]) (:use-macros [jayq.macros :only [ready]])) (ready (js/alert "Hello")) Error: jQuery.ajaxSetup(jayq.core.clj__GT_js.call... -Ari -- You re

Using Google Template Library with ClojureScript App

2012-12-15 Thread Ari
Hi, Since it can not be included as a dependency, how does one integrate the Google Closure Template library into a Leiningen-based Clojure/ClojureScript application? Ideally, I'd like for the templates to be auto-compiled as is done for *.cljs files via the cljsbuild plugin. Thanks.

Re: How to Collapse Nested Map into a Sequence of Flat Maps

2011-10-10 Thread Ari
> I'd appreciate suggestions and insights on how I can collapse a nested > map with "n" number of keys (levels) to create a flat map which is > comprised of composite keys and a value. For example, let's say we > have: > > { "a" { 2011 [ [ &qu

Re: How to Collapse Nested Map into a Sequence of Flat Maps

2011-10-10 Thread Ari
> Your input isn't a legal Clojure form, and the correlation between > input and output is difficult to spot, so it is hard to guess what you > mean. Sorry about the malformed map, a correctly formed map follows: {"a" {2011 [["a" 2011 "ari"] ["a

How to Collapse Nested Map into a Sequence of Flat Maps

2011-10-09 Thread Ari
Hi, I'd appreciate suggestions and insights on how I can collapse a nested map with "n" number of keys (levels) to create a flat map which is comprised of composite keys and a value. For example, let's say we have: { "a" { 2011 [ [ "a" 2011 "ari&quo