Better HN
topnewbestaskshowjobs
Log inSign up

drewsberry

466 karma · joined May 16, 2012 (14y ago) · 27 submissions

Submissions

1.

Is this the new cyber normal?(drew.silcock.dev ↗)

212 points · by drewsberry · 1mo ago · 221 comments

comment 10mo ago · link · parent

https://drew.silcock.dev

3.

Hunting a production-only proxy bug in SvelteKit(drew.silcock.dev ↗)

2 points · by drewsberry · 11mo ago · discuss

comment 1y ago · link · parent

There's no CMS, the site is generated from MD/MDX using Astro. The theme is an adapted version of Astro Micro (https://astro.build/themes/details/astro-micro/). Seems like some people like it and some don't, but I like it so I'm using it

comment 1y ago · link · parent

The site uses Astro (https://astro.build/) and the code blocks are generated using Shiki (https://shiki.style/). As Shiki generates the HTML and CSS at build-time instead of requiring runtime JS like alternatives like Prism (https://prismjs.com/#basic-usage), it's actually quite performant. I think it's unlikely that a couple of hundred lines with some empty spans in is going to cause performance issues – imo it's more likely to come from some silly JS somewhere.

comment 1y ago · link · parent

There was a silly on scroll listener that was doing basically nothing – I've tried removing that so if you happen to visit again, I'd be very grateful if you could let me know whether it is still happening (I can't reproduce it myself).

comment 1y ago · link · parent

Thanks for letting me know. I'm on an M3 and haven't experienced any issues myself, but allowing for font size configuration seems like a pretty good idea. I'd added this in so if you happen to take another look, I'd be interested to hear whether you think this is an improvement.

8.

Artisanal handcrafted Git repositories(drew.silcock.dev ↗)

266 points · by drewsberry · 1y ago · 68 comments

comment 2y ago · link · parent

Thanks for pointing this out, I hadn't seen that – I've just pushed an update to reflect this.

10.

How Postgres stores oversized values – let's raise a TOAST(drew.silcock.dev ↗)

2 points · by drewsberry · 2y ago · discuss

comment 2y ago · link · parent

It's probably complaining about the relative path, try replacing `-v ./pg-data:/var/lib/postgresql/data` with `-v "$PWD/pg-data:/var/lib/postgresql/data"`

comment 2y ago · link · parent

Thanks for letting me know, it was a typo in the "click-away closes nav menu" logic that opened it on the first click – all fixed now.

comment 2y ago · link · parent

Mine blocked it when I first created it, you can usually flag an incorrectly classified site and they'll correct it (I assure that you I'm not doing any phishing).

comment 2y ago · link · parent

There are dozens of us!

comment 2y ago · link · parent

Well if it isn't my arch-nemesis – my legally designated name. Maybe I should've gone for something with just my first name like drewsexpertblog.dev

comment 2y ago · link · parent

Thanks for the feedback, I really appreciate it :-) I've added the RSS feed to my home page now, as the other poster noted the URL is https://drew.silcock.dev/rss.xml.

comment 2y ago · link · parent

Very good point, I've rephrased this.

comment 2y ago · link · parent

Thanks for letting me know, I'll make sure to edit it quickly next time :-)

comment 2y ago · link · parent

Can't see any way of modifying the title, unless I'm missing something – maybe I missed the edit window.

comment 2y ago · link · parent

I did add it into the title originally, must've been stripped. Thanks for the heads up, didn't know HN had this "useful feature".

21.

How Postgres stores data on disk – this one's a page turner(drew.silcock.dev ↗)

556 points · by drewsberry · 2y ago · 91 comments

comment 6y ago · link · parent

https://radiooooo.com/ doesn't work because it's trying to XHR the http version of the site which gets blocked. The other .app domain works fine though, like you said.

comment 7y ago · link · parent

There's https://regex101.com/ for regex, does an excellent job, can't really ask for more

comment 9y ago · link · parent

This was posted to HN a couple of years ago. Has it changed since then? The discussion back then was fairly comprehensive, and most of the comments in here will likely replay the same questions (ligatures, comparison to other fonts like DejaVu sans, I vs i, etc.).

https://news.ycombinator.com/item?id=10140728

comment 12y ago · link · parent

Thanks! Let me know if you've got any questions about it.

26.

Show HN: Jekyll KaTeX Block – Integrate KaTeX into Jekyll(github.com ↗)

1 points · by drewsberry · 12y ago · 2 comments