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...
...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...
...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...
...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
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...
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...
...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`
...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...
To change RAM size, VDISK size or VCPU count of an openstack instance you have to use nova resize. You...
...type, inputmode and autocomplete – including a live preview for iOS and Android! It also serves as a nice reference for available values...
...is a nice tool to show details about TLS/SSL connections: ~> sslscan some-host-at.makandra.de Testing SSL server some-host-at.makandra.de on port 443 Supported Server Cipher(s): Failed SSLv3 256 bits ECDHE-RSA-AES256...
...bits ECDHE-ECDSA-AES256-SHA384 Rejected SSLv3 256 bits ECDHE-RSA-AES256-SHA ... Prefered Server Cipher(s): TLSv1 128 bits ECDHE-RSA-AES128-SHA SSL Certificate: Version: 2 Serial Number...
...app/inputs/grouped_collection_select_input.rb (SimpleForm will pick it up automatically; if it does not, restart your Rails server) and use it in your form with that new :group_by option. Note that this...
When storing files for lots of records in the server's file system, Carrierwave's default store_dir approach may cause issues, because some directories will hold too many entries...
...It's a mature library that can do the job frontend-wise. On the server, we'll use Carrierwave, because it's capable of caching images. (FYI, here's how...
...Gallery, but will be the params key when -# sending the image files to the server = gallery_form.label :add_images do = form.file_field :add_images, class: 'hidden', multiple: true Add Images = gallery_form.submit...
...the bandwidth internally, you can use netcat and dd like this: On your first server: nc -v -l 55333 > /dev/null On your second server: dd if=/dev/zero bs=1024K count...
...rarely, it can happen when the client is attempting the initial connection to the server. In this case, if your connect_timeout value is set to only a few seconds...
...Aborted_connects'. It will increase by one for each initial connection attempt that the server aborts. You may see reading authorization packet as part of the error message; if so...
...shows an approach on how to implement encrypted passwords with the AWS Key Management Service (KMS). For most applications it's enough to use a hashed password with a salt...
...with a public key from KMS (you can store the public key in your server code). In your database store the encrypted hash, the salt, plus some "key ID" that...
...http with https in the Gist link). connect the clients (aka agents) to the server (aka puppetmaster) following these instructions add pluginsync = true to the [main] section of puppet.conf on...
...the clients and the server #Important sudo all the time! If you connect an agent to the puppetmaster once without using sudo and later try to connect using sudo, you...
We regularly need to connect to the server in order to e.g. access the production console. Guessing the Capistrano deploy user and then again guessing the right directory on the...
...server is awkward, so we wrote a script that parses config/deploy and gives you the handy command shell-for. Run it from any project directory like this, passing a Capistrano...
...this to your config/routes.rb: match '/404' => 'errors#not_found', via: :all match '/422' => 'errors#server_error', via: :all match '/500' => 'errors#server_error', via: :all Add an ErrorsController like this...
...action :verify_authenticity_token def not_found render :status => 404, :formats => [:html] end def server_error render :status => 500, :formats => [:html] end end Add the corresponding views. Delete the static...
...FILES] # Run Cucumber features geordi dep[loy] [STAGE] # Guided deployment across branches geordi dev[server] # Start a development server geordi du[mp] [TARGET] # Handle dumps geordi eu[rest] # Open the...
Capistrano automatically logs each (successful) deployment into a file on your application servers. It is located at the root of your server's project folder, i.e. the parent of releases...
...s possible you get this "error" message: *** [err :: example.com] There are no Phusion Passenger-served applications running whose paths begin with '/var/www/example.com'. *** [err :: example.com] This is just because there were...
...no running passenger process for this application on the server which could be restarted. It's not a real error. The application process will start if the first request for...
...you require and Rails will use the vendored version of the gem after a server restart. Unfortunately you need to perform some additional steps to marry Rails and the copied...
...script is aware of vendored gems and will scp-copy them to the remoty server. Without Bundler Don't use gem unpack since the gemspec will be missing. Use this...