jdev - 2022-08-10

  1. goffi

    Hey I'm currently on vacations. I have indeed worked on a pubsub based merge request mechanism (see https://www.goffi.org/mr).

  2. goffi

    It's for Mercurial but I have plans to add git and a gateway for gitlab or github.

  3. goffi

    Sorry I'm not much available these days to talk about it, I'll check messages later.

  4. nav

    Hi goffi. Yes I recall that project. My goal is less ambitious and consists simply of handling `git format-patch` attachments sent to a JID and passing them on via appropriate HTTP API calls to associated GitLab / Gitea repos. The general idea is that this should work from a bog standard no frills client such as Conversations (if you're enough of a masochist to be writing patches on your mobile phone).

  5. nav

    Sending patches via PubSub is a cool idea though as effectively that abstracts away the underlying repository host(s) and possibly technology (e.g., Git vs Hg).

  6. jonas’

    speaking of, reviewing patches in email clients is no fun, it'll take a while until I can get around to do that

  7. nav

    jonas’: Save the emails as *.eml in the repository's root directory, then `git am -i *.eml`.

  8. jonas’

    that doesn't give me a nice UI where I can attach comments to things I (don't) like ;)

  9. Zash

    quoted in a reply with in-line comments?

  10. nav

    👉 `git send-email`

  11. nav

    Of course, you could always commit into a new branch, push that to your favourite forge and add comments in there. Then you get possibly some convenience at the expense of resilience.

  12. blackjack24

    How can i create a privat XMPP / Jabber Server?

  13. Schimon

    I'm not an expert, but I guess all you have to do is either: 1) Close its traffic to your domain alome. 2) Set all group chats to private by default.

  14. Schimon

    > How can i create a privat XMPP / Jabber Server? Since this is open for interpretation, please let me ask you what exactly do you mean by private?

  15. Sam

    I always thought that whitespace wasn't allowed except at the top level between stanzas. Is this true? Gajim appears to send stuff from the XML console with whitespace and I can't find anything that forbids it except a vague implication in https://www.rfc-editor.org/rfc/rfc6120#section-11.7

  16. lovetox

    Sam, did you add the whitespace?

  17. Zash

    Where, exactly? Between elements in a stanza?

  18. Sam

    Yes. Eg I thought the XML stream had to look like <message></message> and all tabs and newlines in examples were just for readability

  19. Sam

    But if I paste an example in gajim I get it sent as is, eg. <message> Foo </message>

  20. Zash

    I believe it's inherited from the XML specification that whitespace is allowed but usually ignored.

  21. Zash

    Mostly Harmless :)

  22. lovetox

    Sam, its a xml stream, you read it with an xml parser, which xml parser would fail with your example?

  23. Schimon

    May someone help, blackjack24?

  24. Sam

    lovetox: it's not really an l stream though, we ignore lots of other things like proc insts. I thought whitespace not at the top level was one of those xmpp oddities

  25. Sam

    I was parsing stuff using a token stream and it broke because of this. My own fault if it's allowed, I just really thought it wasn't and was trying to figure out if I should "error, invalid whitespace" or just accept it

  26. Zash

    You've newer seen .. is it Psi and strophe.js that send stanzas with indentation included?

  27. Sam

    Guess that answers my question either way… have to do it for support regardless

  28. lovetox

    Sam, just for info, the xml console sends everything directly to the stream without processing

  29. lovetox

    you can send everything invalid

  30. Zash

    There's been the odd bug in a prosody plugin due to code accessing the n'th node instead of the n'th child tag which trips over unexpected text nodes, but that's been pretty rare and we have better APIs for finding the tags you want.

  31. Zash

    Hmmm, that sounds like potential fun with XEP-0198

  32. lovetox

    hm or maybe im lying, and i parse whatever you put into the console

  33. lovetox

    basically because Link Mauve complained that when he puts something into the xml console, stream management breaks because its not counted

  34. Zash

    So you already had that fun? :D

  35. lovetox


  36. techmetx11

    i wonder if you can do memory corruption in a XMPP server

  37. Link Mauve

    I faintly remember that yeah.

  38. moparisthebest

    techmetx11: in what way? If you could that'd be a critical bug that'd need fixed right away

  39. nav

    flow: There is something I don't understand concerning this https://github.com/xsf/xeps/issues/1173#issuecomment-1074060793 Isn't that what `make refs` does?