November 21, 2024, 06:03:41 AM
Forum Rules: Read This Before Posting


Topic: Sandbox?  (Read 232365 times)

0 Members and 3 Guests are viewing this topic.

Offline curiouscat

  • Chemist
  • Sr. Member
  • *
  • Posts: 3006
  • Mole Snacks: +121/-35
Sandbox?
« on: December 01, 2012, 08:39:17 AM »
Can I request a Sandbox thread or area? Often I can't get my LaTex code or SMILE right at first go and it'd be nice to have somewhere to test. I sweat trying to compete against the 30 minute modify limit.   :)

PS. The Preview feature doesn't seem to render Tex? Or maybe it's only my stupid browser?

Wondering what others think..

Offline Borek

  • Mr. pH
  • Administrator
  • Deity Member
  • *
  • Posts: 27852
  • Mole Snacks: +1813/-412
  • Gender: Male
  • I am known to be occasionally wrong.
    • Chembuddy
Re: Sandbox?
« Reply #1 on: December 01, 2012, 08:55:16 AM »
Tex is not rendered in the preview and unfortunately there is not much that can be done about it - preview is fetched from the server without reloading the page, and MathJax script runs on a page load. On the other hand SMILES images are created server side, so they are displayed in the preview.

We can devote some thread to testing and delete the content now and then, no problem. I can't think of a better solution at the moment. But I am open to suggestions.

It is possible to create some simple sandbox for MathJax, but it would be not integrated with the forum itself, not the idea that I like.
ChemBuddy chemical calculators - stoichiometry, pH, concentration, buffer preparation, titrations.info

Offline curiouscat

  • Chemist
  • Sr. Member
  • *
  • Posts: 3006
  • Mole Snacks: +121/-35
Re: Sandbox?
« Reply #2 on: December 01, 2012, 08:56:56 AM »
We can devote some thread to testing and delete the content now and then, no problem.

That's the solution I had in mind.

Offline Dan

  • Retired Staff
  • Sr. Member
  • *
  • Posts: 4716
  • Mole Snacks: +469/-72
  • Gender: Male
  • Organic Chemist
    • My research
Re: Sandbox?
« Reply #3 on: December 01, 2012, 09:07:55 AM »
This would be useful, I also never get Tex right first time.

Just had a thought, can you PM yourself to test it?

You can PM yourself Tex to test it.
« Last Edit: October 22, 2022, 02:52:30 PM by Borek »
My research: Google Scholar and Researchgate

Offline curiouscat

  • Chemist
  • Sr. Member
  • *
  • Posts: 3006
  • Mole Snacks: +121/-35
Re: Sandbox?
« Reply #4 on: December 01, 2012, 09:10:21 AM »
This would be useful, I also never get Tex right first time.

Just had a thought, can you PM yourself to test it?

You can PM yourself Tex to test it.

Yep! Works.

Offline curiouscat

  • Chemist
  • Sr. Member
  • *
  • Posts: 3006
  • Mole Snacks: +121/-35
Re: Sandbox?
« Reply #5 on: December 12, 2012, 01:23:18 PM »
Just testing to see if I could draw the species in this thread with SMILES

http://www.chemicalforums.com/index.php?topic=64389.0;topicseen

c1ccccc1C=C=Cc2ccccc2

c1ccccc1CC([Fe+][CO4])Cc2ccccc2
« Last Edit: December 12, 2012, 02:24:26 PM by curiouscat »

Offline Yggdrasil

  • Retired Staff
  • Sr. Member
  • *
  • Posts: 3215
  • Mole Snacks: +485/-21
  • Gender: Male
  • Physical Biochemist
Re: Sandbox?
« Reply #6 on: December 12, 2012, 01:33:36 PM »
The following site has a nice sandbox for testing out LaTeX code (and is a good reference as well).

http://www.forkosh.com/mimetextutorial.html

Offline curiouscat

  • Chemist
  • Sr. Member
  • *
  • Posts: 3006
  • Mole Snacks: +121/-35
Re: Sandbox?
« Reply #7 on: December 12, 2012, 01:36:21 PM »
The following site has a nice sandbox for testing out LaTeX code (and is a good reference as well).

http://www.forkosh.com/mimetextutorial.html

Thanks! Loved the site!

Offline Borek

  • Mr. pH
  • Administrator
  • Deity Member
  • *
  • Posts: 27852
  • Mole Snacks: +1813/-412
  • Gender: Male
  • I am known to be occasionally wrong.
    • Chembuddy
Re: Sandbox?
« Reply #8 on: December 12, 2012, 02:13:18 PM »
Thanks Ygg, I have added link to the forkosh sandbox to the post formatting info.
ChemBuddy chemical calculators - stoichiometry, pH, concentration, buffer preparation, titrations.info

Offline Borek

  • Mr. pH
  • Administrator
  • Deity Member
  • *
  • Posts: 27852
  • Mole Snacks: +1813/-412
  • Gender: Male
  • I am known to be occasionally wrong.
    • Chembuddy
Re: Sandbox?
« Reply #9 on: December 12, 2012, 02:15:20 PM »
<br />c1ccccc1C=C=C<br />

Apparently SMILES don't like new lines in the SMILES code. Obvious, but I have never thought about it earlier.

c1ccccc1C=C=C
ChemBuddy chemical calculators - stoichiometry, pH, concentration, buffer preparation, titrations.info

Offline curiouscat

  • Chemist
  • Sr. Member
  • *
  • Posts: 3006
  • Mole Snacks: +121/-35
Re: Sandbox?
« Reply #10 on: December 12, 2012, 02:16:58 PM »

Apparently SMILES don't like new lines in the SMILES code. Obvious, but I have never thought about it earlier.


Ahhhh!   :P  Thanks!

Offline Borek

  • Mr. pH
  • Administrator
  • Deity Member
  • *
  • Posts: 27852
  • Mole Snacks: +1813/-412
  • Gender: Male
  • I am known to be occasionally wrong.
    • Chembuddy
Re: Sandbox?
« Reply #11 on: December 13, 2012, 08:11:56 AM »
New lines should be dealt with (almost) correctly now.

ALT text is still wrong, but this is more difficult to deal with due to the way things are organized in the forum code.

CCNCC

<br />CCNCC<br />

ChemBuddy chemical calculators - stoichiometry, pH, concentration, buffer preparation, titrations.info

Offline curiouscat

  • Chemist
  • Sr. Member
  • *
  • Posts: 3006
  • Mole Snacks: +121/-35
Re: Sandbox?
« Reply #12 on: December 13, 2012, 08:54:57 AM »
Trying to test the limits by rendering Palytoxin. Let's see if I can break anything. :)

<br />CC1CC2(C(OC(C1)(O2)CCCCCCCC(CC3C(C(C(C(O3)(CC(C(C)C=CC(CCC(C(C4CC(C(C(O4)CC(C(CC5C(C(C(C(O5)CC(C=CC=CCC(C(C(CC=CC(=C)CCC(C(C(C(C)CC6C(C(C(C(O6)C=CC(C(CC7CC8CC(O7)C(O8)CCC9C(CC(O9)CN)O)O)O)O)O)O)O)O)O)O)O)O)O)O)O)O)O)O)O)O)O)O)O)O)O)O)O)O)O)CC(C)CCCCCC(C(C(C(C(C1C(C(C(C(O1)CC(C(C(=CC(CC(C)C(C(=O)NC=CC(=O)NCCCO)O)O)C)O)O)O)O)O)O)O)O)O)O)C<br /><br />

Offline sjb

  • Global Moderator
  • Sr. Member
  • ***
  • Posts: 3653
  • Mole Snacks: +222/-42
  • Gender: Male
Re: Sandbox?
« Reply #13 on: December 13, 2012, 09:13:59 AM »
Yeah, I looked at that the other day for the other thread, note that the wiki SMILES doesn't have stereochemical information on it.

Offline Borek

  • Mr. pH
  • Administrator
  • Deity Member
  • *
  • Posts: 27852
  • Mole Snacks: +1813/-412
  • Gender: Male
  • I am known to be occasionally wrong.
    • Chembuddy
Re: Sandbox?
« Reply #14 on: December 13, 2012, 09:45:13 AM »
Not always good for forum formatting, but apparently the engine survived.

Although rendered image is not following IUPAC suggestions - it should be more compact. There are things that can be improved in the indigo, so far one of my suggestions made its way into the code (but I have no idea when it is will be released).
ChemBuddy chemical calculators - stoichiometry, pH, concentration, buffer preparation, titrations.info

Sponsored Links