|
|
- やすはる かみこ
- 5 years ago
- Views:
Transcription
1
2
3
4 3360 druby Web
5 Who is translating it?
6
7 $32.00 International Journal of PARALLEL PROGRAMING Must buy!
8
9 toruby LT
10
11
12
13 Linux Conference 2000 fall Perl/Ruby Conference /1
14
15 Hello, Again. Ruby 01
16
17
18
19
20 Remote Method Invocation Remote Procedure Call
21 Web Service XML-RPC
22 shttpsrv shttpsrv UI shttpsrv user
23
24 druby RMI RMI, RPC
25 druby druby Ruby RMI RMI Ruby
26 druby Ruby
27
28 (2) Object
29 (3) Object Object
30
31
32 def hoge(a1, a2, a3, &block)... raise FooError unless some_cond... return value
33
34
35
36 Marshal dumpable Number, String, Boolean... can t dump Proc, Thread, File... pass by value pass by reference
37
38
39
40
41 irb % irb --simple-prompt --noreadline % irb --simple-prompt --noreadline
42 DRb.start_service >> require drb/drb >> DRb.start_service =>...
43 front >> require drb/drb >> front = {} >> DRb.start_service('druby://localhost:12345', front)
44 DRbObject >> ro = DRbObject.new_with_uri('druby://localhost:12345') => #<DRb::DRbObject:0x...> >> ro.keys => [] >> ro.class => DRb::DRbObject >> ENV.each { k, v ro[k] = v} => {...} >> ro.keys => ["MANPATH", "CVS_RSH", "USER",...]
45 DRbObject >> ro = DRbObject.new_with_uri('druby://localhost:12345') => #<DRb::DRbObject:0x...> >> ro.keys => [] >> ro.class => DRb::DRbObject >> ENV.each { k, v ro[k] = v} => {...} >> ro.keys => ["MANPATH", "CVS_RSH", "USER",...]
46 DRbObject >> ro = DRbObject.new_with_uri('druby://localhost:12345') => #<DRb::DRbObject:0x...> >> ro.keys => [] >> ro.class => DRb::DRbObject >> ENV.each { k, v ro[k] = v} => {...} >> ro.keys => ["MANPATH", "CVS_RSH", "USER",...]
47 >> front.keys => ["MANPATH", "CVS_RSH", "USER",...]
48 >> front['stdout'] = $stdout => #<IO:0x130d80> >> ro['stdout'] => >> ro[ stdout ].puts( Hello, World. ) >> Hello, World.
49 >> front['stdout'] = $stdout => #<IO:0x130d80> >> ro['stdout'] => >> ro[ stdout ].puts( Hello, World. ) >> Hello, World.
50 >> front['stdout'] = $stdout => #<IO:0x130d80> >> ro['stdout'] => >> ro[ stdout ].puts( Hello, World. ) >> Hello, World.
51 >> front['stdout'] = $stdout => #<IO:0x130d80> >> ro['stdout'] => >> ro[ stdout ].puts( Hello, World. ) >> Hello, World.
52
53
54
55 SizedQueue server require 'thread' require 'drb/drb' queue = SizedQueue.new(10) DRb.start_service('druby://localhost:12345', queue) sleep
56 Producer require 'drb/drb' DRb.start_service queue = DRbObject.new_with_uri('druby://localhost:12345') 100.times do n sleep(rand) queue.push(n)
57 Consumer require 'drb/drb' DRb.start_service queue = DRbObject.new_with_uri('druby://localhost:12345') 100.times do sleep(rand) puts queue.pop
58
59
60 DRbObject class DRbObject def initialize(obj, = uri = obj.id if obj def method_missing(msg_id, *a) succ, result = DRbConn.new(@uri).s_message(self, msg_id, *a) raise result if! succ result attr :ref
61 DRbObject URI ref
62 method_missing class DRbObject def initialize(obj, = uri = obj.id if obj def method_missing(msg_id, *a) succ, result = DRbConn.new(@uri).s_message(self, msg_id, *a) raise result if! succ result attr :ref
63 DRbServer def proc ns Thread.start do begin s = ns begin ro, msg, argv = recv_request(s) if ro and ro.ref obj = ObjectSpace._id2ref(ro.ref) else obj = DRb.front result = obj. s (msg.intern, *argv) succ = true rescue result = $! succ = false s_reply(s, succ, result) ensure close s if s
64 DRbServer def proc ns Thread.start do begin s = ns begin ro, msg, argv = recv_request(s) if ro and ro.ref obj = ObjectSpace._id2ref(ro.ref) else obj = DRb.front result = obj. s (msg.intern, *argv) succ = true rescue result = $! succ = false s_reply(s, succ, result) ensure close s if s
65 DRbServer def proc ns Thread.start do begin s = ns begin ro, msg, argv = recv_request(s) if ro and ro.ref obj = ObjectSpace._id2ref(ro.ref) else obj = DRb.front result = obj. s (msg.intern, *argv) succ = true rescue result = $! succ = false s_reply(s, succ, result) ensure close s if s
66 DRbServer def proc ns Thread.start do begin s = ns begin ro, msg, argv = recv_request(s) if ro and ro.ref obj = ObjectSpace._id2ref(ro.ref) else obj = DRb.front result = obj. s (msg.intern, *argv) succ = true rescue result = $! succ = false s_reply(s, succ, result) ensure close s if s
67 DRbServer def proc ns Thread.start do begin s = ns begin ro, msg, argv = recv_request(s) if ro and ro.ref obj = ObjectSpace._id2ref(ro.ref) else obj = DRb.front result = obj. s (msg.intern, *argv) succ = true rescue result = $! succ = false s_reply(s, succ, result) ensure close s if s
68 DRbServer def proc ns Thread.start do begin s = ns begin ro, msg, argv = recv_request(s) if ro and ro.ref obj = ObjectSpace._id2ref(ro.ref) else obj = DRb.front result = obj. s (msg.intern, *argv) succ = true rescue result = $! succ = false s_reply(s, succ, result) ensure close s if s
69 def dump(obj, soc) begin str = Marshal::dump(obj) rescue ro = DRbObject.new(obj) str = Marshal::dump(ro) soc.write(str) if soc return str
70
71
72 hatena screenshot RK06 httpd DB Queue SnapShot Engine Linux 1. take a request 2. make the snapshot 3. store to DB SnapShot Engine Windows
73 RWiki In-Memory Database with logging Wiki Object Wiki druby ERB
74 WEBrick::CGI WEBrick CGI
75 require webrick/cgi require thread class SimpleCountCGI < WEBrick::CGI def initialize = def count value + 1) def do_get(req, res) res[ content-type ] = text/plain res.body = count.to_s SimpleCountCGI.new.start
76 WEBrick::CGI WEBrick::CGI front FastCGI
77 CGI require webrick/cgi require drb/drb require thread class SimpleCountCGI < WEBrick::CGI def initialize = def count value + 1) def do_get(req, res) res[ content-type ] = text/plain res.body = count.to_s DRb.start_service( druby://localhost:12321, SimpleCountCGI.new) sleep
78 cgi.start() module WEBrick class CGI... def start(env=env, stdin=$stdin, stdout=$stdout)...
79 4 lines CGI #!/usr/local/bin/ruby require drb/ drb DRb.start_service( druby://localhost:0 ) ro = DRbObject.new_with_uri( druby://localhost:12321 ) ro.start(env.to_hash, $stdin, $stdout)
80
81
82 author of Linda Reviewer#1 Must buy!
83
84 Tuple Space Engine Client Engine TupleSpace Engine Client
85
86 Tuple Array Hash Marshal Marshal druby
87 Tuple [:chopstick, 2] [:room_ticket] [ abc, 2, 5] [:matrix, 1.6, 3.14] [ family, is-sister, Carolyn, Elinor ]
88 Pattern Tuple === case equals Regexp, Range, Class nil
89 Pattern [/^A/, nil, nil] [:matrix, Numeric, Numeric] [ family, is-sister, Carolyn, nil] [nil, age, (0..18)]
90 [ seki, age, 20] >> require rinda/tuplespace >> ts = Rinda::TupleSpace.new >> ts.write([ seki, age, 20]) >> ts.write([ sougo, age, 18]) >> ts.write([ leonard, age, 18]) >> ts.read_all([nil, age, 0..19]) => [["sougo", "age", 18], ["leonard", "age", 18]] >> ts.read_all([/^s/, age, Numeric]) => [["seki", "age", 20], ["sougo", "age", 18]]
91 >> ts = Rinda::TupleSpace.new => #<Rinda::TupleSpace:...> >> DRb.front['ts'] = ts => #<Rinda::TupleSpace:...> >> TupleSpaceProxy druby >> it = DRbObject.new_with_uri('druby://localhost:12345? ts') => #<DRb::DRbObject:...> >> ts = Rinda::TupleSpaceProxy.new(it) => #<Rinda::TupleSpaceProxy:...> >>
92 >> ts.write([:seki, :age, 20]) => #<Rinda::TupleEntry:...> >> TupleSpace :seki :age 20
93 >> ts.write([:seki, :age, 20]) => #<Rinda::TupleEntry:...> >> TupleSpace >> ts.take([:seki, :age, nil]) => [:seki, :age, 20] >> :seki :age 20
94 >> ts.take([:seki, :age, nil]) TupleSpace
95 >> ts.take([:seki, :age, nil]) >> ts.write([:seki, :age, 20]) => #<Rinda::TupleEntry:...> >> TupleSpace :seki :age 20
96 >> ts.take([:seki, :age, nil]) >> ts.write([:seki, :age, 20]) => #<Rinda::TupleEntry:...> >> TupleSpace => [:seki, :age, 20] >> :seki :age 20
97
98
99 TupleSpace >> tuple = ts.take([:count, nil])
100 TupleSpace >> tuple = ts.take([:count, nil]) >> ts.write([:count, 0]) => #<Rinda::TupleEntry:...> >> :count 0
101 TupleSpace >> tuple = ts.take([:count, nil]) >> ts.write([:count, 0]) => #<Rinda::TupleEntry:...> >> => [:count, 0] >> :count 0
102 TupleSpace >> tuple = ts.take([:count, nil]) >> ts.write([:count, 0]) => #<Rinda::TupleEntry:...> >> => [:count, 0] >> >> tuple = ts.take([:count, nil]) >> tuple[1] += 1 => 1 >> ts.write(tuple) => #<DRb::DRbObject:...> >> => [:count, 1] >> :count 1
103
104
105
106 bin = [] while line = gets line.scan(/\w+/) do w bin << [w, 1]
107 bin.sort_by { pair pair[0]}
108 word = nil sum = 0 bin.sort_by { pair pair[0]}.each do key, value if word && word!= key p [word, sum] sum = 0 word = key sum += value p [word, sum]
109 bin = Hash.new { h, k h[k] = []} while line = gets line.scan(/\w+/) do w bin[w] << 1 bin.keys.sort.each do k p [k, bin[k].reduce(:+)]
110
111
112 Tiny MapReduce by TupleSpace bin = Rinda::TupleSpace.new while line = gets line.scan(/\w+/) do w bin.write([w, 1])
113 while true key,= bin.read_all([string, nil]).min_by { k, v k} break unless key sum = 0 while true begin key, value = bin.take([key, nil], 0) sum += value rescue break p [key, sum]
114 while true key,= bin.read_all([string, nil]).min_by { k, v k} break unless key sum = 0 while true begin key, value = bin.take([key, nil], 0) sum += value rescue break p [key, sum]
115
116 TokyoCabinet QDBM TokyoCabinet BigTable
117 OODB Koya OODB
118 Koya PRb - PostgreSQL OODB ID
119 Koya with SQLite2 SQLite awk SQL UNIX
120 Koya with QDBM Hash
121 Hash BigTable
122
123 3360 druby Web
124 Who is translating it?
125 $32.00 International Journal of PARALLEL PROGRAMING Must buy!
126
127 Must buy! druby
3360 druby Web Who is translating it? http://dx.doi.org/10.1007/s10766-008-0086-1 $32.00 International Journal of PARALLEL PROGRAMING Must buy! http://dx.doi.org/10.1007/s10766-008-0086-1 toruby The
More informationRubyKaigi2009 COBOL
RubyKaigi2009 COBOL seki@druby.org 3360 Pragmatic Bookshelf druby Web $32.00 International Journal of PARALLEL PROGRAMING !? MapReduce Rinda (map, reduce) map reduce key value [, ] [, ID] map()
More informationRinda, druby answering the RubyConf, RubyKaigi Masatoshi SEKI
Rinda, druby answering the RubyConf, RubyKaigi Masatoshi SEKI 05 druby Web amazon.co.jp druby Web buy now! Agile Ruby Ruby Ruby XP ERB druby Rinda RWiki Div Koya... products users ERB druby Rinda RWiki
More informationBASIC / / BA- SIC Web 1/10 1/10 / / JavaScript
BASIC / / BA- SIC Web 1/10 1/10 // JavaScript MIT Processing line(10,10,100,100); 1 BASIC / Phidgets 1 GAINER 2 USB / Phidgets USB 1: 1 http://www.phidgets.com/ 2 http://gainer.cc/ / / BGM Phidgets University
More informationWorking Effectively with Legacy tdiary Code using Cucumber and RSpec KAKUTANI Shintaro; Eiwa System Management,Inc.; Nihon Ruby-no-kai pragprog.com Working Effectively with Legacy tdiary code using
More informationRuby演習テキスト1
Ruby言語 基礎演習 社会人技術者研修 2014年度 テキスト 社会人技術者研修 2014年度テキスト 2014.11 Ruby基礎演習 1 2014.11 2015.2.1 puts "Hello Ruby >ruby hello.rb ( リターン ) > ruby hello.rb Hello Ruby # はじめての ruby プログラム puts "Hello Ruby" > ruby
More information10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV
tutimura@mist.i.u-tokyo.ac.jp kaneko@ipl.t.u-tokyo.ac.jp http://www.misojiro.t.u-tokyo.ac.jp/ tutimura/sem3/ 2002 11 20 p.1/34 10/16 1. 10/23 2. 10/30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20
More informationKyosuke MOROHASHI
Practical Meta Programming on Rails Application @2013-12-17 Ruby 1 in MOROHASHI Kyosuke (@moro) Kyosuke MOROHASHI Aga toolbox Ruby " " Ruby http://www.amazon.co.jp/exec/obidos/asin/4048687158/morodiary05-22/ref=noism
More informationMicrosoft PowerPoint - ruby_instruction.ppt
Ruby 入門 流れ Ruby の文法 画面に出力 キーボードから入力 数値 文字列 変数 配列 ハッシュ 制御構造 ( 分岐 繰り返しなど ) if while case for each 関数 クラス Ruby とは プログラミング言語 インタプリタ言語 オブジェクト指向 国産 ウェブアプリケーションフレームワーク RubyOnRails で注目 弊社での Web アプリケーション開発に利用 画面に出力
More informationuntitled
30 callcc yhara ( ( ) (1) callcc (2) callcc (3) callcc callcc Continuation callcc (1) (2) (3) (1) (2) (3) (4) class Foo def f p 1 callcc{ cc return cc} p 2 class Bar def initialize @cc = Foo.new.f def
More information¥×¥í¥°¥é¥ß¥ó¥°±é½¬I Exercise on Programming I [1zh] ` `%%%`#`&12_`__~~~alse
I Exercise on Programming I http://bit.ly/oitprog1 12 of 14 ( RD S ) I 12 of 14 1 / 35 https://bit.ly/oitprog1 ( RD S ) I 12 of 14 2 / 35 game.rb ( RD S ) I 12 of 14 3 / 35 game.rb 11 ( ) 1 require "io/console"
More information¥×¥í¥°¥é¥ß¥ó¥°±é½¬I Exercise on Programming I [1zh] ` `%%%`#`&12_`__~~~alse
I Exercise on Programming I http://bit.ly/oitprog1 1, 2 of 14 ( RD S ) I 1, 2 of 14 1 / 44 Ruby Ruby ( RD S ) I 1, 2 of 14 2 / 44 7 5 9 2 9 3 3 2 6 5 1 3 2 5 6 4 7 8 4 5 2 7 9 6 4 7 1 3 ( RD S ) I 1, 2
More informationr1.dvi
Ruby 2009.9.7 1 ( ) --- ( ( ) ( ) 1 --- ( ) 1 ( ) (?) IT 7K( )?? ( ) ( )? IT ( ) --- ( ) 1 ( ) --- ( ) (?) 2-3% Top-Level ICT Professional 5% ICT Professional 10% 100% 50% 20% Devl. Experiment Adv. ICT
More informationlistings-ext
(6) Python (2) ( ) ohsaki@kwansei.ac.jp 5 Python (2) 1 5.1 (statement)........................... 1 5.2 (scope)......................... 11 5.3 (subroutine).................... 14 5 Python (2) Python 5.1
More informationparser.y 3. node.rb 4. CD-ROM
1. 1 51 2. parser.y 3. node.rb 4. CD-ROM 1 10 2 i 0 i 10 " i i+1 3 for(i = 0; i
More informationCondition DAQ condition condition 2 3 XML key value
Condition DAQ condition 2009 6 10 2009 7 2 2009 7 3 2010 8 3 1 2 2 condition 2 3 XML key value 3 4 4 4.1............................. 5 4.2...................... 5 5 6 6 Makefile 7 7 9 7.1 Condition.h.............................
More informationExam : 1z1-809-JPN Title : Java SE 8 Programmer II Vendor : Oracle Version : DEMO Get Latest & Valid 1z1-809-JPN Exam's Question and Answers 1 from Ac
Actual4Test http://www.actual4test.com Actual4test - actual test exam dumps-pass for IT exams Exam : 1z1-809-JPN Title : Java SE 8 Programmer II Vendor : Oracle Version : DEMO Get Latest & Valid 1z1-809-JPN
More informationWindows Cygwin Mac *1 Emacs Ruby ( ) 1 Cygwin Bash Cygwin Windows Cygwin Cygwin Mac 1 Mac 1.2 *2 ls *3 *1 OS Linux *2 *3 Enter ( ) 2
September 2016 1 Windows Cygwin Mac *1 Emacs Ruby 1 1.1 ( ) 1 Cygwin Bash Cygwin Windows Cygwin Cygwin Mac 1 Mac 1.2 *2 ls *3 *1 OS Linux *2 *3 Enter ( ) 2 ~/16:00:20> ls 2 2 ls ls -a ~/16:00:20> ls -a
More information¥×¥í¥°¥é¥ß¥ó¥°±é½¬I Exercise on Programming I [1zh] ` `%%%`#`&12_`__~~~alse
I Exercise on Programming I http://bit.ly/oitprog1 13 of 14 ( RD S ) I 13 of 14 1 / 39 https://bit.ly/oitprog1 ( RD S ) I 13 of 14 2 / 39 game.rb ( RD S ) I 13 of 14 3 / 39 game.rb 12 ( ) 1 require "io/console"
More informationRuby 50 Ruby UTF print, \n [Ruby-1] print("hello, Ruby.\n") [Ruby-2] Hello, Ruby. [Ruby-3] print("hello, \"Ruby\".\n") 2 [Ruby-4] seisuu = 10 pr
Ruby 50 Ruby UTF-8 1 1 print, \n [Ruby-1] print("hello, Ruby.\n") [Ruby-2] Hello, Ruby. [Ruby-3] print("hello, \"Ruby\".\n") 2 [Ruby-4] seisuu = 10 print(seisuu, "\n") jissuu = 3.141592 print(jissuu, "\n")
More informationPowerPoint Presentation
知能システム論 1 (3) 2009.4.21 情報システム学研究科情報メディアシステム学専攻知能システム学講座末廣尚士 - 講義資料の HP http://www.taka.is.uec.ac.jp/ から右のメニューの class をクリック または http://www.taka.is.uec.ac.jp/class200 9/class2009.html を直接入力 2. Python 入門
More informationRuby Ruby ruby Ruby G: Ruby>ruby Ks sample1.rb G: Ruby> irb (interactive Ruby) G: Ruby>irb -Ks irb(main):001:0> print( ) 44=>
Ruby Ruby 200779 ruby Ruby G: Ruby>ruby Ks sample1.rb G: Ruby> irb (interactive Ruby) G: Ruby>irb -Ks irb(main):001:0> print( 2+3+4+5+6+7+8+9 ) 44 irb(main):002:0> irb irb(main):001:0> 1+2+3+4 => 10 irb(main):002:0>
More informationMicrosoft PowerPoint - 11RubyIntro-No02.ppt [互換モード]
Ruby 入門 東京電機大学櫻井彰人 Ruby とは? Ruby: 松本ゆきひろ氏による (1993) 純粋オブジェクト指向 スクリプト言語 Web プログラムで どんどんポピュラーに Ruby on Rails (http://www.rubyonrails.org/) なぜか きわめて Lisp like 松本行弘 (Matz) Introduction 実行環境 Windows/Unix/Linux/
More informationEmacs Ruby..
command line editor 27014533 2018 3 1 5 1.1................................... 5 1.2................................... 5 2 6 2.1 Emacs...................................... 6 2.2 Ruby.......................................
More informationA/B (2018/10/19) Ver kurino/2018/soft/soft.html A/B
A/B (2018/10/19) Ver. 1.0 kurino@math.cst.nihon-u.ac.jp http://edu-gw2.math.cst.nihon-u.ac.jp/ kurino/2018/soft/soft.html 2018 10 19 A/B 1 2018 10 19 2 1 1 1.1 OHP.................................... 1
More informationK227 Java 2
1 K227 Java 2 3 4 5 6 Java 7 class Sample1 { public static void main (String args[]) { System.out.println( Java! ); } } 8 > javac Sample1.java 9 10 > java Sample1 Java 11 12 13 http://java.sun.com/j2se/1.5.0/ja/download.html
More information¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè3²ó
3 2011 5 25 :gnuplot 2 / 26 : 3 / 26 web server accesslog mail log syslog firewall log IDS log 4 / 26 : ( ) 5 / 26 ( ) 6 / 26 (syslog API ) RRD (Round Robin Database) : 5 1 2 1 1 1 web 7 / 26 web server
More informationJava updated
Java 2003.07.14 updated 3 1 Java 5 1.1 Java................................. 5 1.2 Java..................................... 5 1.3 Java................................ 6 1.3.1 Java.......................
More informationつくって学ぶプログラミング言語 RubyによるScheme処理系の実装
Ruby Scheme 2013-04-16 ( )! SICP *1 ;-) SchemeR SICP MIT * 1 Structure and Interpretaion of Computer Programs 2nd ed.: 2 i SchemeR Ruby Ruby Ruby Ruby & 3.0 Ruby ii https://github.com/ichusrlocalbin/scheme_in_ruby
More informationCAS Yale Open Source software Authentication Authorization (nu-cas) Backend Database Authentication Authorization to@math.nagoya-u.ac.jp, Powered by A
Central Authentication System naito@math.nagoya-u.ac.jp to@math.nagoya-u.ac.jp, Powered by Adobe Reader & ipod Photo March 10, 2005 RIMS p. 1/55 CAS Yale Open Source software Authentication Authorization
More informationA B 1: Ex. MPICH-G2 C.f. NXProxy [Tanaka] 2:
Java Jojo ( ) ( ) A B 1: Ex. MPICH-G2 C.f. NXProxy [Tanaka] 2: Java Jojo Jojo (1) :Globus GRAM ssh rsh GRAM ssh GRAM A rsh B Jojo (2) ( ) Jojo Java VM JavaRMI (Sun) Horb(ETL) ( ) JPVM,mpiJava etc. Send,
More information¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè1²ó
1 2013 4 10 lumeta internet mapping http://www.lumeta.com http://www.cheswick.com/ches/map/ 2 / 39 ( ) 3 / 39 (Internet measurement and data analysis) : TA: SA:
More informationfp.gby
1 1 2 2 3 2 4 5 6 7 8 9 10 11 Haskell 12 13 Haskell 14 15 ( ) 16 ) 30 17 static 18 (IORef) 19 20 OK NG 21 Haskell (+) :: Num a => a -> a -> a sort :: Ord a => [a] -> [a] delete :: Eq a => a -> [a] -> [a]
More informationBoo Boo 2 Boo 2.NET Framework SDK 2 Subversion 2 2 Java 4 NAnt 5 Boo 5 5 Boo if 11 for 11 range 12 break continue 13 pass
Boo Boo 2 Boo 2.NET Framework SDK 2 Subversion 2 2 Java 4 NAnt 5 Boo 5 5 Boo 6 6 7 9 10 11 if 11 for 11 range 12 break continue 13 pass 13 13 14 15 15 23 23 24 24 24 25 import 26 27-1- Boo Boo Python CLI.NET
More information10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV
tutimura@mist.i.u-tokyo.ac.jp kaneko@ipl.t.u-tokyo.ac.jp http://www.misojiro.t.u-tokyo.ac.jp/ tutimura/sem3/ 2002 12 11 p.1/33 10/16 1. 10/23 2. 10/30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20
More informationcomp -MYPEDIA Programing- Ruby 1 attr_accessor :< 1>, :< 2> class Car def = carname end attr_accessor :name end car = Car.ne
Ruby 1 attr_accessor :< 1>, :< 2> class Car def initialize(carname) @name = carname attr_accessor :name car = Car.new("car1") car.name = "car2" puts car.name attr_reader :< 1>, :< 2> class Car def initialize(carname)
More informationSequel のすすめ 私が SQL を嫌いな理由 とみたまさひろ RubyHiroba Sequel のすすめ - 私が SQL を嫌いな理由 Powered by Rabbit 2.0.7
Sequel のすすめ 私が SQL を嫌いな理由 とみたまさひろ RubyHiroba 2013 2013-06-02 自己紹介とみたまさひろ 長野県北部在住 プログラマー (Ruby & C) http://tmtms.hatenablog.com http://twitter.com/tmtms 好きなもの Ruby, MySQL, Linux Mint, Emacs, Git OSS 貢献者賞
More informationNetworking Semester 802.3
Networking Semester 802.3 2 ) ( Computer Hardware () () () () () () () () ()- () () () () () BIOS () Computer Software Operating Systems Windows, Linux Linux Windows OS I 1.C 2. 3. 3-1.main 3-2.printf
More information¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè1²ó
1 2014 4 7 lumeta internet mapping http://www.lumeta.com http://www.cheswick.com/ches/map/ 2 / 41 ( ) 3 / 41 (Internet measurement and data analysis) : TA: SA:
More informationtuat1.dvi
( 1 ) http://ist.ksc.kwansei.ac.jp/ tutimura/ 2012 6 23 ( 1 ) 1 / 58 C ( 1 ) 2 / 58 2008 9 2002 2005 T E X ptetex3, ptexlive pt E X UTF-8 xdvi-jp 3 ( 1 ) 3 / 58 ( 1 ) 4 / 58 C,... ( 1 ) 5 / 58 6/23( )
More information10 (1) s 10.2 rails c Rails 7 > item = PlanItem.new => #<PlanItem id nil, name nil,...> > item.name = "" => "" > item.valid? => true valid? true false
10 (1) 16 7 PicoPlanner validations 10.1 PicoPlanner Web Web invalid values validations Rails validates validate 107 10 (1) s 10.2 rails c Rails 7 > item = PlanItem.new => #
More informationjavascript key
Associate Professor Department of International Social Studies KYOAI GAKUEN UNIVERSITY Email: ogashiwa@c.kyoai.ac.jp, ogashiwa@wide.ad.jp sample
More informationJava学習教材
Java 2016/4/17 Java 1 Java1 : 280 : (2010/1/29) ISBN-10: 4798120987 ISBN-13: 978-4798120980 2010/1/29 1 Java 1 Java Java Java class FirstExample { public static void main(string[] args) { System.out.println("
More informationストラドプロシージャの呼び出し方
Release10.5 Oracle DataServer Informix MS SQL NXJ SQL JDBC Java JDBC NXJ : NXJ JDBC / NXJ EXEC SQL [USING CONNECTION ] CALL [.][.] ([])
More information̤Äê
SNS 1, IT.,.,.,., SNS,,,..,,.,,,.,.,,. 2 1 6 1.1................................................ 6 1.2................................................ 6 1.3...............................................
More informationMCMD Ruby Package Documentation NYSOL : Ver. 1.0 revise history: March 10, 2014 : nysol November 2, 2013 : first release 2014 3 10 Copyright c 2013 by NYSOL CORPORATION 3 1 5 1.1.....................................................
More informations
s073083 23 3 17 1 2 1.1.............................. 2 1.2.............................. 2 1.3.............................. 3 2 4 2.1........................... 4 2.2 Google App Engine........................
More informationohp1.dvi
2008 1 2008.10.10 1 ( 2 ) ( ) ( ) 1 2 1.5 3 2 ( ) 50:50 Ruby ( ) Ruby http://www.ruby-lang.org/ja/ Windows Windows 3 Web Web http://lecture.ecc.u-tokyo.ac.jp/~kuno/is08/ / ( / ) / @@@ ( 3 ) @@@ :!! ( )
More informationRuby 2.3 のてざわり新機能と使いどころ Kunihiko Ito ESM 富山合同勉強会
Ruby 2.3 のてざわり新機能と使いどころ Kunihiko Ito ESM 富山合同勉強会 2016 2016-01-30 はじめまして p self p self 名前 : 伊藤邦彦出身 : 富山在住 : 東京所属 : ESM アジャイル事業部仕事 : [Rails, neo4j] @kunitoo @kunitoo From Java To Ruby 変わったこと IDE を使わなくなった
More informationuntitled
Caché Agenda InterSystems Caché 2009.1.NET Gateway (2009.1) Truncate Caché Databases ( ( Studio Caché ObjectScript SQL Object Security InterSystems (200x.1, 200x.2) 5.2 : 2006/6 2007.1 : 2007/6 2008.1
More information1. COBOL COBOL COBOL COBOL 2
2003-6-24 COBOL COBOL 2002 ISO/IEC JTC 1/SC 22/WG 4 (COBOL) INCITS J4 (COBOL) SC 22/COBOL WG COBOL JIS 1 1. COBOL 2. 2002 COBOL 3. 2002 COBOL 4. 5. COBOL 2 1. COBOL 3 COBOL COBOL Java C C++ 200 100 100
More information2. 2 (LAN) Web 7 2 DBMS Java Applet 2.1 Java RDBMS Java 1 Lisp S S Common Lisp Java DBMS 2.2 DBMS RDBMS(Oracle) Java BLOB(Binary Large OBject) RDBMS R
1 Lisp - - 2-4-3 ( ) Common Lisp 1. Common Lisp DBMS Common Lisp OODBMS 2. CORBA 3. Java Applet 1. 2. 1 1.1 () () AD [1] 1.2 2. 2 (LAN) Web 7 2 DBMS Java Applet 2.1 Java RDBMS Java 1 Lisp S S Common Lisp
More informationPowerPoint Presentation
UML 2004 7 9 10 ... OOP UML 10 Copyright 2004 Akira HIRASAWA all rights reserved. 2 1. 2. 3. 4. UML 5. Copyright 2004 Akira HIRASAWA all rights reserved. 3 1..... Copyright 2004 Akira HIRASAWA all rights
More informationJava演習(4) -- 変数と型 --
50 20 20 5 (20, 20) O 50 100 150 200 250 300 350 x (reserved 50 100 y 50 20 20 5 (20, 20) (1)(Blocks1.java) import javax.swing.japplet; import java.awt.graphics; (reserved public class Blocks1 extends
More informationruby novice ruby novice ruby novice.
GitHub Ruby 2549 2017 3 1 1 3 2 4 2.1 ruby novice........................... 4 2.2.............................. 6 3 8 3.1 ruby novice....................... 8 3.2 ruby novice............................
More informationclass Cpd MW = { 'C'=>12.011, 'H'=>1.00794, 'N'=>14.00674, 'O' => 15.9994, 'P' => 30.973762 } def initialize @comp = Hash.new attr_accessor :name, :definition, :formula # formula def composition @formula.scan(/([a-z]+)(\d+)/)
More informationOracle9i JDeveloperによるWebサービスの構築
Oracle9i JDeveloper Web Web Web Web Web Web EJB Web EJB Web Web Oracle9iAS Apache SOAP WSDL Web Web Web Oracle9i JDeveloper Java XML Web Web Web Web Simple Object Access Protocol SOAP :Web Web Services
More information*.....J.....S.q..2013B_....
1 1 2 2 3 3 4 4 5 6 5 7 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
More informationFor_Beginners_CAPL.indd
CAPL Vector Japan Co., Ltd. 目次 1 CAPL 03 2 CAPL 03 3 CAPL 03 4 CAPL 04 4.1 CAPL 4.2 CAPL 4.3 07 5 CAPL 08 5.1 CANoe 5.2 CANalyzer 6 CAPL 10 7 CAPL 11 7.1 CAPL 7.2 CAPL 7.3 CAPL 7.4 CAPL 16 7.5 18 8 CAPL
More informationfiš„v3.dvi
(2001) 49 2 261 275 Web 1 1 2001 2 21 2001 4 26 Windows OS Web Windows OS, DELPHI, 1. Windows OS. DELPHI Web DELPHI ALGOL PASCAL VISUAL BASIC C++ JAVA DELPHI Windows OS Linux OS KyLix Mac OS (ver 10) JAVA
More information1 VisBAR edu H 2 O.....
VisBAR edu v1.03 ( ) 25 4 22 1 VisBAR edu 1 1.1....................................................... 1 1.2.................................................. 2 2 3 2.1 H 2 O.........................................
More informationr03.dvi
19 ( ) 019.4.0 CS 1 (comand line arguments) Unix./a.out aa bbb ccc ( ) C main void... argc argv argc ( ) argv (C char ) ( 1) argc 4 argv NULL. / a. o u t \0 a a \0 b b b \0 c c c \0 1: // argdemo1.c ---
More information¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè2²ó
2 2015 4 20 1 (4/13) : ruby 2 / 49 2 ( ) : gnuplot 3 / 49 1 1 2014 6 IIJ / 4 / 49 1 ( ) / 5 / 49 ( ) 6 / 49 (summary statistics) : (mean) (median) (mode) : (range) (variance) (standard deviation) 7 / 49
More informationQ&A集
& ver.2 EWEB-3C-N080 PreSerV for Web MapDataManager & i 1... 1 1.1... 1 1.2... 2 1.3... 6 1.4 MDM. 7 1.5 ( )... 9 1.6 ( )...12 1.7...14 1.8...15 1.9...16 1.10...17 1.11...18 1.12 19 1.13...20 1.14...21
More information…l…b…g…‘†[…N…v…“…O…›…~…fi…OfiÁŸ_
13 : Web : RDB (MySQL ) DB (memcached ) 1: MySQL ( ) 2: : /, 3: : Google, 1 / 23 testmysql.rb: mysql ruby testmem.rb: memcached ruby 2 / 23 ? Web / 3 ( ) Web s ( ) MySQL PostgreSQL SQLite MariaDB (MySQL
More informationデータベース認識Webサービス
Olivier Le Diouris, Oracle Corporation PL/SQL PL/SQL SOAP SOAP SOAP Web Java Java SOAP Perl Perl PL/SQL SOAP PL/SQL 1. URL 2. SOAP 1. 2. 3. 1 JSR 109 J2EE JSR 109 J2EE J2EE PL/SQL Java 2 3 JPublisher PL/SQL
More informationETL Webinar
Logstash Filebeat ETL February 23rd, 2018 Kosho Owa, Principal Solution Architect Jun Ohtani, Developer Evangelist The Elastic Stack RESTFul Elasticsearch Elastic Stack Filebeat Beats The Beats family
More informationr9.dvi
2011 9 2011.12.9 Ruby B Web ( ) 1 1.1 2 def delete if at then return @cur = @prev.next = @cur.next (1) EOF (2)@cur 1 ()@prev 1 def exch if at @cur.next == @tail then return a = @prev; b = @cur.next; c
More information8 if switch for while do while 2
(Basic Theory of Information Processing) ( ) if for while break continue 1 8 if switch for while do while 2 8.1 if (p.52) 8.1.1 if 1 if ( ) 2; 3 1 true 2 3 false 2 3 3 8.1.2 if-else (p.54) if ( ) 1; else
More informationohp03.dvi
19 3 ( ) 2019.4.20 CS 1 (comand line arguments) Unix./a.out aa bbb ccc ( ) C main void int main(int argc, char *argv[]) {... 2 (2) argc argv argc ( ) argv (C char ) ( 1) argc 4 argv NULL. / a. o u t \0
More informationr2.dvi
15 2 1 2015.6.2 ( ( ( Ruby ( ( https://www.ruby-lang.org/ja/documentation/ 2 Chris Pine,, 2,, 2010. Yugui, Ruby,, 2008. Ruby 1 ( Ruby ( 2 ( i i j ( ) /( (regular expression Ruby /.../ ( 1 if / / =~ =~
More information23 Study on Generation of Sudoku Problems with Fewer Clues
23 Study on Generation of Sudoku Problems with Fewer Clues 1120254 2012 3 1 9 9 21 18 i Abstract Study on Generation of Sudoku Problems with Fewer Clues Norimasa NASU Sudoku is puzzle a kind of pencil
More informationHadoop Introduction
Hadoop Introduction はじめに Agenda Hadoopおさらい 1 HadoopStreaming 2 Hive 3 Demo (Apacheログ解析) 4 5 まとめ Hadoop の概要 Hadoop の特徴 Hadoop クラスタ構成 マスターサーバ バッチの進捗状況管理 Map/Reduce タスク割振り NameNode JobTracker HDFS 管理 DataNode
More informationメタコンピュータ構成方式の研究
: ( ) Internet, Computational Resources, , MPI, PVM - RPC, (ORB),, Java (JVM) Java?,, code verification & sand box Java JIT Java (JVM) : Java (, ) cf., disconnected operation - Java MobaThread.goTo( );
More informationSinatra と MongoDB 今回は Sinatra で MongoDB の操作を体験してみます 進捗に合わせて ドライバから Ruby で使える便利な ORM の紹介をします
Sinatra MongoDB Powered by Rabbit 2.1.2 and COZMIXNG Sinatra と MongoDB 今回は Sinatra で MongoDB の操作を体験してみます 進捗に合わせて ドライバから Ruby で使える便利な ORM の紹介をします Sinatra と MongoDB まずは初回なので Sinatra の基本からおさらいします Hello world
More information{:from => Java, :to => Ruby } Java Ruby KAKUTANI Shintaro; Eiwa System Management, Inc.; a strong Ruby proponent http://kakutani.com http://www.amazon.co.jp/o/asin/4873113202/kakutani-22 http://www.amazon.co.jp/o/asin/477413256x/kakutani-22
More information1 Ex Ex. 2 2
I 20 100 85 40 85 PDF Windows TA ruby TA6 2 8 1. 2. PDF 3. PDF 1 Ex. 1 2 2 Ex. 2 2 2 Ex. 3 seisu = Array.new(3, 0) seisu[0] = gets.chomp.to_i seisu[1] = gets.chomp.to_i seisu[2] = gets.chomp.to_i wa =
More informationuntitled
II yacc 005 : 1, 1 1 1 %{ int lineno=0; 3 int wordno=0; 4 int charno=0; 5 6 %} 7 8 %% 9 [ \t]+ { charno+=strlen(yytext); } 10 "\n" { lineno++; charno++; } 11 [^ \t\n]+ { wordno++; charno+=strlen(yytext);}
More informationMicrosoft PowerPoint - 13Kadai.pptx
提出 講義での説明を聞いて下さい 櫻井彰人 コンパイラ理論課題 締め切りは 8 月 1 日とします 順不同で できるものをできるだけ多く回答して下さい 電子メールで sakurai あっと ae どっと keio どっと ac どっと jp に送ってください ファイル形式は pdf か MsWord で ただし プログラムはテキストファイルで レポート課題 1 それぞれ 1 問として考えます 電卓
More informationCAC
VOL.24NO.1 61 IMS Transaction 3270 DataBase Transaction OS/370 IMS Traditional Transaction Web Browser Transaction Internet WWW AP IIS APache WebLogic Websphere DataBase Oracle DB2 SQL Server Web Browser
More information~~~~~~~~~~~~~~~~~~ wait Call CPU time 1, latch: library cache 7, latch: library cache lock 4, job scheduler co
072 DB Magazine 2007 September ~~~~~~~~~~~~~~~~~~ wait Call CPU time 1,055 34.7 latch: library cache 7,278 750 103 24.7 latch: library cache lock 4,194 465 111 15.3 job scheduler coordinator slave wait
More informationr08.dvi
19 8 ( ) 019.4.0 1 1.1 (linked list) ( ) next ( 1) (head) (tail) ( ) top head tail head data next 1: NULL nil ( ) NULL ( NULL ) ( 1 ) (double linked list ) ( ) 1 next 1 prev 1 head cur tail head cur prev
More informationbdd.gby
Haskell Behavior Driven Development 2012.5.27 @kazu_yamamoto 1 Haskell 4 Mew Firemacs Mighty ghc-mod 2 Ruby/Java HackageDB 3 Haskeller 4 Haskeller 5 Q) Haskeller A) 6 7 Haskeller Haskell 8 9 10 Haskell
More information第5回お試しアカウント付き並列プログラミング講習会
qstat -l ID (qstat -f) qscript ID BATCH REQUEST: 253443.batch1 Name: test.sh Owner: uid=32637, gid=30123 Priority: 63 State: 1(RUNNING) Created at: Tue Jun 30 05:36:24 2009 Started at: Tue Jun 30 05:36:27
More informationSpring Framework 2.0 デファクトスタンダードDIコンテナの現在と未来
Spring Framework 2.0 DI zuisener@gmail.com Java Web Struts/Spring/iBATIS ibatis Spring 2 Spring 2.0: The Spring Experience 2006: 3 Seasar2 DIxAOP POJO XML 4 2.0 XML AspectJ AOP 1.x 5 DI Bean 1. singleton
More informationjssst-ocaml.mgp
Objective Caml Jacques Garrigue Kyoto University garrigue@kurims.kyoto-u.ac.jp Objective Caml? 2 Objective Caml GC() Standard MLHaskell 3 OCaml () OCaml 5 let let x = 1 + 2 ;; val x : int = 3 ;; val-:
More informationCopyright c 2008 Zhenjiang Hu, All Right Reserved.
2008 10 27 Copyright c 2008 Zhenjiang Hu, All Right Reserved. (Bool) True False data Bool = False True Remark: not :: Bool Bool not False = True not True = False (Pattern matching) (Rewriting rules) not
More informationJava Java Java Java Java 4 p * *** ***** *** * Unix p a,b,c,d 100,200,250,500 a*b = a*b+c = a*b+c*d = (a+b)*(c+d) = 225
Java Java Java Java Java 4 p35 4-2 * *** ***** *** * Unix p36 4-3 a,b,c,d 100,200,250,500 a*b = 20000 a*b+c = 20250 a*b+c*d = 145000 (a+b)*(c+d) = 225000 a+b*c+d = 50600 b/a+d/c = 4 p38 4-4 (1) mul = 1
More informationVol. 29 No. 2 May 2012 141 1 Wiki ML Wiki qwikweb ML foobar foobar@qwik.jp ML Wiki Wiki http://qwik.jp/foobar/ 1 qwikweb Wiki Wiki ML Wiki ML Wiki Wik
140 qwikweb Wiki qwikweb Wiki I implemented a collaboration system qwikweb which integrated mailing lists and a Wiki system. The system uses E-mail as daily communication media and a Wiki system for collaboration.
More information9iAS_DEV.PDF
Oracle9i Application Server for Windows NT 1.0.2.0.0 2001.2.1 1 1 PL/SQL...3 1.1...3 1.2 PL/SQL Web Toolkit...5 1.3 Database Access Descriptor...6 1.4 PL/SQL...8 1.5 PL/SQL...10 1.6 PL/SQL...12 2 SERVLET...13
More informationohp08.dvi
19 8 ( ) 2019.4.20 1 (linked list) ( ) next ( 1) (head) (tail) ( ) top head tail head data next 1: 2 (2) NULL nil ( ) NULL ( NULL ) ( 1 ) (double linked list ) ( 2) 3 (3) head cur tail head cur prev data
More informationPython Speed Learning
Python Speed Learning 1 / 76 Python 2 1 $ python 1 >>> 1 + 2 2 3 2 / 76 print : 1 print : ( ) 3 / 76 print : 1 print 1 2 print hello 3 print 1+2 4 print 7/3 5 print abs(-5*4) 4 / 76 print : 1 print 1 2
More informationOSS JobScheduler openqrm Hadoop XtreemFS Ceph, Fabric etc. 2013/12/9 OSS X Users Meeting #5 OpenStack 2
OSS X Users Meeting #5 OpenStack JobScheduler Openstack 2013 12 9 JobScheduler @satoruf 2013/12/9 OSS X Users Meeting #5 OpenStack 1 OSS JobScheduler openqrm Hadoop XtreemFS Ceph, Fabric etc. 2013/12/9
More informationGray [6] cross tabulation CUBE, ROLL UP Johnson [7] pivoting SQL 3. SuperSQL SuperSQL SuperSQL SQL [1] [2] SQL SELECT GENERATE <media> <TFE> GENER- AT
DEIM Forum 2017 E3-1 SuperSQL 223 8522 3 14 1 E-mail: {tabata,goto}@db.ics.keio.ac.jp, toyama@ics.keio.ac.jp,,,, SuperSQL SuperSQL, SuperSQL. SuperSQL 1. SuperSQL, Cross table, SQL,. 1 1 2 4. 1 SuperSQL
More information: gettoken(1) module P = Printf exception End_of_system (* *) let _ISTREAM = ref stdin let ch = ref ( ) let read () = (let c =!ch in ch := inp
7 OCaml () 1. 2. () (compiler) (interpreter) 2 OCaml (syntax) (BNF,backus normal form ) 1 + 2; let x be 2-1 in x; ::= ; let be in ; ::= + - ::= * / ::= 7.1 ( (printable characters) (tokens) 1 (lexical
More informatione10s におけるプロセス間通信の基本 219 HACK #34 Components.manager.removeBootstrappedManifestLocati on() function shutdown(adata, areason) { const IOService =
e10s におけるプロセス間通信の基本 219 Components.manager.removeBootstrappedManifestLocati on() function shutdown(adata, areason) { const IOService = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService);
More informationhaskell.gby
Haskell 1 2 3 Haskell ( ) 4 Haskell Lisper 5 Haskell = Haskell 6 Haskell Haskell... 7 qsort [8,2,5,1] [1,2,5,8] "Hello, " ++ "world!" "Hello, world!" 1 + 2 div 8 2 (+) 1 2 8 div 2 3 4 map even [1,2,3,4]
More informationParametric Polymorphism
ML 2 2011/04/19 Parametric Polymorphism Type Polymorphism ? : val hd_int : int list - > int val hd_bool : bool list - > bool val hd_i_x_b : (int * bool) list - > int * bool etc. let hd_int = function (x
More information