|
Once the forum is implemented, there should be a filter across all messages and whenever a source code is encountered, an option like 'Clip to Cool Code' is to be presented. Due source courtesy can be given to the original author and also the clipper.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
All the world's a stage,
And all the men and women merely players.
They have their exits and their entrances;
And one man in his time plays many parts... --William Shakespeare
|
|
|
|
|
When he could have done it this way?
using System.Globalization;
public bool IsLeapYear(DateTime date)
{
return CultureInfo.InvariantCulture.Calendar.IsLeapYear(date.Year);
}
public bool IsLeapYear(int year)
{
return CultureInfo.InvariantCulture.Calendar.IsLeapYear(year);
}
While clever, his code is fraught with maintenance issues, where the method I've posted is in the .Net framework (not to mention offering overloads that accepts a datetime or the year itself).
"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." - Jason Jystad, 10/26/2001
|
|
|
|
|
Pretty much every compiler understands his code. Your code requires .NET (some people still use VC6).
|
|
|
|
|
Michael Schubert wrote: some people still use VC6
Preposterous! If MS ever found out, there'd be hell to pay! Of course, your response is quite reasonable.
"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." - Jason Jystad, 10/26/2001
|
|
|
|
|
That's why we need Cool Code forum. We can discuss these kinds of topics there
|
|
|
|
|
OK, but does the Mayan calendar have leap years?
|
|
|
|
|
oooooooh! Good question!
"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." - Jason Jystad, 10/26/2001
|
|
|
|
|
I did a double take - honest!
My Profile[^]: Member since Friday, January 06, 2006 (2 years, 9 months)
Another member's profile[^]: Member since Friday, December 30, 2005 (2 years, 9 months)
Is 2 years and 9 months as much as Bob can count to?
Actually, balls to that. It's vicious pedantry at its worst, and something |I hate about myself.
Ahoy!
Martin Hughes
|
|
|
|
|
Looks like the rounding of the months is a little off.
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
Nah, it's pedantry on my part: most clubs/societies/whatever I've ever been a member of don't care about the day of the month a member joined, just the month.
Ahoy!
Martin Hughes
|
|
|
|
|
martin_hughes wrote: most clubs/societies/whatever I've ever been a member of don't care about the day of the month a member joined, just the month
They...they...discard significant digits in their date handling??
Next you'll find your local book club or Knitting Mill wearing baggy trousers, smoking in plain view of the neighbourhood, drinking sherry from paper cups!
Hell in a handbasket, I tell you.
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
Chris Maunder wrote: Next you'll find your local book club or Knitting Mill wearing baggy trousers, smoking in plain view of the neighbourhood, drinking sherry from paper cups!
All of these things have come to pass!
I tell you, though, the "Funny Handshake *wink* *wink* Brigade" were the worst for this sort of thing. In my week long membership - before I told them that this really wasn't my sort of thing, and I'd rather not. And anyway, didn't they think the whole scene was just a little odd? Can't we have some girls in and a bit less of the listening to boring old farts talk at great (and tedious) length about some fictional deity and other frankly bizarre practices? - I was given about 80 symbols of "meaning", several apparatus I had no use for and various other junk (or law as they'd have it) I was supposed to commit to memory.
Strangely enough, they didn't seem too perturbed when I said toodle-pip.
Ahoy!
Martin Hughes
|
|
|
|
|
All this idiot does is leave comments like "Thanks for share us the great Archive!" (along with a sig full of links). Can you turn on the bit that will show his messages only to him?
|
|
|
|
|
Thanks.
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
Can we throw a CAPTCHA if the message contains hyperlinks? We can have Gold+ exempt from this though.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
All the world's a stage,
And all the men and women merely players.
They have their exits and their entrances;
And one man in his time plays many parts... --William Shakespeare
|
|
|
|
|
Honestly it isn't worth irritating thousands of legit users just to prevent one or two such idiots. Plus, there is no guarantee that these spam message posting process is automated. It could be a human as well.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
|
Which browser?
Scrap that. Can replicate. Will fix.
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
10-4 Good buddy. Over and out
Ahoy!
Martin Hughes
|
|
|
|
|
When you use the mouse to change the screen font size, the message board caption on the green toolbar is truncated.
FireFox 3.0.3
(I have sent a screenshot of the same to webmaster (at) codeproject.com)
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
All the world's a stage,
And all the men and women merely players.
They have their exits and their entrances;
And one man in his time plays many parts... --William Shakespeare
|
|
|
|
|
Weird. I can't seem to replicate this with either IE or Firefox.
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
|
I can reproduce it consistently Chris. Happens every time. Just use Ctrl+Mouse-Wheel-Slide-Down.
|
|
|
|
|
Hi all,
I have noticed that the icons/logos at "CodeProject stuff" don't have the same quality of the logo used at the CP site (icon lighted background, font, "Your dev resource" slogan).
Best regards,
Jaime.
|
|
|
|
|
Added to TODO
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|