Re: [jobs] for newbie in europe

2014-07-21 Thread Krzysztof Władyka
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 krzy...@wladyka.eu javascript: wrote: Hello, I am living in Poland and i have a little problem there... totally 0 jobs for

Re: [jobs] for newbie in europe

2014-07-21 Thread Aaron France
Hi, 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? On Mon, Jul 21, 2014 at 10:13 AM, Krzysztof Władyka krzysz...@wladyka.eu wrote: I live in Poznań (Poland). On Sunday, July 20, 2014

clojure.stacktrace/root-cause VS clojure.repl/root-cause, are they redundant?

2014-07-21 Thread Pierre Masci
Hi, I'm learning about tools to help me debug from the REPL, and I found these two with the same name: clojure.stacktrace/root-cause clojure.repl/root-cause For a very simple case (wrong arity), they give pretty similar output: user= (char 0 0 0) CompilerException

Re: positional + keyword args

2014-07-21 Thread Jonathan Winandy
Hi, If I understand your pb correctly, and form what I have seen in the Scala world, there is maybe a simpler way to do it : (defn process-args [args fnkeys fndefault] (let [[positional-args named-args] (split-with (complement keyword?) args) named-args (into {} (map vec (partition

Re: clojure.stacktrace/root-cause VS clojure.repl/root-cause, are they redundant?

2014-07-21 Thread Pierre Masci
I have now noticed that these two are also very similar: clojure.stacktrace/print-stack-trace clojure.repl/pst; (for Print Stack Trace) Here is their output for the same error: user= (char 0 0 0) CompilerException clojure.lang.ArityException: Wrong number of args (3) passed to:

reload dependencies

2014-07-21 Thread emptya45
Hi, Is there a better way to reload dependencies in Cider than by shutting down the nrepl and running 'lein deps'? Many Thanks Aidy -- 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

Re: reload dependencies

2014-07-21 Thread Gary Trakhman
You don't need to run 'lein deps', simply cider-restart and they will be updated automatically. If you want to get really fancy and modify them at runtime, take a look at pomegranate: https://github.com/cemerick/pomegranate and the alembic project made for this use-case:

Re: Scheduling state change?

2014-07-21 Thread Thomas
Hi, I gave this a try over the weekend and then I do this it all works fine: (import java.util.concurrent.ScheduledThreadPoolExecutor ) (import java.util.concurrent.TimeUnit) (def executor (ScheduledThreadPoolExecutor. 1)) (defn my-func [] (println adsf ) (.schedule executor my-func 1

A more general case of some-?

2014-07-21 Thread Max Countryman
Hi, Recently I found myself wanting a macro similar to some- or some- but one where I could specify an arbitrary predicate instead of nil?. For example, I have a Ring request map which I wish to pass through a number of functions. Any of these functions might return an error response and if so

Re: Scheduling state change?

2014-07-21 Thread Softaddicts
you want to pass a closure, not call my-func recursively: (defn my-func [id] (println id ) (.schedule executor #(my-func (inc id)) 1 TimeUnit/SECONDS)) or (defn my-func [id] (println id ) (.schedule executor (fn [_] (my-func (inc id))) 1 TimeUnit/SECONDS)) Luc P. Hi, I

Re: Lessons Learned from Adopting Clojure

2014-07-21 Thread edward
(alt-enter mapped to eval sexp in repl is used heavily) That's interesting but it doesn't seem to be a default and I can't find anything like 'eval sexp in repl' in the keymap nor anywhere else (using the IDEA search functionality under Preferences (OSX)). On Thursday, February 6, 2014

ANN clj-duration: reader literal for durations

2014-07-21 Thread gerrit-hntschl
Hi, I created this little library that adds first-level support for durations via a tagged literal: #unit/duration 2D 10h 5m 10s This creates a java.time.Duration with a value of 2 days 10 hours 5 minutes and 10 seconds. It also makes it easy to quickly turn some huge milliseconds amount into

Re: Stumped: unable to resolve symbol in macro expansion

2014-07-21 Thread Dave Tenny
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

Re: How to control evaluation of code with cider

2014-07-21 Thread Brent Millare
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.

Re: A more general case of some-?

2014-07-21 Thread Leon Grapenthin
The predicate parameter introduces an additional predicate check on a per-step basis which can be avoided under most circumstances. If check-auth or check-balance return just their input value where that is valid, threading has no use here. They could be modified to only return something if

Re: Stumped: unable to resolve symbol in macro expansion

2014-07-21 Thread Matthew DeVore
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

Re: A more general case of some-?

2014-07-21 Thread Linus Ericsson
Check out pedestals interceptors, they handle both error and pause/resume-request functionality. Seems you could have great use of it. Pedestal-service is the repo. pedestal.io /Linus On Monday, July 21, 2014, Leon Grapenthin grapenthinl...@gmail.com wrote: The predicate parameter introduces

Re: Lessons Learned from Adopting Clojure

2014-07-21 Thread Colin Fleming
Cursive doesn't come with default keybindings right now, due to the fact that IntelliJ's keybindings handling was a little unpredictable until recently. It's better since v13 so when I get some time I'll be sorting out a proper keymap. In the meantime, the commands you want are Run form before

Re: Scheduling state change?

2014-07-21 Thread Luc
Oups typo in my last reply should be (fn [] ) IPhone quirk, tiny, very tiny keyboard... Luc P. -- 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