dev.mysql.com

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

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

gnuu.org

YARD 0.6 adds the ability to serve documentation for gems as well as the current project with yard server. Just like gem server in RubyGems, you can serve gem docs...

...The advantage to YARD’s server is that you don’t need to pre-generate the static docs (with a gem install) before running the server. If you installed your...

httpd.apache.org

...current date in their name, like access.2011-04-20.log, without any need to restart the web server every night (like logrotate does). The last argument above is the rotation time in seconds...

...minutes with a custom shell script. Be advised that in that time frame a server crash (or reboot, if not taken care of) means that those in-memory log files...

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

You probably already manage servers you often connect to inside the ~/.ssh/config file. What is nice: you may define alias names for hosts so that you can say something like...

...ssh foobar-staging. This is especially helpful for servers whose hostnames are hard to remember or who don't have a DNS record at all (and must be accessed via...

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

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

...have a piece of code that tries to send a request to a remote server. Now the server is temporarily not available and raises an exception. In order to re...

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

...checks in Thunderbird. Open Edit -> Account settings and select your incoming mail account. Under Server settings uncheck "Check for new messages on startup" and "Check for new messages every X...

Under Advanced, uncheck "Use IDLE command if the server supports it...

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

...what happens: For drivers like Selenium, Capybara will boot up a Thin or Webrick server in a separate thread. It then makes a GET request to /__identify__ to see if...

...the server is ready to accept requests. Since you don't have a route that responds to /__identify, Capybara will wrap your Rails app in a middleware that responds to...

...Bundler will also look for a http_proxy env variable. With Capistrano Ideally the server you're deploying on exports an https_proxy variable for all shells.

...t have control over the server setup, you can also add this to your Capistrano config: set :bundle_env_variables, { 'https_proxy' => 'http://myproxy...

Host: www.example.com The application/xml accept header might lead to unexpected results on your server. You can force REST Client to ask the server for default text/html that way: RestClient.get...

makandra dev
developers.facebook.com

For server-to-server requests to the Facebook Graph API you can skip requesting an Oauth token, an instead use the combination of app_id|app_secret as...

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

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

makandra dev

Ubuntu lets you mount an SSH shell into Nautilus from Places -> Connect to server (select "SSH" as server type). In order to copy a file over SSH from a shell...

I've got often this error on just one server: Err http://de.archive.ubuntu.com precise/universe amd64 Packages 404 Not Found [IP: 141.30.13.20 80] But there was no problem with the network...

...connection or the de.archive.ubuntu.com server. After I deleted the local lists cache with rm -r /var/lib/apt/lists it works again...

makandra dev
select2.org

...format and extend the input with ajax options. You should paginate your results on server side to reduce the load. Select2 supports an "infinite scroll" feature, which will be enabled...

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

This tool is used on our application servers (and called when deploying) but it also works locally. Just call dumple development from your project directory to dump your database.