Sunday, 2010-06-27

*** Joins: PennStater- (Aaron@c-98-236-4-139.hsd1.pa.comcast.net)01:32
*** Quits: PennStater (Aaron@unaffiliated/pennstater) (Ping timeout: 240 seconds)01:35
*** Quits: wolog (~wolog@wolog.info) (Ping timeout: 240 seconds)03:17
*** Joins: wolog (~wolog@wolog.info)03:18
*** Quits: micahg (~micah@ubuntu/member/micahg) (Ping timeout: 240 seconds)04:07
*** Joins: rolfkleef (~rolf@urtica.xs4all.nl)05:03
*** Joins: mantisbt_09680 (a05c0745@gateway/web/freenode/ip.160.92.7.69)05:05
*** Quits: mantisbt_09680 (a05c0745@gateway/web/freenode/ip.160.92.7.69) (Client Quit)05:06
*** Quits: dhx_m (~anonymous@c122-107-200-23.eburwd5.vic.optusnet.com.au) (Remote host closed the connection)05:21
*** Joins: skalogryz (~skalogryz@dynamicip-92-255-224-86.pppoe.kirov.ertelecom.ru)05:52
*** Parts: skalogryz (~skalogryz@dynamicip-92-255-224-86.pppoe.kirov.ertelecom.ru)05:52
*** Joins: dhx_m (~anonymous@c122-107-200-23.eburwd5.vic.optusnet.com.au)06:15
*** Quits: dhx_m (~anonymous@c122-107-200-23.eburwd5.vic.optusnet.com.au) (Ping timeout: 265 seconds)06:24
*** Joins: paulr (~paul@cpc1-enfi9-0-0-cust389.hari.cable.virginmedia.com)06:32
*** Joins: dhx_m (~anonymous@c122-107-200-23.eburwd5.vic.optusnet.com.au)06:36
paulrdhx_m: moo06:39
dhx_mpaulr: howdy06:40
paulrwow :P06:40
dhx_mpaulr: hah :)06:40
paulrit works!06:40
dhx_mindeed :)06:40
dhx_mI'm currently without a working web server at the moment I'm afraid (no testing possible for now)06:40
paulrhehe06:41
dhx_min the middle of upgrading to PHP 5.3.3 with FPM :)06:41
paulrfpm = cgi right?06:41
dhx_myep they've added their own fast CGI manager06:41
paulrnod06:42
paulrthat's an RC?06:42
dhx_myep06:42
dhx_mI was using PHP 5.2 before so it's finally time to bother upgrading :)06:43
dhx_m(5.3 is not yet supported by Gentoo)06:43
dhx_mthe only thing I'm unsure about is the state of PHP accelerators06:45
dhx_mthey all seem to be dying projects06:46
dhx_m(or at least very slow)06:46
*** Joins: moto-moi (~hylke@cara.xs4all.nl)06:52
paulrthey having a debate whether to put APC in trunk06:53
paulrso do you have time again now for mantis?06:55
dhx_myep06:58
dhx_min the middle of ripping all JavaScript out of MantisBT and converting it to jQuery in an external file06:59
paulrcan I distract you briefly06:59
dhx_mthat way we can get CSP (content security policy) working :)07:00
dhx_msure07:00
paulryou broke pgsql/mssql :P07:01
paulrI think we should get away from adodb for schema updates07:01
dhx_mpgsql was working fine for me...?07:02
paulrfrom an existing build?07:06
paulrwith data in?07:06
paulrbut yes07:09
paulryou basically break upgdates07:09
paulrerm upgrades07:09
paulralbeit, I see a bug in my old code07:10
dhx_mhmmm which patchset broke it then?07:10
paulryou dropped my datadict additions remember? ;p07:11
paulrthereby, breaking what they fixed ;p07:11
paulranyway, given we only suppor what db's07:11
paulrmssql, pgsql, db2, mysqli?07:11
dhx_mhttp://git.mantisbt.org/?p=mantisbt.git;a=commitdiff;h=b8b21142be9e05232afada2e601f6c84ad0cd396#patch3207:15
paulryes07:15
paulrspot the bug in it07:15
paulrbut yes07:15
dhx_mif ( $existing[strtoupper($colname)]->type == 'bool' && $t == 'INTEGER') {07:15
dhx_mthat part?07:15
paulrSING (redirect_delay::BOOL)::INT ';07:15
paulrno ;p07:15
paulrthat should be colname ;p07:15
paulrbut basically07:15
paulrour upgdate fails in postgres07:15
dhx_mthe code is so crap I may as well be reading a hex dump07:15
dhx_m:p07:15
paulrif someone has data in redirect_dely column07:16
paulrwhich was a int/bool and converts07:16
paulras postgres can't convert bool<>int directly without a using clause07:16
paulrfor example ;p07:16
paulr-                       if (preg_match('/^([^ ]+) .*DEFAULT (\'[^\']+\'|\"[^\"]+\"|[^ ]+)/',$v,$matches)) {07:16
paulr+                       if (preg_match('/^([^ ]+) .*DEFAULT ([^ ]+)/',$v,$matches)) {07:16
paulrnot quite sure what that is07:16
dhx_mwell the problem has been that we don't know what has and hasn't been pushed upstream07:17
paulrthe problem is with adodb07:17
paulrupstream is so inconsistent07:17
paulryou relaly need to diff what they do ;p07:17
dhx_mso can we scrap it? :p07:18
paulrI've reported a 'bug' to upstream before that they've broken it completely by adding an 'a' randomnly to a php include file07:18
paulrso they've had to do a new release ;p07:18
dhx_mI'm in the mood for chopping off our dependencies (Projax waved goodbye a few days ago at long last :p)07:18
paulryes07:18
paulranyway, i'll work out what to do re adodb07:18
dhx_mlol07:18
paulrstill like the moodle db layer idea07:18
paulrit's either that or07:19
paulrsplit adodb and datadict07:19
paulrand just do our own07:19
paulrbut more right now07:20
paulrwant to fix up mantisforge scripts a bit07:20
dhx_mthe test framework?07:21
paulrnot necessarily07:21
paulrmore things like the git hashes07:21
dhx_mah yeah07:22
paulrhow can i do a by-char diff ;/07:29
dhx_m?07:30
paulrtrying to compare one long line07:30
dhx_mnot too sure07:31
paulrbasically, want to get rid of javascript/min07:32
dhx_mplease do :)07:33
paulrwe may as well just do that as part of release aka: http://code.google.com/p/closure-compiler/downloads/list07:33
paulrit's a version of that that jquery pass files through anyway07:33
paulrso until we hit problems07:34
paulrmay as well just trust google :)07:34
dhx_mdo we even need /min anymore?07:34
paulr'yes'07:34
paulrto compile our jscript files ;p07:34
dhx_mI'm not sure why there is a need to do that if we're going to be using 100% jQuery soon07:34
paulrwell for example the calendar07:35
dhx_mour JavaScript files are small and won't be requested by the client too often (E-TAG headers, etc)07:35
dhx_mthe calendar is now jQuery07:35
paulrmay as well just build them07:35
paulrlike jquery do with the same compiler07:35
paulrmm07:35
paulrI thought that jquery calendar didn't do time?07:36
paulronly date?07:36
dhx_mwhere do we use a calendar with time?07:36
paulrif you have timetracking on07:36
dhx_mcheck with daryn as he replaced the calendar :)07:36
paulrwhen was this?07:37
paulronly reason I know this was07:37
paulrat one point I looked to see if we could replace it07:37
paulrand concluded that I thought the jqeury calendar wouldn't let us set a time07:38
dhx_mhttp://git.mantisbt.org/?p=mantisbt.git;a=commit;h=1819bbdf8c2d629798fa48537f9bb167e8d3300507:40
dhx_mah he didn't convert it... just added jQuery UI for converting in the future07:40
paulrright07:40
paulrI'm pretty sure I concluded before07:40
paulrour current calendar needs a time option07:40
paulrand that jquery's just has a datepicker for dates only07:40
dhx_myep07:42
dhx_munless it's changed recently I think that's still the problem07:42
paulranyway07:44
paulrI want to try to make the 'min' directory just get built07:44
paulrwhich should be a simple a case of a script07:44
paulralso07:45
paulrpeople need to engage brain more :)07:45
dhx_mwhich compressor will you use?07:45
paulrsame one as jquery use atm07:45
paulri.e. google's one07:45
paulralbeit whatever latest version equates to07:46
dhx_msounds good to me :)07:47
dhx_mno need to recompress jQuery though07:47
paulrno but it's easier07:48
ToffeePopsHi, we recently updated to mantis 1.2.1... I've just noticed that private issues no longer appear on the main 'view issues' screen with a padlock next to them.07:51
ToffeePopsThey do appear with a padlock under 'my view', but on the main list it's very useful to see that padlock icon - is there any way to turn that on?07:51
dhx_mhang on, I'll try and test it when I have my web server back up07:52
paulrdhx_m: we need a script to build those hashes08:02
paulryou did it semi-manually before right?08:02
dhx_myep08:02
dhx_mdid you get the commands I used last time?08:02
paulryes08:02
paulrbut remind me the output08:02
dhx_mgood (because I might have lost them) :p08:03
paulrdunno if I kept them though ;p08:03
dhx_mI'll have a look in a moment08:13
paulrI think I worked out we can do it via php08:13
dhx_mgrr Linux 2.6.35-rc3 has a networking bug that is annoying me08:15
paulrheh08:25
paulrwell08:25
paulrit's messy08:25
paulrbut works :P08:25
paulrwindow.Sizzle = Sizzle;08:27
paulrhmm :P08:27
paulrdev/jquery.js:3686: WARNING - unreachable code08:27
dhx_manother compressor that breaks code? :)08:33
paulrheh08:33
paulrdunno :)08:33
paulrdoubt it08:33
paulrMINJAR = java -jar ${BUILD_DIR}/google-compiler-20091218.jar08:34
paulr@@${MINJAR} --js ${JQ} --warning_level QUIET >> ${JQ_MIN}08:35
paulrright so they a) hide warnings08:35
paulrb) run a 20091218 version which is out of date now08:35
dhx_mheh08:35
paulr   compiler-20091217.zip Zip file for closure-compiler Dec 17 3.7 MB 26908:36
paulr   compiler-20091217.tar.gz Tarball for closure-compiler Dec 17 3.7 MB 20308:36
paulrmm08:36
paulrgoogle don't list a 20091218 release though ;/08:36
paulrwe could get same version from http://github.com/jquery/jquery/tree/master/build/08:38
dhx_mdo they have a repository for Closure?08:39
paulrgoogle?08:39
paulrduno :)08:39
dhx_myep08:39
paulranyway, we can get the 20091218 compile from jquery's08:40
dhx_mhttp://closure-compiler.googlecode.com/files/compiler-latest.zip08:40
paulror just use current one and if we hit problems change08:40
paulrnod08:40
dhx_mfiles in that .jar were touched on June 16th08:40
paulrnod08:40
paulrthats' what i'm running atm08:40
dhx_mperhaps the script could download the latest Closure Compiler?08:40
paulrmm08:40
paulrthat might be more annoying08:41
paulrbut yea08:41
paulreither way08:41
paulrwe can build 'javascript/min'08:41
paulrfor release tarballs08:41
paulr(gives us an additional way to tell difference between release/svn users ;p08:42
paulrso next thing08:42
paulrhashes08:42
paulrfrom git :P08:42
dhx_mchecking08:45
dhx_m#git rev-list --all | git diff-tree --stdin -r -c -M -C | awk 'BEGIN{commit=""}{if(index($0,":")==0){commit=$1;}else{print "\t" "'"'"'" $4 "'"'"'" " => " "'"'"'" commit "'"'"'" ","}}' > integrity.php08:47
dhx_m#git tag -l release* | git cat-file --batch | grep "^object " | cut -d ' ' -f 2 | git cat-file --batch | grep "^tree " | cut -d ' ' -f 208:47
dhx_m#git ls-tree -r {tree-object-hash} | grep " blob " | awk '{print "\t\t" "'"'"'" $4 "'"'"'" " => " "'"'"'" $3 "'"'"'" ","}'08:47
dhx_msomething like those08:47
dhx_malso have this one:08:47
dhx_m#git rev-list --all | git diff-tree --stdin -r | awk 'BEGIN{commit=""}{if(index($0,":")==0){commit=$1;}else{print $6,$4,commit}}' | sort -s -k1,1 | awk 'BEGIN{file="."}{if(index($0,file)!=1){file=$1;print "\t);\n\t" "'"'"'" $1 "'"'"'" " => array(";}if($2!="0000000000000000000000000000000000000000"){print "\t\t" "'"'"'" $2 "'"'"'" " => " "'"'"'" $3 "'"'"'" ",";}}'08:47
dhx_mit's been so long since I wrote those that I don't know what does what :p08:47
paulrGetting objects/e5/0944ce028886db539855a0d7d0acbf5dc3a94b08:53
paulrwhats that commit08:53
dhx_m?08:53
paulrGetting objects/e5/0944ce028886db539855a0d7d0acbf5dc3a94b08:55
paulrbool(false)08:55
paulrf6dea35cf03319fe1f15ada084eaec417cc64cb108:56
paulrhttp://git.mantisbt.org/?p=mantisbt.git;a=commit;h=f6dea35cf03319fe1f15ada084eaec417cc64cb108:56
paulrhmm08:56
paulr403 Forbidden - Unknown commit object08:56
dhx_mwhat command did you run?08:57
dhx_mgit rev-list --all | git diff-tree --stdin -r -c -M -C | awk 'BEGIN{commit=""}{if(index($0,":")==0){commit=$1;}else{print "\t" "'"'"'" $4 "'"'"'" " => " "'"'"'" commit "'"'"'" ","}}'08:57
dhx_m?08:57
paulri'm running a php version08:58
paulrGetting branch [a6a8ed17748a91e019239beff77869c94198a232] refs/tags/release-1.2.1^{}08:58
paulrGetting objects/a6/a8ed17748a91e019239beff77869c94198a23208:58
paulrGetting branch [cd27a2d26c9b57c403c03ffd5a8d5b3f73594cbc] refs/tags/renamed-libraries-1.2.x08:58
paulrGetting objects/e5/0944ce028886db539855a0d7d0acbf5dc3a94b08:58
paulrf6dea35cf03319fe1f15ada084eaec417cc64cb1,08:58
dhx_mPHP git library?08:58
paulryes08:58
dhx_mugh that'll be slow?08:58
paulrseems to be fairly quick08:58
dhx_mfor listing all commit hashes ever?08:59
dhx_msorry... blob IDs :)08:59
paulrwhere was your output files?09:01
paulrso remind me09:05
paulrrelease blobs is files by brnahcn/tag ?09:05
dhx_mgit tracks files by an "object hash"09:05
dhx_mevery time a file changes in a commit, git creates a new object hash to represent the new file09:06
dhx_mrelease_blobs = keeps the object hashes for each file in the past MantisBT releases (we can choose how many releases to cater for)09:07
dhx_mcommit_blobs = keeps object hashes from *every* commit in the git tree09:08
dhx_mgoing back to the start of the repository09:08
dhx_m~4MB file09:09
paulri'm hoping I can generate it in php09:09
dhx_mit's fast to lookup though :)09:09
paulrthen we can just build array etc easily09:09
dhx_myep09:09
dhx_mI think for official releases we can just use release_blobs with the last two years worth of releases09:10
dhx_mthat way people can easily see if they're using old versions of MantisBT files that are no longer needed09:10
dhx_mif the object hash isn't in release_blobs then all they know is they've got an unknown file that doesn't trace back to any MantisBT commits09:11
dhx_m(any MantisBT releases in the last X releases)09:11
paulrwe tag releases right?09:20
nuclear_eclipseyep09:20
nuclear_eclipsewe have release tags going all the way back to 0.X.X releases09:20
nuclear_eclipse(I think)09:21
nuclear_eclipseok, nvm, just back to 1.0.009:21
paulrwe pgp sign releases?09:22
nuclear_eclipseI have been09:22
paulrcommirs09:22
nuclear_eclipsehttp://git.mantisbt.org/?p=mantisbt.git;a=tag;h=1eaa1d6ff23c107811dffb2a6f386e8dd57f036509:22
paulrseems quite a short sig09:23
nuclear_eclipsewell, it's just signing the git tag data09:24
paulris it possible to delete tags permanently from git?09:24
nuclear_eclipseyes09:24
paulraka do we need renamed-libraries-1.2.x09:25
nuclear_eclipseno09:25
nuclear_eclipseI've been wanting to drop that for a while09:25
nuclear_eclipse(deleted)09:27
dhx_m:)09:28
nuclear_eclipseyou just need to delete the tag locally now, `git tag -d renamed-libraries-1.2.x`09:28
dhx_mdo we need the 'rpxnow' repo?09:28
paulryes09:28
paulrwe should keep that for now at least imo09:29
dhx_mwhat is it?09:29
paulrwas victor's attempt at adding stuff09:29
paulrwhat is 2982c250eca8503408f1a1d8371382aadd515c7309:29
nuclear_eclipse1.0.009:29
paulrmm09:39
paulrwould I also have to delete the tags from mantisforge seperately?09:39
nuclear_eclipseprobably09:46
paulrwe dont have a http:// url for git on git.mantisbt.org do we?09:46
nuclear_eclipseit's just a matter of `git push <remote> :renamed-libraries-1.2.x`09:46
paulrwhat I could probably do is 'rm' the dir and let it repull09:46
paulras long as that wont break a fork09:47
paulr5691109:55
*** Joins: micahg (~micah@ubuntu/member/micahg)12:19
*** Quits: PennStater- (Aaron@c-98-236-4-139.hsd1.pa.comcast.net) (Changing host)12:47
*** Joins: PennStater- (Aaron@unaffiliated/pennstater)12:47
*** PennStater- is now known as PennStater12:49
*** Joins: fanno (~Morten@90.184.93.233)15:33
*** Joins: |HaruAFK| (~haruka@p54ACD292.dip.t-dialin.net)16:58
paulrdhx_m: was you using a package?17:10
|HaruAFK|mh, is there a shorter way than this?:17:30
|HaruAFK|$projects = explode(",", plugin_config_get('project_id',array()));17:30
|HaruAFK|if ($projects != null) {17:30
|HaruAFK|foreach ($projects as $key => $project) {17:30
|HaruAFK|$projects[$key] = (int)$project;17:30
|HaruAFK|}17:30
|HaruAFK|}17:30
|HaruAFK|print_project_option_list($projects);17:30
*** Quits: moto-moi (~hylke@cara.xs4all.nl) (Quit: Ex-Chat)17:36
*** Quits: rolfkleef (~rolf@urtica.xs4all.nl) (Read error: Operation timed out)18:21
*** Quits: fanno (~Morten@90.184.93.233) (Read error: Connection reset by peer)18:28
*** Quits: paulr (~paul@cpc1-enfi9-0-0-cust389.hari.cable.virginmedia.com) ()18:51
*** Quits: scribe9343423 (~scribe934@static.96.23.63.178.clients.your-server.de) (Remote host closed the connection)19:59
*** Joins: scribe9343423 (~scribe934@static.96.23.63.178.clients.your-server.de)20:00
*** Quits: dhx_m (~anonymous@c122-107-200-23.eburwd5.vic.optusnet.com.au) (Read error: Connection reset by peer)21:54
*** Joins: dhx_m (~anonymous@c122-107-200-23.eburwd5.vic.optusnet.com.au)22:22
*** Joins: |Otter| (~haruka@p54ACF961.dip.t-dialin.net)22:37
*** Quits: |HaruAFK| (~haruka@p54ACD292.dip.t-dialin.net) (Ping timeout: 265 seconds)22:41

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