...by default (see official Documentation). However, it only cleans up releases, not assets. In order to clean up assets, you can use capistrano-rails. Just require 'capistrano/rails' in Capfile and...

makandra dev
github.com

...include a reference to an index it's using? Does it come with an ORDER that you could maybe drop (reorder(nil)) depending on your API requirements?

...network while it runs (it's OK to talk to the network once in order to record a VCR cassette). It should not record an excessive number of VCR cassettes...

...testing for multiple values, which map to one context, e. g. mail components, in order to provide better readability of your tests or to even make clear a tests fail...

...deliberate, and only contain changes that you really want to be in there. In order to reduce the chance to accidentally commit something you didn't intend, review your changes...

null Array, recursively compared by their elements. Their contents must have the same order. Simple objects, recursively compared by their own properties. Nested structures built from objects, arrays and...

...server. It likely won't work on Wayland. The script assumes that external display order is left to right. If displays are ordered e.g. 1, 3, 2, connect displays differently...

specifies which input stream is used for each output stream, in the order of the definition of output streams. -map 0:a the audio stream from the first...

...the following processes to split up the changes into several commits in a logical order: #1 Splitting up the last n commits into m commits #2 Adding changes to a...

HTTP header values must only contain low-ASCII (7-bit) characters for safe transport. From RFC 7230: Historically, HTTP has...

...e.g. application_record.rb def self.strips(*names) normalizes(*names, with: Normalizers::StripNormalizer) end Enforcing consistency In order to enforce a consistent interface we could also define a base class for all normalizers...

makandra Curriculum

...new method #random_each. The method should iterate through the array elements in random order and call the given block for each iteration. For example, the following should work...

...responsible for gatekeeping in a projects, here is a guide, what to do. In order to reduce the number of rejects we get from clients, we want to review all...

...you to make the new method a bit more verbose and independent of argument order: Customer = Struct.new(:name, :address, keyword_init: true) Customer.new(name: "Dave", address: "123 Main") => #<struct Customer...

makandra Curriculum

...of PNGs and JPGs in the future High density displays Browse the internet in order to: Understand the distinction between virtual pixels vs. physical pixels. Understand how raster images prepared...

...into binary data const arrayBuffer = await response.arrayBuffer() # convert array buffer to typed array in order to interact with the data # now we have the binary data represented as a typed...

...manually define the charset of a CSS file: The value of the Unicode byte-order character placed at the beginning of the file (BOM). The value given by the charset...

...is not sufficient to trigger a retry, the callback must throw an error in order to retry the condition. Let's say we have an animation for a smoothly appearing...

...component uses setInterval() it must also clear that interval when it is removed in order to prevent memory leaks. Tools Every modern project needs some way to define components, by...

makandra dev

Note that Rubocop has some kind of caching, i.e. subsequent runs will be orders of magnitude faster than the first. Should you want to skip that pre-push hook...

developer.mozilla.org

...text. When removing background colors, chances are white text now stands on white. In order to keep legibility, browsers turn white text into gray (Chrome) or black (Firefox). However, white...

...similar note, we don't want tests to behave differently based on their execution order or parallelism. One core mechanism in this regard is a gem called Database Cleaner. It...

...T11:12:26.683106 #1094157] DEBUG -- : User Load (1.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1 [["LIMIT", 1]] Many frameworks in Rails have their own logger...

...a given set of values. The list of allowed values must be retrievable in order to render boxes. Each value has a humanized label. Sometimes there is a default value...