Re: What's the best way to do this?

2010-01-22 Thread Neill Alexander
Wow, thanks very much guys. It's a really useful learning experience to read these different solutions. I'm not yet thinking in Clojure, but this thread will surely take me another step closer. On Jan 22, 6:42 am, David Nolen wrote: > Oops you're right :) And better written as well :D > > On Fri,

Can't get Ring to reload namespace

2010-02-23 Thread Neill Alexander
Can anyone help me to work out why Ring isn't reloading my namespace? ;; (ns com.nwalex.sponge.server.core [:require [ring.adapter.jetty :as jetty] [ring.middleware.reload :as reload]]) (defn app [req] {:status 200 :headers {"Content-Type" "text/

Re: Can't get Ring to reload namespace

2010-02-24 Thread Neill Alexander
Great, that makes sense. Thanks very much guys. On Feb 24, 1:00 am, James Reeves wrote: > Ah yep, (var app) is probably a better idea than #(app %). > > - James > > On Feb 23, 11:55 pm, Mark McGranaghan wrote: > > > > Basically because wrap-reload is a function, so app is evaluated > > > before

Re: Clojure syntax highlight for web sites

2010-03-01 Thread Neill Alexander
I use http://alexgorbatchev.com/wiki/SyntaxHighlighter plus the Clojure highlighter listed at http://www.undermyhat.org/blog/2009/09/list-of-brushes-syntaxhighligher/ On Feb 28, 10:57 pm, Ivan wrote: > Hello All, > > Do you happen to know of any JavaScript syntax highlighting library, > alikehtt

Re: Leiningen, Clojure and libraries: what am I missing?

2010-03-05 Thread Neill Alexander
I'll add my 2 cents worth. I've come from a Java development background to Clojure. A couple of years ago our company migrated from Ant to Maven. At first I really really hated it. I found it difficult to make it do what I wanted it to do. Nowadays, though, it is my build tool of choice. The turni

Sponge: A Clojure App with a Swing Interface

2010-04-23 Thread Neill Alexander
Just in case anybody is interested I have written a tool to aid developing against a web-service. It sits between the Soap client and the Soap service and acts as a router (a bit like SoapTrace). You can use it to record Soap sessions then replay them. See http://github.com/NeillAlexander/spon