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

World: r3wp

[Plugin-2] Browser Plugins

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
[1741x4]
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.
Cyphre: It seems like the problem is related to how REBOL is parsing 
the " * 1.7" part under Czech locale. It seems like it's not multiplying 
it by 1.7, but rather by 1. IOW, it is ignoring the decimal point 
when parsing the number. It is possible that the IE plugin build 
is defaulting the locale to U.S., hence why it works there. Note 
the following results under FF:

>> 128 * 1.7
== 128,.0
>> 64 * 1.5
== 64,.0
>> 5 * 1.2
== 5,.0
>> 5 * 2.2
== 10,.0
>> 5 * 3.8
== 15,.0

I'll need to research this with Carl when he gets back.
Graham: Please post repro steps for how you got the REBOL desktop 
to appear, if you have any.
Graham
10-Jul-2006
[1745]
Well, the plugin is on the home page of my IE browsers.  So, when 
I started up IE, I used the stop button to stop the plugin, and ended 
up with the rebol desktop in the plugin
Gordon
10-Jul-2006
[1746]
JoshM: Thanks for looking into getting this working for Win2K.  Half 
of my customers and half of my machines are still on Win2K.
JoshM
11-Jul-2006
[1747]
Graham: Have you been able to get this to reproduce consistently, 
or was this just a one-time occurance?
Graham
11-Jul-2006
[1748]
Josh, only ever have seen it just the once.
james_nak
11-Jul-2006
[1749]
Josh, I said "goodbye" to my win2k machine. I'm now looking forward 
to using PG2 on XP.
Graham
24-Jul-2006
[1750]
Any news here ?
JoshM
27-Jul-2006
[1751]
Update on plugin-status. Carl has returned from France, and we are 
working on fixing the Win2k problem.
Pekr
15-Aug-2006
[1752]
Josh - could rebol plug-in release be coordinated with us here? Sometimes 
RT simply released stuff suddenly, so we could not comment further. 
Mine idea is to get some kind of coordination for plug-in script 
submission page.  It is in unpleasant state. I vote for carefully 
choosing WHAT script will be presented on main site. We have now 
chance for kind of wow effect, which will not be created, if we don't 
choose coolest scripts imo. We should look in various demo sections 
of Desktop, as well as contest and simply be sure, that posted stuff 
works out of the box ....
Tomc
15-Aug-2006
[1753]
that is a good idea Pekr,  a day or two of public delay in exchange 
for working demos.