This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-09-08
Channels
- # announcements (1)
- # beginners (21)
- # calva (27)
- # cljs-dev (25)
- # clojure (40)
- # clojure-europe (5)
- # clojure-italy (1)
- # clojure-uk (5)
- # clojurescript (9)
- # clojureverse-ops (1)
- # clojutre (1)
- # cursive (15)
- # datomic (9)
- # emacs (28)
- # fulcro (3)
- # jackdaw (5)
- # joker (3)
- # pedestal (1)
- # protorepl (6)
- # shadow-cljs (1)
- # spacemacs (3)
- # sql (1)
- # tools-deps (6)
- # vim (6)
- # yada (1)
trying to start REBL, seeing an exception:
Exception in thread "main" java.lang.ExceptionInInitializerError
....
Caused by: java.lang.ClassNotFoundException: netscape.javascript.JSObject
java -version
Picked up JAVA_TOOL_OPTIONS: -Dapple.awt.UIElement=true
openjdk version "1.8.0_192"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_192-b12)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.192-b12, mixed mode)
REBL-0.9.220
What am I missing?Adopt OpenJDK 8 does not include JavaFX. You either need the Azul (Zulu) OpenJDK 8 with JavaFX bundled or you need OpenJDK 11 -- and the additional dependencies on JavaFX.
Although we use Adopt OpenJDK 8 on our servers, for development with REBL I stayed with Oracle JDK 8 until I was pointed at the Zulu OpenJDK 8 / JavaFX bundle @ag
Zulu downloads for Mac https://www.azul.com/downloads/zulu-community/?&os=macos&package=jdk-fx
Is anybody interested in to donate / contribute / other form of engagement to clojure.spec data models and operations for warehouse, bookkeeping and more in the future? The goal is to code clojure.spec data models which everybody can use in their own systems. No point to research wheel again by everybody and it will be great to achieve standard one day. So you are saying no point to do it? So now you have to figure out for example which countries are in European union to make an invoice. So:
(def eu-countries #{"AU" "BE" "BG" "CY" "CZ" "DE" "DK" "EE" "GR" "ES" "FI" "FR" "HR" "HU" "IE" "IT" "LT" "LU" "LV" "MT" "NL" "PL" "PT" "RO" "SE" "SI" "SK" "GB"})
But yeah shortcuts for invoices are different sometimes, than countries codes. Why not make people live harder by governments.
(def eu-vat-prefix
(-> eu-countries
; Austria
(disj "AU")
(conj "AT")
; Grecja
(disj "GR")
(conj "EL")))
You have to figure out how to generate VAT-ID for each country. How to validate it.
On the end common things like validate / generate URL / e-mail etc.
I would like to add there also function like count stock, taxes for invoices etc.
There is a lot of unknown under the hood about data modeling. I think I can handle it and make such a library. But only if there will be people who would like to use it / contribute to it, because I can鈥檛 know myself law and needs in all countries / donate.
Does it make sense for you? Not even sure where to ask about it.Try to ask Alex.
Alex Miller of course
yeah, sorry, I need to work with stripe so first I'm looking for ready battle-tested solutions with docs/tests and active friendly maintainer
There seems to exist a couple of Clojure wrappers for the Java client that might provide a more clojurey experience but they might not be up-to-date. My go-to-choice would be to use the official java client via interop. You can look for examples in one of the wrapper libs https://github.com/clojurewerkz/elephant
My team wrote a wrapper for the Java API with support for the new payment intents stuff. There aren't many docs yet but it's available here: https://github.com/b-social/zebra
hi @UDA9YHF8V, it's probably private repo
Ah! Sorry, shouldn't be, let me take a look
Ok, that's now public at https://github.com/b-social/zebra, with some (very initial) docs at https://b-social.github.io/zebra/
Also, is there a way to do some kind of local eval that cant modify the global state?
you can catch Compiler$CompilerException around a call to eval
(try (eval `(def x 1 2 3)) (catch clojure.lang.Compiler$CompilerException e "Caught!"))
returns "Caught!"
can't really do any protected eval
eval is the root of all evil 馃懠
I have already accept my doomed fate. 馃懣
eval is the root of both evil and good, depending upon how you use it 馃檪
As are just about any functions and procedures one can imagine in programming, including +