...our Active Record models to JSON. JSON Schema to test the responses of our server. SwaggerUI to document the API. It worked The concept worked really good. Here are two...

...know to handle. Tests We used JSON Schema to test the responses of our server. This was really nice and we implemented it in a similar way like here.

...project wide file search. ALE (Asynchronous Linting Engine) On the fly linter and language server client for vim. (Note that neovim has LSP support built-in). vim-airline

Ubuntu 18.04 uses systemd to manage services. There are basically two commands for listing all services and manipulating the state of a certain service: service and systemctl: service manages System...

systemctl controls the state of the systemd system and service manager. It is backwards compatible to System V and includes the System V services Therefore I prefer...

Uninstall everything related to MySQL 5.7 with apt remove mysql-client mysql-server libmysqlclient-dev mysql-common Check if you removed everything using dpkg -l | grep mysql

...and "Ubuntu Wily" (assuming Xenial is not yet provided) Run apt-cache policy mysql-server If this shows a 5.6 version, continue. If not, check your /etc/apt/sources.list.d/mysql.list. It should look...

makandra dev

...gem install ruby-debug (Ruby 1.8) or gem install debugger (Ruby 1.9) Start your server with script/server --debugger Set a breakpoint by invoking debugger anywhere in your code

...the page loading will seem to "hang". Switch to the shell you started the server with. That shell will be running an irb session where you can step through the...

...const smp = new SpeedMeasurePlugin() const config = environment.toWebpackConfig() module.exports = smp.wrap(config) Restart your webpack dev server, or explicitly compile your assets. Check your terminal for extra output like this:

...the dev server, make changes and inspect the recompile response. SMP metrics will be included upon every compile, so you can see which modules or files your recompile hit.

If you want to make a request to that site's web server without actually talking to www.example.com (e.g. because this is a load balancer's address but...

...HTTP 1.1, your client (browser) uses the HTTP header "Host" to tell the web server what host it's requesting for. This is what we want to change in order...

...solche manuellen Tätigkeiten möglichst vermeiden. Wie du in den Ansible Kapiteln beim konfigurieren von Servern schon gelernt hast, hat es seine Vorteile, seine Konfigurationen als Code in einem Git Repo...

makandra dev
github.com

...just the first few letters of a command, e.g. geordi rs or geordi dev[server] command dependencies, e.g. geordi rspec invokes geordi bundle-install (which bundles only if needed)

...update by pulling/pushing/merging and deploying just as our workflow is devserver: boot a development server Rails-version-agnostic console: open a local Rails console Rails-version-agnostic, or remotely, e.g...

github.com

bundle outdated compares the versions of all gem dependencies against the gem server Get Info About Your Ruby Gems Environment gem environment Mocking Requests With Partial URIs Using...

When your site is mapped into the URL-space of another server using mod_proxy, ProxyPass and ProxyPassReverse, all requests in your Apache logs are logged with the IP address...

...of the proxying server. The IP address of the original client doing the request is not logged, making it difficult to trace problems and run statistics. Short answer

...second statement is really the next one which would get executed by the MySQL server. Example: you've executed drop database foobar; and drop database blubber; in a row on...

...both MySQL server of a master/master setup. It's not guaranteed that these two statements follow each other in the binlog. If the binlog e.g. looks like this: # simplified, that...

"Whenever" works just like "craken", by putting your rake tasks into the server's cron table. Everything seems to work just like we need it. Installation for new...

...not use a :cron role, but instead default to run cronjobs on the :db server. That's just fine for us. For Capistrano 3 set :application, 'PROJECT_NAME' # might be...

When you make a simple TCP connection to a remote server (like telnet), your client won't normally notice when the connection is unexpectly severed on the remote side. E.g...

...if someone would disconnect a network cable from the server you're connected to, no client would notice. It would simply look like nothing is being sent. You can detect...

...nokogiri versions with gem uninstall nokogiri and install nokogiri again. Fixing the issue on servers However, on our servers this probably will not work. On the server, gems are stored...

...What you want to do instead is bundle pristine nokogiri and restart the application servers (e.g. b cap passenger:restart) This should install the right nokogiri version and make the...

github.com

In Selenium features the server and client are running in separate processes. Therefore, when mocking time with a tool like Timecop, the browser controlled by Selenium will still see the...

If you get one of this errors: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: ( ): found character that cannot start any token while scanning for the...

...Error: Could not retrieve catalog; skipping run Error: Could not retrieve catalog from remote server: Error 400 on SERVER: undefined method `empty?' for nil:NilClass at /etc/puppet/environments/production/manifests/nodes.pp:1 on node...

...the case, then you can try to deprioritize the ipv6 connection to the rubygems server, as described here. To do so, simply add "precedence 2a04:4e42::0/32 5" to the...

...a database console, run SET GLOBAL query_cache_type=OFF; and restart your rails server. You can also disable the cache on a per query basis by saying

Installing gems on a server that has no access to the internet (especially rubygems.org) requires to bundle the gems into the repository itself. This requires to adjust the bundle config...

...database active_type_test;' -U postgres with an error psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix...

...minidusen_test;' with an error ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) The command "mysql -e 'create database IF NOT EXISTS minidusen_test...

...integration test docker container and connect with it apt update apt-get install openssh-server -y apt-get install vim vim /etc/ssh/sshd_config # Edit `PermitRootLogin yes` and `GatewayPorts yes`

Resque comes with its own dashboard (Resque server) that you can mount inside your Rails 3 application with #config/routes.rb: require 'resque/server' My::Application.routes.draw do # ... mount Resque::Server => '/resque' end

...mount AuthenticatingResqueServer => '/resque' end Put a authenticating_resque_server.rb into config/initializers: require 'resque/server' class AuthenticatingResqueServer < Resque::Server class ClearanceAuthentication def initialize(app) @app = app end def call(env) @request = ActionDispatch::Request.new(env...

...instance and can have multiple threads, that handle the incoming requests. Example: A Puma server with 2 workers and 1 thread each can handle 2 request in parallel. A third...

...in parallel, but once one thread is blocked, another can continue. Example: A Puma server with 1 worker and 2 threads can handle 2 requests. A third request has to...