I'm developing web application to support systematic approach to logging
and analyzing tarot readings. One of my goals doing that is to learn deeply
full Clojure/Clojurescript web stack making quite complex project.
So, I am not one of those geniuses who make perfect things without
anybody's
First: transducers are a very cool idea, and I'm really looking forward to
clojure 1.7 release when we'll be able to use them in production code.
Now, clojure 1.7 is still alpha, so here's my feedback while it's not (too)
late.
transduce has a pretty unintuitive behaviour. Suppose, you've got
Hi Ron,
Could you please share an example of how to pull simple text from pdf/doc
files. I couldn't find a proper tutorial for clj-tika.
Thanks
On Friday, 3 January 2014 05:03:11 UTC+5:30, Ron Toland wrote:
If all you need is the text, you could use Apache Tika to extract it:
Hi,
I started learning Clojure this week and I'm a bit confused about the
general development process in the Clojure world.
When I write Java there is a main method as the entry of the program, and
in the IntelliJ IDEA it's kind of easy to run or debug the program by just
clicking the Run or
Maybe you just too used to programming in language that don't equipped with
REPL.
Typical development process I have is:
* analysis the problem, and design a few fn to solve it. Most of fn should
be functional, so you can easily test them.
* start a REPL, load that namespace, and test fns
Reducing functions have three arities:
0-arity: returns the initial state
1-arity: handles completion
2-arity: reduce step function
Using arities to denote different functionality is a little odd, but it
does make sense for functions like addition and conjoin:
(+) = 0
(+ 1) = 1
(+ 1
Maybe watching Rich Hickey's talk at the conj will make what is happening
clearer?
It's basically what James said, but with a lot more details and a few
examples.
On Friday, 5 December 2014, James Reeves ja...@booleanknot.com wrote:
Reducing functions have three arities:
0-arity: returns the
There is a big shift in mindset when switching to REPL-based development.
Essentially, with the Java workflow you describe, you are thinking of
launching and testing your whole application as a single unit.
What the REPL will let you do, which might not be immediately obvious
depending on your
clj-tika seems to be abandoned (and is marked as deprecated). You will
probably be better off using Tika directly through interop.
On Friday, 5 December 2014, Divya Shravanthi shravanthi...@gmail.com
wrote:
Hi Ron,
Could you please share an example of how to pull simple text from pdf/doc
I find these examples very memorable. Despite the doc strings clearly
stating the differences between transduce and reduce, one can still hastily
assume that transducing [0 1 2] will have 0 as the init argument.
I will add that the culprit is in defining the +ten's arguments with [
args] form,
Thanks for the answers!
BTW there isn't a word in the docs (http://clojure.org/transducers and
http://clojure.github.io/clojure/branch-master/clojure.core-api.html#clojure.core/transduce)
about the intended use of arity-1 of the reducing function f.
@Gary, thanks for suggesting to watch the
The docs cover this information under Creating Transducers, but it
doesn't make clear that the same pattern applies to reducing functions as
well.
- James
On 5 December 2014 at 14:15, Ivan Mikushin i.mikus...@gmail.com wrote:
Thanks for the answers!
BTW there isn't a word in the docs
Divya,
Here's a simple example for converting text from an input stream (which you can
convert any file into):
(ns sample.tika
(:require [clj-tika.core :as tika])
(defn extract-text
Extracts the text from the input stream
[input-stream]
(tika/parse input-stream))
Ron
--
Sent with
I made a couple of videos that might have some useful information in them.
The first one covers setting up Cursive and Intellij, which it sounds like
you've already done:
https://vimeo.com/103808402
The second looks a little at what sort of workflow you might use. It
doesn't go very far, but
Hello
My current contract is winding down, and I'm available for Clojure work,
preferably remotely. I have over 14 years Software Development experience.
And 5 years, directly in Clojure. That's all to say that I love it, and
maximizing expressive power in general. Currently, that also means
Hi All,
Just following up, I've been contemplating the idea of dynamic
values/time-varying state a lot in the context of my previous email. If
something that is deref-able (IDeref) is considered something that is
time-varying, then it also leaks that what uses it is impure.
If IDeref
Hi everyone,
The next Dutch Functional Programming day (NL-FP 2015) will take place on:
Friday, January 9th, 2015
at the University of Twente, Enschede, The Netherlands.
You are all cordially invited to participate, and of course, to give a
presentation. The day will end with a join
ClojureScript, the Clojure compiler that emits JavaScript source code.
README and source code: https://github.com/clojure/clojurescript
New release version: 0.0-2411
Leiningen dependency information:
[org.clojure/clojurescript 0.0-2411]
Feedback welcome!
### Enhancements
* forcing source
The REPL takes some effort if you're not used to it, but stick with it and
you shall be greatly rewarded!
Since it's such an interactive workflow, I feel that it helps to view
someone else use it. There's a great intro to Clojure video by Chas Emerick
where he develops a small web application,
You may also want to have a look at the system library. It ships with
readymade components, and it contains a full application example (if
minimal) to show how things work.
https://github.com/danielsz/system
On Friday, November 28, 2014 12:28:45 PM UTC+2, Colin Yates wrote:
Hi all,
Am I
Thanks Daniel.
On 6 Dec 2014 00:18, Daniel Szmulewicz daniel.szmulew...@gmail.com
wrote:
You may also want to have a look at the system library. It ships with
readymade components, and it contains a full application example (if
minimal) to show how things work.
Hi all,
Newly released Leiningen plugin for deploying production code with the
runit supervisor. Here is a complimentary blog post
http://danielsz.github.io/2014/12/06/lein-runit/.
The README contains installation instructions and usage examples.
https://github.com/danielsz/lein-runit
I'm getting the following warnings from `lein cljsbuild auto`. Anybody else?
WARNING: Use of undeclared Var cljs.core.async/do-alts at line 62
Hi,
Developing with cursive for almost half a year now, I still do use
Lighttable (http://lighttable.com/) a lot. I find it especially useful for
learning clojure as it delivers the most instant feedback I can think of by
giving back results directly in the editor.
So go and give it a shot,
24 matches
Mail list logo