#foswiki 2013-03-15,Fri

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

WhoWhatWhen
***ChanServ sets mode: +o pharvey [00:14]
.... (idle for 18mn)
VerboEse|Off has quit IRC (Quit: Serverwechsel) [00:32]
....... (idle for 34mn)
SvenDowideitoh wow, i just found a godsend
i needed to see what the html of an ancient twiki looks like
and guess which served welll....... micha's business website
[01:06]
gac410:) [01:07]
SvenDowideitsadly, it confirmed what i feared, i can't rely on the jquery prefs script settings [01:07]
............................. (idle for 2h24mn)
foswiki_irc0hi - anyone with experience on the SqlPlugin?
I have an issue where I have an Insert followed by a select on the same page - and the select statement always runs first.
Is there any default order of execution - can't find anything on the net
I'm using MySql
not sure if it's the plugin, mysql or my code that is the issue!
[03:31]
gac410Hm I don't think that's plugin related. Foswiki MACRO rendering is not necessarily sequential.
Macros are expanded during the topic rendering process, and SqlPlugin uses a conventional registered macro,
I'm not really sure though - I've never used that plugin.
[03:36]
foswiki_irc0so can i delay the rendering e.g of the macro running the select statement? [03:38]
gac410I don't really know [03:40]
....... (idle for 31mn)
***gac410 has left [04:11]
............................................... (idle for 3h51mn)
ChanServ sets mode: +o CDot [08:02]
...... (idle for 26mn)
dicepdhi I am newbie to foswiki, but have got it up and running ok mod_perl, however I have a question about Forms, from all the examples I have seen they only seem to create a record per topic, is it possible to use a form to add a row to a TML table on an existing topic? [08:28]
Or do I have to go the none prefered route of adding to a DB table and have foswiki render the table each request? [08:34]
........... (idle for 51mn)
jastMichaelDaum: not sure your new ACL logic in SolrPlugin deals correctly with ACLs inherited from parent webs (I think that e.g. Foo/Bar.MyTopic should inherit from Foo.WebPreferences if Foo/Bar.WebPreferences doesn't specify ACLs)
dicepd: check out MetaDataPlugin
[09:25]
dicepdthanks will look at that [09:26]
jastit stores multiple records of data in a topic, though you have to make a presentation template or something
alternatively there's CommentPlugin to insert arbitrary content in a specified location in a topic
that's a bit more, shall we say, freestyle :)
[09:26]
dicepdThe MetaDataPlugin certainly looks as if it may do what I need, will try this out in my sandox.
and the %NEWMETADATA{...}% being able to store on any topic looks good and if I can get that to work from a choose topic list perfect
[09:32]
..... (idle for 24mn)
***ChanServ sets mode: +o CDot
ChanServ sets mode: +o pharvey
[09:58]
....... (idle for 30mn)
MichaelDaumwhat is keeping us back from switching to pure git (i.e. without this git-svn bridge)? [10:32]
CDotprobably the investment in the various support scripts
see tools/develop/*
[10:33]
MichaelDaumaren't they all git aware already?
George did the recent releases from git already
[10:34]
CDotdoubt it. i wrote most of them, and have never gitted them, so unless someone else did, they are svn only [10:35]
GithubBot[foswiki] FoswikiBot pushed 1 new commit to master: http://git.io/p-HvWg
foswiki/master a58d7a2 MichaelDaum: Item12396: adding flags to manifest...
[10:35]
***GithubBot has left [10:35]
FoswikiBothttp://foswiki.org/Tasks/Item12396 [ Item12396: initial release ] [10:35]
MichaelDaumwe are really hanging in the middle now between svn, a horrid git-svn setup, and a git read-only [10:36]
CDotCDot is sticking with svn until it's sorted out [10:36]
MichaelDaumI've just set up a git clone foswiki to deploy a new site. [10:36]
CDotanalyse.pl, cron.pl, cron.sh, post-commit.pl, twitter.pl all use svn [10:37]
MichaelDaumit seems the only way to get the remaining devs work on this is to make svn read only and work on git solely [10:37]
CDotCDot isn't a fan of the new configure UI [10:37]
MichaelDaumme neither
very sluggish
[10:37]
CDotif you make svn read-only, that's equivalent to saying to me "we don't want your contributions any more". [10:38]
MichaelDaumat some point we have to [10:38]
CDotwhy? [10:39]
MichaelDaumgiven a sufficiently friendly announcement that foswiki arrived in the new era of git [10:39]
jastin chrome, changing a setting in configure freezes the tab for ~10 seconds :) [10:39]
CDotCDot is waiting for 2mail auto-configure" in =configure= - it has been running for 5 minutes now :-( [10:39]
MichaelDaumthe people's feelings still in love with svn shouldnt be hurt too much [10:39]
CDotCDot doesn't love svn; but "it just works"
and I really don't want to invest in rewriting all those management scripts
[10:40]
MichaelDaummaking svn read-only will give people access to source code, whereas commits go via git push [10:40]
CDotif git commits fully support the post-commit etc, I'd be happy to move over
but right now it doesn't
[10:41]
MichaelDaumit does as far as I know [10:41]
CDothow? the scripts all depend on svn [10:41]
jasthooks can be a bit trickier because of the potential for non-ff pushes [10:42]
MichaelDaumthough as you say the scripts to be hooked in arent in place yet. [10:42]
jastand of course a push can introduce hundreds of commits simultaneously
(though it's unlikely)
[10:42]
CDotso until the hook scripts are ported, you can't throttle svn [10:42]
jastI'll try and figure out in a few weeks' time whether I can port the scripts on company time [10:43]
CDotwhat is the status of "new" configure? is it still being worked on? [10:43]
jastTimothe was the one working on it, and apparently he's gone dark [10:43]
CDotor can I go in and fix things? [10:43]
jast(or so Geroge said) [10:43]
MichaelDaumokay so that's the info I was looking for: post-commit scripts are not ready yet.
what else?
[10:43]
CDotanalyse.pl, cron.pl, cron.sh [10:43]
MichaelDaumonce we identified the remaining bits we nail them [10:44]
CDoti.e. the scripts that support foswiki.org [10:44]
jast(clarification: in git, 'post-commit' is a hook that triggers *locally*. the server-side hooks are, for instance, 'update' and 'post-update'.) [10:44]
CDotanalyse.pl we can live without
jast: yeah, I know
[10:44]
MichaelDaumlocally sounds cool [10:44]
CDotthat's another problem, given the issues with perltidy [10:44]
MichaelDaumserver side validation of source tidiness seems the wrong way to do it anyway [10:45]
CDotyay, mail autoconfiguration returned - after 15 minutes :-( [10:45]
MichaelDaumMichaelDaum is quite confused about all of these mail settings that I don't need now [10:45]
CDotme too :-(
CDot only started this to verify the lighttpd setup
[10:46]
jastlocal hooks aren't automatically applied to clones, btw, for security reasons [10:46]
MichaelDaumCDot, did you try XSendFileContrib as a replacement for viewfile? [10:46]
CDotnope [10:47]
MichaelDaumlighttpd+virtualhosts+xsendfile+fcgi thats the setup at demo.michaeldaumconsulting.com [10:47]
CDotCDot wanted to set up a "simplest possible lighty config, for a server that is shared with other apps" [10:48]
MichaelDaumic [10:49]
CDotthe default lighty config - from tools - didn;t work for me [10:49]
MichaelDaumfor me neither
nor the one coming with virtualhostingcontrib
[10:49]
CDotso I started on a conf-available/50-foswiki.conf [10:49]
MichaelDaumso I wrote my own one autoconfiguring vhosts
snap :(
[10:49]
CDotnow have it running, but keep tripping over configure [10:49]
MichaelDaumCDot, want my stuff pastebin'ed? [10:50]
CDotMichaelDaum: I'm going to try to clean up the lighty doc in Development [10:50]
MichaelDaumLet me know where it is and I'll add to it [10:50]
CDotI won't understand everything you have done, i suspect
so you need to comment it, please
[10:50]
MichaelDaumfor one a rewrite.lua to cover foo.css -> foo.css.gz [10:51]
CDotCDot hasn't played with rewriting yet
I was setting up a server on a netbook, and didn't want the weight of apache. lighty seemd to fit the bill
[10:51]
MichaelDaumbasically it is much simpler and easier to maintain than apache... by far [10:51]
CDoty, it's much easier, but the lighty doc (in general) is pretty shit.
CDot is giving up on the mail config; too many things broken, my brain is melting
[10:52]
MichaelDaumCDot, do we have a lighty howto on f.o already? [10:54]
CDotI think so; I tried to follow it, but gave up
it focused on the tools/ cibnfig, IIRC
[10:55]
MichaelDaumMichaelDaum tries to write up something short and working how to use lighty [10:56]
CDottools/lighttpd.pl
doesn't work, AFAICT
CDot takes that back - it does work, with an existing configuration
[10:56]
***ChanServ sets mode: +o Lynnwood [11:06]
ChanServ sets mode: +o pharvey [11:14]
CDotMichaelDaum: I am deleting Faq32 (the only old topic on lighttpd) leaving your guide as the only one [11:22]
MichaelDaumstill wring on it [11:23]
CDotsure; give me a shout when you are done and I'll compare with my experience [11:25]
pharveyperhaps we could nag the mailing list if there's unperltidied code. Or a cron job could do perltidy commits (making sure there's no ERR though). [11:29]
CDot"making sure there's no err" is the problem. I wouldn't trust it.
nagging the mailing list is pointless.
[11:33]
....... (idle for 31mn)
MichaelDaumCDot, ah you are editing it? [12:05]
CDotyep [12:05]
MichaelDaumMichaelDaum checking why I broke lightygraph on my site [12:06]
CDotdone [12:06]
...... (idle for 26mn)
MichaelDaumCDot, I think thats it. what have I missed ...
skipped the solr multicore part... too much
[12:32]
added some minor comments
I think basically everybody should be able to reproduce this setup using http://foswiki.org/Support/LighttpdBestPractice
[12:41]
CDotMichaelDaum: I did some experimentation with using env vars to set up dirs in apache config and pass it in to the server config; it should work with lighty as well. I'll try it, and report.
if it works it could help reduce the number of configuration places.
[12:56]
MichaelDaumit would be cool to have everything in =configure=
even vhosts
[12:58]
CDotCDot has to go out, back in a few hour [12:58]
......................... (idle for 2h1mn)
FloPriHello i am using foswiki 1.1.5 with al plugins updatet and i get the follwing error: TypeError: b.hoverIntent is not a function. I think its caused by thr new reddotplugin and it makes that twistys are always shown.
How can i downgrade to the priveous version of reddot plgin?
[14:59]
MichaelDaumFloPri, here's a quick fix: add hoverintent to the default jquery plugins to be loaded. use =configure= to do that. [15:01]
FloPri@MichaelDaum: Thx worked fine ;-) [15:05]
MichaelDaumyw [15:05]
GithubBot[foswiki] FoswikiBot pushed 1 new commit to master: http://git.io/O_f1nA
foswiki/master 9a6f862 MichaelDaum: Item12436:Item12437:...
[15:19]
***GithubBot has left [15:19]
FoswikiBothttp://foswiki.org/Tasks/Item12436 [ Item12436: don't create an empty CC header ] http://foswiki.org/Tasks/Item12437 [ Item12437: use a proper add-to-zone ] [15:19]
.......... (idle for 47mn)
***ChanServ sets mode: +o gac410 [16:06]
..... (idle for 20mn)
taylorh140So I thought i had the whole Meta Preferences figured out.. Inside my plugin i have my $topicObject = Foswiki::Meta->new( $session, $theWeb, $theTopic); [16:26]
FoswikiBothttp://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Meta [16:26]
taylorh140So i have a nice $topicObject ? but how do i know what kind of meta varaible i am producing? I could use $topicObject -> text("SOME TEXT"); or $topicObject -> save(%$options); but how do i set the Meta prefrence name and value? [16:28]
jastthat's what $topicObject->put/putKeyed/get/find are for
note that these are general methods to set other types of meta fields, too
($type can be 'PREFERENCE' or 'FIELD' or whatever)
[16:28]
taylorh140Ahh I see it! [16:30]
gac410you beat me to it Jast... I had to look it up :) [16:31]
jastme too (to make sure) :) [16:31]
gac410Hmm the SiteToolsStatistics page is set to deny WikiGuest ... As the embedded example of how to protect statistics topics is "live" :(
Damn, and Statistics is broken on trunk. It only does the Main web by default. Release 1.1 does all top level webs by default. :(
bye jast. Have a good weekend.
[16:32]
taylorh140so i want to replace values when the macro refreshes so i should use putKeyed. $meta->putKeyed( 'FIELD', { name => 'MaxAge', title => 'Max Age', value =>'103' } ); is the example ? so how do you use a has of key=value pairs?
to me it seems like put and putKeyed have the same syantax
[16:35]
gac410gac410 doesn't do a lot with metadata. I'll take a look. I admit I've been confused by this part of Meta processing.
Same syntax, but put won't replace existing, putkeyed does. Don't ask me why or how :D Still looking.
[16:38]
taylorh140Well it doesnt look like the attachment metadata has a key attribute.
however it is replaced
perhaps it is the name that identifies the meta attribute
[16:42]
gac410name is always the key for keyed fields. [16:47]
taylorh140my $keyName = $args->{name}; [16:49]
gac410http://foswiki.org/System/PerlDoc?module=Foswiki::Meta ... there is a bit of structural information just past the table of contents. [16:50]
taylorh140thats in putKeyed. however there is a really interesting comment in the put function "# overwrite old single value" put isn't suppose to overwrite anything is it? [16:50]
gac410agreed. I saw that :(
There is a lot of meta examples buried in http://trac.foswiki.org/browser/trunk/UnitTestContrib/test/unit/MetaTests.pm
[16:51]
taylorh140And in putKeyed "# The \% shouldn't be necessary, but it is" (・_・;)
thanks
[16:54]
gac410What aspect of meta are you working on? Attachments?
Just grepping around in the repo, http://trac.foswiki.org/browser/trunk/ImportPlugin/lib/Foswiki/Plugins/ImportPlugin.pm has some use of setting PREFERENCE, FIELD, TOPICINFO and TOPICPARENT
I can't say these are particularly *good* examples, but they are examples :)
[16:55]
.............. (idle for 1h8mn)
taylorh140Is there a way i can check if my meta tags are being saved? [18:08]
gac410Look at the topic with raw=all or raw=debug.
http://foswiki.org/Extensions/EmptyPlugin?raw=all
[18:08]
taylorh140That definitely works :) [18:11]
.................. (idle for 1h26mn)
I got it to save Meta fields. my $topicObject = Foswiki::Meta->new( $session, $theWeb, $theTopic); $topicObject->putKeyed("PREFERENCE",{ name => 'LVDEPENDENCIES', title => 'Dependencies', value =>"HELLO"}); $topicObject -> save(); [19:37]
FoswikiBothttp://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Meta [19:37]
taylorh140however this has a side effect of deleting all of the topic information [19:37]
gac410Ah... By using Meta->new() You are creating a new empty meta object. [19:38]
taylorh140LOL
of course!
can i grab current session meta by $session ->{meta} ? or something
[19:38]
gac410You want to use load() in place of new() [19:39]
taylorh140even better [19:39]
gac410This is a plugin? Are you running is against the "current topic" ... %SOMEMACRO% What handler are you working in? [19:40]
taylorh140yes in fact it is. [19:40]
gac410Most handlers are already passed a loaded meta object, so you don't need to use load [19:41]
taylorh140my($session, $params, $theTopic, $theWeb) = @_; [19:42]
gac410Which handler? [19:42]
taylorh140registerTaghandler
its a macro
[19:42]
gac410Ah... okay, you've registered a tag, %SOMEMACRO%. Does it update the topic on view? [19:43]
CDottaylorh140: for 99% of things you don't need to worry about the meta object [19:43]
gac410Or update some other topic. [19:43]
CDotFoswiki::Func handles creation/destruction of meta for you, reasonably efficiently [19:44]
FoswikiBothttp://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Func [19:44]
gac410CDot: He's updating the topic meta fields using putkeyed [19:44]
CDotyokes. OK. [19:44]
gac410But now that I realize he's doing that from a %TAG% ... hm. that could be "rendered" multiple times on view.
CDot: I've opened another Statistics task :( we now set a default web in Foswiki.pm, so Statistics can never get called without a web. :P
[19:45]
taylorh140its a plugin i'm designing to help document LabVIEW code. Ive modified MsOfficeAttachmetnsAsHTMLPlugin to look for a vi and send it to a computer with LabVIEW via ssh process it into html zip it send it unzip it parse the html list the dependencies and then create links and diagram the dependencies via DirectedGraphPlugin.
its pretty complicated right now.
[19:48]
gac410wow. Okay. That's way over my head :) [19:49]
taylorh140well one of the problems with the MsOfficeAttachmetnsAsHTMLPlugin is that it cant use MsOffice directly. partially because it doesnt run well on linux (wine). but you can use another computer that has MSoffice using ssh to run scipts on a windows machine. [19:51]
i wish that the ssh authentication was a bit faster though.
By the way load() did the trick!
[19:56]
gac410great [20:01]
.................. (idle for 1h28mn)
***gac410 has left [21:29]
....... (idle for 31mn)
taylorh140is there a good way to put an image in a sub frame so you can pan - scrool - maybe zoom? [22:00]
...... (idle for 27mn)
***ChanServ sets mode: +o gac410 [22:27]

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