To safely transport an arbitrary string within a URL, you need to percent-encode characters that have a particular meaning...

As the web is being used for more and more tasks, expectations rise. Not only should web pages offer rich...

We organize our daily work with issues in our Linear workspace. Issue format A good issue needs to be precise...

When working on a bigger project, the easiest way to improve your work relation with a client or an external...

It smells. Rethink your code design. Code example with makandra/has_defaults: class Post < ActiveRecord::Base has_defaults tags: [] # field in db...

hacks.mozilla.org

Unfortunately, Web APIs haven’t provided the functionality to copy text to the clipboard through JavaScript, which is why visiting...

Spreewald comes with a selector_for helper that matches an English term like the user's profile into a CSS...

aws.amazon.com

I am happy to announce that this information is now available in JSON form at https://ip-ranges.amazonaws.com/ip-ranges.json. The information...

If you need a postgresql extension for your database it isn't a good idea to give your applications database...

As you most likely know validates_uniqness_of :foreign_id does not allow nil values by default.

Use form models to handle this problem Or soften the validation to validates_presence_of :parent

Here is how to start your Rails application to accept both HTTP and HTTPS in development. gem install passenger

Reason: You very likely have a model that has a delay attribute. You can configure Sidekiq to remove its delay...

In tests, it is sometimes useful to create records with specific ids. On PostgreSQL this can cause problems: Usually, PostgreSQL...

jasmine.github.io

The easiest way to freeze or travel through time in a Jasmine spec is to use the built-in jasmine.clock...

makandra dev
github.com

The Bullet gem is designed to help you increase your application's performance by reducing the number of queries it...

The migration DSL now supports adding and removing foreign keys. They are dumped to schema.rb as well. At this time...

tl;dr: Use event.currentTarget unless you are absolutely certain that you need event.target. Since it hasn't been written down...

leomayleomay.github.io

Your after_commit callbacks will not know about changes, as Rails discards them when committing. The linked article shows a...

makandra dev

This blew my mind today: 12 Little-Known CSS Facts 12 Little-Known CSS Facts (The Sequel) Please make sure...

makandra dev
github.com

Sometimes you need to run background jobs that you can't make important guarantees about - they may run out of...

Large projects usually have large test suites that can run for a long time. This can be annoying as running...

In most of our applications, users have their first and last name stored in separate columns. However, specifying them separately...

Disabling auto-complete in login forms is probably a bad idea, since it encourages weak passwords. If you are still...