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
[862x4]
4 0.136676    194.9.94.127          192.168.2.108         FTP    
  Response: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------

      5 0.136919    192.168.2.108         194.9.94.127          FTP    
        Request: USER visaprom.com

      6 0.195551    194.9.94.127          192.168.2.108         FTP    
        Response: 331 User visaprom.com OK. Password required

      7 0.195740    192.168.2.108         194.9.94.127          FTP    
        Request: PASS pass

      8 0.298224    194.9.94.127          192.168.2.108         FTP    
        Response: 230-User visaprom.com has group access to:  www     

      9 0.298434    192.168.2.108         194.9.94.127          FTP    
        Request: SYST

     10 0.359996    194.9.94.127          192.168.2.108         FTP   
        Response: 215 UNIX Type: L8

     11 0.360264    192.168.2.108         194.9.94.127          FTP   
        Request: PWD

     12 0.424862    194.9.94.127          192.168.2.108         FTP   
        Response: 257 "/" is your current location

     13 0.425117    192.168.2.108         194.9.94.127          FTP   
        Request: PASV

     14 0.485707    194.9.94.127          192.168.2.108         FTP   
        Response: 227 Entering Passive Mode (194,9,94,127,205,50)

     18 0.547818    192.168.2.108         194.9.94.127          FTP   
        Request: CWD apl/

     19 1.613365    192.168.2.108         194.9.94.127          FTP   
        [TCP Retransmission] Request: CWD apl/

     20 1.675732    194.9.94.127          192.168.2.108         TCP   
        [TCP Previous segment lost] ftp > gtrack-ne [ACK] Seq=603 Ack=66 
     Win=16500 Len=0

    106 30.535545   192.168.2.108         194.9.94.127          TCP  
        gtrack-ne > ftp [FIN, ACK] Seq=66 Ack=568 Win=15933 Len=0

    107 30.600678   194.9.94.127          192.168.2.108         TCP  
        ftp > gtrack-ne [ACK] Seq=603 Ack=67 Win=16500 Len=0

    108 30.600776   194.9.94.127          192.168.2.108         FTP  
        Response: 250 Logout.

    109 30.600798   192.168.2.108         194.9.94.127          TCP  
        [TCP Dup ACK 106#1] gtrack-ne > ftp [ACK] Seq=67 Ack=568 Win=15933 
    Len=0 SLE=603 SRE=616

    110 30.601077   194.9.94.127          192.168.2.108         TCP  
        ftp > gtrack-ne [FIN, ACK] Seq=616 Ack=67 Win=16500 Len=0

    111 30.601086   192.168.2.108         194.9.94.127          TCP  
        [TCP Dup ACK 106#2] gtrack-ne > ftp [ACK] Seq=67 Ack=568 Win=15933 
    Len=0 SLE=603 SRE=617
what is gtrack-ne ?
I tried again... now it is "ca-idms" instead of "gtrack-ne" and Seq=604 
instead of 603....
I have no fu...ing... idea what this is...
If there is anyone outthere who knows what this could be... ?
btw. I sent mails to pheenet (router manufacturer) support... Maybe 
they can help....
DideC
5-Nov-2008
[866]
I see no PORT command in Totalcommander log. That seems going in 
the way I claim before.
Graham
5-Nov-2008
[867]
What are these retransmission requests??
Pekr
5-Nov-2008
[868]
Guys - those names, are just names for port numbers. You can turn 
the name resolution off. grack-ne = 3592
Graham
5-Nov-2008
[869]
total commander is also using PASV mode
Pekr
5-Nov-2008
[870x2]
Spiral-admin = 3438
One thing is clear - you have to have allowed connection tracking 
in your firewall, and ftp communication is being done by using so 
called "related" connections ...
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