User talk:Walterpachl: Difference between revisions

m
testing
m (testing)
 
(21 intermediate revisions by 4 users not shown)
Line 4:
I noticed you removed the math tags from the Munchausen task. Why? Were they not rendering correctly? [[User:Fwend|Fwend]] ([[User talk:Fwend|talk]]) 12:15, 24 September 2016 (UTC)
: Yes, They rendered the text invisible on Internet explorer. :-( What good are they anyway? --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 13:15, 24 September 2016 (UTC)
::: What good are they? They render formulas much better. [[User:Fwend|Fwend]] ([[User talk:Fwend|talk]]) 14:17, 24 September 2016 (UTC)
:: The MediaWiki processing of <math> tags can go wrong if they enclose unexpected redundant space. As a result, ill-formed HTML is generated which prevents the display of the graphic file for the formula on most browsers, though a minority, like Firefox, can still use an alternative route, if the right fonts are installed, by locally processing MathML.
:: On the whole, you should find that you don't need to entirely remove the <math> tag - eliminating redundant space between the tags, particularly just after the opening tag, and just before the closing tag, should usually be enough, though there are some other special space patterns which also choke the MediaWiki's translation of <math> tags into HTML [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 13:27, 24 September 2016 (UTC)
:: The most important thing is that if anyone uses or edits <math> tags, they '''must''' be careful to test them on both kinds of browsers, i.e. for example, on one of the browsers like Chrome, Safari, IE (the majority - which use the graphic file), asand on wellone asof the minority, like Firefox, which can locally process MathML to display a formula, as long as the right fonts are installed. [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 13:27, 24 September 2016 (UTC)
::: For a list of tasks descriptions with formulae which have accidentally been made invisible to most browsers by <math> tag editing in the last six months, see:
::: http://rosettacode.org/wiki/User_talk:Hout
:::: I know about the redundant space but mine didn't have any, as far as I can see: <nowiki><math>3435 = 3^3+4^4+3^3+5^5</math></nowiki>. I just tried it with Edge and it does indeed not render, which is strange because Edge does render the Wikipedia math tags. [[User:Fwend|Fwend]] ([[User talk:Fwend|talk]]) 14:17, 24 September 2016 (UTC)
::::: Is that expression well-formed in TeX ? I think that the MediaWiki's generation of a graphic file (with its wrapping HTML) for use by the majority of browsers may choke unless it manages to parse the expression as TeX. [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 14:24, 24 September 2016 (UTC)
::::::: If I copy and paste the math tags above to wikipedia, using exactly the same Edge browser, it renders just fine (in the preview). It looks like this tag only fails at Rosetta Code. [[User:Fwend|Fwend]] ([[User talk:Fwend|talk]]) 15:03, 24 September 2016 (UTC)
:::::::: If you inspect the HTML generated, you will find that the Rosetta installation of MediaWiki is creating the graphic file OK, but dropping a semi-colon between two attributes, so that the browser just finds ill-formed HTML and skips it.
:::::::: Perhaps Wikipedia has installed a later build ? Tho even they have related problems – only yesterday I restored the lost visibility of one of the first three formulae on the Wiki page on Symmetric Difference, by pruning extraneous space out of its &lt;math&gt; tag ... [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 15:07, 24 September 2016 (UTC)
 
::::::::: Just checked – Wikipedia is using a slightly later build '''MediaWiki 1.28.0-wmf.20''' (vs Rosetta's '''MediaWiki 1.26.2''') so an upgrade might reduce the fragility of the '''&lt;math&gt;''' tag processing – though not (to judge from yesterday's invisible Wikipedia formulae) entirely eliminate it.
::::::::: Cosmetic editing will still need to involve checking in both kinds of browsers [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 15:33, 24 September 2016 (UTC)
 
:::::: See https://www.mediawiki.org/wiki/Extension:Math [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 14:27, 24 September 2016 (UTC)
:::::: https://meta.wikimedia.org/wiki/Help:Displaying_a_formula [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 14:30, 24 September 2016 (UTC)
 
==Edit oddity==
Line 71 ⟶ 83:
 
::::: Thanks Walterpachl, it's appreciated. --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 21:16, 4 October 2014 (UTC)
 
==Another transportation problem==
On tio, I modified a copy of [[Transportation_problem#REXX]] to start with
 
4 5 # of sources / # of demands
50 60 50 50 sources
30 20 70 30 60 demands
16 16 13 22 17 cost matrix
14 14 13 19 15
19 19 20 23 50
50 12 50 15 11
 
and found I also had to change the first Do i=1 To 5 in init to Do i=1 To 7, then it worked fine. Obviously it would be better to analyse the first line and then loop/read from 2 to (number of sources+3). It also strikes me the code on that page should actually be on [[Vogel%27s_approximation_method]] and maybe try stepping stone or something else on the tp page, jmo. --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 12:58, 10 December 2020 (UTC)
:Two problems or three:
I discovered Vogel's page only after I finisher this pgm. And my pgm does not properly work with Vogel's data :-(
<br>I am still trying to understand how to optimize :-(
<br>I don't know how t proüerly sign such a text.
<br>Anyway, thanks for caring :-) Walter
:: You sign posts by typing <nowiki>--~~~~</nowiki> but not inside &lt;nowiki&gt;&lt;/nowiki&gt; as I just did then ==&gt;&gt; --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 18:41, 10 December 2020 (UTC)
::Testing --Walter Pachl 19:05, 10 December 2020 (UTC)
2,289

edits