|
Is Dang one of the new site admins?
Chris Meech
I am Canadian. [heard in a local bar]
In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]
|
|
|
|
|
Actually.. it's one of the CP hamsters
|
|
|
|
|
Hi Thiru,
I just added a reply to Richard's message above. Please have a look.
Also, feel free to remove my edits to the answer message mentioned in the OP.
Cheers.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. [The QA section does it automatically now, I hope we soon get it on regular forums as well]
|
|
|
|
|
No worries. I did the same kind of testing
|
|
|
|
|
It seems that quoting some others text is also getting language based styles. The whole text is coming in yellow background (like pre tag) and words like 'and' is highlighted.
"Never put off until run time what you can do at compile time."
- David Gries, in "Compiler Construction for Digital Computers", circa 1969.
|
|
|
|
|
Yikes. Thanks for the report.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
|
Sorry - bug fixed.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
|
Instead of letting people vote on the responses, why not just allow the guy who asked the question mark an answer as "the" answer? Voting on quick answers is kinda pointless. They're either a correct answer, or they're not - there are no degrees of correctness. Once an answer is selected, further responses should be disallowed on the question.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
John Simmons / outlaw programmer wrote: Voting on quick answers is kinda pointless.
I'm not sure why things would be any different on QA, but then I don't understand much about QA overall.
John Simmons / outlaw programmer wrote: They're either a correct answer, or they're not - there are no degrees of correctness
IMO there are degrees of correctness, one can specify scope, add alternatives, and in general add relevant information.
John Simmons / outlaw programmer wrote: why not just allow the guy who asked the question mark an answer as "the" answer?
Because he is the one who did not know; maybe one answer did solve the problem in his particular circumstances, but isn't the real answer to the question in general. Wasn't QA meant as a kind of wiki, a knowledge base?
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. [The QA section does it automatically now, I hope we soon get it on regular forums as well]
|
|
|
|
|
Don't agree entirely
John Simmons / outlaw programmer wrote: Instead of letting people vote on the responses, why not just allow the guy who asked the question mark an answer as "the" answer? Voting on quick answers is kinda pointless.
I agree until there. (But most people asking questions don't return to vote a answer)
John Simmons / outlaw programmer wrote: They're either a correct answer, or they're not - there are no degrees of correctness.
Here I would say that an answer can be partially correct meaning it solved a part of the problem but not entirely (or caused another error that the person asking the question only saw after voting).
John Simmons / outlaw programmer wrote: Once an answer is selected, further responses should be disallowed on the question.
Every answer has the possibility of having a better way, so I think adding another response should not be blocked since somebody might come along and say 'hey I had the same problem, fixed it a different way because the 'answer way' has the possibility of going wrong under certain circumstances'.
(Don't know if you understand what I mean)
|
|
|
|
|
Tom Deketelaere wrote: But most people asking questions don't return to vote a answer
Yeah, that's kind of annoying. Would be neat if Code Project prevented them from seeing the next answer until they voted on the previous answer. So, the first answer would be free. But they'd have to vote on the first one to see the second one and on the second one to see the third one and so on. That'd probably be abused, but maybe we can think of something similar that would be abused less.
|
|
|
|
|
John Simmons / outlaw programmer wrote: They're either a correct answer, or they're not - there are no degrees of correctness.
I disagree. For example in this case a much better answer exists:
pwndNooblar:
Q: how do I sort an array of integers?
homeworkHater:
answer:
public void BogoSort(ref int numbers)
{
bool sorted = true;
for (i = 0; i < numbers.length-1; i++)
{
if (numbers[i] > numbers[i+1])
sorted = false;
}
Random r = new Random();
while (!sorted)
{
swap(numbers[r.Next(i.length)],numbers[r.Next(i.length)]);
sorted = true;
for (i = 0; i < numbers.length-1; i++)
{
if (numbers[i] > numbers[i+1])
sorted = false;
}
}
}
private void swap(ref int i, ref int j)
{
int temp = i;
i = j;
j = temp;
}
Answer has been accepted by pwndNooblar.
3x12=36
2x12=24
1x12=12
0x12=18
|
|
|
|
|
Mostly agree with what Tom said but here's my slight variation anyway:
John Simmons / outlaw programmer wrote: Instead of letting people vote on the responses, why not just allow the guy who asked the question mark an answer as "the" answer?
This is precisely what the 'Accept Answer' button is for. Only the OP is able to see and perform this task.
John Simmons / outlaw programmer wrote: Voting on quick answers is kinda pointless. They're either a correct answer, or they're not - there are no degrees of correctness.
Like others have mentioned I too agree that there are degrees of correctness. Sometimes there are even two equally valid answers. Though this is highly dependent on the narrowness of the question.
John Simmons / outlaw programmer wrote: Once an answer is selected, further responses should be disallowed on the question.
See Tom's response.
|
|
|
|
|
The forum's seem to be acting up.
The width of the forum isn't adjust anymore, the forum width is now fixed.
Happens only on Chrome (IE / firefox seem OK)
|
|
|
|
|
Hit Ctrl+F5 and see how that goes. (I just updated the CSS)
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
|
Was the first thing I did when I noticed it (didn't help then)
Helped now, I guess
Chris Maunder wrote: I just updated the CSS
fixed it
|
|
|
|
|
The Question Answer count is now enabled - however it appears to be showing the wrong count. Is this a bug or just something to do with the hamsters being drunk today.
There are only 10 types of people in this world — those who understand binary, and those who don't. |
modified on Tuesday, January 19, 2010 11:11 AM
|
|
|
|
|
|
Wrt http://www.codeproject.com/Lounge.aspx?msg=3336879#xx3336879xx[^]
Would there be any milage in having links to videos posted by members, a bit like an article, grouped by catergories and searchable (possibly via tags added by the poster). The videos could be rated by users and moderated in the normal fasion.
CCC solved so far: 2 (including a Hard One!)
37!?!! - Randall, Clerks
|
|
|
|
|
Just a little one, but it's one I use all the time.
We appear to have lost the bold indicator of new messages in the forum list on the left side of the display. My correct "last login" time of yesterday evening is shown and I can click a forum and the forum contains new messages, as indicated by the little yellow new, but the list doesn't contain the bold. It was fine last night.
Judy
Be wary of strong drink. It can make you shoot at tax collectors - and miss.
Lazarus Long, "Time Enough For Love" by Robert A. Heinlein
|
|
|
|
|
yep. apparently the hamsters ran out of bold paint. they need to restock.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. [The QA section does it automatically now, when do we get it on regular forums?]
|
|
|
|
|
All fixed!
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
|
Seems like not completely.
They are bold now but only the text seems to be a link, I seem to remember that the whole 'bar' used to be a link (I could be wrong here, my memory is failing me more often than not).
(Also the 'update' for filtering the forum messages seems a bit odd but I don't use that one much so don't know if its intentional or not. )
|
|
|
|
|
Fixed except for that button which I meant to fix half a dozen times today and only just realised that no, I didn't fix it.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
|
Chris Maunder wrote: except for that button which I meant to fix half a dozen times today and only just realised that no, I didn't fix it.
Don't worry I have that all the time
(by the way the buttons on the reply message page seem a bit off as well but can't be sure about that )
|
|
|
|