10:55 <+bridge> [ddnet] > [11:36 PM] fokkonaut: i dont get what exactly you mean, but it would not work 10:55 <+bridge> [ddnet] How do you know it wouldn't work if you don't even get it? 😄 11:01 <+bridge> [ddnet] https://tenor.com/view/shots-fired-gun-gif-4566555 13:20 <+bridge> [ddnet] @Learath2 I think it wouldnt because I cant think of a nice way doing it 13:22 <+bridge> [ddnet] I think heinrich doesnt get the problem 13:34 <+bridge> [ddnet] @deen what are the interactions with players-cache? ranks.py generates it, players.py reads it? 14:45 <+bridge> [ddnet] @heinrich5991 do you have a couple minutes? 14:46 <+bridge> [ddnet] yes 14:46 <+bridge> [ddnet] another lecture got cancelled 14:46 <+bridge> [ddnet] uni is very good with internet 14:46 <+bridge> [ddnet] I'm having trouble crafting an algorithm, I thought maybe you could have an idea 14:47 <+bridge> [ddnet] 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 14:48 <+bridge> [ddnet] now that would be simple enough, but both the routes have a special destination point, at which they spend an extra 30 time 14:49 <+bridge> [ddnet] (you spend only an instant in the other nodes) 14:50 <+bridge> [ddnet] so they only have a chance for meeting at the nodes in an instant? and at the destination points for 30min? 14:50 <+bridge> [ddnet] Yes, they can only meet at an intermediate node if the tuples match exactly 14:50 <+bridge> [ddnet] Both lists are sorted w.r.t total time until node 14:50 <+bridge> [ddnet] or if one is at its special destination node and the other is at the same node which is intermediate for him? 14:51 <+bridge> [ddnet] yes 14:51 <+bridge> [ddnet] I'd iterate over both the lists at the same time 14:51 <+bridge> [ddnet] adding another special-cased node for the end of the arrival point stay 14:54 <+bridge> [ddnet] but that doesn't reduce the problem to the case with no destination 14:54 <+bridge> [ddnet] does it? 14:54 <+bridge> [ddnet] no, doesn't 14:54 <+bridge> [ddnet] still needs special-cased support for the destination point 14:54 <+bridge> [ddnet] you step one of the iterators (the lower one) 14:55 <+bridge> [ddnet] now check whether the new node is equal to the other or the other's latest is the destination point 14:55 <+bridge> [ddnet] ah, could work without the inserted node as well 14:57 <+bridge> [ddnet] i.e. check whether the new node is completely equal or equal in the place and within 30min of arrival 14:57 <+bridge> [ddnet] 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 14:57 <+bridge> [ddnet] hm, if it's within 30 of arrival and it's one of the either destination nodes? 14:57 <+bridge> [ddnet] I think that would work 14:58 <+bridge> [ddnet] no, if it's *the* destination node 14:58 <+bridge> [ddnet] you only need to check one way 14:59 <+bridge> [ddnet] ah because only the user that's in the past moves 16:27 <+bridge> [ddnet] @heinrich5991 correct 20:35 <+bridge> [ddnet] @deen ``UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 1: ordinal not in range(128)`` 20:47 <@deen> ok, so we still have some incompatibility there. how about .decode('utf-8')? 20:47 <+bridge> [ddnet] the error happens as it's reading the cache file 20:47 <+bridge> [ddnet] before anything happens 20:47 <@deen> oh 20:48 <@deen> didn't happen for me, weird 20:48 <+bridge> [ddnet] ``` 20:48 <+bridge> [ddnet] return pickle.load(reader) 20:48 <+bridge> [ddnet] UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 1: ordinal not in range(128) 20:48 <+bridge> [ddnet] ``` 20:49 <+bridge> [ddnet] ``` 20:49 <+bridge> [ddnet] Traceback (most recent call last): 20:49 <+bridge> [ddnet] File "test.py", line 8, in 20:49 <+bridge> [ddnet] print(cache.get(b'jao')) 20:49 <+bridge> [ddnet] File "/home/teeworlds/.local/lib/python3.7/site-packages/diskcache/core.py", line 1198, in get 20:49 <+bridge> [ddnet] value = self._disk.fetch(mode, filename, db_value, read) 20:49 <+bridge> [ddnet] File "/home/teeworlds/.local/lib/python3.7/site-packages/diskcache/core.py", line 303, in fetch 20:49 <+bridge> [ddnet] return pickle.load(reader) 20:49 <+bridge> [ddnet] UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 1: ordinal not in range(128) 20:49 <+bridge> [ddnet] ``` 22:24 <+bridge> [ddnet] overengineering http masters :< 23:43 <+ChillerDragon> updating macOS is fun :D https://zillyhuhn.com/cs/.1587498918.png