Daily Shaarli

All links of one day in a single page.

February 6, 2021

Install a Headless Selenium server in an Alpine Linux container | Some projects and stuff

Follow up with the previous link, if I want to run system test cases in Rails using:

class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
  driven_by :selenium, using: :headless_firefox, screen_size: [1400, 1400]
end

Then I need to install Firefox, as well as fonts, so that the screenshots are rendered properly.

apk add xvfb firefox ttf-dejavu

(note: fonts are required for Firefox to render pages)

Rails 6 development with Docker and Docker Compose | Better Programming

A great article for using docker-compose as a dev environment for rails

Two Worlds: So Much Prosperity, So Much Skepticism · Collaborative Fund
thumbnail

An excellent article, with perhaps the best quote:

To generalize, the spending-and-employment trend has gone like this: Wealthy people didn’t go on vacations in 2020. So their spending fell, and their savings went up. And the employees who would have served them on that vacation lost their jobs, only kept above water by enhanced unemployment benefits.