Re: first time without state - and I'm lost

2020-05-14 Thread J.-F. Rompre
Hi @Scaramaccai, If you are starting out, it's always best to keep things as bare as possible until you discover a better way. If as you say you can save the usr/pwd, and the decision to keep or replace the token is entirely left to the token provider, then I think something like the following

Re: first time without state - and I'm lost

2020-05-14 Thread J.-F. Rompre
Hi @Scaramaccai, If you are starting out, it's always best to keep things as bare as possible until you discover a better way. If as you say you can save the usr/pwd, and the decision to keep or replace the token is entirely left to the token provider, then I think something like the following

Re: first time without state - and I'm lost

2020-05-14 Thread J.-F. Rompre
Hi @Scaramaccai, If you are starting out, it's always best to keepthings as bare as possible until you discover a better way. If as you say you can save the usr/pwd, and the decision to keep or replace the token is entirely left to the token provider, then I think something like the following

Re: first time without state - and I'm lost

2020-05-14 Thread J.-F. Rompre
Hi @Scaramaccai, If you are starting out, it's always best to keepthings as bare as possible until you discover a better way. If as you say you can save the usr/pwd, and the decision to keep or replace the token is entirely left to the token provider, then I think something like the following

Re: first time without state - and I'm lost

2020-05-14 Thread J.-F. Rompre
Hi @Scaramacci, If you are starting out, it's always best to keep things as bare as possible until you discover a better way. If as you say you can save the usr/pwd, and the decision to keep or replace the token is entirely left to the token provider, then I think something like the following

Re: Confusing Regex Behavior

2018-12-04 Thread Randy J. Ray
ch > returns a lazy-seq of the matches of your regex in the string. > > On Tue, Dec 4, 2018 at 12:37 PM Randy J. Ray wrote: > >> Oh, that might be it. The newline at the end of the string might be what >> is throwing a wrench into things. Though, to be fair, when I used >

Re: Confusing Regex Behavior

2018-12-04 Thread Randy J. Ray
> match the _entire_ string. > > Andy > > [1] https://docs.oracle.com/javase/8/docs/api/java/util/regex/Matcher.html > > > > > On Tue, Dec 4, 2018 at 11:16 AM Randy J. Ray wrote: > >> I must be doing something wrong here, but I cannot figure this out. &g

Confusing Regex Behavior

2018-12-04 Thread Randy J. Ray
the backreferences: (re-find (re-matcher #"\[((\d+)-(\d+)-(\d+) (\d\d):(\d\d))\] (.*)" "[1518-05-27 00:42] falls asleep\n")) I've used re-matches many times, but this has me stumped. This is behaving this way on both 1.8.0 and 1.9.0. Randy -- Randy J. Ray - randy.j

Re: Confused by a bit of syntax-- Clojure(script) or Hiccup?

2018-11-21 Thread Randy J. Ray
is a valid Clojure keyword, but has no special meaning on its own. >> >> In Reagent's version of the Hiccup DSL, :> introduces a Reagent component >> defined from a React component >> >> https://github.com/reagent-project/reagent/blob/master/doc/InteropWithReact.

Re: Confused by a bit of syntax-- Clojure(script) or Hiccup?

2018-11-20 Thread Randy J. Ray
>> >> In Reagent's version of the Hiccup DSL, :> introduces a Reagent component >> defined from a React component >> >> https://github.com/reagent-project/reagent/blob/master/doc/InteropWithReact.md#creating-reagent-components-from-react-components >> >> O

Confused by a bit of syntax-- Clojure(script) or Hiccup?

2018-11-20 Thread Randy J. Ray
element in vectors in a context that leads me to think it's part of Hiccup. But I'm expecting keywords like ":div", ":p", etc. The ":>" sequence, I guess I'm just not quite getting it? Randy -- Randy J. Ray - randy.j@gmail.com - twitter.com/rjray S

Re: Order of preds in clojure.spec/alt

2018-08-03 Thread J
> Sean Corfield -- (970) FOR-SEAN -- (904) 302-SEAN > An Architect's View -- http://corfield.org/ > > "If you're not annoying somebody, you're not really alive." > -- Margaret Atwood > > > -- > *From:* clo...@googlegro

Order of preds in clojure.spec/alt

2018-08-02 Thread J
ed and not the (spec/* identitiy). Is this behavior correct? Thanks J -- 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

Best Practices for Accessing Data Files That May Be Bundled?

2018-02-06 Thread Randy J. Ray
s a single input, and return a string as a result (I have result-files in the same dirs as the input files, for comparison. I just need to be able to iterate over the forms to test, and the test-cases for each form. (I say "I just need", but I'll probably be back with more

Re: core.async consumer + producer working by chunk?

2018-01-06 Thread Brian J. Rubinton
https://dev.clojure.org/jira/browse/ASYNC-210 <https://dev.clojure.org/jira/browse/ASYNC-210> > On Jan 6, 2018, at 12:11 PM, Brian J. Rubinton > wrote: > > Thanks! I will. Just signed the CA. > > > On Sat, Jan 6, 2018, 12:10 PM Alex Miller <mailto:a...@pure

Re: core.async consumer + producer working by chunk?

2018-01-06 Thread Brian J. Rubinton
Thanks! I will. Just signed the CA. On Sat, Jan 6, 2018, 12:10 PM Alex Miller wrote: > > > On Saturday, January 6, 2018 at 10:56:06 AM UTC-6, Brian J. Rubinton wrote: >> >> Alex - it makes sense to me that the buffer temporarily expands beyond >> its normal s

Re: core.async consumer + producer working by chunk?

2018-01-06 Thread Brian J. Rubinton
Typo — I meant to say the channel executes puts during a take! even though the buffer is full before executing the puts. This is clearer in code (please see the gist). > On Jan 6, 2018, at 11:55 AM, Brian J. Rubinton > wrote: > > Alex - it makes sense to me that the buffer

Re: core.async consumer + producer working by chunk?

2018-01-06 Thread Brian J. Rubinton
annel? > > I will do that. My current producer is doing too many other things, but if I > break it up into separate threads or go blocks for each work queue, then that > should work. Thank you. > > > On Saturday, January 6, 2018 at 8:22:34 AM UTC-5, Brian J. Rubinton wrote

Re: core.async consumer + producer working by chunk?

2018-01-06 Thread Brian J. Rubinton
Rob - I’d go with Gary's approach, which essentially moves the splitting up of the chunk of results from the core.async channel’s transducer to the producing function. You can do that using a channel with a fixed buffer of 50 and >!!. As long as the next db query is blocked until each of the res

Re: core.async consumer + producer working by chunk?

2018-01-05 Thread Brian J. Rubinton
I don’t know; I don’t fully understand the implementation differences of >!! and offer!. The behavior of offer! makes me think the buffer is not empty until all the outputs of the transducer are consumed, but the behavior of >!! makes me think otherwise. Moritz - is the buffer cleared if: - it’

Re: core.async consumer + producer working by chunk?

2018-01-05 Thread Brian J. Rubinton
; ( ( (offer! work-queue (range 50)) nil user> (dotimes [_ 48] ( (offer! work-queue (range 50)) true user> ( On Jan 5, 2018, at 2:10 PM, Rob Nikander wrote: > > > > On Friday, January 5, 2018 at 2:03:00 PM UTC-5, Brian J. Rubinton wrote: > > What is the buffered channel’s

Re: core.async consumer + producer working by chunk?

2018-01-05 Thread Brian J. Rubinton
Hi Rob, What is the buffered channel’s buffer used for? If that’s set to 1 and the channel’s transducer is `(mapcat identity)` then the producer should be able to continuously put chunks of work onto the channel with the puts only completing when the previous chunk is completely consumed. That

Re: Call custom Clojure function with dependencies from Java

2017-12-29 Thread Pablo J. Villacorta
Looks like statement-checker is for objects, not for strings? I have a minimal working example here: https://github.com/olbapjose/xapi-clojure Regards and happy new year! El martes, 26 de diciembre de 2017, 17:37:54 (UTC+1), Gary Verhaegen escribió: > > On 26 December 2017 at 14:54,

Re: Call custom Clojure function with dependencies from Java

2017-12-26 Thread Pablo J. Villacorta
utomatically as long as all the namespace files can > be found on the classpath. > > I suspect that what you showed here is not the full error output, it seems > to be missing the information we would need to know what actually went > wrong here. > > On Sun, Dec 24, 2017 at

Call custom Clojure function with dependencies from Java

2017-12-24 Thread Pablo J. Villacorta
Hi all, I am totally new to Clojure. From Java I am trying to call a Clojure function which belongs to a wider project and has dependencies. I have compiled the Clojure project to an uber jar running lein uberjar, the imported the jar into my Java project, and then did IFn require = Clojure.va

Re: New to Clojure - productivity and debugging with Emacs

2017-01-09 Thread J.-F. Rompre
Hi ahawk, If you have the time, by all means reach for all the references and books mentioned in this thread, and there is a wealth of free resources out there. However doing both that and learning a powerful tool such as Emacs/CIDER at the same time can be frustrating. If time is of the essenc

Re: clojure.spec.test/instrument causes clojure.spec/exercise-fn to use generators which fail the args spec!?

2016-10-20 Thread J.-F. Rompre
Ah, I missed thatthank you very much! -- 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 unsubs

clojure.spec.test/instrument causes clojure.spec/exercise-fn to use generators which fail the args spec!?

2016-10-19 Thread J.-F. Rompre
I am trying to learn clojure.spec and tried my hand at a spec for a fizzbuzz function. For some strange reason, generators created for it fail the same spec during clojure.spec/exercise-fn ! Stranger, this happens only if the same function is first instrumented using clojure.spec.stest/instrum

Re: Recur in an overloaded function does not work?

2016-04-20 Thread J.-F. Rompre
returning a new function for trampoline to call, avoiding a new stack >> frame. It seems to me no different than simply calling the other arities >> directly in this example. What am I missing? >> >> On Wednesday, April 20, 2016 at 12:00:35 PM UTC-5, J.-F. Rompre wrote: >

Re: Recur in an overloaded function does not work?

2016-04-20 Thread J.-F. Rompre
You can prevent stack consumption by using trampoline for tail-recursive calls to a different arity, and recur for same arity, something like: (defn find-comment-in-line ([s] (when (pos? (count s)) (if-let [cs (seq (comment-s? s))] ;; yes, a comment symbol found, ;; j

Re: Recur in an overloaded function does not work?

2016-04-20 Thread J.-F. Rompre
You can prevent stack consumption by using trampoline for tail-recursive calls to a different arity, and recur for same arity, something like: (defn find-comment-in-line ([s] (when (pos? (count s)) (if-let [cs (seq (comment-s? s))] ;; yes, a comment symbol found, ;; j

Possible bug in clojure.set/union?

2016-03-04 Thread Randy J. Ray
7;t know that would affect the output. I did try putting a list as the first parameter, and that results in a list return value all the time. Is this a bug? Should I file a GitHub issue on this? I first encountered this in 1.7.0, but I recently updated to 1.8.0 and it is still present. Randy -- Randy

Re: Beginning Clojure Development

2015-09-11 Thread J.-F. Rompre
I try to get my hands on as many resources from the above as possible. I often found some (generally more advanced) works not to dwelve enough into some intricate, but essential, topics which were better covered in other resources. Also, the toolset evolves quickly so online resources are indis

:bootclasspath causes java.lang.NullPointerException

2015-09-02 Thread J . Pablo Fernández
Hello, I'm trying to compile my project with :bootclasspath set to true, so as to have the jar for a java agent added to my classpath, but in one of my projects it's generating java.lang.NullPointerException on this line: (def app (middleware/wrap-base #'app-base)) which is preceded by: (defr

Re: Reviewers needed for new Clojure book!

2015-08-26 Thread J.-F. Rompre
I am interested too if not too late... Thanks -- 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 un

Re: Using a dynamic var for my database connection for implicit connections+transactions

2015-08-06 Thread J . Pablo Fernández
On 5 August 2015 at 19:33, James Reeves wrote: > So when you're testing, presumably you use a dynamic binding to override > the global connection to the test database? > The wrap transaction always overrides the dynamic binding, whether it's in tests or not. -- J. Pab

Re: Using a dynamic var for my database connection for implicit connections+transactions

2015-08-04 Thread J . Pablo Fernández
a dynamic var to track connections is consistent across the code-base. -- J. Pablo Fernández (http://pupeno.com) -- 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: Using a dynamic var for my database connection for implicit connections+transactions

2015-08-03 Thread J . Pablo Fernández
https://github.com/luminus-framework/conman You are still in control of the connection so you can do other things with it and have more than one if necessary. On 31 July 2015 at 01:44, J. Pablo Fernández wrote: > Hello Clojurians, > > I found passing around the database connection to each func

Re: Using a dynamic var for my database connection for implicit connections+transactions

2015-08-03 Thread J . Pablo Fernández
que manner if it is > touched? > > > R. > > > > > On 31 Jul 2015, at 01:54, J. Pablo Fernández wrote: > > Hello James, > > Thanks for your answer. I do understand your point. Pure functions are > easier to reason about and my use of dynamic here break

Re: Using a dynamic var for my database connection for implicit connections+transactions

2015-08-03 Thread J . Pablo Fernández
that deals with the database" and yes, you can do that, but it still is 90% of the code. On 3 August 2015 at 06:00, James Gatannah wrote: > > > On Thursday, July 30, 2015 at 7:44:31 PM UTC-5, J. Pablo Fernández wrote: >> >> Hello Clojurians, >> >> I fou

Re: Using a dynamic var for my database connection for implicit connections+transactions

2015-07-31 Thread J . Pablo Fernández
On Friday, 31 July 2015 11:48:54 UTC+1, Colin Yates wrote: > > I am away from the code at the moment, but is there any reason why the > dynamic connection can’t be private? This goes some way to providing safety. > No, I don't think there's a problem with it being private, I just didn't think

Re: Using a dynamic var for my database connection for implicit connections+transactions

2015-07-31 Thread J . Pablo Fernández
because the language is not protecting me from shooting myself in the foot with it). Does it make sense? On 31 July 2015 at 03:16, James Reeves wrote: > On 31 July 2015 at 01:44, J. Pablo Fernández wrote: >> >> I found passing around the database connection to each fun

Using a dynamic var for my database connection for implicit connections+transactions

2015-07-30 Thread J . Pablo Fernández
Hello Clojurians, I found passing around the database connection to each function that uses it very error prone when you are using transactions as passing the wrong one could mean a query runs outside the transaction when in the source code it is inside the with-db-transaction function. So I en

Re: (flatten non-sequential) has a surprising result

2015-07-02 Thread J . Pablo Fernández
> > (defn flatten1 [x] (filter (complement sequential?) (tree-seq sequential? > seq x))) > > > > > Il giorno mercoledì 1 luglio 2015 13:55:28 UTC+2, J. Pablo Fernández ha > scritto: >> >> Hello Clojurists, >> >> Today I was surprised by the result

Re: (flatten non-sequential) has a surprising result

2015-07-01 Thread J . Pablo Fernández
I agree with you Mikera, it also maintains the homogeneity of always returning a sequence but some people disagreed with it, so an error might be better. -- J. Pablo Fernández http://pupeno.com On Jul 1, 2015 4:22 PM, "Mikera" wrote: > On Wednesday, 1 July 2015 12:55:28 UT

(flatten non-sequential) has a surprising result

2015-07-01 Thread J . Pablo Fernández
Hello Clojurists, Today I was surprised by the result of (flatten 1) which is '(). I was expecting '(1) or an error. Talking in some other people in #clojure @ clojurians.net, not everybody agrees that '(1) is a good result but that '() is somewhat surprising. Would it be better if it raised an

Re: Actually using component.

2015-06-08 Thread J Irving
Hey Dru Take a look at Duct: https://github.com/weavejester/duct If you make a new app using that template, you should get some pointers from the boilerplate it generates. cheers, Jonathan On Mon, Jun 8, 2015 at 5:51 PM, Dru Sellers wrote: > So, I guess I am a bit lost, how does someone actual

Re: CIDER 0.8.2 released!

2014-12-22 Thread J Irving
Thanks Bozhidar, for the A+ tools and frequent updates. I use the fruits of your labour daily, and your absurd pace of development more than satisfies my pathological need to constantly upgrade. (I would also observe that most appreciation is silent, unlike the other thing :)) On Mon, Dec 22, 201

Re: Clojure Style Guide

2014-12-20 Thread J Irving
It's not a docstring then, just the first expression in the body. On Sat, Dec 20, 2014 at 12:05 PM, Ashton Kemerling < ashtonkemerl...@gmail.com> wrote: > > You can put the docstring after the args, but the tooling won't pick it > up. > > --Ashton > > Sent from my iPhone > > On Dec 20, 2014, at 10

Re: Print broken in Cider 0.7.0 - Ring - Compojure

2014-10-29 Thread J Irving
are. cheers, J On Wed, Oct 29, 2014 at 8:40 AM, Steve Shogren wrote: > I cannot seem to see the results of "println", "print", or > "clojure.tools.trace/trace" when running my site, per my setup here: > http://stackoverflow.com/questions/22365741/missing

Re: CCW bug [SEVERE]

2014-10-28 Thread J Irving
*plonk* On Tue, Oct 28, 2014 at 4:28 PM, Fluid Dynamics wrote: > On Tuesday, October 28, 2014 12:19:29 PM UTC-4, Marcus Blankenship wrote: >> >> Agreed. I've been amazed at how kind this group has been, despite your >> attitude of disrespect toward them. >> >> On Tue, Oct 28, 2014 at 9:09 AM, D

Re: {ANN} defun: A beautiful macro to define clojure functions with pattern match.

2014-09-23 Thread J David Eisenberg
On Saturday, September 13, 2014 11:47:28 PM UTC-7, dennis wrote: > > > Hi , i am pleased to introduce defun : > a beautiful macro to define clojure functions with pattern match. > > [snip] > This is totally wonderful. Elegant, and useful. -- You received

Clojure beginner: angst about "doing things right"

2014-09-22 Thread J David Eisenberg
As part of a larger program, I'm testing a function that will turn a string of days on which a class occurs (such as "MWF") into a list of seven numbers: (1 0 1 0 1 0 0). I first translate"TH" (Thursday) to "R" and "SU" (Sunday) to "N" to make things a bit easier. I came up with the following c

Re: Useless Java error messages

2014-09-04 Thread J David Eisenberg
On Tuesday, September 2, 2014 5:13:49 PM UTC-7, Beau Fabry wrote: > > apologies, not a leiningen plugin. https://github.com/AvisoNovate/pretty > Thank you. This looks most interesting. I was able to find clj-pretty-error on Clojars; github is https://github.com/liquidz/clj-pretty-error, but it

Re: [ANN] Quil 2.1.0 released

2014-06-28 Thread J David Eisenberg
On Friday, June 13, 2014 12:48:34 PM UTC-7, Nikita Beloglazov wrote: > > Friday the 13th and a full moon is ideal time for a release! > > Happy to announce release of Quil 2.1.0. It is available on clojars: > https://clojars.org/quil > > Here is the list of changes: > >- Middleware

Re: Is it the right Clojure group for a newbie

2014-06-21 Thread J Irving
+1 Throw them a bone. This is a great book. It's like Richard Bach for computer science. Sorta. This is the book I took with me to help me nurse my mother thru her final days. And I mean that as an uplifting story heh. Definitely worth your cash. Cheers, J On Friday, June 20, 2014, Jeff

Re: How to unit test (defn-) functions?

2014-06-12 Thread J Irving
Hey Timothy So I honestly don't mean to be a smart ass, but there are 6 defn- functions in clojure.core.async - how do you test those? Or are they just considered internals to other public functions? cheers, J On Thu, Jun 12, 2014 at 10:33 AM, Timothy Baldridge wrote: > I say this

Re: Eval-ing a map expression in Emacs Live doesn't seem to work

2014-06-07 Thread J Irving
th clojure) for my own config, when not using Emacs Live. There was some discussion here a while ago about LightTable's in-buffer eval output, which Emacs can't quite do as nicely yet. These seemingly small and superficial features can make a huge difference to flow. cheers, J -- You

Re: Eval-ing a map expression in Emacs Live doesn't seem to work

2014-06-06 Thread J Irving
buffer are you hitting C-x C-e from? cheers, J On Thu, Jun 5, 2014 at 1:14 PM, gvim wrote: > On 05/06/2014 00:57, J Irving wrote: > >> Your cursor was probably on the closing paren at the end - you eval'd >> the previous expression, which was the vector. >> >

Re: Eval-ing a map expression in Emacs Live doesn't seem to work

2014-06-04 Thread J Irving
Your cursor was probably on the closing paren at the end - you eval'd the previous expression, which was the vector. Check out the key bindings here: https://github.com/clojure-emacs/cider#cider-mode If your cursor is anywhere on that expression, you probably want C-c C-c. On Wed, Jun 4, 2014

Re: More functional Quil

2014-03-19 Thread J . Pablo Fernández
> I think this parameters should be explicitly passed to the function. > > What do you think? > > Nikita > > On Sunday, March 9, 2014 1:21:58 PM UTC, J. Pablo Fernández wrote: >> >> >> >> On Sunday, March 9, 2014 1:02:52 PM UTC, Laurent PETIT wrote: &

Re: More functional Quil

2014-03-09 Thread J . Pablo Fernández
On Sunday, March 9, 2014 1:02:52 PM UTC, Laurent PETIT wrote: > > Hello, > > To be honest I don't see any fundamental difference between your first > attempt and the improvement: both share the fact that the mutation of the > state happens within the draw function. So in both cases, you have a

More functional Quil

2014-03-09 Thread J . Pablo Fernández
Hello Clojurians, I'm starting to play with Processing and I want to use my favorite programming language for it, so I started using Quil. The problem is that Processing has a imperative architecture and makes my Clojure code look bad. For those that don't know Pr

Is The Joy if Clojure up to date?

2013-11-30 Thread J . Pablo Fernández
Hello, I have a copy of The Joy of Clojure that I bought a couple of years ago. Is it still a good way to learn Clojure or is it out of date? Thanks. -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@g

Re: Do web apps need Clojure?

2013-11-14 Thread J Irving
languages, tools, admin interfaces, is a requirement for you, which it isn't for me. I'm not really that interested in admin interfaces at all for example. So I'll respectfully disagree and look out for some suggestions from people who have made this work. Also, remember that I alr

Re: Do web apps need Clojure?

2013-11-14 Thread J Irving
not clojure here, but I see a lot of parallels between the approaches taken in clojure and node webapps. They're more similar to me than either of them are to rails or django, for example. Nonetheless, sorry if this feels off topic. cheers, J -- -- You received this message because you are s

Re: Do web apps need Clojure?

2013-11-14 Thread J Irving
early defined interfaces, and never share a database. Maybe that's the way to deal with this - decompose a system until data model management is trivial for any given component. I'm interested to know what strategies people use for this, and what tooling (if any) is useful. cheers, J --

Re: [ANN] mod-lang-clojure for Vert.x 0.2.0 released

2013-10-08 Thread Hans-J. Schmid
ojure with repl in lein, But i have not yet enough time to make a plugin to wrap vert.x's clojure as a module in lein.") But so far the adapter is very usable for me now. Thanks for your support. Hans-J. On Tuesday, October 8, 2013 4:34:04 PM UTC+2, Toby Crawley wrote: > > Hans-J

Re: [ANN] mod-lang-clojure for Vert.x 0.2.0 released

2013-10-05 Thread Hans-J. Schmid
Hi Toby, would it be possible to have the ring-vertx-adapter as a jar that we can include as a dependency in our Clojure projects? Couldn't find anything on Clojars or Maven and the sample code uses embedded vertx. Kind regards, Hans-J. On Wednesday, September 18, 2013 1:49:38 PM UTC+2,

Re: Gensym collisions can be engineered.

2013-08-17 Thread J.-F. Rompre
Interesting discussion - I was pretty surprised to see this can happen I don't understand all the details about the solutions discussed in this thread, but it seems that the only way to ensure no local can be clobbered, gensym'ed or not, is to introduce into the RT a "local resolution phase"

REPL sessions crash Windows

2013-08-06 Thread Steve J
I am new to Clojure programming and have been running REPL sessions from the Command Prompt. At some unpredictable time, either during the session or after it is ended, Windows will crash (the computer not responding and with a frozen pattern on the screen). I have tried several things, such as

Re: ANN: Clojure 1.5

2013-03-01 Thread J . J . Ezechiëls
Are you using any special libs? I just tried to reproduce your problem by upgrading a relatively simple project to clojure 1.5 and got no problems. Best regards, Joey Ezechiëls On Fri, Mar 1, 2013 at 7:45 PM, Tassilo Horn wrote: > Joey Ezechiëls writes: > > Hi Joey, > > > Hi Tassilo, are you

Re: Closure Accordion Widget

2012-11-24 Thread J Elaych
t you're saying. Jquery has an accordion widget while closure does not. :) J > > Jonathan > > > On Sat, Nov 24, 2012 at 7:20 PM, J Elaych > > wrote: > >> So I guess that means using jayq. Is that the new consensus on using >> clojurescript for guis? I

Re: Closure Accordion Widget

2012-11-24 Thread J Elaych
So I guess that means using jayq. Is that the new consensus on using clojurescript for guis? I see lots of discussion on closure vs jquery in clojurescript but it is hard to tell what is going to be the standard. -- You received this message because you are subscribed to the Google Groups "Cl

Closure Accordion Widget

2012-11-21 Thread J Elaych
I'm designing a web interface that I hope to implement in Clojurescript. I've been looking at the underlying Closure framework to make sure I have all the functionality I need, and I'm not finding any examples of an Accordion widget, like the one available in Jquery-ui. So if Google doesn't

Clojurescript One getting started problem

2012-05-09 Thread J Elaych
I'm trying to work through the Clojurescript One "Getting Started" wiki page example found here: https://github.com/brentonashworth/one/wiki/Getting-started, but after running "lein repl" and entering (go), I get the Clojurescript One pages fine, including the development page, but then I lose th

Re: New Version of ClojureScript One

2012-01-28 Thread Michael J. Forster
On Jan 27, 12:05 pm, Christofer Jennings wrote: > I get the error below when I run ClojureScript One's 'lein bootsrap'. Any > ideas? > > I'm pretty new to Clojure. This is my first time using Leiningen and first > attempt at using ClojureScript. ... pretty hopeless :-) Hi Christofer, No need t

Re: ANN: Autodoc 0.9.0 (Finally!)

2012-01-08 Thread Gordon J Miller
To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- Gordon J Miller Oakwood Controls, Corp gmil...@oakwoodcontrols.com gordon.j.miller@mail.mil 571-989-1692

Re: Spread work onto multiple threads (in pure Clojure)

2011-10-12 Thread j-g-faustus
ctual number of active > Java Threads could be kept reasonably low (e.g. maybe 2 times the number of > physical CPU cores), whereas the number of parallel tasks the work is > divided into could be limited only by memory for storing the tasks scheduled > for future execution. >

Re: Spread work onto multiple threads (in pure Clojure)

2011-10-11 Thread j-g-faustus
On Tuesday, October 11, 2011 3:55:09 AM UTC+2, Lee wrote: > > > Does your pmap-pool permit nesting? (That is, does it permit passing > pmap-pool a function which itself calls pmap-pool?). If so then that would > be a reason to prefer it over my pmapall. > I expect it would be possible to nest it

Re: Spread work onto multiple threads (in pure Clojure)

2011-10-10 Thread j-g-faustus
I made an alternative implementation using a thread pool and a queue, based on the example at http://clojure.org/concurrent_programming In short, your pmapall and the pool-based implementation (below) both give approximately perfect scaling on my 4/8-core system (Intel i7 920 and HT). Both giv

New Clojure Brush for Alex Gorbatchev's SyntaxHighlighter

2011-09-27 Thread J . Pablo Fernández
Hello, I took Travis Whitton's brush for Clojure[1] for Alex Gorbatchev's SyntaxHighlighter[2] and put it in a git repo in GitHub, with an index file to easy development and trying it out. I also fixed some bugs and did some improvements. The new code is here: https://github.com/pupeno/clojure

Re: Errors in Clojure

2011-08-19 Thread J . Pablo Fernández
Petr, I do not care about this particular error, but about how to deal with this one liners. Ambrose's reply is what I needed, and no, it's not PostgreSQL problem. It's a library trying to establish a connection when it shouldn't with credentials that should never be used because I never specif

Errors in Clojure

2011-08-19 Thread J . Pablo Fernández
Hello Clojurians, I'm struggling to work with errors in Clojure. This is one example, one case, but I had many like these before: user=> (load-file "/Users/pupeno/Projects/mgr/src/lobos/migrations.clj") org.postgresql.util.PSQLException: FATAL: role "lobos" does not exist (config.clj:1) It jus

Re: REPL and Leiningen checkouts

2011-08-18 Thread J . Pablo Fernández
Thanks for the reply Chas. Does that mean that I have to create a Java project inside IntelliJ, instead of just opening the directory containing a Clojure/Lein project? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send emai

Re: REPL and Leiningen checkouts

2011-08-18 Thread J . Pablo Fernández
I'm currently using La Clojure. Not sure if I can directly hook it to lein. -- 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 patien

REPL and Leiningen checkouts

2011-08-18 Thread J . Pablo Fernández
Hello, I want to play around with a library I'm using so I started using the Leiningen checkouts feature and if I do lein repl it works. But when I'm running the REPL inside my editor I'm not running it through lein. Any ideas how to get my REPL to pick up checkouts like when I run it with lein

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

2011-06-08 Thread Randy J. Ray
jure directory? > > On Tue, Jun 7, 2011 at 18:00, Randy J. Ray wrote: > > I am also having some big problems getting a working set-up under MacOS. > I > > can't really start with the emacs-starters-kit, as I have a very large > > existing configuration. And Aquamacs does

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

2011-06-07 Thread Randy J. Ray
so much pain? >> > >> > Thanks, >> > Dmitri >> >> -- >> 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

Re: using records in Java

2011-03-04 Thread Earl J. Wagner
e: > > > On Thu Mar  3 13:48 2011, Aaron Cohen wrote: > > > On Wed, Mar 2, 2011 at 11:38 PM, Earl J. Wagner < > > dont.spam.e...@gmail.com>wrote: > > > Well, t.core exists because in his ns declaration he included > > :gen-class.  Now, this isn

using records in Java

2011-03-03 Thread Earl J. Wagner
Hi all, I'm running into a problem with Java code using records defined in Clojure (1.2.0) code. Here's the Clojure code: (ns t.core (:gen-class)) (defrecord TRecord [a b c]) (compile 't.core) I run Lein (1.3) to compile this and generate a jar file. Inside the jar file I see an entry for the

Re: Clojure Quizzes?

2011-01-16 Thread Randy J. Ray
op's problems to help myself in learning Clojure... Randy -- """"""""""""""""""""""""""""""""""""

Re: Having trouble with "reader.tasklist" class from Programming Clojure

2011-01-04 Thread Randy J. Ray
lass to start compiling it, it just isn't finding it when it references itself). The paths to clojure.jar and clojure-contrib.jar are the 1.2.0 distribution jars, stock downloads from clojure.org. And with that REPL, it reported the error. Randy -- """""&q

Having trouble with "reader.tasklist" class from Programming Clojure

2011-01-04 Thread Randy J. Ray
r jline.ConsoleRunner clojure.main Everything up to now has run fine from within the REPL, this is the first time I've tried compiling a class. I get the same error if I try C-c C-k from a SLIME-enabled buffer in Emacs, as well. Any suggestions? Randy -- """""

Re: clojure.contrib.sql and duplicate inserts

2010-09-21 Thread Bart J
I wanted to use insert-values to re-insert the same values to the table again. I think using "update-or-insert-values" suffices. Thanks. On Sep 20, 6:29 pm, "Stephen C. Gilardi" wrote: > On Sep 20, 2010, at 8:27 AM, Bart J wrote: > > > Currently, it is not p

clojure.contrib.sql and duplicate inserts

2010-09-20 Thread Bart J
Currently, it is not possible to insert duplicate rows using the clojure.contrib.sql module (specifically, the insert-values method). Please let me know, if I can add this. Thanks. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this grou

Re: practical clojure

2010-09-19 Thread David J
:23 pm, David J wrote: > > > I second faenvie's request for "applications of Clojure" books, > > especially on AI. AI is the reason I started looking at a Lisp in the > > first place. I'd also like to see Clojure become *the* language for > > statist

Re: practical clojure

2010-09-17 Thread David J
I second faenvie's request for "applications of Clojure" books, especially on AI. AI is the reason I started looking at a Lisp in the first place. I'd also like to see Clojure become *the* language for statistics, though I understand that R statisticians aren't so fond of Lisps. I just bought Prac

Re: why the def of run-jetty looks like "defn #^Server run-jetty"

2010-08-09 Thread j-g-faustus
On Aug 9, 8:25 am, limux wrote: > what's the meaning of > #^Server in the defn and let? > (defn #^Server run-jetty ... >   (let [#^Server s (create-server (dissoc options :configurator))] It's a type hint. In the defn it specifies the type of the return value, in the let it gives the type of the

Re: System calls

2010-08-07 Thread j-g-faustus
On Aug 7, 4:46 pm, Dave wrote: >   (execute (str "/../pdb_to_xyzr " pdb-file " > /.."))) > > Here it seemed to run (the above error isn't shown) but nothing > happened and the REPL become unresponsive again.   I think the issue is that Runtime.exec doesn't start a shell, just a subprocess, so thi

  1   2   3   4   >