When requests arrive at the application servers simultaneously, weird things can happen. Sometimes, this can also happen if a user double-clicks on a button, for example. This often leads...

...not allow to recolor the image using CSS. Inline- are unnecessary work for the server and are not cached. Icon-fonts require complicated setup and are unnecessarily large. In times...

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

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

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

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

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

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

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

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

...the PDF additional assets (CSS, images, Javascripts) are required When using a singlethreaded development server like Thin there is no additional worker process available to deliver those assets.

...set config.allow_concurrency = true (default in Rails 4) Note that this allows concurrent requests served from the same process using threads. This might cause unexpected behavior if your application or...

...following setup allows you to start Terminator in a split view with the Rails server running in the left pane and all remaining processes running via foreman in the right...

type = Terminal parent = child1 profile = default command = env startup_cmd="bundle exec rails server" startup_attrs="-p 3000" bash [[[terminal3]]] type = Terminal parent = child1 profile = default command = 'env startup...

...for HTTP or 443 for HTTPS. You can use nmap to find out what service is running behind a given port, and most often see some details about it. This...

...can be helpful if servers don't offer the services you expect for some ports. If you'd like to see what ports are listing on your local machine, you...

...code, it can just merge all files together. You may need to restart your server if you add files to config/locale. Using subfolders You can also use subfolders, but then...

...clients, we want to review all code written before it goes to the staging server. Note: This process is tailored to our specific needs and tools at makandra. While it...

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

...as enumerable) and the using methods iterated over them. As the using methods like serve do not actually need all routes, but may return early, a change has been introduced...

weblog.jamisbuck.org

...passenger worker. Please update the card accordingly if you solve that issue. If your server is running passenger enterprise, rather use that tool to inspect your process.

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

...of the Content-Type: HTTP header or the equivalent in the protocol used to serve the style sheet. The @charset CSS at-rule. Sprockets The asset pipeline (with Sprockets) does...

...within the version call. For example, if you migrated legacy videos from the old server, you still want to offer them for downloads, but never generate them when a new...

makandra dev

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