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

World: r3wp

[Rebol School] Rebol School

Vladimir
5-Nov-2008
[872]
I uploaded manual for my router before:
http://www.2shared.com/file/4192455/b9f6ca7d/LB_Manual_1_1.html

Can someone tell me where are these settings for "connection tracking" 
?
Anton
5-Nov-2008
[873x3]
About TCP CHECKSUM INCORRECT
http://wiki.wireshark.org/TCP_Checksum_Verification
It should be VERY VERY rare to see corrupted packets in today's networks 
unless you have a router or a switch with a bad RAM module with a 
sticky bit. Still, it should be VERY rare to see this for packets 
that actually are corrupted.
Vladimir
15-Nov-2008
[876]
I got response from Pheenet tech support... It tokk couple of emails 
... me sending network drawing, log files and such stuff...

Finally they said they never expirienced anything like it in their 
practice... Well at least I know Im not idiot... :)
Only latest firmware could help...

They were very kind and sent me newest firmware... (its not even 
available online :)
AND IT WORKS!

So.... Rebol is still cool... It was not rebol mistake... it was 
router firmware... :)
Thanks to everyone who tried to help :)
Gregg
15-Nov-2008
[877]
Wow. Thanks for letting us know Vladimir.
DideC
15-Nov-2008
[878]
cool!
Anton
18-Nov-2008
[879]
Yep, appreciate the feedback.
Sunanda
19-Nov-2008
[880]
Can anyone help answer this question --- received as a Feed back 
message on REBOL.org. Thanks!
=====
Does Rebol support cyrillic?
I can't see symbols in my language in this simple program:

view layout/size [button "Нажми" [alert "Привет!"]] 400x300

How come that Rebol doesn't support UTF-8? Or maybe there is another 
way to see Russian letters on buttons?..
3 days of googling...nothing...

 example: view layout/size [button "Нажми" [alert "Привет!"]] 
 400x300
=====
Pekr
19-Nov-2008
[881]
not sure possible. He could probably convert apriori, but. Unicode 
is going to be supported in R3. Some VID 3.4 more public release 
due next week? (maybe). But even then - Unicode display is not supported 
AFAIK
Sunanda
19-Nov-2008
[882]
Thanks Petr. He may have to wait for a supported UNICODE-enabled 
release.


Having given it a few moments thought, he may be able to fake it 
in *some* controls with font-name:

    view layout [box "hello" font-name "xxx"]  ;; where xxx is the name 
    of an installed font on his machine.

I tried that with my ASCII chart script, making that change. And 
it does (for me) show some Cyrillic. Not sure it's a complete solution 
though:
   http://www.rebol.org/view-script.r?script=ascii-chart.r
Sunanda
21-Nov-2008
[883]
Can someone help make this code less Python and more REBOL:
http://www.reboltalk.com/forum/index.php/topic,2561.0.html
Pekr
21-Nov-2008
[884]
There is nothing wrong with his script, is there?
Sunanda
21-Nov-2008
[885]
It works.

But I think he's looking for something more parse-y or REBOL-elegant 
in some other way....And that scales up to the millions....So hash 
(or whetever the R3 replacement is called) might be useful.
Henrik
21-Nov-2008
[886]
I don't see a problem with it. I would have written it the same way.
Pekr
21-Nov-2008
[887]
Well, I can give him some other options, like telling him, that he 
could use sqlite, mysql, postgress, as we have drivers for them. 
Not sure about the hash and its speed, etc.
Sunanda
21-Nov-2008
[888]
I'd've written it the same way too -- though on the test dataset, 
the find could be a equality test:
    if row/2 = map/1 [change row/4 map/2]

I think he's hoping for a more set-related way rather than procedural 
method.
PeterWood
21-Nov-2008
[889]
I've posted a script that eliminates the inner foreach loop by building 
a hash! to use as a lookup. Should be a bit quicker but isn't really 
any more Rebolish.
[unknown: 5]
21-Nov-2008
[890x3]
No he don't need any other solution.  He just needs to use ports 
to do the work for him and preserve memory.
However, if another db type solution is desired here - TRETBASE would 
be suitable to this task nicely.
The great thing about using ports in this case is that you can access 
the data as it is changed.  So you don't have to wait until the whole 
script is finished executing.
Gregg
21-Nov-2008
[893x4]
I posted a reply there, but don't hang out there, so let me know 
if I need to respond to answer a question about what I posted.
Here's basically what I posted:
transform: func [
	block [block!] "Datatset to transform"
	cmds  [block!] "Transformation commands to perform"
	/local
		run-map-transform
		main= map-blk= src= dest=
		      =map-blk =src =dest
][

 run-map-transform: func [src [integer!] dest [integer!] map [any-block!] 
 /local val] [
		foreach item block [
			if val: select/skip map item/:src 2 [change item/:dest val]
			;print [val mold item]
		]
	]
	map-blk=: ['using set =map-blk word!] 
	src=: ['field set =src integer!]
	dest=: ['into opt 'field set =dest integer!]
	map-cmd=: [
		['map src= map-blk= dest= | map-blk= 'map src= dest=]
		;(print [=map-blk =src =dest])
		(run-map-transform =src =dest get =map-blk)
	]
	main=: [some map-cmd=]

 either parse cmds main= [dataset] [none] ; decide how to handle bad 
 cmd scenario
]


transform copy dataset [map field 2  using glcodehash into field 
4]

transform copy dataset [using glcodehash  map field 2 into field 
4]
Hacked quickly, not heavily tested. Caveat emptor.
Alexandr
21-Nov-2008
[897x4]
Thank you Pekr and Sunanda for your replies and suggestion on my 
question about unicode and cyrillic. I tried ascii-chart script and 
it unfortunately doesn't show any cyrillic letters :-(  I understand 
you, I have to wait until r3 is released, but I don't want to wait 
for it (as I can see from forum posts it could be not very soon).
Is there any other way to recode cyrilic letters? I mean ANY actually, 
coz I liked the way and philosophy of rebol which Carl wrote about 
in his blog very much and I'd like to be able to write rebol programs 
in my language, but how? I don't look now on any net-spicific programs, 
I want to try myself in very simple program for menu managment in 
my distro (http://www.puppylinux.org). It is Russian development 
of quite well-known Puppy Linux by Bary Cauler, so we need cyrillic. 
As for other languages like C, Python, Java etc - I'm not a programmer 
and (this is why) I really loved the way that "simple things can 
be done in a simple way". My few trials to write a program using 
Glade in Ubuntu were unhappy - it seems like a one big bug, I even 
couldn't make a little program! It seems to me that bash is more 
transparent that Glade sometimes...
Also I begin to understand why there is a problem with rebol popularity 
- absenbse of unicode in Rebol is only one of reasons. I was very 
surprised that there are almost no Russian resources about Rebol! 
How can people begin to use anything - if they cannot even read about 
it in their native language? I think it's a big mistake - not to 
have a translation group for Rebol - like one in Gnome dev, KDE etc. 
I could participate in it and to help promote Rebol in Russia, but 
it is a huge work which could not be done by one or two men, and 
surely, I can't start such a project - I think it should be done 
by you, Rebol-gurus. Then, you could coordinate translations and 
we could begin to make Rebol more international and popular. P.S. 
Not sure this is a right place to write about, but I didn't find 
something more suitable...
It is sad - I even can't start a Russian group here where people 
could write not only in English, but in Russian too. ALTME doesn't 
support cyrillic as well. No need to say that without unicode support, 
without ability to interact with other programs/processes from parent 
OS Rebol becomes almost useless for masses...
Graham
21-Nov-2008
[901]
Wait for Rebol 3
Gregg
21-Nov-2008
[902]
You'll be a great tester for Unicode support in R3 Alexandr. :-)
PeterWood
21-Nov-2008
[903]
Great example of a DSL Gregg.
Graham
21-Nov-2008
[904x3]
If you want to translate the documentation, I have copied the wiki 
to another wiki at http://www.compkarori.co.nzwhich has multilanguage 
support
The current mediawiki is too old to support multiple languages
Since it is a vm, I can make the whole thing available for download 
sometime.
PeterWood
21-Nov-2008
[907]
Jerry Tsai was able to display ChineseJapanese and Korean text in 
Rebol. So it's wouldn't be impossible to dislay cyrillic text, just 
very difficult.


Here's a glimpse ... http://jerrylovesrebol.blogspot.com/2008/01/animate-tabbedpane.html
Steeve
21-Nov-2008
[908]
what technic he used ? some images of ideograms ?
Graham
21-Nov-2008
[909]
Jerry using R3
Steeve
21-Nov-2008
[910]
holy sh*t, who he killed he to have a copy of R3
Graham
21-Nov-2008
[911]
no one, the current alpha release has unicode support
Steeve
21-Nov-2008
[912]
the first one ?
Graham
21-Nov-2008
[913]
the graphics subsystem was done ... just no VID
Steeve
21-Nov-2008
[914x2]
hum it''s currently bugous, even the subsystem
i tried caret-to-offset, offset-to-caret, it doesn't work
PeterWood
21-Nov-2008
[916x2]
Jerry didn't wait for r3. He did this in May 2007  - http://city.udn.com/v1/blog/photo/photo.jsp?uid=JerryTsai&f_PHOTO_ID=774988
It was reported on The Rebol Week by some fellow called Graham ;-)
Graham
21-Nov-2008
[918x2]
different
see his screenshots of chinese in the R3 console
Steeve
21-Nov-2008
[920x2]
i over reacted, i'm not currently intersted by unicode ;-)
i made some test to build an RTE editor using gobs, but as i said 
the current alpha is bugous