This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # admin-announcements (1)
- # beginners (18)
- # boot (61)
- # cljsjs (4)
- # cljsrn (12)
- # clojure (60)
- # clojure-gamedev (1)
- # clojure-russia (13)
- # clojure-taiwan (1)
- # clojure-uk (4)
- # clojurescript (62)
- # core-async (7)
- # cursive (1)
- # data-science (1)
- # hoplon (74)
- # lein-figwheel (3)
- # off-topic (3)
- # om (2)
- # other-languages (58)
- # planck (4)
- # protorepl (3)
- # reagent (58)
- # rethinkdb (1)
- # spacemacs (1)
Anyone ever use fatcow for hosting?
thanks @alexmiller and @lewix
hi, guys. not sure if this is the right channel. when i use core.async to call a http service, how do i know this service supports async call
is it possible that the http/rest service doesn't enable async, so it looks like i am doing some performance improvement, but actually not?
my point is, we can async all http/web cause it is supported from protocol and server side, right? we can't do it to jdbc calls, 'coz they don't support it.
@thug.nasty: if you want to implement session storing in a web app/API for authentication or authorisation. Try a lightweight library like Buddy. They also have great documentation!
@jarodzz: no experience with core.async, yet. If I understood you correctly then I think your question is more of a design question. So you want to make asynchronous calls so you/user doesn't need to wait for the result and you don't block the whole program with the call. So if you ask me it doesn't matter if your backend supports async calls or not because you implement async calls on your client so the app doesn't get stuck waiting for the result of the call. Don't get me wrong the backend CAN implement async calls but often it's just to divide the load on the procession of calls and not so it can go hand-in-hand with your client. Hope it helps.
I'm using clojurewerkz/propertied to load db connection strings. When i'm running in the repl, i can find the file just fine. However, when i build the jar, i'm getting an illegalargumentexception: not a file
does anyone have any idea why this file, which seems to be present in the jar, is being reported as not found?
dpsutton: looks like you're using
on something that's a classpath resource not a file.
people try to treat resources as files, which sort of works in development, but as soon as you actually package something as a jar it doesn't
(let [props (p/load-from (-> "config.properties" io/resource))] works when i remove the
no, look, people refer to a "file" as being in a zipfile, but as far as your filesystem is concerned, a zip file is a file, and the contents are not
A jar is just a zipfile, and the zip file structure doesn't have the concept of directories. It's actually a bunch of key/zipped byte pairs, where the keys are strings that happen to map to paths.
and resources are loaded via a classloader, which can get the bytes from anywhere, it can even just make them up
hello, I'm doing the brave and true chapter 10 about refs, can I say that's like a transaction from the java world when you open one and close with a commit?
you can cast as ^String not sure if it works tho
I saw some code with it in cloj droid
hm, ok I'm a begginner 😛
why the space between
Also I did create a question just before you replied so it you want to make an answer there I'll accept it. Otherwise I will put your answer there http://stackoverflow.com/q/37231094/1327651
@dpsutton: an example of what I do in lambone (a project template) in order to address both files and jarred resources: https://github.com/Lambda-X/lambone/blob/master/resources/leiningen/new/lambone/common/src/backend/system.clj#L16