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

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

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

...application you often need to move data between the client (HTML, Javascript) and the server (Ruby, Rails). Step 1: Moving HTML snippets Add a find-as-you-type search to...

In this step, the rendering of the search results should happen on the server. So the client is pulling snippets of HTML from the server. For the part of...

If there has not been any upgrade to the OS hosting the database server at all, you're not affected. Only indexes that rely on the collation feature, e.g...

...just about to be transferred. This includes time_pretransfer and also the time the server needed to calculate the result. time_total The total time, in seconds, that the full...

...have multiple exported resources that are identical. There are nodes that provide the same services for failover reasons. It is likely to have duplicate resources, when exporting nagios_check from...

...everything is fine. But when it comes to realizing the resources on the monitoring server, the puppetrun will fail due to the duplicate addresses. So how to mitigate this issue...

...puppet you can do the following: Add a new section to /etc/puppetlabs/puppet/puppet.conf on the server that should apply the environment. It usually looks like this: [main] < some stuff >

makandra dev

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

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

makandra dev

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

...project wide file search. ALE (Asynchronous Linting Engine) On the fly linter and language server client for vim. (Note that neovim has LSP support built-in). vim-airline

news.ycombinator.com

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

makandra dev

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

developers.google.com

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

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

makandra dev
github.com

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

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

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

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