00:53
<
clacke[m] >
> Windows has just spawn()
00:54
<
clacke[m] >
the contortions Python goes through to pretend that Windows has fork() can lead to very nasty surprises
00:54
<
clacke[m] >
fork() is such a useful building block
02:47
aw- has joined #picolisp
05:27
orivej_ has quit [Ping timeout: 256 seconds]
05:34
orivej has joined #picolisp
06:41
orivej has quit [Ping timeout: 255 seconds]
06:45
aw- has quit [Ping timeout: 256 seconds]
06:56
orivej has joined #picolisp
07:03
aw- has joined #picolisp
07:09
aw- has quit [Ping timeout: 256 seconds]
07:18
aw- has joined #picolisp
07:46
orivej has quit [Ping timeout: 256 seconds]
07:56
<
m_mans >
The reference for 'mail states that "If the second argument is a list, it should be a structure (user password . port), and "@bin/ssl" will be called to establish an encrypted connection". But I can't find any mention of ssl in the source of 'mail in @lib/misc.l
08:01
<
aw- >
m_mans: cd src; make ssl
08:01
orivej has joined #picolisp
08:02
zod has joined #picolisp
08:02
<
aw- >
sorry i didn't read correctly
08:02
<
m_mans >
aw-: no, I mean that code of 'mail doesn't contain any mention of ssl
08:02
zod is now known as Guest18251
08:16
<
Regenaxer >
Hi m_mans, aw-! Isn't in the source this?
08:16
<
Regenaxer >
(de mail (Host Port From To Sub Att . Prg)
08:16
<
Regenaxer >
(let? S
08:16
<
Regenaxer >
(if (pair Port)
08:16
<
Regenaxer >
(pipe (exec "@bin/ssl" Host (fin Port)))
08:16
<
Regenaxer >
(connect Host Port) )
08:17
<
Regenaxer >
17nov17 Support SSL and AUTH in 'mail'
08:19
<
m_mans >
oh, then my bad again! :)). I haven't updated PicoLisp so long.
08:19
<
m_mans >
Sorry, Regenaxer
08:20
<
m_mans >
I'm doing that now :)
08:20
<
Regenaxer >
no problem. So you looked into the wrong doc/ref
08:29
<
m_mans >
I'll test 'mail with authentication against Google mail server than
08:46
<
m_mans >
hm, somethings goes wrong, it doesn't send mail, but I see no errors in the terminal.
08:46
<
m_mans >
*something
08:47
<
m_mans >
I do (mail "smtp.gmail.com" '("myaddr@mydomain.ru" "mypasswordhere" . 465) ...
08:49
<
Regenaxer >
ah, no, correct
08:50
<
Regenaxer >
I use (mail server (cons myaddr pw 465) ..
08:51
<
m_mans >
Did you use it with google?
08:51
<
aw- >
m_mans: you can't use your regular password to auth to gmail
08:51
<
aw- >
you need to generate a "device password"
08:51
<
aw- >
through their UI
08:52
<
m_mans >
aw-: why not? It's dedicated account and I succesfully sent mail with curl yesterday
08:52
<
Regenaxer >
m_mans, no google
08:53
<
aw- >
oh maybe if you don't have 2FA enabled..
08:58
<
m_mans >
line = "220 smtp.gmail.com ESMTP s190sm4338890lfe.89 - gsmtp"
08:58
<
m_mans >
line = "250 smtp.gmail.com at your service"
08:58
<
m_mans >
line = "235 2.7.0 Accepted"
08:58
<
m_mans >
line = "555 5.5.2 Syntax error. s190sm4338890lfe.89 - gsmtp"
08:58
<
m_mans >
maybe it need EHLO...
09:01
Guest18251 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:02
zod has joined #picolisp
09:02
zod is now known as Guest50208
09:03
<
Regenaxer >
I think I only tested with my provider smtp.strato.de
09:07
<
m_mans >
I mean verbose output from curl
09:08
<
Regenaxer >
Hmm, not sure about the protocol - perhaps something is missing in 'mail'?
09:10
<
m_mans >
don't we need to read all '250-' lines from server before sending AUTH PLAIN?
09:12
<
Regenaxer >
no idea, I haven't looked at this since a few months
09:12
<
Regenaxer >
can you try?
09:12
<
m_mans >
yes, I'm trying, but a little
09:12
<
m_mans >
no hurry, I'll just use curl
09:13
<
Regenaxer >
Isn't this an issue also for the non-ssl calls?
09:13
<
m_mans >
I don't know
09:13
<
Regenaxer >
ok, but it would be good to fix the 'mail' function in the long range
09:13
<
Regenaxer >
(for me it works though ;)
09:14
<
m_mans >
yeah, it would be nice to be able to use 'mail also with popular services
09:15
<
m_mans >
but curl helps much too
09:19
<
m_mans >
ha, look: you check against "250 " (with space), but Google sends "250-..."
09:20
<
Regenaxer >
that would be easy!
09:20
<
Regenaxer >
Is that correct? What is in the RFC?
09:21
<
Regenaxer >
Just checking for "250" does not look right to me, as "2507" would also pass then. Or are the codes always 3 digits?
09:22
<
Regenaxer >
(Too busy to check the RFC now ;)
09:23
miskatonic has joined #picolisp
09:24
<
Regenaxer >
But why does strato send a space then?
09:24
<
m_mans >
But all this in case of EHLO (!)
09:25
<
m_mans >
that means client supports extension
09:25
<
m_mans >
extensions
09:25
<
m_mans >
so with HELO you are OK checking "250 " I suppose
09:28
<
Regenaxer >
I don't remember the details atm
09:38
<
m_mans >
How is the weather in Augsburg? We have -20C now
09:42
<
miskatonic >
maybe the weather in the alpine valleys near Augsburg will soon reach that mark
09:43
<
Regenaxer >
We have it very warm all January. Max around 10 C in the daytime
09:43
<
Regenaxer >
at the momend 1 C though
09:46
<
miskatonic >
Putin is now sending some colder winds to Germany in order to increase the sales of Gazprom
09:47
<
Regenaxer >
haha, probably
09:48
<
aw- >
Regenaxer: same here
09:48
<
Regenaxer >
Relatively warm?
09:48
<
aw- >
max ~10C, nighttime down to ~3C
09:49
<
aw- >
Regenaxer: did you visit Okinawa when you were living in Japan?
09:50
<
Regenaxer >
Yes, once
09:50
<
Regenaxer >
My wife's brother lives there
09:51
<
aw- >
i've never been, looks nice
09:52
<
aw- >
they get really bad typhoons every summer though
09:52
<
miskatonic >
that's why they invent so many programs with German names in Japan, such as Wanderlust
09:52
<
Regenaxer >
and a bit far off from the main islands
09:52
<
Regenaxer >
miskatonic, yep :)
09:53
<
Regenaxer >
Well, it originates from medical students 100 years ago
09:53
<
Regenaxer >
Doctors in Japan still use German instead of Latin iirc
09:54
<
Regenaxer >
(docs like to obfuscate when they talk)
09:55
<
miskatonic >
pil should be used more for natural language processing
10:11
rob_w has joined #picolisp
10:12
orivej has quit [Quit: No Ping reply in 180 seconds.]
10:13
orivej has joined #picolisp
12:51
<
tankfeeder >
Regenaxer: here?
13:13
miskatonic has quit [Remote host closed the connection]
13:36
aw- has quit [Quit: Leaving.]
13:41
<
tankfeeder >
point coordination
13:41
<
tankfeeder >
in list (0 0)
13:41
<
tankfeeder >
infinite coordinations
13:42
<
tankfeeder >
infinite grid
13:42
<
tankfeeder >
i will set and con on list to move cursor
13:42
<
tankfeeder >
i need collect uniq coordinates
13:42
<
Regenaxer >
extending the grid?
13:42
<
tankfeeder >
no, only coordinate it points
13:43
<
tankfeeder >
i think about:
13:43
<
Regenaxer >
'collect' in a database?
13:43
<
tankfeeder >
push1 ‘R copy L
13:44
<
tankfeeder >
is it ok?
13:44
<
Regenaxer >
Is the copy needed?
13:44
<
Regenaxer >
I understand you want to con or conc later
13:45
<
Regenaxer >
But if the list L is created new, no copy is needed
13:45
<
tankfeeder >
for this
14:12
<
tankfeeder >
did it
14:18
<
Regenaxer >
Instead of (copy L) I would always just do (list 0 0)
14:18
<
Regenaxer >
no need to keep L around
14:18
<
Regenaxer >
(inc L) -> (inc (car L)) etc
14:19
<
Regenaxer >
(inc L) -> (inc (car R)) I mean
14:19
<
Regenaxer >
(inc (cdr L)) -> (inc (cdar R))
14:40
alexshendi has joined #picolisp
14:47
orivej has quit [Ping timeout: 256 seconds]
15:02
orivej has joined #picolisp
15:05
<
tankfeeder >
i dont understand you idea
15:05
<
tankfeeder >
R is list of uniq coordinates
15:21
rgrau has quit [Ping timeout: 248 seconds]
15:26
rgrau has joined #picolisp
15:30
<
Regenaxer >
But the value of L is used
*only* for the purpose of copying
15:30
<
Regenaxer >
it is never put somewhere
15:31
<
Regenaxer >
So instead of (copy L) it is better to do directly what is needed, ie. build a fresh list with (list 0 0)
15:31
<
Regenaxer >
Not important :)
15:32
<
tankfeeder >
no, this is important
15:32
<
tankfeeder >
you mean (push1 'R (list 0 0)) ?
15:33
<
Regenaxer >
and later (inc (car R)), (inc (cdar R)) etc.
15:34
<
Regenaxer >
I always feel that something is wrong if 'copy' in needed
15:38
<
tankfeeder >
let me rewrite
15:44
<
tankfeeder >
Regenaxer:
15:44
<
tankfeeder >
so I have 8192 items in R, should be 2565
15:45
<
Regenaxer >
Looks good!
15:45
<
tankfeeder >
but wrong
15:45
<
Regenaxer >
hmm, why?
15:46
<
Regenaxer >
Why push1 ?
15:46
<
Regenaxer >
the value changes
15:46
<
Regenaxer >
and push1 checks
15:47
<
tankfeeder >
in your variation R have 0 and 1 and -1 in combinations
15:47
<
tankfeeder >
in mine version there uniq coordinates
15:49
<
Regenaxer >
you lost one line
15:49
<
Regenaxer >
in the old version (push1 'R (copy L))
15:49
<
Regenaxer >
hmm, perhaps ok
15:49
<
Regenaxer >
it is at the start of until
15:50
<
Regenaxer >
But I see that the logic is different now
15:51
<
tankfeeder >
this is as I understood your idea
15:51
<
Regenaxer >
before you modified L
15:51
<
Regenaxer >
yes, I see
15:51
<
tankfeeder >
there is no L anymore
15:51
<
Regenaxer >
Maybe my proposal was not correct here
15:52
<
Regenaxer >
At least must be handled differently
15:52
<
Regenaxer >
Then stay with copy :)
15:52
<
tankfeeder >
go forward
15:52
<
tankfeeder >
let it go
15:53
<
Regenaxer >
Insted of push1 copy you would (push1 'R (list (cXXXr R ... etc.
15:54
<
Regenaxer >
I did not think about this algo
15:58
<
Regenaxer >
But considering all this, I think your copy solution was not bad
16:02
<
tankfeeder >
next task
16:02
<
tankfeeder >
adventcoins mining
16:18
orivej has quit [Ping timeout: 255 seconds]
16:33
<
tankfeeder >
i did it :)
16:33
orivej has joined #picolisp
16:38
orivej has quit [Ping timeout: 255 seconds]
18:27
alexshendi has quit [Ping timeout: 256 seconds]
21:09
<
rick42 >
Regenaxer: type in ref. goto entry for `by` function: s/argument form the/argument from the/
21:09
<
rick42 >
s/type/typo/
21:09
<
rick42 >
how ironic. i typo-ed the word "typo" lol!
21:14
libertas has quit [Ping timeout: 248 seconds]
21:15
libertas has joined #picolisp
21:49
libertas has quit [Remote host closed the connection]
21:49
libertas has joined #picolisp
22:24
rob_w has quit [Read error: Connection reset by peer]