Re: [ANN] data.priority-map 0.0.2 available

2012-09-10 Thread John Gabriele
On Monday, September 10, 2012 7:29:34 AM UTC-4, Denis Labaye wrote: > > >> >> (yes, I know the README needs updating to the "official" format...) >> > > What's the "official" format ? > http://dev.clojure.org/display/design/Contr

Re: atom with metadata

2012-09-09 Thread John Holland
sorry, figured it out after I posted - to get at the meta have to deref the atom On Sunday, September 9, 2012 10:50:34 AM UTC-4, John Holland wrote: > > Can I perform a swap! on an atom and have the metadata survive? Or else > reapply it somehow? The only way I seem to be able

atom with metadata

2012-09-09 Thread John Holland
Can I perform a swap! on an atom and have the metadata survive? Or else reapply it somehow? The only way I seem to be able to apply metadata is with the reader macro. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

Re: Fund raiser for our projects

2012-09-06 Thread John Gabriele
ge career, they may don't have time anymore > for some stuff, they may move in Buthan, however you can be about sure that > a wiki page will still. > > As an aside, note that when you clone a github repo, you don't get the wiki too. :) To clone the wiki, visit the wiki and

Re: I want to know how can I run it?

2012-09-03 Thread John Gabriele
On Monday, September 3, 2012 11:34:02 AM UTC-4, John Gabriele wrote: > > On Thursday, August 30, 2012 9:36:14 PM UTC-4, gearss wrote: >> >> I have a file named pong.clj, it isunder following, I want to know how >> can I run it? >> Thank you. >> >> >

Re: I want to know how can I run it?

2012-09-03 Thread John Gabriele
On Thursday, August 30, 2012 9:36:14 PM UTC-4, gearss wrote: > > I have a file named pong.clj, it isunder following, I want to know how can > I run it? > Thank you. > > Hi gearss. See "Launching a Script" at http://clojure.org/repl_and_main . ---John -- You recei

Re: webnoir on openshift (Paas by RedHat), little guide

2012-08-31 Thread John Holland
This is awesome! On Friday, August 31, 2012 4:31:38 PM UTC-4, Simone Mosciatti wrote: > > A little guide to use webnoir on openshift > > http://sisciatech.tumblr.com/post/29614188595/webnoir-in-openshift > > English is not my first language, if you find any mistake please let me > know. > > I ho

Re: problem 58 on 4clojure

2012-08-25 Thread John Holland
omp but it will be fun to see. On Sat, Aug 25, 2012 at 2:46 PM, John Holland wrote: > Thanks to a for the replies. I will study them later when I am free. > > On Aug 25, 2012 2:37 PM, "nicolas.o...@gmail.com" > wrote: >> >> Here's my take: >> &g

Odd residual exception behaviour at the repl

2012-08-25 Thread John Gabriele
Util.java:170) "hi" user=> "hi" "hi" user=> ~~~ This is using lein 2 preview 8, Clojure 1.4, with OpenJDK 1.7. ---John -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloj

Re: problem 58 on 4clojure

2012-08-25 Thread John Holland
Thanks to a for the replies. I will study them later when I am free. On Aug 25, 2012 2:37 PM, "nicolas.o...@gmail.com" wrote: > > Here's my take: > > We want to define a function my-comp. It takes n functions and return > their composition. > We want to return a function of any number of argum

problem 58 on 4clojure

2012-08-25 Thread John Holland
This problem is really confusing me. I found a solution online, but I can't understand the solution. Can anyone explain to me why this works? The problem is stated as: Write a function which allows you to create function compositions. The parameter list should take a variable number of function

library naming convention

2012-08-17 Thread John Gabriele
on't wrap an existing lib, and don't implement a well-known standard) come up with a new/original/creative/quirky name. I think the first 2 are handy, because they immediately indicate what sort of animal you're dealing with. The third, of course, is just plain fun. :) ---John -- Y

Re: recursion question

2012-08-14 Thread John Holland
Ended up with the following wondering if loop/recur is possible in this case? (defn groupSum [a x] (cond (= (count a) 0) false (= (first a) x) true (> (first a) x) (if (> (count a) 1) (groupSum (rest a) x) false)

Re: recursion question

2012-08-14 Thread John Holland
y of at least > N bits, where N is the target. > > Andy > > On Aug 14, 2012, at 4:17 PM, John Holland wrote: > > I thought of doing something like that, but part of the requirements is > that the sum could be achieved with *some" of the numbers in the vector. >

Re: recursion question

2012-08-14 Thread John Holland
if the remaining #s can sum to the now-lesser goal. > lather rinse repeat. > don't forget a base case. > watch your cpu heat very quickly up on even slightly longer lists. > ? > > On Tue, Aug 14, 2012 at 4:13 PM, John Holland > > > wrote: > > I've

recursion question

2012-08-14 Thread John Holland
I've been doing some programming exercises in Clojure, I've run into one I don't know how to approach. If anyone can just give me the strategy to use on this that'd be great. Here is the problem statement: Given an array of ints, is it possible to choose a group of some of the ints, such that t

Re: A "ClojureScript One" Question: Why is so much html created on the client side.

2012-08-11 Thread john
't mind waiting a second or two for new content on main "context switches". So maybe I can use a hybrid approach. I just am a little afraid of depending too much on cljs . Not because of the language but I still think that the server is so much more predictable than the browser. M

A "ClojureScript One" Question: Why is so much html created on the client side.

2012-08-10 Thread john
is Granger and Brento Ashworth to be web experts I would just like to know the disadvantages of having most html rendered on the server? Many Greetings John -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send emai

Re: [ldnclj] Re: 6 December 2012 - London - Clojure eXchange - Call for Presentations

2012-08-07 Thread John Stevenson
Hello Bruce, I have submitted a few ideas. If you need any help with organising the event, I'd be happy to help. Thanks | About | Blog | @JR0cket | Google+| LinkedIn

Re: School Seating Charts

2012-08-07 Thread John Gabriele
On Tuesday, August 7, 2012 12:24:34 AM UTC-4, Evan Mezeske wrote: > > > I could go on and on about the specifics of building out the website (and > maybe I will in a blog post sometime), > Nice work, Evan. Would love to read some blog posts about this. ---John -- Yo

Re: ANN lein-expectations 0.0.7

2012-08-06 Thread John Gabriele
b.com/technomancy/leiningen/wiki/Plugins ? I see a lein-autoexpect there, but no lein-expectations. ---John -- 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: Experiences developing a crowdfunding site for open source projects in Clojure (from a Python background)

2012-07-30 Thread John Gabriele
On Sunday, July 29, 2012 3:45:00 PM UTC-4, Aaron Lebo wrote: > Here's PEP 8 as an example of what I'm talking about: > http://www.python.org/dev/peps/pep-0008/ Perhaps this might be useful: http://dev.clojure.org/display/design/Library+Coding+Standards ---John -- You recei

Re: Experiences developing a crowdfunding site for open source projects in Clojure (from a Python background)

2012-07-29 Thread John Gabriele
e are some of my notes on using Clojure. I feel a little > embarrassed writing this up because I feel like someone will pick it to > death, {snip} Great post. Thanks for writing this up! ---John -- You received this message because you are subscribed to the Google Groups "Clojure

Re:

2012-07-29 Thread John Holland
Thanks! On Sun, Jul 29, 2012 at 9:22 AM, Moritz Ulrich wrote: > Also, take a look at `partition'. > > On Sun, Jul 29, 2012 at 3:19 PM, Mark Rathwell > wrote: > > In your has22 definition, (by-pairs [a]) should be (by-pairs a) > > > > On Sun, Jul 29, 201

[no subject]

2012-07-29 Thread John Holland
[1 2 2 2 ]))) true user> (has22 [1 2 2 2]) false John Holland -- 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 moderated - please be pati

Re: Looking for help with a deadlock issue

2012-07-28 Thread John Szakmeister
till present in _20 and _21. It's not all bad news though. It seems like a workaround is to use "-XX:+UseMembar". -John -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegr

Re: seesaw's beautiful docstrings

2012-07-27 Thread John Gabriele
ocstrings out into alter-metas at the bottom, or the reverse --- gather up alter-metas at the bottom and stitch them into their respective function defns, if that's your preference. I like it. Make your docstrings as long as they need to be (perhaps add some examples?). Even format them in mark

Re: is their a Clojure framework for handling form validation?

2012-07-27 Thread John Szakmeister
ouple the error messages from the > predicates that produce an error message. I can't imagine it being any > simpler... I had completely forgotten about that library! Thanks for the reminder! -John -- You received this message because you are subscribed to the Google Groups "Clojur

Re: how do I get primitive typ hints to appear in the output of a macro?

2012-07-18 Thread john
pand-1 '(aTest))] (meta b)) you should see {:tag long}. > > On Wednesday, July 18, 2012 7:55:31 AM UTC-4, john wrote: >> >> Hello, >> how do I get primitive typ hints to appear in the output of a macro? >> >> like : >> (defmacro aTest [] >

Re: how do I get primitive typ hints to appear in the output of a macro?

2012-07-18 Thread john
;b {:tag long})) '(meta b))) before (aFun 8) yields nil So I think the type hint are not on the param Am Mittwoch, 18. Juli 2012 14:18:21 UTC+2 schrieb Ambrose Bonnaire-Sergeant: > Hi John, > > The type hint ^long expands to ^{:tag long}. > > So something like this should do

how do I get primitive typ hints to appear in the output of a macro?

2012-07-18 Thread john
b)) but I wold like it to be : (defn aFun [^long b] (clojure.core/meta b)) Many greetings John -- 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 member

Re: How-to construct for example (.value record) with a macro

2012-07-16 Thread john
Thanks very much for the help ...even when it comes from Cologne (-: -- 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 moderated - please be patient with

How-to construct for example (.value record) with a macro

2012-07-16 Thread john
and-1 '(inline-first-method)) ;yields (. value aRecord) which does not work. I know I could use (keyword (first methods)) but for performance reasons I want to use the . operator on the record Many Greetings John -- You received this message because you are subscribed to the Google Group

Meaning of :inline in meta

2012-07-12 Thread john
line and maybe nary-inline many greetings john -- 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 moderated - please be patient with your first

Re: Clojure shell calls results inconsistent with actual shell calls.

2012-07-12 Thread John Szakmeister
indows. "env" will do it under Linux or Mac OS X. You can do: (print (sh/sh "env")) (print (sh/sh "set")) should work in Windows... but I don't run Windows, so I can't be certain. *sh-env* is a thread local binding, and can be used to customize the environm

Advice needed on primitive longs and trying to avoid autoboxing

2012-07-12 Thread john
Hello, I would like to avoid when possible the promotion from a primitve long to an Long Object. I have the following code: http://pastie.org/4242382 and am not sure if (Long) autoboxing is taking here place. In lines 24,28-30 I use "assoc" to replace a long in a defrecord. Since "assoc

Re: [ANN] ClojureC - A Clojure to C compiler - Work in Progress

2012-07-11 Thread John Szakmeister
iple threads, STM, agents, etc.? I've been debating on working on a native Clojure implementation for a while, and that was one of my goals... I'm interested if it's one of yours. Thanks! -John -- You received this message because you are subscribed to the Google Groups "Cl

Re: a newbie question

2012-07-04 Thread John Holland
Thanks everybody On Wed, Jul 4, 2012 at 2:16 PM, Tassilo Horn wrote: > John Holland writes: > > Hi John, > > > If I want to get the last n elements of a list or vector I am doing > > the following: > > > > (reverse (take n (reverse thelist))) > > >

a newbie question

2012-07-04 Thread John Holland
If I want to get the last n elements of a list or vector I am doing the following: (reverse (take n (reverse thelist))) Is there a better way to do this? I'm going through some basic coding exercises which were meant for Java but I'm finding them educational to get started with Clojure. -- Yo

Re: General subsequence function

2012-06-29 Thread John Holland
But elisp vectors can't be accessed like lists, try running "car" on one. On Thu, Jun 28, 2012 at 1:55 PM, Warren Lynn wrote: > Here is "another language" elisp: > > Anybody who use Emacs can do this: > > (subseq (make-vector 5 10) 2 4) => [10 10] > (subseq '(10 10 10 10 10) 2 4) => (10 10) > >

Re: {ANN} Project Docs and Examples ... at the Alcove

2012-06-25 Thread John Gabriele
jure-toolbox or #clojure (irc), get help choosing something else, and go back to Clojars to find it. So, rather than try to duplicate what github is already doing for us right now, I think it probably makes more sense to spend that time writing docs and also making sure users can find the rel

Re: {ANN} Project Docs and Examples ... at the Alcove

2012-06-25 Thread John Gabriele
On Jun 24, 11:32 pm, John Gabriele wrote: > > Opinions? Concerns? Wild praise? Searing complaints? General disinterest? > Hi all, Thanks to feeback --- both here and elsewhere. A handful of points are now clear: * It probably *is* too much trouble to ask folks to fork & send a

Re: {ANN} Project Docs and Examples ... at the Alcove

2012-06-25 Thread John Gabriele
On Jun 25, 2:36 am, Vinzent wrote: > > Honestly, what I'd really appreciate is a full-blown community site, kind > of mix between clojure-toolbox, clojuredocs and emacswiki. I like clojure-toolbox. It's categorization of projects is quite useful, IMO. -- You received this message because you ar

Re: {ANN} Project Docs and Examples ... at the Alcove

2012-06-24 Thread John Gabriele
thing to be said for having all the examples in one place --- one repo that anyone can grab and have the full collection. (Though, perhaps clojuredocs.org could support that too.) If clojuredocs.org were to be extended to support adding 3rd-party projects, would users prefer to put example code ther

Re: {ANN} Project Docs and Examples ... at the Alcove

2012-06-24 Thread John Gabriele
On Jun 25, 12:14 am, Michael Klishin wrote: > John Gabriele: > > > Opinions? Concerns? Wild praise? Searing complaints? General disinterest? > > This is a great initiative but so far it seems to focus only on the API > reference part of documentation. I'd think that au

{ANN} Project Docs and Examples ... at the Alcove

2012-06-24 Thread John Gabriele
es: * possible cooperation with clojuredocs.org? (ex. "www.clojuredocs.org/alcove/..." ?) * possible hosting elsewhere? Perhaps on a more clojure-specific domain? * perhaps switch to a more general github username instead of my own? Opinions? Concerns? Wild praise? Searing complaints? Gen

ann: Updated Brief Beginner's Guide to cover Lein 2 prev6 and OpenJDK 7

2012-06-21 Thread John Gabriele
Updated Brief Beginner's Guide to cover Leiningen 2.0.0-preview6 and OpenJDK 7: http://www.unexpected-vortices.com/clojure/brief-beginners-guide/ ---John -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send e

Update to downloads page?

2012-06-21 Thread John Gabriele
t don't know if Rich got it yet. Thanks, ---John -- 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 moderated - please be patient with your f

Re: A tutorial for how to setup your clojure development environment for: Emacs, Leiningen and Linux.

2012-06-21 Thread John Stevenson
I created a guide from my recent experience with Clojure + Leiningen2 + Emacs (on Linux and Mac OSX) that hopefully makes it very easy for developers to get a productive environment. http://clojure.jr0cket.co.uk/perfect-environment I would be willing to contribute any or all of this if its useful

Re: A tutorial for how to setup your clojure development environment for: Emacs, Leiningen and Linux.

2012-06-20 Thread John Gabriele
od at providing. I don't know what the attitude is toward links like that on the confluence wiki, but I hope they're welcomed. It's not so bad keeping links on wiki's up to date. Now keeping full docs coherent in wikis is another matter ... :) ---John -- You received this m

Re: A tutorial for how to setup your clojure development environment for: Emacs, Leiningen and Linux.

2012-06-14 Thread John Gabriele
* core docs should be a focused set of .md files that contributors work on by cloning, editing, and sending pull-requests. * wiki docs should be easy to contribute to and should encourage links to outside docs (though, include last-modified dates for those!). Users can sort out which extern

Re: Central screwup

2012-06-13 Thread John Szakmeister
e8afd24c907e5e7f268943957846b13d25, while maven-metadata.xml.sha1 claims 92472231000f7b66ebf43cb412c74b4ba3cd7277. -John -- 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 po

Re: Issues with installing clojure-mode on Mac in Emacs

2012-05-28 Thread john
HI Sam, just wondering what does https://github.com/aim-stuff/cmd-key-happy buy you since xterm2 allows you two switch cmd-key to alt-key? many greetings John On Monday, May 28, 2012 2:46:15 PM UTC+2, Sam Aaron wrote: > > Hi John, > > first of all, you probably should create y

Re: Issues with installing clojure-mode on Mac in Emacs

2012-05-28 Thread john
Hi Sam, I just tried "Emacs live". I'm running MAC OSX and emacs in a Terminal with the Option "use option as Meta" I have a German Keyboard Layout so I added this to init.el: (global-set-key "\M-4" '(lambda () (interactive) (insert "\\"))) (global-set-key "\M-5" '(lambda () (interactive) (ins

Re: Parallel doseq?

2012-05-24 Thread John Szakmeister
hich > is news to me :) I think you answered my question as well. Thanks for the nice explanation! -John -- 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 post

Re: Parallel doseq?

2012-05-24 Thread John Szakmeister
n that a little more Sean? I know of some issues with chunked sequences, but I expected this to work as well with the doall in there. Thanks! -John -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloj

Re: Unable to pass unboxed primitive to methods taking multiple numeric primitive types.

2012-05-24 Thread John Szakmeister
On Wed, May 23, 2012 at 7:58 PM, Cedric Greevey wrote: > (defn f [^java.awt.image.BufferedImage bi x] >  (.setSample (.getRaster bi) 0 0 0 (double x))) > # matching method found: setSample, compiling:(NO_SOURCE_PATH:1)> > > The only way I was able to find to fix this is > > (defn f [^java.awt.imag

Re: Extending core.logic (Datomic example)

2012-05-20 Thread john
please forgive me if I am wrong because I know so little about clojure,logic and datomic But you are using (d/datoms (db conn) :eavt) which seems to give you a sequence over all datoms of a database. In a large database this sequence would not fit in memory. So wouldn't it be better if you s

Re: Lexer and parser generator in Clojure

2012-05-19 Thread John Szakmeister
at Parsley: <https://github.com/cgrand/parsley> -John -- 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 moderated - please be patient

Re: Leiningen 2.0.0-preview4

2012-05-12 Thread John Gabriele
On May 12, 7:07 pm, John Gabriele wrote: Whoops. Typo: > > Another important reason for having a good default README.md template > specifically for libs is that, at some point, I'm guessing that > clojars.org will extract and render them as html, and it will be nice > if ther

Re: Leiningen 2.0.0-preview4

2012-05-12 Thread John Gabriele
On May 12, 4:41 pm, Phil Hagelberg wrote: > On Sat, May 12, 2012 at 11:06 AM, John Gabriele wrote: > > > By the way, I like that you can now pass extra args to `lein new` to > > create a project of a specific type (such as plugin). What do you > > think of add

Re: Leiningen 2.0.0-preview4

2012-05-12 Thread John Gabriele
a project of a specific type (such as plugin). What do you think of adding 2 more stock options: application and library? Thanks, ---John -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@go

Re: updated Brief Beginner's Guide

2012-05-08 Thread John Gabriele
On May 8, 12:39 pm, Tom Maynard wrote: >  On 5/7/2012 2:13 PM, John Gabriele wrote: > > [Brief Beginner's Guide] ... > Feedback welcome, of course. > > I think it's a fine piece of work: I started with downloading Lubuntu > 12.04, installed it (under Win7/64) in

Re: updated Brief Beginner's Guide

2012-05-08 Thread John Gabriele
On May 7, 4:47 pm, Phil Hagelberg wrote: > On Mon, May 7, 2012 at 12:13 PM, John Gabriele wrote: > > I updated the [Brief Beginner's > > Guide](http://www.unexpected-vortices.com/clojure/brief-beginners-guide/inde...). > > Some changes: > > This looks like a

updated Brief Beginner's Guide

2012-05-07 Thread John Gabriele
while working * removed chapter on creating libs (didn't really belong there anything, I think) * added chapter on generating docs via lein-marginalia * slightly nicer html rendering Feedback welcome, of course. Thanks, ---John -- You received this message because you are subscribed to

Re: Article on HTTP-based REPL

2012-05-04 Thread John Szakmeister
ou may find it interesting if you need to connect to deployed nodes > but can't open a new socket connection for whatever reason, such as > running on a provider like Heroku. Hope it's helpful. Nice write up Phil! -John -- You received this message because you are subscribed to

Re: simple script using Autodoc to generate a static docs site

2012-04-28 Thread John Gabriele
On Apr 28, 5:37 pm, "Jim.foobar" wrote: > > github says 404 this is not the page you are looking for > Weird. I double-checked the link, and it works. Is it still 404'ing for you? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

simple script using Autodoc to generate a static docs site

2012-04-28 Thread John Gabriele
ittle index file linking to the generated docs. It's located here: <https://github.com/uvtc/petit-lorange> (screenshot included) It's a bit crude, but seems to work fine. Let me know what you think. :) Thanks, ---John -- You received this message because you are subscribed to

Re: new with clojure, need help!

2012-04-26 Thread John Gabriele
hem... > any tutorial will do! thats... > p.s. im using windows and i need to learn how to operate it for a course in > "programing languge pricipals"... Hi omer, At <http://dev.clojure.org/display/doc/Home> there's links on the left under "Getting Started" tha

Re: lein-exec 0.2.0 – Scripting in Clojure

2012-04-24 Thread John Gabriele
ot;lein exec -p" in 0.2.0. Ah, thanks for the info. :) ---John -- 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 moderated - please be patie

Re: lein-exec 0.2.0 – Scripting in Clojure

2012-04-24 Thread John Gabriele
7. In lein-oneoff you specify all dependencies in the beginning using > #_(defdeps ..). In lein-exec you are free to pull in dependencies at > any point in the code. Note, the `#_` is optional. ---John -- You received this message because you are subscribed to the Google Groups "Cl

Re: Clojure cheatsheets with several flavors of tooltips

2012-04-23 Thread John Gabriele
ottom of that page called "Download other > versions" that leads to [2]: > > [2]http://jafingerhut.github.com Thanks so much for these, Andy! ---John -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, s

Re: lein-exec 0.2.0 – Scripting in Clojure

2012-04-23 Thread John Gabriele
27;ve been using lein-oneoff for this. What are the differences between lein-exec and lein-oneoff? Thanks, ---John -- 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 tha

Re: New release of Paredit mode for Vim with support for VimClojure repls and Map literals

2012-04-22 Thread John Szakmeister
seems to be version 0.9.6 here: <http://www.vim.org/scripts/script.php?script_id=3998> -John -- 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 me

Re: How Do I Install New Version Of Clojure?

2012-04-16 Thread John Gabriele
r instructions written up at http://www.unexpected-vortices.com/clojure/brief-beginners-guide/ that I hope folks find useful. They cover installation (or, rather, the notion that you let lein handle it for you). ---John -- You received this message because you are subscribed to the Google Groups

Re: New(er) Clojure cheatsheet hot off the presses

2012-03-27 Thread John Gabriele
ld prefer a darkish gray background rather than black. White text on black background is too high- contrast, IMO. ---John -- 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 th

Re: ANN: A Brief Beginner's Guide to Clojure

2012-03-19 Thread John Gabriele
On Mar 15, 12:21 pm, Phil Dobbin wrote: > > On 14/03/2012 18:24, John Gabriele wrote: > > > I wrote a [brief beginner's guide to Clojure][1] that might interest > > those who are brand new to Clojure. > >[snip] > > Thanks for this, John. You're welcome

Clojurescript One Errors

2012-03-18 Thread John Collins
I need help on how to do this compilation step as I suspect that could be the cause why all the namespaces are not being resolved properly. John -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

ANN: A Brief Beginner's Guide to Clojure

2012-03-15 Thread John Gabriele
uickly set up with and acclimated to the Clojure landscape so they can then begin working through other materials to learn the language itself." Thank you to the folks on #clojure (IRC) for feedback yesterday. ---John -- You received this message because you are subscribed to the Google

Re: how to restart Clojurescript One repl the right way?

2012-03-11 Thread John Collins
cljs-repl if you are still within the clojure repl. I think this situation can be remedied somehow if the server connection can be saved to a var so that a stop and start function can be called on it. John -- You received this message because you are subscribed to the Google Groups &

What Java classes/objects/methods do you find yourself most often using?

2012-03-06 Thread John Gabriele
While writing Clojure code, what Java classes, objects, and static methods do you most often find yourself using? -- 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 me

Re: Bret Victor's live editable game in ClojureScript

2012-02-27 Thread John Szakmeister
tion/ > > Enjoy! Nice! You rock! -John -- 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 moderated - please be patient with your firs

Re: Lack in the documentation

2012-02-22 Thread John Gabriele
nd/or blog posts that you think would be useful to others, please add them (creating category sections for them as needed). ---John -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.co

Re: "lein run" takes an excessive amount of time...

2012-02-18 Thread John Szakmeister
On Fri, Feb 17, 2012 at 5:50 AM, John Szakmeister wrote: > It appears that when executing 'lein run' that it's examining > dependencies and/or contacting Maven repositories.  This overhead is > adding a considerable amount of time to lein run.  Firing things up >

"lein run" takes an excessive amount of time...

2012-02-17 Thread John Szakmeister
one else seen this behavior? I'd rather 'lein run' just run and not do any checking of dependencies. Thanks for the help! -John -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@google

Re: No show?

2012-02-12 Thread John Szakmeister
omething new > every day! (and, lately, that's a new Clojure function every day...) That is amazing! Thanks for the tip Michał! -John -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@g

another noob recursion question

2011-12-01 Thread John Holland
In clojure, would this be possible? Wouldn't it produce a stack overflow with big enough input? Would there be a way to define it in terms of recur, loop, etc? Apologies if this is too obvious... John Holland -- You received this message because you are subscribed to the Google Groups &

Why no anonymous record types, or (defstruct, create-struct) vs (defrecord, ???)

2011-11-14 Thread John McDonald
Structmaps can be defined either named, thru the defstruct macro, or anonymously, thru the create-struct function call. Record types must be named and defined thru a call to defrecord. This seems to contradict one of the Clojure library coding standards (http://dev.clojure.org/display/design/Libr

Re: Please try the alphas and betas!

2011-11-04 Thread John Szakmeister
ete snapshot version (like > "1.4.0-master-20111025.230825-6") resolves directly to the artifact in > question, so the metadata isn't relevant. Thanks to all who responded! This is really good to know. -John -- You received this message because you are subscribed to the

Re: Please try the alphas and betas!

2011-11-02 Thread John Szakmeister
s [[org.clojure/clojure "1.4.0-master-SNAPSHOT"] ...] Is there a way to peg a particular snapshot? If we find that something breaks, we'd want to roll back to a previous version until the problem is fixed. It looks like the maven metadata only has the latest snapshot recorded (I m

Re: beginner question

2011-09-24 Thread John
To break down the update into multiple steps use the -> macro: =>(defn step [world-state]) (-> world-state update-health update-physics update-ai)) where e.g. update-health is something like =>(defn update-health [world-state] (update-in world-state [:player :

Re: http-client and ignoring ssl errors

2011-09-02 Thread John Newman
Maybe I should just build the SSL logic into http-client.core/request and have request instantiate a different DefaultHttpClient based on the value of :noauth in the request map? Will try when I get home. John On Thu, Sep 1, 2011 at 4:31 PM, John Newman wrote: > Hello All, > > I am

http-client and ignoring ssl errors

2011-09-01 Thread John Newman
g it by instantiating a new DefaultHttpClient? Should a new key for noauth be put in the parameters to core/request [{:keys [noauth... the cookies branch didn't do this, so I wasn't sure. Thanks in advance for the help. Hopefully, once this is figured out, it will be useful to o

ClojureScript source maps

2011-07-24 Thread John
Is there any interest in having ClojureScript generate source maps? http://code.google.com/p/closure-compiler/wiki/SourceMaps There are a couple of ways to accomplish this. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send

Re: Clojure now officially supported on Heroku

2011-07-07 Thread John Palgut
This gives me a reason to try Heroku! -- 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 moderated - please be patient with your first post. To unsubscrib

Re: How To Supply Multiple Values To Function In Map

2011-07-01 Thread John Palgut
map actually accepts any number of collections, as show in the official documentation. Your function passed to map just needs to accept parameters equal to the number of collections passed. So you could write something li

Re: Screencast: Clojure + Emacs + slime + swank + cake + Overtone

2011-06-17 Thread John Toohey
Excellent screencast. On Thu, Jun 16, 2011 at 11:16, Sam Aaron wrote: > Hi there, > > I just finished making a screencast primarily for new Overtone users on how > to get set up with Emacs as a primary editor: > > http://vimeo.com/25190186 > > It turns out that this should be pretty useful for C

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

2011-06-07 Thread John Toohey
I have a fully working AquaEmacs/Swank/Slime system under OSX. Can you tell me what you tried, and I may be able to help you. To start with, what is the content of you ~/.clojure directory? On Tue, Jun 7, 2011 at 18:00, Randy J. Ray wrote: > I am also having some big problems getting a working se

Re: swank-clojure/lein/emacs

2011-06-06 Thread John Toohey
I had this problem on OSX. To fix it, I removed the swank dependency from my project.clj file, then I ran lein deps to clear any old copies. Follow that with lein plugin install clojure-swank 1.3.1 and finally lein swank. On Sun, Jun 5, 2011 at 17:26, Bhinderwala, Shoeb wrote: > Yes it is 4005. B

Re: (just) emacs mode

2011-04-28 Thread John V
On Apr 28, 6:23 am, Phil Hagelberg wrote: > On Apr 27, 6:07 am, John V wrote: > > > So, I would include info about using -*- in > > the .clj file and how to modify the auto-mode-alist and enable or > > disable fontifying the buffer. > > This is the kind of thin

<    2   3   4   5   6   7   8   9   10   11   >