view · edit · sidebar · attach · print · history

20120404-update-import-gkv-de-oddb-org-and-dojo-onload-problem

<< | Index | >>


summary

  • ran import_gkv job of de.oddb.org
    • After update mechanize ssl problem, It wowks.
    • But I had to compile quanty with 1.8.6
    • to run again.

index


import_gkv

I could run import_gkv job.
But 2 error are outputed in console.

  • syntax error at index making in pg.
  • quanty error

quanty for de.oddb.org

de.oddb.org hat compiled quanty in source code.
But in my local, I had to re-compile with 1.8.6 (in my case /home/yasu/usr/local/bin/ruby18'')

/var/www/de.oddb.org/jobs/import_dimdi:4: warning: variable $KCODE is no longer effective; ignored
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': /var/www/de.oddb.org/lib/oddb/util/quanty/fact.rb:68: invalid multibyte char (US-ASCII) (SyntaxError)
/var/www/de.oddb.org/lib/oddb/util/quanty/fact.rb:68: invalid multibyte char (US-ASCII)
/var/www/de.oddb.org/lib/oddb/util/quanty/fact.rb:68: syntax error, unexpected $end, expecting keyword_then or ';' or '\n'
      if /^([ľA-Za-z_]+([A-Za-z_0-9-]+[A-Za-z_])?)$|^[$%'"]'?$/o =~ a
               ^
        from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from /var/www/de.oddb.org/lib/oddb/util/quanty.rb:2:in `<top (required)>'
        from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from /var/www/de.oddb.org/lib/oddb/drugs/dose.rb:4:in `<top (required)>'
        from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from /var/www/de.oddb.org/lib/oddb/drugs/active_agent.rb:5:in `<top (required)>'
        from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from /var/www/de.oddb.org/lib/oddb/drugs.rb:4:in `<top (required)>'
        from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from /var/www/de.oddb.org/lib/oddb/util/job.rb:3:in `<top (required)>'
        from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from /var/www/de.oddb.org/jobs/import_dimdi:7:in `<main>'

Steps

de.oddb.org
  1. . copied quanty source code from data/quanty in ch.oddb.org into data/quanty of de.oddb.org
  2. . change install path (sitedir)
  3. . remove lib/parse.rb (if arleady exist. make clean does not work)
  4. . /path/to/ruby extconf.rb (to make sure RUBY executable path in Makefile)
  5. . make
  6. . make install
  7. . check lib/oddb/util/quanty
See
(now, de.oddb.org have quanty source code)

quanty needs

  * rbconfig (but, already these are gone. to edit RUBY path in extconf.rb if need.)

Check dojo loading problem

Problem

Tooltip (popup) by combobox does not work.
In browsers opend Debug console works.

oddb.org use many dojo.addOnload method.
This is deprecated method.
If we load with this way, could not controll Dojo-Firebug (debug mode).
All XhrRequsts(ajax requests) are stopped by This Debug mode for console.

Untill open Firebug(or Console), XhrRequests(ajax) are stoped.
When I open Firebug, accumelated requests loaded.

I searched way to off.

  • Firefox with Firebug addon.
  • GoogleChrome with Developer console.
  • usw.

Error console.

exception in animation handler for: onEnd
dojo.js (line 15)
TypeError: invalid 'in' operand _24
(69 out of range 15)

checked browsers

  • Firefok 11.0
  • Google Chrome 18.0.1025.113 beta

try to build dojo

use java(rhino)

*  dev-java/rhino
      Latest version available: 1.7.2-r2
      Latest version installed: [ Not Installed ]
      Size of files: 2,945 kB
      Homepage:      http://www.mozilla.org/rhino/
      Description:   An open-source implementation of JavaScript written in Java.
      License:       || ( MPL-1.1 GPL-2 ) BSD-2

Refs

dojo-build
dojo.io.script

console dependency

I found in dojo-src/dojo/main.js

...
  // the preferred way to load the dojo firebug console is by setting has("dojo-firebug") true in dojoConfig
  // the isDebug config switch is for backcompat and will work fine in sync loading mode; it works in
  // async mode too, but there's no guarantee when the module is loaded; therefore, if you need a firebug
  // console guarnanteed at a particular spot in an app, either set config.has["dojo-firebug"] true before
  // loading dojo.js or explicitly include dojo/_firebug/firebug in a dependency list.
  if(dojo.config.isDebug){
    require(["./_firebug/firebug"]);
  }
...
  • var dojoConfig
  • data-dojo-config attribute
    dojoConfig = {
        has: {
            "dojo-firebug": true,
            "dojo-debug-messages": true
        }
    };

Refs

Dojo-Reference

dojo-1.7

loading
decrane
xhr request
deprecated

I could to off firebug-extension dependency of dojo library.
Now Im' updating oddb.org, htmlgrid code for old dojo-1.3.

Continue tomorrow.

view · edit · sidebar · attach · print · history
Page last modified on April 06, 2012, at 03:03 PM