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

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)

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

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

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

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

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

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

...and other secrets available to the job. The output is uploaded to the GitLab server and visible in job logs...

...need to pay attention if you redirect outside of Rails, e.g. via your web server configuration. Dealing with incorrectly cached redirects The only fix is to keep redirecting the user...

makandra dev

...on http://127.0.0.1:39949 You can disable this behavior by tweaking Capybara's Puma server in your spec/support/capybara.rb: Capybara.server = :puma, { Silent: true } Note You don't need to configure this...

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

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

'host' => $host, }) } Instead of exporting a environments::railscomplete::db resource on the application servers we just collectd all the vhosts with a specific dbbackend. A vhost can be configured...

...on multiple servers. If we've used exported resources the environments::railscomplete::db resource type would not contain the resources it contains now but would be a wrapper using an...

...To do that you need the secret key which should only live on the servers. Do not download these key files to your local dev environment. They are sensitive and...

...allow scientific notation like "1e3"). Non-technical users will be confused by this. Your server needs to understand that syntax. If it converts only digits (e.g. to_i in Ruby...

jsfiddle.net

When you need test images, instead of using services like lorempixel or placehold.it you may generate test images yourself. Here we build a simple SVG image and wrap it into...

...attached JSFiddle for an example. Ruby If you like to do it on the server, here is some Ruby for you: def svg_uri(text) svg = <<~SVG #{text} SVG

up.util.isEqual([1, 2], [1, 2]) // => true If you are writing server-side code in Node.js you can use isDeepStrictEqual(): import { isDeepStrictEqual } from 'util' isDeepStrictEqual([1, 2], [2, 3]) // => false...

developers.google.com

...pages, so to test it in development, you will have to start your development server with SSL...

...response in form round trips, since the id can not be assigned by the server while it may be outputting Unpermitted parameter: :id within the console. You are not setting...

makandra dev

...cause Webpacker (the Rails/Webpack integration) to compile your assets. When you run a dev server While development it is recommended to boot a webpack dev server using bin/webpack-dev-server.

...server compiles once when booted. When you access your page on localhost before the initial compilation, the page may load without assets. The dev server will detect any changes to...