[REBOL] Re: MySQL protocol bug

2004-02-19 Thread Nenad Rakocevic
Hi, Sorry for this annoying little bug. You can fix it easily by adding s: none in the main context, just after the following comment : ;-- Data reading -- BTW, it's funny to see how our personal coding style can evolve. While looking at the piece of code you've exposed to sh

[REBOL] [ANN] Async call:// protocol v1.0

2004-02-17 Thread Nenad Rakocevic
Hi all, This is a replacement version of the 'call command for Windows-only platforms. This is an asynchronous 'call implementation working as a REBOL port (call://). It requires the /Library component. See the documentation included for a complete description. Download URL: http://rebol.soft

[REBOL] Re: bit of mysql help?

2004-01-06 Thread Nenad Rakocevic
Hi Tom, I guess you're on a unix system. If you connect locally, the C mysql client use local sockets while mysql.r use TCP ports. So the points to check are : - Does your mysql server run on the default port 3306 or different one ? - Does your mysql server allow for TCP connection ? - Is your [

[REBOL] Re: MySQL-protocol.r

2004-01-02 Thread Nenad Rakocevic
Hi Henrik, The current version has proved to be very stable. I have a few patches to apply that fix some bugs and I've planned to release them under v1.0. I have also some improvements and lots of ideas for a v1.1, but unfortunately, very little time to work on it. I hope to update the web site w

[REBOL] Re: Newbie Q: Search and delete from a Block

2002-10-08 Thread Nenad Rakocevic
Hi Chris, Christopher Ross-Gill wrote: > > Hi, > > >join word-split "hellotherethisisanexample" "this" > > == "hellothereisanexample" > > >> rejoin word-split "hellotherethisisanexample" "this" > == "hellothereisanexample" > > I'm sure there's a more elegant way to do it than my effort

[REBOL] Re: Rebol pickling recipes ?

2002-10-06 Thread Nenad Rakocevic
Hi Gabriele, IIRC, Carl or Holger said once that words can exist in an unbounded state so that means that there're not even bounded to the global context. Let's create an unbounded word : >> z: first to-block "unbound-word" == unbound-word >> :z == unbound-word >> get z ** Script Error: unboun

[REBOL] Re: SOFTINOV MySQL and PostgreSQL drivers for REBOL

2002-09-21 Thread Nenad Rakocevic
Hi Laurent, I guess that Netscape doesn't know how to retrieve 'rip files and use the text mode by default. IE5 seems to download it the right way. If you want to retrieve it from REBOL console, you should better use 'binary mode : >> write/binary %mysql-099.rip read/binary >http://rebol.softi

[REBOL] Re: jpeg images not working

2002-08-28 Thread Nenad Rakocevic
Hi Tim, Try : t: read/binary to-file base-file print enbase/base t 16 HTH, -DocKimbel. Tim Johnson wrote: > > Hello Rebols: > I'm attempting to use rebol to push jpeg images to a a web page. > Rendering is not working. > > The beginning source of this looks as follows (between

[REBOL] Re: How to detect type of OS

2002-07-03 Thread Nenad Rakocevic
Hi, switch system/version/4 [ 1 [print "I'm on AmigaOS"] 2 [print "I'm on MacOS"] 3 [print "I'm on Windows"] 4 [print "I'm on Linux Libc6"] ... ] See http://www.rebol.com/platforms.html for a complete list. HTH, -DocKimbel. Gregg Irwin wrote: > > Hi Oldes, > > << does a

[REBOL] Re: View/Pro and accessing Windows Printer API(gdi32.dll)

2002-06-29 Thread Nenad Rakocevic
Hi, This one seems to work but i'm not sure that the result is correct : winspool: load/library %winspool.drv hprinter: make struct! [address [char*]][""] openprinter: make routine! compose/deep [ "Open Printer" pprintername [string!] phprinter [struct! [(first hprinter)]] pdefa

[REBOL] Re: View/Pro and accessing Windows Printer API (gdi32.dll)

2002-06-27 Thread Nenad Rakocevic
se? > > Paul Tretter > > - Original Message - > From: "Nenad Rakocevic" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, June 27, 2002 1:26 PM > Subject: [REBOL] Re: View/Pro and accessing Windows Printer API (gdi32.dll) > &g

[REBOL] Re: View/Pro and accessing Windows Printer API (gdi32.dll)

2002-06-27 Thread Nenad Rakocevic
Hi Bo, Try using %winspool.drv instead of %gdi32.dll for OpenPrinter function. (Works here on W2K) HTH, -DocKimbel. Bohdan or Rosemary Lechnowsky wrote: [...] > >> gdi32: load/library %gdi32.dll > >> startdoc: make routine! ["Start Document" hdc [string!] docinfo > [struct! [cbsize [int] lp

[REBOL] Re: Rebol Color to HTML Color

2002-06-27 Thread Nenad Rakocevic
-hex to-integer to-binary 255.255.255 - random/secure 15.15.15 2] Regards, -DocKimbel. Nenad Rakocevic wrote: > > KIS (Keep It Simple): > > get-random-pastel: does [mold to-binary 255.255.255 - random/secure 15.15.15] > > HTH, > -DocKimbel. > > [EMAIL PROTECTED

[REBOL] Re: Rebol Color to HTML Color

2002-06-27 Thread Nenad Rakocevic
KIS (Keep It Simple): get-random-pastel: does [mold to-binary 255.255.255 - random/secure 15.15.15] HTH, -DocKimbel. [EMAIL PROTECTED] wrote: > > I recently "needed" (as in wanted on a whim) a varying range of pastel colors > for a HTML table. > > The code I came up with to convert a rebol t

[REBOL] Re: Strange array behavior

2002-05-22 Thread Nenad Rakocevic
Geza Lakner MD wrote: > > Hi REBOL-fellows! > > Why does not properly work this code segment: > > >> a: array/initial [3 2] [[]] > == [[[] []] [[] []] [[] []]] > >> append a/1/2 3 > == [3] > >> a > == [[[3] [3]] [[3] [3]] [[3] [3]]] > > Hmmm, I' ve expected at querying 'a : > == [[[] [3]] [[

[REBOL] Re: Google + SOAP

2002-04-27 Thread Nenad Rakocevic
Hi Graham, Graham Chiu wrote: > > On Wed, 24 Apr 2002 13:43:20 +0200 > Nenad Rakocevic <[EMAIL PROTECTED]> wrote: > > google: read soap://api.google.com/GoogleSeach > > [...] > > This could assume that http is the default transport > mechanism,

[REBOL] where tool (was Re: keymap in text style feel/engage)

2002-04-27 Thread Nenad Rakocevic
Hi Anton, Anton wrote: [...] > > > > Two words were not defined after I did this: > > > > - view* (it's easy, system/view) > > > I don't think so, 'view* is defined in ctx-text. > > Yeah, but: > > >> ctx-text/view* == system/view > == true That's right. I should have guessed

[REBOL] Re: Converting Hex value to String

2002-04-24 Thread Nenad Rakocevic
Mark Chang wrote: > > I have a HEX value > a: #{096A6F6273747265657403636F6D} > > if I use > to-string a > result is "^-jobstreet^Ccom". That is NOT what I want. > > what I want is to convert to > b: "096A6F6273747265657403636F6D" > > Sound easy but could not find a

[REBOL] Re: Google + SOAP

2002-04-24 Thread Nenad Rakocevic
Hi Gabriele, Argh! Trapped myself ! :P Well, adding web services support to REBOL is something that was crossing my mind for some times now, but it's currently not on high priority. Before starting to work on it, i would like to know if RT has plans to implement an enhanced XML parser/builder

[REBOL] Re: Google + SOAP

2002-04-24 Thread Nenad Rakocevic
Graham Chiu wrote: > > Hi Nenad, > > On Wed, 24 Apr 2002 01:32:10 +0200 > Nenad Rakocevic <[EMAIL PROTECTED]> wrote: > > > Just a though: > > When you use the open/insert/close approach you can call > > several remote methods without > > havi

[REBOL] Re: Google + SOAP

2002-04-24 Thread Nenad Rakocevic
Hi Graham, Graham Chiu wrote: > > How about, as an alternative, ... > > google: to-soap http://api.google.com/GoogleSearch.wsdl > > google/doGoogleSearch [ key q ... ] > google/doSpellingSuggestion [ .. ] > google/goGetCachedPage [ .. ] Soap is a protocol, so i prefer write it like this : goog

[REBOL] Re: Google + SOAP

2002-04-24 Thread Nenad Rakocevic
I can help with the code, but it seems to me that's a little bit premature to jump in the inplementation without a deeper and more complete analyse. Coding is the easiest part in this kind of project. Let's try to first get some consistent and clear vision for every aspects of webs-ervices. -Doc

[REBOL] Re: Google + SOAP

2002-04-23 Thread Nenad Rakocevic
Sure Rishi, i also prefer to keep it simple but i was just re-using Master Yoda's example to be more clear. ;-) -DocKimbel. Rishi Oswal wrote: > > This is great but my first thought is to use the > wrapper function name: > > "google" > > instead of > > "do-google-search" > > You could pro

[REBOL] Re: Google + SOAP

2002-04-23 Thread Nenad Rakocevic
of 'open and 'read could be used to tell the 'soap scheme to use the cache or not... -DocKimbel. Graham Chiu wrote: > > On Tue, 23 Apr 2002 11:35:44 +0200 > Nenad Rakocevic <[EMAIL PROTECTED]> wrote: > > > > Here's how web services could be su

[REBOL] Re: Google + SOAP

2002-04-23 Thread Nenad Rakocevic
Oops, i've left a little bug : Nenad Rakocevic wrote: > [...] > res: read soap://api-ab.google.com/search/beta2/GoogleSearchService [ [...] > Do-Google-Search: func [data [block!]][ > read soap://api-ab.google.com/search/beta2/GoogleSearchService reduce >[

[REBOL] Re: Google + SOAP

2002-04-23 Thread Nenad Rakocevic
Here's how web services could be supported by REBOL : * code example : service: open soap://api-ab.google.com/search/beta2/GoogleSearchService res: insert service [ doGoogleSearch [ key: # q: "shrdlu winograd maclisp teletype" start: 0 maxResu

[REBOL] Re: keymap in text style feel/engage

2002-04-20 Thread Nenad Rakocevic
in 'svv/vid-face ...found in 'svv/choice-face ...found in 'system/standard/face ...found in 'system/view/screen-face ...found in 'system/view/VID/vid-face ...found in 'system/view/VID/choice-face Here is the source : REBOL [ Title: "Where tool"

[REBOL] Re: what is 'open-proto? (DocKimbel's MySql)

2002-04-08 Thread Nenad Rakocevic
Hi Tim, It's defined in Root-protocol object : >> help Root-Protocol/open-proto USAGE: OPEN-PROTO port /locals sub-port data in-bypass find-bypass bp DESCRIPTION: Open the socket connection and confirm server response. OPEN-PROTO is a function value. ARGUMENTS: port -- Init

[REBOL] Re: search-for [ semaphores threads ]

2002-03-18 Thread Nenad Rakocevic
Hi Norman, Here is a example of multiprocessing with custom IPC in REBOL : 1- Save these two following source files in the same directory 2- Open a REBOL console, change-dir to the directory and do %calc-client.r 3- Watch what happens... HTH, -DocKimbel. --- file: calc-client.r --- REBOL [

[REBOL] Re: Rebol, FTP and quotas

2002-03-09 Thread Nenad Rakocevic
Hi Henrik, This patch will correct your error: >> system/schemes/ftp/handler/active-check/2: ["200" "226"] -DocKimbel. Henrik Mikael Kristensen wrote: [...] > Net-log: [ > ["PORT" port/locals/active-check] "200"] > ** User Error: Server error: tcp 226 Quotas on: using 0.00 of 10.00 MegaByt

[REBOL] Re: Rebol, FTP and quotas

2002-03-09 Thread Nenad Rakocevic
Hi, As far as i understand, this kind of errors occurs because the FTP handler doesn't recognize the response code sent by the server. Try this patch before starting your ftp session : >> system/schemes/ftp/handler/rmfile-check/2: ["250" "226"] >> append system/schemes/ftp/handler/read-check/

[REBOL] Re: Rugby / TCP woes

2001-11-27 Thread Nenad Rakocevic
Hi Pekr, I'm just curious, could you show us your client test script ? What value do you pass to 'echo ? -Doc Petr Krenzelok wrote: [...] > What is more, there seems to be one strange thing happening. On czech version of > W95, W98, on various set-ups, ranging from P300 to P650, the result of

[REBOL] Re: Style facet + How to add a check to a layout

2001-11-20 Thread Nenad Rakocevic
Hi Anton, There's an easier and cleaner way to do it : >> lay: layout [button "pane/1"] >> append lay/pane make-face 'check >> view lay Make-face will take care of all VID specific stuff for you. -DocKimbel Anton Rolls wrote: [...] > How to add a check to a layout: > > >> lay: layout

[REBOL] Re: Is there a GUI FTP Client in REBOL

2001-11-15 Thread Nenad Rakocevic
: false ] HTH, -DocKimbel Jason Cunliffe wrote: > > "Nenad Rakocevic" <[EMAIL PROTECTED]> wrote > > This should help : http://www.rebol.com/docs/core25.html (section 1.2 > Modes Available) > > aha.. thanks > > owner-read, owner-write, owner-delet

[REBOL] Re: Is there a GUI FTP Client in REBOL

2001-11-14 Thread Nenad Rakocevic
This should help : http://www.rebol.com/docs/core25.html (section 1.2 Modes Available) -DocKimbel Jason Cunliffe wrote: [...] > > I don't know, but it wouldn't be hard to write. However, I don't > > think REBOL allows you to alter all the file protections, which could > > limit its usefulness.

[REBOL] Re: Rebol + FastCGI

2001-04-15 Thread Nenad Rakocevic
Hi Petr, Petr Krenzelok wrote: [...] > OK folks ... I read something about FastCGI some year or more ago, but > doesn't it require special native platform support??? Yes, you need a native module for your webserver/OS. If you use Apache or Zeus, you have to install mod_fastcgi. For IIS and NSS,

[REBOL] Re: Rebol + FastCGI

2001-04-14 Thread Nenad Rakocevic
[EMAIL PROTECTED] wrote: > > Hi Nenad > > Maybe there is no need for me doing it by mself, if you release it.) > > Just a few questions. > > Do you use local sockets or remote tcp/ip sockets? Remote TCP/IP. > Do you have a timeframe when you will finish it? Don't expect to see anything be

[REBOL] Re: mySQL driver

2001-04-05 Thread Nenad Rakocevic
Hi Paul, Paul Tretter wrote: > > Doc Kimbel, > > I have been wanted to test the mySQL driver and have no longer access to > Doc Kimbel's docs and drivers except an older one >that was downloaded. > Some suggestions I would like to make because I think this would greatly > benefit us REBOL disc

[REBOL] Re: network timeout with mysql-protocol.r 0.8.5

2001-03-27 Thread Nenad Rakocevic
Hi Ryan, [EMAIL PROTECTED] wrote: > > The MySQL scheme for /Core is pretty nice so far. But I frequently > encounter network timeouts, often when it has been less than 90 seconds > since the last activity. Do I need to 'open and 'close the database for > each entry? Is it common for a database

[REBOL] mySQL v0.8.5

2001-03-25 Thread Nenad Rakocevic
Hi all, New flat, new car, new job, new PC, and finallynew mySQL driver release! :) With so much new things at the same time, it wasn't easy to find some free time to release this update! You can download it, as usually, on my reb-site at : http://rebol.dhs.org/index.r(requires Rebol/Vi

[REBOL] Re: mysql scheme port

2001-03-18 Thread Nenad Rakocevic
Will Arp wrote: > > Hello I would be very interested in any progress on dockimbel's mysql > scheme. A new scheme version is ready. It's much more robust and reliable and supports new features. Just have to update the docs and it will be ready to release this week. Regards, DocKimbel. -- To

[REBOL] Re: /view example doesn't work

2001-03-09 Thread Nenad Rakocevic
Hi Michael, [EMAIL PROTECTED] wrote: > > The following example from the /view doc doesn't work, or when I try to use > the 'choice button in my script: > > view layout [choice "Choose" data ["Happy" "Joyous" "Free"]] > > > I get the button displayed, but no list of choices. I expect a

[REBOL] Re: binary problem

2001-03-05 Thread Nenad Rakocevic
Hi Gabriele, Gabriele Santilli wrote: > > Hello Nenad! > > On 03-Mar-01, you wrote: > > NR>> Is append a good way to join two binaries ? > > NR> Sure, it's a good way. You can also use 'join (should be a > NR> little bit faster). > > Actually, JOIN would be a bit slower (but does not mod

[REBOL] Re: binary problem

2001-03-03 Thread Nenad Rakocevic
Hi Will, Will Arp wrote: > > >> a: read/binary %callmov.r > == #{ > 23212F7573722F6C6F63616C2F62696E2F7265626F6C2F7265626F6C202D6373 > 0A5245424F4C205B5D0A0A613A206C6F61642025767262696E320A633A20... > >> same? a read/binary %callmov.r > == false > >> > > Hello 8) > Well I was expecting a true

[REBOL] Re: "Towers of Hanoi" : Comments please

2001-02-19 Thread Nenad Rakocevic
Hi Renaud, Don't know if i have the "rebol coding spirit" :) but this is how i would write some parts of your script : > init: func [ > "Initialisation of the hanoi block" > n [integer!] "Number of disc to use" > /local tmp > ][ > count: make integer! 0; > tmp: make block! [] > hanoi: ma

[REBOL] Re: Strange mysql scheme port errors

2001-02-18 Thread Nenad Rakocevic
Hi Gabriele ! Gabriele Santilli wrote: > > Hello Nenad! [...] > Also, I noticed that you have to read from the port after an > update query too (otherwise errors are not reported and subsequent > queries won't work). I'll see if I can fix this up myself, if you > don't mind. Currently I use the

[REBOL] Re: Strange mysql scheme port errors

2001-02-18 Thread Nenad Rakocevic
Hi Michal, Michal Kracik wrote: > [...] > ** User Error: Error: inconsistent packet length !. > ** Where: first db > > while REBOL/View 0.10.38.3.1 and REBOL/core (Experimental) 2.4.40.3.1 > print: > > ** User Error: Error: end of stream not found. > ** Where: first db > [...] These kind o

[REBOL] Re: Mac OSX experimental

2001-02-16 Thread Nenad Rakocevic
DocKimbel wrote: [...] > I've made a small test with /Core2.2 and it freezes sometimes on the 'copy > command. Weird behaviour...(will see if i can find a quick fix). Ok, i fixed it. 'parse was entering in an infinite loop when modifying position markers. (This 'parse bug seems to have been corr

[REBOL] Re: Mac OSX experimental

2001-02-15 Thread Nenad Rakocevic
Hi Will Will Arp wrote: > > Hi 8) > Please if you have time to repost the last Mac OSX exper. core build > I would really aprreciate 8)) > That mysql driver is so cool but doesn't work with core 2.2.0.2.4 My scheme use the pair! datatype for the encryption functions. (pair! type was included i

[REBOL] Re: Rebol/stats (was Re: Recycle)

2001-02-15 Thread Nenad Rakocevic
Hi, Larry Palmiter wrote: [...] > You may also want to use or study Carl's script in the REBOL library: > > http://www.rebol.com/library/scripts/mem-stats.r > > which use rebol/stats to give a detailed print-out. [...] You can also use a script called "mem-watch" (on my rebsite) which allow

[REBOL] mySQL v0.8.4

2001-02-14 Thread Nenad Rakocevic
Hi mysql fans, A new version is available on my rebsite that corrects a nasty bug when decoding 'Null values. BTW, thanks for all your comments on this driver, i really enjoy reading them ! About the license, i might consider a GPL-like model, but anyway, be sure that it will remain free for fr

[REBOL] [ANN] mySQL driver for /Core

2001-02-10 Thread Nenad Rakocevic
Hi guys ! Great day today ! :) The first public release of my driver for mySQL databases is available on my rebsite. (Testpanel/Ecotope/Dockimbel) Please read the html doc and scripts headers before using it. Remember that's in beta stage, so don't expect it to be perfect ! ;) Let me know what

[REBOL] Re: Want FreesiteUK's scripts?

2001-02-05 Thread Nenad Rakocevic
Petr Krenzelok wrote: > [...] > How many times should I repeat that? /Command = CGI. What do we want is - > Apache module. If it is not like that, the world will not accept it. I tried > to convince three of my friends and the answer was clear - CGI s... :-) ... > that's probably reality and we

[REBOL] Re: 'parse-url - where defined?

2001-01-30 Thread Nenad Rakocevic
Anton wrote: [...] > How then, does read-via work? Oops, i forgot to answer to your second question ! :) 'read-via is defined in the global context, but its value is still bound to the context where it was defined. 'parse-url is defined in the same context, so it has a meaning in 'read-via bod

[REBOL] Re: 'parse-url - where defined?

2001-01-30 Thread Nenad Rakocevic
Hi Anton, Anton wrote: > > Hi, > > Looking at > source read-via > > It uses 'parse-url in the second line of read-via's function body. > Where does parse-url come from? > On the console, parse-url has no value. > How then, does read-via work? [...] net-utils/URL-Parser/parse-url You could u

[REBOL] Re: object/property1: "new value"

2001-01-30 Thread Nenad Rakocevic
Hi Helmut, [...] > I want to get a "fire" -event if an attribute, such as 'balance, is > changed. So I can test of a valid data-type or to test wether the new value > is in a valid range. Define a 'set-balance (or 'let-balance) function in the account context, where you can put all your proce

[REBOL] Re: Selector Gadget Experience

2001-01-28 Thread Nenad Rakocevic
Mike Myers wrote: > [...] > I think that if the REBOL/View user interface is to be successful > it needs more programmers able to explore the model more easily > than searching text files. > > It needs a graphical tree representation that is "explorable". You can use my 'help patch for this

[REBOL] Re: [ANN] a new reb site released

2001-01-15 Thread Nenad Rakocevic
My reb site can now be accessed through its own icon in Larry's Ecotope reb site. Also, have a look at Larry's work on fractals, it's fantastic ! DocKimbel. > Hi, > > I finally released my Reb site. You can access it at the following URL : > > http://rebol.dhs.org/index.r > (write it in the

[REBOL] Re: https

2001-01-15 Thread Nenad Rakocevic
Graham Chiu wrote : > > I need to parse out some data from a https page. Is https > going to be supported in Core? > > -- > Graham Chiu Niet ! RT answer is that a SSL support will raise /Core size to almost 1Mo and they want to keep it small in size, which is a good point of view IMHO. I s

[REBOL] [ANN] a new reb site released

2001-01-13 Thread Nenad Rakocevic
Hi, I finally released my Reb site. You can access it at the following URL : http://rebol.dhs.org/index.r (write it in the address field of the Test Panel) Let me know what you think about it. Don't search for its icon in the "Sites" section of the Test Panel, because the "Add Site" submit pr

[REBOL] Re: func within an object

2000-12-22 Thread Nenad Rakocevic
p > was written by: > Author: "Nenad Rakocevic" > Email: [EMAIL PROTECTED] > and slightly rewritten by me to suit me. > > BTW, Nenad if you're reading this, could we have a URL where this version of > help is at? Sure ! at http://rebol.fre