Author Topic: So now we can get mathy in here?  (Read 13878 times)

0 Members and 1 Guest are viewing this topic.

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19990
  • Country: gb
  • 0999
Re: So now we can get mathy in here?
« Reply #25 on: February 12, 2016, 07:26:19 pm »
I can't see any formulae, just code.
It works for me now I'm at home.

When at work the firewall probably blocks it. This shouldn't be relied on to work for everyone.
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 12726
  • Country: ch
Re: So now we can get mathy in here?
« Reply #26 on: February 12, 2016, 09:39:25 pm »
Apparently he installed LaTeX, was that the reason for the downtime?
Now if only the forum server were configured to support Unicode correctly…
 

Offline edy

  • Super Contributor
  • ***
  • Posts: 2387
  • Country: ca
    • DevHackMod Channel
Re: So now we can get mathy in here?
« Reply #27 on: February 13, 2016, 01:14:53 am »
What is interesting is on my BlackBerry Z10 I see the codes as text first, then a split second later it is replaced with the formulas rendered normally.

It is as if the page is post-processed by the browser to recognize Latex and substitute it in after.
YouTube: www.devhackmod.com LBRY: https://lbry.tv/@winegaming:b Bandcamp Music Link
"Ye cannae change the laws of physics, captain" - Scotty
 

Offline zapta

  • Super Contributor
  • ***
  • Posts: 6289
  • Country: 00
Re: So now we can get mathy in here?
« Reply #28 on: February 13, 2016, 01:39:13 am »
I do see a beautifully formatted fomula, nice. So it renders fine apparently on my machine too.
On Tapatalk here it looks like Gibberish.
 

Offline Dave

  • Super Contributor
  • ***
  • Posts: 1356
  • Country: si
  • I like to measure things.
Re: So now we can get mathy in here?
« Reply #29 on: February 13, 2016, 01:58:21 am »
On Tapatalk here it looks like Gibberish.
Pretty much everything looks awful on Tapatalk.

Want to view a shematic? It either throws a nasty compressed image at you or just a randomly zoomed and cropped one.
Random smileys thrown into the text all the time, no way of disabling them.
Want to check out a link? Here, use Tapatalk's site as a redirect. Site not working and throwing you a 502? That's too bad, bro, I guess you won't be seeing that link after all. |O
<fellbuendel> it's arduino, you're not supposed to know anything about what you're doing
<fellbuendel> if you knew, you wouldn't be using it
 

Offline crispy_tofu

  • Super Contributor
  • ***
  • Posts: 1124
  • Country: au
Re: So now we can get mathy in here?
« Reply #30 on: February 13, 2016, 10:33:54 am »
I believe this is due to the LaTeX thing, but I might be wrong - is anyone else seeing the
Code: [Select]
\( \renewcommand{\renewcommand}{} \)
at the top left of the page for a moment when it loads?
It happens whenever I open/refresh a page and disappears after a second or so.
Just wondering.  :-//

Tested working on Chrome OS 49 beta, Firefox 44 Android (on full site mode), Chrome 47 64-bit Windows
Doesn't work on IE9 (eek)
« Last Edit: February 13, 2016, 10:36:15 am by crispy_tofu »
 

Offline tggzzz

  • Super Contributor
  • ***
  • Posts: 20732
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: So now we can get mathy in here?
« Reply #31 on: February 13, 2016, 10:53:55 am »
I believe this is due to the LaTeX thing, but I might be wrong - is anyone else seeing the
Code: [Select]
\( \renewcommand{\renewcommand}{} \)
at the top left of the page for a moment when it loads?
It happens whenever I open/refresh a page and disappears after a second or so.
Just wondering.  :-//

Tested working on Chrome OS 49 beta, Firefox 44 Android (on full site mode), Chrome 47 64-bit Windows
Doesn't work on IE9 (eek)

I use the NoScript plugin, which disables JavaScript from all domains except those which I have authorised. It speeds some sites up significantly, as well as letting me see who is trying to track me :)

I now see that "renewcommand" at the top of every page, and also that "mathjax.org" is waiting to be loaded. When I enable mathjax.org's JavaScript, the "renewcommand" disappears.

Conclusion: yes, it is a Latex/mathjax/JavaScript thing.
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Offline crispy_tofu

  • Super Contributor
  • ***
  • Posts: 1124
  • Country: au
Re: So now we can get mathy in here?
« Reply #32 on: February 13, 2016, 11:15:03 am »
Okay, thanks.  :-+
 

Offline Maxlor

  • Frequent Contributor
  • **
  • Posts: 565
  • Country: ch
Re: So now we can get mathy in here?
« Reply #33 on: February 13, 2016, 12:02:37 pm »
What happens if we mix regular text and LaTeX to express something like a \(\mu\)V? Ah, kinda works. Lets try 20\(\Omega\). I guess it might look funny on some mobile displays. And then there's the jumping around at page load...
« Last Edit: February 13, 2016, 12:05:23 pm by Maxlor »
 

Offline MarkDennehy

  • Contributor
  • Posts: 31
  • Country: ie
    • Stochastic Geometry
Re: So now we can get mathy in here?
« Reply #34 on: February 13, 2016, 02:47:20 pm »
I know nothing about LaTex.
I'm actually kindof impressed nobody made the 12-year-old's jokes with that magnificent setup line...
 

Offline MarkDennehy

  • Contributor
  • Posts: 31
  • Country: ie
    • Stochastic Geometry
Re: So now we can get mathy in here?
« Reply #35 on: February 13, 2016, 02:48:26 pm »
Someone mentioned on twitter that Latex is a potential server security threat?  :-//
Did they also say not to sit too close to the telly in case the radiation damaged your eyes? :D
 

Offline HAL-42b

  • Frequent Contributor
  • **
  • Posts: 423
Re: So now we can get mathy in here?
« Reply #36 on: February 13, 2016, 05:01:36 pm »
I use the NoScript plugin, which disables JavaScript from all domains except those which I have authorised. It speeds some sites up significantly, as well as letting me see who is trying to track me :)

I now see that "renewcommand" at the top of every page, and also that "mathjax.org" is waiting to be loaded. When I enable mathjax.org's JavaScript, the "renewcommand" disappears.

Conclusion: yes, it is a Latex/mathjax/JavaScript thing.

This is because Mathlax is rendered on another site. It is possible to install it locally so reliance on another service is eliminated. I doubt Dave would manage it, but it is child's play for a Linux elf.
 

Offline AlxDroidDev

  • Frequent Contributor
  • **
  • Posts: 471
  • Country: br
    • Arduino Web Brasil
Re: So now we can get mathy in here?
« Reply #37 on: February 14, 2016, 01:12:42 am »
What happens if we mix regular text and LaTeX to express something like a \(\mu\)V? Ah, kinda works. Lets try 20\(\Omega\). I guess it might look funny on some mobile displays. And then there's the jumping around at page load...

It looks funny on my desktop display. I have all my formulas scaled 200% automatically, and in your previous text I have a tiny "20" and then a huge "omega". I just wish the forums would accept it like this: ?

or using &#937;
"The nice thing about standards is that you have so many to choose from." (Andrew S. Tanenbaum)
 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 13130
Re: So now we can get mathy in here?
« Reply #38 on: February 14, 2016, 03:51:09 pm »
Just checking something.  Hopefully this is blocked.
$$E \href{javascript:alert("Einstein says so!")}{=} mc^2$$

Whoops. it isn't. Clicking the = runs arbitrary javascript!  :palm:

« Last Edit: February 14, 2016, 03:54:37 pm by Ian.M »
 

Offline SeanB

  • Super Contributor
  • ***
  • Posts: 16366
  • Country: za
Re: So now we can get mathy in here?
« Reply #39 on: February 14, 2016, 04:02:14 pm »
So, probably best to disable the plugin, as you then have the ability to run arbitrary code on any page.
 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 13130
Re: So now we can get mathy in here?
« Reply #40 on: February 14, 2016, 04:09:05 pm »
Dave *URGENTLY* needs to reconfigure it for mathjax safe mode. http://docs.mathjax.org/en/latest/options/Safe.html
Meanwhile I'd advise blocking cdn.mathjax.org
 

Offline SeanB

  • Super Contributor
  • ***
  • Posts: 16366
  • Country: za
Re: So now we can get mathy in here?
« Reply #41 on: February 14, 2016, 06:31:08 pm »
Interesting exploit that uses the "Safe" Javascript to execute any arbitrary code, which just looks like some rubbish, but which is interpreted by the Javascript as valid commands.

Quote
In the example, there's like this crazy string of plus open paren open paren plus exclamation exclamation open bracket closed bracket plus open bracket closed bracket closed parens plus open parens exclamation point plus open bracket closed bracket plus exclamation point exclamation point open bracket closed bracket closed parens plus open parens - and I'm about halfway through: +((+!![]+[])+(!+[]+!![])+(!+[]+!![]+!![]+[])). 

From Twit.....

https://www.grc.com/sn/sn-546.htm

Around half way down, simplest is to search for the quote.
 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 13130
Re: So now we can get mathy in here?
« Reply #42 on: April 11, 2016, 05:06:53 am »
Dave's enabled safe mode to block Javascript in mathjax markup.
https://www.eevblog.com/forum/suggestions/latex-for-eevblog/msg916266/#msg916266
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf