Source: https://hub.docker.com/r/bitnami/laravel Commands: cd toys (projects folder) mkdir saml && cd saml (a bare saml project) curl -LO https://raw.githubusercontent.com/bitnami/bitnami-docker-laravel/master/docker-compose.ymlcurl -LO https://raw.githubusercontent.com/bitnami/bitnami-docker-laravel/master/docker-compose.yml docker-compose up Connect to the dev server over SSH in vscode and access at http://devserver:3000/
Category Archives: Uncategorized
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. […]
Solar in Bargo – numbers
We installed solar at our house in Bargo 2574 (a town in Wollondilly, NSW) in March 2020. It cost approximately $5k for a 6.5kW system (feeding into a 5kW inverter). Half the panels face west, and half face north. I’ve always been concerned that people who install solar need to convince the world that it […]
Vue.js fragments
All manner of googling didn’t turn up a good result for this problem. Sometimes, you need a wrapper component with logic attached that does not render to the UI. For example, child components with a percentage of the parent can’t just have a div wrapped around them for conditional logic. Another example (which I found […]
Nuxt.js Mixin – access global property in template
Adding a mixin in nuxt.js is just like adding a plugin. For my project, I needed a date format property set once but accessible in all my templates (named ‘moment_format’) Step 1, In plugins/, create a plugin file (Mine is called ‘vue-format-global.js) Step 2, connect up the plugin in nuxt.config.js Step 3, restart the app […]
Nuxt.js and Vuex – dumping flash messages
Context: A child component has received an error message, and needs to communicate it to the parent layout. There’s no unhacky way to do that, so we should put it in the application store (vuex). When the user navigates, the error is retained forever more. It’s a problem seemingly without a clean answer. Step 1: […]