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

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

project.recalculate_statistics! end Both find_in_batches and find_each return records ordered by ID because they need to be able to iterate in batches. Modern Rails will...

...raise an error if you try order yourself. If you are on Rails 2.3, be aware that find calls inside the block are implicitly scoped. This is fixed in Rails...

...are unnecessary and hard to resolve conflicts as well as incorrect auto-merges. In order to avoid this, always merge the production branch back to the main after the cherry...

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

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?

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

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

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

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

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

...a specific job locally. This is helpful to run specs in the exactly same order like in the CI. Example for running rspec 3/8 with a seed output of...

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