...as new technologies evolve. If you are new to this topic, I strongly recommend reading the MDN guide on audio and video formats. TL;DR: To ensure that the playback...

...FLAC, Opus, Vorbis WEBM CC BY 3.0 / BSD-like VP8, VP9 Opus, Vorbis Further reading: MDN: Media container formats (file types) Video Codec Format Matrix A broader comparison of many...

...in headless mode Use capybara lockstep to ensure requests don't bleed between steps Read through the README of the capybara-lockstep gem. What problem does it solve and how...

Info 'postcss-cssnext' has been deprecated in favor of 'postcss-preset-env'. Read more at https://moox.io/blog/deprecating-cssnext/ Read through the Webpack 4 migration guide If your project...

makandra dev

Code comments allow for adding human readable text right next to the code: notes for other developers, and for your future self. You can imagine comments as post-its (or...

...concept. Probably it is a good idea to mention that concept in the project README, but it should direct the reader to the module for details. In the same manner...

thegnar.com

...specs as you can isolate specific parts of the rendered view and then use readable and powerful matchers to assert what you except to see within that part.

This approach allows your view specs to be styled with enhanced readability by isolating the relevant part of the page within a subject block.

...like keeping the latest update timestamp in a separate place that is inexpensive to read from, and now just want to pass that timestamp to fresh_when. The problem

...the actor form automatically suggest a gender as the user types a name Also read this card for an issue you might encounter. The user should be able to override...

...counts top-level regexp groups, ignoring nested capture groups (I could not confirm that). Read more Upgrading to Cucumber 3.0.0 on cucumber.io

makandra Curriculum

...of the following file formats: Rasterized formats: webp, png, jpg, gif Vector format: svg Read why we want to use WebP instead of PNGs and JPGs in the future

ruby-lang.org

...blog post on the official Ruby blog going into the details. You should probably read that, but here is a slightly abbreviated version: What changed When the last argument of...

...Optimizer squashes it and can shrink SVGs to a fraction of their original size. Read on 5 SVG Gotchas How to scale SVG Visual comparison of different combinations of SVG...

github.com

When handling nested hashes the RSpec output is often hard to read. Here the gem super_diff could help. Add super_diff to your project Add super_diff to your...

...mail server listening Ensure that e-mail arrives at the inbox without being blocked Read about "E-mail deliverability" Skim over Kim's slides about sending mails from linux

It's 2024 and we have tools like ffmpeg, imagemagick and GPT readily available. With them, it's easy to convert texts, images, audio and video clips into each other...

...table (like other_table.column), ActiveRecord will go with option 2 and build a joined table. Read below for more information about this issue. In Rails3+ you can also disable this annoyingly...

In ruby you can easily read and write CSVs with the standard CSV library class. On top of this, you can use the gem smarter_csv for reading (not writing...

Why Rails has multiple schema formats When you run migrations, Rails will write your current database schema into db/schema.rb. This...

dev.to

...possible products, categories and vendors and it is updated once a month. When you read this file with the Nokogiri default (DOM) parser, it creates a tree structure with all...

...easily navigate through it via css/xpath selectors. The only problem is that if you read the whole file into memory, it takes a significant amount of RAM. It is really...

...your developer tools' console. Use JavaScript to locate all card elements. Use Javascript to read the text content of the second card. Use JavaScript to remove the first card.

config.file_fixture_path = "spec/custom_directory" end Alternatives: Rails.root.join('spec/fixtures/files/avatar.jpg').open('r') Rails.root.join('spec/fixtures/files/avatar.jpg').read File.open('spec/fixtures/files/avatar.jpg') (might only work if you run the command from the Rails root directory...

...binary string which we can use to create a file binary_string = binary_data_array.pack('C*') Read the docs for more information about packing data in ruby Caveats make sure you can...

...inside the gem. ActiveScaffold provides a quick and powerful user interfaces for CRUD (create, read, update, delete) operations for Rails applications. It offers additonal features including searching, pagination & layout control...

makandra Curriculum

What does "ownership" mean for files? Each file has 9 flags, 3 read, 3 write, and 3 executable flags. What do they mean? Write a simple bash script...

...files as an ActiveRecord attribute type, like :string or :integer Research Look at the README for the carrierwave gem Read about Common mistakes when storing file uploads with Rails