Monday, 2011-08-01

*** Quits: micahg (~micahg@ubuntu/member/micahg) (Ping timeout: 252 seconds)00:44
*** Joins: micahg (~micahg@ubuntu/member/micahg)00:46
*** Joins: Cupertino (~Cupez@62-177-158-122.dsl.bbeyond.nl)02:38
*** Quits: Cupertino (~Cupez@62-177-158-122.dsl.bbeyond.nl) (Changing host)02:38
*** Joins: Cupertino (~Cupez@unaffiliated/cupertino)02:38
*** Joins: soustruh (~Miranda@169.211.broadband13.iol.cz)02:54
*** Joins: asm89 (~asm89@unaffiliated/asm89)02:54
asm89aha!03:01
asm89how's my favorite bug tracker doing?03:01
*** Quits: Cesare (~Adium@creati59.lnk.telstra.net) (Quit: Leaving.)04:01
dhx1asm89: hey04:03
*** Joins: siebrand (~siebrand@80.179.214.170.cable.012.net.il)04:14
*** Joins: Paul_ (~IceChat09@2001:470:9310:aaaa:2dfd:753c:c6f9:2651)04:35
Paul_moo04:35
dhx1Paul_: hey04:53
Paul_lo04:55
Paul_I've broken my local branch completely atm ;/04:56
Paul_it wont let me login :(04:56
Paul_dhx1: also, was thinking04:56
Paul_you said04:56
Paul_your version of exceptions had http error codes in?04:56
dhx1yes04:56
dhx1hah @ breaking04:56
Paul_that strikes me as wrong04:56
Paul_I make a request to mantis, to add a bug via email, it throws an exception04:57
dhx1no no, only for HTTP requests05:00
dhx1we shouldn't be returning HTTP output for SOAP/etc requests05:00
Paul_what I mean is surely the exception shouldn't pick the http return code05:01
Paul_but more indicate the type of exception05:01
dhx1access denied, server error, client error05:03
dhx1client error for invalid input05:04
dhx1server error for invalid server config, etc05:04
dhx1access denied for requests the user doesn't have permission to execute05:04
dhx1etc05:04
dhx1still have to check whether that is OK by HTTP standards05:04
Paul_that would imply that really exception should have a 'type' command05:05
Paul_of either ACCESS,SERVER,USER,NOTFOUND05:05
dhx1nah, I was just hard coding a HTTP return code into each extended Exception class05:05
Paul_and when the shutdown handler processes exceptions, [as in theory, we could have multiple exceptions right?]05:05
dhx1yeah you're right, we may want to return multiple exceptions at once05:06
dhx1in which case... I don't know ;)05:06
dhx1perhaps if all the errors are of the same type, use that type05:06
Paul_tbh, i'm thinking we probably want to return 200 or 404 any way at all times05:06
dhx1if they're different, use an order of hierarchy to determine what will be returned05:06
Paul_[given that webbrowsers have a habit of making 500 errors etc look pretty, and I think IIS does similar]05:07
dhx1we can't customise 500 pages in those browsers?05:07
Paul_iirc, when you have friendly errors ticked in internet explorer05:08
dhx1IE9?05:08
Paul_they'll override the server-returned error message UNLESS its X chars long05:08
dhx1hmmm05:08
Paul_i can't find a reference to google on the x chars long thing atm05:11
dhx1we could detect IE browsers and always return a 200 response05:11
dhx1Internet Explorer (before Internet Explorer 7), however, will not display custom pages unless they are larger than 512 bytes, opting instead to display a "friendly" error page.05:11
Paul_http://www.xav.com/scripts/guardian/help/1004.html05:11
Paul_yea05:11
dhx1http://en.wikipedia.org/wiki/HTTP_404#Custom_error_pages05:11
Paul_just need to be a bit careful05:12
Paul_iis7 [before 7.5] was a pain for hiding php error messages05:12
Paul_i.e. if fastcgi didn't return a valid response from php, it told you it didn't get a valid response05:13
Paul_as opposed to showing you the parse error it got :P05:13
Paul_[that was vista, but not win7sp1]05:13
dhx1;/05:13
dhx1I'm not sure if it's even a good idea for web apps to return error status codes05:14
dhx1or whether they're meant to be for HTTP protocol level errors only05:14
Paul_personally i'd retunr 200/404005:15
dhx1I see that Facebook/etc are using custom HTTP status codes for their JSON feeds05:15
dhx1well we wouldn't need to return 404 ourselves unless we're talking about attachments and perhaps plugin stuff05:15
dhx1the web server would handle all the response codes usually05:15
Paul_could the credits list live in the manual?05:16
dhx1probably05:17
Paul_but yea, password auth is broken ;/05:18
dhx1I'm not sure about our approach to binding parameters to queries05:19
Paul_hehe05:19
dhx1it's unwieldy when inserting lots of fields into a table05:19
dhx1as it's hard to determine which parameters are strings, ints, etc05:19
dhx1+ we lose the string "length" restriction possible with PDO bindParam05:20
*** Quits: siebrand (~siebrand@80.179.214.170.cable.012.net.il) (Quit: siebrand)05:20
Paul_we only use strings and ints05:20
Paul_;)05:20
Paul_and i'd personally argue that the user object for example05:21
Paul_shouldn't allow a string to set against, say a username, which is longer then the allowed length in the database05:21
Paul_as the object, [if you also consider the possibility of allowing it to live in memcache etc] should be valid05:22
Paul_also, pdo bindparam doesn't support length?05:23
dhx1it does ;)05:23
dhx1and it wouldn't hurt to place an extra check in there05:23
Paul_yea, ok, manual was jut confsuing05:23
dhx1it sounds like some database servers truncate strings that are too long?05:24
Paul_[talking about out params from stored procs]05:24
dhx1I would have hoped they produce an error instead05:24
dhx1oh, perhaps you're right05:24
dhx1that would make more sense05:24
dhx1also for input/ouput bindings05:24
Paul_Most parameters are input parameters, that is, parameters that are used in a read-only fashion to build up the query05:25
Paul_-05:25
Paul_Length of the data type. To indicate that a parameter is an OUT parameter from a stored procedure, you must explicitly set the length.05:25
Paul_but then the example they give shows it used on an input parameter05:25
Paul_so I dont know :)05:25
Paul_i'd be surprised if a db truncated05:25
Paul_if not given a length05:26
dhx1yea05:26
Paul_I could imagine it truncated if you tell it you want 12 charaters in bindparam and pass in 2005:26
dhx1well I'd argue it should produce an error in that case05:26
Paul_but in either case, i'd hope you'd get an error05:26
Paul_although in theory, i'd hope we'll have fewer db queries knocking around05:28
Paul_by time we are done05:28
Paul_i.e. object will have a create,get,update,delete query05:28
Paul_whereas at the moment, we've sometimes got the same get query in different places05:29
Paul_dhx1: can we make the view issues thing a jquery grid? :P05:31
dhx1doesn't sound good IMO05:31
dhx1bad usability?05:31
Paul_not sure about bad usability05:32
Paul_older browsers could have fun!05:32
Paul_or is that what you meant ;p05:32
dhx1even on modern browsers05:34
dhx1I don't see what a Javascript powered grid would achieve05:34
dhx1sorting columns = useless because we display data in pages05:34
Paul_ I don't see what a Javascript powered grid would achieve05:35
Paul_[10:34.48] <d05:35
Paul_oh, btw, what is http://www.mantisbt.org/bugs/view.php?id=1319305:35
Paul_other then a bad idea05:36
dhx1Paul_: whoooa, agreed05:42
dhx1burn that commit with fire05:42
*** Quits: mellen (~thansen@cl-289.cph-01.dk.sixxs.net) (Ping timeout: 264 seconds)05:51
*** Quits: toddf (~todd@pf.FreeDaemonHosting.com) (Ping timeout: 255 seconds)06:08
*** Joins: kirillka (~Miranda@195.242.142.17)06:12
*** Joins: mellen (~thansen@cl-289.cph-01.dk.sixxs.net)06:15
Paul_dhx1: well, I'm ignoring it atm ;p06:17
Paul_i'm also still not listed on https://github.com/mantisbt so ignoring next too atm06:18
*** Quits: mellen (~thansen@cl-289.cph-01.dk.sixxs.net) (Ping timeout: 264 seconds)06:30
*** Joins: mellen (~thansen@x1-6-00-22-02-00-0c-40.k1109.webspeed.dk)06:30
asm89jreese: i'd like to add a "open all diffs" button to source integration06:36
asm89do you want a PR for such a 'feature' ?06:37
*** Joins: siebrand (~siebrand@bzq-218-208-41.red.bezeqint.net)06:44
Paul_siebrand!07:04
Paul_siebrand: can you generate me some languages files07:04
siebrandPaul_!07:04
* siebrand is in Haifa, Israel at the moment for Wikimania 201107:04
Paul_'ok'07:04
siebrandPaul_: language files for what version (can only do for 1.2.x)07:08
Paul_i've tweaked the next version for you07:16
Paul_in my branch07:16
*** Quits: siebrand (~siebrand@bzq-218-208-41.red.bezeqint.net) (Quit: siebrand)07:33
*** Joins: siebrand (~siebrand@bzq-218-88-83.red.bezeqint.net)08:14
dhx1siebrand: sounds like fun :)08:15
siebranddhx1: it is!08:16
dhx1siebrand: from past events it seems like it draws quite a crowd08:17
siebranddhx1: ~600 people from ~56 countries08:18
dhx1siebrand: 600!... didn't know it had grown that much08:18
dhx1siebrand: a good thing, given how useful Wikipedia is :)08:19
siebranddhx1: Wikimania appears to be growing with about 100 people per year.08:19
siebranddhx1: next year it's in Washington, D.C., so I expect there will be over 700 people there.08:20
dhx1siebrand: any talk about switching to git for the Mediawiki project? I'd love to help, but can't stand Subversion ;)08:21
Paul_I dont get banks08:22
Paul_I have an account where I put in £X.6108:23
Paul_I receive interest of £X.1908:23
Paul_therefore my balance is £X.0508:23
dhx1Paul_: Bitcoin? :P08:25
Paul_bitcoin?08:26
dhx1Paul_: Wikipedia08:29
dhx1siebrand: I've got to try applause on landing here in Australia08:32
siebrandhehe08:33
siebranddhx1: talk yes, consensus no. So it's a no for now.08:33
dhx1siebrand: around here the only applause you'd see is after an announcement "Ladies and gentlemen, we've been cleared for take-off" :)08:34
siebrandhehe08:34
dhx1siebrand: understood, it's not an easy task when you factor in automated scripts needing to be changed, etc08:34
Paul_also08:37
dhx1now I remember what else frustrates me about Mediawiki... "Scripts should use an informative User-Agent string with contact information, or they may be IP-blocked without notice."08:37
Paul_with svn you tend to know where 'trunk' is08:37
dhx1with git, you know where 'master' is ;)08:38
dhx1it depends on how you use it08:38
Paul_I know where master is atm08:38
Paul_:P08:38
jreeseasm89: what do you mean by "open all diffs" /09:11
asm89at the end of the changeset table09:13
asm89a button09:13
asm89that opens all changset diff links09:13
asm89:P09:13
jreeseas in mass tab spam? or open a specially crafted url that contains a single diff of all those changesets?09:14
asm89tab spam09:14
asm89it's nowhere near special. but i guessed that if you liked it i'd commit it to github ;)09:15
jreeseI'm not even sure how you would do that without javascript, and tbh, that sounds like something that most browsers' pop-up blockers would like09:15
jreesewouldn't*09:15
asm89it works with js09:15
asm89we do code review on those changesets ;)09:15
jreeseah09:16
jreeseI guess I'm not fond of the idea09:16
asm89then i won't commit it :)09:16
asm89it's kind of hackish anyway, but quite useful if you use it as we do i guess :)09:16
jreeseI'd imagine a lot of people would click on it wondering what it does, and then be frustrated the moment 20+ tabs open up in their browser09:16
asm89well, that's what they deserve09:17
jreeselol09:17
asm89for creating to big tickets :P09:17
jreeseoh, you're talking about on the issue page09:17
asm89instead of splitting everything up in nice subtickets :>09:17
asm89;)09:17
asm89ah yeah, sorry xD09:17
jreeseI thought you were talking about the repository's list of all changesets09:18
jreeseok, that makes a bit more sense then09:18
* asm89 should ASS U ME less09:18
jreeselol09:18
asm89:'D09:18
jreeseok, that actually sounds interesting, and yes, if you want to commit that with a couple caveats, then that would be neat09:19
jreese1- make sure the link text makse it clear that they will open in new tabs09:19
jreese2- allow admins to enable/disable the feature from the source config page09:19
asm89make it visible by default?09:20
jreesesure09:20
asm89http://i.imgur.com/o8eo9.png09:21
asm89but ok, i'll add those09:21
asm89any other things?09:21
jreeseonly other thing I can think is potentially adding a link to open a single diff of all the changesets, but that's not a big deal09:22
asm89it opens the diff of the underlying webgit/cgit/websvn etc09:22
asm89so that has to support that09:22
jreesetrue, that sort of thing would probably require a new method for source plugins09:23
jreeseso don't worry about that09:23
*** Joins: tmckeown (~Adium@pool-108-56-179-231.washdc.fios.verizon.net)09:25
*** Parts: tmckeown (~Adium@pool-108-56-179-231.washdc.fios.verizon.net) ()09:25
asm89cool09:26
jreesePaul_: added you to github now09:41
*** Joins: daryn (~daryn@h158.249.190.173.static.ip.windstream.net)09:43
*** Quits: kirillka (~Miranda@195.242.142.17) (Quit: kirillka)09:57
*** Joins: tmckeown (~Adium@pool-108-56-179-231.washdc.fios.verizon.net)10:11
*** Parts: tmckeown (~Adium@pool-108-56-179-231.washdc.fios.verizon.net) ()10:11
*** Quits: siebrand (~siebrand@bzq-218-88-83.red.bezeqint.net) (Quit: siebrand)10:52
*** Quits: Cupertino (~Cupez@unaffiliated/cupertino) (Quit: I give up...)11:02
*** Joins: tmckeown (~Adium@pool-108-56-179-231.washdc.fios.verizon.net)11:07
*** Parts: tmckeown (~Adium@pool-108-56-179-231.washdc.fios.verizon.net) ()11:07
*** Quits: asm89 (~asm89@unaffiliated/asm89) (Quit: WeeChat 0.3.5)11:09
*** Quits: soustruh (~Miranda@169.211.broadband13.iol.cz) (Quit: visit http://wormscesky.cz)11:16
*** Quits: mellen (~thansen@x1-6-00-22-02-00-0c-40.k1109.webspeed.dk) (Ping timeout: 240 seconds)11:21
*** Joins: mellen (~thansen@x1-6-00-22-02-00-0c-40.k1109.webspeed.dk)11:22
*** Quits: mellen (~thansen@x1-6-00-22-02-00-0c-40.k1109.webspeed.dk) (Ping timeout: 260 seconds)11:31
*** Joins: mellen (~thansen@cl-289.cph-01.dk.sixxs.net)11:36
*** Lukosanthropos is now known as lukosanthropos12:50
Paul_dhx1: http://labs.adobe.com/13:15
*** Quits: scribe9343423 (~scribe934@static.96.23.63.178.clients.your-server.de) (Ping timeout: 250 seconds)13:25
*** Quits: daryn (~daryn@h158.249.190.173.static.ip.windstream.net) (Ping timeout: 240 seconds)13:25
*** Quits: chris38` (~chris38@AGrenoble-751-1-11-236.w90-9.abo.wanadoo.fr) (Ping timeout: 240 seconds)13:30
*** Joins: chris38` (~chris38@AGrenoble-751-1-11-236.w90-9.abo.wanadoo.fr)13:38
*** Joins: daryn (~daryn@h158.249.190.173.static.ip.windstream.net)13:42
*** lukosanthropos is now known as Lukosanthropos14:16
*** Joins: tmckeown (~Adium@pool-108-56-179-231.washdc.fios.verizon.net)14:19
*** Parts: tmckeown (~Adium@pool-108-56-179-231.washdc.fios.verizon.net) ()14:20
*** Joins: serge (~serge@pool-71-240-247-85.syr.east.verizon.net)15:43
sergehey15:43
sergenew to mantis, have a quick question15:43
*** Joins: jer_ (51396744@gateway/web/freenode/ip.81.57.103.68)15:52
sergewow thanks for the help guys16:01
*** Quits: serge (~serge@pool-71-240-247-85.syr.east.verizon.net) (Quit: serge)16:01
* jreese points at /topic16:02
*** Joins: soustruh (~Miranda@ip-86-49-121-75.net.upcbroadband.cz)16:04
*** Joins: tmckeown (~Adium@pool-108-56-179-231.washdc.fios.verizon.net)16:44
*** Parts: tmckeown (~Adium@pool-108-56-179-231.washdc.fios.verizon.net) ()16:45
*** Quits: Lukosanthropos (~Lukosanth@cpc23-seac20-2-0-cust78.7-2.cable.virginmedia.com) (Ping timeout: 240 seconds)17:51
*** Quits: daryn (~daryn@h158.249.190.173.static.ip.windstream.net) (Quit: Ex-Chat)18:43
Paul_jreese: be nice :P19:04
jreeseI wouldn't have minded if not for his comment right before he left19:05
Paul_:)19:06
*** Joins: Cesare (~Adium@creati59.lnk.telstra.net)19:06
Paul_i seem to have broken my local trie ;/19:07
Paul_tree19:07
Paul_it won't log in ;/19:07
Paul_oh lol19:10
*** Quits: Paul_ (~IceChat09@2001:470:9310:aaaa:2dfd:753c:c6f9:2651) (Quit: Clap on! , Clap off! Clap@#&$NO CARRIER)19:24
*** Quits: jer_ (51396744@gateway/web/freenode/ip.81.57.103.68) (Ping timeout: 252 seconds)19:45
*** Quits: soustruh (~Miranda@ip-86-49-121-75.net.upcbroadband.cz) (Quit: visit http://wormscesky.cz)19:47
*** Joins: scribe9343423 (~scribe934@static.96.23.63.178.clients.your-server.de)20:00
*** Joins: tmckeown (~Adium@pool-108-56-179-231.washdc.fios.verizon.net)20:47
*** Parts: tmckeown (~Adium@pool-108-56-179-231.washdc.fios.verizon.net) ()20:48
*** Quits: dhx1 (~anonymous@60-242-108-164.static.tpgi.com.au) (Read error: Connection timed out)21:48
*** Joins: dhx1 (~anonymous@60-242-108-164.static.tpgi.com.au)21:48
*** Joins: tmckeown (~Adium@pool-108-56-179-231.washdc.fios.verizon.net)22:06
*** Parts: tmckeown (~Adium@pool-108-56-179-231.washdc.fios.verizon.net) ()22:06
*** Quits: scribe9343423 (~scribe934@static.96.23.63.178.clients.your-server.de) (Ping timeout: 240 seconds)23:27

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