James Beith's Avatar

James Beith

@jamesbeith.bsky.social

πŸ™ Staff Software Engineer at Kraken Technologies 🎸 Co-founder of Glued to Music

55 Followers  |  152 Following  |  13 Posts  |  Joined: 16.11.2024  |  1.7457

Latest posts by jamesbeith.bsky.social on Bluesky

How to use reserved domains in tests to prevent DNS queries When writing tests I use the example.com domain for any URLs, email addresses, and similar. The reason: if my test unintentionally made a real request, or sent a real email, then it would resolve to a...

TIL How to use reserved domains in tests to prevent DNS queries

www.jamesbeith.co.uk/til/2025-07-...

01.07.2025 06:50 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

🀨 My last renewal for a .com with them was £10.91 / ~US$14. I already use Cloudflare so I'll likely switch my domains to them now too. Thanks, glad I checked this.

23.06.2025 03:56 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Take a look at www.gandi.net too, they've served me well.

23.06.2025 02:26 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
How to optimise the order of HTML head elements using Capo I recently came across Capo, a tool that helps identify HTML head elements that are out of order. Using the Chrome extension, it offered a few suggestions for my project. Move the es-module-shims asyn...

TIL How to optimise the order of HTML head elements using Capo

www.jamesbeith.co.uk/til/2025-06-...

23.06.2025 01:22 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
How to write a custom alias for the Python debugger Recently shared at work was this TIL from Samuel, Custom alias for pretty printing in Python debugger with .pdbrc (including Django models!). Here’s my ever so slightly adapted version which also incl...

TIL How to write a custom alias for the Python debugger

www.jamesbeith.co.uk/til/2025-06-...

19.06.2025 07:09 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Very well, thanks. Hope you and yours are the same πŸ™

07.05.2025 06:01 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Made me think of "rubber duck debugging". Maybe this is "duck testing" πŸ˜„

07.05.2025 02:39 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

This tracks for me. The best metaphor I can think for LLMs is that they're e-bikes.

If you're in good shape and know how to drive them, it makes you move incredibly faster with much less effort.

If you're less experienced, it will still help, but don't expect for it to drive by itself.

03.05.2025 10:25 β€” πŸ‘ 29    πŸ” 3    πŸ’¬ 3    πŸ“Œ 1

Great tip. Have blocked over 15,000 requests in the past 24 hours with a very similar rule I just setup.

26.04.2025 02:40 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Kraken | Upgrade your utility Kraken is the advanced operating system for utilities delivering exceptional customer experiences, advanced asset optimization and streamlined field management services.

Kinda crazy to think I've been working at Kraken (part of the Octopus Energy Group) for nine year now πŸ™πŸŽ‚ What a wonderful company to be a part of.

kraken.tech

03.03.2025 02:26 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
How to catch missing referenced files in Django static files manifest I recently had a deployment fail with the following WhiteNoise error. -----> $ python src/manage.py collectstatic --noinput Post-processing 'polls/style.css' failed! whitenoise.storage.MissingFileErro...

TIL How to catch missing referenced files in Django static files manifest

www.jamesbeith.co.uk/til/2025-02-...

28.02.2025 04:03 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Nice article. For the "Non-obvious variables and values" example, what about considering different types that are more self describing? For example,

```python
SESSION_COOKIE_AGE = datetime.timedelta(weeks=2).total_seconds()
```

13.02.2025 02:48 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Nice work. That's even more impressive when British me doesn't read that as 'three point one seven five' meters πŸ˜„

23.01.2025 00:38 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

This is a handy tool for generating importmaps, although it targets a CDN rather than local.
generator.jspm.io

There's a CLI tool too which might offer support for local packages?
jspm.org/docs/jspm-cl...

18.11.2024 21:23 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@jamesbeith is following 20 prominent accounts