rebol

Rebol: why get-access-modifier is called twice whereas It should be called only once

When typing in rebol console do read http://askcodegeneration.com/csharp/simple-class/ I get get-access-modifier called twice: Access modifier: 1. private: member can be accessed only by code in the same class 2. protected: member can be accessed only by code in the same class or in a derived class 3. internal: member can be accesse...

How value? function really works ?

Isn't it weird that ask-params: funct[config-file [file!] default-class-name default-fields][ probe value? 'class-name input either (value? 'class-name) [ probe class-name ][ ] ] ret-block: ask-params %askcodegeneration.com/csharp/simple-class/simple-class.params.txt "Person" "First Name, Last Name" would return false ...

How to get header value when source is in memory

Let's consider this header: REBOL [ Title: "Rebodex" Date: 23-May-2010 Version: 2.1.1 File: %rebodex.r Author: "Carl Sassenrath" Modification: "Rebtut" Purpose: "A simple but useful address book contact database." Email: %carl--rebol--com library: [ level: 'intermediate platform: none ...

How to configure CGI on IIS 7 ?

I did this as explained here but it was for IIS 6 http://rebolforum.com/index.cgi?f=printtopic&topicnumber=39&archiveflag=new I also activated 32 bits for application pool as explained here http://blogs.iis.net/wadeh/archive/2009/04/13/running-perl-on-iis-7.aspx But when browsing to the test script it doesn't work, seems to...

How to genericize this parse rule to include any verbs for this UML Dialect ?

I need a bunch of use-rule for including several verbs in a parse rule: Connect, Use, List, Show etc. use-rule: [some [copy Actor to 'Connect thru 'Connect 'to copy UseCase to end (append output rejoin ["[" Actor "]-(" "Connect to " UseCase ")"])] | [copy Actor to 'Use thru 'Use copy UseCase to end (append output rejoin ["[" Actor "]...

Is parse bugged ?

x below is none instead of {"abdfff} in this very basic parse rule: >> t: {aaa"abdfff"dddddddd} == {aaa"abdfff"dddddddd} >> >> parse t [to {"} copy x to {"}] == false >> x == none ...

Problem with ftp write from windows to linux and making cgi executable

I read the script from clipboard:// and write it to a linux ftp server: #!/home/myaccount/cgi-bin/rebol -c Rebol [] mywhois: func[thedomain /local whois][ whois: read rejoin [whois:// thedomain "@" "whois.internet.bs"] parse whois [to "Expiry Date: " thru "Expiry Date: " copy Expiry-Date to newline] Expiry-Date ] parse sy...

In Rebol is there a system variable which knows if code is launched from Console, Remote Internet or Local File ?

Let's say I am in a function, I need to know in which of the above context my function is executed. ...

What's difference between funct and ladislav funcs ?

There is a new funct function in rebol which allows to make variables automatically bound to local context. What's the difference with ladislav funcs here: http://www.fm.vslib.cz/~ladislav/rebol/funcs.r funct has a problem with value? function as it returns true even if a variable has not been set at runtime yet, does funcs has the sam...

Why rebol fails with stackoverflow api ?

If I type in a browser (see http://stackapps.com/questions/2/getting-started-with-the-api) : http://api.stackoverflow.com/1.0/stats it returns { "statistics": [ { "total_questions": 800830, "total_unanswered": 131356, "total_accepted": 500653, "total_answers": 2158752, "total_comments": 3125048...

Is it possible to develop the ssh protocol in rebol ?

Rebol integrates most internet protocol but not ssh. Is it because it's impossible to program it in rebol ? ...

Raw http request: why do I get 400 Bad Request error ?

I typed this code: p: open tcp://rebol.com:80 insert p "HEAD / HTTP/1.1 ^/" insert p "Host: rebol.com/ ^/^/" while [data: copy p][prin data] First line of output is 400 Bad Request >> p: open tcp://rebol.com:80 >> insert p "HEAD / HTTP/1.1 ^/" >> insert p "Host: rebol.com/ ^/^/" >> while [data: copy p][prin data] HTTP/1.1 400 Bad Req...

How to change permissions on ftp file in rebol ?

What's the function's name to change this permission on ftp file (ftp software can do it so I guess Rebol can too)? ...

cannot set proxy password in restricted corporate environment even programmatically

When I change login/password through User settings, they don't persist. So I set it programmatically proxy: system/schemes/default/proxy set in proxy 'host xxx.yyy.www.zzz set in proxy 'port-id xxxx set in proxy 'user "login" set in proxy 'pass "password" set in proxy 'type 'socks It did persist but when testing it with read http:/...

Will Rebol 3 extension support any windows api call including those requiring callback ?

I saw the r3 extension doc and I'd like to know if it would be able to support any DLL, including those requiring callbacks, for example win32 hook functions for intercepting windows messages. ...

Why the difference in usage between 'clear' and 'unset' with Rebol lists?

Given a list: a: [1 2 3 4 5] Why is it clear a to clear the list and unset 'a to unset it? I would have expected both clear and unset to consistently take either a or 'a as their arguments. ...

Extending Build-markup with repeat refinement

I tried to add a repeat refinement to build-markup function using the previous answer: http://stackoverflow.com/questions/2775701/how-to-bind-to-foreach-context build-markup: func [ {Return markup text replacing <%tags%> with their evaluated results.} content [string! file! url!] /repeat block-fields block-values /quie...

How can 2 variables pointing to the same Rebol list have different pointers?

First of all, is it correct to use the term pointer when talking about the internal index in a list? Consider the following Rebol code: a: [1 2 3 4 5 6 7 8 9] a: at a 4 b: a a and b both point to the same list and both return [4 5 6 7 8 9]. This I understand. However, I don't see how the internal index can be moved in a, but not in...

Any simple standalone code sample for a websocket protocol (ws) implementation in rebol ?

I read cheyenne server is going to implement it ( http://web.syllable.org/news/2010-01-02-22-16-WebSockets-for-Cheyenne-web-server.html ) , but for learning purpose I'd like more to see the shortest sample code of a websocket server and a websocket client in rebol / rebol or rebol / rebol view or rebol / javascript. like this example in...

How to dynamically use compose/only ?

I tried to generate the actions block dynamically in the code below (from static version here http://stackoverflow.com/questions/3326484/extending-build-markup-with-repeat-refinement/) but It doesn't work why ? build-markup: func [ {Return markup text replacing <%tags%> with their evaluated results.} content [string! file! url!...