Aubrey Portwood
Senior WordPress Developer/Engineer, Stoic, Girl-Dad², Tennis Player, INTJ,
Enneagram 1, & Vintage Computer Tinkerer—based in Albuquerque, NM.

Posts

Just replaced Safari with Orion on my Mac and my iPhone (See Update)

Update, Dec 5, 2022 8:49 AM: Turns out Orion doesn’t have form autofill, something I have to have.

Maybe if they bring this to Orion, I’ll try again…

  • Yup, I’ve been demoing Orion as a possible replacement for Safari (without losing many of the features of Safari) for weeks now, and moments ago Orion became my daily driver for both my Mac and my iPhone.

Note, it is not my daily driver for development. I recently switched to Vivaldi for that.

A few things I have been loving about Orion:

It’s Safari

Under the hood it’s basically running Webkit, and of course on iOS it’s obviously running the same. This means I don’t lose out on features like selecting text in images/video, etc.

Compact toolbar

Orion compact toolbar

I like normal tabs and I don’t want my UI taking up a ton of space. Orion features a truly compact toolbar and nice rounded tabs.

Profiles for Orion

I’m also not sure what I will do with this feature (separate profiles, think Firefox containers), but it might come in handy later…

Tab Groups / Manage Windows

Tab groups in Orion

One thing I love about Safari is the Tab Group features. Orion does the same thing called Manage Windows, and it even opens a new window for the session vs. switching away from your active session.

Reading List

Reading list still works in Orion

I didn’t lose out on the Reading List feature of Safari either.

Reading List Manager in Orion

You can even manage your reading list, which is a huge improvement over Safari!

Ad blocking built-in

I had to download an extension to get ad-blocking into Safari. Orion comes with it built-in!

Extensions

I don’t usually use extensions much in Safari for casual browsing (except for ad-blocking). But I have confirmed that you can install Chrome & Firefox extensions.

iOS

Now that you can set a default browser in iOS, there are a few features I really like about the iOS app.

Touch-ID protected private mode

Sometimes I want to look at websites without my family accidentally seeing it, especially with my kids grabbing my phone to listen to Taylor Swift. Not only can you have private tabs, but you can also put them behind your fingerprint. Nice.

I know what you’re thinking… stop.

Rich Settings

The settings in the iOS app have just about everything, down to the user-agent used, etc.

Rich settings in Orion for iOS

Extensions

I haven’t played around with this either, but being able to use extensions in iOS is nice.

.com and @ in my keyboard

Keyboard in Orion for iOS

Having these little symbols in my

Vivaldi

I’ve been going back to G00gle Chrome for it’s Devtools too-often after switching to FF DE for my main dev browser. It makes me wonder if I should go back.

Vivaldi to the rescue! It’s come a long way and is a Chromium-based browser. I’ll be trying the switch this week!

It’s super customizable!

And this split-view thing is going to come in super-handy.

How I keep xDebug in php.ini.hbs in LocalWP consistent

When you setup LocalWP and switch PHP versions it re-creates various php.ini.hbs files for each version (and the currently running) of PHP.

The problem is that it resets the xDebug config to use port 9003 every time. Furthermore it always turns off autostart in xDebug v3.

I want my port to be 9021 in every PHP version, and I want autostart on by default. But when I switch PHP versions my configuration isn’t retained.

So, I wrote a small script to help me keep my php.ini.hbs files consistent if it’s ever de-configured my PHP version switching.

  • Check it out here
  • How to get your Mallsoft .wav files to play for Winamp 🦙 2.9.5 in Windows 98SE

    I was messing around in Windows 98SE and was trying to play some of my Bandcamp Vaporwave in Winamp 2.9.5.

    But I was having some issues playing the .wav files you can download from Bandcamp:

    The fix ended up being to tell the “Nullsoft Waveform Decoder” to “Convert 24/32-bit to 16-bit” and it worked!

    How to get better tabs in Firefox UI (on Mac)

    Yes, the tabs in Firefox suck, they look like pills (or buttons) and look horrible, right?

    This is how I styled them to look a little more visually pleasing:

    Edit /Users//Library/Application Support/Firefox/Profiles//chrome/userChrome.css and add the following:

    Note, you should know where this file is. If you don’t, Google it and come back here.

    .tab-background {
    	border-radius: 0 0 3px 3px !important;
    	border-top-right-radius: 0 !important;
    	border-top-left-radius: 0 !important;
    	margin-right: 0 !important;
    	margin-left: 0 !important;
    	margin-bottom: 0 !important;
    	margin-top: 0 !important;
    }
    
    .tabbrowser-tab:not( [selected=true] ):not( [multiselected=true] ) .tab-background {
    	background-color: color-mix( in srgb, currentColor 10%, transparent);
    }
    

    I am using this theme, curious how this looks in other themes.

    Also, please let me know how this works on Windowz!

    How to hide bookmarks toolbar icons in Firefox (v106, 2022) on macOS

    Add:

    @-moz-document url(chrome://browser/content/browser.xhtml){
    	#personal-bookmarks .bookmark-item:not([container]) .toolbarbutton-icon {
    		display: none !important;
    	}
    }
    

    To:

    /Users//Library/Application Support/Firefox/Profiles/xxxxxxxx.dev-edition-default/chrome/userChrome.css
    

    How to add a custom XDebug Client menu to Sublime Text (on Mac)

    Note, this works with this package: XDebug Client

    Edit your Application Support/Sublime Text/Packages/User/Main.sublime-menu file and add the following to it:

    [
        {
            "caption": "XDebug",
            "mnemonic": "X",
            "id": "xDebug",
            "children":
            [
                {
                    "caption": "Continue",
                    "command": "xdebug_continue"
                },
                {
                    "caption": "Evaluate",
                    "command": "xdebug_evaluate"
                },
                {
                    "caption": "Restart",
                    "command": "xdebugsessionrestart"
                },
                {
                    "caption": "Stop",
                    "command": "xdebugsessionstop"
                },
                {
                    "caption": "Toggle Breakpoint",
                    "command": "xdebug_breakpoint"
                },
                {
                    "caption": "Clear All Breakpoints",
                    "command": "xdebugclearall_breakpoints"
                },
                {
                    "caption": "Start",
                    "command": "xdebugsessionstart"
                }
            ]
        }
    ]
    

    Now, at first all the menu items won’t show, but that’s because you haven’t started a debugging session. Just add a breakpoint and start a session to see all the other menu items.

    I wish SublimeText had a API for adding buttons for these, but I think this is as good as it’s going to get!

    See my configuration, as it may have been changed or improved.

    Happy debugging!

    How to run commands in a sub-shell and suppress output in the background that’s ZSH & shellcheck compatible

    TL;DR: This works:

    ( (
        bar
        foo
    ) 1>&2>& & )
    

    So, basically, what this does is run a sub-shell then bury your commands in another sub-shell and closes all STDOUT being reported and is sent to the background. I honestly am still not sure how this works!


    &!

    Because I use shellcheck with my zsh scripts, the following flagged an unknown error in shellcheck (because shellcheck does not support zsh at the moment) and it wouldn’t lint the file:

    () (
        foo
        bar
    ) &> /dev/null &!
    

    Specifically, it was the &! that wasn’t working (but is a valid ZSH directive to suppress background output). I would always get job output at the least using most of the suggestions, e.g., on Stack Exchange. So, I went down a Googling rabbit hole with no answers until I landed on:

    https://www.baeldung.com/linux/run-multiple-commands-in-background

    After navigating the formatting issues, I came up with the above Bash-compatible solution to run commands in the background with no output!

    🙌