#meta 2023-10-07

2023-10-07 UTC
gRegorLove_ and sp1ff joined the channel
#
catgirlin.space
edited /Luau (+601) "add compat section"
(view diff)
#
Loqi
[New Event] david.shanske.com created "Oct 11, 2023 6:00pm Homebrew Website Club - Pacific" https://events.indieweb.org/B2Q8dkmuv36x
#
kaja.sknebel.net
edited /User:Kaja.sknebel.net/upcoming-hwcs (+163) "update from events.indieweb.org"
(view diff)
gRegorLove_, mretka and gRegorLove__ joined the channel
#
aaronpk
ok going to try the slack gateway update now since it's pretty quiet in here and i have some time
IWSlackGateway, [snarfed], [snarfed]1, [aaronpk], [aaronpk]1 and [aaronpk]2 joined the channel
#
GWG
aaronpk: Exciting
#
aaronpk
something is wrong, debugging now
IWSlackGateway and [aaronpk] joined the channel
#
[aaronpk]
one more time
#
[aaronpk]
there we go
IWSlackGateway joined the channel
#
GWG
Hi, aaronpk and [aaronpk]
[schmarty] joined the channel
#
[schmarty]
Hooray aaronpk++
#
Loqi
aaronpk has 23 karma in this channel over the last year (108 in all channels)
#
capjamesg
aaronpk++
#
Loqi
aaronpk has 24 karma in this channel over the last year (109 in all channels)
[tantek] and [catgirlinspace] joined the channel
#
Loqi
aaronpk has 25 karma in this channel over the last year (110 in all channels)
#
[catgirlinspace]
wait that isn’t how it works
#
[catgirlinspace]
[aaronpk] uhhh something seems off me think…
[aaronpk] joined the channel
#
[aaronpk]
why is it doing that for you but not everyone else...
#
[catgirlinspace]
i’m special
#
[catgirlinspace]
i have a silly twin me now :3
#
[catgirlinspace]
i can meow at myself now :3 meow
#
aaronpk
working on it
#
c​apjamesg
🤣
IWSlackGateway joined the channel
[aaronpk] joined the channel
[snarfed] joined the channel
#
aaronpk
[catgirlinspace] can you say something again?
[catgirlinspace] joined the channel
#
[catgirlinspace]
am still special :3
#
aaronpk
aha that was my suspicion... apparently your slack user ID is more than 9 characters :D
#
Loqi
😊
#
aaronpk
i need a hash algorithm that results in exactly 10 chars using A-Za-z0-9
#
[catgirlinspace]
don’t have any ideas, me sucks at hash stuff >.<
#
aaronpk
or i cross my fingers that there will never be 2 slack users in here with the same 10-char subtring of the user ID that I use
#
sknebel
oh, username length limit?
#
[catgirlinspace]
wait can the user id be like, made into a binary string or something
#
[catgirlinspace]
i do something silly like that for static file names
#
aaronpk
yeah, IRC usernames are limited to 10 chars
#
aaronpk
my anecdata was seeing that slack user IDs were 9-10 chars
IWSlackGateway and [aaronpk] joined the channel
#
Loqi
pong
#
[aaronpk]
[catgirlinspace] ok try one more time
#
sknebel
[aaronpk]: really only a-z+numbers? otherwise I'd have said hash->urlsafe-base64->truncate
#
sknebel
with hash really being any hash function to taste
#
sknebel
(that'd have - and _ in addition)
#
aaronpk
full charset is 0-9 A-Z a-z [ \ ] ^ _ ` { | } ~ - .
#
sknebel
then my suggestion works
#
aaronpk
i guess the question is, are the odds of a hash collision of a truncated hash better or worse than a slack user ID collision of the last 10 chars of a slack user ID
#
sknebel
good question
#
sknebel
depends how slack IDs work, and of course we dont know that
#
aaronpk
given that newer users seem to have longer ID, I assume they are somewhat sequential
#
sknebel
aaronpk: and this only would cuase them to look like the same user to the network, right?
#
sknebel
because we dont rely on this anywhere?
#
aaronpk
yeah, the goal is to have a stable user ID for slack users for the IRC network
#
aaronpk
prior to this change, the username was always "slackuser" for all users of the bridge
#
sknebel
then I'd say its fine to just take the end, a collision causing issues seems quite unlikely then
#
sknebel
I guess hash would protect against slack suddenly putting forbidden chars in the ID
#
aaronpk
oh yeah good point, maybe that's a better plan then
#
aaronpk
i wish i knew how to do the math on calculating hash collision probabilities of just a substring of the hash
#
aaronpk
it's probably fine, i just want to make sure it's not going to be significantly worse
#
aaronpk
10 chars ends up being about 1/4 of the sha256 hash
#
aaronpk
so does that mean the odds of a collision of the substring are 4x the odds of a collision of the full string?
#
sknebel
assuming the hash function is proper, its purely dependent on how many bits you use. birthday problem
#
aaronpk
right so i'm using about 1/4 of the bits
#
capjamesg
What is a bit?
#
Loqi
bit is an experiment to have a non-centalized TLD when domains can be bought with namecoin (cryptocurrency) instead of just via registrars https://indieweb.org/.bit
#
capjamesg
Loqi, we need to improve your information theoretic literacy :D
#
sknebel
!calc 2^((64/8*10)/2)
#
sknebel
!calc 2**((64/8*10)/2)
#
sknebel
sigh, what syntax does WA use ...
#
sknebel
okay, on the web it works
#
aaronpk
!calc 2^((64.0/8.0*10.0)/2.0)
#
Loqi
1099511627776
#
sknebel
!calc 2^((6.0*10.0)/2.0)
#
Loqi
1073741824
#
sknebel
actually
#
sknebel
that's how many users you need for a 50% chance there is a collision
#
aaronpk
that should last us a while then
#
sknebel
one-percent chance should still be somewhere in the millions
#
Zegnat
We will need an IndieWeb Eternal September before we need to worry about that one
#
aaronpk
ok hold on to your hats. testing in production
IWSlackGateway joined the channel
#
aaronpk
i would test in dev but it's a lot of work to spin up all the stuff needed to test with actual slack
[aaronpk], [aaronpk]1 and IWSlackGateway joined the channel
#
Loqi
pong
#
[aaronpk]
ok there we go
IWSlackGateway joined the channel
#
Loqi
pong
moodydot and [catgirlinspace] joined the channel
#
[catgirlinspace]
me not special anymore?
[snarfed] joined the channel
#
Loqi
😊
#
aaronpk
still special, just in a different way :)
#
gregorlove.com
edited /Luau (+37) "link dfn, a bit more succinct"
(view diff)
#
gregorlove.com
edited /Lua (-6) "link dfn, /nginx"
(view diff)
[tantek] joined the channel
#
[tantek]
but << {{relevance needed}}
#
Loqi
Sorry, I couldn't find a page named "but" or similar
#
[tantek]
bit << {{relevance needed}}
#
Loqi
ok, I added "{{relevance needed}}" to a brand new "See Also" section of /.bit https://indieweb.org/wiki/index.php?diff=89706&oldid=29226
#
loqi.me
edited /.bit (+40) "[tantek] added "{{relevance needed}}" to "See Also""
(view diff)
#
[tantek]
aaronpk, late reply, however consider mapping usernames <= 10 chats 1:1 and for 11+ chars, map the first 7 chars literally then hash the remaining chars from position 8 on up or the username into the last 3 chars of the mapped username
#
aaronpk
too late
#
[tantek]
Thought it might be yeah. Anyway that's my brainstorm
tabi, tabi1 and aaronpk_web_test joined the channel
#
aaronpk
oops crap i broke the web gateway
tabi2, tabi3, tabi4 and IWSlackGateway joined the channel
IWSlackGateway joined the channel
[aaronpk] joined the channel
#
[aaronpk]
hi from slack
IWSlackGateway and aaronpk_web_test joined the channel
#
aaronpk_web_test
hi from web
#
aaronpk_web_test
yay
#
GWG
We need more aaronpk's
#
capjamesg
We need more GWGs.
#
GWG
GWG, gwg, or gwg_ ?
[catgirlinspace], [tantek] and [schmarty] joined the channel