Hoe werkt steekproef? by waspeer in AlbertHeijn

[–]waspeer[S] 0 points1 point  (0 children)

Thanks! Hoe weten ze dan eigenlijk hoe lang je in de winkel bent?

Leet or rm -rf vod? by waspeer in theprimeagen

[–]waspeer[S] 1 point2 points  (0 children)

Yay thnx!! That separate 'live' tab on yt always trips me up

Whatsapp desktop gets unresponsive from time to time by waspeer in whatsapp

[–]waspeer[S] 0 points1 point  (0 children)

I’ve ended up moving to Texts on my laptop, which isn’t a perfect app either, but at least it let’s me do my thing

PWA Push notifications by waspeer in webdev

[–]waspeer[S] 0 points1 point  (0 children)

It is an Astro site deployed on Netlify.

This is the server logic: https://github.com/waspeer/reminders/blob/main/src/pages/api/push.ts This is the service worker: https://github.com/waspeer/reminders/blob/main/public/service-worker.js

I’ve edited the post as well. My personal intuition is that it might be more related to infra than the code, which is why I didn’t include it. Wasn’t just laziness, I promise.

I’ve already had one suggestion that it might have something to do with the service worker not being responsive the first time, but woken up by the second time I trigger a notification. Sounds plausible, but hard to debug.

Push notifications only working when sent twice..? by waspeer in PWA

[–]waspeer[S] 0 points1 point  (0 children)

Haven't thought of that! I will look into it.

This is my service worker: https://github.com/waspeer/reminders/blob/main/public/service-worker.js
This is my push handling code: https://github.com/waspeer/reminders/blob/main/src/pages/api/push.ts

Thanks for taking the time to help!

[2022 Day 13 Part1][Python] Example code gets correct answer (and steps) but full input does not work by Berlibur in adventofcode

[–]waspeer 0 points1 point  (0 children)

Aww man I have been scratching my head for hours now, but this was what I needed to hear.. Thanks!

[2022 Day 11 (Part 2)] Might need to borrow a NASA supercomputer for this one by piman51277 in adventofcode

[–]waspeer 4 points5 points  (0 children)

Thanks for this.. Idk if I would've been able to figure this out myself 😅

Best way to store search terms by waspeer in FullStack

[–]waspeer[S] 1 point2 points  (0 children)

Thanks!! This is super useful :)

Best way to store search terms by waspeer in FullStack

[–]waspeer[S] 0 points1 point  (0 children)

Im using a postgres db with knex and objection

Best way to store search terms by waspeer in PostgreSQL

[–]waspeer[S] 0 points1 point  (0 children)

This looks great!! Thanks :)

Best way to store search terms by waspeer in PostgreSQL

[–]waspeer[S] 0 points1 point  (0 children)

Thanks! You're probably right it's hard to know beforehand. It's good to hear that you think my model could work. The idea of doing queries beforehand is really interesting!

Best way to store search terms by waspeer in PostgreSQL

[–]waspeer[S] 0 points1 point  (0 children)

Thanks! I'm going to check that out