Categories
Coding

Auto nvm use

I use nvm to manage my version of node which makes it easy to use the right version of node for specific projects. What has annoyed me with nvm is opening up a directory in terminal and running npm only to get: I’d have to remember to run nvm install after navigating to a project […]

Categories
Coding

Unexpected Handling of Element IDs in PHP DOM

tl;dr: In PHP, make sure you remove the id attribute from a DOM element before you try to use the same id on another DOM element, even if the you already removed the first element from the document. This is not the case in browser DOM. I stumbled across something really bizarre in PHP’s document […]