Re: Are there file watchers that can tell me when a file is done uploading?

2017-01-16 Thread Michael Wood
he actual upload. On Tuesday, December 13, 2016 at 8:25:41 PM UTC-5, Michael Wood wrote: > Another option: Whatever accepts the upload (e.g. a cgi script) moves the > file to where the clojure code expects to find it only when it is fully > uploaded. the move should be an atomic operation.

Re: Are there file watchers that can tell me when a file is done uploading?

2016-12-14 Thread Michael Wood
Yes, exactly. Move and rename are the same thing :) On 14 Dec 2016 08:41, "Torsten Uhlmann" wrote: ... or renames it. That's what browsers do for instance when downloading stuff. Michael Wood schrieb am Mi., 14. Dez. 2016 um 02:25 Uhr: > Another option: Whatever accepts

Re: Are there file watchers that can tell me when a file is done uploading?

2016-12-13 Thread Michael Wood
Another option: Whatever accepts the upload (e.g. a cgi script) moves the file to where the clojure code expects to find it only when it is fully uploaded. the move should be an atomic operation. On 11 Dec 2016 21:47, "larry google groups" wrote: > > I'm in a situation where we allow staff to up

Re: ClojureScript Quick Start - Error: Could not find or load main class clojure.main

2016-07-07 Thread Michael Wood
Perhaps try on the Clojurescript mailing list. https://groups.google.com/group/clojurescript On 05 Jul 2016 4:15 PM, "gilmoretj" wrote: > I suspect there is a MS Windows-specific configuration step missing from > the Quick Start guide ( > https://github.com/clojure/clojurescript/wiki/Quick-Start

Re: Is there a cheet sheet for some of the pure symbolic functions like #'

2015-06-06 Thread Michael Wood
In addition to what the others said, try symbolhound: http://symbolhound.com/?q=%23%27+clojure -- Michael Wood On 05 Jun 2015 10:05 PM, "Dru Sellers" wrote: > Trying to google what #' means is tricky to say the least. > > Is there a good name for these that I can g

Re: [ANN] Clojure Videos (with options for Linux users)

2014-09-29 Thread Michael Wood
You're in luck! Check the link at the bottom of this page: https://tbaldridge.pivotshare.com/ -- Michael Wood On 29 Sep 2014 4:05 PM, "Luis Matoso" wrote: > +1 for Paypal. I from brazil and i would be awesome to pay using paypal > > On Monday, September 22, 2014 1:

Re: [ANN] aprint (awesome print) released

2014-09-28 Thread Michael Wood
As a workaround, see if running "stty sane" fixes your terminal. -- Michael Wood On 28 Sep 2014 4:43 PM, "tao.zhou2009" wrote: > Last login: Sun Sep 28 22:30:20 on ttys005 > > 192:test tao$ lein repl > > nREPL server started on port 60609 on host 127

Re: Do not understand the -> macro here

2014-05-03 Thread Michael Wood
That whole form is not something you would be likely to write. I think the exercise is just trying to demonstrate that the version with the -> is equivalent to the version without the arrow and perhaps also that (= a b c) can be used instead of (and (= a b) (= b c)). -- Michael Wood On 01

Re: confused over meta on var

2013-11-07 Thread Michael Wood
Just s guess: Maybe the classpath is absolute in one case and relative in the other. On 07 Nov 2013 7:15 PM, "Phillip Lord" wrote: > > > I find myself confused by the metadata on a var. Consider this code: > > (def a-test-var 10) > > (pritnln (meta #'a-test-var)) > > Now when run under "lein test

Re: multiline strings and multiline comments ?

2013-07-05 Thread Michael Wood
l lines? > Well, there are four reasonable-ish possibilities: 1.) Do nothing, because it is ambiguous. 2.) Uncomment all lines. 3.) Comment all lines. 4.) Uncomment all commented lines and comment all uncommented lines. I think that doing either 2 or 3 would be more useful than 1 or 4,

Re: Simple socket programming problem

2013-06-01 Thread Michael Wood
etc. > It's probably an incorrect guess. That's why I've decided to consult the > community :D. Any help is appreciated in advance! > > -- Michael Wood -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: How to: reduce boolean operations?

2013-05-22 Thread Michael Wood
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 fr

Re: Basic multiplication incorrent?!?

2013-04-09 Thread Michael Wood
e information. >>> 148.52 * 0.0256 3.80211206 and here's how you should be able to get exact values in Clojure: user=> (* 148.52M 0.0256M) 3.802112M > If you don't believe me try it on: http://tryclj.com/ > > thx > > Bost -- Michael Wood -- -- Y

Re: (load "hello") can't see hello.clj in the current directory.

2013-03-27 Thread Michael Wood
On 27 March 2013 15:14, Alf Kristian Støyle wrote: [...] > Pretty easy to inspect the classpath in the repl, e.g: (filter #(= (key > %) "java.class.path") (System/getProperties)) > Or: (get (System/getProperties) "java.class.path") -- Michael Wood -- -- You

Re: [ANN] analyze 0.3.0 - Hygienic transformation

2013-02-12 Thread Michael Wood
gt;(println a b))) >> 3 2 >> nil >> >> is there something that would let me know I'm overwriting "a" ? I figure >> if something like this would slip by would be tough to track down >> >> >> On Tue, Feb 12, 2013 at 1:46 PM, Michael

Re: [ANN] analyze 0.3.0 - Hygienic transformation

2013-02-12 Thread Michael Wood
scribe 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

Re: mysql auth issue when using upstart for ring

2013-02-07 Thread Michael Wood
figuration File does not have access to a user's environment variables, not even the superuser. This is not possible since all job processes created are children of init which does not have a user's environment." I suspect that has something to do with the problem. > Oh, and for cla

Re: ANN: Tawny-OWL 0.9

2013-02-06 Thread Michael Wood
e project. I've found < > http://www.gnu.org/licenses/gpl-howto.html> to be very helpful in getting > the license stuff set up. > > ---John > -- Michael Wood -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. T

Re: Call for volunteers to help moderate a ClojureScript Google group

2013-01-25 Thread Michael Wood
rious: But why would you want that? I would happily live without >> that >> as it reduces line-noise and leaves more room for important information >> such >> as the actual subject. It is not necessary to filter mails (just filter on >> List-I[dD]) either, so I'd

Re: Clojure web framework

2012-09-28 Thread Michael Wood
quot; version already and github just abandoned. Just because the documentation is not up to date it does not mean that github has been abandoned. If you look here: https://github.com/noir-clojure/noir/blob/master/project.clj you will see that the version on github is 1.3.0-beta10. -- Michael Wood --

Re: 'connection reset by peer' when connecting to socket

2012-09-02 Thread Michael Wood
et [client (. server-socket accept) > output (PrintWriter. (. client getOutputStream)) ] > (service output))) > > (defn run-server [port] > (let [server-socket (ServerSocket. port)] > (while (not (. server-socket isClosed)) > (listen-and-respond server-

Re: how can "a" become *agent* in this code?

2012-07-29 Thread Michael Wood
o 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 emai

Re: Clauth - OAuth2 provider for Ring

2012-04-27 Thread Michael Wood
th 2 provider that is designed to be used as a primary >> authentication provider for a Clojure Ring app. -- Michael Wood -- 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

Re: ClojureScript One: bootstrap is not a task

2012-04-23 Thread Michael Wood
64-Bit Server VM I suspect it's an incompatibility with lein2. Try leiningen 1.x. -- Michael Wood -- 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: a library I'm working on for generating PDFs from Clojure

2012-04-21 Thread Michael Wood
; generate the PDFs from the HTML that I am already maintaining. I don't know about flying-saucer, but in my experience, WebKit does not do pagination properly, unless something's changed recently. -- Michael Wood -- You received this message because you are subscribed to the Goo

Re: [ANN] clojure-py 0.1.0 Clojure on Python

2012-03-08 Thread Michael Wood
#x27;\a' not found in user reference fn_787 user=> (/ 22 7) 3 user=> 22/7 Traceback (most recent call last): [...] clojure.lang.cljexceptions.ReaderException: Invalid number: 22/7 $ -- Michael Wood -- You received this message because you are subscribed to the Google Groups "C

Re: cld 0.1.0 - Clojure Language Detection

2012-02-29 Thread Michael Wood
because of the short input text? >> >> (lang/detect "My name is joe") >> ["af" {"af" "0.8571390166207665", "lt" "0.14285675907555712"}] As an aside, the above is indeed almost valid Afrikaans :) and would translate to

Re: Avoiding reflection in vector-of

2012-01-27 Thread Michael Wood
apply vector-of :int ^{:tag 'longs} (long-array (range 1000))) Just a guess. Have you tried the following? (apply vector-of :long ...) -- Michael Wood -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, sen

Re: mysql record field formats

2012-01-11 Thread Michael Wood
gt;   (sql/insert-record :fruit >  (sql/insert-rows As Sean pointed out in one of the previous threads you should not have both insert-record and insert-rows like this. >    :fruit >    ["Apple" "red" 59 8.7] >    ["Banana" "yellow" 29 92.2

Re: Disequality

2012-01-07 Thread Michael Wood
t; > (run* [q] >  (fresh [x y] >    (!= [x 2] [1 y]) >    (== x 1) >    (== y 2) >    (== q [x y]))) Either you have pasted the example twice or you have pasted your solution twice. I don't know which. -- Michael Wood -- You received this message because you are sub

Re: [ANN] Drift DB

2011-11-29 Thread Michael Wood
d) > ) > ENGINE = InnoDB > AUTO_INCREMENT = 0 > > According to the AquaStudio tool I use to reverse engineer the DDL. Just by the way, MySQL supports this: SHOW CREATE TABLE meta_entities\G No need to reverse engineer the DDL for the tables :) -- Michael Wood -- You received

Re: cljr install makes .cjr directory

2011-11-07 Thread Michael Wood
sume by your question that you are running Windows. -- Michael Wood -- 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 pa

Re: Misleading Exception due to function name containing ->

2011-09-12 Thread Michael Wood
uld have two arguments but has one. > > I am using clojure 1.2. I can confirm this using Clojure 1.2.1. Even more simple than the above: user=> (defn foo->foo2 [a b] "") #'user/foo->foo2 user=> (foo->foo2 1) java.lang.IllegalArgumentException: Wrong number o

Re: Migration to 1.3 for mortals

2011-09-12 Thread Michael Wood
o Clojure 1.2 together with our patched-up > monolithic contrib. Since the new, separated contrib libraries are supposed to be compatible with Clojure 1.2, you could perhaps also start migrating one lib at a time at your leisure. This might even enable you to contribute to a migration document.

Re: Readd error???

2011-09-08 Thread Michael Wood
ever used cake, but I think it's basically an alternative to Leiningen. What happens if you try "cake repl" instead of "lein repl"? -- Michael Wood -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this gr

Re: Minor Speedup of STM removing milliseconds [Was: Why do transactions block each other?]

2011-08-30 Thread Michael Wood
interesting :) > Cheers, > Stefan > > PS: Ubuntu 10.04 on a "Pentium(R) Dual-Core  CPU E6300  @ 2.80GHz" (from > /proc/cpuinfo)  with "MemTotal: 8127764 kB" (/proc/meminfo) using 'java > version "1.6.0_26"' -- Michael Wood -- You rec

Re: weird behavior: what is the difference between sequential? and my own predicate?

2011-08-26 Thread Michael Wood
q coll)). Please use the idiom (seq x) rather than (not (empty? x)) nil -- Michael Wood -- 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 moder

Re: weird behavior: what is the difference between sequential? and my own predicate?

2011-08-26 Thread Michael Wood
re? Does this help? user=> (class '("c")) clojure.lang.PersistentList user=> (if-let [[a & coll] coll] coll) (["b"] "c") user=> (class (if-let [[a & coll] coll] coll)) clojure.lang.PersistentVector$ChunkedSeq user=> (list? (if-let [[a &

Re: How to import libs in Clojure?

2011-08-23 Thread Michael Wood
t seem strange coming from Python, but since they help with things like the classpath and downloading dependencies etc. that's generally worth the effort. e.g.: lein new myproject cd myproject edit project.clj (add the clojure.contrib.str-utils dependency) lein deps lein repl https://github.

Re: Creating global javascript objects (like Date) in Clojurescript

2011-08-12 Thread Michael Wood
> (new js/Date) # ClojureScript:cljs.user> (js/Date.) # -- Michael Wood -- 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 patien

Re: rebind var for all threads

2011-08-12 Thread Michael Wood
gt; documents for teams": http://www.google.com/apps/ > > Then there's "Google App Engine" which is their elastic cloud service > supporting Python and Java web applications (with some class restrictions): > http://www.google.com/enterprise/cloud/appengine/ > >

Re: Optimizing JDBC code

2011-08-08 Thread Michael Wood
ck what is causing it or to verify your assumptions. Anyway, as Stuart says, profiling is probably your best option. -- Michael Wood -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroup

Re: Adding "Change History" To Clojure Modules

2011-08-04 Thread Michael Wood
in the Clojure source code: (defn with-redefs-fn "some doc string" {:added "1.3"} [binding-map func] [...] Here ":added" refers to the version of Clojure it was added in rather than a specific date, but for a function, that often makes more sense, I think. You s

Re: ClojureQL: consistent select queries?

2011-07-29 Thread Michael Wood
s possible to do that with ClojureQL I have no idea. > You'd need to have a single query to the DB, which will run as a > single transaction, generate both res1 and res2. I'm not sure if that > will always be possible; my SQL-fu is a little rusty. -- Michael Wood -- Y

Re: problem with take-while

2011-07-27 Thread Michael Wood
you can use: (range 1 20) instead of: (rest (range 20)) and zero? instead of (= x 0). e.g.: (filter #(zero? (mod 20 %)) (range 1 (apply max [10 20]))) -- Michael Wood -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Re: better community docs: getting started

2011-07-25 Thread Michael Wood
"If you don't have a > strong affinity for a specific IDE or editor, why not try Clooj which > is a simple, lightweight editor focused on Clojure? Otherwise see the > options below for adding Clojure support to your favorite IDE..." +1 -- Michael Wood -- You received

Re: Constructing clj-http Get Query

2011-07-20 Thread Michael Wood
formation about what went wrong. -- Michael Wood -- 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 f

Re: Build tool for mixed Clojure/Java projects

2011-07-12 Thread Michael Wood
on fun again. > > So, unless 4 can be made workable, then the typical use scenario for a > version control system involves both a) "remote storage" of code and > b) a "server". Their exact roles may vary. The exact way that > checkouts and commits work may vary. But

Re: Local bindings w/o let

2011-07-11 Thread Michael Wood
                     ;; <- max1 >   ([x y] (if (> x y) x y))                     ;; <- max2 >   ([x y & more] (reduce max (max x y) more)))  ;; <- max3 > > is the equivalent of max1, max2 and max3 but using a single name. > Clojure will select the form to execute based on

Re: Correct way to define the else clause of a cond form?

2011-07-07 Thread Michael Wood
, Other) >> ` > > Nothing like that is there. Just this: > >>>> >>>> >>>> > > and the only reason anything at all is visible is because it's gotten > quoted three levels deep. No, there's definitely a character there. Fo

Re: Build tool for mixed Clojure/Java projects

2011-07-06 Thread Michael Wood
On 6 July 2011 10:37, Ken Wesson wrote: > On Wed, Jul 6, 2011 at 4:30 AM, Michael Wood wrote: >> On 6 July 2011 10:14, Ken Wesson wrote: >>> Sorry, but I think version control and, particularly, dealing with >>> edit collisions is not something you can solve as ea

Re: Build tool for mixed Clojure/Java projects

2011-07-06 Thread Michael Wood
beyond a reasonable doubt > that it'll work, but if not ... CVS is an old version control system that was far better than the other things around at the time it was invented, but most people seem to agree that other, more modern, version control systems are better and/or more reliable. -

Re: Build tool for mixed Clojure/Java projects

2011-07-06 Thread Michael Wood
me > meaningless. No, not meaningless. Just perhaps less reliable. CVS does not support atomic commits either, which some people find acceptable and others do not. -- Michael Wood -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: Build tool for mixed Clojure/Java projects

2011-07-06 Thread Michael Wood
And I've just tested it to be sure. Also, CVS originally did not support networking at all. It was originally designed to be used by different users on a multi-user machine. Anyway, the point was that "repository" needn't have anything to do with networking. -- Michael Wood

Re: Build tool for mixed Clojure/Java projects

2011-07-05 Thread Michael Wood
l... I take it to me "somewhere you can store stuff in a particular structure perhaps with metadata" so that maven knows what's there and how to set up class paths and whatever else it needs to do with it. -- Michael Wood -- You received this message because you are subscribed to the

Re: Build tool for mixed Clojure/Java projects

2011-07-04 Thread Michael Wood
urely locally I'd want to firewall the port it's > using to make sure it's unreachable from any address other than > 127.0.0.1. "Repository" need not imply anything to do with networking. I'm sure someone will correct me if I'm wrong, but I am pretty

Re: getMethods

2011-06-23 Thread Michael Wood
fn class-methods [class-name] (map #(.getName %) (.getMethods class-name))) -- Michael Wood -- 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

Re: Am I getting back a vector of lines and can I split each line?

2011-06-17 Thread Michael Wood
ere to call str/split. [...] I'm having trouble understanding why you're trying to use str/split when you appear to be wanting to use clojure-csv. Surely clojure-csv should do the splitting for you? Or what are you trying to split? -- Michael Wood -- You received this message because y

Re: Retrieving individual maps (items) from a list.

2011-05-31 Thread Michael Wood
of the e-mail shows them as red, so I suspect the asterisks are just how Gmail or Google Groups produced the text/plain part. i.e. Manoj may not be aware that they will show as *(* etc. in e-mail clients that display only the text part of an e-mail with both text and HTML parts. -- Michael Wood --

Re: Small Problem: Which Strings Differ at One Location

2011-05-30 Thread Michael Wood
t; > How can I determine which strings differ only at one location (e.g. >> > "xxe" and "xbe")? >> >> > Right now, I'm writing a loop that sequentially compares every string >> > to every other string. I think that there's a better way,

Re: pmap causes waiting

2011-05-27 Thread Michael Wood
ng (System/exit 0) in the end, but then it didn't even > display anything before quitting. > > Hope to get some answers. Clojures lazy evaluation sometimes confuses > me. My first guess is that you need a (shutdown-agents) call at the end. -- Michael Wood -- You received thi

Re: find first non nil element of sequence

2011-05-27 Thread Michael Wood
On 27 May 2011 18:30, Michael Wood wrote: [...] > or: > > (first (filter (complement nil?) coll)) Ah, sorry, I see Sam already suggested this one. -- Michael Wood -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to thi

Re: find first non nil element of sequence

2011-05-27 Thread Michael Wood
raight-forward. I'd also prefer to avoid contrib for a simple thing like this. -- Michael Wood -- 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 memb

Re: San Francisco Clojure Users

2011-05-24 Thread Michael Wood
On 24 May 2011 16:50, Ambrose Bonnaire-Sergeant wrote: > On Tue, May 24, 2011 at 8:36 PM, Michael Wood wrote: >> >> On 24 May 2011 10:43, David Jagoe wrote: >> > Are you in Nigeria? >> > >> > Anyone else on this list in Africa? >> >> Yes &

Re: San Francisco Clojure Users

2011-05-24 Thread Michael Wood
h&z=4&iwloc=00045c4ebd01b08917060 -- Michael Wood -- 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 you

Nasty

2011-05-24 Thread Michael Wood
ble to resolve symbol: b in this context (NO_SOURCE_FILE:2) user=> a 2 a java.lang.Exception: Unable to resolve symbol: b in this context (NO_SOURCE_FILE:0) user=> a 2 user=> a 42 a java.lang.Exception: Unable to resolve symbol: b in this context (NO_SOURCE_FILE:0) -- Michael Wood -- You receiv

Re: first element after an element in the sorted-set?

2011-05-23 Thread Michael Wood
rted-set 1 2 3 4 5 6))) -- Michael Wood -- 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 po

Re: Clojure, Swank, and Leiningen with Emacs on Mac OS X

2011-05-22 Thread Michael Wood
thread/91d4f13090afb876/97f8d88255d58798#97f8d88255d58798 -- Michael Wood -- 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 patie

Re: Clojure stack

2011-05-20 Thread Michael Wood
On 20 May 2011 23:25, Lee Spector wrote: > > On May 20, 2011, at 5:08 PM, Michael Wood wrote: >> >> So maybe the problem you're having is that jEdit can't find the >> clojure.xml mode file? >> > > Not sure, but it does say I'm in Clojure mode...

Re: Clojure stack

2011-05-20 Thread Michael Wood
nder > the "o" or the "n", but I don't see any rationale for it being under the "a". Well, that seems to be a constant 8 space indentation. If I were to guess I'd say jEdit is not detecting your files as Clojure files and is indenting them incorrectly as a

Re: Clojure stack

2011-05-20 Thread Michael Wood
s to indent the line where the cursor is, or I can e.g. select all and then Edit|Indent|Indent Lines to indent the whole lot the same way it does while entering the code manually. So maybe the problem you're having is that jEdit can't find the clojure.xml mode file? This is the first

Re: interest in STM, where can I start to get knowing well about it?

2011-05-18 Thread Michael Wood
ce code but I'm just a fresher of > Clojure and also need some guides/materials about the internal > mechanism, I guess it likes kind of database implementation (locks & > latches), but I'm not familiar with that field either. > > BTW, I got a Java background and know a

Re: clojure.contrib.sql => clojure.java.jdbc - looking for feedback!

2011-04-24 Thread Michael Wood
7;m not > mistaken, modern SQL Server versions also accept the double-quote. MySQL can be configured to accept double quotes too, but yes, by default it uses back ticks. -- Michael Wood -- You received this message because you are subscribed to the Google Groups "Clojure" group. To po

Re: Start Clojure programs from Eclipse

2011-04-23 Thread Michael Wood
connection; a single process/thread handling multiple clients with select()/poll()/etc. and combinations or variations on these. e.g. starting a pool of processes to avoid the startup time of a new process when a new client connects. -- Michael Wood -- You received this message because you are s

Re: Future of clojure.contrib.core/-?> macro

2011-04-18 Thread Michael Wood
as if it were Mercurial and it seems to work well. The only possible issue is that it puts a bit of metadata in some of the log messages, but maybe that's not an issue and maybe it's possible to turn it off if it is an issue. -- Michael Wood -- You received this message because you are

Re: Random "IllegalArgumentException: No distinct mapping found" after replacing defmultis with protocols

2011-03-26 Thread Michael Wood
nd the ticket it refers to: http://dev.clojure.org/jira/browse/CLJ-426 Looking at the ticket it is being worked on. -- Michael Wood -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups

Re: Jesus, how the heck to do anything?

2011-03-25 Thread Michael Wood
optimus maximus. > I think there are experimental display devices > for the blind that could be put under a flexible oled touchscreen to > make a fully programmable keyboard that actually had keys you could > feel and push down, but that's even longer to make practical and > in

Re: How to Sum a Sequence?

2011-03-20 Thread Michael Wood
functions, but can be used like functions. e.g.: ({:foo "bar"} :foo) or: (:foo {:foo "bar"}) -- Michael Wood -- 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 t

Re: Serialising functions...

2011-03-07 Thread Michael Wood
lem. Yes, that's why I said it would get you "closer". :) -- Michael Wood -- 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 a

Re: Serialising functions...

2011-03-04 Thread Michael Wood
MAC address probably gets you as close as you can get without having > manually-assigned node IDs, or requiring every node have a domain name > registered (yum! expensive! Verisign would love that suggestion!) :) Well, MAC address and IP address together would get you closer, and probably clo

Re: Serialising functions...

2011-03-01 Thread Michael Wood
Not that it changes your point... -- Michael Wood -- 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

Re: easier exit

2011-02-25 Thread Michael Wood
ot;) #'user/exit user=> exit "Use Ctrl-C to exit" user=> Not sure how likely it would be for someone to add that to Clojure, though :) -- Michael Wood -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group

Re: locals clearing

2011-01-30 Thread Michael Wood
I still think the JVM >> GC should be able to figure out that those locals are dead references. -- Michael Wood -- 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 tha

Re: Clojure Quizzes?

2011-01-18 Thread Michael Wood
ojure namespace to make it executable: > > ":";exec java -verbose:gc -Xmn500M -Xms2000M -Xmx2000M -server -cp > "your-classpath" clojure.main $0 $*; Similarly here, $* should be "$@". Also, do you need the trailing semicolon? -- Michael Wood -- You receive

Re: fns taking primitives support only 4 or fewer args

2011-01-14 Thread Michael Wood
On 14 January 2011 19:07, Sam Aaron wrote: [...] > --- > http://sam.aaron.nmae I don't know the answer to your question, but I thought I'd point out the typo in your signature. -- Michael Wood -- You received this message because you are subscribed to the Google Groups &qu

Re: Oddity: PersistentTreeMap does not implement SortedMap

2011-01-09 Thread Michael Wood
t))) user=> (type (select-keys2 (sorted-map-by > 3 1 2 4 5 3) (list 5 2 3))) clojure.lang.PersistentTreeMap -- Michael Wood -- 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

Re: Knuth's literate programming "tangle" function in Clojure

2011-01-06 Thread Michael Wood
"all". The next paragraph says "Each cases shows the ML code...". This should of course be "Each case...". Also, what is "ML code"? Page 16: There's a missing "'s" in the second sentence: "... a black node (p5) removeR

Re: Interesting challenge

2011-01-01 Thread Michael Wood
he challenge and say "Your C++ > solution may be fast, but in a functional programming language, at > least we get the right answer :) " :) -- Michael Wood -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, se

Re: ANN: Gloss, a byte-format DSL

2010-11-24 Thread Michael Wood
y mostly to help me write Redis and AMQP clients, but I'm hoping > people will find it useful for a variety of purposes. I have used Python's struct library a few times (and perl's pack/unpack once or twice), so I'm sure Gloss would be useful for the same sorts of things. --

Re: Clojure typing test

2010-11-15 Thread Michael Wood
On 15 November 2010 16:08, David Sletten wrote: > The StackOverflowError jumps over the lazy seq. The quick, brown StackOverflowError jumps over the lazy seq? -- Michael Wood -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post

Re: Incorrect behaviour for large s-expressions :(

2010-11-14 Thread Michael Wood
eve the underlying problem is a limit of the JVM. Maybe it would be possible for the Clojure compiler to work around the limitation, though. -- Michael Wood -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send e

Re: REQUEST for feedback on http://clojure.org

2010-11-02 Thread Michael Wood
This is perhaps a little off topic, but related. I see that http://code.google.com/p/clojure/ has been updated recently, but still references Assembla. These could do with an update too: http://sourceforge.net/projects/clojure/ http://sourceforge.net/projects/clojure-contrib/ -- Michael Wood

Re: clj-record Library: Handling Namespaces

2010-10-20 Thread Michael Wood
quire [active-record.charge :as charge]) >     (:require clj-record.boot)) > > (user/create >  {:login "rob" > :first_name "Robert" > :last_name "Berger" > :password "secret" > :email_address "r...@runa.com"}) > > ;; No

Re: Find reference type on classpath

2010-10-12 Thread Michael Wood
;ve seen something on this list about someone doing something similar for Clojure. Ivan, perhaps digging through the list archives will turn up something. -- Michael Wood -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group,

Re: VimClojure 2.2.0 released

2010-10-06 Thread Michael Wood
. The new class to execute is >> called `vimclojure.nailgun.NGServer` compared to the previous >> `com.martiansoftware.nailgun.NGServer`. I have not tried it, but perhaps you're using the wrong nailgun? -- Michael Wood -- You received this message because you are subscribed to the Google Groups &quo

Re: trace facility?

2010-09-20 Thread Michael Wood
b have moved from github.com/richhickey to github.com/clojure. Try this for the current location of trace.clj: http://github.com/clojure/clojure-contrib/blob/master/modules/trace/src/main/clojure/clojure/contrib/trace.clj -- Michael Wood -- You received this message because you are subscribed to

Re: thinking in clojure

2010-09-17 Thread Michael Wood
there, so :any-arb-keyword would work just as well as :else. But by convention, Clojure programmers tend to use :else. -- Michael Wood -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegrou

Re: ClassCastException: class to interface

2010-09-16 Thread Michael Wood
; > Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main] > java.lang.ClassCastException: Cannot cast > com.jme3.input.controls.KeyTrigger to > [Lcom.jme3.input.controls.Trigger; "[L..." is an array of ..., so it looks like you need to create a Java array to give it

Re: "Binding" and temporary global state

2010-09-07 Thread Michael Wood
On 6 September 2010 23:22, Cameron Pulsford wrote: [...] > Changing my declares to defs did the trick did though and learning Does this break it again? (do (def *macros*)) Because that's all that declare does: user=> (macroexpand-1 '(declare *macros*)) (do (def *macros*))

Re: Is it possible in theory to write/modify a Clojure compiler that doesn't

2010-08-28 Thread Michael Wood
sion has been had before with similar conclusion. -- Michael Wood -- 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 w

  1   2   3   4   5   >