Markjreed
Joined 24 August 2022
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)
Captcha
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. http://rosettacode.org/mw/index.php?title=CSNOBOL4&action=edit&redlink=1 . 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 Vjrecaptcha__en.js:159:117 worecaptcha__en.js:326:505 xorecaptcha__en.js:326:303 Eorecaptcha__en.js:331:392 (anonymous function)recaptcha__en.js:334:318 crecaptcha__en.js:318:833
--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)
- Still unable to create a new page, although I'm able to edit existing ones..--Markjreed (talk) 03:48, 31 December 2015 (UTC)