This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-08-09
Channels
- # admin-announcements (5)
- # architecture (8)
- # beginners (7)
- # boot (41)
- # braveandtrue (1)
- # cider (77)
- # clara (3)
- # cljs-dev (56)
- # cljsjs (7)
- # cljsrn (7)
- # clojure (44)
- # clojure-austin (3)
- # clojure-brasil (1)
- # clojure-hk (3)
- # clojure-russia (137)
- # clojure-spec (14)
- # clojure-uk (44)
- # clojurescript (33)
- # cloverage (3)
- # core-async (10)
- # css (1)
- # cursive (16)
- # datomic (116)
- # devcards (14)
- # emacs (1)
- # events (1)
- # funcool (2)
- # functionalprogramming (1)
- # hammock-driven-dev (1)
- # jobs-rus (124)
- # lein-figwheel (1)
- # leiningen (1)
- # liberator (4)
- # melbourne (3)
- # mount (73)
- # off-topic (3)
- # om (4)
- # om-next (15)
- # onyx (38)
- # other-languages (4)
- # perun (2)
- # proton (36)
- # protorepl (2)
- # random (1)
- # re-frame (56)
- # reagent (7)
- # specter (4)
- # testing (1)
- # untangled (13)
- # yada (18)
from clojure would the easiest way to construct a simple CA be to use bouncy castle?
Hi. Just joined and look forward to interacting with everyone here. Was wondering whether anyone would be willing to link to a simple/beginner friendly project using Datomic that I could play with? Thanks in advance.
Hi @noobjure. One good place to start is the day of datomic training and videos at http://www.datomic.com/training.html
Just came across this on hacker news. Looks pretty cool: https://github.com/dgrnbrg
Oooops. I mean: https://github.com/datacrypt-project/hitchhiker-tree
@shaun-mahood: thanks for the quick response. I've already looked through their documentations and videos and now was hoping to actually see it in action on someone else's work. Thanks again anyways.
@noobjure i found https://github.com/Datomic/day-of-datomic together with repl from editor very useful to learn and for datalog in general: http://www.learndatalogtoday.org/
I'm trying to manage configuration in a Component. Currently I'm merging the map loaded from edn with the config component on Lifecycle/start. What is a good way to clean the merged values on Lifecycle/stop or Lifecycle/start?
(defrecord Config []
component/Lifecycle
(start [this]
(merge this (load-config)))
(stop [this]
this))
I could assoc to a single key instead of merging everything directly, but then I'd have to use that key everywhere:
(defrecord Config []
component/Lifecycle
(start [this]
(assoc this :config (load-config)))
(stop [this]
this))
I see the approach of https://github.com/AvisoNovate/config is to first have the configuration and only then the component system. Configuration can still be reloaded on each call to the reset function of the reloaded workflow.
@peterromfeld: Perfect. Cheers!
@yonatanel: we ended up not using system for the config and just use https://github.com/weavejester/environ but we dont make jars yet and just run services with boot tasks (upstart scripts running boot task š )
Does anyone have an idea how UTF-8 can be mangled when saving to postgres? I get data from an external source, itās UTF-8 coming in. When I save it to postgres it gets mangled into what appears to be Latin1. Saving to the same table from other data streams, also with UTF-8, doesnāt produce the same error
@emil0r: I had a similar problem a week or two ago - turned out that it was actually the transport format (transit without a preferred encoding set in my case) that was mangling the data, not anything within Postgres. Maybe worth looking into from that angle?
@noobjure: Iāve got a sample project at https://github.com/mtnygard/todo-backend-pedestal. It uses Pedestal for the HTTP partā¦ feel free to use or ignore that. It shows how to use Datomic in a ārealā app though.
@mtnygard: Just what I was after! Thanks for introducing the Todo-Backend work... will be lost in it for the new few days. Thanks again.
Do you gents know of a dominant rustlang slack?
Is there an easy way to avoid boxing of floats when doing java interop? e.g.,
(set! (.someFloatValue some-object) (unchecked-multiply 1.0 3.0))
results in a Float.valueOf in the resulting bytecodeI think clojure doesnāt support float literals, so the unchecked-multiply is applying to doubles
Long: 7, hex 0xff, oct 017, base 2 2r1011, base 36 36rCRAZY BigInt: 7N Ratio: -22/7 Double: 2.78 -1.2e-5 BigDecimal: 4.2M
via http://clojure.org/api/cheatsheet
Trying out the new alpha, and it looks like pr-str
automatically outputs the new namespaced map syntax, like so:
user> (pr-str {:db/ident :foo})
"#:db{:ident :foo}"
Is there a way to keep the namespace on the key? I'm running into issues with edn parsers in other languages not knowing what to do.you could probably use an older version of clojure's pr-str (edit: tools.reader doesn't contain pr-str)
Has anyone else encountered bugs trying to handle byte-arrays in protocols? The following works fine:
(extend-type (Class/forName "[B")
PrivateKey
(private-key [data] (BigInteger. 1 data)))
But this throws java.lang.IllegalArgumentException: Don't know how to create ISeq from: java.lang.Character
(extend-protocol PrivateKey
(Class/forName "[B")
(private-key [data] (BigInteger. 1 data)))