Profile avatar
headlessheretic.com
Headless heretic 🔱 Writer. Freelance developer (ecommerce). Sci-fi and whiskey. I talk about headless development, e-commerce and freelancing
78 posts 31 followers 46 following
Regular Contributor
Active Commenter
comment in response to post
Bernie should have run against Trump first time around
comment in response to post
Date strikes again. Though I was surprised by this one because it was using a historical timestamp. But the `toLocaleDateString` apparently behaved differently in server/client even though the locale was defined.
comment in response to post
It's the only option the Democrats have if they want to remain relevant. There are voices within the Democratic party that can lead the way, and they have been ever since inauguration day.
comment in response to post
My electorate is a safe electorate, so I already know where my preference will flow in the end. But I'll put some other candidates above just to show discontent I guess. Hoping for a continued rise in independents to challenge the current status quo.
comment in response to post
We use preferential voting here, so you number the candidates in your electorate from 1 - Last. If your 1 doesn't make it past the ballot, they check your 2 and so on. This has put a lot of independents in parliament in the past decade. A way to show the major parties they need to change.
comment in response to post
The Democrats lost the election more than the Republicans won it. From a European's perspective, the Democrats are far from left. They have a few left-leaning policies, but they're still a party for the rich. They just slow down the rising wealth disparity, but do nothing to fix it.
comment in response to post
We have our own Trump-lite, a.k.a Lord Voldemort, a.k.a. Mr Potato Head. He tried to run on a similar campaign (DOGE etc), but it's backfired and he's been forced to spend most of the campaign backtracking. We'll see how this translates when echo chambers fail to report it, or make up excuses.
comment in response to post
100%! Somewhat similar over here as well (our election is coming up this weekend). Neither of the major parties mention who's been getting richer while everyone else has been getting poorer. All the talk about inflation forgets to mention that someone reaps the rewards of higher prices.
comment in response to post
Head on the nail there, mate. A big problem with echo chambers is that people get trapped and bombarded with distractions designed to make them not realise the real issues. "People can't afford housing or food, and I lost my job to AI." ... "Look, a trans person in the women's bathroom!"
comment in response to post
I worry about echo chambers sometimes. I used to feel hopeful about humanity's future. Then I realised the algorithms weren't showing me the nonsense when a certain orange clown got elected across the pond. At the same time, I'm happy I don't see too much of that rubbish, I'd go mad.
comment in response to post
did you ask it to list what it's done in the past week?
comment in response to post
Wow, nearly one in three OT games goes to shootout. That's more than I thought
comment in response to post
And a lot more entertaining! Yeah, I'm torn on the loser point. Going with a 3-2-1 point system like the Swedish league does is an option, but it can really make the top teams run away with it, killing off the playoff race too early
comment in response to post
Agree! I'd rather the game ends on a tie after 10 mins OT than let the extra point be awarded to the winner of a skills comp
comment in response to post
The poor DX in theme dev leads to high attrition. Talented devs stay clear of ecom, or get out as soon as they can. Talk to recruiters for other dev fields and you'll soon find out how the industry sees ecom. This needs to change. 2/2
comment in response to post
Could you opt out of stega encoding on subfields? This value never needs to be mapped to the studio. Or should I just not use a string in the first place and work out a different solution?
comment in response to post
So now I'm stuck with either adding a dependency to stegaClean from @sanity/client/stega or hoping that this regex covers all possible issues: /[\u200B-\u200D\uFEFF]/g Inspecting the source for stegaClean, it in turn has a dependency to a vercel package with a much more complex regex
comment in response to post
Found out why: www.sanity.io/answers/issu... Stega adds zero width space characters for mapping in preview sessions. That wouldn't be an issue if I wasn't using this value for placement, which needs to work properly in preview sessions too
comment in response to post
So turns out it's because the alignment value has *a lot* of zero-width-space characters appended to it. I thought maybe copilot was playing tricks on me. So I deleted the values from the Sanity schema and entered it manually. Nope, still getting it.
comment in response to post
Having lots of fun doing it and getting to try all the latest Sanity features in the process. Presenting the proof of concept on Tuesday to sell the full project. Wish me luck! Worst case scenario I've wasted a week and a half. Best case I walk out of there with some more $$$ and a happy client
comment in response to post
yeah I think it get it. It only works in the studio. That's fine. Wow, this stuff is neat!
comment in response to post
Oh, and it only shows up when I'm in the studio on the presentation tab. Not when I'm on the page. Is that expected?
comment in response to post
Ah I got it showing up. But for some reason it's only showing up for the parent, not the array items, so I can't move anything around since the only spot available is right where it sits
comment in response to post
I wish GROQ was everywhere
comment in response to post
It's a game changer when you need work on both the schemas/content and the corresponding code in the frontend. Instead of switching between tabs it's all just there
comment in response to post
Hmm, that might not actually happen with Gmail 🤔 does with other email providers though
comment in response to post
Another neat thing about that is that all the emails from that service end up in a folder with the same name as what you put after the +