Upgrades

Posted 7 September 2008 by

↗ The current version of this post is on the live site: https://pandasthumb.org/archives/2008/09/upgrades.html

I've upgraded the software and plugins on this site. Some files have changed and you may need to clear your cache to get the new files. If you have problems commenting, clear your browser cache. The most noticeable new feature is client-side validation of comment format. If your comment is not properly formed, changes will be made to it and you will be notified of the differences before you submit. It's not perfect or smart, but it gets the job done. I will implement "give me original comment" and "don't validate" options if it becomes a burden to anyone.

88 Comments

Aerik · 7 September 2008

Check, check 1.

"Your comment submisson failed for the following reasons: Invalid request"

I'm seeing an interesting "update" button that appears between the comment count and "leave a comment" , but it disappears just before the whole page finishes rendering.

Firefox 3.01
WinXP SP2

fresh cache

possible clash: Noscript 1.8.0.2

Aerik · 7 September 2008

Hey, that one went through when I disabled "redirect remover" actually. That usually doesn't apply to submission buttons. It shouldn't.

And now the update button is below my comment, presumably below the entire thread? That's a nifty lil thing.

Mike Elzinga · 8 September 2008

Testing. New paragraph. Another new paragraph. Comment submission or preview failed: Invalid format detected. Please review the following corrections that have been made to your comment. Note: Apparently blank lines are not being converted to paragraphs.

Dale Husband · 8 September 2008

Mike Elzinga said: Testing. New paragraph. Another new paragraph. Comment submission or preview failed: Invalid format detected. Please review the following corrections that have been made to your comment. Note: Apparently blank lines are not being converted to paragraphs.
Testing! You have to hit Preview twice and then the Submit button. Every time!

Mike Elzinga · 8 September 2008

Dale Husband said:
Mike Elzinga said: Testing. New paragraph. Another new paragraph. Comment submission or preview failed: Invalid format detected. Please review the following corrections that have been made to your comment. Note: Apparently blank lines are not being converted to paragraphs.
Testing! You have to hit Preview twice and then the Submit button. Every time!
Exactly! Here is another attempt at a new paragraph after clearing cookies. Nope. Same problem.

Reed A. Cartwright · 8 September 2008

The update button has been there for a while.

Test newlines

Reed A. Cartwright · 8 September 2008

Newlines work here, with Firefox 3 on Windows vista.

What browser, version, and OS are you using?

Reed A. Cartwright · 8 September 2008

As I explained when we were testing this out on my blog, validation is completely dependent on your browser. The comment is not sent to PT until it is validated.

Therefore, when reporting bugs I need to know what you are running.

This is the expected behavior:

A well-formed comment should go through fine, either with preview or a direct submission.

A comment that doesn't obey XHTML semantics will cause your browser to stop the preview/submission. Your browser will tidy the comment and report the differences between your original comment and the tidy, so you can adjust the tidy if necessary. You should then be able to submit it.

If you are being told that valid comments are invalid, please give me all the details possible on what you are trying to do.

Reed A. Cartwright · 8 September 2008

Aerik said: Hey, that one went through when I disabled "redirect remover" actually. That usually doesn't apply to submission buttons. It shouldn't. And now the update button is below my comment, presumably below the entire thread? That's a nifty lil thing.
We're using a bunch of javascript and Web 2.0 stuff on the site now, so NoScript can break a lot of things if you are not careful.

Reed A. Cartwright · 8 September 2008

I just realized that I left out the "Check Spelling" feature during the upgrade. It is now in the templates, and will appear on the pages as they are rebuilt/commented on. I'll run another full site rebuild next weekend.

Torbjörn Larsson, OM · 8 September 2008

Well, let's check this thing.

And Aerik, I had much the same problem previously (because I had downgraded NoScript's whack-a-script messages).

Bad XHMTL: bold italics

... it works like a beaut!

Torbjörn Larsson, OM · 8 September 2008

Reed, seeing how much (excellent) work you put into this, isn't it time to cut the site's spell checker? Dunno about other browsers, but Firefox provides (real time) checking.

Btw, it may even have an XHMTL checker plugin, for all I know. (Quick browsing shows at least one HTML checker, but on whole page basis I think.) This integrated one may offer better functionality though.

[Alas, as I'm a non-user my opinion isn't carrying much weight. Perhaps the site's checker is larger, and correct, on biology. I have to train mine, and with a non-biologist at the keys I have a lousy 'expert' on the job...]

iml8 · 8 September 2008

On upgrades: any thought on going to a registration
requirement for posting? It is normal for forums and
does a lot to slow down malicious posters (who have
to register with a new email every time they get run out)
while being little problem for legitimate posters (who
only have to do it once).

White Rabbit (Greg Goebel) http://www.vectorsite.net/gblog.html

iml8 · 8 September 2008

Just a test, disregard. GVG

Naked Bunny with a Whip · 8 September 2008

If your comment is not properly formed, changes will be made to it

What if the logic in my comment isn't properly formed? Can you make me seem smart? Please?

Ian · 8 September 2008

I noticed in posting a comment just now in another thread that your handy-dandy parser called me on putting two spaces following a period (full stop). Rather than argue, I let it have its way, knowing I could comment on it here. I know that HTML seems to like removing what it considers to be extraneous spaces, but wikipedia seems to think that two spaces is the appropriate method: http://en.wikipedia.org/wiki/Full_stop I happen to agree, if for no other reason than for clarity, which is something we should strive for in writing. Just my too sense (how about that for weird grammar? Let's see what your parser does with it shall we?!)

Paul Burnett · 8 September 2008

Naked Bunny with a Whip said: If your comment is not properly formed, changes will be made to it What if the logic in my comment isn't properly formed? Can you make me seem smart? Please?
Or if you sign in with a name like, say, "jobby," could it convert snarky comments into Considerate Christian(TM) comments?

Kevin B · 8 September 2008

Paul Burnett said:
Naked Bunny with a Whip said: If your comment is not properly formed, changes will be made to it What if the logic in my comment isn't properly formed? Can you make me seem smart? Please?
Or if you sign in with a name like, say, "jobby," could it convert snarky comments into Considerate Christian(TM) comments?
Would this be a variant of the software they use over at Uncommon Dissent?

jobby · 8 September 2008

Paul Burnett said:
Naked Bunny with a Whip said: If your comment is not properly formed, changes will be made to it What if the logic in my comment isn't properly formed? Can you make me seem smart? Please?
Or if you sign in with a name like, say, "jobby," could it convert snarky comments into Considerate Christian(TM) comments?
Seems to me any comment that is less than complete worship of Darwinism is consideted 'snarky'. Scientists are objective. Not pre-judging.

David Stanton · 8 September 2008

Ban the boob.

PvM · 8 September 2008

We are presently working on a more appropriate manner to address Bobby's abuse of service attacks. Please stand by.
David Stanton said: Ban the boob.

Frank B · 8 September 2008

Testing, Testing, number 9, number 9
Did anyone notice that someone made the biggest policy change of their administration without hardly a comment from the media. See: Timetable for withdrawal.
Testing again. Jobby sighted, SECURITY BREACH!!!

Reed A. Cartwright · 8 September 2008

On my browser, Firefox 3 / Vista, double spaces don't cause a problem for the validator. What browser are you using?

However, using two spaces, which is appropriate for writing, is not going to show up any differently than one space on the website.

Henry J · 8 September 2008

sentence one. sentence two. sentence three.

paragraph two.

Mike Elzinga · 8 September 2008

Therefore, when reporting bugs I need to know what you are running.


I’m using Internet Explorer 7.0.5730.11, Windows XP, Service Pack 3.

I also have to use tags to get paragraphs.

Have to hit Preview twice before submitting.

Torbjörn Larsson, OM · 8 September 2008

I wish to report a downgrade: the main page no longer shows which thread "Recent Comments" belongs to.
Ian said: two spaces following a period (full stop)
I've never heard of double spacing or full stops before, and the short Wikipedia example seemed harder to read due to uneven word spacing. Punctuation is, after all, contextual and not necessarily noticed at high reading speeds. But the Wikipedia article referred to some empirical research or surveys (didn't check) that presumably indicates it is helpful for readers. Unfortunately the software industry doesn't acknowledge this.

Reed A. Cartwright · 8 September 2008

I've confirmed the problem with IE, and I think I know where it is. I'll work on a solution later this afternoon.

Reed A. Cartwright · 8 September 2008

Torbjörn Larsson, OM said: I wish to report a downgrade: the main page no longer shows which thread "Recent Comments" belongs to.
It's in a tool tip if you hover over the [read more] link.
I've never heard of double spacing or full stops before, and the short Wikipedia example seemed harder to read due to uneven word spacing. Punctuation is, after all, contextual and not necessarily noticed at high reading speeds.
It's the English standard. That's what I was always taught.
But the Wikipedia article referred to some empirical research or surveys (didn't check) that presumably indicates it is helpful for readers. Unfortunately the software industry doesn't acknowledge this.
I know LaTeX has a bunch of logic for determining and using full-stop spaces.

Wheels · 8 September 2008

Test:

For some reason, hitting Preview randomly moves the target="_blank" attribute in front of the href in my link tags and then has the gall to tell me "ur doin it rong." If I accept the correction and hit Preview again, it moves them back around and still tells me I'm making a mistake. Something up with the linking process?
Using Firefox 2 on Ubuntu Gutsy, without the NoScripts extension.

Reed A. Cartwright · 8 September 2008

Why are you using target="_blank" tags in your comments? They are not supported and get stripped by KwickXML.

Wheels · 8 September 2008

They always seemed to worked before, and I use them out of habit.

Reed A. Cartwright · 8 September 2008

I've fixed two reported problems in IE. (Tested with 7).

IE still does some really odd things with tags.

Reed A. Cartwright · 8 September 2008

Wheels said: They always seemed to worked before, and I use them out of habit.
They were ignored before. KwickXML adds rel="external" to all external links, and there is a short piece of javascript that sets the target of such links to be "_blank". So you were seeing what we were doing with the links, not what you were doing with the links.

Wheels · 8 September 2008

Alright, well, I knew the comments were formatted with some form of XMLese, I just didn't know about Transitional stuff. Although I guess I should have checked out De Rerum Natura a few months back to learn that. :) Still puzzled about the recommended rearrangement of it instead inside the tag, though.

D'oh well, that's what feedback is for. Now I know not to type out those attributes only to have them ignored.

Reed A. Cartwright · 8 September 2008

Validation is accomplished by getting the browser to parse your comment into an html tree object via DOM. The parsed tree is then read back into a string and the strings are compared. If your browser is swapping tags around, there is not much I can do, except add a force validation feature.

Mike Elzinga · 8 September 2008

Testing; sentence 1. Sentence 2. Double enter to start a new paragraph. Looks like it is now working with double enters.
I’m using Internet Explorer 7.0.5730.11, Windows XP, Service Pack 3.
The above quote went through ok with blockquote, but not with quote. The quote tag got reformatted and produced an error. Here is the quote tag again.

— Mike Elzinga
Testing quote tag. Yup. Had to hit preview twice and the "Testing quote tag" sentence fell outside the box. Reformatting moved the end tag right up against the start tag.

Reed A. Cartwright · 8 September 2008

It looks like IE, unlike Firefox, does not preserve tags it doesn't understand. Where were all you people when we were testing this out?

Reed A. Cartwright · 8 September 2008

I changed a few lines, and stopped using the browser's default parsing algorithm because IE sucks big time.

Did I mention how much I hate IE?

Dale Husband · 8 September 2008

Reed A. Cartwright said: I changed a few lines, and stopped using the browser's default parsing algorithm because IE sucks big time. Did I mention how much I hate IE?
Must I mention how much I hate Microsoft and its dictator, Bill Gates? He is proof that slavery is still a problem, viturally speaking.

Frank J · 8 September 2008

Testing;

— Mike Elzinga
Also testing. Sorry, the link is not to Ray's paper.

Mike Elzinga · 8 September 2008

Reed A. Cartwright said: I changed a few lines, and stopped using the browser's default parsing algorithm because IE sucks big time. Did I mention how much I hate IE?
Now try the quote tag: Nope, can't do it. When trying to run the quote tag I get the following message: "The script is causing IE to run slowly. If it continues to run, your computer may become unresponsive." Guess I'll stick with blockquote.

Mike Elzinga · 8 September 2008

Frank J said:

Testing;

— Mike Elzinga
Also testing. Sorry, the link is not to Ray's paper.
You must not be running Internet Explorer. Your quote tag worked. Mine didn't.

Reed A. Cartwright · 8 September 2008

Did you try a hard refresh (Ctrl-R)? "Quote" tags to work of me in IE 7 on vista.

Mike Elzinga · 8 September 2008

Reed A. Cartwright said: Did you try a hard refresh (Ctrl-R)? "Quote" tags to work of me in IE 7 on vista.
Here goes; Now we see what happens. Nope; still the same problem and same message. Had to erase the quote tag to make it go. I just tried it with blockquote and that is also giving the same problem now.

Reed A. Cartwright · 8 September 2008

Can you email me the comment that you are trying to use? (See the contact us button at the top right.)

Mike Elzinga · 8 September 2008

Reed A. Cartwright said: Can you email me the comment that you are trying to use? (See the contact us button at the top right.)
OK; will do.

Reed A. Cartwright · 8 September 2008

test

test

The following works for me in IE:

test

test

Mike Elzinga · 8 September 2008

Well, maybe this is quicker. The Contact Us button doesn't put in a recognizable address.

I'll replace the angle brackets with curly brackets.

{blockquote author = "Mike"}This is a blockquote.{/blockquote}

{quote author = "Mike"}This is a quote.{/quote}

Maybe it doesn't like my name. :-)

Frank J · 8 September 2008

You must not be running Internet Explorer. Your quote tag worked. Mine didn’t.

It says "Upgrades - The Panda's Thumb - Windows Internet Explorer" on the top bar (title bar?). That plus the fact that I click on the IE icon to get to the Internet tells me (correctly?) that I am running IE. Beyond that my understanding of computers drops off faster than the understanding of evolution by a YEC who flunked biology.

Reed A. Cartwright · 8 September 2008

I fixed the email address. Now to your comment.

I can confirm that it breaks the script on both IE and Firefox.

However if I use author="Mike" instead of author = "Mike" it works.

I'll look at one of the libraries I'm using to see where that error is occurring.

Mike Elzinga · 8 September 2008

Test quote

Test blockquote
That worked. Now try with author = Same error. Ah ha! It really doesn't like names! :-)

Mike Elzinga · 8 September 2008

Reed A. Cartwright said: I fixed the email address. Now to your comment. I can confirm that it breaks the script on both IE and Firefox. However if I use author="Mike" instead of author = "Mike" it works. I'll look at one of the libraries I'm using to see where that error is occurring.
Might this then occur for any case of attrib = "value" when spaces are put around the equal sign?

Reed A. Cartwright · 8 September 2008

Yes. I've identified the problem and can fix it, but I haven't yet.

Mike Elzinga · 8 September 2008

Reed A. Cartwright said: Yes. I've identified the problem and can fix it, but I haven't yet.
Glad to help out. Hope I haven't been a pest. I'd hate to be viewed as a bobby troll.

Mike Elzinga · 8 September 2008

Frank J said:

You must not be running Internet Explorer. Your quote tag worked. Mine didn’t.

It says "Upgrades - The Panda's Thumb - Windows Internet Explorer" on the top bar (title bar?). That plus the fact that I click on the IE icon to get to the Internet tells me (correctly?) that I am running IE. Beyond that my understanding of computers drops off faster than the understanding of evolution by a YEC who flunked biology.
LOL!

Reed A. Cartwright · 9 September 2008

I've uploaded a modified version of one of the Javascript libraries that I'm using. I made it handle malformed text better, and improved its detection of attributes.

Ian · 9 September 2008

Reed -

I'm usually using Microsoft's (Ian spits) IE. Current version is 6.0. I have to use this at work. At home I use Firefox. (Here comes a paragraph...)

Im my first comment, I also paragraphed and dropped down a line right after the wikipedia URL, but the parser seems to have attached the second para right onto the end of the first!

Ian · 9 September 2008

Well that one worked fine! Note that the spelling errors ('Im' instead of 'In' are all my own!

Frank J · 9 September 2008

(testing from a different computer)

The irony is that I got an A in the only computer course I ever took. That was Drexel U., 1972. I may have passed by Michael Behe once or twice while taking my punch cards to the reader in a different building.

Henry J · 9 September 2008

No replies since 7 this morning? Is something broke, or is everybody just busy elsewhere?

Henry J · 9 September 2008

Well, that posted, so it must be the second hypothesis.

Reed A. Cartwright · 9 September 2008

testing

Reed A. Cartwright · 9 September 2008

testing again

Stacy S. · 10 September 2008

I have something interesting for you Henry!

http://www.opposingviews.com/

Were We Created By Design?
Discovery Institute
vs.
National Center for Science Education
(About 4 tabs down)

Stacy

Stacy S. · 10 September 2008

Oops! I forgot to mention that there is a poll there.

"Does Intelligent Design have merit?"

jobby · 10 September 2008

You need to hire some 'creationists' to help you with your site. You seem to be over your head.

Mike · 10 September 2008

Why is PT silent while Palin and the creationists are getting away with murder claiming that she didn't "really push" creationism in Alaska, as though she had to do something other than voice support for it? FactCheck has decided, for no readily apparent reason, that since Palin didn't do something that remains undefined (demand a law, teach a biology class, donate textbooks, who knows) she didn't "really" support teaching creationism. All the newspapers are dutifully repeating their conclusion. There's something fishy going on since any moron would realize that all the chief executive has to do is voice support, which she has done many times. What the hell is going on?

Reed A. Cartwright · 10 September 2008

PT is connected to a non-profit. We have to be careful when dealing with news about political candidates so as not to hurt that non-profit. We're working on something, but have opted to wait to see if new information gets revealed.

GuyeFaux · 10 September 2008

PT is connected to a non-profit. We have to be careful when dealing with news about political candidates so as not to hurt that non-profit.

Seems absurd (IANAL). If she "didn't really do anything" when she voiced her support, can't PT also "not really do anything" by voicing disapproval for a Creationist candidate?

Mike · 10 September 2008

This is nuts. Any NCSE affiliated email list is also muzzled. With "teach the controversy" turning into a widely accepted political compromise PT is going to have to be able to discuss political candidates.

Frank B · 10 September 2008

I am not computer saive at all, so all this talk is way over my head. However, for some guy ( or girl) to post a comment about PT having trouble is absurd. He (or she) must be jealous of all the expertise shown on ths site.

Reed A. Cartwright · 10 September 2008

I didn't say that we had to say silent. I'm just saying that we are tying to be careful about when/how we mention candidates stances on education.

Lots of our crew members talk politics on their personal blogs that are not affiliated with us. Keep up with them, and you will be well served.

Reed A. Cartwright · 10 September 2008

So what's the verdict on the new validation feature?

Mike Elzinga · 10 September 2008

Reed A. Cartwright asked:

"So what’s the verdict on the new validation feature?"

I'm finding now, whenever I try to either Preview or Submit, if there are tags of any kind, it gets me to a white screen on which the stuff is printed, but there are no instructions on where to go from there.

This is also the case with the tags that are automatically placed in the comment to which I am replying.

If I back up and hit Submit, I am sent to the same screen. No instructions or buttons to Submit or Preview.
I have to remove all tags in order to Preview or Submit.

Otherwise nothing Posts or Previews.

Wheels · 10 September 2008

Mike Elzinga said: I'm finding now, whenever I try to either Preview or Submit, if there are tags of any kind, it gets me to a white screen on which the stuff is printed, but there are no instructions on where to go from there. This is also the case with the tags that are automatically placed in the comment to which I am replying. If I back up and hit Submit, I am sent to the same screen. No instructions or buttons to Submit or Preview. I have to remove all tags in order to Preview or Submit. Otherwise nothing Posts or Previews.
Let me try. Italics, then linebreak.
Strong, then a new paragraph.

Link

Preview works fine here. By the way, any preference about using 'a' instead of 'url'?

Reed A. Cartwright · 10 September 2008

Mike Elzinga said: I'm finding now, whenever I try to either Preview or Submit, if there are tags of any kind, it gets me to a white screen on which the stuff is printed, but there are no instructions on where to go from there.
That screen shows up because javascript threw an error and terminated early. Things still got submitted, and what you see is the response that javascript would have caught and inserted into the submission page. I fixed the bug you were encountering. Apparently for some tags, IE adds extra attributes which was causing my script to crash. Use ctrl-R to get the latest files.

Reed A. Cartwright · 10 September 2008

Wheels said: By the way, any preference about using 'a' instead of 'url'?
'a' has been supported for a long time. We are using a different spam control technique that doesn't force us to abandon 'a'. 'url' is still supported.

Mike Elzinga · 11 September 2008

Testing using a copy/paste from Microsoft Word.

Here is a quote tag with spaces around the attributes equal sign.

— Mike

Here is a quote without spaces around the attributes equal sign.

— Mike
Here is a blockquote with spaces around the attributes equal sign.
Here is a blockquote without spaces around the attributes equal sign.
Here is a link to NCSE with spaces around the attributes equal sign. Here is a link to NCSE without spaces around the attributes equal sign. The only other issue I have seen actually has something to do with copy/pasting from Microsoft Word; the quotation marks in the attributes = “value” part of the tag have to be redone when pasting into the comment box. Somehow, the parser doesn’t recognize the quotation marks from Word when they are in the attributes. Elsewhere in the comment they seem to be ok. Don’t bother to fix it. It’s not a serious issue. One can always use something like Notepad to compose comments offline. When I tried the attributes with spaces around the equal sign, I got an error, but after pressing Preview again, everything was fixed (the spaces were removed). Looks like it is working the way you want. I like it.

Reed A. Cartwright · 11 September 2008

If you have autoquotes turned on in Word, then it will replace straight quotes with curly quotes. It is not possible to define attributes using curly quotes. Use a normal text editor instead of Word.

Mike Elzinga · 11 September 2008

Reed A. Cartwright said: If you have autoquotes turned on in Word, then it will replace straight quotes with curly quotes. It is not possible to define attributes using curly quotes. Use a normal text editor instead of Word.
Yeah; I figured it was something like that. I shouldn't have even mentioned it. I was simply retyping the quotes after I pasted the comment. No big deal.

Mike Elzinga · 11 September 2008

This is a test of copy/paste from Notepad.

This is a quote tag, no spaces around the atributes equal sign.

— Mike
OK; that works.

Mike Elzinga · 11 September 2008

This is a test of copy/paste from WordPad
This is a blockquote tag, no spaces around the attributes equal sign.
OK; that works also. So both Notepad and WordPad are good text editors for offline composition. They produce no unexpected character conversions that bomb the KwickXML syntax.

Reed A. Cartwright · 11 September 2008

test

Reed A. Cartwright · 11 September 2008

test #2

Reed A. Cartwright · 11 September 2008

Testing...

1

2

3

Aerik · 12 September 2008

Testing if it's still compatible with CoComment.
Also, do you kill the [cite] tag in blockquotes? Test.
Invalid request again. Disabling coComment here. Damnit.

Reed A. Cartwright · 12 September 2008

what is cocomment?

What cite tag?

Brisbane web designer · 27 October 2008

A Stumble for your efforts :)