Re: Keep application running when main thread only starts go blocks

2016-08-06 Thread Miguel Ping
Dunno about clojure, but in javaland you would submit jobs through an executor and then wait for all tasks on the executor to finish, blocking the main thread. A bit of googling, and you can alter the core.async executor: http://stackoverflow.com/a/18779688/22992 And then you can await for its

Re: How to work with photos in Clojure

2016-07-19 Thread Miguel Ping
If you want to learn clojure by image processing, thats fine, but if your goal is to do the image processing part rather sooner than later, I recommend using an external lib like imagemagick or sharp (http://sharp.dimens.io/en/stable/) to do that for you, and hook it via FFI. As for interacting

Re: why is it so annoying to run clojure code

2016-06-09 Thread Miguel Ping
I highly recommend you to learn some kind of interactive tool for clojure, such as emacs+cider. I wrote a mini tutorial about it: http://mping.github.io/2015/11/17/clojure-emacs-cider.html On Thursday, June 9, 2016 at 5:08:39 PM UTC+1, Jiacai Liu wrote: > > I started learning clojure recently,

Re: CCW stopped working. How do I fix it?

2016-05-04 Thread Miguel Ping
Seems like you need to update eclipse? I'm guessing Marketplace Client is from eclipse. I recommedn using either cursive or emacs anyway :D On Wednesday, May 4, 2016 at 5:26:00 AM UTC+1, Fluid Dynamics wrote: > > My copy of CCW 0.28.0_STABLE001 has mysteriously grown a bug. My guess is > it's a

Re: [Help] core.async and jetty

2016-02-23 Thread Miguel Ping
/aleph. > > On Tuesday, February 23, 2016 at 4:46:23 AM UTC-8, Miguel Ping wrote: >> >> Thanks, thats what I eventually found out. >> >> On Tuesday, February 23, 2016 at 12:39:00 PM UTC, jonah wrote: >>> >>> Hi Miguel- pipelining is essentially http keep

Re: [Help] core.async and jetty

2016-02-23 Thread Miguel Ping
socket serially. > > Jonah > > > On Mon, Feb 22, 2016 at 3:33 PM, Miguel Ping > wrote: > >> Hi guys, >> >> I'm trying to replicate an experiment on nodejs and http pipelining: >> http://blog.yld.io/2016/02/08/squeeze-the-juice-out-of-no

Re: [Help] core.async and jetty

2016-02-22 Thread Miguel Ping
By the way, I can see that jetty is reusing the same HttpInput instance on the request (most probably because of pipelining) On Monday, February 22, 2016 at 8:33:37 PM UTC, Miguel Ping wrote: > > Hi guys, > > I'm trying to replicate an experiment on nodejs and http pi

[Help] core.async and jetty

2016-02-22 Thread Miguel Ping
Hi guys, I'm trying to replicate an experiment on nodejs and http pipelining: http://blog.yld.io/2016/02/08/squeeze-the-juice-out-of-node/ This is what I got right now: https://gist.github.com/mping/98bb8eb9faf3c51f9889 (using *com.ninjudd/ring-async*) Problem is I can't get pipelining to wor

Blog post on Cider

2015-11-19 Thread Miguel Ping
Hi guys, As promised here's my intro on emacs/cider: http://mping.github.io/2015/11/17/clojure-emacs-cider.html Thanks to everyone that pointed me the way at https://groups.google.com/forum/#!topic/clojure/E1FHI_RIWp8 Please feel free to send comments, corrections or whatever. -- You receive

Re: Clojure Dev Environment

2015-10-06 Thread Miguel Ping
eep you guys updated if I ever write something. First have to learn it ;) On Monday, October 5, 2015 at 8:07:32 PM UTC+1, Sean Corfield wrote: > > Miguel Ping wrote on Monday, October 5, 2015 at 3:00 AM: > > - do you code functions in the repl and copy them to respective files? > >

Clojure Dev Environment

2015-10-05 Thread Miguel Ping
Hi Guys, I've been doing some personal clj for a while, but I never quite grokked the whole REPL thing. I normally use Lighttable and/or Cursive as editors, I can set up breakpoints and debug the code, but for web I'd like to know how seasoned developers work. AFAIK people fire up the repl and

Re: Tools comparable to Luigi for Clojure or the JVM?

2015-09-17 Thread Miguel Ping
If it's hadoop, I would take a look at either cascalog or pigpen On Thursday, September 17, 2015 at 4:17:13 AM UTC+1, Christopher Small wrote: > > Check out prismatic's plumbing. Its a reall y lovely tool that among other > things let's

Content-negotiation in compojure web libraries/frameworks the right way (tm)

2014-11-05 Thread Miguel Ping
Hi all, What's the best way to do content-negotiation on compojure-based web frameworks? I know liberator deals with it in a special way, I was wondering if is there anything out there to deal with it like rails does. Right now I have a big cond: (defn handle-home [req] (let [content-type (->

Re: Clojure Office Hours

2014-04-17 Thread Miguel Ping
Hey, the schedule's full! :\ On Wednesday, April 16, 2014 2:57:49 AM UTC+1, Marcus Blankenship wrote: > > Leif, thanks for the great session today. Not only did I get a jump start > on my next 4Clojure problems, but I learned some emacs as well! Very > enjoyable, and I look forward to next wee