Monday, 2009-03-30

../irclogs/#mantishelp.2009-03-30.log
--- scribe started ---00:00
mantisbotNew bug: Bug 10272 - BlueWall - open - new03:13
mantisbotNew bug: SMTP Port assignment - http://www.mantisbt.org/bugs/view.php?id=1027203:13
dhx_mhi06:20
dhx_mhmmm06:40
dhx_mthe HTML buttons are placed within a table06:41
dhx_mwith 6 columns06:41
dhx_myet there is no guarantee in place that 6 cells will actually be created06:41
dhx_moh it doesn't matter ;)06:42
dhx_mI was misreading06:42
Kirill_KrasnovJohn, when you come, please write me, how I can delete remote branch without deleting local branch with this name. And how I can rename branch?07:19
gialluKirill_Krasnov, to delete a branch, push an empty one like in: git push origin :experimental07:22
gialluorigin is the name of the remote07:23
gialluexperimental is the name of the branch you want to delete07:23
gialluKirill_Krasnov, do you want to rename a local or remote branch?07:24
dhx_minteresting :)07:25
dhx_mI'm learning to use git at the moment so that is a good question for me to hear the answer to07:25
giallufor really authoritative answers on git, I suggest the #git channel. I always found good guys there07:27
dhx_mare you able to advise me on whether this is the correct way to submit patches to Mantis:07:28
dhx_mhttp://git.mantisforge.org/w/mantisbt/dhx.git?a=shortlog;h=refs/heads/1026307:28
Kirill_Krasnovgiallu: local07:28
dhx_mthat is a branch containing a single commit of my change07:28
dhx_mdo I need to sign it off?07:29
dhx_m(I couldn't find a --signoff for git commit)07:29
gialluKirill_Krasnov, git branch -m old new07:29
gialludhx_m, no, I don't think that's necessary07:30
dhx_mok thanks :)07:30
dhx_mand is it OK for me to make multiple commits in a feature branch, then post a pull request for that branch when it is 'done'?07:31
Kirill_Krasnovgiallu: tnx, rename work. One sec - I test delete remote branch07:31
dhx_mie. I don't need to merge the entire set of changes within the branch into just one commit?07:31
Kirill_Krasnovgiallu: tnx, remote deleted07:32
gialludhx_m, right, you can leave the commits as they are.07:33
dhx_mgood :) thanks07:33
giallueventually, before pushing to your public branch, you may consider cleaning up the history07:33
giallubut please note the _before_ part07:34
giallusee http://www.gnome.org/~federico/news-2008-08.html#git-rebase-interactive for details07:35
dhx_maha! thanks for that07:37
dhx_mmakes perfect sense ;)07:37
mantisbotNew bug: Bug 10273 - Hiverider - open - new09:25
mantisbotNew bug: Links with Umlauts to local server - http://www.mantisbt.org/bugs/view.php?id=1027309:25
dhx_mgiallu: I tried to use that technique but received the following error: It looks like git-am is in progress. Cannot rebase.09:56
dhx_mI've currently checked out a branch09:57
dhx_mwith 5 commits I want to roll into 109:57
gialluand you ware using git-am?09:58
dhx_mnot as far as I can remember, I'm asking for help on #git10:04
dhx_mthe answer appears to be that I started a rebase, it failed, and then I tried to rebase again in the middle10:04
mantisbotNew bug: Bug 10274 - dhx - open - new11:06
mantisbotNew bug: Display target release date next to target version - http://www.mantisbt.org/bugs/view.php?id=1027411:06
* daryn_away is away: Gone away for now13:46
mantisbotNew bug: Bug 10275 - helenapplegarth - open - new15:27
mantisbotNew bug: Looking to install Mantis on a server that houses business objetcs - http://www.mantisbt.org/bugs/view.php?id=1027515:27
nuclear_eclipsehi vboctor12316:44
vboctor123hey nuclear_eclipse16:44
vboctor123I was just trying the irc plugin.16:45
vboctor123for anonymous users, there is an extra | at the end of the menu.16:45
nuclear_eclipseah, I probably wasn't paying enough attention and didn't return the proper value16:46
vboctor123I was just thinking that we should probably use the bubble help (title) for menu options.16:46
vboctor123We should disable the news / manage page in the bug tracker.16:48
nuclear_eclipsevboctor123: off-topic, but did you get a chance to look over bug 9856?16:49
mantisbotBug 9856 - jreese - open - assigned16:49
mantisbotImplement method for tracking changes to Description, Steps to Reproduce, and Additional Info - http://www.mantisbt.org/bugs/view.php?id=985616:49
paul_nuclear_eclipse: mo17:08
* paul_ kicks john hard17:09
nuclear_eclipsehi paul_17:10
* daryn_away is away: Gone away for now17:12
* daryn_away is away: Gone away for now17:12
nuclear_eclipsevboctor123: fixed the IRC menu issue and updated the live copy17:15
CIA-18Mantisbt: jreese * r16b64ab34bf8 /core/filter_api.php: Fix #10082: Deleting a tag breaks any filters using that tag.17:19
CIA-18Mantisbt: jreese * rc318ed0f70cd /core/ (constant_inc.php php_api.php): Issue #9917: Implemented API to determine if PHP is running as CLI or CGI.17:19
CIA-18Mantisbt: jreese * r132a31e769bc /core/ (form_api.php session_api.php): Fix #9917: Only use sessions and forms if PHP is running as CGI.17:19
nuclear_eclipseholy crap!17:19
paul_?17:19
nuclear_eclipseI think I finally worked out how to get CIA.vc working again now that we use a Git repo17:19
nuclear_eclipsenow I just need to wait for the next commit to make sure it works on its own without my prodding17:20
paul_+               # Check to see if this is CLI mode or CGI mode17:20
paul_:(17:20
* nuclear_eclipse is not sure what you're sad about17:21
paul_dodgy code17:24
paul_:)17:24
nuclear_eclipsewhat's dodgy about it?17:24
paul_if( php_sapi_name == 'cli' ) {17:25
paul_so much shorter dont you think? :)17:25
paul_but yea, I think we should probably use that rather then relying on web server variables which potentially might not be set17:26
nuclear_eclipseI looked for something like that and never found it17:26
paul_to be fair17:27
nuclear_eclipseI looked for something like that and never found it17:27
paul_it took me 5 minutes to find just now17:27
nuclear_eclipseurg17:27
paul_aka 18:19->18:2417:27
nuclear_eclipseaccourding to the PHP manual, those two variables should always be set17:27
paul_although, I guess the other thing is17:28
paul_can you use the CLI version of php with fastcgi or something17:28
paul_i.e. end up with sapi saying cli when it isn't17:28
nuclear_eclipsegood question; I've never used FastCGI, so I wouldn't know17:28
paul_heh17:29
paul_13 Mar 2009 ... On Windows IIS 7 you must use $_SERVER['LOCAL_ADDR'] rather than $_SERVER['SERVER_ADDR'] to get the server's IP address. ...17:31
paul_php.yar.ru/manual/ru/reserved.variables.server.php17:31
paul_I can't see that on the apge though17:31
paul_only google search17:31
paul_which means i might be right about the _SERVER stuff17:31
nuclear_eclipsewell, I knew some of the $_SERVER stuff is not reliable, but neither of those two vars mentioned any caveats like the other ones17:32
nuclear_eclipsewhat did you search for to find that php_sapi_name thing?17:33
paul_sapi :)17:33
nuclear_eclipseahh17:33
paul_well actually:17:33
paul_a) global variables17:33
* nuclear_eclipse knows not enough about what/how SAPI works17:33
paul_b) predefined variables17:33
paul_c) predefined constants17:34
paul_then saw the word sapi onthere so d) sapi17:34
nuclear_eclipse"Note, that the php-cgi binary can be called from the command line"17:35
paul_:)17:36
nuclear_eclipse"If so, the php_sapi_name() will always return the same value (i.e. "cgi-fcgi") instead of "cli" which you could expect."17:36
paul_nod17:36
paul_you opened can of worms :)17:36
nuclear_eclipseso it seems that $_SERVER is likely the most "reliable" method17:36
nuclear_eclipseI'll just add a second bit to also check for LOCAL_ADDR17:36
paul_tbh, look at what we do in config defaults atm17:36
paul_i.e. the url checks and stuff17:37
paul_i've done this sort of crap before17:37
nuclear_eclipseliar17:37
nuclear_eclipseno mention of LOCAL_ADDR in config_defaults17:37
nuclear_eclipsewhich is yet another reason I'd assumed that was a reliable check17:38
paul_could just user SERVER_PORT or something17:39
paul_hmm17:39
paul_actually17:39
paul_is $_SERVER empty array from command line?17:39
nuclear_eclipseno17:40
nuclear_eclipse$_SERVER contains argc/argv, PHP_SELF and SCRIPT_*, plus all environment variables17:40
paul_nod17:40
paul_does argc/argv exist for webscripts? (I assume yes?)17:41
nuclear_eclipseeven argc/argv is not reliable though, because there's a php.ini option to set those with GET params17:41
paul_i'd be tempted to do isset( SERVER_PORT | SERVER_SOFTWARE | SERVER_HOST17:41
paul_or whatever17:41
nuclear_eclipsethis is what I had planned now:17:42
nuclear_eclipseif ( ( isset( $_SERVER['SERVER_ADDR'] ) || isset( $_SERVER['LOCAL_ADDR'] ) )17:42
nuclear_eclipse&& isset( $_SERVER['REMOTE_ADDR'] ) ) {17:42
nuclear_eclipsepaul_: does that seem reasonable to get around IIS?17:53
nuclear_eclipseor do you think that's still not enough?17:53
paul_can't we just do 3 ||'s17:53
paul_(it was the user of && that I picked up on)17:53
nuclear_eclipseok, sure17:54
nuclear_eclipseif ( isset( $_SERVER['SERVER_ADDR'] )17:55
nuclear_eclipse|| isset( $_SERVER['LOCAL_ADDR'] )17:55
nuclear_eclipse|| isset( $_SERVER['REMOTE_ADDR'] ) ) {17:55
nuclear_eclipsehappy with that?17:55
* paul_ nods17:56
paul_:)17:56
nuclear_eclipsek17:56
paul_next week :)17:56
paul_mantis week17:56
paul_:)17:56
nuclear_eclipsehmm, I guess the CIA script didn't work =\17:58
paul_;/17:58
paul_now can we move on to scripts17:58
paul_pm :)17:58
CIA-18Mantisbt: jreese cia * rdb21177ff598 /cia: Testing CIA.18:14
nuclear_eclipsehooray!18:15
[KK]Kirillnuclear_eclipse: Tnx John, last trank work18:32
nuclear_eclipseyou're welcome18:37
[KK]KirillJohn, who can add link to jebber community on support page?18:38
nuclear_eclipseit has to be added to the website source code, see mantisbt-web.git on git.mantisbt.org18:39
bartikdhx_m about that mitm solution for pgp any recommendations ? I did try the gpgrelay but thats for windows and it didn't work for me (with IMAP). Would love to hear hear about something for *nix.20:37
CIA-18Mantisbt: s.mazeland * r667f20ddb9e9 / (9 files in 3 dirs): Merge branch 'master' of git://mantisbt.org/mantisbt20:53
CIA-18Mantisbt: s.mazeland * r3e9f9ab78e25 /lang/ (62 files): Remove '\n' from messages.20:53
_kamera_any idea if in the summary page the Reporter stats is somehow limited in the number of records it shows? what's the parameter one can change to see the sql queries at the bottom of the page..some special debug mode..21:00
nuclear_eclipse_kamera_: $g_show_queries I believe21:06
_kamera_thanks.21:09
_kamera_BTW any idea why mantis doesn't use parameterized queries instead of plain dynamic sql ?21:10
nuclear_eclipsewe do for the upcoming 1.2.x releases21:13
CIA-18Mantisbt: s.mazeland * r7c5892c95e6a /lang/ (11 files): Localisation updates from http://translatewiki.net (2009-03-30 21:06 UTC)21:16
paul_nuclear_eclipse: you on9.04?21:17
nuclear_eclipseyep21:17
nuclear_eclipseonly for my laptop, but yes21:17
_kamera_nuclear_eclipse: are there any published stats on performance diff between dynamic and parameterized queries for mantis?21:20
nuclear_eclipsenot that I know of21:20
paul_only some db's support it21:21
_kamera_are there multiple instances of queries (for db's that support parameterized queries and for those that dont?)21:22
paul_adodb library tends to handle that21:22
paul_tbh, you'll probably notice more of a performance diff (if there is one) from where we've tided up the number of queries we run in some cases.21:23
_kamera_cool.. adodb sounds like a neat thing.. i'm wonder if it works well with memcache, i.e. no changes to php code, just set something in adodb21:24
paul_hmm flawed statement21:26
_kamera_the memcached thing?21:26
paul_you used the words adodb and neat and well in the same sentence21:27
paul_anyway.21:27
paul_yes, adodb is nice actually, it's just kinda a pain sometimes21:27
paul_adodb does have some stuff for memcache21:27
paul_may I ask,21:27
paul_are you finding you *need* memcache atm?21:27
_kamera_nope.. (not for my measly 25 users).. but just something to think about for other projects21:28
_kamera_just curious have people done load/stress testing on mantis ? is there a site that shows this stuff for every build?21:33
paul_not to that organised extent21:33
paul_I tend to be the one that's most pedantic recently about trying to improve performance in some areas21:33
nuclear_eclipse_kamera_: for an example, mantisbt.org has over 10000 issues reported, and well over 1000 users, and runs rather well on a relatively small virtual server21:34
paul_what we dont have is many projects21:35
paul_nor sub-projects :)21:35
paul_nuclear_eclipse: talking of which21:35
paul_nuclear_eclipse: where did we get to!21:35
nuclear_eclipsetrue, but that's probably representative of most MantisBT sites...21:35
paul_did you fix tags sql ? :)21:36
nuclear_eclipsenot yet, make a bug report and assign it to me21:36
nuclear_eclipseI told you to do that last time; otherwise it slips my mind21:36
* nuclear_eclipse heads home21:36
paul_it tends to unslip your mind each time i try to fix it :)21:36
nuclear_eclipsepaul_: that's because every time you "fix" it, it breaks in some other manner21:37
* nuclear_eclipse will be back shortly21:37
mantisbotNew bug: Bug 10276 - dplinnane - open - new21:49
mantisbotNew bug: The assign to button does not show all users - http://www.mantisbt.org/bugs/view.php?id=1027621:49
nuclear_eclipseback22:00
paul_wb22:00
nuclear_eclipseanyways, the last time you "fixed" it for MSSQL, your new query didn't include any tags that weren't already attached to any issues22:03
nuclear_eclipsethat's when I changed it to work in a way that I *thought* worked for MSSQL, only I didn't know just how retarded MS made their query language22:03
paul_:)22:03
mantisbotNew bug: Bug 10277 - siebrand - open - new22:34
mantisbotNew bug: Creating tag with empty name gives "Operation succesful" - http://www.mantisbt.org/bugs/view.php?id=1027722:34
milliamsSorry, I got disconnected. Did my question get through?22:43
paul_nope22:43
milliamsOk22:46
milliamsI realise this is an often asked question (given reports like http://www.mantisbt.org/bugs/view.php?id=9379​) but what is the administrator password after installation?22:46
milliamsAnd where would I have been told it during installation?22:47
paul_root iirc22:48
paul_or admin22:48
nuclear_eclipsemilliams: it's 'root', and the only place where we currently mention that is in the manual22:53
siebrandnuclear_eclipse: on 10277: fine by me. Nearby that code: * mantis_tag_table.name (100): has maxlength="100", but no protection in code23:01
siebrand(that's from #7400)23:01
nuclear_eclipsehmm23:01
CIA-18Mantisbt: s.mazeland * r52e15804c4f3 /manage_tags_page.php: Correct maxlength from 128 to 100. Database field is no longer.23:02
siebrandwell, NOW it has maxlength 100 :) It had 128.23:02
nuclear_eclipsehmm, technically that field should not have *any* maxlength, considering that you can insert many tag names separated by commas....23:04
nuclear_eclipseI guess I missed that in reviewing my co-worker's code...23:04
CIA-18Mantisbt: s.mazeland * r86dbee671e17 /core/excel_api.php: Fix #0007472: [th] Thai chars are broken on Excel export; column header doesn't show23:08
siebrandwow, closing a lot of encoding related issues is easy now that we are using UTF-8. Yay!23:09
nuclear_eclipsehehe23:09

Generated by irclog2html.py