All .dev URLs return Unknown Host Error in macOS (OS X)

    So... I discovered a strange problem, any website using a .dev suffix would give me an unknown host error. First I figured it was my DNS, swapping servers and clearing the DNS cache, trying my VPN etc which didn't work. Pinging any .dev URL would return pings absurdly low responses suggesting somewhere something was routing all requests to local/127.0.0.1.

    Checking my etc/hosts was a bust as well as Apache's vhosts. After about a half hour of reading I found the following thread, Pinging test.dev after Laravel Valet install returns "Unknown Host" .

    Posters mentioned dnsmasq utility. To fix the problem, users used brew (OS X package manager) reinstall/restart it. Being semi-familiar with brew, I used Brew's list command. I found that I indeed had it installed. I tried the perscribed method which didn't work but I felt like I was on the right path.

    Not giving up, I dug up the dnsmasq.conf file located in usr/local/etc and noticed a single entry, address=/.dev/127.0.0.1. I deleted it and after a reboot, every thing was back to normal.


    Cme Xkey 37 Le Review

    ---
    layout: post
    title: "CME Xkey 37 LE Review"
    date: 2020-12-15
    categories: front end development
    tags: [front end development]
    ---
    

    Earlier this year my old reliable first edition Korg MicroKey 37 died, after 7 years of service. I've bought multiple midi keyboards including a 88 key hammer action weighed keyboard which I quickly discovered was far too big for my use case. Since then, I've favored the 37 key for my sometimes music production mostly for the size and for the selection as there happens to be a bit more options at the 37 size over the more practical 49 keys.

    With 2020 being what it is, I've revisited my audio studio setup and decided to buckle down and actually learn to play the keyboard. I had bought the current microKey only to discover... I hate slim-width keys while trying to actually play anything.

    The search for the ideal 37 key

    Searching for high end small keyboards is a bit of an oxymoron. Here's my observations:

    • The most expensive keyboards in the 49 and below form factor generally pack in "gee-wiz" features, pads, knobs and sliders. These are nice but drastically get away from my "small-as-possible" ideal. I also have an Ableton Push 2 and a NI Maschine MK II which are far more capable in the pad/knob department.
    • Weighed/Hammer Action Weighted keyboards simply do not exist sub 61 key. There's a few 49 semi-weighed keybaords like the Akai MPK249, which falls into the "gee-wiz" style, and certainly isn't small. 37 semi-weighed keyboards are pretty much nonexistent.
    • Most of the keyboards designed for travel use slim keys.

    This meant I had to reset my expectations, once I did I zeroed in on the CME Xkey 37.

    Low Travel / High quality

    we

    The Xkey is its own beast in a number of ways. First off, it's an aluminum chasis, which immediately sets it apart. After years of cheap midi keyboards, it doesn't feel frail but rather substantial. Next up is the lack of a standard pitch-bend/mod wheel. Instead, they're replaced with touch sensitive pads. Also, it's absent of a sustain pedal, instead featuring a sustain button, which is a mild disappointment but not a fail like the original Korg Microkey 37 which did not feature a sustain pedal at all. All of these choices are in the name of space saving as mod wheels and pitch bends take up space, as well as the 1/4 inch cable requirement for a sustain pedal.

    Lastly, there's the keys... The big pivot is the Xkey's keys are low travel, akin to a laptop. Pressing them hard results in the "clack" more associated with a alphanumeric keyboard than a musical keyboard, they're still velocity sensitive, and surprisingly features polyphonic aftertouch. Keyboards that feature after-touch continue to record the pressure of a keyboard press, but usually as a global. Polyphonic records the aftertouch per-key.

    timing chain / cam sprockets


    Drupal 8 Upgrade Fails with Fatal error: ClassFinderInterface not found

    Upgrades for Drupal 8 can sometimes go south rather badly and result in an error such as this:

    Fatal error: Interface 'Doctrine\Common\Reflection\ClassFinderInterface' not found in /var/www/html/core/lib/Drupal/Component/Annotation/Reflection/MockFileFinder.php on line 14

    I'm not PHP guy it took a while for me to unearth as the documents are thin and solutions vague. Googling it will suggest that the composer version is to, be blamed but adding to composer.json "doctrine/common":">2.8" probably won't work, it didn't for me. I went on a wild multi-day adventure to solve this and the fix is actually pretty simple as it has to do with composer, the dependency manager for PHP. Rather than recount my frustrations with updater composer in my docker setup, I'll skip to the goods.

    So here's the fix:

    Note: If using docker, you'll need to docker exec bash into the container running PHP.

    1. Merge in the drupal updates from the Drupal repository
    2. Delete the /vendor directory and the composer.lock file
    3. Run composer self-update
    4. optional add "doctrine/common":">2.8" to your composer.json. This may/may not be required
    5. Run composer update to update all of Drupal's dependencies.

    Troubleshooting

    Problem

    Running composer update results in the long error message: [ErrorException] "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? or [ErrorException] "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? or it results in Fatal error: Uncaught Error: Class ‘Drupal\Composer\Plugin\Scaffold\Operations\AbstractOperation’ not found in /var/www/html/vendor/drupal/core-composer-scaffold/Operations/ReplaceOp.php:15

    Solution

    Delete the /vendor and composer.lock


    Resolving 'Sorry, you are not allowed to access this page' WordPress error on Pantheon

    If you ware here, you are probably experiencing the following issue:

    • A WordPress feature or plugin keeps returning the following error "Sorry, you are not allowed to access this page" when you try to access it.
    • This only occurs on your test and live environment but does not occur on dev or a multidev environment or local development space.
    • Cloning your live database/files from your live site to your other environments has no effect, it always works on your dev/multidev/local dev environments.
    • You may have checked to see if your PHP versions in all the environments match (spoiler: they do). PHP error logs, enabled WP Error logs and so forth and still are very stumped
    • Tech support doesn't know the answer.

    This issue happened to me with the plugin "Related Posts for WordPress" on my company's website.

    This boils down a pretty easy fix but does have some asterisks that need to be attached to it. By default, Pantheon configures the wp-config.php with a lot of preloaded things, most of which are required. You can read about it here.

    In your wp-config.php, locate the following

        // FS writes aren't permitted in test or live, so we should let WordPress know to disable relevant UI
        if ( in_array( $_ENV['PANTHEON_ENVIRONMENT'], array( 'test', 'live' ) ) && ! defined( 'DISALLOW_FILE_MODS' ) ) :
          define( 'DISALLOW_FILE_MODS', true );
    endif;

    So for a quick breakdown, Pantheon provides a $_ENV superglobal variable that allows for Pantheon specific configuration to be passed into WordPress so no server credentials are commited into your codebase.

    One of the things that you can access from the $_ENV variable is PANTHEON_ENVIRONMENT. The above nugget of code checks to see if the environment is test or live, to disallow file modification. Simply removing this if statement or commenting it out will fix your issues but it comes with some caveats.

    The DISALLOW_FILE_MODS stops the ability to install WordPress updates, plugin updates, and plugins from being installed in WordPress on both the test and live environments. This is desirable because of Pantheon's git flow. Any changes performed to test or live will be overwritten when a lower environment is promoted upwards. Example: If I promote dev to test, any added plugins or plugin updates on test that are not commited to my code base will be lost.

    So, in short, this isn't a recommended fix for websites that are not managed by developers or very savvy users. I elected to comment out the code on our site as the only users of our website for content entry are all people working in a digital agency.

    // FS writes aren't permitted in test or live, so we should let WordPress know to disable relevant UI
    if ( in_array( $_ENV['PANTHEON_ENVIRONMENT'], array( 'test', 'live' ) ) && ! defined( 'DISALLOW_FILE_MODS' ) ) :
        // define( 'DISALLOW_FILE_MODS', true );
    endif;

    That's it, one line of code fix. Hopefully this sames someone else hours of reading.


    A Threat to Democracy

    Even as Trump tries to back pedal, his remarks still remain that he wants to block funding for United States Postal Service limit voter access.

    This is what a slow moving kakocracic coup looks like.


    Negative Partisans and Portland

    Portland is not a warzone.

    I've meant to write something about Portland and the protests as I've written several items about life in Portland and Covid-19 (also here and here and here), but in reality, the expression of Portland is best summed up by two conversations I had in my home town on the southern coast. A cashier noticing my Portland address asked how nuts Portland was. I think she expected harrowing tales of fearing for my personal property and safety as crazed Antifa bands roved the streets in masks and body bags lined the street with deceased COVID-19 patients. My reply was a massive letdown. I mentioned lockdown was boring, people took it seriously, and I saw protesters marching past my apartment routinely as I live in southeast Portland. The most egregious behavior I saw was protestors j-walking across Powell Blvd at roughly 21st street.

    Then another person who knew my family, older than me, mentioned they understood why I wanted to split time between my hometown and Portland with its problems. Again, the perception of Portland was vastly different than the reality. When I'm in Portland, life is as normalized as it can be with the pandemic.

    Like every major city, it's vibrant, but the lights are flickering under the stresses of Covid-19 but also being made brighter as they try to find the path forward for racial justice.

    The support for the fascist motions by Donald J Trump seems to be negative partisanship, as opposers care less about winning rather than making the other side lose regardless if it hurts them in the process. It's unnerving as somehow people like me, a guy who grew up in a town of 2500 people and three traffic lights, can drive a tractor, whose parents are 3rd generation farmers, is the enemy. The cities are filled with people who have rural bonafides like myself just as rural America has former metro residents. I don't have any answers. Best I can do is help change perceptions of Portland to illustrate how out-of-bounds federal secret policing is.

    Portland is not a warzone.

    </section>


    More questions than answers: x86 -> ARM

    I'm not entirely optimistic.

    Apple finally announced what one of the worst kept secrets, a transition to ARM CPUs was. Apple is correct in its assessment that the performance-per-watt for the ARM platform has outstripped x86. Apple's A12Z is competitive with the MacBook Pro 2019 i9 in single-core benchmarks and produces a little more than half of the multicore scores with much much tighter thermal budget. It's damn impressive, but not entirely reassuring. Let's run over the facts, and Apple will be shipping new Intel Macs for the next two years. ARM Macs will not arrive until late 2020. Rosetta 2 will ship to assist running x86 binaries on Intel. iPad/iPhone Apps will run on the macOS hardware.

    I have many questions and not as much optimism. ARM is kickass at a performance to watt, but Apple has absolutely nothing on Ryzen or worse the Epyc chipsets in multicore scores. ARM is amazing on a tight thermal budget, so the fact an iPad Pro is somewhat viable against the latest Core i9 MacBook Pro 2019 is impressive (even if it's roughly half as fast in multicore). I'm actually somewhat optimistic Apple in 2 years can have something semi-competitive in raw CPU horsepower on the laptop end of things (MacRumors lists a 12-core CPU). Apple SOC ARM CPUs put up big numbers on passive cooling but less so when it comes to the rest of the package. There are no freebees like PCIe controllers for Thunderbolt or a full-blown bus as a chipset is a sum of its parts and not just the CPU. AMD prints PCIe controllers on the die, and Intel requires that as part of the PCH chipset (post-Northbridge/Southbridge). This means Apple now in charge of taking on a domain that it's happily outsourced to Intel and IBM. PCIe is hardly an expression of x86 as the G5 went from PCI, PCI-X to PCIe and there are examples of ARM deployments with PCIe.

    Apple’s best SOC GPU scores in Metal benchmarks 1/10th of that of AMD (currently Apple does not support a modern Nvidia chipset). Their GPUs are more than competitive against the Intel HD GPUs, but it's hardly a cause of celebration. Maybe we will see Apple shipping SOC GPU + Dedicated GPUs on laptops like they do with Intel + AMD. To make up for the shoddy Intel GPUs, on the 15-inch laptops, Apple ships with the Intel GPU for lower power and a high power dedicated GPU when watts aren't an issue. GPUs at this point are nearly as important as the CPU, considering that they end up codec mashing, machine learning, physics modeling, and so on. A great mobile GPU is not a great desktop GPU.

    To circle back to PCIe is the foundation of NVMe. One of the more exciting features is that the PS4 is it's using a PCIe 4.0 SSD, which means 3.5 GB/s (not gigabits) a second. If Apple chooses to eschew PCIe, it'll mean fewer vectors for cheap storage, and likely no user-upgradable storage as m.2 has effectively replaced SATA.

    Thus far, there's absolutely no information on dual booting. Thus far it is not dual bootable on the Dev kits but that's not suprirsing. Considering the amount of ARM distros and MS dipping its feet into the ARM world, it's possible but much less so, especially on Windows without standardized hardware unless Apple provides the drivers. I'm skeptical Apple really has much desire on this front.

    Lastly, my fear is ARM will usher in the planned obsolesce that Apple has always dreamed of on laptops/desktops. Even today, I saw that Martin L on MacProUpgrade had already gotten Big Sur up and running on a 2009 Mac Pro using OpenCore. x86 despite its shortcomings, is rather resilient since Apple didn't create the locks to the box. I don't know what Apple will do for modular computers? I hope they do not kill them. Thinking about that makes me sad.

    That said, we have probably five years until ARMeggedon, as Apple intends to sell Macs with x86 for two more years and promised "long term support" for x86, which says to me, three years of Apple support on the last x86 mac. Fingers crossed, I'm very wrong about much of this.


    Unforgivable

    Another night of curfew in Portland...

    There's something to be said when your home country's policing is so egregious that it's spawned a global movement around #BlackLivesMatter. The photos are profound. You can argue about the right way/wrong way to protest, but we're seeing a global response as even people far away are sick and tired of seeing the unjust treatment of minorities in America.

    I'm exceptionally moved and also saddened that this is happening. I'm happy that the rest of the world is both siding with the correct side. I'm sad that it's even necessary. I'd like to extend a thank you for every far away protester as for showing compassion for our struggles.

    Meanwhile, DJT's response is unforgivable. He is a man of zero-compassion, a despot dictator in waiting, a cheap con-man, and unworthy of his position. I still can't understand the strange "masculinity cult" around an pudgey, out-of-shape man who wears makeup and easily gets hurt feelings over "bad ratings", lashses out and sulks publically. Being a man would be owning responsiblity. Trump only knowns how to shift blame onto others.



    I've seen the hot take that the Republican party has become a death cult, but holy hell, A G.O.P. Lawmaker Had the Virus. Nobody Told Democrats Exposed to Him. Meanwhile, Trump is retrweeting"the only good Democrat is a dead Democrat". Also, let's not forget they're setting the tone to sow distrust in elections in coup like fashion.



    Yesterday, A homeless man outside of the Hawthorne Fred Meyer held his sign read "need help". That's it, succinctly summarizing how most people feel. I gave him $5.


    The pitiful state of 4k for macOS

    Despite Apple's boasting about 4k, HDR and Dolby Atmos support in Catalina, still is non-existent. In December, 2014 (yes, nearly 6 years ago), MacWorld.com wrote the article, why you can't get 4k Netflix on a PC or Mac (Even though they're capable). Since then, Windows 10 has had some in-roads, but it's still not great. macOS has made virtually none.

    Service tvOS 4k macOS 4k Windows 10 4k
    iTunes Yes Yes* Yes
    Netflix Yes No Yes
    Hulu Yes No No
    HBOGo* No No No
    Amazon Prime Yes No Yes
    Disney Plus Yes No No***
    YouTube Premium Yes No No***
    ESPN Yes No Unclear

    • * - Requires Catalina for Dolby Atmos, 4k/HDR.
    • ** - HBOgo does not support 4k.
    • *** - May work with ChromeCast via Windows, YouTube. YouTube's regular service supports 4k Streaming for macOS.

    Endings

    Bandon, May 06 2020

    Coquille Point, Oregon, May 06 2020

    It feels irresponsible not to talk politics even on my quasi-profesisonal blog.

    "If you can imagine the scenario this fall or winter, maybe even early next spring, when the vaccine becomes available, there's no one company that can produce enough for our country or for the world. It's going to be limited supplies," Bright said. "We need to have a strategy and plan in place now to make sure that we can not only fill that vaccine, make it, distribute it, but administer it in a fair and equitable plan.

    "We do not have that yet, and it is a significant concern," he said.

    NBCNews.com - Ousted whistleblower Dr. Rick Bright unloads on Trump admin's coronavirus response

    This is followed up by Bright's quote, suggesting that the mismanagement will lead to the "darkest winter in modern history". That's a ringing endorsement of DJT if I've ever heard of one.

    It's impossible to disassociate from the absolute abject failure of Donald Trump. A common narrative is that Donald Trump opposes mass testing for fear it may hurt his re-election chances. If true, that means he's putting himself before the American people, yet again and again. He also opposes the United States Postal Service for fear of mail in voting when its the morally correct thing to do. I've had it almost the entirety of my adult life as an Oregon resident. This administration is getting people killed, and it should be referred to as Trump's Body Count. Now that I have that out of the way...


    New office is no office

    April 11, 2020 and April 25th, The Dalles, Oregon

    The Dalles, Oregon, April 11, 2020 and April 25th

    It's been a bit since I've done a status post, but Covid-19 is the new reality, and it isn't going anywhere. The company I work for was in the state of switching offices even before the outbreak with the lease ending in April, meaning I haven't had an office now for more than two weeks as it had to be cleared out before then. I was the last worker, working from our office as it was located across the street from McMenamins's Crystal Hotel, and Jake's Famous Crayfish. I didn't like the layout of our office, too noisy and too much glass but the location was desirable as Powell's was two blocks away. O Our company is now officeless and has been a blessing as we're now virtual, and there's no overhead. Dealing with the reality of Covid-19, our company likely will not get an office until 2021. The owners have zero reason to believe that we'll return to normalcy by then, and I don't blame them. I don't either.


    Streaming

    Table Rock, April 26th, 2020

    I've managed to get out of the house. Social distancing doesn't mean you have to stay indoors in a state as unpopulated as Oregon. While entertainment is at a standstill, I've discovered something. Some of Amazon Prime's TV shows are very good. I highly recommend Undone. I'm not into animation, but the rotoscoping is fantastic and compliments the uncanny reality of the show, blending a wonderfully human tale with elements of sci-fi. It also stars Bob Odenkirk. If that isn't a selling point, I'm not sure what is. Also, Fleabag was very good, Upload is fun and a little too real and the Jack Ryan series, is familiar but still entertaining.

    While Amazon has been at the original content game longer than Apple, I have to say among the streaming services, Apple remains one of the least compelling. I'm more interested in CBS's streaming service than Apple's and they're a second-tier player. As it stands, Apple's entry to TV is still a mystifying one. Unlike its other digital media services designed to sell other people's content (Apple Music, Apple News, whatever-they-call-their-movie-rentals/movies sales/TV show sales), the only original content comes from: Apple Arcade, Beats One Radio and Apple TV+. Apple Arcade is Apple doing what it's always done: sell software. Beats One is free, and more about showcasing Apple Music content. Apple TV+? It's just weird.