@zhaozijie 没拿下?
2011 年,南昌 2650,早上 8 点半到晚上 10 点
好心动啊
class AES256
  class << self
    def encrypt(data)
      cipher = OpenSSL::Cipher::AES.new(256, :CBC)
      cipher.encrypt
      cipher.key = ENV['AES256_KEY']
      cipher.iv  = ENV['AES256_IV']
      cipher.update(data) << cipher.final
    end
    def decrypt(data)
      cipher = OpenSSL::Cipher::AES.new(256, :CBC)
      cipher.decrypt
      cipher.key = ENV['AES256_KEY']
      cipher.iv  = ENV['AES256_IV']
      cipher.update(data) << cipher.final
    end
  end
end
2.2.3 :001 > AES256.encrypt('tumayun').unpack('H*').first
 => "c199ee70fe440c24409945bc57c3ec86"
2.2.3 :002 > AES256.decrypt(['c199ee70fe440c24409945bc57c3ec86'].pack('H*'))
 => "tumayun"
2.2.3 :003 >
        帮顶,他们要做的事非常有前途
现在还不成熟吧
好吧,原来这是 PR 是按照 Oauth2 标准修复了一个遗留问题
sidekiq 和 celluloid 中招
还冷?下午好热了~~
Remote~~
@ywjno 这是副作用,哈哈
威武霸气,哈哈
@pynix 首先得有女朋友?😄
@awking pusher 基础技术用的是 faye?
@hooopo 这样不是相当于计算了两次?function_score 要计算 distance,script_fields 也要计算 distance。 我的需求是既要在结果中拿到 distance 的值,又要按照 distance 排序
@hooopo 我是要用 fields.distance 来排序,怎么写? doc["fields.distance"] 报错啊
@as181920 在 script 里如何得到 script_fields 的值?
@kungs 都不知道如何在 sort 中拿到 distance 的值
@rina 企业文化如何测评?难道和阿里类似?
@huacnlee 脑残了~~
要写成 json.cache! 的
cache [:unread_messages, params[:version], current_user.id, current_user.unread_messages_received_at.value, @messages.limit_value, @messages.current_page] do
  json.messages do
    json.array! @messages, partial: 'api/messages/message', as: :message
  end
  json.current_page @messages.current_page
  json.per_page     @messages.limit_value
  json.count        @messages.total_count
end
        @Rei ActiveSupport::MessageVerifier 很实用
@huacnlee 看到如彼了~~
你可以做一个