Re: New namespace per session in nREPL

2014-04-18 Thread Arkadiusz Komarzewski
Sean, I'm aware of that, but if I was using this kind of "shared" nrepl server the first thing I would do after connecting is changing namespace to slightly reduce chance of someone messing up with what I'm doing. That's why I thought about creating new namespace for each session. On Thursday,

Code snippets to attract new users

2014-04-18 Thread kurofune
Hello everyone! A Java programmer recently mentioned to me that if the Clojure community wants to appeal to industry programmers that they would need to provide example code comparisons, which clearly show why it is good to choose Clojure over another language. The same person gave me the follo

[ANN] clj-cn-nlp 0.2.1 released

2014-04-18 Thread Mingli Yuan
Hi, folks, we just released clj-cn-nlp version 0.2.1, a Clojure NLP wrapper based on Stanford-CoreNLP for Simplified Chinese users. Three default Chinese language model was shipped with this wrapper to provide: - seg: Chinese word segmentation - ner: Chinese naming entity recognition - t

Re: Clojure Office Hours

2014-04-18 Thread Ulises
Inspired by Leif's offer, I've decided to offer Clojure office hours as well. I'm based in the UK so I reckon the times will be more amenable to those in Europe (not sure the times will be good for those in Asia unfortunately.) Sadly the offer is limited to 1h a day, but hopefully it'll still be

Re: Clojure Office Hours

2014-04-18 Thread Ulises
Yikes! Got my first booking for Monday. That was quick! one thing I forgot to mention is that I have no preferred way to do this. I personally have emacs+cider set up, but I'm happy to work with your own set up. In the past I've used ScreenHero (not available for Linux unfortunately) for screen s

Hosting Providers

2014-04-18 Thread Adrian Mowat
Hi Everyone, I am currently looking at hosting providers for Clojure for my company. We are using Engine Yard for our Ruby applications and we looking for something comparable in terms of providing an easy path to getting started and easy ongoing maintenance (they allow you to apply OS patches

Re: Code snippets to attract new users

2014-04-18 Thread Thorsten Jolitz
kurofune writes: > Hello everyone! > > A Java programmer recently mentioned to me that if the Clojure > community wants to appeal to industry programmers that they would need > to provide example code comparisons, which clearly show why it is good > to choose Clojure over another language. The sa

Re: Code snippets to attract new users

2014-04-18 Thread Marek Srank
This is related just to some degree, but IMHO part of the problem is also a landing page of a programming language and a concept of a minimum viable code snippet, how Fogus named it in his blogpost: http://blog.fogus.me/2012/08/23/minimum-viable-snippet/ I think that it was already discussed

Re: Code snippets to attract new users

2014-04-18 Thread martin madera
Hello, I think that the book Functional patterns in Scala and Clojure has a lot of snippets, which can attract many programmers. http://www.amazon.com/Functional-Programming-Patterns-Scala-Clojure/dp/1937785475/ref=sr_1_1?ie=UTF8&qid=1397814912&sr=8-1&keywords=functional+programming+patterns Th

Re: Emacs - error with `nrepl-jack-in'

2014-04-18 Thread Erlis Vidal
Do not add an alias for lein, rename lein2 to just lein. On Apr 17, 2014 9:45 PM, "Thorsten Jolitz" wrote: > > Hi List, > > just installed lein2 and can start 'lein2 repl' successfully on the > command-line. 'lein repl' works too, since I defined an alias in my > .bashrc. > > After installing pa

Re: Emacs - error with `nrepl-jack-in'

2014-04-18 Thread Thorsten Jolitz
Thorsten Jolitz writes: > Hi List, > > just installed lein2 and can start 'lein2 repl' successfully on the > command-line. 'lein repl' works too, since I defined an alias in my > .bashrc. > > After installing packages clojure-mode and nrepl in Emacs, I get this > error when trying `nrepl-jack-i

Re: Emacs - error with `nrepl-jack-in'

2014-04-18 Thread Thorsten Jolitz
Erlis Vidal writes: > Do not add an alias for lein, rename lein2 to just lein. Ok, done, thx. -- cheers, Thorsten -- 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

Hosting Providers

2014-04-18 Thread Jason Stewart
Hi Adrian, The only hosting provider that comes to my mind, thinking of your requirements is heroku. Applying patches is usually as simple as making an empty commit and pushing to heroku. Not every application will fit into the "heroku" way of doing things, but in my experience the ones that do

Hosting Providers

2014-04-18 Thread Mike Haney
In addition to heroku, there is Amazon Elastic Beanstalk, which lets you deploy a WAR file on EC2 without having to setup the infrastructure yourself. Both are great ways to go. I lean towards using Heroku for it's simplicity, but Amazon makes sense when you need to use other Amazon services

Re: Potential Intro clojure projects - libraries and ideas with wow factor

2014-04-18 Thread Dmitry Groshev
In theory, yes. In practice, it will not scale well. Here is why: optimal planning is, in general, a problem with at least exponential complexity. When you have complexity like this, you can choose between two approaches: 1) explore the whole search space, trying very hard to prune and discard a

Re: Hosting Providers

2014-04-18 Thread Adrian Mowat
Hi, Thanks for the advice. I should have mentioned that are are going to use Datomic but I'm not sure of the tradeoffs around different storage platforms. Have I understood correctly that Heroku only offers Postgres as a storage option? Many Thanks Adrian On Fri, Apr 18, 2014 at 1:43 PM, Mi

Re: Code snippets to attract new users

2014-04-18 Thread kurofune
Hi Martin, > IMHO small code-snippets like that you sent can not persuade someone to change language except some small/toy projects. I completely agree with the above, if it is professional programmers you are trying to convince. I should mention that while my friend was talking about "indus

Re: regex

2014-04-18 Thread Thumbnail
> I had a couple of insights. First, to allow the dfa to be generated > programmatically, I changed it from a map to a vector. This means > that the next state can just be an integer. Second, I decided that > the terminal state would always be at index 0 ... > Shouldn't a DFA allow for *a

Re: Code snippets to attract new users

2014-04-18 Thread Gary Trakhman
I think doing some XML manipulation with clojure.data.xml, tree-seq and basic data structures shows a lot of the benefits in a little bit of code, and is pretty persuasive in my experience. This thing correlates paths from openstreetmap via unique node-ids to give you a way to find intersecting ro

Re: Emacs - error with `nrepl-jack-in'

2014-04-18 Thread greg r
You should consider going to CIDER: https://github.com/clojure-emacs/cider The command is 'cider-jack-in'. Here's a page with a lot of install info: http://clojure-doc.org/articles/tutorials/emacs.html There are many web pages out there with obsolete information on Clojure and emacs. The abov

Re: Code snippets to attract new users

2014-04-18 Thread kurofune
Pico-Lisp looks pretty cool, and that massive book of yours is nuts. It seems like there is an example for everything in there! About the poor reception in spite of Rosetta-Code success, I can only say that predicting human behavior on the assumption that their decisions are rational, is unlike

Re: Emacs - error with `nrepl-jack-in'

2014-04-18 Thread Erlis Vidal
Also *clojure for the brave and true *will guide you through the configuration process really straight forward. http://www.braveclojure.com/using-emacs-with-clojure/ On Fri, Apr 18, 2014 at 9:37 AM, greg r wrote: > You should consider going to CIDER: > > https://github.com/clojure-emacs/cider

Pattern matching and web security

2014-04-18 Thread kurofune
After watching Aaron Bedra's Clojure web security talk, I began to think about whether Scala, being another popular JVM language, had some of the same issues with vulnerability as Clojure. I went to the Lift framework overview page (http://liftweb.net/lift_overview) and was surprised to find th

what's the elegant way to write this code in clojure?

2014-04-18 Thread sd song
i use clojure and korma libs. defn db-search-users [& {:keys [nick_name max_age min_age page page_size lmt oft] :or {lmt 10 page_size 10 oft 0 } :as conditons}] (let [users-sql (-> (select* users) (fields :user_name :id :nick_name)

Re: regex

2014-04-18 Thread A. Webb
On Friday, April 18, 2014 8:28:03 AM UTC-5, Thumbnail wrote: > > > I had a couple of insights. First, to allow the dfa to be generated >> programmatically, I changed it from a map to a vector. This means >> that the next state can just be an integer. Second, I decided that >> the terminal s

Re: what's the elegant way to write this code in clojure?

2014-04-18 Thread Michael Gardner
On Apr 18, 2014, at 09:05 , sd song wrote: > another question is: i think code like: (if (nil? page) lmt page) is ugly. is > there some functions in clojure like (get_default_value_3_if_a_is_null a 3) ? If you're OK with false being treated the same as nil, you can do (or page lmt). -- You re

Re: what's the elegant way to write this code in clojure?

2014-04-18 Thread Ray Miller
On 18 April 2014 15:05, sd song wrote: > i use clojure and korma libs. > now i need to add some search conditions to users-sql at > "need_do_something_here",i can describe it in imperative style: > > if ( nick_name != nil) > users-sql = (where users-sql (like :nick_name nick_name) > > if (max_

Re: project docs

2014-04-18 Thread Gregg Reynolds
On Thu, Apr 17, 2014 at 1:18 PM, Brian Craft wrote: > Is there a standard workflow, lein plugin, or such, for building/serving a > project's README.md, doc/*.md, etc.? During development, I mean, to preview > the docs while working on them. > There is a google chrome browser extension for this t

Re: Hosting Providers

2014-04-18 Thread Mike Haney
I know they also have Mongo and Neo4j available on Heroku, but neither of those are supported as a Datomic back end. Postgres will work with Datomic just fine, though. The only hitch with Heroku is that I'm not sure how to go about deploying a transactor. Maybe someone has done it and blogged

Re: Hosting Providers

2014-04-18 Thread Adrian Mowat
Hi Mike, That would be really helpful. Thanks! We're much earlier in the process than you at the moment but I would be delighted to share anything that comes up Cheers Adrian On Fri, Apr 18, 2014 at 4:11 PM, Mike Haney wrote: > I know they also have Mongo and Neo4j available on Heroku, but

Re: regex

2014-04-18 Thread Thumbnail
Of course! Thank you. On Friday, 18 April 2014 15:33:39 UTC+1, A. Webb wrote: > > > > On Friday, April 18, 2014 8:28:03 AM UTC-5, Thumbnail wrote: >> >> >> ... I decided that the terminal state would always be at index 0 ... >>> >> >> Shouldn't a DFA allow for *any* *set* of states to be termina

Re: Code snippets to attract new users

2014-04-18 Thread Thorsten Jolitz
kurofune writes: > Pico-Lisp looks pretty cool, and that massive book of yours is nuts. > It seems like there is an example for everything in there! About the > poor reception in spite of Rosetta-Code success, I can only say that > predicting human behavior on the assumption that their decisions

Re: Emacs - error with `nrepl-jack-in'

2014-04-18 Thread Thorsten Jolitz
Erlis Vidal writes: > Also clojure for the brave and true will guide you through the > configuration process really straight forward. > > http://www.braveclojure.com/using-emacs-with-clojure/ Hi Greg and Erlis, just learned about the cool CIDER, thanks for your tips! > On Fri, Apr 18, 2014 at

ANN Meltdown 1.0.0-beta10 is released

2014-04-18 Thread Michael Klishin
Meltdown [1] is a Clojure interface to Reactor, an asynchronous programming toolkit for the JVM. Release notes: http://blog.clojurewerkz.org/blog/2014/04/18/meltdown-1-dot-0-0-beta10-is-released/ 1. http://github.com/clojurewerkz/meltdown -- MK http://github.com/michaelklishin http://twitter.co

ANN Elastisch 2.0.0-beta4 is released

2014-04-18 Thread Michael Klishin
Elastisch [1] is a small, feature complete Clojure client for ElasticSearch. Release notes: http://blog.clojurewerkz.org/blog/2014/04/11/elastisch-2-dot-0-0-beta4-is-released/ 1. http://clojureelasticsearch.info -- MK http://github.com/michaelklishin http://twitter.com/michaelklishin -- You r