...hardcoded asset hosts in webpack, otherwise all chunks would be loaded through the # Capybara server of the first test process. If that test process hasn't launched a Capybara

...Webpacker.compile That's it. Enjoy! 🎉 Similar scenario: running an application with Webpacker on multiple servers. How to serve identical assets from all servers...

makandra dev

...IDENTIFIED BY 'some_password'; GRANT REPLICATION SLAVE ON *.* TO 'replicator'@'%'; Adjust MySQL configuration Edit /etc/mysql/my.cnf: server-id = 1 log_bin = /var/log/mysql/mysql-bin.log replicate-do-db = some_project_production replicate-do-db...

...other_project_production replicate-ignore-db = mysql server-id needs to be unique among all connected master and slave servers. When replicate-do-db is provided only the chosen databases...

...this case we don't have to manage the database configuration individually on every server. In a specific case, one of our projects supports sign in by SAML, but not...

github.com

...used as a baseline within research to compare approach to each other. This can serve as a ground for further research into this topic within this problem domain. Implementation

makandra dev

...and could use a "quick" transition to give a dynamic feel. Finally, animations that serve to underline some function like a move-to-trash can use the "distinct" duration, which...

...path is /etc/ImageMagick/policy.xml Remove/Comment lines after If you need it enabled for an app server, ask your operations team to do that for you...

...Aufgaben mit einzelnen Schritten werden in Scripts abgelegt (Bash, Python, Ruby, Go) Konfiguration von Servern verwaltet man mit Configuration Management (Ansible, Puppet, Chef, Saltstack) Cloud Infrastukturen provisioniert man mit Infrastructure...

...work with other Linux distros, as long as you are using the Xorg display server. It likely won't work on Wayland. The script assumes that external display order is...

...more processes than just your tests while your test suite is running: The Rails server booted by each test process (in a separate process) The Chrome browser started by each...

Your IDE Your window environment Background services Fixing flaky tests Running fewer test processes is only a bandaid. Your test suite has issues with uncontrolled timing issues. Reducing...

...APIs versus "asynchronous" APIs? Why does fetch() not simply return the response from the server? Why is asynchronous code such a big issue in JavaScript (as opposed to the code...

You can either implement your own API backend or use the free service at api.random.org. If you chose the the latter, create an account for it and click...

makandracards.com

...SEARCHKICK_CLIENT_TYPE).to_sym ENV['OPENSEARCH_URL'] ||= case Rails.env when 'production' OPENSEARCH_PRODUCTION_SERVER when 'staging' OPENSEARCH_STAGING_SERVER else 'http://opensearch:9200' # docker container name end

...setup the opensearch cluster. When the cluster exists, open a console on the staging server with the ENV-variable SEARCHKICK_CLIENT_TYPE set to "opensearch". SEARCHKICK_CLIENT_TYPE=opensearch b...

kb.wisc.edu

...possible that the certificate chain is in the wrong order. Make sure that the server certificate is the first. This is also necessary for nginx. It is recommended to pipe...

...modulus the same syntax applies to RSA and ECDSA certificates: openssl pkey -pubout -in server.key | openssl sha1 openssl req -pubkey -noout -in server.csr | openssl sha1 openssl x509 -pubkey -noout -in...

...be evaluated when running middleman for the specific environment. Default for the local dev server is development, default for building is production. Activate an environment with -e staging or --environment...

...be "built", too. However, testing in :build mode oddly # takes thrice as long as :server: mode, so you might try and skip this # setting for faster test runs. config[:mode...

...nginx is much more straightforward. A reverse proxy is a "man in the middle" server that tunnels requests to another server. You can use for things like: Expose a local...

...service that you cannot directly reach over the internet "Change" the domain or path of a web application by rewriting them on the fly Instantly change servers that respond to...

makandra dev
github.com

...img tag in favor of lazy-loading, make sure you have a strategy to serve crawlers, if you need to support them. When the lazy-loaded image is inserted into...

...on productivity. Advantages No added effort: tests need to be written anyway. Test heads serve as todo lists. You'll always know what is finished and what is left to...

...stricter settings than the more liberal MariaDB. If your app explodes after changing SQL servers, you might be able to fix it by setting the SQL mode to the value...

...in your previous server version. Important SQL mode flags These SQL modes will probably give you the most headaches: STRICT_TRANS_TABLES, STRICT_ALL_TABLES Introduced in MySQL 5.7, these...

makandra dev

...this use case, any good network-client gem like the http or httpclient gems serve us just well most of the time. The examples below use the http gem ("http.rb...

...ms, then animate) When you wait for I/O most of the time (web servers, crawlers) Most current and future HTML5 browser APIs have async signatures. Async frontend example

makandra Curriculum

...Discuss with your mentor Instead of migrations, could we simply log into the production server's SQL console and alter tables there whenever we need a change?

OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed Here is how to fix that in your application.

...This is only okay-ish for testing something in development. Note that there are services like badssl.com to test against weird SSL behavior. Self-signed certificates Talking to a host...

...Basically a comprehensive Rails Template. Prepares your development environment and lets you select web server, template engine, unit and integration testing frameworks and more. Generate an app in minutes using...

badssl.com

...as expected (which might be compromised e.g. due to security products or enterprise proxy servers...

...Warum nicht dem Browser verbieten gefĂ€hrliche Dinge zu tun, z.B. Inline-Skripte auszufĂŒhren? Funktionsweise Server setzt einen HTTP-Header, der detailliert beschreibt, welche (potentiell gefĂ€hrlichen Dinge) die Webseite tun darf...

...z.B. Analytics-Snippet o.Ă€.), kann man den nonce-Mechanismus verwenden. Dazu generiert der Server fĂŒr jeden Request einen zufĂ€lligen Wert (eine "Nonce"), und schreibt ihn in Header und an...