Newsfeed

A list of one-click deployment providers

As Wasya Co offers one-click deployments of several applications and stacks, it makes sense for us to track our competitors. Nothing is new under the sun, and turn-key web applications (appliances) have existed for quite some time. There are many, many solutions for deploying infrastructure as a service (IaaS, SaaS). Multiple industries support the general Installation & Provisioning specialization. Of note, Docker, which we use extensively in-house, provides "one-click" deployments at scale, and more.

Prefix type of variable after the variable name

This one is pretty easy. Between suffixes (namespaces), roots (what a thing actually is), and suffixes and all that, I like to use a suffix (a word-final thing, something that goes at the end of the word) that denotes the type of the thing (name, variable) being used. It probably sounds more complicated than it really is so here are some clarifying examples.

The following examples are either variable names, or properties of an object, or fields of a model, or methods in a class, or keys in a hash. Hopefully you get the idea.

Cannot install Microsoft Teams on mac os x

When it says, something went wrong and teams could not be installed --

User TAFHBES published the answer on March 27, 2023:

"I had same problem on my iMac running Ventura on Intel. Problem went away when I placed installer in applications folder before running installer."

~ * ~ * ~ * ~

And this has worked for me. When I moved the installer to the Applications folder, it could finish the installation successfully.

~ * ~ * ~ * ~

Rails: How can I specify a local gem with Bundler or in my Gemfile?

You can do the following in your Gemfile, but then you'd have to switch the Gemfile between development and production, which is not recommended:

# Gemfile 
gem "foo", path: "/path/to/foo" 

Alternatively, you can tell Bundler to use a local gem in your current environment. This is preferred as the Gemfile still points to the production version of the gem. Run this in shell:

 bundle config set local.GEM_NAME /path/to/local/git/repository

How to mock fetch and a state change in jest, react

tl;dr: I decided not to do it.

Since Enzyme is obsolete as of React 18, you would use <render /> and not <mount />. Therefore, you don't have a wrapper to manipulate and observe the state of the component being tested.

Furthermore, I'm really only testing the component because it's a best practice, and because of the expectation of future complexity. The state change itself is trivial:

[FIXED] Uncaught PHP Exception EntityStorageException: Invalid address: (to): at SqlContentEntityStorage.php line 815

Seeing this ^ error and currently don't know how to fix it. It happens only on some of my (presumably identically configured) websites. This is happening when a user attempts to post any comment.

Turns out, this was due to a workflow rule that attempted to email the author of a parent-comment and notify them that their comment has been replied to. Since there is no parent comment, there is no email to send a message to, which was causing the error.