Hierarchical Agglomerative Clustering

2011-06-06 Thread Andreas Kostler
Hi all, Please find below my take on the hac algorithm. I'd like to hear how I could improve on it. Especially the get-closest-pair function is ugly. I also don't like that I need transform the cluster to something vijual can draw. It would be much nicer to simply represent the tree as a

Re: Parsing HTML in clojure

2011-06-06 Thread Bruce Williams
I looked at HtmlCleaner and it pretty cleans up the 'syntax' of the html but does nothing with the 'semantics' - ads,etc Bruce Williams Concepts, like individuals, have their histories and are just as  incapable of withstanding the ravages of time as are individuals.  But in and through all

Re: Best Installation Option

2011-06-06 Thread faenvie
i am also using ccw for eclipse but then cake instead of leiningen. this has the main-advantage of having an incredible fast development-cycle (running tests after change via commandline). this is because cake runs a persistent JVM, eliminating start-up overhead. (minor-)drawback: cake

interval trees..

2011-06-06 Thread Sunil S Nandihalli
Hello everybody, Is there any implementation of Interval Treeshttp://en.wikipedia.org/wiki/Interval_tree in Clojure. I found this Java implementationhttp://www.thekevindolan.com/2010/02/interval-tree/index.html but it does not have remove operation. Even some other Java Implementation would do.

Re: interval trees..

2011-06-06 Thread Sunil S Nandihalli
A simple googling revealed that interval trees can be implemented using finger-trees .. but hmm. they are not ready yet.. :( Sunil. On Mon, Jun 6, 2011 at 5:05 PM, Sunil S Nandihalli sunil.nandiha...@gmail.com wrote: Hello everybody, Is there any implementation of Interval

Re: Parsing HTML in clojure

2011-06-06 Thread Base
Hi All - Thanks for your help! I found this last night and it looks pretty promising. It is apparently part of Apache Tika (which I have never heard of until now) that has a lot of interesting functionality! https://boilerpipe-web.appspot.com/ Thanks! On Jun 5, 11:14 pm, Bruce Williams

Re: Best Installation Option

2011-06-06 Thread flebber
Thanks all for the excellent advice. Sayth -- 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

Re: Parsing HTML in clojure

2011-06-06 Thread Rasmus Svensson
2011/6/6 Base basselh...@gmail.com: hi all, I am working on an app that will parse web pages to do some NLP and statistics.  I am able to parse the HTML using several different tool ( enlive, HTML parser, etc).  However I would like to discard all the rest of the junk in the web page that is

Re: Parsing HTML in clojure

2011-06-06 Thread Mukul
Hi, I have worked on a similar project before and have found the following link useful http://blog.prashanthellina.com/2009/07/27/extracting-relevant-text-from-html-pages/ Best regards ~ Mukul Joshi Director CEO, SpotOn Software Pvt. Ltd. _SpotOn : One stop spot for your mobile

Using slurp to read changing JSON string

2011-06-06 Thread Thomas
Hi All, I recently started playing with Clojure and loving it... and finding of course the usual problem(s). In my little program I am reading a JSON string that changes regularly, up to once every 15 seconds or so, through HTTP. I know that the string changes, I can see that in my browser and I

Which Clojure environments support arglist-on-space?

2011-06-06 Thread Lee Spector
Which Clojure environments currently support arglist-on-space, either in a REPL or an editor (or both)? By arglist-on-space I mean (minimally) that when one types a space, after having typed ( and then a function/macro name, the arglist(s) of the function/macro appear in a mini-buffer

Aw: Which Clojure environments support arglist-on-space?

2011-06-06 Thread Meikel Brandmeyer
Hi, VimClojure shows argument lists and (optionally) docstrings on omni-completion if Vim is configured accordingly. One can possibly remap Space in insert mode to the get the desired effect, although things get a bit clumsy there. First Space would show the menu, second Space would insert

Emacs - marmalade package install and .emacs file entries

2011-06-06 Thread Bhinderwala, Shoeb
I am new to emacs and not sure how to automatically get the right entries created in .emacs file after I install packages from marmalade. Once I install a package using marmalade (e.g. clojure-mode-1.9.2) I have to manually edit my .emacs file to add a load-path and require entry: Example entry

Re: Aw: Which Clojure environments support arglist-on-space?

2011-06-06 Thread Lee Spector
On Jun 6, 2011, at 11:35 AM, Meikel Brandmeyer wrote: VimClojure shows argument lists and (optionally) docstrings on omni-completion if Vim is configured accordingly. One can possibly remap Space in insert mode to the get the desired effect, although things get a bit clumsy there. First

Aw: Re: Aw: Which Clojure environments support arglist-on-space?

2011-06-06 Thread Meikel Brandmeyer
Hi, Am Montag, 6. Juni 2011 17:53:37 UTC+2 schrieb Lee: I don't think automatic insertion would be a good thing, BTW. Well, this is not obviously decidable. There are for example several snippet plugins for Vim in the wild, which do exactly that. And things like textmate also advertise such

RE: swank-clojure/lein/emacs

2011-06-06 Thread Bhinderwala, Shoeb
I figured out the cause of my problem. It is the presence of incanter! Having it in leiningen project.clj file as a dependency causes lein swank to throw the following error: C:\projects\pascljlein swank Exception in thread main java.lang.IllegalArgumentException: No value supplied for key:

Re: Aw: Re: Aw: Which Clojure environments support arglist-on-space?

2011-06-06 Thread Lee Spector
On Jun 6, 2011, at 12:04 PM, Meikel Brandmeyer wrote: Am Montag, 6. Juni 2011 17:53:37 UTC+2 schrieb Lee: I don't think automatic insertion would be a good thing, BTW. There are for example several snippet plugins for Vim in the wild, which do exactly that. And things like textmate also

CSV Handling

2011-06-06 Thread octopusgrabbus
Is there a core Java library that handles .csv files or do I need to download something like OpenCsv? Thanks. -- 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

Re: CSV Handling

2011-06-06 Thread Steve Miner
On Jun 6, 2011, at 2:08 PM, octopusgrabbus wrote: Is there a core Java library that handles .csv files or do I need to download something like OpenCsv? Thanks. I've been using csvclj successfully. It's on clojars.org. [com.github.jonase.csv/csvclj 1.0.0-SNAPSHOT] -- You received this

Re: CSV Handling

2011-06-06 Thread Base
Incanter also has CSV support http://liebke.github.com/incanter/io-api.html On Jun 6, 1:08 pm, octopusgrabbus octopusgrab...@gmail.com wrote: Is there a core Java library that handles .csv files or do I need to download something like OpenCsv? Thanks. -- You received this message because

Re: Aw: Re: Aw: Which Clojure environments support arglist-on-space?

2011-06-06 Thread Scott Jaderholm
You mean in addition to Emacs right? Of course emacs with slime does this. If you use autodoc then you don't even have to press space, the arglists will update in the echo area as you move the cursor around source. See http://www.youtube.com/watch?v=lf_xI3fZdIg As for showing args of functions

Re: Which Clojure environments support arglist-on-space?

2011-06-06 Thread Phil Hagelberg
On Jun 6, 10:35 am, Lee Spector lspec...@hampshire.edu wrote: Aside from the near miss with VimClojure (and its presence in MCLIDE) does this exist in other Clojure environments? SLIME has it too. -Phil -- You received this message because you are subscribed to the Google Groups Clojure

Re: Aw: Re: Aw: Which Clojure environments support arglist-on-space?

2011-06-06 Thread Lee Spector
On Jun 6, 2011, at 4:24 PM, Scott Jaderholm wrote: You mean in addition to Emacs right? Of course emacs with slime does this. If you use autodoc then you don't even have to press space, the arglists will update in the echo area as you move the cursor around source. See

Re: Emacs - marmalade package install and .emacs file entries

2011-06-06 Thread Phil Hagelberg
On Jun 6, 8:39 am, Bhinderwala, Shoeb sabhinderw...@wellington.com wrote:   (add-to-list 'load-path ~/.emacs.d/elpa/clojure-mode-1.9.2/)   (require 'clojure-mode) If I don't add the above entry clojure mode does not work. It sounds like this is a bug in package.el; this should all be handled

Re: Aw: Re: Aw: Which Clojure environments support arglist-on-space?

2011-06-06 Thread Scott Jaderholm
I don't know of a step by step guide that includes autodoc. You need an older version of slime that includes the contrib autodoc (i.e. not package.el version which lacks that contrib). I use 10-15-2009. Scott On Mon, Jun 6, 2011 at 4:38 PM, Lee Spector lspec...@hampshire.edu wrote: On Jun 6,

Re: Aw: Re: Aw: Which Clojure environments support arglist-on-space?

2011-06-06 Thread Lee Spector
On Jun 6, 2011, at 4:58 PM, Scott Jaderholm wrote: I don't know of a step by step guide that includes autodoc. You need an older version of slime that includes the contrib autodoc (i.e. not package.el version which lacks that contrib). I use 10-15-2009. Thanks for the pointers, although

Re: Aw: Re: Aw: Which Clojure environments support arglist-on-space?

2011-06-06 Thread Scott Jaderholm
if you follow the instructions on swank-clojure readme then yes I think you get that. Scott On Mon, Jun 6, 2011 at 5:08 PM, Lee Spector lspec...@hampshire.edu wrote: On Jun 6, 2011, at 4:58 PM, Scott Jaderholm wrote: I don't know of a step by step guide that includes autodoc. You need an

RE: Emacs - marmalade package install and .emacs file entries

2011-06-06 Thread Bhinderwala, Shoeb
Hi Phil - I am on Windows XP with Emacs version 23.3 Don't know what is meant by install of package.el. I simply followed instructions at: http://marmalade-repo.org/ and copied package.el to my ~/.emacs.d directory and added the following to my .emacs file: (add-to-list

Re: Which Clojure environments support arglist-on-space?

2011-06-06 Thread pmbauer
Slimv supports this for clojure via swank. http://www.vim.org/scripts/script.php?script_id=2531 -- 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

Re: swank-clojure/lein/emacs

2011-06-06 Thread John Toohey
I had this problem on OSX. To fix it, I removed the swank dependency from my project.clj file, then I ran lein deps to clear any old copies. Follow that with lein plugin install clojure-swank 1.3.1 and finally lein swank. On Sun, Jun 5, 2011 at 17:26, Bhinderwala, Shoeb

How to setup IntelliJ with Leiningen?

2011-06-06 Thread Vicente Bosch Campos
Hi, I am a newbie on clojure have decided to try it out after many years doing Ruby mostly. I have been trying lately some basic tutorials and I am also reading the joy of clojure. Anyways in the process I am trying to decide on a suitable project creation workflow with Leiningen and

Re: Emacs - marmalade package install and .emacs file entries

2011-06-06 Thread David
I'm using GNU Emacs 23.3.1 (i386-mingw-nt6.1.7600) of 2011-03-10 on 3249CTO Here's the relevant section of my init.el (load package) (add-to-list 'package-archives '(marmalade . http://marmalade- repo.org/packages/)) (package-initialize) I've got to load package explicitly to prevent a warning

Re: How to setup IntelliJ with Leiningen?

2011-06-06 Thread Phil Hagelberg
On Jun 6, 2:47 pm, Vicente Bosch Campos vbosch.cloj...@gmail.com wrote: 1) Create project with Leiningen on the command console: lein new monkeyproject 2) If I select to open an existing project and point out to the project.clj:             - I have to add manually the lib folder to the

Re: porting an old project - where to begin?

2011-06-06 Thread yair
I'm using processing in a Java2D program. It doesn't have to be 3D... On Jun 4, 5:24 pm, Daniel doubleagen...@gmail.com wrote: I suppose the noob tag is appropriate ie I was around sometime last year and earlier but RLing got in the way of doing anything useful with this lovely language.

Re: How to setup IntelliJ with Leiningen?

2011-06-06 Thread Matt Hoyt
Run: lein pom Then in intellij goto file-open project and goto the directory of the project and click on the pom.xml file. -- 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

Re: CSV Handling

2011-06-06 Thread Miki
http://clojars.org/search?q=csv -- 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

RE: Emacs - marmalade package install and .emacs file entries

2011-06-06 Thread Bhinderwala, Shoeb
Hi Phil A lot of my problems went away when I downloaded Emacs version 24. Also I am able to successfully use swank-clojure from emacs now using clojure-jack-in. Thanks Shoeb -Original Message- From: clojure@googlegroups.com [mailto:clojure@googlegroups.com] On Behalf Of Bhinderwala,

Re: porting an old project - where to begin?

2011-06-06 Thread Daniel
Meh. I'm more or less giving up. Being stuck on a peripheral problem I have neither ability or desire to solve is about as fun as hacking a four-year old program already written using java2d (having fun being the main objective here) On Jun 6, 7:32 pm, yair yair@gmail.com wrote: I'm