Hello Chris, the highlighting works at places where the article sources did not get screwed up themselves somehow. E.g. see Invent your own Dynamic LINQ parser[^] at the first pre-block. The source view shows that the embedded highlighting in the pre-block got converted over time into plain code... (likewise other highlighting in the same article and others of mine). The other similar issue is about background color. I did use to simulate console output by giving the foreground color white and the background color black in some pre-block. This used to work in the (distant?) past. Now, it looks like it's kind of filtered: the foreground color is still respected, the background got removed completely. You seem to have some stripping/processing/whatever machinery that processes ***existing*** articles once in a while (my interpretation of the situation). E.g. see Escaping in C#: characters, strings, string formats, keywords, identifiers[^], the pre-block after "results in" used to be started like <pre lang="text" style="background:black;color:white;">...
but now is truncated to <pre lang="text" style="color: white">
. Finally, the pre-block attributes countlines
and countstart
got stripped off somehow from the sources... E.g. see my History section, V1.2 comment in Invent your own Dynamic LINQ parser[^]. Are these any deprecated features? Regards Andi
Andreas Gieriet
Posts
-
Article formatting screwed up (sine a long time?) -
Article formatting screwed up (sine a long time?)Thanks! Looking forward! Cheers Andi
-
Article formatting screwed up (sine a long time?)I was not active on CP for quite some while. Now that I looked into some of my articles/tips, I noticed that some a bit "advanced" formatting got completely screwed up in the last two years or so. E.g. highlighting, line numbering, background/foreground color got corrupt. See Invent your own Dynamic LINQ parser[^] at the end of the first pre-block (span...highlight is verbatim instead of html/css directive). I also have on several places used the foreground/background colors to emulate console output with black background and white text. See the same article above in the pre-block after "The output is:". The feature of line numbering of code snippets also got silently removed. Why? I some times refer in the text to these lines. Basically all my articles/tips are affected since I took benefit of these features those days when they were functional... Any remedy in sight? Thanks Andi
-
Submitted articles/tips for approval have no content...Thanks for the quick response! Cheers Andi
-
Submitted articles/tips for approval have no content...The submitted articles/tips for approval have only the "frame" but no content. This is since one hour or two now. Cheers Andi E.g. see http://www.codeproject.com/script/Articles/ArticleVersion.aspx?waid=157900&aid=871927[^] or http://www.codeproject.com/script/Articles/ArticleVersion.aspx?waid=157993&aid=872117[^]
-
Suggestion to reduce spam on Q&A forumA question is a bit different to an article/tip: with an article/tip, you can ask for a certain form and level of content. With questions, what are the generally accepted criterion to pass the filter? Spam falls through, of course (but still may fill up the input queue). What about homework assignments, "Google is your friend" kind of questions (the lazy ones), etc.? The ratio of articles versus questions is probably in the range 1/10 to 1/100: who is willing to assess that amount of questions on a regular base? Cheers Andi
-
Suggestion to reduce spam on Q&A forumYou could do fancy things to get a correlation function for two messages, e.g. leave away all non-alpha-num chars and do the histogram (kind of finger-print of a message). If another message is similar (not exactly the same), you get notified that a similar message already exists... ;-) But I think to start with, restricting the number of questions per time interval (day?) is good enough to fool spammers. Thinking about it, it's a lost game: one might then move on to use "Reply" for spamming, etc. Restricting the number of comments per time interval is not feasible... :-(. Cheers Andi
-
Suggestion to reduce spam on Q&A forumI aim for making the system behaving sluggish for repeated (similar) actions while "normal" behavior is not affected. E.g. one user asking *many* questions a day is questionable ;-) Creating many accounts from one site in one day is questionable too - how to detect that? Any other suggestion how achieve this? Cheers Andi
-
Suggestion to reduce spam on Q&A forumThere is again some SPAM on the Q&A forum. How about 1) not allow to create more than one CP account per IP address and day? 2) not allow more than 5 different posts (i.e. questions) per user and day? Cheers Andi
-
My post got lost...Seems so. Cheers Andi PS: I added another version of my solution. No need to restore the old one, but I'd prefer this not to happen again... ;-)
-
My post got lost...Thanks for your help! I'll rewrite or forget about it ;-) Once in a while, the CP behaves "strangely". I'd say since a few month's it's less stable than before - especially the latency of seeing edits properly displayed has became worse. E.g. edit a question (e.g. put a code block into pre-block) displays for several minutes (no name) as the person who looks that question for editing, etc. Cheers Andi
-
My post got lost...Thanks for your feedback! No, there is none. I immediate looked at that entry after the failure - none. Andi
-
My post got lost...I posted a solution to Pointer to pointer to pointer and so on... in C[^], but it got lost. I.e. after submitting, it was displayed on my browser, then refresh, and it's gone... Is that somewhere in the "pipeline", i.e. can you restore that? Or is it definitively lost. Thanks Andi
-
C++ Grandmaster CertificationWith some 18 months time passed, the course evolved to a point where it got split into two phases: I + II. Phase I is completed and phase II is not yet started... The setting initially looked dubious to me too, but I finally identified the person behind it and could clarify my doubts. I spontaneously decided those days to participate for pure curiosity ;-). Curiosity is what drives me and brings me ahead - you sometimes have to allow you doing foolish things ;-)! Even C++ is not the hottest language to build a compiler for (notably fully hand-crafted - no tools allowed), it had a certain appeal (at least to me and a few more fools like me :-)). So, I completed phase I, and I must say, I learned a lot. I have mastered building a fully compliant C++ tokenizer, preprocessor, parser, a linker and a x86-64 assembler. The focus was never to create a production tool-chain, it was to learn something about compiler construction on a challenging C++ language specification (with knowing and properly handling the syntactic ambiguities) and at the same time implement it in C++. The course is kind of a MOOC, but it consists of assignments and self-study only (no instruction nor teaching), plus a provided test suite for all the programming assignment! The author did a tremendous effort to set the course up, and a huge majority of the CPPGM forum comments were very positive on the setting and the effective learning. The estimated effort was far under-estimated by the author. I did it in my spare time and had my fun with it - a mixture of challenge and feeling of success with each passed assignment. Even the course got to a halt now, I got more out of it than expected. It was a "hobby" of mine for the last 18 months, and as such, I got hooked to it. BTW: No worries on getting "abused" to code something for someone. From a course point of view, it fully makes sense that the "solutions" do not get published. Also the CPPGM guarantees to not use our code in any way. See the CPPGM Honor Code. So, I wish you all some foolish commitment once in a while! :-) Have fun! :-) Andi
-
Pasting in the editor a link which contains underscores may cut off the part after the underscore - underscores are very common to wikipedia links...Thanks for your info. Did not see any of these lists, though ;-) As long as I know how to workaround (I know: don't paste a link while text is selected and/or double-check the link after pasting), I'm fine if it never gets fixed... Cheers Andi
-
Pasting in the editor a link which contains underscores may cut off the part after the underscore - underscores are very common to wikipedia links...If you first enter the text, like
Short Circuit Evaluation
, then select that text and only then paste the copied link, the part *after* the underscore gets cut off. E.g. Short Circuit Evaluation[^]. Oh, I just noticed that the suspicion that it has to do with underscore is wrong! It seems to be some length calculation based on the selected text. See the link: it is cut like this:http://en.wikipedia.org/wiki/Short-circuit\_e
instead of the full link
http://en.wikipedia.org/wiki/Short-circuit\_e**valuation**
Cheers Andi
-
Pasting in the editor a link which contains underscores may cut off the part after the underscore - underscores are very common to wikipedia links...[EDIT] It seems not being related to underscores but to some length calculation based on the selected text while pasting... [/EDIT] When pasting a link that contains underscores works fine if no text is pre-selected in the editor. But if you have a text pre-selected in the editor and than paste the copied link, the link gets cut off after the underscore. This leads to undesired wrong references. E.g. I had "Syntactic Sugar" selected in the editor and pasted the link
http://en.wikipedia.org/wiki/Syntactic_sugar
. The resulting link gothttp://en.wikipedia.org/wiki/Syntactic\_
instead of
http://en.wikipedia.org/wiki/Syntactic\_**sugar**
This is a bit annoying since such cut off links usually go undetected into the posts. Cheers Andi
-
Bug when I post an answerIt's not only about you clicking multiple times. Even if you post a solution only one, you get four times 10 points. I observe that since about a week (or less). Cheers Andi
-
How can one post to the Lounge when the account does not exist anymore? -
How to get rid of spam in the Lounge?Any way to kick them out? E.g. http://www.codeproject.com/Messages/4486758/San-Jose-Sharks-vs-Nashville-Predators-Enjoy-NHL-H.aspx[^] http://www.codeproject.com/Messages/4486757/equalsequals-Live-Tv-equalsequals-San-Jose-Sharks-.aspx[^] http://www.codeproject.com/Messages/4486756/START-NHL-San-Jose-Sharks-vs-Nashville-Predators-l.aspx[^] etc. Andi