...readonly attribute. Be aware of the differences: disabled fields don’t post to the server don’t get focus are skipped while tab navigation available for button, fieldset, input, select...

...Firefox cancels any JavaScript events at a fieldset[disabled] readonly fields post to the server get focus are included while tab navigation only available for input[type=text], textarea

blog.phusion.nl

Interesting approach to caching responses directly in the HTTP server, based on the value of an individual cookie. No word yet how to force cache-invalidation...

...chrome queue limited to 1 for e.g. PDF processing to not overload the application server an api queue, that limits a queue to 2 to protect the API server from...

...too many requests in parallel Example: Sidekiq.configure_server do |config| # Edits the default capsule config.queues = %w[critical default low] config.concurrency = 5 # Define a new capsule which processes jobs from the...

...can explain what a relational database is and how an application talks to it (server, client, credentials, a console). You can query data with SQL — selecting, filtering, sorting, limiting, grouping...

Tip Some apps carry a db/structure.sql instead of a db/schema.rb. It serves the same purpose, and is used when the schema is too complex to express in...

...at first, but is required for Time.current to work properly. If possible, put your server into local time zone, since Ruby's Time will use that. In the example above...

Time.now will be your local time (or the local time of your server) >> Project.create! >> Project.connection.select_one('SELECT created_at FROM projects') => {"created_at...

nginx.org

...proxy_hide_header in different contexts: Syntax: proxy_hide_header field; Default: — Context: http, server, location Source But if you use it in multiple contexts only the "lowest" occurrences are...

So if you specify it in the server and location context (even if you hide different header) only the proxy_hide_header in the location block are used.

youtube.com

...fast without using a lot of Javascript (most of Basecamp still lives on the server). The two tricks they used are PJAX and Russian Doll Caching...

whatsmydns.net

whatsmydns.net is an online service that allows you to instantly perform a DNS lookup to check a hostnames current IP Address and other DNS information against a selection of random...

...name servers around the world. This is especially useful to check the current state of DNS propagation after making changes to your domains zones...

makandra Curriculum

You can explain what problem Unpoly solves: SPA-like navigation and interactions on a server-rendered app, with very little JavaScript. You can explain how a fragment update works...

...Rails ships with Hotwire (Turbo and Stimulus) for the same job: updating fragments of a server-rendered page without full reloads. Turbo Drive and Turbo Frames correspond roughly to Unpoly...

robots.thoughtbot.com

One of many useful techniques when your test suite needs to talk to a remote API.

sysadmincasts.com

Like Railscasts or Ruby Tapas, but for Linux.

unixwiz.net

Note - This is not a tutorial on setup or configuration of Secure Shell, but is an overview of technology which...

...in builder mode. Learning goals You can explain why a file in a publicly served directory is not protected, even when no page links to it. You can explain the...

...two common strategies for private attachments — an unguessable path served directly by the web server, and delivery through a controller action that checks authorization — and their trade-offs in server...

singlepageappbook.com

Great look at the tradeoffs between progressive enhancement with jQuery or similiar, vs. client-side views.

jsfiddle.net

When you need test images, instead of using services like lorempixel or placehold.it you may generate test images yourself. Here we build a simple SVG image and wrap it into...

...attached JSFiddle for an example. Ruby If you like to do it on the server, here is some Ruby for you: def svg_uri(text) svg = <<~SVG #{text} SVG

Insert into ~/.bashrc and reload afterwards: source ~/.bashrc PS1='${debian_chroot:+($debian_chroot)}\[\033[41;33m\]\u@\h\[\033[00m...

...the MariaDB monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.7.35 MySQL Community Server (GPL) Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and...

...nil:NilClass (NoMethodError) Cache.stderr_path.write(stderr.string) ^^^^^^^ ... rubocop-1.61.0/lib/rubocop/server/socket_reader.rb:27:in `read!': uninitialized constant RuboCop::Server::SocketReader::StringIO (NameError) stderr = StringIO.new ^^^^^^^^ this card might help you. In old versions of rubocop...

Warning after an upgrade, make sure to terminate all running rubocop server processes (ps aux | grep rubocop, then kill the pid...

I recently ran into this issue when processing a massive backlog of documents. The server completely stalled, sometimes taking up to 30 minutes for a single page. It turned out...

...of the image junk, the deskew algorithm can safely remain enabled without bringing the server to its knees. It straightens skewed scans and preserves the OCR quality. ocrStrategy: auto vs...

...instead of through global selectors. You can let a component fetch HTML from the server and update its own part of the page. You can register clean-up for a...

...MDN; how helpers like compiler() notice new elements 📄 Using the Fetch API — MDN; loading server HTML into a component without a page load Exercises Cover every component you build in...

github.com

...config the HTML screenshot will reference assets in the same location where your development server usually provides them. Make sure to add this to config/environments/test.rb # Do not generate digests for...

mock.isssues.com

...course of development you may need to mock HTTP responses. This is a simple service to return various HTTP responses...

You need to install the following packages before you can build the Nokogiri gem: sudo apt-get install libxml2-dev...

set :assets_roles, %i[webpack] # Give the webpack role to a single server (see code block below) set :assets_prefix, 'packs' # Assets are located in /packs/

...related to Webpacker, but a nice thing Give the webpack role to a single server: # config/deploy/production.rb (analog to config/deploy/staging.rb) ... server ' ', user: ' ', roles: %w(... webpack) Make sure to read as well...