« first day (604 days earlier)      last day (4346 days later) » 

2:00 PM
@RMartinhoFernandes erm... interracial porn?
wait... that's stupid
 
sex god damn it
 
Woot. I got it.
 
don't be silly, robots don't have sex
 
2:03 PM
@thecoshman Of course they do.
 
oh that sexy rule
 
eMi
Hi all
 
\waves
 
It makes me worried when my tech contact for a customer is telling me my app isn't working because I need to send my message from a different IP. Durr, what?
 
@SamDeHaan That's what happens when people pretend to know how a program works.. "You've gotta fix your program because when I used the VPN to connect to an external network computer and launch your program on their computer from my hard disk, the antivirus protection that I used to safely run your program started spewing strange error messages.."
 
2:09 PM
And this is after another tech on their side thought they needed to open the incoming port on their firewall that they're connecting to on my server on. /doh
 
Yeah. "After consuming all the memory and then running your program from DOS box.."
 
Today's TDWTF is great.
PHP is really cool.
 
2:24 PM
@thecoshman Real. Important. Questions.
 
@RMartinhoFernandes Looks like your Reality Assessment Circuits are broken.
You might want to get that checked up.
 
Could be the circuits, or just a bad algorithm.
 
Or both.
 
Just a temporary shift in the perceived quality of 'great'
 
2:28 PM
public abstract partial class
But the other half of the class is not abstract.
Gotta love C#.
 
@RMartinhoFernandes Preposterous. Sarcasm algorithms never work right.
 
@EtiennedeMartel The other parts can have just partial class.
 
@RMartinhoFernandes Yeah. They can also implement different interfaces.
I like this whole "partial class" feature. Makes life easy for code generators (and the people who use the generated code).
 
hi everyone
I'm going to attempt a decimal number class with a fixed amount of significant figures, by pasting char's together, and adding a x10^e exponent number.
 
Mhm, do you sometimes get a feeling that your code works only by accident ?
 
2:32 PM
Yes.
 
I've finished writing something and just clicked compile and it happens to be working for some miraculous reason.
 
Sometimes I'm actually expecting the compiler to yell at me so I can fix the next problem, and the bastard compiles everything fine.
 
@ScarletAmaranth Always. I'm the biggest fraud on the planet.
 
@ScarletAmaranth no, but windows works only by accident. and often, by accident, it does not work. also, my ASUS laptop's mouse pad works or not only by accident, it's sh*t.
 
@EtiennedeMartel it is abstract. It is just redundant to type it twice.
 
2:33 PM
@CheersandhthAlf I've said it a few times already, I LIKE windows 7 a lot, i reckon it's a good OS :)
 
one might consider googling "wireless capability turned off"
 
MySQL is the shit.
It's like if Jesus puked in a bucket and called it a database.
 
(IOW, if you're running CrapSQL, upgrade it now.)
 
> Because of incorrect casting,
lol
 
2:37 PM
Honestly, @Cat, which is better? Postgre or MSSQL?
 
@RMartinhoFernandes written in C perhaps?
 
"X is the shit" is positive statement, methinks.
@EtiennedeMartel PostgreSQL.
 
@CatPlusPlus I was being sarcastic.
 
the word "the", or its omission, is crucial
 
2:38 PM
I just woke up.
 
@TonyTheLion Written by incompetents, mostly.
 
"X is shit" versus "X is the shit"
 
You're a cat, you sleep 16 hours per day.
 
@RMartinhoFernandes lol
 
@TonyTheLion C requires a level of discipline far higher than what the MySQL developers are able to reach.
 
@EtiennedeMartel except when they write shit C
 
Reminds me of PHP's checking whether unsigned underflows by doing if (x < 0).
 
is that true?
 
@CatPlusPlus fail
 
oik
 
2:40 PM
@CatPlusPlus Link, or it didn't happen
 
I'm looking for it.
 
Hey guys.
 
Ahoy
 
Anyone got a handy regex for finding uninitialized variables?
 
2:41 PM
@EtiennedeMartel I managed to sleep for 17 hours the other day. Felt like shit upon waking up. Doesn't matter, had sleep.
 
@Drise Turn up your warnings and your compiler will spot them for you.
 
@Drise for g++, specify at least some optimization, and -Wall -pedantic
 
@Drise wut? Really?
 
@CheersandhthAlf I'll give it a shot.
 
2:42 PM
Regular expressions are the wrong tool to look for uninitialized variables in C++.
 
int charsize = sizeof(char);

/* still the same float-based calculation here */

if ((size > INT_MAX || size <= 0) || ((size * charsize) > INT_MAX || (size * charsize) <= 0)) {
    return NULL;
}
dafuq?
 
@CheersandhthAlf newer GCC fixes this IIRC.
 
@CheersandhthAlf Ah, I'd forgotten I've tried this before. Problem is, I'm using two libraries (Qt and VTK) and I get so many (464) warnings from them that it's futile to try to read.
 
how about filtering the warnings then
 
@Drise Use -isystem instead of -I for the offending libraries.
 
2:44 PM
@RMartinhoFernandes That's amaaaizing
 
Oh, I just found it and woop robot was faster.
 
@TonyTheLion sizeof(char) always guaranteed 1
 
@CatPlusPlus Quite a bit actually
 
@Drise -isystem path/to/qt will silence warnings from anything on path/to/qt.
 
2:45 PM
@DeadMG I know
 
@DeadMG nothing wrong with using an expressive expression over a magic constant. But I'd prefer const int charsize = sizeof(char); :)
 
@sehe In that case, yes, there's something wrong. They're doing it for shotgun debugging, not out of some desire for readability.
 
@sehe There's nothing expressive about sizeof(char)- it is and always will be 1 in C and C++.
 
what about all that street protests in montreal, for 100+ days=
?
 
2:47 PM
room topic changed to Lounge<C++>: Warning: <sarcasm/> detectors currently out of order. Enter at your own risk. [c++] [c++11] [c++-faq]
 
Question: say I were to store an 8-bit precision number (so ranged from 0 over 0.???128 to 128) by use of a std::uint8_t and an exponent std::uint8_t: the_uint8_t * base^exponent. Would it be "better" to use base=2 or base=10?
 
@CheersandhthAlf This weekend was the F1 Grand Prix in Montreal. Lots of protests around that, prehemptive searches and arrests for anyone with a red square in the metro, douchebags yelling insults at casserole protesters...
 
@sehe that makes no sense
 
in the base=2 case it would put the decimal dot at the expth position in binary.
So { 0000100, 10000011} would be in decimal 0.4 (if my own calculation isn't off).
 
2:51 PM
@thecoshman says who
 
in base=10 case, I'd have an easier time to think (I believe), but the computation would be lengthier
 
@sehe fucking hell
 
in retrospect, it'd be better to use a std::int8_t for both the integer and exponent.
 
@thecoshman never tried
 
is not requiring variable declarations a good thing?
 
2:53 PM
but feel free to ignore me. I'll be at this for a while :)
 
@sehe it's really hot
To find out your author name simply take your first and last names, write a book, get it published and read the name on the cover.
 
man, it's just been raining all damn day
 
huh, what do you know Ireland has had better weather then England :D
and I suddenly doubt your Englishness :S
 
It's taken me four days to get the customer techs to actually realize that their firewall rules are wrong. Huuuuuuurgh.
 
my Englishness?
I ain't English
 
3:00 PM
I love being a glorified service tech.
 
Dang
 
@SamDeHaan lol
 
Where are you from Tony?
 
@thecoshman African Safari?
 
yea, I'm a Lion, remember?
 
3:02 PM
@RMartinhoFernandes @CheersandhthAlf Thanks guys.
 
I'm not really in my natural habitat here in the UK, it's got no Zebra's or Antelope to hunt.
so I have to live more like a human
lol
 
Can I suppress " warning: ISO C++ 1998 does not support 'long long'"?
 
what compiler?
 
gcc
 
I thought you where a Zoo animal...
 
3:03 PM
@Drise use -std=c++0x
 
@thecoshman no, I don't live in a cage
 
erm... any one mind a video of Christians being a little bit 'crazy'?
 
or use int64_t
 
spotify just rickrolled me!
 
@rubenvb I dont have 11 yet.
 
3:04 PM
@thecoshman why would you want to post that?
 
Wait, your not 'welsh' are you @tony?
 
@thecoshman As long as it's not my particular brand of crazy. </sarcasm>
 
My brand of crazy is Awesome™.
 
3:05 PM
@Drise What GCC version? You could also try -std=gnu++03 but I don't recommend it.
 
It's the default mode anyway.
 
> The Smurfs were created to promote communism
dafuq?
 
That's why they're all red.
 
@RMartinhoFernandes colour blind, duh
 
@RMartinhoFernandes there's only one that's red.
 
3:07 PM
@rubenvb That confirms that the sarcasm detectors are off.
 
@RMartinhoFernandes Diagnostics check out.
 
@RMartinhoFernandes I think the sarcasm detectors work just fine. When someone is sarcastic, more sarcasm soon finds its way in here
 
@thecoshman red/blue colorblindness in children.
 
@SamDeHaan sure, why the crazy ass nut job fucking hell not?
 
@thecoshman But only observed in children destined to become communists, of course.
 
3:09 PM
@SamDeHaan muah ha ha ha
 
Nothing has been starred in half an hour. Someone, say something clever.
 
in norway blue and red means the opposite of what they mean in the usa. this has caused some confusion. also, our "billion" is 10^12, while their "billion" is just 10^9. oh, this was a clever statement. just star it.
 
@CheersandhthAlf long vs short, a debate that will never end
 
Boring
 
@SamDeHaan Definition of Expert: "The individual with the most patience" -- sehe, 1998
 
3:12 PM
@CheersandhthAlf ... mind, blown.
 
Sadly, it seems to faviour local optima
 
@CheersandhthAlf Why is our billion 10^12 while their billion is 10^9 again?
 
it's because they're using inches
i think'
 
@CheersandhthAlf nothing to do with inches
 
@CheersandhthAlf I'm more confused now.
 
3:13 PM
it's like, males have sexual organs only in their groins, while females have them also on chest. this is why females are more sexually active.
 
@CheersandhthAlf Makes sense.
@CheersandhthAlf I don't even know how many meters tall I am. How sad is that? This explains everything.
 
@Neil Because they're wrong. Duh.
 
rest assured, if you're normal height you are at least 4 meters. 4.2 is average
 
no, it has nothing to do with metric or imperial numbers
 
@CheersandhthAlf Are you still talking about sexual organs?
 
3:14 PM
How can I make a template class fail to compile with a useful error if a size_t template param is 0?
 
@rubenvb Partial specialization plus static_assert.
 
@RMartinhoFernandes static_assert in the class body?
 
3:15 PM
there, learn!
 
@CheersandhthAlf So... we merkins are pygmies?
 
Do you even need partial specialization?
 
@CheersandhthAlf "L'enfer est rouge, le ciel est bleu" ("Hell is red, the sky is blue") was a common slogan used by the conservative party Union Nationale (UN was blue, the Liberals were red) several decades ago in Quebec.
 
@CheersandhthAlf troll Alf is trolling
 
@thecoshman Politicians in America have a problem carrying the one.
 
3:16 PM
@ecatmur To only trigger when the parameter is 0.
 
@Neil they just have a problem counting to 1
@CheersandhthAlf average person is about 6' which as about 1.8m
 
@thecoshman Are you still talking about sexual organs?
 
@RMartinhoFernandes no, that's 6"
 
@thecoshman Wow. I never knew about this discrepancy.
 
@SamDeHaan star that mother fucker then
and that
 
3:18 PM
@SamDeHaan You mean you've been wrong all your life without even knowing it?
 
@thecoshman Reminds me of a joke where George W. is reading the paper, stops, and says, "Oh my God.. The paper says 5 brazillian people killed in bombing.. " He turns to VP: "Cheney.. how much is a brazillian?!"
 
@RMartinhoFernandes template<size_t i> class S { static_assert(i != 0, "oops"); }; no?
 
@ecatmur Oh.
 
@RMartinhoFernandes It's a terrible thing to find out like this.
 
@ecatmur That should tell me I need sleep.
 
3:19 PM
@SamDeHaan at least you found out
 
@rubenvb gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
 
@Drise add -std=c++0x
 
ZERO or OH?
 
@RMartinhoFernandes good blog
 
@RMartinhoFernandes Maybe I just just static_assert(N>0, "N must be greater than 0") in the normal template?
I don't need SFINAE.
 
3:20 PM
oh christ, was close to missing the bus there
time is sneaking past me
 
@thecoshman that happens a lot in this room.
 
@thecoshman powers of 1,000 seems quite a bit more useful than powers of 1,000,000 to me. Buuuut at least I know I'm wrong.
 
@Drise it's got me a few times, seems to be getting worse and worse
 
@CheersandhthAlf Thanks.
 
template<size_t N>
class Integer
{
  static_assert(N>0, "N must be greater than 0");
private:
  std::int8_t first;
  std::int8_t rest[N-1];
};
This works
 
3:21 PM
@rubenvb Yeah. I'm not thinking straight.
 
lol
 
I like deadlines. I like the whooshing sound they make as they fly by.
2
 
I think the Java is getting to me.
 
@Drise zero-x
 
@rubenvb Thanks.
 
3:22 PM
@RMartinhoFernandes It's only a matter of time now. You're infected.
 
@SamDeHaan I grew up with the newer short system, but I see equal logic in both. Like he starts with though, *10^x makes a lot more sense
 
@rubenvb +1 for it working well, thanks.
 
@Drise I accept paypal and direct wire transfer.
Oh wait, I don't accept Paypal...
 
@rubenvb why not?
 
@thecoshman I definitely understand the reasoning, having the prefix actually mean something directly (billion ~ million^2, trillion ~million^3, etc, etc).
 
3:23 PM
@Drise paypal are shit, but they are the best shit we have
 
Yep
 
I think the best bit is that crazy canuks, who use both system one for each language
 
I use Paypal with disposable virtual cards that my bank lets me generate on a whim.
 
I've decided to completely throw out their argument based on their accents, however.
 
I think you're all crazy. I only use base 2.
 
3:25 PM
Begin a Merkin, I believe that's my right.
 
On the bus this Saturday, I attempted to train my self to be able to think in hex values, rather then having to think of the numbers in base 10
 
@RMartinhoFernandes I have the paypal business debit card :D
 
@thecoshman Oh gawd, your life is boring.
Get a book, son.
 
@SamDeHaan as an English man, I expect nothing more from a Merkin
I'm not good doing much on the bus, other then sleep
 
@thecoshman I tried to train myself once to think in binary so I could represent a binary between 0 and 1023 with just my fingers
 
3:27 PM
speaking of bus, time to go home :D
night all
 
Then for chrissake, sleep.
 
loungecpp.wikidot.com/owners%3Aasking-questions <---- Someone needs to add to #3 that we hate on C users.
 
It's not so difficult when you think about it. Just divide any number by 2, and if it has a remainder, it's a "1" otherwise it's a "0"
Continue until 0
 
@Drise lol I don't have paypal
 
@rubenvb I can't find anything that says so lol
Maybe besides "We don't do C/D/E ..."
 
3:35 PM
The dot over the letter "i" is called a tittle.
A female ferret will die if it goes into heat and cannot find a mate.
Sherlock Holmes NEVER said, "Elementary, my dear Watson."
 
@Neil Woah?!
 
Because metal was scarce, the Oscars given out during World War II were made of wood.
@Drise ?
 
Thats really odd, the ferret thing.
 
Just spouting out random things you probably would never have heard before
Shall I continue?
 
-1
Q: is this code memory leak in c++?

KingfisherI have this class: class Base{ private: char *message; public: Base(string message`); ~Base(); }; Edited: sorry, i forgot giving my constructor! When i implement the destructor like below: Base::Base(string message1){ message = new char[message1.size...

Why would anyone start with a std::string and go out of their own way to produce leaky code?
 
3:41 PM
@RMartinhoFernandes To make your program needlessly complex, duh..
 
@RMartinhoFernandes More like disgusting code if you ask me.
 
I always get the feeling that @Als goes for the rep at any cost (i.e. give the most direct possible answer) instead of proposing a more cleaner solution.
For instance, in this particular case, he's basically telling him to use delete properly instead of, you know, using std::string.
 
I strongly dislike answers which don't solve the problem but rather simply answer the question. While technically right, it doesn't help anyone.
 
@EtiennedeMartel Everyone is doing that :(
 
Somebody put a proper answer and I'll upvote it
 
3:48 PM
@RMartinhoFernandes Not you.
 
@RMartinhoFernandes Sorry, didn't see your answer. :)
 
Alright folks, we need to upvote @RMartinhoFernandes' answer! No way in hell is a wrong answer getting on top of that page!
 
@EtiennedeMartel I wasn't gonna, but once I saw the third or fourth "use delete[]" thingy, I had to.
 
You did The Right Thing™.
 
Hmm, there doesn't seem to be a on exception safety.
 
3:52 PM
Als basically admitted that he doesn't care about being correct, just getting rep.
 
@Neil He's repwhoring constantly, though.
@RMartinhoFernandes Exception safety is a crab basket all on its own, it's going to be a difficult task.
 
@EtiennedeMartel If he keeps being a little bitch, I'm going to have to downvote him.
 
@RMartinhoFernandes besides RAII, nothing else comes to mind immediately
 
@EtiennedeMartel @Neil Who/where?
 
@Drise I linked to the robot's answer.
 
3:56 PM
@Drise Err...
-1
Q: is this code memory leak in c++?

KingfisherI have this class: class Base{ private: char *message; public: Base(string message`); ~Base(); }; Edited: sorry, i forgot giving my constructor! When i implement the destructor like below: Base::Base(string message1){ message = new char[message1.size...

 
Awwww yeah, accepted.
SUCCESS!
 
We're going to win this war against crappy code, boys, one answer at a time.
 
Hehe "sometime the system go wrong with stop working error"… I wish my machine would be so kind as to tell me to stop working.
 
@RMartinhoFernandes @EtiennedeMartel I flagged his answer as "inciting flame wars"
 
And I should have included being rude
Very rude and offensive.
 
@Potatoswatter It's buffy speak for "segfault".
 
If any feels offended feel free to downvote. – Als 1 min ago
 
> But I will rather make them mistakes and then learn through problems they face.For me learning is no one way traffic.
 
Also, do downvote.
 
3:59 PM
And this guy has nearly 70k rep with such a behavior?
 

« first day (604 days earlier)      last day (4346 days later) »