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 error is not
> the fault of your macro, but of the function invocation. (foo x) is causing
> the error because x is undefined. foo is a plain function, not a macro, so
> it tries to evaluate each argument. (foo 'x) works fine for me, as does
> (let [x 42] (foo x))
>
> I guess the fact that (foo x) recycled the name of the parameter used in
> the function definition is what made the error message confusing?
>
>
> On Monday, July 21, 2014 9:49:10 AM UTC-7, Dave Tenny wrote:
>
>> In my case, I'm trying to use a the expression '[x] that is available to
>> the macro in the resulting product.  So I don't want the value of x at all,
>> just a vector with the symbol x.
>>
>> That vector is in a variable I have in the macro named
>> 'positional-parameters', so I substitute '~positional-parameters to with
>> the hope of getting '[x] in the resulting definition.
>>
>> Here's a fragment of the overall defs.  As you can see I'm just messing
>> around, I was trying to write a defun with 'supplied-p' lambda list
>> semantics, and my clojure/macrology is awful.  It's the macro near the
>> bottom.  You can append this to
>> https://github.com/dtenny/clojdt/blob/master/src/jdt/cl.clj if you want
>> to git clone and compile it.
>>
>> (def lambda-list-keyword-symbols
>>   "Symbols without namespace specifications"
>>   (into #{} (map symbol ["&allow-other-keys" "&key" "&rest" "&aux"
>> "&optional"])))
>>
>> (defn lambda-list-keyword?
>>   "If x is a lambda list keyword, in any case, return the canonicalized
>> form as a symbol.
>>If it starts with an ampersand but is not a valid lambda list keyword,
>> throw an exception."
>>   [x]
>>   (let [sym-name (.toLowerCase (name x))]
>> (if (= (first sym-name) \&)
>>   (if-let [lambda-sym (lambda-list-keyword-symbols (symbol sym-name))]
>> lambda-sym
>> (throw (Exception. (str "'" x "' is not a valid lambda list
>> keyword."
>>   nil)))
>>
>> (defn lambda-list-segment
>>   "Return three values in a vector.
>>
>>The first value is a vector of non-lambda-list-keywords
>>in l before the next lambda list keyword in the list.  Order is
>> preserved.
>>
>>The second value is the canonicalized lambda list keyword (as a
>> clojure symbol, e.g. '&aux)
>>that terminated accumulation, or nil if we reached the end of the list.
>>
>>The third value is the rest of the list following the lambda list
>> keyword, or nil if there aren't
>>any more values.
>>
>>E.g. (lambda-list-segment '(a b &optional c))
>> => [[a b] &optional (c)]"
>>   [l]
>>   (loop [result [] l l]
>> (if (empty? l)
>>   [result nil nil]
>>   (let [head (first l)
>> tail (rest l)
>> lambda-keyword (lambda-list-keyword? head)]
>> (if lambda-keyword
>>   [result lambda-keyword tail]
>>   (recur (conj result head) tail))
>>
>> (defn partition-lambda-list
>>   "Return a map keyed by lambda list keyword (or the pseudo keyword
>> '&positional'
>>for positional args), and valued by a vector lambda vars associated
>> with the
>>type of lambda list element, in the order specified by the caller.
>>E.g. (partition-lambda-list [a b c &optional (d nil d-supplied-p) &key
>> e])
>> => {&positional [a b c] &optional [(d nil d-supplied-p)] &key [e]}
>>Ignore case in things appearing to be lambda list keywords.
>>Complain if any symbol begins with an ampersand and is not a valid
>> lambda list keyword.
>>Preserve order of parameters."
>>   [lambda-list]
>>   (let [first-chunk (lambda-list-segment lambda-list)
>> positionals (first first-chunk)]
>> (loop [result {'&positional positionals}
>>next-lambda-key (second first-chunk)
>>lambda-list (nth first-chunk 2)]
>>   (if (empty? lambda-list)
>> (if next-lambda-key
>>   (merge result {next-lambda-key []}) ; in case it's
>> &allow-other-keys
>>   result)
>> (let [chunk (lambda-list-segment lambda-list)]
>>   (recur (merge result {next-lambda-key (first chunk)})
>>  (second chunk)
>>  (nth chunk 2)))
>>
>> (defn parse-defun-decls
>>   "Parse defun elements following the lambda list.
>>If there are declarations, strip them from the sequence.
>>Return a vector of two things.
>>1) the docstring, or nil if there isn't one.
>>2) forms following the optional declarations and docstring, nil if
>> there aren't any."
>>   [s]
>>   (let [declare? (fn [l]
>>(and (list? l)
>> (.equalsIgnoreCase (name (first l)) "declare")))]
>> (loop [s s]
>>   (if (empty? s)
>> [nil ni

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 AM, Krzysztof Władyka  > wrote:
>
>> I live in Poznań (Poland).
>>
>>
>> On Sunday, July 20, 2014 5:35:19 PM UTC+2, Aaron France wrote:
>>
>>> Where are you based?
>>>
>>>
>>> On Sun, Jul 20, 2014 at 4:29 PM, Krzysztof Władyka  
>>> wrote:
>>>
 Hello,

 I am living in Poland and i have a little problem there... totally 0 
 jobs for Clojure Programmers.

 I am also beginner in Clojure. More about my IT skills you can read on 
 site http://wladyka.eu/ .

 Do you know any option to get a job in Europe or remotely if i don't 
 have any seriously experience with Clojure? But i see it's good and i want 
 use that more then others languages. I can start with less salary but in 
 my 
 area is big trouble to find any job with Clojure...

 If you know somebody who need fresh blood tell him about me :)

 Best regards,
 Krzysztof Władyka

 -- 
 You received this message because you are subscribed to the Google
 Groups "Clojure" group.
 To post to this group, send email to clo...@googlegroups.com

 Note that posts from new members are moderated - please be patient with 
 your first post.
 To unsubscribe from this group, send email to
 clojure+u...@googlegroups.com

 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en
 --- 
 You received this message because you are subscribed to the Google 
 Groups "Clojure" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to clojure+u...@googlegroups.com.

 For more options, visit https://groups.google.com/d/optout.

>>>
>>>  -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com 
>> 
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+u...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to clojure+u...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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 new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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, Bouncer,  etc).

There is no rush to use the newest hotness in the Clojure community so Korma
should work OK if that's what you want.
--  
@michaelklishin, github.com/michaelklishin

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 (jmcki...@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, Bouncer,  etc). 
>
> There is no rush to use the newest hotness in the Clojure community so 
> Korma 
> should work OK if that's what you want. 
> --   
> @michaelklishin, github.com/michaelklishin 
>

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 skrev Jonathon McKitrick følgende:
>>
>> 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 new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

Timothy


On Tue, Jul 22, 2014 at 6:45 AM, Jonathon McKitrick 
wrote:

> 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 skrev Jonathon McKitrick
>> følgende:
>>>
>>> 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 new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
“One of the main causes of the fall of the Roman Empire was that–lacking
zero–they had no way to indicate successful termination of their C
programs.”
(Robert Firth)

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 by key and then place each value pair 
into a vector. 

An attempt at (sorted-map my-map) returns 'No value supplied for key: 
{1405961887 20 ' }

When I attempt to create a vector from the key/pairs 

(map #(vector %) my-map)

I receive each key/value in a vector within a vector

([[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]])

My goal is to create a collection of vectors to place in an Incanter 
dataset:

incanter/dataset ["time" "requests"]
   [[1405961887 20]
[1405960895 20]
[[1405961919 20]])

Many Thanks

Adrian





-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 seq from a Map is a sequence of
vectors ([k v], ...).  The default sorting for the vectors will be the
natural sort of the first element, then the second element, and so on.

You can also do (-> my-map sort reverse) if you want a DESC sort.

marc



On Tue, Jul 22, 2014 at 12:24 PM,  wrote:

> 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 by key and then place each value pair
> into a vector.
>
> An attempt at (sorted-map my-map) returns 'No value supplied for key:
> {1405961887 20 ' }
>
> When I attempt to create a vector from the key/pairs
>
> (map #(vector %) my-map)
>
> I receive each key/value in a vector within a vector
>
> ([[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]])
>
> My goal is to create a collection of vectors to place in an Incanter
> dataset:
>
> incanter/dataset ["time" "requests"]
>[[1405961887 20]
> [1405960895 20]
> [[1405961919 20]])
>
> Many Thanks
>
> Adrian
>
>
>
>
>
>  --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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))

Second, when a clojure hash-map is used as a sequence, each key/value pair 
is actually a MapEntry, which behaves like a vector of [key value].  So 
your map fn is effectively doing (vector [1405961887 20]), which produces a 
doubly-wrapped [[1405961887 20]] for each respective element.

On Tuesday, July 22, 2014 11:24:15 AM UTC-5, empt...@gmail.com wrote:
>
> 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 by key and then place each value pair 
> into a vector. 
>
> An attempt at (sorted-map my-map) returns 'No value supplied for key: 
> {1405961887 20 ' }
>
> When I attempt to create a vector from the key/pairs 
>
> (map #(vector %) my-map)
>
> I receive each key/value in a vector within a vector
>
> ([[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]])
>
> My goal is to create a collection of vectors to place in an Incanter 
> dataset:
>
> incanter/dataset ["time" "requests"]
>[[1405961887 20]
> [1405960895 20]
> [[1405961919 20]])
>
> Many Thanks
>
> Adrian
>
>
>
>
>
>

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 then Erlang. Just saying that
> to be clear :)
>
>>
>>
>> On Mon, Jul 21, 2014 at 10:13 AM, Krzysztof Władyka 
>> wrote:
>>>
>>> I live in Poznań (Poland).
>>>
>>>
>>> On Sunday, July 20, 2014 5:35:19 PM UTC+2, Aaron France wrote:

 Where are you based?


 On Sun, Jul 20, 2014 at 4:29 PM, Krzysztof Władyka 
 wrote:
>
> Hello,
>
> I am living in Poland and i have a little problem there... totally 0
> jobs for Clojure Programmers.
>
> I am also beginner in Clojure. More about my IT skills you can read on
> site http://wladyka.eu/ .
>
> Do you know any option to get a job in Europe or remotely if i don't
> have any seriously experience with Clojure? But i see it's good and i want
> use that more then others languages. I can start with less salary but in 
> my
> area is big trouble to find any job with Clojure...
>
> If you know somebody who need fresh blood tell him about me :)
>
> Best regards,
> Krzysztof Władyka
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@googlegroups.com
>
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+u...@googlegroups.com
>
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to clojure+u...@googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.


>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>> To post to this group, send email to clo...@googlegroups.com
>>> Note that posts from new members are moderated - please be patient with
>>> your first post.
>>> To unsubscribe from this group, send email to
>>> clojure+u...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/clojure?hl=en
>>> ---
>>> You received this message because you are subscribed to the Google Groups
>>> "Clojure" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to clojure+u...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>
>>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 needs to evaluate clojure expressions in 
general, the '( function & parms )' that you would type in a repl.


A related question would be, can we use the new api, to evaluate clojure 
expressions?


-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 pure SQL and get pure data back. Now you 
> can fully leverage both SQL and Clojure. 
>
> Timothy
>
>
> On Tue, Jul 22, 2014 at 6:45 AM, Jonathon McKitrick  > wrote:
>
>> 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 skrev Jonathon McKitrick 
>>> følgende:

 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 clo...@googlegroups.com 
>> 
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+u...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to clojure+u...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> “One of the main causes of the fall of the Roman Empire was that–lacking 
> zero–they had no way to indicate successful termination of their C 
> programs.”
> (Robert Firth) 
>

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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/rules/java/codesize.html#TooManyMethods";
 
priority="3">
This class has too many methods, consider refactoring it.

http://pmd.sourceforge.net/pmd-5.1.2/rules/java/codesize.html#ExcessiveMethodLength";
 
priority="3">
Avoid really long methods.



... more ...

I want to extract ExcessiveMethodLength violations, and then calculate the 
difference between the beginline and endline attributes.  Here's what I 
came up with:

(for [x pmd-seq :when (and 
(= :violation (:tag x)) 
(= "ExcessiveMethodLength" (:rule (:attrs x))) )]  
   (- (read-string (:endline (:attrs x))) (read-string (:beginline (:attrs 
x)))  ))


It does the job, but I feel that zip xml would have been better, but I 
could not figure out how to filter the data.

Any insights appreciated.

Thanks
Adrian


-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 I would 
> suspect lots of XML tools/libraries would have difficulty coping with the 
> example you provided.)
>

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 
write to files, dbs, etc. clojure.tools.logging uses the same backends 
(log4j, etc.), to the same purpose. Timbre, however, just implements 
appenders, so it can't forward to log4j, and log4j can't forward to timbre. 
Timbre can operate as a backend for clojure.tools.logging, but that only 
helps with clojure libs.

Is any of this correct?

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 + 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 with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "Clojure" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/clojure/rDyYHfC01RQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 with people in the Clojure community. I very much value what 
you all have done and do. As best I can tell you're the salt of the earth.

I'm a rather newly minted programmer. Six months on the job.

I claim Clojure as my first language simply because I never saw my initial 
tryst with VB.NET and Visual Studio as being much more than tinkering/not 
really understanding. 

It's kind of a long and convoluted story as to how I got here, I can share 
it if anyone's interested, but for now let's just say that my 6 years of 
trying to learn Clojure in my spare time landed me my first official 
programming gig ... learning Scala.

Being a bit tied to Utah (fiscally and family-wise at the moment) this 
seemed to be the best chance I had at starting my professional programming 
career on as close to my terms as possible, so I took it.

I still like Clojure better than Scala (though I've learned a lot using 
Scala), but these last six months programming in a professional environment 
has cemented for me that I absolutely love programming. Being able to work 
in a code repository of functional, industry oriented code and doing real 
stuff that made a difference, I'll just say I never thought work could be 
so enjoyable, nor that I'd ever have the chance to work with so many smart 
and good people. 

Unfortunately, as an outgrowth of my newness, company politics and a change 
in team management I was told to look for a job elsewhere. 

I got right to work and applied to everything that looked anything close to 
what I then had. 

I was amazed, the first four I applied to all responded well. And as a plus 
they all were either using, or experimenting with either Clojure or Scala.

Unfortunately, as unexpected as the job loss was for myself, it hit my wife 
even harder, we've not had an easy time our first 4 years of marriage on 
the economic side of things and emotionally she was rather paralyzed by 
this news. This combined in an unfortunate way with the fact that all four 
places quickly responded to me and, also in a difficult way, with a few 
decisions in how to approach the coding challenges I was given. In short, I 
was not terribly impressive for any of the four companies. Ironically the 
one company where I felt I did the worst has been the most understanding 
and is willing to give me a second chance after I take a couple of 
challenges they've given me.

The problem I'm looking for help with is to know how to approach this in 
the best way that keeps me bringing in food for and keeping a roof over 
 the head of my wife and son, all this hopefully without sidelining my 
career goals, to the extent that that's possible. 

While I can't go and do a hard ruling out of anything, the whole relocation 
idea to where jobs are would be an insanely tough sell. I'm not sure if 
anyone would take on a remote worker as green as myself. And here, where 
I'm at in Utah, is hardly full of companies ready to take some guy who has 
6 months of Scala experience and only self-taught (and what most would 
consider 'hobby' experience) with Clojure. Aside from the fact that very 
few even know what those languages are is the fact that since I've been so 
focused on functional programming I'm really hard pressed to show people 
what I know and what I can do. And then finding someone willing to take a 
chance on me.

I'd like to avoid the tech support jobs I've had before as they would both 
pay substantially less AND they would be significant distractions on the 
time for me to move forward and learn. I just feel like I'm on the cusp of 
being a very productive and capable programmer and, at the same time, like 
it's all trying to get away from me. I'm trying to learn and apply what I 
know in the time between applying for work and handling all the other 
miscellany connected with that and keeping my little family going. And 
while I can't rule out school I'm having a hard time justifying it in my 
mind when I feel like I'm so close to being a very capable programmer.

I've really studied a great deal on a significant number of things, 
everything from Relational database theory to things like REST and HATEOAS 
as well as having used a little of Instaparse a previous job (one of the 
big helps in getting the Scala job). Most recently I've been dabbling in Om 
and Pedestal in my own time, I've also gotten my hands wet with a bit of 
CSS & SASS. And, while not entirely connected to coding, I grew up around 
Illustrator and Photoshop and am very conversant in Graphic Design (but 
most of my experience is for printed mediums).

Any advice or suggestions?

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" 

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
piece of code that will fit into a processing pipeline.

Is this something you would integrate with piggieback
 or austin
?


Tim Washington
Interruptsoftware.com 


On Mon, Jul 21, 2014 at 1:31 PM, Brent Millare 
wrote:

> As a work in progress, here is the code I came up with, it hard codes the
>> function name:
>>
>
> (defun cider-eval-cljs-defun-at-point (&optional prefix)
>   "Evaluate the current toplevel form, and print result in the minibuffer.
> With a PREFIX argument, print the result in the current buffer."
>   (interactive "P")
>   (let ((form (concat "(user/live-repl-client \""
>   (replace-regexp-in-string (regexp-quote "\"")
> (regexp-quote "\\\"")
>  (replace-regexp-in-string (regexp-quote "\\")
>   (regexp-quote "")
>   (cider-defun-at-point)))
>   "\")")))
> (if prefix
> (cider-interactive-eval-print form)
>   (cider-interactive-eval form
>
> (define-key cider-mode-map (kbd "C-c C-v") 'cider-eval-cljs-defun-at-point)
>
>
> --
> 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 from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 stuff WHERE basic conditions"
(when date-range (str " AND dateUpdated >= ? AND dateUpdated < 
?"))
(when qualifier " AND someColumn = ?"))

and then some conditions to build the parameters:

(cond-> basic-params
date-range (concat date-range)
qualifier (concat [qualifier]))

It seems like with Yesql we'd have to have four different query functions and 
then code like this:

(if date-range
(if qualifier
(query-with-date-range-and-qualifier db basic params 
(first date-range) (second date-range) qualifier)
(query-with-date-range db basic params (first 
date-range) (second date-range)))
(if qualifier
(query-with-qualifier db basic params qualifier)
(query-basic db basic params)))

Sean

On Jul 22, 2014, at 6:08 AM, Timothy Baldridge  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 pure SQL 
> and get pure data back. Now you can fully leverage both SQL and Clojure. 



signature.asc
Description: Message signed with OpenPGP using GPGMail


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 Clojure, but if you can't find such an opportunity, you may want to 
broaden your search for functional or JVM-based jobs instead.

It is also very helpful to have some open source work you can show off. 
Coding challenges are often completely detached from reality, and open 
source work can sometimes offset their importance.

Zach

On Tuesday, July 22, 2014 9:03:13 PM UTC-4, VaedaStrike wrote:
>
> 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 with people in the Clojure community. I very much value what 
> you all have done and do. As best I can tell you're the salt of the earth.
>
> I'm a rather newly minted programmer. Six months on the job.
>
> I claim Clojure as my first language simply because I never saw my initial 
> tryst with VB.NET and Visual Studio as being much more than tinkering/not 
> really understanding. 
>
> It's kind of a long and convoluted story as to how I got here, I can share 
> it if anyone's interested, but for now let's just say that my 6 years of 
> trying to learn Clojure in my spare time landed me my first official 
> programming gig ... learning Scala.
>
> Being a bit tied to Utah (fiscally and family-wise at the moment) this 
> seemed to be the best chance I had at starting my professional programming 
> career on as close to my terms as possible, so I took it.
>
> I still like Clojure better than Scala (though I've learned a lot using 
> Scala), but these last six months programming in a professional environment 
> has cemented for me that I absolutely love programming. Being able to work 
> in a code repository of functional, industry oriented code and doing real 
> stuff that made a difference, I'll just say I never thought work could be 
> so enjoyable, nor that I'd ever have the chance to work with so many smart 
> and good people. 
>
> Unfortunately, as an outgrowth of my newness, company politics and a 
> change in team management I was told to look for a job elsewhere. 
>
> I got right to work and applied to everything that looked anything close 
> to what I then had. 
>
> I was amazed, the first four I applied to all responded well. And as a 
> plus they all were either using, or experimenting with either Clojure or 
> Scala.
>
> Unfortunately, as unexpected as the job loss was for myself, it hit my 
> wife even harder, we've not had an easy time our first 4 years of marriage 
> on the economic side of things and emotionally she was rather paralyzed by 
> this news. This combined in an unfortunate way with the fact that all four 
> places quickly responded to me and, also in a difficult way, with a few 
> decisions in how to approach the coding challenges I was given. In short, I 
> was not terribly impressive for any of the four companies. Ironically the 
> one company where I felt I did the worst has been the most understanding 
> and is willing to give me a second chance after I take a couple of 
> challenges they've given me.
>
> The problem I'm looking for help with is to know how to approach this in 
> the best way that keeps me bringing in food for and keeping a roof over 
>  the head of my wife and son, all this hopefully without sidelining my 
> career goals, to the extent that that's possible. 
>
> While I can't go and do a hard ruling out of anything, the whole 
> relocation idea to where jobs are would be an insanely tough sell. I'm not 
> sure if anyone would take on a remote worker as green as myself. And here, 
> where I'm at in Utah, is hardly full of companies ready to take some guy 
> who has 6 months of Scala experience and only self-taught (and what most 
> would consider 'hobby' experience) with Clojure. Aside from the fact that 
> very few even know what those languages are is the fact that since I've 
> been so focused on functional programming I'm really hard pressed to show 
> people what I know and what I can do. And then finding someone willing to 
> take a chance on me.
>
> I'd like to avoid the tech support jobs I've had before as they would both 
> pay substantially less AND they would be significant distractions on the 
> time for me to move forward and learn. I just feel like I'm on the cusp of 
> being a very productive and capable programmer and, at the same time, like 
> it's all trying to get away from me. I'm trying to learn and apply what I 
> know in the time between applying for work and handling all the other 
> miscellany connected with that and keeping my little family going. An