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 2019-07-17 00:00:00Z and 2019-07-18 00:00:00Z
00:10
since when can we click on the images on ddnet.tw/releases to get a map preview?!
Avatar
since a long time
Avatar
@TacTic you can probably bind the remote console via config, idk if you can type in it without a keyboard tho
Avatar
justabutterflier 2019-07-17 02:37:11Z
hey guys
02:37
sorry for stupid questions
02:37
can someone help me to make tune (for example gravity) for only one player?
02:37
every player have his gravity
02:37
he can type /gravity and number what he wanna
02:38
@fokkonaut congrats 😅
Avatar
apparently that breaks prediction
Avatar
5f7a09d Correctly embed replacing images - 12pm 71652e0 Merge #1833 - bors[bot]
Avatar
672033e Add kisteklak as donor (30 €) - def-
Avatar
Leaving for like a week
🇷 3
🇶 3
06:53
I think I'll stick to bug fixes after I get back, large features are just not fun to develop
Avatar
[quakenet] deen BOT 2019-07-17 09:32:55Z
Where are you going?
Avatar
ChillerDragon 2019-07-17 09:54:19Z
are there any tools out to combine race record files? you know the text files.
Avatar
@ChillerDragon can you upload a sample file?
Avatar
ChillerDragon 2019-07-17 10:02:44Z
good old classic score files
10:03
fokkonaut 5.48 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ChillerDragon 7.94 sorri irc
Avatar
gimme two of the files I'll write a tool to merge them
Avatar
ChillerDragon 2019-07-17 10:05:58Z
yea its not too hard but i wanted to make sure i dont revent the wheel and introduce bugs but if u want to do it thats nice
10:06
it seems like i lost my one file tho xd i wonder when the server creates these
Avatar
[quakenet] Learath2 BOT 2019-07-17 10:06:27Z
deen: 2-3 day trip to a nearby city
10:06
will probably stay a week tho, I always say 2-3 days before going, then friends convince me to stay longer :D
Avatar
have fun there
10:07
:D (edited)
Avatar
ChillerDragon 2019-07-17 10:07:44Z
hf gl @Learath2
Avatar
[quakenet] Learath2 BOT 2019-07-17 10:08:36Z
we have guests home, they have kids, kids are watching cartoons, kids cartoons are the stupidest most annoying thing ever
Avatar
ur crazy
10:08
its the best thing ever
Avatar
ChillerDragon 2019-07-17 10:09:17Z
they make me feel weird
Avatar
>its the best thing ever really depends
Avatar
[quakenet] Learath2 BOT 2019-07-17 10:11:19Z
i'm not talking about cartoons for young ppls, this is literally toddler stuff
10:11
repeating phrases 50 times kinda stuff
Avatar
@heinrich5991 the 0's are checkpoint times btw, just in case you didnt know that
Avatar
yea, figured
10:13
@ChillerDragon if you don't give me two files to merge, I can't write a script
Avatar
ChillerDragon 2019-07-17 10:14:33Z
@heinrich5991 im struggeling to find the file which should be created by the runniung server seems like its not there
Avatar
@ChillerDragon currentpath/records/ xd
Avatar
ChillerDragon 2019-07-17 10:15:01Z
ikr
10:15
there is no record dir
10:15
i deleted it xd
Avatar
ChillerDragon 2019-07-17 10:15:19Z
A repo holding all data produced by the ddnet++ servers like race records. - DDNetPP/DDNetPP-data
Avatar
go on server and write /top5
Avatar
ChillerDragon 2019-07-17 10:15:25Z
they are there
Avatar
then there is a file
10:15
check everything @ChillerDragon
Avatar
ChillerDragon 2019-07-17 10:16:45Z
when is this file cretaed?
10:16
i deleted the folder after server launch
Avatar
@ChillerDragon sv_score_folder
Avatar
ChillerDragon 2019-07-17 10:17:06Z
ye its records
Avatar
Finish once more
Avatar
ChillerDragon 2019-07-17 10:19:43Z
i guess the folder is created on server launch and the file on finish
Avatar
no, the file is always there
10:20
it will write into it while running
Avatar
ChillerDragon 2019-07-17 10:21:20Z
yy i was right so i created the folder and then finished
10:23
@heinrich5991 i was just asking if there is a tool. I really could hack sonething together my self or even do it manually but if you want to create it it would be awesome. I can imagine it can be usefull in the future too 😃
Avatar
@ChillerDragon change profile picture
Avatar
ChillerDragon 2019-07-17 10:27:24Z
its crazy how unsopportive the people are regaring LGBTQP27829 and all the other stuff. They even censored a youtube video on kog i posted that was made by gays lol
10:28
i dont get it. So much hate without reasons.
Avatar
dfk
Avatar
I dont hate, just its not June anymore
Avatar
ChillerDragon 2019-07-17 10:28:44Z
what about june?
Avatar
(which I think was the reason you did it)
Avatar
ChillerDragon 2019-07-17 10:28:56Z
oh no im not that much into it
10:29
idk what was in jhune?
10:29
you should rather tell @onbgy that winter is over since 2 years xd
Avatar
Pride month
Avatar
ChillerDragon 2019-07-17 10:29:35Z
ah ye no
10:29
probably yt algo turned me into a lgbt supporter during that month so thats how that happend
Avatar
First, for clarification, I am not anti-LGBTQ. My office has taken part in the Pride Month, which is celebrated throughout the UK in June every year. The month celebrations end in a large Pride m...
10:30
just seen yesterday
Avatar
ChillerDragon 2019-07-17 10:30:26Z
xxD
10:30
well fokko failed
10:31
lez ban fokko for being anti lgbtq banhammer
Avatar
wat
troll 1
Avatar
ChillerDragon 2019-07-17 10:31:52Z
yes it makes sense because people stop being gay after 1 month. then they are cured.
10:32
@ChillerDragon if it was 3 weeks after christmas i would also say change pic if you have a Christmas hat on that pic
10:32
nothing about me being anti lgbtq
Avatar
ChillerDragon 2019-07-17 10:33:02Z
jeez im trollin
10:33
but it is 3 years after christmas and onbgy still has his winter pfp
10:34
@Ryozuki send me github pro my github is full xd
Avatar
(you can also use gitlab which has unlimited private repos IIRC)
Avatar
ChillerDragon 2019-07-17 10:35:01Z
github pro is monthly payment huh? So if i stop paying all my repos get deleted if they are to big and made public if they were pprivate? xd
10:35
i have a public repo
10:35
on github and its full
Avatar
what do you mean, full?
10:35
oh
Avatar
ChillerDragon 2019-07-17 10:35:30Z
github has also unlimited private repos
Avatar
github is not your personal backup service 😄
Avatar
ChillerDragon 2019-07-17 10:35:53Z
and gitlab is actually unusable for me because i cant survive on their site more than 20 seconds without rage quitting due to their design
10:36
i spend 20 hrs starring at my github a day
Avatar
@heinrich5991 LMAO xDDDd
Avatar
ChillerDragon 2019-07-17 10:36:11Z
it is @heinrich5991
Avatar
gitlab is gud
Avatar
ChillerDragon 2019-07-17 10:36:34Z
how should i backup and sync my tw data then?
Avatar
USB Stick, like me lol
10:36
I have my configs and setting on a usb
Avatar
ChillerDragon 2019-07-17 10:37:01Z
hmm not very backed up
Avatar
gitlab private repos are free
Avatar
ChillerDragon 2019-07-17 10:37:08Z
and you have to carry it around all the time
10:37
github too @archimede67
Avatar
no
Avatar
gitlab is good
Avatar
@ChillerDragon google drive, 15Gb free
Avatar
ChillerDragon 2019-07-17 10:37:21Z
they are
Avatar
because private repos yeah
Avatar
they are not
Avatar
ChillerDragon 2019-07-17 10:37:29Z
they are
Avatar
no
Avatar
there was a change some time back
10:37
@archimede67
Avatar
rly
Avatar
ChillerDragon 2019-07-17 10:37:51Z
banhammer 1
🕵 1
Avatar
@ChillerDragon u dont even need to look at their design, from command line it functions exactly the same i think
Avatar
ChillerDragon 2019-07-17 10:37:52Z
:p
Avatar
Avatar
when
10:38
last time i wanted to create a project it was still disabled
Avatar
ChillerDragon 2019-07-17 10:38:37Z
10:38
i didnt pay
Avatar
@ChillerDragon wtf you really use github as a drive
Avatar
but i know that if you have student developer pack u have them free
Avatar
ChillerDragon 2019-07-17 10:39:02Z
yes @fokkonaut and it exhausting
10:39
because github clning hangs up all the time
Avatar
Whether you're starting an open source project or choosing new tools for your team, we’ve got you covered.
10:39
unlimited private repositories (under free)
Avatar
ye so it has been changed
Avatar
ChillerDragon 2019-07-17 10:39:40Z
but 1gb limited organisations
Avatar
that's what I said
Avatar
ye
Avatar
ChillerDragon 2019-07-17 10:40:06Z
i guess i need 3 organisations to backup my cutted demos xd
Avatar
get enterprise
10:40
thats what you need
Avatar
ChillerDragon 2019-07-17 10:40:38Z
but what if i stop paying
10:40
what happens then
Avatar
what should happen
Avatar
ChillerDragon 2019-07-17 10:41:02Z
remove my stuff
10:41
i cant afford this for ever
10:41
and also they dont advertise mroe storage
Avatar
just use a fucking drive
10:41
or cloud
Avatar
ChillerDragon 2019-07-17 10:42:01Z
no
10:42
clouds suck
10:42
can u even host git repos on clouds?
Avatar
@ChillerDragon you had a vps somewhere, right?
Avatar
ChillerDragon 2019-07-17 10:42:46Z
y
10:42
but if that vps dies i loose my data
Avatar
you could simply use that as a git server
Avatar
ChillerDragon 2019-07-17 10:42:56Z
thats not an option
Avatar
why not? it's a backup, right?
10:43
if github loses your data, you also lose it
Avatar
ChillerDragon 2019-07-17 10:43:16Z
yes a backup if my pc dies and my vps dies
10:43
github doesnt loose it
Avatar
just buy an external hd
Avatar
Hard drive
Avatar
ChillerDragon 2019-07-17 10:43:34Z
and where should i put it?
10:43
and how do i sync to it from all over the world
Avatar
Cant
10:43
thats why its secure
Avatar
ChillerDragon 2019-07-17 10:43:56Z
i have to tho
Avatar
noone can access it
Avatar
ChillerDragon 2019-07-17 10:44:25Z
if i play tw in zimbabwe airport i want to sync my demos and maps and settings and screenshots
Avatar
google drive
Avatar
Lol chiller u nobo
Avatar
15Gb
Avatar
ChillerDragon 2019-07-17 10:44:55Z
ima create a new org i guess
Avatar
ChillerDragon 2019-07-17 10:45:14Z
15 orgs on github is 15 gb
Avatar
1 acc in google is 15 gb
Avatar
yeah google drive
10:45
encrypt them before u upload if ur paranoid
Avatar
yea, maybe google will fake you in tw otherwise
10:46
or save your settings on your phone xd then you have it with you
Avatar
Or make an cloudserver from your external harddrive
Avatar
ChillerDragon 2019-07-17 10:51:23Z
i make my data public no need to encrypt it @onbgy and im sure goodle decrypts it anyways
Avatar
crypto is secure against google
Avatar
ChillerDragon 2019-07-17 10:52:04Z
did you find that out by googling it? troll
10:52
maybe for now but they store it until quantum age and then they crack it
Avatar
that's the NSA you're talking about
10:53
and quantum computing does nothing for symmetric ciphers as far as I'm aware
Avatar
ChillerDragon 2019-07-17 10:53:42Z
yet
Avatar
AFAIK, this is not how it works
10:54
quantum computers are modelled in theoretical informatics and those models tell you that it doesn't help for symmetric ciphers
10:54
there's even people doing post-quantum cryptography based on these models
Avatar
@heinrich5991 why is it securr against google?
Avatar
because the universe doesn't have enough resources to crack the encryption, according to our current knowledge
Avatar
ChillerDragon 2019-07-17 10:55:54Z
which encryption?
Avatar
and how to decrypt it the
10:56
then*
Avatar
ChillerDragon 2019-07-17 10:56:02Z
key
Avatar
@fokkonaut with the key
Avatar
ChillerDragon 2019-07-17 10:56:18Z
i thought most common encryptions can be broken with money and time?
Avatar
it'd be much easier to go to @ChillerDragon's house with a wrench and ask him for the actual files https://www.xkcd.com/538/
Avatar
@ChillerDragon no. not AES with a secret key
Avatar
ChillerDragon 2019-07-17 10:57:38Z
wasnt aes the worst? xd
10:57
like worse than md5
Avatar
no
Avatar
ChillerDragon 2019-07-17 10:57:50Z
i know like 0 baut crypto i guess
Avatar
@ChillerDragon google for -1
10:57
its a 1
10:58
xd
Avatar
AES is a state of the art algorithm and is used to encrypt all your browser traffic, banking stuff, etc.
Avatar
ChillerDragon 2019-07-17 10:58:19Z
i dont like that my passwords are showing up in htop is this fine? @heinrich5991
10:58
i start a programm with -password and -login flag
Avatar
well, then everyone on your computer can see them
10:58
you shouldn't do that
Avatar
ChillerDragon 2019-07-17 10:58:37Z
meh
Avatar
ChillerDragon 2019-07-17 10:58:48Z
i wonder if they have a config file
10:58
but cant like everyone see my config gfiles either?
Avatar
here, go use 2 billion us dollar to crack the bitcoin signatures
Avatar
ChillerDragon 2019-07-17 11:00:00Z
isnt it more effective to go for all wallets at once than only one?
Avatar
go ahead, collect even more than 2 billion us dollar
Avatar
ChillerDragon 2019-07-17 11:00:28Z
its just luck i can run it on my vps i pay anyways and pay 0
Avatar
what I want to say: apparently the cost of breaking whatever bitcoin uses is above 2 billion us dollar
Avatar
what are they using?
Avatar
ChillerDragon 2019-07-17 11:01:10Z
2b in the worst case or average?
Avatar
some elliptic curve stuff IIRC
Avatar
ChillerDragon 2019-07-17 11:01:17Z
because in the best case it is first try luck xd
Avatar
@ChillerDragon go buy some lottery passes
Avatar
ChillerDragon 2019-07-17 11:01:41Z
no they cost money
Avatar
but in the best case you'll be a millionaire
Avatar
ChillerDragon 2019-07-17 11:02:07Z
but i could loose money
Avatar
i.e. IMO the best case is irrelevant
11:02
you're losing money right now
Avatar
ChillerDragon 2019-07-17 11:02:18Z
no
Avatar
why aren't you utilizing your VPS completely?
Avatar
ChillerDragon 2019-07-17 11:02:33Z
i am
Avatar
X
Avatar
ChillerDragon 2019-07-17 11:02:47Z
11:03
there is a lill puffer left for more actvity on my servers
11:07
11:07
bro xd
Avatar
@ChillerDragon aes worse than md5... do u live in a cave
Avatar
ChillerDragon 2019-07-17 11:09:39Z
seems like
Avatar
@ChillerDragon btw is ur linux encrypted
11:10
i have arch on lvm on luks
11:10
ezpz
11:10
wait its gnu/linux
Avatar
ChillerDragon 2019-07-17 11:11:11Z
what is my linux? you mean my vps or devices at home. Nah but anyways i have nothing encrypted
11:11
its useless anyways :p
Avatar
its not
11:11
if fbi comes to m house they will have to beat me to tell them the pass
11:11
troll
Avatar
ChillerDragon 2019-07-17 11:11:46Z
i saw many talks that gave me the feeling that the only person im locking out is me
11:11
do you want to get beaten ?
11:12
i dont let the fbi in :p
11:12
dont let the talks make u dumb, encryption is always good
Avatar
fbi will never come to your house
Avatar
ChillerDragon 2019-07-17 11:12:32Z
im not too sure
Avatar
no problem (edited)
Avatar
ChillerDragon 2019-07-17 11:12:36Z
y
11:12
and if you dont leave your devices unattende dtoo long all fine
Avatar
encryption is good
Avatar
ChillerDragon 2019-07-17 11:13:05Z
i have to admint i left my laptops unattended at public paces for multiple minutes... but still
Avatar
it literally has no cost to have my drives encrypted
11:13
and i dont have to type a login password, just the encrypt password
Avatar
ChillerDragon 2019-07-17 11:13:25Z
its annoying when u forget pw tho
Avatar
i am not as dumb as u sry
Avatar
ChillerDragon 2019-07-17 11:13:35Z
:c
Avatar
then dont forget the pw
think_bot 1
feelsamazingman 3
Avatar
Merging DDNet record files. GitHub Gist: instantly share code, notes, and snippets.
Avatar
ChillerDragon 2019-07-17 11:17:21Z
oh only a gist
11:17
and even secret
11:18
i will test it later thanks @heinrich5991
11:18
you should make it public tho 😃
Avatar
@ChillerDragon it's public by the link
Avatar
aes and md5 don't even do the same thing, why are you comparing them in the first place?
12:02
In other news, I think I'm staying, feel horribly sick
12:02
Dont even know how one can get a "cold" in such hot weather
Avatar
Never really though about it, but yes the temperature itself is probably only a factor
Avatar
the gist is that the weather only affects how likely you're to catch a cold, it's still a normal disease
Avatar
I guess the name cold is what throws people off
12:07
You kinda assume its because of the cold
Avatar
yup
Avatar
refactoring out components in reactjs is a new pleasure i found
Avatar
after using it more, I've concluded the half assed c++ operator sugar is worse then them having non-opaque json_values
Avatar
react ❤ (edited)
Avatar
@Ryozuki yeah moving things into their own components is really pleasurable
12:43
yes
Avatar
one big component it better troll
Avatar
don't go too deep to oop-valley though, or you will end up like the other loonies who think encapsulation is > everything and singleton patterns are evil
Avatar
(App component justatest )
Avatar
@archimede67 my entire react apps usually consist of a single arrow function just to make people cry
Avatar
no but i had half file of code that had to be a compoennt 100%
Avatar
@Learath2 perfectly nice 👌
Avatar
this json library passes out allocated json_value structs
12:45
but their c++ "operator sugar" only operates on json_value's not pointers to json values
12:45
so to use the c++ helpers you either need *s everywhere or an ugly copy
Avatar
I think operator[] passes out references
Avatar
but it doesn't operate on references
Avatar
… so?
Avatar
so you end up with things like (*Data)["name"] everywhere
Avatar
why not const json_value& Data = MoreData["data"]?
Avatar
I don't even know what the semantics of that would be off the top of my head
Avatar
like a pointer
12:48
except without the *
Avatar
and how do I get the pointer back out when I need to free it? is it's address equal to the initial pointer?
Avatar
you don't need to free it
12:49
it's just a reference to the inner of MoeData
Avatar
json_parse also gives out json_value *s
12:50
and I'm sure C89 didn't have magic destructors
Avatar
yes, that's the one thing you need to free
12:50
but other than that, you can just operate on references to the large object
Avatar
justatest ABC.I18n = path => { return moduleID => { return (core, args, lang) => { return core.i18n.get(path, args, lang, moduleID); }; }; };
Avatar
json_value *j = json_parse(buf); const json_value &Data = j; Do I need to keep around the j, or does the address of the reference compare equal?
12:52
checked the standard, they are equal
Avatar
good question. I'd guess equal
12:52
okay
12:52
(but I didn't know)
12:53
note that you need const json_value &Data = *j; (check for NULL on parse failure first I guess)
Avatar
well you can't really set a reference equal to a pointer
Avatar
hm?
Avatar
oh, references take T not T*
Avatar
yes
12:55
they take an lvalue reference I guess 😛
12:55
to T
Avatar
Okay, I'll forgive this shortcoming, I still don't like it
12:58
I should write my own json parser sometime, would be a nice exercise
Avatar
f3a1794 Change forum links to player profiles - 12pm d92f14b Add Skeith, remove Neh, Shocker & Would? - 12pm 3db05bc Update -=TeK=- pikou player profile - 12pm
Avatar
I definitely shouldn't have rolled my own serialization and deserialization in python
13:43
python ppl of #developer and #ddnet, what do you use for serializing your objects?
Avatar
ChillerDragon 2019-07-17 13:43:24Z
bash
13:43
os.system()
Avatar
os.system can't serialize anything
Avatar
ChillerDragon 2019-07-17 13:44:28Z
jq
Avatar
python objects don't export well to stdout
Avatar
ChillerDragon 2019-07-17 13:44:50Z
troll
Avatar
do you ever not troll around?
Avatar
ChillerDragon 2019-07-17 13:45:07Z
ovverwrite str then
13:45
no
Avatar
@Learath2 i don't
Avatar
I'm perfectly capable of rolling my own @ChillerDragon
13:45
@archimede67 do you even python?
Avatar
ChillerDragon 2019-07-17 13:45:54Z
no he is js
Avatar
i did pacman in python
13:46
for my school xd
Avatar
ChillerDragon 2019-07-17 13:46:20Z
i learned latin for my school
13:46
why is ur school so nice
Avatar
where ever1 else was struggling with finding a maze's path
13:47
every1*
Avatar
well if you haven't serialized anything in python, you are definitely not the intended respondant for my question
Avatar
a* is simple enough for path finding
Avatar
that's why i said "i don't" GWmythiBlobCool
13:48
ye but
Avatar
if the answer is "I don't", it's not really an answer to my question, right?
Avatar
we needed to make our own alorithm
13:49
omg algorithm*
Avatar
@archimede67 hug the right wall 😛
13:49
or "accidentally" roll a*
Avatar
the shortest
13:49
xd
Avatar
"oh my god, i didn't even know what it was called lol"
Avatar
30 lines done
13:49
😂
Avatar
eh, the likeliest one you'd roll by accident would be djikstra i guess
Avatar
yep
Avatar
@heinrich5991 is there a secure random function that generates a random string?
13:53
generate_password looked like it might do what I want, but it seems to do some, uhm weird things? 😛
Avatar
ChillerDragon 2019-07-17 13:53:50Z
@heinrich5991 good ol unicode http://puu.sh/DTVK0/865a6e3452.png
13:54
i use openssl in my bash scripts :p
Avatar
''.join(random.choices('abcdefghijklmnopqrstuvw', k=n))
Avatar
after 18 hours of messing around with unicode to get windows console to print proper unicode, I have become a certified expert in unicodez
Avatar
ChillerDragon 2019-07-17 13:55:13Z
oh tahts nice
13:55
fix heinrichs script then thanks
Avatar
@jao inside ddnet code tho 😛
Avatar
idk ddnet code
Avatar
ChillerDragon 2019-07-17 13:55:48Z
dont we have this random thing generator
13:55
for timeoutcodes etc
Avatar
after 18 hours of messing around with it I've learned that windows command prompt isn't even unicode compliant
13:56
it doesn't even try to be, it's UCS2...
Avatar
ChillerDragon 2019-07-17 13:56:13Z
i only care about linux tho @Learath2
Avatar
oh we do use one for timeout codes, let me check that
Avatar
ChillerDragon 2019-07-17 13:56:43Z
i was actually helpfull troll
Avatar
secure_random_password is a thing apparently
13:58
I'm surprised heinrich didn't generalize that to a secure_random_string that takes a const char *alphabet 😛
Avatar
unicodez
Avatar
unicode is a total mess tbh
14:03
no single piece of software renders any text consistently anymore 😦
14:03
there are like a million characters that look exactly the same
Avatar
ChillerDragon 2019-07-17 14:10:01Z
is there something like mapping in python?
14:10
can i call a str method on each item of a list for example?
Avatar
ChillerDragon 2019-07-17 14:13:46Z
ty i used a for loop already xd
14:15
http://puu.sh/DTWa1/db69109141.png i cant get ur script to support unicode @heinrich5991 :c
14:15
time to rewrite in bash..
Avatar
@ChillerDragon https://gist.github.com/heinrich5991/b6d9a0379fb0f15ad6aba4e4695e14f6#file-cat_records-py-L48 change this to with open(db, encoding='utf-8') as f:
Merging DDNet record files. GitHub Gist: instantly share code, notes, and snippets.
Avatar
ChillerDragon 2019-07-17 14:17:12Z
ya
14:17
adn then you get the result i posted
Avatar
I guess the output is escaped somewhy
Avatar
ChillerDragon 2019-07-17 14:19:17Z
i escaped it
14:19
UnicodeEncodeError: 'ascii' codec can't encode character '\xf6' in position 4: ordinal not in range(128)
14:19
i get a encode error otherwise
Avatar
Why would you escape it, then expect correct output? 😧
Avatar
ChillerDragon 2019-07-17 14:20:09Z
idk
14:20
python is so complicated
Avatar
back to os.system()
Avatar
Encode the string properly?
Avatar
why using python then
Avatar
ChillerDragon 2019-07-17 14:21:25Z
yy shell best
14:21
heinrich was so kind and provided me this nice script so i used that
Avatar
rewrite in lolcode KTHXBYE
Avatar
ChillerDragon 2019-07-17 14:21:49Z
sadly its python
Avatar
@ChillerDragon can I have ur files? I wanna try
Avatar
ChillerDragon 2019-07-17 14:22:29Z
look at this native unicode support
Avatar
Youll also need to output the string raw
Avatar
ChillerDragon 2019-07-17 14:22:34Z
no problemnmos whta so ever
14:23
25.49 KB
Avatar
Sth like sys.stdout.buffer.write(text.encode('utf-8')
Avatar
ChillerDragon 2019-07-17 14:23:46Z
yikes
Avatar
Its unicode, no language supports unicode nicely
Avatar
ChillerDragon 2019-07-17 14:24:09Z
bash does
Avatar
Bash barely cares about unicode at all
Avatar
@ChillerDragon works fine for me
Avatar
ChillerDragon 2019-07-17 14:24:45Z
hacker
14:24
what os are u on jao?
Avatar
ChillerDragon 2019-07-17 14:24:57Z
im deb9
Avatar
Besides bash is barely a language
Avatar
ChillerDragon 2019-07-17 14:25:09Z
u
Avatar
Lol are you on a utf8 locale?
Avatar
ChillerDragon 2019-07-17 14:25:35Z
wat dis?
14:26
i dont want to do this on windows :c
Avatar
Show output of locale
Avatar
I love how thats the conclusion you come to @ChillerDragon
14:26
Why are you so lazy?
Avatar
ChillerDragon 2019-07-17 14:26:27Z
LANG= LANGUAGE= LC_CTYPE="POSIX" LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL=
Avatar
I mean I'm quite lazy myself, but srsly, I've never seen someone at your level
Avatar
ChillerDragon 2019-07-17 14:26:59Z
😃
Avatar
Have you considered setting up your computer properly?
Avatar
ChillerDragon 2019-07-17 14:27:26Z
no u
14:27
idk how
14:27
what to setup there
14:27
for me setup mostly ends in mess up
Avatar
@ChillerDragon on deb9 it's the same for me
Avatar
I dont even know how you fucked that up, the debian-installer literally asks u to configure the locale
Avatar
ChillerDragon 2019-07-17 14:28:02Z
also works?
14:28
same output
Avatar
ChillerDragon 2019-07-17 14:28:11Z
hm
14:28
its fresh os
14:28
i destroyed my vps a few days ago
14:28
messed up sys libs
14:28
my hoster had to wipe out everything xd
Avatar
Did you put a rock on the enter key while installing?
Avatar
what python version
Avatar
ChillerDragon 2019-07-17 14:28:46Z
i didnt install it my self
14:28
3.5.3
Avatar
I have 3.7
Avatar
dpkg-reconfigure locales
Avatar
ChillerDragon 2019-07-17 14:29:19Z
i also have 3.7 i think compiled from soruce
Avatar
Pick en us utf8 one
Avatar
ChillerDragon 2019-07-17 14:29:33Z
command not found
Avatar
ChillerDragon 2019-07-17 14:30:01Z
14:30
ah
14:30
how do computers work?
Avatar
I guess thats mb, should have put a # at the beginning
Avatar
ChillerDragon 2019-07-17 14:31:16Z
14:31
dat one?
Avatar
ChillerDragon 2019-07-17 14:32:47Z
hm locale didnt change
Avatar
did u generate them
Avatar
You need to run update-locale
14:34
Then probably relog
14:34
I think it was sth like update-locale LANG=en_US.utf8
14:34
But dont know for sure, check the help :P
14:35
Also show locale -a
Avatar
@Learath2 "Besides bash is barely a language" are u an enemy of stallman
14:36
😡
Avatar
ChillerDragon 2019-07-17 14:36:54Z
i ddint expect u to support bash lol @Ryozuki
Avatar
the church of emacs will exorcize you learath
Avatar
I don't take such black and white positions, I'm sure neither does stallman
Avatar
@Learath2 python and rust handle unicode quite nicely
14:37
I see you found secure_random_password already
Avatar
@heinrich5991 even if the language has nice support for it, peoples lack of understanding of unicode usually breaks things
Avatar
yes, that might be more like it
14:38
but python and rust both try to be helpful in that regard
14:38
making it easier to write correct code
Avatar
It's overall not nice to work with unicode most of the time
Avatar
wrt. unicode
14:38
idc tbh
14:38
I like that I can type japanese characters in most applications nowadays and it just works™
14:39
looking at you, teeworlds
Avatar
Well rendering them out isnt too too hard
14:39
The problems start when you want to work with japanese text
14:40
Like tokenizing on a certain japanese character
14:40
Or modifying the skin color of an emoji :P
Avatar
works perfectly fine in rust and python
14:40
the first one
Avatar
ChillerDragon 2019-07-17 14:40:28Z
oh it worked thanks a lot @Learath2 and @heinrich5991
Avatar
skin color emoji is something I haven't looked into yet
14:40
@ChillerDragon what worked?
Avatar
ChillerDragon 2019-07-17 14:40:42Z
record cat
14:40
with utf8
Avatar
ah 🙂
Avatar
@heinrich5991 your script didnt work for him because he didnt have his locale set
Avatar
because he had a broken environment? 😛
Avatar
Well is it really "broken" per se?
Avatar
if you expect programs to use utf-8, yes
Avatar
Do you have to have a locale set?
Avatar
yes
Avatar
Well POSIX is a locale
Avatar
$ env | grep -E '(LC|LANG)' LANG=C LC_CTYPE=en_US.UTF-8
14:42
yes, one that doesn't support utf-8
Avatar
My locales are also set up weirdly, I never really looked into what the different locales do
14:43
I just set my lang en us utf8
Avatar
that works
Avatar
Are you supposed to set lang tho? I think i remember reading somewhere that when you ssh in the client is supposed to export that
Avatar
I think setting lang is the standard way to set the locale
Avatar
Anyways, I have servers registering and clients displaying them
Avatar
nice
Avatar
I'll merge the ipv6 and ipv4 entries on the master and put up a pr so people can review it
14:47
I dont like working blindly then having people tell me to essentially rewrite it
Avatar
I'm probably a huge part of that problem, sorry
Avatar
I'd be quite okay with it if you'd give me occasional feedback while I'm writing it
14:49
But just knowing that you'll have me rewrite 3/4ths of it a day after I finish it really just kills my motivation
Avatar
(I don't know how to fix this 😦 )
Avatar
Oh in other news, I've decided to make a 8 or 16 bit computer on a couple breadboards
Avatar
nice
Avatar
@heinrich5991 well you could try not ignoring it when I ask you to take a look along the way
Avatar
@Learath2 Von Neumann ?
Avatar
I do make it a habit to ask a lot of people while I'm still coding things, just to make sure what I'm working on is agreed on by a lot of people
Avatar
learath writting the bible
Avatar
@Ryozuki well I dont really remember the von neumann architecture, but I was thinking sth like SAP1
14:57
I guess SAP1 is a von neumann architecture
14:59
never heard of sap1
Avatar
Its an architecture from a textbook
15:00
Not really something that was ever used
15:00
But a lot of people make homemade computers based on it
Avatar
@Learath2 how do you feel about me possibly suggesting changes to a PR of yours with a PR to your branch?
Avatar
I guess that'd be fine, if your pr is also green
15:11
But who fixes it is rarely the issue as long as the suggestions dont really require too much work
Avatar
The Teeworlds Machine Learning Project was hardly a success unfortunately. My first approach of training on human input turned out to be basically plain wrong. I looked into reinforcement learning algorithms after that (you know, the stuff that plays chess, go, atari and dota). I implemented the A2C algorithm which is pretty much state of the art (and could be combined with pre training on human data). The model didn't learn to attack the opponent, at least it learned to stop killing itself with grenades. I published the code nevertheless https://github.com/timakro/tmlp outlining the possible reasons why it didn't work in the readme. What the project would probably need now to give it another chance would be an expert in machine learning dedicating him/herself to the project.
Teeworlds Machine Learning Project - A2C Python Implementation - timakro/tmlp
Avatar
thanks for publishing negative results!
Avatar
though no chance to fight the hype, you could publish as many negative results as you wanted
Avatar
Very interesting
15:18
I'll surely take a look soon, I was also planning on reincarnating my project to have a ml algorithm play gores
Avatar
It's funny how you stumble upon "encouraging" articles like those even when just researching the topic (I still believed it could work then and didn't search for answers why it didn't work) https://himanshusahni.github.io/2018/02/23/reinforcement-learning-never-worked.html https://thegradient.pub/why-rl-is-flawed/ https://www.alexirpan.com/2018/02/14/rl-hard.html
TL;DR: RL has always been hard. Don’t panic if the standard deep learning technique doesn’t solve it.
By definition, learning from scratch is just about the least sample-efficient approach there can be.
June 24, 2018 note: If you want to cite an example from the post, please cite the paper which that example came from. If you want to cite the post as a whole, you can use the following BibTeX:
15:19
@Learath2 theres basically no documentation so feel free to ask me, I'll explain the basic idea+structure if you like
Avatar
@timakro "There might be a bug" xd
Avatar
Machine learning is very prone to bugs you don't notice. Everything runs, it even trains and maybe even learns something but the performance is worse
Avatar
:/
Avatar
very interesting project, yes. did you use an image of the surroundings/vision as input like in the first video?
Avatar
@Learath2 i know ur a inner weeb
Avatar
xd
Avatar
Let me show you the saddest thing I've seen in a decade
17:22
17:23
Avatar
lol
17:24
r/programmerhumor is nice
Avatar
r/programmingcirclejerk
Avatar
I'll change the registering logic before I pr this, I need to handle masters not responding better
Avatar
C++ forever ♥
Avatar
@Noob gay
19:12
@Deleted User bomb + gay = bombgay 🤔
Avatar
true
Avatar
ChillerDragon 2019-07-17 19:26:39Z
i know that json api pr somehow @Learath2 i could swear i actually saw it on github or is it only a meme?
Avatar
@ChillerDragon wym?
Avatar
ChillerDragon 2019-07-17 19:35:29Z
the kawaii pr
19:35
where did u get that from
19:35
it looks so familiar
Avatar
idk if it's a meme tbh, I just saw it on some other discord
19:44
What did we change between 12.1 and 12.5?
Avatar
This still needs a lot of work, but it's operational. The ipv6 support is very much tacked on and the code is still very unoptimized. There are a couple crashes I still haven't tracked down, and it still doesn't handle masterservers being down gently. There is also a "PoC" masterserver that goes with it that's also pretty buggy @ Learath2/tw-http-master
Avatar
If the previous message is exactly the max lenght of characters per line, the next message will be empty, it doesnt matter if its a server or client message. I think because of the line ending it will go in the next line, but I dont know
Avatar
3b1b is really fun to watch, gives a lot of intuition to subjects that are very abstract
Avatar
the last one about exp(i * \pi) was cool
20:39
You did kinda have to overlook certain technicalities for it to be correct, but it's still a great way to look at it
20:44
@ChillerDragon can you give #1827 a try? It works fine on my computer, but I want to make sure
Avatar
ChillerDragon 2019-07-17 21:29:38Z
@Learath2 i usually go to the apple store to test mac libs stuff to make sure it works fine on clean fresh new devices
21:30
but i can check if it still works and compiles on my machine tomorrow which is very likley
Avatar
@trml Yes, same vision
Exported 606 message(s)