Large post consisting entirely of . breaks preview
-
It's not Ruby.
Yes, it is v8, so I guess it is Irregexp unless v8 changed again since 2009.
-
It's not Ruby. The preview pane is done in Javascript, and the server side is done by exec-ing that same javascript server side, in a vain attempt to have the two arsers produce the same markup.
I
standsit corrected. Still probably a stack-model evaluation engine though, which was my key point. Fully automata-theoretic engines don't have that problem (making up for it with others, natch…)
-
Disable preview pane checkbox
Workaround: use the mobile version of the site temporarily.
-
So JavaScript, running on modern 4.0 GHz quad-core systems, can emulate a 30 MHz CPU from 30 years ago.
jsLinux actually emulates a Pentium MMX, but it's not a PC emulator (it emulates an embedded system, which makes it easier to run in browser).
But there are other emulators written in Javascript, which emulate real machines:
Atari ST
x86
Amiga
DOSBox
Gameboy
-
Are there any JavaScript PC emulators that can run a browser?
-
DOSBox should be able to run Windows 3.11, which runs several browsers. Only problem is that you don't have network emulation in these emulators.
-
I want at least HTTP so I can run the JavaScript emulator in itself.
-
There are DOS browsers out there too, complete with a TCP/IP stack in DOS. Arachne comes to mind but I could be wrong.
-
But could you emulate the browser inside itself?
-
-
Did Discourse resize that image?
-
It's a dos browser ... screens where not that big in that era.
-
Did Discourse resize that image?
Probably. The original is 1024x768.
-
-
It was supposed to onebox, but didn't for some reason.
-
@sam is there anything in the logs about a reason @system didn't download the image?
-
It was supposed to onebox, but didn't for some reason.
I think you need to add a newline. From what I can see in the raw output, you didn't.
Filed under: TRWTF is Markdown
-
@sam is there anything in the logs about a reason @system didn't download the image?
I'm guessing it's too large?I think you need to add a newline. From what I can see in the raw output, you didn't.
It needs two newlines? The preview window certainly showed it oneboxing with only one.
-
It needs two newlines? The preview window certainly showed it oneboxing with only one.
One should do it, I think. If preview showed it oneboxing than there might be something else wrong. So far the preview was consistent for me on the onebox front.
-
-
For fun and fame? If this surprises you you should see the brainfuck cross-compiler that is also written in brainfuck, or the turing machine implemented in Conway's game of life, or anything made by this guy.
-
Bug report: middle click on the numbers in circles. The number goes up and nothing else happens.
-
Bug report: middle click on the numbers in circles. The number goes up and nothing else happens.
It opens the link for me. But right-clicking the number also increases it.
-
This post is deleted!
-
But right-clicking the number also increases it.
Shift-clicking is what does it for me (chrome on mac)However, it only updates the number, not the link's title attribute, and only locally - reloading the page takes you back to where you were (beyond, I think, one click that is taken into account).
-
I'm guessing it's too large?
You're right. The GIF is ~7MB and Discourse only allow/download images up to 2MB by default.
-
Missing from the FAQ:
###Dear $deity WHY?
-
Giving it a shot in 3..2..1
-
I just fixed this ....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
-
Not the same thing reported, I can confirm a bunch of "tall" periods definitely causes noticeable JS unhappiness and slowdowns, though in Chrome it does not lock me out of the topic.
Conclusion: Firefox sucks.
-
I tested this and fixed this.
There is one fiendishly atrocious bug though.
TRWTF is that we allow people to enter more than 32000 chars on the client and then reject it.
At least Stack Overflow has a somewhat sane error:
Conclusion: We suck.
-
OK, so you can't post because your post is 32,001 chars. So you split it into two posts, or you edit your post to be less than 32,000 chars.
Not like we delete any content over 32k chars. That'd be bad. That'd be traumatic. But being told "hey, post too long, try again" after you submit, is that really the end of the world?
How common is it to have posts over 32k? How many do we have here, or anywhere else, that even approach that size? Is this urgent?
That Stack Overflow error was added several years into development. How many years have we been developing Discourse?
-
We could argue about this all day, or I could just change it so our error message is not deranged.
-
I am all for improved copy; I thought you were proposing a dynamic check on the client at the moment that 32,001th character is typed.
-
dynamic check is high risk, post v1.
-