XSF Discussion - 2018-03-05


  1. daniel

    What's not to get about the mam thread. Closing gaps is incredibly difficult in current MAM.

  2. daniel

    I can totally see why they want to retrieve a list of all ids

  3. jonasw

    yeah, I realized that while writing my reply

  4. daniel

    Also when you are woken up by the os after a push I can see why you maybe want to just get one message instead of all the back log

  5. jonasw

    but assuming that with bad connection, the overlap between the "huge" gap (which spans from "last message ID of the gapless huge block in the past to now) and messages received inbetween should be small enough to not worry about the overhead?

  6. daniel

    I might not do that in my application.

  7. daniel

    But I can see why someone would want to do that

  8. Kev

    How is filling a hole hard? You say "Give me stuff between these ids".

  9. jonasw

    yeah, I don’t see the problem with that; the push service should just deliver that ID.

  10. jonasw

    Kev, what if you don’t have those IDs?

  11. daniel

    Kev: remembering where the gaps are is

  12. jonasw

    because you don’t get IDs for messages you sent!!k

  13. intosi

    jonasw: you have ids of things surrounding the gap. You can use the start and end of a returned set that isn't complete.

  14. intosi

    * first / last

  15. jonasw

    intosi, *if* you actually have the IDs, yes

  16. jonasw

    but it makes things more complex than "query MAM from the last ID you got"

  17. Kev

    Other than sent messages, which are an obviously different problem, why would you not have them?

  18. intosi

    ^ what Kev asked

  19. jonasw

    Kev, other than that, you’d have them if your server supports giving you IDs on carbons

  20. intosi

    If you know there's a hole, you have a first and a last id.

  21. jonasw

    I am just arguing that the suggesiton from that thread that all you’d have to do is to query since the last ID: > And how it is more simple than "the latest message I have has ID XXXXX, request all messages since XXXXX"? is not correct.

  22. Kev

    jonasw: It depends what you're trying to achieve.

  23. Kev

    If you want complete sync, then Edwin is right.

  24. Kev

    If you only want recent sync, then the holes don't matter so much.

  25. Kev

    But in any case, ISTM that filling the holes is possible anyway.

  26. Kev

    Assuming you get the ids on messages sent/received, but those are orthogonal issues.

  27. jonasw

    Kev, yes, it is possible

  28. jonasw

    so I drafted this: https://github.com/jabbercat/jabbercat/issues/26#issuecomment-370333729

  29. jonasw

    would that work or do I have a logic fault in that?

  30. jonasw

    (regarding backfilling holes)

  31. jonasw

    s/event/message/ if you can’t follow

  32. daniel

    jonasw: sounds pretty complicated considering the general dump clients approach of xmpp

  33. jonasw

    I find it rather okay-ish. It has the advantage (compared to a list of stanza-IDs from the server) that I can dedup properly even if I don’t get stanza-ids on all stanzas, which is sadly currently the state-of-the-xmpp-art

  34. daniel

    jonasw: i agree with you that it is _possible_ to close gaps. But at what cost. Do you really want to point every xmpp developer to that algorithm?

  35. jonasw

    one could also simply keep track of the last "MAM-confirmed" message and always sync from there.

  36. jonasw

    the number of dups should be neglectible anyways if sync failed due to bad network.

  37. daniel

    > one could also simply keep track of the last "MAM-confirmed" message and always sync from there. That's what I do. And I only dedup once because then I put the mam ID in the dedupped message by the way

  38. daniel

    But thats a different thing than closing gaps

  39. Kev

    Sounds straightforward enough.

  40. jonasw

    daniel, in the end, the gap is closed; what do you consider "closing gaps"?

  41. daniel

    I love how for every xep there is ab 'algorithm' or an explanation on some random persons blog or github like here is how you use that xep.

  42. edhelas

    https://github.com/signalapp/Signal-Android/issues/7460 Signal down

  43. Ge0rG

    Time to blow the xmpp horn!

  44. Ge0rG

    Oh, it's up again, only was down for two hours

  45. Holger

    Damn.

  46. jonasw

    vanitasvitae, wouldn’t the MAM usage you proposed on standards@ cause a long-connected client to re-download all messages it alread has received live?

  47. vanitasvitae

    jonasw: sorry, I'm not sure which proposal you are talking about :D

  48. jonasw

    vanitasvitae, the email which starts with: > Maybe it helps to write down how most xmpp devs use MAM

  49. jonasw

    oh damn

  50. vanitasvitae

    :D

  51. jonasw

    I think I got you confused

  52. vanitasvitae

    Wasnt me probably

  53. jonasw

    which also explains why "you" are so proficient with MAM, that was unexpected to me

  54. vanitasvitae

    :D

  55. vanitasvitae

    I think lovetox sent that mail, right?

  56. jonasw

    yeah

  57. Link Mauve

    Ugh… https://github.com/redsolution/xabber-android/issues/802

  58. Kev

    Suddenly Swift's issue reporting doesn't seem so bad, does it? :)

  59. Link Mauve

    You mean closing any issue and opening it in your internal bugtracker, where you can say exactly the same thing without me knowing it? :p

  60. Kev

    I think the 'without you knowing it' bit matters :)

  61. Kev

    I mean, no, we'd never do that!

  62. intosi

    😼

  63. moparisthebest

    Link Mauve, to be fair that scanner thing had a ton of false positives, even on conversations...

  64. moparisthebest

    in fact what I've seen of it was *only* false positives up to now

  65. Link Mauve

    moparisthebest, they haven’t been able to scan Conversations because you have to pay for it.

  66. moparisthebest

    oh, was it a different scan then?

  67. moparisthebest

    I'm having trouble finding it but there was definitly a 'scan report' released recently that accused conversations of having trackers too

  68. Link Mauve

    moparisthebest, there was one for some Conversations “plugin”: https://reports.exodus-privacy.eu.org/reports/search/eu.siacs.conversations.sharelocation

  69. Link Mauve

    But that’s not Conversations.

  70. SamWhited

    I hatethose things, they always say stuff without any context

  71. SamWhited

    'ACCESS_COARSE_LOCATION Dangerous' … umm, no, it's a mapping app, that's expected.

  72. Link Mauve

    https://reports.exodus-privacy.eu.org/reports/2332/ otoh, is doing well.

  73. Link Mauve

    SamWhited, or internet access, for an application opening a TCP connection on a non-HTTP port. :p

  74. SamWhited

    Isn't Android's INTERNET permission just implicit and given to everything? That one seems really extreme

  75. moparisthebest

    yes

  76. jonasw

    lolwat, INTERNET "dangerous"?

  77. moparisthebest

    I thought they were changing that at some point, maybe 8 or in the future?

  78. moparisthebest

    this is one of the now fewer reasons why I insist rooting is necessary for a secure android phone

  79. moparisthebest

    (because you can firewall applications from the internet that way)

  80. jonasw

    I’m more worried about android or the telephony itself being massively insecure. If I wouldn’t trust the apps I’m running, I can trash the device right away I feel.

  81. Link Mauve

    Anyway, these guys are very open to suggestions, I can pass any you have.

  82. SamWhited

    I'm more worried about "scanners" like this training non-technical users to look at exactly the wrong things.

  83. jonasw

    yeah

  84. jonasw

    scanning for trackers is probably sane

  85. SamWhited

    Not IMO

  86. jonasw

    dunno

  87. Link Mauve

    SamWhited, when you see things such as https://blog.acolyer.org/2018/03/05/apps-trackers-privacy-and-regulators-a-global-study-of-the-mobile-tracking-ecosystem/

  88. jonasw

    depends on how safe against false-positives it is

  89. Link Mauve

    It’s not exactly “the wrong thing”.

  90. SamWhited

    I'm aware, but Google's app analytics stuff isn't that.

  91. Link Mauve

    jonasw, it isn’t, because by European laws they are not allowed to decompile or anything.

  92. Link Mauve

    Their tester is a glorified grep.

  93. jonasw

    I would not support a statement which said that "google analytics is exactly the wrong thing to look at when checking how privacy friendly a thing is" though

  94. Link Mauve

    I block Google Analytics on the web, I would do the same if I had a phone.

  95. moparisthebest

    yea but if you voluntarily use the google play store to install apps, that seems like a hard opt-in to google analytics tracking to me

  96. moparisthebest

    which is why I only use f-droid personally

  97. Link Mauve

    moparisthebest, most people don’t know alternatives even exist.

  98. Link Mauve

    They use what was installed when they bought their phone.

  99. Zash

    Windows monopoly all over again

  100. moparisthebest

    I know, depressing :'(

  101. Link Mauve

    moparisthebest, does Google Play Store leaks when you launch applications or what you do in them, or something?

  102. moparisthebest

    additionally most phones don't allow you to remove google play, again, you have to root it for that

  103. Link Mauve

    Or is it just what you install and when?

  104. moparisthebest

    I know it can uninstall apps and install updates without your permission too

  105. moparisthebest

    so *probably* all of those things?

  106. moparisthebest

    wait did you say only https wasn't a red flag? why is TLS on 443 any less suspicious than other ports? :'(

  107. Link Mauve

    “18:05:56 jonasw> lolwat, INTERNET "dangerous"?”, I asked them, apparently the category is given by Google.

  108. daniel

    That quoting

  109. Link Mauve

    Sorry, I haven’t worked on poezio in a long time. :x

  110. jjrh

    Anyone have any recommendations for a simple XMPP git bot?

  111. rion

    github sends me notifications on commits. maybe their bot is opensource. I don't know.

  112. j.r

    rion: how?

  113. jjrh

    Yeah github has uh hubot? It's kinda a giant thing that does a whole lot more than respond to a on commit hook

  114. Zash

    There's one that announces commits in the poezio room, ask them what they use.

  115. jjrh

    Thanks Zash

  116. Zash

    IIRC it got added to Github itself, somehow.

  117. Link Mauve

    I think there is one by github themselves, which they host, and a ruĝamia from redmine.

  118. Zash

    You could also do what we (prosody) do, and put something as a receive-hook on the server, if you have control over that

  119. jjrh

    Zash, that's what i'm planning on doing.

  120. rion

    example of github standard hook http://pix.academ.info/img/2018/03/06/af0363c83be4f268ad76a09ecb0fa35f.png

  121. j.r

    > I think there is one by github themselves, which they host, and a ruĝamia from redmine. Where can I finds the bot by github itself?

  122. jjrh

    We already do this with email, but channel notifications would be nice.

  123. moparisthebest

    you could have the email trigger an xmpp message >:)

  124. Link Mauve

    j.r, I couldn’t find their source code in a short search, I don’t know.

  125. j.r

    Ok

  126. jjrh

    moparisthebest, yes - but what software exists to do the XMPP part?

  127. jjrh

    I could write this myself but I figured someone had already done it

  128. Zash

    https://github.com/github/github-services/tree/master/lib/services search for "xmpp"

  129. Zash

    wild guess

  130. Zash

    Seems to match the options in Settings → Integrations

  131. moparisthebest

    jjrh, https://github.com/moparisthebest/sendxmpp-py https://github.com/moparisthebest/sendxmpp-rs ancient-perl-sendxmpp, called by a hook or sieve script

  132. jjrh

    cheers!

  133. moparisthebest

    of those I'd suggest the python one if it works for you

  134. jjrh

    Does it do MUC or just message?

  135. moparisthebest

    ew yea, just message

  136. moparisthebest

    you probably want a proper bot then

  137. jjrh

    Yeah that's what it's sounding like. Probably should just write something myself, the examples are handy though.

  138. moparisthebest

    sendxmpp-py should be fairly easy to modify to do that I think

  139. jjrh

    Yeah - what might work nicely is to use sendxmpp to send a message to a bot which can have some more smarts

  140. jjrh

    https://github.com/moparisthebest/sendxmpp-rs/blob/master/Cargo.toml I think your description might be wrong ;)

  141. moparisthebest

    ha yea looks like it, how the hell did that happen, probably what cargo new does by default or something

  142. pep.

    rion, do you have a room for psi dev?

  143. pep.

    or psi in general

  144. Neustradamus

    xmpp:psi-dev@conference.jabber.ru?join

  145. pep.

    yay captcha..

  146. marc

    Ge0rG, https://github.com/ge0rg/easy-xmpp-invitation/pull/9 works fine for me on firefox and firefox focus (mobile)

  147. marc

    Would be nice if you merge it t get rid of Google Fonts

  148. marc

    s/t/to