Re: [ANN] slothcfg - Improved version of awesome but abandoned 'configleaf' project!

2013-08-16 Thread David Santiago
So, just to be clear, you thought you'd just go ahead and fork, rename, and reannounce my project, instead of sending me an email? I'm quite open to collaboration and try to work quickly with people on patches, such as with Julian Eduard's recent work to make Hickory work on Clojurescript. I'm sorr

Re: [ANN] Yet another {{mustache}} for Clojure

2012-07-19 Thread David Santiago
Just wanted to stop by and update this thread with the latest information. I just released Stencil 0.3, at http://github.com/davidsantiago/stencil and it contains many performance improvements. I have pushed the benchmarks I use to test it, including an adaptation of yours, to http://github.com/dav

Re: Using clojure-csv with large files

2012-07-08 Thread David Santiago
Yeah, CSV files can have embedded newlines, so you can't just split it up on linebreaks and expect it to work, you need to send them through a parser. parse-csv *is* lazy, so my question is, are you doing this at the repl, exactly as you wrote? If so, it will lazily parse the file, and then print

Re: Parsing NMON data (CSV)

2012-02-27 Thread David Santiago
One library you could use is one I wrote called Clojure-CSV, which you can find at http://github.com/davidsantiago/clojure-csv. If you have any questions, feel free to email me or message me on github. David On Sun, Feb 26, 2012 at 3:33 PM, meteorfox wrote: > Hi, > > I'm interested in creatin

Re: Currently recommended CSV client, again ?

2011-10-04 Thread David Santiago
Thanks! Let me know if you need anything along those lines and we'll see what we can do. David On Tue, Oct 4, 2011 at 2:24 PM, Laurent PETIT wrote: > 2011/10/4 David Santiago : > > They are not related, although clojure-csv was first. I first found out > > about data.csv

Re: Currently recommended CSV client, again ?

2011-10-04 Thread David Santiago
They are not related, although clojure-csv was first. I first found out about data.csv existing, and being added to contrib when someone asked a question about it a few weeks ago. Given the number of users, I have no choice but to continue maintaining and improving clojure-csv. David On Tue, O

Re: Re: Convert HTML to Vector Notation

2011-07-12 Thread David Santiago
No problem. It's a key piece of one of my own libraries, so thank goodness it was already there when I found myself needing it. David On Tue, Jul 12, 2011 at 3:09 PM, Daniel Janus wrote: > Hey, thanks for recommending my library! :-) > Best, > Daniel > > -- > You received this message because

Re: Convert HTML to Vector Notation

2011-07-12 Thread David Santiago
Check out the library clj-tagsoup: https://github.com/nathell/clj-tagsoup David On Tue, Jul 12, 2011 at 11:10 AM, Asim Jalis wrote: > Is there a way to convert a large HTML document to a vector notation. > So something that converts "Hello" to [:n1 > {:a1 = "v1"} [:n2 "Hello]]. > > I am using

Re: Am I getting back a vector of lines and can I split each line?

2011-06-17 Thread David Santiago
Also, you don't want to simply split the CSV into lines by looking for newlines. CSVs can contain newlines quoted in fields, so you need to actually parse the CSV with quoting to figure out the line breaks for the file format and ignore the line breaks in the fields. - David On Fri, Jun 17, 201

Re: clojure-csv Column or field extraction

2011-06-16 Thread David Santiago
a given column. > #'user/get-column > user=> (get-column csv 1) ;; Get second column as a sequence. > ("2" "5" "8") > > to read in a .csv file, and then perform the functions on the parsed > csv file, but I am getting clojure.lang.LazySeq cannot be

Re: clojure-csv Column or field extraction

2011-06-15 Thread David Santiago
#x27;ve got to go back and look at your documentation. I'm not sure how > to pull the columns out of each row. > > On Jun 15, 5:04 pm, David Santiago wrote: >> I'm afraid I don't understand the question. What do you mean >> "positionally?" When it parses t

Re: clojure-csv Column or field extraction

2011-06-15 Thread David Santiago
I'm afraid I don't understand the question. What do you mean "positionally?" When it parses the CSV file, it gives you back a stream of rows, each row being a vector of the contents of each cell of the CSV. If you are interested in cells at a given row/column, you should be able to count into those

Re: Using clojure-csv

2011-06-14 Thread David Santiago
I think the basic problem is Clojure is not able to find the clojure-csv jar file. I'm afraid I'm not quite clear enough on your specific setup to know exactly what has gone wrong. I'm not sure where you have this jar, or what exactly the shell scripting stuff is in that command you're using to lau

Re: Two potential map-util functions

2010-03-09 Thread David Santiago
Hi, I actually wrote a sort of counterpart to leafs a while back: (defn- rmap   "Implementation core for map-at-levels."   [func obj lvls lvl]   (let [children-mapped (if (coll? obj) (for [c obj] (rmap func c lvls (inc lvl)))

Clojure CSV Library

2009-11-11 Thread David Santiago
Hi everyone. I wrote a CSV parsing and output library for my own uses when I didn't see another one available. Someone on #clojure suggested it might be of general interest for clojure.contrib. If you guys agree, I'm happy to do whatever is necessary to assist with that. The code is at http://gith