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

2016-12-13 Thread Torsten Uhlmann
... 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 the upload (e.g. a cgi script) moves the > file to where the clojure code expects to find it only when it is fully > uploade

Re: Elegant way to do lazy infinite list with custom step

2016-12-13 Thread Timothy Baldridge
Ah! I knew there was a way to do it via iterate, but it was 9:30pm at the time and I was tired. Nice example though. On Tue, Dec 13, 2016 at 10:03 PM, Ghadi Shayban wrote: > A common way to do it in Clojure is `iterate`, no macros necessary. As of > Clojure 1.7 this doesn't allocate a list at al

Re: Elegant way to do lazy infinite list with custom step

2016-12-13 Thread Ghadi Shayban
A common way to do it in Clojure is `iterate`, no macros necessary. As of Clojure 1.7 this doesn't allocate a list at all if you reduce/fold over it: (iterate #(+ % 2) 4) On Tuesday, December 13, 2016 at 11:27:28 PM UTC-5, tbc++ wrote: > > I'm not aware of such a construct, but it's trivial enou

Re: Elegant way to do lazy infinite list with custom step

2016-12-13 Thread Alex Miller
(range 4 Long/MAX_VALUE 2) On Tuesday, December 13, 2016 at 10:14:00 PM UTC-6, bill nom nom wrote: > > In Haskell, I can get an infinite lazy list that is incremented by two by, > starting at 4 > [4,6..] > > which yields the result > [4,6,8,10...] > > the more general form > [x,y..] produces [x,

Re: Elegant way to do lazy infinite list with custom step

2016-12-13 Thread Timothy Baldridge
I'm not aware of such a construct, but it's trivial enough to write something like this using `range` or perhaps write a function that will yield a lazy seq: (defn inf-list ([x y] (cons x (cons y (inf-list x y 2 ([x y c] (cons (+ x (* c (- y x))) (lazy-seq (inf-list x y (inc

Elegant way to do lazy infinite list with custom step

2016-12-13 Thread bill nom nom
In Haskell, I can get an infinite lazy list that is incremented by two by, starting at 4 [4,6..] which yields the result [4,6,8,10...] the more general form [x,y..] produces [x, x + (y-x), x + 2 * (y-x), x + 3 * (y-x)...] Is there a way to make a macro of this in clojure, or is there something

Re: What does "Map literal must contain an even number of forms" mean?

2016-12-13 Thread bill nom nom
Ok, I get it now. Thanks! On Sunday, December 4, 2016 at 3:03:04 PM UTC-6, bill nom nom wrote: > > ;; This works, > (hash-map :a 1 :b 2 ) > > > ;; Here's another way to create a hash map, this won't work because map > ;; literal must contain even number of forms > {hash-map :c "Turd" :d "More Tur

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: [ANN] 2016 State of Clojure Community Survey

2016-12-13 Thread Jeaye
Time for a redo? In the future, it might be beneficial to submit the questions to the mailing list first, in hopes of ruling out more of these ambiguities and misinterpretations. Unfortunately, the results for some of these questions, primarily the ranking, won't be representative of the commun

[ANN] data.xml 0.2.0-alpha1

2016-12-13 Thread Herwig Hochleitner
data.xml is a Clojure contrib library that parses and emits XML. Github: https://github.com/clojure/data.xml Changelog: https://github.com/clojure/data.xml/blob/master/CHANGES.md Information on updating the dependency is here . The major

Clojars Mirrors mailing list

2016-12-13 Thread Daniel Compton
Hi folks >From time to time, Clojars needs to make changes that affect people that mirror or proxy Clojars. Some examples of people affected by these changes would be: - People who run an internal Nexus archive that proxies Clojars - CI companies that run a mirror to cut down on external tr

Re: [ANN] 2016 State of Clojure Community Survey

2016-12-13 Thread Terje Norderhaug
Should've been a separate question for choice of rank order... :-) On Tue, Dec 13, 2016 at 7:49 AM, Colin Yates wrote: > Oh the joys of a lack of a ubiquitous language :-). I was only > surprised it didn't start at 0 ;-). > > On 13 December 2016 at 15:46, Jose Figueroa Martinez > wrote: > > Me

Re: Why would I get this: FileNotFoundException: Could not locate raynes/fs__init.class

2016-12-13 Thread larry google groups
Thank you. That must have been a copy-and-paste error. Funny thing is that I looked at it a half-dozen times and asked myself if I'd copied something wrong. On Tuesday, December 13, 2016 at 12:28:16 PM UTC-5, Toby Crawley wrote: > > On Tue, Dec 13, 2016 at 12:20 PM, larry google groups > > wr

Re: Why would I get this: FileNotFoundException: Could not locate raynes/fs__init.class

2016-12-13 Thread Toby Crawley
On Tue, Dec 13, 2016 at 12:20 PM, larry google groups wrote: > (:require >[excel-to-csv.xls :as xls] >[excel-to-csv.xlsx :as xlsx] >[excel-to-csv.temporal :as temporal] >[taoensso.timbre :as timbre] >[raynes.fs :as fs] The ns is named `me.raynes.fs`: https://github.com/Raynes/

Why would I get this: FileNotFoundException: Could not locate raynes/fs__init.class

2016-12-13 Thread larry google groups
What am I doing wrong here? This is from my project file: :dependencies [ [org.clojure/clojure "1.7.0"] [org.clojure/test.check "0.9.0"] [org.clojure/data.xml "0.1.0-beta1"] [org.clojure/data.json "0.2.6"] [com

compojure ring uberwar weblogic 12.1.3

2016-12-13 Thread Samuel Morello
Dear all, Is there someone who has experience with the deployment of web application using compojure on a weblogic server ? I cannot make it run and could not find a similar issue. I use: lein ring uberwar to create the war file and have set some properties in the project.clj file {:servle

Re: [ANN] 2016 State of Clojure Community Survey

2016-12-13 Thread Colin Yates
Oh the joys of a lack of a ubiquitous language :-). I was only surprised it didn't start at 0 ;-). On 13 December 2016 at 15:46, Jose Figueroa Martinez wrote: > Me too :-| > > > El martes, 13 de diciembre de 2016, 2:44:08 (UTC-6), Patrick Kristiansen > escribió: >> >> On Tuesday, December 13, 201

Re: [ANN] 2016 State of Clojure Community Survey

2016-12-13 Thread Jose Figueroa Martinez
Me too :-| El martes, 13 de diciembre de 2016, 2:44:08 (UTC-6), Patrick Kristiansen escribió: > > On Tuesday, December 13, 2016 at 2:00:10 AM UTC+1, Mike Rodriguez wrote: >> >> Uh oh. I should have asked. I ranked my priorities in the exact opposite >> order since I thought 1 was lowest. > > > I

Re: [ANN] 2016 State of Clojure Community Survey

2016-12-13 Thread Patrick Kristiansen
On Tuesday, December 13, 2016 at 2:00:10 AM UTC+1, Mike Rodriguez wrote: > > Uh oh. I should have asked. I ranked my priorities in the exact opposite > order since I thought 1 was lowest. I did too. -- You received this message because you are subscribed to the Google Groups "Clojure" group.