bullgard4[Debian stable] '~$ aptitude why libdns100' prints:
"i dnsutils Depends on libdns100 (= 1:9.9.5.dfsg-9+deb8u7)~$ aptitude why dnsutils
i gajim Hängt ab von dnsutils
bullgard4So why does gajim depend on dnsutils?
arunebullgard4: to do srv lookups?
linuseugh, it calls nslookup? Wouldn't it be nicer to depend on libasyncns seeing as it's also an option and it's a library that doesn't require calling an external process?
lovetoxlinus, if i google libasyncs a package from 2008 comes up
lovetoxhm no sorry
lovetoxi found it
lovetoxbut is dns-utils not a package that is installed from start
lovetoxmaybe thats why
lovetoxgajim can also work with libasyncs
linusNo, dns-utils isn't installed by default
linusWindows has nslookup by default I think, but it's a different tool as well
lovetoxthen we should ask Asterix what his reasoning was behin that
linusProbably that it's available by default on windows
Link MauveRecent GLib has Gio handling DNS lookups just fine, fyi.
Link MauveYou should move to that, it will work as expected on every platform.
lovetoxintersting thanks Link Mauve
lovetoxwhat is recent though
lovetoxgtk 18.9 is the highest we can go
lovetoxwhen i search for dns glibc
lovetoxall i get are, drmatic security exploit news posts ;:D
linuslovetox, glib not glibc
linusLink Mauve, perfect! I think I'll write that, that way we can get rid of both libasyncns and the terrible nslookup hacks
Link MauveI happen to have a GLib hacker sitting right in front of me, if you need anything. :)
lovetoxmhm for windows latest GLib is
lovetoxglib 2.46.2
lovetoxso i think this should be no problem
linuslovetox, that's not the responsibility of the resolver as far as I can tell so far
Link MauveIndeed, nothing to do with it.
linuswell with gajim you never know... :p
lovetoxhm maybe i understanding something wrong but
lovetoxif i put in jabber.at
lovetoxto get the port on which a service is running
lovetoxi need a dns query or not?
lovetoxi thought thats what we need the dns lib for
lovetoxat least when the port is in a dns entry specified on the domain
Link MauveYes, you actually need to do multiple ones.
linusyes, but the resolver only sends the queries
linusit's up to the code calling the resolver to decide which name and record type to query
lovetoxah ok
lovetoxbecause thats all in resolver.py
lovetoxhardcoded :)
lovetoxi think you need to do work in this file
lovetoxso i meant to add the query to xmpps
linusno, it's not hardcoded in resolver.py
linusthe only reference I see to _xmpp-client for instance is in the code that runs if you run resolver.py on its own
linusgajim/src/common/connection.py tells the resolver what to resolve
lovetoxyou are right sorry
linusline 1192
lovetoxindeed i did look at that line where you can run it on its own
bullgard4arune, What does "srv" stand for? "server"?
Link Mauvebullgard4, service.
Link MauveIt’s a DNS record type that allows you to match a service (for example _xmpp-client._tcp) to one or multiple hostname-port couples, with priority and weight.
bullgard4arune, And what do you mean by "service lookup"?
lovetoxyou have to query a domain
lovetoxjabber.at
lovetoxfor its information
lovetoxIP, ports etc
lovetoxthats called a lookup
bullgard4arune, Link Mauve, lovetox: Thank you for explaining.
lovetoxlinus, Link Mauve
lovetoxthe one thing i spend very much time on since i learned python
lovetoxis what is a string, what is unicode, what is an encoding
linussounds accurate :p
linuspython 2 got it all wrong, python 3 fixed it, but the result is even more confusion x)
lovetoxbut now that i read the 50th guide about it
lovetoxi think i hang on to a simple rule
lovetoxat least in python3
lovetoxif i write something to disk, i encode it for example utf-8
linusin python 3 it's simple. str (unicode) is text, bytes is bytes
lovetoxif read something from disc, i decode it into unicode
lovetoxdoes that sound right?
linusyes. Because you can't write text to a disc, except with a pen, which might be a bad idea ;)
lovetoxok yeah is just learnd if you use the open() function in python
lovetoxand you dont state an encoding
lovetoxit will use your system default
Link Mauvelovetox, yes, that’s exactly how you do it, whenever you need to communicate with the outside you encode/decode to bytes, otherwise you always use str inside of your program.
Link MauveObviously, if the actual data is some random chunk of binary then you still use bytes.
lovetoxLink Mauve
lovetoxyou are gajims mount everest
Link MauveAm I? ^^'
lovetoxtoday i debuged a decoding error, that only happend with your vcard
Link MauveHaha. :D
Link MauveIs that maybe why opening the preferences crashes Gajim here?
lovetoxand just now in your vcard the spinner spinds endless, end i debug it
lovetoxseems like gajim doesnt support Fraction of a Second in entity time
lovetoxand never returns something to the vcard window
lovetoxso it never ends spining
lovetoxno thats probably because you played around with the audio settings?
Link MauveOh.
lovetoxi wondered because you wrote that in your bug txt
Link MauveI don’t remember playing with that.
lovetoxand afterwards you keep telling me it crashes
Link MauveThat one was *so* long ago. :D
Link MauveLike, 20 days ago.
lovetoxdo you get nothing in the log
lovetoxwhen it happens?
Link MauveThe crash? It’s a segfault AFAIK.
Link MauveAh yes, I see, it’s due to me not running PulseAudio I guess.
Link MauveAnd Gajim somehow still tries to use it.
lovetoxi write that on the list :D
lovetoxwhat reason is there to display the fraction of the second?!
lovetoxi think i just cut that off the string and drop it
Link Mauvelovetox, because that’s a normal ISO-8601 format?
Link Mauvelovetox, is it this one? https://xmpp.org/extensions/xep-0202.html
lovetoxhttp://xmpp.org/extensions/xep-0082.html
Link MauveOf course, but in which container?
Link MauveThis one only defines the format.
lovetoxyes
lovetox202
Link MauveOk.
lovetoxi dont question why its in the xmpp standard
Link Mauvelovetox, so Gajim’s parser doesn’t support 0082 correctly? :/
lovetoxi ask my self if there is a reason to show it to the user
Link MauveThat’s a good question. :)
lovetoxi mean your time result is someway different anyway
lovetoxfor example you dont trail the Z
lovetoxyou put it in <tzo>Z</tzo>
Link MauveZ isn’t a timezone used on Earth. :p
Link Mauve±00:00 is an actual timezone (also named GMT), but it’s different from UTC.
Link Mauve/pedantic
lovetoxThe Time Zone Definition is mandatory and MUST be either UTC (denoted by addition of the character 'Z' to the end of the string) or some offset from UTC (denoted by addition of '[+|-]' and 'hh:mm' to the end of the string)