Re: Clojure regexs

2011-01-13 Thread gaz jones
bah! good catch. (let [[_ year month day]] (re-find date-regex line)) fixed! On Thu, Jan 13, 2011 at 9:03 PM, Ken Wesson kwess...@gmail.com wrote: On Thu, Jan 13, 2011 at 9:54 PM, Alex Baranosky alexander.barano...@gmail.com wrote: I see.  So I may have to use some kind of clunky syntax

Re: Clojure regexs

2011-01-13 Thread gaz jones
lol oh noes! i should really stop doing this while watching 30rock... On Thu, Jan 13, 2011 at 9:38 PM, Ken Wesson kwess...@gmail.com wrote: On Thu, Jan 13, 2011 at 10:22 PM, gaz jones gareth.e.jo...@gmail.com wrote: bah! good catch. (let [[_ year month day]] (re-find date-regex line)) fixed

Re: When to use #'

2011-01-12 Thread gaz jones
its a reader macro equivalent to the var special form: (var symbol) The symbol must resolve to a var, and the Var object itself (not its value) is returned. The reader macro #'x expands to (var x). from: http://clojure.org/special_forms#var On Wed, Jan 12, 2011 at 9:11 PM, Alex Baranosky

Re: which IDEs are you all using?

2011-01-09 Thread gaz jones
i wrote this recently about how i edit clojure in emacs, listing some features i find especially useful: http://blog.gaz-jones.com/post/2501842155/interactive-clojure-development-in-emacs-with-leiningen i used to use vimclojure as vim was my favourite editor but decided to take the plunge and

Re: which IDEs are you all using?

2011-01-09 Thread gaz jones
hey, did it fail to install or was it just a warning? you can check if it installed with M-x package-list-packages and seeing if it is in the installed list (should be at the bottom of the buffer marked as installed). you get quite a lot of warnings with some of those packages on install but

Re: Clojure job scheduler

2011-01-07 Thread gaz jones
the work library has a function which it describes as 'cron for clojure functions': https://github.com/clj-sys/work.git cant say i have used it, but i noticed it in there recently whilst looking for other things. here is the function: (defn schedule-work schedules work. cron for clojure fns.

Re: osx + clojure + emacs + leiningen blog posts

2011-01-03 Thread gaz jones
paragraph.  If it is, then will you please explain how? Thanks, Bill Robertson On Dec 28 2010, 11:31 pm, gaz jones gareth.e.jo...@gmail.com wrote: thanks for the feedback, i will update it tomorrow. cheers, gaz On Tue, Dec 28, 2010 at 8:44 PM, Phil Hagelberg p...@hagelb.org wrote

Re: osx + clojure + emacs + leiningen blog posts

2011-01-03 Thread gaz jones
, 2011 at 8:38 PM, Bill Robertson billrobertso...@gmail.com wrote: Yes.  Very helpful. Thanks Gaz.  Also, thanks to Phil for all of his hard work. -Bill On Jan 3, 10:50 am, Neo neo@gmail.com wrote: Very useful info, really thanks for that. Will try later and give feedback. gaz

osx + clojure + emacs + leiningen blog posts

2010-12-28 Thread gaz jones
oh hi, i put together a couple of blog posts around how i use clojure + emacs + leiningen on OSX (but applies to linux too) in the hope it may help someone get up and running faster: http://blog.gaz-jones.com/post/2486737162/setting-up-clojure-development-on-osx-using-emacs-and

Re: Automatically unmapping unit tests from namespaces

2010-12-22 Thread gaz jones
you can also move to the failed test and press C-c ' and it will show them in the mini-buffer On Tue, Dec 21, 2010 at 11:47 PM, Michael Ossareh ossa...@gmail.com wrote: On Tue, Dec 21, 2010 at 21:36, Michael Ossareh ossa...@gmail.com wrote: On Tue, Dec 21, 2010 at 16:16, Phil Hagelberg

Re: Ah-hah! Clojure is a Lisp

2010-12-19 Thread gaz jones
sha-wing? :D On Sun, Dec 19, 2010 at 5:41 PM, javajosh javaj...@gmail.com wrote: Can you articulate it any better than ah hah!? On Dec 19, 11:33 am, Tim Daly d...@axiom-developer.org wrote:   There have been discussions, here and elsewhere, about whether Clojure is a Lisp. Lots of discussion

Re: Moderately off-topic: installing emacs on OSX

2010-12-13 Thread gaz jones
homebrew installs a mac application to: /usr/local/Cellar/emacs/23.2/Emacs.app/ by default which you can run from there, or copy to your /Applications folder to run. running from the terminal doesnt seem to work so well in my experience. On Mon, Dec 13, 2010 at 8:43 PM, javajosh

command line options parser

2010-12-10 Thread gaz jones
oh hi, i needed (well, wanted) a command line parser more like opt parser in ruby so i threw one together: https://github.com/gar3thjon3s/clargon thought i would share in case anyone else finds it useful. im aware of with-command-line but it didnt quite do what i wanted as i needed functions

Re: Moderately off-topic: installing emacs on OSX

2010-12-10 Thread gaz jones
brew install emacs --cocoa worked pretty well for me. and then my fork of emacs-starter-kit if that is useful to anyone: https://github.com/gar3thjon3s/emacs-starter-kit my default-profile.el has a few settings for making the brew installed emacs work better with os x. by the way thanks for

Re: string interpolation

2010-11-20 Thread gaz jones
you could use format or cl-format? http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/format http://clojure.github.com/clojure-contrib/pprint-api.html#clojure.contrib.pprint/cl-format On Sat, Nov 20, 2010 at 5:00 PM, HiHeelHottie hiheelhot...@gmail.com wrote: I think ruby

Re: apply a function to a list and another parameter

2010-10-23 Thread gaz jones
you could do something like: (map str [hello1 hello2 hello3] (repeat world)) there is also a time macro: (time (println oh hi)) On Fri, Oct 22, 2010 at 5:48 AM, Marc von Bihl mvonb...@googlemail.com wrote: Hello, I am new to fucntional programming and have 2 questions: How can I apply a

Re: question regarding macro (ab)usage

2010-09-28 Thread gaz jones
thanks for the reply, you are right! and in fact my real implementation is more like this, i thought that by showing them both as macros in the post it would be easier for people to just skim read the post and compare them side by side. probably just confused the issue, sorry. the thing im really

question regarding macro (ab)usage

2010-09-27 Thread gaz jones
hi, apologies if this is a long question, i would appreciate some guidance here. i am creating a clojure wrapper around a rather verbose low latency messaging framework. the main things you can do are publish messages, receive messages, initialize sources and receivers etc. all are done through

<    1   2