Thursday, 2010-04-29

CIA-21Mantisbt: hickseydr * r101d87befda9 / (core/print_api.php manage_user_edit_page.php): Fix #11862: Preselect user's current access level in dropdown00:06
CIA-21Mantisbt: hickseydr master-1.2.x * r2f0fd38df55b / (core/print_api.php manage_user_edit_page.php): Fix #11862: Preselect user's current access level in dropdown00:06
*** Joins: kirillka (~Miranda@global01.vester.ru)00:38
*** Quits: micahg (~micah@ubuntu/member/micahg) (Ping timeout: 268 seconds)00:41
*** Joins: user_loser (~akp@c-98-229-26-105.hsd1.ma.comcast.net)00:41
user_loserhi, i change the IP address of my mantis server, now i can't connect to my DB... any one have any idea?s00:42
user_loseri get this for an error00:48
user_loserWarning: Invalid argument supplied for foreach() in /opt/mantisbt-1.1.6/core/database_api.php on line 28200:48
user_loserFatal error: 401 in /opt/mantisbt-1.1.6/core/database_api.php on line 18700:48
*** Quits: daryn (~INTERACT\@h68.10.96.216.dynamic.ip.windstream.net) (Quit: daryn)00:48
dhx_mcan you provide me with 3 lines either side of line 282 in database_api.php01:16
kirillkadhx_m: mo01:17
dhx_mkirillka: hi01:17
kirillkadhx_m: my mail with patch to mantis-dev send normal or you don't get it?01:19
kirillkagoogle bad worked with maillist :(01:19
dhx_mkirillka: I remember now, thanks for the reminder :)01:19
dhx_mI did see it... I'll get onto it in a moment01:20
dhx_mactually01:20
kirillkadhx_m: ok.. I don't receive own mail sending to maillist and can check sending correct or not01:20
dhx_mis it ok to wrap emails at anything other than 80 characters?01:20
kirillkadhx_m: I test in my company - this work correct, I can send copy of mails..01:21
kirillkadhx_m: I can send before this changes and after01:21
kirillkadhx_m: may be need update phpmailer?01:22
dhx_mkirillka: see http://www.ietf.org/rfc/rfc2646.txt01:22
dhx_mas the emails from MantisBT aren't quoting anything and don't get replied to, setting word wrap to 80 is fine01:23
kirillkadhx_m: yes, but in cyrillic not mail wrap less 80 chars01:24
dhx_mfor the record I hate the idea of inserting manual line breaks to wrap words :)01:25
dhx_mI think the client should do that01:25
kirillkadhx_m: may be.. But in mail body I see such as in client01:26
kirillkaДата изменения   Пользователь   Поле01:26
kirillkaИзменить01:26
kirillkathis must be in one line01:26
kirillka"Дата изменения   Пользователь   Поле01:26
kirillkaИзменить             "01:26
kirillkaone sec.. I send screen, where look better what I mean01:27
dhx_mok01:27
*** Quits: wolog (~wolog@AOrleans-152-1-85-26.w90-21.abo.wanadoo.fr) (Remote host closed the connection)01:31
kirillkadhx_m: http://yfrog.com/6c20100429082857p01:31
kirillkadhx_m: this screen from mantisbt.org01:31
kirillkadhx_m: this screen in my installation with patch http://yfrog.com/0q20100429083224p01:34
kirillkadhx_m: I think need check with newest version of phpmailer01:35
dhx_mkirillka: I think the problem is that the word wrap algorithm which phpmailer uses is CRAP01:37
dhx_mand it doesn't understand the difference between Unicode and ASCII01:37
dhx_mie. a Cyrillic character may be represented in 3 bytes01:38
dhx_mbut it should only count one character towards the line length01:38
kirillkadhx_m: 2 byte01:41
dhx_myep I'll try upgrading MantisBT to PHPMailer 5.1 (from 5.02)01:42
kirillkadhx_m: If you give me online repository - I can check on working mantis01:43
CIA-21Mantisbt: hickseydr master-1.2.x * r3b1a5b87e2b2 /core/filter_api.php: Fix #11764: Avoid collision of column names when ordering fields01:46
CIA-21Mantisbt: hickseydr * r8be869afafd7 /core/filter_api.php: Fix #11764: Avoid collision of column names when ordering fields01:46
dhx_mI'll push it to master if it works out ok01:47
kirillkadhx_m: may be in fork?01:51
kirillkadhx_m: may be better in fork?01:51
dhx_mok pushed02:00
CIA-21Mantisbt: hickseydr master-1.2.x * ree1a231fbb68 /library/ (10 files in 3 dirs): Upgrade PHPMailer from 5.02 to 5.102:01
CIA-21Mantisbt: hickseydr * rb3882f83370c /library/ (10 files in 3 dirs): Upgrade PHPMailer from 5.02 to 5.102:01
*** Quits: siebrand (~beis@sm.xs4all.nl) ()02:02
*** Joins: Cupertino (~Cupez@unaffiliated/cupertino)02:31
kirillkadhx_m: http://yfrog.com/2o20100429093533p not help.. set $g_email_wrapping_length = 80;02:37
kirillkaX-Mailer: PHPMailer 5.1 (phpmailer.sourceforge.net)02:37
*** Joins: giallu (~giallu@fedora/giallu)02:43
*** Quits: user_loser (~akp@c-98-229-26-105.hsd1.ma.comcast.net) (Ping timeout: 265 seconds)02:47
*** Joins: wolog (~wolog@195.6.104.193)02:55
*** Joins: bodie (~bodie@fcnoos-nd-fw01.freecode.no)04:25
bodieHi all, someone here?04:25
bodieI want to ask about something. I upgraded to latest stable and now when I login as administrator I can see in Manage configuration - Action just for delete04:26
bodieCan't see other actions. What can be wrong?04:26
bodieno one know?04:30
*** Joins: rolfkleef (~rolf@urtica.xs4all.nl)04:31
*** Quits: rolfkleef (~rolf@urtica.xs4all.nl) (Remote host closed the connection)04:33
bodiehmmm, is it really help channel? :D04:44
paul_dhx_m: awake yet?05:08
paul_er05:09
paul_didn't I already push phpmailer 5.1 to trunk??05:09
bodieIs there a new version of print_all_bug_page_excel.php for 1.2.0 or 1.2.1 ? Because it's not in default install05:15
paul_iirc, it got renamed05:16
bodie?05:18
bodieto which one?05:19
bodieBecause after upgrade I can see only Word and IE icons for export on Summary page05:19
bodiethis one? http://bugtracker.morinie.fr/mantis/dokuwiki/doku.php?id=mantis:13:start05:20
bodieI installed it Import/Export issues 1.005:20
bodieeven after install of this plugin still just Word and IE export option for Summary05:22
kirillkapaul_: lo. not05:31
kirillkabodie: all plugins from this site only for 1.x.x version05:32
bodiekirillka: done, it's running05:43
*** Joins: rolfkleef (~rolf@urtica.xs4all.nl)06:40
*** Joins: fanno (~b3g@193.3.95.240)07:14
*** Joins: Watergad (~Watergad@62.140.250.221)07:22
*** Quits: rolfkleef (~rolf@urtica.xs4all.nl) (Ping timeout: 240 seconds)07:41
WatergadThanks for the help (:08:03
WatergadWhile preparing to expound my problem here, I've found the solution )08:03
*** Joins: rolfkleef (~rolf@82-204-82-162.fttx.bbeyond.nl)08:07
*** Quits: bodie (~bodie@fcnoos-nd-fw01.freecode.no) (Quit: Leaving.)09:02
*** Quits: Watergad (~Watergad@62.140.250.221) (Quit: Just left.)09:05
*** Quits: wolog (~wolog@195.6.104.193) (Remote host closed the connection)09:16
*** Joins: daryn (~INTERACT\@rrcs-76-79-4-2.west.biz.rr.com)09:17
*** Quits: daryn (~INTERACT\@rrcs-76-79-4-2.west.biz.rr.com) (Client Quit)09:17
*** Joins: daryn (~INTERACT\@rrcs-76-79-4-2.west.biz.rr.com)09:18
*** Joins: wolog (~wolog@195.6.104.193)09:19
dhx_mpaul_: hi09:20
paul_dhx_m: .09:25
dhx_mpaul_: no way! it's impossible.... we meet! :D09:25
paul_I swear i'd already updated to that phpmailer ;/09:26
paul_anyway09:27
paul_re that db change09:27
paul_i'm not sure if you've just broken something or not :P09:28
paul_I *think* sometimes it might have passed in db.field09:28
paul_however09:28
paul_assuming you are right09:28
paul_on the 2nd set of those diff's09:28
paul_you can delete the 2 lines above the code you changed in the diff right?09:28
paul_you've gone :(09:30
dhx_mthat is what I thought too09:31
dhx_mand it tells me we're currently using ADOdb 5.09a when I'm sure we updated to 5.10?09:31
dhx_mis the repository broken?09:31
paul_?09:33
dhx_mah09:33
dhx_mit's just README.txt that's incorrect09:33
dhx_mthere is a new ezC too which I'll update09:34
paul_i'll do ezc09:34
paul_as we didn't do all of it09:34
paul_(fwiw09:34
paul_only reason we've not updated ezc is they've not changed the graphing module09:35
paul_and iirc, the things we needed, i'd already included from their svn)09:35
dhx_moops too late09:36
CIA-21Mantisbt: hickseydr * r2b04a3a38d23 /library/README.libs: List correct version of ADOdb as 5.1009:36
CIA-21Mantisbt: hickseydr master-1.2.x * r838b3b3ae7ed /library/ (151 files in 25 dirs): Upgrade ezComponents from 2009.1.2 to 2009.2.109:36
dhx_mI did realise we only took part of ezC :)09:36
CIA-21Mantisbt: hickseydr * rb05d56b7f4cd /library/ (151 files in 25 dirs): Upgrade ezComponents from 2009.1.2 to 2009.2.109:36
CIA-21Mantisbt: hickseydr master-1.2.x * re24a2bc828de /library/README.libs: List correct version of ADOdb as 5.1009:36
paul_also09:36
paul_you've changed linefeeds in the phpmailer stuff09:36
dhx_mthat's the same as upstream09:36
dhx_mwhich IMO is better than us modifying it09:36
paul_not if i'd already done php5.1 ;p09:37
paul_what it probably means is09:37
paul_you've taken a different tarball then my scripts09:37
paul_so when I next sync it09:37
paul_it'll go back ;/09:37
dhx_m?09:37
dhx_mso ezC was patched?09:37
paul_nah09:38
dhx_mREADME.libs didn't indicate that :p09:38
paul_it was 'patched' at one point in that I'd taken svn code that was about to be released09:38
paul_as opposed to a released version09:38
dhx_mah ok well 2009.2.1 is still newer :p09:38
paul_what I do however normally do09:38
dhx_mso it should include all the fixes you needed09:38
paul_is09:39
paul_I have library did on pc09:39
paul_for original version09:39
paul_for new version09:39
paul_and for mantis version09:39
paul_then 3-way merge any differences09:39
dhx_mwe really need to create a separate directory of patches09:39
paul_joh doesn't like nested repo's09:39
dhx_mto make it easier to upgrade between versions (just apply the patches)09:39
paul_so now that you've applied the same version of phpmailer with different line feeds09:40
dhx_mit's a different version (5.1 vs 5.02)09:40
paul_it's likely it'll make my 3-way merge more difficult09:40
paul_mm09:40
paul_I thought it was 5.1?09:40
paul_7 hours ago David Hicks Upgrade PHPMailer from 5.02 to 5.1 blob | commitdiff09:41
paul_2009-12-18 Paul Update phpmailer to 5.1 blob | commitdiff | diff to current09:41
paul_in fact now i remember09:41
paul_you updated phpmailer/adodb09:42
paul_but didn't include our mssql addob patches09:42
paul_so I reverted both, then updated09:42
dhx_moh yeah the diff is just whitespace changes ;/09:42
dhx_mI went off README.libs which hadn't been updated09:42
dhx_mbut still, I think it's best to keep upstream's original files where possible09:42
paul_I suspect those got lost in the reverting reverts09:42
paul_upstream iirc, do a .tar.gz and a .zip09:43
dhx_mespecially when we say in README.libs that it's unpatched09:43
paul_and a .bx2 or whatever09:43
dhx_mI used the .tar.gz09:43
paul_with different linefeeds09:43
paul_I've always done the updates as a 3-way merge as:09:44
paul_a) we tend to sneak changes/fixes in09:44
paul_b) 'adodb'  can't do a release09:44
paul_or more, adodb is a bit random with what gets changed09:44
paul_so it's nice to keep an eye on09:45
dhx_mboth the .zip and .tar.gz use Windows line spacing for the 5.1 release09:46
dhx_myep09:46
dhx_mI just don't like 3 way merges because from the perspective of users... they don't know how we've modified it differently to a standard version of the library09:47
dhx_mit's black magic09:47
paul_sorry09:47
paul_i tend to then move comlpete files09:47
paul_and hopefully make a note in the library.readme file (which iirc you deleted :P) of how we modify them :P09:47
dhx_mit's still not as good as providing patches with the library09:48
dhx_mso people can see what patches we've applied09:48
dhx_mthat way it is easier for distro maintainers to package mantisbt with system shipped versions of these libraries09:48
paul_I prefer my solution09:48
paul_stop using adodb09:48
paul_:)09:48
dhx_myes that is #1 :)09:48
paul_I want to use moodle's setup09:49
dhx_mI was so surprised to see a new NuSOAP release btw!09:49
paul_it's not really new09:49
dhx_mhow many years has it been?09:49
paul_look at what's changed ;p09:49
dhx_mI thought the project was dead09:49
paul_well09:50
paul_one thing that's changed is the linefeeds ;/09:50
paul_+- nusoap_xmlschema: replace regex function calls (ereg, eregi, split) with PCRE calls (preg_match, preg_split) (thanks Pier-Luc Duchaine)\r+- wsdl: replace regex function calls (ereg, eregi, split) with PCRE calls (preg_match, preg_split) (thanks Pier-Luc Duchaine)\r09:51
paul_so change 1: linefeeds09:51
paul_change 2: pcre replaces we'd already done09:51
paul_change 3: soap_transport_http: remove call to deprecated function set_magic_quotes_runtime09:51
paul_(we hadn't done)09:51
paul_-09:52
paul_nusoap_server: check that value is an object before calling get_class (thanks Pier-Luc Duchaine09:52
paul_nusoap_client: do not assign the return value of new by reference (it is deprecated) (thanks Pier-Luc Duchaine09:52
paul_^ we'd done some of that i believe09:52
*** Quits: fanno (~b3g@193.3.95.240) (Quit: Leaving.)09:53
paul_although, I am tempted to check later whether the linefeed change comes up09:53
paul_as an issue for when I next update09:53
paul_by re-downloading09:53
dhx_mthey've fixed linefeeds... or broken them?09:57
*** Quits: kirillka (~Miranda@global01.vester.ru) (Quit: kirillka)10:03
nuclear_eclipsedhx_m: mdile 10:03
nuclear_eclipseoops10:04
dhx_m:)10:04
nuclear_eclipsewhile you're here...10:04
dhx_mishakq asod?10:04
nuclear_eclipseI have a point to make about db_get_table()10:04
nuclear_eclipseit's a step farward, but it literally breaks every plugin written for 1.2...10:05
nuclear_eclipseI'd like to see a compromise in place10:05
dhx_mwell the real issue is that plugins need to be branched for 1.2.x and 1.3.x10:05
dhx_mIMO10:06
dhx_mother things could change in the core (bug fixes, improvements, etc) that would cause the same problem10:06
nuclear_eclipseeg. what if we made the new implementation a separate function, and update the references in mantis to use the new function name, and then create a compat version of db_get_table that will act as a backward-compatible layer on top of the new method?10:06
dhx_mpotentially... but then we start introducing code smell (aka #ifdef hell in other programming languages)10:08
nuclear_eclipsewell, not really10:08
nuclear_eclipseI'm thinking something like:10:08
dhx_mat some point in the future we'd drop the old db_get_table() function... so all we're doing is delaying the inevitable10:08
dhx_mwhen plugin authors should really be forking their plugins to match the MantisBT branches10:09
dhx_mIMO we only need to maintain backwards compatibility in minor versions (1.x.?) but things can change in 1.?.x versions10:09
dhx_mand in many ways I'd prefer that plugin authors keep up to date with the latest core developments10:10
dhx_mfor instance, if we were to see daryn's proposed filter changes in 1.3.x, that'd also break plugin compatibility10:10
nuclear_eclipsewhy would it?10:11
dhx_mwell I assume it would as some filter IDs are modified10:11
nuclear_eclipsehis filter changes sholudn't break the existing filter/columns events, afaik10:11
darynthe filter id's shouldn't matter.  i am using the plugin model as an example but it is still possible i could break it10:13
dhx_mmy point really is that if we wanted to redesign part of MantisBT... are we going to be held back by the need to maintain backwards compatibility for plugins?10:14
dhx_mIMO the plugins need to be branched to match each version of MantisBT (stable and development)10:14
dhx_mand then we guarantee to plugin authors that minor 1.x.x releases won't break compatibility10:14
nuclear_eclipsewell, my point is why are we completely breaking compatibilty for silly things like db_get_table()?10:14
dhx_mbut 1.x releases may10:14
nuclear_eclipseit's one thing to break compat on a large change, but when you could maintain compatibility just by adding a small, simple function to the API, it seems like a no-brainer to me...10:16
dhx_mis there a plugin_get_table command?10:16
nuclear_eclipseie, I'd like to see a db_table() function than behaves like plugin_table, and then keep db_get_table() at least for a while so we're not completely breaking old plugins on our first feature release...10:17
nuclear_eclipseit just seems counter-intuitive to not want to minimize effort for plugin developers10:17
nuclear_eclipseall of my plugins would work 100% in 1.3-dev right now if not for the changes to db_get_table(), and than change doesn't really even serve a purpose other than cleaning up a bit of code that nobody really looks at =\10:19
dhx_mthe problem I see with that approach is we're indefinitely delaying changes10:19
nuclear_eclipseno, the point is that we're cleaning up the codebase without affecting plugins10:19
dhx_mand while db_get_table is insignificant... if we have multiple changes like this, you get inconsistencies in codebases10:20
dhx_mso one plugin might use db_get_table(), core might use db_table(), etc10:20
dhx_mwhich sucks if you're wanting to grep for all instances of db_get_table10:20
dhx_mfor instance10:20
nuclear_eclipsewe don't need to maintain the old implementation of db_get_table(), just make it strip mantis_ and _table from the param and tehn pass it to db_table() with the new implementation10:20
dhx_myep but it's two ways of achieving the same outcome10:20
dhx_mso at some point of time we're going to have to make plugin authors update10:21
dhx_mI agree that giving plugin authors one release grace may work10:21
nuclear_eclipseyes, but tbh, if you're asking plugin authors to maintain forks/branches of their codebase for every feature release of Mantis, you'll soon not have any plugin authors left10:21
nuclear_eclipsenot even Mozilla does that10:22
dhx_mbut if we've got big API changes (bug_api OO overhaul last year) then plugins will need to update anyway10:22
nuclear_eclipseyes, but that's a feature change10:22
dhx_mMozilla plugins are specified by authors to work on specific version ranges of Firefox10:22
nuclear_eclipsethere's a difference between a feature change and a API change for sake of API change10:22
dhx_mso many of them don't currently work with 3.7 for instance10:22
dhx_mit's essential that plugin authors know how to branch their plugins against 1.2.x and 1.3.x so we can't really avoid that complexity10:24
gialluoh10:24
nuclear_eclipsemy point is just that it would be a very simple change to support backward compatibility, so why aren't we doing it?10:24
nuclear_eclipsehi giallu 10:24
gialluso we're already at the "plugin hell" stage I predicted some time ago ? ;)10:24
gialluHi John10:24
nuclear_eclipsegiallu: only because of dhx_m ;)10:25
gialluand everbody10:25
nuclear_eclipsegiallu: did you get my email about mantisbot?10:25
dhx_mI guess I'm just taking a very polarised view on the issue because I'm thinking ahead for when plugin hell really does become an issue10:25
gialluyeh, I was out of town, just got back to mail mails today10:25
nuclear_eclipseok10:25
dhx_mthe fundamental issue is... do we train our plugin authors the "right way" (branching, keeping their plugins updated continuously rather than after a release, etc)10:26
nuclear_eclipsedhx_m: IMO, stuffing back-compat is not how you solve plugin hell...10:26
nuclear_eclipsewell, plugin authors will never do things the "right way" in the first place, so try your damnedest10:27
nuclear_eclipseto make it easy for them10:27
dhx_mwell the solution IMO is to "train" plugin authors to keep tabs on core development so they can update their plugins to match changes in core as they happen10:27
dhx_mrather than allow plugin authors to wait for 1.3.0 and then be faced with huge changes (with users annoyed that the plugin won't work with the new stable release)10:27
nuclear_eclipseand as I'm working on plugins, I don't want to be porting every single commit between multiple branches just because core decided to change an API method without a real feature attached to it ...10:28
dhx_mcan we encourage more plugins to become part of the core project?10:28
nuclear_eclipseplease no10:29
nuclear_eclipseas few plugins in core as possible10:30
dhx_mwon't that reduce the quality of those plugins and make it harder for users to use?10:30
*** Quits: daryn (~INTERACT\@rrcs-76-79-4-2.west.biz.rr.com) (Remote host closed the connection)10:30
dhx_mthere is no longer a central bug tracker and repository for all the plugins to use10:31
nuclear_eclipsekeeping plugins out of core means that core doesn't get clogged with a lot of cruft10:31
*** Quits: Cupertino (~Cupez@unaffiliated/cupertino) (Quit: I give up...)10:31
nuclear_eclipsebesides, the whole point of mantisforge was originally that paul'd be adding things for all plugin authors to use in a central location10:32
dhx_mwell I didn't want to include every crap plugin... just the high quality ones which have plenty of users and developer interest10:32
nuclear_eclipsealthough it seems he's lost track of that10:32
nuclear_eclipsedhx_m: at that point, it becomes politics, and that's even worse than cruft10:32
paul_dhx_m/nuclear_eclipse10:32
paul_db_get_Table10:32
*** Joins: daryn (~INTERACT\@rrcs-76-79-4-2.west.biz.rr.com)10:32
paul_i'm quite confident that we'll end up with seperate plugins for 1.3410:33
*** Quits: dhx_m (~anonymous@c122-107-157-71.eburwd5.vic.optusnet.com.au) (Ping timeout: 248 seconds)10:36
nuclear_eclipsedhx get mad at me?10:41
paul_ya10:41
paul_anyway10:42
paul_I still want to pull adodb out at some point10:42
*** Joins: micahg (~micah@ubuntu/member/micahg)10:48
*** Quits: giallu (~giallu@fedora/giallu) (Ping timeout: 265 seconds)11:17
*** Quits: rolfkleef (~rolf@82-204-82-162.fttx.bbeyond.nl) (Ping timeout: 258 seconds)11:34
paul_nuclear_eclipse: still there?11:44
*** Joins: moto-moi (~hylke@cara.xs4all.nl)11:51
nuclear_eclipseyep11:59
paul_need ldap setup on mantisbt.org12:04
paul_tbh12:04
paul_need ubuntu on mantisbt.org12:04
darynuh oh...another ubuntu convert12:04
paul_ldap12:05
*** Joins: dhx_m (~anonymous@c122-107-157-71.eburwd5.vic.optusnet.com.au)12:12
nuclear_eclipsewelcome back dhx_m12:13
dhx_mnuclear_eclipse: yep... I accidently used the magic sysrq key ;/12:13
nuclear_eclipsedid you ragequit on me? :P12:13
dhx_mwell long story... I ran out of memory so did SysReq+O to use the OOM killer12:13
nuclear_eclipsehow do you run out of memory on a system with virtual memory?12:14
dhx_mfor some reason I thought SysRq+O was "out of memory killer" when it is actually "shut off the system immediately" :p12:15
dhx_mI don't use virtual memory heh12:15
nuclear_eclipsedoh12:16
*** Quits: micahg (~micah@ubuntu/member/micahg) (Ping timeout: 260 seconds)12:17
nuclear_eclipseanyways12:17
nuclear_eclipsedhx_m: http://mantis.pastebin.com/KgkC8m9L12:18
dhx_mpreg_match seems fairly heavyweight12:19
nuclear_eclipsewell, that's just the basic idea12:19
nuclear_eclipseI'm sure there's a quicker way12:20
nuclear_eclipseie, a pair of substr calls?12:20
dhx_mI won't mind if you make this change... I'm just arguing from the perspective that plugin authors should be updating their plugins to match the latest core development12:20
dhx_mif they don't, their plugins will probably die off shortly when they realise how behind they are with getting their plugins ready to work on 1.3.x12:21
dhx_mI guess it's two different development models12:21
dhx_mI'd be much happier if we had a deprecated_api.php containing deprecated stuff12:21
dhx_mand/or some sort of warning/log system that logs when deprecated stuff is used12:21
nuclear_eclipsewell, I generally agree; this specific case just makes things a pain in the ass because it's more or less requiring you to maintain to nearly identical copies of your plugin for no feature change... =\12:22
dhx_mso that plugin authors can quickly get an idea of what they need to change12:22
dhx_mI guess... but it's a problem plugin developers will face in the future12:22
dhx_mso if they don't address it now, they'll still have to address it in the future12:23
nuclear_eclipsewell, it's a different class of problem, is what I'm getting at12:23
nuclear_eclipseif we change Bug API to restructure everything, that's a feature change, and requires a rework of code everywhere that uses it12:23
nuclear_eclipsechanging the parameter to db_get_table to drop the leading/trailing string doesn't affect *how* it's used, it just expects different strings now12:24
nuclear_eclipseso you'd end up with two identical branches, save for a 1-line everywhere you need to access a core table, which btw is enough to break the ability to cherry-pick changes between those branchs if the change is near that line...12:25
nuclear_eclipsemeaning it would a big pain in the ass to have to maintain those two branches that are otherwise identical12:25
nuclear_eclipseif there was a feature change of some sort, you're not going to need to cherry-pick commits 1:1 between otherwise-identical branches12:26
dhx_mwell at the moment most of the plugins aren't really versioned12:28
dhx_mso there is no difference between development/stable versions12:29
dhx_mI would expect that MantisBT plugins are forced to follow the development cycle of the MantisBT core itself12:29
nuclear_eclipseI would generally agree, yes12:29
dhx_mie. stable branch for bugfixes, development branch for new features12:29
dhx_motherwise it becomes unwieldy for plugin authors to ensure that their plugins work properly on multiple major versions of MantisBT12:30
nuclear_eclipsebut atm, other than db_get_table, there isn't any need for that yet, and plugins most certainly aren't going to care much about 1.3 until we actually get to a point of releasing some sort of beta/RC12:30
dhx_mas you said, backporting becomes a PITA12:30
dhx_mI agree... all I'm saying is that these changes are simply delaying a problem rather than fixing it :)12:31
nuclear_eclipsemy biggest issue is that whenever I switch to maste branch in git, my plugins die because of db_get_table... =\12:31
dhx_m(temporary fix, not a long term fix)12:31
dhx_myep I understand12:32
nuclear_eclipsewell, ultimately, if db_get_table is the only thing that breaks plugins from 1.2 to 1.3, then we look like asshats... =\12:32
dhx_mI agree with that completely12:32
dhx_mbut I doubt it'll be the only thing :)12:32
dhx_mis there a way to mark functions as deprecated?12:33
dhx_mso that plugin authors know a better alternative exists?12:33
nuclear_eclipsenot really, other than in the comments above the function12:33
dhx_malthough it doesn't solve the problem12:33
dhx_mas they CAN'T switch to using the new feature as it'll stop their plugin working against 1.2.x12:34
dhx_mso they'll forever be using deprecated functions12:34
nuclear_eclipseright, either the plugin needs to have a bunch of if/else statements against the mantis version, or they need to maintain branches of the plugin; either option is painful12:35
nuclear_eclipseI just want to reduce the pain wherever we can12:35
nuclear_eclipsebecause tbh, most of my development these days happens in plugins12:35
nuclear_eclipsebut getting to the above mention of asshats, I'd like to hit quicker release cycles, so who knows what will or won't hit 1.312:36
dhx_mI'm going to hit anyone who does PHP #ifdef in their plugins :p12:37
dhx_myep quicker release cycles are good IMO12:38
nuclear_eclipseI'm tempted to say we should shoot for a January/July, 6-month release cycle, but we always come back to the problem of not having enough developer time to handle quick RC12:38
paul_db_table/ db_get_table12:38
paul_TBH12:38
paul_who cares12:38
dhx_mwell 1.3.x has a new admin/check/ script and a few other token "features" (hardly)12:38
nuclear_eclipseie, if we drop an RC, we don't respond quick enough to bug reports against the RC to get a stable version out12:38
paul_for 1.312:38
paul_they'll probably need to update anyway12:39
paul_nuclear_eclipse: part of the problem with that is we have 1000+ bug reports12:39
nuclear_eclipsepaul_: I care, because db_get_table is the only change in 1.3 that breaks my plugins, otherwise they work in both 1.2 and 1.3 just fine12:39
dhx_mI'm really just worried about having plugin authors who don't understand the need to maintain different branches of their plugin (for different versions of MantisBT)12:39
paul_I want to replace adodb ;p12:40
paul_that'll break your plugins :P12:40
dhx_mand as such they'll rely upon deprecated MantisBT features as they're locked into them by the need to support older MantisBT versions12:40
nuclear_eclipsepaul_: that will break everything12:40
nuclear_eclipsedhx_m: I don't think there's any good solution for that period, other than letting stupid developers release crappy stuff =\12:41
dhx_mwell if we have 6 month major releases of MantisBT12:42
paul_nuclear_eclipse: yes ;)12:42
paul_nuclear_eclipse: hence dont care about db_table/db_get_table :P12:42
dhx_mand X months bugfixing support for older releases... and Y months security support... (or whatever)12:42
nuclear_eclipsepaul_: you're gonna have to at least keep the adodb datadict stuff, right?12:43
paul_can we agree minimum php version for 1.3.x?12:43
dhx_m5.2?12:43
paul_nuclear_eclipse: fuck knows - i've got an idea of what i want to use / do12:43
paul_just not had time to look12:43
paul_however12:43
paul_it's not really the datadict stuff i'm looking at 'fixing'12:44
dhx_mplugin developers would be locked into out 6 monthly cycle too12:44
paul_so yes, I think if we changed, we'd keep existing stuff too12:44
dhx_mhence it works best for them if they release new features to coincide with MantisBT core releases12:45
nuclear_eclipsepaul_: as long as the datadict/schema definitions stay the same, it shouldn't break plugins then12:45
dhx_mrather than try to add new features to their plugins for 1.2.x releases12:45
dhx_magain it comes back to time and resources... it's very expensive to maintain multiple branches12:45
paul_nuclear_eclipse: want to change how we handle queries a bit ideally12:45
dhx_mwhich is why we dropped 1.1.x :p12:45
paul_hmm, hometime soon12:46
nuclear_eclipsepaul_: changing from adodb to XYZ wouldn't need to change our existing database_api...12:46
nuclear_eclipseotherwise wth was all the work for in coming up with db_query_bound if you're just going to scrap it?12:47
dhx_mdo we ever use db_query_bound with boundaries?12:47
nuclear_eclipsebound = bound paramaters12:48
nuclear_eclipseand we do use that all the time :P12:48
dhx_mah, not "paged results"?12:48
paul_nuclear_eclipse: my issue is trying to work out how to use the new Microsoft driver for sql12:48
nuclear_eclipsepaged results have been possible with normal db_query for as long as it's been around12:48
dhx_mah :)12:49
paul_I need to look at the new CTP of http://blogs.msdn.com/sqlphp/12:49
paul_the old version aka v112:49
paul_wanted to know data types12:49
paul_aka db_query_bound doesn't help :(12:49
paul_at same time, i've been thinking more and more that moodle's db layer supports the db we are trying to support12:50
paul_and abstracts off INSERT queries into some function i.e. equiv of db_insert(table, values) or something12:51
paul_tbh, first things first12:51
paul_need to look at what MS have done12:51
nuclear_eclipsepaul_: if it needs to know data types, can't you figure that out just by using php's typeof() ?12:51
paul_need to have another look tbh12:54
paul_and also look against the new version12:54
paul_bbiab12:55
nuclear_eclipsedhx_m: I pushed a quick commit to http://git.mantisforge.org/w/mantisbt/jreese.git?a=shortlog;h=refs/heads/db_table12:58
nuclear_eclipsemoves db_get_table to db_table, and covers updating all usage of db_get_table to db_table12:59
dhx_mnuclear_eclipse: looks good to me in terms of the patch12:59
nuclear_eclipseonly concern would be finding a faster version of preg_match12:59
dhx_mwait no13:00
dhx_myou have defined function db_table(...) twice :)13:00
nuclear_eclipselol13:01
nuclear_eclipsehow did php not complain when I tested it...?13:01
dhx_malso is it possible to add a comment to say that the function may be removed in favour of db_table() in the near future?13:01
dhx_mso that people clearly know which one to use in preference?13:01
darynadd @deprecated to the function comment for db_get_table13:03
nuclear_eclipseyeah, I gotta get some lunch, I'll take care of that, add some better comments, etc when I get back13:03
dhx_malso check the final patch against http://git.mantisbt.org/?p=mantisbt.git;a=commit;h=c8f355d04fb5120545d890ea2a7b2e2b6afc9b6c13:05
dhx_mto make sure you get all the required files :)13:05
*** Quits: wolog (~wolog@195.6.104.193) (Remote host closed the connection)13:11
*** Joins: philip_ (~philip_@c-76-104-185-25.hsd1.wa.comcast.net)13:18
*** Quits: philip_ (~philip_@c-76-104-185-25.hsd1.wa.comcast.net) (Changing host)13:18
*** Joins: philip_ (~philip_@unaffiliated/philip)13:18
nuclear_eclipsedhx_m: good call, I used sed, but didn't think about files in admin/api/plugins13:25
philip_allowing anonymous comments to bug reports is allowed, right?13:26
philip_if so, what sort of spam measures are implemented?13:26
nuclear_eclipsephilip_: none13:27
philip_so anonymous comments cannot be allowed?13:27
nuclear_eclipsethey're allowed only if you create the anonymous account with permission to attach notes13:27
philip_in which case users would need to login as that user?13:28
nuclear_eclipseie, if the access level you assign to the anonymous account is high enough to attach bugnotes, then they can attach bugnotes13:28
philip_hmm, so essentially the answer is no, it's not allowed13:28
nuclear_eclipseonce you enable anonymous access and attach it to the account you created, any user that's not logged in will be "using" the anonymous account you created13:29
*** Joins: fanno (~Morten@90.184.93.233)13:29
philip_just exploring options for php.net, we sorta require anonymous users, but worry about spam13:29
nuclear_eclipsephilip_: with the plugins in 1.2, I've created an Akismet plugin that should help to prevent spam, but I never was able to get their API to 13:30
nuclear_eclipse...13:30
nuclear_eclipseI couldn't get the Akismet API to actually return a result other than ham, so I still ended up with spam on my site13:30
philip_not a fan of captcha? :)13:31
nuclear_eclipseI'd be happy to receive patches to the plugin though to get it working13:31
nuclear_eclipsephilip_: captcha is too easy to break13:31
dhx_mphilip_: did I understand correctly that php.net is looking to upgrade their bug tracker?13:31
philip_only preliminary, but yes13:32
philip_maintaining a custom solution isn't as fun anymore, like it used to be13:32
*** Joins: Watergad (~Watergad@watergad.pereslavl.ru)13:33
nuclear_eclipsephilip_: captcha should technically be possible with plugins too13:33
nuclear_eclipseI just figured Akismet was hte easier/cheaper target :P13:33
philip_another option is to 'hide' comments, and allow any logged in user to 'unhide' or mark as spam13:33
philip_if that makes sense13:33
dhx_mphilip_: I suppose you're interested in selecting a bug tracker based on PHP?13:34
nuclear_eclipseI was planning to implement a "mark as spam" option, I just never got around to it13:34
philip_yes, we like simple api/gui and php based13:34
nuclear_eclipseI ended up just removing anonymous reporting/commenting13:34
philip_i like anonymous usage as it lowers the barrier of reporting13:35
nuclear_eclipsedidn't have time to try and deal with spammers13:35
philip_i've at least said "eh, no thanks" when having to create accounts just to report a simple bug13:35
nuclear_eclipsephilip_: basically, anonymous reporting/commenting is definitely possible; I've done it on other sites before13:36
nuclear_eclipseit's just the issue of spam that stopped me13:36
philip_are you the main developer? i found it difficult to determine who works on mantis13:36
Watergaddhx_m: you may patch and close #11011 . Still, upgrade to a new version is always a good occasion to find and fix something (:13:36
nuclear_eclipsephilip_: I'm probably the one with the most visibility these days since I cut the releases, but there isn't really any one person in charge13:37
nuclear_eclipseI am the one who wrote the plugin system though, so if you're interested, I can help you put together a plugin that will add a captcha to the report/comment forms13:38
philip_if we decided to use mantis, do you know of people who'd be willing to help convert?13:38
dhx_mphilip_: the good thing is that the MantisBT project has a number of "key developers" so it is less likely to pack up and go home :)13:38
dhx_mphilip_: I'd be interested in helping13:39
nuclear_eclipsephilip_: I'd be happy to help out13:39
nuclear_eclipse:)13:39
philip_we have an auth system written in the 90's13:39
dhx_mI think you'll find most people would be interested in helping with such a high profile project :)13:39
philip_although one day here will likely move to openid13:39
philip_okay cool, don't get too excited, but it's possible13:39
dhx_myep, just for your consideration of course13:40
nuclear_eclipsephilip_: I  handled a large migration of 14k issues from a proprietary tracker to mantisbt at my last place of employment13:40
dhx_mI think you'll find other projects would also be interested in helping13:40
nuclear_eclipseso I've got a bit of experience at the conversion game :P13:40
philip_:)13:40
philip_you've not seen our bugs codebase ;)13:41
dhx_m51k13:41
dhx_malmost 52 it seems13:41
nuclear_eclipseactually, I ended up writing the one-off conversion script as a plugin in mantis itself :P13:41
*** Joins: wolog (~wolog@AOrleans-152-1-85-26.w90-21.abo.wanadoo.fr)13:42
dhx_mfor a project the size of PHP I imagine the survivability of the bug tracker project is quite important (ie. frequently updated)13:42
philip_i stumbled into an old mantis manual, linked to from http://www.mantisbt.org/wiki/doku.php13:42
dhx_mmultiple developers who respond quickly to patches, etc13:42
nuclear_eclipsephilip_: newest stuff is at http://docs.mantisbt.org/master/en/13:43
dhx_mI guess it depends on what you want to do with the bug tracker13:43
dhx_mie. patch reviewing, revision control system integration, etc13:43
nuclear_eclipsephilip_: does PHP still use CVS?13:44
dhx_mSVN afaik13:44
philip_svn13:44
nuclear_eclipseok13:44
dhx_mhttp://svn.php.net/viewvc/13:44
nuclear_eclipsethen you can integrate the repository data with Mantis too :P13:44
philip_also, we only integrated svn this last year (with the bug tracker)... heck, people couldn't add patches until this year13:44
dhx_mnuclear_eclipse: does SourceIntegration handle the importing of 300000 commits OK? :p13:44
nuclear_eclipsedhx_m: if it can handle 5000 revisions without hitting the PHP memory limit, then yes :P13:45
philip_we scan commit messages for the likes of "PHP Bug" and directly insert into the bug mysql db13:45
nuclear_eclipsephilip_: yep13:45
nuclear_eclipsethe integration plugins I wrote will basically do the same thing13:45
philip_people freaked out at the idea of allowing other tasks via -m, like closing bugs13:46
dhx_mnuclear_eclipse: oh yeah, I remember now... it can use a local svn binary for importing ;)13:46
nuclear_eclipsedhx_m: it chunks everything into groups of 200 commits at a time anyways ;)13:46
nuclear_eclipsephilip_: check out our own tracker for an example of how it works with our git repo13:48
philip_okay, thanks for the feedback, it sounds doable, maybe we'll be in touch :)13:48
nuclear_eclipsehttp://www.mantisbt.org/bugs/plugin.php?page=Source/index13:48
nuclear_eclipseor http://www.mantisbt.org/bugs/view.php?id=1176413:48
dhx_mphilip_: MantisBT also allows you to split your project into sub-projects, each with their own settings, user permissions, etc... so you could have a documentation project and documentation team, etc13:49
dhx_mthat is one of the main reasons I started using MantisBT (ability to customise the whole thing per-project)13:49
philip_we need that for pear, pecl, gtk, ...13:49
nuclear_eclipsegtk?13:50
philip_but can, let's say, a pecl extension have a doc bug that'd show up in both?13:50
dhx_mand someone has created an EmailReporting plugin for MantisBT to let you report bugs via email... but I've never tried it13:50
philip_php-gtk, not important :)13:50
nuclear_eclipsedidn't know php-gtk existed13:50
* nuclear_eclipse googles13:50
nuclear_eclipsefancy :P13:51
nuclear_eclipseanyways13:51
nuclear_eclipseto answer your question, no13:51
nuclear_eclipseissues can only be put into one project13:52
dhx_mphilip_: you can link two issues together with relationships (custom ones too if you like)13:52
nuclear_eclipsebut you could clone the issue into the other project, and use the relationship to go between the two linked issues13:52
philip_do you have a "needs to be documented" status?13:53
nuclear_eclipsethe list of statuses is completely customizable13:53
philip_so bug might go like: open->verified->assigned->closed->needs to be documented (open)->ntbd (closed)13:53
nuclear_eclipsesame with just about every list-based option on a bug13:53
dhx_mphilip_: you can create a custom workflow such as: new, confirmed, assigned, reviewed, documented, committed13:54
Watergadcustom statuses and workflows are easy enough, I've tried )13:54
dhx_mphilip_: you could also have a custom field checkbox "Has been documented" on an issue, although it isn't as useful as including the "needs documentation" step in the workflow13:54
nuclear_eclipseyou could still filter/sort on the custom field though13:55
nuclear_eclipsephilip_: basically, mantis can be configured to fit your exact workflow :P13:55
dhx_myep, but a workflow lets you enforce the need for documentation before a bug is closed13:56
dhx_mwhereas a bug could be closed with/without the checkbox ticked13:56
dhx_mbesides, including it in the workflow lets you get statistics on how many bugs need documentation, etc13:56
dhx_mand you can setup access levels/user groups so that your documentation team has to sign off on each bug as being properly documented13:57
philip_people here panic when they hear words like workflow and process :)13:57
dhx_munderstandable :)13:57
philip_well okay, we'll see, sounds doable and the idea of help sounds great too13:58
nuclear_eclipseI could be wrong, but I believe we are the only php-based bug tracker that's both configurable and has a plugin system ;)13:59
dhx_munfortunately MantisBT's documentation doesn't quite live up to the high standards of PHP's documentation heh :)13:59
*** Joins: micahg (~micah@ubuntu/member/micahg)14:00
nuclear_eclipsemainly because we don't have anywhere near the same amount of contributers as PHP does :P14:00
Watergadbut it has quite understandable code )14:00
dhx_mWatergad: spot on... self-documenting code :p14:00
philip_you'd be surprised how few people actually contribute to php14:00
dhx_mWhen I've tried reading the source code I've found it quite hard to get my head around at first14:01
Watergadself-documenting is one of the most thing I liked in java when we met )14:01
dhx_mit's a large software project so the required knowledge to get involved with developing PHP is relatively high14:02
dhx_mnot that this is a problem other programming languages avoid14:02
dhx_mthe one thing that has always impressed me about PHP is the online manual with user comments14:03
philip_is your manual stored in docbook?14:03
nuclear_eclipseyep14:04
dhx_myes14:04
philip_those user comments were cutting edge back in the 90's, before blogs and the like14:04
*** Joins: cobexer (~cobexer@188-23-206-32.adsl.highway.telekom.at)14:04
dhx_mWatergad: thanks for the help on #11011, I'll look at it a bit later... I have to thoroughly test UTF-8 + custom fields14:05
dhx_mindeed, well ahead of the times14:05
* paul_ spots philip_ 14:05
dhx_meven today it's still well ahead of the times14:05
paul_philip_: didn't someone rewrite your bugtracker ?14:07
philip_simply due to the large user base, and the poor souls who find themselves moderating them14:07
philip_yes, it was sorta rewritten14:07
dhx_mphilip_: how many users are signed up to bugs.php.net?14:07
paul_philip_: we'd need to write a standard response plugin14:08
paul_for you14:08
philip_bugs.php.net does not have its own user system, it essentially uses svn credentials14:08
dhx_mpaul_: nuclear_eclipse already created a standard response plugin... where have you been hiding? :p14:08
paul_;p14:08
dhx_mphilip_: ah I see, so the user base is relatively small... the reason I ask is that MantisBT uses dropdown boxes to list usernames in some places, so 100k+ users = very large dropdown list14:09
philip_i expect a fancy jquery based search thingee, which we have now14:09
dhx_mphilip_: those are the sort of scalability issues we haven't had to address yet (although it wouldn't be too hard to fix it)14:09
philip_to find people to assign to, likely about a 1000 names14:09
paul_philip_: is there a mailing list thread on this btw?14:10
philip_no it's just me looking around, nothing official14:10
paul_i'd probably be willing to see how well we coped with whats in php's db + svn( or git mirror)14:11
philip_i've found myself touching our bugs system more than anyone else, and am tired of it :)14:11
* paul_ thought it was supposed to be agsoc2009 project?14:11
philip_it failed14:11
paul_ahh14:11
* paul_ wonders if there's a export of php bug db anywhere14:12
nuclear_eclipsephilip_: I'd be interested in a list of anything you guys would require that's not in mantis, would be a good list of things to push for in 1.3 perhaps? :P14:13
philip_i have a db dump here, although it shouldn't be public14:14
paul_nuclear_eclipse: does your plugin work fine with svn or better with git btw?14:14
nuclear_eclipseit works great with both git and svn14:14
paul_philip_: can you sanitise the user passwords for anon reporters out of it + emails)14:14
paul_nuclear_eclipse: so same?14:14
nuclear_eclipsemore or less, yess14:14
nuclear_eclipsethe websvn support is out of date14:14
dhx_mpaul_: perhaps they have private issues too (security vulnerabilities)?14:14
paul_was just wondering, as whilst I think it might have got out of sync, when they moved to svn14:15
paul_someone set up a git mirror on github14:15
nuclear_eclipsebut the core SVN import gathering works just fine14:15
dhx_mphilip_: does the voting system see much use @ php.net? I was looking into the possibility of doing something similar with MantisBT recently14:16
paul_dhx_m: iirc, you can't submit a private bug, but mail security@php.net...14:16
philip_nobody looks at or cares about the votes14:16
philip_imho :)14:16
paul_can't see pierre or jani caring about votes14:16
dhx_myep you're probably right... extra complexity and features that aren't very useful... simple = best in many cases :)14:17
dhx_mpaul_: remind me of that PHP bug where someone was telling rasmus how PHP worked? :p14:18
paul_heh14:18
paul_http://bugs.php.net/bug.php?id=5069614:19
paul_philip_: we'd probably need to add some more ajax stuff14:20
dhx_mpaul_: haha thanks :)14:20
paul_i might be wrong, but I get the impression we don't have more ajax stuff already is people here aren't yet experts on it14:20
darynit's coming paul14:21
dhx_mpaul_: the problem with people adding AJAX stuff is that they often don't consider those who don't use AJAX14:21
darynphptal + jquery = easy ajax14:21
dhx_m+ security concerns14:21
dhx_mdaryn: hi :)14:21
darynhowdy14:21
darynlooking at the current filter ajax...very ugly14:21
dhx_mdaryn: is your latest PHPTAL work on mantisforge?14:22
darynwell...sort of14:22
daryni posted some plugin updates recently but have some new stuff too.  Also, i'll be pushing phptal to lib so the plugin won't be necessary14:22
dhx_myep14:23
paul_still not convinced about phptal for core14:23
darynpaul__ you'll never be convinced.  :P14:23
daryni'll push it to a mantisforge branch for comments first14:23
nuclear_eclipsetbh, I'm not much convinced either, mainly just because I'm not fond of phptal itself14:23
darynprobably just not enough experience with it14:24
nuclear_eclipseI just don't like some of their design decisions14:24
paul_dinner brb14:24
darynyou mean the tal language in general?14:24
darynor phptal14:25
darynimplementation14:25
nuclear_eclipsea) I don't like the whole XHTML thing, b) I don't like the way they deal with translations, and c) I don't like the inability to have PHP in the template14:25
darynyou can have php in the template14:25
darynit doesn't have to be xhtml14:25
dhx_mwhy wouldn't you use XHTML?14:26
darynand they have a translation interface to replace the default14:26
nuclear_eclipsebecause I'd rather use HTML4 and HTML514:26
nuclear_eclipseXHTML is just annoying14:26
darynboth are supported14:26
dhx_mHTML5 includes XHTML :)14:26
nuclear_eclipseyes/no14:26
nuclear_eclipsethere are some XHTML stuffs that weren't put in as part of the HTML5 drafts14:27
nuclear_eclipseeither way14:27
dhx_messentially the only differences are ensuring every tag is closed and ensuring parameters are in the format field="value"14:27
dhx_mit's not like you have to worry about XSLT, XML, etc14:27
nuclear_eclipsedhx_m: no, XHTML specifies what attributes are allowed for each tag, which means you can't attach your own semantic attributes14:28
darynsure you can...14:28
*** Quits: Watergad (~Watergad@watergad.pereslavl.ru) (Quit: Just left.)14:28
nuclear_eclipsenot when I tried to use it in the past14:29
nuclear_eclipsethe HTML validators would bitch and moan, and sometimes even Firefox would crap out with an XML error14:30
nuclear_eclipsethat was half the point of XTHML afaik, to insist that only 100% valid markup would be rendered14:31
dhx_mone thing I wanted to do with MantisBT is remove the idea of "print pages" entirely14:32
dhx_mand instead use CSS stylesheets to achieve the same thing14:32
nuclear_eclipsedaryn: I guess my biggest question is what's the benefit of using something like phptal instead of something like smarty, or even raw PHP templates?14:33
darynraw php is extremely ugly first of all14:34
nuclear_eclipse<?= $foo ?> ftw?14:34
darynno14:34
dhx_mthe idea of PHPTAL is that you can edit the templates as if they were ordinary HTML files14:35
darynsmarty, i've used and it's ok14:35
dhx_mwhich makes it extremely easy to develop templates14:35
nuclear_eclipsedhx_m: you can do that in raw PHP too14:35
nuclear_eclipse<html>...<?= $var ?>...</html>14:35
dhx_mnuclear_eclipse: can you open that .php file in a web browser and have it render ok though?14:35
daryntemplates are always more complicated than simply printing out vars14:35
nuclear_eclipseyes14:36
darynwhen you start looping over arrays to print out columns, set attributes, etc. jumping in and out of php is just fugly and difficult to read14:36
nuclear_eclipseright, but my point is that when you get to needing to loop over a set of data to print out rows, displaying the raw template in your browser isn't going to do it any justice14:36
dhx_mnuclear_eclipse: but it will show $var instead of actual placeholder text?14:37
darynactually with phptal it does because the designer can just put in example text which the parser just removes14:37
nuclear_eclipsethat just seems like it's crowding up a template with so much cruft though14:37
darynalthough tbh, i don't usually do that14:37
darynright14:38
nuclear_eclipse`<a href="<?= $url ?>"><?= $name ?></a>` vs `<a tal:attributes="href value/getUrl" tal:content="value/getTitle"/>` though?14:38
dhx_mdaryn: I've been thinking that to make this work out... we'd need to first change MantisBT page by page using PHP templates14:38
nuclear_eclipsethat's just ungodly verbose14:38
daryni understand the argument ' php is a templating language' but having used php, smarty, and phptal...i much prefer phptal14:39
dhx_mdaryn: sort of like Victor's bug_view_inc.php approach where variables are set at the start... with HTML below14:39
dhx_mdaryn: that way we don't get as many merge conflicts when/if it becomes time to merge any template branch14:39
daryni don't know...i started that and it was just a pain...14:40
darynwe should be able to just convert a page at a time14:41
dhx_mnuclear_eclipse: as opposed to: <a href="<?php echo $t_value ?>"><?php echo $t_title ?></a>14:41
nuclear_eclipsewell, you don't need the echo statement14:41
dhx_moh I see... shorthand syntax :)14:41
nuclear_eclipse<?= ?> is the same as <?php echo ?>14:41
dhx_mwell I don't mind that idea either14:42
micahgnuclear_eclipse: I thought shorthand was deprecated in 5.314:42
nuclear_eclipsemicahg: afaik, that only applies to the shorthand <? ?> tags14:42
darynhttp://fabien.potencier.org/article/34/templating-engines-in-php14:42
nuclear_eclipse<?= is still valid in 5.3 iirc14:42
nuclear_eclipseI just don't like how verbose everything is in TAL14:43
darynof course he's pushing his own templating system14:43
darynbut some good points.  nuclear_eclipse:  i hear that...it still is much cleaner than the alternatives.14:44
cobexeranother argument for a templating system is that you can easily add multiple templates to mantis - and as a user you can install templates without risking the server security when there is no php inside the templates ;)14:44
nuclear_eclipseand besides, who really needs/wants to edit templates outside of the app they were meant for? that seems like it's defeating the purpose :X14:44
nuclear_eclipsecobexer: TAL templates are still compiled to PHP though, so I'm not sure what the security concern would be?14:45
dhx_mcobexer: actually it's possible to execute PHP code within PHPTAL templates ;)14:45
dhx_mcobexer: but if you have access to change templates, running PHP code isn't so much of an issue anyway14:46
dhx_mnuclear_eclipse: you do have a point if we're going down the dynamic webpage AJAX path14:46
nuclear_eclipsedaryn: I'm not meaning to discourage you, TAL is still lightyears better than no templates at all, and it's still a livable option to me14:47
nuclear_eclipseI just personally prefer others because there's less to type and/or remember as you're doing it :P14:47
cobexeryes i was not refering to TAL directly. they are compiled for speed imho. smarty templates are compiled also and can execute php afaik but phpBB are using smarty and php execution is disabled there i think14:47
nuclear_eclipsephpbb actually forked smarty for what it's worth14:48
darynthe middle of the page on that link I sent has some performance numbers14:48
darynphptal is significantly faster than smarty14:49
darynactually any of the others listed except the one the guy wrote14:49
darynand they're close14:49
nuclear_eclipsedid the tester set up smarty to cache the compiled templates?14:49
micahgnuclear_eclipse: apparently it hasn't been deprecated...14:49
daryni believe so.  he has tests with and without compilation, etc.14:49
nuclear_eclipsebecause iirc, smarty doesn't cache templates by default14:49
darynand iirc caching was one of things he was looking at14:50
nuclear_eclipseI wonder if smarty either does more than phptal by default, or what, because compiling a template to PHP should mean they're all the same if you're generating the same output14:50
nuclear_eclipseunless the overhead of dealing with cached templates is comepletely unoptimized... dunno14:51
dhx_mHTML5's <datalist> is going to be VERY useful :)14:54
nuclear_eclipsedhx_m: too bad we'll be waiting another 6 years before we can actually *use* it... =/14:54
dhx_mthe problem I see with <datalist> is that you can't store that data in a separate file14:55
dhx_mhence for a 100k+ item <datalist> the client has to download it each time?14:55
dhx_mwhich kind of defeats the purpose14:55
dhx_mps. ubuntu 10.04 release: http://www.acc.umu.se/technical/statistics/ftp/monitordata/img/Day.800.png14:56
dhx_minternet bandwidth usage++ :)14:56
*** Joins: AzaToth (~azatoth@wikipedia/AzaToth)14:57
nuclear_eclipsedhx_m: I've been on the torrent for that since noon :P14:58
dhx_m20MB/sec upload here :)14:58
dhx_mcould do more if the tracker gave me more peers14:59
nuclear_eclipsewow, I hate you14:59
dhx_mand if there weren't so many slow users (<1MB/sec)14:59
nuclear_eclipseI have to limit it 20kB/s, which is more than half my upload pipe, and is already affecting my ability to use the internet...14:59
dhx_mthe DVDs just came out :)15:00
nuclear_eclipsebut I'm on a "7mbps" cable line.... /rolleyes15:00
dhx_mnuclear_eclipse: I'm using a remote server :)15:00
dhx_mnuclear_eclipse: my home connection isn't 1gbps... I wish! :)15:00
nuclear_eclipseah, yeah, if I used my server to torrent it, I could probably match that, and then immediately hit my node's bandwidth caps :P15:00
dhx_mhaha15:02
nuclear_eclipsemy server already uses about 100G of its monthly 200G cap...15:03
nuclear_eclipsewouldn't take much to put it over that limiit15:03
dhx_myep15:03
*** Quits: micahg (~micah@ubuntu/member/micahg) (Ping timeout: 276 seconds)15:05
nuclear_eclipsedaryn: when do you think you'll have a reasonable branch online with phptal?15:05
daryndepends on what you want to see in it i guess...15:05
paul_btw15:05
nuclear_eclipseif you've done all the work, I wouldn't argue about that being the major feature of 1.3 :P15:05
dhx_mnuclear_eclipse: not asking much heh :p15:05
paul_ew ;)15:06
paul_btw15:06
paul_did we want to move where we host mantis tarballs for users to download?15:06
dhx_mnuclear_eclipse: no no, paul's elusive database changes are the major feature :P15:06
paul_heh15:06
nuclear_eclipsedaryn: I guess my biggest concern is how it interacts with the plugin system that's built on the expection of using a lot of sequential echo's :P15:06
daryni'm trying to finish the filter changes...i told dhx_m  i was shooting for (last) tue cob...i was a bit optimistic15:06
paul_i'm *hoping* I wont need to do them15:07
paul_dhx_m: can i merge lang api?15:07
paul_you reviewed the logic before right?15:07
dhx_myeah I think I said it looked good before :)15:07
nuclear_eclipsepaul_: I'm not sure where we'd move the tarballs to15:07
paul_k15:07
dhx_mbut check with siebrand ;)15:07
dhx_mit'll break his stuff15:07
dhx_m(scripts)15:08
paul_he was fine before15:08
paul_but yea15:08
nuclear_eclipsesf.net may have a crappy admin ui, but it's good free hosting at least15:08
paul_nuclear_eclipse: how much data transfer is it a month?15:08
nuclear_eclipsea lot15:08
nuclear_eclipseI dunno15:08
paul_define a lot15:08
dhx_mdaryn: yep one thing at a time... phptal conversion isn't quick or easy ;)15:08
paul_heh15:08
nuclear_eclipsepaul_: it sounds like sf.net is wanting to incorporate ohloh's automated upload system, so it should make generating and uploading release tarballs a cinch if that pans out15:09
dhx_mpaul_: http://sourceforge.net/project/stats/detail.php?group_id=14963&ugn=mantisbt&type=prdownload&mode=alltime&file_id=015:09
daryni'll take a look this weekend and see if i can come up with something.  filter is gonna take that long anyway15:09
nuclear_eclipseie, could have the buildrelease script generate an XML file and push the tarballs automatically to ohloh, and have then show up on sf.net, or something like that15:10
paul_it's less than 100GB/month15:10
paul_we could just serve em ourselfs tbh15:11
dhx_mI can provide 300GB/month @ 1Gbps West Coast USA15:11
dhx_mbut why...15:11
dhx_mit's less reliable15:11
dhx_mmaybe we could throw up a DNS round robin download.mantisbt.org that uses ohloh, sourceforge and other mirrors?15:12
nuclear_eclipseless reliable + less locality + less visibility15:12
dhx_mnot sure what the pressing need is though15:12
dhx_myep15:12
paul_or just use google ;p15:12
paul_there's probably an argument to upload mantis to code.google.com as well as sf.net ;p15:13
nuclear_eclipseironically, sf.net is great for users, just not good for developers15:14
paul_do they not have an api ?15:14
nuclear_eclipsenope15:14
nuclear_eclipsehave to upload everything one at a time because they changed their interface to some stupid ajaxy crap15:14
dhx_mno more FTP uploads?15:15
nuclear_eclipseused to be able to SCP things as a lump, and then assign the uploads to a folder, but not anymore15:15
nuclear_eclipsebut apparently they have yet another new interface in "beta", that I couldn't figure out either =\15:16
*** Joins: micahg (~micah@ubuntu/member/micahg)15:22
paul_i might put my mantisforge stuff onto a different box15:25
*** Joins: giallu (~giallu@fedora/giallu)15:57
nuclear_eclipsewb giallu 16:07
giallulo nuclear_eclipse16:07
nuclear_eclipsegiallu: any idea why my supybot-mantis plugin won't connect to my tracker?16:07
nuclear_eclipseI have it running in an empty channel16:08
nuclear_eclipsewell, had, rather16:08
nuclear_eclipseI booted windows to play a game :P16:08
gialluI remember I had a similar issue16:08
nuclear_eclipseI'm wondering if it has to do with some of the recent fixes to soap api?16:08
gialluin my case the culprit was in the soap config file (there is another one)16:09
nuclear_eclipsesoap config?16:09
nuclear_eclipse:O16:09
giallueh16:09
giallulook in api/soap16:09
*** Joins: siebrand (~beis@sm.xs4all.nl)16:09
nuclear_eclipse /mindblown16:09
giallunuclear_eclipse, rememeber that was a separate project16:09
nuclear_eclipselies :P16:09
giallumc_config_defaults_inc.php16:10
* nuclear_eclipse reboots into linux16:10
nuclear_eclipseok...16:15
nuclear_eclipseah ha16:16
nuclear_eclipse$g_mc_readonly_access_level_threshold = REPORTER;16:16
* nuclear_eclipse loads supybot16:17
nuclear_eclipseit works!16:17
giallueh :)16:17
nuclear_eclipsethat's one thing solved16:18
* paul_ sighs16:19
nuclear_eclipsenow, I want to also use this for a private bug tracker, and I only ever want the mantis plugin to respond in-channel, is there a way to do that?16:19
paul_nuclear_eclipse: right, rewreite installer pls16:20
nuclear_eclipsegiallu: is there a way to limit access like that using the normal supybot privilege sytem?16:24
paul_yay, trunk seems broken ;/16:24
nuclear_eclipsepaul_: btw, source integration plugins don't work with anything but 1.2.x16:24
paul_does that include trunk?16:24
nuclear_eclipsetrunk == master == 1.316:25
paul_source integration should work with master? ;p16:25
nuclear_eclipsepaul_: this is why I was having that long discussion about db_get_table() earlier...16:25
paul_i'm gonna go back to fixing installer this weekend16:25
giallunuclear_eclipse, no, I'm not really familiar with that16:25
gialluI'd need to RTFM16:25
paul_it's just pissed me off16:25
nuclear_eclipsegiallu: now I just need to where the FM is located...16:26
paul_nuclear_eclipse: fix it in git?16:26
nuclear_eclipsepaul_: I was getting ready to in a short bit16:26
paul_i mean in the plugin16:26
nuclear_eclipsewell, "fixing" it either means breaking it for everyone (including me) who wants to use it with 1.2.x, or adding a lot of if/else code to handle db_get_table, or branching the plugin and maintaining all my features in two almost-identical branches...16:27
gialluuhm... every time I look for it some URL changed :(16:29
nuclear_eclipsemaybe once 1.3 gets anywhere near a stable release, I'll consider branching the plugin, but right now, it'd be silly on my part to support 1.3 as a primary development target16:30
paul_might need to adjust what i backup16:30
paul_apparently backing up mantisforge.org box is 30gb16:30
giallunuclear_eclipse, maybe debian is packaging the manuals?16:33
nuclear_eclipseI found some gzipped documentation on capabilities in /usr/share/doc/supybot, so we'll see where that gets me16:33
paul_nuclear_eclipse: I assume it's just a find/replace for me though right?16:35
*** Quits: cobexer (~cobexer@188-23-206-32.adsl.highway.telekom.at) (Read error: Connection reset by peer)16:35
nuclear_eclipseyes/no, you have to change db_get_table('mantis_FOO_table') to db_get_table('FOO')16:35
paul_btw, whats with 'readme.md'? .md?16:35
nuclear_eclipsesed could probably make it easy enough16:35
nuclear_eclipse.md == markdown16:35
paul_why? ;/16:36
nuclear_eclipsewhen I was hosting it on Github, that told Github what preprocessor to use when displaying it on the page16:36
paul_ahh16:36
paul_Unable to find a source of strong randomness for cryptographic purposes.16:36
paul_dhx_m:16:36
paul_gonna kill you soon :)16:36
nuclear_eclipsewindows ftl, eh? :P16:36
paul_it should work out of box16:37
nuclear_eclipseyet another reason I don't use 1.3 everywhere like I did while 1.2 was in development16:37
*** Joins: rolfkleef (~rolf@urtica.xs4all.nl)16:37
paul_I bet dhx has disappeared now too16:39
paul_nuclear_eclipse: i'm gonna assume that dhx will fix that before I get to coding this weekend16:40
paul_as he might not like my fix :P16:40
nuclear_eclipseI doubt I'll like it either16:40
paul_probably not :)16:41
*** Quits: micahg (~micah@ubuntu/member/micahg) (Quit: Leaving.)16:41
paul_also16:42
paul_your url stuff has broken stuff ;p16:42
paul_I think16:42
nuclear_eclipseexamples would be helpful16:43
nuclear_eclipsebecause I'm pretty sure it hasn't broken anything... ;)16:43
paul_<link rel="stylesheet" type="text/css" href="http://127.0.0.1/admin/css/default.css" />16:44
paul_atm i've got it looking for the css folder under /admin16:44
paul_it never used to do that ;p16:44
paul_whats  Branch Mappings ?16:44
nuclear_eclipsefancy stuff16:47
paul_what was path to run the import from command line?16:47
nuclear_eclipseallows the plugin to automatically set the fixed-in-version when it imports a changeset that matches the "fixed bug regex"16:47
paul_nuclear_eclipse: well, this is turning into more fun then I wanted ;/16:58
nuclear_eclipsepaul_: afaik, the css/js includes from admin/* have never worked anyways17:01
paul_they used to work for me ;/17:01
paul_i'll check in a bit17:01
paul_more importantly17:01
paul_start /B /D "C:\Program Files (x86)\CollabNet\Subversion Client" svn.exe helpNULL17:02
paul_that's returning null17:02
nuclear_eclipsedon't ask me, I don't actually use that part :P17:02
nuclear_eclipsethat's just a patch I got on my bugtracker17:02
paul_can i run it from cmd lne17:03
nuclear_eclipseyou can initiate it from command line via `curl http://mantis/plugin.php?page=....` :P17:03
paul_...17:04
paul_i meant a real version ;p17:04
nuclear_eclipseno17:04
paul_I guess would be easy to code17:04
nuclear_eclipsethe point of the way it works is to allow both local and remote commit/import operation, and to allow the admin to choose what IP's are allowed to do so17:05
paul_well it does't work atm :P17:05
paul_at least not in iis7+windows17:05
nuclear_eclipseI blame you or windows17:05
nuclear_eclipseand unless you can get me some error logs, I can't fix it17:05
paul_I suspect it's a case of some permission(s) or even profile issue17:09
paul_also17:12
paul_i'm not having a problem with db_Get_name etc atm?17:13
nuclear_eclipseonly happens in certain cases where the plugin needs to access the mantis database17:13
paul_ahh17:14
paul_so i'll probably hit in a bit17:14
nuclear_eclipseah, apparently only happens when you're searching for changesets17:14
nuclear_eclipsedinnertime17:18
paul_svn: Can't determine the user's config path17:23
paul_ahh17:23
paul_can we use proc_open instead of shellexc? :)17:24
*** Quits: daryn (~INTERACT\@rrcs-76-79-4-2.west.biz.rr.com) (Remote host closed the connection)17:40
*** Joins: micahg (~micah@ubuntu/member/micahg)17:57
*** Quits: rolfkleef (~rolf@urtica.xs4all.nl) (Ping timeout: 240 seconds)17:59
nuclear_eclipsepaul_: at that point I might as well use popen()18:51
paul_yea18:53
nuclear_eclipseI just didn't want to deal with having to loop around doing incremental reads when I could just get one big string using shell_exec()18:53
paul_:)18:53
paul_anyway18:53
paul_whats your plan with encodings? :P18:54
nuclear_eclipseno clue18:54
nuclear_eclipseit doesn't seem like there are any good options that will work everywhere18:54
nuclear_eclipsesetlocale() breaks everything if you are using the threaded worker model of apache, setenv("LOCALE",...) only works on linux....18:54
paul_:)18:55
nuclear_eclipseI want a justgivemeutf8damnit()18:55
paul_you could not use the svn client18:55
philip_php 8 will have full unicode support ;)18:55
nuclear_eclipseI'll believe it when I see it18:56
paul_is that the conclusion of that debate? ;p18:56
paul_nuclear_eclipse: http://phpclasses.100pour100net.com/package/4270-PHP-Retrieve-files-from-an-SVN-repository-in-pure-PHP.html18:57
paul_nuclear_eclipse: try doing svn in php only for kicks18:57
paul_that might fix it :P18:57
nuclear_eclipsepaul_: basically, if you can find me a way to get UTF8 strings from the SVN binary that will work on all installations, then I'll implement it18:57
paul_http://www.3thirty.net/blog/?p=1118:58
paul_which apparently is actually now http://code.google.com/p/phpsvnclient/18:58
nuclear_eclipsethere's a php module for working with SVN repos, but it's not included with windows installations, and lives in an optional package on Linux18:58
paul_I might actually take a look at that class tomororw18:59
paul_but right now, apparently it's bed time18:59
paul_so good night18:59
nuclear_eclipsehmm, the question is how well it supports UTF8 characters; if it works well and isn't slow/bloated, I'd be willing to use that instead19:00
paul_actually19:00
paul_the question is more whether you want to be trying to implement each revision control system protocol in php in your spare time ;p19:01
nuclear_eclipsewell, thankfully I'm not fully reimplementing any of them ;)19:06
nuclear_eclipseI just implemented a very basic core dataset, and each vcs plugin is only a go-between to fill in the dataset from a dump of the repo19:07
paul_anyway, nn19:07
nuclear_eclipsecheers19:08
*** Quits: micahg (~micah@ubuntu/member/micahg) (Ping timeout: 264 seconds)19:21
*** Quits: AzaToth (~azatoth@wikipedia/AzaToth) (Remote host closed the connection)19:48
*** Quits: scribe9343423 (~scribe934@mantisforge.org) (Remote host closed the connection)20:00
*** Joins: scribe9343423 (~scribe934@mantisforge.org)20:00
nuclear_eclipsegiallu: you happen to know where supybot's website has gone to?20:02
*** Joins: micahg (~micah@ubuntu/member/micahg)20:07
*** Quits: philip_ (~philip_@unaffiliated/philip) (Quit: i'll be back one day)22:00
*** Quits: fanno (~Morten@90.184.93.233) (Read error: Connection reset by peer)22:00

Generated by irclog2html.py 2.9.2 by Marius Gedminas - find it at mg.pov.lt!