Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Oct 20 22:59
    @dockimbel banned @SmackMacDougal
  • Dec 03 2017 05:53
    @PeterWAWood banned @matrixbot
  • Sep 28 2016 12:19
    @PeterWAWood banned @TimeSeriesLord
  • Aug 13 2016 03:23
    @PeterWAWood banned @Vexercizer
BeardPower
@BeardPower
Port 8080 should be fine to use.
BeardPower
@BeardPower
Port 80 could clash with the web-interface of your router/printer/other if it's using port 80 as well.
Just in case you are not sure which ports could clash:
https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers
nedzadarek
@nedzadarek
@Ungaretti @BeardPower I think it's better to check the list of of ports, something like: netstat -a (source).
BeardPower
@BeardPower
@nedzadarek Maybe he is not even using Windows so I restrained from mentioning any specific tools.
Ungaretti
@Ungaretti
@BeardPower @nedzadarek I'm using Windows. All this is new for me. I just want to do CGI/RSP testing in a local server in my PC being sure that it would take more than 10 hours for a hacker to get in my system. My files are not worth 10 hours work :wink:. I'm using Cheyenne for it's simplicity. I'll change the port to a random number and hope that's enough.
Ungaretti
@Ungaretti
I believe Red's CGI will be somewhat related to what Cheyenne does.
Rephrasing it: I believe that learning CGI for Red would be easier using Cheyenne.
nedzadarek
@nedzadarek

@BeardPower
From the source:

It is available on Unix-like operating systems including macOS, Linux, Solaris, and BSD, and is available on Windows NT-based operating systems including Windows XP, Windows Vista, Windows 7, Windows 8 and Windows 10.

BeardPower
@BeardPower
netstat is legacy cruft and superceeded by other tools which are the recommended way to go.
@Ungaretti If you don't open the port to the outside you are absolutely safe.
Greg T
@gltewalt
Netstat is built in
BeardPower
@BeardPower
Depends on the OS.
Anyway, just use the tools you are comfortable with.
nedzadarek
@nedzadarek
:point_up: 6 listopada 2018 13:18
So it's not available any more?
@BeardPower
BeardPower
@BeardPower
@nedzadarek They are still available, but there are newer tools which superceded the old netstat tools. They are deprecated/legacy.
nedzadarek
@nedzadarek
@BeardPower deprecated, which means that they will be deleted. It is good to know. Thank you.
BeardPower
@BeardPower
Instead of netstat you should use ss (part of iproute2) and ip.
nedzadarek
@nedzadarek
@BeardPower ss/iproute2 is common on linux systems?
BeardPower
@BeardPower
@nedzadarek You're welcome.
NOTE
   This program is obsolete.  Replacement for netstat is ss.   Replacement
   for  netstat -r is ip route.  Replacement for netstat -i is ip -s link.
   Replacement for netstat -g is ip maddr.
nedzadarek
@nedzadarek
:+1:
BeardPower
@BeardPower

@BeardPower ss/iproute2 is common on linux systems?

Yes. ifconfig and route should all be deprecated.

Gabriele Santilli
@giesse
on Linux lsof -i is usually a good replacement for netstat
(for the kind of purpose that was talked about here)
GiuseppeChillemi
@GiuseppeChillemi
Is the word "keep" in "collect" case sensitive ? If I use it as "Keep" I get an error
Vladimir Vasilyev
@9214
@GiuseppeChillemi it's a Parse bug.
GiuseppeChillemi
@GiuseppeChillemi
Let's Keep it until fixed !
Also, I have read about collect in RED-BY-EXAMPLE but I don't understand if COLLECT "reduces" the whole code. I suppose it does and keeps only what should be kept using "keep". Doesn't it ?
Vladimir Vasilyev
@9214
@GiuseppeChillemi it selectively binds all keep and collected words inside a block to function's context and then evaluates it.
keep itself is just an internal alias for append.
GiuseppeChillemi
@GiuseppeChillemi
I am not understandig "selectively binds" . Do you mean that binds only what is "keep" ?
Vladimir Vasilyev
@9214
@GiuseppeChillemi use source collect and see for yourself.
GiuseppeChillemi
@GiuseppeChillemi
thanks
It is difficult but I will try to understand...
Also:
GiuseppeChillemi
@GiuseppeChillemi
Is there a way to express "[" inside a block built with collect/keep/compose without it being seen an error ? (Pardon me I am trying to create a pane with dynamic buttons inside)
But I am still not so skilled
Vladimir Vasilyev
@9214
What do you mean by that?
All brackets should come in matching pairs.
GiuseppeChillemi
@GiuseppeChillemi
I need to create a view block using collect. Buttons are created in a composed block in a foreach routine. I don't understand how to wrap a Panel around the buttons statements .
nedzadarek
@nedzadarek
@GiuseppeChillemi I don't think selectively is right word but I'm not linguist nor native speaker. I would just say "binds all keep and collected...".
Vladimir Vasilyev
@9214
buttons: collect [
    foreach text ["a" "b" "c"][
        keep reduce ['button text]
    ]
]

view compose/only [
    panel (buttons)
]
GiuseppeChillemi
@GiuseppeChillemi

@9214 Today I had not the time to investigate but after one day my doubts are more clear:
1) Composed block content is not reduced apart everything between parens (), everything else is kept untouched.
2) Collect "binds" words buts return only what you "keep"
3 ) You can enter everything in the "outer" part outside parents. Until you ask for it to be interpred it is valid content, like

compose [areearererer  "aeeggekk" (5 + 3) ]

It is a valid compose block

collect [areearererer  "aeeggekk" 8 ]

Is not a valid collect block.

GiuseppeChillemi
@GiuseppeChillemi

@9214 The remaining question is:

How do I use "]" or "(" and ")" inside a compose block ?

compose [some words ]  ]

Give me an error while

compose [some words [] ]

Is

Also

compose [some words (()) ]

or

compose [some words [()]]

or

compose [some words ( ]

Are all not valid syntax

nedzadarek
@nedzadarek
@GiuseppeChillemi First, you have to match ( and [. Your only choice is to use strings (e.g. do-something func [s] [...] do-something "[foo").
Secondly, compose [some words [()]](1) and compose [some words (()) ](2) are valid syntaxes but they just evaluate to something that you might not want. 2 - there is no paren! here. There are only 2 words and the block. If you want compose parens in nested block use /deep refinement. 1 - composing empty parens will result in "nothing"* but it is still valid syntax.
nedzadarek
@nedzadarek
*as fair I remember the result is of type unset!. You cannot set it to some word using set-word! syntax (e.g. a: print 2). There is more informations but... well, just ask here, someone should answer.
GiuseppeChillemi
@GiuseppeChillemi
If I use strings, and inside them there is RED code, Will "collect " be able to bind It or should I do sonething more ?
nedzadarek
@nedzadarek
@GiuseppeChillemi no, strings contains only characters like #"a" not "the code". You cannot bind characters.
GiuseppeChillemi
@GiuseppeChillemi
Now I am on mobile ...
Compose ["func [" (max) "] [probe max]"]