Re: ANN: clojure.java.jdbc 0.0.7

2011-11-07 Thread Sean Corfield
On Mon, Nov 7, 2011 at 3:04 PM, keeds wrote: > Some more (blind) delving shows that the only difference between the > versions is that clojure1.2 and contrib pass the 14 value as a > java.lang.Integer whereas clojure1.3 and java.jdbc pass the value 14 as a > java.lang.Long and this is what blows t

Re: Another newbie question

2011-11-07 Thread Sean Corfield
On Mon, Nov 7, 2011 at 10:23 AM, Dennis Haupt wrote: > actually, we avoid dynamically typed languages like the plague. Why? Genuinely curious... -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ "Perfection is the en

Re: Another newbie question

2011-11-07 Thread Sean Corfield
On Mon, Nov 7, 2011 at 2:19 AM, pron wrote: > What other team practices do you use? E.g. what do you use for effective > documentation? docstrings? > I understand my questions could be directed at most dynamic languages, and > I'm absolutely not entering the static vs. dynamic debate Hmm, but i

Re: problems of a newbie

2011-11-07 Thread Sean Corfield
On Mon, Nov 7, 2011 at 4:20 AM, Dennis Haupt wrote: > which is a good thing. type safety is good. Is it? -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ "Perfection is the enemy of the good." -- Gustave Flaubert, F

Re: Stanford ai-class

2011-11-07 Thread nchurch
I have used Clojure in it for calculating some of the quiz/homework answersit's been helpful. -- 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 new members are modera

`conj` into maps

2011-11-07 Thread Chas Emerick
From[1]: > conj expects another (possibly single entry) map as the item, and returns a > new map which is the old map plus the entries from the new, which may > overwrite entries of the old. => (conj {:a 5} {:b 6}) {:b 6, :a 5} This doesn't make much sense to me; it seems that the values one

Re: Newbie question on OO/records

2011-11-07 Thread Alan Malloy
Yes On Nov 7, 10:35 am, stevelewis wrote: > So, you can have records in one .clj file and implementations of the > protocols in another .clj file? > > On Nov 6, 1:43 am, Baishampayan Ghose wrote: > > > > > > > > > > Okay, I'm trying to understand records. I read this article: > > >http://freegee

Re: Stanford ai-class

2011-11-07 Thread Simon Holgate
Hi Finn, > who is taking the Stanford ai-class with Peter Norvig and Sebastian Thrun? I'm taking it. Really enjoying it too. >. I'm doing now the > advanced track and it is a lot of fun although we have no programming > assignments > campus students have programming assignments like pacman and th

Re: Another oldie question

2011-11-07 Thread Craig Brozefsky
Dennis Haupt writes: > i wouldn't suggest using a language no one has experience in at the > start of a new project. you'll mess up the core design and everyone will > course you for decades. You are going to mess up the core design 99 times out of 100 anyways, so I don't see this as a stopper.

Re: Newbie question on OO/records

2011-11-07 Thread stevelewis
So, you can have records in one .clj file and implementations of the protocols in another .clj file? On Nov 6, 1:43 am, Baishampayan Ghose wrote: > > Okay, I'm trying to understand records. I read this article: > >http://freegeek.in/blog/2010/05/clojure-protocols-datatypes-a-sneak-p... > > (Cloju

[ANN] appengine-magic 0.4.6 released

2011-11-07 Thread Constantine Vetoshev
I just released appengine-magic version 0.4.6. appengine-magic is a library which makes it easy to write Clojure web applications intended for deployment on Google App Engine. https://github.com/gcv/appengine-magic/ This version of appengine-magic adds support for Clojure 1.3.0, while retaining c

Re: Which autodoc dep for clojure 1.3 (and advice on how to solve such questions generally)

2011-11-07 Thread Stephen Compall
On Fri, 2011-11-04 at 14:11 +0100, Hubert Iwaniuk wrote: > With "Leiningen 1.6.1.1 on Java 1.6.0_26 Java HotSpot(TM) 64-Bit Server VM" > executing: > $ lein plugin install audodoc 0.7.1 > fails advising to download artifact by hand. Is this copy-pasted from your command line? Because you misspe

Re: A question on deftest- macro.

2011-11-07 Thread Stephen Compall
On Sat, 2011-11-05 at 22:47 -0700, Young Kim wrote: > Did the developer of the deftest- macro write a incorrect code or > am I wrong in understanding the prupose of the deftest- macro? Note :test in the metadata below; deftest- doesn't change whether your definition is registered as a test, only

Re: ANN: clojure.java.jdbc 0.0.7

2011-11-07 Thread keeds
Sorry to answer my own question... Some more (blind) delving shows that the only difference between the versions is that clojure1.2 and contrib pass the 14 value as a java.lang.Integer whereas clojure1.3 and java.jdbc pass the value 14 as a java.lang.Long and this is what blows the .setObject c

Re: lein test with command-line args?

2011-11-07 Thread Phil Hagelberg
On Mon, Nov 7, 2011 at 2:14 PM, AndyK wrote: > Is it possible to pass command-line arguments to tests using > leiningen? Looking for ways to control the way that tests are run > using lein test by passing in switches (e.g. which environment it runs > against, which tests run, etc). One workaround

lein test with command-line args?

2011-11-07 Thread AndyK
Is it possible to pass command-line arguments to tests using leiningen? Looking for ways to control the way that tests are run using lein test by passing in switches (e.g. which environment it runs against, which tests run, etc). One workaround that occurs to me is to use lein run where run calls r

Re: get all record instances

2011-11-07 Thread Mark Fredrickson
user=> (defrecord Foo [a])user.Foouser=> (def a (Foo. 1))#'user/ auser=> (def b (Foo. 2))#'user/b user=> (defrecord Other [b]) user.Other user=> (def q (Other. 123)) #'user/q user=> (def p (Other. 456)) #'user/puser=> (filter #(= (class %) user.Foo) (map var-get (vals (ns- publics 'user (#:user

Re: Clojure Conj extracurricular activities spreadsheet

2011-11-07 Thread Michael Fogus
> Well, despite my best efforts I'm unable to edit the spreadsheet. I invited you to edit with the literatesoftware address but unfortunately I do not know how that might work without a Gmail account... apparently not at all. Apologies. I am certain that a BOF schedule board will appear somehow.

Re: Clojure Conj extracurricular activities spreadsheet

2011-11-07 Thread Luc Prefontaine
Same for me. I'll find a spot depending on the final schedule. I would like myself to attend some of these meetings :) Luc P. On Mon, 07 Nov 2011 13:31:47 -0500 daly wrote: > Well, despite my best efforts I'm unable to edit the spreadsheet. > > The Literate Software talk was supposed to be at

Re: Clojure Conj extracurricular activities spreadsheet

2011-11-07 Thread daly
Well, despite my best efforts I'm unable to edit the spreadsheet. The Literate Software talk was supposed to be at 7pm in the Presidents Ballroom but it appears that Pallet has reserved that time. I'll default to the old-fashioned BOF schedule board when I arrive to try to post a time and place

Re: Another newbie question

2011-11-07 Thread Dennis Haupt
actually, we avoid dynamically typed languages like the plague. i am taking a peek at clojure because i'm curious. Am 07.11.2011 11:19, schrieb pron: > I see. So namespaces are helpful here. > What other team practices do you use? E.g. what do you use for effective > documentation? With Java you

Re: Clojure Conj extracurricular activities spreadsheet

2011-11-07 Thread Michael Fogus
Organizers, I've added time/room columns. Please fill in your desired values. There is bound to be some overlap, but we're all friends here so I suspect that shifting can be worked out. :-) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: Clojure Conj extracurricular activities spreadsheet

2011-11-07 Thread David Nolen
Anybody mind if the miniKanren / cKanren presentation happens at 6pm Thursday in the main ballroom? David On Mon, Nov 7, 2011 at 10:53 AM, Christopher Redinger wrote: > On Thursday, November 3, 2011 3:46:40 PM UTC-4, David Nolen wrote: >> >> Any thoughts about when / where these events can take

Re: Clojure Conj extracurricular activities spreadsheet

2011-11-07 Thread David Nolen
Excellent! David On Mon, Nov 7, 2011 at 10:53 AM, Christopher Redinger wrote: > On Thursday, November 3, 2011 3:46:40 PM UTC-4, David Nolen wrote: >> >> Any thoughts about when / where these events can take place? Is it >> possible to get access to a projector? Or do we have to fend for ourselve

Re: PCL -> Clojure: question about variables

2011-11-07 Thread Meikel Brandmeyer (kotarak)
Hi, with each call to counters you get new incrementers, decrementers and accessors referecing different counters underneath. Capture the return value of the counters call. (def fns (counters)) ((nth fns 0)) ((nth fns 0)) ((nth fns 2)) Hope this helps. Sincerely Meikel -- You received this

Re: Clojure Conj extracurricular activities spreadsheet

2011-11-07 Thread Christopher Redinger
On Thursday, November 3, 2011 3:46:40 PM UTC-4, David Nolen wrote: > > Any thoughts about when / where these events can take place? Is it > possible to get access to a projector? Or do we have to fend for ourselves? > We have modified the contract with the hotel to keep the projector in the main

Re: Another newbie question

2011-11-07 Thread Keith Irwin
Oops. I somehow it some magic key. Soon as that post makes it through "review" I'll rewrite it to something short and useful. Moral of the story is to not use the web form on Google Groups. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: Another newbie question

2011-11-07 Thread Keith Irwin
I'm new to all this, too. The kinds of teams I've worked on, generally, favor breaking down a problem into separate processes such that we each get to work on our own apps which communicate via messaging or http, so I may not have quite the experience you have with big "shared-code" libraries (

Re: Another newbie question

2011-11-07 Thread pron
I see. So namespaces are helpful here. What other team practices do you use? E.g. what do you use for effective documentation? With Java you can easily find all helpful operations that can be used to manipulate a type. How do you make sure developers find all relevant functions in Clojure and d

PCL -> Clojure: question about variables

2011-11-07 Thread Matthew Giannini
I am new to Clojure and have been working through some of the examples on the PCL -> Clojure blog. Currently I am working through Chapter 6 (variables). The blog says "Nothing stops multiple functions from closing on the same variables. Here is a function that returns an incrementer, decrementer,

Re: Twitterbuzz Clojurescript sample

2011-11-07 Thread Bobby Calderwood
The ClojureScript dev team wrote clojure.browser.* to support the browser-connected REPL. We have discussed internally the merits of polishing up these libraries for public consumption, and re-writing the samples to use them, but have not come to a conclusion yet. The libraries are functional, bu

Re: where to find clojure swing definitons

2011-11-07 Thread Dave Ray
Hi. In Swing, components are positioned with a layout manager. Here's a guide to the ones that Swing provides out of the box: http://download.oracle.com/javase/tutorial/uiswing/layout/visual.html. If you're building a Swing app, you might find Seesaw (https://github.com/daveray/seesaw), or another

where to find clojure swing definitons

2011-11-07 Thread jayvandal
I wonder where I can find swing definitions such as text field locations on a panel or frame? How do I put 2 panels side by side to show two different records? How do I put text fields across the screen or down the screen?? Any help I would appreciate. Thanks -- You received this message because

Re: problems of a newbie

2011-11-07 Thread Scott Jaderholm
On Mon, Nov 7, 2011 at 8:33 AM, Dennis Haupt wrote: > Am 07.11.2011 14:02, schrieb Scott Jaderholm: > > On Mon, Nov 7, 2011 at 4:27 AM, Dennis Haupt > > wrote: > > > > Am 07.11.2011 10:18, schrieb Dennis Haupt: > > > > > >> > > >> > > >> In his

Re: ANN: clojure.java.jdbc 0.0.7

2011-11-07 Thread keeds
Sean, I've broken down the code and added some println's to contrib.sql and it does use preparedstatements and .setObject to set parameters for the MS Access queries. Changing the same SQL code to use clojure 1.3.0 and latest java.jdbc I get the error message. The implementation in contrib.sql

Re: appengine-magic + servlets

2011-11-07 Thread Mark Rathwell
You can't feed the servlet to appengine-magic, and you can't serve that servlet with appengine-magic.core/serve, you can only serve an appengine-magic app (created from a ring handler). I was talking about deployment to app engine. If you have a Java servlet, why not just run it in a Tomcat insta

Re: problems of a newbie

2011-11-07 Thread Dennis Haupt
Am 07.11.2011 14:02, schrieb Scott Jaderholm: > On Mon, Nov 7, 2011 at 4:27 AM, Dennis Haupt > wrote: > > Am 07.11.2011 10:18, schrieb Dennis Haupt: > > > >> > >> > >> In his code I did notice he doesn't use destructing very much. > >> >

Re: problems of a newbie

2011-11-07 Thread Dennis Haupt
Am 07.11.2011 14:01, schrieb Milton Silva: > > > On Nov 7, 12:41 pm, Milton Silva wrote: >> On Nov 7, 9:14 am, Dennis Haupt wrote: >> > The main thing to keep in mind is that when coming from java/scala, > you'll have a hard time adjusting to clojure, and you're making it > harder b

Re: problems of a newbie

2011-11-07 Thread Scott Jaderholm
On Mon, Nov 7, 2011 at 4:27 AM, Dennis Haupt wrote: > Am 07.11.2011 10:18, schrieb Dennis Haupt: > > > >> > >> > >> In his code I did notice he doesn't use destructing very much. > >> > > > > where would that have been useful? > > defn x [{:keys [foo bar]} param] > > instead of > > defn x [param]

Re: problems of a newbie

2011-11-07 Thread Milton Silva
On Nov 7, 12:41 pm, Milton Silva wrote: > On Nov 7, 9:14 am, Dennis Haupt wrote: > > > >> The main thing to keep in mind is that when coming from java/scala, > > >> you'll have a hard time adjusting to clojure, and you're making it > > >> harder by trying something so inherently full of state.

Re: problems of a newbie

2011-11-07 Thread Milton Silva
On Nov 7, 9:14 am, Dennis Haupt wrote: > >> The main thing to keep in mind is that when coming from java/scala, > >> you'll have a hard time adjusting to clojure, and you're making it > >> harder by trying something so inherently full of state. I understand > >> the need to tackle problems that

Re: problems of a newbie

2011-11-07 Thread Dennis Haupt
Am 07.11.2011 08:00, schrieb Sean Corfield: > On Sun, Nov 6, 2011 at 12:15 PM, Dennis Haupt > wrote: >> if by compatible you mean "has a specific set of functions and fields", >> then scala can do that without sacrificing static type safety: > > Yes, I started working with Scala in 2009 and it's

Re: clojure-refactoring - what's the best way to distribute a clojure + emacs/elisp combined package?

2011-11-07 Thread Laurent PETIT
2011/11/7 Joost > On Nov 4, 4:07 pm, Chas Emerick wrote: > > > I've only looked at the code for ~5 minutes, but I think I might > understand what's going on. To confirm: clojure-refactoring is sending > something like diffs back to the refactoring-mode/SLIME, and that > mode/emacs is what is ac

Thanks all for the clojure.org and wiki contributions

2011-11-07 Thread Colin Yates
Hi all, Just wanted to say a "thanks" to all the contributors to clojure.org and the wiki - it is *much* better than it was a few months ago when I last looked at it. The link to "screencasts" and the "getting started" are particularly useful. Thanks! Col -- You received this message because

Re: appengine-magic + servlets

2011-11-07 Thread Razvan Rotaru
Yes, I tried that but did not work. appengine-magic/serve expects an "appengine-application", which is a map that among others contains the ring handler. The serve function turns this handler into a servlet and maps it to the root path "/" (or "/*", I haven't figured that out yet). Whatever i write

Re: Another newbie question

2011-11-07 Thread Dennis Haupt
Am 06.11.2011 12:56, schrieb pron: > Hi. I'm new to Clojure, and enjoy using it very much. It's been years > since I learned Scheme back in college, and it's a pleasure going back > to lisp. > I do, however, have a question regarding real-world Clojure use in large > teams. While I clearly underst

Re: problems of a newbie

2011-11-07 Thread Dennis Haupt
Am 07.11.2011 10:18, schrieb Dennis Haupt: > >> >> >> In his code I did notice he doesn't use destructing very much. >> > > where would that have been useful? defn x [{:keys [foo bar]} param] instead of defn x [param] (let [foo (:foo param)...]) ? -- -- You received this message because y

Re: clojure-refactoring - what's the best way to distribute a clojure + emacs/elisp combined package?

2011-11-07 Thread Joost
On Nov 4, 4:07 pm, Chas Emerick wrote: > I've only looked at the code for ~5 minutes, but I think I might understand > what's going on.  To confirm: clojure-refactoring is sending something like > diffs back to the refactoring-mode/SLIME, and that mode/emacs is what is > actually performing th

Re: problems of a newbie

2011-11-07 Thread Dennis Haupt
> > > In his code I did notice he doesn't use destructing very much. > where would that have been useful? -- 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 new membe

Re: problems of a newbie

2011-11-07 Thread Dennis Haupt
> >> The main thing to keep in mind is that when coming from java/scala, >> you'll have a hard time adjusting to clojure, and you're making it >> harder by trying something so inherently full of state. I understand >> the need to tackle problems that we like, but without a good >> understanding o

Re: cljr install makes .cjr directory

2011-11-07 Thread Michael Wood
On 7 November 2011 06:51, jayvandal wrote: > Whay does cljr-installer.jar make directories  with .(period) in front > of the dir name as .cljr and .lein and m2. It's a convention on Linux/UNIX systems. "Dotfiles" are not displayed by default in directory listings. I assume by your question that

Re: Twitterbuzz Clojurescript sample

2011-11-07 Thread Chris Granger
There's also pinot: http://github.com/ibdknox/pinot On Nov 6, 4:10 pm, Bayard Randel wrote: > The following is more an observation than a problem. > > While investigating Clojurescript my first port of call after reading > the initial documentation was to read through the sample code > provided.