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...
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...
...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...
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...
...Aufgaben mit einzelnen Schritten werden in Scripts abgelegt (Bash, Python, Ruby, Go) Konfiguration von Servern verwaltet man mit Configuration Management (Ansible, Puppet, Chef, Saltstack) Cloud Infrastukturen provisioniert man mit Infrastructure...
...a directory index when you access http://yourpage.com/system/attachments. You can configure your apache server to expire file-URLs after some time, so they are only available as long as...
To change RAM size, VDISK size or VCPU count of an openstack instance you have to use nova resize. You...
...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...
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...
...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...
...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.
You login to a Linux server with a performance issue: what do you check in the first minute? uptime dmesg | tail vmstat 1 mpstat -P ALL 1 pidstat 1
...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
...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...
...shell variable PS1 holds your bash prompt. You might want to change it to serve your needs best. Here is how to: General non-printing escape sequences in your prompt...
...ECONNREFUSED or Timeout::Error) Finally you might to be smart in case your Solr server is unreachable (crashed, network unreachable, etc.). Even if you decide not to present a cool...
...Solr on your production machines but run it on top of some Java application server, e.g., Tomcat. So tell your SysOp team that you'll need Solr on staging and...
...with an ncurses interface. It is designed to find space hogs on a remote server where you don’t have an entire graphical setup available, but it is a useful...
...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...
The attached article outlines considerations when choosing client-side vs. server-side implementations of the Google Geocoding APIs (geocoder, directions, not maps drawing). The main points are:
...client side the quota is per-client, so basically unlimited When implementing APIs on the server-side, be aware that quota is measured by IP. When hosting in the cloud...
...and could be very dangerous (e.g. if you're logged in to a production server in a terminal that is on another workspace). To prevent the broadcast from affecting other...
...windows, go to Preferences and disable DBus server...
...your keyring or ssh-agent. Your ssh-agent will throw all keys against a server until one matches. Most servers will deny access after 5 attempts. This issue might come...
...s -> staging, m -> makandra), bundle if needed, check the selected stage exists Improve geordi server: Takes port as argument (e.g. geordi ser 3001), option --public (-P) starts the server with...
...cucumber, rspec), as rake usually runs all employed tests Rename geordi devserver to geordi server (the former is still supported) Improved command descriptions and README Fix geordi firefox --setup: Fail...
I had trouble serving an MP4 video to my iPad. Although the video complied with all the specs (H.264 codec, up to 1080p, 30 FPS) I always got this error...
...This video could not be loaded, either because the server or network failed or because the format is not supported: http://10.40.0.177:3000/video.mp4 After spending a lot of time fighting...
...gemspec, in case you do not want to have a development gem on production servers...