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

World: r3wp

[I'm new] Ask any question, and a helpful person will try to answer.

Sunanda
1-Jun-2009
[2918x2]
A tip I picked up off of the Mailing List years ago (thanks to whoever 
it was)
   doc: does [do clipboard]
then you need to just type
  doc
to
  DO Clipboard://
Opps -- one line of code, and 100% of it is in error:-(
  doc: does [do clipboard://]
Maxim
1-Jun-2009
[2920]
I put this in my %user.r

paste: does [do clipboard://]
Gregg
2-Jun-2009
[2921x2]
I hace CC to write clipboard://, and load-clip and read-clip as well. 
Very handy.
I also have CDR for change-dir+to-rebol-file.
mhinson
3-Jun-2009
[2923]
Hi, is thre a neater way to do this please an avoid so many reduce 
statements please?
QQ: []

func1: func [o1] [append QQ copy/deep reduce [reduce o1 reduce reduce 
[reduce o1]]]
owner: "Luke" 
func1 'owner
[owner ["Luke"]]
Chris
3-Jun-2009
[2924x2]
func1: func [o1][append QQ compose/deep [(o1) [(get :o1)]]
missing close bracket
Gregg
3-Jun-2009
[2926]
And sometimes it can make sense to split things up into multiple 
operations (just food for thought).

func1: func [o1] [append QQ o1  repend/only QQ [get :o1]]
mhinson
4-Jun-2009
[2927]
Thanks everyone.  I like the shortcut ideas, once I can find the 
right %user.r file to modify.  I think I probably need to delete 
all copies & start again as because I have downloaded Rebol several 
time in my inital confusion when I first started trying to use it 
my PC is confused.


I have not come across GET before so that seems to be my missing 
link, thanks.
Sunanda
4-Jun-2009
[2928]
Multiple copies of REBOL is a pain that several of us have.
Graham
4-Jun-2009
[2929]
It's a result of programming with Rebol which tells us to use 'copy 
to be safe
Oldes
4-Jun-2009
[2930x2]
I have no problems with multiple REBOL copies.. I have all REBOL 
exe files in one directory. The latest version named like rebol.exe, 
core.exe and older which I sometimes need as rebview1361031.exe for 
example
I think I was not doing any REBOL installation.. just DOWNLOAD - 
COPY - RUN
Graham
4-Jun-2009
[2932]
I have .r associated with my editor :)
mhinson
4-Jun-2009
[2933]
With the shortcut  to do clipboard://  it complains if there is no 
 rebol[]   header.  Do folk only use it for bigger blocks of code, 
rather than a few lines that need testing?  As I suppose pasting 
it straight into the console for small chunks works pretty well? 
Thanks.
Ladislav
4-Jun-2009
[2934]
do read clipboard://
mhinson
4-Jun-2009
[2935]
Thanks
BrianH
4-Jun-2009
[2936]
I often put
;rebol []

in front of my code when testing it, then include the rebol [] when 
selecting.
mhinson
5-Jun-2009
[2937]
Hi, I have associated .r files with Rebol/view, but when I open my 
.r files I get an error
** Access Error: Cabbot open /c/documents
** Near: do/args script system/script/args


I tried associating .rs with Rebol/View & that works ok...  I suspect 
this is a windowsy problem, any suggestions please?
BrianH
5-Jun-2009
[2938]
You need quotes around the association, like this: "%1". Edit the 
file type in the Folder Options control panel.
Maxim
5-Jun-2009
[2939]
hope you have XP... cause vista only allows to fix associations thru 
the registry editor  :-(
BrianH
5-Jun-2009
[2940]
But that's not hard either.
Maxim
5-Jun-2009
[2941x2]
and you can't set manual paths in shortcuts, only select "installed" 
applications.  >-:(
maybe not if you are used to playing in it, but finding and properly 
setting the registry items for rebol isn't really obvious (especially 
if you add the -qs) options.
BrianH
5-Jun-2009
[2943]
But that doesn't affect the associations in the registry :)
Maxim
5-Jun-2009
[2944x3]
they removed many USER features in vista, thinking it makes is safer 
if you can't do anything with your computer... but the features are 
still there anyways... which is totally stupid... its in fact less 
safe, now that you can't fix things directly in the panels.
In XP I had applications that had different argument setups directly 
in shortcuts... can't do that in vista... well, I installed XP now 
so I can't complain anymore... I can actually do stuff with my pc 
now.
XP was designed for dumb users... vista went a step further and added 
that pre-requisite to its analysts.
BrianH
5-Jun-2009
[2947]
Well, for most users "fix" = "make things worse", except for the 
users who are probably familiar with the registry. I agree about 
the shortcut thing though - not familiar enough with Vista to know 
the workaround for that.
Maxim
5-Jun-2009
[2948]
I try to design software thinking people are smart, but with the 
idea that you have to learn & understand it first.  Learning curve 
has to be exponential, but start flat. 

Misunderstanding and being dumb are different.  MS doesn't get that.
BrianH
5-Jun-2009
[2949]
Everyone is dumb sometimes, and the more generally smart even more 
often. As long as the software doesn't get in the way of doing the 
smart thing, and perhaps even enables it, that's good. If it discourages 
dumb behavior, better.
Maxim
5-Jun-2009
[2950]
I agree.    Its the software that has to be smart... not the user 
 ;-)
BrianH
5-Jun-2009
[2951]
Software at its best is a distillation of your smarter moments, for 
later use during your dumber ones :)
Maxim
5-Jun-2009
[2952]
(or someone else's  ;-)
mhinson
5-Jun-2009
[2953]
I dont see anything to put quotes round.
BrianH
5-Jun-2009
[2954]
Are you on XP/2000 or Vista?
mhinson
5-Jun-2009
[2955]
XP...  I may have found it now, I remeber experimenting adding %1 
%2 %3 ......  then I remeber thinking I should have just added "%1"
BrianH
5-Jun-2009
[2956]
Unfortunately, the installer hasn't worked at all in the 2.7 series. 
In the 2.6 series it was broken, and in prior releases even more 
so.
mhinson
8-Jun-2009
[2957]
Hi, I seem to be answering more of my own questions for the last 
few days which is encouraging, but I am wondering if I am getting 
into bad habits as I have no solid programming background & apart 
from the tips I have got here I am just self-taught.  

Is there anywhere I can put a few hundred lines of code to be torn 
to shredds please?  I don't paticularly relish the idea, but I suspect 
it will be a good learning experience.
Sunanda
8-Jun-2009
[2958x2]
Few hundred lines of code!? Congratulations on writing them.....But 
can you extract a subset (say a function of two that you are especially 
proud of) for analysis. 100s of lines of code is going to be hard 
for anyone to wrap their mind around for comment.

Having said that, possible locations: Here or the mailing list.
You tend to get more thought out replies on the ML.
You get  more instant interaction here.
You could also try reboltalk -- though that seems overrun with spam 
a lot these days:
http://www.reboltalk.com/
mhinson
8-Jun-2009
[2960x2]
It is mostly a parse with about 8 small functions that are called 
within the parse to identify special cases, expand ranges & mess 
about with IP address info.
I think the fact that I can readily extract a decent function to 
post means that I have been using too many globals & getting my code 
a bit muddled.  Thanks for the feedback, I will post something once 
I get it a bit more untangled....  It just went like that, honest 
I didnt write it like that to start with.. :-(
Graham
8-Jun-2009
[2962]
the library at rebol.org ....
Gregg
8-Jun-2009
[2963]
In addition to what Sunanda said, if the code does something useful, 
people are more inclined to look at it, and make suggestions for 
improvements.
mhinson
8-Jun-2009
[2964]
I am intrested in Cisco networking & writing tools related to that 
area of technology, not sure that is a very prominent interest in 
the AltME world??
Reichart
8-Jun-2009
[2965]
I suspect everything done "with REBOL" is interesting to people here. 
 That simple.
mhinson
8-Jun-2009
[2966]
This is a unique place.  It is a priveledge to be invited here.
Gregg
8-Jun-2009
[2967]
We all love tools. :-)