r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Plugin-2] Browser Plugins

JoshM
6-Jul-2006
[1693x3]
Cyphre, I get the same answer on both:

>> 128 * 1.7
== 217.6


But that doesn't mean much, since I know I have the same version 
of viewdll.dll installed. You can verify the version # of the REBOL 
DLL in the plugin by going to the following page: http://www.rebol.net/plugin/tests/test.html.
The version # is displayed in that test script.
Stability: Has anyone found bugs with a clean install of the plugin, 
besides the Win2k bug?
Graham
6-Jul-2006
[1696]
not me
Gabriele
6-Jul-2006
[1697]
Josh: the point is not what this solves, the point is that the same 
script will not work across platforms if we end up using a different 
function for each platform to do the same thing. now, since read-thru 
already does something similar, it looks like a good target to me. 
i'm not sure about a refinement to read, since in that case i guess 
it would be a hack or you'd rather need a new port scheme.
Volker
6-Jul-2006
[1698]
file-requester works in a similar way, by having a native function 
and a cross-platform wrapper. and read-thru does caching, maybe read 
is a better place.
JoshM
6-Jul-2006
[1699]
Gabriele, you're right. If we do this at all, whatever function we 
choose should have a fallback implementation on other platforms.
Cyphre
6-Jul-2006
[1700x2]
JoshM: This is really strange...I binary compared the"C:\WINDOWS\Downloaded 
Program Files\viewdll.dll and C:\Program Files\Mozilla Firefox\plugins\viewdll.dll 
and they are same although the result of the mutiplication with decimal 
number differs.

Can you please check this test page in both IE and FF? http://cyphre.mysteria.cz/plugin-test.html

(note: I'm using IE 6.0.2800.1106.xpsp1.020828-1920 and FF 1.5.0.4)
BTW both plugin versions were auto-installed from the page at rebol.com

Anyway, I'll try to delete both plugins and install again to see 
if this helps.
Volker
6-Jul-2006
[1702]
libc somehow diferent? rebol uses something system-dependent, which 
is why windows has this 1e-02 and llinux not. maybe firefox has an 
own dll in the path?
Cyphre
6-Jul-2006
[1703]
Ok, I removed both plugins (IE and FF), cleared both browser caches 
and did atumatic instalation from www.rebol.com. Both instalations 
went ok. Then trid to run the test link from above but no luck:
result in IE: http://cyphre.mysteria.cz/tests/plugin-test-ie.gif
result in FF: http://cyphre.mysteria.cz/tests/plugin-test-ff.gif
Volker
6-Jul-2006
[1704]
libc has also some locale-setting. maybe firefox sets that? oh, i 
see it has ",." inside, not only ","?
Cyphre
6-Jul-2006
[1705x2]
yes, the ",." is very strange.
I noticed it when colors of one application wen't wrong in FF but 
looked good in IE. It was because for example in IE:
>> maroon * 1.7
== 217.0.0
but in FF:
>> maroon * 1.7
== 128.0.0
Volker
6-Jul-2006
[1707x6]
tries to convert by system and then fix that e-02 based on strings? 
oops, i overlooked the result is completely messed up. you get
>> 128 * 1.7
== 128,.0
and my linux
>> 28 * 1.7
== 47.6
aargh, because i cant copypaste..
but still == 217.6
Cyphre
6-Jul-2006
[1713]
Do you have the latest plugin for Linux?
Volker
6-Jul-2006
[1714x2]
not plugin. AFAIK there is noen for linux.
mentioned linx because windows and linux format different anyway.
Cyphre
6-Jul-2006
[1716]
Ah I though you are testing it under linux plugin ;)
Volker
6-Jul-2006
[1717]
would like that a lot! but time-machine broken :(
Cyphre
6-Jul-2006
[1718]
It would be good if anyone under Windows can try the test the link 
I posted.
Volker
6-Jul-2006
[1719x2]
now windows. can confirm, ff shows 128 * 1.7 = 128,.0
could be local-dependend? Germans use "," by default, czech too?
Henrik
6-Jul-2006
[1721x2]
I get 128.0 too
sorry, 128,.0 actually :-)
Volker
6-Jul-2006
[1723]
DOes not explain the 128 instead of 217. But had it once on linux, 
where an app outputted with printf and save was broken. turned out 
printf stored everything with "," but expected still "." on loading. 
so when i see now numbers, "," and "wrong", its my first thought. 
;)
Cyphre
6-Jul-2006
[1724]
Glad I'm not the only one with this strange result ;)
Henrik
6-Jul-2006
[1725]
Cyphre, what happens with other values?
Cyphre
6-Jul-2006
[1726x3]
>> 3 * 1.2
== 3,.0
>> 1.2 * 3.4
== 3,.0
>> 8 ** 2
== 64,.0
>> 1.2 / 2
== 0,5.0
>>
>> 128.128.128 * 0.5
== 0.0.0
but
>> 128.128.128 / 2
== 64.64.64
>>
seems like the decimal! datatype is meesed up from some reason under 
FF.
Brock
6-Jul-2006
[1729x3]
Both my FF and IE browser returned 217.6.  I think it might have 
something to do with your Locale settings.
Confirmed, when I changed my location and regional settings to Czech, 
I get the 128,.0
... but only in FF.
Volker
7-Jul-2006
[1732x2]
printf locale

.  German, but short example about using setlocale(): http://www.galileo-press.de/openbook/c_von_a_bis_z/c_022_004.htm
further hint that ff needs setlocacle: http://aspn.activestate.com/ASPN/Mail/Message/PyXPCom/2599460
Gordon
9-Jul-2006
[1734x3]
I've installed the Rebol plugin (hand installed by copying the *.dll 
files to the rebol directory) for Firefox and it is listed in the 
"about:plugis" page and shows that it is enabled but I'm still not 
showing a red-blue image on the .../web-plugin-install.html page. 
  I've restarted the computer (W2K-SP4).  Any suggestions?  Do I 
need to install an ActiveX plugin for Firefox as well?
I've installed the Mozill ActiveX control and it is also enabled. 
 Still no joy.
Mozill=Mozilla
Graham
9-Jul-2006
[1737x3]
Upgrade to XP.
There's a problem with Win2K.
I don't exactly know how it happened, but I had the rebol desktop 
appear in my plugin!
Anton
10-Jul-2006
[1740]
Is the problem with the plugin in Win2K, or is there a problem with 
Firefox in Win2K ?
JoshM
10-Jul-2006
[1741x2]
Cyphre: I will research that. Seems like a locale problem.
Gordon: The plugin is currently broken under Win2k. We're working 
on that, hope to have it fixed by the end of the month.