Show Idle (>14 d.) Chans


← 2022-09-03 | 2022-09-05 →
awt[asciilifeform]: $ticker btc usd
busybot[asciilifeform]: Current BTC price in USD: $19728.58
bitbot[asciilifeform]: Logged on 2022-09-03 14:46:11 asciilifeform[jonsykkel|crawlerbot|billymg]: dunno re all this oil notions, ancestral su army belt never oiled and loox a-ok lol
asciilifeform expected ^ ! lol
jonsykkel[asciilifeform]: oil gose in car
awt[asciilifeform]: phf any recommended reading wrt breaking lines of utf8 encoded text properly?
jonsykkel[asciilifeform]: that cram_unsafe function assumes a valid utf8string and returns the size (in bytes) of the utf8string (starting from begining of string) that it can fit into bufer of size buf_size
jonsykkel[asciilifeform]: wihtout spliting a char in half
awt[asciilifeform]: ty jonsykkel
phf[asciilifeform]: http://logs.bitdash.io/pest/2022-09-04#1012135 << you don't need any special mechanisms, i just use a dumb iterator that encodes a subsequences until i get the right length
bitbot[asciilifeform]: Logged on 2022-09-04 16:37:19 awt: phf any recommended reading wrt breaking lines of utf8 encoded text properly?
phf[asciilifeform]: e.g. s=u'a\u0430\u65e5'; [len(s[:i].encode('utf-8')) for i in range(1,len(s)+1)]
phf[asciilifeform]: awt, http://paste.deedbot.org/?id=E9bu is the general idea. that's just a naive port of an equally naive algo i use in pest.lisp
phf[asciilifeform]: but notice! that \u1dd4 is a combining character that gets applied to `o' before it, and the combination of the two looks like oᷔ
phf[asciilifeform]: correct method would be rewrite/augment the function so that instead of considering a unicode character it would consider a unicode character group, and when u'o\u1dd4' doesn't fit, then skip both o and \u1dd4
phf[asciilifeform]: because i don't have that implemented you see output like 6 а日o 6 ᷔaа
phf[asciilifeform]: but this should give you the general idea
awt[asciilifeform]: Nice. Works as advertised.
awt[asciilifeform]: Let the walls of text flow.
signpost[asciilifeform]: http://logs.bitdash.io/asciilifeform/2022-08-29#1113428 << this thing does A LOT of nutty shit in the "installer" script.
awt[asciilifeform]: I'm getting address cast messages from jonsykkel
phf[asciilifeform]: yah, i got spammed with junk…
phf[asciilifeform]: awt, i'm getting a bunch of addresscast messages from you, at a frequency of about 1/s
awt[asciilifeform]: phf should be bursts of several every 15s
phf[asciilifeform]: *sigh* don't make me break out my slide rule
awt[asciilifeform]: jonsykkel: it looks like smalpest is reflecting my address_cast packets right back at me
awt[asciilifeform]: Δαρείου καὶ Παρυσάτιδος γίγνονται παῖδες δύο, πρεσβύτερος μὲν Ἀρταξέρξης, νεώτερος δὲ Κῦρος: ἐπεὶ δὲ ἠσθένει Δαρεῖος καὶ ὑπώπτευε τελευτὴν τοῦ βίου, ἐβούλετο τὼ παῖδε
awt[asciilifeform]: ἀμφοτέρω παρεῖναι.
jonsykkel[asciilifeform]: awt: inded, my pestron unchanged for 6months so it dosnt necesarily behave specfully in all cases
awt[asciilifeform]: jonsykkel: ok. Good test case though - those should be getting deduped and dropped by blatta but they're not for some reason.
jonsykkel[asciilifeform]: awt: they must be "deduped" by cheking the speker field
jonsykkel[asciilifeform]: there was some discusion
awt[asciilifeform]: Oh hrm. Must have missed that.
bitbot[asciilifeform]: (asciilifeform) 2021-12-30 asciilifeform: http://logs.nosuchlabs.com/log/asciilifeform/2021-12-30#1070489 << there's no wot entry / key for self, so this aint actually a problem
dulapbot: (asciilifeform) 2021-12-30 jonsykkel: asciilifeform: are you meant to check that speaker field matches peer that you successfully decrypted addr cast from? (if not, how to distinguish bounce baks of own addr casts)
awt[asciilifeform]: jonsykkel: still, they go into the long buffer before being sent out, so should be deduped.
jonsykkel[asciilifeform]: awt: ye im not sure, looking at code i think posibly made a mistake originaly, not putting these in dedup bufer when sending adn thats why i had problem
jonsykkel[asciilifeform]: i cant remember why did like this
jonsykkel[asciilifeform]: i guess this discusion was from before it was specified that mesages originated from ur own station gets put in buffer
jonsykkel[asciilifeform]: but doing that should inded solve the problem without ahveing to do the speaker thing
awt[asciilifeform]: Wow. my station managed to update the at for several cold peers to its own address, then seemingly send itself address cast messages.
phf[asciilifeform]: the ultimate "i only want to talk to smart and intelligent people" move
← 2022-09-03 | 2022-09-05 →