developer.mozilla.org

Here is a workaround for when you want to use text-wrap: balance but must also render nicely for browsers...

makandracards.com

I have moved away from creating fixture elements using CSS selectors. While CSS can be very concise, it can be...

PostgreSQL can cosplay as a full-text search engine. It doesn't have the features or fidelity of ElasticSearch or...

makandra dev
w3.org

This decision tree describes how to use the alt attribute of the element in various situations. For some types of...

github.com

The new params.expect method in Rails 8 improves parameter filtering, addressing issues with malformed input and enhancing security. It provides...

developer.mozilla.org

Text fragments allow linking directly to a specific portion of text in a web document, without requiring the author to...

When Ruby objects are inspected in any modern IRB, some objects (like ActiveRecord instances) are rendered with neat colors and...

esbuild comes with a minifier that is good enough for most cases. If you're looking to squeeze out as...

You can improve your LIKE / ILIKE search queries in PostgreSQL by adding a GIN index with an operate class ("opclass...

Rails' default logger prefixes each log entry with timestamp and tags (like request ID). For multi-line entries, only the...

testing-library are widely used testing utilities libraries for javascript dependent frontend testing. The main utilities provided are query methods...

makandra dev

Postgres works differently See PostgreSQL: Difference between text and varchar columns for PostgreSQL-specific info MySQL has 4 different column...

It's 2024 and we have tools like ffmpeg, imagemagick and GPT readily available. With them, it's easy to...

developer.mozilla.org

A common cause of non-accessible web pages are elements that were made interactive via JavaScript but cannot be focused...

makandra dev
tpgi.com

These are the top ten accessibility errors as researched by TPGi, a company focusing on accessibility. See the linked article...

makandra dev

All browsers implement an event named beforeunload. It is fired when the active window is closed and can be used...

Any form fields where users enter numbers should be an . Numeric inputs have several benefits over : On mobile or tablet...

If you have an element with significant border-radius (e.g. 50% for a circle) and you want inline content (i.e...

makandracards.com

A general overview about why and how we migrate can be found under Migrating from Elasticsearch to Opensearch

OpenAI is currently limiting the Audio generating API endpoint to text bodies with a maximum of 4096 characters.

Make sure that you use the correct property when editing an HTML attribute. Using innerHTML with unsafe arguments makes your...

thegnar.com

View specs are a powerful tool to test several rendering paths by their cases instead of using a more costing...

Browsers can auto fill-in one time codes if advised. Use it like this: Demo: https://twitter.com/sulco/status/1320700982943223808 Browser support...

Note: You won't need this for single lines of text. In this case it is better to just use...