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 <mar...@exampler.com> 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.

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

Re: [ANN] Clojure 1.8.0-RC3

2015-12-08 Thread Noam Ben-Ari
2 > 3). > > This is now an exception http://dev.clojure.org/jira/browse/CLJ-1456. > > > > On 8 Dec 2015, at 13:05, Noam Ben-Ari <nbe...@gmail.com > > wrote: > > > > Hi, > > I have just tried 1.8.0-RC3 and saw a problem. > > > > I have a pro

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: 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 nbe...@gmail.com javascript:: @Thomas Unfortunately, clojure.walk

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 nbe...@gmail.com javascript:: Hi, I've written a small library (1 ns, 100 lines) to transform nested maps from dash-case keys

Re: camelize-dasherize - reinventing the wheel?

2015-01-07 Thread Noam Ben-Ari
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: Hi, I've written a small library (1 ns, 100 lines) to transform nested maps from dash-case

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.

Re: camelize-dasherize - reinventing the wheel?

2015-01-06 Thread Noam Ben-Ari
It mentions in its docs that it avoids using regex's. Andy On Tue, Jan 6, 2015 at 11:25 AM, Noam Ben-Ari nbe...@gmail.com javascript: wrote: 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

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 wanted to

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 its wrap-rpc middleware is subject to whatever

Securing Clojure + Clojurescript Web App

2013-02-26 Thread Ari
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 this message because you are subscribed to the Google

Re: Securing Clojure + Clojurescript Web App

2013-02-26 Thread Ari
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, send email to clojure@googlegroups.com Note that posts from new members are moderated - please

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

Re: Unable to Authenticate via Friend + Interactive Form Workflow

2013-02-20 Thread Ari
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 post to this group, send email to clojure

Packaging/Deploying Web App

2013-02-13 Thread Ari
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 this message

Bootstrapping Web Apps

2013-02-12 Thread Ari
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 patient with your first post

How to Process Files in Background

2013-02-11 Thread Ari
. 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 first post

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 Maril wrote

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.

ClojureScript + Jayq Resulting in Error

2013-01-18 Thread Ari
[jayq.macros :only [ready]])) (ready (js/alert Hello)) Error: jQuery.ajaxSetup(jayq.core.clj__GT_js.call... -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

Re: ClojureScript + Jayq Resulting in Error

2013-01-18 Thread Ari
edn:jayq.core.mimetype_converter, Uncaught TypeError: Cannot call method 'call' of undefined On Friday, January 18, 2013 3:48:16 PM UTC-5, Ari wrote: Hi, When I use the jayq https://github.com/ibdknox/jayq library to wait until the page loads (see following code) I get the error below

Re: ClojureScript + Jayq Resulting in Error

2013-01-18 Thread Ari
:31 PM UTC-5, Ilia Ablamonov wrote: Hello Ari, I've tried to reproduce your case and it works for me. I use the following project.clj: (defproject playground 0.1.0 :dependencies [[jayq 2.0.0]] :min-lein-version 2.0.0 :source-paths [src] :plugins [[lein-cljsbuild 0.2.10

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 sample 0.1.0-SNAPSHOT :description

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. -Ari

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 2011 dan]], 2010 [[a 2010 jon]]}} Now

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 [ [ a 2011 ari] [ a 2011 dan] ] } { 2010 [ [ a 2010 jon] ] } } I'd

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] [ a 2011 dan] ] } { 2010 [ [ a 2010 jon] ] } } I'd like