I use the Gemini web chat interface quite extensively. One thing that is tedious is giving it all the context...
If you use the selenium-webdriver gem, it will sneakily phone home once every hour whenever you run a browser...
It's not possible to use variables in media queries with plain CSS. @media (max-width: var(--some-pixel-size...
When you query the browser for DOM elements, there are some footguns you should know about. Some lists are synchronized...
Follow the installation guidelines at https://mise.jdx.dev/getting-started.html. Remove rbenv configuration Search for rbenv config in .bashrc and...
When you replace parts of the DOM with new HTML, using .innerHTML = newHtml is usually the simplest and fastest option...
Compatibility: Angular 20+ with Jasmine 5.x and Karma 6.x As a default Angular CLI auto-generates test bootstrap...
You want to prevent input to a form field, but all the solutions have side effects: The [readonly] attribute is...
Quick reference for passing data from Rails to JavaScript via Unpoly compilers. Haml Attribute Syntax # Ising hash rockets and string...
Quick guide for frequently used compiler selector patterns of Unpoly. 1. BEM Component Pattern When: Reusable UI components with multiple...
Note Compiling Sass is probably the slowest part of your build, so this is worth a try if you're...
prettier calls itself an opinionated code formatter. I recommend using it for your JavaScript and TypeScript code. prettier only concerns...
If you run a Rails app that is using Turbo, you might observe that your integration tests are unstable depending...
Coverage reports are rarely useful if you run only small parts of your test suite. Just do not load SimpleCov...
SimpleForm comes with an option browser_validations which could be used to give fields that have a presence validation the...
Frontend performance and user experience are orthogonal to feature development. If care is not taken, adding features usually degrades frontend...
Modern CSS offers the field-sizing property to allow elements to automatically adjust size (width and/or height) to fit their...
The DB schema is the most important source of truth for your application and should be very self-explanatory. If...
We usually ship applications that self-host webfonts to comply with GDPR. Many popular web fonts are available as NPM...
Use these snippets when you want to measure yourself. Currently available: Core Web Vitals Largest Contentful Paint (LCP) Largest Contentful...
Important wkhtmltopdf is deprecated and shouldn't be used anymore. Please consider switching to another tool We can install wkhtmltopdf...
It can be hard to understand what causes a browser scroll smoothly or instantly. CSS, JavaScript and the browser settings...
Say you wrap your index view in a form to apply different filters like pagination or a search query. On...
To apply transparency to an element, you can use opacity in CSS. However, sometimes you don't want to make...