·

Hey! I’m James Long. This is my new personal website. I’m using Roam as a content management system (soon to switch to logseq). This is my personal knowledge graph that I’m sharing with the world.

·

Hope you find this content useful. I write things down frequently, and every now and then compile ideas into more polished posts. Below are my daily notes.

·

Pages you might find interesting: Coding environments

No content

[[Foo]]

Daily note
·

Rewrote the site

·

This whole website comes from my block database. Right now, it hits an API that reads directly from Roam by loading the whole thing in a headless browser instance since Roam doesn’t have an API.

·

It’s a broken mess, and horribly slow.

·

Luckily, you can export your Roam database. I can automate exporting and uploading to a server, which then can directly read from the db. Not only is this way faster, I could potentially replicate the db across the world on multiple servers.

·

It also makes development way faster. In fact, that’s the primary reason I looked into this. When changing the queries, I’d have to restart the headless browser which takes 20-30 seconds. It’s a terrible development flow, but now I can snapshot the data and reload instantly.

·

Once you export your data as EDN, here’s how you load and query it: