makandra dev

...makandracards.com/makandra/492109-capybara-running-tests-with-headless-chrome. You might also want to get rid of your local VNC server sudo apt remove tightvncserver. Removed support for serial execution of scenarios tagged with @solo. Serial

...compiled to static HTML and CSS, so no need to install anything on your server. If you receive an error launching the preview server (getaddrinfo: Name or service not known...

...SocketError)), just put this into the config/site.rb: configuration.preview_server_host = "localhost...

...utilize the respective hostnames of you machines. For example, if you have 8 application servers (e.g. app1.example.com, app2.example.com, ...) and want to enable NewRelic on app1 and app2 only, utilize those...

With passenger-status --show=requests you can get a huge JSON showing current information about the running passenger processes.

We recently had a problem on a Memcache cluster, where one of the servers showed a significantly worse cache hit rate and a lot more evictions. It turned out that...

...the only reason was that the server was running for a few months longer than the others. Some investigation showed this to be a known problem with Memcache: Once your...

github.com

...allowed to overlap, and each host only network interface can have only one DHCP server. Please reconfigure your host only network or remove the virtual machine using the other host...

...snippet to the top of your Vagrantfile: class VagrantPlugins::ProviderVirtualBox::Action::Network def dhcp_server_matches_config?(dhcp_server, config) true end

makandra dev

figure: any kind of illustration figcaption: must be a child of figure, serves as a caption for the illustration menu: a semantic alternative to ul to express unordered...

...one by one and wait until the syncronisation is finished in between. Reboot your server and enter the Raid Controller Configuration by pressing TAB at the right time.

...screen (not strictly necessary, but I had weird clipping issues otherwise). Start a vnc server for your second display with x11vnc -clip xinerama0 -scale 0.8 (or xinerama1 for the second...

...zoom with the scale parameter. Show the screen using vncviewer. Enter localhost as the server. Get accustomed to how this behaves. Mouse movement is a bit weird, because your cursor...

The Angular ngSrc directive serves to properly set an image src via Angular. As anything in Angular, it updates the image as soon as the contained Angular expression changes. However...

...blank" image src when the image is empty. As somebody on Stackoverflow writes, //:0 serves this purpose: It adopts the current protocol, omits the hostname and sets the port to...

curl.haxx.se

-b will read cookies from a given file Example The remote server sets a "foo" cookie to value "bar". We tell curl to store them to a...

httpbin.org FALSE / FALSE 0 foo bar To send cookies to a server, use the -b switch. This URL will render any cookies it received: $ curl -b /tmp/cookies...

railway.at

...option -p tells thin to bind to port 3001. To have a http development server running at the same time, start it with thin start -p 3000. (To run your...

sudo apt-get install nginx Define your nginx config, e.g. at /etc/nginx/conf.d/reverse-proxy.conf: server { listen 127.0.0.1; location /foo/ { proxy_pass https://www.example.com/; } } Reload your config (if it fails...

...run sudo nginx -t to debug) sudo service nginx reload Done. Visit http://localhost/foo/ and you'll see results of https://www.example.com/. Note that nginx handles HTTPS out of...

makandra dev

...might break while compiling on older patch releases of Ruby 1.9.3 within rvm: *** [err :: server] ruby: symbol lookup error: /path/to/deployment/shared/bundle/ruby/1.9.1/gems/mysql2-0.3.13/lib/mysql2/mysql2.so: undefined symbol: rb_wait_for_single_fd *** [err :: server] ruby...

...gemspec, in case you do not want to have a development gem on production servers...

...The rails-erb-loader-dependencies comment is only needed to make the webpack-dev-server automatically regenerate the file, when your secrets.yml changes...

Here is a Javascript function reloadUsers() that fetches a HTML snippet from the server using AJAX and replaces the current .users container in the DOM: window.reloadUsers = -> $.get('/users').then (html...

...some DOM-related matchers like haveText(...). See Jasmine: Mocking API requests in an Angular service spec on how to do similar things in an Angular application...

...SSL, modify config/database.yml and add this: sslca: /path/to/mysql-ssl-ca-cert.pem Ensure only encrypted connections are accepted on server-side. Therefore, run GRANT USAGE ON *.* TO 'encrypted_user'@'%' REQUIRE SSL

...over 30 seconds to finish. It turns out that for some reason, the SOLR server seemed not to close its HTTP connections properly. After the maximum number of connections was...

To avoid this in the future, make sure everybody installs gems on remote servers properly by using the install-gems-remotely command from our geordi gem.\

...attribute has the same effect as a Content-Disposition: attachment header sent by the server. You can also tell Unpoly to treat that one link as a vanilla Javascript link...

github.com

Then run bundle install (and don't forget to restart your development server.) Usage This is a common example for graph generation in Rails. Note that you have...

makandra dev
github.com

...but instead of worrying about what element on the page to replace, and tailoring the server-side response to fit, we replace the entire body. This means that you get...

...benefits from pjax (no recompiling of the JavaScript or CSS) without having to tailor the server-side response. It just works...

makandra dev

You'll need openssl-3 or newer for servers running 22.04 Ruby version 3.1 uses by default the gem openssl-3.0.0. This can cause issues with the gem net-ssh...

...this can cause an error while deploying an application with capistrano: could not verify server signature (SSHKit::Runner::ExecuteError) or Ed25519::VerifyError: signature verification failed! As temporary workaround add the...