Forest Gregg

@fgregg
592 Followers
487 Following
1.3K Posts
partner at https://datamade.us
"using my custom formula, I would get a prediction"
personalhttps://bunkum.us
githubhttps://github.com/fgregg
observablehttps://observablehq.com/@fgregg
bskyhttps://bsky.app/profile/bunkum.us

RE: https://mastodon.social/@fgregg/111429385063753445

i revisit this problem every few years to learn something new.

this time i used PuLP.

my branch and bound rust version took 10 minutes to solve the problem at K=30 (or more accurately to prove it had found an optimal solution).

this takes less than a second.

https://gist.github.com/fgregg/45f0c6e7f991789cd3f10414958b0ef8

if i do have users write duckdb-flavored sqlite, i need to think about how i advertise that they need to write a different dialect than they might expect.

i'm pretty close to refactor of datasette to allow pluggable backends so duckdb can get a first class treatment (unlikely to ever make it upstream), but i'm vacillating on what the interface should be.

datasette has enough of an installed based that users expect to write sqlite-flavored sql

so should users write sqlite-flavored sql (full power, less magic), or i should users continue to write in the sqlite dialect, and then translate that to duckdb's dialect transparently.

thoughts?

Ann Arbor's Hansen Nature Area to be renamed

https://engage.a2gov.org/hansen-nature-area-park-re-naming

"The original Hansen Nature Area deed contained an unconstitutional racially restrictive covenant inconsistent with Parks and Recreation Services' goal of providing exceptional experiences for all and ensuring that everyone should feel safe, welcome, and respected in the City Parks."

#a2council #a2gov #a2parks

Hansen Nature Area Park Re-naming

Soliciting ideas for a new park name

Engage Ann Arbor
there has to be a few really incredible marxist essays on coin collecting. please send them to me.

here's a python rewrite of a small but powerful tool by juho snellman that has saved me many hours over the years.

ported to python to make it a bit easier to install in my typical workflow, and i also made some adjustments for ergonomics.

https://github.com/fgregg/json-to-multicsv

GitHub - fgregg/json-to-multicsv: Split a JSON file with hierarchical data to multiple CSV files

Split a JSON file with hierarchical data to multiple CSV files - GitHub - fgregg/json-to-multicsv: Split a JSON file with hierarchical data to multiple CSV files

GitHub

here's a package that lets you use postgresql's full text search as a search backend for haystack in your django project.

https://pypi.org/project/postgres-fts-backend/

why i might be interesting:

1. postgresql fts has gotten pretty good
2. any complicated enough search implementation will reinvent most of haystack
3. even if you ultimately want a dedicated search provider, it's nice to get started without and additional service to run.

#python #django

Client Challenge

If anyone has been wailing and rending their garments for the past two years over the broken Zotero plugin that downloaded PDFs from Sci-Hub for you: I fixed it, and it works on the new Zotero 8 beta. You're all very welcome.

i wrote an explanation about what salesforce really is: a cursed way to write web applications.

https://bunkum.us/2025/12/18/what-is-salesforce

Salesforce is just a really weird web framework

The horrifying but ultimately admirable truth about what Salesforce really is.

i’d just like to interject for a moment. what you're referring to as a scythe, is in fact, a snath/scythe, or as i’ve recently taken to calling it, a snath plus a scythe…