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

World: r3wp

[View] discuss view related issues

Geomol
23-Sep-2005
[2752]
release rates contra size in kB
Graham
23-Sep-2005
[2753]
I guess I'd better find some docs on the draw dialect and see how 
easily this could be done.
Henrik
23-Sep-2005
[2754]
It could be nice to have general graphing tools for Rebol like RRDTool 
which is a very powerful (but complex) graphing package for Linux
Geomol
23-Sep-2005
[2755x2]
A start:
view layout [box white effect [draw [pen black line 0x100 10x80 20x85 
30x50 40x60 50x65 60x55 70x40 80x50 90x20]]]
Graham
23-Sep-2005
[2757]
or gnuplot
Geomol
23-Sep-2005
[2758x2]
To change data, you could do:
clear next find face/effect/draw 'line
append face/effect/draw data-block
show face
Graham
23-Sep-2005
[2760x2]
what about scatter plots ?
would be as easy to update ?
Geomol
23-Sep-2005
[2762]
Is that points?
Graham
23-Sep-2005
[2763]
yes.
Geomol
23-Sep-2005
[2764x3]
view layout [box white effect [draw [pen none fill-pen black circle 
10x80 4 circle 20x85 4 circle 30x50 4 circle 40x60 4 circle 50x65 
4 circle 60x55 4 circle 70x40 4 circle 80x50 4 circle 90x20 4]]]
Update is almost as easy, just put circle in front and radius (4) 
behind the coords.
Picking data online and show a graph could maybe be an one-liner. 
:-)
Only with REBOL! (TM)
Graham
23-Sep-2005
[2767]
do points have to be done with circles ?
Geomol
23-Sep-2005
[2768]
I guess so. Isn't a dot on a monitor a very small circle? Just change 
radius to 1 or 0.5 or something.
Graham
23-Sep-2005
[2769]
a dot on my monitor is a little square :)
Geomol
23-Sep-2005
[2770x2]
:-) A one-pixel dot:
view layout [box white effect [draw [translate 0.5 0.5 anti-alias 
off pen none fill-pen black circle 50x50 0.5]]]
Graham
23-Sep-2005
[2772x3]
cool.
exactly one pixel too.
Looking carefully at my laptop screen, it's a grid of square pixels.
Geomol
23-Sep-2005
[2775]
The translate move the center of the circle into the middle of a 
pixel. Radius of 0.5 then means, the circle won't go into neighbour 
pixels.
Graham
23-Sep-2005
[2776]
Perhaps you can incorporate a graphing module in Canvas :)
Geomol
23-Sep-2005
[2777x2]
Without the translate, 4 pixels would be black.
Graham, certainly! :-)
Graham
23-Sep-2005
[2779x2]
anim-graph ?
That's the thing about great software; it can be used by others in 
ways the author never conceived
Henrik
23-Sep-2005
[2781]
you could do really weird stuff with that. how about live graphs 
in a presentation?
Brock
23-Sep-2005
[2782x2]
Don't know if quick-plot by Matt Licholai would help you guys in 
any way.
I know it can be found by googling q-plot.r.  Ladislav has done some 
work that used q-plot, not sure if he's enhanced it or if anyone 
else has.
Geomol
24-Sep-2005
[2784]
There is a window face option named "all-over", that will "Causes 
the over event to report a continuous stream of mouse positions as 
the mouse moves over the face". I use it in Canvas, but there seem 
to be a problem. After a while, when I haven't touched the computer 
for some time, it seems, that the all-over option is canceled. It 
can be seen in Canvas, that the coords in the title-bar isn't updated, 
when the mouse is moved.

Does anyone know something about this? I've checked RAMBO, but couldn't 
find anything about it.
Pekr
24-Sep-2005
[2785]
all-over was in some very early beta View days  the default option. 
Later on we found out, that it causes way too much flood of events, 
so it was changed and all-over came to its life .....
PeterWood
2-Oct-2005
[2786]
I unsuccessfully tried to install View 1.3 under Windows/XP on a 
multi-user machine. It is only accessible from the administrator 
account under which the installer was run. It is not visible in the 
All Programs Start menu for others users. I can run it by browsing 
through to the underlying Rebol folder.


Does this mean that I have to manually insert it into the Start menu 
of other users ?
Volker
2-Oct-2005
[2787x4]
try to install it again from a user-account.
it shares then the readonly-files from the admins installation (exe 
etc), but uses a file in the users account for the others (public 
cache etc)
(AFAIK, not xp tot test.)
not xp tot test -> no xp to test
Pekr
2-Oct-2005
[2791x6]
That is far from being a good aproach - in fact, it sucks ...
I understand why it was done in a way it was done though. Installing 
for all users would require at least power-user access, which typical 
user does not have, at least in corporate environment, while at home 
I expect most ppl run as administrators,  although it is not wise 
idea, but it is how typical WinXP install happens ...
So RT had to choose between two aproaches: 


1) total non-installation (my preferred way is not to touch registry 
in any way), but then how would you associate .r file to your interpreter, 
where would you put your cache files, etc.?

2) installation - but how to obey the need to have power-user or 
admin rights? So they choosed installing Rebol for each account separately 
...
but current aproach is broken nonentheless, we should rather fix 
it, or we will annoy ppl ...
- currently when you install, it seems to work correctly, untill 
you choose to uninstall. You typically go to control-panel/install-uninstall 
icon, you find Rebol and choose to unistall. That is great, but that 
entry seems to be shared between the accounts. So - I tried installing 
for two accounts and IIRC the entry vanished and in fact second user 
could object, that he can't regurally uninstall Rebol

- currently View contain rather nasty bug, which does NOT allow it 
to be run without the installation at all. Try to uninstall Rebol 
and then try running it rebol.exe -i your-sript.r, it will try to 
launch desktop and what is more it will try to connect to internet 
and if you are behind proxy, god save you, because Rebol blocks and 
you can't shut it down even using ctrl alt del combination, and that 
is REALLY ANNOYING and knowing myself, if I would be newcomer and 
would like to try Rebol, it would go into trash just because of that 
...
So - to be constructive - I reported error into RAMBO and it was 
market as critical, although I am not sure if it will be fixed, mostly 
ppl will not try to run rebol app directly, or they will simply install 
it, but currently View 1.3 is UNUSABLE in environment, where you 
want to use it over network, starting in login script, and do some 
maintanance to your machines - because desktop will pop-up. I also 
reported how Rebol should check for proxy settings, where those are 
placed in Registry, as it seems to me current method is weak ...
PeterWood
2-Oct-2005
[2797x5]
Volker & Petrt - Thanks for your suggestions and information.
Volker: All users can run View when it  is installed by an admin 
user. It's just that the installer only adds the programme to the 
Start\All Programs menu of the account under which it is installed. 
I don't want to install for each user as that requires changing the 
each user to an admin user and then back again to an ordinary user.
Petr: I would be happy with the standard installer fully installing/fully 
removing for all users on a machine but then I only have two machines 
to worry about. The nuisance for me is that View partially installs 
for all users.
I know that I just have to copy the "shortcut" from the insatller's 
startup\programs folder to all user's startup\programs folder but 
it's a pain.
It seems that if View is installed on a XP machine that it is always 
available to every user account on the machine - it just may not 
 be visible on the desktop or through the desktop.