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-09-01 00:00:00Z and 2019-09-02 00:00:00Z
Avatar
ChillerDragon 2019-09-01 08:23:08Z
Any idea on how do find a youtube video if i only have the exact length?
08:23
well and the audio
08:23
and a part of what could be the video title but its too generic
Avatar
how "too generic" is it?
08:46
1000 results? 1000000 results?
Avatar
ChillerDragon 2019-09-01 08:49:06Z
It is a song i downloaed around april 2018.The downloaed only named it "♫Royalty - Free.mp3". And i want to credit the artist but idk how.
08:49
I used a bunch of google tools to track down the date and check my history there without success.
08:49
I hoped i could combine search time and filter by the length since i have that exactly
08:49
Because the artist is hardly known tools like shazam dont work.
Avatar
how long is the video?
09:46
try some websites
Avatar
ChillerDragon 2019-09-01 10:08:26Z
3.29
Avatar
is there any way to get fakeping working normal?
Avatar
i found an antiping thing, and with that i am glitched out even with 60ping (edited)
11:46
ANIPING
11:46
OMG FAKEPING
🤖 1
Avatar
Hey, can someone help? I am using the cat_records.py script by heinrich, which merges two file based record files together. I am on Linux and I get this error: Traceback (most recent call last): File "cat_records.py", line 81, in <module> sys.exit(main()) File "cat_records.py", line 53, in main records = read_records(f) File "cat_records.py", line 35, in read_records contents = file.read().splitlines() File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 1540: ordinal not in range(128)
Avatar
it's possible you also have a broken locale
Avatar
How can I fix that?
13:33
Also, what is a locale?
Avatar
@fokkonaut write locale on terminal, show output
Avatar
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
what OS are you on?
Avatar
debian 9
Avatar
[quakenet] Learath2 BOT 2019-09-01 13:37:27Z
fokkonaut, show locale -a aswell
Avatar
C.UTF-8 POSIX
13:38
wait
13:38
C C.UTF-8 POSIX
13:38
this^
Avatar
yeah definitely the locale
13:38
you first generate the en_US utf8 one
13:39
# dpkg-reconfigure locales
Avatar
with the #?
Avatar
no, as root
13:39
weird window pops up, what to do xd
Avatar
find and mark en_US.UTF-8
13:41
this one?
Avatar
complete
13:41
d
Avatar
space to mark that, enter to OK, iirc
13:41
now do locale -a
Avatar
C C.UTF-8 POSIX
13:42
still
Avatar
hmm try . /etc/profile
13:44
then try locale -a again
Avatar
still
Avatar
you sure it generated en_US.UTF-8?
13:45
i can do it again
13:45
if youd like
Avatar
You need to mark it with space, then press enter to get it generated
Avatar
oh lol
13:46
ahhh
13:46
that space was the problem i guess
13:46
now its taking time
13:48
C C.UTF-8 POSIX en_US.utf8
Avatar
okay now set your locale to the new one
13:53
I think it was sth like update-locale LANG=en_US.utf8 on debian
Avatar
done
13:58
thats it?
Avatar
[quakenet] Learath2 BOT 2019-09-01 14:11:43Z
check locale again
14:34
C C.UTF-8 POSIX en_US.utf8
14:34
locale -a
Avatar
just locale
Avatar
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
did you restart the session after update-locale?
17:09
you need to atleast do . /etc/profile
Avatar
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=
17:30
still this
Avatar
@fokkonaut cat /etc/default/locale pls
Avatar

File generated by update-locale

LANG=en_US.utf8
Avatar
[quakenet] Learath2 BOT 2019-09-01 17:38:42Z
fokkonaut, just restart your computer :/
Avatar
its my vserver
Avatar
I guess just give it a restart 😛
Avatar
@fokkonaut have you tried logging in again?
17:53
that should be as good as a reboot(?)
Avatar
not yet
Avatar
[quakenet] Learath2 BOT 2019-09-01 17:53:27Z
oh yeah, maybe a new ssh session might work
Avatar
still gives me the error
19:22
or what do i have to do after i relogin
Avatar
[quakenet] Learath2 BOT 2019-09-01 19:27:24Z
check if the locale is set to begin with
Avatar
how to check
19:40
it is set correctly
19:41
but the script from heinrich still does not work, throws the same error
Avatar
[quakenet] Learath2 BOT 2019-09-01 19:41:15Z
if it still doesn't work refer to heinrich5991
Avatar
@heinrich5991 Could you help?
Avatar
paste env please
19:43
and show me the error
Avatar
env from where?
19:44
python3 cat_records.py blm.dtb BlmapChill_record.dtb Traceback (most recent call last): File "cat_records.py", line 81, in <module> sys.exit(main()) File "cat_records.py", line 53, in main records = read_records(f) File "cat_records.py", line 36, in read_records return [Record.parse(c) for c in chunks(contents, 3)] File "cat_records.py", line 36, in <listcomp> return [Record.parse(c) for c in chunks(contents, 3)] File "cat_records.py", line 23, in parse time = Decimal(lines[1]) decimal.InvalidOperation: [<class 'decimal.ConversionSyntax'>]
Avatar
python -m pdb <command>
Avatar
python -m pdb cat_records.py blm.dtb BlmapChill_record.dtb
Avatar
Traceback (most recent call last): File "/usr/lib/python2.7/pdb.py", line 1314, in main pdb._runscript(mainpyfile) File "/usr/lib/python2.7/pdb.py", line 1233, in _runscript self.run(statement) File "/usr/lib/python2.7/bdb.py", line 400, in run exec cmd in globals, locals File "<string>", line 1, in <module> File "cat_records.py", line 68 print(entry.unparse(), end="") ^ SyntaxError: invalid syntax
Avatar
python3 …
Avatar
ok there is this (Pdb)
19:49
what now?
Avatar
try print(lines[1])
19:50
or so
Avatar
lines not defined
19:51
i have no idea what to do
Avatar
me neither
19:52
try bt maybe?
19:52
perhaps locals()
Avatar
im getting lots of words xddd
19:53
heinrich can you send me your version of the file? Chiller modified this i guess
19:53
@ChillerDragon
Avatar
show me the output
Avatar
of what
Avatar
hmm
19:58
Merging DDNet record files. GitHub Gist: instantly share code, notes, and snippets.
19:59
@fokkonaut if you send me the files I can figure out how to work with pdb 🙂
Avatar
You mean the record files?
Avatar
ye
20:00
638.94 KB
20:01
your script says this:
20:01
File "abc.py", line 8 <!DOCTYPE html> ^ SyntaxError: invalid syntax
20:01
20:02
this is the script from chiller
Avatar
ChillerDragon 2019-09-01 20:02:06Z
doctype html xd
20:02
usw the raw version if u use wget
Avatar
yea no same error as in chillers
Avatar
@fokkonaut blm.dtb is garbage
20:06
OH LOL
20:09
it got merged
20:09
it was just this file lollll
20:10
well, i got an output
20:10
it looks like one of the files
20:10
did it create a new one?
Avatar
no, you have to redirect it somewhere
20:10
> output.db
Avatar
how?
Avatar
python script.py param1 param2 > output.dtb
20:12
this is so cool
20:12
thank you heinrich!
Exported 147 message(s)