I have spent a lot of time trying to understand how to setup cache for json and API requests in Cloudflare lately and finally i have made some progress. This is not a step by step guide but mostly a "notes to self" post so i can make some more sense of it all. - If workers are active on a route page rules are ignored. Took me a while to realize this. - Clou...
We all know basic keybord shortcuts like ctrl-c / crtl-v and so on. I will try to make my memory learn a few new ones in VS Code. I will update this document as i go and add a new one each time i try to learn it. CTRL-SHIFT-ARROW KEY RIGHT / LEFT "Smart Select", selects the current section one step at the time. Works with HTML and "code. CTRL-HOME/END Go...
The update system in yarn / NPM is a bit confusing to me. You run update and packages gets updated but nothing happens in package.json. I know yarn-lock handles it but again, i don't understand it 100% and it feels a bit unclear. What i want is a way of actually update the version numbers in package.json and today i found a way. The trick is to use ``` yar...
Today i had some issues with Docker and i just got the message "Docker failed to initialize" when i was trying to start it on my Windows 10 machine. I'm not sure why this happened all of a sudden but it either had to do with an update to Docker Desktop or that i activated TPM in my BIOS (i did not install Windows 11). Anyway, this was fixed bu just deleting...
I was trying to setup component testing in Cypress this morning and I ran into the error **Cannot read property 'version' of undefined**. I tried various searches on Google but didn't find any solutions but when I searched directly in the issues on Cypress I finally found the answer. So I'm mainly writing this to give the post some jucie so that other finds ...