User talk:Paddy3118: Difference between revisions
Content added Content deleted
m (→adding a thingy for prime numbers as there is for sorting (algorithms): changed a word.) |
(→«math» HTML tags not rendering correctly: added a new talk section.) |
||
Line 1,694: | Line 1,694: | ||
: I agree with you, primes are a natural grouping. On the name for "others" it might be best to see what gets put there and name it afterwards?<br> |
: I agree with you, primes are a natural grouping. On the name for "others" it might be best to see what gets put there and name it afterwards?<br> |
||
--[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 15:39, 11 July 2020 (UTC) |
--[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 15:39, 11 July 2020 (UTC) |
||
== «math» HTML tags not rendering correctly == |
|||
In a Rosetta Code task (that I entered, namely the task: '''Leonardo numbers'''), I tried to use the ''exact'' <big> <nowiki> <math> </nowiki> </big> HTML tag that is used on Wikipedia (for '''Leonardo number'''), but on Rosetta Code, it produces a big red error message. |
|||
Here is the Wikipedia code, as-is (from the '''Leonardo number''' entry on Wikipedia): |
|||
<pre> |
|||
:<math> |
|||
L(n) = |
|||
\begin{cases} |
|||
1 & \mbox{if } n = 0 \\ |
|||
1 & \mbox{if } n = 1 \\ |
|||
L(n - 1) + L(n - 2) + 1 & \mbox{if } n > 1 \\ |
|||
\end{cases} |
|||
</math> |
|||
</pre> |
|||
{I also have the (above) code "inside" the '''Leonardo numbers''' Rosetta Code task as an HTML comment.} |
|||
The error messages produced are (the original error message is one big long sentence): |
|||
<b> |
|||
<pre style="font-size:200%;color: red"> |
|||
Failed to parse (MathML with SVG or PNG fallback (recommended |
|||
for modern browsers and accessibility tools): Invalid |
|||
response ("<p>There was a problem during the HTTP request: |
|||
503 Service Unavailable </p>") from server |
|||
"http://mathoid.testme.wmflabs.org":): |
|||
L(n) = \begin{cases} 1 & \mbox{if } n = 0 \\ 1 & \mbox{if } |
|||
n = 1 \\ L(n - 1) + L(n - 2) + 1 & \mbox{if } n > 1 \\ |
|||
\end{cases} |
|||
</pre> |
|||
</b> |
|||
The (above) messages are very similar to the error messages produced when there are leading and/or trailing whitespace in the <big> <nowiki> <math> </nowiki> </big> HTML tags elsewhere on Rosetta Code. |
|||
Now, the (failing) text does have leading and trailing blanks, but it <u>does</u> work on Wikipedia, but not on Rosetta Code. You may recall the tiff that ensued when I used leading and trailing blanks on various <big> <nowiki> <math> </nowiki> </big> HTML tags, (it worked for FireFox, but not some other web browsers), and the ensuing stone throwing. Apparently, it's easier to cast stones than address the real problem. I had found/mentioned a fix that I read about after searching in the dark (this was because the error is caused in an "area" of HTML rendering that I newer heard or knew of), but the fix (not a program fix, but some kind of specification) was never implemented as far as I know; the fix is outside of my knowledge of such things. |
|||
I have elided the leading, trailing, and embedded superfluous whitespace, but no matter what combination I used, it always produced an error message. |
|||
In trying to debug the (above) error, I had taken the <big> <nowiki> <math> </nowiki> </big> HTML tag that is used within the preamble of the Rosetta Code task '''Bernoulli numbers''', and I changed (on the Rosetta Code task '''Bernoulli numbers''') the bold '''B''' within the <big> <nowiki> <math> </nowiki> </big> HTML tag text to an '''S''', and that also produced the same error!! Just an attempted single character change. I also tried various other character (letter) substitutions, all produced the same error message. No whitespace was changed. What's going on? A caching problem, perhaps? -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 19:10, 11 July 2020 (UTC) |
|||
Also (and you might want to burn this paragraph after reading, least I propagate vandelous information), I have found that when those particular red bold error messages are produced, <u>and</u> left there (without clearing the display of the error), and then, in another (FireFox or Internet Explorer) window, trying to access the Rosetta Code website (any page), I essentially received a (I think) a '''505''' (504?) error saying that the '''Rosetta Code''' website isn't responding. Now, it could be that only '''I''' couldn't access the Rosetta Code site, not others. In essence, I may have stumbled on a method for a denial-of-service. This is one reason that I think this problem should be addressed and fixed. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 19:10, 11 July 2020 (UTC) |