XSF Discussion - 2017-11-29


  1. Zash

    Ge0rG: No, no newlines in attributes.

  2. jonasw

    Zash, works for me: >>> etree.fromstring("""<foo a='&#10;'/>""").get("a") '\n'

  3. Zash

    Didn't we go over whitespace rules recently?

  4. jonasw

    I don’t recall

  5. Zash

    https://www.w3.org/TR/REC-xml/#AVNormalize

  6. jonasw

    &#10; circumvents that I think

  7. Zash

    > =xml.parse[[<x y='&#10;'/>]] <x y=' '/>

  8. Zash

    Indeed

  9. jonasw

    > Note that if the unnormalized attribute value contains a character reference to a white space character other than space (#x20), the normalized value contains the referenced character itself (#xD, #xA or #x9). This contrasts with the case where the unnormalized value contains a white space character (not a reference), which is replaced with a space character (#x20) in the normalized value and also contrasts with the case where the unnormalized value contains an entity reference whose replacement text contains a white space character; being recursively processed, the white space character is replaced with a space character (#x20) in the normalized value.

  10. Ge0rG

    Zash: but in values you can have them.

  11. jonasw

    replacing the character reference wins over normalizsation to space

  12. Zash

    > return xml.parse(tostring(xml.parse("<x y='&#10;'/>"))) <x y=' '/>

  13. jonasw

    nice

  14. jonasw

    that should probably not happen

  15. Zash

    Things broke when we escaped non-space whitespace.

  16. jonasw

    which things?

  17. Zash

    Things!

  18. Zash

    Broke interop with M-Link IIRC

  19. jonasw

    even if only applied to attributes?

  20. Zash

    I don't recall the details

  21. jonasw

    aioxmpp escapes newlines etc. in attributes and haven’t had issues with that yet

  22. Flow

    jonasw, which xml API does aioxmpp use (if any)?

  23. jonasw

    Flow, for generation, we actually write XML ourselves. for parsing, it’s xml.sax, which is backed by expat in CPython.

  24. jonasw

    (the custom writer implements a SAX interface, but with some goodies which were hard to achieve with xml.sax, see <https://docs.zombofant.net/aioxmpp/devel/api/internal/xml.html#aioxmpp.xml.XMPPXMLGenerator>)

  25. jonasw

    mostly about encoding, namespaces (and prefixes) and strictness.

  26. Flow

    jonasw, so does aioxmpp do the escaping or does it happen under the hood of the XML API?

  27. jonasw

    let me check, IIRC we invoke some xml.foo method

  28. jonasw

    yeah, xml.sax.saxutils.quoteattr -> libexpat on CPython

  29. Flow fetches the lastest aioxmpp git

  30. Flow

    wauza, 75% of aioxmpp's SLOCs are tests. repspect jonasw

  31. jonasw

    thank you :)

  32. mathieui

    yeah

  33. jonasw

    edhelas, around?

  34. jonasw

    Guus, is there a way you could give powers to (only) cancel (only) the xeps docker builds?

  35. jonasw

    (you, or any iteam member really)

  36. Guus

    jonasw: unlikely

  37. jonasw

    pity

  38. jonasw

    too late now anyways

  39. Guus

    the access control is not very fine-grained

  40. Guus

    read/write/admin on a repo level, that's all I can find.

  41. jonasw

    okay, nevermind then. I’ll just try to make sure that I only need one push then :)

  42. Guus

    jonasw: perhaps you can shorten the build duration somehow?

  43. Guus

    that'd reduce the impact

  44. jonasw

    the PDF build takes ages, I don’t think we can do anything about that

  45. jonasw

    if we had incremental builds, that’d be amazing too, but I think that’s not possible with dockerhub

  46. jonasw

    or maybe even docker in general

  47. Guus

    isn't the entire concept of docker hub that you base images on eachother?

  48. jonasw

    I don’t think that we can reasonably base on the previous build, can we?

  49. Guus

    I don't know

  50. Kev

    Not reasonably, no.

  51. Kev

    And the idea is that you build up layers, yes, but not generally diffs between multiple versions of the same image.

  52. jonasw

    hm, would write access allow me to break things which I can’t break anyways by pushing to the xeps repository?

  53. Guus

    as you're an editor, I'm unsure if you shouldn't be allowed to do more damage anyways

  54. Guus

    there's actually an 'editors' team there

  55. Guus

    Kev, any good reason why editors shouldn't be part of that editor team on docker hub?

  56. Guus

    it now has Kev and Sam

  57. Kev

    Don't think so.

  58. Guus

    jonasw - can you share your dockerhub accountname?

  59. jonasw

    xsfjonas

  60. jonasw

    sweet

  61. Guus

    hocus, pokus, pilatus, pas...

  62. jonasw

    thanks :)

  63. Guus

    no problem

  64. edhelas

    jonasw pong

  65. jonasw

    edhelas, I used "jt" as initials for your change, I hope that’s okay.

  66. edhelas

    ah yeah, that was that :D

  67. edhelas

    is there a place where this jt alias is defined ?

  68. jonasw

    no

  69. jonasw

    unfortunately not

  70. jonasw

    I feel we should maybe move from "initials" to "handles"

  71. jonasw

    initials have low entropy, are prone to collisions, and aren’t used anywhere else in the community, making them hard to resolve

  72. edhelas

    I thought that people that participate will appears in Acknowledgements

  73. jonasw

    not unless you add yourself, I don’t think that’s the editors task. maybe.

  74. jonasw

    (if it is, my apologies)

  75. edhelas

    eheh, we should clarify that :p

  76. jonasw

    I think the Ack seciton is pretty much at the authors discretion

  77. edhelas

    okay

  78. edhelas

    maybe point all those initials to https://xmpp.org/about/xsf/members.html with an anchor ?

  79. edhelas

    ah, this list can be cleaned up as well, which can break links… mhhh

  80. jonasw

    also, you don’t need to be a member to contribute to a XEP

  81. edhelas

    true

  82. Ge0rG

    edhelas: the members list is much more dynamic than the XEP history

  83. jonasw

    I’m looking forward to the fun of a name change.

  84. edhelas

    eheh

  85. edhelas

    whatever, having pubsub#max_items will now allow us to move forward regarding the PEP support on the servers

  86. jonasw

    :)

  87. jonasw

    sorry for the delay, I forgot this existed and council voted on it :(

  88. jonasw

    I note that the log timestamps on http://logs.xmpp.org/council/2017-11-29#15:55:08 are off by a few minutes

  89. jonasw

    I think five

  90. jonasw

    cc @ iteam

  91. jonasw

    intosi, MattJ maybe?

  92. MattJ

    We'll need to figure out if there is a docker image for ntp, or make one

  93. MattJ

    (only joking)

  94. MattJ

    (I think)

  95. jonasw

    please be.

  96. Ge0rG

    jonasw: re 0392, "Treat the output as little endian and extract the last-significant 16 bits." - "least-significant" and I'm currently questioning whether it's a signed or an unsigned 16 bit number.

  97. intosi

    MattJ: right

  98. intosi

    Or we might've forgotten we actually care about time, and didn't bother installing ntpd ;)

  99. intosi

    Fixed

  100. dwd

    intosi, I'm glad you found the time.

  101. intosi

    dwd: fixed with minutes to spare.

  102. jonasw

    Ge0rG, unsigned

  103. Ge0rG

    jonasw: or maybe it doesn't matter at all?

  104. Ge0rG

    unsigned shorts are a real pita in Java :>

  105. jonasw

    Ge0rG, it matters, I think

  106. Ge0rG

    jonasw: "Divide the value by 65536" - shouldn't that be 65535?

  107. jonasw

    no

  108. jonasw

    we don’t want to reach 1.0

  109. jonasw

    because that’s equal to 0.0

  110. jonasw

    (in the circle)

  111. moparisthebest

    openntpd seems to be a better choice for just keeping time correct, imho

  112. Ge0rG

    jonasw: great!

  113. jonasw

    (I got that wrong at first, Marcus pointed it out on standards@)

  114. jonasw

    *Marcel

  115. jonasw

    damn, I got that wrong in the acks

  116. jonasw

    Ge0rG, is yaxim about to get XEP-0392 support? :)

  117. jonasw

    if so, make it so that conversations can steal it :)

  118. MattJ

    Conversations stealing code from Yaxim, that'll be the day

  119. Zash

    -xep 392

  120. Bunneh

    Zash: Consistent Color Generation (Standards Track, Experimental, 2017-11-29) See: https://xmpp.org/extensions/xep-0392.html

  121. Ge0rG

    jonasw: I'm working on 0392, yes.

  122. edhelas

    wow this XEP

  123. mathieui

    edhelas, you haven’t implemented it yet?? even poezio has it

  124. jonasw

    *cough*

  125. MattJ

    I think it's a well-produced XEP, but really seems like a lot of fuss over something so trivial

  126. edhelas

    mathieui wan't to compare sizes of our implemented XEP list ?

  127. jonasw

    MattJ, I’m sorry :-)

  128. mathieui

    edhelas, no thanks :D

  129. MattJ

    I really don't care that much what colours people show up as

  130. MattJ

    Seems many people do...

  131. edhelas

    mathieui SIMS implemented ? :-°

  132. Ge0rG

    MattJ: the important thing is not that all clients show the same color but rather that the palette has good readability

  133. jonasw

    the palette stuff blew it ub much

  134. jonasw

    the palette stuff blew it up much

  135. jonasw

    (with "palette stuff" I mean mapping to discrete color palettes, like terminal clients do)

  136. Zash

    Seems weird to me to specify as a protocol tho.

  137. jonasw

    I wonder if it would’ve been more suited for Informational track, but i don’t care :)

  138. jonasw

    (given that we’d want to have this under rather strict change control once it becomes widespread, Standards Track is probably sane)

  139. edhelas

    meanwhile in Movim https://github.com/movim/movim/blob/master/app/helpers/StringHelper.php#L312 :D

  140. edhelas

    the thing is that I'm following the default colors of Material design

  141. edhelas

    so I'm wondering how this will fit with this XEP

  142. jonasw

    edhelas, the XEP allows you to use a palette

  143. jonasw

    there’s a large section on that

  144. Ge0rG

    the Android avatar palette has eight predefined colors or something

  145. jonasw

    but I would suggest to not do that and instead use the colors generated by the XEP.

  146. daniel

    jonasw, using a palette won't distribute the colors equaly on that palette though, or will it?

  147. SamWhited

    I think this XEP was very well thought out and written, but I can't see it being widely used. It's just too much complexity, and too large to implement easily when instead I could just do what edhelas has

  148. jonasw

    daniel, it will do that only if the palette is itself equally distributed

  149. daniel

    yes... i'm afraid it won't work for me then. i mean i'll happily give it a try if Ge0rG writes the code

  150. daniel

    but i really want to keep my color palette

  151. jonasw

    SamWhited, the gist of it is pretty much angle = sha1(text)[:2] / 65536 * 2π; cr = sin(angle); cb = cos(angle); and three formulas to convert cr and cb to rgb. maybe it’d help if there was a single block at the beginning which lists that and save the details for later below?

  152. jonasw

    daniel, why though?

  153. daniel

    jonasw, why i want to keep my palette?

  154. jonasw

    yes

  155. daniel

    because i want them to fit into the platform

  156. intosi

    daniel: +1 :)

  157. edhelas

    daniel maybe we can have the same palette, we are both using Material Design colors :)

  158. jonasw

    daniel, I *assume* that most such palettes are rather equally distributed

  159. jonasw

    if you have the rgb values for them, I’d be happy to check that

  160. edhelas will introduce XEP-XXXX Material Design color palette

  161. SamWhited

    jonasw: that might help, but it will still be a very long complicated XEP, and if I can implement it from just that section why is the rest needed?

  162. daniel

    jonasw, https://github.com/siacs/Conversations/blob/master/src/main/java/eu/siacs/conversations/utils/UIHelper.java#L35

  163. Guus

    Potential board meeting time. Who is here?

  164. jonasw

    SamWhited, special cases (like if you’re restricted to a palette), precision of the description to avoid ambiguities, and color vision deficiency correction

  165. jonasw

    daniel, thanks

  166. jonasw

    daniel, is that ARGB or ABGR?

  167. daniel

    argb

  168. jonasw

    I could’ve guessed.

  169. dwd

    Argh, maybe.

  170. Guus

    Nyco, Ralphm, MattJ, Martin - does board meet now?

  171. MattJ

    I was guessing not, because you said you couldn't make it

  172. Martin

    I'm here, but wasn't sure if the mailing list thread flattened it

  173. Guus

    Wednesdays are very inconvenient. Parking lots, laptops in cars, no heating, and roaming is typically invovled

  174. Guus

    as we didn't agree on a new time, I thought I'd check in now.

  175. Guus

    fwiw, 2:30pm-3:00pm GMT every Thursday works for me - as suggested on the mailing list - but there's no point in agreeing between the three of us, without Ralphm and Nyco.

  176. MattJ

    Indeed

  177. ralphm

    I am good with that

  178. MattJ

    nyco, around?

  179. Guus

    well, we have quorum now - shall we start a meeting now? We can finalize the scheduling once nyco pitches in.

  180. MattJ

    wfm

  181. Guus

    ralph, do you want to take the lead? You make for a comfortable chair :)

  182. Guus

    ralphm ^ ?

  183. Guus bangs a gavel

  184. ralphm

    Well, I thought it would be very weird to have a meeting without an agreed time

  185. Guus unbangs a gavel

  186. ralphm

    First order of business is that we choose a chair and I think we should all be there

  187. Guus

    I'm perfectly happy to continue with an acting chair for this meeting.

  188. Guus

    I do agree that choosing a chair should involve all of us

  189. ralphm

    No need for an acting chair, I am still a proper one

  190. ralphm

    So, hoping that nyco will also agree upon the time, let's go for tomorrow 14:30 UTC

  191. Guus shrugs.

  192. Martin

    Sounds good to me

  193. Guus

    works for me

  194. Guus

    I think all of us are on the same DST switchover date, correct? if so, it'd make sense to anchor it to London time - to prevent a sudden shift twice a year?

  195. Guus

    as UTC is London time now, there's no immediate difference.

  196. MattJ

    Yes, sensible

  197. ralphm

    I'd be very happy to anchor to London

  198. peter

    hey, today is my jabiversary: https://mail.jabber.org/pipermail/jdev/1999-November/060711.html :-)

  199. Ge0rG

    peter: congratulations! :)

  200. peter

    heh

  201. jonasw

    peter, nice, in two years we can celebrate your 20th :-)

  202. peter

    this is why they call me "Old Man Jabber" ;-)

  203. SamWhited

    Oh nice! Congrats indeed!

  204. SouL

    Wow, suuuper nice, happy jabiversary :D

  205. dwd

    In case anyone still thought the XSF was the weirdest standards org, the IETF has pressed its claim by publishing 18 versions of the DTLS spec within half an hour.

  206. fippo

    dwd: how does that compare to BUNDLE with its 42 revisions?

  207. fippo

    granted, over the last five or six years

  208. intosi

    peter: congrats, you're now allowed to vote ;)

  209. moparisthebest

    what, why (@18 DTLS versions)

  210. zinid

    Who cares what IETF is doing, everyone is doing what Google does, what's good for Google bussiness

  211. zinid

    </rant>

  212. jjrh

    Google employees participate in IETF standards. :P

  213. fippo

    google employees seem to ignore MUSTs in RFCs written by other google employees. Seems to be a big company.

  214. fippo

    dwd: ekr's response is the best...

  215. Zash

    dwd: wat, link?

  216. fippo

    zash: https://www.ietf.org/mail-archive/web/ietf/current/msg105575.html

  217. fippo

    zash: ietf-discuss is like hackernews for... old ppl?

  218. jjrh

    I miss the days when slashdot actually had good news and comments that were insightful

  219. peter

    If Brian Carpenter were paying attention to the TLS WG list, he would have known. (Although I still don't understand why ekr felt the need to do that.)