orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #picolisp
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #picolisp
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #picolisp
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #picolisp
Nistur has quit [Remote host closed the connection]
Nistur has joined #picolisp
Nistur has quit [Ping timeout: 256 seconds]
Nistur has joined #picolisp
Nistur has quit [Ping timeout: 265 seconds]
Nistur has joined #picolisp
Nistur has quit [Ping timeout: 240 seconds]
Nistur has joined #picolisp
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #picolisp
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #picolisp
orivej_ has joined #picolisp
orivej has quit [Read error: Connection reset by peer]
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #picolisp
mtsd has joined #picolisp
<Nistur>
mornin'
<beneroth>
morning Nistur
<Regenaxer>
Hi Nistur!
<Regenaxer>
Cheers beneroth!
<Nistur>
hullloooo
<Nistur>
after a few nights of not being able to lisp, I managed to get a bit done again last night \o/
<Nistur>
although I ended up getting stumped :(
<beneroth>
Cheers Regenaxer \o/
<Regenaxer>
:)
<beneroth>
Nistur, stumped by whom?
<beneroth>
Jumanji Rhino?
<Nistur>
:D
<Nistur>
no
<Nistur>
I was finally trying to use the output of my curl calls to check things in my sample client... and realised that curl was just outputting to stdout -_- I tried several ways to try and get the output of curl into picolisp, but curl doesn't like streaming data it seems...
<Nistur>
my issues may, of course, be largely due to the lack of sleep and general fatigue at time of applying head to keyboard
<Regenaxer>
No, this should work fine
<Regenaxer>
(in (list "curl" "arg1" ...) ...
<beneroth>
Nistur, curl can output to stdout.. just you don't get the diagnostic/loading bar output from curl then
<Nistur>
Regenaxer: when I do that, I just get (; (mapcar pack (split (in (list "ip" "-o" "address" "show" "dev" "eth0") (line)) "
<Nistur>
...
<Nistur>
not that
<Nistur>
thanks screen for copying precisely NOT what I asked you to
<Regenaxer>
:)
<Nistur>
(23) Failed writing body
<Nistur>
that
<beneroth>
error 23, illuminati confirmed :)
<Nistur>
oh shit, did I give myself away?
<Nistur>
wait, maybe I was doing something silly... is there any way to get the entire stream, rather than doing (read) or (line)
<Regenaxer>
yes, (in (list "command" "arg" ..) (echo))
<Regenaxer>
or (in (list "command" "arg" ..) (till NIL T))
<Regenaxer>
I usually parse as (in (list "command" "arg" ..) (from "something") (till "morething" T))
rob_w has joined #picolisp
<beneroth>
Nistur, the real illuminati were Bavarians. You're here in the channel of a Bavarian programming language.
<beneroth>
Regenaxer, yep I do it the same
rob_w has quit [Client Quit]
rob_w has joined #picolisp
<Nistur>
hrmmmm
<Regenaxer>
So best look with (echo) what it gives
<Nistur>
I'll look into that later. Still some concepts I need to get my head around it seems. Right now, I'm meant to be profiling some C++ code
<Nistur>
Regenaxer: I just tried quickly and I was still getting the response printed out, but it seemed to only be returning T up the callstack
<Regenaxer>
Well, (echo) echoes to the console
<Regenaxer>
(till NIL T) gives the whole output as a string
<Nistur>
ah ok
<Regenaxer>
Hmm, does the command output to stderr perhaps?
<beneroth>
to be pedantic: (echo) outputs to the current open output-channel (stdout of the process, which is likely the repl console)
<Regenaxer>
right
<beneroth>
I usually use curl to output to a file, therefore I haven't an example ready I think....
<Nistur>
booom :D
<Nistur>
works :P Thanks
<Regenaxer>
great :)
<beneroth>
Bavarian programming!
Regenaxer has left #picolisp [#picolisp]
<patrixl>
yup (till NIL T) is what I've been using in many different scenarios to avoid outputing to files
Regenaxer has joined #picolisp
<beneroth>
patrixl, it bears the risk of DoS
<Nistur>
I tried getting curl to output to a file, but that was probably around 23:00 last night, and I was not paying close attention
<beneroth>
well, heavily depending on your scenario
<Regenaxer>
oops, Ctrl-D
<beneroth>
Nistur, there is argument for that
<beneroth>
welcome back Regenaxer
<Regenaxer>
:)
<Nistur>
o/
<Nistur>
you were missed
<beneroth>
Regenaxer, just to clarify, I wasn't pedantic to correct you, but so Nistur understands ;-)
<Regenaxer>
Yes, I understood it this way
<beneroth>
Regenaxer, you got any ties to Ingoldstadt?
<patrixl>
beneroth: DoS?
<beneroth>
denial of service
<patrixl>
yes but what
<Regenaxer>
beneroth: None that I'm aware of
<beneroth>
patrixl, too long string, in case that is public input
<Regenaxer>
Something happened?
<patrixl>
sure
<patrixl>
so the thing crashes?
<patrixl>
I can live with that lol
<patrixl>
with what I've been doing so far anyway
<beneroth>
yeah, afaik remote exploiting picolisp is impossible, unless you hand input to eval
<beneroth>
maybe not impossible, but highly unlikely even by concept