psql (client) and postgres server versions do not have to match in order for the import to work. For example, can use client version 16 to connect to...

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

web.archive.org

...x536897 commit 2 pick c01a668 commit 3 Each line represents a commit (in chronological order, the latest commit will be at the bottom). To transform all these commits into a...

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

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

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

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

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

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

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

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

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

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

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

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

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

...method that is called after :store within the uploader and removes these files. In order to check, if the files are still there, you need to explicitly call my_legacy_version.retrieve_from...

...When using zeitwerk (Rails 6) you might also need to add an inflection in order to make autoloading work for this file: ActiveSupport::Inflector.inflections(:en) do |inflect| inflect.acronym 'IO'