The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
I’ve been in North America for a while now and there are still a bunch of cultural mainstays I just can’t get into: hockey, poutine, pumpkin pie, Ford F-150’s, ice storms... But I have to say that the pre-Christmas Turkey Day over indulgence, while slightly guilt inducing, is awesome
My understanding is that this is a time we say thanks for the things we have. In that spirit I'd like to say that in spite of the sheer hard work involved in running CodeProject, the flame wars, the server issues, the 24/7 nature of the internet, the bugs, complaints, the emails from the lost asking for just a little help, the industry egos and the insanely generous community we have, I’m thankful for every second of the last 20 years.
Of course, this is in Canada. In the US, Thanksgiving is in late November. When I worked in the US and people asked why Canadians celebrated Thanksgiving in early October, I told them it was because, by late November, there was no longer anything to be thankful for.
They were obviously feeding you a line of BS. By November you should be well into skiing season.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
Chris, you can't get into Ford F-150's? I guess it depends on what you need. I remember an interview with an American farmer in The Economist, somewhere in the late '90s. He was rather blunt: "Pickup trucks built this country. I ain't hauling pigshit in a car." I was surprised that this made it verbatim into what is a rather staid publication.
Thank you and the rest of the CP staff for making codeproject.com a nice place to hang my programming hat. The folks here and the articles they freely provide have helped me out more times than I can count. We do appreciate the hard work you, the staff, and the hamsters put in.
So I just spent an hour figuring out why I was getting an exception in my application when using a third party library to communicate to a credit card processing machine. I was getting a general exception back from the third party library, but the test software that comes with the library was working just fine.
Short answer, when I C&P'd my router's public IP address into the dialog box, there was a space at the end of the IP address. Took a while to spot:
Sigh. OK, so now I make sure to trim the IP address string (the third party library expects a string) and I suppose I should do some regex validation.
Still, why couldn't I get back an exception like "malformed IP address"? Why is the library so sensitive to an space at the end of string? Yes, I take some responsibility, but not all the responsibility!!!
when I C&P'd my router's public IP address into the dialog box
Copy & Paste, indeed! I expect more from you. You should be typing more. Trim()
I never trust user input because I used to do a lot of testing and open input boxes are the best way to break a program.
Summary, every time a cop didn't have the license plate for the ticket a NULL got entered into the database for the license plate. That meant all ticket fines got assigned to the owner with the license plate of NULL.