makandra dev

Claude Code has different modes, like "plan mode" or "accept edits". A recent addition is the "auto mode" which we...

The sandbox in Claude Code by default can access files anywhere in your home directory. This is not ideal, since...

makandra dev

By default, Claude Code runs commands through its Bash tool as your user. While this works, you will likely encounter...

Getting started with Claude Code is super simple. Once you've made yourself familiar with it, you may want to...

When an LLM is part of a request, you want to keep track of how much of the runtime was...

Below is a strict, but still workable Content Security Policy for your Ruby on Rails project. Use this CSP if...

api.rubyonrails.org

When working with file uploads, we sometimes need to process intrinsic properties like the page count or page dimensions of...

If you need to implement newsletter sending, rapidmail is a solid option. Support is very fast, friendly and helpful, and...

Event listeners are called in the order of their registration: button.addEventListener('click', () => console.log("I run first")) button.addEventListener('click', () => console.log("I...

When you query the browser for DOM elements, there are some footguns you should know about. Some lists are synchronized...

Finding changes When you're looking for a specific change in Git, there are multiple axes you can choose:

When you replace parts of the DOM with new HTML, using .innerHTML = newHtml is usually the simplest and fastest option...

Most of the time, it's a good default to add a unique index on the foreign key when using...

In Rails 8 the behavior of the rails db:migrate command has changed for fresh databases (see PR #52830).

Note Compiling Sass is probably the slowest part of your build, so this is worth a try if you're...

GoodJob and ActiveJob rescue exceptions internally, preventing exception_notification from triggering. This can cause silent job failures.To get notified, subscribe...

developer.mozilla.org

The linked MDN article is quite informative of a neat feature supported by all major browsers: Unicode character class escape...

SimpleForm comes with an option browser_validations which could be used to give fields that have a presence validation the...

api.rubyonrails.org

In Rails 7.2. the feature ActiveRecord.after_all_transactions_commit was added, for code that may run either inside or outside...

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...

Even if you don't make any beginner mistakes like N+1 queries or missing DB indices, some requests can...

makandra dev

If you need dummy data to play around with in development, it's often faster to reuse your existing factories...