Shop talk

Random thoughts and musings

User authentication with NuxtJS and Laravel

User authentication with NuxtJS and Laravel

Conventional wisdom states that unless you know what you're doing, you should never roll your own authentication scheme when creating a website. Luckily for us, Laravel comes with Passport, a handy package if you want to start authenticating frontend interfaces via an API call. Here's how you can get them talking to each other.

Read more
Laravel Mock Accessors

Laravel Mock Accessors

Sometimes you’re trying to unit test some methods that have dependencies on other accessors. Here’s how to make sure that only some accessors are mocked while others are accessible as normal.

Read more
Basic CSS grid layout with progressive enhancement

Basic CSS grid layout with progressive enhancement

A Basic css grid layout that supports down to IE-10.

Read more
Estimating unknown tasks

Estimating unknown tasks

I came across lots of good information on estimating unknown tasks. Here are my two takeaways.

Read more
Simple made easy

Simple made easy

I came across an interesting talk from Rich Hickey that’s well worth the 60 minutes (Not language specific, but more philosophical)

Read more
Running Docker on AWS ECS

Running Docker on AWS ECS

Here’s a handy article that explains why it might be a good idea to explore a Docker solution for your own applications:

Read more
Password generation for the masses

Password generation for the masses

If you’re not using a password application to keep your passwords safe, you might be at a loss to generate secure passwords. Here's a handy link for all your password creation needs!

Read more
Yii2 RESTful search endpoints

Yii2 RESTful search endpoints

REST services can be a little boring when writing simple CRUD endpoint boilerplate. Yii2’s ActiveController can help get the boring stuff out of the way so that you can start working on more interesting code.

Read more
Yii2 ActiveDataProvider query options

Yii2 ActiveDataProvider query options

The Yii2 documentation is terrible. Many options are mentioned in an offhand kind of way in the middle of paragraphs and under unclear examples. If you are using ActiveDataProvider to return data to your endpoint, here are some options that you may have missed.

Read more
IPv4 subnetting for mere mortals

IPv4 subnetting for mere mortals

I've been taking some networking classes and one of the prerequisites is to be able to calculate IP address ranges for subnetting a network.So how do you do this? What will you do? Read on, true believer!

Read more