biff

2024-05-08T07:49:11.550019Z

I have the starter project working with xtdb2 now. It's on an experimental xtdb2 branch: https://github.com/jacobobryant/biff/tree/xtdb2/starter-xtdb2 You can try it out like so:

git clone 
cd biff
git checkout xtdb2
cd starter-xtdb2
clj -M:run dev
Some notable files for any who'd like to peruse the code: • https://github.com/jacobobryant/biff/blob/xtdb2/libs/xtdb2/src/com/biffweb/xtdb.clj - implements some helper functions like submit-tx, which wraps xtdb.api/submit-tx and adds schema checking, in addition to a few more operations (`:biff/upsert`, :biff/update, :biff/delete). Implementation is much simpler than the version of biff/submit-tx for xtdb1. • https://github.com/jacobobryant/biff/blob/xtdb2/starter-xtdb2/src/com/example/app.clj and https://github.com/jacobobryant/biff/blob/xtdb2/starter-xtdb2/src/com/example/auth.clj - xtdb2 usage examples It's currently hard-coded to set up an in-memory node fyi. This'll stay on that branch until xtdb2 is stable. Mainly I just wanted to give it a spin and see how the current state of things is in regard to Biff's needs. Planning to write up a blog post next.

👍 9
🙌 3
🤘 1
Epidiah Ravachol 2024-05-08T16:21:56.989459Z

Going to do some Biff bragging here. I built this little daily puzzle game about daily puzzle games using Biff and Reagent, and plenty of wise guidance from the good folks at Clojure Camp: http://dig1000holes.com/digs/wastrle/ It's been a great learning project and has left me eager to make more!

🙌 5
2024-05-08T17:36:33.405409Z

will try this out soon!

2024-05-09T02:59:46.578159Z

is the number of characters you can use for each language the same each day? or does it match the number of characters needed for the solution?

Epidiah Ravachol 2024-05-09T03:40:53.084469Z

It matches the number needed for the solution, that way it's not just a guessing game.

2024-05-09T04:05:50.017929Z

hah well now I know for next time 🙂 my strategy of guessing 1 2 3 4 5 6 didn't work out unfortunately

😆 1
2024-05-09T17:04:24.720689Z

>

I beat #Wastrle at Balanced Ternary,
> English, and Binary! Cause the answer was
> also my password.
> 
> Digging streak: 🕳️🕳️
> (as of 2024-05-09)
> 
> 
got it this time, on the first try! Fyi I noticed that clicking the "share" button caused this error to show up in the console: Uncaught TypeError: navigator.clipboard is undefined I did a quick search and it looks like it's because the site doesn't have an HTTPS certificate set up: https://stackoverflow.com/a/51823007/1258629. If you want to add one it's pretty easy; just ssh into the droplet and do certbot --nginx

Epidiah Ravachol 2024-05-09T17:56:22.916659Z

Huh. I thought I had the HTTPS certificate set up. I'll give it a shot though.

Epidiah Ravachol 2024-05-09T18:19:27.583679Z

I don't know if this was the cause, but it looked like I had the HTTPS certificate set up for http://www.dig1000holes.com, but not http://dig1000holes.com. And I think I've fixed that, but I haven't had a problem with the share button, so I haven't tested anything.

2024-05-09T18:26:59.892929Z

ah interesting. does the share button work for you in production or just locally?

2024-05-09T18:29:20.862689Z

in any case looks like it's working for me now 👍

Epidiah Ravachol 2024-05-09T18:30:26.855729Z

Oh, that's good! Yeah, it was working in both production and locally for me. But before I fixed the certificate with http://dig1000holes.com, I was automatically being redirected to http://www.dig1000holes.com.

Epidiah Ravachol 2024-05-09T18:32:58.228599Z

Thanks for the help, by the way!

2024-05-09T18:34:59.557669Z

ah makes sense.

2024-05-09T18:35:02.603819Z

any time!