Re: Leiningen Local Repositories

2011-10-05 Thread Rob Wolfe
Dave Sann writes: > Hey Rob, Thanks for your reply, > > I will try that for my projects > > My use case is slightly different though. I want to be able to build other > peoples projects from source (e.g. from github) without editing any of the > project.clj files - but still overriding to use m

Re: ANN: tools.trace 0.7.1

2011-10-03 Thread Rob Wolfe
Luc Prefontaine writes: [...] > Just add: > > [org.clojure/tools.trace "0.7.1"] > > to your dependency list in your project.clj. > > This should be a straight replacement for clojure.contrib.trace in your code. > > If you find suggestions/improvements it's time to let me know about them. > > Src

Re: Leiningen Local Repositories

2011-10-02 Thread Rob Wolfe
Dave Sann writes: > Hi, > > I run Artifactory as a local repository manager. Currently, I am adding > > :omit-default-repositories true > :repositories {"releases" "http://artifactory/artifactory/libs-release"; >"snapshots" > "http://artifactory/artifactory/libs-snapsho

Re: Lein uberjar hangs when swank is required in the namespace.

2011-08-26 Thread Rob Wolfe
On 25 Sie, 23:10, Lars Rune Nøstdal wrote: > It's hanging here too, but I have no idea why; I'm not including swank. > > Is there any "verbose mode" for lein? Maybe there is some problem with network (firewall or something) and you can not get jars from remote repository. Does it work for you:

Re: having trouble with http.async.client

2011-03-08 Thread Rob Wolfe
Kevin Archie writes: > I'm trying to use http.async.client to do a PUT request (where I don't > care about the response) and my code is hanging -- apparently after > succesfully completing the PUT, from the server's perspective. > > This isn't quite what I'm doing, but exhibits the same behavior:

Re: http.async.client v0.2.2 released

2011-02-09 Thread Rob Wolfe
n e > (println "Failed to parse: " twit-str (.getMessage e)) > > (c/close)) > > You don't need to create new client. > > Now that I think of it it probably is a bug that one client is started by > default. > > HTH, > Huber

Re: http.async.client v0.2.2 released

2011-02-09 Thread Rob Wolfe
must be something. Br, Robert On 9 Lut, 15:51, Hubert Iwaniuk wrote: > Hi Rob, > > You need to close the client once you are done with it. > Please see "Managing http.async.client" of manual especially "Closing > http.async.client"http://neotyk.github.com/h

Re: http.async.client v0.2.2 released

2011-02-09 Thread Rob Wolfe
On 7 Lut, 19:30, Hubert Iwaniuk wrote: > Hi All, > > Just released v0.2.2 of HTTP Asynchronous Client. I have some problem using this library. Having such simple testing program: (ns test.http (:require [http.async.client :as c])) (defn test-http [] (println "start") (let [response (c/

Re: towards definitive "getting started" assistance

2010-04-01 Thread Rob Wolfe
On 1 Kwi, 10:13, Meikel Brandmeyer wrote: > Hi, > > On Apr 1, 9:58 am, Rob Wolfe wrote: > > > In my opinion this > > description:http://www.assembla.com/wiki/show/clojure/Getting_Started_with_Emacs > > is a little bit too terse. > > It assumes that everyone

Re: towards definitive "getting started" assistance

2010-04-01 Thread Rob Wolfe
On 30 Mar, 19:12, Stuart Halloway wrote: > The labrepl now has much better "getting started" instructions, thanks   > to everyone who pitched in. But this begs the question: Why hide the   > getting started instructions in a single project? So, I am working to   > create definitive instructions

Re: Choosing a Clojure build tool

2010-03-25 Thread Rob Wolfe
Chas Emerick writes: > I published a blog post earlier today, along with a short screencast > that might be of interest: > > "Like any group of super-smart programmers using a relatively new > language, a lot of folks in the Clojure community have looked at > existing build tools (the JVM space i

Re: ANN: labrepl, making Clojure more accessible

2010-03-25 Thread Rob Wolfe
On 25 Mar, 01:16, Mark Engelberg wrote: > I tried following Rob Wolfe's zip file instructions.  The bin\lein deps > command seemed to work fine, but when I then invoked bin\repl, I got the > following error: [...] > brepl-0.0.1.jar;C:\labrepl-package\core\leiningen-1.1.0-standalone.jar";.;C >

Re: ANN: labrepl, making Clojure more accessible

2010-03-23 Thread Rob Wolfe
Stuart Halloway writes: > The labrepl project (http://github.com/relevance/labrepl) is a > tutorial environment for learning Clojure. It is open source under the > same license as Clojure. Whether you are learning Clojure on your own, > or teaching or learning in a classroom environment, I want l

Re: Swank, ELPA and Emacs version do you use?

2010-03-21 Thread Rob Wolfe
alux writes: > Okay. So I switched to version 23.1. that had already been installed. > AFAIK it uses all the things I installed the last days. Or do I have > to update some other stuff? I tried to put together all steps needed to install SLIME for Clojure using ELPA: http://wiki.github.com/robwo

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

2010-03-04 Thread Rob Wolfe
On 5 Mar, 01:03, Felix Breuer wrote: > I am also on Windows and have struggled a good deal with Leiningen (I [...] > On 5 Mrz., 00:32, Glen Stampoultzis wrote: > > > > > On 5 March 2010 04:39, Chris Perkins wrote: > > > > The situation is worse on Windows, where I can't even get leiningen to

Re: leiningen powershell script

2010-02-15 Thread Rob Wolfe
On 15 Lut, 20:50, Brian Wolf wrote: > Rob Wolfe wrote: > > On 15 Lut, 07:42, Brian Wolf wrote: > > >> Hi, > > >> I am trying to run    (http://bit.ly/82zo95<http://bit.ly/82zo95> )   > >> powershell script for leiningen install under windows, bu

Re: leiningen powershell script

2010-02-15 Thread Rob Wolfe
On 15 Lut, 07:42, Brian Wolf wrote: > Hi, > > I am trying to run    (http://bit.ly/82zo95 )   > powershell script for leiningen install under windows, but it says it > can't find file, which file it doesn't say. I was wondering  what > dependencies leiningen  has? Do I need

Re: building clojure-contrib without downloading clojure.jar from elsewhere

2010-02-02 Thread Rob Wolfe
Ramakrishnan Muthukrishnan writes: > Hi, > > I am trying to package clojure-contrib for Debian and one of the > debian java packaging practices is that the build should not download > any external dependencies. All the dependencies should be debian > packages themselves. > > I tried building cloj

Re: Full Disclojure - I Need Topics!

2010-01-25 Thread Rob Wolfe
Sean Devlin napisał(a): > Rock, > Could you please proved a link to Alan Bawden's paper? I guess Rock meant "Quasiquotation in Lisp": https://eprints.kfupm.edu.sa/60346/1/60346.pdf BTW many thanks for your awesome videos. :) Br, Rob -- You received this message because you are subscribed to

Re: Swing unit testing

2010-01-12 Thread Rob Wolfe
Eric Thorsen napisał(a): > Anyone have any recommendation/experience for a unit testing library > for testing swing components? For simple module testing I use marathon [1] and for this purpose can recommend it. Test scripts can be written in Python not Clojure, though. ;) [1] http://www.marath

Re: newbie swank clojure emacs

2010-01-10 Thread Rob Wolfe
brian writes: > Hi, > > I'm trying to follow the directions at: > > http://riddell.us/tutorial/slime_swank/slime_swank.html > > I'm doing this under cygwin. > > I think I did everything correctly, but it seems not to find the > clojure.jar file although I have it and the clojure-contrib.jar in my

Re: C interop lib (JNA wrapper)

2010-01-08 Thread Rob Wolfe
mac writes: > Hello all. > I've started work on a clojure library for interoperating with C. It's > always been a pain to do in Java but recently JNA (java native access) > has taken away most of that pain. > When using clojure however, it's nice to be able to stay in clojure > and not drop to ja

Re: Having difficulties with compilation in slime, emacs and clojure-project

2010-01-07 Thread Rob Wolfe
Rob Lachlan napisał(a): > Thanks for the help. I had initially installed slime, clojure-mode > and swank following the instructions at > http://riddell.us/tutorial/slime_swank/slime_swank.html > > I tried simply installing swank-clojure, but that seemed to conflict > with what I already had. S

Re: SLIME/Swank problem with swank.util.sys/get-pid and RuntimeMXBean

2010-01-03 Thread Rob Wolfe
"Steven E. Harris" writes: > "Steven E. Harris" writes: > >> Now get this: Right before the SLIME-Swank connection completes, Emacs >> beeps and prints the following two lines in the *Messages* buffer: >> >> , >> | error in process filter: cond: etypecase failed: defun, (number cons >> stri

Re: SLIME/Swank problem with swank.util.sys/get-pid and RuntimeMXBean

2010-01-02 Thread Rob Wolfe
"Steven E. Harris" writes: [...] > Here's the stack: > > o swank-clojure > Git head. > > o SLIME > Both CVS head and git://git.boinkor.net/slime.git head behave the same > way, as the offending calls are in swank-clojure. > > o Clojure 1.1.0 > Downloaded Jar from code.google.com. > > o G

Re: Clojure/SLIME/Emacs questions

2010-01-02 Thread Rob Wolfe
Phil Hagelberg writes: > Rob Wolfe writes: > >> Stefan Tilkov writes: >> >>> Two quick Emacs/Clojure questions I can't seem to find the answer to: >>> >>> - In his screencasts, Sean Devlin moves the mouse over an item in his >>> REPL

Re: Clojure/SLIME/Emacs questions

2010-01-01 Thread Rob Wolfe
"Steven E. Harris" writes: > Rob Wolfe writes: > >> I did it like this (I assume that clojure-mode.el has been installed): > > Thanks, Rob. I followed your instructions after not being able to get > Clojure to cooperate with my normal Swank/SLIME installation

Re: Clojure/SLIME/Emacs questions

2009-12-31 Thread Rob Wolfe
Stefan Tilkov writes: > Two quick Emacs/Clojure questions I can't seem to find the answer to: > > - In his screencasts, Sean Devlin moves the mouse over an item in his > REPL history and it becomes highlighted (and he can paste it to the > current prompt with one click) > - Also in his screencast

Re: leiningen javac plugin

2009-12-30 Thread Rob Wolfe
Saul writes: > On Dec 9, 7:53 am, antoniogarrote > wrote: >> A quick and dirty hack to compile java files in clojure projects >> usingleiningen. >> >> >> Just run $lein compile-java to transforms 'src/**.java' into 'classes/ >> **.class' >> > > Many thanks. This works for me and I find it usefu

Re: Leiningen in Python

2009-12-20 Thread Rob Wolfe
John writes: > Hi Rob, > > I made the changes src/leiningen/jar.clj that you suggested. > Then issued the commands: > > E:\etc\clojure\Leiningen\lein.py clean > E:\etc\clojure\Leiningen\lein.py deps > E:\etc\clojure\Leiningen\lein.py compile > E:\etc\clojure\Leiningen\lein.py jar > E:\etc\clojure

Re: Leiningen in Python

2009-12-19 Thread Rob Wolfe
John writes: > Hi, > > I am trying to use lein.py, from above, on Windows (Vista). > > It works nicely for some commands (e.g. lein.py compile), > after removing the extra space in two places e.g. > 'leiningen-%s-standalone .jar' -> > 'leiningen-%s-standalone.jar' > and > '1.1.0-alpha-SNAPSHOT/cl

Re: Leiningen in Python

2009-12-15 Thread Rob Wolfe
Phil Hagelberg napisał(a): > Rob Wolfe writes: > > > Yes, there are some escaping problems on Windows. I changed a little bit > > "lein.py" and this worked for me on Windows and Linux: > > Can I include this in Leiningen 1.1.0+ with a note saying it's only

Re: what is the correct way to "mvn install" clojure-contrib

2009-12-14 Thread Rob Wolfe
B Smith-Mannschott writes: > On Sun, Dec 13, 2009 at 23:15, dysinger wrote: >> I highly recommend you use the snapshots on build.clojure.org.  Lein >> already has build.clojure.org snapshots in it's repo list.  You don't >> need to do anything more than put >> >>  :dependencies [[org.clojure/clo

Re: Leiningen in Python

2009-12-12 Thread Rob Wolfe
Mike K writes: > All, > > I tried to use this script on Windows and it blew up real good! I'm a > Clojure, Java, and Leiningen newbie, so perhaps a kind soul can help > me out. > > 1. lein self-install "worked". It downloaded leiningen-1.0.0- > standalone.jar. However, that contradicts the de

Re: FileNotFoundException (Access is denied)

2009-11-26 Thread Rob Wolfe
Robert Campbell napisał(a): > I'm trying to write a file scanner very similar to the one on page 131 > of Stuart's book: > > (ns user > (:use [clojure.contrib.duck-streams :only [reader]])) > > (defn scan [dir] > (for [file (file-seq dir)] > (with-open [rdr (reader file)] > (count (

Re: Clojure contrib http-agent hangs when making a POST request

2009-10-30 Thread Rob Wolfe
Alex writes: > Hi, > > I'm getting some strange errors when trying to make a POST request > using the Clojure contrib http-agent library (http:// > richhickey.github.com/clojure-contrib/http.agent-api.html). > > When I run: > > (use 'clojure.contrib.http.agent) > > (println (string (http-agent "

Re: Writing binary data using http.agent and duck-streams

2009-10-24 Thread Rob Wolfe
Baishampayan Ghose writes: > Hello, > > I was trying to download a zip file using clojure.contrib.http.agent and > writing it to a file using clojure.contrib.duck-streams. > > Apparently the zip file is getting corrupt because I was trying to treat > the stream as a string. > > Is there any way

third party libraries and agents shutdown

2009-10-12 Thread Rob Wolfe
Hi, I'm wondering how do you guys use libraries, which use agents under the hood? Let's suppose I'd like to use "clojure.contrib.http.agent". My program might look like this: (ns eu.rwdev.html (:require [clojure.contrib.http.agent :as http]) (:import [java.net URL] [java.io Buff

Re: vs. Python

2009-08-30 Thread Rob Wolfe
Dan Fichter napisał(a): > I'd like to convince some Python developers that Clojure is not foreign and > does many things better than Python. I'd appreciate whatever suggestions > you have about what I've written. [...] > Check whether every object in the collection x can be called like a > fu

Re: ANN: clojure-maven-plugin 1.0 released and in maven central

2009-08-26 Thread Rob Wolfe
ngocdaothanh napisał(a): > I'm new to Maven. Thank you for the explanation. > > Using git-submodules and is a good idea. Prior to > using your plugin, I use clojure and clojure-contrib with Maven like > this: > > 1. Manually download from GitHub and compile clojure and clojure- > contrib. > 2.

Re: Build error in latest clojure checkout

2009-08-05 Thread Rob Wolfe
Chad Harrington napisał(a): > I just reinstalled my Clojure environment using the Emacs Starter Kit + > Clojure Mode. The M-x clojure-install command has worked fine in the past, > but this time, it hits an error in compiling PersistentArrayMap.java: > -- Begin output >

Re: Solving memory problems with Clojure code

2009-06-22 Thread Rob Wolfe
BerlinBrown napisał(a): > I want to make it clear, that it probably isn't Clojure's memory > problem but something with my code. > > Anyway, I was trying to figure out my heap memory goes up so much on > various operations in my application. Sure, it could be anything but > I know I am doing so

Re: with-open and java interoperability

2009-06-06 Thread Rob Wolfe
Meikel Brandmeyer napisał(a): > Hi, > > Am 06.06.2009 um 21:40 schrieb Rob Wolfe: > > > I'm trying to understand why this program throws an exception: > > It doesn't work because > > > (-> (new StringReader "abc") > > (new cloj

with-open and java interoperability

2009-06-06 Thread Rob Wolfe
Hi, I'm trying to understand why this program throws an exception: $ clojure -e "(clojure-version)" "1.0.0-" $ cat test1.clj (ns rw.test (:import (java.io StringReader))) (def x (with-open [s (-> (new StringReader "abc") (new clojure.lang.LineNumberingPushbackReader)

Re: swank-clojure + slime

2009-03-08 Thread Rob Wolfe
youngblood.carl napisał(a): > Thanks Lucio, but you can see on git-hub that the head version of > core.clj uses lazy-seq: > > http://github.com/jochu/swank-clojure/blob/349cb3b93a7bd8bcc86ffd0fd5415d84ed5f4028/swank/core.clj I read somewhere too that "lazy-seq" dissapeared from clojure and that