XSF Discussion - 2014-03-13


  1. Maranda has joined

  2. martin.hewitt@surevine.com has joined

  3. Lance has joined

  4. Maranda has left

  5. martin.hewitt@surevine.com has left

  6. Lance has joined

  7. martin.hewitt@surevine.com has joined

  8. Lance has joined

  9. martin.hewitt@surevine.com has left

  10. Lance has joined

  11. martin.hewitt@surevine.com has joined

  12. bear has left

  13. martin.hewitt@surevine.com has left

  14. martin.hewitt@surevine.com has joined

  15. Lance has joined

  16. martin.hewitt@surevine.com has left

  17. Lance has joined

  18. martin.hewitt@surevine.com has joined

  19. martin.hewitt@surevine.com has left

  20. martin.hewitt@surevine.com has joined

  21. martin.hewitt@surevine.com has left

  22. Alex has joined

  23. martin.hewitt@surevine.com has joined

  24. Alex has left

  25. Alex has joined

  26. martin.hewitt@surevine.com has left

  27. Simon has joined

  28. emcho has joined

  29. martin.hewitt@surevine.com has joined

  30. Simon has left

  31. martin.hewitt@surevine.com has left

  32. Lance has joined

  33. martin.hewitt@surevine.com has joined

  34. simon has joined

  35. Tobias has joined

  36. martin.hewitt@surevine.com has left

  37. Lloyd has joined

  38. Laura has joined

  39. Laura has left

  40. Laura has joined

  41. Zash has joined

  42. martin.hewitt@surevine.com has joined

  43. martin.hewitt@surevine.com has left

  44. martin.hewitt@surevine.com has joined

  45. Ash has joined

  46. Ash has left

  47. Zash has left

  48. Zash has joined

  49. Ash has joined

  50. Ash has left

  51. Lance has joined

  52. Tobias has left

  53. Simon has joined

  54. Simon has left

  55. winfried has joined

  56. Lance has joined

  57. Tobias has joined

  58. Lance has joined

  59. emcho has left

  60. emcho has joined

  61. Lance has joined

  62. Laura has left

  63. Laura has joined

  64. emcho has left

  65. emcho has joined

  66. Ash has joined

  67. Lance has joined

  68. dwd

    http://unlooker.com/dubbing-benny-hill-music-rave-music-inexplicably-hilarious/0/

  69. Laura has left

  70. Laura has joined

  71. m&m has joined

  72. fippo

    m&m: morning. have you seen ben langfelds request for publication of rayo on standards@?

  73. Laura has left

  74. Laura has joined

  75. simon has left

  76. simon has joined

  77. m&m

    I did, and I need to respond, because I'm not sure I still have those patches /-:

  78. m&m

    oh, he sent hints of where his patches are actually located

  79. emcho has left

  80. emcho has joined

  81. Neustradamus has left

  82. Laura has left

  83. emcho has left

  84. emcho has joined

  85. Laura has joined

  86. Neustradamus has left

  87. emcho has left

  88. emcho has joined

  89. fippo

    thanks m&m ;-)

  90. Tobias

    any xslt pro here? :) need to have an incrementing counter in an xsl:template

  91. m&m has left

  92. m&m has joined

  93. intosi

    Tobias: position() isn't good enough?

  94. Tobias

    position somehow always gives the same number

  95. Tobias

    for the first <img> tag being matched i want 0, for the next 1 and so on

  96. Neustradamus has joined

  97. Tobias

    or starting at 1

  98. Lance has joined

  99. intosi

    The main problem is that "variables" are in fact constants. The usual way of fixing it is either using recursion, or walk over the elements with an xsl:for-each

  100. intosi

    position should work for the latter.

  101. Tobias

    the for each would be without a <xsl:template>, right?

  102. m&m

    the for-each can call a template

  103. Tobias

    <xsl:for-each select="img"> <cmd name="includegraphics"><xsl:value-of select="position()" /></cmd> </xsl:for-each>

  104. Tobias

    so this would replace all <img/> with a <cmd name...>0...n</cmd>?

  105. m&m

    I think so, but it's been a long while since I've done XSLT, but that feels right

  106. intosi

    Sorry, wandered off. That should work. My XSLT is a bit rusty as well, though.

  107. Tobias

    element for-each only allowed within a template, variable or param compilation error: file xep2texml.xsl line 408 element value-of element value-of only allowed within a template, variable or param compilation error: file xep2texml.xsl line 407 element for-each xsltParseStylesheetTop: unknown for-each element

  108. Tobias

    probably that's more for when you want to put all <img>s at one place

  109. Tobias

    but i basically want to replace the tag in place

  110. intosi

    But those <img/>s must have a parent element.

  111. intosi

    Just run a template on that element.

  112. Tobias

    usually in a <p>

  113. Tobias

    yes

  114. Tobias

    however i need that counter being global

  115. m&m

    you could also select the count of <img/> elements that precede the current one

  116. intosi

    Sure.

  117. Tobias

    m&m, that sounds useful, how?

  118. Tobias

    it would essentially be counter i'm looking for

  119. m&m

    IIRC, count is a function, and preceding:<path> is the selector within the count()

  120. m&m

    but it's been a long time

  121. Tobias

    thx

  122. m&m grumbles about authors not updating their <revision> lists

  123. intosi

    http://stackoverflow.com/questions/11037979/xpath-1-0-finding-count-of-nodes-before-a-specified-node

  124. m&m

    stackoverflow to the rescue

  125. Tobias

    yes..works ....thanks :)

  126. Tobias

    soon we'll have images in our PDFs :)

  127. m&m

    nice

  128. stpeter has joined

  129. Tobias

    https://dl.dropboxusercontent.com/u/14672346/xmpp/extensions/xep-0324.pdf not perfect yet, but a good start i think

  130. simon

    Nice sequence diagrams!

  131. Tobias

    well...at least now we *can* use something else than ascii art :D

  132. simon has left

  133. fippo

    16:41 < xmpp:xsf@muc.xmpp.org/Tobias> soon we'll have images in our PDFs :)

  134. fippo

    errr...

  135. Tobias

    errr...?

  136. fippo

    nice!

  137. simon has joined

  138. Tobias

    well..it's pushed...as soon as someone hits a rebuild of all XEPs, the images should be included

  139. Tobias has left

  140. Tobias has joined

  141. m&m

    thanks Tobias

  142. m&m

    I'm a little hesitant to run all.sh at the moment

  143. m&m

    maybe we can do that this weekend

  144. m&m

    or someone else with rights can do it (-:

  145. emcho has left

  146. emcho has joined

  147. Tobias has joined

  148. Tobias

    xsf@athena:~/xmpp-hg/extensions$ ./gen.py -a ./gen.py:79: Warning: 'with' will become a reserved keyword in Python 2.6 File "./gen.py", line 79 with open(output_dir + '/' + 'inlineimage-' + str(no) + '.' + file_ext, 'wb') as f: ^ SyntaxError: invalid syntax

  149. Tobias

    what's wrong with thatß

  150. Tobias

    what's wrong with that?

  151. Tobias

    worked on osx with Python 2.7.5

  152. Tobias

    ah..athena has Python 2.5.2

  153. fippo

    i think the whole "with" is pretty new

  154. stpeter

    Tobias: is "?" close to "ß" on your keyboard?

  155. Tobias

    stpeter, same key on german keyboard :) just a shift between them :)

  156. Tobias

    fippo, so just write f = open(...) ?

  157. stpeter has left

  158. winfried has left

  159. intosi

    Tobias: from future import with_statement?

  160. Lance has joined

  161. Tobias

    yeah..need to add a latex package too..since it's also not present on athena

  162. intosi

    Well, from __future__ import with_statement, obviously

  163. martin.hewitt@surevine.com has left

  164. Laura has left

  165. emcho has left

  166. emcho has joined

  167. Tobias

    cp -r deps /tmp/xepbuilder/ <--- how do i write this so it copies files from deps to xepbuilder folder, not creating the deps folder in the xepbuilder folder?

  168. intosi

    cp -r deps/* /tmp/xepbuilder/ ?

  169. Tobias

    wouldn't the * require a shell?

  170. intosi

    Or (cd debs; cp -r . /tmp/xepbuilder) if you're worried about the number of files.

  171. intosi

    Both require a shell.

  172. intosi

    Are you running this from a shell script?

  173. Zash has joined

  174. dwd

    Oh, Python?

  175. Tobias

    commands.getstatusoutput

  176. Tobias

    python

  177. intosi

    http://docs.python.org/2/library/shutil.html

  178. intosi

    shutil.copytree might be of interest.

  179. Tobias

    i'll try the * thing

  180. intosi

    getstatusoutput actually spawns a shell, IIRC

  181. Santiago26 has joined

  182. Leonidas I has joined

  183. emcho has left

  184. emcho has joined

  185. simon has left

  186. Tobias

    so..rebuilding xeps

  187. martin.hewitt@surevine.com has joined

  188. martin.hewitt@surevine.com has left

  189. Santiago26 has left

  190. Leonidas I has left

  191. martin.hewitt@surevine.com has joined

  192. Lance has joined

  193. Lance has joined

  194. fippo

    https://twitter.com/lisamarienyc/status/444162578642513920 -- this looks like the next xmpp summit should be near fluentconf

  195. martin.hewitt@surevine.com has left

  196. ralphm

    heh

  197. ralphm

    there is a good supply of bacon on Tenerife, too

  198. fsteinel has joined

  199. fsteinel has left

  200. Santiago26 has joined

  201. Leonidas I has joined

  202. Santiago26 has left

  203. Leonidas I has left

  204. Leonidas I has joined

  205. Leonidas I has left

  206. Leonidas I has joined

  207. Zash has joined

  208. martin.hewitt@surevine.com has joined

  209. Santiago26 has joined

  210. Tobias

    fippo, better than http://i.imgur.com/TuBI68M.jpg :)

  211. dwd

    I can't decide if that sounds awesome or awful.

  212. Zash

    I can't decide if I should run to the store and see if they have any ... or walk.

  213. m&m

    eek

  214. m&m

    that is not bacon

  215. martin.hewitt@surevine.com has left

  216. Leonidas I has left

  217. Santiago26 has left

  218. Leonidas I has joined

  219. Santiago26 has joined

  220. Leonidas I has left

  221. Santiago26 has left

  222. Leonidas I has joined

  223. Santiago26 has joined

  224. martin.hewitt@surevine.com has joined

  225. Zash has joined

  226. Neustradamus

    I have found this tweet: https://twitter.com/betamax65/status/441124379318321152/photo/1

  227. martin.hewitt@surevine.com has left

  228. martin.hewitt@surevine.com has joined

  229. fippo

    neustradamus: "June 25, 2013: We have temporarily disabled account registration"

  230. fippo

    but telling the iteam might help

  231. Kev

    iteam aren't responsible for jabber.org

  232. Neustradamus

    yes I know this, maybe a person can reply ;)

  233. martin.hewitt@surevine.com has left

  234. Neustradamus

    Tobias: https://twitter.com/Neustradamus/status/422532965583687680 some months ago ;)

  235. martin.hewitt@surevine.com has joined

  236. Tobias

    yeah..wonder if they are cool enough to use twitter as support input

  237. Tobias has left

  238. Tobias has joined

  239. fippo

    neustradamus: simon and I were in contact with some marketing guy via the FSFE -- not much of a response

  240. fippo

    let's break it for them, then watch them struggle to fix it.

  241. martin.hewitt@surevine.com has left

  242. Santiago26 has left

  243. Leonidas I has left

  244. Leonidas I has joined

  245. Santiago26 has joined

  246. Ash has left

  247. martin.hewitt@surevine.com has joined

  248. Santiago26 has left

  249. Leonidas I has left

  250. Lance has left

  251. Lance has joined

  252. martin.hewitt@surevine.com has left

  253. Alex has left

  254. Simon has joined

  255. m&m has left

  256. emcho has left

  257. emcho has joined

  258. Zash has joined

  259. Zash

    Break all the things!

  260. Lance has left

  261. martin.hewitt@surevine.com has joined

  262. Lloyd has left

  263. Zash has left

  264. martin.hewitt@surevine.com has left

  265. Tobias has left

  266. Tobias has joined