Re: Securing Clojure + Clojurescript Web App

2013-04-01 Thread Kevin Albrecht
I have the same question as you. Did you ever find an answer, Ari? -Kevin Den fredagen den 1:e mars 2013 kl. 15:36:45 UTC+1 skrev Ari: > > > > On Tuesday, February 26, 2013 8:54:19 PM UTC-5, Ari wrote: >> >> On Tuesday, February 26, 2013 3:16:23 PM UTC-5, Chas Emerick wrote: >> >> >>> What do yo

Can't dynamically bind non-dynamic var

2011-11-12 Thread Kevin Albrecht
I was experimenting with dynamic binding of vars with Clojure 1.3, as described on http://clojure.org/vars and got this error: user=> (def x 1) user=> (binding [x 2] x) IllegalStateException Can't dynamically bind non-dynamic var: clojure.core/x clojure.lang.Var.pushThreadBindings I figured ou

Re: unbean

2009-02-26 Thread Kevin Albrecht
Thanks. I will definitely be using this function... keep me up to date on any changes. Bill wrote: > > It occurs to me that the "unbean" function could be very useful when > > writing tests for code that calls Java objects. > > Yes, that is exactly the use I have in mind. --~--~-~--~

Re: unbean

2009-02-25 Thread Kevin Albrecht
It occurs to me that the "unbean" function could be very useful when writing tests for code that calls Java objects. Anyone have thoughts on its use in this way? On Feb 24, 9:18 pm, ".Bill Smith" wrote: > > I tend to associate "bean" with Java beans, so the naming seems to be > > reversed IMHO:

Re: Waterfront - The Clojure-based editor for Clojure

2009-02-24 Thread Kevin Albrecht
application context pattern and I am going to take a look at it for incorporation in my design. Thanks, Kevin Albrecht On Feb 24, 6:04 am, Itay Maman wrote: > I've been silently following Clojure (and this group) for several > months now.Somewhere around December I started working o

Re: exclamation point at end of function names

2009-02-22 Thread Kevin Albrecht
I am also interested in the reasoning behind this. See my related question here: http://groups.google.com/group/clojure/browse_thread/thread/b04d49784c895030 --Kevin Albrecht On Feb 21, 5:47 am, Mark Volkmann wrote: > If I understand correctly, ending a function name with an exclamat

Re: compiling a GUI app and also: interference of Java's built-in architechture

2009-02-20 Thread Kevin Albrecht
d application without > > compiling it? > > > On Feb 19, 6:51 pm, Kevin Albrecht wrote: > > > I can vouch for using SWT with Clojure.  There is also no need to > > > compile you application to distribute it.  I posted a little example > > > program on m

Re: compiling a GUI app and also: interference of Java's built-in architechture

2009-02-19 Thread Kevin Albrecht
I can vouch for using SWT with Clojure. There is also no need to compile you application to distribute it. I posted a little example program on my blog here: http://kevinoncode.blogspot.com/2009/01/creating-clojure-gui-application-with.html -- Kevin Albrecht http://www.kevinalbrecht.com

Re: Specifying files with spaces in the name to clojure.contrib.command-line

2009-02-14 Thread Kevin Albrecht
Ah, this was the problem, thanks. Michael Wood wrote: > java -server -cp "${CLASSPATH}" clojure.main "${script}" "$@" > > The quotes are necessary around the $@, otherwise you will get the > symptoms you are seeing. --~--~-~--~~~---~--~~ You received this message b

Specifying files with spaces in the name to clojure.contrib.command-line

2009-02-14 Thread Kevin Albrecht
ot; When they should be this: "/Users/smith/src/no_spaces.txt" "~/file with spaces.txt" --Kevin Albrecht P.S. Also, unrelated to this problem, the following line in the example code in command_line.clj is missing the vector surrounding the bindings of the doseq: :else

Re: Naming Conventions for Functions that Modify State

2009-02-12 Thread Kevin Albrecht
If no one knows of any existing conventions, does anyone have ideas for conventions? --~--~-~--~~~---~--~~ 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 To un

Naming Conventions for Functions that Modify State

2009-02-11 Thread Kevin Albrecht
transaction (and therefore has a side effect): (defn beta [] (dosync (ref-set foo 10))) 3. Function that needs to be in a transaction: (defn gamma [] (ref-set bar 42)) --Kevin Albrecht --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

String/valueOf on char array

2009-02-06 Thread Kevin Albrecht
Why is this happening? (def cs (make-array Character/TYPE 1024)) (apply str cs) -> "" (String/valueOf cs) -> "[...@42880d" Shouldn't these return the same value? --Kevin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

Re: Documenting Clojure Code

2009-01-30 Thread Kevin Albrecht
Using #^{:doc ...} documents the code, but are there any tools out there for creating HTML API documentation from the documented code? Stephen C. Gilardi wrote: >         (def >           #^{:doc "a nice description here"} >           myvar >           (hash-map :a 1 :b 3)) --~--~-~--~--

Documenting Clojure Code

2009-01-30 Thread Kevin Albrecht
How are people generating HTML or text documentation from their Clojure code? --~--~-~--~~~---~--~~ 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 To unsubscri

Re: Printing Strings in Lists

2009-01-23 Thread Kevin Albrecht
Ah, exactly what I was looking for, thanks. On Jan 23, 11:15 am, Kevin Downey wrote: > prn > > On Fri, Jan 23, 2009 at 11:00 AM, Kevin Albrecht wrote: > > > Below are two operations that print (1 2 3 4).  How can I do something > > similar to print ("1 2 3"

Printing Strings in Lists

2009-01-23 Thread Kevin Albrecht
Below are two operations that print (1 2 3 4). How can I do something similar to print ("1 2 3" 4) to standard out? (println '("1 2 3" 4)) -> (1 2 3 4) (def x "1 2 3") (println `(~x 4)) -> (1 2 3 4) --Kevin Albrecht --~--~-~--~~--

Namespace/Classpath Question

2009-01-16 Thread Kevin Albrecht
lojure.jar clojure.lang.Script foo/bar/ alpha.clj I get this error: Exception in thread "main" java.lang.Exception: Unable to resolve symbol: get-stuff in this context (alpha.clj:4) I am relatively new to the Java world, so I'm sure I'm missing something regarding the classpath or the name

Current Projects

2008-09-28 Thread Kevin Albrecht
Hi, I have been looking into Clojure and I am looking for active projects using Clojure so that I can look at production code. Thanks, Kevin Albrecht --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure&q