clojure-losangeles

https://www.meetup.com/Los-Angeles-Clojure-Users-Group/
nate 2020-04-09T02:30:28.002500Z

👋

esp1 2020-04-09T02:47:30.002900Z

thanks @nate for the talk on babashka!

👏 1
➕ 1
nate 2020-04-09T02:48:15.004200Z

you're welcome, glad to be able to share

nate 2020-04-09T02:48:30.004800Z

thanks to everyone who showed up and listened and asked questions

esp1 2020-04-09T02:49:33.005700Z

btw it looks like babashka has even better shebang support now - i just tried this and it worked: foo.clj:

#!/usr/bin/env bb -iO --stream

(prn *input*)
ls | ./foo.clj

nate 2020-04-09T02:51:21.006100Z

interesting, I get:

$ ls | ./foo.clj
/usr/bin/env: ‘bb -iO --stream’: No such file or directory

nate 2020-04-09T02:51:25.006300Z

what platform are you on?

esp1 2020-04-09T02:51:40.006600Z

Mac

nate 2020-04-09T02:51:54.007Z

ah, I'm on linux, maybe mac is nicer

esp1 2020-04-09T02:53:18.007700Z

oh, you might try adding -S to the env line:

#!/usr/bin/env -S bb -iO --stream

esp1 2020-04-09T02:53:56.008100Z

not sure if that’ll work?

nate 2020-04-09T02:55:00.008400Z

hm, no -S for my env

nate 2020-04-09T02:55:13.008600Z

$ ls | ./foo.clj
/usr/bin/env: invalid option -- 'S'
Try '/usr/bin/env --help' for more information.

nate 2020-04-09T02:55:33.008900Z

Ubuntu 18.04

nate 2020-04-09T03:22:17.012700Z

For those that didn't catch my obscure time reference, it was an attempt at being the 50th anniversary of the o2 tank explosion on Apollo 13. I ended up being off by a three hours (EST/PST). Oh well. You can check out a great view of the real event here: https://apolloinrealtime.org/13/?t=055:51:52

esp1 2020-04-09T03:24:33.012900Z

Hm, looks like -S was only introduced in coreutils 8.30. I have a box running Ubuntu 16.04 with coreutils 8.28 so it doesn’t work on there for me either.

nate 2020-04-09T03:27:23.013100Z

wonder if Ubuntu 20.04 will have coreutils 8.30

esp1 2020-04-09T03:27:27.013300Z

oh wow this is amazing - thanks for sharing!

nate 2020-04-09T03:27:29.013500Z

🤞

2020-04-09T03:35:41.013700Z

agreed, wow

bocaj 2020-04-09T04:31:34.014600Z

I couldn't make it tonight, did you record?

nate 2020-04-09T15:19:21.016300Z

@bocaj yes, it was recorded. Hopefully Ticean will post the video link soon.

👍 1
nate 2020-04-09T15:41:44.019100Z

Hey, just saw that @lukaszkorecki is interviewed oh the REPL podcast this week. Check it out: https://www.therepl.net/episodes/35/ Looking forward to listening.

😀 1
🙌 1
lukasz 2020-04-09T15:41:58.019300Z

😊

nate 2020-04-09T18:15:00.020300Z

I added more information to the README in https://github.com/justone/bb-scripts to show what is there and how to make more scripts. Hope it's helpful.

2020-04-09T22:02:58.022Z

Here’s the video recording of @nate’s excellent babashka presentation. https://reactioncommerce.zoom.us/rec/share/9JRMKq6vqnhIWM_I0l3-YpQlMdq1aaa81CEe_6ZenkaSswaUNL4ttMnMbhzqvN1y

bocaj 2020-04-09T22:04:57.023600Z

Yay!

2020-04-09T22:05:22.024200Z

@nate your examples are 💯 I’m having a much better time spelunking kubectl output with jet and bb now!

bocaj 2020-04-09T22:05:56.024900Z

Also looking into https://github.com/nomnom-insights/nomnom.duckula thanks for the refresher on “the repl” podcast with @lukaszkorecki

lukasz 2020-04-09T22:06:13.025300Z

my pleasure

nate 2020-04-09T22:06:52.026200Z

@ticean awesome!!

lukasz 2020-04-09T22:06:54.026400Z

the podcast plus upcoming clojure/north talk forced me to start wrapping up some of the features we haven't opensourced yet (end-to-end avro and swagger.json generator)

👍 2
bocaj 2020-04-09T22:07:32.027200Z

Off topic, looking for data modeling guidance. This is enterprisey but thorough turning relational into something graph-like: https://datavaultalliance.com/news/dv/understanding-data-vault-2-0/ any other resources you all recommend?

bocaj 2020-04-09T22:15:21.028400Z

Yeah, didn’t think so 🙂 weird space where databse modelers trying to solve the world with an “EDW”.

lukasz 2020-04-09T22:16:24.028800Z

Is that something like the star schema? https://en.wikipedia.org/wiki/Star_schema

bocaj 2020-04-09T22:17:59.030Z

I’m finding it interesting b/c the author’s point is to make it immutable at the core, and make as few assumptions in a foundational model, and then layer other stuff on top

bocaj 2020-04-09T22:18:39.030800Z

so “star++” maybe 🙂, I think there’s a quote calling it “6th normal form” 🤷

bocaj 2020-04-09T22:20:15.031300Z

A Star schema would go on top. https://en.wikipedia.org/wiki/Data_vault_modeling

bocaj 2020-04-09T22:25:07.033100Z

Cruxdb might be solid enough soon to forego modeling something like redshift to be immutable, and then write something on top of cruxdb so it works well with BI tools, metabase, or something similar.

bocaj 2020-04-09T22:26:11.033800Z

If anyone’s interested, I’ve been following Crux and I think they’ll get SQL working well soon, https://opencrux.com/docs#faq-comparisons

nate 2020-04-09T22:40:30.034500Z

I've definitely wanted to try Crux out, are they thinking of providing an SQL interface to it?

Lu 2020-04-11T12:17:20.037400Z

It’s work in progress :) https://github.com/juxt/crux/issues/514

nate 2020-04-11T17:21:44.037800Z

Very cool!

nate 2020-04-09T22:41:10.034700Z

or SQL data as a source?

bocaj 2020-04-09T22:43:47.035400Z

Um, I think they’re going with Kafka sinks/source for shuttling things around. The SQL interface is to execute queries using e.g. jdbc.next

bocaj 2020-04-09T22:50:40.035600Z

https://opencrux.com/docs#kafka-connect-crux