Re: slackpocalypse?

2017-05-18 Thread Jason Stewart
I'm experiencing the same thing, while I am able to connect with my other slack teams. On Thu, May 18, 2017 at 4:17 PM, Kenny Williams wrote: > I am not able to connect via the web UI or Slack app either. > > > On Thursday, May 18, 2017 at 1:15:17 PM UTC-7, Gregg Reynolds

Re: How to do functional programming

2015-10-08 Thread Jason Stewart
The way I like to think about FP vs OO is that OO usually couples state with identity and the code that operates on both, while FP defines a clear boundary between data, state, and the functions that operate on the data. Designing a FP program often involves looking at the data first, then

Re: macro help

2015-10-02 Thread Jason Stewart
"Mastering Clojure Macros" by Colin Jones gets my vote as the go to book for writing clojure macros. On Fri, Oct 2, 2015 at 8:24 AM, Colin Yates wrote: > Thanks for your comments - very helpful! > > The reference to destructuring might be irrelevant now. Previously I >

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

clj-pdf: how to serve a pdf with ring

2014-03-23 Thread Jason Stewart
Hi Mathias, It looks like you've misplaced a paren in your code example: (piped-input-stream (fn [output-stream]) (pdf ...) piped-input-stream accepts a single function argument. Also, according to the docs, once the function is finished executing, the output stream is closed. I

Re: How to override the default port on 3000?

2014-02-25 Thread Jason Stewart
The lein-ring plugin accepts a port number as an argument: lein ring server 8080 Note, that in order to bind to port 80, you will need elevated (root) privileges. On Tue, Feb 25, 2014 at 9:21 AM, action actioncao2...@gmail.com wrote: I do like this: #lein new compojure-app guestbook #cd

ANN: ring-token-authentication. A ring middleware to authenticate API requests

2014-02-15 Thread Jason Stewart
I've just pushed the first version of ring-token-authentication, a Ring middleware to authenticate HTTP API requests. Token authentication is a popular way to authenticate API requests over HTTP. A client sends a token in the Authorization header like so: Authorization: Token token=notasecret