Jeff Sodeman

Change Scratch files location in Rider and Webstorm

Help > Edit Custom Properties idea.scratch.path/scratches=G:/Dropbox/Work/ScratchFiles/Rider idea.scratch.path/scratches=G:/Dropbox/Work/ScratchFiles/WebStorm

Fix SQL DECLARE variable use in DataGrip

In 2025.1.3 you can't execute this script by default DECLARE @id INT = 1; SELECT * FROM Users WHERE id = @id; GO In Settings > Query Execution > User Parameters, disable the pattern (?<![@<])@[a-zA-z0-9_]+

Using MirageJS to fake a .NET API

By default Mirage sends models using a different style than .NET API. It also sends the model's Id as a string. To fix both problems add the following to createServer serializers: { application: RestSerializer.extend({ root: false, embed: true, valueForId(id) { return parseInt(id); }, }), },

Killing a Vite port

Run npx kill-port 8080 etc

Fixing Chrome "Failed to read the cssRules" errors

At some point Chrome got picky about using <link> tags to load fonts from external domains for CORS reasons. To fix, just add crossorigin="anonymous" to the link tag.

Jeff Sodeman © 2026