Hi Tim,
I think I went through this when I was first starting with Sente. You need to
setup the CSRF handling part, in the example code by including
ring-anti-forgery/wrap-anti-forgery in your routes. *AND* you have to make sure
that you are using one of those routes before you try to use
On Jul 25, 2014, at 12:27 AM, Michael O'Keefe michael.p.oke...@gmail.com
wrote:
Andy, good advice and I agree. Thanks. I'll think on it then.
Would you want one of your users going though this kind of thought process: I
won't file a ticked because I don't think it can be fixed? It's a bug,
On Jul 18, 2014, at 5:45 AM, Brian Craft craft.br...@gmail.com wrote:
= (empty [:foo 5])
[]
= (first (mapv identity {:foo 5}))
[:foo 5]
= (empty (first (mapv identity {:foo 5})))
nil
= (class (first (mapv identity {:foo 5})))
clojure.lang.MapEntry
= (class (first (mapv (fn [[k v]] [k v])
On Jul 8, 2014, at 9:40 AM, Cecil Westerhof cldwester...@gmail.com wrote:
In Clojure you can define a local constant with let, but I need a variable (I
think).
I want to do the following. I have a function that checks several things.
Every time an error is found I want to set the
On Jul 8, 2014, at 7:08 PM, Cecil Westerhof cldwester...@gmail.com wrote:
2014-07-08 23:11 GMT+02:00 Bob Hutchison hutch-li...@recursive.ca:
On Jul 8, 2014, at 9:40 AM, Cecil Westerhof cldwester...@gmail.com wrote:
In Clojure you can define a local constant with let, but I need
Thanks for the tip, works nicely. I was doing the same thing Michal was doing.
Cheers,
Bob
On Jun 20, 2014, at 11:07 AM, Michael Griffiths mikeygriffi...@gmail.com
wrote:
There's also a Leiningen plugin called lein-pdo that lets you run tasks in
parallel: https://github.com/Raynes/lein-pdo
On Jun 13, 2014, at 6:58 AM, Jonas jonas.enl...@gmail.com wrote:
I found this post from 2011 which probably is still relevant:
https://groups.google.com/d/msg/clojure/t0pGIuoyB7I/RQtuuAOhes8J
And just for fun, from that thread... Rich Hickey wrote:
There will be times, yes, when the most
On May 16, 2014, at 8:49 PM, Julian juliangam...@gmail.com wrote:
A quick shoutout to the Clojure Community - thanks for the way you've all
contributed to make my life (mentally) richer.
James Reeves (author of Compojure and many other wonderful libraries) made
this interesting comment
On May 19, 2014, at 1:44 PM, Ben Wolfson wolf...@gmail.com wrote:
I wouldn't say that I *often* find myself reaching for monads, or the state
monad in particular, but I certainly have found them useful on occasion (and
would have sometimes refrained from using them where I'd naturally lean
On May 19, 2014, at 1:50 PM, Ben Wolfson wolf...@gmail.com wrote:
On Mon, May 19, 2014 at 7:48 AM, Bob Hutchison hutch-li...@recursive.ca
wrote:
Haskell's STM transactions can be thought of as a form of IO action (like
reading a file is an IO action) that modify refs (there are no atoms
On May 19, 2014, at 2:45 PM, Ben Wolfson wolf...@gmail.com wrote:
On Mon, May 19, 2014 at 11:28 AM, Bob Hutchison hutch-li...@recursive.ca
wrote:
I badly miss the Maybe and Either monads, but would want the syntactic
support Haskell provides (which I can't see will ever be available
Hi Roelof,
On May 3, 2014, at 3:09 AM, Roelof Wobben rwob...@hotmail.com wrote:
Hello,
Im now at the last exercise of the beginners exercise of 4clojure.
nice!
I figured out that this solution works.
(fn [default lijst1]
(loop [lijst lijst1 d {}]
(if (empty? lijst)
On May 3, 2014, at 6:42 AM, Roelof Wobben rwob...@hotmail.com wrote:
(fn [default initial-keys]
(loop [remaining-keys initial-keys
result-map {}]
(if (empty? remaining-keys)
result-map
(let [key (first remaining-keys)
On May 3, 2014, at 9:45 AM, Dave Tenny dave.te...@gmail.com wrote:
I'm still struggling with how to write the most readable, simple clojure code
to deal with dynamically bindings.
What is the graceful clojure equivalent of common lisp special variables for
the following scenario.
If I
Hi Cecil,
On Apr 12, 2014, at 3:18 PM, Cecil Westerhof cldwester...@gmail.com wrote:
I just started playing with Clojure a few days ago, so I am a tabula rasa. I
attached what I have until now. If it can be improved, I like to know it.
I had a look at your code and it's not clear to me
On Feb 6, 2014, at 6:45 PM, Zach Tellman z...@factual.com wrote:
At Factual we get a lot of data thrown at us, and often don't have control
over the rate at which it comes in. As such, it's preferable that our buffer
isn't bounded by the process' memory, since a temporary blip in
On Jan 21, 2014, at 11:56 AM, Paul Viola vi...@highspot.com wrote:
I think this is all well and good for a particular use of channel.
So perhaps I am misusing channels??
To repeat: in one case I have workers pulling from a channel of real work.
For various reasons this channel might
On Jan 14, 2014, at 2:01 PM, gvim gvi...@gmail.com wrote:
I recently took the plunge into learning Clojure and love it. Since I tend to
be single-minded/all-or-nothing about these things I'm now finding it very
difficult to switch mindset when I have to work with Ruby. Anyone else
On Jan 14, 2014, at 3:46 PM, gvim gvi...@gmail.com wrote:
No, you're probably right. It's just that there never seem to be enough hours
in a day/life :(
You’re not alone there either :-)
Cheers,
Bob
gvim
On 14/01/2014 20:26, Bob Hutchison wrote:
No it’s not just you. Hardly
Hi,
I’m missing something. And it’s annoying me.
Let’s say I’m working on three or four projects and there’s some code that
really should be developed as a library and used by each of the projects. A
similar thing happens if I fork a library from github. I don’t want to make any
of this code
:09:32 AM UTC-5, Bob Hutchison wrote:
Hi,
I’m missing something. And it’s annoying me.
Let’s say I’m working on three or four projects and there’s some code that
really should be developed as a library and used by each of the projects. A
similar thing happens if I fork a library from
On Nov 29, 2013, at 11:14 PM, guns s...@sungpae.com wrote:
Hello,
I am happy to announce version 1.5.0 of Slamhound, technomancy's amazing
ns rewriting tool.
;; ~/.lein/profiles.clj
{:user {:dependencies [[slamhound 1.5.0]]}}
This is a *major* bugfix release. If you've tried
On Nov 30, 2013, at 10:59 AM, guns s...@sungpae.com wrote:
On Sat 30 Nov 2013 at 09:29:30AM -0500, Bob Hutchison wrote:
This is a great idea… but I’m having an awful time getting it to work.
Hello Bob,
I'm sorry to hear that setup is problematic. If it's trouble for you,
it's bound
Hi Rob,
Nice! Thanks for releasing this. I’m not sure when I’ll use this but I can
pretty much guarantee that I will give it a go sooner or later. I’ve written a
few of these in the past, it’s good to see someone make a library out of it.
BTW, things like AngularJS and EmberJS should/could
On 2013-10-15, at 8:29 AM, Daniel Higginbotham nonrecurs...@gmail.com wrote:
I've been going through On Lisp by Paul Graham and on page 33 he recommends
against performing intermediate bindings. Does this advice hold for
Clojure? Here are a couple examples:
;; Common Lisp (from the book)
On 2013-07-08, at 2:40 AM, Laurent PETIT laurent.pe...@gmail.com wrote:
thank you all for your answer.
So to go back to my original concern, there does not seem to be a way
to do this as I intended by just combining the existing features in
core.
I'm not sure what you're asking for
On 2013-03-11, at 6:58 AM, edw...@kenworthy.info wrote:
So I understand that:
(- foo bar wibble)
is equivalent to
(wibble (bar (foo)))
With the advantage that the latter version is better, in the sense that it's
clearer what the final result is (the result of the call to wobble).
On 2013-02-20, at 9:32 AM, Balint Erdi balint.e...@gmail.com wrote:
In the languages I come from (e.g Ruby) I'd use a library that handles the
queueing and consumption of tasks. Is this how you'd do it in Clojure or it's
one of these cases where Clojure itself suffices where other languages
On 2013-02-15, at 4:16 AM, BJG145 benmagicf...@gmail.com wrote:
I don't know anything about build managers so I think my next step will be to
pick up a book on Maven to get the background…)
Don't. Just don't. All you really need to know about maven, and it's role, is
what you can get from
On 2013-02-11, at 6:12 PM, Ryan T. arekand...@gmail.com wrote:
Unless someone has to suggest something better, it seems that the best way to
achieve what i want is to use aleph which allows you to initialize it with a
wrapped ring handler.
You might have a look at http://http-kit.org/
On 2013-01-25, at 6:24 AM, Peter Taoussanis ptaoussa...@gmail.com wrote:
I'd consider adding a graph if folks think these numbers are sufficiently
interesting?
That would be great! This is very important information for me. And, unless
things have improved markedly over that last year or
On 2013-01-15, at 5:00 PM, Justin Kramer jkkra...@gmail.com wrote:
Formative is a library for dealing with web forms. Features:
Describe forms using simple data
Render forms via pluggable renderers (comes with Bootstrap and other
renderers built-in)
Parse submitted form data from Ring
On 2013-01-16, at 11:31 AM, Justin Kramer jkkra...@gmail.com wrote:
So I went ahead and implemented the first solution I mentioned: the default
renderer now groups fields into fieldsets, split by :heading and :submit
fields. Each fieldset has a class that you can target with css/js. You can
On 2013-01-14, at 3:58 PM, Jonas jonas.enl...@gmail.com wrote:
Hi
I created a middleware for nrepl that saves a transcript of your repl
interactions so you can go back and see what you did.
https://github.com/jonase/nrepl-transcript
Feedback welcome!
Oh! Thank you!
Bob
Jonas
On 2012-11-25, at 12:45 AM, Anthony Grimes disciplera...@gmail.com wrote:
I just took a shot at it. I put it in Pristine Packages as described, but it
disappears when I restart ST2 and try to use it.
I imagine you tried to put it in:
~/Library/Application Support/Sublime Text 2/Pristine
On 2012-09-16, at 3:21 PM, Patrik Sundberg patrik.sundb...@gmail.com wrote:
I'm asking myself though if there's a more functional design for
accomplishing the same goals? My main goals are to do things consistently so
that changing a value X propagates properly, and being able to find
.
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
Bob Hutchison
Recursive Design Inc.
http://www.recursive.ca/
weblog: http://xampl.com/so
--
You received this message because
like every performance improvements
makes the language more complex, uglier or both.
Compiler switches were/are problematic too, but at least they are explicit and
have to be *added*.
Cheers,
Bob
Bob Hutchison
Recursive Design Inc.
http://www.recursive.ca/
weblog: http://xampl.com/so
at
http://groups.google.com/group/clojure?hl=en
Bob Hutchison
Recursive Design Inc.
http://www.recursive.ca/
weblog: http://xampl.com/so
--
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
[]
(println (can-we-not-do-better :zero :zero))
(println (can-we-not-do-better :one :two))
(println (can-we-not-do-better :one :three)))
(play)
default-default - :zero:zero
one-two - :one:two
one-default - :one:three
Bob Hutchison
Recursive Design Inc.
http://www.recursive.ca
On 2010-11-12, at 4:25 PM, Scott Jaderholm wrote:
Hey Clojurians,
I don't think there are any great new movies in the theater this weekend so
if you're looking to kick back and relax and watch the tube a bit you might
checkout the first few episodes of my new screencast series on
by the way the JVM increases the heap
space. Setting min to max (and max big) pretty much took care of that issue.
Cheers,
Bob
Bob Hutchison
Recursive Design Inc.
http://www.recursive.ca/
weblog: http://xampl.com/so
--
You received this message because you are subscribed to the Google
this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
Bob Hutchison
Recursive Design Inc.
http://www.recursive.ca/
weblog: http://xampl.com/so
--
You received this message because you are subscribed
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
Bob Hutchison
Recursive Design Inc.
http://www.recursive.ca/
weblog: http://xampl.com/so
--
You
...@mired.org http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.
Bob Hutchison
Recursive Design Inc.
http://www.recursive.ca/
weblog: http://xampl.com/so
--
You received this message because you are subscribed to the Google
, that's what' it's
always done for me.
mike
--
Mike Meyer m...@mired.orghttp://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.
Bob Hutchison
Recursive Design Inc.http://www.recursive.ca/
weblog:http
On 2010-10-05, at 3:51 PM, Phil Hagelberg wrote:
On Tue, Oct 5, 2010 at 11:57 AM, Bob Hutchison hutch-li...@recursive.ca
wrote:
What do you mean by 'switch to the repl', in fact, how do you do that?
I'm using lein swank, I can connect to it, I can evaluate expressions and
get
.
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
Bob Hutchison
Recursive Design Inc.
http://www.recursive.ca/
weblog: http://xampl.com/so
--
You received this message
To unsubscribe, reply using remove me as the subject.
Bob Hutchison
Recursive Design Inc.
http://www.recursive.ca/
weblog: http://xampl.com/so
--
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
: (dosync (ref-set my-thing (delay my-updated-thing)))
Is the the way to do it? Is there something better I could be doing? Something
deref-able that I'm missing that is better suited than delay? Some kind of
deref-all-the-way function?
Thanks,
Bob
Bob Hutchison
Recursive Design Inc.
http
.
That's really interesting. Thanks so much! Now I'll go think about it some more
:-)
Cheers,
Bob
-Per
On Sun, Apr 4, 2010 at 9:35 PM, Bob Hutchison hutch-li...@recursive.ca
wrote:
Hi,
I have a situation where:
1) I have a lot of 'values' that are both expensive to compute and quite
an illusion maybe, but useful)
Anyway, looks like this'll work well.
Cheers,
Bob
-Per
On Sun, Apr 4, 2010 at 9:35 PM, Bob Hutchison hutch-li...@recursive.ca
wrote:
Hi,
I have a situation where:
1) I have a lot of 'values' that are both expensive to compute and quite
large (they aren't
On 7-Dec-09, at 12:17 PM, Laurent PETIT wrote:
2009/12/6 Bob Hutchison hutch-li...@recursive.ca
On 6-Dec-09, at 3:46 PM, Meikel Brandmeyer wrote:
Hi,
Am 06.12.2009 um 21:29 schrieb Bob Hutchison:
It turns out that dispatching on play.foo.Foo is the only way that
works. I was hoping
On 7-Dec-09, at 4:16 PM, ataggart wrote:
On Dec 7, 12:37 pm, Bob Hutchison hutch-li...@recursive.ca wrote:
On 7-Dec-09, at 12:17 PM, Laurent PETIT wrote:
2009/12/6 Bob Hutchison hutch-li...@recursive.ca
Yes! Thanks! The dispatch on type rather than class is the trick. I
actually ended up
On 7-Dec-09, at 4:05 PM, Meikel Brandmeyer wrote:
Hi,
Am 07.12.2009 um 21:37 schrieb Bob Hutchison:
Please note that in clojure, it's the dispatch on the class that's
the
trick, not on the type ;-)
Sorry, I don't understand what you mean. Could you expand on that a
bit?
Dispatch
the namespace
harder than it should be.
If someone could help me out I'd appreciate it.
Thanks,
Bob
Bob Hutchison
Recursive Design Inc.
http://www.recursive.ca/
weblog: http://www.recursive.ca/hutch
--
You received this message because you are subscribed to the Google
Groups Clojure group
situation where I'd like to dispatch on two
arguments. In something like Ruby this requires a double dispatch, but
in CL it doesn't.
Cheers,
Bob
Bob Hutchison
Recursive Design Inc.
http://www.recursive.ca/
weblog: http://www.recursive.ca/hutch
--
You received this message because you
On 6-Dec-09, at 3:46 PM, Meikel Brandmeyer wrote:
Hi,
Am 06.12.2009 um 21:29 schrieb Bob Hutchison:
It turns out that dispatching on play.foo.Foo is the only way that
works. I was hoping ::f/Foo or f/Foo would work too (maybe my alias
is
wrong??). Especially since, with aliasing
58 matches
Mail list logo