2009-03-25T00:08:57  <TheSheep> ThomasWaldmann: it seems that the wiki parser doesn't count empty lines at the beginning, or maybe pragma lines, or something -- it's off by several lines sometimes
2009-03-25T00:09:17  <TheSheep> ThomasWaldmann: both ways, I will just scroll so that some lines are visible above
2009-03-25T00:09:51  <TheSheep> should work on headings and such now
2009-03-25T00:10:04  * ThomasWaldmann tries
2009-03-25T00:10:12  <TheSheep> it's all at the end of http://moin.sheep.art.pl/moin_static172/common/js/common.js
2009-03-25T00:12:48  <ThomasWaldmann> we have some function for onload hooking
2009-03-25T00:13:27  <TheSheep> I tried to not break it
2009-03-25T00:17:55  * TheSheep comments the code
2009-03-25T00:30:26  *** grzywacz has quit IRC
2009-03-25T01:26:09  *** alfonsodg has joined #moin-dev
2009-03-25T01:56:13  *** alfonsodg has quit IRC
2009-03-25T02:00:01  *** alfonsodg has joined #moin-dev
2009-03-25T05:21:57  *** StellarsHenson has joined #moin-dev
2009-03-25T05:24:00  *** StellarsHenson has left #moin-dev
2009-03-25T06:51:46  *** alfonsodg1 has joined #moin-dev
2009-03-25T07:06:56  *** alfonsodg has quit IRC
2009-03-25T09:03:36  <TheSheep> http://www.useit.com/alertbox/mega-dropdown-menus.html
2009-03-25T09:49:05  <ThomasWaldmann>  nice
2009-03-25T10:15:51  <TheSheep> I wonder if the actions could have categories in them
2009-03-25T10:16:10  <TheSheep> so that you could group them when displaying
2009-03-25T10:16:54  <TheSheep> and icons :)
2009-03-25T10:20:43  <ThomasWaldmann> while it might look fancy, I am not much of a fan of icons
2009-03-25T10:21:26  <ThomasWaldmann> because they need to fit the theme colours, the need to fit each other - and so they are a burden for theme development
2009-03-25T10:21:56  <ThomasWaldmann> but I would like to see a mega action menu
2009-03-25T10:39:21  <TheSheep> well, the action would only define the icon's name
2009-03-25T10:39:32  <TheSheep> it's up to the theme to use it or not, and how it uses it
2009-03-25T10:40:12  <TheSheep> I guess what I want is some meta information about the actions
2009-03-25T10:41:00  <TheSheep> of course, if an action doesn't have categories defined, it goes to 'other'
2009-03-25T10:45:32  <ThomasWaldmann> i guess we want something easy for 1.9 or so and we can turn things upside down for 2.0 or so
2009-03-25T10:45:39  <ThomasWaldmann> gtg/bbl
2009-03-25T12:46:41  *** alfonsodg1 has quit IRC
2009-03-25T13:48:25  *** alfonsodg has joined #moin-dev
2009-03-25T15:08:55  *** StellarsHenson has joined #moin-dev
2009-03-25T15:09:00  <StellarsHenson> hi guys, can anyone suggest any python IDE suitable for moinmoin plugins etc... development? For my published patches and plugins i still use vim, but it's very cumbersome...
2009-03-25T15:17:01  <ronny> hmm
2009-03-25T15:17:24  <ronny> what would a ide need to do for handing moinmoin plugin publishing well
2009-03-25T15:17:35  <ronny> (i might wire up a quick pida plugin)
2009-03-25T15:19:40  <TheSheep> class browser and such...
2009-03-25T15:38:48  <ronny> TheSheep: we already have a class browser
2009-03-25T15:47:56  *** StellarsHenson has left #moin-dev
2009-03-25T16:12:32  *** alfonsodg has quit IRC
2009-03-25T16:22:09  <dreimark> moin
2009-03-25T18:59:59  <ThomasWaldmann> TheSheep: your autoscrolling gets rapidly more popular :)
2009-03-25T19:01:07  <ThomasWaldmann> i had a guy on the phone who uses the wiki from his iphone and he has trouble with scrolling (iphone only shows the outer scrollbar, not the inner one. also it does not have a text cursor, so you have basically no chance to scroll down a longer page)
2009-03-25T19:01:40  <TheSheep> ouch
2009-03-25T19:01:49  <ThomasWaldmann> but he could doubleclick onto the place he wants to edit in show view, so autoscroll would solve his problem maybe
2009-03-25T19:02:07  <TheSheep> I've seen some javascript for auto-growing textarea that bnever gets a scrollbar
2009-03-25T19:02:33  <ThomasWaldmann> that would be another solution. 2 scrollbars confuse some users anyway.
2009-03-25T19:03:01  <TheSheep> the best way would be to always serve the gui editor -- instead of rendered page
2009-03-25T19:03:01  <ThomasWaldmann> if that could  be done with no harmful effect for other people, that would be a wishlist item also. :)
2009-03-25T19:03:43  <ThomasWaldmann> that htmledit control is not implemented by all browsers
2009-03-25T19:04:00  <ThomasWaldmann> (and the gui editor has other problems also)
2009-03-25T19:04:00  <TheSheep> autogrowing textarea can be done based on that code of mine, you only need callbacks for keypresses and other operations that might change the contents...
2009-03-25T19:04:36  <TheSheep> btw, I imrpoved the accuracy of scrolling by including a scrollbar in the mock pre it uses to compute the size :)
2009-03-25T19:04:52  <TheSheep> forgot about the fact that PREs don't have usually scrollbars
2009-03-25T19:05:13  <ThomasWaldmann> why does autogrow need callbacks?
2009-03-25T19:05:40  <ThomasWaldmann> for when it grows further / or shrinks?
2009-03-25T19:05:44  <TheSheep> yes
2009-03-25T19:05:54  <TheSheep> when you add lines
2009-03-25T19:05:57  <TheSheep> or delete them
2009-03-25T19:06:07  <ThomasWaldmann> ok
2009-03-25T19:07:16  <TheSheep> computing new size might be expensive -- creating new element, copying all the text into it and removing it
2009-03-25T19:07:42  <TheSheep> I wonder if it would be possible to do it ouside the document flow -- without making the element visible
2009-03-25T19:09:24  <TheSheep> not having to reposition all elements would save some computation power :)
2009-03-25T19:10:09  <ThomasWaldmann> what happens if you don't resize?
2009-03-25T19:10:24  <ThomasWaldmann> will it show scrollbar if height increases?
2009-03-25T19:10:45  <TheSheep> yes
2009-03-25T19:11:04  <TheSheep> you could check periodically...
2009-03-25T19:11:08  <ThomasWaldmann> if the other stuff is too troublesome, that would be a compromise
2009-03-25T19:12:26  <TheSheep> by the way, have you thought about using some js library to simplify moinmoin's scripts?
2009-03-25T19:12:48  <ThomasWaldmann> yes, but no idea which :)
2009-03-25T19:12:58  * ThomasWaldmann does not have much clue about js
2009-03-25T19:13:22  <TheSheep> js is one thing, and browser's api is another
2009-03-25T19:13:39  <TheSheep> first is cute albeit clumsy, second is a horror
2009-03-25T19:14:06  <TheSheep> libraries abstract the second and work around the clumsiness in first
2009-03-25T19:15:46  <TheSheep> maybe I will make a feature request page so we can collect some feedback
2009-03-25T19:27:27  <ThomasWaldmann> dreimark: the pdf embedding is annoying some people
2009-03-25T19:28:06  <ThomasWaldmann> could you try if there is some better way meanwhile than hardcoding 800px width, so that the plugin simply uses the full width of the browser window
2009-03-25T19:28:27  <ThomasWaldmann> (maybe with adobe reader 9.1.0?)
2009-03-25T19:39:51  <dreimark> ThomasWaldmann: will look at it. Don't have seen the bug report
2009-03-25T19:42:34  <dreimark> bbl
2009-03-25T19:51:56  *** grzywacz has joined #moin-dev
2009-03-25T19:55:54  *** StellarsHenson has joined #moin-dev
2009-03-25T20:02:38  *** cdyson37 has joined #moin-dev
2009-03-25T20:02:56  <cdyson37> hi
2009-03-25T20:03:04  <StellarsHenson> hi, man
2009-03-25T20:03:15  <cdyson37> got a bit of a problem with parsers
2009-03-25T20:03:47  <StellarsHenson> sorry, can't help you. i'm here to talk with someone about ACL and groups
2009-03-25T20:03:55  <cdyson37> agh
2009-03-25T20:03:55  <StellarsHenson> no clue about parsers
2009-03-25T20:04:19  <cdyson37> it's a strange prob... things are done in one order in a preview and another when viewed normally
2009-03-25T20:04:30  <cdyson37> maybe there's a parser-expert lurking!
2009-03-25T20:05:03  <StellarsHenson> hm, i've been using wiki parser a bit, so maybe i can be a bit of help though
2009-03-25T20:05:27  <StellarsHenson> written IncludeWikiContent macro
2009-03-25T20:06:23  <cdyson37> well here's the problem. i created a new parser for use in {{{#!}}} blocks
2009-03-25T20:06:49  <cdyson37> this is supposed to add a new key to the request object which then goes on to be used elsewhere
2009-03-25T20:07:11  <cdyson37> unfortunately, while this works fine for a preview, when viewed normally the parser is processed at the *end* rather than at the start
2009-03-25T20:07:45  <StellarsHenson> heh, you know much more then i do...
2009-03-25T20:07:55  <StellarsHenson> sorry, man
2009-03-25T20:07:59  <cdyson37> no probs
2009-03-25T20:08:32  <StellarsHenson> did you try via looking at already existing parser from ParserMarket?
2009-03-25T20:08:52  <cdyson37> well that's where i got my original template from
2009-03-25T20:09:08  <cdyson37> the problem's not with the parser (it runs fine), just with the timing: the parser isn't getting processed first for some reason
2009-03-25T20:09:12  <StellarsHenson> i supposed so. that was the only clue lurking in my head
2009-03-25T20:09:43  <cdyson37> it's really a bit odd
2009-03-25T20:09:54  <StellarsHenson> lemme check sth
2009-03-25T20:12:13  <StellarsHenson> did you try just dummy request.write(u'test') in formatter method?
2009-03-25T20:13:35  <StellarsHenson> i mean, format method
2009-03-25T20:13:42  <StellarsHenson> just tried it a moment ago
2009-03-25T20:14:08  <StellarsHenson> 'test' appears correctly instead of my {{{#!TestParser
2009-03-25T20:14:12  <StellarsHenson> something
2009-03-25T20:14:14  <StellarsHenson> }}}
2009-03-25T20:14:15  <StellarsHenson> block
2009-03-25T20:15:11  <cdyson37> the block is being processed fine, just *after* everything else (even though it occurs at the start). the problem is the regexps being processed in a bad order somehow...
2009-03-25T20:15:58  <StellarsHenson> hm, well, i have just written dummy parser, to print 'test'
2009-03-25T20:16:12  <StellarsHenson> i have no clue what went wrong in your case
2009-03-25T20:16:19  <StellarsHenson> therefore, i cannot help you
2009-03-25T20:16:44  <cdyson37> it prints "test" fine, but if you look at the logs, other things are being processed in advance (which in my specific case is a bad thing)
2009-03-25T20:16:54  <StellarsHenson> hm
2009-03-25T20:18:15  <StellarsHenson> btw - which IDE do you use? i use mac and my primary is VIM or TextMate
2009-03-25T20:18:31  <StellarsHenson> but i'm looking for something much easier to deal with python
2009-03-25T20:19:04  <cdyson37> i'm just using vim at the mo
2009-03-25T20:20:03  <StellarsHenson> heh :-S
2009-03-25T20:25:31  <TheSheep> ThomasWaldmann: you can scroll the textarea on iphone by dragging it with two fingers :)
2009-03-25T20:28:46  <ThomasWaldmann> ah, ok (I don't have an iphone, but I'll tell him. :)
2009-03-25T20:29:45  <TheSheep> drag-and-drop is such a hard to document interface :(
2009-03-25T20:29:59  <cdyson37> ThomasWaldmann: any idea about my parser-timing problem? any help would be appreciated!
2009-03-25T20:30:42  * ThomasWaldmann has to read backlog
2009-03-25T20:31:43  * cdyson37 is grateful for him taking the trouble!
2009-03-25T20:34:47  *** StellarsHenson has left #moin-dev
2009-03-25T20:37:38  <ThomasWaldmann> cdyson37: if you embed a parser section into the wiki parser, it will first collect the lines and then give them to the plugin parser
2009-03-25T20:38:20  <cdyson37> it does all that fine. unfortunately, it's doing it *after* passing through and processing some latex regexps
2009-03-25T20:38:37  <cdyson37> though strangely it works fine in preview mode. so basically i need to find out what's different about previews
2009-03-25T20:39:16  <ThomasWaldmann> what is processing that latex regexps?
2009-03-25T20:39:50  <cdyson37> the latex_inline parser, which inherits the usual parser
2009-03-25T20:40:20  <ThomasWaldmann> maybe the related regex is wrong or wrongly placed
2009-03-25T20:40:57  <cdyson37> well it works fine without my extra parser, and it works fine in preview, and it usually works fine anyway. but somehow on this page it's doing the regexps before my parser is even initialised
2009-03-25T20:53:43  <cdyson37> sorry i've got to go and get a curry. thanks for your help chaps. any ideas: cdyson37@gmail.com - will be online again soon no doubt
2009-03-25T20:54:04  *** cdyson37 has quit IRC
2009-03-25T23:17:50  <dreimark> re
2009-03-25T23:19:01  <dreimark> which inline_latex parser the one from me or from johill
2009-03-25T23:20:52  * dreimark thinks we should separate between 3rd party talks and moin developing talks looks to me that this more for #moin
2009-03-25T23:43:23  <dreimark> ThomasWaldmann: it is more annoying if a pdf file does not embed in a page and you got thrown into a pdf only embedded in the browser
2009-03-25T23:43:46  <dreimark> without navigations of the wiki
2009-03-25T23:47:57  <dreimark> TheSheep: how can I get from a macro the width of the browser. Is it worth to do this by javascript? e.g requesting document.body.clientHeight/Width
2009-03-25T23:48:03  *** grzywacz has quit IRC
2009-03-25T23:49:19  <dreimark> http://www.howtocreate.co.uk/tutorials/javascript/browserwindow

MoinMoin: MoinMoinChat/Logs/moin-dev/2009-03-25 (last edited 2009-03-24 23:15:01 by IrcLogImporter)