> FasterCSV.method(:parse).source_location => ["/opt/ruby-1.9.2-p290/lib/ruby/1.9.1/csv.rb", 1361]定義が native の場合などは nil が返る。
@@|http://api.weblio.jpを追加する
(setq case-replace nil)
def handle_unverified_request
super
raise ActionController::InvalidAuthenticityToken
end
create_table :posts, :options => 'ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin' do |t| ...
require 'active_record/connection_adapters/mysql2_adapter' ActiveRecord::ConnectionAdapters::Mysql2Adapter::NATIVE_DATABASE_TYPES[:primary_key] = "BIGINT UNSIGNED DEFAULT NULL auto_increment PRIMARY KEY"migration での型指定
t.integer :short_number t.column :long_number, 'BIGINT UNSIGNED'
$ cd /opt/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems
$ ls -la twitter-text-1.4.13/
合計 68
drwxrwxr-x 6 root root 4096 11月 22 12:21 ./
drwxr-xr-x 71 root root 4096 11月 27 09:42 ../
-rw-rw---- 1 root root 0 11月 22 12:21 .gemtest
-rw-rw---- 1 root root 371 11月 22 12:21 .gitignore
-rw-rw---- 1 root root 143 11月 22 12:21 .gitmodules
-rw-rw---- 1 root root 24 11月 22 12:21 .rspec
-rw-rw---- 1 root root 95 11月 22 12:21 Gemfile
-rw-rw---- 1 root root 10120 11月 22 12:21 LICENSE
-rw-rw---- 1 root root 3613 11月 22 12:21 README.rdoc
-rwxrwx--- 1 root root 2111 11月 22 12:21 Rakefile*
-rw-rw---- 1 root root 76 11月 22 12:21 TODO
(略)
$ sudo find . -type f \! -perm -444 -exec chmod 664 {} \;
(setq split-height-threshold nil) (setq split-width-threshold 0)上下に分割されるようにするには
(setq split-height-threshold 0) (setq split-width-threshold nil)
$ sudo bash # export CC=/usr/bin/gcc-4.2 # ./installer
$ rvm remove ree $ export CC=/usr/bin/gcc-4.2 $ rvm install --force ree
# env ARCHFLAGS="-arch x86_64" gem install pg同じく ruby-gd のインストールで失敗する場合の対処
# env ARCHFLAGS="-arch x86_64" gem install ruby-gd -- --with-opt-dir=/opt/localpassenger も
$ sudo ARCHFLAGS="-arch x86_64" CC=/usr/bin/gcc-4.2 passenger-install-apache2-module
EventMachine: fast, simple event-processing library for Ruby programs
jStat is a statistical library written in JavaScript
require 'date'
requrie 'yaml'
class DateTime
yaml_as "tag:ruby.yaml.org,2002:datetime"
def DateTime.yaml_new(klass, tag, val)
if String === val
self.parse(val)
else
raise YAML::TypeError, "Invalid DateTime: " + val.inspect
end
end
def to_yaml( opts = {} )
YAML::quick_emit( object_id, opts ) do |out|
out.scalar( taguri, self.to_s, :plain )
end
end
end
$(document).ready(function() { $(".selectable-list").selectable({ cancel: 'a' }); });
svn co http://svn.apache.org/repos/asf/lucene/dev/trunk/solr/client/ruby/solr-ruby
return "SOCKS 127.0.0.1:7070; SOCKS5 127.0.0.1:7070; DIRECT";