<< | Index | >>
at Top page,
@400000004f5854f20c9156ac error in SBSM::Session#to_html: / @400000004f5854f20c9156ac NoMethodError @400000004f5854f20c9156ac undefined method `localized_name' for #<ODDB::LimitationText:0x00000003d6f328> @400000004f5854f20c915a94 /var/www/oddb.org/src/util/language.rb:45:in `method_missing' @400000004f5854f20c916e1c /usr/local/lib/ruby/gems/1.9.1/gems/odba-1.0.8/lib/odba/stub.rb:112:in `method_missing' @400000004f5854f20c917204 /var/www/oddb.org/src/view/drugs/centeredsearchform.rb:233:in `name' @400000004f5854f20c917204 /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.5/lib/htmlgrid/composite.rb:142:in `create' @400000004f5854f20c9175ec /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.5/lib/htmlgrid/divcomposite.rb:33:in `block in compose'
I thought the matter is invalid data or floating data.
updated it, then commit as patch.
I have could not coufigure mouse button to keybord (for copy/paste) with xmodmap configured.
(I misunderstand Pointer_Button_3 and Pointer_Button_2)
Then, Zeno-san helped me.
I had to install xbset.
#!/bin/bash # turn on mousekeys xkbset m # stop mousekeys expiring after a timeout xkbset exp =m # set the Super_R key to paste its contents: xmodmap -e "keycode 134 = Pointer_Button2"
I can paste with Super_R !
Only at my local-machine, starge years are in recent registrations list.
(I found it before commit for another error fixing, yesterday)
ch.oddb.org and Zeno-san's machine are works fine.
I already tried followings (at yesterday)
But, same result caused.
1. Where come from these ?
swissmedic_journal LogGroup
swissmedic_journal is no longer in Updater.
This is old format(extracted data by diff from PDF format in DB)
2. Is this number ODBA ID ?
No. This is another Object.
ch.oddb> ODBA.cache.fetch(273655).first -> ODDB::Text::Section
3. when caused this coverting(replacing) ?
It seems when oddb.org get as object from DB.
swissmedic_journal
ch.oddb> log_group(:swissmedic_journal).newest_date -> 326283-10-29 ch.oddb> log_group(:swissmedic_journal).logs.first -> [#<Date: 228623-08-03 ((85224110j,0s,0n),+0s,2299161j)>, #<ODBA::Stub:85223830#70086 @odba_class= @odba_container=85244990#29833>] @@ swissmedic @@ (correct) [@ ch.oddb> log_group(:swissmedic).logs.first -> [#<Date: 2009-08-01 ((2455045j,0s,0n),+0s,2299161j)>, #<ODBA::Stub:96259880#20757729 @odba_class= @odba_container=96268940#7743621>]
4. is this Marshal problem ?
I found simular case of DateTime class at Marshal#load
My case also problem is Rational in carcuration or Ruby version in machine.
I estimated my problems are followings.
This problem caused load dumped data by Ruby 1.8 with Ruby 1.9.
5. Finaly
I noticed this starange value is Julian Number
.
Date#jd
irb(main):026:0> Date.jd(2455257) => #<Date: 2010-03-01 ((2455257j,0s,0n),+0s,2299161j)>
Then, after debugging.
updated result value of Date#_load.
(in ODBA, for consistency, it has Date.)
Attach:Fixed-Julian-day-value-in-Ruby-1.9.patch-20120308.txt
It works for me !
ch.oddb> log_group(:swissmedic_journal).logs.first -> [#<Date: 252540-11-15 ((93959720j,0s,0n),+0s,2299161j)>, #<ODBA::Stub:93959570#70086 @odba_class= @odba_container=93983780#29833>] ch.oddb> log_group(:swissmedic_journal).logs.first -> [#<Date: 2002-12-01 ((2452610j,0s,0n),+0s,2299161j)>, #<ODBA::Stub:92650220#70086 @odba_class= @odba_container=92674600#29833>] ch.oddb