Re: Looking for Clojure-centric career advice/suggestions

2014-07-22 Thread Zach Oakes
It sounds like you know what you want, and you're fortunate for that. I often don't, and I can tell you that greatly complicates things. At any rate, there are few things more stressful than career changes. Perhaps you are casting too small a net. Many here would love to be paid to write Clojur

Re: Is Korma still a good current choice for DB backend?

2014-07-22 Thread Sean Corfield
I'm curious as to how folks using Yesql deal with conditional queries - which is something we seem to run into a lot. For example, we have some business logic that might optionally be passed a date range and maybe some other qualifier so our query would be: (str "SELECT ... main query s

Re: How to control evaluation of code with cider

2014-07-22 Thread Timothy Washington
Ooh, this looks interesting. Afraid I don't know enough elisp to be useful. But it looks like you're already prompting the caller for the *channel-repl/cider-function* name. Is there a reason you're not using it ( *prefix*) ? Also can I ask how / where you plan to use this? Or is it just a generic

Looking for Clojure-centric career advice/suggestions

2014-07-22 Thread VaedaStrike
TL;DR - Got as close to a dream job as I could have wanted, after 6 months lost it. Now, with only experience in Clojure and Scala, and seemingly stuck in Utah, not sure what's the best next course of action. I'm putting this out there because of all the good experiences I've had over the years

Re: Is Korma still a good current choice for DB backend?

2014-07-22 Thread Jonathon McKitrick
I'm sold. I don't know what I was thing, lol. I used straight SQL for the last 3 projects, so why change now? -- Jonathon McKitrick On Tue, Jul 22, 2014 at 7:42 PM, Nick Jones < whatsyourproblemkazan...@gmail.com> wrote: > Agreed, any lib that just lets me use raw sql for queries gets the +

Re: Is Korma still a good current choice for DB backend?

2014-07-22 Thread Nick Jones
Agreed, any lib that just lets me use raw sql for queries gets the + 1. -- 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 wi

timbre logging, java libs

2014-07-22 Thread Brian Craft
Is there any good way to use timbre in a project with java libs, e.g. c3p0, that use java logging APIs? Java logging is such a hopeless muddle I don't pretend to understand it, but my impression is that libs like c3p0 use assorted backends (log4j, etc.), which in turn use assorted "appenders" to

Re: Clojure XML - is there a better way?

2014-07-22 Thread Adrian O'Sullivan
Yes good point, makes me feel the solution is maybe ok. I appreciate the feedback, thanks. On Tuesday, July 22, 2014 4:55:53 PM UTC-4, Mike Fikes wrote: > > My only gut reaction is that, without a root node, it doesn't seem that > you have "XML". (It is certainly not a well formed document, and

Re: Clojure XML - is there a better way?

2014-07-22 Thread Mike Fikes
My only gut reaction is that, without a root node, it doesn't seem that you have "XML". (It is certainly not a well formed document, and I would suspect lots of XML tools/libraries would have difficulty coping with the example you provided.) -- You received this message because you are subscri

Clojure XML - is there a better way?

2014-07-22 Thread Adrian O'Sullivan
Hi! I struggled to use clojure.data.zip.xml in the absence of a root node. My XML looks like this: http://pmd.sourceforge.net/pmd-5.1.2/rules/java/codesize.html#TooManyMethods"; priority="3"> This class has too many methods, consider refactoring it. http://pmd.sourceforge.net/pmd-5.1.2/

Re: Is Korma still a good current choice for DB backend?

2014-07-22 Thread Craig
+1 On Tuesday, July 22, 2014 11:08:21 PM UTC+10, tbc++ wrote: > > Also, read the rationale behint yesql: > https://github.com/krisajenkins/yesql IMO, it hits the nail on the head. > ORMs are both crappy object systems and crappy DB DSLs. With a library like > yesql you write your queries in pur

clojure 1.6 eval from Java

2014-07-22 Thread Dan Campbell
Hi, I'm confused about the new api, with reference to using eval, from a non-clojure jvm app. Are we still supposed to invoke eval from RT.var? That's working fine for me, so far. The new clojure.java.api seems to be relevant only to calling individual functions. My current app just need

Re: [jobs] for newbie in europe

2014-07-22 Thread Maciej Jaśkowski
Oh, Erlang is cool too ;) M On 22 July 2014 12:48, Krzysztof Władyka wrote: >> We're primarily an Erlang shop but we have small applications in Clojure. >> >> Would you like to have a chat with my manager about positions available >> here? >> > > Yes, but i preffer invest my energy in Clojure th

Re: create vectors for each key/value pair

2014-07-22 Thread Alex Walker
First, the fn sorted-map is variable argument and expects to be given (sorted-map :z 1, :b 2, :a 3) and not (sorted-map my-map). To use sorted-map, you'll need to do something like: (apply sorted-map (mapcat identity my-map)) Se

Re: create vectors for each key/value pair

2014-07-22 Thread Marc Limotte
I think you just want: user=> (sort my-map) ([1405960895 20] [1405960927 20] [1405960959 21] [1405960991 20] [1405961023 20] [1405961055 18] [1405961087 23] [1405961119 17] [1405961151 23] [1405961183 19] [1405961215 20] [1405961887 20] [1405961919 20]) sort will call seq on it's argument. The s

create vectors for each key/value pair

2014-07-22 Thread emptya45
Hi, I have an unsorted map: (def my-map {1405961887 20, 1405960895 20, 1405961919 20, 1405960927 20, 1405960959 21, 1405960991 20, 1405961023 20, 1405961055 18, 1405961087 23, 1405961119 17, 1405961151 23, 1405961183 19, 1405961215 20} I'd like to be able to sort the map b

Re: Is Korma still a good current choice for DB backend?

2014-07-22 Thread Timothy Baldridge
Also, read the rationale behint yesql: https://github.com/krisajenkins/yesql IMO, it hits the nail on the head. ORMs are both crappy object systems and crappy DB DSLs. With a library like yesql you write your queries in pure SQL and get pure data back. Now you can fully leverage both SQL and Clojur

Re: Is Korma still a good current choice for DB backend?

2014-07-22 Thread Jonathon McKitrick
I'll keep that in mind when I decide to learn MongoDB. :-) On Tuesday, July 22, 2014 8:25:16 AM UTC-4, Robin Heggelund Hansen wrote: > > Don't know about SQL-based solutions, but Monger (MongoDB bindings) just > released a 2.0 update and is great! > > kl. 14:10:16 UTC+2 tirsdag 22. juli 2014 skr

Re: Is Korma still a good current choice for DB backend?

2014-07-22 Thread Jonathon McKitrick
I liked the no-fuss integration of relationships for the particular project I'm working on. I could live without it, but it would greatly simplify the code on server side. On Tuesday, July 22, 2014 8:29:13 AM UTC-4, Michael Klishin wrote: > > On 22 July 2014 at 16:10:31, Jonathon McKitrick (jmc

Re: Is Korma still a good current choice for DB backend?

2014-07-22 Thread Michael Klishin
On 22 July 2014 at 16:10:31, Jonathon McKitrick (jmckitr...@gmail.com) wrote: > > Development and support seem to have slowed down. Are there > newer or better choices out there with momentum right now? Just use clojure.jdbc or clojure.java.jdbc with a validation library (Validateur, Schema, Bo

Re: Is Korma still a good current choice for DB backend?

2014-07-22 Thread Robin Heggelund Hansen
Don't know about SQL-based solutions, but Monger (MongoDB bindings) just released a 2.0 update and is great! kl. 14:10:16 UTC+2 tirsdag 22. juli 2014 skrev Jonathon McKitrick følgende: > > Development and support seem to have slowed down. Are there newer or > better choices out there with momen

Is Korma still a good current choice for DB backend?

2014-07-22 Thread Jonathon McKitrick
Development and support seem to have slowed down. Are there newer or better choices out there with momentum right now? -- 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

Re: [jobs] for newbie in europe

2014-07-22 Thread Krzysztof Władyka
> > We're primarily an Erlang shop but we have small applications in Clojure. > > Would you like to have a chat with my manager about positions available > here? > > Yes, but i preffer invest my energy in Clojure then Erlang. Just saying that to be clear :) > > On Mon, Jul 21, 2014 at 10:13 A

Re: Stumped: unable to resolve symbol in macro expansion

2014-07-22 Thread Dave Tenny
Doh! Major face palm. I had such a bad case of tunnel vision on the macro definition I forgot to look up the stack once I'd fixed the macro. Thanks. Good to have extra eyes. On Mon, Jul 21, 2014 at 1:04 PM, Matthew DeVore wrote: > I haven't taken the time to fully grok your macro, but the e