Re: [ANN] Remix: mix and match machinery for web and sql

2012-09-30 Thread Shantanu Kumar
This looks cool! Thanks for sharing. The only nit I'd like to mention (about the website) is it wasn't immediately apparent to me how to find the documentation. The grey-over-black menu text didn't give it away at first. Maybe a Get started (documentation) button on the homepage would help.

Re: Clojure web framework

2012-09-30 Thread Simone Mosciatti
Immutant ( http://immutant.org/ ) IMO is moving in a great direction, if I have understand is wrapping several libraries in just one enviroment... And red hat is behind it I just find out, that usually means great doc... -- You received this message because you are subscribed to the Google

Re: [ANN] Remix: mix and match machinery for web and sql

2012-09-30 Thread Michael
Shantanu, Thanks for taking a look and the feedback. I added a Learn More button and navbar hiliting. On Sunday, September 30, 2012 2:56:12 AM UTC-4, Shantanu Kumar wrote: This looks cool! Thanks for sharing. The only nit I'd like to mention (about the website) is it wasn't immediately

Re: how to securely store parameters in config files

2012-09-30 Thread Joshua Ballanco
A common strategy in this sort of scenario is to have a config file containing the real keys installed in some shared location on your production servers. Then, you can generate Travis specific keys that you check into your repo. The idea is that if you ever fear the keys you use with Travis

maplist for core?

2012-09-30 Thread Marc Dzaebel
I often have the need to lazily iterate over rests of lists rather than elements. I frequently saw discussions about this topic. In CL it's called * maplist*, in Haskell it's *tails* (Scala missing?). Of course there are several methods to do this, e.g. (take-while identity (iterate next S)),

Re: maplist for core?

2012-09-30 Thread Stuart Sierra
Never had a use for such a thing, myself, but it sounds like a reasonable candidate for https://github.com/clojure/core.incubator at least. -S -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: Starting a new ClojureScript project, where to start?

2012-09-30 Thread Dima B
Hi Daniel, CljsBuild is a good starting point https://github.com/emezeske/lein-cljsbuild It automatically sets up environment with latest cljs version and gives complete framework with compilation, auto-compilation, support of multiple projects, sharing code between clj and cljs. Also take a

Re: maplist for core?

2012-09-30 Thread Ben Wolfson
If maplist/tails, why not inits as well? Prelude GOA Data.List inits [1,2,3] [[],[1],[1,2],[1,2,3]] I've also found haskell's unfold useful: (defn expand ;; since Clojure has reduce and not foldl [f seed] (lazy-seq (when-let [[a b] (f seed)] (cons a (expand f b) As with maplist it can

Re: how to securely store parameters in config files

2012-09-30 Thread Shantanu Kumar
On Friday, 28 September 2012 17:03:14 UTC+5:30, Murtaza Husain wrote: Hi, I am using a config file to store passwords / keys for DB and connection to other services like AWS. I am using Travis CI for build, and running my tests, and then deploying it to live server. I would like to

Transforming an ugly nested loop into clojure code

2012-09-30 Thread arekanderu
Hello, I am trying to port an ugly piece of code from Ruby to clojure. So far I have only ported it to clojure by keeping the same way it was written in Ruby and i am trying to re-write it the clojure way because...wellits very ugly. I have a complex hash map which it's structure is always

Re: maplist for core?

2012-09-30 Thread Marc Dzaebel
*expand *looks really useful too. -- 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: maplist for core?

2012-09-30 Thread Marc Dzaebel
Well, I might have to collect usecases. -- 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

Questions about using error-kit

2012-09-30 Thread Thomas Hicks
I'm trying to learn something about error-kit and encountering some unexpected responses, as follows: Clojure 1.3.0 user= (use 'clojure.contrib.error-kit) Warning: *handler-stack* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either

Re: Questions about using error-kit

2012-09-30 Thread Mayank Jain
As far as I know contrib is deprecated[1]. Perhaps others can shed more light on your problem. [1] : dev.clojure.org/display/design/Where+Did+Clojure.Contrib+Go Sent from phone. Please excuse brevity. On Oct 1, 2012 2:04 AM, Thomas Hicks hickstoh...@gmail.com wrote: I'm trying to learn

Re: Questions about using error-kit

2012-09-30 Thread Softaddicts
Contrib has been separated into separate libs since 1.3 http://dev.clojure.org/display/design/Where+Did+Clojure.Contrib+Go Suggests to use slingshot. The are 1.3 compliant monolithic contrib versions out there but it's better to move to the new implementations. Luc P. I'm trying to learn

Re: Questions about using error-kit

2012-09-30 Thread Thomas Hicks
Thanks Luc and Mayank. I will chuck the monolithic contrib lib and check out Slingshot as an error-kit replacement. -t On Sunday, September 30, 2012 1:52:08 PM UTC-7, Luc wrote: Contrib has been separated into separate libs since 1.3

Re: Transforming an ugly nested loop into clojure code

2012-09-30 Thread Grant Rettke
On Sun, Sep 30, 2012 at 2:59 PM, arekanderu arekand...@gmail.com wrote: I am trying to port an ugly piece of code from Ruby to clojure. May you share the original code? So far I have only ported it to clojure by keeping the same way it was written in Ruby and i am trying to re-write it the

Re: Transforming an ugly nested loop into clojure code

2012-09-30 Thread arekanderu
Thank you for your prompt reply Grant. * May you share the original code? * * * I will post the original function very soon* * * Why does my-map have vectors storing maps inside instead of a map with maps inside? * * * Because each vector will have more than one hash-map and each hash map will

Re: Playing with clojure-encog, Machine-Learning wrapper

2012-09-30 Thread Timothy Washington
Hey All, Just following up this post, as I'm trying to figure out how to calculate an error's partial derivative in ANN. I'm constructing a feed-forward artificial neural network https://github.com/twashing/nn, using resilient propagation training. At the moment, I'm trying to implement an

Re: More Concise or Idiomatic Max Sub-Array?

2012-09-30 Thread noahlz
Great use of reductions. Thanks! On Saturday, September 29, 2012 11:10:27 AM UTC-4, Jean Niklas L'orange wrote: Is there a more concise implementation, perhaps using `filter` or merely by making the `reduce` version more idiomatic somehow? Another version I believe is more evident

error when using pomegranate to load datomic and cemerick.piggieback

2012-09-30 Thread Brent Millare
Using the project file (defproject test 1.0 :dependencies [#_ [com.datomic/datomic-free 0.8.3538] [leiningen-core 2.0.0-preview10] [com.cemerick/piggieback 0.0.2]]) Then doing a lein2 repl and running the following commands in order user= (require