#foswiki 2012-05-09,Wed

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)

WhoWhatWhen
pharveyjomo: some bug-fixes are indeed hard to back-port from trunk back to release branch in Foswiki. That's sometimes because the bugs are so old, or the fix is so deep, that some change in behaviour might be considered a burden for some upgraders (i.e. not appropriate for patch release).
gac410: the chances of me returning to doing much Foswiki work in the next month or two are getting slimmer & slimmer :/
[00:03]
........ (idle for 35mn)
***jomo has left [00:39]
.............. (idle for 1h9mn)
gac410Any thoughts about the old obsolete link format [[http://blah.com link text]] ... if a pass through wysiwyg converted to the [[http://blah.com][link text]] new format? [01:48]
greg4567dont know what "if a pass through wysiwyg converted to" means (I'm too new to foswiki), but I like the [[http://blah.com][link text]]. If I am not mistaken, it is the emacs org-mode link format, which I am lightly familiar with. [01:56]
kip3fgac410 - I think it should be OK [01:57]
gac410older syntax didn't use the inner ][ and just broke on a space. Currently wysiwyg protects it by converting it to a colored <span..> My fix is to recognize it and treat it as a real link in TinyMCE. ... but after save, the ][ will appear. [01:58]
kip3fitsafeature
automatically modernizes the syntax
as long as it's non-destructive, I think it should be OK
[01:58]
gac410Thanks kip3f ... yeah I think I'll add it to the Wysiwyg link handling fix. I don't think the url component should ever have an unencoded space, so it would be safe.
gac410 still trying to figure out how he ended up doing Wysiwyg work. ew..
The less we use of funky <span ..>s for links, the more reliable I think it will be.
[01:59]
greg4567gac410 -- are you familiar with emacs org-mode? [02:01]
gac410nope, never have used emacs. [02:02]
greg4567in org-mode, they use the format you suggested for all types of links.
images, html pages external, other documents, etc. I think the new format is more flexible.
for what ever my novice opinion is worth.
[02:02]
gac410It's the standard TML link format as well. except not for images.
Good to hear opinions from all levels.
[02:03]
greg4567TML I assume is javascript, something I want to learn [02:04]
gac410Topic Markup Language. Thats what we call the plain old wiki markup. ---++ heading * Bullet [[link]] *Bold* _italics_ etc. [02:05]
greg4567Oh [02:06]
kip3fgac410 - would you consider %MACROs as part of TML? [02:06]
gac410Yeah that too I guess.
It's really critical to preserve the old TML syntax, as many old wiki applications depend on parsing TML topics.
ping Babar: precommit hook busted. A repository hook failed: Commit blocked by pre-commit hook (exit code 255) with output:
Global symbol "$rev2" requires explicit package name at pre-commit.pl line 111.
[02:06]
kip3fugh more of that? [02:12]
gac410yeah. And I don't really understand that code. $rev2 is used in only one place, not defined anywhere. [02:16]
kip3fI bet it should just be $rev [02:29]
gac410probably [02:30]
kip3fit's cruel to write code that way
... cruel to anyone who tries to debug it
[02:30]
gac410I tend to be not very elegant. But I can follow it if I come back to it [02:31]
kip3foutput of svnlook changed: http://svnbook.red-bean.com/en/1.5/svn.ref.svnlook.c.changed.html
it's really not *that* hairy
[02:32]
gac410Maybe I'll edit it and change $rev2 to $rev and see what happens. [02:34]
kip3fsure, why not
is the code in SVN the same as the code on the server?
[02:34]
gac410I think so. Though it's a copy into the svn system directories
well the git svn dcommit worked fine. :)
[02:36]
kip3fok then [02:38]
gac410thanks. I checked in the updated pre-commit.pl
Babar - I think I fixed it - kip3f suggested it should be $rev, and it seems to be working
[02:40]
kip3fThe more that I look at it, the more OK it seems. Who will look at foswiki's pre-commit hook? Probably only experienced perl developers. I try to write easier code at work, in the hope that someone else could maintain it. [02:44]
gac410yeah. it's a very narrow audience for that. [02:44]
kip3fI like the 'map grep map' sandwich
I bet there is some sort of pretty name for that technique
[02:45]
gac410map is one of those things that I have to look up every time I come across it. [02:47]
GithubBot[foswiki] foswiki pushed 2 new commits to master: http://git.io/dha9Og
[foswiki/master] Item10089: Recognize old link format - GeorgeClark
[foswiki/master] Item11808: Fix typo (hopefully) - GeorgeClark
[02:47]
***GithubBot has left [02:47]
FoswikiBothttp://foswiki.org/Tasks/Item10089 [ Item10089: WysiwygPlugin should allow editors to work on double bracket links as <a> tags ]
http://foswiki.org/Tasks/Item11808 [ Item11808: perltidy check on checkin ]
[02:47]
kip3fwell the first map turns a list of strings into a list of array refs
the grep pulls out the ones that are not deletes and the ones that have perltidy options
and the final map turns the list of array refs back into a list of strings
kip3f sticks it in my bag of tricks
[02:49]
.... (idle for 15mn)
"Perl 5.12 introduced the triple-dot (...) operator as a placeholder for code you intend to fill in later."
wow
from http://modernperlbooks.com/books/modern_perl/chapter_01.html#toc_VGhlUGVybFBoaWxvc29waHk
[03:08]
gac410yeah it's a shame that so many distributions ship ancient perl. I think we settled on 5.8.8 as a minimum [03:11]
kip3fI've seen perl as old as 5.004. recently.
it's too old to support MakeMaker
1997-May-15
wow
[03:12]
SvenDowideitwe're going up to 5.10 for 1.2.0 [03:13]
gac410It makes the efforts to support i18n and utf8 difficult. [03:13]
SvenDowideit:( [03:13]
.............. (idle for 1h8mn)
***gac410 has left [04:21]
greg4567 has left "ERC Version 5.3 (IRC client for Emacs)" [04:35]
............. (idle for 1h2mn)
Babaroh damn, I left that in, sorry gac410
Babar used that for testing :(
[05:37]
***Babar sets mode: +ooo AndreU ArthurClemens CDot [05:43]
..... (idle for 23mn)
CDotBabar: might be an idea to add TIDY to all the plugins you tidied (sans the ones you got burned for) [06:06]
Babarwe'll see depending on the vote :) [06:07]
......... (idle for 41mn)
***ChanServ sets mode: +o MichaelDaum [06:48]
CDotBabar: the mechanism we have built allows either opt-in or opt-out - it just depends where we put the highest TIDY :-)
CDot notes again that BuildContrib has to handle / respect TIDY
looks like the unit tests are passing on trunk - so why is the mail saying something went wrong?
[06:50]
.... (idle for 17mn)
BabarCDot: after reading your last email 3 times, I have no idea what you mean :) [07:09]
CDotlast email? [07:09]
Babarif anyone with more brain than this small bear can ... [07:09]
CDotoh; it's a (mis)quote from Winnie the Pooh
BuildContrib has a =perl build.pl tidy= target that tidies all the sources (I think you added it?)
that target has to respect TIDY
d'oh, sorry, too many themes in my head this morning
the debug mode; I want to "perl pre-commit.pl /home/svn/nextwiki DEBUG 12345" to run all the checks on svnlook -r12345
or something like that
basically pass "-r REV" instead of "-t TXN" to svnlook
[07:10]
MichaelDaumwe should add a debian target to build.pl [07:14]
CDotMichaelDaum: good idea - I think. I have no idea what is involved in that. [07:15]
MichaelDaumit took me half a day just to find out how to create a single deb using lots of manual steps :(
nor am I sure we can get away with a generic debianizer or if plugins need a debian/ subdirectory each holding the extras
the debian stuff Sven checked in seems to cover the foswiki core only
[07:15]
....... (idle for 30mn)
***ChanServ sets mode: +o MichaelDaum [07:47]
.... (idle for 16mn)
ChanServ sets mode: +o MichaelDaum [08:03]
....... (idle for 30mn)
fsfsMichaelDaum: if there is a Build.PL / Makefile.PL, creating a Debian package out of it is very simple with dh-make-perl [08:33]
BertodSeraIs there a way to have a newline inside a table cell, without generating a new table line? I mean, something like \ in a unix command [08:34]
MichaelDaumfsfs, well files go into different places than they are when installing from a tar ball or via configure (/etc... /var/log, ...) [08:35]
fsfsI've been doing that for lots of CPAN packages. The difficult bit is to make sure that the copyright and licensing foo is up to Debian standards, but the functional / code stuff is pretty much automatic [08:35]
MichaelDaumcpan packages arent troubling me [08:35]
fsfsMichaelDaum: shouldn't that be handled by a PREFIX? [08:35]
MichaelDaumthe other problem is foswiki's configure itself
while handling LocalSite.cfg
next: extracting a fine ChangeLog from the plugins txt file
[08:36]
fsfs:-)
the beauty pageant can become artificially complex, yes
[08:37]
MichaelDaumgood thing is that a generic rules file does pretty fine already [08:39]
fsfsbut technically you don't have to have an upstream Changelog, and I'd think it's probably easiest to create one .deb from each plugin and thus have a debian/ directory for each [08:40]
MichaelDaumya [08:40]
fsfsI'd think the "Debian way" of handling configure / LocalSite.cfg is probably to split the config into separate files named after the extension / package, with then get included. configure would need to know how to include AND change stuff in the included snippets...
s/with/which/
[08:43]
....... (idle for 31mn)
***wolfe.freenode.net sets mode: +o SvenDowideit [09:14]
jomohi all, in the FW 1.0.5 was here a tool (in the tools directory) called "attachutil" - for attaching files from command line - now it is deprecated, or only i'm blind?
just found that it is not in core, but in the ThumbnailPlugin
[09:17]
........ (idle for 37mn)
ThumbnailPlugin is a bit old … tmwiki ;) is here some current preferred way attaching files to topic from the command line? asking because i have a bunch of attachments already on the server, so for "standard" attaching need scp them to the notebook and upload again with the interface… [09:57]
.... (idle for 17mn)
MichaelDaumjomo, have a look at http://foswiki.org/Extensions/UpdateAttachmentsPlugin. for thumbnailing use http://foswiki.org/Extensions/ImagePlugin [10:14]
FoswikiBot[ ImagePlugin ] [10:14]
MichaelDaumand of course TopicInteractionPlugin can do bulk uploads using the browser as well [10:15]
jomothanx. TopicInt..Plu is cool, but i have attachments already in server and downloading them for the next upload is a bit strange.. ;) going to check UpdateAttchmentsPlugin.. ;) [10:16]
........ (idle for 36mn)
***ChanServ sets mode: +o MichaelDaum_ [10:52]
......................... (idle for 2h1mn)
jastam I guessing correctly that I have to take care of CSRF validation myself in custom REST handlers? I've inherited some legacy code that seems to be taking care of roughly 30% of strikeone... is there some kind of quick reference on how to integrate it (both on client and server side)? or can you recommend a plugin it's easy to steal that from?
hmm, actually it's not legacy code, but it sure looks like legacy code
[12:53]
.................................. (idle for 2h48mn)
CDotjast: you can control whether validation is performed in the rest handler. I *think* it's turned off by default....
when you register the REST handler, there's a bunch of options you can pass.
[15:41]
jastCDot: thanks, that's a good starting point for me [15:54]
...... (idle for 27mn)
Babaroh... I guess I never sent my email to Kenneth
as people were still wondering about #<<<
#<<< Perltidy leave this alone
my $blah = (I=> 'LIKE', 2,3,4, write => 'like'."that");
#>>>
it was sent.
so nobody read my email :)
[16:21]
CDotCDot thought he covered that in the proposed doc [16:27]
.... (idle for 16mn)
Babaryes, but Kenneth commented on it, and George replied, and you said "Thanks, I didn't know that even though I read the doc 5 times"
doesn't matter anyway
[16:43]
............................................ (idle for 3h39mn)
hum... trying js_beautify on my sessionstore.js (from Firefox) wasn't the smartest idea I had today :)
but it sems to have worked :)
[20:22]
.................................. (idle for 2h49mn)
jomoseen gacč+é [23:11]
FoswikiBotSorry, I haven't seen gacč+é. [23:11]
jomoseen gac410 [23:11]
FoswikiBotgac410 was last seen in #foswiki 18 hours 49 mins ago leaving the channel. [23:11]
.... (idle for 17mn)
***[LOGGER_FOSWIKI] has quit IRC (Ping timeout: 245 seconds) [23:28]
.... (idle for 16mn)
Babar sets mode: +v [LOGGER_FOSWIKI] [23:44]
ArthurClemens has quit IRC (Quit: This computer has gone to sleep) [23:49]

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)