#foswiki 2011-10-10,Mon

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

WhoWhatWhen
gac410arrrrg I hate it when I git clean and forget about an untracked file I had been working on. There goes my code to fix up the TOPICINFO [00:15]
............. (idle for 1h3mn)
***terceiro has joined #foswiki [01:18]
gac410Any thoughts - adding a comment="Last commit: git $gitHash, svn rev: $svnRev Date: $commitDate" to the TOPICINFO of Distribution topics? Would that be useful / helpful?
It would slow down buildcontrib. Issuing the log command to get the last commit is pretty slow.
[01:19]
***terceiro has quit IRC (Ping timeout: 248 seconds) [01:33]
..... (idle for 21mn)
terceiro has joined #foswiki [01:54]
.................. (idle for 1h26mn)
Lynnwood has quit IRC (Quit: Lynnwood) [03:20]
.............. (idle for 1h7mn)
gac410 has quit IRC (Quit: Leaving.) [04:27]
........ (idle for 36mn)
SinnerP has quit IRC (Read error: Connection reset by peer)
SinnerP has joined #foswiki
[05:03]
...... (idle for 25mn)
mfladischer has joined #foswiki [05:28]
SinnerP has quit IRC (Read error: Connection reset by peer)
SinnerP has joined #foswiki
[05:34]
..... (idle for 22mn)
fladi_ has joined #foswiki
mfladischer has quit IRC (Ping timeout: 244 seconds)
[05:56]
SinnerP has quit IRC (Read error: Connection reset by peer)
SinnerP has joined #foswiki
ArthurClemens has joined #foswiki
CDot has joined #foswiki
[06:07]
pharvey has joined #foswiki
pharvey has quit IRC (Changing host)
pharvey has joined #foswiki
[06:19]
pharveyBoo! [06:20]
.... (idle for 17mn)
***ArthurClemens has quit IRC (Quit: Leaving...)
denisr has joined #foswiki
[06:37]
.... (idle for 19mn)
CDotpharvey: !ooB [07:00]
pharvey:) [07:01]
***Alexander__ has joined #foswiki [07:04]
Alexander__Hi there! I have a question regarding utf-8 :) I have the impression that a solr response gets double encoded in utf-8. If i check the solr json response everything is still ok. In the browser window i get crazy signs instead of normal german umlauts
Is there a possibility to let the response "as it is"?
[07:17]
***VerboEse|Off is now known as verboese [07:22]
pharveyAlexander__: sorry, I think I've asked this before: you're using a CGI.pm later than 3.43 right? [07:26]
***dnavarro has joined #foswiki [07:27]
Alexander__yes [07:30]
pharveyAlexander__: I'd raise a new task :/ [07:33]
Alexander__i think i will wait for michael :) he should get the same problems while switching to utf-8 [07:34]
***FlorianPribahsni has joined #foswiki
ArthurClemens has joined #foswiki
[07:41]
verboese is now known as VerboEse|Off [07:47]
MartinRowe has joined #foswiki
VerboEse|Off is now known as verboese
SinnerP has quit IRC (Read error: Connection reset by peer)
SinnerP has joined #foswiki
SinnerP has quit IRC (Read error: Connection reset by peer)
SinnerP has joined #foswiki
ArthurClemens has quit IRC (Quit: Leaving...)
Alexander__ has quit IRC (Quit: ChatZilla 0.9.87 [Firefox 7.0.1/20110928134238])
[07:52]
..... (idle for 20mn)
Alexander__ has joined #foswiki
verboese is now known as VerboEse|Off
VerboEse|Off is now known as verboese
[08:22]
verboese is now known as VerboEse|Off
VerboEse|Off is now known as verboese
leik has joined #foswiki
[08:32]
FlorianPribahsniHello; I have created my own comment template in the System.UserCommentsTemplate topic, Now this new comment type works in all webs excuding one web; any ideas why? [08:40]
***Colas has joined #foswiki [08:41]
packoman has quit IRC (Remote host closed the connection)
packoman has joined #foswiki
[08:48]
CDotFlorianPribahsni: you have probably overridden something in the preferences for that web.
no, i can't guess what. Check your WebPreferences.
[08:52]
packomanhey pharvey:
if you have a little time some short questions...
I saw that you put the bibtexformfieldplugin into the testing area. however it doesn't show up in the plugin-list of my Wiki
however the SemanticLinksPlugin does, which is also in there. Do I need to do something for it to show up. I did already add the testing repo of course...
[08:53]
***dnavarro has quit IRC (Quit: Leaving) [08:56]
packomancould check if it shows up for you? [08:56]
..... (idle for 20mn)
pharveypackoman: sure [09:16]
packomangreat :) [09:17]
pharveypackoman: added the missing PackageForm [09:18]
packomanok. so now it should show up? I'll check [09:19]
pharveyyep [09:19]
packomancould you point me to the information on Foswiki where I can find info on how to package plugins and push them to Testing? [09:19]
pharveywell, it's just a matter of running the build.pl script
it prompts you for the location to upload
it defaults to Extensions, you just need to override with Extensions/Testing when prompted
cd /path/to/BibtexFormfieldPlugin/lib/Foswiki/Plugins/BibtexFormfieldPlugin
./build.pl upload
follow prompts (I hope :-)
I think BuildContrib itself has this doc
[09:20]
packomanok. just those two things. cool that's easy enough. [09:21]
***ArthurClemens has joined #foswiki [09:21]
packomanI look at the docs
now it shows up!
[09:21]
pharveyhttp://foswiki.org/Extensions/BuildContrib#The_61upload_61_target [09:21]
packomanvery cool :) [09:21]
***Alexander__ has quit IRC (Quit: ChatZilla 0.9.87 [Firefox 7.0.1/20110928134238]) [09:22]
packomanso. one more question regarding the changes you did to the code:
is there a reason you removed the function that I had created to parse the bibtexCodeField to the bibtexAtomFields
perhaps such as coding style or something?
if not can I refactor it back?
[09:22]
***Babar sets mode: +oooo ArthurClemens Colas ColasHome CDot
Babar sets mode: +oo pharvey terceiro
[09:23]
pharveypharvey tries to remember
So we're looking at Foswikirev:12348, Foswikirev:12349, Foswikirev:12350, Foswikirev:12351
[09:24]
FoswikiBothttp://trac.foswiki.org/changeset/12348 http://trac.foswiki.org/changeset/12349 http://trac.foswiki.org/changeset/12350 http://trac.foswiki.org/changeset/12351 [09:26]
Babarstop hammering my poor bot :( [09:26]
pharveywhy? [09:27]
Babarhe's a poor innocent creature [09:27]
***foswiki_irc5 has joined #foswiki [09:27]
pharveyhe lives to serve [09:28]
packomanchecking... [09:29]
pharveypackoman: was there a method called bibtexCodeField? [09:31]
packomanok. got it. don't know which revision it was, but I initially had a function called:
parseBibtexFragmentToFieldsing
that did the parsing once we have the bibtexFieldNames
basically you put it's code in line with the rest
[09:33]
pharveythat sounds familiar but I'm having trouble finding that code [09:34]
packomanwas just wondering if you did that for a reason (i.e. such as coding style or something) [09:34]
pharveywas it in Core.pm?
hrm
It was a long time ago... I don't really remember :}
[09:35]
packomanshould be the second commit
yeah
in Core.pm
[09:35]
pharveyFoswikirev:12202 [09:36]
FoswikiBothttp://trac.foswiki.org/changeset/12202 [ Changeset 12202 – Foswiki ] [09:36]
packomanit was part of the first (somewhat) working version [09:36]
pharveythe only method other than beforeSaveHandler is getBibtexFields [09:36]
packomansorry. but I am having trouble opning the trac links about [09:37]
pharveyoh [09:37]
packomanabove [09:37]
pharveyhttps://github.com/foswiki/BibtexFormfieldPlugin/blob/3c8a4e621a2e8536a980a28d66284fe51be19933/lib/Foswiki/Plugins/BibtexFormfieldPlugin/Core.pm
packoman: I think that's the version of Core.pm you're referring to
[09:38]
packomanoh. dear
I suspect that I never committed it
I wanted to and all
as I had done some work before going on the beamtime
ok. nevermind
I never committed that
sorry for wasting your time searching for it
[09:39]
pharveythat's ok :)
feel free to do whatever you want
[09:41]
packomanok. I'll just go ahead and add that.
thanks for your help. for now... there'll be more. :)
[09:41]
pharveyI usually try to make perlcritic --cruel mostly happy, down to level 3 warnings and some level 2 warnings
so if you see style changes, that's what I'm working to
IIRC you had some variables in a wider scope than you needed
and I added some asserts
and I tried to tighten up the type field that we'll respond to
[09:42]
***Alexander__ has joined #foswiki [09:43]
pharveythe only thing I feel strongly about is that we should use bibtex+... notation
to stay consistent with the rest of foswiki
[09:43]
packomanok. I am still not 100% sure about the workings of how the field is treated behind the scenes (outside of Core.pm), but for the moment I'll treat it as a blackbox and just add functionality [09:45]
pharveycool [09:45]
packomanas far as I am capable of doing that :) [09:45]
pharveyIf you find yourself making assumptions about variables or state, don't forget to ASSERT ... if DEBUG if you want :) [09:46]
packomanI mostly miss the functionality to write back the atomic fields to the bibtexCodeField
so we can nicely edit them
ok. will do
[09:46]
pharveycool, that's what you're working on? [09:47]
packomanjupp. wanted to get started on that yesterday. but found the differences between your code and mine (i.e. the missing function) and wanted to clear that up before
not a big thing anyway
[09:48]
pharveyDEBUG is exported from use Assert; - and is true whenever FOSWIKI_ASSERTS=1 (from env/LocalLib) - Eg. when running unit tests
so when used in "production" the asserts don't slow us down
by default FOSWIKI_ASSERTS=0
[09:48]
packomanmy idea is to just say, if the bibtexCodeField is unchanged write the other fields to it assuming that those are the ones that were changes
d
[09:51]
pharveysounds good [09:51]
packomanoh yeah. and playing with it yesterday, the article I created, didn't show up in the JQGrid you added
should that already be working?
[09:52]
pharveyhrm [09:52]
packomanI didn't really look into it
don't worry about it
I look at then...
might be a setup problem of mine
[09:52]
pharveyI had planned on doing more work to it, but other things happened (as always)
if you look at Applications/Bibliography.WebHome, you'll see the %GRID checks to see if DBCache is enabled
because SEARCH vs DBQUERY have slightly different query map
and basically the grid is only searching for things that have a form attached
searching in the BASEWEB
it seemed to work from _Bibliography - I hope it works when you create a new web with _Bibliography as a template - that's the intention - not sure if I tested
[09:54]
packomanok. I'll look at it
DBCache is not used in a default installation right?
[09:56]
pharveyno, but JQGridPlugin will use DBCache if it's enabled (I think) [09:57]
packomanok. but it should also work without then... [09:58]
pharveyyes of course (I rarely have DBCache enabled)
or even installed
[09:59]
packomanok. just saw that I am getting an error message: The BIBLIOGRAPHYWEB preference setting is empty or undefined. This indicates that you may not have finished deploying this bibliography web properly; see deployment notes for more information. ....
might be that
I didn't realize that I would need to add something to sitePreferences
[10:03]
pharveyoh yeah. I wanted people to share a common bibliography database between different projects (we use a web per project).
"projects" run for several years, before you think we're too web-happy :)
[10:04]
packomanyeah. that makes sence and essentially I was already asking myself, how to make the Cite-topic available from other webs :)
hehe
[10:05]
***foswiki_irc5 has quit IRC (Quit: Page closed) [10:08]
packomanok. strange if I understand your code correctly the grid should not show up as I didn't define BIBLIOGRAPHYWEB yet
oh well..
so should I put BIBLIOGRAPHYWEB into the WebPreferences or the SitePreferences?
[10:08]
pharveypackoman: it's up to you. If you think your wiki will only ever have one bibliography database, then SitePrefs seems fine
you can always make it more specific later if you need to
[10:15]
packomantrue
still though... doesn't work yet (the grid) :(
I'll look at it this evening perhaps. now I need to get some of my "other" work done...
c'ya and thanks again
[10:15]
pharveypharvey gives it a quick go :)
seeya
packoman: I see the same problem :/
[10:17]
damn, JQGrid is busted [10:24]
***Alexander__ has quit IRC (Ping timeout: 276 seconds) [10:27]
CDotpharvey: did anyone do anything to build a JQGrid from static table content in a topic? [10:31]
pharveyCDot: not specifically, AFAIK. Micha made "connectors" semi pluggable, so I guess it's possible to write a new connector for it
JQGrid isn't busted, it's our lame "you haven't changed anything" bug preventing plugin's Config.spec getting absorbed into LocalSite.cfg
[10:32]
CDotok, thanks. The EditRowPlugin has a pluggable API for accessing tables & table rows, so I guess the two can be plugged together [10:33]
pharveykewl
pharvey writes a configure checker
and again, we're polluting the top-level Foswiki::cfg namespace
[10:33]
***ArthurClemens has quit IRC (Quit: Leaving...) [10:35]
packomanhey CDot: I asked a question regarding ActionTrackerPlugin yesterday and Babar said that you could probably help me
I would like a search were only today's Actions show up
however somehow I couldn't get it to work
hm. just saw that CrawfordCurrie answered my support question. nevermind. somehow I didn't get a notification-mail
[10:38]
CDotpackoman: did you read the answers in the Support web this morning?
snap
[10:40]
pharveydamn I hate firefox lately. It's hiding the protocol:// part in the address bar [10:41]
packomanyeah. but it's not directly what I want [10:41]
CDotthen you need to express your question more clearly, please. [10:41]
packomanI basically want all actifities with todays date as due-date
sorry
I thought it would be clear
those that are open
the way CrawfordCurrie writes it will show those of the upcoming day too.
I already had that
[10:41]
CDotare you sure? isn't what you want a list of actions that *will* be late if they are not completed today?
and don't forget that "within" takes +/- to control the direction it looks in
[10:43]
packomanhm. i am confuse doesn't 1 mean: today +/- 1 day? [10:44]
CDotyes
and +1 means +1 and -1 means -1
[10:44]
packomansure. but essentially I just wanna see those of *today*.
or does that make no sense?
[10:44]
CDotwhat is "today"? the 12 hours either side of the current time? [10:45]
packomanso essentially I can push my task around and create myself a list of things to do for the day [10:45]
CDottoday in Tibet, or today in Tulsa? [10:45]
packomanok. sorry. hehe. well I acutally just use dates. not times. so today would be from midnight to midnight, todays date, in madrid :) [10:46]
CDotoh, you want a task list? So you want a list of all actions that *will* be late if they are not completed today? [10:46]
packomanbasically
jupp. just hadn't thought of it that way
[10:46]
CDotanyways, within="-1" is probably what you thought you wanted [10:49]
packomanso that would be those of today and yesterday. I guess that's close enough [10:51]
CDotif you want to be more precise, you can use due="<tomorrow" [10:53]
packomanok. funny thing. just tried it. and it doing within="-1" acutally just shows those of today [10:53]
CDotstate="open" due="< tomorrow" will give you your "must be done" list [10:53]
packomanso it is exactly what I want. just don't understand why... [10:53]
***foswiki_irc8 has joined #foswiki [10:53]
CDotthink about it; "-1" relates to the current *time*, not the date
within="-1" is just saying "within the last 24 hours"
[10:54]
packomanok. and by default, if I don't set a time for an action, which time will it get? [10:54]
CDotIIRC the save time.
or no time. One or the other. I forget.
[10:55]
foswiki_irc8hi there.. if you are discussing the the ActionTrackerPlugin might helping me out ;) [10:55]
packomanok. thanks [10:56]
foswiki_irc8my question on the support site got deleted or i just can`t find it anywhere [10:56]
packomanI'll update my question on the support site
thanks!
[10:56]
foswiki_irc8the problem is, if one creates a new action with the CommentPlugin the new action doesn`t have an uid
if i manually force an uid by adding the parameter the uid on different topics might be the same
[10:56]
packomanare you sure? I just checked and using the CommentPlugin template my tasks do have a UID
I am using %COMMENT{ type="action" target=%WEB%.%TOPIC%#ActionAddAnchor }%
[10:59]
foswiki_irc8hm.. i used the default template and the action receives no uid
is the target neccessary?
i mean it will generate the new action just below the commentfield
[11:00]
packomanno. the target should not be necessary as far as I know
I just put my task hidden away and then use actionsearches to filter them
[11:01]
foswiki_irc8but then i don`t get it.. if i just use %COMMENT{ type"action"}% the new action created has no uid [11:02]
packomanand the anchor is in the comment-section...
you forgot the "=" there. but i am guessing in the wiki it's correct?!
[11:02]
foswiki_irc8oh.. yes.. i got it corret in the wiki [11:03]
packomanhm. sorry. then I can't really help you. [11:04]
foswiki_irc8you just use %COMMENT{type="action"}% and the new action has a uid? [11:05]
packomanok. let me just check, what happens, if i *just* use that and no target [11:05]
foswiki_irc8this is what i get: %ACTION{who="me" due="30.12.2011"}% Hello World<br />- Created by Main.TestUser, 10 Oct 2011 - 13:05%ENDACTION% [11:07]
packomanjupp. if I do %COMMENT{ type="action" }% it get's a UID. What version of the ActionTrackerPlugin are you using
?
[11:07]
CDotfoswiki_irc8: I answered your question in Support web. I suggested you try re-ordering the plugins to ATP follows CommentPlugin. [11:08]
packomandamn. I could have figured that one out... hehe [11:09]
foswiki_irc82.4.6 [11:09]
packomandid you try what CDot said? [11:10]
foswiki_irc8on the extension site it`s the other way around [11:11]
***Alexander__ has joined #foswiki [11:12]
foswiki_irc8oh wait.. my english is a bit off :P
ok.. we just checked and the CommentPlugin is before the ATP
[11:13]
CDotok, then i don't know what's going on. The comment plugin seems to be saving a valid action, so the ATP should be processing it to add a UID. Does it add a uid if you edit and save the topic normally? [11:18]
foswiki_irc8yes
but the problem is that i got two actions after that
the original action got an uid and a copy of it has another uid
[11:18]
CDotunderstood. The commenting process should not bypass ATP, but that's what appears to be happening. [11:19]
foswiki_irc8well i got to go.. i will try something out tomorrow or so.. thanks again [11:23]
***foswiki_irc8 has quit IRC (Quit: Page closed) [11:23]
Alexander__ has quit IRC (Ping timeout: 276 seconds) [11:31]
......... (idle for 42mn)
Alexander__ has joined #foswiki [12:13]
...... (idle for 27mn)
packomanpharvey: did you resolve the JQGrid affair? [12:40]
pharveypackoman: yeah, it's a Config.spec issue. You'll have to copy in the values from Config.spec into your LocalSite.cfg to get it working
JQGridPlugin/lib/Foswiki/Plugins/JQGridPlugin/Config.spec
[12:41]
packomanok. thanks. i'll give it a shot this evening!
just wanted to ask before you go to bed :)
[12:42]
***Alexander__ has quit IRC (Read error: Connection reset by peer) [12:55]
leikpharvey, how goes it? Saw your mongo on g+ Is that caching of OP_ref what I long for? :) [12:57]
pharveyperhaps - I'm only trying to avoid setting too many indexes for all my META:SLVALUEs :) [12:57]
....... (idle for 30mn)
***verboese is now known as VerboEse|Off
pharvey has quit IRC (Quit: ChatZilla 0.9.87 [Iceweasel 7.0.1/20110930065748])
[13:27]
gac410 has joined #foswiki
VerboEse|Off is now known as verboese
[13:40]
gac410rats - missed pharvey. Good morning all. CDot, have a minute to talk about the TOPICINFO cleanup I'm working on? [13:52]
CDota minute, literally - due elsewhere are 14.00 (5 mins from now) [13:55]
gac410Cleanup of topicinfo - version=1 date=(last commit) remove reprev=
what about format 1.1 vs. 1.0 for sys topics.
Also any sense of adding comment=" svn rev, git short hash" or somethinglike that
It doesn't look like there is any other cruft to remove. Just figure I should make one pass and get them "right" ... whatever that is :-)
[13:56]
CDotthe format is only used to determine the quoting style used in meta-data. 1.1 is appropriate for all sys topics [13:58]
***leik has quit IRC (Quit: Leaving) [13:58]
gac410okay - I'll rewrite them. Most of the old TipTopics are format=1.0 bunch of others as well. [13:58]
CDotw.r.t to extras - no, I don't think so. [13:58]
gac410extras ... meaning don't add a comment? [13:59]
CDotright [13:59]
gac410okay. yeah if we add something, then buildcontrib has to maintain it in the future :-( [13:59]
CDotw.r.t format, any topic with no meta-data can be 1.1, or you can drop the format= completely I thinjk (don't quote me on that)
if a topic has format="1.0" and meta-data, then that needs looking at
but a read and a save of the topic in Foswiki will fix the format, if needed
[13:59]
gac410okay I'll double check that before updating. Thx again. Maybe I'll have a monster commit later today/tonight. Great.
I'll rewrite topicinfo for all Core topics and default extensions.
Also realized that a lot of us are releasing extensions from git checkouts - those topics probably have bad $Date and $Rev strings, since git doesn't maintain them.
[14:01]
At least in data/System, none of the 1.0 topics have any meta other than TOPICINFO and TOPICPARENT [14:17]
***FlorianPribahsni has quit IRC (Quit: Page closed)
fladi_ has quit IRC (Ping timeout: 240 seconds)
[14:18]
....... (idle for 30mn)
foswiki_irc5 has joined #foswiki [14:51]
foswiki_irc5hi I'm not sure what's going on but if I create a table with wiki syntax like "| row1col1 | row1col2|" and save, it gets changed to html tags. If I go to raw edit, I see something like this:
<table border="1" cellpadding="0" cellspacing="1"> <tbody> <tr> <td>3</td> <td>22</td> <td>test</td> </tr> </tbody> </table>
[14:52]
gac410What release of Foswiki? TinyMCE editor? I've seen that happen if the table contains attributes that cannot be represented in TML - but not for simple tables like you show.
Like setting certain row / cell colors, or dragging the width of the cells.
[14:54]
foswiki_irc5this is 1.1.2...let me see what version of tinymce
1.1.7 is tinymce
[14:56]
gac410Just tried it on 1.1.4beta (not released) and can't seem to trigger it. If I recall dragging the width of a column on older foswiki would cause issue. That is disabled on current release.
Yeah - that's it, and it's not disabled. I just recreated it by dragging the width of a column. Are you sure that someone didn't do that?
[14:57]
CDotgac410: can we use a trigger script with git? [14:59]
gac410pharvey would be better one to ask. I believe it has some sort of hooks. But without a "central repo" some of what is done in svn just doesn't apply to git. [15:00]
foswiki_irc5gac410: I just create a vanilla table with 1 row, 1 column and if I save with tinymce, it still converts to html
can sticky bits cause this?
[15:00]
CDot... and dragging a column (in fact, any table formatting that | tables| can't handle) will do that
I understand that; but for extensions, all we need is $Date$ to be expanded
we can live without $Rev$
[15:01]
gac410CDot: I was pondering having buildContrib find/expand $Date while building the release. Can either set it current, or set it to the date of the last commit, though that's a bit harder.
Oh- CDot - Do I need to worry about file attachment meta for the 1.0 / 1.1. conversion?
Or is that safe too.
[15:03]
CDotcurrent is perfect; as long as it's UTC (or has TZ info in it)
file attachment meta should be safe, though a comment might just be mis-coded
[15:04]
gac410Once I fix up all the $Rev stuff in topicinfo I'll move on to looking at $Date expansion. $Rev might need some review too. Net.pm for example puts $Rev in the agent string. [15:06]
BabarCDot: what do you mean by a trigger script with git? [15:07]
gac410foswiki_irc5: Not sure then - maybe an older bug in 1.1.2 or older TinyMCEPlugin or WysiwygPlugin. There has been a lot of work on tmce over the last releases [15:07]
CDotBabar: a script wot is run when a file is checked in, that may change the content of said file [15:07]
foswiki_irc5k i'll try upgrading thx [15:08]
gac410foswiki_irc5: might be complex upgrade due to dependencies w/ jquery, tmce, etc. [15:08]
foswiki_irc5what do you tihnk I should upgrade [15:08]
gac410At least to just do the extensions. [15:08]
BabarCDot: git supports keyword expansion, but I'd rather not use it :) [15:08]
foswiki_irc5so I should upgrade foswiki then all my plugins? [15:09]
***wdenk2 has joined #foswiki [15:09]
CDotgac410: search for the following strings: %_N_% %_Q_% %_P_% [15:09]
Babarhttp://progit.org/book/ch7-2.html#keyword_expansion [15:09]
CDotif none of them are found in the topic, you can just boost the format to 1.1 [15:09]
***wdenk1 has quit IRC (Ping timeout: 260 seconds) [15:11]
gac410CDot: Thanks that's very helpful. [15:11]
CDotCDot has checked and there are none in System web [15:11]
BabarBabar proposes we make :*.pm filter=perltidy :) [15:11]
***denisr has quit IRC (Quit: Parti) [15:11]
gac410Babar, I was waiting for that suggestion [15:12]
CDotBabar: argue your case in a feature request
CDot *hates* perltidy, as it makes well formatted code unreadable
[15:12]
gac410foswiki_irc5: I don't know for sure that upgrade would fix your issue - I don't recall TMCE always converting tml tables to html. [15:13]
BabarCDot: it's very easy to disable it if you want
let's make a compromise...
[15:13]
gac410Babar Would be nice if tidy was more tolerant to longer lines. It's been a while since we had to fit code into 80 column punched cards. [15:14]
BabarI'll code you a filter that does the $Rev$ (but that's going to be awful), $Date$ (that one is easy), etc... if you give me perltidy of all .pm in return :) [15:15]
CDotI don't mind the line length limit; it's the morass it makes out of perfectly good conditions that I hate [15:15]
Babargac410: try to read code on a netbook, and you'll thank me for perltidy :p [15:15]
gac410Babar: Rev and Date are not all that much different - just parsing the last commit log record. I've got both working in my topicinfo cleanup. Getting the git last commit log is the really slow part. [15:17]
BabarBabar is afraid what gac410 is implying...
Babar sincerely hopes you're not relying on git-svn
[15:18]
gac410Well I was ... but nothings committed yet [15:18]
Babarhum... I saw some commits with that
which in fact, used some code I took out from pseudo-install.pl to do check_manifest, and the code from pseudo-install might have suit you better :)
[15:18]
gac410nothing committed at all for FixTopicinfo script - that's totally local. That was where i actually parsed apart the log record.
build.pl - just tested last log to make sure it was committed oh. yeah I did pull the rev. hm.
no - I pull the svn rev from the 'git svn info' output.
and yes I did shamelessly borrow (steal?) from check_manifest
[15:20]
***Lynnwood has joined #foswiki
Lynnwood has quit IRC (Changing host)
Lynnwood has joined #foswiki
[15:23]
gac410Babar, what's issue with using git-svn to check status of the svn repository? [15:23]
Babarthat not all repositories use git-svn?
that if the plan is one day to move away from SVN, we will have to redo all that again
[15:24]
gac410yeah - but in the meantime, how do we make sure that someone building in git has not forgotten to commit to svn. The only place I use the svn rev is in the -autobuild code
I think until we stop using svn altogether we need to make sure that it is used consistently - at least for core.
[15:32]
Babaroh, I'm not challenging your code
I'm just saying... using SVN revision number to replicate $Rev$ might not be what we ultimately want
[15:34]
gac410Oh - yeah I agree with that. For Topics i'm discarding $Rev altogether. Have not figured out what to do for the modules. But there are a lot less of them using $Rev [15:35]
CDotwhat we ultimately want is this: given a file released to an end user, track that file back to the exact repository and exact file version that it was built from.
how that is done, and what compromises have to be made to achieve it, are up for grabs
[15:35]
Babarso the piece of code in the link above should do
with $Id$ and ident
[15:37]
gac410things like last commit date and blob sha1 are fine. But how to track back to the repo. Even though code is distributed, some repo needs to be the authority for Core, and for each non-core extension, right? [15:42]
Babarwhy? [15:45]
gac410So I could build a core foswiki release from my local repo without any regard to what is committed to your repo or Lavrs or ...?
Where is the official content of "core" defined. Or am I missing something
[15:45]
Babareach file would have its own sha1, so we could track it
but to build something official, I'd rather use tags and push it on github
which would be the official content
but nowadays, anybody can build core, or any core extension, and publish it on foswiki.org. Only a few have passwords for the sf account
[15:48]
gac410And also limited are the keys to sign them as offical with the gpg signatures right?
In thinking about the $rev though, we do need to resolve asap. IIRC I built an updated TablePlugin from my git repo, which means the $Rev's are all wrong in that build.
[15:49]
Babarthe key I would hope is unique, but people having it might be multiple, with the passphrase :)
we just need to define what we really need. If all we need is a $Id$, it's easy
use git attributes (even though it's highly discouraged by the git community)
or better... do the replacement in BuildContrib
[15:50]
gac410As we move extensions and dependencies from $Rev use to x.x.x use, we can eventually drop rev and use the id. But whatever we do needs to work for svn users today as well - otherwise the non-git folks will be annoyed.
(and I don't want to annoy lavr :-) )
[15:53]
***Colas has quit IRC (Ping timeout: 276 seconds)
foswiki_irc4 has joined #foswiki
[15:55]
BabarLavr said he'd be ok to switch to git if we explain him how it works :) [15:57]
foswiki_irc4Hi all , Can we insert a third party JQuery plug in to foswiki page ?
By refering external jquery plugins and css ?
[15:57]
Babarhttp://foswiki.org/Extensions/JQueryPlugin#Adding_new_plugins
which links to http://foswiki.org/Development/UsingJQueryWithFoswiki#Adding_more_jQuery_plugins
[15:59]
foswiki_irc4thanks @Babar .i ll have a quick look.. [15:59]
CDotgac410: a combination of lib/MANIFEST and lib/Foswiki/Contrib/core/MANIFEST
the first defines the release; the second defines just the core
[16:01]
***verboese is now known as VerboEse|Off
MartinRowe has quit IRC (Quit: Leaving.)
VerboEse|Off is now known as verboese
[16:05]
foswiki_irc4@Babar Is there any way other than creating a new plug in to include a new Jquery effect in a Foswiki page ? [16:09]
***SinnerP has quit IRC (Remote host closed the connection) [16:10]
gac410CDot: I'm confused what question you are answering ... "combination of lib/MANIFEST and..." [16:11]
Babarfoswiki_irc4: honestly, I don't know. I would think that putting the right files in the right place would be enough, but it requires a lot of files, so not sure it's so much easier than blindly following the documentation to create a new plugin [16:13]
foswiki_irc4@Babar Yup..Do u think that attaching n refering the JS and CSS file can produce the jquery plug in effect in foswiki page?
or foswiki will render in a different manner ?
[16:16]
***verboese is now known as VerboEse|Off [16:17]
foswiki_irc4just want to check it before actually putting effort in doing that.. [16:17]
gac410No core + core extension topic contains any of %_N_% %_Q_% %_P_% - so I'll replace every format=1.0 to 1.1 in all TOPICINFO [16:21]
Babarfoswiki_irc4: as I said, I honestly don't know.
but the procedure Micha wrote seems pretty straight forward
and it would benefit others if you publish your plugin :)
[16:24]
Plazma-Rooolzso i've got a web i created in the trash but it's still in view , how to fix? [16:26]
i'd ideally like it gon entirely [16:31]
gac410Normally Trash web is only visible to Administrators.
Unfortunately we don't have an automatic way to purge trash. So you have to manually delete files from trash from the file system
[16:32]
***foswiki_irc3 has joined #foswiki
foswiki_irc4 has quit IRC (Ping timeout: 252 seconds)
[16:32]
foswiki_irc3thanks @Babar for the jquery plugin related info. I ll try to explore more... [16:33]
***VerboEse|Off is now known as verboese
foswiki_irc3 has quit IRC (Quit: Page closed)
[16:35]
......... (idle for 44mn)
terceiro has quit IRC (Remote host closed the connection)
Zenopus has quit IRC ()
[17:23]
Zenopus has joined #foswiki [17:32]
.... (idle for 18mn)
foswiki_irc5 has quit IRC (Quit: Page closed) [17:50]
foswiki_irc3 has joined #foswiki [17:57]
foswiki_irc3I have a simple table in a topic with wiki syntax like "| test |". I've discovered that if I keep saving a topic over an over again, sometimes the save results in the table being converted to html and sometimes it stays as wiki syntax
gac410: I spoke to you about this earlier today but I didn't realize that saving multiple times through tinymce gives diff results
anyone have an idea as to why sometimes the markup gets changed?
[17:59]
........... (idle for 50mn)
***ArthurClemens has joined #foswiki [18:50]
foswiki_irc3 has quit IRC (Ping timeout: 252 seconds)
leik has joined #foswiki
CDot has quit IRC (Quit: Leaving.)
[18:55]
......... (idle for 42mn)
orev has joined #foswiki [19:43]
orevI'm trying to include a repeating header when printing out a page. I was going to try to edit the print.css file, but I wanted to check if there was a better way to do this, and if there's a standard way to edit the print.css file without modifying the system one. using patternskin. [19:45]
***packoman_ has joined #foswiki [19:46]
SvenDowideitBabar: rather than making you do utf8 for the foswiki camp this year, can i 'just' get you to convert foswiki core to use perl5i? :?
and in the process, we have to convert to Try::Tiny :D
oh, and it happens to turn on utf8
SvenDowideit dreads working out how to get new nstallers to work out the dependencies :/
but really, why havn't we fixed things so you
unzip foswiki.zip; cd foswiki ; cpan . ; ./bin/configure --bootstrap --ask
[19:58]
Babarcpan . ??
and perl5i... right...
I'm sure Lavr will be delighted to have user have install half of CPAN to run Foswiki
[20:01]
SvenDowideitwhere y, ok, so whatever - i've not cared enough about what cpan++ are in perl [20:02]
Babarno, I was just wondering what you meant by this
oh, to pull in all the dependencies? But he shouldn't need any
we try to provide them all alongside the installation...
[20:03]
SvenDowideitok, you know when you unzip a real perl module
you can get deps
y, we do, and its a kludge that is wiffy
mmm, maybe i can get over it by finally (aha, no, there goest that itdea) builing a sven-foswiki-distro
oh well, just was reading things like perl5i require
and the blog about the mess of eval "require $module"
and then saw the child {}, and capture() stuff
SvenDowideit likes to delete code we wrote and maintain
SvenDowideit goes back to deleting, or proposing to delete code ward wrote :)
[20:03]
Babarthat's Child and Capture::Tiny
yes, we should use Child, Capture::Tiny, Try::Tiny, etc...
except... nowadays, it's so deep down in the core code, it's awful to extract
[20:08]
SvenDowideitmeh.
capture not so much
child is only in one place
and try really is a biggie when it breaks
SvenDowideit needs finally tho
[20:09]
BabarCapture and child are used in Sandbox, mostly
and in UnitTestContrib :)
[20:10]
SvenDowideitzactly
i presume that like $module->require (as in autobox), they would have some security improvements
of the 'we havn't had xxx reported, but now can't happen as these modules are safer than our lonely code
oh, try tiny has finally, well, there i go
[20:10]
Babar$module-require? That's UNIVERSAL::require, right?
the thing I try to put it, and everybody yelled at me for it
[20:13]
SvenDowideity, i think so, though its also related to autobox, from what i cna see (in perl5i)
SvenDowideit recons it'd be funny to re-read the reasons given for that one
[20:14]
***verboese is now known as VerboEse|Off [20:15]
Babarhum, Lavr didn't like it because it failed once on one installation
(I think because I made a typo somewhere...)
[20:16]
SvenDowideithttps://metacpan.org/release/perl5i [20:16]
Babarand you didn't like it because you didn't like its implementation [20:16]
SvenDowideitSvenDowideit wonders if i ever felt i knew enough perl to say that :) [20:17]
Babarhacking UNIVERSAL...
and btw, UNIVERSAL::require is also from Schwern :)
[20:17]
SvenDowideitoh, i know, and i knew then too [20:18]
Babarlike half the modules required by perl5i [20:18]
SvenDowideitSvenDowideit has to giggle re-reading what i said
1. it hides a built into the language feature behind a class method
i still beleive that
but they've not managed to fix the language, so poo
sodit, i stillagree with 2, 3, and 4 was / is risky
in that imo i shoudl be able to grep for code that loads modules - and in pelr one greps for 'require ' and 'use '
heavy magic, well, one has to wonder why playing with UNIVERSAL is so universally poopooed :/
bugger, just argued myself out of such a simple improvement
[20:20]
Babarwait...
you just argued yourself out saying loading an extra module is risky, performance wise
and you wanted to try to use perl5i ?????????
it loads like dozens of modules
[20:24]
SvenDowideitnot anymore
now i'm just dithering back to this perl shit is a crazy mess
and perl5i doesn't load lots of modules (alegedly), as it auto-lazy-loads (also pronounced as does-lotsa-crazy-shit-behind-your-back
SvenDowideit has crazy ranted enough for this month, and will go back into hiding, sorry Babar , I really am failing to see where the less foggy path is
[20:24]
BabarI know one, but I know some people won't like it [20:32]
SvenDowideitformat the disk? [20:32]
Babarfor me, perl5i wasn't a bad idea (even though I don't particularly like the entire bundle). But the point to avoid having much penalty on module load, is to go persistent [20:33]
SvenDowideitactually, that is a really big q i avoid asking
why is cgi the default still?
i like to have cgi for some dumb things i do, but default???
[20:33]
BabarI would think ModPerlEngineContrib and FastCGIEngineContrib should be merged into core [20:34]
SvenDowideitclearly, fw2.0 will be psgi and thus not cgi really, so yay [20:34]
Babarafter all, they're like 3 scripts :) [20:34]
SvenDowideity [20:34]
BabarAhhhhhhhhh. yes, psgi :) [20:34]
SvenDowideitthough i hear mod_perl is dead
and fcgi is confusing (or something)
[20:34]
Babarmod_perl is dead?
just like perl is dead...
[20:35]
SvenDowideityup [20:35]
Babarmod_perl 2.0: Version 2.0.5 - February 7, 2011
I know projects whose latest version is older than that :
[20:35]
SvenDowideitmmm, 2.0.5, but 2.0.0 came out when?
SvenDowideit doesn't know, but still
[20:36]
Babar=item 2.0.4 April 16, 2008 [20:37]
packoman_um... sorry to interrupt... a question. How can I find out where the following variable is defined:
BIBLIOGRAPHYWEB
[20:37]
Babar=item 2.0.3 November 28, 2006 [20:37]
packoman_i.e. is there a general method for finding out where variables are defined? [20:37]
Babar=item 2.0.2 - October 20, 2005
=item 2.0.1 - June 17, 2005
=item 2.0.0 - May 20, 2005
[20:37]
SvenDowideitpackoman_: gads, i don't know
if no-one here answers, please ask on Support web / mailing list
[20:37]
Babarpackoman_: rgrep? :) [20:38]
SvenDowideitits a relaly nice queistion [20:38]
Babarpharvey told you you should put it in your SitePreferences [20:38]
SvenDowideitBabar: y, so , its basically correct, fully functional, and not needing new features
whcih in ruby terms ~~ dead, and unused
[20:38]
packoman_yeah. I know. but I realized that the following should not work without the setting in SitePreferences:
IF{ "defined BIBLIOGRAPHYWEB AND '%BIBLIOGRAPHYWEB%.ThisREfeRencWILLN3berExiSt' allows 'CHANGE'"
[20:39]
Babarbut I guess your question is... which one is taken? The order is defined somewhere, like, topic, WebPreferences, SitePreferences, hum... what's the name of the default one again? WebPreferences in Main? Or SystemPreferences? [20:39]
SvenDowideitSvenDowideit goes to bed - nite, and mmm [20:39]
packoman_yet I see it, even when I don't define anything in SitePreferences
good nite
[20:39]
Babarpackoman_: rgrep :)
isn't it defined at least in the plugin's topic?
[20:40]
packoman_yeah that's my question
rgrep is from foswiki or Linux
only know grep
[20:40]
Babarlinux
grep -r = rgrep
[20:40]
packoman_oh
ok. hehe
[20:41]
Babarworks on Debian/Ubuntu :)
$ cat /usr/bin/rgrep
#!/bin/sh
exec grep -r "$@"
[20:41]
packoman_wow. is grep -r slow or what
perhaps I shouldn't do it on the complete foswiki installation?
[20:43]
Babarit is slow, yes... the bigger your installation, the slower it gets :) [20:45]
packoman_it's svn based. perhaps that adds [20:47]
Babaryou mean you have the entire SVN tree?
then you should consider installing ack :)
[20:47]
packoman_um. that I don't know
not all plugins at least not
[20:47]
Babarhttp://betterthangrep.com/ .. ack-grep in Debian-world [20:48]
packoman_is the usage the same?
um. weird it's doesn't find anything there. starnge
[20:50]
Babarfor ack? Yes, usage is more or less the same as grep, but it's more clever
like, it will ignore all subversion folders and files
and will only search files it knows
so on source trees, it's much more efficient
[20:52]
packoman_cool. great tip [20:53]
hm. still though I can't find the BIBLIOGRAPHYWEB entry [21:05]
***ArthurClemens has quit IRC (Quit: Leaving...) [21:06]
Babarthen the issue might be in your IF statement? :) [21:09]
packoman_might be
thing is I don't understand it yet really.
it's from pharvey :)
anyway it *should* find the *some* file with BIBLIOGRAPHYWEB as I still have it in my SitePreferences
anyhow. other things like [[Cite::]] don't work either yet
[21:13]
Babarsoon pharvey will wake up :) [21:17]
packoman_hehe
great
although I'd ought to be going to bed soon
[21:24]
gac410Babar, does /TestCases/TestCaseAutoSearchOrder work for you? Failing here - I think due to topic dates. Want to make sure it wasn't my local changes. too lazy to bisect :-D [21:28]
Babarchecking [21:33]
gac410Started to bisect. Stepping back a few weeks and it passes
CDot
Item11091: deep RCS store changes ... returns a different modified date on the topics.
[21:33]
FoswikiBothttp://foswiki.org/Tasks/Item11091 [ Item11091: RCS VC needs to handle mauled .txt better ] [21:36]
BabarSemiAutomaticTestCaseTests::test_TestCaseAutoSearchOrder
works for me
Babar thought he fixed that test. Or CDot did...
[21:37]
gac410Hm - fails for me after 11091 applied. I'll reset back to current and see what happens.
I get today's date on the topic search results instead of expected SearchTestTopic1; Value_1; 3; 14 Dec 2005 - 21:56; 14 Dec 2005 - 21:56
checking git logs, files have different dates but have not actually changed since forever.
[21:37]
Hm - I've reverted all my changes. Still TestCaseAutoSearchOrder fails. [21:54]
Babartry to change your timezone :) [21:57]
gac410I think that the new meta is sensitive to topic date being different from the rcs,v date yup that's it. Do a rm and chectkout of the ,v file so the cache and rcs have similar date, and the problem is fixed. Even though the contents are not different the fs dates are important to
so if you force a checkout of SearchTestTopic1 - then that test will fail. Checkout SearchTestTopic1.txt,v and it will start working again.
The .txt,v file must be checked out - have a newer file system timestamp, than the cache .txt file
I had accidentally modified the test cases, knew that was not right, and reverted. But that was not enough.
[21:59]
Babarthat sounds to be very fishy to me [22:15]
gac410If the cache file is newer than the rcs file, store decides that it has been modified.
Touch ./data/TestCases/SearchTestTopic1.txt ... the test fails touch ./data/TestCases/SearchTestTopic1.txt,v test works again.
[22:17]
***VerboEse|Off has quit IRC (Ping timeout: 260 seconds)
VerboEse|Off has joined #foswiki
[22:19]
gac410As long as the ,v file is newer than the cache, store will trust the metadata and will show a topic date from the topicinfo. If cache is newer, it becomes "modified" by UnknownUser at the file system timestamp. [22:21]
***VerboEse|Off has quit IRC (Ping timeout: 248 seconds)
VerboEse|Off has joined #foswiki
[22:24]
.... (idle for 18mn)
Babarthat sounds like a nice feature to me [22:43]
gac410yeah - it resolves the issue of history corruption when a txt file is modified externally to foswiki [22:44]
Babarright [22:51]
gac410Probably ought to add a note to that test topic saying to check the file system date on the 3 test topics and their rcs files if the test is failing. [22:53]
Babaryou could have the test do it :) [22:55]
gac410Hm. Can the test topics somehow see the rcs file timestamps? This is a web run test. [22:55]
Babarhum... then no, sorry [22:56]
gac410It's one of the tests that can also be run from the unit test framework. So I suppose the dates could be checked there. But it still leaves the web user hanging. [22:57]
Babarexcept that.. even though it's run through the web, it runs the UnitTestContrib thingy
so this could check the .txt and .txt,v file
[22:58]
gac410Ah - okay - I'll look at it then - I've not done too much with these semi-auto tests - they generally leave me confused. [22:59]
BabarI checked it once... made me dizzy [23:01]
gac410I wonder if it's worth trying to add a check for stale rcs files. The test topic itself isn't the issue. It's the extra topics referenced by that test. So TestCaseAutoSearchOrder references SearchTestTopic1, 2 & 3. The plugin would have to know to check file timestamps on the 3 Search* topics [23:06]
Babaryou're right, it doesn't make much sense
and if you're interested to know how it works: TestFixturePlugin/lib/Foswiki/Plugins/TestFixturePlugin.pm
[23:07]
gac410*maybe* add a "error" include or something to the base test topic, so the fail report could add hints as to why it failed. But it's in a post rendering handler, so expanding an include would be tough.
Or let the next person who runs into the issue figure it out all over again :-D
[23:09]
..... (idle for 22mn)
Okay I have a simple fix to the TestFixturePlugin. Add a variable to the topic " Set FAILMSG = some hints to resolve the issue, like check file system dates. Then expand that variable in the postRenderingHandler of the TestFixturePlugin. [23:31]

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