...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
...Queue Adapters by Environment Environment Adapter Jobs Run In Worker Needed? development :async Rails server process No test :test Not executed (stored) No production :solid_queue Separate worker
...Jobs execute immediately in a background thread within bin/rails s and write to the server logs. bin/jobs does nothing in development, jobs already run in-process via :async.
...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...
...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...
Enter the hostname of a server to test it for CVE...
Local testing allows you to test your private and internal servers using the BrowserStack cloud, which has support for firewalls, proxies and Active Directory...
...It covers a lot of ground, including routing and data transfer between client and server...
...bar, etc.) files created by (badly-behaved) Mac OS X systems on non-AFP server volumes...
...them suitable for in-browser coding of languages like HTML, CSS, Javascript, or your favorite server-side language. The idea is to be able to use a press of the...
If you use Nginx with SSL and get an intermediate certificate with your certificate you have to do this:
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...
...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 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...
One of many useful techniques when your test suite needs to talk to a remote API.
...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...
...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...
Note - This is not a tutorial on setup or configuration of Secure Shell, but is an overview of technology which...
Great look at the tradeoffs between progressive enhancement with jQuery or similiar, vs. client-side views.
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
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...
Insert into ~/.bashrc and reload afterwards: source ~/.bashrc PS1='${debian_chroot:+($debian_chroot)}\[\033[41;33m\]\u@\h\[\033[00m...
...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...
Occasionally you need to do something directly on the server -- like having all records recalculate something that cannot be done in a migration because it takes a long time.
...you may have been successful with this on your development machine or the staging server, keep in mind that production machines often hold a lot more records. Using all may...