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 2022-10-22 00:00:00Z and 2022-10-23 00:00:00Z
Avatar
Avatar
louis
sql justatest
What's wrong with SQL?
Avatar
wait are u learning python and sql same time
00:53
are u interested in data analytics
Avatar
Maybe justatest
00:59
I'm just tryna see what suits me best, and rn sql is kinda cool
Avatar
Read few articles that NoSQL dbs are better
03:45
Probably depends on your experience and tasks, but by description it sounds much better
Avatar
Just stick to traditionam rdbms, you can mess around with nosql later when you know what you are doing
Avatar
[quakenet] ChillerDragon BOT 2022-10-22 09:49:16Z
I assume doing this in SendPacket() would be bad SecurityToken = htonl(SecurityToken);
Avatar
9/10 if you think you need a database you are looking for a rdbms
Avatar
Avatar
Learath2
Just stick to traditionam rdbms, you can mess around with nosql later when you know what you are doing
So stick to SQL for now? That's what Im getting
Avatar
Avatar
Anime.pdf
Read few articles that NoSQL dbs are better
plain wrong
11:28
most nosql are not even ACID compliant
11:28
and most data is relational
11:29
must watch
Avatar
Avatar
Ryozuki
most nosql are not even ACID compliant
Who cares about ACID guarantees. It is webscale
11:40
Ryo when when nosql
Avatar
compressed images don't work when embedded in a map?
Avatar
Avatar
Anime.pdf
2010πŸ’€ πŸ’€ πŸ’€
2010 but valid today
Avatar
"Update the email address for everyone in your table. Storm’s email is storm@codecademy.com." Is there a quicker way of doing it instead of UPDATE friends SET email = 'storm@codecademy.com' WHERE id = 1; For every ID in my table?
Avatar
Most flavours of sql will do all rows if you dont have a WHERE clause at all
14:59
Some will force to use a WHERE clause, then you can do something like WHERE 1=1 or WHERE id = id or WHERE id > 0
15:00
I don't remember which one requires the trick, maybe postgres
Avatar
id = id worked
Avatar
Postgres doesnt iirc
16:15
4090 on the left 3080 right
16:16
My sister case wasnt big enough so gotta wait
16:16
Soon ill get the 3080 BASED for free
Avatar
can you add radeon rx570 to comparison, cuz i never saw any of rtx gpus irl greenthing
Avatar
@Anime.pdf probs like 1 and a half fan of the 3080
16:24
The 3080 is already huge
Avatar
bruh even my rx570 couldnt properly fit in my case πŸ’€ (edited)
Avatar
Avatar
Ryozuki
My sister case wasnt big enough so gotta wait
Why is your sister getting a 4090?
Avatar
Because she can
16:26
Literally
Avatar
Ah, the best reason of all
Avatar
Can afford it, and more
16:27
Xd
16:27
@Learath2 succesfull patreon artist with 2k~ patreons
16:27
BASED
Avatar
Does she draw weebstuff?
Avatar
Guess what she draws
16:28
Haha
16:28
Ye
16:28
Mostly muricans pay
16:28
Now the dollar is up too
16:28
Even richer
Avatar
Avatar
Ryozuki
@Learath2 succesfull patreon artist with 2k~ patreons
patrons* πŸ€“
Avatar
I'll order sth aswell
Avatar
Contribute to the 4090
Avatar
And thus, to my 3080
16:30
greenthing
Avatar
Avatar
Ryozuki
@Learath2 succesfull patreon artist with 2k~ patreons
2k~ is pretty insane btw. She must be very famous. I have friends that draw on patreon and they have like 15-20 patrons
Avatar
She is
16:30
300k followers on twitter
16:31
My family thought i would be the better off, cuz programmer and that my sister would work at mc donalds or smth
16:31
Cuz art
16:31
But surprised everyone
16:31
She owns a house now
16:31
In barcelona
Avatar
300k damn followers damn
16:32
That big of a following I've probably randomly come across some of her work
16:32
Its nsfw mostly btw
16:32
xd
Avatar
Well obviously, how else would she make that much
Avatar
Weebs and furries pay a lot for their nsfw
Avatar
Well obviously how else would Learath have seen it
Avatar
I can share it to u on dm
16:33
If u do nt leak
Avatar
Sure, gimme a dm
16:34
I didn't know weeb ran in the genetics
Avatar
wtf 300k
Avatar
Yep yep
16:38
I got my 3rd covid vaxx
16:38
To go to japan
16:38
monkalaugh
Avatar
which ones did you take
Avatar
2 moderna, 1 pfizer
16:38
I couldnt choose
Avatar
did pfizer hurt
16:39
i only got 2 sinopharm so my social credit score is through the roof
Avatar
So far not hurting
16:42
I got pfizer today
Avatar
Avatar
Learath2
Ah, the best reason of all
i'd say worst reason (but i guess your comment was sarcastic)
Avatar
Avatar
Ryozuki
So far not hurting
There may or may not be a chance that your arm will hurt a lot tomorrow and the day after tomorrow
Avatar
@Ryozuki send link pls
Avatar
If u dont leak
Avatar
And a possible temperature
Avatar
Avatar
Alexander
There may or may not be a chance that your arm will hurt a lot tomorrow and the day after tomorrow
That happened with moderna
Avatar
why would i?
Avatar
Just sayin xd
Avatar
Btw make sure to extract the 5G chip they put in you before it turns your brain into a soup
16:45
troll
Avatar
Avatar
Chairn
i'd say worst reason (but i guess your comment was sarcastic)
No, I was serious. It's a joy to be able to afford the things you want even if you can't justify it. It's the neoliberal dream
Avatar
U don't need vaccine
16:45
Covid ez
Avatar
I need to travel to japan
Avatar
i eat covid for breakfast
Avatar
Rei outplayed covid with an aled
troll 1
Avatar
Avatar
Ryozuki
To go to japan
Oh, are you going over the new years?
Avatar
Yes told u
16:45
From 24 dec to 2 jan
Avatar
I thought you were just thinking about it
Avatar
I got all paid
16:46
Ill do scale at frankfurt germany
Avatar
1 week is really tight, plan well
16:46
Cant do more cuz work xd
Avatar
I spent 2 and still didn't get to see everything I wanted to see
Avatar
Avatar
Learath2
No, I was serious. It's a joy to be able to afford the things you want even if you can't justify it. It's the neoliberal dream
well, i just don't get it, especially if you don't have a need for it
Avatar
2/3 of the trip are paid by my sister BASED
Avatar
Avatar
Ryozuki
2 moderna, 1 pfizer
I got the exact opposite. 2 pfizer 1 moderna
Avatar
how much is your sister making per month ryo?
Avatar
Avatar
Chairn
well, i just don't get it, especially if you don't have a need for it
Well do you never indulge in things you don't absolutely need? The richer you are the more you can indulge
Avatar
10k or so $
Avatar
Avatar
Learath2
Well do you never indulge in things you don't absolutely need? The richer you are the more you can indulge
I know a guy that just takes a vacation whenever he feels bad
Avatar
i do sometimes learath, but not on things that are worth more than few tens of euros
Avatar
Avatar
Ryozuki
Its nsfw mostly btw
(asking libk for a furfriend)
Avatar
taking vacation is different
16:48
it's not material if you stay at home instead of going to work
Avatar
Avatar
Chairn
i do sometimes learath, but not on things that are worth more than few tens of euros
That's because you just aren't rich enough. Cost is really a relative thing
16:49
(Or maybe you are and you are budget concious idk)
Avatar
who says im not rich enough?
Avatar
at some point of income you do not care what you buy, you don't even look at the price tag, you just go in the store, pick what you want and buy it.
Avatar
Avatar
Meekrioz
at some point of income you do not care what you buy, you don't even look at the price tag, you just go in the store, pick what you want and buy it.
Exactly. I know so many people like this around me.
Avatar
i don't look prices when im grocery shopping, isn't that nice enough?
Avatar
Avatar
Chairn
i don't look prices when im grocery shopping, isn't that nice enough?
Now bump it to the next level
Avatar
nah, i have a conscious
Avatar
i only look at discount products because they are tagged with a red shield, other than that, same. i buy what i crave and want.
Avatar
you know that little voice in the head?
Avatar
when it comes to grocery shopping, sadly i am not that rich that i can just do that in a dealership for cars
16:51
SoonTm
16:51
soon ill work at google and make 350k a year
16:51
Copium
OMEGADANCE 1
Avatar
sooner or later, i will go into the porsche dealership near my place, buy the gt3rs, drive it on the autobahn, crash it and die with a smile PeepoShy
Avatar
Avatar
Ryozuki
soon ill work at google and make 350k a year
soon google will work at you at some point troll
Avatar
Avatar
Ryozuki
soon ill work at google and make 350k a year
don't be evil πŸ™‚
16:53
cant win that much without working for the devil
Avatar
nah it's good to have goals like that
16:53
maybe not google
Avatar
nasa i.e
Avatar
Idk. There is just sth very pleasing about getting something just out of pure desire
Avatar
ddnet.tw YEP
Avatar
there are unicorn companies that prob pay more than google btw
16:53
but working at google itself is a stamp on your CV
16:53
a permanent gold diploma that gets u most work
Avatar
Avatar
Learath2
Idk. There is just sth very pleasing about getting something just out of pure desire
i agree, as long as you don't do that everyday and still try to limit your carbon footprint
Avatar
i mean you can buy used things everyday and minimize your carbon footprint (edited)
Avatar
like your gt3rs?
Avatar
yea, i could buy that second hand
16:55
in the future, ofc
Avatar
I personally don't believe in the concept of individual carbon footprint. Just by existing in europe I produce an insane amount more than an african village. Whatever I do at a personal level won't change shit. We'll get to me running my heater 10 minutes less when china turns off their coal plants
Avatar
Avatar
Meekrioz
yea, i could buy that second hand
i probably have to because in 2023 or 2024 most german car factures won't build brand new combustion engines
Avatar
Avatar
Learath2
I personally don't believe in the concept of individual carbon footprint. Just by existing in europe I produce an insane amount more than an african village. Whatever I do at a personal level won't change shit. We'll get to me running my heater 10 minutes less when china turns off their coal plants
yeah
16:57
asking ppl to do less is a bit dumb
16:57
the gov gotta force the companies
Avatar
im glad germany is finally trying to do better when it comes to green energy OMEGADANCE
Avatar
Avatar
Learath2
I personally don't believe in the concept of individual carbon footprint. Just by existing in europe I produce an insane amount more than an african village. Whatever I do at a personal level won't change shit. We'll get to me running my heater 10 minutes less when china turns off their coal plants
and then nobody moves...
Avatar
Heavy industry gets to pollute 50 times more than me while I have to watch the amount of meat I eat and the lights I keep on in my house. I'm sorry but fuck that
Avatar
Jupstar βœͺ 2022-10-22 16:58:41Z
meat is defs smth on a personal scale
Avatar
Avatar
Ryozuki
the gov gotta force the companies
they can force new taxes for carbon-expensive things so ppl will make less footprint
Avatar
Jupstar βœͺ 2022-10-22 16:58:47Z
other than electricity
Avatar
bottom up (me) versus top down (you)
πŸ’€ 1
16:59
but ofc government need to move their asses...
Avatar
Avatar
gerdoe
they can force new taxes for carbon-expensive things so ppl will make less footprint
i mean for people but not for companies
Avatar
Avatar
Chairn
bottom up (me) versus top down (you)
How about we bottom up go tell the govt and industry they need to get their shit in order? I'd be 100% with you on that
Avatar
do u think theyll do anything with gigantic fabrics just to get shit done kekw
17:01
yay i killed the convo
Avatar
Avatar
Learath2
How about we bottom up go tell the govt and industry they need to get their shit in order? I'd be 100% with you on that
don't tempt my french side πŸ˜„
17:01
i'll go polish my guillotine
🍻 2
Avatar
baguette
Avatar
πŸ˜„ do all french people get a government issued guillotine?
Avatar
recent guillotine seen last week in my city during manifestation for better pay https://www.reddit.com/r/france/comments/y7htwv/guillotine_%C3%A0_une_manif_sur_grenoble_aujourdhui/ (edited)
Avatar
Avatar
Chairn
recent guillotine seen last week in my city during manifestation for better pay https://www.reddit.com/r/france/comments/y7htwv/guillotine_%C3%A0_une_manif_sur_grenoble_aujourdhui/ (edited)
tf
Avatar
Avatar
Learath2
πŸ˜„ do all french people get a government issued guillotine?
we make one in wood working class obviously πŸ˜„
Avatar
going at the center of Grenoble sux
Avatar
Avatar
ReiTW
going at the center of Grenoble sux
i don't even recognize the place
Avatar
Former πŸ‡¨πŸ‡³ president Hu Jintao forcefully escorted out of #CCP party congress Li Keqiang, Li Zhanshu, Han Zheng & Wang Yang, all reformist & liberal CCP figures, are out of new CCP Central Committee. All references to #HuJintao removed from govt website. https://t.co/ku5HdJ0uHE
Likes
588
Retweets
252
Avatar
Fwiw. I don't just increase my carbon footprint for the lulz. I still do the "right thing" if it's not too inconvenient. But I just refuse to live below a certain standard
Avatar
@Chairn dunno too, would have said close to Victor Hugo
Avatar
Avatar
ReiTW
@Chairn dunno too, would have said close to Victor Hugo
i thought too, but the tram tracks and buildings do not match
Avatar
I wonder what went wrong. Did he dare talk badly about premier xi?
Avatar
nah, he was other faction
Avatar
Avatar
Learath2
I wonder what went wrong. Did he dare talk badly about premier xi?
Hu Jintao was the only one who tried hard to prevent XiJinping from being re-elected.
17:05
and xi wants to be reelected for the 3rd time
17:05
which is out of the norm
17:06
u only can do 2
Avatar
China is seriously concerning :/
Avatar
Avatar
Ryozuki
u only can do 2
Actually xi made it legal to do more a year or two ago
Avatar
well ofc
17:07
BASED
17:07
like putin
17:07
just make it legal 4head
Avatar
Putin swapping places with medvedev before it became legal was probably the biggest farce on earth
Avatar
Avatar
Ryozuki
From 24 dec to 2 jan
If you'll spend your time in tokyo, try to sneak in Afuri. Very interesting ramen. Cured me of death
Avatar
oh yeah tell me good places
Avatar
I was literally suffering. One sip of the soup and I was cured
Avatar
If you want to have any fancy food, book ahead. Good omakase places get booked almost a month in advance
17:11
will check
Avatar
can someone explain to me "AND" and "OR"?? AND takes all conditions and OR only the selected? (edited)
Avatar
well, it's just logic stuff
17:24
AND need both right hand side and left hand side to be true
17:24
OR accepts any side to be true
Avatar
AND is true if both are true
17:25
OR is true if atleast one is true
17:26
A truth table is a mathematical table used in logicβ€”specifically in connection with Boolean algebra, boolean functions, and propositional calculusβ€”which sets out the functional values of logical expressions on each of their functional arguments, that is, for each combination of values taken by their logical variables. In particular, truth tables...
17:26
Avatar
use parenthesis to group stuff and overrides operator precedency
Avatar
i feel dumb
17:46
SELECT name, year BETWEEN 1990 AND 1996 FROM movies; (edited)
17:46
should give me the movies etc. that were made between 1990 and 1996
17:46
but it only shows ALL movies with 1 and 0 as true/false
17:46
i want it to show me ONLY movies that are true and with the year WEIRD
Avatar
select name, year from movies where year between 1990 and 1996;
βœ… 1
17:48
selecting β€žyear between 1990 and 1996β€œ means you want to have a column in your output that says if this movie is from this range of years
Avatar
ahh okay
17:50
i see now, thank you
Avatar
You can try to get some data from the ddnet db
Avatar
why does SELECT name, imdb_rating from movies ORDER BY imdb_rating ASC works but SELECT name, imdb_rating from movies ORDER BY imdb_rating > 4.5 ASC doesnt?
17:55
it shows me all the right movies, but not in ascending order
Avatar
order doesnt filter
17:56
use where imdb_rating > 4.5 ORDER BY imdb_rating ASC (edited)
Avatar
got it
Avatar
im surprised how good i am on the sql tests on code academy
18:07
even tho im a complete pepega when it comes to coding OMEGADANCE
Avatar
anyone has list of protocol messages with GUIDs?
Avatar
Avatar
Matodor
anyone has list of protocol messages with GUIDs?
i mean this list
Avatar
Avatar
Meekrioz
im surprised how good i am on the sql tests on code academy
well sql simple stuff is quite easy
18:28
the hard things are when u have multiple tables, joining them etc
18:29
some sql queries in ddnet are quite big xd
Avatar
Ok why do you have to make it bad? WEIRD
18:30
my achievements, my pure joy.. destroyed...by you....
Avatar
str_format(aBuf, sizeof(aBuf), "SELECT l.ID, Name, Time, Ranking, PercentRank " "FROM (" // teamrank score board " SELECT RANK() OVER w AS Ranking, PERCENT_RANK() OVER w AS PercentRank, ID " " FROM %s_teamrace " " WHERE Map = ? " " GROUP BY ID " " WINDOW w AS (ORDER BY Min(Time))" ") AS TeamRank INNER JOIN (" // select rank with Name in team " SELECT ID " " FROM %s_teamrace " " WHERE Map = ? AND Name = ? " " ORDER BY Time " " LIMIT 1" ") AS l ON TeamRank.ID = l.ID " "INNER JOIN %s_teamrace AS r ON l.ID = r.ID ", pSqlServer->GetPrefix(), pSqlServer->GetPrefix(), pSqlServer->GetPrefix());
18:32
this is the teamrank query
Avatar
other than window and the AS statements i do understand it
18:32
WEIRD
18:33
well not completely
Avatar
but i do know what they are doing WEIRD
18:33
Starege
18:33
oh and OVER, i didn't have OVER yet
Avatar
OVER is window functions?
Avatar
ELECT Name, lll.Map, TIME, min(lll.Timestamp), min(TYPE), Server, max(OldTime), Points, Country FROM (SELECT Name, Map, TIME, Timestamp, "2 Top 1 rank" AS TYPE, (SELECT TIME FROM record_race WHERE Map = l.map AND Timestamp < "{0}" ORDER BY TIME LIMIT 1) AS OldTime, Country FROM (SELECT Timestamp, Name, Map, TIME, Server AS Country FROM record_race WHERE Timestamp >= "{0}" AND Timestamp < "{1}") AS l WHERE TIME <= (SELECT min(TIME) FROM record_race WHERE Map = l.Map) UNION ALL SELECT record_teamrace.Name, record_teamrace.Map, record_teamrace.Time, record_teamrace.Timestamp, "1 Top 1 team rank" AS TYPE, OldTime, record_race.Server AS Country FROM (SELECT ID, (SELECT TIME FROM record_teamrace WHERE Map = l.Map AND ID != l.ID AND Timestamp < "{0}" ORDER BY TIME LIMIT 1) AS OldTime FROM (SELECT DISTINCT ID, Map, TIME FROM record_teamrace WHERE Timestamp >= "{0}" AND Timestamp < "{1}") AS l LEFT JOIN (SELECT Map, min(TIME) AS minTime FROM record_teamrace GROUP BY Map) AS r ON l.Map = r.Map WHERE TIME = minTime) AS ll INNER JOIN record_teamrace ON ll.ID = record_teamrace.ID JOIN record_race ON record_teamrace.Map = record_race.Map AND record_teamrace.Name = record_race.Name AND record_teamrace.Time = record_race.Time AND record_teamrace.Timestamp = record_race.Timestamp UNION ALL SELECT Name, Map, TIME, Timestamp, "5 Worst rank on DDNet" AS TYPE, (SELECT TIME FROM record_race WHERE Timestamp < "{0}" AND Map != "Time Shop" AND Map != "Care for your Time" ORDER BY TIME DESC LIMIT 1) AS OldTime, Server AS Country FROM (SELECT * FROM record_race WHERE Map != "Time Shop" AND Map != "Care for your Time" AND TIME > (SELECT TIME FROM record_race WHERE Timestamp < "{0}" AND Map != "Time Shop" AND Map != "Care for your Time" ORDER BY TIME DESC LIMIT 1) ORDER BY TIME DESC) AS llll WHERE Timestamp >= "{0}" AND Timestamp < "{1}" ) AS lll JOIN record_maps ON lll.Map = record_maps.Map WHERE lll.Map != "Nyan Cat" AND record_maps.Server != "Fun" GROUP BY Name, Map, TIME ORDER BY lll.Timestamp, Name ASC; (edited)
18:35
@Meekrioz some queries for the website
18:35
xd
Avatar
union all
18:36
πŸ§…
Avatar
i fortmatted it
Avatar
im learning sql for 2 days now, i'm not gonna be a pro in like those days weirdL
Avatar
@Meekrioz no worries im not a pro either
18:37
the sql pro here is deen
Avatar
Avatar
Meekrioz
oh and OVER, i didn't have OVER yet
partitions are a tough thing to figure out
Avatar
Avatar
Ryozuki
@Meekrioz no worries im not a pro either
Yea but let me have my achievements ANGERY
Avatar
Avatar
Learath2
partitions are a tough thing to figure out
can't wait for it....
18:39
when you guys say "tough thing to figure out" for me that's like "yea you will never understand it" OMEGADANCE
Avatar
most of the time u dont need to do complex queries though
Avatar
you can, it just takes a bit to click
Avatar
if u do a crud app
Avatar
inner join outer join blah blah
Avatar
groups and partitions are probably the hardest part of sql to begin with
Avatar
if you learn to design some tables and do simple queries u are good to go most of the time
Avatar
shouldn't the big query be split across multiple queries for easier comprehension?
Avatar
and as for design i recommend learning the https://en.wikipedia.org/wiki/Third_normal_form
18:40
search a tutorial or smth
18:40
its good pratices
18:40
practices*
18:41
to avoid data duplication etc
Avatar
first of all, i have to finish my course
Avatar
true true
Avatar
i'm at 15% WTF
18:41
Oh lord have mercy on my soul
18:41
Prayge
Avatar
just take ur time
18:41
are you in a hurry?
Avatar
Avatar
Ryozuki
and as for design i recommend learning the https://en.wikipedia.org/wiki/Third_normal_form
Why not BCNF? Sounds like something you'd enjoy πŸ˜›
Avatar
people dont rly learn this in 1 month
Avatar
No i am not, but it feels SO much
Avatar
Avatar
Learath2
Why not BCNF? Sounds like something you'd enjoy πŸ˜›
true
Avatar
big chungus normal form
18:42
@cyberFighter
Avatar
go all the way
18:42
Fifth normal form (5NF), also known as projection–join normal form (PJ/NF), is a level of database normalization designed to remove redundancy in relational databases recording multi-valued facts by isolating semantically related multiple relationships. A table is said to be in the 5NF if and only if every non-trivial join dependency in that tab...
Avatar
doesn't look that much tho
Avatar
A 6NF also exists, but its purpose is not to remove redundancy and it is therefore only adopted by a few data warehouses, where it can be useful to make tables irreducible.
18:43
lol
Avatar
Avatar
Meekrioz
doesn't look that much tho
at 4
18:44
its when fun starts
18:44
relational stuff shows when you have more than 1 table
Avatar
Avatar
louis
big chungus normal form
big chungus TRUE form
Avatar
Avatar
Ryozuki
its when fun starts
you mean it?
18:55
is it actually fun?
Avatar
i mean its where the meat is at
18:55
i personally enjoy coding so its fun for me
Avatar
i see, looking forward to it
Avatar
Avatar
Ryozuki
ELECT Name, lll.Map, TIME, min(lll.Timestamp), min(TYPE), Server, max(OldTime), Points, Country FROM (SELECT Name, Map, TIME, Timestamp, "2 Top 1 rank" AS TYPE, (SELECT TIME FROM record_race WHERE Map = l.map AND Timestamp < "{0}" ORDER BY TIME LIMIT 1) AS OldTime, Country FROM (SELECT Timestamp, Name, Map, TIME, Server AS Country FROM record_race WHERE Timestamp >= "{0}" AND Timestamp < "{1}") AS l WHERE TIME <= (SELECT min(TIME) FROM record_race WHERE Map = l.Map) UNION ALL SELECT record_teamrace.Name, record_teamrace.Map, record_teamrace.Time, record_teamrace.Timestamp, "1 Top 1 team rank" AS TYPE, OldTime, record_race.Server AS Country FROM (SELECT ID, (SELECT TIME FROM record_teamrace WHERE Map = l.Map AND ID != l.ID AND Timestamp < "{0}" ORDER BY TIME LIMIT 1) AS OldTime FROM (SELECT DISTINCT ID, Map, TIME FROM record_teamrace WHERE Timestamp >= "{0}" AND Timestamp < "{1}") AS l LEFT JOIN (SELECT Map, min(TIME) AS minTime FROM record_teamrace GROUP BY Map) AS r ON l.Map = r.Map WHERE TIME = minTime) AS ll INNER JOIN record_teamrace ON ll.ID = record_teamrace.ID JOIN record_race ON record_teamrace.Map = record_race.Map AND record_teamrace.Name = record_race.Name AND record_teamrace.Time = record_race.Time AND record_teamrace.Timestamp = record_race.Timestamp UNION ALL SELECT Name, Map, TIME, Timestamp, "5 Worst rank on DDNet" AS TYPE, (SELECT TIME FROM record_race WHERE Timestamp < "{0}" AND Map != "Time Shop" AND Map != "Care for your Time" ORDER BY TIME DESC LIMIT 1) AS OldTime, Server AS Country FROM (SELECT * FROM record_race WHERE Map != "Time Shop" AND Map != "Care for your Time" AND TIME > (SELECT TIME FROM record_race WHERE Timestamp < "{0}" AND Map != "Time Shop" AND Map != "Care for your Time" ORDER BY TIME DESC LIMIT 1) ORDER BY TIME DESC) AS llll WHERE Timestamp >= "{0}" AND Timestamp < "{1}" ) AS lll JOIN record_maps ON lll.Map = record_maps.Map WHERE lll.Map != "Nyan Cat" AND record_maps.Server != "Fun" GROUP BY Name, Map, TIME ORDER BY lll.Timestamp, Name ASC; (edited)
You might enjoy SQLsmith, example query: https://github.com/yugabyte/yugabyte-db/issues/11371 πŸ˜„
Jira Link: DB-993 Description Found while looking for postgis problems, but doesn&#39;t seem postgis specific. Can&#39;t reproduce it, ran on 2.11.2.0 on CentOS: Core was generated by `post...
19:15
@deen fuzzing for databases?
19:15
:o
Avatar
Not coverage-guided, just a random generator
Avatar
Avatar
deen
You might enjoy SQLsmith, example query: https://github.com/yugabyte/yugabyte-db/issues/11371 πŸ˜„
why don't people split those mega queries?
19:25
is it for performance reason?
Avatar
Because the bug might happen as a consequence of combining 10 weird features no one ever used together
19:27
And even if it's just a subset, faster to combine more in one query
Avatar
when RustSQL @Ryozuki ?
Avatar
A randomized program fuzzer for the Rust programming language - GitHub - rustsmith/rustsmith: A randomized program fuzzer for the Rust programming language
Avatar
wrong link? fuzzer != database?
Avatar
Hypothesis-like property testing for Rust. Contribute to proptest-rs/proptest development by creating an account on GitHub.
19:29
this is also neat
Avatar
Avatar
Chairn
when RustSQL @Ryozuki ?
there is a famous db impl
19:29
in rust
19:29
well lately gaining traction let me find it
19:30
SurrealDB is the ultimate database for tomorrow's serverless, jamstack, single-page, and traditional applications.
19:30
more here
Avatar
culprit is https://github.com/ddnet/ddnet/pull/5810 Error message is: shell E:\Teeworlds_DDNet\ddnet\src\base\system.cpp: In function 'void* shell_execute(const char*)': E:\Teeworlds_DDNet\ddnet\src\base\system.cpp:3874:26: error: '_control87' was not declared in this scope unsigned oldcontrol87 = _control87(0u, 0u); @Robyt3 any idea?
Avatar
yes I once sent a video here from Fireship
19:51
looks promising
19:51
but still new, hope it goes well
Avatar
Avatar
Matodor
compressed images don't work when embedded in a map?
compressing images before adding them to maps does absolutely nothing
20:41
your map will be the same size no matter whether you compress the image before adding or not
Avatar
Avatar
heinrich5991
compressing images before adding them to maps does absolutely nothing
compressed images are not displayed even in the editor
Avatar
what do you mean by "compressing"
Avatar
PNG compression and optimization tool to compress PNG images into PNG-8 format with transparency support.
20:52
game supports only PNG-24? (edited)
Avatar
Avatar
Matodor
i mean this list
Some Teeworlds stuff in Rust. Contribute to heinrich5991/libtw2 development by creating an account on GitHub.
Avatar
Avatar
Matodor
game supports only PNG-24? (edited)
the map format doesn't support PNGs at all. it first takes the PNG and decompresses it. then it applies its own compression. the ddnet client could theoretically load any PNG but we disabled that for compatibility with older clients
20:56
what are you doing with the UUIDs? πŸ™‚
Avatar
Avatar
heinrich5991
what are you doing with the UUIDs? πŸ™‚
doing server side support for DDNET. In my C# server mode
Avatar
ah, nice πŸ™‚
21:00
you could theoretically generate the game messages from the JSON I maintain, if you wanted to
Avatar
I was able to get the cursor position (with zoom), thanks to CNetMsg_Cl_ShowDistance, thanks to whoever did this ❀️ (edited)
Avatar
I use it for the wireshark dissector
Avatar
Avatar
heinrich5991
you could theoretically generate the game messages from the JSON I maintain, if you wanted to
Avatar
I mean that the JSON also has all the fields
21:02
{ "id": "53bb28af-4252-3ac9-8fd3-6ccbc2a603e3", "id_from": { "algorithm": "uuid_v3", "namespace": "e05ddaaa-c4e6-4cfb-b642-5d48e80c0029", "name": "show-distance@netmsg.ddnet.tw" }, "name": ["cl", "show", "distance"], "members": [ {"name": ["x"], "type": {"kind": "int32"}}, {"name": ["y"], "type": {"kind": "int32"}} ], "attributes": [] }
Avatar
Anime.pdf BOT 2022-10-22 21:25:31Z
get payloaded
Exported 366 message(s)