This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-01
Channels
- # aleph (1)
- # architecture (7)
- # aws (1)
- # beginners (52)
- # boot (3)
- # cider (27)
- # cljs-dev (9)
- # cljsrn (16)
- # clojure (82)
- # clojure-dev (75)
- # clojure-italy (14)
- # clojure-nl (11)
- # clojure-spec (10)
- # clojure-uk (31)
- # clojurescript (49)
- # core-async (13)
- # datascript (11)
- # datomic (15)
- # duct (11)
- # emacs (8)
- # fulcro (46)
- # heroku (2)
- # jobs-discuss (27)
- # jobs_rus (1)
- # juxt (25)
- # keechma (1)
- # off-topic (59)
- # om (2)
- # pedestal (4)
- # portkey (113)
- # portland-or (1)
- # re-frame (14)
- # reagent (11)
- # shadow-cljs (278)
- # vim (2)
- # yada (2)
@pablore Yeah, wrap it in a fn. For example you can't map
or
, but you can (map #(or %) [true false])
)
It might seem quaint, but I'm trying to use cemerick/drawbridge as an ad-hoc ui for an app I'm deploying on heroku. Connecting over http works, but I'm failing to get the connection over https to work.
% lein repl :connect ''
Connecting to nREPL at
SSLException Received fatal alert: internal_error
sun.security.ssl.Alerts.getSSLException (Alerts.java:208)
sun.security.ssl.Alerts.getSSLException (Alerts.java:154)
sun.security.ssl.SSLSocketImpl.recvAlert (SSLSocketImpl.java:2023)
sun.security.ssl.SSLSocketImpl.readRecord (SSLSocketImpl.java:1125)
sun.security.ssl.SSLSocketImpl.performInitialHandshake (SSLSocketImpl.java:1375)
sun.security.ssl.SSLSocketImpl.startHandshake (SSLSocketImpl.java:1403)
sun.security.ssl.SSLSocketImpl.startHandshake (SSLSocketImpl.java:1387)
org.apache.http.conn.ssl.SSLSocketFactory.connectSocket (SSLSocketFactory.java:543)
org.apache.http.conn.ssl.SSLSocketFactory.connectSocket (SSLSocketFactory.java:409)
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection (DefaultClientConnectionOperator.java:177)
org.apache.http.impl.conn.ManagedClientConnectionImpl.open (ManagedClientConnectionImpl.java:304)
org.apache.http.impl.client.DefaultRequestDirector.tryConnect (DefaultRequestDirector.java:611)
Bye for now!
The ring middleware is pretty much straight out of the readme:
(defn wrap-drawbridge [handler]
(let [repl-handler (-> (drawbridge/ring-handler)
(keyword-params/wrap-keyword-params)
(nested-params/wrap-nested-params)
(params/wrap-params)
(session/wrap-session)
(basic/wrap-basic-authentication authenticated?)
(ssl/wrap-forwarded-scheme)
(proxy-headers/wrap-forwarded-remote-addr))]
(fn [request]
(if (= repl-uri (:uri request))
(repl-handler request)
(handler request)))))
How can I debug this issue?
Or maybe there is a more appropriate channel to ask?@emccue data/diff shows nil for data that's unchanged between items
err, wait, maybe something else is going on...
does this help?
user=> (clojure.data/diff {:a []} {:a [:b]})
({:a nil} {:a [:b]} nil)
it seems that data/diff truncates empty collections in the diff to nil
canonical example data ftw
(clojure.data/diff {:a '(:a)} {:a [:b]})
. note it's not returning the same data structure (vector, list, etc)
right, theres no index in common
that's true
oh right, @noisesmith. i forget those aren't general collections
but there's almost always a good rationale for the surprise
@emccue I think one way to put it is that Clojure will pick the behavior that is most useful to an opinionated expert named Rich Hickey over the intuitive option if the two are ever in conflict
I think Rich is usually right, so I enjoy using Clojure
as Rich says, people find many things surprising
I was wondering when/if there will be a EuroClojure 2018 conference. I saw a similar question in clojurians-log, but I can't seem to load that page
there will not be one this summer
Howdy, folks
Do you guys know a good place to try and find fellow Clojure developers looking to help on a side project?
@whoneedszzz We have #jobs and #remote-jobs for that -- and #jobs-discuss to talk about hiring practices etc.
Side as in on the side; not paid
An open source project?
are you looking to work on someone's project or looking for others to work on your project?
Yes, open source.
I'm looking for help on a project I'm planning to start.
Then asking folks here (in #clojure ) to help is probably reasonable. It'll help your cause if you already have a repo and README to explain the project so you can point folks at a link.
The project is still in the early planning phase so there isn't any code or repo existing yet, but for sure.
Essentially the project starting is dependent on being able to have help.
well, you've already started selling it. and like @seancorfield said, the better flushed out and interesting the idea, the more likely you are to get interested contributors. but no repo is your first impression
Certainly. I came up with the initial idea a couple of days ago 😛
So to get to the point - I have been experimenting with various budgeting apps and haven't been satisfied with any of them. Almost all of the ones I have tried have appealing features, but there is something significant that is bothering the users that makes them switch back and forth between them. I'd like to make one that is a bit more fleshed out to be able to appeal to a wider audience. YNAB, for instance, is pretty good, but has trouble adding accounts and then actually importing transactions. It also is targeted specifically for their methodology. I'd like to offer a service that offers multiple styles of budgeting depending on what the user's needs are, but not try to be a virtual financial manager like many other services are doing.
On the technical aspect I'd like to implement the backend API in Clojure and the client in ClojureScript with re-frame.
@whoneedszzz keep in mind that today's conversation here will drop off the site after a week or so. A README will be something you can keep around, adjust as you think about the project more, etc.
Naturally
I can't seem to figure this out. I know of int-array, float-array ... but how do I create an array of Strings ?
@whoneedszzz What do Clojure and Clojurescript solve in this picture?
Not sure what you mean
It isn't necessarily. A language is a tool. My goal is to do it with them because I'd like to demonstrate that it can be done as an alternative to other languages and frameworks. Be an ambassador for Clojure and ClojureScript if you will.
It would be quite helpful as a successful project to refer to when pitching Clojure or ClojureScript on a business project for those that aren't familiar with them.
I'm not there yet. I'm one person. This would be a group project and those sort of details need to be discussed together.
I don't have a precise definition of the service
Just write out as carefully as you can what you think the problem is (similar to your above paragraph, but just spend some more time on it) and one idea for the shape of a solution
Apparently there's some kind of miscommunication here
I mentioned earlier that the project will require multiple people to complete it in any reasonable time frame. It's not a quick and dirty project. So I need to find people that would be interested in working together on it. If I can't find people it isn't happening and not worth spending that sort of time on.
Due to my goal being to cover a wider audience it is more complex. I would like how to accomplish that to be a group discussion. That will determine how the UI and UX look and flow.
Great
What I was saying was around dpsutton's point that "the better flushed out and interesting the idea, the more likely you are to get interested contributors"
I have some thoughts about that task, but nothing concrete yet.
I agree with that completely and would apply if I had all of the details concrete already.
I have a habit of coming up with grand ideas for software projects that are just impractical or impossible for one person to accomplish and in the past would spend time starting the project and then finally coming to the realization where I'm at. So I now check myself on that and don't want to go down a rabbit hole trying to accomplish it solo.
I fall into the "make a chair making tool before you've ever made a chair" rabbit hole often