Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2020-04-21 00:00:00Z and 2020-04-22 00:00:00Z
Avatar
[11:36 PM] fokkonaut: i dont get what exactly you mean, but it would not work
How do you know it wouldn't work if you don't even get it? 😄
Avatar
Trafalgar Law 2020-04-21 09:01:15Z
Avatar
@Learath2 I think it wouldnt because I cant think of a nice way doing it
11:22
I think heinrich doesnt get the problem
Avatar
@deen what are the interactions with players-cache? ranks.py generates it, players.py reads it?
Avatar
@heinrich5991 do you have a couple minutes?
Avatar
yes
12:46
another lecture got cancelled
12:46
uni is very good with internet
Avatar
I'm having trouble crafting an algorithm, I thought maybe you could have an idea
12:47
I have two list of tuples describing the route taken by two people, in the format (total time until node, node), I need to find if these two people are at the same place at the same time
12:48
now that would be simple enough, but both the routes have a special destination point, at which they spend an extra 30 time
12:49
(you spend only an instant in the other nodes)
Avatar
so they only have a chance for meeting at the nodes in an instant? and at the destination points for 30min?
Avatar
Yes, they can only meet at an intermediate node if the tuples match exactly
12:50
Both lists are sorted w.r.t total time until node
Avatar
or if one is at its special destination node and the other is at the same node which is intermediate for him?
Avatar
I'd iterate over both the lists at the same time
12:51
adding another special-cased node for the end of the arrival point stay
Avatar
but that doesn't reduce the problem to the case with no destination
12:54
does it?
Avatar
no, doesn't
12:54
still needs special-cased support for the destination point
12:54
you step one of the iterators (the lower one)
12:55
now check whether the new node is equal to the other or the other's latest is the destination point
12:55
ah, could work without the inserted node as well
12:57
i.e. check whether the new node is completely equal or equal in the place and within 30min of arrival and it's the destination node (edited)
Avatar
hm, if it's within 30 of arrival and it's one of the either destination nodes?
12:57
I think that would work
Avatar
no, if it's the destination node
12:58
you only need to check one way
Avatar
ah because only the user that's in the past moves
Avatar
@heinrich5991 correct
Avatar
@deen UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 1: ordinal not in range(128)
Avatar
[quakenet] deen BOT 2020-04-21 18:47:28Z
ok, so we still have some incompatibility there. how about .decode('utf-8')?
Avatar
the error happens as it's reading the cache file
18:47
before anything happens
Avatar
[quakenet] deen BOT 2020-04-21 18:47:55Z
oh
18:48
didn't happen for me, weird
Avatar
Traceback (most recent call last): File "test.py", line 8, in <module> print(cache.get(b'jao')) File "/home/teeworlds/.local/lib/python3.7/site-packages/diskcache/core.py", line 1198, in get value = self._disk.fetch(mode, filename, db_value, read) File "/home/teeworlds/.local/lib/python3.7/site-packages/diskcache/core.py", line 303, in fetch return pickle.load(reader) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 1: ordinal not in range(128) (edited)
Avatar
overengineering http masters :<
Avatar
[quakenet] ChillerDragon BOT 2020-04-21 21:43:27Z
Avatar
[quakenet] Konsti BOT 2020-04-21 23:49:47Z
DDNet ger under attack?
23:53
i cant see or join any GER Server
Avatar
maybe u are banned
Avatar
[quakenet] Konsti BOT 2020-04-21 23:54:49Z
U
Avatar
check ddnet.tw/status to see if there is an attack, and it seems there isnt
Avatar
[quakenet] Konsti BOT 2020-04-21 23:55:19Z
i was playing and suddenly couldnt move and was kicked for weak connection and now cant join
Avatar
the ddoser must be murican
23:55
why would he ddos at 2 am
Avatar
[quakenet] Konsti BOT 2020-04-21 23:55:56Z
:troll:
Avatar
onby stop ddosing
23:56
troll
Avatar
[quakenet] Konsti BOT 2020-04-21 23:56:10Z
noby ddoser confirmed
Avatar
[quakenet] Konsti BOT 2020-04-21 23:56:13Z
Whis always was right
Avatar
[quakenet] Konsti BOT 2020-04-21 23:56:43Z
abuse
Avatar
whis is retard
Avatar
[quakenet] Konsti BOT 2020-04-21 23:56:56Z
no insults pls ur mod
Avatar
its not insult
23:57
im a doctor and thats my diagnosis
Avatar
[quakenet] Konsti BOT 2020-04-21 23:57:17Z
lmao
23:57
biggest troll confirmed
Avatar
noby is the biggest troll
Avatar
[quakenet] Konsti BOT 2020-04-21 23:57:47Z
so who can help me now and unblock my IP or something xd
Avatar
cant u just restart ur router
Avatar
[quakenet] Konsti BOT 2020-04-21 23:58:16Z
HMM
Avatar
[quakenet] Ryozuki BOT 2020-04-21 23:58:22Z
xd
Avatar
[quakenet] Ryozuki BOT 2020-04-21 23:58:28Z
haha noby cant see this
Avatar
if the server blocked UR ip
23:58
yes i can
Avatar
[quakenet] Ryozuki BOT 2020-04-21 23:58:35Z
he cant see me messages
23:58
no u cant trust me
Avatar
doesnt that mean that the ddos came from U konsti
Avatar
[quakenet] Ryozuki BOT 2020-04-21 23:58:45Z
im watching both discord and irc
23:58
Konsti if u speak with /me onby cant read
Avatar
[quakenet] Ryozuki BOT 2020-04-21 23:59:17Z
Konsti is telling bad things about u noby
23:59
:troll:
Avatar
lol
Avatar
what did he say
Avatar
[quakenet] Ryozuki BOT 2020-04-21 23:59:47Z
nothing, he is dead
Avatar
rip konstroll
Exported 87 message(s)