This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-06-25
Channels
- # admin-announcements (6)
- # beginners (38)
- # boot (65)
- # cider (22)
- # clojure (81)
- # clojure-berlin (15)
- # clojure-india (1)
- # clojure-norway (1)
- # clojure-russia (10)
- # clojure-sg (3)
- # clojurebridge (1)
- # clojurescript (94)
- # core-typed (44)
- # editors (6)
- # euroclojure (80)
- # events (7)
- # instaparse (9)
- # jobs (2)
- # ldnclj (14)
- # off-topic (8)
- # om (3)
- # reading-clojure (6)
@escherize: How do you like HoneySQL so far?
@ragge: looking into the s3events, and the higher level thing you mentioned would really come in handy here
(defn json-handler
[f]
(fn [in out ctx]
(let [event (json/read (io/reader in))
res (f event ctx)]
(json/write res (io/writer out)))))
(defn handle-event
[event ctx]
(println "Got the following event: " (pr-str event))
{:status "ok"})
(def my-handler (json-handler handle-event))
@ej: I am doing this, our setup is to have datomic use the AWS cloudformation that already exists in datomic to setup the transactor and then build docker image on circleci and push to AWS Elastic Beanstalk using the AWS CLI
@ej: It is useful to do it this way because then datomic sets up all the cloudwatch data feeds. I would prefer to have the datomic transactor containerised but I am yet to experiment with that
@ej: down side is that you cannot easily ssh into the transactor machine, and adding dependency for datomic's Database Function is tricky
@helveticafire What do you mean about the latter? Adding the db dep?
Makes sense though, yeah thought that as an option.. Shame elastic beanstalk doesn't easily support multi container deployments
I also assume you're using dynamodb as a storage service? @helveticafire
@ej: http://aws.amazon.com/about-aws/whats-new/2015/03/aws-elastic-beanstalk-supports-multi-container-docker-environments/ Whoop whoop yet to play with this either, kind of want to move to Amazon EC2 Container Service
@ej: yes we are using dynamodb.
@ej: so for db deps say you want to add a transaction function http://docs.datomic.com/database-functions.html and you have an external dep like clj-time
then you need to have that dep in the datomic lib directory. Is that clearer?
morning
Haha yeah saw that, kind of annoying since I think current boot and leiningen plugins only work with one Dockerfile, not a multi container deploy xD
i am writing some code to parse an XML feed and import the data into a MySQL database using yesql. What's the best way to define the fields of each row? The XML feed doesn't include blank fields. At the moment I am defining a map with the fields set to nil
and doing a merge
with the parsed XML data but I feel there might be a better way!
Oh I get what you mean. Yeah I don't think I'll be use transactor functions tbf Sounds tricky with external deps!
@ej quite annoying, quite a bit of hacking to get it working. To solve the multiple containers you could use a bash script
Appreciate the sharing of knowledge.. Cloud formation, ebs,cloudfront,dynamodb it is then :D can't wait Currently making a sound cloud killer. Ironic that they're hosted on aws too.
Yeah for now its a bit weird since I'm the only current working dev on the project temporarily, not even sure I want to setup circleci Project is prototyping for now
@mikecarter I might be wrong but try a zip?
@ej thanks, i'll look into it
(def union-schema {:name nil
:org_code nil
:org_id nil
:email nil
:phone nil
:fax nil
:web_site nil
:is_active nil
:is_public nil
:time_zone nil
:longitude nil
:latitude nil})
that's what i'm doing at the moment
i think i'll put those keys in a vector and do it another way
@zane I am using honeysql in one part of my app that requires dynamic sql queries, otherwise I prefer jdbc
Did anyone get to use slamhound with VIM? from what I recall it didn't work too well
getting java.lang.SecurityException when trying to create a spark context inside of gorilla repl
@jstokes: yes, just checkout this branch: https://github.com/gorillalabs/sparkling-getting-started/tree/gorilla-repl
ah yes, thank you once again @chrisbetz
@jstokes: if you want to understand the code: the trick is to install the GorillaREPL middleware in your Spark drivers nrepl and to start a GorillaREPL in a separate process connecting to that spark nrepl.
@chrisbetz ill definitely have to think that one through, still fairly new to nrepl - that makes sense though
Is there a Clojure library that supports this? If not, where should I be looking in Java land?
@devn: there's this https://github.com/clavoie/lock-key/blob/master/src/lock_key/core.clj which purports to do AES, though I haven't used it. I'm just using javax.crypto directly.
michaeldrogalis: where would I look to see "the current state of onyx"? I talked to you about it at Clojure/West and it sounded like a good time to try it was coming up soon...
@noisesmith: Latest release is on the 0.6.x
branch: https://github.com/onyx-platform/onyx/tree/0.6.x
We released a few weeks ago. I deem it production ready: http://michaeldrogalis.github.io/jekyll/update/2015/06/08/Onyx-0.6.0:-Going-Faster.html
michaeldrogalis: thanks for the update, I'll give it a good look and might just be using it in production
@noisesmith: Cool. Let me know if you need anything.
@shriphani: I havent but you might find this interesting https://github.com/uswitch/lambada
why is http-kit more performant? how is its algorithm different?
@shriphani: i have, and i wrote that piece of glue... let me know if you have any issues
@shriphani: what is it? 50mb?