You won't usually have to do this. It's OK to route all formats to a controller, and let...
...esbuild.config.js: external: ['*.ttf'], During the next steps you have to make sure that sprockets serves them correctly and rewrites the paths if necessary. Prepare Sprockets to serve the assets bundled...
...tag and javascript_link_tag to match the new pack names. start the development server with the command bin/dev and check that everything works and looks good. Finish
...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.
When your public-facing application has a longer downtime for server maintenance or long migrations, it's nice to setup a maintenance page to inform your users. When delivering the...
...for maintenance pages The best HTTP status code for your maintenance page is "503 Service Unavailable": The server is currently unable to handle the request due to a temporary overloading...
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...
...sometimes outside of our control. For example, on one of our bigger projects, our servers are on a denylist for all of Microsoft's cloud e-mail (like @outlook.com) for...
...were rejected. We then started to send out e-mails via Amazon's SES service, only to discover that we were now blocked by several German providers like @web.de.
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...
...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
...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...
...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...
...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...
...which hold time zone information and Time.now only in those that run with the server's time. If you don't, bad things can and will happen. More information can...
One of many useful techniques when your test suite needs to talk to a remote API.
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
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...