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

makandra dev

...enables pulling default = current # Match remote branch with same name For more configuration examples, read on. Please only use configuration that you understand. Aliases [alias] amend = commit -v --amend # Amend...

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

...was split in many. Fortunately, Git offers a special highlighting mode that directs the reader's attention to relevant code parts: git diff --color-moved=dimmed-zebra

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

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

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

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.

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

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

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

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

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

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

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

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

...examples can get quite long, especially in feature specs. This makes them hard to read & understand. Also, when executing them, it may take seconds to see any progress.

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

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.