blog.cloudflare.com

What is netfilter's Connection Tracking system? The connection tracking system often referenced as nf_conntrack is part of the...

You cannot use Array#join on an array of strings where some strings are html_safe and others are not...

...never influence each other On a similar note, we don't want tests to behave differently based on their execution order or parallelism. One core mechanism in this regard is...

...give your Movie model a #person attribute. Instead, use FactoryBot's transient attributes and before/after hooks to implement the factory above...

If you're responsible for gatekeeping in a projects, here is a guide, what to do. In order to reduce...

geekytidbits.com

To retrieve only unique combinations of the selected attributes: You can omit rows, where all selected columns are equal with...

...won't need this for single lines of text. In this case it is better to just use the text-overflow property: Use CSS "text-overflow" to truncate long texts...

...starts wrapping within its container. This is most probably because there is no defined behavior in case multiple text contents are rendered next to each other (horizontally) and the clamping...

makandra dev
github.com

...rendering quality is now fine in recent versions of wkhtmltopdf (0.12+). You will never beat LaTeX if you need perfect font rendering. If you are observing strange behavior when including...

...might experience that your application "locks up" whenever you request a .pdf route. This behavior is caused by a deadlock: The Rails process is trying to render the page to...

...the old versions you wish to remove. Keep at least one recent, working kernel besides the one you are currently running. Address Metapackage Conflict (GA vs. HWE)

...requestAnimationFrame can be used to reduce the number of repaints for animations. This might benefit your application performance. Read Don't throw exceptions from async functions What Color Is Your...

...helperFunction? What happens when you remove the await of init? What causes the new behavior? Now have a look at this sketched usage of asynchronous functions: const news = await fetchNews...

...a publicly available service) Understand that Safari and mobile Safari (for iOS) usually lag behind other browsers when it comes to feature support. "Transpilation" and "polyfills" are both techniques to...

...ES versions at the top. English MDN Web API Reference MDN is maybe the best reference for JavaScript, HTML and CSS features. Google my-feature mdn is a quick way...

def self.acquire(name) already_acquired = definitely_acquired?(name) if already_acquired yield else begin create(:name => name) unless find_by_name(name) rescue ActiveRecord::StatementInvalid # concurrent create is okay...

begin result = nil transaction do find_by_name(name, :lock => true) # this is the call that will block acquired_lock(name) result = yield end result ensure maybe_released_lock...

...blocks or confusingly sometimes also procs Those with "method semantics", called lambdas lambdas They behave like Ruby method definitions: They are strict about their arguments. return means "exit the lambda...

...the lambda literal -> (since Ruby 1.9.1) test = ->(arg) do puts arg end blocks They behave like do-blocks or simply "segments of code": They try to be smart about their...

Resources Rails Guide: Internationalization API Guide to localizing a Rails application Locale-aware helpers in ActionView::Helpers::NumberHelper

It might sometimes be useful to check whether your Rails application accesses the file system unnecessarily, for example if your...

Why secure-only cookies used to be necessary Cookies have an optional secure flag. It tells the browser to not...

Here is a bash script that I use to auto-configure displays on Ubuntu 24.04 with Xorg. Background

...used when you are working on a branch and make a new commits which belongs to a previous commit. If the previous commit is the last commit, you can also...

Even though the process in #1 could be used for this it can become quite tedious if you have a large commit and might have already done this and...

When loading a database dump created with pg_dump into your database, you might run into an error like

In a project team for a bigger project people have several roles: Developer: at makandra Project lead: at makandra

When an event listener on a DOM element throws an error, that error will be silenced and not interrupt your...

Most forms have a single submit button that will save the record when pressed. Sometimes a form needs additional submit...

makandra Curriculum

Understand how nested attributes appear in the params. See how the Rails form helpers encode the names of nested...

Developing or debugging SAML functionality can be a hassle, especially when you need to go back and forth with someone...

The DB schema is the most important source of truth for your application and should be very self-explanatory. If...