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 2021-07-24 00:00:00Z and 2021-07-25 00:00:00Z
Avatar
@Patiga @Learath2 great deployment, guys πŸ₯³
Avatar
No integration hell this time
Avatar
Avatar
Patiga
@Learath2 tested functionality on a private discord server, the checks if the map is from a trusted source are copied from other parts of the code
I'll merge if I have time for a coffee at the airport. Otherwise I guess I can merge it tonight
Avatar
chillerdragon BOT 2021-07-24 06:43:13Z
oh nice @Patiga you made maps shiftable to the bottom right with twmap?
06:43
also which troll sent confettis on matrix :D
Avatar
It takes a different kind of ignorant to travel in the middle of a pandemic and not even read about regulations
07:05
5 people in front of me in the line. Not one that booked their covid test in advance as the airport regulations say
justatest 1
Avatar
I was going to archive the first 3 years of teehistorian and it's like nothing
08:13
3gb
Avatar
Ah I was using the wrong filter :/
Avatar
chillderdragon: yeah, and also reducing the size of every layer as much as possible :)
Avatar
chillerdragon BOT 2021-07-24 08:21:38Z
cool!
Avatar
Avatar
Learath2
Ah I was using the wrong filter :/
how much is it?
Avatar
Well it takes so long to go through them, so I started the find but it'll be a while
Avatar
chillerdragon BOT 2021-07-24 09:09:28Z
timakro: thanks for motivating me to giving email server a try again. Suprisingly it worked this time πŸ₯³
You're invited to talk on Matrix
Avatar
how can i get path to config dir?
09:34
i mean in code
Avatar
chillerdragon BOT 2021-07-24 09:40:18Z
There are multiple ones why exactly do you need the path? Usually one uses a method provided by storage.cpp that handles the path for you
Avatar
i need to save files
09:41
with my specific way and i need path
Avatar
chillerdragon BOT 2021-07-24 09:42:46Z
open file with the Storage() method and save
Avatar
zzzz okay
Avatar
chillerdragon BOT 2021-07-24 09:44:03Z
DDraceNetwork, a cooperative racing mod of Teeworlds - ddnet/config.cpp at 59deb42252cfe9b999c3991db88f678ca607ea58 · ddnet/ddnet
Avatar
k thx
Avatar
It has been happening to all teams. Send CGameTeams::OnCharacterStart even if the team has already started.

Checklist

  • [x] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test if it works standalone, system.c especially
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested...
πŸ₯Ί 2
πŸ™ 2
Avatar
@Learath2 can you take a look? πŸ™‚ ^
Avatar
for what it's worth, it's never happened to me on USA
11:32
but maybe you know that already
Avatar
4338b4f Fix out of bounds in editor render image - Jupeyy 95c936d Merge #3956 - bors[bot]
Avatar
chillerdragon BOT 2021-07-24 13:11:44Z
xd
Avatar
Hello. How you do update the language files? I doubt you do it manually but I can't find a script for that.
Avatar
have you looked in the script dir?
Avatar
Avatar
Deleted User
have you looked in the script dir?
Sure I did. But you know, asking a question in a chat usually makes you smarter and makes you more attentive. πŸ˜„ Sometimes the answer came right after the message, sometimes a bit later. I looked at every script in the scripts. But I missed the subdir https://github.com/ddnet/ddnet/tree/master/scripts/languages Thank you @Deleted User! (edited)
DDraceNetwork, a cooperative racing mod of Teeworlds - ddnet/scripts/languages at master · ddnet/ddnet
Avatar
^^
Avatar
Configuring nginx is so weird, the if suggests an imperative programming language but it's all a weird declarative jumble with insane edge cases and workarounds
14:54
You basically require the firefox network debugging tools to verify your nginx config is doing what you think it should be doing
Avatar
chillerdragon BOT 2021-07-24 15:17:48Z
:D
Avatar
As an example of what a "real" device driver in Rust would look like, Wedson Almeida Filho has posted a translation of the PL061 GPIO driver alongside the original. For ease of reading, the resulting HTML has been reformatted a bit and placed below; viewing in a wide window is recommended.
15:18
side by side with a c one
Avatar
Avatar
Learath2
Italy still doesnt accept fully vaccinated people from outside the eu without a test. Which is a shame, hopefully they fix it before I come back
I'm flying to Italy next week from USA. I am fully vaccinated. Do I need to take a test before I fly there? Or at the airport?
Avatar
@timakro, a very good tool to help debug nginx routes is add_header
Avatar
@Learath2: yep i'm doing that
Avatar
Avatar
YupHio
I'm flying to Italy next week from USA. I am fully vaccinated. Do I need to take a test before I fly there? Or at the airport?
No tests needed from the US. You only need your green certficate showing your second dose was 14 days ago
Avatar
man i wish nginx was a full blown programming language
Avatar
I have the white vaccination card from the CDC. My second dose was a couple months ago. Sounds like I should be fine then. Thanks @Learath2
Avatar
I wish nginx wasnt this insane. The way nested location blocks work is just flat out stupid
Avatar
can you explain to me how they work?
Avatar
They are treated like its not nested at all basically
Avatar
is my assumption right that a request is always handled by a single location block? in other words a request can't enter multiple location blocks?
Avatar
Only a single location block will ever match a request indeed
15:30
And it is quite weird. It uses the longest regex match unless a ^~ route matches exactly
Avatar
yeah the order of the blocks doesn't matter in most cases
15:31
i found a way to disable auth_basic in case a cookie is set, currently i'm trying to set that cookie after the user authenticates
15:33
but sometimes this cookie is returned with return statements without the user authentication
15:33
but sometimes this cookie is returned with return statements without the user authenticating
15:33
i basically want a "remember me" for auth_basic
15:33
so what are the rules for nested location blocks?
15:33
does every level need to match?
15:36
i guess my actual problem is this https://stackoverflow.com/questions/40447376/auth-basic-within-location-block-doesnt-work-when-return-is-specified you can't protect returns with auth_basic
i thought this would work but for some reason it skips the auth_basic and always returns 200. Same happens if i swap 200 for a 301 redirect. If i comment out the return statement it works ok. Ide...
Avatar
@Timakro the inner blocks must share a prefix with the outer, so basically the outer has to match indeed
15:36
lol
Avatar
ok then nested location blocks are really just a shortcut for writing them all out in a list
Avatar
@Timakro yep, it's for organization mostly even, as the outer block won't be executed for the inner ones. And the order within blocks matters very little
15:38
Why is discord doing this?...
Avatar
idk it looks strange
Avatar
I specifically don't hilight anyone
15:38
<@266885514429202433>akro does this work maybe?
15:38
LOL
Avatar
are you on discord?
Avatar
yep, I'm on discord
Avatar
does it work when i ping you? @Learath2
15:39
@timakro maybe this works?
Avatar
yep
15:39
what were you doing different?
15:40
you wrapped it in code? xD
Avatar
I had to put it within backticks so discord wouldn't highlight a guy named tim
15:40
yep, wrapped in code
Avatar
huh, from my side it works super nice transparently
15:40
i couldn't even tell you are on discord
Avatar
on discord it's fairly obvious you are on matrix
Avatar
I guess when names have this hash and a number behind them it means discord
15:45
Wait, so @Ryozuki chillerdragon @YupHio @Deleted User you all are on matrix?
You're invited to talk on Matrix
15:46
Hm no doesn't look like it
15:46
chillerdragon is
Avatar
chiller is on matrix the others are discord
Avatar
i have an account somewhere, but i'd use it for friends only anyway^^
Avatar
chillerdragon BOT 2021-07-24 15:50:35Z
The bridge is so random I am also confused who is here and who is there
Avatar
Avatar
Patiga
how much is it?
316gb before 2019
15:59
I now need to download 300~gb on a 20mbit connection
16:00
Will only take me 33 hours πŸ˜„
Avatar
When I click on timakros avatar, it says chillerdragon HuhChamp
Avatar
Does anyone understand this? No? Good.error_page 418 = @auth; if ($cookie_auth != "ntbCzGEAbiz58YcbrB4Wc4DJG") { return 418; } location @auth { auth_basic "closed site"; auth_basic_user_file htpasswd; try_files /dev/null @cookie; } location @cookie { add_header Set-Cookie "auth=ntbCzGEAbiz58YcbrB4Wc4DJG;max-age=31536000;path=/"; return 302 $request_uri; }
19:26
And yes, I just changed the token
19:26
I swear this is the only combination that does what I want
19:26
Switching out any statement for another breaks the whole thing
19:27
This is pushing the boundaries of nginx to its limits
19:27
Might turn this into a blog post
19:29
Should probably offer prize money for finding a bug in this
Avatar
what u trying to use nginx for
19:35
at the end of the day its better to use it as a reverse proxy and do anytghing with ur own http sv
Avatar
@timakro if no one understands it you are doing it right
Avatar
can anyone explain me for what purposes do people set up nginx
Avatar
to serve websites, to proxy stuff
Avatar
>to server websites how actually?
Avatar
i broke learath xd
Avatar
@gerdoe either it reads a html file and servers it
19:48
or it talks to a php fpm
19:48
or it proxies it to another http server
19:49
serves*
Avatar
it can talk to like anything, as long as it speaks a known protocol, like fpm or uwsgi
19:49
You can make backends in assembly πŸ˜›
Avatar
Assembly language is popular in all kinds of system software and we believe that web development can also benefit from the advantages it provides. Today we're pleased to add support for assembly language to NGINX Unit. Web development in assembly has never been so easy.
Avatar
why not
Avatar
b24fad1 Make "can tee start the race" condition readable - heinrich5991 b5363d4 Fix "tee hasn't hit the start line yet" error - heinrich5991 78d5cd8 Shuffle a condition around to get cleaner code - heinrich5991 9bfe4ec Merge #3966 - bors[bot]
Avatar
fixes #3951 by adding a state if no master was found

Checklist

  • [x] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test if it works standalone, system.c especially
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](ht...
Exported 129 message(s)