Tailing a file in Clojure

2010-12-02 Thread viksit
Hi all, What would you recommend as the best method to tail a file using Clojure? Are there any built in functions in contrib or core that allow a program to read the last line of a file as it is appended to? If not - how do people solve a problem like this? My aim is simple - I've got a log

Re: Tailing a file in Clojure

2010-12-02 Thread Ken Wesson
On Thu, Dec 2, 2010 at 2:53 AM, viksit vik...@gmail.com wrote: Hi all, What would you recommend as the best method to tail a file using Clojure? Are there any built in functions in contrib or core that allow a program to read the last line of a file as it is appended to? If not - how do

Re: IDE and editors for Clojure

2010-12-02 Thread Heinz N. Gies
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Nov 22, 2010, at 14:36 , HB wrote: Hi, I'm pretty sure that this question is already been asked but failed to find it. What is your editor/IDE for Clojure? I didn't try them all, which IDE has the best Clojure support these days: IntelliJ,

Re: Tailing a file in Clojure

2010-12-02 Thread Alex Osborne
viksit vik...@gmail.com writes: What would you recommend as the best method to tail a file using Clojure? Are there any built in functions in contrib or core that allow a program to read the last line of a file as it is appended to? If not - how do people solve a problem like this? My aim

Re: IDE and editors for Clojure

2010-12-02 Thread Tim Robinson
Textmate + Clojure Bundle. There was a Textmate bundle that came out about a month ago that allows the REPL to be called from within the editor. Really slick. There was a video demo and all, I don't remember the name. When I get home, if no one has posted it already, I will provide the link. On

Re: IDE and editors for Clojure

2010-12-02 Thread Meikel Brandmeyer
Hi, then there is Vim+VimClojure. It is relatively full-featured, but has its quirks and is not necessarily trivial to set up for full integration. But it can get you quite a long part of the trip with plain Vim features. However it is only an option if you are a Vim user already. Otherwise I

Re: IDE and editors for Clojure

2010-12-02 Thread jhonghee
I am on Windows and use CCW/Enclojure. But ClojureBox is all-in-one solution for programming in emacs on windows. On Dec 2, 10:22 am, Heinz N. Gies he...@licenser.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Nov 22, 2010, at 14:36 , HB wrote: Hi, I'm pretty sure that this

Re: will calling set on an existing set shortcircuit the call and return the same set or would it create a new one?

2010-12-02 Thread Daniel Werner
On Nov 30, 3:08 am, Sunil S Nandihalli sunil.nandiha...@gmail.com wrote:  I didn't realize I could test it so easily. But I would like it to ideally return the same collection .. Shouldn't be hard to write a wrapper .. But I think it should be the default behaviour. What benefit do you hope to

Re: functional thinking

2010-12-02 Thread Michael Ossareh
On Wed, Dec 1, 2010 at 05:29, Laurent PETIT laurent.pe...@gmail.com wrote: Hi, 2010/12/1 Michael Ossareh ossa...@gmail.com Hi All, In the course of putting together my latest piece of work I decided to really embrace TDD. This is run of the mill for me in Java: - create some object that

Re: functional thinking

2010-12-02 Thread Michael Ossareh
On Wed, Dec 1, 2010 at 10:51, Alyssa Kwan alyssa.c.k...@gmail.com wrote: Hi Mike, TDD as if you meant it - http://gojko.net/2009/02/27/thought-provoking-tdd-exercise-at-the-software-craftsmanship-conference/ What you want is mocking and stubbing (these are different things!).

Christmas Clojure Dojo [Manchester UK]

2010-12-02 Thread Rick Moynihan
Just a quick post to say I'll be hosting a free Clojure Dojo at the Manchester Madlab on Monday 13th December @7pm. We're planning on pairing folk off to go through some of the LabREPL exercises. If anyone's interested in attending you can find more details here:

Re: Tailing a file in Clojure

2010-12-02 Thread kkw
Hi Viksit, For production support, I also wanted to tail -f a file on a Windows server with no tail facility (no one had installed the Windows Resource Kit yet, and executing the install file myself would've been prohibitive (it's a long story)). However, this Windows server did have Java. I

Re: Tailing a file in Clojure

2010-12-02 Thread patrickdlogan
Java has a file watch API to avoid polling. Stuart Sierra uses it to good effect in lazytest. On Dec 2, 9:14 am, Alex Osborne a...@meshy.org wrote: viksit vik...@gmail.com writes: What would you recommend as the best method to tail a file using Clojure? Are there any built in functions in

implementing nth for sorted-set and sorted-map

2010-12-02 Thread Sunil S Nandihalli
Hello everybody, I am thinking it would be nice to have nth work for sorted-set and sorted-maps .. IMHO it makes at the least sense for sorted-set if not both .. is there a reason why this is not implemented already? Thanks, Sunil. -- You received this message because you are subscribed to the

Re: implementing nth for sorted-set and sorted-map

2010-12-02 Thread Sunil S Nandihalli
Right now I am just seq ing it before using nth Sunil. On Fri, Dec 3, 2010 at 12:55 PM, Sunil S Nandihalli sunil.nandiha...@gmail.com wrote: Hello everybody, I am thinking it would be nice to have nth work for sorted-set and sorted-maps .. IMHO it makes at the least sense for sorted-set if