This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-15
Channels
- # announcements (10)
- # asami (5)
- # babashka (49)
- # babashka-sci-dev (8)
- # beginners (25)
- # calva (98)
- # cider (2)
- # clj-kondo (22)
- # clojure (32)
- # clojure-dev (12)
- # clojure-europe (32)
- # clojure-nl (3)
- # clojure-spec (3)
- # clojure-uk (10)
- # clojurescript (12)
- # community-development (1)
- # conjure (71)
- # cursive (7)
- # datalog (6)
- # events (2)
- # figwheel-main (2)
- # fulcro (4)
- # jobs (2)
- # kaocha (3)
- # lsp (43)
- # membrane (12)
- # missionary (9)
- # off-topic (61)
- # pathom (7)
- # polylith (2)
- # reagent (38)
- # remote-jobs (4)
- # shadow-cljs (17)
- # specter (1)
- # tools-deps (38)
- # vim (51)
- # web-security (5)
Hey guy! made my first tutorial using Babashka… would love some feedback if there is any… especially from @borkdude 🙂 - Ignore the typo in the title I’ve sorted it :face_palm: https://www.youtube.com/watch?v=jm0RXmyjRJ8

I've watched the first part and it looks very very good to me, thank you so much! I'll finish watching the rest later this week.
Thank you! Had an awesome time doing this one, Im just hoping all the info is accurate 🙂
@U02KYBC5WJY Could you also post this link in the #news-and-articles channel? 🙏
Sure!
Thanks so much man!
I noticed you restarted the REPL when you added a dependency. I usually also do that, but you can prevent that if you want by executing (babashka.deps/add-deps '{:deps ...})
Handy!
If you want to make videos about other bb related topics: bb tasks might be cool. It's a Makefile-like replacement but for bb/clojure. Docs: https://book.babashka.org/#tasks
@borkdude would you like to join in a video about nbb? 🙂
http://babashaka.net/ not sure 😅
no, iCal the calendar format 😉
Aka ics
It's plaint text and not that hard to parse but the semantics are tricky when it comes to timezones etc.
There is a nice library, ical4j so I may give creating a pod for it a spin.
you may also have some luck with #nbb btw https://www.npmjs.com/package/node-ical
I generally don't trust npm libs 😛 But it sounds like a good idea!
@U054UD60U nbb is pretty amazing. let me know what you think in #nbb
Added an example here: https://github.com/babashka/nbb/blob/main/examples/node-ical/example.cljs
Nice! I fell back to using ical4j with regular clojure as I wanted to merge calendars and ical4j supports that. But I might use node-ical when I need to actually inspect the event data! (However, reoccurring events are hard to parse manually)
Hey, any pointers as to why I can’t use this dependency?
(deps/add-deps '{:deps {com.auth0/java-jwt {:mvn/version "3.19.0"}}})
(import com.auth0.jwt.algorithms.Algorithm)
;; Unable to resolve classname: com.auth0.jwt.algorithms.Algorithm
Or any other recommendations for RS256 JWT signing in BB ?There is buddy pod here: https://github.com/babashka/pod-babashka-buddy but buddy.sign isn't included in there. If that is a solution to you, happy to receive a PR for it.
Else you could maybe try #nbb with e.g. https://github.com/auth0/node-jsonwebtoken
Thanks, I started making the changes in pod-babashka-buddy
but ran into BouncyCastle provider issues. Will have to have a bit more of a dig into it, something relating to Graal.
Unfortunately I won’t be able to use #nbb with it as this is part of a large program that is already using some other pods and a large part of the ecosystem
Perhaps something like this? https://github.com/codewhale/bouncycastle-graalvm-native-image
Let me give it a shot
or adding a reflection config. maybe you can post an issue / pr with what you did and what problems you encountered, if you get stuck
Thanks got it working in the end 🙂 https://github.com/babashka/pod-babashka-buddy/pull/4
@U015Y1A1N8Y That's fantastic!!!
Yeah so using the keys api returns BouncyCastle object that run into the world of problems
So that’s why I did it that way, just to ensure that everything to do with bouncy castle stays in the pod
The buddy.core.keys/private-key
returns org.bouncycastle.jcajce.provider.asymmetric.rsa.BCRSAPrivateCrtKey
for an RSA PEM
I have to pop out - will back back in 2 or 3 hours