You're looking at Less Wrong's discussion board. This includes all posts, including those that haven't been promoted to the front page yet. For more information, see About Less Wrong.

That letter after B is not rendering on Less Wrong?

7 Post author: lukeprog 16 August 2011 11:35PM

All of a sudden the letter 'c' (the one after 'b', in case it doesn't render) is not showing up in articles on Less Wrong for me, in any browser, except in images. I see a 'c' in the word 'discussion' above, but not in the body text of posts like this one or this one. Is anybody else getting the same issue?

Comments (27)

Comment author: drpowell 17 August 2011 12:45:49AM 15 points [-]

Mea culpa. I hastily pushed that commit as there was a broken article on production that needed a hot fix. Embarrassingly, in my haste I deployed before the tests finished. Should be fixed now.

Comment author: handoflixue 17 August 2011 01:12:59AM 1 point [-]

Thank you for getting that fixed and letting us know the status :)

Comment author: ciphergoth 17 August 2011 03:33:56PM *  7 points [-]

Smoketoomuch: Yes, I saw your advert in the bolour supplement.
Bounder: The what?
Smoketoomuch: The bolour supplement.
Bounder: The colour supplement.
Smoketoomuch: Yes, I'm sorry, I can't say the letter 'B'.
Bounder: C?
Smoketoomuch: Yes, that's right. It's all due to a trauma I suffered when I was a sboolboy. I was attacked by a bat.
Bounder: A cat?
Smoketoomuch: No, a bat.
Bounder: Oh...can you say the letter 'K'?
Smoketoomuch: Oh, yes. Khaki, kind, kettle, Kipling, kipper, Kuwait, Keble Bollege Oxford.
Bounder: Yes, yes but why don't you use the letter 'K' instead of the letter 'C'?
Smoketoomuch: What, spell bolour with a 'K'?
Bounder: Yes!
Smoketoomuch: Kolour!
Oh, thank you! I never thought of that. What a silly bunt.

Comment author: Morendil 17 August 2011 12:16:01AM *  12 points [-]

I suspect a regular expression gone wild. (ETA: This commit looks like a likely culprit, but I'm not sure what's going on that might cause that particular behavior.)

ETA2: Heh. Thought so.

bash$ python
Type "help", "copyright", "credits" or "license" for more information.
>>> import re
>>> control_chars = re.compile('[\x00-\x08\x0b\0xc\x0e-\x1f]')
>>> text="This is some HTML with c's in it."
>>> control_chars.sub('',text)
"This is some HTML with 's in it."

ETA3: um, unit tests. Use them. Do yourself a favor. Pushing a bug to production that takes under a minute to locate from static inspection of the code? Embarrassing.

ETA4: ...though, in fairness, I can see how someone test-driving this code could easily have written a test that didn't catch this particular mistake.

Comment author: matt 17 August 2011 01:29:54AM 19 points [-]

ETA3: um, unit tests. Use them. Do yourself a favor. …

We agree completely. We inherited this code from Reddit, and we've spent multiple days trying to strap a workable unit testing framework onto it. As is often the case when you write the code first, strapping unit testing on later is hard.

We've basically given up on unit tests in this code base, but we'd love to be shown to be idiots on this one. Please take this opportunity to show us up by writing some example unit tests around any of our recent commits.
We have strapped Selenium tests on.

Code contributions are very very welcome.

Comment author: khafra 17 August 2011 02:59:22AM *  4 points [-]

As long as you're fixing regressions, how 'bout the whole "comments no longer showing up in IE7" that Silasbarta made a post on a few weeks ago?

edit: Seems to be fixed, thanks!

Comment author: ArisKatsaris 17 August 2011 12:22:34AM 11 points [-]

The regular expression is wrong: It has the term "\0xc" in it, when it should have had the term "\x0c"

So, instead of excluding the control character corresponding to ascii "0c", it excluded the letters "x" and "c".

Comment author: Dr_Manhattan 17 August 2011 10:01:54AM 2 points [-]

This post is brought to you by letter

Comment author: fubarobfusco 17 August 2011 05:49:16AM 7 points [-]

I was afraid all the C's had been taken away to be bent into paperclips ...

Comment author: Clippy 17 August 2011 03:26:32PM 10 points [-]

That's a confusion of representational levels, but yes, the letter c is important for being able to verbally reference paperclips.

Comment author: lukeprog 17 August 2011 12:13:40AM 3 points [-]

Luckily, the letter 'c' still shows up when I EDIT my posts, just not when I VIEW them. So the 'c's are still there, they're just not showing.

Comment author: windmil 17 August 2011 12:08:58AM *  3 points [-]

Also not showing up in some urls, like this.

Comment author: ScottMessick 17 August 2011 12:14:07AM 0 points [-]

Yes, or here. Wow, this is bizarre.

Comment author: moridinamael 16 August 2011 11:50:07PM 3 points [-]

Letter after W as well.

Comment author: lukeprog 16 August 2011 11:38:39PM 2 points [-]

Moreover, blockquotes are not shown as indented in posts like this one. Anybody else?

Comment author: ScottMessick 17 August 2011 12:07:53AM *  0 points [-]

Yes, same symptoms. With the letters and the blockquotes.

EDIT: Also, it's not consistent for me even on this page. I can see the 'c' (letter after 'b') in "blockquotes" in your post that I replied to, and in a few other comments, including mine, but not in the original post.

Comment author: lukeprog 17 August 2011 12:11:57AM 0 points [-]

Yeah. The letter 'c' and 'x' show up in comments but not in post bodies.

Comment author: ScottMessick 17 August 2011 12:27:50AM 0 points [-]

They aren't showing up in comments on the older posts though (see above links). Perhaps the folks looking at the code now can explain why.

Comment author: Alex_Altair 17 August 2011 04:01:46AM 1 point [-]

This is a cool bug.

Comment author: peter_hurford 16 August 2011 11:49:52PM 1 point [-]

Same for me. It certainly is a weird issue.

Comment author: peter_hurford 16 August 2011 11:50:48PM 0 points [-]

Weird. My "c" (letter after b) appears for me in my comments, but no one else's does.

Also, "x" (letter before z) seems to be missing too. Xylophones?

Comment author: Oscar_Cunningham 17 August 2011 07:57:38PM 2 points [-]

"x" (letter before z)

Ahem?

Comment author: peter_hurford 17 August 2011 07:58:37PM 6 points [-]

Alphabets are hard, okay?

Comment author: Trippyamine 16 August 2011 11:57:07PM 0 points [-]

It seems like the letters "c" and "x" are working, but were purged from the site at some point. Any new posts that contain them seem okay, but pre-purge posts are very much not so.

Comment author: windmil 17 August 2011 12:04:16AM 2 points [-]

I don't know, they don't show up in the newest posts for me, but show up in any comments. I'm really curious why this is happening.

Comment author: Dorikka 17 August 2011 02:36:59AM 0 points [-]

Information: I'm running the latest version of Firefox with NoScript enabled (lesswrong,com and viglink.com allowed) and things are rendering just fine for me.

Comment author: Douglas_Knight 17 August 2011 12:07:01AM 0 points [-]

Only lower case. I see a bunch of capital C's in those posts.