Re: New to Clojure

2011-06-08 Thread Sean Corfield
On Wed, Jun 8, 2011 at 9:15 PM, Santosh M wrote: > I just found out three books on closure, please tell me which is the > best one to start with? > > 1 - The Joy of Clojure > 2 - Programming Clojure > 3 - Practical Clojure Because Practical Clojure is more modern than Programming Clojure - and c

Re: New to Clojure

2011-06-08 Thread Santosh M
I just found out three books on closure, please tell me which is the best one to start with? 1 - The Joy of Clojure 2 - Programming Clojure 3 - Practical Clojure On Jun 8, 9:03 pm, Santosh M wrote: > Thank you all for the suggestions. > Will keep posting my queries on the google groups. :) > >

Re: New to Clojure

2011-06-08 Thread Santosh M
Thank you all for the suggestions. Will keep posting my queries on the google groups. :) On Jun 8, 12:33 pm, hci wrote: > I was in the same boat last year. My experience with Clojure started > with Java interop, by writing Clojure code to solve some small > problems using existing Java libraries.

Re: Announcement: stockings clojure library for easy access to financial data

2011-06-08 Thread jaime
I tried to run the example behind a proxy but the connection failed. Anyone who knows how to resolve this?? I'm using Eclipse and plugin counterclockwise, the Eclipse itself can check for update behind the proxy. Thanks, Jaime On Jun 1, 3:09 am, fxt wrote: > Hi everyone, > > I just wanted to an

Re: Radically simplified Emacs and SLIME setup

2011-06-08 Thread Mark Engelberg
It's been a couple of weeks, so I thought I'd check in and see whether anyone has yet been successful at using the new clojure-jack-in process on Windows. Did the 1.9.2 release successfully resolve the "cannot find the path specified" error for anyone else? Thanks, Mark On Mon, May 30, 2011 at

Re: ANN: Emacs auto-complete plugin for slime users

2011-06-08 Thread Andreas Liljeqvist
This is great stuff for sure! I have a problem though: If I press 'tab' before the doc strings show up I get a Nullpointerexception. Any ideas? 2010/8/14 Steve Purcell > Hi all, > > A while ago I hooked Slime's completion and documentation features into the > popular Emacs auto-completion frame

Re: Problem implementing interface with defrecord

2011-06-08 Thread diamond
Thank you. That works. I knew it had to be something simple... like me not reading the doc closely enough. --Andrew -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from

Re: Problem implementing interface with defrecord

2011-06-08 Thread Meikel Brandmeyer
Hi, Am 08.06.2011 um 21:25 schrieb diamon...@yahoo.com: > So... what's going on here? You have to specify the “this” parameter. (defrecord ConnPerRouteImpl [connections] org.apache.http.conn.params.ConnPerRoute (getMaxForRoute [this route] connections)) Sincerely Meikel -- You received t

Re: New to Clojure

2011-06-08 Thread hci
I was in the same boat last year. My experience with Clojure started with Java interop, by writing Clojure code to solve some small problems using existing Java libraries. For example, I used Clojure to fetch and process application logs in a MySQL database and visualize the results with a Java gra

Problem implementing interface with defrecord

2011-06-08 Thread diamon...@yahoo.com
I'm trying to use defrecord to implement the interface org.apache.http.conn.params.ConnPerRoute. That interface consists of exactly one method, with the following signature: int getMaxForRoute(HttpRoute route); The documentation for this interface is at http://grepcode.com/file/repo1.maven.org/m

Re: Clojure, Swank, and Leiningen with Emacs on Mac OS X

2011-06-08 Thread diamon...@yahoo.com
This worked for me in both Linux and Mac OS X. http://biztech.sheprador.com/?p=89 --Andrew On Jun 8, 4:57 am, "Randy J. Ray" wrote: > The contents of .clojure are not at issue, clojure runs just fine from the > command-line, repl, etc. > > My problem is with installing SLIME, clojure-mode, etc.

Re: Clojure, Swank, and Leiningen with Emacs on Mac OS X

2011-06-08 Thread JMatt
Randy, Check out my configuration. It is similar to what you want to do. It works with Aquamacs, emacs23.x , emacs24 and there is a branch that works on Windows with some hacking. I individually included external dependencies in the vendors directory; including clojure-mode, slime and emacs-starte

Re: Google Benchmark: needs a Clojure implementation...

2011-06-08 Thread edlich
On 8 Jun., 07:58, Mark Engelberg wrote: > Is there a free source for the original article containing the > detailed description of the algorithm? Well I think the original article by Paul Havlac is availble if you have ACM access here: http://portal.acm.org/citation.cfm?id=262005 The algorithm i

Aw: Re: Building a vector of vector list

2011-06-08 Thread Meikel Brandmeyer
Hi again, this works only because you call your function with just one package. I get the impression you just want: (defn ea-xmi [dname & packages] (into [:xmi {:version "2.1" :nsuml "http://schema.omg.org/spec/UML/2.1"; :nsxmi "http://schema.omg.org/spec/XMI/2.

Re: Building a vector of vector list

2011-06-08 Thread Mushfaque Chowdhury
Ahh yes, this works (with apply):- (defn ea-xmi [dname & packages] (into [:xmi {:version "2.1" :nsuml "http://schema.omg.org/spec/UML/2.1"; :nsxmi "http://schema.omg.org/spec/XMI/2.1"; :customprofile "http://www.sparxsystems.com/profiles/ thecustomprofile/1.0"}]

Re: Building a vector of vector list

2011-06-08 Thread Mushfaque Chowdhury
Thanks Meikel I'm hoping that the "into" function is not going to make things inefficient but I'll give it a go. I also agree, eval is not what I want, because it does feel wrong. Something tells me that I should be using apply, but I've not yet figured out why/how. Ronnie On Jun 8, 2:07 pm, Me

Re: New to Clojure

2011-06-08 Thread looselytyped
Hi Santosh, I have been playing around with Clojure for some time now, and outside of echoing most of the suggestions listed above (specifically StackOverFlow hints/tricks, OSS projects on GitHub/BitBucket and most importantly the REPL with Leiningen) I have one more suggestion - Being a Java guy

Aw: Building a vector of vector list

2011-06-08 Thread Meikel Brandmeyer
Hi, you just need a slight change in your ea-xmi function. (defn ea-xmi [dname & packages] (into [:xmi {:version "2.1" :nsuml "http://schema.omg.org/spec/UML/2.1"; :nsxmi "http://schema.omg.org/spec/XMI/2.1"; :customprofile "http://www.sparxsystem

Building a vector of vector list

2011-06-08 Thread Mushfaque Chowdhury
Hi all I'm trying to build a vector data structure that can be printed using the core prn function. Here's my test case (defn ea-xmi [dname & packages] [:xmi {:version "2.1" :nsuml "http://schema.omg.org/spec/UML/2.1"; :nsxmi "http://schema.omg.org/spec/XMI/2.1"; :c

Re: New to Clojure

2011-06-08 Thread Santosh M
Thank you mike will definitely go through the links. :). I don't have any background of lisp. Cheers Santosh On Jun 7, 3:30 pm, Mike Anderson wrote: > Hi Santosh, > > I was in your position a little over a year ago. Some recommendations > that may help: > > - If you're coming from a Java enviro

Re: Free Compojure Hosting? (or mostly free)

2011-06-08 Thread Mark Rathwell
Also released since this thread started, not free, but starting at about $14/month USD, Amazon's Elastic Beanstalk ( http://aws.amazon.com/elasticbeanstalk/) . And VMWare has their Cloud Foundry hosting in beta for free, but it will cost money once it is out ( http://www.cloudfoundry.com/). GAE i

Re: Free Compojure Hosting? (or mostly free)

2011-06-08 Thread Alex Robbins
You can also put stuff up on the java part of Google App Engine. It is pretty easy with this project: https://github.com/gcv/appengine-magic You have a limit of ten apps per user, but it works for just getting stuff up to play with. Alex On Tue, Jun 7, 2011 at 11:37 PM, Sean Corfield wrote: > I t

Re: New to Clojure

2011-06-08 Thread Nick Zbinden
While we talk about Functional thinking. The IBM has a series. They use Java (and Groovy) but it may help you since you allready know java. http://www.ibm.com/developerworks/java/library/j-ft1/index.html http://www.ibm.com/developerworks/java/library/j-ft2/?ca=drs- -- You received this message b

Re: Clojure, Swank, and Leiningen with Emacs on Mac OS X

2011-06-08 Thread Randy J. Ray
The contents of .clojure are not at issue, clojure runs just fine from the command-line, repl, etc. My problem is with installing SLIME, clojure-mode, etc. without using package.el. When I tried it, it failed somewhere in the building/compiling of clojure-mode.el, and the SLIME package was not com