Readit News logoReadit News
drewsberry commented on Artisanal handcrafted Git repositories   drew.silcock.dev/blog/art... · Posted by u/drewsberry
iJohnDoe · a month ago
What is this web site theme or CMS?
drewsberry · a month ago
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
drewsberry commented on Artisanal handcrafted Git repositories   drew.silcock.dev/blog/art... · Posted by u/drewsberry
styanax · a month ago
The site is built with a content creation tool which has used a lot of JS and CSS, but the CSS is atrocious in it's automated output so it's triggering the browser to have to interpret the mess of directives in every code block. The tool is generating HTML trash like (brackets replaced for comment to not parse):

    [span style="--0:#E1E4E8;--1:#24292E"] [/span]
...over and over, essentially giving style directives for every blank space in the code block. A less capable mobile CPU may well have issues rendering this site due to the presence of so much trash CSS inside it guts. $0.02 hth

drewsberry · a month ago
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.
drewsberry commented on Artisanal handcrafted Git repositories   drew.silcock.dev/blog/art... · Posted by u/drewsberry
jllyhill · a month ago
Am I the only one having troubles with the site on mobile? I'm using Firefox on a decent Android phone but the scroll is extremely stuttery and it distracts from the article unfortunately.
drewsberry · a month ago
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).
drewsberry commented on Artisanal handcrafted Git repositories   drew.silcock.dev/blog/art... · Posted by u/drewsberry
sc68cal · a month ago
To the site author: I'm on a MBP M1 Mac and honestly I can't really read the text. Far too small, and increasing the zoom just makes the text large but the margins less wide. Firefox reader mode also renders really badly.

Please, consider making the layout better for us old coders whose eyes are going, or for hi res displays

drewsberry · a month ago
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.
drewsberry commented on Everything you need to know about Python 3.13 – JIT and GIL went up the hill   drew.silcock.dev/blog/eve... · Posted by u/chmaynard
nmstoker · a year ago
Just a minor correction: it's looking like the release will be 7th October, back from 2nd October, for the reasons discussed here:

https://discuss.python.org/t/incremental-gc-and-pushing-back...

drewsberry · a year ago
Thanks for pointing this out, I hadn't seen that – I've just pushed an update to reflect this.
drewsberry commented on How Postgres stores data on disk – this one's a page turner   drew.silcock.dev/blog/how... · Posted by u/drewsberry
jayde2767 · a year ago
Just curious if anyone else encountered this same error from the initial "docker run" command:

docker: Error response from daemon: create ./pg-data: "./pg-data" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path.

drewsberry · a year ago
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"`
drewsberry commented on How Postgres stores data on disk – this one's a page turner   drew.silcock.dev/blog/how... · Posted by u/drewsberry
shreddit · a year ago
Why does closing the table of contents open the nav menu on mobile?
drewsberry · a year ago
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.
drewsberry commented on How Postgres stores data on disk – this one's a page turner   drew.silcock.dev/blog/how... · Posted by u/drewsberry
twic · a year ago
My company also blocks it, but as phishing.
drewsberry · a year ago
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).

u/drewsberry

KarmaCake day389May 16, 2012View Original