User talk:Markjreed

From Rosetta Code

what the heck was that 'f"${v}%03d"' thing?

Didn't mean to make you gag. It's string interpolation. Works in Scala 2.10.

"%03d".format(v) is the better way to go. Works in older version of Scala. Doesn't invoke the gag reflex.

(Context: edited this page) I don't recall gagging; for one thing, I'm a Perl guy.  :) I figured it was some newfangled feature, but my Google-fu failed me, and the standard install on ubuntu and os x homebrew still gets me 2.9. So as you say, I went with the form that works on older Scala. Thanks for the explanation! Markjreed 02:27, 6 February 2013 (UTC)


Are captchas working now? Difficult for me to test. --Michael Mol (talk) 20:51, 29 December 2015 (UTC)

Nope, at least not when trying to create a new page, e.g. . At the bottom it says `To protect the wiki against automated page creation, we kindly ask you to solve the following CAPTCHA:`, but there is no CAPTCHA there to solve. If I turn on the js error console, I get this message:
Error: Missing required parameters in RecaptchaOptions: sitekey
(anonymous function)recaptcha__en.js:334:318

--Markjreed (talk) 23:11, 29 December 2015 (UTC)

OK. That should be enough for me to track it down. --Michael Mol (talk) 01:25, 30 December 2015 (UTC)
I see a captcha now. Does it behave properly for you? ---Michael Mol (talk) 02:36, 30 December 2015 (UTC)
Still unable to create a new page, although I'm able to edit existing ones..--Markjreed (talk) 03:48, 31 December 2015 (UTC)
Yeah, there's a bug in either MW or Curl on this host ... it's ignoring proxy settings passed into curlopts, so the host tries to connect to Google's servers directly, rather than go through the local proxy infrastructure. I was going to contact MW devs to try to figure it out, but I may instead set up a transparent proxy on the host to snag attempts to reach out on port 80 and direct them through the proxy infra. --Michael Mol (talk) 04:21, 31 December 2015 (UTC)
You setting them via $wgHTTPProxy in MW or the http_proxy envar? --Markjreed (talk) 18:52, 31 December 2015 (UTC)