[ANN] Tawny-OWL 1.3.0

2014-11-14 Thread Phillip Lord
I am pleased to annouce the 1.3.0 release of Tawny-OWL, now available on clojars and github (http://github.com/phillord/tawny-owl). What is Tawny-OWL = Tawny-OWL allows construction of OWL ontologies, in a evaluative, functional and fully programmatic environment. Think of it as

[ANN] lein-tern 0.1.0 - DB migrations as clojure data

2014-11-14 Thread Russell
Hi, today we released our first open source project at BUGS Bioscience: lein-tern https://github.com/bugsbio/lein-tern. Tern is a migrations library that lets you define your migrations as Clojure maps, like this: {:up [{:create-table :cats :columns [[:id BIGSERIAL PRIMARY KEY]

If code is data why do we use text editors?

2014-11-14 Thread Thomas Huber
Hi, here is an idea that has been in my mind for a while. I wonder what you think about it. In Clojure code is data, right? But when we program we manipulate flat text files, not the data directly. Imagine your source code where a data structure (in memory). And programming is done by

Preventing url-encoding of POST body in http-kit.client

2014-11-14 Thread Saju Ravindran Pillai
Hi, I need to POST an XML body to an http endpoint, which replies back with a xml response. I do this .. (org.httpkit.client/post uri {:body (str “foobar/foo”)}) but the client is encoding the xml tags to gt; lt; I then tried : (org.httpkit.client/post uri {:body (str “foobar/foo”)

a nicer way to write 1 - 2 + 3 - 4 ... +/- n

2014-11-14 Thread Gary Verhaegen
What about cheating a bit? (interleave (iterate #(+ % 2) 1) (iterate #(- % 2) -2)) Then take n, reduce +, or whatever else you might want to do with the series. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: a nicer way to write 1 - 2 + 3 - 4 ... +/- n

2014-11-14 Thread Jonas
Is this cheating? (defn altsum [n] (int (* (if (even? (inc n)) 1 -1) (Math/floor (/ (inc n) 2) On Friday, November 14, 2014 3:31:38 AM UTC+2, Andy L wrote: Hi, All I was able to come up with was this (defn altsum[n] (reduce + (map * (range 1 (inc n))

Re: a nicer way to write 1 - 2 + 3 - 4 ... +/- n

2014-11-14 Thread Henrik Lundahl
How about this? :-) (defn altsum [n] (/ (if (odd? n) (+ 1 n) (- n)) 2)) -- Henrik On Fri, Nov 14, 2014 at 1:48 PM, Gary Verhaegen gary.verhae...@gmail.com wrote: What about cheating a bit? (interleave (iterate #(+ % 2) 1) (iterate #(- % 2) -2)) Then take n, reduce +, or whatever

Re: Odd bug, apparently in ring.middleware or clojure.core.memoize?

2014-11-14 Thread Simon Brooke
Thank you very much for the suggestion. I believe that your diagnosis is correct; unfortunately, your solution does not work. Furthermore, even if I remove the dependency on clj-jgit and all references to it from my code, do a 'lein clean', and rebuild, I still get the same error on startup

Re: If code is data why do we use text editors?

2014-11-14 Thread Simon Brooke
I wrote a couple of blog-posts on this topic - On Editing, and Clojure http://blog.journeyman.cc/2013/09/on-editing-and-clojure.html, and Editing and clojure revisited: this time, with structure! http://blog.journeyman.cc/2013/09/yesterday-i-blogged-on-editing-clojure.html I also wrote a bit

Re: [ANN] Release 0.29.1 of Counterclockwise

2014-11-14 Thread Simon Brooke
Unfortunately your website at http://doc.ccw-ide.org/ http://doc.ccw-ide.org/documentation.html#_install_counterclockwise appears to be down. On Thursday, 13 November 2014 15:00:52 UTC, Laurent PETIT wrote: Counterclockwise, the Eclipse Clojure development tool. Counterclockwise 0.29.1 has

Re: If code is data why do we use text editors?

2014-11-14 Thread Erlis Vidal
This is an interesting topic, and I think this applies to most of the programming languages not just Clojure. I'm still waiting the day where we finally abandon the idea that the file is the minimal point of change, by this I mean that today we do changes on files when actually what we are

Re: Odd bug, apparently in ring.middleware or clojure.core.memoize?

2014-11-14 Thread Chris Sims
I had a problem very similar to yours using clj-jgit - I ended up simply excluding jgit from pulling in core.memoize as a dependency: [clj-jgit 0.8.0 :exclusions [org.clojure/core.memoize]] On Nov 14, 2014, at 5:56 AM, Simon Brooke still...@googlemail.com wrote: Thank you very much

Re: [ANN] Release 0.29.1 of Counterclockwise

2014-11-14 Thread Laurent PETIT
Indeed, Checking my host provider settings right now, this is kinda weird ... especially since I bought for CDN services lately ! :) 2014-11-14 15:41 GMT+01:00 Simon Brooke still...@googlemail.com: Unfortunately your website at http://doc.ccw-ide.org/

Re: [ANN] Release 0.29.1 of Counterclockwise

2014-11-14 Thread Laurent PETIT
This should be fixed in a few minutes (the time for the information to be propagated) 2014-11-14 16:25 GMT+01:00 Laurent PETIT laurent.pe...@gmail.com: Indeed, Checking my host provider settings right now, this is kinda weird ... especially since I bought for CDN services lately ! :)

Re: [ANN] Cryogen - Static Site Generator

2014-11-14 Thread Tom George
Cool stuff! Tom On Thursday, November 13, 2014 4:27:44 PM UTC-5, Carmen La wrote: Check out my first project! As the title says, it's a static site generator :) Blog post: http://carmenla.me/blog/posts/12-11-2014-post1.html Github repo: https://github.com/lacarmen/cryogen Any feedback

Re: Odd bug, apparently in ring.middleware or clojure.core.memoize?

2014-11-14 Thread James Reeves
On 14 November 2014 13:56, Simon Brooke still...@googlemail.com wrote: Thank you very much for the suggestion. I believe that your diagnosis is correct; unfortunately, your solution does not work. Furthermore, even if I remove the dependency on clj-jgit and all references to it from my code,

Re: Preventing url-encoding of POST body in http-kit.client

2014-11-14 Thread Sam Ritchie
How about just decoding on the other side? Saju Ravindran Pillai mailto:saju.pil...@concur.com November 14, 2014 at 5:46 AM Hi, I need to POST an XML body to an http endpoint, which replies back with a xml response. I do this .. (org.httpkit.client/post uri {:body (str “foobar/foo”)}) but

Re: If code is data why do we use text editors?

2014-11-14 Thread atucker
As I understand it, Session https://github.com/kovasb/session and codeq https://github.com/Datomic/codeq are tools that somehow keep your code in a database instead of plain text. On Friday, 14 November 2014 12:42:57 UTC, Thomas Huber wrote: Hi, here is an idea that has been in my mind for a

[ANN]nginx-clojure v0.2.7 release!

2014-11-14 Thread Xfeep
v0.2.7 changes list 1. New Feature: Compiling option for disabling all functions silently when JVM_PATH not configured. (issue #47) 2. New Feature: Access request BODY in rewrite handler (issue #49) 3. Enhancement : Optimization of encoding String to Nginx temp buffer chain to

Re: If code is data why do we use text editors?

2014-11-14 Thread Christopher Small
Are you familiar with LabView? It allows you to create a program graphically. Aside from simple programming in Mathematica during college (simple in the sense that while the math was advanced, the programming was not), that was how I learned to program. It was actually pretty awesome to be

Re: If code is data why do we use text editors?

2014-11-14 Thread Jan-Paul Bultmann
Yeah this would be awesome, but sadly representing Clojure code as data is as hard as representing Java. All the reader macros make it a nightmare, and the closest thing you'll get is tools.analyzer AST nodes. Session is certainly a step in the right direction, and I wish more people would

Re: If code is data why do we use text editors?

2014-11-14 Thread Phillip Lord
I can think of several reasons. First and most important, code is data, but source files are not code. They are source and include many things a lot of which do not obey the syntactic rules of the language. Comments and indentation are the most obvious ones. Second, reason is that not only do

Re: Routes for both WWW and API

2014-11-14 Thread Geraldo Lopes de Souza
James, Thank you very much for ring-defaults ! Regards, Geraldo On Monday, June 30, 2014 12:53:50 PM UTC-3, James Reeves wrote: Yes, though (routes api-routes) is the same as api-routes. You could write your code as: (def api-handler (- (handler/site api-routes)

[ANN] Clojure 1.7.0-alpha4 now available

2014-11-14 Thread Alex Miller
Clojure 1.7.0-alpha4 is now available. Try it via - Download: http://central.maven.org/maven2/org/clojure/clojure/1.7.0-alpha4/ - Download securely: https://repo1.maven.org/maven2/org/clojure/clojure/1.7.0-alpha4/ - Leiningen: [org.clojure/clojure 1.7.0-alpha4] A few important changes to be

Re: Preventing url-encoding of POST body in http-kit.client

2014-11-14 Thread Francis Avila
What you are describing is not url-encoding but xml-entity-quoting. The problem is not with the http-kit client but somewhere else in your stack. On my system (http-kit 2.1.16) I get the expected result: In a terminal: $ nc -l localhost -p In a repl: @(org.httpkit.client/post

Re: [ANN] Clojure 1.7.0-alpha4 now available

2014-11-14 Thread Alex Miller
One thing buried below is that Clojure can now use test.check for tests and the first use of it is in this release for transducers. For anyone working on patches, test.check generative tests are welcomed and encouraged! Big thanks to Reid and everyone else for making test.check an option for

Re: If code is data why do we use text editors?

2014-11-14 Thread Max Kreminski
A little bit ago there was a reddit /r/Clojure http://www.reddit.com/r/Clojure/comments/2kolip/i_made_a_structural_editor_in_clojurescript_and/ thread http://www.reddit.com/r/Clojure/comments/2kolip/i_made_a_structural_editor_in_clojurescript_and/ about structured editors – code editors that

Re: If code is data why do we use text editors?

2014-11-14 Thread Raoul Duke
http://en.wikipedia.org/wiki/Intentional_programming -- 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.

ANN Elastisch 2.1.0-rc1 is released

2014-11-14 Thread Michael Klishin
Elastisch [1] is a small, feature complete client for ElasticSearch  that provides both REST and native clients.  2.1 is packed with improvements. Please help us test this RC! Release notes:  http://blog.clojurewerkz.org/blog/2014/11/15/elastisch-2-dot-1-0-rc1-is-released/ 1.

Re: a nicer way to write 1 - 2 + 3 - 4 ... +/- n

2014-11-14 Thread Andrew Oberstar
How about this? (defn cyclefn [ fs] (let [fcycle (cycle fs) rem-fs (atom fcycle)] (fn [ args] (let [f (first @rem-fs)] (swap! rem-fs rest) (apply f args) (reduce (cyclefn + -) (range 1 100)) cyclefn could be used to cycle through any set of functions

Re: If code is data why do we use text editors?

2014-11-14 Thread Daniel Orias
On Friday, November 14, 2014 4:42:57 AM UTC-8, Thomas Huber wrote: Hi, here is an idea that has been in my mind for a while. I wonder what you think about it. In Clojure code is data, right? But when we program we manipulate flat text files, not the data directly. Imagine your source

Re: If code is data why do we use text editors?

2014-11-14 Thread Colin Fleming
This is an interesting topic. Unfortunately I'm quite busy getting ready for the conj, but my talk on Cursive at the conj is actually quite related to this. I think text is actually a pretty good representation for programs - at least, I haven't seen anything more convincing except for very

Re: [ANN] Clojure 1.7.0-alpha4 now available

2014-11-14 Thread Mikera
This is a great release, thanks! CLJ-1529 seems to have solved a major compilation-time issue with core.matrix CLJ-1578 is a good start in that it stops some of the failures, but the warnings still aren't addressed... I will open a new ticket On Saturday, 15 November 2014 03:34:55 UTC+8,