view · edit · sidebar · attach · print · history


<< | Index | >>


  • fixed no method error invalid data.
  • tried to fix invaild years in recent registrations.

commits (as patch)


Fixed no method error in FachinfoNews.

at Top page,

@400000004f5854f20c9156ac error in SBSM::Session#to_html: /
@400000004f5854f20c9156ac NoMethodError
@400000004f5854f20c9156ac undefined method `localized_name' for
@400000004f5854f20c915a94 /var/www/
/var/www/ `name'
`block in compose'

I thought the matter is invalid data or floating data.

updated it, then commit as patch.

xmodmap for Pointer_Button_2

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.

# 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 !

Invalid years in recent registrations

Only at my local-machine, starge years are in recent registrations list.
(I found it before commit for another error fixing, yesterday) and Zeno-san's machine are works fine.

I already tried followings (at yesterday)

  • restore DB (to newest one)
  • re-install gems (odba, sbsm, htmlgrid)
  • clean install

But, same result caused.

1. Where come from these ?

  • swissmedic_journal LogGroup
  • swissmedic LogGroup (These year are correct.)

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 get as object from DB.


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.

  • Ruby version
  • gem installation (ruby version)
  • localtime/timezone of machine
  • Date class in ODBA

This problem caused load dumped data by Ruby 1.8 with Ruby 1.9.


5. Finaly

I noticed this starange value is Julian Number .


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.)



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>]
view · edit · sidebar · attach · print · history
Page last modified on March 08, 2012, at 07:18 PM