Things that unoriginal side projects should have in common

It’s a long title. I want to execute more than one unoriginal side project, so as many factors should be shared as possible, as easily as possible. I’m not making original side projects anymore – I’m hunting for financially viable ideas that *have already been executed*. I’ll cut down the scope and clone them as […]

Moving from Gmail to Hey

As part of a long effort to de-google where practical, I’ve moved away from Gmail to email service. The problem with decoupling anything online from Google is twofold – 1. all of your stuff already lives there – I’ve had a Gmail account for 16 years. It’s all perfectly designed to keep you in […]

Firebase functions and CORS

A simple firebase http function template: We need to handle CORS requests (see cors() above), because the browser will send an OPTIONS request first to see what’s accepted by the endpoint. Your function handler in this case will receive an empty body, throw a bunch of errors, and generally waste a ton of time. A […]

Quick/Easy Laravel/Docker

Source: Commands: cd toys (projects folder) mkdir saml && cd saml (a bare saml project) curl -LO -LO docker-compose up Connect to the dev server over SSH in vscode and access at http://devserver:3000/

A blog for Emmett

It may come back to bite us. I made Emmett a WordPress blog tonight, a new outlet for his creative energy that so far is spent on long term minecraft trap strategies. He’s 6, and it’s hard to find productive outlets for him. He gets tunnel vision about a single project at any one time. […]

Nuxt.js – redirect

The router docs are a little bit muddy with redirects. Push the new route onto the stack to redirect. Replace the route on the stack to replace in the browser. Extra: Updating querystring Changes the querystring in the URL bar to match the filters parameter. Uses ‘replace’ to save polluting the back history (I hate […]

Laravel – re-assign relationships in updates

Alternate title: Stop stuffing around with entity_id. Working on a project with a representative – a user who looks after the company. When changing the representative, I want to supply the whole representative to the update method – e.g. $customer->representative is an object with an id, name, etc. It’s just a pointer, but it means […]

Vue.js – mapGetters with Params

Using mapGetters with parameters isn’t well defined in the docs, and is a pattern I go to use pretty regularly. I never find a good search result, so here goes: 1.Define the getter in the store. Take note that the naming convention will be [store namespace]/[getter name] later. Since this is in my users store, […]

VueX Patterns: Updating in Array

When working on a type of entity, it’s common to post the new or updated entity to the server and then need to update it in the local vuex data store. This is a simple pattern that propagates the changes to the UI displaying the list of entities. 1. Save the entity, from the UI. […]