Tyler Smith

Tyler Smith @tylerlwsmith

About: I'm a software developer who writes about Laravel, JavaScript, Rails, Linux, Docker, WordPress and the tech industry. Follow me on Twitter @tylerlwsmith

Location:
Sacramento, California
Joined:
Apr 17, 2018

Tyler Smith
articles - 82 total

Absolute paths for assets in iOS & Android Cordova apps

Learn how to utilize absolute paths in Cordova by setting the scheme and hostname preferences on iOS and Android.

Learn More 0 1Jan 31

How to hold apps for manual release on Google Play Console and Apple's App Store Connect

Learn how to manually release Android and iOS apps after they are reviewed.

Learn More 1 0Jan 28

Implementing & testing Socialite authentication in Laravel

Learn how to implement and test Google authentication in a Laravel app using Socialite.

Learn More 3 0Dec 31 '24

12 things I learned about hosting serverless sites on Cloudflare

Explore the quirks of the Cloudflare Developer Platform and the subtle inconsistencies between Workers and Pages.

Learn More 12 4Dec 29 '24

First impressions of Astro: what I liked and disliked

A first glance of the features provided by the Astro framework.

Learn More 19 13Dec 28 '24

Upsert a row in a DB that doesn't use primary keys or unique constraints

Perform an update or insert of a single row with raw SQL.

Learn More 3 0Oct 19 '24

Stop the cursor from jumping to the corner of the screen on a Lenovo Yoga laptop

Prevent cursor from jumping on a Lenovo Yoga touchscreen by disabling the Pen device.

Learn More 22 33Oct 16 '24

The winner of WordPress vs WP Engine will be Microsoft

How WordPress's crusade may push the web back towards ASP.NET.

Learn More 3 2Oct 15 '24

Mock functions in individual tests using Jest

Mock functions in individual Jest tests & fallback to the original implementation if no mock was provided.

Learn More 4 0Aug 4 '24

Get better autocomplete for Faker when using factory_boy

You can get autocomplete for Faker when using it with factory_boy.

Learn More 1 0Jul 27 '24

Use SQLite as a Celery broker in Django

Run an SQLite-powered Celery broker in your Django application.

Learn More 15 2Jul 25 '24

Understanding tasks, brokers, workers, and backends in Celery

Learn the high-level concepts in Celery so you can start building your own task queues.

Learn More 37 0Jul 23 '24

Automatically reload Celery workers with a custom Django command

Hook into Django's built-in automatic reloading to improve your Celery development experience.

Learn More 5 0Jul 21 '24

Emulating Rails-like resource controllers in a server-rendered Django app

I don't love Django's approach to request handling or routing. The framework has too many options and...

Learn More 1 0Jul 17 '24

Using a venv with Neovim's Python LSP

Get Python IntelliSense on your virtual environment's third party packages.

Learn More 11 0Apr 5 '24

Change Fugitive's number of Git context lines in Neovim

Configure Neovim to display any number of Git context lines when performing diffs in Fugitive.

Learn More 0 0Mar 24 '24

Build a Vite 5 backend integration with Flask

Learn how to build a lightweight backend Vite integration using a Flask Blueprint in ~50 lines of code.

Learn More 30 3Feb 26 '24

Move manifest.json to the output directory's parent in Vite 5

Move Vite's manifest.json file outside of the build directory.

Learn More 8 2Feb 7 '24

Using the same Caddyfile for both development and production

Leverage environment variables to use the same Caddyfile for both development and production.

Learn More 2 0Jan 29 '24

Prevent Caddy's automatic http-to-https redirect

How to access a Caddy site from both http and https while developing locally.

Learn More 3 3Jan 29 '24

Routing multiple paths to a reverse proxy using Caddy

Use Caddy to handle matching multiple paths and route them to the same reverse proxy using a named block.

Learn More 5 3Jan 21 '24

Promise & async/await-like concurrency for API requests in Go

How to implement patterns like JavaScript's async/await and Promise.all() for HTTP requests in Golang.

Learn More 10 3Jan 16 '24

Programmatically generate files in Cypress tests

The Cypress documentation recommends using fixtures for file uploads, but cluttering up a repository...

Learn More 1 0Aug 9 '23

How to copy test results from a container to the host using Docker Compose

Copy files out a container and onto the host with Docker and Docker Compose.

Learn More 1 0May 29 '23

Set an Active Storage attachment in an after_save callback

Set an attachment in a Ruby on Rails Active Record after_save callback without triggering an endless loop.

Learn More 4 2May 18 '23

Resize images before saving them with Ruby on Rails Active Storage

Leverage Rails' included image_processing gem to resize your images before you pay for them on S3.

Learn More 8 2Apr 30 '23

Faking private class constructors in JavaScript

You can simulate a private constructor in JS by requiring the constructor to accept something that is unavailable to the rest of the code. Here's how.

Learn More 2 0Mar 3 '23

Add trailing slashes in Rails without breaking everything

Adding trailing slashes to URLs in Ruby on Rails is harder than one might expect. Rails is an...

Learn More 4 0Feb 23 '23

Using Alpine.js directives on form_with in Ruby on Rails

Alpine.js makes Vue-like declarative state-driven UI available in server-rendered templates without...

Learn More 6 0Sep 10 '22

Error boundary causes React Router links to stop working

Yesterday I was coding a React error boundary that wrapped most of the components in my app. When one...

Learn More 15 2Jul 31 '22