If you are using PDFKit / wkhtmltopdf, you might as well want to use custom fonts in your stylesheets. Usually this...

makandra dev

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

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

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

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

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

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

...Rails console does not crash while starting up. Disable eager loading again. Get rails server running Fix all errors until rails server can render a page. Click around a bit...

makandra dev

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

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

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

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

...gems for e.g. the Ruby version 2.6.5 are installed in this directory on our servers (relative to the current app directory) ../shared/bundle/ruby/2.6.0/gems As you can see, the same gems are...

...the patch level of the .ruby-version in the current release directory of all servers of that deployment target to the new version and deploy again. Because on the first...

en.wikipedia.org

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

makandra dev
makandracards.com

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

...is a European marketing association which has introduced a standard how advertising can be served to users in line with the General Data Protection Regulation (GDPR). This standard is called...

...to a rough geographic region of the user", or "vendor X is allowed to serve personalized advertising based on user behavior", or "vendor X is allowed to use user data...

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

...logs all system calls performed by a process. To do this, start your rails server using something like DISABLE_SPRING=1 strace -e trace=file -f bin/rails s

...boxes are usually built by observing changes in a text field, and querying the server via AJAX for search results or suggestions when the field has changed. A common problem...

...field for changes every 0.75 seconds or longer. It will still fail when the server is busy or on flaky connections. A cleaner solution would be to check whether a...

...a state transition while updating the record. To process a form with multiple buttons, your server-side code will need to know which button was pressed. To do so you...