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

2016-12-11 Thread James Reeves
Checking whether a file is being written to tends to be very platform specific. I don't think that there's any Java library that manages it perfectly, but I could be wrong. My inclination would be to watch for files in a directory, then poll their filesize. If it remains static for, say, 30 second

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

2016-12-11 Thread Torsten Uhlmann
Have a look at https://github.com/derekchiang/Clojure-Watch, it uses the underlying Java7 WatchEvent API. It supports :create, :modify and :delete events on watched files. Would that help? Torsten. larry google groups schrieb am So., 11. Dez. 2016 um 20:47 Uhr: > > I'm in a situation where we

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

2016-12-11 Thread larry google groups
I'm in a situation where we allow staff to upload Microsoft Excel files to our servers, which we then parse and store the data in DynamoDB. I've only used file watchers once before, to watch for any change in a directory. These seemed to trigger when a file was created in a directory -- I rec

Re: Clojure.spec - Why should you use and when

2016-12-11 Thread Patrick Kristiansen
Hi Rickesh Take a look at this: http://clojure.org/about/spec -Patrick On Sunday, December 11, 2016 at 5:30:19 PM UTC+1, Rickesh Bedia wrote: > > Hello, > > I have recently watched Rich Hickeys talk at Cojure Conj 2016 ( > https://www.youtube.com/watch?v=oyLBGkS5ICk - here's the link in case >

Re: "lein uberjar" gives me java.lang.OutOfMemoryError:

2016-12-11 Thread larry google groups
Thank you. On Sunday, December 11, 2016 at 6:32:50 AM UTC-5, Matching Socks wrote: > > An answer from "noisesmith" here > > http://stackoverflow.com/questions/32288195/why-lein-uberjar-evaluates-variables-defined-with-def > says, "In order to compile your namespace for the uberjar (if you have AO

Clojure.spec - Why should you use and when

2016-12-11 Thread 'Rickesh Bedia' via Clojure
Hello, I have recently watched Rich Hickeys talk at Cojure Conj 2016 (https://www.youtube.com/watch?v=oyLBGkS5ICk - here's the link in case anyone missed it) and although it was very interesting, I didn't really understand the point in Clojure.Spec or when you'd use it. It seemed like most of

Re: ava.lang.SecurityException: class "org.apache.poi.POIXMLDocumentPart"'s signer information does not match signer information of other classes in the same package

2016-12-11 Thread larry google groups
Thank you. That is a bit frustrating but I guess that is the route I will go On Sunday, December 11, 2016 at 6:26:04 AM UTC-5, Matching Socks wrote: > > Did you find > > http://stackoverflow.com/questions/2877262/java-securityexception-signer-information-does-not-match > and the linked > > http:/

[ANN] edn-java 0.5.0 released

2016-12-11 Thread Ben Smith-Mannschott
edn-java [1] is a parser and printer for edn [2]. This release: * Can read namespaced maps as per CLJ-1910 [47] * Throws an exception when asked to read a map or set with duplicates [49] It should be appearing on Maven Central shortly. // Ben [1] http://edn-java.bpsm.us [2] https://github.com

Re: Closure for object pattern? A good idea?

2016-12-11 Thread paul
Let me add a couple of comments, both from a clojure perspective and from other languages. First, I have used this pattern in clojure and similar languages. I find it is often useful when I need to deal with multiple functions mutating the same state. In clojure, I used this to make little slop

Re: "lein uberjar" gives me java.lang.OutOfMemoryError:

2016-12-11 Thread Matching Socks
An answer from "noisesmith" here http://stackoverflow.com/questions/32288195/why-lein-uberjar-evaluates-variables-defined-with-def says, "In order to compile your namespace for the uberjar (if you have AOT turned on), the clojure compiler must load your namespace. This will always invoke all top-

Re: ava.lang.SecurityException: class "org.apache.poi.POIXMLDocumentPart"'s signer information does not match signer information of other classes in the same package

2016-12-11 Thread Matching Socks
Did you find http://stackoverflow.com/questions/2877262/java-securityexception-signer-information-does-not-match and the linked http://stackoverflow.com/questions/8878068/signer-information-does-not-match -- You received this message because you are subscribed to the Google Groups "Clojure" group

Re: ava.lang.SecurityException: class "org.apache.poi.POIXMLDocumentPart"'s signer information does not match signer information of other classes in the same package

2016-12-11 Thread Dusan
Looks like poi-ooxml is a signed jar, so you can't include it in uberjar. Just add the :uberjar-exclusions[#"^org.apache.poi"] in your project.clj and add the required poi jar files to the classpath when running the app On Sunday, December 11, 2016 at 9:15:47 AM UTC+4, larry google groups wrote: