× Didn't find what you were looking for? Ask a question
Top Posters
Since Sunday
c
5
j
5
a
5
L
5
f
5
j
5
D
4
k
4
y
4
t
4
h
4
l
4
New Topic  
Doctor-2-B Doctor-2-B
wrote...
Donated
Valued Member
Posts: 1634
10 years ago
Forum software strips backslashes from LaTex source.  When the system detects and executes a post merge, LaTex gets destroyed because the backslashes are gone.

Here's an (irritating) example:
https://biology-forums.com/index.php?topic=90945.msg254385#msg254385

Can't fix the original post now that the system broke it, and I can't quote the text to fix it as a new reply.  The system hangs at the yellow "Loading..." box.

This bug messed up a good bit of work.  Frustrating....
Read 1521 times
14 Replies
Pretty fly for a SciGuy

Related Topics

Replies
wrote...
Educator
10 years ago
Thanks for posting this, Doctor-2-B. Sorry for not getting back to you earlier, totally missed the thread. I'm trying to quick modify your post, and it is hanging on the "Loading" screen like you said.

I really have no idea why this is happening: mathrm. The forum has a "strip-slashes" function that removes all backslashes to prevent any sort of hacking before a post is added to the database. The false flag is being raised when you're posting a second time, since it's merging the posts. Why you can't quick modify beats me, and I apologize for that.

What do you suggest I do?
wrote...
Educator
10 years ago
Let me try and replicate what you did.

1) You used TEX in your first post.
2) You tried making a second post, it merged, and all TEX in the primary post messed up, right?
Doctor-2-B Author
wrote...
Donated
Valued Member
10 years ago Edited: 10 years ago, Doctor-2-B
Yes that's exactly what happened. I guess you could prevent stripping backslashes from within tex tags? I mean if I was able to edit the post or quote the post and get the original content I would've just did the fix myself
Post Merge: 10 years ago

The mathrm is what requires the backslash before it inside the TEX tags. It is used to depict the particular isotope and I believe that's A Z notation
Post Merge: 10 years ago

I also had to consolidate the post because it was telling me I had too many Smileys when in fact I had none. I had about 30 tex tags. I was getting an error: "you can only have up to 20 smileys"
Pretty fly for a SciGuy
wrote...
Educator
10 years ago
The smilies thing was added by me two years ago, I will remove it because it's confusing TEX tags with smilies.
wrote...
Educator
10 years ago
I can shed some good news.

Update: With a small change to the code, you can now add an infinite amount of math code without getting the smilies error.

Underlying Issue: The code used to look for the <img tag, but now I made it look for alt="smile", that way it doesn't confuse the two...
Doctor-2-B Author
wrote...
Donated
Valued Member
10 years ago
Well That's nice! Did my original post get fixed too?
Pretty fly for a SciGuy
wrote...
Educator
10 years ago
Unless it is manually edited, it will remain the way it is.

Here's the code:

Code:
Alpha decay emits an alpha particle (A Helium atom):
[math=inline]{}^4_2mathrm{He}

{}^{14}_6mathrm{C} -> {}^{10}_4mathrm{Be} + {}^4_2mathrm{He}[/math]
notice that 14 = 4 + 10 and 6 = 2 + 4 (the sides are balanced)
The resultant species is Beryllium-10 because the atomic number is 4.  The mass number is 10, but this only identifies which isotope of Be is present, not the identity of the element.

β[sup]-[/sup] decay emits an electron and an antineutrino (to conserve energy):
[math=inline]{}^{14}_6mathrm{C} -> {}^{14}_7mathrm{N} + {}^0_{-1}mathrm{{e^{-}}}[/math] + [sup]¯[/sup]v[sub]e[/sub]
In this case, the substance decays to Nitrogen-14 (atomic number 7)

β[sup]+[/sup] decay emits a positron and a neutrino (to conserve energy):
[math=inline]{}^{14}_6mathrm{C} -> {}^{14}_5mathrm{B} + {}^0_{1}mathrm{{e^{+}}} + {{v}_{e}}[/math]
In this case, the substance decays to Boron-14 (atomic number 5)

[u]Uranium-248[/u] ([math=inline]{}^{248}_{92}mathrm{U}[/math]):
[math=inline]{alpha}-decay:{}^{248}_{92}mathrm{U} -> {}^{244}_{90}mathrm{Th} + {}^4_2mathrm{He}

{{eta}^{-}} decay: {}^{248}_{92}mathrm{U} -> {}^{248}_{93}mathrm{Np} + {}^0_{-1}mathrm{{e^{-}}} + {^{-}}{{v}_{e}}

{{eta}^{+}} decay: {}^{248}_{92}mathrm{U} -> {}^{248}_{91}mathrm{Pa} + {}^0_{1}mathrm{{e^{+}}} + {{v}_{e}}[/math]


[u]Potassium-40[/u] ([math=inline]{}^{40}_{19}mathrm{K}[/math]):
[math=inline]{alpha}-decay: {}^{40}_{19}mathrm{K} -> {}^{36}_{17}mathrm{Cl} + {}^4_2mathrm{He}

{{eta}^{-}} decay: {}^{40}_{19}mathrm{K} -> {}^{40}_{20}mathrm{Ca} + {}^0_{-1}mathrm{{e^{-}}} + {^{-}}{{v}_{e}}

{{eta}^{+}} decay: {}^{40}_{19}mathrm{K} -> {}^{40}_{18}mathrm{Ar} + {}^0_{1}mathrm{{e^{+}}} + {{v}_{e}}[/math]
[fieldsettop]Post Merge: [time]29-10-2013, 00:00[/time][/fieldsettop]
Just an aside, when someone refers to beta-decay and doesn't specify +/-, it's assumed they're talking about β[sup]-[/sup] decay (emission of an electron and an antineutrino).

It does appear to be a lot of editing. I'd just leave it, personally.
Doctor-2-B Author
wrote...
Donated
Valued Member
10 years ago
I just had to add backslashes before the mathrm's.  Got it done.
Pretty fly for a SciGuy
wrote...
Educator
10 years ago
Cool, can we mark this thread solved?
wrote...
Staff Member
10 years ago
I agree with the topic author. This has been one thing that has bothered me from the get-go. It needs to be altered so that if someone asks for no email notifications, it also stops updating the unread replies also.
- Master of Science in Biology
- Bachelor of Science
Doctor-2-B Author
wrote...
Donated
Valued Member
10 years ago
Wrong thread?
Pretty fly for a SciGuy
wrote...
Staff Member
10 years ago
Err. Crap
- Master of Science in Biology
- Bachelor of Science
Doctor-2-B Author
wrote...
Donated
Valued Member
10 years ago
It *was* me, just another thread of mine. Slight Smile
Pretty fly for a SciGuy
  New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  846 People Browsing
Related Images
  
 146
  
 297
  
 315
Your Opinion
Which industry do you think artificial intelligence (AI) will impact the most?
Votes: 379