data posts

Blog comments / mentions display back

I have brought back the display of existing comments on this blog. When I switched away from WordPress to my own blog solution, I didn't build any display of comments on posts since I haven't had comments enabled in years and wanted to make the switch quickly. I also wasn't sure how I wanted to handle storing them, since my site data repo is public and will likely have an open license at some point. Storing quotes by others under my own license is probably fine, but I decided to mostly do summaries unless the exact quote seemed important. I did mostly do full quotes of my responses, since that's definitely my data. So I put their comments and my responses all in a single markdown file per post, in more of a prose format than normal comments are shown.

Continue reading post "Blog comments / mentions display back"

Sequel Ace

I finally moved from Sequel Pro to Sequel Ace. Sequel Pro hasn't been updated in years. It mostly worked but did have some annoying problems. During a recent OS and app reinstall, I found that Sequel Pro was no longer available on Homebrew, so I went for Sequel Ace, a fork that is still maintained. It is very similar but improved. I like it.

Continue reading post "Sequel Ace"

I had a stressful end of workday yesterday. I accidentally deleted the database on three live sites, including our most important e-commerce site, and had to scramble to restore from backups. Continue reading post "#4622"


Sorting with `FIELD()` function in Doctrine

I recently needed to sort query results to match the order of IDs passed to it for use in a WHERE … IN() clause. In MySQL, this can be done using the FIELD() function in the ORDERY BY clause. For Doctrine, which doesn't have the FIELD() function and doesn't allow functions in the ORDER BY clause, there's a little more work needed to make use of it.

Continue reading post "Sorting with `FIELD()` function in Doctrine"

</toby>