jdev - 2022-02-13


  1. emus has joined
  2. wurstsalat has left
  3. jubalh has left
  4. emus has left
  5. emus has joined
  6. larma has left
  7. marc0s has left
  8. marc0s has joined
  9. paul has left
  10. pasdesushi has left
  11. cdcode has left
  12. FireFly has left
  13. marc0s has left
  14. marc0s has joined
  15. dezant has left
  16. emus has left
  17. debacle has left
  18. alacer has left
  19. Kev has left
  20. Kev has joined
  21. alacer has joined
  22. SouL has left
  23. Yagizа has joined
  24. dezant has joined
  25. SouL has joined
  26. paul has joined
  27. rafasaurus has left
  28. rafasaurus has joined
  29. jubalh has joined
  30. Alex has joined
  31. wurstsalat has joined
  32. rafasaurus has left
  33. msavoritias has joined
  34. debacle has joined
  35. emus has joined
  36. rafasaurus has joined
  37. marc0s has left
  38. marc0s has joined
  39. goffi has joined
  40. marmistrz has joined
  41. marc0s has left
  42. marc0s has joined
  43. pasdesushi has joined
  44. marc0s has left
  45. marc0s has joined
  46. nephele has joined
  47. 9lakes has left
  48. 9lakes has joined
  49. marc0s has left
  50. marc0s has joined
  51. nephele has left
  52. qwestion has joined
  53. nephele has joined
  54. marc0s has left
  55. marc0s has joined
  56. nephele has left
  57. nephele has joined
  58. nephele has left
  59. nephele has joined
  60. nephele has left
  61. nephele has joined
  62. marc0s has left
  63. marc0s has joined
  64. msavoritias has left
  65. msavoritias has joined
  66. nephele has left
  67. nephele has joined
  68. nephele has left
  69. goffi has left
  70. debacle has left
  71. marc0s has left
  72. marc0s has joined
  73. marc0s has left
  74. marc0s has joined
  75. marc0s has left
  76. marc0s has joined
  77. rafasaurus has left
  78. Yagizа has left
  79. Yagizа has joined
  80. Yagizа has left
  81. Yagizа has joined
  82. rafasaurus has joined
  83. larma has joined
  84. nephele has joined
  85. nephele has left
  86. marc0s has left
  87. marc0s has joined
  88. nephele has joined
  89. marc0s has left
  90. marc0s has joined
  91. nephele has left
  92. nephele has joined
  93. nephele has left
  94. nephele has joined
  95. FireFly has joined
  96. Millesimus has left
  97. nephele has left
  98. nephele has joined
  99. nephele has left
  100. nephele has joined
  101. pulkomandy Hello, I'm trying to implement some xhtml-im in Renga so I can get irc colors and styling from Biboumi. But I don't see the xhtml in the messages I receive. I am testing with messages stored in the backlog of a muc (no mam implementation yet in renga), could that be a problem? What else should I check?
  102. thomaslewis has left
  103. mac has left
  104. xnamed has left
  105. marmistrz has left
  106. pulkomandy I have added the namespace to my disco info (I think), and it doesn't seem to help
  107. moparisthebest I didn't know biboumi did xhtml-im
  108. nephele has left
  109. pulkomandy https://github.com/louiz/biboumi/blob/master/src/bridge/colors.cpp A very small subset of it, to render some of IRC formatting (foreground and colors, bold, italics, underline)
  110. nephele has joined
  111. nephele has left
  112. nephele has joined
  113. goffi has joined
  114. larma has left
  115. mac has joined
  116. nephele has left
  117. homebeach has left
  118. Matrix Traveler (bot) has left
  119. Matrix Traveler (bot) has joined
  120. homebeach has joined
  121. jgart has left
  122. nephele has joined
  123. nephele has left
  124. nephele has joined
  125. nephele has left
  126. rafasaurus has left
  127. J Marinaro has left
  128. rafasaurus has joined
  129. nephele has joined
  130. nephele has left
  131. nephele has joined
  132. nephele has left
  133. nephele has joined
  134. nephele has left
  135. Millesimus has joined
  136. Yagizа has left
  137. Millesimus has left
  138. SouL has left
  139. TheCoffeMaker has left
  140. nephele has joined
  141. SouL has joined
  142. nephele has left
  143. nephele has joined
  144. Millesimus has joined
  145. nephele has left
  146. TheCoffeMaker has joined
  147. nephele has joined
  148. nephele has left
  149. nephele has joined
  150. nephele has left
  151. nephele has joined
  152. nephele has left
  153. nephele has joined
  154. nephele has left
  155. nephele has joined
  156. nephele has left
  157. nephele has joined
  158. nephele has left
  159. J Marinaro has joined
  160. nephele has joined
  161. nephele has left
  162. goffi has left
  163. Maranda pulkomandy: last I checked biboumi did appear to strip all XHTML-IM from reflected messages
  164. mac has left
  165. dezant has left
  166. nephele has joined
  167. larma has joined
  168. nephele has left
  169. me9 has joined
  170. me9 has left
  171. marc0s has left
  172. marc0s has joined
  173. Link Mauve Maranda, it doesn’t parse XHTML-IM from XMPP clients, but it does convert IRC formatting to XHTML-IM.
  174. Link Mauve pulkomandy, I have never tested it from the MAM history, but looking at the sqlite schema it doesn’t seem to store it.
  175. Maranda Link Mauve: well but if a xmpp client sends a message containing XHTML-IM is it supposed to reflect it back mangling the stanza and stripping the XHTML-IM content?
  176. Link Mauve Maranda, yes, since it couldn’t parse the XHTML-IM it just reflects the body.
  177. Link Mauve So that you don’t think it worked and have the same view as other IRC users.
  178. Maranda Does it preserve the id at least?
  179. jubalh has left
  180. qwestion has left
  181. Link Mauve Not sure.
  182. Link Mauve IRC also doesn’t have this concept.
  183. Maranda is trying to figure a bug with bifrost
  184. Maranda Which is not exactly a bug... But biboumi not preserving id on reflection and mangling the stanza completely confused deduplication indeedly
  185. Maranda Which is not exactly a bug... But biboumi not preserving id on reflection and mangling the stanza completely confuses deduplication indeedly
  186. Maranda probably should also keep a hash of the message body
  187. Link Mauve Maranda, an issue with that is how to handle split messages?
  188. Link Mauve Say you sent a message over two lines, and got a reflection of the first line in one message, and the second line in another message.
  189. Link Mauve What should you do? What should biboumi do?
  190. Maranda Huhu but is there actually a need to split out reflected messages on the XMPP Horizon...?
  191. Maranda thinks not.
  192. mac has joined
  193. Link Mauve Well, this is about IRC, not XMPP.
  194. Link Mauve IRC doesn’t support messages longer than 512 bytes (including your recipient name, some command, and the phase of the moon).
  195. jubalh has joined
  196. pulkomandy > pulkomandy, I have never tested it from the MAM history, but looking at the sqlite schema it doesn’t seem to store it. That's a bit unexpected, so MAM loses all formatting and possibly anything in a message that it doesn't support? Not really what I expect from an archive?
  197. Link Mauve Actually if the IRC colors are stored in the body in the table it might, but I have no easy way to test MAM here, especially not with formatting, since I have no other IRC client than biboumi.
  198. Maranda Link Mauve: well if I send a message longer than 512 bytes it's fine if it gets split on IRC, less so if the reflected message by biboumi MUC interface gives me back 2 messages instead of one, not that it's forbidden or anything by the spec that I can recall.. but for sure that may confuse some clients.
  199. Link Mauve Maranda, you’d be confused as well if you got kicked for having flooded a room, and not understand why because to you it was a single message.
  200. jgart has joined
  201. Maranda Well if biboumi does mangle the stanza, doesn't preserve the id, may not preserve the message body contents and even split out reflections, I got nothing to match on 😆
  202. Maranda Oookay
  203. nephele has joined
  204. xnamed has joined
  205. nephele has left
  206. nephele has joined
  207. nephele ircv3 has message ids link mauve
  208. Link Mauve Might be useful, could you mention that on the biboumi bug tracker?
  209. Link Mauve Do IRC servers use this extension?
  210. nephele has left
  211. nephele has joined
  212. nephele I don't know, i have not investigated it much
  213. nephele https://ircv3.net/specs/extensions/message-ids
  214. nephele Where is the bugtracker?
  215. Link Mauve At https://lab.louiz.org/louiz/biboumi/-/issues
  216. nephele You need message tags enabled to use that spec anyhow, you could also use message tags to store xmpp specific data potentially
  217. Link Mauve How does that work?
  218. Link Mauve Is it a container for arbitrary payloads?
  219. nephele kinda, yeah
  220. nephele "Message tags are a mechanism for adding additional metadata on a per-message basis. This is achieved via an extension to the protocol message format, enabled via capability negotiation."
  221. nephele spec: https://ircv3.net/specs/extensions/message-tags
  222. marc0s has left
  223. nephele has left
  224. nephele has joined
  225. nephele link mauve: any specific ticket? or just put the link somewhere?
  226. Link Mauve I’m not sure, and I’m going to take a nap, yesterday has been tiring.
  227. Link Mauve Sorry, if you haven’t found anything I’ll look for one in about one hour or so.
  228. nephele has left
  229. nephele has joined
  230. nephele okay, I didn't know where you wanted that info, I'd have to dig out my gitlan credentials... so if you want to add it that is cool too :)
  231. nephele has left
  232. nephele has joined
  233. jubalh has left
  234. nephele has left
  235. nephele has joined
  236. marc0s has joined
  237. nephele has left
  238. nephele has joined
  239. debacle has joined
  240. pulkomandy I confirm that I get xhtml-im for new irc messages but not from muc backlog. That makes my testing a bit more difficult, being able to re-check the same message would be nice
  241. pulkomandy Now let's write a css parser…
  242. Millesimus has left
  243. Zash wishes for the SVG approach to styles
  244. jubalh has joined
  245. Zash I.e. attributes like `color="blue"` instead of `style="color:blue"`
  246. nephele has left
  247. pasdesushi has left
  248. nephele has joined
  249. nephele I should learn how xml works, and see if i can make my formatted messages work with xml instead of json
  250. nephele has left
  251. nephele has joined
  252. nephele has left
  253. jubalh has left
  254. me9 has joined
  255. me9 has left
  256. nephele has joined
  257. nephele has left
  258. nephele has joined
  259. nephele has left
  260. nephele has joined
  261. nephele has left
  262. nephele has joined
  263. nephele has left
  264. rafasaurus has left
  265. nephele has joined
  266. nephele has left
  267. rafasaurus has joined
  268. Alex has left
  269. Alex has joined
  270. dezant has joined
  271. Alex has left
  272. Alex has joined
  273. mac has left
  274. mac has joined
  275. goffi has joined
  276. nephele has joined
  277. dezant has left
  278. dezant has joined
  279. nephele has left
  280. pulkomandy so... the xhtml-im content is <html xmlns='http://jabber.org/protocol/xhtml-im'><body xmlns='http://www.w3.org/1999/xhtml'>[<span style='color:blue;'>HaikuArchives/Renga</span>] <span style='color:brown;'>pulkomandy</span> pushed <span style='color:green;'>1</span> commit to <span style='color:green;'>master</span> [+0/-0/±1] <span style='color:lightmagenta;'>https://github.com/HaikuArchives/Renga/compare/8d709ab45869...98879d2afdec</span></body></html>
  281. pulkomandy trying to iterate over this with gloox I get one cdata string "[] pushed commit to [+0/-0/±1]" and 5 spans
  282. pulkomandy not sure I can reconstruct the correct message from that :/
  283. pulkomandy (that's one single cdata lumping together whatever is outside the spans)
  284. jubalh has joined
  285. Maranda Gloox 😰
  286. pulkomandy it was working reasonably well until now
  287. pulkomandy do I have to rewrite my whole client yet again using something else?
  288. Dele Olajide has joined
  289. Dele Olajide has left
  290. Maranda No, but I think just the mention spawns at least some decade old painful memories 😅
  291. thomaslewis has joined
  292. Dele Olajide has joined
  293. Dele Olajide has left
  294. Dele Olajide has joined
  295. thomaslewis has left
  296. thomaslewis has joined
  297. Dele Olajide has left
  298. nephele has joined
  299. nephele has left
  300. nephele has joined
  301. Millesimus has joined
  302. thomaslewis has left
  303. marc0s has left
  304. marc0s has joined
  305. pulkomandy well I opened a bug on gloox bugtracker about it as I don't see a way I can reconstruct the message correctly from their API. And I'd rather not add another XML parser to my client (getting one to work right is enough of a problem, I think?)
  306. Dele Olajide has joined
  307. dezant has left
  308. Link Mauve In poezio, I chose to serialise the XHTML-IM body to string, and re-parse it with a SAX parser, which gives events in-order based on the position in the stream.
  309. Link Mauve Very convenient for appending characters to a buffer as we go.
  310. nephele has left
  311. Dele Olajide has left
  312. Dele Olajide has joined
  313. pulkomandy yes, I can do that, I guess. So are there any recommendations for an XML parser easy to use from C++ for this?
  314. jubalh has left
  315. Dele Olajide has left
  316. Link Mauve Most likely gloox already uses one, so you may want to reuse the same.
  317. thomaslewis has joined
  318. goffi has left
  319. thomaslewis has left
  320. pulkomandy I think gloox does its own parsing, see Tag::parse in https://camaya.net/api/gloox-trunk/tag_8cpp_source.html
  321. pulkomandy or is that parsing xpath quesries?
  322. Link Mauve Looks like XPath indeed.
  323. Link Mauve ldd doesn’t list any known SAX library though.
  324. pulkomandy yes, xml parser is here: https://camaya.net/api/gloox-trunk/parser_8cpp_source.html
  325. Link Mauve So maybe it does do its own thing.
  326. Link Mauve Riht.
  327. Link Mauve Right.
  328. pulkomandy so I don't get anything lower level than the Tag class from that
  329. Link Mauve Wut, why does gloox handle XML comments?
  330. Link Mauve Lines 308-322.
  331. Link Mauve pulkomandy, Tag::addCData seems to add it to both the m_cdata and the m_nodes members, you want to iterate on the latter.
  332. Link Mauve Nodes in XML are either element nodes or text nodes.
  333. pasdesushi has joined
  334. pulkomandy but m_nodes is private and has no getter or iterator in Tag
  335. Link Mauve Seems to be the issue you want to fix then.
  336. pulkomandy yes, seems reasonable to add a way to access this if it's already there
  337. nephele has joined
  338. thomaslewis has joined
  339. thomaslewis has left
  340. mac has left
  341. mac has joined
  342. nephele has left
  343. nephele has joined
  344. thomaslewis has joined
  345. nephele has left
  346. nephele has joined
  347. thomaslewis has left
  348. nephele has left
  349. nephele has joined
  350. nephele has left
  351. nephele has joined
  352. Laura has left
  353. nephele has left
  354. nephele has joined
  355. nephele has left
  356. nephele has joined
  357. nephele has left
  358. nephele has joined
  359. nephele has left
  360. nephele has joined
  361. nephele has left
  362. nephele has joined
  363. nephele has left
  364. nephele has joined
  365. nephele has left
  366. nephele has joined
  367. nephele has left
  368. nephele has joined
  369. thomaslewis has joined
  370. thomaslewis has left
  371. Laura has joined
  372. marc0s has left
  373. marc0s has joined
  374. marmistrz has joined
  375. nephele has left
  376. nephele has joined
  377. jubalh has joined
  378. nephele has left
  379. nephele has joined
  380. nephele has left
  381. nephele has joined
  382. nephele has left
  383. nephele has joined
  384. nephele has left
  385. nephele has joined
  386. nephele has left
  387. nephele has joined
  388. nephele has left
  389. nephele has joined
  390. nephele has left
  391. nephele has joined
  392. pulkomandy ok, that worked :). Now let's add the css parser
  393. J Marinaro has left
  394. J Marinaro has joined
  395. nephele has left
  396. nephele has joined
  397. nephele has left
  398. nephele has joined
  399. nephele has left
  400. nephele has joined
  401. nephele has left
  402. marc0s has left
  403. marc0s has joined
  404. marc0s has left
  405. marc0s has joined
  406. PapaTutuWawa has joined
  407. emus has left
  408. goffi has joined
  409. atomicwatch has left
  410. mac has left
  411. xecks has left
  412. me9 has joined
  413. Laura has left
  414. xecks has joined
  415. huhn has left
  416. Laura has joined
  417. nephele has joined
  418. nephele has left
  419. me9 has left
  420. me9 has joined
  421. xnamed has left
  422. moparisthebest Sam, re: host-meta tests, minimal nginx.conf's required: https://github.com/moparisthebest/xmpp-proxy/blob/master/integration/23-s2s-websocket-host-meta/nginx1.conf & https://github.com/moparisthebest/xmpp-proxy/blob/master/integration/24-s2s-websocket-host-meta-json/nginx1.conf pretty simple I think
  423. xnamed has joined
  424. thomaslewis has joined
  425. atomicwatch has joined
  426. thomaslewis has left
  427. jubalh has left
  428. thomaslewis has joined
  429. thomaslewis has left
  430. nephele has joined
  431. thomaslewis has joined
  432. nephele has left
  433. nephele has joined
  434. nephele has left
  435. nephele has joined
  436. nephele has left
  437. nephele has joined
  438. nephele has left
  439. nephele has joined
  440. nephele has left
  441. nephele has joined
  442. dezant has joined
  443. nephele has left
  444. mac has joined
  445. emus has joined
  446. nephele has joined
  447. nephele has left
  448. nephele has joined
  449. nephele has left
  450. nephele has joined
  451. nephele has left
  452. nephele has joined
  453. nephele has left
  454. nephele has joined
  455. nephele has left
  456. me9 has left
  457. Neustradamus has left
  458. Neustradamus has joined
  459. Vaulor has left
  460. SouL has left
  461. SouL has joined
  462. Vaulor has joined
  463. msavoritias has left
  464. msavoritias has joined
  465. xnamed has left
  466. antranigv has left
  467. mac has left
  468. jubalh has joined
  469. atomicwatch has left
  470. Alex has left
  471. xnamed has joined
  472. me9 has joined
  473. atomicwatch has joined
  474. atomicwatch has left
  475. atomicwatch has joined
  476. msavoritias has left
  477. marc0s has left
  478. marc0s has joined
  479. PapaTutuWawa has left
  480. me9 has left
  481. antranigv has joined
  482. qwestion has joined
  483. dezant has left
  484. wurstsalat has left
  485. marc0s has left
  486. marc0s has joined
  487. qwestion has left
  488. goffi has left
  489. qwestion has joined
  490. atomicwatch has left
  491. atomicwatch has joined