If you'd like another way to do it, Chrome's "find" function displays the number of occurrences on the page, (and highlights them in yellow, and indicates with yellow where they are in the scrollbar), which I find extremely nice. And it is useful here; it says 18 instances of "by pauan" (case-insensitive) and 9 "by rocketnia". This counts the original post, by Pauan, so it would be a total of 17+9=26 (perhaps you accidentally counted that too). Similar tactics yield 63 instances of "by pauan" (including OP) and 22 "by rocketnia" on the second thread, for a total of 84 (not including OP). This actually matches with what you said, because now there are 129 comments; probably you and/or Pauan made two comments in between this comment and my writing this. (If you were actually counting on your fingers, that's pretty good.)
In the absence of this find thing, I'd probably use some Unix tools.
$ pbpaste | egrep -c 'by (Pauan|rocketnia)'
85
The drawback of these methods is that if someone actually says the phrase "by rocketnia" in a post, then that'll screw this up. This could be remedied by counting instances of actual links to names in the page source:
<a href="user?id=waterhouse">waterhouse</a>
Actually, that works perfectly, because you can't put such things in comments (if you type <> characters, they show up as &#<whatever>;, and a comment can't make a link to something but have the text be different (except perhaps in a submission... pretty ridiculous to submit someone's user page, though). Only drawback is that your own username shows up in the upper right corner, too, which isn't a comment (and, again, it counts the OP too). Still, it works pretty well otherwise.
If we subtract my name because it's an extra that shows up just because I'm logged in as me, then the rest of the numbers add to 129, which is the number of comments on the page. So it doesn't include the OP. This is because, in the HTML of these pages, the top of the page and the original post are on the same line of HTML; and I am not yet strong enough with the Force to make sed a) perform more than one substitution in a line while b) printing only the substituted part. (I have .* on both sides of the above to make it consume the rest of the line; the 'p' command prints the whole resulting line.)
Incidentally, stuff like this would be made easier by something that parsed HTML (can you tell that I like making my computer do these things for me?), that was insensitive to how stuff was broken up into lines. I've considered writing an HTML parser in Arc, but these Unix tools are good enough most of the time, and I haven't really felt the need.[1] (Perhaps I could take a look at that multi-line editing stuff... it seems it'd suck to enter that into a terminal, on separate lines. Maybe the semicolons would work. Probably something better would be better, though.) Any thoughts or experiences? (I can derail this thread all the way back into Arc!)
Oh, nice, you have addressed exactly what I was asking for. Hmm, but question... Why not do this? I mean, you mention that it's not the only way, but this seems to work and doesn't require anything like gensymming.
I guess the advantage of your approach is that you can choose to only import the functions you want. If that's particularly important for some reason, then, sure, do it. But I suspect it might actually be useful to import the entire module, especially at the REPL when you're just starting out using it. Particularly if you have a "scheme apropos" function.
I added the "sort <" part just now, by the way. Can't believe I didn't think to do that originally (though I did at least add it to the "aps" thing somewhat earlier).
There was something or other that wasn't working when using $ directly because it was Racket-specific and it didn't work in Arc's mzscheme module. I forget now what it was though. (Clearly parse-xml is a bad example as it does work with a simple require).
Thanks. :) I was hoping for a response like this. And hey, look, Akkartik has more posts in there than I do.
I actually did use Chrome, but I both overthought and underthought things: Since I knew Pauan and I had a majority, I tried to search for every non-Pauan, non-rocketnia post. XD I ended up stepping over every occurrence of "point", which was even worse than searching for the majority.
Once I had typed out "point", what I really wanted was to continue with "s? by (?!Pauan|rocketnia)".