If you are using PDFKit / wkhtmltopdf, you might as well want to use custom fonts in your stylesheets. Usually this...
...origin requests. It defines under which circumstances a cookie should be sent to the server, putting cookies into three different classes: SameSite=None Send the cookie whenever a request is...
...Ruby, and it is tailored to a certain domain. In contrast, a gem usually: serves a single purpose supports several Ruby versions supports several Rails versions cannot and should not...
...tests in Cucumber with Aruba. Github Actions Github Actions is a free continuous integration service offered by Github. It runs your test suite in the background and reports test results...
...for the given locale. Note that Hyphenopoly is primarily a NodeJS module and targeted at server-side hyphenation, but it can be configured for the client-side as well.
...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...
...monitored. We are experts in Linux and AWS environments, as well as self-hosted server infrastructures. Have a look at makandra operations. Trainee program and makandra curriculum In makandra cards...
...that can help both newcomers and experienced developers in web development and DevOps. It serves as practical support for anyone who wants to expand their technical skills or anyone who...
...use to describe nontrivial migrations in Rails / ActiveRecord. Note that the techniques below should serve you well for tables with many thousand rows. Once your database tables grows to millions...
Running rails server will start a local server that you can access via http://localhost:3000. When you are working on multiple web apps, they will likely set cookies with...
...you switch to another app. A better way is to use our own daho.im service. All daho.im subdomains resolve to your local IP (127.0.0.1). That means you can use a...
...or JS file to your application (e.g. app/assets/application/navbar.sass), you need to restart your development server for it to show up in your browser. This is caused by a limitation of...
...in your application.js. Direct import statements like import 'app/assets/application/navbar.sass' would work without restarting the server. You'll learn the details of esbuild and the frontend build pipelines in a later...
...specific references (such as selectors or URLs). Note that it's OK for the server to send HTML for your JavaScript to consume. It does not need to be JSON...
You can use fetch() to load a server response into a JavaScript variable, without making a page load. This concept is also known as AJAX. Dual-pane layout
openssl req -new -newkey rsa:2048 -sha256 -days 365 -nodes -x509 -keyout server.key -out server.crt Explanation req -new Create a new request ... -newkey ... using a new key ...
...your cookies. There is simply no case when the browser would talk to the server via unencrypted http:// requests. Why you might need secure-only cookies anyway A security audit...
...Rails app you can add a middleware that automatically sets the Secure flag to all server-set cookies. The flag is only added for secure requests, so cookies will still...
...a custom pretty_inspect as well. It's fairly simple to do and can serve as a fallback if pretty-printing is not applicable. This can also be an alternative...
...font files, even unneeded ones, but that consumes only disk space on your application servers. Updating to the latest version of a font is trivial. Yes, fonts are updated, occasionally...
...Protokoll baut es auf, auf welchem Port läuft es? Was ist OpenSSH? Was ist ein Server-Fingerprint und wie sehen Fehler beim Abgleich aus? Was ist public key-Authentfizierung, wie...
...konfiguriert man es am Server, wie hinterlegt man öffentliche Schlüssel für Benutzer? Was ist ein Bastion- oder Jump-Host und warum verwendet man das? Wie funktionieren scp und rsync?
...Capybara will wait for a short time before raising NoSuchElementError. This is sufficient for basic, server-rendered application. However, as frontends become more complex (more JavaScript, AJAX requests, animations), race...
## Development Describe how to get started with the project. Document employed 3rd party services and how to use them, how to start a development server – just about
You can choose not to care. Since e.g. making JSON requests for HTML services is not supported use of your page, you don't have to support them with...
...Not found error, which is slightly less correct than a 406, but will serve your purpose. Option: Check the format in your actions You can write something like this in...
Nginx is capable of forwarding a unix socket to UDP backend servers. This is quite handy for load balance syslog traffic. Example nginx configuration load_module /usr/share/nginx/modules/ngx_stream_module.so; stream { upstream syslog...
server 192.0.2.10:514; server 192.0.2.11:514; server 192.0.2.12:514; } server { listen unix:/run/nginx/log.sock udp; proxy_pass syslog_server; } } Testing the connection echo "Hello Syslog!" | socat - /run/nginx/log.sock Info
...where I had to export records from a local database, transfer it to a server and import it in the server database. 1. export def dump_to_file(list)
...Gemfile, make sure to exclude these, if they should not be deployed to the servers. The gems of these groups might not be loaded by rails, however, the deployment process...
...will take longer as the gems will be downloaded and installed to the server. e.g. to exclude the groups cucumber and deploy, add the following to config/deploy/production.rb and config/deploy/staging.rb respectively...
...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...
...font-awesome": "4.7.x", "jquery": "2.2.4", "marked": "0.3.2", "select2": "./vendor/asset-libs/select2", }, "devDependencies": { "webpack-dev-server": "3.x" }, "resolutions": { "jquery": "2.2.4" } } 6. Merge the content of the application.js and application.css to the...
...rake assets:precompile. Remember to remove the folder public/packs afterwards. 11. Configure Capistrano and servers such that all servers share assets 12. Add a binstub for yarn if it's...
...received in response to a POST (or PUT/DELETE), the client should presume that the server has received the data and should issue a new GET request to the given URI...