Search Discussions
-
Hi, there! Please bear with me as I am very new to Closure (this is my second program ever) but have a kind of solid Haskell background. I was trying to get a version of this Haskell code: divides x ...
Jorge Marques Pelizzoni
Feb 12, 2015 at 7:01 pm
Feb 13, 2015 at 6:24 pm -
What is the best way to remove all elements which position (counting from 1) is a multiply of five out of a list? So the list: (1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21) becomes: (1 2 3 ...
Cecil Westerhof
Feb 17, 2015 at 7:21 pm
Feb 18, 2015 at 3:46 am -
Hi all, What are you all using for interacting with an RDBMS? In the past I looked at clojure.java.jdbc, honeysql and korma (and for querying, honeysql just rocks). I have lost touch a bit - any ...
Colin Yates
Feb 24, 2015 at 2:04 pm
Feb 25, 2015 at 1:31 am -
I needed a function to get the percentage as an int. Input is place and total-count. I want the normal definition (which is the default) and a high and low variant. I came up with the following ...
Cecil Westerhof
Feb 11, 2015 at 7:33 am
Feb 15, 2015 at 12:35 pm -
In Bash I use the following construct: printf "${FUNCNAME} needs an expression\n" In this way I do not have to change the print statement when the name of the function changes. Is something like this ...
Cecil Westerhof
Feb 14, 2015 at 4:11 pm
Feb 15, 2015 at 1:26 pm -
Hi, I'm checking Caribou, and wanna know if anyone is using it. It appears that it is a dormant project by the looks of the last update https://github.com/caribou/caribou Thanks in advance, Geraldo ...
Geraldo Lopes de Souza
Feb 25, 2015 at 11:36 pm
Feb 28, 2015 at 5:37 pm -
Summary: I'd like to find a public API to work with the underlying tree of a sorted-map. For example: (def t (sorted-map 1 :a 2 :b 3 :c 4 :d 5 :e 6 :f)) The underlying implementation of sorted-map ...
David James
Feb 19, 2015 at 2:04 am
Feb 20, 2015 at 8:21 pm -
Why is this possible in a language based on immutability: (let [x 1 x (inc x) x (inc x) x (inc x)] x) ;;= 4 Maybe under the hood (ie. memory registers/pointers etc.) this isn't strictly mutation but ...
Gvim
Feb 12, 2015 at 1:42 am
Feb 12, 2015 at 12:56 pm -
Hi folks, do you know of a lib that let's you navigate around nested Clojure structures like XPATH does on XML? I'm aware of core.match, walk and zippers. But has anyone put those together in order ...
Henrik Heine
Feb 27, 2015 at 12:53 pm
Mar 1, 2015 at 2:17 pm -
In my application I have a quit button which does: (System/exit 0) But when I used 'lein repl' I do not want to exit, but just close the frame. Can this be done? -- Cecil Westerhof -- You received ...
Cecil Westerhof
Feb 27, 2015 at 8:09 am
Feb 27, 2015 at 9:20 pm -
Hi guys, thi.ng is a collection of over a dozen largely x-platform Clojure & Clojurescript libs for computational/generative design & data visualization tasks. I just wanted to give a little heads up ...
Karsten Schmidt
Feb 25, 2015 at 5:07 am
Feb 26, 2015 at 3:56 am -
At the moment I have the following function: (defn do-show-table [table] (doseq [{:keys [table_name]} (show-tables db-spec)] (when (= (lower-case table) (lower-case table_name)) (let [format "%-20s ...
Cecil Westerhof
Feb 25, 2015 at 4:59 pm
Feb 25, 2015 at 7:22 pm -
I have updated my Lucky Numbers code: (defn indexed-sieve "Removes all elements that have a position that is a multiply of index. With first position counting as 1." [index this-list] (keep-indexed ...
Cecil Westerhof
Feb 18, 2015 at 1:39 pm
Feb 19, 2015 at 11:43 pm -
I like to make a jar for contrib.data.int-map. But when I do: mvn package I get: [INFO] --- clojure-maven-plugin:1.3.13:test (clojure-test) @ data.int-map --- Exception in thread "main" ...
Cecil Westerhof
Feb 18, 2015 at 11:00 pm
Feb 19, 2015 at 4:52 pm -
I'm looking for the most performant way to transform a huge seq (size 250000) of maps into a single CSV. The data structure looks something like: (def data-struct (repeat 250000 {:one 1 :two 2 :three ...
Mark
Feb 12, 2015 at 1:25 am
Feb 15, 2015 at 3:58 am -
Hello fellow Clojurians, I am happy to announce that I have finished my blogpost series on the persistent vector. It consists of five parts: 1. The basic algorithms ...
Jean Niklas L'orange
Feb 28, 2015 at 4:14 pm
Mar 5, 2015 at 2:43 pm -
Hi, I have a number of commands flying around which need to be handled. defmulti/defmethod seem a nice answer. The problem is that each command handler will need different collaborators (those with ...
Colin Yates
Feb 25, 2015 at 11:08 am
Feb 25, 2015 at 2:29 pm -
Hi all, At work, we use Jenkins to continuously integrate our Clojure projects which are factored into both applications and a small number of supporting libraries; all of which use Leiningen as ...
Rick Moynihan
Feb 17, 2015 at 5:51 pm
Feb 18, 2015 at 11:32 pm -
Hi everyone, I spent some time putting together an implementation of the CQRS pattern in Clojure and wrote an article on it: http://yuppiechef.github.io/cqrs-server/ It mostly boils down to an Onyx ...
Deon Moolman
Feb 12, 2015 at 2:34 pm
Feb 14, 2015 at 7:23 pm -
Greetings, I am trying to convert my mind from OO (C#) to one more functionally friendly. I am increasingly comfortable with simple applications in clojure, but as I start to build more complex ...
Dru Sellers
Feb 8, 2015 at 12:13 am
Feb 12, 2015 at 2:54 am -
Hi All, I'm new to clojure and I'm trying to create a simple rest api to create and manages to token. I'm trying to use Stuart's component library but I'm having problems when trying to stop a ...
Gilberto Garcia
Feb 10, 2015 at 9:29 am
Feb 10, 2015 at 3:59 pm -
Hi guys! Can anyone give some insight on the features or downsides of choosing component vs graph libs? Or maybe explain the advantages of using defrecords instead of plain fns? thanks in advance! ...
Juan A. Ruz
Feb 4, 2015 at 12:46 pm
Feb 6, 2015 at 3:38 pm -
On a editor-pane I use: (.setCaretPosition html-table 0) And it does what it should do. But when I run: lein check I get: Reflection warning, quotes/core.clj:98:42 - call to method setCaretPosition ...
Cecil Westerhof
Feb 27, 2015 at 8:56 am
Feb 27, 2015 at 10:12 pm -
Sometimes I execute something that takes to long. With <Ctrl -C I can cancel it, but this also cancels the REPL itself. Is there a way to terminate the running command without terminating the running ...
Cecil Westerhof
Feb 21, 2015 at 11:45 am
Feb 23, 2015 at 11:28 pm -
Alex/Rich, if a patch is welcome for this I am happy to raise a ticket and submit. Test case: (clojure.data/diff {:x {:y 1}} {:x {}}) Expected: ({:x {:y 1}} nil nil) Actual: ;; = ({:x {:y 1}} {:x ...
Timothy Pratley
Feb 21, 2015 at 12:13 am
Feb 23, 2015 at 11:22 pm -
Hello Clojurians, I've just been polishing my modest library, clj-uuid <http://danlentz.github.io/clj-uuid/ and would like to invite everyone to have a look if such a thing might be of interest. What ...
Danlentz
Feb 17, 2015 at 1:25 am
Feb 22, 2015 at 7:41 pm -
I have a Liberator app which works with this: (defresource user [day month year hour min region location] :available-media-types ["application/json"] :handle-ok (generate-string (clc/calc day month ...
Gvim
Feb 18, 2015 at 12:08 pm
Feb 19, 2015 at 7:44 pm -
ClojureScript, the Clojure compiler that emits JavaScript source code. README and source code: https://github.com/clojure/clojurescript New release version: 0.0-2814 Leiningen dependency ...
David Nolen
Feb 10, 2015 at 12:47 am
Feb 11, 2015 at 2:47 pm -
Clojure Miniprofiler is a simple, but effective profiling tool for your web application. It tells you what is slow about a web page both in production (for admins only), and in development, as you ...
Tcrayford
Feb 4, 2015 at 1:16 pm
Feb 9, 2015 at 4:23 pm -
So, much of the pain involved in handling UUID's correctly on the JVM relates to the fact that there is no primitive unsigned numeric type that can represent the full range of possible values of the ...
Danlentz
Feb 23, 2015 at 6:59 pm
Mar 2, 2015 at 12:00 am -
At the moment I have the following code: (str "<html " "<table border='1' cellpadding='10'" "style='font-family:Arial; font-size:16px; margin: 10px;width:100%' " "<tr " "<th bgcolor='black' ...
Cecil Westerhof
Feb 26, 2015 at 7:39 pm
Feb 26, 2015 at 9:46 pm -
Currently each request gets serviced in its own thread (web container) and I am thinking of integrating core.async and I wonder how core.async and a JDBC transactional "unit of work" get on ...
Colin Yates
Feb 23, 2015 at 5:20 pm
Feb 24, 2015 at 12:34 pm -
Hi everyone, I have the following question regarding the defmultis of clojure: (defmulti create-fact (fn [item-vector] (do (print item-vector) (first item-vector)))) (defmethod create-fact [:a] ...
Timur
Feb 22, 2015 at 5:52 pm
Feb 23, 2015 at 3:58 pm -
In Java I can use: 1_000_000_000 This makes code a lot more readable. But it seems this is not possible in Clojure. Am I overlooking something? -- Cecil Westerhof -- You received this message because ...
Cecil Westerhof
Feb 18, 2015 at 7:07 am
Feb 18, 2015 at 5:10 pm -
I programmed Lucky Numbers in Clojure: (defn indexed-sieve [index this-list] (keep-indexed (fn [i v] (if (= 0 (mod (inc i) index)) nil v)) this-list)) (defn lucky-numbers [max-value] (let ...
Cecil Westerhof
Feb 17, 2015 at 10:22 pm
Feb 18, 2015 at 7:00 am -
Hi guys, I'm trying to find the best way to call a function that accepts keyword arguments (in my case it's the set-style! on Enfocus library) with a map. So, an example of the regular call ...
Wilker
Feb 13, 2015 at 5:31 pm
Feb 16, 2015 at 2:56 pm -
Greetings, I am trying to convert my mind from OO (C#) to one more functionally friendly. I am increasingly comfortable with simple applications in clojure, but as I start to build more complex ...
Dru Sellers
Feb 8, 2015 at 12:13 am
Feb 11, 2015 at 3:31 pm -
I've used agents, and am familiar with the "reactive agent" concept as presented on the page http://clojure.org/agents I just now decided to look into the background of this distinction (as opposed ...
Justin Smith
Feb 4, 2015 at 2:46 am
Feb 6, 2015 at 1:28 pm -
Hi all, I have the following in my project.clj: :dependencies [[org.clojure/clojure "1.7.0-master-SNAPSHOT"]] :repositories [["snapshots" "https://oss.sonatype.org/content/repositories/snapshots"]] ...
Michael Griffiths
Feb 26, 2015 at 7:21 pm
Feb 28, 2015 at 9:54 pm -
My core.clj ends with: (println (format "Started: %s (println)" (java.util.Date.))) (printf "Started: %s (printf)\n" (java.util.Date.)) I do not see the output from the printf when I run 'lein ...
Cecil Westerhof
Feb 27, 2015 at 7:13 pm
Feb 27, 2015 at 10:08 pm -
This is for my language matrix project that has samples for 10 different languages. My clojure knowledge is ok, but not really as great where I would like it to be, therefore looking towards the ...
Daniel Hinojosa
Feb 23, 2015 at 7:00 pm
Feb 24, 2015 at 10:30 pm -
Hi! I am happy to announce a new release of buddy (security library for Clojure). Since 0.3.0, buddy is split from monolithic library in four modules: - buddy-core: Cryptographyc api. - buddy-sign ...
Andrey Antukh
Feb 22, 2015 at 11:37 am
Feb 24, 2015 at 4:30 pm -
ClojureScript, the Clojure compiler that emits JavaScript source code. README and source code: https://github.com/clojure/clojurescript New release version: 0.0-2913 Leiningen dependency ...
David Nolen
Feb 21, 2015 at 6:01 pm
Feb 24, 2015 at 12:37 pm -
I have the following function: (defn lucky-numbers "Lucky numbers from 1 up-to upto-value. 1 <= upto-value <= 10.000.000 http://en.wikipedia.org/wiki/Lucky_number" ; doc-string and pre-condition ...
Cecil Westerhof
Feb 19, 2015 at 11:52 am
Feb 21, 2015 at 1:46 pm -
I'm probably just especially dense today, but perhaps someone can give me a poke in the right direction. I'm trying to wrap my head around transducers. (1) For debugging purposes I'd like to be able ...
Ben Smith-Mannschott
Feb 18, 2015 at 9:48 pm
Feb 19, 2015 at 5:50 pm -
I want to flatten a map of nested maps/vecs Currently I'm using the fn's: (defn- flatten-keys* [a ks m] (cond (map? m) (reduce into (map (fn [[k v]] (flatten-keys* a (if-not (empty? ks) (str ks "." ...
Mark Watson
Feb 17, 2015 at 4:14 pm
Feb 18, 2015 at 11:17 pm -
I started looking at coljurescript testing yesterday and find it disappointing that every example I find focuses on pantomjs. I'm looking for a solution that doesn't require external software. By ...
Elric Erkose
Feb 11, 2015 at 7:29 pm
Feb 12, 2015 at 3:51 pm -
Hi, I took some time to put together a leiningen template which combines the awesome proecjts luminus and chestnut and adds some more features to start development sideprojects for the web without ...
Sven Richter
Feb 11, 2015 at 10:59 am
Feb 12, 2015 at 8:13 am -
Thanks to Alex Miller, who has updated the cheat sheet version published at http://clojure.org/cheatsheet It was updated from v13 to v21. If you are curious what changes have been made between those ...
Andy Fingerhut
Feb 5, 2015 at 5:04 pm
Feb 6, 2015 at 12:14 am -
I discovered: (require 'project.core :reload) Very handy indeed and a big time saver. But it does not always work correctly. At a certain moment I got strange results. An exit and a new 'lein repl' ...
Cecil Westerhof
Feb 28, 2015 at 2:25 pm
Mar 3, 2015 at 7:45 pm
Group Overview
group | clojure |
categories | clojure |
discussions | 136 |
posts | 675 |
users | 204 |
website | clojure.org |
irc | #clojure |
204 users for February 2015
Archives
- June 2016 (304)
- May 2016 (520)
- April 2016 (426)
- March 2016 (421)
- February 2016 (464)
- January 2016 (422)
- December 2015 (359)
- November 2015 (490)
- October 2015 (573)
- September 2015 (476)
- August 2015 (618)
- July 2015 (628)
- June 2015 (700)
- May 2015 (858)
- April 2015 (573)
- March 2015 (751)
- February 2015 (676)
- January 2015 (607)
- December 2014 (677)
- November 2014 (606)
- October 2014 (910)
- September 2014 (733)
- August 2014 (652)
- July 2014 (689)
- June 2014 (66)
- May 2014 (699)
- April 2014 (1,151)
- March 2014 (1,010)
- February 2014 (1,111)
- January 2014 (1,291)
- December 2013 (938)
- November 2013 (1,242)
- October 2013 (874)
- September 2013 (934)
- August 2013 (1,130)
- July 2013 (1,301)
- June 2013 (1,139)
- May 2013 (1,215)
- April 2013 (1,019)
- March 2013 (1,502)
- February 2013 (1,330)
- January 2013 (1,191)
- December 2012 (1,082)
- November 2012 (994)
- October 2012 (1,366)
- September 2012 (946)
- August 2012 (957)
- July 2012 (957)
- June 2012 (1,149)
- May 2012 (1,092)
- April 2012 (1,012)
- March 2012 (1,075)
- February 2012 (859)
- January 2012 (1,077)
- December 2011 (983)
- November 2011 (1,063)
- October 2011 (1,180)
- September 2011 (595)