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 […]
![](https://web.archive.org./web/20220704171522im_/https://i0.wp.com/weston.ruter.net/wp-content/uploads/2022/02/PXL_20220223_1513135962-scaled.jpg?fit=1200%2C904&ssl=1)
I used to go up to Rocky Butte often to watch the sunrise. One time I was up there and the sun rose very close to Mount Hood. That was February 11th, 2006. Ever since then I’ve wanted to try to capture the sun rising directly behind the mountain and to see the shadow that […]
![Robert Redford nod of approval from Jeremiah Johnson (1972)](https://web.archive.org./web/20220704171522im_/https://i0.wp.com/weston.ruter.net/wp-content/uploads/2021/11/robert-redford-nod-of-approval.jpg?fit=1200%2C675&ssl=1)
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 […]
[Speaking Foreign Language]
![Caption of Jennifer Lopez speaking Spanish saying "speaking foreign language"](https://web.archive.org./web/20220704171522im_/https://i0.wp.com/weston.ruter.net/wp-content/uploads/2021/01/speaking-foreign-language-scaled.jpg?fit=1200%2C675&ssl=1)
During the inauguration of President Joe Biden and Vice President Kamala Harris today, Jennifer Lopez performed “This Land Is Your Land”. I usually watch everything with closed captions turned on so I don’t miss anything, but if I didn’t speak Spanish the subtitles wouldn’t have helped. During her performance the subtitles included something truly ironic. […]
![](https://web.archive.org./web/20220704171522im_/https://i0.wp.com/weston.ruter.net/wp-content/uploads/2020/11/the-painter-knows-best-the-oregon-daily-journal-scaled.jpg?fit=1200%2C611&ssl=1)
Twitter surfaced a tweet to me which had some newspaper clippings during the 1918 flu pandemic (aka “Spanish Flu”): The tweet didn’t cite the sources, but the clipping mentioning Portland jumped out at me since that’s my home. To find the source I googled for [“wearing masks in portland might save a life. it might […]
Story: Running on Mount Tabor
![Pump house for Mount Tabor reservoir #5 with Downtown Portland in the distance](https://web.archive.org./web/20220704171522im_/https://i0.wp.com/weston.ruter.net/wp-content/uploads/2020/09/PXL_20200927_205658004-scaled.jpg?fit=1200%2C1600&ssl=1)
I just published my first Web Story using the new Web Stories plugin, sharing some highlights of one of my favorite things to do: running on Mount Tabor. The images were taken on a Pixel 4 XL. The time-lapses were taken at 5x speed while I was walking. The Web Stories editor doesn’t yet have […]
![](https://web.archive.org./web/20220704171522im_/https://i0.wp.com/weston.ruter.net/wp-content/uploads/2019/09/2019-09-24T140111.jpg?fit=1200%2C900&ssl=1)
tl;dr In v1.3 the AMP plugin for WordPress no longer has to remove the Admin Bar to keep pages valid AMP. The AMP plugin allows WordPress themes to be developed as usual and have their templates and stylesheets used to serve valid AMP pages. It does as much as possible to prevent serving invalid AMP […]
Creating command aliases for Lando tooling
![](https://web.archive.org./web/20220704171522im_/https://i0.wp.com/weston.ruter.net/wp-content/uploads/2019/08/cropped-google-io-2019-e1566708774402.jpg?fit=1200%2C675&ssl=1)
I’m a big fan of Lando. Since first learning about it, I’ve switched from using a virtual machine with Vagrant (i.e. VVV) to using Docker containers for my day-to-day local development environment. Docker on its own is not the most ergonomic (at least, I’m not an expert), so wrappers like Local by Flywheel make it […]
![](https://web.archive.org./web/20220704171522im_/https://i0.wp.com/weston.ruter.net/wp-content/uploads/2019/07/cropped-amp-for-javascripters-talk.jpg?fit=1200%2C675&ssl=1)
Today at the JavaScript for WordPress Conference (#JSforWPConf), Felix Arntz and I gave a talk called AMP for JavaScripters about implementing interactive interfaces in AMP. Here’s the abstract we submitted for the talk: As we all know, adding JavaScript to a web page allows for dynamic page modifications. However, with that flexibility comes great responsibility: […]
![](https://web.archive.org./web/20220704171522im_/https://i0.wp.com/weston.ruter.net/wp-content/uploads/2019/03/jetpack-my-community-widget-escaping-problem.png?fit=1200%2C707&ssl=1)
Case study in how the AMP plugin for WordPress revealed a security flaw in a popular plugin. Not only did the AMP plugin prevent the XSS vulnerability from being exploitable, but it also pinpointed the code responsible.