PDFObject for Vue 3

I decided to make it easy for everyone (especially me!) to embed PDFs in a Vue project. Introducing: PDFObject-Vue, a PDFObject component created for Vue 3. Now available on GitHub and NPM.

Convert “localhost” to your Mac’s current IP address

When developing web pages, I use my Mac’s built-in Apache or MAMP.app. Viewing the page means using an address such as http://localhost/mypage.html. I decided to make my life a little easier by writing an AppleScript that looks at the open tabs in Chrome and Safari then replaces “localhost” (or custom domain) with my current IP address. Saving this as a service enables me to go to Chrome > Services to run the script.