-
The new rake task assets:clean removes precompiled assets. [fxn]
-
Application and plugin generation run bundle install unless
--skip-gemfileor--skip-bundle. [fxn] -
Fixed database tasks for jdbc* adapters #jruby [Rashmi Yadav]
-
Template generation for jdbcpostgresql #jruby [Vishnu Atrai]
| require 'rubygems' | |
| # diff --git a/lib/rubygems/version.rb b/lib/rubygems/version.rb | |
| # index 50d8204..4962ce1 100644 | |
| # --- a/lib/rubygems/version.rb | |
| # +++ b/lib/rubygems/version.rb | |
| # @@ -295,12 +295,16 @@ class Gem::Version | |
| # rhsize = other.segments.size | |
| # limit = (lhsize > rhsize ? lhsize : rhsize) - 1 | |
| # |
| class HttpCharset | |
| def initialize(content_type) | |
| @content_type = content_type | |
| end | |
| def encoding | |
| return nil unless @content_type | |
| par = @content_type.split(';').select do |c| | |
| c.split('=').first.strip == 'charset' | |
| end.first | |
| return nil unless par |
| FIXME: | |
| WARNING: Nokogiri was built against LibXML version 2.7.3, but has dynamically loaded 2.7.8 | |
| or | |
| libxml_ruby.bundle: dlsym(0x10fde1900, Init_libxml_ruby): symbol not found | |
| gem uninstall nokogiri libxml-ruby | |
| brew update | |
| brew uninstall libxml2 |
This article has been given a more permanent home on my blog. Also, since it was first written, the development of the Promises/A+ specification has made the original emphasis on Promises/A seem somewhat outdated.
Promises are a software abstraction that makes working with asynchronous operations much more pleasant. In the most basic definition, your code will move from continuation-passing style:
getTweetsFor("domenic", function (err, results) {
// the rest of your code goes here.Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000Kafka acts as a kind of write-ahead log (WAL) that records messages to a persistent store (disk) and allows subscribers to read and apply these changes to their own stores in a system appropriate time-frame.
Terminology:
- Producers send messages to brokers
- Consumers read messages from brokers
- Messages are sent to a topic
| package str | |
| func Reverse(input string) string { | |
| return "" | |
| } |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
