This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-11
Channels
- # architecture (3)
- # beginners (41)
- # boot (7)
- # cider (16)
- # cljs-dev (8)
- # cljsrn (2)
- # clojure (214)
- # clojure-austin (4)
- # clojure-russia (52)
- # clojure-spec (8)
- # clojure-taiwan (1)
- # clojure-uk (10)
- # clojurescript (87)
- # cursive (14)
- # datascript (34)
- # datomic (11)
- # dirac (55)
- # emacs (12)
- # hoplon (44)
- # luminus (6)
- # lumo (24)
- # off-topic (1)
- # om (8)
- # onyx (7)
- # overtone (2)
- # pedestal (1)
- # protorepl (4)
- # re-frame (7)
- # reagent (1)
- # ring (4)
- # rum (2)
- # slack-help (1)
- # spacemacs (2)
- # specter (32)
- # unrepl (131)
- # untangled (14)
- # yada (3)
I would like to send out emails with clojure. What is the best option? I tested with the Sendgrid, but something authentication problem. Autopilot ok, but with large list .. not so cheap. Somebody integrated Amazon SES or similar provider or what could you advise for me?
@sb There's a close enough example at https://github.com/dakrone/clj-http#post
Yes, I tried translate to clojure around a hour ago, but fully unsuccessful. Something I created in the wrong way.. therefore I shared the code, maybe somebody can show me.. exactly how I can to do. I check the source again. Maybe I didn’t see before this..
I think that isn’t a good version.. maybe was better.. but I worked in this way.. to translate from CURL the code
@sb I don't see any :header
option, only a :headers
map looking like :headers {"X-Api-Version" "2"}
Unfortunately, I tested two sendgrid package ( eg.. [sendgrid-clj.core :as sendgrid]
) and I have similar problems. What I got back.. authorization failed.. but with CURL
works fine..
I know it's basic, but do you actually have an account and using your real key instead of "Bearer KEY-HERE"?
here is the reference https://sendgrid.com/docs/API_Reference/Web_API_v3/index.html
Their example says :content is a vector: "content": [{"type": "text/plain", "value": "Heya!"}]. You did it right with curl but not with clj-http. Do that plus use :headers instead of :header and check.
I got ClassCastException java.lang.String cannot be cast to clojure.lang.Associative clojure.lang.RT.assoc (RT.java:792)
I'm looking for some kind of learning path on clojure. I know html, css and I know what are for loops, variables etc due to a beginner course on PHP.
@biofobico I had a good experience starting with a re-frame snake game, and later on adding a back-end with a luminus setup.
Something to keep in mind is doing small iterations as the error messages you get can easily become unclear.
Now I just need some sort of tutorial about clojure basics because the official documentation isn't very beginner friendly 🙂
And with the amount of info that is available on the interwebs it's kinda difficult to filter the good stuff for a beginner
This one's very good for learning the basics http://www.braveclojure.com/clojure-for-the-brave-and-true/
@ biofobico, there's really no good format to learn clojure, but what personally worked for me is to 1) read its homepage (at least that page) first, 2) play with an online repl (e.g. tryclojure), then 3) clojurekoans. Once you become comfortable with it, find something that teaches its data structures, since I have limited time, I just jumped in with learn x in y minutes (clojure, and clojure macros), only then I started leiningen. Once you know how to use leiningen, you now have to choose where you want to spend your first project, front-end (clojurescript, you can start with reagent) or back-end (clojure, you can start with compojure perhaps).
@biofobico I did start with the Project Euler, of course my solutions were crap, but then you look at other answers and you learn about the Clojure standard​ library by looking at the docs. I'm not sure this is great to be honest, but doing it in pair (not pair programming) sure made it more enjoyable. I'd say find a buddy to learn it with you, it will make the learning experience more fun.
@biofobico 4clojure + Clojure for the Brave and True worked very well for me!
Also worth taking a look at Living Clojure
@arnaud_bos and @curlyfry Thank you. The thing is that I'm not a programmer. I'm probably wrong, but it seems that all the stuff I find assume that the reader/watcher already has some kind if programming background which isn't my case.
I did the "which programming language should I learn first" search and while 80% returned python/ruby I am sure that learning a programming language is a challenge not matter which one I choose
@biofobico Also have some fun with the cheat sheet: https://clojure.org/api/cheatsheet
thanks @yonatanel for your help!!