Skip to content

Instantly share code, notes, and snippets.

mobot:TestApp yury$ bundle install
Updating git://github.com/Manfred/unichars.git
Fetching source index from http://gemcutter.org/
Resolving dependencies
Updating git://github.com/Manfred/unichars.git
Installing rake (0.8.7) from system gems
Installing rails (2.3.5) from system gems
Installing unichars (0.5) from git://github.com/Manfred/unichars.git (at master) with native extensions
Installing activeresource (2.3.5) from system gems
Installing actionmailer (2.3.5) from system gems
module Fx
class UnicodeEnforcer
def initialize(app)
@app = app
end
def call(env)
req = Rack::Request.new(env)
force_encoding(req.params)
require 'erubis/helpers/rails_helper'
class FixedErubis < ::Erubis::Eruby
def add_preamble(src)
src << "@output_buffer = '';\n"
end
def add_text(src, text)
src << "@output_buffer << '" << escape_text(text) << "';"
end
<system.serviceModel>
<bindings>
<webHttpBinding/>
</bindings>
<services>
<service behaviorConfiguration="Order.API.ServiceBehavior" name="Order.API.OrderService">
<endpoint binding="webHttpBinding" behaviorConfiguration="webBehavior" contract="Order.API.IOrderService"/>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
</services>
mobot:ruby-stemmer yury$ rvm system
mobot:ruby-stemmer yury$ ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]
mobot:ruby-stemmer yury$ ruby extconf.rb
cc -Iinclude -fPIC -c -o src_c/stem_ISO_8859_1_danish.o src_c/stem_ISO_8859_1_danish.c
cc -Iinclude -fPIC -c -o src_c/stem_UTF_8_danish.o src_c/stem_UTF_8_danish.c
cc -Iinclude -fPIC -c -o src_c/stem_ISO_8859_1_dutch.o src_c/stem_ISO_8859_1_dutch.c
cc -Iinclude -fPIC -c -o src_c/stem_UTF_8_dutch.o src_c/stem_UTF_8_dutch.c
cc -Iinclude -fPIC -c -o src_c/stem_ISO_8859_1_english.o src_c/stem_ISO_8859_1_english.c
cc -Iinclude -fPIC -c -o src_c/stem_UTF_8_english.o src_c/stem_UTF_8_english.c
points = [[0,0],[4,2],[3,3],[2,4],[6,6],[8,3]] # это как раз твои точки из exact
x_min_max = points.minmax { |a, b| a[0] <=> b[0] }
y_min_max = points.minmax { |a, b| a[1] <=> b[1] } # тут была ошибка
left_bottom_point = [x_min_max[0][0], y_min_max[0][1]]
top_right_point = [x_min_max[1][0], y_min_max[1][1]]
indexing index 'place_core'...
ERROR: index 'place_core': sql_range_query: Column 'context' in on clause is amb
iguous (DSN=mysql://root:***@localhost:3306/planet).
total 0 docs, 0 bytes
total 0.064 sec, 0.00 bytes/sec, 0.00 docs/sec
distributed index 'place' can not be directly indexed; skipping.