...creation on deploy before, you can do it like this: Install geordi on your servers. It brings the dumple script. Store the attached db.rake to lib/capistrano/tasks/. Require it by adding...

...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...

Note that we prefer not using the Rails asset pipeline at all and serving all assets through Webpack for the sake of consistency. Preparations Remove version locks in Gemfile...

Remove version locks in package.json for webpack and webpack-dev-server Install by calling bundle update webpacker and yarn upgrade Update file contents Work through the Webpacker...

...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...

...Uses a filename from the response URL if no filename is sent by the server. Does not leave the current page when downloading. Works with both static files and send...

Fails the test if the server doesn't respond with a HTTP 2xx status. Works in CI. Limitations The helper cannot inspect downloads that are triggered or created by...

...more and more memory and prevent the garbage collector from reclaiming memory. This userRepository service caches users once they were loaded from a remote server and, hence, leaks memory:

We use the whenever gem to automatically update the crontab of the servers we deploy to. By default, whenever will update all servers with a matching role (we use the...

...sufficient context is provided. Example Create notification.resolver.ts: Return the state$ property from the notification service: Use an async resolver; Update overview.component.ts: Replace injected notification service: Use @Input() id: number with...

...pattern more frequently than necessary. With experience, it can fully replace manual edits and serve as a solid foundation for correctly specifying requirements and plans in more advanced AI-based...

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
github.com

...shell variable PS1 holds your bash prompt. You might want to change it to serve your needs best. Here is how to: General non-printing escape sequences in your prompt...

...a directory index when you access http://yourpage.com/system/attachments. You can configure your apache server to expire file-URLs after some time, so they are only available as long as...

...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...

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...

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...

github.com

...alternative to net/http and shares many concepts with WebMock. You can fake a remote server response like this: stub_request(:get, 'http://host/api').to_return(:body => 'fake body')

...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...

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...

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...

...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...

...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...

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

...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...

makandra dev

...or the ENV variable RUBY_YJIT_ENABLE=1 for starting Rails processes on your server...