Re: Switch devops environments via namespaces

2023-05-18 Thread Joe R . Smith
I mean, it works, it’s clever, … is it more or less “safe” is my question.  On May 18, 2023, at 12:02 PM, Felix Dorner wrote:  Clojure noob here, I might be totally off the track or committing crimes, so please advise. For ops, I have to often call rest services in different environments, sa

Re: clojure is supposed to be 'code is data' yet I can't add to the end of a list?

2021-07-18 Thread Joe R . Smith
inked list, adding an item to the front is as simple as creating a new list that points to the old list. E.g., adding 5 to the linked list 2 -> 3 -> 4 can be thought of as 5 -> 2 -> 3 -> 4. --- Joe R. Smith j...@uwcreations.com <mailto:j...@uwcreations.com> @solussd On

Re: [ANN] Discontinuing 4clojure.com

2021-07-12 Thread Brandon R
Thank you Alan for all the work and time put into 4clojure, and thank those of you who've started and contributed to 4ever-clojure! Cheers, Brandon On Sun, Jul 11, 2021 at 2:38 PM Alan Malloy wrote: > I've also exported the problem data: > https://drive.google.com/file/d/1hHrygxAs5Do8FpHC9kphYn

Re: Routing for a non-web-app

2021-04-21 Thread Brandon R
Bidi probably would work fine for what you want, but I'll also second the reitit suggestion. On Wed, Apr 21, 2021 at 4:54 PM Harold wrote: > >> ...is intended for use with Ring middleware, HTTP servers... > > > > sorta made me think it wouldn't work in a non-web app. > > > > Understood. > > One

Re: Without breakloop not much of a REPL

2021-01-29 Thread Brandon R
This may be the talk I was thinking of: https://vimeo.com/223309989 On Fri, Jan 29, 2021 at 10:04 AM Brandon R wrote: > I believe what's described in that post is possible in Clojure, at least > to an extent. I can't remember where I saw it described, but I think it was &g

Re: Without breakloop not much of a REPL

2021-01-29 Thread Brandon R
I believe what's described in that post is possible in Clojure, at least to an extent. I can't remember where I saw it described, but I think it was a talk by Stuart Halloway. IIRC you can configure Clojure to run clojure.main/repl when an exception is thrown, this puts you into a new sub repl with

Re: Adding value to the map in sql statement dynamically

2020-12-20 Thread Brandon R
Hey Ganesh, Just to add to the above information, you may want to check out next.jdbc as well. If you specifically want to create functions that return complete SQL, then maybe this isn't what you want, but I just wanted to point out parameterization in next.jdbc since you mentioned you're new to

Re: Idiomatic program for someone new to Clojure

2020-12-14 Thread Brandon R
Hey James, Another small suggestion is you can just pass println to map, since it takes 1 argument in your case. (map println (sort builds)) But here, since you just want to perform side effects, maybe run! would be a better function to use. (run! println (sort builds)) This would cause it to

Re: Using asynchronous clojure function

2020-12-13 Thread Brandon R
Hi Ganesh, The function called wrap-content-type takes in another function (handler) and a content-type (string), and returns a function. The function that it returns takes in a request, which is a Clojure map, that has the keys that you see in the ring docs here: https://github.com/ring-clojure/r

Re: Rationale behind github.com/cljctools project

2020-09-01 Thread Brandon R
Hello and welcome! Always great to have more people contributing ideas and tools. On Mon, Aug 31, 2020 at 10:52 PM Sergei Udris wrote: > Thank you! > Encore indeed is a useful tool. > > However, as of now my focus is a non-commercial dream project : > usef-facing system , a multiplayer game. I w

Re: First post: how to mimic a Java List with types?

2020-08-15 Thread Brandon R
l' false) ;=> false >> (eval' (and-list 1 2 3)) ;=> true >> (eval' (and-list 1 2 3 false)) ;=> false >> >> Ditto with or. >> ​ >> On Friday, August 14, 2020 at 4:27:19 PM UTC-5 jack...@topicquests.org >> wrote: >> >>> Alex,

Re: Cognitect joins Nubank!

2020-07-24 Thread Brandon R
> > I think this will *compound interest* in the language! > Brilliant. Also that's quite an impressive *army* of Clojure devs at Nubank. On Fri, Jul 24, 2020 at 6:17 AM David Powell wrote: > > I think this will *compound interest* in the language! >> > > Nice. And congratulations Clojure team

A template for web apps with user auth using OWASP best practices and pedestal

2020-06-16 Thread Brandon R
Hello, I've recently been working on building a web app with authentication using specific libraries and tooling that I wanted to use. I separated that part out into a separate repo for my own reference later, and for anyone who might find it useful. https://github.com/bpringe/auth-template Feat

Re: Conceptual difference between map and class

2020-04-04 Thread Brandon R
I think someone else here could give a more detailed answer, and I will just give it from my point of view. What I really like about Clojure, coming from C# and JavaScript (and toying with other languages), is the immutability, the concurrency features, the state management features, and the concis

Re: Noob: Getting (re)started with Clojure on OS X

2020-03-28 Thread R Aguilera
I was having the same issue as above and deleting my `lein` folder in my root directory solved my issue. Thank you so much, I was about to give up learning Clojure. On Wednesday, March 13, 2019 at 10:20:08 AM UTC-7, Sean Corfield wrote: > > Check what’s in your ~/.lein/profiles.clj file – that’s

Re: A Concise Guide to Getting Started with Clojure on Windows

2019-10-17 Thread Brandon R
community/contributing_site > > Alex > > On Thursday, October 17, 2019 at 7:47:03 PM UTC-5, Brandon R wrote: >> >> Hello Clojure friends, >> >> I wrote this guide for a friend, and it's something I wish I had when I >> was starting. This guide focuses o

A Concise Guide to Getting Started with Clojure on Windows

2019-10-17 Thread Brandon R
Hello Clojure friends, I wrote this guide for a friend, and it's something I wish I had when I was starting. This guide focuses on Windows, VS Code, and Calva, though much of it would be useful to non-Windows users as well. Beginner resources have come a long way since I started, but there can ne

A Clojure wrapper for the Coinbase Pro exchange API

2018-08-31 Thread Brandon R
I've just released a library that serves as a wrapper around the Coinbase Pro cryptocurrency exchange API. I'm still pretty new to Clojure, and took this project on partly for learning, and because I figured it was something someone would actually find useful. This is my first open source projec

Re: OK idea to replace conj and cons with "prepend" and "append" macros that have consistent behavior and return same types as args?

2018-07-19 Thread Joe R . Smith
Building off of something Benoit mentioned about conj not being about order, but about adding to a collection, consider conj’s behavior when adding a map-entry to a hash-map:  (conj (hash-map :a 4 :c 1) [:b 3]) => {:c 1, :b 3, :a 4} conj is an interface for adding– not to be conflated with orde

Re: OK idea to replace conj and cons with "prepend" and "append" macros that have consistent behavior and return same types as args?

2018-07-16 Thread Joe R . Smith
FWIW, the same is true for the inverse operation.  If you pop an item off a list you’ll get the list, less the item you conj’d. Same is true with a vector.  --- Joe R. Smith j...@uwcreations.com <mailto:j...@uwcreations.com> @solussd On Jul 16, 2018, at 4:31 PM, Alex Miller ma

Re: OK idea to replace conj and cons with "prepend" and "append" macros that have consistent behavior and return same types as args?

2018-07-16 Thread Joe R . Smith
Another way to think about it is lists and vectors are different and the idiomatic way to add items to them is different. A (singly-linked) list is usually prepended to (otherwise you have to walk the entire list to find the end). A vector is usually added to at it’s n+1 index, where n is the si

Re: Comparing and selecting web API libraries

2018-03-08 Thread Joe R . Smith
Definitely give Pedestal a look. There is also wonderful Lacinia integration (a Clojure GraphQL library).  Pedestal’s notable capabilities:  https://github.com/pedestal/pedestal/blob/master/README.md#notable-capabilities --- Joe Smith j...@uwcreations.com @solussd

Re: ANN: Cognitect acquired by Microsoft

2017-04-01 Thread Joe R . Smith
Beware the 1st of April.  --- Joseph Smith j...@uwcreations.com @solussd On Apr 1, 2017, at 3:00 PM, Gregg Reynolds mailto:d...@mobileink.com> > wrote: made ya look! -- You received this message because you are subscribed to the Google Groups "Clojure" group. T

Customizing error messages reported by spec.explain

2016-07-05 Thread Balaji R Rao
Greetings! Can someone please tell me if the error messages reported by spec.explain can be customized ? I'm trying to use spec for data validation and would like to generate human readable errors. Thanks! -- You received this message because you are subscribed to the Google Groups "Clojure"

Re: remove a deployed artifact from clojars?

2016-04-17 Thread Kyle R. Burton
rg/ > > "If you're not annoying somebody, you're not really alive." > -- Margaret Atwood > > > > On 4/17/16, 9:58 AM, "Kyle R. Burton" on behalf of > kyle.bur...@gmail.com > > wrote: > > > > Forgot the link (though it shouldn&#x

Re: remove a deployed artifact from clojars?

2016-04-17 Thread Kyle R. Burton
Forgot the link (though it shouldn't matter): [1] https://clojars.org/com.github.kyleburton/repl-from-java On Sun, Apr 17, 2016 at 12:57 PM, Kyle R. Burton wrote: > Hi, > > I just published a project [1] to clojars and neglected to use an > organization. I don't real

remove a deployed artifact from clojars?

2016-04-17 Thread Kyle R. Burton
Hi, I just published a project [1] to clojars and neglected to use an organization. I don't really want to claim a top-level name for the project. Is there a way to unpublish, remove or otherwise deprecate a project that I've pushed to clojars.org? Sorry if it's obvious and I'm not seeing it in

Re: Jobs in clojure.

2016-03-29 Thread Kyle R. Burton
There are at least two companies in Philadelphia that use Clojure: * Relay Network (their engineering office is in center city Philly) * RJ Metrics I don't know if either is looking for interns, I think both are hiring. I used to be at Relay and can put you in touch with people there. I've neve

Re: How is the emphasis of “data over code” different than the XML advocacy of the early 2000s?

2016-02-01 Thread Joe R. Smith
The reason XML has a bad rap is because it has been used for things like configuration files. XML was intended as a host/platform/language-agnostic data interchange format, not something humans would write by hand, much less have to read. > On Feb 1, 2016, at 4:02 PM, Josh Tilles wrote: >

Re: [ANN] Sparkling, a Clojure-API to Apache Spark.

2016-01-17 Thread Drew R
Hi, Is it possible to run lein repl against standalone spark cluster? I launched cluster on localhost with master at spark://zhmyh-osx.local:7077 and tried to run following commands: (require '[sparkling.conf :as conf]) (require '[sparkling.core :as spark]) (def c (-> (conf/spark-conf)

Re: Define new defn, lein uberjar succeeds to compile but lein run fails

2015-11-25 Thread Benjamin R. Haskell
It sounds like you're looking for refer-clojure: https://clojuredocs.org/clojure.core/refer-clojure E.g., for your project: (ns mw.mwm (:require [clojure.pprint :as pp] [clojure.walk :as walk]) (:refer-clojure :exclude [defn]) (:gen-class)) Tested in a fork: https://github.com/mattia

Re: Largest Clojure codebases?

2015-11-16 Thread Kyle R. Burton
At the last company I was with I used sloccount [1] to analyze the codebase. I concatenated all the clj files to a .lisp file so sloccount could analyze it. I was curious about the cost estimate that sloccount performs to see how the team measured up (size varied from 2 to 7 over 5 years). When

help on exercises of brave and feedback

2015-11-14 Thread r/ Wobben
Hello, What is the best way to find help with exercises of the brave book and feedback on the solutions ? This group, the irc channel or the reddit page ? Roelof -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Re: how to make a function of a map argument ?

2015-10-23 Thread r/ Wobben
jure Op vrijdag 23 oktober 2015 14:50:30 UTC+2 schreef Colin Yates: > clojure.string/join not clojure.join/string > > On 23 Oct 2015, at 13:49, r/ Wobben > > wrote: > > Thanks, > > I tried it like this : > > (defn convert-back > "converts the

Re: how to make a function of a map argument ?

2015-10-23 Thread r/ Wobben
k but you can’t > guarantee the order. > > (map (fn [{:keys [name city]}] (clojure.join/string “,” [name city]))) > my-map) gives you control of the order in which the fields are processed. > > You could also look at juxt as well? > > On 23 Oct 2015, at 12:49, r/ Wobben > >

how to make a function of a map argument ?

2015-10-23 Thread r/ Wobben
Hello, As a challenge I need to convert a map structure to a csv structure. So ( { :name "roelof", :city secret }) need to be converted to roelof, secret. I think I can use something like (map clojure.string/join ..) for it but it seems I have to make a function out of the :name roelof par

Re: palingdrome problem (4 clojure)

2015-10-08 Thread r/ Wobben
ll) (reverse coll))) > > > user=> (palindrome? "tattarrattat") > true > user=> (palindrome? [1 5 10 10 5 1]) > true > user=> (palindrome? "marc") > false > user=> (palindrome? [1 2 3]) > false > > > On 8 October 2015 at 12:48,

Re: palingdrome problem (4 clojure)

2015-10-08 Thread r/ Wobben
On 8 Oct 2015, at 09:15, r/ Wobben > > wrote: > > > I have now this : > > > > (ns fourclojure.core > > (:gen-class)) > > > > > > (defn checker [x] > > ( = x (if (string? x) > > (clojure.string/reverse x) > > (

Re: palingdrome problem (4 clojure)

2015-10-08 Thread r/ Wobben
emantics after reversing something), > >> dropping it as soon as possible may be a better strategy. > >> > >> Take care, > >> Moe > >> > >> On Wed, Oct 7, 2015 at 6:51 PM, Roelof Wobben > > >> wrote: > >>> > >>>

Re: palingdrome problem (4 clojure)

2015-10-07 Thread r/ Wobben
bben >>> wrote: >>> >>>> Hello, >>>> >>>> I try to solve a problem for 4clojure where I have to make a >>>> palingdrome detector. >>>> >>>> So for trying I did this : >>>> >>>> (ns fourcl

midje only 1 test

2015-09-03 Thread r/ Wobben
hello, Suppose I have this test (facts "do-a-thing" {:exercise 1 :points 1} (do-a-thing 3) => 46656.0 ( do-a-thing 1) => 4.0 (do-a-thing 0) => 1.0) Is there a way I can only run this test I tried lein midje :filter exercise 1 but that one fails. Roelof -- You received this message because

Re: feedback about solutions

2015-09-02 Thread r/ Wobben
]] :profiles {:dev {:plugins [[lein-midje "3.1.1"]]}}) Roelof Op woensdag 2 september 2015 08:02:14 UTC+2 schreef r/ Wobben: > > Thanks, > > For anyone who is interested. > Here are the exercises and theory: > http://iloveponies.github.io/120-hour-epic-sax-maratho

Re: feedback about solutions

2015-09-01 Thread r/ Wobben
ves: > > At test.clj:10: > > Consider using: > > (neg? x) > > instead of: > > (< x 0) > > > At test.clj:15: > > Consider using: > > (zero? (mod n divisor)) > > instead of: > > (= (mod n divisor) 0) > > > Jony > >

labrep error message (FileNotFoundException bin/run.clj (No such file or directory) java.io.FileInputStream.open)

2015-09-01 Thread r/ Wobben
Hello, When I want to start labrepl it stops with this error message. Installed clojure 1.7.0-alpha1. java : openjdk7-jre-headless. Roelof -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.

Re: free online course

2015-08-31 Thread r/ Wobben
re.com/ > > If you can clone this github repo and you are not afraid of the command > line you can try: https://github.com/relevance/labrepl > > > Denis > > El lunes, 31 de agosto de 2015, 8:49:46 (UTC-7), r/ Wobben escribió: >> >> Hello, >> >

feedback about solutions

2015-08-31 Thread r/ Wobben
Hello, I did solve the boolean chapter of the ilovehorses git repo. My solutions can be found here: https://github.com/rwobben/i-am-a-horse-in-the-land-of-booleans/blob/master/src/i_am_a_horse_in_the_land_of_booleans.clj Any experts who can give me feedback about the solutions so I can learn f

free online course

2015-08-31 Thread r/ Wobben
Hello, I found this MOOC to learn me clojure : http://iloveponies.github.io/120-hour-epic-sax-marathon/basic-tools.html Is this a good one or is there a better free alternative. Roelof -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to t

Re: 0.1.0 core.async release?

2015-08-08 Thread Kyle R. Burton
Sorry about the '0.1.0', I had indeed found that in the project.clj. Is there anything I can do to help w/the round of work? Regards, Kyle On Fri, Aug 7, 2015 at 5:12 PM, Alex Miller wrote: > I don't where the 0.1.0 number is coming from, but yes there are plans to > do a round of work on cor

0.1.0 core.async release?

2015-08-07 Thread Kyle R. Burton
Is there a new release planned for core.async anytime in the near future? The docs show some functionality that's not in the current release [1]. Specifically offer! [2] which looks like it's slated for 0.1.0 (love to switch to that from alts+timeout). Are there (perhaps) tasks that need a dev? (

[ANN] clj-xpath 1.4.5 OWASP XXE Vulnerability Fix

2015-08-06 Thread Kyle R. Burton
clj-xpath is a library for working with XML and XPath in Clojure. This release [1] addresses an issue reported by Louis Nyffenegger [2]. This release changes the default features enabled in the XML parser to improve security - see the bug for a link to hte OWASP vulnerability. Best Regards, Kyl

Re: Reality check: EC2 + Ubuntu + Atom (from GitHub) + Clojure?

2015-08-03 Thread Joe R. Smith
I’ll come out as an Emacs -> Cursive convert. I had been using emacs for Clojure development for 6+ years before I switched. Originally I had no intention of actually switching, but, as Colin suggested, I found enough additional value in Cursive to make my experimentation with Cursive permanent.

Re: [:ann :book] ClojureScript Unraveled

2015-07-17 Thread Joe R. Smith
I believe [:ann :book] is a variant. :D > On Jul 17, 2015, at 1:44 PM, Fluid Dynamics wrote: > > Nitpick: a collection of tag keywords, which can be presumed not to have > duplicates, is probably better represented as a set or a sorted-set rather > than a vector, so "#{:ann :book} ClojureScrip

Re: [Documentation] looking for diagramming tools

2015-06-29 Thread Joe R. Smith
I use Omnigraffle to draw entity relationship diagrams like that. > On Jun 29, 2015, at 4:13 AM, dImas Angga Saputra > wrote: > > Hi Everyone, > > I'd like to ask about recommendation about diagramming tools, > So i saw this post : > http://blog.datomic.com/2013/06/using-datomic-from-groovy-

Re: symbol grammar

2014-05-24 Thread Benjamin R. Haskell
eclared dynamic" warnings (http://dev.clojure.org/jira/browse/CLJ-1233) But in general this doesn't seem well-advertised. On Sat, May 24, 2014 at 6:01 PM, Gregg Reynolds wrote: > On Sat, May 24, 2014 at 3:14 PM, Benjamin R. Haskell > wrote: > > On Sat, May 24,

Re: symbol grammar

2014-05-24 Thread Benjamin R. Haskell
On Sat, May 24, 2014 at 3:09 PM, Gregg Reynolds wrote: > Hi, > > In working on an ANTLR grammar for Clojure I came across this regex in > clojure.lang.LispReader which is used in matchSymbol: > > symbolPat == [:]?([\\D&&[^/]].*/)?(/|[\\D&&[^/]][^/]*) > > Look at the first part of the second group

"recursive" hierarchies and derive

2014-05-12 Thread r
Why is something like (derive [::matrix ::ring-element] ::ring-element) prevented by the assertion in clojure.core/derive? Is there something that is an actual show-stopper or is this an implementation detail? Cheers, ranko -- You received this message because you are subscribed to the Goog

Re: CompilerException java.lang.IllegalArgumentException: Mismatched argument count to recur

2014-05-06 Thread Benjamin R. Haskell
`loop` expects a vector of binding forms (with initial values), not just a vector of names. (loop [coll counter]; means there is one `loop` binding named `coll`, with the initial value of `counter` To fix that problem directly: (loop [collcoll ; coll starts with an initial value of

Re: Emacs - error with `nrepl-jack-in'

2014-04-18 Thread greg r
You should consider going to CIDER: https://github.com/clojure-emacs/cider The command is 'cider-jack-in'. Here's a page with a lot of install info: http://clojure-doc.org/articles/tutorials/emacs.html There are many web pages out there with obsolete information on Clojure and emacs. The abov

Re: alternative syntax for Clojure? Haskell?

2014-04-05 Thread greg r
I can't answer your question from my own experience, but there does seem to be a way to develop your own language on the JVM: https://www.eclipse.org/Xtext/index.html You could create a "DSL" to your precise specifications. Regards, Greg -- You received this message because you are subscribe

Re: Help a Startup use Clojure!

2014-03-14 Thread Víctor R . Escobar
Hi everyone, about David's document, I think you need to realize that it is a perfect blog post for programmers. In a business usually the focus is in the benefit (increase benefit or reduce costs). If I would be your boss perhaps I would understand that you want to switch to another technology

Re: A faster clojure startup

2014-03-07 Thread Víctor R . Escobar
That are very great news! do you think this change in the design could have any side effect? For me this "lazy" concept is quite new and until today I only have read posts about the possitive effects it brings. Do you think it could require that much of more memory that in some situations the OS w

Re: A faster clojure startup

2014-03-07 Thread Víctor R . Escobar
That are very great news! do you think this change in the design could have any side effect? For me this "lazy" concept is quite new and until today I only have read posts about the possitive effects it brings. Do you think it could require that much of more memory that in some situations the O

Re: partial function revisited (exercise in macros)

2014-02-08 Thread r
ists. > > I haven't tried this but the following should work: > > > > > > *(defmacro partial-pbm [f p & args] (let [argseq (flatten args) > nargs (vec (filter (resolve p) argseq))]* > *`(fn ~nargs (~f ~@argseq* > > Hope it help, > >

Re: partial function revisited (exercise in macros)

2014-02-08 Thread r
f it exists. >> >> I haven't tried this but the following should work: >> >> >> >> >> >> *(defmacro partial-pbm [f p & args] (let [argseq (flatten args) >> nargs (vec (filter (resolve p) argseq))]* >> *`(fn ~nar

Re: Confused by Clojure floating-point differences (compared to other languages)

2014-02-05 Thread r
I'd agree here. This is actually a very nice example of a system that might be called "chaotic", though "chaos" is, even mathematically, a very vague term: 1) the iteration will never leave [-2, 2] 2) it won't converge because all 3 fixed points are unstable ( |f'(x_s)|>1 ) So, your example is

Re: Help about using clojure in org mode in Emacs with CIDER

2014-02-02 Thread greg r
The worg documentation for the Clojure language has been updated: http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-clojure.html The installation instructions should result in a current Clojure/CIDER/clojure-mode/Leiningen system. Regards, Greg -- You received this message because you

Re: Help about using clojure in org mode in Emacs with CIDER

2014-01-28 Thread greg r
Hi Bastien, yes I will post a report at the mailing list today. Regards, Greg On Tuesday, January 28, 2014 12:55:20 AM UTC-5, Bastien Guerry wrote: > > Hi Greg, > > greg r > writes: > > > I compared a computer set up with the latest of everything (org/emacs > &

Re: Help about using clojure in org mode in Emacs with CIDER

2014-01-27 Thread greg r
I compared a computer set up with the latest of everything (org/emacs/CIDER) and compared to an older computer still using nrepl-jack-in and older versions of everything else. The behavior is definitely different with the newer system, and can be seen with a very simple case: Code block: #+be

Re: Help about using clojure in org mode in Emacs with CIDER

2014-01-23 Thread greg r
We had a discussion about this in the cider-emacs group: https://groups.google.com/forum/#!topic/cider-emacs/xj-HYTAA-D0 Bastien's page on using Overtone with Clojure in org code blocks is very informative with regards to setting it all up: http://bzg.fr/emacs-org-babel-overtone-intro.html Not

Re: liberator video, compression question

2014-01-18 Thread Benjamin R. Haskell
On Sat, 18 Jan 2014, Brian Craft wrote: http://www.youtube.com/watch?v=OEZZOz6__CY At about 30 min he mentions that gzip, etc. aren't so interesting here because we can use, um.. something transfer, proxies... don't know what he's saying. Anyone know what he's talking about? Slide for conte

Linux Journal July "Intro to Clojure on the Web"

2013-07-01 Thread greg r
by Reuven Lerner. 10 pages. Compojure is next. http://www.linuxjournal.com/content/july-2013-issue-linux-journal-networking Regards, Greg -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups

Re: clojure-west videos clarification

2013-05-30 Thread Benjamin R. Haskell
On Thu, 30 May 2013, Jim - FooBar(); wrote: Hi all, I just stumbled upon this: http://clojurewest.org/news/2013/5/29/clojurewest-2013-videos-1.html but I have a question! Can anyone clarify (maybe Alex?) what the dates right next to the presentation topic mean? Are they when the talk was giv

Re: Accessing JSON Array data in Clojure

2013-05-07 Thread greg r
You might want to check out "Clojure Data Analysis Handbook" by Eric Rochester. There is an example using org.clojure/data.json and Incanter to read JSON format into an Incanter dataset. You might find other recipes in the book useful as well: http://www.packtpub.com/clojure-data-analysis-coo

Re: Clojure 1.5 print-table, org-mode babel, and org-mode HTML gen

2013-03-05 Thread greg r
I think I was wrong about the extra elisp code required for nrepl to evaluate babel Clojure code blocks. This was from last year: https://groups.google.com/forum/?fromgroups=#!searchin/nrepl-el/babel/nrepl-el/txLYH9tH6AU/hj0NkyF8YZ8J I checked my .emacs file and the extra code for clojure babel

Re: Clojure 1.5 print-table, org-mode babel, and org-mode HTML gen

2013-03-03 Thread greg r
Here's a little project I worked on: https://github.com/Greg-R/incanterchartcustom I'm just now learning git, so I hope the files are intact in the repository. I cloned to another machine and they appear to be OK. The Incanter chart PDF document shows what is possible with

Re: Clojure 1.5 print-table, org-mode babel, and org-mode HTML gen

2013-03-02 Thread greg r
Try adding :results value raw to your options. Here is what the org manual says: The results are interpreted as raw Org mode code and are inserted directly into the buffer. If the results look like a table they will be aligned as such by Org mode. org is a fantastic environment for playing wi

Re: Using local jar

2013-02-19 Thread Benjamin R. Haskell
On Sun, 17 Feb 2013, Jarod wrote: James, Aaron and Jim: thanks for your help, but it still get the old error message and another: "Leiningen managed dependencies issue: problem resolving following dependencies: [jaad/jaad "0.8.4"]".  If anyone has time, my lein version is 1.7.1 and maven versi

Re: How to read a txt file?

2013-02-01 Thread greg r
slurp works well, however, it reads the file in as a single string. The result may not be readily useable depending on what you are doing. I read in text files using clojure.java.io functions plus the core function line-seq. What you get is a sequence whose elements are the individual lines

Re: *read-eval* vulnerability

2013-01-30 Thread Kyle R. Burton
On Wed, Jan 30, 2013 at 10:18 AM, Marek Šrank wrote: > The most simple thing would be to change the default value of *read-eval* > to false... > > Understanding that this may break existing code (how much?), I think it would reflect well on the community to make decisions to improve safety and sec

Looking for ideas for a hack-night to contribute back

2012-12-21 Thread Kyle R. Burton
All, We run a Clojure group out of our company's office. We want to put together a hack night where we work on something meaningful. To that end I thought I'd put that question to the wider community: what could be valuable to the community for us to work on? The group has a pretty varied amoun

Re: Belgian Clojure base meetup?

2012-12-18 Thread Pierre R
Liege would be not too far -- 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 unsubscribe from this

Re: Using functions from Java packages

2012-12-17 Thread greg r
Another possibility is the macro memfn. From the documentation: http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/memfn Regards, Greg -- 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: Using functions from Java packages

2012-12-17 Thread greg r
Another possibility is the macro memfn. From the documentation: http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/memfn Regards, Greg -- 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: another n00b defrecord combination question

2012-12-16 Thread Benjamin R. Haskell
On Sun, 16 Dec 2012, mond wrote: One small thing Ben... when I try to use the final formulation I receive an error: (def joined-products (map product-with-item products)) user=> (joined-products) ClassCastException clojure.lang.LazySeq cannot be cast to clojure.lang.IFn   user/eval241 (NO_SOUR

Re: another n00b defrecord combination question

2012-12-15 Thread Benjamin R. Haskell
On Sat, 15 Dec 2012, mond wrote: Thanks for picking up the cudgels Ben! Ha. It's nice to have reached a point where I feel at-all confident with any of this... happy to help. To be honest I am struggling to repeat your advice in the REPL.  In any case, I decided to change the data struct

Re: another n00b defrecord combination question

2012-12-15 Thread Benjamin R. Haskell
(responses inline) On Sat, 15 Dec 2012, mond wrote: I have defined these types of records for modelling a simple shopping cart: ; An item in the cart (defrecord Item [id name product quantity purchased]) ; The product that relates to the item in the cart (defrecord Product [id name descriptio

Re: another n00b defrecord combination question

2012-12-15 Thread Benjamin R. Haskell
On Sat, 15 Dec 2012, Benjamin R. Haskell wrote: Or if you really want a list, you need to quote it: (map (fn [item product] '(:id item :description product)) items products) Oops, wrong. Rather, you would want clojure.core/list: (map (fn [item product] (list :id item :description pr

Re: [ANN] clj-xpath 1.3.3

2012-11-20 Thread Kyle R. Burton
On Tue, Nov 20, 2012 at 10:35 AM, Mark Rathwell wrote: > You can contact the maintainers at the address found at the bottom of [1] > and ask them to remove the clj-xpath group, but you probably don't want to > do that if anyone is using the library. > > Thanks for the link. I have no idea if anyo

Re: [ANN] clj-xpath 1.3.3

2012-11-20 Thread Kyle R. Burton
> The Leiningen coordiates are: >> >> [org.clojars.kyleburton/clj-**xpath "1.3.3"] >> >> > Just curious, why isn't that just [clj-xpath "1.3.3"]? Searching clojars, > you seem to have uploaded 1.3.0 a while back... > > That was a mistake. I didn't want to claim a global 'clj-xpath' namespace on

Re: [ANN] clj-xpath 1.3.3

2012-11-20 Thread Kyle R. Burton
> Dependency information is at the very bottom of the document? How are > newcomers > supposed to find it? Please make it more visible. > Good point. I've moved the dependency info up towards the top of the README. Thanks for the feedback. Best Regards, Kyle -- Twitter: @kyleburton Github:

[ANN] clj-xpath 1.3.3

2012-11-19 Thread Kyle R. Burton
clj-xpath is a library that makes it easier to with XPath from Clojure. I've never announced this library before (or any for that matter). Someone recently sent me a pull request to fix an issue in the README (during the Conj) so I thought I'd announce it to solicit feedback. The Leiningen coord

Can't go to the Conj, I have 2 tickets

2012-11-13 Thread Kyle R. Burton
Please contact me off list if anyone is interested in purchasing either of them. I contacted the organizers and they are transferable. I'm sorry I'm not going to be able to make it. Best Regards, Kyle -- Twitter: @kyleburton Blog: http://asymmetrical-view.com/ Fun: http://snapclean.me/ -- Y

Re: what is the simplest user auth system possible?

2012-10-26 Thread Pierre R
+1 for Persona. Please give your user a chance to break the cycle of password madness ;-) On Friday, October 26, 2012 1:10:42 PM UTC+2, Dave Sann wrote: > > Sorry, I meant to say authentication. > > On Friday, 26 October 2012 22:06:48 UTC+11, Dave Sann wrote: >> >> For authorisation, I really lik

Re: Some Friend documentation and regarding documentation in general

2012-10-23 Thread Pierre R
Thanks David for the extra doc. I have had a try with OpenID. Everything works kind of expected. I had a question about "302 redirection prior to authentication" that I posted on github. Another question is how to link the concept of roles with the openid credentials. IMHO the doc is really l

Re: Clojure : a good start for non-programmers?

2012-09-26 Thread greg r
I would go with the book "Simply Scheme, Introducing Computer Science" by Harvey and Wright. Install the Racket system on your computer, and have at it. http://racket-lang.org/ Once you come up to speed on Scheme, you will have no trouble with core Clojure. But if you venture in the the Java i

Clojure : a good start for non-programmers?

2012-09-25 Thread Gregorius R.
Hello Clojurists! I'm a person in middle age (you know, too old to rock'n'roll, to young to die) and would like to programm but starting with functional programming. Regarding this i have some questions: is clojure a good start to learn programming? which (prerfer free online) is a good tut to

Re: slime-ritz help needed on clean emacs 24.2.1 new setup

2012-09-20 Thread greg r
How about trying: nrepl-jack-in This is working good here, at least from within a leiningen project. Regards, Greg On Saturday, September 15, 2012 2:39:36 AM UTC-4, sal wrote: > > Hi Everyone, > Trying to setup emacs 24.2 on mac osx clean setup, nothing else. > > clojure-mode 20120808..

Re: Found bug in contains? used with vectors.

2012-09-03 Thread greg r
You could try the function some. => (some #{3} [1 2 3]) 3 => (some #{3} [1 2 5]) nil This uses a set as a predicate function. Greg On Monday, September 3, 2012 7:03:07 AM UTC-4, Goldritter wrote: > > I use Clojure 1.4.0 and wanted to use 'contains?' on a vector and get > following results: > >

Re: using "lein repl" as the Emacs Inferior Lisp REPL as opposed to a custom script that does "java -jar clojure-1.4.0.jar"

2012-08-26 Thread greg r
Hello, I am also using Leiningen in Ubuntu, and I feel your pain. One thing I would suggest is to remove anything related to your tool chain which was installed by Ubuntu. (except maybe emacs 24.x). You clearly have Clojure installed via the usual Ubuntu Software Center or related mechanism. Unin

Looking for help with a deadlock issue

2012-07-27 Thread Kyle R. Burton
I encountered a deadlock on one of our production systems (one out of 3) last night. Looking at a thread dump of the JVM, there are several (over 200) threads that are all waiting on a java.util.concurrent.locks.ReentrantLock from Keyword.intern. I've put up the thread dump and information about

  1   2   3   4   5   >