Re: Clojure, Heroku and the dreaded R10 Boot Timeout Error

2013-02-13 Thread Timothy Licata
Hi Leonardo, On Wed, Feb 13, 2013 at 7:12 PM, Leonardo Borges wrote: > I should have mentioned I'm using lein2. Heroku performs AOT > compilation for you by default when that's the case. I had a feeling I was out of date. You have just saved me a configuration step, thank you. Tim -- -- You

Re: Clojure, Heroku and the dreaded R10 Boot Timeout Error

2013-02-13 Thread Dave Sann
Maybe this past post helps https://groups.google.com/d/topic/clojure/tU1LJOXiDc4/discussion D On Thursday, 14 February 2013 14:12:07 UTC+11, Leonardo Borges wrote: > > Hi Timothy, > > I should have mentioned I'm using lein2. Heroku performs AOT > compilation for you by default when that's the

Re: Understanding sequences

2013-02-13 Thread Jonathon McKitrick
Yes, both work. Sorry, I've been staring at non-working code too long tonight. ;-) On Wednesday, February 13, 2013 10:49:58 PM UTC-5, Jonathon McKitrick wrote: > > I have 3 arrays, and need to process one element of each array as a > triplet. > > So [1 3 5] [2 4 6] [10 20 30] > > needs to produ

Re: Understanding sequences

2013-02-13 Thread Sean Grove
Presumably just (map vector [1 3 5] [2 4 6] [10 20 30]) should do the trick. On Wed, Feb 13, 2013 at 7:49 PM, Jonathon McKitrick wrote: > I have 3 arrays, and need to process one element of each array as a > triplet. > > So [1 3 5] [2 4 6] [10 20 30] > > needs to produce > > [1 2 10] > [3 4 20]

Understanding sequences

2013-02-13 Thread Jonathon McKitrick
I have 3 arrays, and need to process one element of each array as a triplet. So [1 3 5] [2 4 6] [10 20 30] needs to produce [1 2 10] [3 4 20] [5 6 30] In Common Lisp, I would just use LOOP. What's the correct Clojure way? -- -- You received this message because you are subscribed to the Goo

RC 16: Last chance to test against Clojure 1.5 before it ships

2013-02-13 Thread Stuart Halloway
If you care about Clojure 1.5 compatibility for your codebase, please test it against RC 16 as soon as possible. You can get the source and build it yourself from [1], or wait for Maven Central [2] to pick up the CI build, which usually takes a few hours. Thanks! Stu [1] https://github.com/cloju

Re: Clojure, Heroku and the dreaded R10 Boot Timeout Error

2013-02-13 Thread Leonardo Borges
Hi Timothy, I should have mentioned I'm using lein2. Heroku performs AOT compilation for you by default when that's the case. Cheers, Leonardo Borges www.leonardoborges.com On Thu, Feb 14, 2013 at 1:30 PM, Timothy Licata wrote: > Hi Leonardo, > > I ran into something similar a while ago. To

Re: Packaging/Deploying Web App

2013-02-13 Thread Feng Shen
Hi, here is one solution: add (:gen-class) to the main namespace, add something in your project.clj :aot [rssminer.main, rssminer.admin] :main rssminer.main :uberjar-name "rssminer-standalone.jar" lein uberjar Package up the project files and all dependencies into a jar file java -jar

Re: Clojure, Heroku and the dreaded R10 Boot Timeout Error

2013-02-13 Thread Timothy Licata
Hi Leonardo, I ran into something similar a while ago. To get around it, I setup :aot compilation. heroku config:add LEIN_BUILD_TASK="compile :all" However, in order for config vars to work, I had to install the labs plugin and enable user_env_compile. heroku plugins:install http://git

Re: Clojure, Heroku and the dreaded R10 Boot Timeout Error

2013-02-13 Thread Leonardo Borges
Hi Michael, Will definitely reach support - just wanted to hear if someone else in the community had issues. The only external dependency I have is Redis - but doesn't doesn't get connected until after startup. Could it be related to new relic? That's the only external service - besides download

Re: Clojure, Heroku and the dreaded R10 Boot Timeout Error

2013-02-13 Thread Michael Gorsuch
Hi Leonardo, IIRC, this error comes about when an app takes too long to launch. If you are doing anything "interesting" during startup, perhaps you can shave some time off of it to increase your chances of success. I highly recommend that you reach out to support and let them know about what

Clojure, Heroku and the dreaded R10 Boot Timeout Error

2013-02-13 Thread Leonardo Borges
Hi all, This one goes to people using heroku for their production Clojure apps. Heroku says that Dynos will be restarted at least once every day - that doesn't seem like a big issue, however this morning I noticed my web dyno has crashed with the aforementioned error (R10). I tried restarting it

Re: ANN: NEVER use clojure.core/read or read-string for reading untrusted data

2013-02-13 Thread Andy Fingerhut
On Feb 12, 2013, at 1:46 PM, Phil Hagelberg wrote: > Andy Fingerhut writes: > >> Examples of dangerous side effects that can occur with >> clojure.core/read and read-string in Clojure 1.4 and earlier: >> >> ;; This causes precious-file.txt to be created if it doesn't >> ;; exist, or if it does

Re: Belgium Clojure Meetup

2013-02-13 Thread Olivier Dumont
Hi, I live around Leuven, should be able to join in the evenings or weekends and could make it to Leuven, Antwerp or Brussels without too much hassle. best regards, Olivier -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group,

Re: abstraction on two libraries

2013-02-13 Thread Zack Maril
To do that from scratch would probably be pretty hard and not worth the effort. It would be an interesting learning experience, but for building something significant, I would recommend selecting one of the libraries and just sticking with that one at first. Hermes and Titanium are both wrappers

Re: Library naming etiquette?

2013-02-13 Thread Stuart Sierra
Please use a groupId (your name or domain name). For example, Friend: https://github.com/cemerick/friend/blob/master/project.clj#L1 -S On Tuesday, February 12, 2013 7:51:44 PM UTC-5, Jim Klucar wrote: > > I have a library that I'm getting ready to push to github / clojars and > had a question a

Re: [ANN] Clojure Meetup in Cape Town, South Africa

2013-02-13 Thread jorn krige
Hi Robert I'm currently looking for Closure programmers in the western cape. PLEASE let me know if you of any. Working, freelance, looking for employment. Contact me on 082 922 2159 Thanks so much Regards Jorn On Wednesday, December 5, 2012 8:01:06 PM UTC+2, Robert Stuttaford wrote: > > I am

Re: Packaging/Deploying Web App

2013-02-13 Thread Phil Hagelberg
Ari writes: >1. How can I create a deployable jar or war manually (or at least in a >less auto-magically way), i.e. without the lein-ring (or lien-war) plugin? This is fairly straightforward, and it's my favourite way to package web applications because it doesn't involve any behind-the

Re: Clojurians in sg?

2013-02-13 Thread eugene tan
I use Clojure for my side projects. I don't have any info to answer your question, but would be curious to know as well. On Wednesday, 13 February 2013 01:38:39 UTC+8, Omer Iqbal wrote: > > Hey, any folks from Singapore here? I have heard that a couple of banks > here use scala and possibly cloj

Packaging/Deploying Web App

2013-02-13 Thread Ari
Hi, In my limited experience with Clojure based web apps that are comprised of jetty + ring + compojure I've used the lein-ring plugin to create jars or wars depending on deployment needs. I'm curious to learn: 1. How can I create a deployable jar or war manually (or at least in a less a

abstraction on two libraries

2013-02-13 Thread AtKaaZ
Hi. Suppose you want to make an abstraction on top of two similar but different libraries (hermes and titanium), so that I could switch between using either of them(or both of them) at compiletime or runtime, how would you do something like that? Thanks. -- Please correct me if I'm wrong or inc

Re: ANN Titanium, a Clojure library on top of Titan

2013-02-13 Thread Jeroen van Dijk
> > If you like Hermes and see it as a much more complete library, please use > it. > Thanks a lot for the explanation and the work on Titanium. I'm new to Titan and I've played a bit with Hermes earlier. I do not favor one above the other (yet), I was just wondering if you were aware of the relat

Re: [ANN] 12th modern-cljs tutorial

2013-02-13 Thread Mimmo Cosenza
Thanks Mark. As I said to Paulo, I hope to complete the series. At least the friend/enlive/enfocus staff, even if the thing that I'd love to add to the series is the testing topic. mimmo On Wednesday, February 13, 2013 4:15:29 PM UTC+1, Mark wrote: > > I love these tutorials. Very useful! T

Re: [ANN] 12th modern-cljs tutorial

2013-02-13 Thread Mimmo Cosenza
thanks so much Paulo. I hope to find soon the energy to complete the journey. Mimmo On Wednesday, February 13, 2013 2:09:34 PM UTC+1, Paulo Suzart wrote: > > Really great job! > > cheers > > On 24 January 2013 00:10, Mimmo Cosenza > > wrote: > >> Hi, >> here is the 12th modern-cljs tutorial.

Re: [ANN] 12th modern-cljs tutorial

2013-02-13 Thread Mark
I love these tutorials. Very useful! Thanks On Wednesday, January 23, 2013 6:10:21 PM UTC-8, Mimmo Cosenza wrote: > > Hi, > here is the 12th modern-cljs tutorial. > > https://github.com/magomimmo/modern-cljs/blob/master/doc/tutorial-12.md > > In this short tutorial, whose title is "The highest

Clojure in the Field 2013 edition, suggestions wanted

2013-02-13 Thread Stuart Halloway
Next week, I will be giving an all-new version of my "Clojure in the Field' experience report [1] at DevNexus in Atlanta [2]. I will be drawing in Chas's State of Clojure Survey [3], and on the community success stories page [4], but those only scratch the surface of the wealth of Clojure experien

Re: [ANN] 12th modern-cljs tutorial

2013-02-13 Thread Paulo Suzart
Really great job! cheers On 24 January 2013 00:10, Mimmo Cosenza wrote: > Hi, > here is the 12th modern-cljs tutorial. > > https://github.com/magomimmo/modern-cljs/blob/master/doc/tutorial-12.md > > In this short tutorial, whose title is "The highest and the deepest > layers", I covered the HTM

Re: "IF"?

2013-02-13 Thread Dies_Felices
Thank you both, While walking the dog, it occurred to me that ( if (Some-Test) X) does near enough exactly what I was suggesting anyway... and that's already there. I take your points respectively though. Also I think this is perhaps just showing (to me) a glimpse of how powerful Lisp is. I h

Re: Clojure Position

2013-02-13 Thread Murtaza Husain
Yes Chris, I saw it after I had pressed the Post button :( On Wednesday, February 13, 2013 12:45:25 PM UTC+5:30, Chris Ford wrote: > > Murtaza, I'm guessing you probably didn't want to send us all your > resume... > > Cheers, > > Chris > > On 13 February 2013 09:57, Murtaza Husain > > > wrote: