The following error appeared upon upgrading JRuby:
OpenSSL::X509::StoreError: setting default path failed: Invalid keystore format
# Example of .jrubyrc | |
# Set compilation mode. JIT = at runtime; FORCE = before execution. (JIT, FORCE, OFF, OFFIR) | |
# compile.mode = FORCE | |
# Dump to console all bytecode generated at runtime. | |
# compile.dump = true | |
# Enable verbose JIT logging (reports failed compilation) | |
# jit.logging.verbose = true |
class CompressedRequests | |
def initialize(app) | |
@app = app | |
end | |
def method_handled?(env) | |
!!(env['REQUEST_METHOD'] =~ /(POST|PUT)/) | |
end | |
def encoding_handled?(env) |
UPDATE 2014-12-21: RubyGems 1.8.30, 2.0.15 and 2.2.3 have been released. It requires manual installation, please see instructions below.
Hello,
If you reached this page, means you've hit this SSL error when trying to
# 1) Create your private key (any password will do, we remove it below) | |
$ cd ~/.ssh | |
$ openssl genrsa -des3 -out server.orig.key 2048 | |
# 2) Remove the password | |
$ openssl rsa -in server.orig.key -out server.key |
# Sample implementation of quicksort and mergesort in ruby | |
# Both algorithm sort in O(n * lg(n)) time | |
# Quicksort works inplace, where mergesort works in a new array | |
def quicksort(array, from=0, to=nil) | |
if to == nil | |
# Sort the whole array, by default | |
to = array.count - 1 | |
end |
me = User.create(*all the info*) | |
ruby = Language.create(name: 'ruby') | |
python = Language.create(name: 'python') | |
UsersLanguage.add_language(python, me) | |
=> true | |
UsersLanguage.add_language(ruby, me) | |
=> true |
<li> | |
<%= truncate(experience.content, length: 200) { button_to "Continue", { action: "#" }, method: :get } %> | |
</li> |
<li> | |
<%= truncate(experience.content, length: 200) { button_to "Continue", { action: "#" }, method: :get } %> | |
</li> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"/> | |
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.29.1"></script> | |
<style type="text/css"> | |
html, body, #map { | |
width: 100%; |