WebGUI irc logs from: 2007-02.log

--- Log opened Thu Feb 01 00:00:25 2007
+perlDreamerthe problem is the thread/post relationship00:06
+perlDreamerif you rate a post, then it needs to go recalculate the thread00:06
+perlDreamerbut since a Thread ISA Post, it ends up doing things twice00:06
+perlDreameragain!00:06
+perlDreamerI just need to break all the parts out and call them separately instead of using inheritance00:07
+perlDreamerthreads should have their own rating counter00:07
+perlDreamerthreadRating00:07
+perlDreamerthen this would all go away00:07
+perlDreamerall the logic and code would reduce down to almost nothing00:07
+perlDreamerrizen: you awake?00:09
@rizenworking on support problems00:09
@rizenis it something quick?00:09
+perlDreamercan I add a new column to the thread table to hold the summed thread rating?00:09
@rizendoesn't it already have one for that?00:10
+perlDreamerno00:10
+perlDreamerit recycles the Post rating column00:10
@rizensure00:10
@rizenoh right00:10
+perlDreamerI'll make sure that we can display the right thing in the Post view template.00:10
@rizenso you want to keep the thread post seperate from the thread overall00:11
+perlDreamerIf so, then I'll do it00:11
+perlDreameryes00:11
@rizengo for it00:11
+perlDreamerokay00:11
-!- onioncoder [n=mike@s205-206-123-62.ab.hsia.telus.net] has joined #webgui00:12
onioncoderhas anyone seen Google Gadgets? Anyone thought of allowing any webgui asset to be a "gadget" that could be dropped into anyone else's non-webgui website via a snippet of code?00:14
@preactionan XMLRPC interface that returns JSON output? a javascript library that parses it and spits out HTML?00:17
@preactioni mean, some assets have RSS feeds00:17
@preactionwhat kind of code are you talking about writing to interface with whatever interface is built?00:17
onioncoder(looking for an example for you)]00:18
@preactionJavascript? Perl? <other>?00:18
+perlDreamerpreaction, maybe AJAX instead of XMLRPC?00:18
@preaction*twitch* PHP?00:18
onioncoderhttp://www.google.com/apis/gadgets/index.html00:18
@preactionajax is just a standard http call, so perhaps "?func=ajax;method=XXX"?00:19
onioncoderthe way google does it, I *think*, is a <script > javascript link00:19
onioncoderthat does ajax back to google for content00:19
onioncodersince webgui assets can be "ajaxified" already (most i think)00:19
* perlDreamer flushes preaction's keyboard buffer and remove all references to PHP00:20
onioncoderthe idea would be to allow a script tag on a remote site to fetch *just* that asset00:20
* perlDreamer hits the reset button00:20
+perlDreameris that better preaction?00:20
@preactionis what better?00:20
@preactionahh, mind-wipes00:20
@preactioni'm not worried, because i never knew i could be worried!00:20
+perlDreamerI thought you locked up there00:20
+perlDreamerafter the *twitch00:21
@preactionbut if i read that line again, i'll have whatever it was that made me twitch on my head again, and that would make me twitch again00:21
@preactionanyway00:21
onioncoderanyone? anyone? ferris? 00:21
@preactionwell, currently we have the RSSCapable mixin00:21
onioncoderhere's an eg of a google map: <script src="http://gmodules.com/ig/ifr?url=http://ralph.feedback.googlepages.com/googlemap.xml&amp;up_locname=Google&amp;up_loc=1600%20Amphitheatre%20Parkway%2C%20Mountain%20View%2C%20CA&amp;up_zoom=Street&amp;up_view=Map&amp;synd=open&amp;w=320&amp;h=200&amp;title=Google+Map&amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;output=js"></script>00:22
@preactionperhaps a "GadgetCapable" or something that would provide a www_ajax method and an interface to override00:22
onioncoderdrop that code into any html and voila00:22
onioncoderright - exactly00:22
@preactionthis is more of a community building feature00:23
@preactionand the CS is turning into a monster 00:23
@preactionand XMLRPC sucks for the most part anyway, since AJAX uses JavaScript00:24
@preactioni say it's a good idea, but i also say it's a rather intensive idea that needs to be developed appropriately00:24
onioncoderright - i'm thinking of a fund a feature with pb00:25
@preaction(but along the lines of the RSSCapable asset mixin)00:25
@preactionrather, asset base00:25
@preactioncontact the appropriate people for a quote, though i'll warn you that it will probably be larger than you might expect00:25
@preactionis there a limit to your desire? just the CS wobject for example?00:26
onioncoderk - what are the pitfalls you are seeing?00:26
@preactionit CAN be done for all Assets, but that takes more time00:26
@preactionthe Calendar would be a good candidate for this00:26
@preactionbut there's already iCalendar feeds from that00:26
+perlDreamerI don't see the point.00:26
+perlDreamerbut I'm thick00:26
@preactionperlDreamer: basically thus: you get to access content from a wG site on your own personal site00:27
@preactionso let's say I want to put the plainblack support calendar on my own site, i'd add a <script src="SOME URL"></script> tag to my site, and voila!00:27
onioncoderand if it is fully ajaxified, can be interactive without requiring refresh on the remote site00:27
+perlDreameryou'd do it through iCal00:27
onioncoderok - now think of publishing interactive content00:28
@preactionwG can't do that now00:28
+perlDreamera lot of sites generate revenue from ads00:28
onioncoderWSClient00:28
+perlDreamerthis would allow access to the content bypassing the ads00:28
onioncoderk- you guys are bogged down on why, not how00:28
@preactionwhy is the most important question?00:28
@preactionwhat's the end result that you can't get currently?00:29
@preactionfor the CS you can get RSS feeds and format them, RSS is XML so there are javascript parsers.00:29
onioncodera) I have internal APIs I can expose as SOAP, REST, etc etc00:29
@preactionfor the Calendar you can get iCalendar feeds, and i'm sure there must be a Javascript parser for vCal/iCal/vCard00:29
onioncoderb) most end users arent' sophisticated ehough to code for that00:30
onioncoderc) I can have webgui consume my APIs via WS Client or equivalent00:30
onioncoderd) an enduser can then just copy/paste a generated link for that interactive SOAP driven content00:30
onioncoderI could write my own gadget system00:31
onioncoderbut in some ways easier to let WebGUI be a gadget distribution system for me00:31
onioncoderthat is the why00:31
@preactionso this doesn't export JSON, it exports javascript source00:32
@preactionhence the <script src=""></script>00:32
@preactioncan we assume that people can import and/or use a Javascript library instead?00:33
onioncoderright - it is a javascript container, which then in turn can then do the ajax to get the content -- kind of a bootstrap i guess00:33
@preaction<script src="path/to/downloaded/javascript/library.js">goGetGadget("URL");</script>00:33
@preactionrofl, goGetGadget("COPTER")00:34
onioncoderso once you have done it once for one type of asset, it *should* work with any asset that has a www_ajax method (in a perfect world)00:34
onioncoderlol00:34
@preactionlike the RSSCapable asset base class00:34
onioncoderdoes it still seem as bad?00:35
@preactionso currently we have two needs: One: Assets have an AJAX interface for some features. Two: Some way to make that AJAX interface easy for lusers00:35
+perlDreamerwe can't solve two because that's the user's site00:35
+perlDreamereach site would have to have their own click and drag interface for widgets00:35
+perlDreamerdrupal, livejournal, plone, etc.00:36
+perlDreamereven wG00:36
@preactionwell, i think that if we make it as easy as copy/paste the above source, the <script> thing, that's easy enough00:36
@preactionthen provide options to change (for example) formattings and the like00:37
onioncoderusage example: a charity has a website in wG, they have donors who want to promote the charity on their personal homepage, they could just have a link, yes.  but this could let them drop in a donation "gadget" on any html webpage 00:37
@preactionbut if we use semantic output and a way to specify the <div id="">, then they can use CSS and descendant selectors to change style00:37
@preactionthe "gadget" being, say, a DataForm? or a Product? or something?00:38
onioncoderWS Client or equivalent for example00:38
@preactioni personally find the WSClient evil sorcery00:39
@preactionbewitched!00:39
* perlDreamer is afk00:39
-!- pjesi_ [n=pjesi@client-86-27-130-79.winn.adsl.virgin.net] has quit [Connection timed out]00:41
-!- snapcount [n=royjohns@103.240.119.70.cfl.res.rr.com] has quit [Read error: 110 (Connection timed out)]00:48
-!- castironhike19 [n=dstephan@74.0.5.198] has joined #webgui00:50
@preactioncan I get some opinions: I think I can eliminate a lot of problems for the Calendar by forcing that an event's recurrence starts on the exact same day the event itself starts on00:50
@preactionsome problems are just the user did not update the Recurrence Range Start date00:50
@preactionto be honest, it doesn't do what I personally expect when I make an event the recurs, I expect it to start when the event itself starts, and have the end be specified by me00:51
-!- cap10morgan_ [n=cap10mor@206.124.31.122] has joined #webgui00:52
-!- cap10morgan_ [n=cap10mor@206.124.31.122] has left #webgui []00:52
-!- cap10morgan [n=wmorgan@206.124.31.122] has joined #webgui00:53
-!- onioncoder [n=mike@s205-206-123-62.ab.hsia.telus.net] has left #webgui []00:53
+perlDreamerrizen: I've been through this from top to bottom.  The concept of adding a new column.01:02
+perlDreamerthe booger is user templates01:02
+perlDreamerthe changed system would allow the user to see both the rating of the thread post and the accumulated rating of the entire thread of posts.01:02
castironhike19i'm upgrading to 7.3.8 from 6.6.5 and i'm comparing our templates to an "out of the box" WG site, and i need help with adding the js tags to the templates01:03
+perlDreamerwe can change the default templates to cover this but users would have to update their own custom templates.01:03
@rizenpd this shouldn't affect templates unless people want it to01:04
@rizenhere's why01:04
castironhike19on the out of the box setup, i found 3 js tags, and i was hoping i could get some help with which should be included in all templates, and which is just enabling features for the default WG v7 page01:04
@rizenin the thread template, we want to display the rating for the thread post, not thread cumulative01:04
+perlDreameroh01:04
+perlDreameroh!01:04
@rizenin the colloboration main template we want to display the thread cum, not the other one01:04
@rizenso the only thing that needs to change01:04
@rizenis in collaboration main view01:04
@rizenchange which variable is populating the template01:05
gooeybotrizen: that doesn't look right01:05
+perlDreameryou're a genius01:05
+perlDreamerI'm a'coding01:05
@rizenonly on alternate wednesdays01:05
@rizenmost of the time i'm a moron01:05
+perlDreamerIt's just the cold01:06
+perlDreamercastironhike19: which variables are you talking about?  The IRC group is small.  You may have more success posting this to the PB discussion boards.01:06
castironhike19i haven't been able to find too much on there so far, and the upgrade notes that have been helpful are few and far between01:07
castironhike19but i'll post the question there01:09
+perlDreamerwhich vars are you talking about?01:09
castironhike19mostly i'm trying to figure out how to get it to access the new js lib01:09
+perlDreamerI don't think you need to do anything to your templates to do that01:10
+perlDreamerit should be handled by the HTTP headers01:10
+perlDreamerand for the most part, they're set up automatically01:10
castironhike19so, on our old templates, there was a js lib tag at the top of all the templates, which was <script src="/js-lib/global.js" type="text/javascript" language="javascript"></script>01:10
castironhike19oh, ok01:10
+perlDreamerHere's how to get answers on the boards01:11
+perlDreamerbe very, very specific01:11
+perlDreamerprovide links for examples01:11
+perlDreamerwhich template, what problems you're seeing01:11
+perlDreamerand be patient01:11
castironhike19hehe01:12
castironhike19i've learned that much, for sure01:12
+perlDreamersome people follow-up their own posts a few days later bad mouthing the community because there's no answer01:12
castironhike19no no, none of that01:12
+perlDreamerif after a few days you don't get an answer, then try to find PedersenMJ on IRC.  He's our new resident style/template expert.01:12
+perlDreamercommunity wise01:12
castironhike19great. thanks for the tips!01:13
+perlDreamerand if you're still stuck or in a rush, contact Plain Black and ask for a support contract or documentation01:13
castironhike19right on01:13
+perlDreamerthis announcement brought to you by Plain Black, makers of WebGUI :)01:13
castironhike19haha01:13
cap10morgani'm actually wondering the same thing. is there a standard js include like the old global.js in version 7.x.x? sorry, that wasn't clear to me in your conversation.01:14
+perlDreameryes, but I'm almost positive that it's added in the HTTP headers now01:15
cap10morganperlDreamer: ok, thanks.01:15
+perlDreamerso you only have to add site specific JS libs in the templates01:15
cap10morgancool01:15
+perlDreamerrizen: as part of the upgrade should the upgrade script go through ALL threads and posts and fix them?01:17
@rizenabsolutely01:19
@rizenit wouldn't be fixed if it didn't01:19
@preactionrofl, i didn't pass the assetId to the form when editing an event... how does it even work once?01:27
@rizenyou shouldn't need to01:28
@rizenyou're editing off the url01:28
@rizenso it knows what assetid is by that01:28
@preactionright, but when you submit that form you need an assetId01:28
-!- castironhike19 [n=dstephan@74.0.5.198] has left #webgui []01:28
@rizeni'll take your word for it01:28
@preactionoh, i see01:29
@preactionyou're right01:29
@preactionthen... crap, more digging01:29
-!- Jamie [n=chatzill@207-118-206-236.dyn.centurytel.net] has quit [Read error: 145 (Connection timed out)]01:34
-!- MrAfkGrease is now known as MrHairgrease01:42
-!- Meatbop [n=chatzill@24-180-168-135.dhcp.fdul.wi.charter.com] has quit ["Chatzilla 0.9.72 [Firefox 1.5.0.9/2006120612]"]01:43
+perlDreameranyone care to write me an getLineage command to fetch all threads?01:46
+perlDreamerand return objects?01:46
+MrHairgreasesure01:50
+MrHairgreasegimme a moment01:50
+MrHairgrease$cs->getLineage(['descendants'], {endingLineageLength => $cs->getLineageLength + 1, returnObjects => 1});01:54
+MrHairgreasesomething like that01:55
@preactionif $object->can("method"); and I try to run $object->method(), is there any special reasons why the method would not run?01:55
+perlDreamerand if I wanted _all_ threads I could change the $cs to $root01:55
+perlDreamerpreaction: args?01:55
@preactionperlDreamer: none01:55
@preactionperlDreamer: the first line of that method i changed to a warning, and that warning never gets printed01:55
+MrHairgreaseyes01:56
+MrHairgreaseand ditch the endingLineageLength01:56
+perlDreamerpreaction: are you sure the invoker is also called?01:56
+MrHairgreaseand add 01:56
@preactionperlDreamer: i would find it better to do, for that, $root->getLineage(["descendants"],{ includeOnlyClasses => ["WebGUI::Asset::Post::Thread"] });01:56
+MrHairgreaseincludeOnlyClasses => ['WebGUI::Asset::Post::Thread']01:56
+perlDreamerMrHairGrease: many, many thanks01:57
+MrHairgreasenp01:57
@preactionperlDreamer: i've got a bunch of warnings around the call and they get called just fine01:57
+perlDreamerjust weird01:57
@preactionimma restart and see01:57
@preactionmod_perl can be a cruel mistress sometimes01:57
@preactionnope01:58
@preactionthis is keeping Events that have recurrence from updating the related Events01:58
@preactionthere are a slew of "Pending" version tags that requestAutoCommit is not getting called to commit01:59
@preactionokay, it is getting called it's just not DOING IT02:03
-!- wgGuest03 [n=wgGuest0@81-174-13-85.f5.ngi.it] has joined #webgui02:14
-!- wgGuest03 [n=wgGuest0@81-174-13-85.f5.ngi.it] has quit [Client Quit]02:16
@preactionha! it's because addRevision doesn't modify the current asset in-place, but returns the new asset02:21
@preactioni updated the docs accordingly02:22
@rizenperlDreamer, you still here?02:29
+perlDreamerI'm here02:29
+perlDreamerfor a bit more02:29
+perlDreamerwhazzup?02:30
@rizeni'm working on a weird bug (no report for it just keep hearing about it) and need some input02:30
@rizenthe bug is that if there's a bunch of errors in spectre workflows02:30
@rizenthat no legit workflows run02:30
@rizenbecause spectre is so busy dealing with the borked ones02:30
@rizenuntil they time out02:30
+MrHairgreaseI've seen such a pileup once or twice02:31
@rizenso basically if you get something borked (let's say on a multisite server, someone creates some bad workflows)02:31
+MrHairgreasejust restarted spectre02:31
@rizenthen the whole show stops for a while 02:31
@rizenmy thought on how to clear this is to implement a new queuing scheme02:31
@rizenwe have priority 1, 2, and 302:32
@rizenbut let's assume we can have as many queues as we want02:32
@rizenso that 1 2 and 3 turn into 02:32
@rizen10 20 and 3002:32
@rizenthen every time a workflow is run02:33
@rizenit gets put down 1 level in the que02:33
@rizenqueue02:33
@rizento 1102:33
@rizenand then to 1202:33
@rizenassuming it was priority 1 to begin with02:33
@rizenso if it runs 10 times, then it will be at 2002:33
@rizenwhich is where priority 2 stuff starts02:33
@rizenbasically, if something priority 1 runs long enough02:34
@rizenit will be at the bottom of the stack with all the crap02:34
@rizenbecause if it is running that long...it should be put dead last anyway02:34
@rizenwhat this solves is that everything then gets a turn to run02:34
@rizenwithout gumming up the system02:34
@rizenhow i do it now is02:34
@rizenif something errors02:34
@rizenit's taken out of the queue for 60 seconds02:34
@rizenand then returned back to whatever queue it was already in (1,2,302:35
@rizenso if you have a lot of those02:35
@rizenand they're all erroring out in queue 102:35
@rizenthen queues 2 and 3 will never have a chance to run02:35
@rizenever02:35
@rizenbecause it may take longer than 60 seconds02:35
@rizento cycle through all the bad crap02:35
@preactiondoes it only get downgraded if it errors?02:35
+perlDreameryeah, can we make a distinction between requeue due to time out vs erroring out?02:36
@rizeni'm thinking it gets downgraded no matter what02:36
+perlDreamerif you error out, longer timeout before requeue02:36
@rizena 50 step workflow02:36
@rizenwould run 51 times02:36
@rizenso if it started at 1002:36
@rizenit would be at 61 when it completes02:36
@rizenassuming it completed on the first attempt02:36
@rizenfor each activity02:36
@rizenwe could do a longer timeout02:37
@rizenbut that still doesn't scale much better02:37
@rizenit might work for one environment02:37
@rizenbut not for all02:37
@rizenwe need to come up with a way to make sure that everything gets a chance02:37
@preactionperhaps high priority don't go down so fast? 1 level for HP, 2 for Medium, 3 for Low, so long, high-priority workflows still get preferred in the long run?02:37
@rizenyo tun02:37
@rizento run02:37
@rizenkeep in mind that high priority workflows will still have 10 high priority executions02:38
@rizenbefore they get mixed in with the cruft02:38
@rizenthat's way more than they should need to complete02:38
@preactionok02:38
@rizenmost workflows complete within 3-5 executions02:39
@rizenin fact, commit without approval completes in 1 execution almost every time (unless there's an error)02:39
@rizenanyway..does anybody see any problems with doing this sort of a filter02:40
@rizenrather than the 3 queues method we do now02:40
+perlDreamercan we add some profiling to monitor queue health?02:40
@rizenexplain02:41
+perlDreamerbrb02:41
@preactionthe only problem i see, you've brought up: a very very long workflow will be relegated (Eventually) to the bottom of the barrel02:41
@rizenyeah...and i'm not sure that's a problem02:42
@rizensince a very very long workflow needs to give up some of it's time so that other things can run02:42
@rizenthat's the whole idea of time sharing02:42
@preactionright, but it's giving up both time and priority, "I need time, but I'll wait, and I'll also pretend to need time less than I did last time"02:43
+perlDreamerso in profiling, we would keep track of how deep a workflow goes before it leaves the queue, either by completing or falling off the end02:43
+perlDreamerthis gives us a way of identifying queue depth and troublesome workflows02:43
+perlDreameri.e. if Workflow A NEVER executes, now we have something concrete to go look at02:44
@rizenpreaction: sorry, time = 1 execution, not regular time02:44
+perlDreamerinstead of saying: reset spectre and call me in the morning02:44
@preactionso not the 60 second limit thing?02:44
@rizenright, there will not be a timeout anymore02:44
@rizenpd: to you02:45
@rizenthere are a few things02:45
@preactionoh, then i don't have an issue02:45
@rizeni have planned02:45
@rizen1) you'll be able to run a command line 02:45
@rizenperl spectre.pl --status02:45
@rizenwhich will tell you how many workflows there are waiting and their priorities02:46
@rizen2) you'll also be able to do some ps  functions02:46
@rizenlike top02:46
@rizenkill02:46
@rizenthat sort of thing02:46
@rizen3) the status information will be available through the admin console (from web browser)02:46
@rizenthough the other things will not, for security reasons02:47
@rizen4) you can already see what workflows are running and their status, and what version tags are pending02:47
@rizen5) the workflow status screen will be updated to include more information02:47
@rizensorry, the "running workflows" screen02:47
@preactionperlDreamer: we're still on for the calendar docs tonight? i'm gonna grab some food so I'll bbl02:48
+perlDreamerpreaction: yes 7:30pm PST02:48
@rizeni plan on doing all these things as part of 7.3 bug fixing, because we're seeing a lot of spectre problems02:48
@rizenand we need better tools to troubleshoot with02:48
@rizenso, given that list02:48
@rizendoes that cover what you were looking for?02:48
+perlDreamerAlmost all of it, yes02:48
+perlDreamerI still think a history would be good02:49
+perlDreamer1-5 cover what's happening now02:49
+perlDreamerbut not what has happened02:49
@rizenspectre is doing all this stuff in memory02:49
@rizenand doesn't communicate with the db02:49
@rizenso therefore keeping history like that02:49
@rizenwould be a memory leak02:49
+perlDreameryes.02:50
@rizeni suppose we could add a special debug runtime flag that would keep the history02:50
+perlDreamerit could go in the WebGUI logfile as well.02:51
@rizenthat way you could have it when you're troubleshooting02:51
+perlDreamerit would just need to be postprocessed02:51
@rizenand turn it off later02:51
+perlDreameryes02:51
+perlDreamerit's just a debug feature02:51
+perlDreamernot a runtime02:51
@rizenok02:51
@rizeni'll see what i can do on that front02:51
@rizenback to my queuing problem02:51
@rizendo you see any problems with that?02:51
@rizenmy new solution?02:51
+perlDreamernot off the top of my head02:52
+perlDreamerso long as things fall off the end, it should never get stuck02:52
+perlDreameralthough bad workflows may interrupt lower priority workflows02:52
+perlDreamerif junk is at 15, and I insert at 20, it may not get run for a while until the 15 flows past me02:52
@rizenit never will get stuck, but going back to your historical thing02:52
@rizenit will be interesting if you run --status02:53
+perlDreamervia cron02:53
@rizenand see that there is a workflow that's been executing 100937 times02:53
+perlDreamerwait, I thought it would only execute 50 times?02:53
+perlDreameris 51 death? or bottom out?02:53
@rizenno, it will keep executing until it completes02:53
@rizenno bottom out02:53
+perlDreamerwell, in that case, there's our historical data right there02:54
+perlDreamereverything in 50 is problematic02:54
@rizenhistorical for anything that's still running02:54
@rizenit won't show any historical data for things that have completed02:54
+perlDreamerright, and that's fine02:54
@rizenoh02:54
@rizenwell in that case02:54
+perlDreamerwe can always identify big workflows by using our heads02:54
@rizenwe're good02:54
+perlDreameremail lists, post/thread archives02:55
+perlDreamerthese are potentially big workflows02:55
+perlDreamerwe can deal with them individually02:55
@rizencache deletes are the biggest02:55
@rizenbig caches can take a long time to run02:55
@rizenfor cleanup02:55
+perlDreamerwhat about cache populates for RSS and iCal?02:55
@rizenhuh?02:56
+perlDreamerthere is an RSS populate workflow02:56
+perlDreamerI figured there'd be one for iCal as well02:56
@rizenoh right02:56
@rizenthose aren't all that long02:56
@rizenunless there are connectivity problems02:56
@rizenthey usually complete in 1 execution02:56
+perlDreamerokay02:56
@rizenok...must get dinner now02:57
+perlDreamerso the long part is identifying which cache entries have expired02:57
@rizenyes02:57
+perlDreamerokay.  see ya!02:57
-!- perlDreamer [n=ckuskie@nat048.mxim.com] has quit [""""]02:57
@rizenwhich won't be as big of a deal if i can complete my goal of getting rid of FS cache at some point02:57
-!- rizen [n=rizen@71-86-227-90.static.mdsn.wi.charter.com] has quit []02:57
-!- patspam [i=patspam@203-214-35-18.dyn.iinet.net.au] has joined #webgui03:12
-!- MrHairgrease [n=martin@x032124.its-s.tudelft.nl] has left #webgui []03:25
-!- cap10morgan [n=wmorgan@206.124.31.122] has left #webgui []03:39
-!- Radix-wrk [n=Jesse@203.161.68.67] has joined #webgui03:57
-!- patspam [i=patspam@203-214-35-18.dyn.iinet.net.au] has quit []04:25
-!- crythias [n=Gerald@c-68-51-234-189.hsd1.fl.comcast.net] has joined #webgui04:33
-!- mode/#webgui [+v crythias] by ChanServ04:34
@preactionwoohoo, first time i've had an alcoholic beverage in 8 months, and now i'm going bughunting!04:35
* preaction maintains professional composure in a public forum04:35
Radix-wrklol04:44
Radix-wrkWhat alcoholic beverage though?04:45
@preactionbrandy old-fashioned sour04:45
@preactionmy new favorite, followed closely by white russians and vodka martinis04:45
@preactioncrap, i just realized that our additions to the WebGUI::DateTime interface are somewhat ambiguous, because of WebGUI's ability to allow users to specify their own date/time formats...04:48
Radix-wrkI had fun with Webtender.com's "In My Bar" for New years myself.. got a nice collection of liquers and spirits for the occasion (all rather cheap thanks to a friend who works at a bottle shop), and we tried lots of concoctions that night :)04:49
+crythias"Thank you for the completely inadequate wedding gift."04:49
+crythiashttp://www.cafepress.com/bridezilla.745137304:49
Radix-wrkheh04:50
@preactionha ha, that's clever04:50
Radix-wrkSo how goes the bughunt?04:54
@preactionugly... deep-rooted calendar bugs04:55
Radix-wrk:(04:55
-!- Radix__ [n=Radix@203.161.71.161.static.amnet.net.au] has quit [Read error: 104 (Connection reset by peer)]05:00
-!- Radix__ [n=Radix@203.161.71.161.static.amnet.net.au] has joined #webgui05:01
Radix-wrkHmm.. just had our website disappear in a bunch of workflow errors - now getting '502 Bad Gateway' messages..05:04
@preactionbad gateway means modperl is down05:05
Radix-wrkjust clearing the webguicache and when that's done will do a full restart05:05
@preactionsounds a goodly idea05:05
Radix-wrk2007/02/01 09:54:53 - ERROR - webgui.formsys.com.conf - main::[[undef]] - Caught05:06
Radix-wrk exception executing workflow activity pbwfactivity0000000006 for instance 2ZdKB05:06
Radix-wrk38_LmaEf0cGSRtLKA which reported Can't call method "get" on an undefined value a05:06
Radix-wrkt /data/WebGUI/lib/WebGUI/Asset/Post.pm line 276.05:06
@preactionJT was just discussing in here a way to (imho) fix specture entirely05:06
@preactionby changing the way it prioritizes and runs workflows05:06
@preactionwhich iirc he'll be adding to the 7.3.* bugfixes05:06
Radix-wrkYeah, the spectre stuff still doesn't seem 100% yet05:07
@preactionand if i make this verdamnt calendar USABLE we can get on to 7.4 soon05:07
Radix-wrkcool05:07
@preactionbasically thus: workflows will lose priority as they keep running, so workflows that cause a lot of errors will eventually be delegated to the very bottom of the barrel, and thus not clog up the works05:08
Radix-wrkthe reason they're failing needs to be sorted out too though - not just dismiss them surely.05:13
@preactionof course, you'll be able to see what workflows have been running forever05:13
@preactionand then figure out why05:13
Radix-wrkthese failures are all due to code in formatContent that seems to do no error checking - it's doing a $self->getThread->getParent->get("filterCode"));05:14
@preactionyeah, it shouldn't do that, but also those should not be failing05:15
@preactionit means you have a corrupt Post05:15
@preactionor Thread05:15
@preactionwhat line is that?05:15
Radix-wrk27605:15
@preactioni can add some warnings that will help track those corruptions down05:15
Radix-wrkI'm using 7.0.8 still tho05:15
Radix-wrkso may have been fixed in more recent versions05:16
@preactioni don't htink we changed it in recent ones, but i'll check05:16
Radix-wrkI think there are some issues with collaboration systems having posts made before they're version tag is committed05:16
@preactionoh, right05:16
@preactionyes, now CS forces committing before any Posts can be added05:17
Radix-wrkdon't know why the whole site would've died because of that tho05:18
Radix-wrkclean of cache and restart fixed it05:18
@preactionweirdness05:18
Radix-wrkOh well.. I'll keep waiting for 7.4 :)05:19
@preactionit's 7.3.9 or 7.3.10 you should be waiting for05:22
@preactionthe last 7.3 release will have a clean bug list05:22
Radix-wrkYeah, but we can't do password recovery with this new method of using profile fields - got over 4500 users and none of them have any profile fields we could use for password recovery05:23
Radix-wrkso gotta wait til 7.4 before the old password recovery method is added back in05:23
@preactionnot even an e-mail address?05:23
Radix-wrksure, but then anyone could take anyone else's account over if he had their email address05:24
@preaction... it doesn't send the new password to the e-mail address in the profile?05:24
@preactioni'm not sure how the new one works05:24
Radix-wrkme neither really, but the way JT described it was that it was all web based.. no emails sent05:25
Radix-wrkyou say you forgot password, enter in one or more profile fields - if they match then you can enter in a new password05:25
@preactionahh05:25
-!- PedersenMJ [n=Pedersen@mail.icelus.biz] has joined #webgui05:25
Radix-wrkgreat if you have a new setup - you can add them to the signup info, but not if you have a lot of existing users with no such info05:26
-!- snapcount [n=royjohns@72.189.207.10] has joined #webgui05:26
@preactionright05:26
-!- mode/#webgui [+o snapcount] by ChanServ05:26
@preactionwell, pb.com doesn't use the new password recovery method that i know of either05:26
Radix-wrkHmm.. wonder how it's doing it then...05:26
@preactionat least, theres nothing on register that you enter for password recovery purposes05:27
Radix-wrkAhh.. forgot password is disabled for pb.com atm05:28
Radix-wrkthere's no link to it anymore on pb.com, and it doesn't even recognise the ?op=auth;method=recoverPassword stuff either05:30
Radix-wrkhope noone forgets their password! :)05:30
@preactionhttp://www.dieselsweeties.com/print/strips/ds20070119.png05:31
PedersenMJg'd evening.05:35
Radix-wrkyo05:35
PedersenMJHow's it going?05:36
Radix-wrkwhat's it?05:36
PedersenMJlife, the universe, and everything.05:37
Radix-wrkit's still 4205:37
-!- perlDreamer [n=colink@pool-71-117-209-62.ptldor.fios.verizon.net] has joined #webgui05:37
-!- mode/#webgui [+v perlDreamer] by ChanServ05:37
Radix-wrkthe bowl of petunias is okay tho05:37
PedersenMJReally? I heard that it was still in the whale when the whale tried to become friends with the ground, and didn't do so well when that happened.05:38
-!- rizen [n=rizen@71-86-227-90.static.mdsn.wi.charter.com] has joined #webgui05:38
-!- mode/#webgui [+o rizen] by ChanServ05:39
@preactioni heard the bowl of petunias was somehow killed, since it was really Agrajag in one of his incarnations05:42
PedersenMJYeah, and he had a bitch of a time getting that onto the statue of Arthur killing him in 50 some odd ways.05:43
Radix-wrkI just want to know why it said "Oh no, not again"05:43
+perlDreamerwhat in the world are y'all talking about?05:43
@preactionif we knew that, we'd know a lot more about the universe than we currently do05:43
+perlDreamerroger that05:43
Radix-wrkhence why I want to know :)05:43
Radix-wrkperlDreamer, we're talking about 4205:43
+perlDreamer4205:44
PedersenMJWell, *I* heard that it said "oh no, not again" because it still hadn't mastered the art of throwing itself at the ground and missing.05:45
+perlDreamerpreaction: are you a documentron tonight?05:45
@preactionit can't very well throw itself anywhere, it's a plant!05:46
@preactionperlDreamer: yes'm05:46
+perlDreamergive me a holler when you're ready to start05:46
PedersenMJPrecisely why it was so upset at the current forced attempt!05:46
+perlDreamerin the meantime I'll be cursing myself as 12 kinds of idiot05:46
@preactionperlDreamer: any time, i suppose we start with "Where the hell do I look for to add this stuff?"05:46
@rizenpd: why?05:46
+perlDreamerI left the new prototype upgrade script at $dayJob05:47
+perlDreamerbut brought all the Asset changes home05:47
+perlDreamerwithout all the pieces, I can't finish the debug and test05:47
@rizenand you haven't made yourself a back door into your work network yet05:47
@rizenfor shame05:47
+perlDreamernot allowed to05:47
@rizenyou're never allowed to05:47
+perlDreamerno access to the firewall05:47
@rizendoesn't mean you don't05:47
Radix-wrkno vpn?  ssh?05:47
@rizenaccess to the firewall is for pussies05:47
@preactionRandall Schwartz is a felon because of making a backdoor like that :p05:48
Radix-wrkssh tunnels ftw05:48
+perlDreamerpreaction:  The docs are in two pieces: i18n is in i18n/English/Asset_*05:48
+perlDreamerHelp is in Help/Asset_*05:48
@preactionok05:48
@rizenpreaction: shhhh. i want pd to go to jail so he can work on webgui full time05:48
@preactionHelp is where the template docs are too? i suppose i'll see when I open one up05:48
+perlDreamerhave a gander at the Article help for a good example of how to start05:48
+perlDreamertemplate docs have 4 pieces05:48
+perlDreamertitle05:48
+perlDreamerbody05:48
+perlDreamerall variables05:48
+perlDreamerand then ISA relationships to pull in other template vars from other entries05:49
+perlDreameroh, and have JT tell you where to find my documentation presentation from the 2005 WUC.05:49
@preactioni should put Event and Calendar help in different places? even thought the Calendar is where people will probably expect to find Event help?05:50
+perlDreameryes05:50
+perlDreamer1 file per Asset05:51
+perlDreamerboth i18n and Help05:51
@preactionjust like i18n, k05:51
+perlDreamerEven the Wiki is done that way05:51
+perlDreamerI'm going to try a VPN connection into work, I may drop out for a bit05:51
@preactionk05:52
@preactionperlDreamer: this huge datastructure is kind of ugly, is there a specific reason it's all done as one big one and not broken up into multiple statements?05:56
PedersenMJHey, Radix, to return the favor for firebug last night, here's a mostly equivalent tool for IE: http://www.ieinspector.com/05:57
+perlDreamerI'm in!05:57
+perlDreamerwhich huge ugly datastructure are we talking about?05:57
@preactionthe Help one05:57
+perlDreamerHow would you break it up?05:57
@preaction$HELP->{"calendar add/edit"} = $calendarAddEditPage; $calendarAddEditPage->{fields} = []; ->{related} = []; etc...05:58
@preactionbasically build the hash for a page, and then add it to the main hash05:58
+perlDreamerIt's perl code.  You can do that.05:58
+perlDreamerHave a look inside the Macros.pm Help file05:58
+perlDreamernear "list of macros"05:59
@preactionwhere it's using subs instead of text?05:59
@preactionhooray anonymous subs ;)05:59
+perlDreameryeah, site specific listing of your macros06:02
+perlDreamerIt's just perl code06:02
+perlDreamerso long as it builds the final data structure and you indent exactly the way as all the other files, knock yourself out.06:02
@preactionwell, the indentation will change to adhere to PBP, because they aren't such horribly nested data structures some of the indentation won't be necessary06:03
@preactioni'll do it and see how pretty i can make it, and then if i fail, i'll just run Data::Dumper and take that output ;)06:03
+perlDreamerperltidy will cure all ills06:04
PedersenMJJT, quick question: I'm putting a link to WDR in the article I'm working on. Is this link (https://www.plainblack.com/services/wdr) likely to change in the near term future?06:05
PedersenMJSome of the discussions on the forums seemed to indicate it might.06:05
@rizenshouldn't06:05
PedersenMJOkay. Just wanted to make sure. Thank you.06:05
@rizenat least not until april/may06:05
PedersenMJWell, that means this article should be visible without change for at least two months, so that's all I can ask for.06:08
@rizeni'm not saying it will change then, just that it's safe until then06:08
@rizenit will likely stay there for a year 06:09
PedersenMJWhich is even better. Heck, having a stable link for a week is sometimes a miracle on the web.06:10
@preactionok, so "fields" are URL parameters, and "variables" are template variables06:17
PedersenMJBTW, I'd like to thank whomever integrated the mce editor. It might seem silly to say this, but having it remember the size of the textbox from one edit to another is a very nice usability feature. I appreciate it.06:18
+perlDreamerfields are form parameters with hoverHelp06:19
+perlDreamerdoes anyone have a website that they'd like to sacrifice/donate for the testing of my new upgrade script?06:19
@preactionperlDreamer: so normal URL parameters are not documented? ones w/o hoverHelp? like as in a Search form?06:20
PedersenMJpd: How soon do you need it? I could make one tomorrow for it.06:21
+perlDreamerPedersenMJ: it needs to have an extensive collaboration system06:22
@preactionperlDreamer: is it committed? i can do it06:22
@preactionoh06:22
+perlDreamerIt's not committed yet.06:22
@preactioni can pull a dump of pb.com and we can test it on that06:22
+perlDreamerpreaction: hidden URL params would not be documented, only user interface level stuff06:22
+perlDreamerunless they were template variables required for a template Event form to work, for example06:23
@preactionso a search form, those would be06:23
@preactionand the hidden "recurId" field on the Event form would be06:23
+perlDreameronly because it would be a template variable required to build the form06:23
@preactionright06:23
+perlDreamercheck out the Post Help.  The edit interface is documented as a template, not as a form.06:24
@preactionbut like when documenting the search page, would i not say "these fields are required and this is what they do to the search results returned?"06:24
@preactioni can't do both?06:24
+perlDreamerif your form is templated, do them all06:24
@preactionwell, admittedly, the form is built using template vars06:24
+perlDreamerthere you go06:25
+perlDreamerthis is a template06:25
@preactionshould i just make a remark about "passing in the 'start=' parameter on the first visit to this page will set the "startDate" field06:25
+perlDreamernot unless the user can do it via a UI element06:26
+perlDreamerthe 7.3.9 changlog entry is reminiscent of the 6.x series06:27
+perlDreamerit's huge!06:27
@preactionno, the user themselves can't, the idea is that template designers should06:27
+perlDreamerrizen: I'm committing the Post rating work06:28
+perlDreamerbeware06:28
@rizencool06:28
@rizenpd: remember the form/profile stuff?06:28
* perlDreamer quavers06:29
+perlDreamerI wasn't going to mention that06:29
+perlDreamerhow many other volunteers have the distinction of completely messing up almost all aspects of WebGUI?06:30
@preactioni built an upgrade that trashed data?06:30
+perlDreamerno06:30
+perlDreamerwell, you're paid to do that06:30
+perlDreamer:)06:30
+perlDreamerI did it pro bono06:30
-!- PedersenMJ [n=Pedersen@mail.icelus.biz] has quit [Remote closed the connection]06:31
@preactioni'm sorry06:32
@rizeni think you're the only one pd06:32
-!- PedersenMJ [n=Pedersen@mail.icelus.biz] has joined #webgui06:32
@rizenbut that's just one of the many reasons we love you06:32
+perlDreamerI break stuff06:32
+perlDreamerI test stuff06:32
+perlDreamerI document stuff06:32
+perlDreamernot necessarily in that order06:32
@preactioni won't mention that everyone who's had their hand in the Calendar has caused a bug ;)06:32
@preactiondamn roy and his needs06:33
* preaction resolves to write better code so it's not so easy to break stuff06:33
@preactionlemme pastebin my "cleaner" help code06:34
+perlDreamerwell, having done the rating stuff, I'll have a look at Susan's reply stuff next06:34
PedersenMJSorry for the idle. Wish I could have helped pd.06:35
+perlDreamerI always appreciate the offer to help06:35
@preactionhttp://rafb.net/p/LWzTeM69.html <- comments?06:36
@preactioni'm not liking the push statements so much anymore06:37
+perlDreamerhere's the defining test06:37
+perlDreamerwhat shell do you use, preaction?06:37
@preactionbash06:37
+perlDreamerdo you have a valid WebGUI.conf sitting around?06:37
@preactionindeed06:37
+perlDreamerexport WEBGUI_CONFIG=/data/WebGUI/etc/myConf.conf06:37
+perlDreamercd /data/WebGUI/t06:38
+perlDreamerprove i18n/ Help/06:38
+perlDreamerif that passes, you're golden06:38
@preactionbut code format-wise, is it readable?06:38
+perlDreamerI'm so used to the big datastructure that the disambiguation is a little vague for me06:38
@preactioncould probably use more comments06:39
@preactiontests pass, should I set CODE_COP?06:41
+perlDreamerno06:42
+perlDreamerCODE_COP implements my code scanning tests for i18n and setHelp06:42
+perlDreamerit's a mini PPI06:42
+perlDreamervery slow06:42
+perlDreamerI should inline both scans in one and then write out data to be used for both tests06:42
@preactionat any rate, they passed06:43
+perlDreamerthen it's good Help06:43
+perlDreamerregardless of format06:43
-!- patspam [i=patspam@203-214-35-18.dyn.iinet.net.au] has joined #webgui06:44
+perlDreamerpreaction:  can you take a look at this for a sec?06:45
+perlDreamerhttp://rafb.net/p/LWzTeM69.html06:45
+perlDreameruh, no06:45
@preactioni remember that!06:45
+perlDreamer$self->get("dateSubmitted") eq $self->get("dateUpdated")06:45
@preactionlooks like clean code06:45
+perlDreamerthat one06:45
+perlDreamerI have tests that fail due to that all the time06:45
@preactionwhat Asset is that?06:45
+perlDreamerPost06:46
+perlDreamerThink about it this way instead06:46
@preactionthey're epoch times no?06:46
+perlDreamer$self->get("dateSubmitted") - $self->get("dateUpdated")06:46
+perlDreamerepoch times06:46
+perlDreameryes06:46
+perlDreamerIf that difference > 0, that does it mean?06:47
@preactionwhat's the failure reasing?06:47
@preactionit means that it's been updated since it was submitted06:47
@preactionOR that the last time it was "updated" by something is after it was submitted06:47
+perlDreamernot always06:47
@preactionwhy not?06:48
+perlDreamerwhat if it was submitted at 0.99999999999999999999999 seconds but updated at 1.00000000000000000001 seconds06:48
+perlDreamerepoch times are integer seconds06:48
@preactionso they can be equal06:48
+perlDreamerbut they can also be non-equal, and valid06:48
@preactionas long as dateUpdated is greater than or equal to dateSubmitted, it should be valid06:49
+perlDreamerwhat about editing posts?06:49
@preactionthat should update the dateUpdated field, not the dateSubmitted field (imho)06:50
@preactionbut isn't that already in assetData as "lastUpdated"?06:50
@preactionsame with dateSubmitted, isn't that in asset as "creationDate"?06:50
@preactioni mean, if these fields do what they sound like they do06:51
+perlDreamerneed to ask TMRFE06:51
+perlDreamerrizen: Thy presence is humbly requested06:51
* perlDreamer mouths the arcane lingo06:52
@preactionshh. it's 11:00p06:52
@rizenyes sirs06:52
@rizenis the question what's the difference between dateSubmitted and dateUpdated?06:52
+perlDreamerIn a Post, how are dateUpdated and dateSubmitted different from creationDate and lastUpdated?06:52
@rizenah06:52
@rizenlet's take dateUpdated and lastUpdated cuz it's eaiser06:53
@rizeneasier06:53
+perlDreamerk06:53
@rizendateUpdated is the time when the poster last did something to the post06:53
@rizenwhere lastUpdated is the time the post was last modified06:54
@rizenwhich could be by the system06:54
@rizenvia workflows06:54
@rizenor any other asset access06:54
+perlDreamerthey're when user level actions took place06:54
+perlDreamerI see06:54
@rizenyes06:54
+perlDreamerI went looking for another bug to fix06:55
@rizendateSubmitted is the same for creation06:55
+perlDreamerand I found one where replies are not being counted06:55
@rizenhowever, currently in the system, there is no difference between the two06:55
@rizendateSubmitted and creationDate06:55
@rizeni mean06:55
+perlDreamerI think it's due to this: return $self->get("dateSubmitted") eq $self->get("dateUpdated");06:55
+perlDreamerit reminds me of the failing tests due to truncated integer epoch times06:56
@rizenoooh, you should never rely on that06:56
@rizenor whoever write it06:56
@rizenwrote it06:56
@rizenwhich is probably me06:56
+perlDreamerI'm thinking a better way may be to count revisions?06:56
+perlDreamerbut they may be system level changes06:57
@rizencounting revisions isn't good either06:57
@rizenbecause revisions can be deleted from the system06:57
@rizenduring slough06:57
@rizenwhat is this check used for?06:57
+perlDreamerincrementing replies06:57
@rizenwhy does that have anything to do with replies?06:58
+perlDreamersub commit in Post06:58
+perlDreamernotifies subscribers06:58
+perlDreamerand karma check and increment replies if new06:58
gooeybotcheck and increment replies if new has neutral karma06:58
@rizeni'm not seeing that in commit()06:59
@rizenare you sure it's not another method?06:59
+perlDreamerline 142 of Asset/Post.pm06:59
@rizeni know where the commit method is06:59
@rizeni'm saying i don't see that check06:59
@rizenthere's no comparison of dateSubmitted to dateUpdated in Post::commit()07:00
+perlDreamerif ($self->isNew) -> quantifies the karma and incrementReplies07:00
+perlDreamerisNew does that check07:00
@rizenoh, isNew...07:00
@rizenwhy didn't you tell me that07:00
+perlDreamerI'm old07:00
PedersenMJg'night all. it's early, but I've been needing more sleep lately. See y'all manana!07:00
-!- PedersenMJ [n=Pedersen@mail.icelus.biz] has left #webgui []07:01
+perlDreameractually, we can test this directly.07:01
+perlDreamercan you do a query on PB.com?07:01
+perlDreamerthis thread has 1 reply, but no counted replies07:02
+perlDreamerhttp://www.plainblack.com/plain_black_support/wiki-weirdness-and-browser-crash#UIXGb0g5I7SEUcGESmaj6w07:02
@rizeni think a better check would be this07:02
+perlDreamerif the dateUpdated and dateSubmitted are different, then that's definitely the problem07:02
@rizen$self->get("status") ne "approved" && $self->getTagCount == 107:02
@rizenstrike that07:03
@rizenthis would be better07:03
@rizen$self->get("status") eq "pending" && $self->getTagCount == 107:03
+perlDreamerif we edit a post is the status set back to pending?07:04
@preactiona revision is added, so tagCount is greater than one07:04
@rizenmysql> select dateSubmitted,dateUpdated from Post where assetId='UIXGb0g5I7SEUcGESmaj6w';07:05
@rizen+---------------+-------------+07:05
@preactionbut i don't think that will work, isNew is only ever called after $self->SUPER::commit, so wouldn't "status" be approved?07:05
@rizen| dateSubmitted | dateUpdated |07:05
@rizen+---------------+-------------+07:05
@rizen|    1170202886 |  1170202887 | 07:05
@rizen+---------------+-------------+07:05
@rizen1 row in set (0.00 sec)07:05
+perlDreameryup07:05
+perlDreamerokay, I'll make the change07:05
@rizenthat revision is pending07:05
+perlDreamerit is?07:05
@rizenyes the revision07:05
gooeybotthe revision is, like, added, so tagCount is greater than one07:05
@rizennot the old one07:05
@rizenthe new revision is pending07:06
+perlDreamerI'll add the new conditional.  Do you also want an upgrade script to fix the replies?07:06
@rizenok then don't check whether it's pending or not07:07
@rizenjust check tag count07:07
@preactionam i lagging?07:07
@rizeni'm lagging in my reading07:07
+perlDreamerthere was a system level lag, preaction07:07
@preactionoh, k07:07
@rizenso my responses are lagging07:07
@rizenhmmm. let's think this over07:07
@rizenbefore you make this change07:08
+perlDreameroh07:08
@rizenmaybe my new solution isn't so hot either07:08
+perlDreameryou always want to be reasonable and careful07:08
+perlDreameryou'll never break code doing that07:08
@rizenthe problem with my new solution is if the post gets sent back for edits before posting07:08
@rizeni don't know if that creates a new version tag or reuses the old one07:09
@rizenit should reuse the old one07:09
@rizenbut i don't know for sure07:09
+perlDreamerI'll make a post and ask for a preview07:09
@rizenpreview won't do anything07:09
@rizenit doesn't actually submit the data07:09
@rizenon your local copy set up the cs to require approval07:10
@rizenthen reject your post07:11
@rizenand edit it07:11
@rizenthen approve it07:11
@rizenand see how many tags you have07:11
+perlDreamerI can't send emails from my box07:15
@rizenyou don't need to07:15
@rizencheck your inbox07:15
+perlDreamerit's empty07:15
@rizenfrom the admin console07:15
@rizendo you have spectre running?07:15
+perlDreamerup and running07:16
@rizenand did you commit your cs before making a post to it so that it knew to run the commit with approval workflow07:16
+perlDreamerno07:16
@preactionhow did it allow you to make a post to it?07:16
@rizencuz it already existed07:16
patspamWebGUI::Form::IntSlider.pm, line 146, calls WebGUI::Form::integer (lowercase) instead of WebGUI::Form::Integer (uppercase)07:16
@preactionoh07:16
@rizenhe's just making an edit07:16
patspamgiving me errors in my wobject07:17
@rizenpatspam: doesn't matter07:17
patspamCouldn't call method doAdd on asset for url: home/portal/p2 Root cause: Can't locate object method "new" via package "WebGUI::Form::integer" (perhaps you forgot to load "WebGUI::Form::integer"?) at /data/WebGUI/lib/WebGUI/Form/IntSlider.pm line 146.07:17
@rizenoh, wait, it does matter in that case07:17
patspamheh07:17
@rizenit only doesn't matter in WebGUI::Form07:17
@rizenor WebGUI::HTMLForm07:17
@rizenbut calling it directly it does07:17
@rizeni'll make the change in the core07:18
patspamta07:18
patspamCouldn't call method doAdd on asset for url: home/portal/p2 Root cause: Can't locate object method "new" via package "WebGUI::Form::integer" (perhaps you forgot to load "WebGUI::Form::integer"?) at /data/WebGUI/lib/WebGUI/Form/IntSlider.pm line 146.07:18
patspamoops07:18
patspamdouble-paste07:18
patspambtw I'm not calling WebGUI::Form::integer directly, I'm calling IntSlider07:18
@rizenyeah, but intslider is calling it directly07:19
@rizenrather than going through WebGUI::FOrm07:19
patspamyep :)07:19
@rizenfixed in core07:20
patspamawesome, ta07:23
@rizenwhat is ta?07:24
+perlDreamerta, like in ta-ta07:25
@preactionperlbot ta07:25
+perlDreamerhow do I check the number of tags?07:25
patspamha, no, it means thanks07:25
@preactionperlbot doesn't know07:25
@preaction$self->getTagCount07:25
@preactionor select count(*) from assetData where assetId=<your ID>;07:25
@rizenpreaction, second way won't work07:26
@rizenwithout distinct07:26
@preaction?func=manageRevisions, however many revisions you have?07:26
@rizenand you should always use api07:26
@preactionof course, i was just thinking he was just checking this raw to make sure that $self->getTagsCount will work07:26
+perlDreamer207:27
@preactionthat's not the right answer :(07:27
+perlDreamerwell, we can either change isNew or fix why the dateSubmitted and dateUpdated are different.07:28
@preactionwhat if there's only one approved version in the database, would that be as good isNew?07:29
@preactionperlDreamer: so basically most times i add something to i18n for an asset, i should add something to Help?07:30
+perlDreameryes07:31
@rizenhmmm...what other ways can we determine if it isNew07:31
+perlDreamerthe funny thing is it should work right07:31
+perlDreamerboth dateUpdated and dateSubmitted are updated with the same timestamp07:32
+perlDreamer$now=time();07:32
+perlDreamer$newSelf->update({threadId=>$newSelf->getId, dateSubmitted=>$now});07:32
+perlDreamer    $newSelf->update({07:32
+perlDreamer        isHidden => 1,07:32
+perlDreamer        dateUpdated=>$now,07:32
+perlDreamer        });07:32
@rizenhmm07:32
+perlDreameryeah07:32
@rizenwell then maybe we shuld just fix it, like you said07:33
@rizenand leave isNew alone07:33
@rizendo you know at what point it's getting corrupted?07:34
+perlDreamerno07:34
+perlDreamerI can only see 1 thing that might happen07:34
+perlDreamerbut it's bad07:34
+perlDreamerif the compiler optimized away $now and replaced it with time(), then you could get different calls in both places.07:34
+perlDreamerthere's no way to fix that07:34
+perlDreamerneither dateUpdated nor dateSubmitted are changed anywhere else that I can find07:35
@rizenholy crap07:35
@rizenthat's very bad07:35
+perlDreamerit can't be it07:35
@rizenhow else is it off07:36
+perlDreamerwhat else touches the Post table after addRevision?07:36
patspamhmm setting minimum to anything other than 0 on IntSlider seems to break it, same for HexSlider07:37
@rizenprocessPropertiesFromPost()07:37
@rizenpostProcess()07:37
@rizenpatspam, then report a bug07:38
patspamwill do07:38
@rizenpatspam, also, check out the use of the code in the image stuff07:38
@rizenthat's where they're used in webgui07:38
@rizenbut i think they start at 907:38
@rizen007:38
+perlDreamernope and nope07:39
@rizenperlDreamer: that is ignorant and racist07:40
+perlDreamerdateSubmitted and dateUpdated only appear to be written in addRevision07:40
+perlDreamer"nope" is racist?07:40
@rizenyup07:40
@rizenyou're clearly trying to keep my people down07:41
+perlDreamerback to the keyboard, codeSlave!07:41
@rizeni don't know man07:42
+perlDreamerLet me try something out.07:42
+perlDreamerI'll pastebin it07:42
patspamfixed it, the javascript fn $slider.setMinimum() at line 325 of Slider.pm doesn't like having its argument quoted07:46
patspamstrangely $slider.setMaximum() doesn't care07:46
+perlDreamerrizen: http://rafb.net/p/AmHuwp99.html07:50
@rizenisn't line 3 of modified broken07:52
+perlDreamerbetter hope not.  I didn't touch that part :)07:52
+perlDreamerIf dateUpdated and dateSubmitted are made on the same update, it should use the same time for both.07:53
@rizenit's different07:53
@rizenit's different between the two versions07:53
+perlDreamerlines 3 and 18 are the same07:54
@rizen            $newSelf->update({threadId=>$newSelf->getId, dateSubmitted=>$now}, dateUpdated=>$now);07:54
@rizen            $newSelf->update({threadId=>$newSelf->getId, dateSubmitted=>$now});07:54
@rizensee hhow they are different07:54
@rizeni have them flip flopped07:54
@rizenline 3 of modified07:54
@rizennot line 107:54
@rizenline 20 on pastebin07:54
@rizenvs line 507:55
@rizensorry, didn't even notice that pastebin had numbers07:55
+perlDreamerokay, I see it07:55
+perlDreamerthat can be fixed, but the concept should still be good07:55
@rizenrefine it even further07:55
@rizenget rid of all the updates07:55
@rizenjust create variables07:55
@rizenand do 1 update at the end07:56
@rizenor a hashref07:56
gooeybota hashref is, like, slick07:56
+perlDreamerokay07:56
@rizenyour idea will work if the optimization theory is correct07:57
+perlDreamerif it's correct, I'll be scared07:57
@rizenthe shitty part is there's no real way to test that theory07:57
+perlDreamerit takes time.  If we don't have any more funky reply posts then it's fixed07:57
@rizeni hate those kinds of fixes07:58
+perlDreamerI'll work on this.  Let's sit on it overnight and think about it.07:58
+perlDreamerTomorrow morning we'll be frustrated with doing support and much more likely to understand what's going on07:59
@preactioni don't get your logic, but i like what what you said07:59
+perlDreamerrizen: http://rafb.net/p/hkvfYO28.html08:07
@rizen2 changes08:08
@rizendateSubmitted only gets set if you're in the first if08:08
@rizensame with threadId08:08
@rizenwant me to rewrite or do you get me?08:09
+perlDreamerI get you08:09
+perlDreamerdateSubmitted should be dateUpdated, to preserve the original08:09
@rizendon't think you get me08:09
+perlDreameryou better rewrite08:10
@rizenrewriting08:10
@rizenhttp://rafb.net/p/WIQfV812.html08:13
@rizenmethinks that's better08:13
@rizendo you see?08:14
+perlDreameryes, but I was trying to keep the reads of $now to be very close08:15
@rizenor did i screw up?08:15
@rizenwe're talking ms here, cuz the update is what takes a long time08:15
@rizeni suppose get parent could take a long time08:15
@rizenlet me reorder08:16
@rizenhttp://rafb.net/p/SgVx2N67.html08:17
@rizencan't get much closer08:17
+perlDreamerno08:17
@rizenthe only other way to fix this08:18
@rizenis to set dateSubmitted08:18
@rizenupdate08:18
@rizenthen read the dateSubmitted into dateUpdated08:18
@rizenand update again08:18
@rizenwhich is much slower08:18
+perlDreamerbut all of this depends on my crazy idea being right08:18
+perlDreamerand in that case slower doesn't matter08:18
+perlDreamerit used to call update 3 times08:18
@rizentrue08:18
+perlDreamerwe could subtract dateSubmitted from dateUpdated, take the abs and then make sure it's less than or equal to 108:21
+perlDreamerabs(dateSubmitted-dateUpdated) <= 108:21
@preactionwhat if 2 seconds pass? or for some reason 3?08:23
@preactionsystem lag perhaps?08:23
+perlDreameryou're right, that's just a bandaid08:23
+perlDreamerit should be the same time08:23
+perlDreamerthis whole solution is predicated on the compiler optimizing $now back into time()08:24
@preactioni don't see why it would08:24
+perlDreamerwell, we know that dateSubmitted != dateUpdated in the db08:24
@preactionbut then again, perl does strange things08:24
+perlDreamerit's just a question of how it got that way08:24
+perlDreamerAsset::Post::addRevision is the only place in the codebase where those variables are set08:25
+perlDreamerI grep'ed the whole thing to check08:25
+perlDreamerpreaction: I'm getting ready to crash.  Any last second doc questions?08:27
@preactioninstead of setting them both to $now, set one to $now and then the other to that one? durno08:27
@preactionum... not that i know of08:28
+perlDreamerokay, I'm outta here08:30
-!- perlDreamer [n=colink@pool-71-117-209-62.ptldor.fios.verizon.net] has quit [""""]08:30
-!- rizen [n=rizen@71-86-227-90.static.mdsn.wi.charter.com] has quit []08:32
-!- crythias [n=Gerald@c-68-51-234-189.hsd1.fl.comcast.net] has quit [Read error: 110 (Connection timed out)]08:55
-!- patspam [i=patspam@203-214-35-18.dyn.iinet.net.au] has quit []09:27
-!- crythias [n=Gerald@c-68-51-234-189.hsd1.fl.comcast.net] has joined #webgui09:35
-!- mode/#webgui [+v crythias] by ChanServ09:35
-!- Radix-wrk [n=Jesse@203.161.68.67] has quit ["Leaving"]09:53
-!- crythias [n=Gerald@c-68-51-234-189.hsd1.fl.comcast.net] has quit [Read error: 110 (Connection timed out)]09:56
-!- MrHairgrease [n=martin@x032124.its-s.tudelft.nl] has joined #webgui11:00
-!- mode/#webgui [+v MrHairgrease] by ChanServ11:00
-!- MrHairgrease [n=martin@x032124.its-s.tudelft.nl] has left #webgui []11:00
--- Log closed Thu Feb 01 11:38:44 2007
--- Log opened Thu Feb 01 11:43:54 2007
-!- xdanger [i=xdanger@217.112.244.70] has joined #webgui11:43
-!- Irssi: #webgui: Total of 11 nicks [3 ops, 0 halfops, 0 voices, 8 normal]11:43
-!- Irssi: Join to #webgui was synced in 3 secs11:43
-!- pjesi_ [n=pjesi@client-86-27-130-79.winn.adsl.virgin.net] has joined #webgui15:37
-!- bopbop [n=kristi@68-114-216-78.dhcp.mdsn.wi.charter.com] has joined #webgui15:59
-!- Jamie [n=chatzill@207-118-213-46.dyn.centurytel.net] has joined #webgui16:03
-!- bopbop_ [n=kristi@68-114-216-78.dhcp.mdsn.wi.charter.com] has joined #webgui16:17
-!- bopbop [n=kristi@68-114-216-78.dhcp.mdsn.wi.charter.com] has quit [Read error: 145 (Connection timed out)]16:19
-!- Jamie [n=chatzill@207-118-213-46.dyn.centurytel.net] has quit ["Chatzilla 0.9.73 [Firefox 2.0.0.1/2006120418]"]16:36
-!- Meatbop [n=chatzill@24-180-168-135.dhcp.fdul.wi.charter.com] has joined #webgui16:37
-!- MrHairgrease [n=martin@x032124.its-s.tudelft.nl] has joined #webgui16:41
-!- mode/#webgui [+v MrHairgrease] by ChanServ16:41
@khennwow I didn't get dropped?16:52
@khennamazing16:53
@khennanyone around this morning?16:53
-!- khenn is now known as khenn_afk16:54
@preactionmorning17:11
pjesi_afternoon17:11
@preactionLIES!17:11
Meatbopmornin17:11
@preactionkhenn was just asking what's new17:11
xdangerafternoon17:12
@preactionnames17:12
@preactioner...17:12
xdangerpreaction: was it you who wrote the new calendar?17:12
@preactionyes'm17:12
@preactioni accept full responsibility and will commit seppuku immediately17:12
* preaction SEPPUKU!17:12
xdangerIs there a way to list events for more than a month?17:12
xdangerseppuku?-)17:13
@preactionno, it was decided that the reason for that was poor navigation17:13
xdangersounds like something for anime...17:13
@preaction(ninja's ritual suicide when they fail)17:13
xdangerI have a client with a training schedule... they have like 1-3 a month.. so the old calendar was great...17:14
xdangerhttp://www.datapartner.fi/en/news--events/events/workshops17:14
@preactionadd an RFE, the code for it shouldn't be exceedingly hard17:14
xdangerwe'll.. I was going to upgrade today...17:15
xdangerer...17:15
xdangerI'll have a look at the code, and if I have any idea of how to do it, I'll just make a patch and send that to you ;)17:15
@preactionhow good are you at SQLReports?17:15
@preactionxdanger: when you look at the code, get the latest SVN, i did a lot of code formatting updates to make it easier to read17:16
@khenn_afkyou can template 3 months at a time using HTML::Template::Expr now17:16
@preactionkhenn_afk: how?17:16
@khenn_afkI'm still afk17:16
@khenn_afkset a var17:16
@khenn_afkand do a % 3 on it17:17
@preaction3 months? the Calendar does not give three months, the EventsCalendar did, the new one does not17:17
@khenn_afkoh I see17:17
@khenn_afkyou only get 1 month at a time17:17
@khenn_afknm17:17
@khenn_afkback to afk status17:17
@preactionremember, future consideration?17:17
@preactionk17:17
@preactionxdanger: the best way to do it is to start sending an explicit "endDate" parameter to viewMonth/viewWeek/viewDay, and those are called from the main "view" method17:19
@preactionxdanger: so the "view" method will have to get "endDate" from the url params, and/or from a configuration value17:19
@preactioni anticipate a good 3-4 hours of hacking to put that feature in17:20
@preactionbut i've got bugs to fix and a support bugfix to make on the Export HTML feature17:20
@preactioni'll be working until 8:00p CT, so if you have questions about the calendar just ask17:21
@preactionon a different topic, this website is absolutely beautiful17:21
ckotillink?17:22
Meatbopwhich site are you checking out ?17:22
ckotilheh. im working in a version tag that has ~ 5 pages of changes. i cant wait to commit it sometime today. one of our customers recently underwent a name change.17:23
pjesi_xdanger: how do you provide the different languages?17:24
pjesi_does each tree use different i18n?17:25
@snapcountDoug: I'm going to help you with Calendar stuff if you want as soon as I'm done with EMS17:26
@snapcountI think it's the biggest hurdle left on the bug list aside from EMS17:26
@snapcounterr17:26
@snapcountpreaction: 17:27
@snapcountsorry17:27
xdangerpjesi_: no, there are just different branches for each language..17:27
@snapcountI want an empty list, it would be so freaking awesome to clear the bug list17:27
bopbop_CB++17:27
xdangermust go to late lunch now -->17:27
@snapcountthat too17:27
@snapcountlunch?  you live in Europe I guess?17:28
pjesi_xdanger: what about the template labels?17:28
-!- Jamie [n=chatzill@207-118-213-46.dyn.centurytel.net] has joined #webgui17:33
@preactionsnapcount: thanks for the offer, there are some large ones that will be problematic, the main ones being an i18n audit, and the Help files. I'm going to submit what I have now, and then update the status of the existing bugs17:35
@preactionI have an assignment from DoS to fix the Export HTML thingy, and then I'm back on Calendar bugs17:36
-!- mode/#webgui [+o Jamie] by snapcount17:36
-!- mode/#webgui [+o bopbop_] by snapcount17:36
@preactionso i'm here, but i'm away, busy, and will get to your requests for my presence later17:36
-!- mode/#webgui [+o Meatbop] by snapcount17:36
@preactionto anyone who wants to work on calendar bugs: i've wrote some pretty detailed descriptions on what exactly needs to be done to fix them17:48
@preactioni'm moving to the DoS assignment and i'll probably be back around 1p17:49
@Meatbopgod speed17:49
-!- khenn_afk is now known as khenn17:54
-!- rizen [n=rizen@71-86-227-90.static.mdsn.wi.charter.com] has joined #webgui17:58
-!- mode/#webgui [+o rizen] by ChanServ17:58
@rizensorry guys, been on support calls all morning17:58
@rizenstill am17:59
@preactionwhen i'm exporting HTML for an asset, do I really need to open a new session for each asset I export? can't I just make one new session and point the output to the correct file each time?18:04
* preaction got stuck fixing Drake's code, but this is paid-for work18:05
@rizenyes you need a new one18:09
@preactionk18:10
@rizenbecause otherwise certain flags get set18:10
-!- greghacke [n=greghack@c-24-23-66-147.hsd1.mi.comcast.net] has joined #webgui18:17
-!- perlDreamer [n=ckuskie@nat048.mxim.com] has joined #webgui18:29
-!- mode/#webgui [+v perlDreamer] by ChanServ18:29
+perlDreamermorning guys18:36
@preactionmorning18:36
+perlDreamerhow's the calendar hacking?18:37
@preactionstalled for a priority bugfix on the AssetExportHtml feature18:37
@preactionbut this time, i think i can make it work for 99.9% of cases18:37
+perlDreamercool18:37
+perlDreamerany bug that gets fixed18:37
+perlDreamerjust write a test for it so we'll know in advance in the future if it breaks18:38
@preactioni submitted my barely updated Calendar docs, and described in detail the things that need to be fixed on the Calendar in the appropriate bug threads18:38
+perlDreamerI was going to take a hack at the little Slider bug18:38
+perlDreamerand then hoping to do some more $now/Post reply stuff18:38
@preactioni'll try. i believe i have to fix the test roy wrote for it, since i changed what the sub does18:38
@preactionyou didn't get that last night? you were close, no?18:38
+perlDreamerclose, but it still feels wrong18:39
+perlDreamerPerl should not do that18:39
@preactioni don't understand it myself, do the #perl people have anything to say on the issue?18:39
+perlDreamerI haven't asked over there.18:39
@preactionthey know quite a bit, some internals hackers in there18:40
-!- MrHairgrease [n=martin@x032124.its-s.tudelft.nl] has left #webgui []18:47
@snapcountperlDreamer: how does the linking between a template and the help icon work18:49
+perlDreamerThere's no direct linking18:50
@snapcountI want the help for the template they are viewing to pop up when they click the icon, not the generic help for all templates18:50
+perlDreameroh18:50
+perlDreamerI don't think there's anyway to do that18:50
+perlDreamerthat would be good though!18:50
+perlDreamerreal good18:50
@preactionperhaps something in the right-side list of stuff "Help for this template"18:50
+perlDreamerIn fact, help topic awareness is one of the requirements for the template variable editor18:50
@snapcountok... put it on wish list then... I thought I was doing something wrong18:50
@snapcount=)18:51
+perlDreamerIt's RFE-able18:51
@snapcountI like that term18:51
@snapcountyou should trademark it18:51
@snapcountpdc?18:51
@snapcountgooeybot: what is pDC?18:51
gooeyboti don't know, snapcount18:51
@snapcountdidn't you teach him that?18:51
@preactionsnapcount: quick, what do you expect to happen when you make a url "index.html/" when you export an asset with that url?18:51
@snapcountoh well18:51
+perlDreamersnapcount: that was perlbot18:52
@preactionperlbot pdc18:52
+perlDreamerperlbot: what is pDC?18:52
perlbotPerl Dreamer's Association of associated thoughts and references that are usually puzzling and always genius for the solving of complex problems in the language of thy camel our lord as spoken by WebGUI the savior of all things cool18:52
perlbotI already have an entry for what18:52
@snapcountcreate a file called index.html in the starting export directory18:52
@preactiongooeybot: pdc is Perl Dreamer's Association of associated thoughts and references that are usually puzzling and always genius for the solving of complex problems in the language of thy camel our lord as spoken by WebGUI the savior of all things cool18:52
gooeybotOK, preaction.18:52
@preactionpdc?18:52
gooeybotpdc is Perl Dreamer's Association of associated thoughts and references that are usually puzzling and always genius for the solving of complex problems in the language of thy camel our lord as spoken by WebGUI the savior of all things cool18:52
@preactionsnapcount: so trailing /'s should just be ignored18:53
+perlDreamergooeybot: RFE-able is That idea is worthy of an RFE.  The term is trademarked by perlDreamer Consulting.18:53
gooeybotOK, perlDreamer.18:53
@snapcountsure... I don't even think WebGUI will keep it anyways18:53
+perlDreameroy, I'm a sophist18:53
@preactionk, sounds good18:53
@snapcountif you set a url to home/18:53
@snapcountit will change it to home18:53
@snapcountpretty sure anyway18:53
@snapcountI was probably over zealous in my test cases =P18:54
@preactioni've narrowed your _translate sub to two cases: one with . and one without ., i'm updating the tests and once they pass i'll fix the ordering of the export18:54
@snapcountsweet18:54
@snapcountnice work man18:54
+perlDreamerum, AssetExportHtml is broken18:54
@snapcountyeah18:54
@snapcountI broke it18:54
@preactionit's been broken for a long-ass time18:54
@snapcountbut it was broke before I broke it too18:54
+perlDreamerFailed to require package 'WebGUI::Session'. Reason: 'Global symbol "$assetSession" requires explicit package name at /data/WebGUI/lib//WebGUI/AssetExportHtml.pm line 148.18:54
+perlDreamerGlobal symbol "$assetSession" requires explicit package name at /data/WebGUI/lib//WebGUI/AssetExportHtml.pm line 149.18:54
@snapcountI just broke it different18:54
+perlDreamernot that kind of broke :)18:54
@snapcountthat wasn't me18:55
+perlDreamerIf I patch that, (needing my) will I break anyone's commit?18:55
@snapcountsomeone else gets credit for that18:55
@snapcountpreaction is the one working on it18:55
@preactionthat was me, that's fixed18:56
@preactionlet me update SVN now18:56
+perlDreamerthanks, man18:56
@snapcountperlDreamer: the title of my new help page is not showing up in the help index... what makes that work?18:57
+perlDreamerthat's usually a broken i18n link18:57
+perlDreamercd /data/WebGUI/t; prove Help/ i18n/18:57
@snapcountI need the perlDreamer rosetta stone19:00
@snapcountlabel: Asset_EventManagementSystem->errorLoop inside Asset_EventManagementSystem->ems checkout template->variables'19:00
@snapcountwhat does that mean?19:00
+perlDreamerthat means that it wasn't able to do a lookup on the errorLoop variable inside the Asset_EMS ems checkout template19:00
+perlDreamerthat error message could definitely use some help19:02
@snapcounta lookup?19:02
@snapcounta lookup of what and where is it looking?19:02
@snapcounterrorLoop inside i18n?19:02
+perlDreamerit is trying to do this: $i18n->get('errorLoop', 'Asset_EMS');19:02
@snapcountok19:02
@snapcountty19:02
@snapcountso there has to be an i18n entry for every 'name' key inside the help file?19:05
@snapcountI thought that was simply the name of the template variable... so why would that be i18n?19:05
+perlDreamerIt's a shortcut19:05
@snapcountit's the same regardless of what language19:05
+perlDreamerThe long form is name => 'myName', description => 'description i18n entry'19:06
+perlDreamerif, however, the i18n key myName isn't already being used, then you can omit the description and the Help system will look up the "descriptive i18n entry" using myName as the key.19:07
@snapcountso the 'name' in the help file is the key to the description of that variable inside the i18n file19:08
+perlDreamerit can be19:08
+perlDreamerthat's the shortcut method19:08
@snapcountand if you specify a 'description' key in the help file, 'name' is ignored, and 'description' is used for the lookup?19:09
+perlDreameryes19:09
+perlDreamerthere is also 1 other key that you can set19:09
+perlDreamerrequired => 119:09
@snapcountso, if you specify 'description' name does absolutely nothing then19:09
+perlDreamerwell, it is used for the "name" of the template variable.  But that's all19:09
@snapcountmeaning the name thats displayed to the user19:10
+perlDreameryes19:10
@snapcountno translation19:10
+perlDreamerright19:10
@snapcountok... I think I got it then19:10
@snapcountthanks19:10
xdangerpjesi_: I use If macro heavyly on the multi-language sites...19:12
xdangeror create a different site if it gets to complicated... like this: http://en.luovapaja.fi/ vs. http://luovapaja.fi/19:14
@snapcountperlDreamer: the tests are passing but I see nothing in the index19:16
+perlDreamerInside the EMS topic or in the index?19:16
@snapcountthe index list of all help topics19:16
@snapcountdo I need to set the CODE_COP variable?19:17
+perlDreamerno19:17
@snapcountk19:17
+perlDreamerCODE_COP does code level i18n and setHelp scanning19:17
+perlDreamerlook at the HTML source for the page and look to see if there's an empty href where the entry should be19:17
+perlDreameror do a commit and I'll have a look at it19:17
+perlDreameror both19:17
@snapcountdoes there have to be an i18n key that matches with the main key to the entry in the help file?19:18
+perlDreamerlike a title and a body entry in the help file?  yes19:18
+perlDreamerotherwise there's nothing to link to19:18
@snapcountI have title and body19:18
@snapcountI was asking about the one above it19:18
@snapcountthat contains everything for the entry19:18
@snapcountok... I'll have another quick look and commit to see if you see my snafu19:19
+perlDreamerokay19:19
@snapcountI have to help out with support in like 60 seconds =)19:19
@snapcountdoh!19:20
@snapcountfound it... I had the tile set to Checkout Template19:20
@snapcountso it was there... just not where I thought it should be19:20
+perlDreamerHmmm... maybe i should add a duplicate check to the Help test19:20
@snapcountit's now EMS Checkout Template19:20
@snapcountuser error... my bad19:20
+perlDreamerIt would show up correctly in the chapter19:20
@snapcountthx19:20
@snapcounteverything seems right but the formatting is screwy for the tmpl vars in the loop19:21
@snapcountI'll check it in can you take a look?19:22
+perlDreamersure19:22
@snapcountty19:22
@snapcountok it's checked in19:31
@snapcountthanks perlDreamer 19:31
+perlDreamernp, man.19:31
@preactionwhat are Whitespace.t tests and is failure okay?19:40
@preactioni decided to run the tests before i committed this change (like a good boy), and Whitespace.t failed19:41
-!- Hinrik [n=hinrik@dsl-228-236.hive.is] has quit [Read error: 110 (Connection timed out)]19:42
@preactionpinging perlDreamer 19:43
@preactionSYN?19:44
+perlDreamerbrb19:46
@preactionnevermind, figured it out19:48
ckotilIf i wanted to hack up the asset manager a little bit; by adding a new colum <meta data> . Where would i look to find the javascript code that creates the html for the asset manager?19:48
@preactionthe got: 'XX' is the line number of the error19:48
@preactionckotil: why?19:48
+perlDreamerckotil: Asset.pm19:48
@preactionthis doesn't sound like a good idea :(19:48
ckotilheh.19:48
+perlDreamerpreaction, I already committed a fix for the whitespace19:48
@preactionoh, crap19:48
@preactionok19:48
ckotilwell, im just tossing around a couple ideas in my head and that was one of them.19:48
@preactionwell, i'll merge then19:49
ckotilwe're going to attempt to  use webgui as a document mangager19:49
ckotilone of the views we've been thinking of is to use the asset manager. but want to be able to see meta data, or a description of the file.19:49
ckotils/views/interfaces19:50
ckotilor i might create a new folder asset template19:50
@preactionckotil: how about instead of adding a different column for the data, add another row that can be expanded/collapsed with a javascript image button19:51
greghackeI would still like to be able to use the Metadata: Summary from assets as a tmpl_var19:51
ckotilanother row?19:51
+perlDreamerhow about we template that sucker?19:51
ckotileach asset gets has 1 row19:51
ckotiltemplate the asset manager!19:51
@preactionperlDreamer: might be a more permanent solution19:52
+perlDreamergreghacke: all the metadata is available in every asset template19:52
ckotilgreghacke: is metadata summary differnet from metadata?19:52
@preactionckotil: basically this: +  []  1  <name>   <whatever>    <more columns>19:52
ckotilyeah just tmpl_var <meta_data_name>19:52
+perlDreamer<tmpl_var meta_data_name>19:53
ckotilah, so hit the + and a new row pops up?19:53
@preactionckotil: clicking the + will show the row beneath is, which has a colspan over them all and has "description: <blah> metadata: <blah>"19:53
ckotilnice.19:53
ckotilyeah i like that.19:53
ckotilthx19:53
greghackeso... <tmpl_var summary> for the summary section of the summary area of a page or article.  my intent is to actually query some of this data in an sql report19:54
+perlDreamersnapcount: the formatting looks okay to me.  What are you seeing?20:01
@snapcountlooking at it again I see what it is20:03
@snapcountisError is bolded20:03
@snapcountand wraps to the second line20:03
@snapcountso it kind of runs together with the loop variable20:03
+perlDreamerwhich browser are you using?20:05
ckotilpreaction: while it would be real nice to write some new javascript into asset.pm so that we can use the asset manager as the interface for our file repository/DMS , i think im gonna just create a new folder asset template.20:05
ckotilIm looking in Help: Folder Template, and im not seeing anything about metadata.20:06
ckotilanyone know if metadata is part of tmpl_var for folder asseet?20:06
+perlDreamermetadata is automatically added to all asset templates20:06
ckotilperfect. thanks20:06
+perlDreamerit's only recently been documented.20:06
@snapcountperlDreamer: FF20:08
@snapcountit's not a big deal, more of an aesthetic thing20:08
+perlDreamerit looks okay to me in Mozilla 1.4 (urk).  Maybe we could have Meatbop look at it?20:08
greghackewhat broswer you all need?20:09
+perlDreamerit's uncommitted docs20:09
greghackeah, understand.20:09
@Meatboptrying to catch up on what I'm being asked to look at...20:09
@Meatbopbeen on something else, can I get a sum-up?20:10
+perlDreamersnapcount's seeing weird things with the template variable displays in the Help20:10
+perlDreamerbut the code's not released yet, so we can't just point you at a page20:10
@Meatbopscreenshot would be enough for the time being20:11
+perlDreamerit uses <DL>'s20:11
+perlDreamerckotil: I lied20:25
+perlDreamerit isn't documented20:25
+perlDreamerI'll fix that right now20:25
ckotilbetween you and me, Its OK.20:26
@snapcountMeatbop: I sent you a screen shot20:28
@snapcountvia email20:28
@Meatbopk20:29
@Meatbopso i take it that error is supposed to be at the same indent as errorLoop?20:30
+perlDreamerno20:30
+perlDreamerI don't think so20:30
+perlDreamererror is in the loop20:31
+perlDreamerso it should be indented20:31
+perlDreamerbut I haven't seen the snapshot20:33
@Meatbopbasically the indented portion could use a line break above it.20:34
@Meatbopit looks just a little fugly butting up against the line right above it20:34
+perlDreamerwhat's the best way to do unfuglify it?20:35
@Meatbopheh20:35
@Meatbopsnap, can you sent me the html so I can actually see what it's doing?20:35
@Meatbopi'll be better able to make a suggestion20:35
+perlDreamerdone20:36
@Meatbopwell that was quick :)20:37
+perlDreamerit's my bad templating20:38
@snapcountthis proxy bug is ticking me off20:38
@snapcountI'm going to go eat something before I knaw the top of my monitor off20:39
@snapcounthalf eaten company owned mac book pro does not a happy rizen make20:39
+perlDreamerwell, it _is_ an Apple20:39
@snapcountlol20:39
@rizenwho's eating your laptop?20:40
+perlDreamerproxy bugs20:40
@rizenah20:40
+perlDreamerhave you had any epiphanies about the post reply dateUpdated/dateSubmitted bug?20:40
@rizennop20:42
@rizennope20:42
@rizensnapcount, start up spectre on your box20:42
@rizendo a ps20:42
+perlDreamerpreaction suggested that we hop over to #perl and ask about the compiler optimization20:42
@rizenoh crap20:42
@rizenyouc an't run spectre on your box can you?20:43
+perlDreamerrizen: snapcount is away20:43
+perlDreamereating20:43
@rizenbah20:43
@MeatbopI think just a small css tweak will make that look good perlDreamer. Going to send it back to you with the change.20:46
+perlDreamerthanks20:46
+perlDreamerI'll be AFK for a while, but I'll get the tweak committed today20:47
greghackewho is Meatbop?20:47
@preactionsteve swanson20:48
greghackeoh, hellow steve20:48
greghackedang, i cannot spell today.20:48
@Meatbops'all right20:48
@Meatbopi can't spell most days20:48
greghackedealing with data normalization.  sucks.  working a style sheet at the same time20:48
@Meatbopsent the html pd. going to be afk for a little bit20:52
@khennwho wrote the weather data asset?20:55
@khennanyone remember?20:55
@preactioni thought you said you did?20:55
@khennnope20:55
@preactionthen i don't know20:55
@khennmust have been Matthew Wilson20:55
@preactionbut hum a few bars and i'll fake it20:55
@preactionbbl, eating21:02
-!- khenn [n=fdillon@66-190-54-175.dhcp.mdsn.wi.charter.com] has quit [Nick collision from services.]21:06
-!- khenn [n=fdillon@66-190-54-175.dhcp.mdsn.wi.charter.com] has joined #WebGUI21:07
-!- mode/#webgui [+o khenn] by ChanServ21:07
@snapcountI'm back21:14
@snapcountwhat did you need rizen 21:14
@snapcount?21:14
@rizenare you capable of running spectre directly on your mac?21:15
-!- greghacke [n=greghack@c-24-23-66-147.hsd1.mi.comcast.net] has quit [Read error: 104 (Connection reset by peer)]21:17
@snapcountno21:18
@snapcountjust in a vm21:18
@rizensnap are you running spectre on your vm now?21:31
@snapcountyes21:45
@snapcountrizen: do you need me to test something?21:45
@khennanyone know of a Perl module to convert HTML encodings like &nbsp; to ASCII encoding &#160; ?21:50
@preactionare you going to run it willy-nilly? in most cases the named version is easier to understand21:51
@khennit's for RSS21:51
@preactionHTML::Entities21:51
@preactionmaybe?21:51
@khennRSS 2.0 doesn't seem to always support &xxx;21:52
@khennbut it does always support the ASCII value21:52
@preactionbecause it's xml instead of html21:52
@khennright21:52
@khennso I want to convert them all21:52
@preactionkhenn: HTML::Entities, decode the vars, and then use encode_entities_numeric21:55
@khennyep21:56
@khennI think that may work21:56
@khenngonna test it out21:56
@khennthanks21:56
@preactionthe thing is, it's using the hex, which is in HTML but is it in XML?21:56
@khennis it hex?21:57
@preactionthe docs say so21:57
@preactionit uses the &#x<hex number>21:57
@khennyeah21:57
@khennI see it now21:57
@khennhmm21:57
@khennI'm not sure if that will work or not21:57
-!- wgGuest12 [n=wgGuest1@86.107.186.248] has joined #webgui22:00
@preactionthere are a couple instances of the hex entity being used in the XML recommendation22:00
@khennyeah I think it will work22:00
@khennI'm gonna test it22:00
-!- wgGuest12 [n=wgGuest1@86.107.186.248] has quit [Client Quit]22:03
@snapcounthmm22:05
-!- greghacke [n=greghack@c-24-23-66-147.hsd1.mi.comcast.net] has joined #webgui22:06
@khennheh22:08
@khennwell22:08
@khennthat didn't work =p22:08
ckotilAnyone know the tmpl_var to display the asset type?22:38
@preactiontmpl_var className might work22:39
+perlDreamerBut it will be like WebGUI::Asset:: ...22:39
+perlDreamerNot just Snippet, Folder, etc.22:39
* ckotil hrms22:39
ckotilyah.22:39
+perlDreameruse javascript to split it and return the last value?22:40
ckotilyeah, gonna have to.22:40
+perlDreamerwrite a macro to trim it?22:40
ckotilill go the js route22:40
+perlDreamerthat's the cool thing about you ckotil.22:40
+perlDreameryou're like a bulldozer22:40
+perlDreameryou just get it done.22:40
ckotilheh. its my job22:41
ckotileither that or get fired22:41
ckotiltho im starting to get some pull around here22:41
@khenndoes anyone know if it's possible to call a function from within a regular expression?22:41
greghackemy job right now is to mornalize 120000 records of inventory.  wanna trade?22:41
+perlDreamers/(stuff)/function(stuff)/e;22:41
@khennah22:41
@khenne22:41
@khennthanks22:41
ckotilgreghacke: can you write a script for it?22:42
greghackei wish.  each item was hand entered into a flat file.  about 60% are duplicats of already existing items but there was no normalization in the data entry so one product may be entered differently for each and every item in the inventory22:43
greghackei scripted the first 6 passes - now i'm going through by hand22:43
* ckotil shudders22:43
+perlDreamerthanks for the CSS Meatbop.  It looks better22:47
+perlDreamerI closed the IntSlider bug23:02
+perlDreameradded Meatbop's CSS23:02
@rizeni'm working on the spectre needs to be restarted all the time bug23:03
+perlDreamerthat's your queueing system changes?23:03
@rizenyup23:03
+perlDreamerI feel like we're keeping pace with bugs, but that's all23:03
@rizenyup23:03
@rizenhowever, most of the pb staff has been on support all day23:03
@rizenincluding me23:04
@rizeni've only had 30 minutes to work on bugs so far today23:04
+perlDreamerpreaction: any suggestions for etiquette over on #perl?23:04
+perlDreamerrizen: I'm going to hop over to #perl and ask about our optimization/compiler bug23:04
@rizencool23:04
@rizenthis ought to be interesting23:04
@preactionjust ask, don't ask to ask, give as much info as possible, the best question i can think of to ask is this:23:04
@preactionsomething...23:05
@preactionsomething like: if I have '$now = time(); $a = $now;' and later '$b = $now', is there any reason why $a != $b?23:06
@preactionotherwise, as long as you avoid the big ones: asking to ask and xy problems, they're generally friendly23:07
@preactionperlbot xy problem23:07
perlbotThey ask how to do X, but that's because they really want to do Y but think X will get them there and most of the time they are WRONG23:07
+perlDreamerall right.  I'll give it a shot.23:07
+perlDreamerThat was well laid out, I'm just going to copy and paste you over there.23:08
@preactioni'm there too, so i can keep half-an-eye on the situation23:09
@preactionmerlyn's there, so i would expect brevity over politeness, but he is a Perl God23:09
@preaction(Randall Schwartz himself)23:09
+perlDreamerI know Randall23:10
@preactionthen i'll stfu23:10
@preactionanyway, test-case how?23:10
+perlDreamerhmmm23:14
+perlDreamernot exactly going swimmingly23:14
@preactionautomated asset insertion using the API? force it into causing a problem?23:15
@preactionif you can't do it within, say, 5000 times, maybe it's not there?23:15
+perlDreamerit _is_ there.  We just don't understand how it got to be there.23:16
+perlDreamerhttp://www.plainblack.com/plain_black_support/wiki-weirdness-and-browser-crash#UIXGb0g5I7SEUcGESmaj6w23:17
+perlDreamerJT did a query and found dateUpdated and dateSubmitted to be different23:18
+perlDreamerthat'd be in the IRC log from last night23:18
@preactioneh, eventually i usually ask "anyone else know how a variable can be two different values after being initialized with time()"23:18
@preactionotherwise, stress test, this is happening fairly often it should be easy to reproduce23:19
@preactionmaybe instead of using $now that second time, use $properties->{dateSubmitted} or something23:19
-!- perlDreamer [n=ckuskie@nat048.mxim.com] has quit [""""]23:21
-!- perlDreamer [n=ckuskie@nat048.mxim.com] has joined #webgui23:21
-!- mode/#webgui [+v perlDreamer] by ChanServ23:21
+perlDreamerI'll try the stress test route23:24
ckotildoh. i didnt realize className outputs the contaner asset23:26
+perlDreameryou want the class of something in the folder loop?23:27
ckotilyes23:27
+perlDreamerIs an icon okay?23:28
ckotili have the icon23:28
ckotiljust need the name now ;]23:28
+perlDreamerHave you tried 'type'?23:28
ckotili havent.23:29
ckotilthanks pd23:29
+perlDreamernp23:29
+perlDreamerbtw, that will be the short name, not the class name23:30
-!- Jamie [n=chatzill@207-118-213-46.dyn.centurytel.net] has quit ["Chatzilla 0.9.73 [Firefox 2.0.0.1/2006120418]"]23:30
ckotilyah. that way i dont have to strip it23:30
ckotilthx for clarifying23:30
+perlDreamerI'll add that to the docs.23:31
+perlDreamerI seem to be saying that more and more as I hang out in here.23:31
@preactionthat's why we like you!23:32
@preaction<3 perlDreamer23:32
-!- Hinrik [n=hinrik@dsl-228-236.hive.is] has joined #webgui23:32
+perlDreamerwhat is "<3" ?23:32
ckotila heart23:32
@preactionperlbot <323:32
perlbotbullshit, I'm way more than 323:32
@snapcountomg23:32
+perlDreamergooeybot < 223:33
gooeybotperlDreamer: what?23:33
+perlDreamercatch a clue, gb23:33
+perlDreamergooeybot <323:33
gooeybotperlDreamer: sorry...23:33
* preaction wacks gooeybot with a cluestick23:34
-!- bopbop_ [n=kristi@68-114-216-78.dhcp.mdsn.wi.charter.com] has left #webgui []23:35
@khennwho "fixed" RSSFromParent?23:36
@khennanyone know?23:37
+perlDreamersvn blame?23:37
@khennyeah23:37
@khenngood idea23:37
@preactionkhenn: what did i break?23:37
@khennnot sure if you broke anything23:37
+perlDreamerhe hasn't said what's broken.23:38
@khennsomeone did this :23:38
@preactionthe "fixed" kinda tipped me off to something being wrong23:38
@khennif(UNIVERSAL::isa($item, 'WebGUI::Asset')) {23:38
@khenn...23:38
@preactionDrake23:38
+perlDreamerthat's original code23:38
@khenn} elsif(ref $item eq 'HASH') {23:38
@khennthen there's a comment :23:39
@preactionDrake23:39
+perlDreamerhold on23:39
@khenn### This does not do any XML escaping. A way must be found to23:39
@khenn                # recursively escape the entire data structure.23:39
@preactionthe comment and that section is me23:39
@preactionwell, the comment i guess isn't23:39
+perlDreamerI thought we were escaping inside the template now23:39
@khennwell, what's happening is that collaboration systems RSS feeds aren't being XML encoded23:40
@khennsince they return hashes23:40
+perlDreamer<tmpl_var whatEver ESCAPE="HTML">23:40
@khennheh23:40
@preactionperlDreamer: it's possible that isn't working, XML != HTML23:40
+perlDreamertrue23:40
@khennit's likely23:40
@khennit's not working =)23:40
+perlDreamerbecause I remember that fix23:40
@preactionmeh, it's working better than it was :p23:40
+perlDreamerpreaction, me and rizen did it one night.  It used to error out23:41
@khennit's not working at all if you have any sort of HTML in there23:41
@khenn&nbsp;23:41
@khennthat breaks the feed23:41
@preactionfilter them out, they aren't needed, especially &nbsp;23:41
+perlDreamerDoes RSS allow HTML inside itself?23:41
@preactionnot that i'm aware of23:42
@khennok23:42
@khennok23:42
@khennI have a fix I think23:42
@preactionRSS isn't presentational, so non-breaking spaces are irrelvant23:42
@khennI just wanted to find out why you weren't calling the _escapeXML method23:42
@khennfor each item23:42
@preactionbecause of the comment23:42
@preaction_escapeXML doesn't recursively escape the data structure23:42
@khennwhy would it need to?23:43
@khennthe hash contains data23:43
@preactionbecause it's a data structure23:43
+perlDreamerI wonder if Sam Tregar would take another patch to H::T for escaping XML?23:43
@khennwhat would it need to be recursive?23:43
@khenns/what/why/23:43
@preactionit's not just a hash?23:43
@preactionhash of arrayrefs of hashrefs perhaps?23:43
@preactiontemplate loops are array refs23:43
@preactionthat _escapeXML was doing horrible things to those array refs23:43
@khennok23:44
@khennI was just wondering23:44
@khennyeah the escapeXML was not though through very well23:44
+perlDreamerokay, I know now how to hack H::T to do the escaping23:51
+perlDreamerwhat are valid XML escapes?23:51
@preactionHTML::Entities can unescape the HTML, you will have to find something that will escape the result for XML23:52
+perlDreamerhttp://sourceforge.net/mailarchive/message.php?msg_id=1550255123:54
+perlDreamerThis very thing was talked about on the H::T list 9 months ago.23:56
+perlDreamerIt just died in committee23:56
+perlDreamerbut if we fix it by extending H::T, what happens to the other Template plugins?23:56
@preactionwe'd have to give a patch to H::T and hope it gets committed, i think i went through this with JT about the deep-loop global_vars bug23:58
+perlDreamerwhat's with the code in /data/WebGUI/lib/XML/RSS/Creator.pm ?23:59
@preactioncouldn't tell you, i think i suggested distributing our own H::T, but i was shot down23:59
+perlDreamerI see23:59
--- Day changed Fri Feb 02 2007
+perlDreamerCreator is a parser.00:00
@snapcountperlDreamer: did you credit the guy who gave us that patch in the change log?00:01
+perlDreameryes.  Do you happen to know his last name?00:01
+perlDreamerall I found was "patrick" and "patspam"00:01
@snapcountno I don't...00:01
@snapcountthanks for committing that, and I'm sure you tested it first00:01
@snapcountI don't think we've ever got one from him before00:02
+perlDreamerI did.  Had to make my own Asset tweak in order to do it.00:02
@snapcountok cool00:02
+perlDreamerThe Slider slid.  It was good.00:02
@snapcountI'm a little paranoid with new people and their patches =)00:02
@preactionword00:02
@snapcountcool cool00:02
* preaction worries more about the evils he knows00:03
@snapcountmaybe more people will submit patches with their bugs00:03
* snapcount dreams a little dream00:03
+perlDreamerdrop him 100 karma00:03
+perlDreamers/drop/give/00:03
@snapcounthmm00:03
@snapcountthat's not a bad incentive00:03
+perlDreamerwe'd have to do it manually though00:03
@snapcountyeah00:03
greghackenext you'll tell me to submit bugs00:03
@snapcountthat's fine00:03
@snapcountand if it starts taking a bunch of time b/c it's manual00:04
@snapcountthat is a *good* thing00:04
+perlDreamergreghacke: Submit bugs00:04
@snapcountperlDreamer: shoot me an email with that suggestion so I don't forget about it00:04
@snapcountI need to mull it over... I don't know if 100 is too much or too little00:05
greghackeI could submit bugs on EMS but I think I'll hold on that until I crawl the code again.00:05
+perlDreamerYou get 5 for submitting, 5 for closing.00:05
greghacke5 per level - cosmetc: 5, minor: 10; critical: 15, fatal: 2000:06
@snapcounttrouble with that is that it's a subjective scale00:06
@snapcountcritical to you could easily be cosmetic to most00:06
@snapcountand vice versa00:06
greghackeabsolutely true.00:06
@snapcountI'd prefer one number00:06
@snapcounta bug is a bug00:07
greghackekarma itself is a subjective system though.00:07
gooeybotitself is a subjective system though. has neutral karma00:07
@snapcountand it keeps it fair00:07
greghackedon't believe much in 'fair'00:07
@snapcounttime for sk00L00:07
@snapcountttyl guys00:08
+perlDreamerhack on, duded00:08
-!- snapcount is now known as snap_learner00:08
@khenngot another regex question00:20
+perlDreamerbring it00:20
@khennI want to find everything in the string that looks like: &...;00:21
@khennbut my regexp is finding the first &00:21
@khennand the last ;00:21
@khennwhen I do: 00:21
+perlDreameruse \S+ instead of .00:21
@khenns/(&.*;)//;00:21
@khennah00:21
+perlDreamer\s is whitespace00:21
+perlDreamer\S is non-whitespace00:21
+perlDreamerall characters00:21
+perlDreameruse \w instead of \S00:22
+perlDreamer\w+00:22
+perlDreamer\w is word characters00:22
+perlDreamerdo you need to find '#'?00:22
@khennno00:23
+perlDreamerthen use \w00:23
+perlDreamerif you need to find '#', use &([^;]+);00:23
+perlDreamerpreaction: this stress tester is stressful.  First you have to build a CS, then commit it, then add a thread, and _then_ you can starting shoving posts into it.00:24
@preactionthe bug is messed up :(00:25
greghackefunctional question: fastest way to port in 12000 entries into an SQLForm table.00:34
greghackeor should i hit the forums?00:34
+perlDreamerwhy SQLForm?00:35
greghackeagency hosting using extra database for SQLForm.  customer uses it for data tracking (or will when i finish normalizing it)00:36
greghacketwo tables, ~6000 records into the first and 12000 to the second.00:36
@preactiongreghacke: probably a direct DBI query script00:36
greghackethought so.00:36
+perlDreamernote that SQLForm data is versioned by default00:36
@khennanyone know anything about RSS 2.0?00:37
greghackeyeah, i'm referencing the default columns for the data (except for the __recordId)00:37
+perlDreamerkhenn: sorry00:37
@khennI guess I'll try it00:37
+perlDreamerthere's some info in /data/WebGUI/lib/XML/RSS/Creator.pm00:37
@khennand see what happens00:37
@khennI'm guessing that having HTML stripped out of your RSS is not the desired effect eh?00:53
+perlDreamerI bet iTunes will actually render the HTML, whereas a strict RSS reader wouldn't00:56
@preactionmight have to read the spec on that, i would think that RSS would not include HTML tags00:57
-!- Meatbop [n=chatzill@24-180-168-135.dhcp.fdul.wi.charter.com] has quit ["Chatzilla 0.9.72 [Firefox 1.5.0.9/2006120612]"]01:02
@khennit doesn't01:02
@khennand there weren't any anyway01:02
@khennb/c my test was on a collab system which is returning synopsis as the description01:03
@khennbut my fix should handle just about everything in terms of RSS01:03
@khennI'm sure wierd Arabic, Japaneese, Chineese, etc characters are gonna mess things up01:04
@khennbut I'm guess thing will handle 99% of what it needs to01:04
@khenncan someone with a mac test something out for me in Safari and/or FF?01:04
@khennhttp://frank1.plainblack.net:8084/news2/alumni-news/alumni-news.rss01:04
@khennthe links don't work btw cause my config file is screwed up01:06
@preactiontesting01:11
@preactionFF on Mac likes your page01:12
@preactiontrying Safari01:12
@preactionsafari likes it too01:13
@khenncool01:15
@khennwahooo!!!01:18
@khennshe seems to be fixed01:18
@khennany of the dutch people around atm?01:18
+perlDreamernope01:19
@khennI think my fix to RSS shoudl support nearly everything01:20
@khennI'm slightly worried about HTML and funky characters in other languages01:20
@preactioneh, would it have worked before you fixed it?01:21
@khennnot sure01:22
@khennit probably will work01:22
@khennit does not, however recurse01:22
@preactionso people who use RSSFromParent for non-RSS exporting...?01:23
@preactionit needs to recurse?01:23
@preactionhttp://www.plainblack.com/bugs/tracker/repeatedly-e-mailes-after-edit-branch <- is this not expected behavior?01:27
+perlDreamerpreaction: re RSS, that's why I think it should be done in the template.01:28
+perlDreamertemplate level escaping allows you to reuse the RSS to do anything01:29
@preactionindeed... but it can't be at this moment01:29
+perlDreamerwhy not?01:29
@preactionbecause H::T doesn't?01:29
+perlDreamerfrom what I can tell, HTML escaping is a superset of XML escaping.01:29
@preactionthat's the problem, there are HTML escape entities that XML doesn't understand01:30
@preactionnbsp for example01:30
+perlDreamerit's a mess01:31
@preactioncomplete01:31
@preactionquick question though: if you do an edit branch on a cs, would you not expect to get a bunch of e-mails because you edited the posts in the edit branch?01:32
-!- perlDreamer [n=ckuskie@nat048.mxim.com] has quit [Read error: 104 (Connection reset by peer)]01:32
@preactionmonkey...01:32
-!- perlDreamer [n=ckuskie@nat064.mxim.com] has joined #webgui01:33
-!- mode/#webgui [+v perlDreamer] by ChanServ01:33
+perlDreameram I really back?01:33
greghackeNo01:36
greghackepD is not here.  Please leave a message at the sound of the tone.01:36
+perlDreamer"Where is the any key?"01:36
@khennre: RSS the problem lies in RSS 2.001:37
+perlDreamerRSS 2.0 says that it can contain HTML?01:37
@khennno, it cannot contain HTML Entities01:37
@khennit requires ASCII or Hex values due to UTF-8 conversions or some crap like that01:37
@khennand because H::T does not have ESCAPE="ASCII"01:38
@khennit fails miserably01:38
+perlDreamerI see01:38
+perlDreamerwouldn't it be easier just to shoot the people who are manually entering HTML into the textField for Synopsis?01:38
+perlDreamerthat long delay says that you're either ignoring me, or seriously considering it01:39
@khennI was posting somewhere else01:40
@khennHTML should still work actually01:40
@khennI didn't test it, but I don't see why it wouldn't01:40
@khennI'm slightly concerned about it01:40
@khennI'm more concerned about characters that HTML::Entities isn't familiar with01:41
@khenn< and > are handled appropriately01:41
+perlDreamerhow about &, ' and "?01:42
@khennconverted01:42
@khennto whatever the hex value is for them01:42
@khennHTML::Entities::encode_numeric();01:43
@preactionkhenn: why would HTML::Entities be unfamiliar with any characters?01:46
@preactionperlDreamer: do you remember this? http://www.plainblack.com/bugs/tracker/dataform-grouptoviewentries-behavior01:47
+perlDreameryes01:47
@preactionis it a bug?01:47
+perlDreamerNot really.  It's more of an RFE.01:47
@preactionok, i'll just close it then01:47
@preactionalso, if you edit branch on a CS, would you not expect to be e-mailed the Posts that were edited?01:48
+perlDreamerMe, personally, I would not01:49
+perlDreamerTo me edit branch is like a db hack.  It shouldn't trigger any side effects.01:49
@preactioni suppose this means we drag out rizen01:49
+perlDreameryou need to double check that one with the rizenator01:49
@preactionrizen: is this a bug? http://www.plainblack.com/bugs/tracker/repeatedly-e-mailes-after-edit-branch01:50
@khennpreaction:  The docs say it handles unknown characters by simply returning the character01:50
@khennit doesn't document what it does and doesn't know01:51
@khenndid that make sense?01:51
@preactionyeah01:51
+perlDreamerkhenn: what does the source say?01:51
@khennthe source?01:52
@khennheh01:52
@preactionperlbot utsl01:52
@preactionuse the source, luke!01:52
@preactionperlbot rtfs01:52
perlbotREAD THE FUCKING SOURCE01:52
@preactionor that...01:52
@khennYOU READ THE FUCKING SOURCE01:53
@preactionthat's telling him!01:53
+perlDreameryup, there are unfamiliar characters01:56
+perlDreamerthere's a manual table of entities01:56
@khennI figured as much01:56
+perlDreamerif it's not in the table, it's unknown01:56
@khennIf it was going somewhere on the internet to get the list it probably would require LWP =)01:56
+perlDreamertrue.  Although sometimes they do it indirectly with a 1-time fetch at install, so the LWP requirement is buried in the Make/Build script.01:57
@preactionthese entities are described in a standard, no reason to LWP for them01:58
@khennum01:59
@khennthey change every year01:59
@khennnot many changes01:59
@khennusually additions01:59
@preactionso you're saying HTML 4.01 standard changes every year?01:59
@khennno, I'm saying the UTF-8 standard does02:00
@preactionhow about the character sets? that I can agree with02:01
@khennLet's see how the new specter changes work02:02
@khennspectre02:02
@khennI have more memory free02:05
@khenn20megs more than usual02:05
@khennafter a restart02:05
@preactionthat's always good02:06
@khenn53 bug fixes documented so far02:07
@khennin 7.3.902:07
@preaction30-some left on the lists02:07
@khennyep02:07
@khennI'm gonna be bugfixing tomorrow as well02:07
+perlDreamerhow do you add a Post to a Thread via the API?02:13
@preactionaddChild02:13
+perlDreamerhint, this isn't good enough: my $post = $thread->addChild({className=>'WebGUI::Asset::Post', 'title'=>'Post', 'threadId'=>$thread->getId});02:14
@preactionwhat's the error?02:14
gooeybotthe error is in the loop02:14
@preactionno, gooeybot, the error is <reply>02:14
gooeybotokay, preaction.02:14
@preactionwhat's the error?02:14
+perlDreamerworking on it.....02:14
@preaction(was just testing gooeybot)02:14
@preactionin other news: i learned how to stop gooeybot from replying to simple, stupid questions02:15
-!- Radix-wrk [n=Jesse@203.161.68.67] has joined #webgui02:15
+perlDreamerpreaction: Can't call method "getParent" on an undefined value at /data/WebGUI/lib//WebGUI/Asset/Post.pm line 307.02:16
+perlDreamerI'll paste the Post stuffing script02:16
@preactionyou're going to have to skip the autocommit02:17
+perlDreamerand do a manual commit?02:17
@preactionaddChild({},{skipAutoCommitWorkflow=>1});02:17
@preactionyeah02:17
@preactioni think that's the right option02:17
+perlDreamerfor the thread, too?02:18
@preactioni don't think threads autocommit02:18
@preactionwait02:19
@preactioni don't know02:19
+perlDreamerThey must02:19
@preactionyou're righ02:19
+perlDreamerThreads are really posts02:19
+perlDreamerpreaction: http://rafb.net/p/E4TYvQ38.html02:22
+perlDreamerit's ...Workflows02:23
+perlDreamerplural02:23
@preactionfigures02:23
+perlDreamerit's not fun doing dev on a 500 MHz P302:24
@preactionwill addRevision do it? dateSubmitted is the same as dateUpdated for the moment, right?02:24
@preactionaddRevision can so the skipAutoCommitWorkflows too, you might have to02:24
@khennI can send you some code for adding posts to Collab systems02:25
@khennI've been down this road already02:25
+perlDreamerkhenn: thanks02:25
+perlDreamerI think we need a repo for all these 1-off scripts02:26
+perlDreamerit would save time02:27
@khennit's a lot of code02:28
@khennbut it does a lot of stuff02:28
@khennif you can figure out why the hell the posts won't commit as admin I'd be much obliged (note that this only doens't work if you turn on approvals)02:29
@khennI sent you all the methods it calls so you won't be confused02:29
+perlDreamerI think I was committing Posts as Admin last night, when I was testing the fixed rating code.02:30
@khennwell that should be committing everything as admin02:30
@khennso there should be no reason it doesn't commit02:30
@khennbut it won't matter if you have approvals turned off02:31
@khennyou can just comment out the line that calls the special commit code02:31
@khennapparently the fix for that template bug was to edit the file and put some debug code in...02:33
+perlDreamertemplate bug?02:33
@khennI'm closing it now02:33
@khennyeah, trying to edit a template from the edit screen of an asset was throwing an error on plainblack.com02:33
+perlDreamerwas it a custom PB template?02:34
@khennno02:34
@khennactually02:34
@khennyes02:34
@khennit was a custom template02:34
@khennbut it happened for even non-custom templates02:34
+perlDreamerthat's not good02:34
@khennwell it's fixed now02:35
+perlDreamerat least its fixed02:35
@khenn36 bugs left02:36
@khennI think I'm done for tonight02:36
@khennlater everyone02:36
@preactioncya02:36
+perlDreamerbye02:36
-!- khenn [n=fdillon@66-190-54-175.dhcp.mdsn.wi.charter.com] has quit []02:36
+perlDreamerI think my script is done02:37
+perlDreamerhave to call addChild instead of addRevision, because if the threadId isn't null then it doesn't set the dateSubmitted02:37
+perlDreamernothing in 100 Posts yet02:40
@preactionJuice that baby all the way up, Cedric!02:40
+perlDreamerI made it sleep 1 second between add's02:40
+perlDreamerbut that may be skewing the data, too02:41
+perlDreamernothing in 20002:41
@preactionsince sleep always sleeps to the top of a second?02:42
+perlDreamerprobably02:42
@preactionmaybe Time::HiRes and sleep to a .9 of a second?02:42
@preactionperlbot -f sleep02:42
perlbotDocumentation for 'sleep' can be found here: http://xrl.us/ukzw02:42
greghackeGood night all.02:44
-!- greghacke [n=greghack@c-24-23-66-147.hsd1.mi.comcast.net] has left #webgui []02:44
@preactionnight02:44
+perlDreamerI slept for 0.47 seconds b/w submits, nothin g in 127 Posts02:48
+perlDreamermaybe it depends on the version of perl02:48
+perlDreameror (more sanely) I'm completely wrong02:48
@preactionwait02:49
@preactionif the threadId is not null, then it sets the dateUpdated?02:49
@preactionand only the dateUpdated02:49
+perlDreamerit's all in the addRevision sub in Post.pm02:49
+perlDreamerif the threadId is empty, it calls it a new post02:49
+perlDreamerand it sets the dateSubmitted to $now02:50
+perlDreamerthen it does another update to set dateUpdated to $now02:50
+perlDreamerand then later, during commit, it checks for isNew.02:50
+perlDreamerif it isNew, then it adjusts Karma and increments the number of replies.02:50
+perlDreameryou'll remember our buddy isNew from last night dateSubmitted == dateUpdated02:51
@preactionwhat if, inside the Asset->update sub, we do some dumper output of the properties we're updating with?02:51
@preactionthen run your test02:51
+perlDreamernothing in 500 Posts02:51
@preactionso use Data::Dumper; warn Dumper $properties if $self->get("className") eq "WebGUI::Asset::Post";02:51
+perlDreamerI'm manually monitoring the db as I run the test.  So it should do the same thing02:52
+perlDreamerselect assetId,dateUpdated,dateSubmitted from Post where dateUpdated <> dateSubmitted;02:52
@preactioncrap...02:52
@preactionadd some debug code like that to pb.com and wait for it to happen again?02:53
+perlDreameryou could add that to the Post level addChild/addRevision subs, instead of at the Asset level02:53
+perlDreamercan we scan through the PB db in order to see if this was a freak 1 time thing?02:53
@preactioni'm worried that it's not the Post-level things that are doing it02:54
@preactioni'm fairly sure it's not, there are multiple threads on pb.com with bad reply information02:54
@preactionbut i'll check anyway02:54
+perlDreamerI'm heading home.  I'll be back on later tonight.02:54
@preactionk02:54
+perlDreamernice working with you today, preaction02:55
@preactionlikewise02:55
-!- perlDreamer [n=ckuskie@nat064.mxim.com] has quit [""""]02:55
@preaction4341 rows in set... that's not so good02:56
@preaction1096 of them are off-by-one02:56
@preactionsome from as far back as 200402:57
-!- PedersenMJ [n=Pedersen@mail.icelus.biz] has joined #webgui05:23
PedersenMJgood evening05:23
-!- perlDreamer [n=colink@pool-71-117-209-62.ptldor.fios.verizon.net] has joined #webgui05:37
-!- mode/#webgui [+v perlDreamer] by ChanServ05:37
+perlDreamerpreaction: hackest thou this fine evening?05:39
@rizenpd: check out the new --status option on spectre.pl and tell me what you think05:39
@rizenyou may want to queue up a few workflows first05:39
@rizeni wanted to know if it provides enough information to judge health05:40
@rizenas you said05:41
+perlDreamerwill do05:41
+perlDreamerHow do I manually queue up workflows?05:41
@rizenuse the "run" link in the scheduler05:41
@rizenclick a few times05:41
+perlDreamernot bad05:45
+perlDreamerwe can actually watch workflows flow through the queue05:45
+perlDreamerthat is very good05:45
+perlDreamerif we ever need to graph stuff, we can easily add it in05:45
@rizeni'm trying to figure out what else i could put in there that would be useful05:45
@rizenthere isn't much data that spectre knows about05:45
@rizenmost of it is in webgui05:46
+perlDreamerIt might be nice to know the original priority of a workflow, so you can see how many times its been queued05:46
@rizenso in the priority column, should i do something like current / original05:46
@rizen34 / 1005:46
+perlDreameryeah05:46
+perlDreamerthen you look at it and say: you've been reinserted 24 times05:47
@rizeni'm also thinking about keepin gtrack of the status of the last execution05:47
@rizen"complete"05:47
@rizen"error"05:47
@rizen"waiting"05:47
+perlDreamerthat's good, too05:47
@rizenright now we don't keep track of it05:47
@rizenbut it might be worth the extra memory05:47
-!- mode/#webgui [-o snap_learner] by ChanServ05:48
+perlDreamerit's 1 perl string, shouldn't be too heavy05:48
+perlDreamerpreaction and I spent about 2 or 3 hours looking at Posts today05:48
@rizenyeah, i'm just thinking if you have 1000 things going on05:48
@rizenhow did you come out?05:48
+perlDreamerI inserted 500 posts with skipAutocommitWorkflows, and had no problems.05:49
@rizennice05:49
+perlDreamerpreaction did some research on PB's site for Posts05:49
+perlDreamer<@preaction> 4341 rows in set... that's not so good 02:56 <@preaction> 1096 of them are off-by-one 02:57 <@preaction> some from as far back as 200405:49
@rizenwow05:50
+perlDreamerthat's 1 in 4, and I couldn't hit that with 500 Posts.05:50
+perlDreamerbut I also had to use the skipAutoCommitWorkflows flag05:50
+perlDreamerthat might make things very different05:50
+perlDreamerso the hiccup may be coming from the autocommit workflows05:50
@rizeni guess we'll see05:51
+perlDreamerwhat version of perl are y'all running on PB.com?05:51
@rizen5.8.805:51
@rizenor maybe 5.8.1005:51
@rizeni'd have to check05:51
@rizen5.8.805:52
+perlDreamerI was running 5.8.6 at work.05:52
+perlDreamerI have 5.8.8 here05:52
+perlDreamerI'll try to duplicate the experiment here05:52
@rizen i'm going to quickly work in those other two things into the status05:53
+perlDreamerit takes a long time to commit 500 assets05:57
@rizenindeed05:58
PedersenMJHey, JT, quick question for you: If I were to talk my company into going to WebGUI for their public site, how long would it take pb.com to convert what we have into a WebGUI style? (more detail in just a sec)06:07
PedersenMJBasically, we have a .net site right now, which uses its own templating system/etc. If we were to provide access to the current site, and allow you guys to pull down data/pages/etc, how long would it take you (normally) to make a whole new e-commerce type site using said templates?06:08
PedersenMJI know you cannot provide an accurate number without seeing it, and I'm not asking for that. Just general past experience type numbers where a client has all their data and templates, and just needs to integrate it.06:09
PedersenMJBasically, I got wind today of a fairly significant problem. Supposedly, we're supposed to be in a testing phase starting on Monday, and there's some major issues that have just cropped up today. We shouldn't be seeing major issues, not at this point, and I'm looking to gather info to try and get the current site removed.06:10
@rizenstyle conversion is less than a week06:11
@rizencontent migration depends on number and complexity of pages06:11
@rizencommerce system can be set up in less than a day06:11
@rizenthen you have to import products06:11
@rizenwhich again is a content migration issue06:11
@rizenalmost certainly less than a month, but without seeing it06:12
@rizenthat's all i can tell you06:12
PedersenMJThat's more than fair.06:12
PedersenMJAs I said, this was entirely ballpark, off the cuff. I wouldn't hold you to that, I can promise.06:13
@rizenhonestly, the thing that holds us up more than anything else is a disorganized customer06:13
@rizenonce we have everything we need06:13
@rizenwe can rip out an entire site in under a week06:13
@rizencontent migration, commerce, design, the whole ball of wax06:14
+perlDreamernothing in 1500 Posts06:14
@rizenthat's great pd06:14
@rizenthis is with skip auto?06:14
+perlDreameryeah06:14
+perlDreamerand same version of perl, but maybe different switches?06:14
@rizenwhat if you don't skip auto06:14
@rizenwhy are you skipping auto?06:15
@rizenjust cuz it's faster?06:15
+perlDreamerI was told that I had to.06:15
@rizenwho told you that?06:15
+perlDreamerI don't remember.06:15
@rizenno reason to do that06:15
@rizenthe skip auto feature is only there for the branch functions06:15
+perlDreamerwait a minute.  I know what it was06:16
+perlDreamerit was a workaround to a bug I was getting06:16
PedersenMJThanks. I'm going to be monitoring the situation at work as carefully as possible. And trying to introduce WebGUI for an intranet site next week sometime.06:16
@rizenhey PedersenMJ...how did i piss you off the other day?06:17
PedersenMJIf things fall through with the current company (and I suspect they might, the mistakes they are making are enormous), I'll be doing my best to get them to call you guys up.06:17
@rizeni thought i was being nice06:17
PedersenMJYou pissed me off?06:17
+perlDreamerPost->getAutoCommitWorkflowId was failing06:17
@rizeni said that i wanted to keep the channel all about bug fixing06:17
@rizenand you made some sort of sour grapes comment06:17
@rizenand left06:17
PedersenMJThat was you? Ah, it was the way it was said.06:17
@rizeni said please and everything06:18
@rizeneveryone on the channel was wondering why you were mad and left06:18
PedersenMJHere's what I saw as possible answers to the question: 1) Yes. 2) No. 3) Ignore me. 4) FOAD. I felt more like I got FOAD, when I would have much preferred 3.06:18
@rizenwe even discussed that it was someone other than you masquerading, because you never act like that06:18
PedersenMJThat, and it was said by someone I didn't know.06:19
@rizenFOAD?06:19
PedersenMJFOAD = Acronym: Fuck off and die.06:19
@rizenheh...i didn't mean that certainly06:19
-!- rizen is now known as BugSlasherMcGirk06:19
PedersenMJI think the big thing is that I didn't know that BugSlasherMcGirk was you.06:19
-!- BugSlasherMcGirk is now known as rizen06:20
@rizenmy alter ego06:20
-!- rizen changed the topic of #webgui to: WebGUI 7.3.806:20
PedersenMJYou? I'd have understood it, and been okay with it. BSMG? Had never seen the name, thought it was someone trying to tell me to foad, basically, and that I was not welcome.06:20
PedersenMJNow I know, and will offer up an apology. That was more than slightly rude of me.06:21
+perlDreamerNormally we don't let people treat other people in the channel that way.  If it was some jerk, we'd have nailed him.06:21
PedersenMJAnd the embarassing part is that I almost went ahead and asked who the heck bsmg was. Wish I had.06:21
PedersenMJI am sorry. And will take this as a lesson to ask first, rather than shoot a mouth off.06:22
@rizenno biggie06:23
+perlDreamernothing in 500 Posts without autocommitworkflows06:23
+perlDreamertrying 75006:23
@rizeni just thought you were mad at me or something06:23
@rizenyou mean "with" right?06:23
@rizenor "without skip"06:23
+perlDreameryes, without skip06:23
+perlDreamernothing in 75006:23
@rizeni think you've got it licked man06:24
+perlDreamerI don't have a bug fix.  I'm trying to duplicate the bug.06:24
+perlDreamerI can't06:24
PedersenMJAnd will thank you for setting me straight, too. That sets my mind at ease, a lot. Man, I really need to have better integration between irc and jabber. Might have to take that side project on myself.06:25
+perlDreamernothing in 1500 Posts06:25
+perlDreamerrizen, I think we should try this on PB.com and see if we can dupe it there.06:25
+perlDreamerI'm getting 25 Post inserts per second06:26
@rizenno offense, but i don't want to throw a bunch of crap into plainblack.com db06:27
@rizenwe can do it on a demo site if you like06:27
@rizenbut not on plainblack06:27
@rizenplainblack's database is already fragmented, and has more than half a gig of data in it06:28
+perlDreamerthe script is completely self contained and self checking06:29
+perlDreamerin the end it tells you how many busted posts it made06:29
@rizenyou know, as buggy as webgui might be sometimes, that's one huge testament to how cool it is06:29
+perlDreameryes it is06:29
@rizenplainblack.com was created on WebGUI 0.8.006:29
@rizenand has survived every upgrade06:29
@rizento 7.3.806:29
@rizeni don't think that there are many cms providers out there that can claim any site has survived the hundreds of upgrades06:30
@rizenwe have06:30
@rizenupgrade and cms just don't go hand in hand in most cases06:31
+perlDreamersomeone in the channel said that Zope sites can't do major version number upgrades.  They have to port.06:31
@rizenthat was me06:32
@rizenbut it is true06:32
@rizenyou have to export/import your data with a migration tool06:32
@rizenand that only works for the main content06:32
@rizenit won't work for any plugin data06:32
+perlDreamerI emailed you the Post stuffer script06:33
@rizendo you want me to run it on a demo site?06:33
+perlDreameryes, please06:33
PedersenMJBRB, switching to real IRC client.06:35
-!- PedersenMJ [n=Pedersen@mail.icelus.biz] has left #webgui []06:35
-!- PedersenMJ [n=Pedersen@mail.icelus.biz] has joined #webgui06:35
@rizenis this thing supposed to be outputting as it goes?06:37
+perlDreamerno06:38
@rizenhttp://demo.plainblack.com/demo1170390990_53606:38
@rizenhow many will it create?06:38
+perlDreamer150006:38
+perlDreamerit's pretty fast06:38
+perlDreamer(on my unloaded machine)06:39
-!- PedersenMJ [n=Pedersen@mail.icelus.biz] has left #webgui []06:39
+perlDreamerat the end, it will tell you how many Posts it found with non-identical dateUpdated and dateSubmitted06:39
@rizenit's not committing any of the tags06:39
@rizenis it supposed to?06:40
@rizenthis is the output i got from it at the end06:40
@rizen$VAR1 = [];06:40
@rizenwe're running 7.3.8 out there though, so i don't know if that would have anything to do with it06:41
-!- PedersenMJ [n=Pedersen@mail.icelus.biz] has joined #webgui06:41
PedersenMJMuch better.06:41
PedersenMJUsing a real client is definitely better.06:42
+perlDreamerrizen: will committing the tags change dateUpdated or dateSubmitted?06:42
@rizennope06:44
+perlDreamer$VAR1=[] means that there were no rows found where dateUpdated != dateSubmitted06:46
+perlDreamermaybe we need to add debug code to PB's WebGUI and see what's going on via logging.06:47
+perlDreamersince we can't dupe the bug on command.06:47
@rizenwhat will logging tell us06:51
@rizenit seems only when it happened, not why06:51
@rizenthe new status screen is available for your approval...added last state and original priority06:51
@rizenand also now keeps track of suspended workflows06:51
-!- PedersenMJ_ [n=Pedersen@mail.icelus.biz] has joined #webgui06:51
+perlDreamerit might tell us about where06:51
@rizenhow so?06:52
@rizenthis can only be happening in one spot, right?06:52
+perlDreamerI hope so.06:52
@rizenwell in order for it to tell us something else, we'd have to be logging in more than one spot06:52
@rizenbut we've only got one spot to log06:52
+perlDreamerI was thinking of adding code in Post, for addChild, addRevision and commit06:53
+perlDreamerit seems like we've only got two choice06:54
@rizengive me a patched version of the 7.3.8 Post.pm and i'll put it on there for you06:54
+perlDreamerI'll work on it06:54
+perlDreamerafter I check our your new spectre status06:54
@rizeni recommend not using the normal logging mechanism though06:54
@rizencuz we'll never find it06:54
@rizenthe webgui.log is too big06:54
@rizeninstead, just open a file to /tmp/post.log06:55
@rizenor something06:55
+perlDreamerthat's shared among all the threads?06:56
@rizenwhat's shared?06:56
+perlDreamerthere are multiple workers (apache children).  Wouldn't you have to lock the file so that they don't stomp on each other?06:57
@rizenopen my $file, ">>", "/tmp/post.log"; print {$file} $output; close $file;06:57
@rizennope06:57
@rizenyou're appending06:57
@rizenso it works like magic06:57
+perlDreamerdo you think we'll find anything if we do this?06:58
@rizenhonestly...not really06:58
@rizenbut i don't have any other idea06:58
@rizenthe sherlock method says to exhaust all possibilities, until whatever is left must be your answer06:59
@rizenso we should do this06:59
+perlDreamerdo you think we should try banging heads with the other devs tomorrow?06:59
@rizenit's better than doing nothing06:59
+perlDreamerpow wow?06:59
@rizenwe've been doing that for 2 days06:59
@rizenand i'm on accounting duty tomorrow, so i won't be around most of the day07:00
@rizeni guess what i'm saying is...this log can't hurt07:00
@rizenmaybe it will give us a clue07:00
+perlDreamerthe worst it can do is slow your site down a little do to the I/O07:00
@rizenmy site is already slow07:01
@rizenwhich is something i've got to work on07:01
@rizenso it's not even going to be noticable07:01
+perlDreamerwhat's wrong with PB?  Why is it slow?07:01
@rizenno idea07:01
@rizenit really shouldn't be slow given the hardware it's on vs the traffic we get07:01
@rizenhonestly i'm starting to believe it's the caching system that's slowing us down07:02
+perlDreamerFile cache?07:02
@rizenwhen the fs cache grows big07:02
@rizenit really seems to chug07:02
@rizenyeah07:02
@rizeni was hoping to have all these bugs fixed this week so i could spend next week doing some profiling07:06
@rizeni think that we're caching a lot of shit, that doesn't get us much or any gain07:06
-!- PedersenMJ [n=Pedersen@mail.icelus.biz] has quit [Read error: 110 (Connection timed out)]07:07
@rizenso, do you think the status screen will be a good diagnostic tool?07:07
@rizencan you think of any improvements?07:07
+perlDreamerno07:07
@rizengood, then it's good enough for the time being07:08
@rizenthat combined with the queue improvements, and the startup improvements07:08
@rizeni think that spectre should be in pretty fit shape07:08
+perlDreamerwe closed 50 bugs over the last 3 days07:08
@rizenis that all?07:09
+perlDreameryeah07:09
@rizenit seemed like hundreds07:09
+perlDreamerthere are about 30 more07:09
+perlDreamerwe also found some non-reported bugs07:09
@rizenfrank, roy, and doug will all be working on bugs again tomorrow07:09
+perlDreamerI should be able to help some more07:10
+perlDreamerbut I'm way slower than they are07:10
@rizenyou seem to be closing as many or more bugs than they are from my vantage point07:10
+perlDreamerI had a head start :)07:10
@rizenwell i'm done for tonight07:15
@rizenttyl07:15
+perlDreamergood night07:15
-!- rizen [n=rizen@71-86-227-90.static.mdsn.wi.charter.com] has quit []07:15
PedersenMJ_I'm headed for bed myself. Yawning more than reading or writing now.07:17
PedersenMJ_g'night!07:17
-!- PedersenMJ_ [n=Pedersen@mail.icelus.biz] has quit []07:18
+perlDreamernobody left but us perlDreamers07:59
* perlDreamer gollum07:59
HinrikO_o07:59
* Radix-wrk yawns.08:01
Radix-wrkI've been having dramas with Webgui of a different nature - psu in the machine hosting webgui was 'spiking' randomly - causing it to spontaneously reboot and me to panic - had to do a run-around for a replacement psu, but seems to be working fine now I'm glad to say.08:06
-!- crythias [n=Gerald@c-68-51-234-189.hsd1.fl.comcast.net] has joined #webgui08:06
-!- mode/#webgui [+v crythias] by ChanServ08:06
+perlDreameris the psu on a ups?08:14
Radix-wrkwas yup08:18
Radix-wrkI tried it without the ups thinking maybe the UPS was the problem somehow - as it was beeping when it restarted - but then it did it in front of me 2 minutes later after bypassing the UPS08:19
Radix-wrkIt's been up 1hr 20 mins so far, so all is good so far.. got my webdev machine with a clone of the whole site just in case this time - it's a friday afternoon and the last thing I want to do on my weekend is rush in to work - this way a few iptables rules will let me redirect to the webdev machine instead ;)08:22
+perlDreamergood backup08:25
+perlDreamerwell, I got another bug fixed08:42
+perlDreamertime to go to bed08:42
+perlDreamerthat will give you guys time to find more bugs08:42
xdangeris there a way to catch "Illegal division by zero at..." error on a whole script level? not just putting the part in eval {};08:43
+perlDreamerI don't think so.  You should only need to trap certain parts of it.08:43
xdangerI just don't want to put eval on every part of that script that dows divisions...08:44
+perlDreamerhow about checking the data before the divisions happen?08:44
+perlDreamerand error out appropriately?08:44
xdangertoooooo many variables...08:44
xdangerIt's a complex hash that is worked on..08:45
+perlDreameryou could assign the data to tied variables that overload division so that they never really divide by 0.08:45
xdangerno, it's 6 different complex hashes, that are worked on =D08:45
+perlDreamerin perl 6 this is easy.  perl 6 understands the concept of infinity08:46
+perlDreamerin perl 5 you're stuck08:46
+perlDreamersee if you can catch preaction tomorrow.  He's full of good and sneaky ideas for this kind of stuff08:47
xdangerI was thinking about adding something like $var = sprintf("%.2f", $x / ($y + 0.000000000001));08:47
Radix-wrkthere's no try/catch stuff in perl?08:47
+perlDreamerthere is, on a 1 by 1 basis08:47
xdangerthere is eval {}; and $@08:47
xdangerhttp://www.cit.gu.edu.au/~anthony/info/perl/exceptions08:48
+perlDreamerbut no way to do it across an entire script, unless you wrap the whole script in the eval.08:49
xdangerand then again the whole eval just fails =P08:50
+perlDreamerright08:50
-!- perlDreamer [n=colink@pool-71-117-209-62.ptldor.fios.verizon.net] has quit [""good night""]08:50
xdangerI was hoping for something like "use weird_devision_by_zero_fix;" kinda solution ;)08:51
-!- crythia1 [n=Gerald@c-68-51-234-189.hsd1.fl.comcast.net] has joined #webgui09:35
-!- crythias [n=Gerald@c-68-51-234-189.hsd1.fl.comcast.net] has quit [Read error: 110 (Connection timed out)]09:53
-!- Radix-wrk [n=Jesse@203.161.68.67] has quit ["Leaving"]10:00
-!- crythia1 [n=Gerald@c-68-51-234-189.hsd1.fl.comcast.net] has quit [Read error: 110 (Connection timed out)]10:35
-!- snapcount [n=royjohns@10.207.189.72.cfl.res.rr.com] has joined #webgui11:09
-!- mode/#webgui [+o snapcount] by ChanServ11:09
-!- pjesi_ [n=pjesi@client-86-27-130-79.winn.adsl.virgin.net] has quit ["Konversation terminated!"]11:13
-!- crythias [n=Gerald@c-68-51-234-189.hsd1.fl.comcast.net] has joined #webgui11:15
-!- mode/#webgui [+v crythias] by ChanServ11:15
-!- crythias [n=Gerald@c-68-51-234-189.hsd1.fl.comcast.net] has quit [Read error: 104 (Connection reset by peer)]11:15
-!- snap_learner [n=royjohns@10.207.189.72.cfl.res.rr.com] has quit [Read error: 110 (Connection timed out)]11:25
-!- MrHairgrease [n=martin@194.171.50.114] has joined #webgui15:24
-!- mode/#webgui [+v MrHairgrease] by ChanServ15:24
-!- bopbop [n=kristi@68-114-216-78.dhcp.mdsn.wi.charter.com] has joined #webgui16:02
-!- bopbop_ [n=kristi@68-114-216-78.dhcp.mdsn.wi.charter.com] has joined #webgui16:15
-!- bopbop [n=kristi@68-114-216-78.dhcp.mdsn.wi.charter.com] has quit [Read error: 104 (Connection reset by peer)]16:15
-!- bopbop_ [n=kristi@68-114-216-78.dhcp.mdsn.wi.charter.com] has quit [Client Quit]16:16
-!- bopbop [n=kristi@68-114-216-78.dhcp.mdsn.wi.charter.com] has joined #webgui16:19
-!- rizen [n=rizen@71-86-227-90.static.mdsn.wi.charter.com] has joined #webgui16:55
-!- mode/#webgui [+o rizen] by ChanServ16:55
-!- mode/#webgui [+o bopbop] by preaction17:32
@snapcountakjg;alkdfjaoiehgioerjnfao[';snc17:35
@preactionreally?17:37
ckotilthats the word on the street17:37
@rizenThis is the new --status screen from the spectre command line: http://rafb.net/p/pi0btX35.html17:42
@rizenit allows you to see what's happening inside of spectre at any given time17:42
ckotilvery nice.17:43
@rizencan any of you think of any way to make the screen more useful for debugging purposes?17:43
ckotilthe activities contained in the workflows perhaps?17:44
@rizenunfortunately spectre doesn't know that17:44
ckotilk17:44
@rizenspectre doesn't know much...for security's sake17:44
ckotilthat makes sense17:45
@preactionwould it know the last activity it tried to run?17:47
@preactionthat might be useful, for figuring out error and comm error statusi17:48
@rizenno it doesn't know any activities17:53
@rizenwhat it does is says, "Webgui, here's the instance that's ready to run....do it17:54
@rizenand then webgui looks up the next activity17:54
@rizenat least with this screen you have site name and instance id17:54
@rizenfrom there you can go look up the other stuff in the database17:54
@rizeni know it's not perfect...it's just what i can do with the data i have17:54
-!- khenn [n=fdillon@66-190-54-175.dhcp.mdsn.wi.charter.com] has joined #WebGUI17:54
-!- mode/#webgui [+o khenn] by ChanServ17:55
@rizento take this to the next level i'd like to display a similar screen inside of webgui's UI17:55
@rizenbut it needs to filter out the data so that it only shows the stuff for that particular site17:55
@rizenonce we have that, then we can do a drill down17:55
@rizenand show activities, workflows, etc17:55
@rizencuz webgui does know all this stuff17:56
ckotilanyone know if there is an rfe for transferring assets/workflow/karm/etc.. between webgui sites?18:05
ckotilusers/groups/configs?18:06
@rizennot that i'm aware of18:07
@rizenthere is one about users and single sign on18:08
@rizenwhich would do that for users18:08
@rizengenerally speaking, if you need somthing like that18:08
@rizeni'd suggest running a bunch of sites out of the same webgui instance18:08
ckotilthatd be an amazing feature. but i think first there would need to be a web services interface built in first. like soap18:08
ckotilthats what i do now.18:08
ckotilthey are each contained beneath there own page layout.18:09
ckotilthen i use mod_rewrite to rewrite the domain18:09
@rizenyup18:09
ckotilim happy with the way it worked out.18:09
@rizenit's easily the best way to do it when you need to share resources like that18:09
ckotilindee18:09
ckotild18:09
@rizenmany of our clients do the same thing18:09
-!- bopbop_ [n=kristi@68-114-216-78.dhcp.mdsn.wi.charter.com] has joined #webgui18:11
-!- bopbop [n=kristi@68-114-216-78.dhcp.mdsn.wi.charter.com] has quit [Read error: 104 (Connection reset by peer)]18:11
ckotilhrmm.. just got your response about approval messages not processing macros18:14
ckotili need to include the date to an approval messafe18:14
@rizenit's easy to add if you want to one off it18:15
@rizenlook at the NotifyAboutUser.pm activity, compared to the NotifyAboutVersionTag.pm activity18:15
@rizenthe first one does process macros18:15
ckotilok18:16
* ckotil takes note18:16
--- Log closed Fri Feb 02 18:20:45 2007
--- Log opened Fri Feb 02 20:06:34 2007
-!- xdanger [i=xdanger@i.should.be.in.a.mentalhouse.net] has joined #webgui20:06
-!- ServerMode/#webgui [+ns] by leguin.freenode.net20:06
-!- Irssi: #webgui: Total of 1 nicks [0 ops, 0 halfops, 0 voices, 1 normal]20:06
-!- Irssi: Join to #webgui was synced in 3 secs20:06
!leguin.freenode.net *** Notice -- TS for #webgui changed from 1170439594 to 116452337520:06
-!- khenn [n=fdillon@66-190-54-175.dhcp.mdsn.wi.charter.com] has joined #webgui20:06
-!- greghacke [n=greghack@c-24-23-66-147.hsd1.mi.comcast.net] has joined #webgui20:06
-!- wgGuest12 [n=wgGuest1@cp43027-a.gelen1.lb.home.nl] has joined #webgui20:06
-!- perlDreamer [n=ckuskie@nat064.mxim.com] has joined #webgui20:06
-!- rizen [n=rizen@71-86-227-90.static.mdsn.wi.charter.com] has joined #webgui20:06
-!- snapcount [n=royjohns@10.207.189.72.cfl.res.rr.com] has joined #webgui20:06
-!- ServerMode/#webgui [+ovoo khenn perlDreamer rizen snapcount] by irc.freenode.net20:06
-!- Hinrik [n=hinrik@dsl-228-236.hive.is] has joined #webgui20:06
-!- Radix__ [n=Radix@203.161.71.161.static.amnet.net.au] has joined #webgui20:06
-!- preaction [n=doug@static-72-1-4-143.ntd.net] has joined #webgui20:06
-!- TheSeparator [i=Seppie@cp43027-a.gelen1.lb.home.nl] has joined #webgui20:06
-!- perlbot [n=perlbot@lv.pm.org] has joined #webgui20:06
-!- gooeybot [n=gooeybot@static-72-1-4-143.ntd.net] has joined #webgui20:06
-!- ckotil [n=newtrino@snare.grnoc.iu.edu] has joined #webgui20:06
-!- pjesi [i=pjesi@klefi01.litlahraun.is] has joined #webgui20:06
-!- ServerMode/#webgui [+o preaction] by irc.freenode.net20:06
-!- irc.freenode.net changed the topic of #webgui to: WebGUI 7.3.820:06
greghacke*wonders at the sound of crickets*20:17
-!- wgGuest12 [n=wgGuest1@cp43027-a.gelen1.lb.home.nl] has quit []20:18
@preactionall the easy bugs are done, these are the hard ones, require concentration20:18
@preactioni'm trying to reproduce the IE problem when HTTPS sites proxy HTTPS sites and request a file from the proxied site20:19
greghackeSee, I figured everyone was napping.20:20
greghackewhat is the error?20:20
@preaction