Saturday, 2011-07-16

*** Quits: dhx1 (~anonymous@60-242-108-164.static.tpgi.com.au) (Read error: Connection timed out)01:22
*** Joins: dhx1 (~anonymous@60-242-108-164.static.tpgi.com.au)01:22
*** Joins: daryn (~daryn@h239.83.88.75.dynamic.ip.windstream.net)01:26
dhx1daryn: hey :)01:26
darynmornin01:26
darynhttps://github.com/tmaiaroto/li3_access01:26
dhx1have been looking at XSLT templates (used by Symphony CMS)01:26
darynuhg...01:27
dhx1seems OK to me? :)01:28
darynya01:28
dhx1better option that PHPTAL I think01:29
dhx1in the sense that it is a more widely accepted standards01:29
darynright01:29
dhx1doing much the same work01:29
dhx1li3_access seems quite abstract to me01:31
dhx1adapters, objects, etc01:31
daryni just happened to see it has a roles based adapter01:31
dhx1$result = Access::check('test_check', $guest, $request, array('checkSession' => false));01:32
dhx1seems like decent syntax01:32
dhx1there are a few issues I've seeen, i18n support is lacking, example"01:34
dhx1throw new ConfigException("Configuration `{$name}` has not been defined.");01:34
darynwhat is the difference between g11n and i18n?01:34
daryni have translations working by the way01:35
dhx1this was inside li3_access... so we'd need to work out how to translate those error messages better01:35
darynthat should be easy01:36
dhx1not sure what g11n (globalisation) is meant to be01:36
dhx1they're all just silly acronyms meaning much the same thing01:37
dhx1typically though, i18n = translations, l10n = unit conversions, currency01:37
daryndoes translations, validation, currency, and dates01:37
darynG11n data is not just translated messages, it's validation rules, formats and a lot more, too. Data is grouped into 4 different kinds of categories: inflection, validation_, message and list.01:37
darynfrom the docs01:38
dhx1hmm ok01:38
daryni think inflection is not implemented yet01:39
dhx1validation can be quite complex... for instance, selecting the Unicode code page to validate against, etc01:39
dhx1most people just use loose validation rules for Unicode so that you can mix and match English, Russian, Chinese, etc scripts in the same message01:40
daryni'm heading to bed. it's late here.  i'd like to commit some updates to lithium branch sometime this weekend for your perusal.01:47
dhx1sure, I'm interested in reviewing :)01:47
dhx1cya later01:47
darynk...hopefully by tomorrow evening01:48
daryngn01:48
dhx1:)01:48
dhx1cya01:48
*** Parts: daryn (~daryn@h239.83.88.75.dynamic.ip.windstream.net) ()01:48
*** Joins: dhx_z (~anonymous@60-242-108-164.static.tpgi.com.au)04:01
*** Quits: dhx1 (~anonymous@60-242-108-164.static.tpgi.com.au) (Ping timeout: 255 seconds)04:01
*** dhx_z is now known as dhx104:01
*** Joins: bretonium (~breton@89.146.69.124)05:00
bretoniumhello. Is it possible to disable displaying graphical attachments as images (forbid auto formatting with <img>) and display them as usual attachments?05:02
bretoniumoh, nevermind, already found in documentation05:07
*** Joins: Paul_ (~IceChat09@2001:470:9310:aaaa:c70:4a68:1be1:a05c)05:09
dhx1Paul_: hi05:14
Paul_mo05:14
*** Quits: Paul_ (~IceChat09@2001:470:9310:aaaa:c70:4a68:1be1:a05c) (Quit: OUCH!!!)05:24
*** Joins: Paul_ (~IceChat09@2001:470:9310:aaaa:442:cc38:e5ed:a201)05:30
dhx1Paul_: have you seen Symphony CMS?05:40
dhx1Paul_: not Symfony the framework... they're totally different things05:40
Paul_no05:40
dhx1Symphony CMS uses XSLT templates to generate HTML output05:41
dhx1so it takes an XML file (generated by PHP), an XSL template and converts them both (using inbuilt PHP functionality, default in PHP 5.3) to generate HTML05:42
Paul_got a demo of the backend?05:42
dhx1http://www.php.net/manual/en/xsltprocessor.transformtoxml.php05:45
* Paul_ ponders :P05:46
dhx1I only refer to Symphony CMS because it uses XSLT... there really isn't much code to look at because it's all built into PHP05:46
Paul_right05:46
dhx1http://en.wikipedia.org/wiki/XSLT#Example_2_.28transforming_XML_to_XHTML.2905:48
dhx1actually05:48
dhx1better to start from /xsltprocessor.transformtoxml.php05:48
dhx1* Paul_ ponders :P05:48
dhx1it seems like a nice-ish way of decoupling the output layer05:50
Paul_seen lithium?05:50
dhx1yep daryn is working on a demo05:50
dhx1(it's on github)05:50
dhx1there is a lot to like... but it seems a little too abstract in places?05:51
Paul_i've been trying to use it05:53
Paul_and pointed it out to daryn05:53
Paul_using 7.5GB of ram atm :)05:55
dhx1cache?05:56
Paul_nah05:56
Paul_games, vmware05:56
Paul_etc :)05:56
dhx1ah, VMware would do it05:57
Paul_3 copies of eve = 2-3gb05:57
dhx1hah06:01
GitHub30[mantisbt] davidhicks pushed 2 new commits to master: http://bit.ly/pF3ZhD06:40
GitHub30[mantisbt/master] Only use array_merge() on subproject_ids when required - Sebastian Kayser06:40
GitHub30[mantisbt/master] Merge pull request #7 from skayser/master - David Hicks06:40
GitHub93[mantisbt] davidhicks pushed 1 new commit to master-1.2.x: http://bit.ly/rjBbZ206:44
GitHub93[mantisbt/master-1.2.x] Only use array_merge() on subproject_ids when required - Sebastian Kayser06:44
GitHub198[mantisbt] davidhicks pushed 1 new commit to master: http://bit.ly/nYSybt06:54
GitHub198[mantisbt/master] Use placeholder attribute for stopwatch on bug update page - David Hicks06:54
*** Joins: vilarion (~chatzilla@i59F4F4DE.versanet.de)07:09
vilarionhi07:10
vilarionI have a problem with github integration07:10
vilarionafter setting up the repository, I can load the latest two commits, but the next one always fails07:11
vilarionis there a way to get more information why?07:11
*** Quits: dhx1 (~anonymous@60-242-108-164.static.tpgi.com.au) (Ping timeout: 258 seconds)07:33
*** Joins: vilarion_ (~vilarion@illarion.org)07:33
*** Quits: vilarion (~chatzilla@i59F4F4DE.versanet.de) (Quit: ChatZilla 0.9.87 [Firefox 5.0/20110615151330])07:34
*** vilarion_ is now known as vilarion07:34
*** Quits: bretonium (~breton@89.146.69.124) (Ping timeout: 250 seconds)07:38
*** Joins: dhx1 (~anonymous@60-242-108-164.static.tpgi.com.au)07:42
*** Joins: asm89 (~asm89@unaffiliated/asm89)08:12
*** Quits: vilarion (~vilarion@illarion.org) (*.net *.split)08:17
*** Joins: vilarion (~vilarion@illarion.org)08:19
*** Quits: asm89 (~asm89@unaffiliated/asm89) (Quit: bye!)08:22
jreesevilarion: it might be because of the API rate limiting08:26
vilarionphp?08:26
jreeseno, the Gtihub integration uses Github's API to retrieve information abotu the repository, and Github sometimes has rate limiting on their API08:27
jreesealthough they say the limit is currently 60 API calls per minute08:28
vilarionokay, so there is no workaround?08:29
jreesejust wait some time and press import latest data again, and it should pick up where it left off08:29
vilarionokay, I tried several times over the last hours, but it is still stuck.08:30
jreesehmm, then that might be an issue with the repo data itself08:30
jreeseis it a public repo that I can look at, or is it private?08:31
vilarionI am not familiar with json, php is not even my field of work, maybe there is a way to print more info why it fails08:31
vilarionyes08:32
vilarionhttps://github.com/vilarion/Illarion-Server08:32
vilarioni.e. yes it is public :)08:33
jreesethanks, I'll see if I can find something obvious08:34
vilarionthank you very much!08:34
vilarionit is commit 1ee that fails08:35
jreeseok08:35
jreesehmm, I wonder if that's a problem on Github's end?  that seems to be a big commit :P08:36
vilarionyes it is08:36
vilarionglobal formatting change :D08:36
jreeseah, I also notice it has utf8 characters in it08:36
jreesethat tends to be a sticking point for the svn plugins too08:36
vilarionhm, okay08:37
vilarionthere is not much I can do about utf-8 in old commits though08:44
jreeseI'm not sure that's the problem actually08:51
jreeseit looks like it's a problem with php itself08:51
jreeseor rather, it's ability to run json_decode() on the giant blob from Github08:52
jreesebasically, the plugin is fetching that data from the API, and running json_decode() to translate it into an object, but for some reason, json_decode() is returning NULL for that data08:56
vilarionokay08:56
* jreese is still investigating08:56
jreeseJSON_ERROR_UTF808:58
jreese"Malformed UTF-8 characters, possibly incorrectly encoded."08:58
jreesethe question is whether that's fixable on the plugin's part08:58
vilarionor if it is a github problem08:59
vilarionin their api08:59
jreeseok, so utf8_encode() and utf8_decode() don't fix it09:00
vilariontheir may be some weird character encodings in some source files, since someone cluttered them with german comments a long time ago09:00
jreesevilarion: the only thing I can suggest for the time being would be to insert a commit manually into the database09:01
vilarionbut since it was just in comments I never cared and just deleted them occasionally09:01
vilarionokay09:01
jreeseI can try submitting a bug report to Github, but the Github integration isn't using their newest API version, so I don't know if they'll be willing to help09:02
vilarionI understand09:03
jreeseoh wait09:03
jreesemy test was incorrect09:03
jreeseI never actually used the correct variable when I tested utf8_encode :P09:03
jreeseI think that was the fix09:03
vilarionhehe09:04
jreeselol, it just reminded me there's a patch for mantis itself that's been sitting in my queue to fix this problem09:05
jreesevilarion: apply this patch to your copy of mantis: https://github.com/mantisbt/mantisbt/pull/1/files09:05
vilarionokay09:06
GitHub172[mantisbt] jreese pushed 1 new commit to master: http://bit.ly/qiJr4Q09:07
GitHub172[mantisbt/master] Merge pull request #1 from 01-Scripts/master - John Reese09:07
vilarionit does something09:07
vilarionall commits were imported, nice09:08
vilarionthank you very much!09:08
jreeseyou're welcome09:09
jreesesorry it took me that long to figure it out, I should have known that already09:09
GitHub29[mantisbt] jreese pushed 1 new commit to master-1.2.x: http://bit.ly/nPgT0M09:09
GitHub29[mantisbt/master-1.2.x] Problems if the json-message contains special characters like german umlauts (äöü). Commit should fix that problem. - 01-Scripts09:09
jreesethat fix will be part of the next release now :P09:10
vilarionokay, great :D09:10
vilarionI just upgraded from 1.2.3 today09:10
vilarionthere was something else during that process09:12
vilarionthe post installation checker warned me that it couldn't find jpgraph09:12
vilarionbut when I set the vars, there was another warning, that they were deprecated09:13
jreeselol, graphs, don't even get me started on that mess =/09:13
vilarionand there is a Graph plugin in the core installation09:13
dhx1heh :)09:13
vilarionhehe09:13
jreesedhx1: your turn09:14
vilarionso in the end I just ignored it09:14
dhx1Paul_: I've rebased db-on-restructure to the latest master... fixing up Exception handling now (converting from trigger_error to custom Exception classes)09:14
jreesevilarion: should be fine I think09:14
vilarionguessed so, hehe09:15
dhx1Paul_: I've had to make Error::exception_handler accept a variable of any type09:15
dhx1Paul_: then I'm checking that it's an object, then using ReflectionClass to see if it's a subclass of Exception09:15
dhx1Paul_: I don't think it's possible to pass something like MyCustomException (extension of Exception) as an argument to a function: exception_handler( Exception $exception )09:17
dhx1Paul_: as part of this... I have had to make a pseudo error within the error handler for invalid arguments passes into exception_handler()...09:18
dhx1Paul_: the fun error message at the moment is: $errorInfo->message = 'An invalid exception type was caught by the exception handler. Unfortuantly no further information can be obtained.';09:18
dhx1Paul_: this will never be noticed unless someone calls exception_handler() directly (stupid idea!)09:18
*** Quits: siebrand (~siebrand@5353A6DC.cm-6-4c.dynamic.ziggo.nl) (Read error: Connection reset by peer)09:27
*** Joins: siebrand (~siebrand@5353A6DC.cm-6-4c.dynamic.ziggo.nl)09:27
GitHub132[mantisbt] davidhicks created next (+51 new commits): http://bit.ly/pJjxEu10:07
GitHub132[mantisbt/next] Move config files to application/config directory.  This will be out of the web tree once restructuring is complete. - Daryn Warriner10:07
GitHub132[mantisbt/next] Move core files to application/core.  The .htaccess file will not be needed as this will not be reachable - Daryn Warriner10:07
GitHub132[mantisbt/next] Move Soap api to application/services/soap. - Daryn Warriner10:07
dhx1"next" = work that Paul, daryn and myself have been doing on the following areas:10:10
dhx11) restructure MantisBT directories10:10
dhx12) replace ADOdb with PDO equivalent10:10
dhx13) replace error_api with modern OO exception handling10:10
dhx14) + other misc 'rewrite' stuff10:11
dhx1the branch is often in a semi broken state as a result (until all the rewriting is complete)10:12
* Paul_ confused10:31
dhx1Paul_: easier for us to commit to... common location for everyone to make chagnes to10:33
Paul_not sure that matches what I got locally though :(10:34
dhx1I suggest rebasing your local branch to the current master10:34
dhx1then comparing it to this 'next' branch10:34
dhx1or just push your local branch to Github and I can do it? :)10:35
Paul_tbh, nothing much has changed in master10:37
Paul_I just think i'd done some tidying up of random stuff10:38
Paul_need to copy files off old pc10:38
Paul_and mess about10:38
dhx1the point of 'next' is that you can push your changes there straight away10:39
dhx1and not have to worry about it breaking things10:39
dhx1if the 3 of us (and anyone else interested) are working on this branch at the same time it's going to be much easier if we're committing things "as they happen" instead of storing them up10:39
GitHub141[mantisbt] davidhicks pushed 2 new commits to next: http://bit.ly/r1GMO110:53
GitHub141[mantisbt/next] Replace additional access denied errors - David Hicks10:53
GitHub141[mantisbt/next] Replace error_string calls with calls to the Error class - David Hicks10:53
Paul_I think i'd already done some of that ;p10:54
Paul_before10:54
Paul_as access denied = obvious exception10:54
Paul_I dont really get what 'next' got created from10:55
Paul_or is next based on lithium?10:55
dhx1nah, it's based on your db branch and daryn's restructure branch10:57
GitHub104[mantisbt] davidhicks pushed 1 new commit to next: http://bit.ly/rqbhUg11:08
GitHub104[mantisbt/next] Remove test error from start of access_api - David Hicks11:08
*** Quits: siebrand (~siebrand@5353A6DC.cm-6-4c.dynamic.ziggo.nl) (Read error: Connection reset by peer)11:09
*** Joins: siebrand (~siebrand@5353A6DC.cm-6-4c.dynamic.ziggo.nl)11:10
*** Quits: siebrand (~siebrand@5353A6DC.cm-6-4c.dynamic.ziggo.nl) (Read error: Connection reset by peer)11:50
*** Joins: kirillka (~Miranda@235-218-55-95.baltnet.ru)11:57
*** Joins: Cupertino (~Cupez@unaffiliated/cupertino)12:01
*** Quits: vilarion (~vilarion@illarion.org) (Quit: leaving)12:13
*** Joins: daryn (~daryn@h239.83.88.75.dynamic.ip.windstream.net)12:58
*** Quits: daryn (~daryn@h239.83.88.75.dynamic.ip.windstream.net) (Quit: Ex-Chat)13:18
*** Joins: daryn (~daryn@h239.83.88.75.dynamic.ip.windstream.net)13:42
*** Quits: kirillka (~Miranda@235-218-55-95.baltnet.ru) (Quit: kirillka)16:10
*** Quits: Cupertino (~Cupez@unaffiliated/cupertino) (Quit: I give up...)16:29
*** Joins: siebrand (~siebrand@5353A6DC.cm-6-4c.dynamic.ziggo.nl)17:06
*** Joins: roentgen (~arthur@openvpn/community/support/roentgen)18:43
*** Quits: scribe9343423 (~scribe934@static.96.23.63.178.clients.your-server.de) (Remote host closed the connection)20:00
*** Joins: scribe9343423 (~scribe934@static.96.23.63.178.clients.your-server.de)20:00
*** Quits: Paul_ (~IceChat09@2001:470:9310:aaaa:442:cc38:e5ed:a201) (Quit: Easy as 3.14159265358979323846...)20:58
dhx1daryn: hey21:17
GitHub29[mantisbt] davidhicks pushed 20 new commits to next: http://bit.ly/r8mhsG23:19
GitHub29[mantisbt/next] Implement EmptyField exception - David Hicks23:19
GitHub29[mantisbt/next] Merge empty field and GPC empty var errors - David Hicks23:19
GitHub29[mantisbt/next] Remove unused error ERROR_SQL - David Hicks23:19
*** Quits: roentgen (~arthur@openvpn/community/support/roentgen) (Ping timeout: 264 seconds)23:21
*** Joins: roentgen (~arthur@openvpn/community/support/roentgen)23:26
*** Quits: daryn (~daryn@h239.83.88.75.dynamic.ip.windstream.net) (Ping timeout: 260 seconds)23:30
*** Joins: daryn (~daryn@h239.83.88.75.dynamic.ip.windstream.net)23:31
daryndhx1, hello23:32
dhx1daryn: hi23:32
darynlots of commits, eh23:32
dhx1:)23:33
dhx1working on redoing error handling23:33
daryncool23:34
dhx1trying to remove all trigger_error stuff, remove error constants, use standard translation strings for error messages, etc23:34
darynnice23:34
dhx1and using new Exception classes to build the message string, take arguments for error messages, specify HTTP return codes, etc23:35
*** Joins: micahg (~micahg@24-148-38-99.c3-0.arm-ubr3.chi-arm.il.cable.rcn.com)23:35
*** Quits: micahg (~micahg@24-148-38-99.c3-0.arm-ubr3.chi-arm.il.cable.rcn.com) (Changing host)23:35
*** Joins: micahg (~micahg@ubuntu/member/micahg)23:35
GitHub174[mantisbt] davidhicks pushed 1 new commit to next: http://bit.ly/oWDGP623:50
GitHub174[mantisbt/next] Implement HTTP response codes for exceptions - David Hicks23:50

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