...is done, which only exists in jQuery: $.ajax('/foo').done(function(html) { console.debug("The server responded with %s", html); }); There is also then, which all promise libraries have:
...then(function(html) { console.debug("The server responded with %s", html); }); However, .done() and .then() do not behave the same. In particular, if a standard promise callback returns another promise, this...
...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...
...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...
...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...
...takes a significant amount of RAM. It is really ineffective to pay for a server if you need this RAM once a month. Since I don't need to navigate...
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...
...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
...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...
-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...
...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...
...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
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...
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...
...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...
...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
...gemspec, in case you do not want to have a development gem on production servers...
...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.\
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...
...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...
...to remove an element from it, after you've successfully deleted it from the server. The README suggests to say something like $scope.users = _.without($scope.users, user). While that works at...