...you find an error like this in the apache error log: [ 2015-08-21 10:53:04.1266 17680/7f4909bf7700 Pool2/Implementation.cpp:883 ]: Could not spawn process for group /var/www/example.com/current#default: An error...
...Group::spawnThreadRealMain(const SpawnerPtr&, const Passenger::ApplicationPool2::Options&, unsigned int)' (Implementation.cpp:804) [ 2015-08-21 10:53:04.1273 17680/7f4907ae7700 agents/HelperAgent/RequestHandler.h:2210 ]: [Client 19] Cannot checkout session. Error page: This application is...
...characters incorrectly and only outputs correct UTF-8 when you switch to Latin 1 (!). Also you need to setup charset and collation manually for each new database. To prevent this...
Ubuntu 12.04 LTS x64, Ruby 1.8.7, Rails 2.13, PDFKit 0.5.4, Phusion Passenger Apache 2 I ran into this, when I started using passenger to deal with the Single Thread Issue...
...an ActionController::RoutingError (No route matches "...") occurred. These steps brought me a little further (1) assert dependencies are installed sudo aptitude install openssl build-essential xorg libssl-dev
...item that is current -> '.slider--item.is-current' when /^the (.+?)(?:'s (.+?)(?: that (.+))?)?$/ selector = '.' selector << selectorify($1) selector << '--' << selectorify($2) if $2 selector << '.' << selectorify($3) if $3 selector else raise "Can't...
...build/.htaccess with the following content: DirectorySlash Off Options -Indexes RewriteEngine On RewriteCond %{DOCUMENT_ROOT}/$1/index.html -f RewriteRule ^(.+?)/$ /$1 [R=301,L] RewriteCond %{DOCUMENT_ROOT}/$1/index.html -f RewriteRule ^(.+?)$ /$1/index.html [L]
...option to #overridable: Given /^there is a movie with a (.*?) tone$/ do ... end.overridable(priority: 1) Given /^there is a movie with a (sad|upbeat|disturbing) tone$/ do ... end.overridable(priority...
Possible Reason 1: parallel_tests - running more processes than features If you run old versions of parallel_tests with more processes than you have Cucumber features, you will get errors...
...the user setter you will receive an error (no method #email for nil). Workaround 1: Don't use clever setters Don't write clever setters. Set inferred attributes before validation...
Right-aligned items (align using a separator): Workspace switcher Configure three workspace named "1", "2", "3" Disable miniature views in the item preferences Action button for "Lock screen"
Consider some default padding for UI tabs that you want to increase. $pad: 10px 15px .tab padding: $pad + 2px // WRONG That will incorrectly concatenate both: .tab { padding: 10px 15px2px...
} Fun fact: Multiplication (like $pad * 2) will even cause an error: Undefined operation: "10px 15px times 2". However, using nth, we can access individual values: $pad: 10px 15px
...The returned color will be a string with a color value like "rgb(253, 126, 20)". Bonus: Hex color strings If you want to convert that to a hex color...
...ES2017+) can do it like this: let hexColor = rgbColor .match(/(\d+), (\d+), (\d+)/) .slice(1, 4) .map((number) => { return Number(number).toString(16).padStart(2, '0') }) .join('') .replace(/^/, '#') Ruby
...some python zombie processes): Get PPID of zombie process: $ ps -ef | grep "python" [...] nova 13930 1543 0 Jun19 ? 00:00:00 [python] nova 13931 1543 0 Jun19...
nova 13932 1543 0 Jun19 ? 00:00:00 [python] nova 13933 1543 0 Jun19 ? 00:00:00 [python] nova 13934 1543 0 Jun19 ? 00:00:00 [python] nova 13935...
Post.search { fulltext "your query", :fields => :title with(:category_ids).any_of([1,2,3,4,5]) } If you want to scope your search based on a text...
~ > openssl s_client -connect projecthero.com:443 -cipher ECDHE-RSA-RC4-SHA CONNECTED(00000003) depth=1 O = AlphaSSL, CN = AlphaSSL CA - G2 verify error:num=20:unable to get local issuer...
~ > openssl s_client -connect localhost:443 -cipher ECDHE-RSA-RC4-SHA CONNECTED(00000003) 140293946562208:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure:s23_clnt.c...
...not really what you are looking for: isNaN(NaN) // true isNaN('hello') // true Option 1: ES6 The Object.is() method determines whether two values are the same value. It even works...
...might have to deploy to a server that cannot access the git repository. Solution 1: HTTP Proxy (this is the preferred fix) SSH can be tunneled over an HTTP Proxy...
...target server and forward an SSH port like this: ssh deploy-user@server -R 1222:git.host:22 Set the repo url in your deploy.rb to ssh://git@localhost:1222/... (for our...
The default Google Analytics might not work as expected with your Unpoly app. This is because your app only has...
Today I ran into trouble installing therubyracer on Ruby 1.8. The installation failed with *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or...
...fix that, remove all versions ob 'libv8': gem uninstall libv8 Select gem to uninstall: 1. libv8-3.3.10.2-x86_64-linux 2. libv8-3.11.8.17-x86_64-linux 3. libv8-3.16.14.3-x86...
Note: We are talking about Machinist 1 here, Machinist 2 may have solved this or might require a different approach. Machinist allows named blueprints (e.g. User.blueprint(:admin)) that inherit from...
...date_format = Spreadsheet::Format.new :number_format => 'DD.MM.YYYY' # set default column formats sheet1.column(1).default_format = money_format sheet1.column(2).default_format = date_format sheet1.row(0).push "just text", 5.98, DateTime.now...
...to the classes themselves. We can reference these classes in CSS: .details { transition: opacity 1s; opacity: 1; } .details[class*="-remove"] { transition: none; // No transition on class removal -> instant hiding
...is a property of the parent scope (like "someProperty", instead of an expression like "1+2"), i.e. it is writable by any means, Angular will set up a two-way...
...Installing a new LibreOffice If you want to upgrade to LibreOffice 5.0 (available on 12.04): sudo add-apt-repository ppa:libreoffice/libreoffice-5-0 If you want to upgrade to LibreOffice 5.1 (not...
...available on 12.04): sudo add-apt-repository ppa:libreoffice/libreoffice-5-1 Now install the new version: sudo apt-get update sudo apt-get install libreoffice For a localized interface, install the corresponding...
...c copy part2.webm # Create a textual list of all sequences for i in {1..2}; do echo "file 'part$i.webm'" >> parts.txt; done # Combine the ffmpeg -f concat -safe 0 -i...