[12:00:54] http://www.mediawiki.org/wiki/Thread:Talk:WikiLove/Am_I_the_only_hater%3F [12:01:03] This is serious business. [12:07:54] <^demon> No time for lovin', we've got an encyclopaedia to write! [12:12:17] <^demon> I hope the weather holds for the launch. [12:14:18] If you're interested, there's some similar content on [[:w:Template talk:Like]]. [12:17:03] <^demon> That's a pretty awful template, I agree. [12:20:55] *guillom likes. [13:24:00] *^demon wants sumanah to come back :( [14:26:50] hexmode: maybe I missed it -- did you already send out your report from this week's bug triage? [14:34:42] <^demon> sumanah: You got my e-mail yes? I should have more feedback today :) [14:35:04] ^demon: I did see it, and am looking forward to hearing or hearing about that feedback! [14:35:19] <^demon> (mildly distracted at the moment by the shuttle launch) [15:27:17] sumanah: no, I'll send it this AM [15:27:48] or early in the PM ... did most of it last night [15:29:24] <^demon> Shuttle launch at 31s and holding. [17:06:20] neilk_: ping [17:06:32] hey [17:06:45] ^alxndr [17:07:15] heya, Alexander from Tuesday here, I think we talked about that common-element-finding algorithm and you hadn't seen one using iterators before? [17:07:26] alxndr: yes [17:08:04] I sat down to see if what I came up with would work, and in the process of writing it realized that I would have eventually decided to step through both anyway, it sorta screamed out at me while trying to recreate my version [17:08:17] anyway, here it is with iterators: http://pastebin.com/sk5iaEXx I think people don't use it cause you have to catch an exception? [17:08:39] ^alxndr - reading [17:09:21] yeah I wrote it out myself later and your solution is isomorphic to having pointers [17:09:40] or rather, normal integer indices into the array [17:09:55] you get the same effect just from i++, j++ [17:10:25] so the iterators are probably not useful [17:10:37] heh [17:10:48] just the first thing I thought of [17:11:00] it was an interesting idea [17:11:18] anyway you more or less understood what the problem was, that's all that I look for [17:11:31] of course, nailing it does help :) [17:11:44] gotcha, well it kept bugging me, so I banged it out last night [17:12:03] yeah I do the same thing after interviews sometimes [17:12:16] ha [17:13:16] I knew the solution informally but you made me realize I should really write it out myself [17:13:17] http://pastebin.com/TSXBSS0p [17:14:26] iterators seemed like they could have a performance benefit cause you don't have to keep a variable for the indices around, but I don't actually know [17:14:51] alxndr -- interesting, how is that a benefit [17:15:11] alxndr: I mean the iterator has to know somehow, right? [17:15:53] yeah, I just figure the fewer variables we need to have around the better, perhaps the compiler has some trick to it [17:16:08] just hypothetical [17:16:33] alxndr: generally when you are programming something new, what is your priority -- clarity, efficiency, something else? [17:17:34] clarity I suppose, I haven't had to do a lot worrying about scale yet. elegance is nice too but not if it gets in the way of clarity [17:18:27] Don't prematurely optimised ;) [18:36:43] if somebody could put the logging in purgeThumbnails() as I mentioned in bug 28613, that would be really useful, since I can reproduce the problem right now [18:36:57] I'll do it [18:37:03] no one else is about I think [18:37:26] Bryan, can we kill the @ too? :P [18:37:34] go ahead [18:37:50] is the wfDebugLog() stream somewhere viewable via http? [18:38:05] I'm not sure [18:38:13] I think it'll be private on fenari [18:38:18] Yeah [18:39:16] I can keep an eye on it [18:41:42] you should probably set $wgDebugLogGroups['purgeThumbnails'] [18:43:19] *Reedy waits for svn up on fenari [18:44:39] poke me when you're ready and I'll try to generate some errors [18:46:03] hello [18:47:24] All $wgDebugLogGroups are set to UDP on the wmf config... [18:48:45] UDP goes to /h/w/logs [18:48:58] i'm purging, now [18:49:02] it should give results [18:49:23] You can also do wfErrorLog( 'message', 'udp://10.0.5.8:something/foo' ); and it'll go to /h/w/logs/foo.log [18:50:25] $wgDebugLogGroups['purgeThumbnails'] = 'udp://10.0.5.8:8420/purgethumbnails'; it is then [18:50:35] or purge thumbs [18:50:54] Ah yes [18:50:55] You would have to set $wgDebugLogGroups['purgeThumbnails'] = 'udp://10.0.5.8:8420/purgeThumbnails'; [18:51:35] Whatever, as long as it hasn't got spaces in it or anything [18:51:45] The part after the slash becomes the log file name (plus .log) [18:51:48] yeah [18:51:56] i was more meaning using thumbs rather than thumbnails [18:52:08] Oh OK [18:52:15] Well it's your party [18:52:29] By the sounds of it, the party is on the 4th floor [18:52:41] Yeah [18:52:45] no 2nd floor [18:52:55] SimplyShe has a party in the alley, IIRC, noon-3pm [18:53:02] There's posters for that in the elevator [18:53:05] aah [18:53:18] (SimpleShe is on the 4th floor IIRC) [18:54:22] Bryan, give it a try now [18:55:36] Reedy: see something? [18:55:57] RoanKattouw, do I need to touch the file or anything first? [18:56:03] Shouldn't [18:56:06] You could try [18:56:20] Make sure it's got the same perms as the other files in the dir [18:56:24] it could also just mean that the unlink() does not fail [18:56:57] Maybe you could hack in a success log as well just to debug the logger :) [18:57:04] Some are root:root, some foo:wikidev [18:57:29] That doesn't look right [18:57:33] Most are root:root and 644 [18:57:50] OK so what's the name of the log group again? [18:57:57] purgeThumbnails [18:58:11] I have a quicker idea: var_dump( wfFindFile( 'Kaulitz Berlin 1708.jpg' )->getThumbnails() ); [18:58:33] could you eval.php that? [18:59:19] Empty array [18:59:38] success logging [18:59:51] well, at least that explains that purgeThumbnails() never fails on unlink() [18:59:58] back in a few [19:00:11] Bryan: I ran it on commonswiki I hope that was OK [19:00:17] yes [19:00:20] that is correct [19:02:17] ls /mnt/upload6/wikipedia/commons/thumb/0/03/Kaulitz_Berlin_1708.jpg/ [19:02:23] does that give any results? [19:02:47] ls: cannot access /mnt/upload6/wikipedia/commons/thumb/0/03/Kaulitz_Berlin_1708.jpg/: No such file or directory [19:03:00] riiiiiight [19:03:01] tomaszf: around? [19:03:15] not really .. in a really long meeting [19:03:21] feel free to mail me though [19:03:38] RoanKattouw: does /mnt/upload6/wikipedia/commons/0/03/Kaulitz_Berlin_1708.jpg exist? [19:03:53] No [19:04:06] But its parent doesn't either [19:04:09] So the path is wrong [19:04:17] tomaszf: k, just trying to ping you about the iphone app [19:04:21] Oh, nm [19:04:24] Leading slash [19:04:39] but I can do that by email ;) [19:04:43] thanks! [19:05:15] RoanKattouw: so it does exist? [19:05:20] Bryan: Yes that file does exist [19:05:42] -rw-r--r--+ 1 apache apache 2041813 2011-07-08 18:16 /mnt/upload6/wikipedia/commons/0/03/Kaulitz_Berlin_1708.jpg [19:06:04] aaaah right [19:06:05] 'thumbDir' => str_replace( '/mnt/upload6', '/mnt/thumbs', "$wgUploadDirectory/thumb" ), [19:06:18] ls /mnt/thumbs/wikipedia/commons/thumb/0/03/Kaulitz_Berlin_1708.jpg/ [19:06:22] does that work? [19:07:39] Directory exists and is empty [19:08:06] ok [19:08:16] but the image servers do not agree with this apparently [19:12:20] Bryan, RoanKattouw [19:12:27] 2011-07-08 19:11:21 srv160 commonswiki: LocalFile::purgeThumbnailsSuccess [19:12:27] 2011-07-08 19:11:21 srv160 commonswiki: LocalFile::purgeThumbnailsSuccess [19:12:36] all successful [19:13:05] I'll summarize the debugging that we just did on the bug [19:14:03] Might aswell just revert it all, right? [19:14:12] Or just remove the success logging for the moment? [19:18:20] you can remove the logging all together I think [19:18:24] thanks for the help [19:18:55] https://bugzilla.wikimedia.org/show_bug.cgi?id=28613#c46 [19:21:06] pity apergos is not here [19:38:05] 2011-07-08 09:06:54 srv290 enwiki: [19:38:06] 2011-07-08 09:07:25 srv290 enwiki: [19:38:09] Useful log is useful [19:46:12] jorm, !log reedy synchronized php-1.17/wmf-config/InitialiseSettings.php 'Enable wikilove on mediawikiwiki' [19:46:23] excellent! [19:55:03] *Krinkle has been waiting for that. [19:55:46] jorm: I've done some thinking today on what we briefly touched last week. WikiMessaging. [19:56:01] ... [19:56:17] I've hacked something locally to use WikiLove on Wikimedia Commons. I find it the best way to leave concept-messages I ever found [19:56:29] ie. {{test2|Random_vandalized_page}} ~~~~ [19:56:39] or {{subst:Blocked|1 week|Copyright violation uploads}} ~~~~ [19:56:49] Super easy and good looking [19:56:51] which thing? [19:57:09] oh, you mean making it easier for users to leave talk page messages, in a wikilove style manner. [19:57:25] Ie the process of adding wiki-text to a talk page in a new section with the ability to pass parameters to a template, all without touching wikitext and just using buttons and forms. [19:57:54] Perhaps integrate into LiquidThreads (Compose new from template) [19:58:00] Email clients have that too. [19:58:13] Just thinking out loud :) [19:58:42] hrm. that's an interesting idea. [19:59:44] ie. on commons we could add a dozen template to the sysop-usergroups LQT interface for things like: blocking users, giving users the patrol right {{UserWelcomeAndInfoPatrol}}. [19:59:53] etc. [20:00:42] I realise it's a bit against the WikiLove nature (less negative messaging, stats show many edits to talk page are warnings) [22:27:57] hi Ryan_Lane - thanks for keeping me in the loop wrt Ensemble [22:28:13] Ryan_Lane: did you ever write up your grand vision for Wikimedia Dreamlabs? (getting name wrong) [22:43:09] sumanah: yw [22:43:12] didn't write it up yet [22:43:17] I'm doing it really soon though [22:43:24] :D [22:43:24] cause I'm going to base my wikimania talk off of it [22:43:27] yay! [22:43:31] and I need to run it through danese first [22:43:33] and soon [22:43:40] Ryan_Lane: I think you & I had some pm conversation once where you braindumped about it [22:43:45] in case you are looking for material to munge [22:43:45] yep [22:43:57] I log everything ;) [22:44:02] ominous [22:44:04] heh