beneroth changed the topic of #picolisp to: PicoLisp language | The scalpel of software development | Channel Log: https://libera.irclog.whitequark.org/picolisp | Check www.picolisp.com for more information
aw- has joined #picolisp
<Regenaxer> Today is 22-2-22 !!!
rob_w has joined #picolisp
<beneroth> Regenaxer, :D
<beneroth> Regenaxer, no, today is 738514 !
<Regenaxer> haha, true :)
<Regenaxer> Good morning everybody!
<beneroth> Good morning everybody =)
<beneroth> afk
<tankf33der> My next task will be
<Regenaxer> ok
razzy has joined #picolisp
razzy has quit [Ping timeout: 256 seconds]
rob_w has quit [Quit: Leaving]
razzy has joined #picolisp
aw- has quit [Ping timeout: 240 seconds]
<Regenaxer> Cool
<Regenaxer> 'prime?' is as ever?
<Regenaxer> (sum prog (mapcar format (chop N))) could be simply (sum format (chop N))
<tankf33der> prime is prime.
<Regenaxer> And (let N ... (loop might be a 'for'
<tankf33der> i need numbers before 500.
<Regenaxer> yes but (loop (T could be a for, no?
<Regenaxer> (for (N 0 (> ...))
<tankf33der> aaaa, ok
<Regenaxer> minor detail
<tankf33der> much better.
<Regenaxer> yeah
<Regenaxer> hmm, 'M'?
<Regenaxer> I think:
<Regenaxer> (let C 0 (for (N 0 (> 500 N) (inc N)) (when (additive N) ...
<Regenaxer> or (let C 0 (for N 499 (when (additive (dec N) ...
<Regenaxer> no (let C 0 (for N 501 (when (additive (dec N) ... ?
<Regenaxer> perfect
<tankf33der> thanks a lot.
<Regenaxer> :)
<razzy> can vip delete file?
<Regenaxer> yes, :!rm file
<razzy> shortcut for current buffer?
<Regenaxer> or current file :!rm %
<Regenaxer> :bd
<Regenaxer> to delete buffer (but not the file)
<razzy> :bd just closes buffer no?
<Regenaxer> exact
<razzy> rm % is fine, thx
<Regenaxer> so after rm % it makes sense to do bd
<Regenaxer> otherwise you can :w to "un"delete
v88m has joined #picolisp
v88m has quit [Quit: Quit]
v88m has joined #picolisp
<razzy> in next Advent-of-code we will have nice automated distribution of task-text
<Regenaxer> beautified?
<razzy> oh, not very :]
<Regenaxer> ok :)
<razzy> i was thinking. could i connect from machine A to B. and stream terminal from A into X-enviroment hosted on B?
<Regenaxer> Not simple ssh?
<razzy> yes ssh
<Regenaxer> You can tunnel an X-session via ssh
<razzy> but i do not want to open connection from machine B to A
<razzy> A is phone with low power
<razzy> I want to have Jitsi session on B and terminal on A. i want to open connection from A to B
<Regenaxer> Hmm, something I did on the PilCons?
<Regenaxer> or use scrcpy?
<razzy> similiar as pilcon, but at pilcons we connected to your server.
<Regenaxer> scrcpy displays phone on remote X
<razzy> i will look at scrcpy. i do not know, how to tunnel X-sesion over SSH
<Regenaxer> Look at the "-L" option of ssh
<Regenaxer> for tunnel
<Regenaxer> $ ssh <sshserver> -L <localport>:<targethost>:<targetport> -N
<razzy> i want to type/work on A send duplicate to B, observe on B, send via Jitsi from B
<Regenaxer> I think this is what I do in PilCon
<razzy> i want to open connection from A
<Regenaxer> PC has Jitsi in Browser and Xterms
<Regenaxer> I use my phone' termux -> ssh to PC
<razzy> but you work on PC
<razzy> no?
<Regenaxer> In this case the phone is only the keyboard, yes
<razzy> i want to work on phone. phone has full system
<Regenaxer> So this is possible with scrcpy
<Regenaxer> Display the phone in an X-window
<Regenaxer> I did last time
<razzy> Thank you
<razzy> my phone is not android :] just normal debian
<Regenaxer> ah, I see, scrcpy is for Android
<razzy> I am looking at terminal mirror over network now
<Regenaxer> Why not simply tmux
<Regenaxer> tmux on B
<Regenaxer> log in from A
<Regenaxer> A single tmux session can be connected to from several other machines
<Regenaxer> I did with "nemo"
<razzy> i want to work in A enviroment. maybe Tmux has capability
<razzy> i do not know how to use tmux :] is propable reason
<Regenaxer> hmm, no, in the above case it runs on B
<Regenaxer> So the tmux session on A
<Regenaxer> connect from B
<Regenaxer> tmux -a
<Regenaxer> "attach"
<razzy> i want to open connection from A
<Regenaxer> then you also need a tunnel
<Regenaxer> ssh -L
<razzy> well it takes shape :] thank you :] i will try :]
clacke has quit [Remote host closed the connection]