Next Image

A Data URL to be used as a placeholder image before the src image successfully loads. Only takes effect when combined with placeholder=”blur”. Must be a base64-encoded image. It will be enlarged and blurred, so a very small image (10px or less) is recommended. Including larger images as placeholders may harm your application performance.

Rails action Mailer

Notifier.welcome(User.first).deliver_later! # Notifier.welcome(User.first).deliver_later!(wait: 1.hour) # Notifier.welcome(User.first).deliver_later!(wait_until: 10.hours.from_now) # Notifier.welcome(User.first).deliver_later!(priority: 10) #

Ruby find inside a hash or array

@selected_rate=@rates(“rates is a array object”).select {|rates| rates[“object_id”] == @shippo_order.rate_id } new thing is every variable or object instance we make in ruby have there won object_id,that can be aaccess by @instance or variable .object_id we can get the selected rates like :-<%=@selected_rate[0][“object_id”]%> my @rates object

PgAdmin: Package ‘pgAdmin4’ has no installation candidate

 curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo apt-key add sudo sh -c ‘echo “deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main” > /etc/apt/sources.list.d/pgadmin4.list && apt update’ sudo sh -c ‘echo “deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/focal/ pgadmin4 main” > /etc/apt/sources.list.d/pgadmin4.list && apt update’ sudo apt install pgadmin4