Re: New Release of the Clojure Debugging Toolkit

2010-10-10 Thread George Jahad
> George, I don't know what time zone you live in, but you are one crazy > person! I'm on vacation in NYC for a couple more days, then back home to Silicon Valley. Still jet lagged which explains my odd hours. (Not to mention that being in New York is such a rush it's pretty hard to sleep!) > Y

Re: New Release of the Clojure Debugging Toolkit

2010-10-10 Thread Gregg Williams
George, I don't know what time zone you live in, but you are one crazy person! You're doing fantastic work for the Clojure community, and I thank you very much for that! The Emacs I was using was Clojure Box, so I disconnected slime (just in case) and tried what you suggested. The results were bet

resultset-seq

2010-10-10 Thread Mark Engelberg
Why does resultset-seq convert column names to all lower case? This behavior is screwing me up (my column names are intentionally mixed case) and I don't understand the reasoning. Thanks, Mark -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post

Re: Servlet question

2010-10-10 Thread Adrian Cuthbertson
Hi Dmitri, The problem is probably related to calling init with args. It requires that super() gets called - I can't remember where I saw the documentation, but here's an example of what works for me. The following is a generic servlet which gets passed a clojure namespace name as an init paramet

Javascript generator

2010-10-10 Thread jim
Due to popular demand*, I resuscitated my code to generate javascript from s-expressions. This was what I coded to learn about logic programming in Clojure. Github: http://github.com/jduey/js-gen Clojars: http://clojars.org/net.intensivesystems/js-gen *actually it was just one person, but I'm eas

Re: Project Euler problem 14: Maybe it's me but hash maps don't seem to work

2010-10-10 Thread Stuart Halloway
Since collatz is defined for integer math, I would argue that the use of "quot" instead of "/" isn't a workaround at all -- "quot" is the right function for the job, and better communicates what the code is doing. That said, Mark is certainly right that we want feedback on the numeric support i

Re: the project names with "-" in them .. bug report of "cake new"

2010-10-10 Thread Laurent PETIT
I don't understand why there should be constraints on the project name 2010/10/10 Sunil S Nandihalli > > > Hi, > Leiningen replaces the project names with "-" with "_" for the sake > of the jvm.. But the default "cake new" does not seem to do that. so > the jvm has trouble with it.. > Than

lein compile changes not getting picked up by lein swank

2010-10-10 Thread HiHeelHottie
I'm running lein swank and using slime-connect from emacs. When I use lein compile after making changes to a method, they don't appear to get picked up unless I bring down lein swank, bring it up again, slime- connect, etc. Is there a way to get lein compile changes to be picked up by an already

Servlet question

2010-10-10 Thread Dmitri
I noticed an odd thing when making a servlet (ns jms.myservlet (import (javax.servlet.http HttpServlet HttpServletRequest HttpServletResponse)) (:gen-class :extends javax.servlet.http.HttpServlet)) (defn -init [& args] (println "+++ init ran with arg

Fwd: the project names with "-" in them .. bug report of "cake new"

2010-10-10 Thread Sunil S Nandihalli
Hi, Leiningen replaces the project names with "-" with "_" for the sake of the jvm.. But the default "cake new" does not seem to do that. so the jvm has trouble with it.. Thanks, Sunil -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this g

Re: clojure-cake

2010-10-10 Thread Sunil S Nandihalli
thanks everybody, I got it working .. the problem was that the ruby and rubygem were of different versions... Sunil. On Sat, Oct 9, 2010 at 3:12 PM, lance bradley wrote: > You can verify this by running 'which ruby; which gem'. If the paths > do not match, adjust it as mentioned in luke's link.

Re: Style Question

2010-10-10 Thread Stephen C. Gilardi
I think I see the goal now: to allow calling with either a map or sequential key-value pairs. What you have appears correct and minimal for that purpose. For a function taking a sequence, you can accomplish something similar without a second arity by choosing to call directly or call using appl

Re: Style Question

2010-10-10 Thread Stephen C. Gilardi
The answer depends on what you're trying to accomplish. Does this simpler definition allow you to call blah in the ways you want to? (defn blah [& {:as blah-map}] ;; do stuff with blah-map) --Steve On Oct 10, 2010, at 12:39 AM, Grayswx wrote: > Recently, I've been coding functions that ta

Style Question

2010-10-10 Thread Grayswx
Recently, I've been coding functions that take a map as follows. I feel like it is slightly messy, though, and was wondering if any one else could think of a reason not to do it: (defn blah ([blah-map] ;; do stuff with blah-map) ([key val & {:as blah-map}] (blah (assoc blah-map key va

Re: New Release of the Clojure Debugging Toolkit

2010-10-10 Thread George Jahad
> git fetch Actually, instead of git fetch, use: git pull origin windows On Oct 10, 4:39 am, George Jahad wrote: > I haven't gotten it working on Windows yet, (as I mention > here:http://georgejahad.com/clojure/emacs-cdt.html) > > I don't think it will be hard, but I've never run Clojure on Wi

Re: New Release of the Clojure Debugging Toolkit

2010-10-10 Thread George Jahad
I haven't gotten it working on Windows yet, (as I mention here: http://georgejahad.com/clojure/emacs-cdt.html) I don't think it will be hard, but I've never run Clojure on Windows, so I'm not sure of the issues involved. I need someone like you to help me figure them out. I'm guessing the most i

Re: Trouble understanding let

2010-10-10 Thread Abraham
k is not global binding so it does not resolve let helps to define local binding thanks Abraham On Oct 10, 2:09 pm, Ulises wrote: > >> What is it I get wrong? > > As the others said, you have no expressions being evaluated in the > body of let and hence you get nil. The way I understand let is t

Re: Trouble understanding let

2010-10-10 Thread Ulises
>> What is it I get wrong? As the others said, you have no expressions being evaluated in the body of let and hence you get nil. The way I understand let is that you define some bindings to be used in the body of let which will cease to exist (if they didn't exist before the let expression) after