Re: Most idiomatic way of splitting a string into sentences?

2013-07-06 Thread Lee Hinman
On 07/06/2013 09:42 AM, Denis Papathanasiou wrote:
> I have a plain text file containing an English-language essay that I'd
> like to split into sentences, based on the presence of punctuation.

If you want a natural language processing-based version of the a
sentence detector, clojure-opennlp[1] has the ability to detect and
split blobs of text into sentences.

;; Lee

[1]: https://github.com/dakrone/clojure-opennlp

-- 
-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: ANN Some backwards-incompatible changes in Cheshire 5.0.0

2012-11-21 Thread Lee Hinman

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Michael Klishin writes:

> Cheshire [1] is a mature and fast Clojure JSON serialization library by Lee
> Hinman.
>
> I am posting this here for the community to not go through the story
> we recently had with another popular JSON serializer that introduced
> major breaking changes that were never properly communicated.
>
> Cheshire 5.0.0 has some changes around serialization of custom types.
> Learn more in the change log:
> https://github.com/dakrone/cheshire/blob/master/ChangeLog.md
>
> Code examples in the README are updated and use 5.0 APIs.
>
> In case you need an example of a library that is already upgraded:
> https://github.com/clojurewerkz/support/commit/346be6bb28ef52a89f0c96ac213a4ca87ce47edd
>
> HTH,
>
> 1. https://github.com/dakrone/cheshire
> -- 
> MK

Just so everybody knows also; I did leave in all the original custom
code, so nothing will break when upgrading. The cheshire.custom
namespace has been deprecated, but will remain for quite a while until
I'm sure nobody is using it.

; Lee Hinman
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (Darwin)

iQIcBAEBAgAGBQJQrPyIAAoJEJ1kZdQ6zsrgfvUQAL1Ummvx+mU+oMmdELbPjM/R
Tt9CgmKXdmwHPO/+HUmnrIifpdrpgbJB5uFzMCGGCYQ4Gtuzy6AgvEKk/qq7XlD4
9nOBg4ORJJjqzCt1z9fdw4RHX6xp2CjkBNJpPxy4lCbJTj9ekOkRaUcQQLCQrWu0
HvfIwSG9cRPqjnWaWXlxdNofHrGrH5VE57hQuvBjyyjAbqk0bTvHWA0VW3kzcWHI
H9RiXEowOrKHE1VgQ3by0N/nVB+VW9GNjgxoB6qlZ3FBNEVtIvpDYHr6vJcIrfX8
EgiM7r/b76rFIlMMWEiQ3Enry4fQxnD6TM0XJVIvds0XlFFIiW0Mb5BSD/B+8i3F
yY7B6cCQzeAFpw5K/Pi3dfTlAcx1QxpxWJJj9bfVp/AxAl72fHvcnqsPfmeS66XO
niTlwnyvALzfGLTF7dADRNtsenuYw1P3foWVhrrnrj0aMTVcq9ZVl8IC9f+0O5pB
a8HCGLW8Z3M9pMC6aBaEiKZt6ee8EaO50rjzRKQDQHs13kwf0NoxiqKYPpxrjjTu
bPhhDlt1dqewWbpS2PuE/2/gXfsJqPPdyrOj34siVGG3zvnmF2PPrunNn/PtYOYq
iaZcBFpaY8NM3F4JKjfIhXPIWRoFfmEi/3/OEo7q3A65nPHsS9UTZCnEHomGawbg
UEJxMG2HyctwIMW1pl9H
=RKnb
-END PGP SIGNATURE-

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: [ANN] lein-sha-version plugin for leiningen project version based on git SHA

2012-11-20 Thread Lee Hinman

Hugo Duncan writes:

> lein-sha-version is a leiningen plugin that sets the project version
> based on the git SHA of the HEAD of the current branch. 
>
> It can be used to create jars with a fixed version, but without the
> trappings of a "full" release version. It provides a simple way of doing
> SNAPSHOT type releases without the disadvantage of having SNAPSHOT
> resolve to a moving target version.
>
> It is a leiningen middleware, and does not provide any leiningen
> task. It does not modify the project.clj file.
>
> See https://github.com/pallet/lein-sha-version for usage.
>
> Hugo

Actually, disregard, I read it wrong. I see why this would be useful
now.

; Lee

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: [ANN] lein-sha-version plugin for leiningen project version based on git SHA

2012-11-20 Thread Lee Hinman

Hugo Duncan writes:

> lein-sha-version is a leiningen plugin that sets the project version
> based on the git SHA of the HEAD of the current branch. 
>
> It can be used to create jars with a fixed version, but without the
> trappings of a "full" release version. It provides a simple way of doing
> SNAPSHOT type releases without the disadvantage of having SNAPSHOT
> resolve to a moving target version.
>
> It is a leiningen middleware, and does not provide any leiningen
> task. It does not modify the project.clj file.
>
> See https://github.com/pallet/lein-sha-version for usage.
>
> Hugo

Out of curiosity, doesn't maven's snapshot pining already do this?

; Lee Hinman

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: [ANN] Clojars Releases repository

2012-11-19 Thread Lee Hinman

Jeff Heon writes:

> As a starting point, the gpg website features native installers for both 
> Windows and Mac OS.
>
> http://www.gnupg.org

And for OSX:

https://www.gpgtools.org/

; Lee

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: [ANN] lein-clojuredocs 1.0.2, cadastre 0.1.1, and Eisago

2012-11-16 Thread Lee Hinman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 11/16/12 12:10 PM, Andy Fingerhut wrote:
> Very cool stuff, Lee!  And my sincere thanks for all the work you
> are doing to make ClojureDocs.org even more useful than it is
> already.
> 
> I tried out clojuredocs on a project that depended on Clojure
> 1.3.0.  When I first tried "lein2 clojuredocs", I got an exception
> like this:
> 
> Exception in thread "main" java.lang.RuntimeException: Unable to
> resolve symbol: mapv in this context,
> compiling:(cadastre/analyzer.clj:58)
> 
> Looks like cadastre uses mapv, and so depends on Clojure 1.4.0 or
> later.
> 
> Then I tried adding the following line to my project.clj:
> 
> :eval-in :leiningen
> 
> and repeated "lein2 clojuredocs", and it all appeared to work.  I
> don't know what I'm doing here, just hacking based upon the
> documentation for creating a project.clj file for code that doesn't
> have one already (like Clojure's contrib libs, which have only a
> pom.xml file).
> 
> If that :eval-in line looks like a good thing to recommend for
> everyone using this, it would be good to add it to the README.md,
> right near the first mention of the "lein2 clojuredocs" command.
> It might even be a good idea to show the exception above with a
> note like "If you see this exception, remember to add the :eval-in
> line to project.clj.
> 
> Does anyone know if there would be undesirable side effects to
> someone adding that :eval-in to their project.clj long term, even
> if the initial reason they added it was to run 'lein2 clojurecocs'?
> If there are, it would be good to mention that the line should be
> removed after running clojuredocs.
> 
> Thanks, Andy

Hi Andy,

I don't know the long-term ramifications of using :eval-in :leiningen
for the project to get it to work; instead, I would recommend bumping
the clojure version of your project to clojure 1.4.0 to run the plugin
(then bumping it back down if need be).

In the meantime, I will work on making cadastre 1.3 compatible (I
believe it's just the mapv function holding it back).

Thanks for the feedback!

; Lee

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (Darwin)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQIcBAEBAgAGBQJQpncGAAoJEJ1kZdQ6zsrg6FcQAJ0EMH08s08vOjD1lLViohMm
J15QX6zABfQIsmMXtIJhvGBrHTZf57dgR6f53B87rpRP2/RprAJe/t1j6MhUeMA4
LzZ2xVwia8uVD14EU81yFiyuw2PO4tlQXqC7hkKWuizKl+J6SCtKDJJFcjw1qUs1
25KJbd65p6Vsoj/gfnvAkY5jajclYPMYaSnBzrBxgd+mp5/L9psFLP0fyOiL0VEy
ElCp9MGmau9bzoXfTfWcwHtQoP3K2kJ/Sp83qCRxUjj9d9HR8glmOvcbjUDVfYef
UiUHiqugd8Ya2icVBsxcmQcn4OcKnd5m2cG4EtmGlN20kqwhweoguxhkspPwbrwl
FCldrYgBrw0+HCzFvMJX053rOLFq0b0O+M0ZYEwCksxhYgLqskKGm4lDIE+6HJdo
1TKptsbfg4sYvkN6CRYyU01WhoZ4WPE1NIPifE9JTm5EvUQ+IpWk1nSYz7OdbWzN
kgUgZo0aWyvjM24XDEtnvxhQIiJzqcIXoot0bjK1lpPtDpvzFCTDU3XcrAvJM8uc
p9TSQ0cDqKpmTxte7zs00UblBPOLCq6F6vDjA9C/1D957iPs8aRtc4oC6j8tD0Kb
P5RhDlTHcfR0ZfakixzuzL/TfDIHOp66xyKFYep16Ya+2cy8SVcfoRclmZN90tcC
b+3zt1IaEdLRAdJa7UDJ
=HxkI
-END PGP SIGNATURE-

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


[ANN] lein-clojuredocs 1.0.2, cadastre 0.1.1, and Eisago

2012-11-16 Thread Lee Hinman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi all,
I'm pleased to announce three different projects, all related to the
rewrite of ClojureDocs.

- ---
 First, the lein-clojuredocs[1] leiningen plugin, which goes through
your project's source code and produces a gzipped json file containing
all the metadata about your project. This gzipped json file is
intended to be uploaded to the new ClojureDocs in the future, see the
github page[1] for usage, or add this to your ~/.lein/profiles.clj:

{:user {:plugins [[lein-clojuredocs "1.0.2"]}}


- ---
 Second, the cadastre[2] library, which is the actual metadata
extraction library that lein-clojuredocs uses, provided as a separate
library for any other personal use. It also provides a mechanism for
extracting metadata from the Clojure project itself. It can be used
from Clojars by specifying (in your project.clj):

[cadastre "0.1.1"]


- ---
 Finally, I'd also like to formally announce Eisago[3], which is the
beginnings of an import mechanism, storage layer and API intended to
replace ClojureDocs once completely finished. It includes the `lein
eisago` plugin to import files generated by lein-clojuredocs into the
database, a laeggen-based API, a migration tool to import existing
clojuredocs examples, and a library to integrate with ElasticSearch
(which is used as a database and search engine). If you are at all
interested in ClojureDocs, I encourage you to check it out and try
running it yourself, and provide feedback to make the project better.
It is my intention to replace the http://clojuredocs.org site once the
website portion has been completed.

Eisago is not provided as a clojars artifact (since it's not a
library), please clone the git repo to run it and provide feedback.


- ---
 It is my hope with these 3 projects, the rewrite of ClojureDocs can
proceed with more community interaction and better feedback. Please
try all the projects with your libraries and projects and feel free to
open github issues or send me an email with any issues you find.


thanks,
Lee Hinman
@thnetos


[1]: https://github.com/dakrone/lein-clojuredocs
[2]: https://github.com/dakrone/cadastre
[3]: https://github.com/dakrone/eisago
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (Darwin)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQIcBAEBAgAGBQJQpmKeAAoJEJ1kZdQ6zsrgcowQALN/O1DfkTjV0P7KB2zGhLy+
V+3GaPxLLdZCjCjIyq2FF/0wRWtVOV/ET+FSRgi2Yke4F9uUAbANVG4qZDHMF+G/
YHj3MXWcXJ8nrU1DxkiDYBrasQbZG4cZTmri5/eJDYphlW/oOUHctgeq/1IoxUpc
O0tIBavBrhVtB9Qo676q61b6f26BKmuZu3s/NGbcFO2JP1joGXXitPN7AsEuJcT3
lyMOpYO/vXUO61Hnh5FapNd+Do0ZiyikQ4ogMfWKIAUbq6HupJiwPa/jLIwgJnjn
da72VDOTA4CNm6Uhbv81OGZVMiBwQVhsPSAWxAgF1XTU9m3YzsreJvPAa42afU29
hIz2jybAyuGNPTdav900ee++TOBWI5zDDFPp2AnxYQjx7G4g3r4Ce5VYdC44L+A5
Xfwo9tvkgewHOXowwBxKzCpNHjGhifbAKlN/lTp4sr5dWop8l4Obcx0es45UcxLw
rqIRi16So80FNadeTVE5s6vutzRNbDmiHiGyN/Pz3bsopCiXDJ2f3Q+M3DgSxkfm
lsyW9Yj9cCUm9D4tNdZJ6iZBAUFNEj92bRnl51YV6B+SU1YQkhn12KfVyaZzw5xp
RS0/Hm6OfTNNQu8rm/LaPfChu+aSj+jka99Gubix3v29bjgtJEurGygZBhbsXw+k
UngoYUEk5lz8CqKFLad1
=r6op
-END PGP SIGNATURE-

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Sonian is hiring Clojure developers

2012-10-31 Thread Lee Hinman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 10/31/12 7:07 AM, joegallo wrote:
> http://www.sonian.com/about/careers/software-engineer-clojure-cloud/
>
>  Come work at Sonian and you'll be writing Clojure full-time,
> working on interesting big data problems. The Sonian software stack
> comprises multiple applications tied together with queues and rest
> interfaces, focused on archiving and indexing over a petabyte of
> email. Everything runs in the cloud (hundreds of nodes), and is
> thoroughly automated: Want to check if your branch is good? Ask our
> IRC bot (written in Clojure) to run tests on it! Tests passed? Ask
> the bot to merge your branch!
> 
> Our team is fully remote, but we emphasize pairing with tmux and
> Skype (and emacs!). In addition to Clojure/conj, a few times a
> year, everybody gets together for a week in Boston to talk and
> hack together.
> 
> If you want to know more, email me (joe.ga...@sonian.net), or if 
> you've already decided to apply, send your resume, cover letter, 
> github account, etc, to j...@sonian.net. Use subject line
> "Software Engineer, Clojure / Cloud".
> 
> All the best, Joe
> 
> (We're also hiring Ruby/Rails devs, btw!)

We are also hiring for an another Clojure position, with more of a
search focus:

http://www.sonian.com/about/careers/software-engineer-search-engine-cloud/

; Lee Hinman

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (Darwin)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQIcBAEBAgAGBQJQkV7DAAoJEJ1kZdQ6zsrgeswP/RS8hbHvmUmDc61p6QbRmSVG
3/mwzSTbRGE7iR9tgFQJtKyAriR6CjLEvVH/goH0KePm2qR87IYkiHxztcg1jeaZ
Oqsef/Qu1SRYDnoDQfGG6V/HBpy4ImideGDanz0whfhwG5ZBP9Uie70fs+1ci7br
G/rZYjK+ipxwLqi9k5JZrIdXidpV0y5JDLFeN8jtuq6yHKqntplEhh6XEz5XYXOj
xAUKlD0dwHEtkIJt8PP44aOFRWavb9CWsnSq085cetizpJItz/Y4fK5/fkXFtZD0
Cf74046PicgLsDebE2mgiYnKx2YxbYeVk6EYYo6dJJhpIAU4dkEENKwjgu5FehoX
fKOt6F0/bhcCiqbVoQbSMR81Pms84puaDYJ2lKSovBJrKYrYfD41KPW62LNgIf/i
DyuEy8hJlTbh258pN/8AJ0AbG3vakFqMBPE6qzwsoKyUQN9MIUq8soNDJOxmBpy1
TH/Br9ptoRc7Ps1wXyBcc5BkLZBFYPvVpvS6WK3cn4nRaP0ZIUur77/Cc+8I0LkX
CVS/Q7ralvzdcqjeD6tdIWSwN95lH9MpmWUmP4AigWO+JbdS8CYBcqTfrbBSF5Hb
FEt2cJnMMApvuxR4VKei8RUga/sdsl3Rst+GaHyZHI8GryPZdiNPHCaxufjI2LIf
5/mKUn+BfmGZXG/49nF6
=6Cec
-END PGP SIGNATURE-

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: ANN: a Clojure docs site, and github organization

2012-10-10 Thread Lee Hinman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andy,

On 10/10/12 1:30 PM, Andy Fingerhut wrote:
> Michael, thanks for the detailed response, and I appreciate the
> effort you are putting forth in the clojure-doc.org
> <http://clojure-doc.org> site.
> 
> I do have some followup questions on clojuredocs.org 
> <http://clojuredocs.org>, since you gave some description of what
> you hope and/or expect to happen there.
> 
> On Oct 5, 2012, at 1:52 PM, Michael Klishin wrote:
> 
>> And then there is the API reference part. The goal is to rewrite 
>> clojuredocs.org <http://clojuredocs.org/> source parser to
>> produce JSON and migrate DB schema to support multiple versions.
>> Ideally, clojuredocs.org <http://clojuredocs.org/> will be
>> Clojure end to end. But this will take a while and the reference
>> part is not nearly as bad as it is with the guides and
>> tutorials.
> 
> *Whose* goal is it to make those changes to clojuredocs.org 
> <http://clojuredocs.org>?

It's my goal, I have already have an extractor
(https://github.com/dakrone/lein-clojuredocs) that works for leiningen
projects as well as clojure's source. What is currently lacking is an
import workflow as well as some kind of frontend to transition the
existing examples to.

> Someone that is willing and able to write the code, has the time to
> do it, and is authorized to make changes to the clojuredocs.org 
> <http://clojuredocs.org> site?

I also have access to the machine that clojuredocs.org is running on,
and the credentials for the MySQL database, having developed the
current API and helping Zach get it started.

> I ask not because I expect anyone to make these changes, but
> because you sound like you might know the answer, i.e. maybe you
> have been in communication with those people.

Feel free to ping me on irc (dakrone) if you want to talk more about
it, or jump into the #clojure-doc IRC room.

- - Lee Hinman

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (Darwin)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQIcBAEBAgAGBQJQdfGVAAoJEJ1kZdQ6zsrgbYEP/3GBOZWelF6GKziaolpFpoDz
q0rGitrkVyLBCwxtbChDj9KXyDu62rWtBLRbID3uBfxZRdWrAdDqo5NKCX9QrkQh
W7qQb6j8rlJEuwlJZVn7ZlwP7S2fxugTtLt0p7RUW1Mzr5vokfiLkjkawvPfE0vk
3T6B7a0BPznkNne2xtv1x/Urn2bB+faku6Kqs0xcvvRtzXC/jHhQ5nKzYr4xzh/m
Ge9xVXLkpef0USlKe26v8jt06aGJvz/xQC40Djzeb8X+II+8ryo/uOa/bFqEnfpR
lYkbyODkSKzzuJoY/zTlhtI+mcPYre6q8i+Kkgh7LUl6C8kmpBDD2NprS8O10ZI8
037goOnJDZLIjG/bvjtWEvlfAgttMhye34k5rBVxR742Q14WcLaS4mbn2QTF7b4h
+BFncDyMKyRp9aE3Xg3EcMmG9Jj7vopPJHQwdCJwXJKwc0QSZxQEn6lW/AYPOeXe
qnJx3sue1aIdWM3KqC4fvlt9OBrGWXav53ERGfL7uDhvx5j1nWW3N5wUm5D3l6cj
fHWbkJgKrSRjNHdckcL+s0uATF/NZAVBVeqy4C1T6zLKeayLRCzPaQmlt/GUmIMq
DifTLKTIMNFfGH+5VcHYsr4jiuxnOoIgvR7evKSxDmfIKb0yPNKry3QzINFEuA9J
1EVt3g7zVYCp/F7eIWnl
=Itve
-END PGP SIGNATURE-

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


[ANN]: clj-http 0.5.3 released

2012-08-14 Thread Lee Hinman
Hi all,
I'm pleased to announce the 0.5.3 release of clj-http. clj-http is an
idiomatic clojure http client wrapping the apache client (like ring in
reverse). You should be able to use it from Clojars[1] using leiningen
with the following:

[clj-http "0.5.3"]

Since I have not announced releases of clj-http since 0.3.2 (I hate
writing release emails), here are the new features that have been added
since 0.3.2:

- add support for :digest-auth (digest-type authentication)
- add request timing middleware to add :request-time key in response
- send cookie-store cookies with a request automatically
- standardize on lower-case headers for HTTP requests (ring-spec)
- add chunked encoding support (:length no longer required along with
input stream body)
- fix clojure 1.3's exception wrapping for some exceptions
- support http.nonProxyHosts property
- change body decompression to be optional, if desired
- add ability to specify a low-level callback for debugging
- add ability to specify the keystore type
- add ability to add pluggable output coercion (multimethod)
- support custom x509 keystore/trust-stores
- fixed an issue where multiple link headers would cause an exception to
be thrown
- add :debug-body that adds plaintext body information to the :debug output
- add support for :oauth-token authentication
- add ability to save the apache HTTP object when :save-request? is true
- support additional options/delete/copy/move/patch HTTP methods
- add support for 'Link' header
- add ability to specify your own retry-handler for IOExceptions
- change wrap-redirects to redirect according to the RFC and add the
:force-redirects option to be more browser-like
- add support for nested param maps
- add support for cookie stores
- add utility methods to retrieve cookies as a map from the cookie store
- set the default maximum number of redirects to 20
- Cheshire will no longer interfere with clj-json
- make Cheshire an optional dependency, only for {:as :json} and json
form-params
- add status functions into the clj-http.client namespace
- add the ability to specify {:as :clojure} to get back a clojure
datastructure, or {:as :auto} with content-type=application/clojure
- support json-encoded form params
- allow :form-params on PUT requests
- add the :throw-entire-message? option to include resp in Exception message
- add ability to redirect to relative paths

And a very large number of bug fixes.

Please give it a try and open any issues on the github repo[2] that you
find. Check out the readme for the full information and usage and the
changelog[3] for a detailed list of changes.

thanks,
Lee Hinman

[1]: http://clojars.org/clj-http
[2]: https://github.com/dakrone/clj-http
[3]: https://github.com/dakrone/clj-http/blob/master/changelog.org

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: [ANN] Datomic Free Edition

2012-07-24 Thread Lee Hinman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 7/24/12 9:21 AM, Rich Hickey wrote:
> We released a new edition of Datomic today that I think will be of 
> interest to Clojure developers - Datomic Free Edition:
> 
> http://blog.datomic.com/2012/07/datomic-free-edition.html
> 
> This edition is oriented around making Datomic easier to get, and
> use, for open source and smaller production deployments. Of note
> here is that Datomic Free Edition, in addition to being free, comes
> with a redistributable license, e.g. you can put the Datomic Free
> Edition jar in Clojars.
> 
> Datomic Free Edition provides a free database and datalog engine to
> all developers. When combined with Clojure, I think it provides a
> unique path Out of the Tar Pit [1]. I look forward to seeing
> wonderful things created by the Clojure community with this potent
> combination of tools.
> 
> Rich
> 
> [1] http://shaffner.us/cs/papers/tarpit.pdf

The installation instructions for the free version of datomic don't
work; they give this command to install locally:

mvn install:install-file -DgroupId=com.datomic -DartifactId=datomic
- -Dfile=datomic-0.8.3331.jar -DpomFile=pom.xml

Which references the pom.xml file, which does not exist, causing this
error:

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-install-plugin:2.3.1:install-file
(default-cli) on project standalone-pom: File not found
/Users/hinmanm/Downloads/datomic-free-0.8.3331/pom.xml:
/Users/hinmanm/Downloads/datomic-free-0.8.3331/pom.xml (No such file
or directory) -> [Help 1]

Looks like a pom.xml file needs to be included in the free version zip
archive.

- - Lee Hinman
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJQDtrSAAoJEJ1kZdQ6zsrgjiAP/R+h6Z8r0Dldd0+PL7jkm6zj
RJOqdXwHqKHUDbB8JSM1YrJVJG3CCf5HGTnRlxJ1GhMf6tZ6ncMJvx9P18mVuI6f
/mJMZqMBUmjPaHmqn9/WK7ZPiCmRh5e7jsoKcSRINv6R3dgf1PWU6oEmn2iRRRXf
HfeQiizW4zAYKEPDmdOhxPnBUzcU3FZsVww9jN2EHnSHbvYWUIB8NvdJcgyGxT99
9qeQXrlT1HumyNu5C2K9w5Vqreb0Y38Zose8egfXUTGqkKSKBE5TkrWxWBJGYCSp
0PuyI5Q6nGMiuJXwZgNgPuc5qCH8hjIdI0V9HNn+Sgq1RbhiwMNwia5daITwpzXC
bycqBuCoBwqM2PG4W5xbwMBI4MJc/57IgurXsrs5nQwDlsKIWYHmLAc6pkq81zNu
rPyxLAiR6Nt2DBLYgZNvQPq2RvgSU/pq4n/RchvLuB2kOIVrYhMzrdHOiLBZH9i7
GUE6XSiMWSKLSGWU4GruEb+ZI3f0dcqBif93WJAeCQWGV+x+EtLvzqDiAlmly8bh
Hc9tRIDm//F9uQVaIyEfFflHatMVzykIASGmAkGDddl4fWkYkU34CFFFnBpHc0Jj
GuRYQyOrGs0ztkCWvtHDm0PmklIPrTeMkvgYEnjaiOKTYybbuEE1icwozG/qCDxD
7Dw/159RJ4AzwXKhyGEn
=GLOQ
-END PGP SIGNATURE-

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


[ANN] Itsy 0.1.0 released, a threaded web spider written in Clojure

2012-05-31 Thread Lee Hinman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi all,
I'm pleased to announce the initial 0.1.0 release of Itsy. Itsy is a
threaded web spider written in Clojure. A list of some of the Itsy
features:

- - Multithreaded, with the ability to add and remove workers as needed
- - No global state, run multiple crawlers with multiple threads at once
- - Pre-written handlers for writing to text files and ElasticSearch
- - Skip URLs that have been seen before
- - Domain limiting to crawl pages only belonging to a certain domain

You should be able to use it from Clojars[1] with the following:

[itsy "0.1.0"]

Please give it a try and open any issues on the github repo[2] that
you find. Check out the readme for the full information and usage.

thanks,
Lee Hinman

[1]: https://clojars.org/itsy
[2]: https://github.com/dakrone/itsy
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJPyDu+AAoJEJ1kZdQ6zsrgseoP/0j4HZ4k0Ok0f2u4HB7xm1kc
V5oE67kqXKCJq7Nb4LQexbxEwbpQF1u6Zg9o7CvtUeMtLkQXAozIjJkk0H05HtEy
lXINNupW2AylXnTzMd75E0ydeY+pvyNrG1EY5W1i5CcKhiruNcAQUNxh4UeCmMw2
G/TBhENW+24KtFEJBd1sum2+o86atMHxvlNruwheLYtzq1iSUbpJe6oZu0EzZaa7
DlrG1r8Gv77Tgbf+pYtFr+Bpf+ILaojh1lBJwb/8jPbaLwrI/TE4qdnOA+BERn0F
7qtNErxq5UBVhrYh9Nit53ZEyDkHLYGWc0P39F8nFfWeWN9C8hAd9GWFddyZw3xL
eop7IF0XerGdPaM93qfnKDMJLUFGfakBeP4hZIH1k5Ouoou+ffqbIZbzKK4yQwlt
9VFKq7z0CsoNQ+sMwPWHjXTqNj62k1DYo1iyGFc0RHLyujuGtOna6ksh10PopIpz
JxZX+txYXI5MsxLo6zGqHbuartXxhNUtoloYBi3BkD1Knmf5qYR/Irlzcy4TUIov
QK/UNtvESSapKO/95HUgnw9wi0UDpOLHFTBTFU2XZkvNAalLwMLX9YZwAH79+htY
C4cKLZjkME7wkvgq/HaMbRsPNuuJN8oBqDpmNzKW2DlJ6TZIdcjlgAVDBFL9oI1+
mMlBkEVBNGMK+9dWMHur
=BcLy
-END PGP SIGNATURE-

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: [ANN] Clojure Namespace Browser (clj-ns-browser "1.0.0")

2012-05-18 Thread Lee Hinman


On Friday, May 18, 2012 5:39:48 PM UTC-6, Lee Hinman wrote:
>
>
> On Thursday, May 17, 2012 7:12:35 PM UTC-6, 
> thenwithexpandedwingshesteershisflight wrote:
>>
>> it's ok I found the problem: it was due to another dependency, Aleph 
>> 0.2.1-SNAPSHOT, which depends on Apache HTTP components which are older 
>> versions than those used by ns-browser
>
>
>
> I have a pull request in to fix this for aleph [1].
>
> - Lee
>
> [1]: https://github.com/ztellman/aleph/pull/60
>

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: [ANN] Clojure Namespace Browser (clj-ns-browser "1.0.0")

2012-05-18 Thread Lee Hinman

On Thursday, May 17, 2012 7:12:35 PM UTC-6, 
thenwithexpandedwingshesteershisflight wrote:
>
> it's ok I found the problem: it was due to another dependency, Aleph 
> 0.2.1-SNAPSHOT, which depends on Apache HTTP components which are older 
> versions than those used by ns-browser



I have a pull request in to fix this for aleph [1].

- Lee

[1]: https://github.com/ztellman/aleph/pull/60

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: clj-http and boundary in the POST request

2012-04-03 Thread Lee Hinman
On Apr 3, 12:55 am, Jimmy  wrote:
> Hi all,
>
> The REST endpoint I need to call requires multiple boundaries in the
> POST request.  Does any one know how to do this in clj-http?  Lets say
> my header had the following boundary
>
> Content-Type    "multipart/form-data; boundary=the_message_boundary"
>
> How could i create a body with multiple boundaries such as -
>
> --the_message_boundary
> Content-Type: application/json
> {"Subject":"this is a subject", "Secure":true}
>
> --the_message_boundary
> Content-Type: application/json
> {"Recipient": "y...@you.com"]}
>
> ..etc etc
>
> Thanks,
> Jimmy

Would it be possible for you to create the body, and pass it in as a
regular :body option in the request? Or, do you need clj-http to
create this type of request automatically?

What about using something like this?

(defn make-body
  [boundary body]
  (str boundary "\n"
   "Content-Type: application/json\n"
   (json/encode body) "\n"))

(defn create-multi-bodies
  [boundry bodies]
  (clojure.string/join "\n" (map (partial make-body boundary)
bodies)))

- Lee

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: cld 0.1.0 - Clojure Language Detection

2012-02-29 Thread Lee Hinman
On Tuesday, February 28, 2012 6:03:26 PM UTC-7, Robin Kraft wrote:
>
> Awesome! I'm seeing some inconsistency though. Does anyone know why a 
> Bayesian classifier would produce such different results? Could it be 
> because of the short input text? 
>
> (lang/detect "My name is joe") 
> ["af" {"af" "0.8571390166207665", "lt" "0.14285675907555712"}] 
>
> (lang/detect "My name is joe") 
> ["af" {"af" "0.857138268895934", "fi" "0.14285706394982348"}] 
>
> (lang/detect "My name is joe") 
> ["af" {"af" "0.7142834459768219", "hr" "0.14285657945126254", "lt" 
> "0.14285645678764042"}] 
>

Yes, language-detect does a fuzzy matching-letter-frequency-count (the 
non-scientific name for it) sort of algorithm in an attempt to quickly 
determine the language, so for shorter text, it has a higher chance of 
being incorrect (because there is less letter frequency to analyze). Give 
it a try with a longer input string.

Additionally, you could adjust the :smoothing option for the string, or 
pass in a map of probabilities in as a :prior-map to coerce it one way or 
the other manually.

- Lee
 

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

[ANN] cld 0.1.0 - Clojure Language Detection

2012-02-27 Thread Lee Hinman
Hi all,
I'm pleased to announce the initial 0.1.0 release of cld (Clojure
Language Detection). CLD a tiny library wrapping language-detect[1]
that can be used to determine the language of a particular piece of
text very quickly. You should be able to use it from Clojars[2] with
the following:

[cld "0.1.0"]

Please give it a try and open any issues on the github repo[3] that
you find. Check out the readme for the full information and usage.

Also soliciting better names for the project than 'cld' :)

thanks,
Lee Hinman

[1]: https://code.google.com/p/language-detection/
[2]: http://clojars.org/cld
[2]: https://github.com/dakrone/cld

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


[ANN] clj-http 0.3.2 released

2012-02-13 Thread Lee Hinman
Hi all, 
I'm pleased to announce the 0.3.2 release of clj-http. clj-http is an idiomatic 
clojure http client wrapping the apache client (like ring in reverse). You 
should be able to use it from Clojars[1] with the following: 

[clj-http "0.3.2"] 

New features and bug-fixes (since 0.3.0):
- added ablity to return the body as a stream with {:as :stream}
- check for nil URLs when using client functions
- added ability to specify maximum number of redirects
- add :trace-redirects to the response map (a list of the redirection URLs)
- allow GET requests with a :body set
- allow strings or keywords for :scheme in requests
- remove more reflection
- allow per-request proxy settings in the option map

Please give it a try and open any issues on the github repo[2] that you find. 
Check out the readme for the full information and usage. 

thanks, 
Lee Hinman 

[1]: http://clojars.org/clj-http 
[2]: https://github.com/dakrone/clj-http

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: clojure-opennlp

2012-02-13 Thread Lee Hinman
On Feb 11, 2012, at 7:20 AM, Jim foo.bar wrote:

> HI everyone,
> 
> I was just wondering whether anyone has used the clojure-opennlp
> wrapper for multi-word named entity recognition (NER)? I am using it
> to train a drug finder from my private corpus and even though i get
> correct behavior when using the command line tool of apache openNLP
> when trying to use the API i only get single-words entities
> recognised!!! I've opened up a thread in the official mailing list
> because initially i thought there was a genuine problem with openNLP
> but since the command line tool does exactly what i want i'm starting
> to think that it might not be openNLP's fault but either in my code or
> in the clojure wrapper...
> 
> I've followed both the official tutorials and the wrapper
> documentation and thus i am doing everything as instructed...
> I know the name finder expects tokenized sentences and i am indeed
> passing tokenized sentences like this:
> 
> (defn find-names-model [text]
> (map #(drug-find (tokenize %))
> (get-sentences text)))
> 
> It is very strange because i am getting back "Folic" but not "Folic
> acid" regardless of using the exact same model i used with the command
> line tool...
> 
> Any help will be greatly appreciated...
> Regards,
> Jim

I have inquired on the OpenNLP mailing list about a way to train a tokenizer 
not to automatically split on spaces, if I hear back a way to do it I will add 
it to clojure-opennlp.

- Lee

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


[ANN] clj-http 0.3.0 released

2012-01-31 Thread Lee Hinman
Hi all,

I'm pleased to announce the 0.3.0 release of clj-http. clj-http is an
idiomatic clojure http client wrapping the apache client (like ring in
reverse). You should be able to use it from Clojars[1] with the
following:

[clj-http "0.3.0"]

New features and bug-fixes:

- Added the ability to ignore unknown host if desired
- Use much better Entity’s for the body, depending on type, removing
extraneous :body copies
- Fixed url-encoding of multiple query params using the same key
- Fixed decoding cookies that don’t follow RFC spec
- Better output coercion, adding {:as ""},
{:as :json}, {:as :json-string-keys} and {:as :auto}
- Better input coercion, supporting bodies as Strings, InputStreams,
Files and byte-arrays
- Less reflection

Please give it a try and open any issues on the github repo[2] that
you find. Check out the readme for the full information and usage.

thanks,
Lee Hinman

[1]: http://clojars.org/clj-http
[2]: https://github.com/dakrone/clj-http

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


[ANN] Cheshire 2.1.0 released

2012-01-26 Thread Lee Hinman
Hi all,

I'm pleased to announce the 2.1.0 release of Cheshire. Cheshire is a
very fast JSON and SMILE encoding library that supports custom type
encoding. You should be able to use it from Clojars[2] with the
following:

[cheshire "2.1.0"]

New features and bug-fixes (since the last announcement of 2.0.3):

* Cheshire now allows user-creatable generator factories, allowing
access to the underlying Jackson configuration options
* Even better performance
* Customizable decoding of arrays into different types
* Better encoding of non-resolvable symbols and ns-qualified symbols

Please give it a try and open any issues on the github repo[1] that
you find. Check out the readme for the full information and usage.

thanks,
Lee Hinman

[1]: https://github.com/dakrone/cheshire
[2]: http://clojars.org/cheshire

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Do you use Monads in your real clojure applications

2012-01-03 Thread Lee Hinman
We use monads within one of our work project, but not to any large
amount.
It mostly boils down to using the Maybe monad to avoid giant nested if-
lets.

- Lee Hinman

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


[ANN] Cheshire 2.0.3 released

2011-11-26 Thread Lee Hinman
I'm happy to announce the release of Cheshire 2.0.3. Cheshire is a
very fast
JSON encoding library that supports custom type encoding. You should
be
able to use it from Clojars with the following:

[cheshire "2.0.3"]

New features:

* Support for Ratio and BigDecimal encoding for both regular and
custom encoding

Please give it a try and open any  issues on the github repo[1] that
you find. Check
out the readme for the full information and usage.

thanks,
Lee Hinman

[1]: https://github.com/dakrone/cheshire

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


[ANN] clj-http 0.2.5 released

2011-11-26 Thread Lee Hinman
I'm happy to announce the release of clj-http 0.2.5. You should be
able to use it from Clojars with the following:

[clj-http "0.2.5"]

New feature:

* Multipart form uploads

Many people have requested this feature, please give it a try and open
any
issues on the github repo[1] that you find. Check out the readme for
the full
documentation of the feature.

A full list of user-visible changes is here:
https://github.com/dakrone/clj-http/blob/master/changelog.org

thanks,
Lee Hinman

[1]: https://github.com/dakrone/clj-http

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: clojure-opennlp

2011-11-17 Thread Lee Hinman
On Nov 17, 10:15 am, labwor...@gmail.com wrote:
> That's probably an OpenNLP question, but here it goes. Is there a way to
> tell the tokenizer to make tokens of more than one word according to a
> multi-word lexicon?
>
> Thanks for any ideas.
> melipone

Not sure I understand what you're trying to get at 100%, but you
should be able to train the tokenizer to split words however you'd
like, take a look at the training documentation[1] and feel free to
email me if you run into any snags.

- Lee Hinman

[1]: https://github.com/dakrone/clojure-opennlp/blob/master/TRAINING.markdown

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


[ANN] clj-http 0.2.4 released

2011-11-12 Thread Lee Hinman
I'm happy to announce the release of clj-http 0.2.4. You should be
able to use it from Clojars with the following:

[clj-http "0.2.4"]

Main highlights:

* (with-connection-pool ...) is now supported, allowing reuse of a
connection pool to greatly increase the speed of multiple requests.
* :basic-auth can be specified as a string or a vector now

This is the first release of clj-http that supports connection
pooling, so please give it a try and open any issues on the github
repo[1] that you find. Check out the readme and docstring for the full
documentation of the feature.

A full list of user-visible changes is here:
https://github.com/dakrone/clj-http/blob/master/changelog.org

thanks,
Lee Hinman

[1]: https://github.com/dakrone/clj-http

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: An open call to the community: Let's prepare for 1.3

2011-09-03 Thread Lee Hinman
I recommend the lein-multi plugin for testing against multiple
versions of Clojure: https://github.com/maravillas/lein-multi

Makes it easy to make sure you continue to support both 1.2 and 1.3
for a while.

On Sep 3, 1:27 pm, Chris Granger  wrote:
> Hey Folks,
>
> With the release of 1.3 growing ever nearer, it's time that we as a
> community do everything we can to make the migration smooth. In general,
> this means relatively simple changes to the libs under your control, but I
> also think we should take this opportunity to do some house cleaning.
>
> If you maintain a clojure library (even if "library" just means some random
> thing up on github that a few people use), please consider doing the
> following over the next few weeks:
>
>    - *Try migrating your lib to 1.3*
>       - Create a 1.3 branch
>       - Remove earmuffs around any non-rebound vars
>       - Add earmuffs to any vars that are rebound using thread-level binding
>       - Add ^:dynamic to these vars
>       - If you rely on the built in Numerics, check to see if the new
>       
> changesin
> 1.3 affect you.
>    - *Do some house cleaning*
>       - If you are no longer maintaining this library, simply note so at the
>       top of your Readme. If the reason is that a better alternative has 
> spring
>       up, link to it.
>       - Take a look at your dev dependencies and determine if any of them
>       should remain in light of the ability to globally install
> leiningen plugins.
>       *If you have swank-clojure as a dependency, please remove it*: this
>       has been the source of numerous issues.
>
> None of these are complicated or particularly time consuming, and the impact
> they will have as people try to migrate forward will be tremendous. Also,
> don't fall into the trap of thinking "no one could possibly be using this
> tiny project" - I bet they are and bet they'll want to continue to :)
>
> If I've missed some steps, please reply with them. Are there more house
> cleaning things we should do? Have you run into any other issues migrating
> to 1.3 (the steps listed here were purely what was necessary for me and the
> few others I've talked to)?
>
> Cheers,
> Chris.

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: JSON library for clojure 1.3

2011-07-22 Thread Lee Hinman
On Jul 22, 3:05 pm, Islon Scherer  wrote:
> Is there a clojure json library that works in clojure 1.3?
> I tried danlarkin/clojure-json but it gives me error:
> java.lang.IllegalArgumentException: Unable to resolve classname:
> IPersistentMap, compiling:(org/danlarkin/json/encoder.clj:144)

Check out Cheshire also: http://github.com/dakrone/cheshire

It's based off of clj-json, but more up to date.

- Lee

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Can't "recur" from within a "catch" expression.

2011-03-18 Thread Lee Hinman
If you need a library for automatic retry (which it sounds like from
your example), I'd check out this sweet library by Joe Gallo:
https://github.com/joegallo/robert-bruce (it uses trampolining
retries).

- Lee

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Newbie question

2010-11-16 Thread Lee Hinman
On Tue, Nov 16, 2010 at 9:34 AM, Lee Hinman  wrote:
> On Fri, Nov 12, 2010 at 1:54 PM,   wrote:
>> Which natural language processing tools have you used that worked well with
>> clojure?
>
> I've had good luck with clojure-opennlp -
> http://github.com/dakrone/clojure-opennlp
>
> However, I may be a bit biased since I wrote it :)
>

You should also check out Aria's work with NLP and Clojure:

https://github.com/aria42

- Lee

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Newbie question

2010-11-16 Thread Lee Hinman
On Fri, Nov 12, 2010 at 1:54 PM,   wrote:
> Which natural language processing tools have you used that worked well with
> clojure?

I've had good luck with clojure-opennlp -
http://github.com/dakrone/clojure-opennlp

However, I may be a bit biased since I wrote it :)

- Lee

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: ClojureDocs is in Beta

2010-10-20 Thread Lee Hinman
On Wed, Oct 20, 2010 at 10:46 AM, zkim  wrote:
> Hey All,
>
> ClojureDocs is now in beta, relevant info below.
>
> Site:  http://clojuredocs.org
> Beta Info:  http://clojuredocs.wordpress.com/2010/10/19/clojuredocs-beta/
> Main Repo:  http://github.com/zkim/clojuredocs
>
> Thanks, Zack.

Hey All,

Just wanted to chime in that ClojureDocs now has an API as well.

Site:  http://api.clojuredocs.org
Repo: http://github.com/dakrone/cd-wsapi

- Lee

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Why so?

2010-09-05 Thread Lee Hinman
On Fri, Sep 3, 2010 at 10:01 AM, Alan  wrote:
> A very handy web page to have around; thanks for mentioning it. It
> looks nice too, but the accessibility is a bit poor - when I look at
> it with an increased text size, the CSS quickly falls apart and
> renders it confusing and/or unreadable. So if the maintainer for that
> site is on this newsgroup somewhere, maybe you could look at it?

I'll mention it to Zach, thanks for the heads up.

- Lee

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


API for ClojureDocs.org

2010-09-02 Thread Lee Hinman
Hi All,
As Zach announced in the ClojureDocs mailing list [1], I'm going to be
working on the API for ClojureDocs.org in the coming future. I was
hoping to get some feedback regarding what people wanted to see for an
API for ClojureDocs:

- What kind of features would you like to see in the ClojureDocs API?
- What kind of output would you like to see from the API? (json,
clojure datastructures, xml, plaintext)

Any other feedback is highly appreciated :)

- Lee Hinman

[1]: 
http://groups.google.com/group/clojuredocsorg/browse_thread/thread/eb2457a778647bc5

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Idea for personal Clojure project

2010-07-29 Thread Lee Hinman
On Wed, Jul 28, 2010 at 2:58 PM, Daniel  wrote:
> I want to write a clojure program that searches for similarities of
> words in the english language and places them in a graph, where the
> distance between nodes indicates their similarity.  I don't mean
> syntactical similarity.  Related contextual meaning is closer to the
> mark.
>
> For instance: "fish" and "reel" don't have much similarity, but in the
> context of fishing they do, so the distance in such a graph wouldn't
> be very large.
>
> I'm sure research has been done in this area (I suspect with no small
> portion belonging to google), so can anybody point me in the right
> direction?
>
> Thanks.

I've started some work with natural language processing and Clojure in
my clojure-opennlp library - http://github.com/dakrone/clojure-opennlp
, it may be useful to you, however it looks like you're interested
more in semantic processing instead of grammatical/syntax processing,
so I'm not sure if it entirely fits your need. Just thought I'd throw
it in.

- Lee

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: fast development through clojure repl

2010-07-29 Thread Lee Hinman
On Tue, Jul 27, 2010 at 11:32 AM, Peter Schuller
 wrote:
>> I, however, have still been doing a more traditional
>> write/save/execute debugging workflow without the REPL, which doesn't
>> seem to get the real benefits of the REPL.  From what I understand,
>> when you take full advantage of the REPL, you can quickly tweak things
>> in the code like if a function breaks, you can rewrite it and start
>> again.  Say for example a GUI is opened and a button press calls some
>> clojure function.  If there's a bug in that, I can redefine that
>> function in the REPL and just click again on the button to continue
>> without losing the state of the program when I recompile.  Is this
>> correct?

I didn't see any mention of an editor choice in your message, I would
recommend getting started with the Clojure plugin for your editor of
choice (be it Vim, Emacs, Eclipse or anything else) based on the
instructions here:
http://www.assembla.com/wiki/show/clojure/Getting_Started , most of
the editors there have some kind of interactive REPL that sounds like
it would be helpful for you.

> There is something similar for vim (I'm sure a vim user will chime in).

Vim's equivalent is VimClojure -
http://kotka.de/projects/clojure/vimclojure.html

The way I use VimClojure is spawn an in-editor REPL and have
vimclojure eval the file, then I can use the methods defined in the
file from within the editor's REPL, if I change a function VimClojure
has keybindings to eval a form, which updates the definition of the
method and I can try it from the REPL again without reloading
anything.

- Lee

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: ClojureDocs.org

2010-07-16 Thread Lee Hinman
Had another suggestion,

As an example contributor, It would be really nice to see a list of
functions that have no examples yet at a glance, so if I wanted to
work on adding examples I could go through a list and work on
functions that have no examples. I believe the clojure-examples
appspot wiki used to dim out functions that didn't have any examples
(I don't think it does this any more), which was very helpful.

If we did this, we could even have a percentage meter to work toward
100% API example coverage :)

- Lee

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: ClojureDocs.org

2010-07-09 Thread Lee Hinman
On Fri, Jul 9, 2010 at 2:32 AM, zkim  wrote:
> Hi All,
>
> Questions / thoughts?
>
> -Zack

Hi Zack,
First off, I think it looks great, and it definitely seems useful when
trying to find an example of a particular API call.

Few suggestions:
1. The headers for each section (Doc, Source, Example(s)) don't
differentiate themselves from the regular doc text enough, maybe
bold/underline/color them to make them show up more?
2. The links to the source code should link to
http://github.com/clojure/clojure, I believe the richhickey clojure
repo has been transitioned there.
3. I know non-confirmation logins are really nice, but should the site
attract any spammers, you may want to look at adding an email account
confirmation (since spammers could go nuts adding comments to pages).

Looks awesome, hope it gets some love from the Clojure community.

- Lee

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: ClojureDocs.org

2010-07-09 Thread Lee Hinman
On Fri, Jul 9, 2010 at 2:32 AM, zkim  wrote:
> Hi All,
>
> Questions / thoughts?
>
> -Zack

Hi Zack,
First off, I think it looks great, and it definitely seems useful when
trying to find an example of a particular API call.

Few suggestions:
1. The headers for each section (Doc, Source, Example(s)) don't
differentiate themselves from the regular doc text enough, maybe
bold/underline/color them to make them show up more?
2. The links to the source code should link to
http://github.com/clojure/clojure, I believe the richhickey clojure
repo has been transitioned there.
3. I know non-confirmation logins are really nice, but should the site
attract any spammers, you may want to look at adding an email account
confirmation (since spammers could go nuts adding comments to pages).

Looks awesome, hope it gets some love from the Clojure community.

- Lee

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Problems accessing records declared in a namespace in a REPL

2010-05-10 Thread Lee Hinman
> it should have the correct amount of apologies.

Err...what I meant to say was the correct amount of parentheses, not apologies.

- Lee

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Problems accessing records declared in a namespace in a REPL

2010-05-10 Thread Lee Hinman
On Mon, May 10, 2010 at 6:06 AM, Stuart Halloway
 wrote:
> Hi Lee,
>
> Your extend-protocol call is incorrectly parenthesized (rank is outside the
> body of the form).
>
> This means that "use" should blow up because the source is invalid. Maybe
> your use is reading a different source file than you think it is?
>
> Once I fixed that, the code works fine, at least insofar as the score and
> rank vars are accessible.
>
> Stu

My apologies Stu, it looks like a messed up the structure a bit when I
was attempting to shorten the code enough to mail out, it should have
the correct amount of apologies.

On a side note, I was able to find out what was going wrong. Turns out
I shouldn't have been declaring the protocol in a separate namespace
as the record. (I was declaring "Searcher" in clomoios.core and
"ContextSearcher" in clomoios.contextsearcher). This worked for
actually running the file, but not for REPL use. Once I moved the
protocol declaration to clomoios.contextsearcher everything worked as
expected.

Thanks!

- Lee

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Problems accessing records declared in a namespace in a REPL

2010-05-10 Thread Lee Hinman
I'm having a difficult time referencing a protocol in the user
namespace, I have the following code:

(ns clomoios.contextsearcher)

(defprotocol Searcher
  (score  [this term text] "Score this text in similarity")
  (rank   [this term text] "Rank sentences in this text"))

(defrecord ContextSearcher [get-sentences tokenize pos-tag])

(extend-protocol Searcher ContextSearcher
  (score
[this term text]
(score-text text score-words get-sentences tokenizer)))
  (rank
[this term text]
(reverse (sort-by second (score-sentences text score-words get-
sentences tokenizer)


When I try to use it from a different namespace, I can't access the
score and rank methods.

Example:
user=> (use 'clomoios.contextsearcher)
nil

user=>  (def foo (make-context-searcher "models/EnglishSD.bin.gz"
"models/EnglishTok.bin.gz" "models/tag.bin.gz"))
#'user/foo

user=> foo
#:clomoios.contextsearcher.ContextSearcher{:get-sentences #, :tokenize #, :pos-tag #}

user=> (score foo "a" "a")
java.lang.Exception: Unable to resolve symbol: score in this context
(NO_SOURCE_FILE:6)

user=> (clomoios.contextsearcher/score foo "a" "a")
java.lang.Exception: No such var: clomoios.contextsearcher/score
(NO_SOURCE_FILE:7)

user=> (clomoios.contextsearcher.ContextSearcher/score foo "a" "a")
java.lang.IllegalArgumentException: No matching method: score
(NO_SOURCE_FILE:8)


Am I using protocols on the wrong way? How should I refer to the score
and rank methods in the different namespace?
Syntax highlighted code here: http://gist.github.com/394685

- Lee

-- 
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 group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en