« first day (1384 days earlier)      last day (3565 days later) » 

2:01 PM
@TonyTheLion Or perhaps hushing puppies.
 
woof woof woof
what's gowan owwwnnnnn
woof woof woof
 
@TonyTheLion That's one way to keep foxes out of the hen house...
 
puppy gone mental
 
hens can be aggressive >_<
 
huh.
Boost.Variant can't be compared for equality...?
 
2:13 PM
They tried but the results varied.
 
erase(iterator) returning an iterator at the element after the one that's erased is pretty neat
 
I didn't even know it did that.
Is there a convenience method for vector that checks if size() == capacity() ? vec.full() or something?
I suppose not.
 
nope
 
Xeo
	if (bla.find(_id) == bla.end())
		return false;
	else
		return true;
...
 
2:22 PM
I love that structure
if evaluates to true, return true, else return false.
 
Xeo
so annoying :/
 
I like it when I've encountered coding guidelines that recommend it
Those are the best.
 
2:37 PM
This is clearly inadequate. You need something more like:
`if (((bla.find(_id) == bla.end() == (1==1)) != (1==0) == true)`
You can never just trust one true to be true, after all.
Probably best to do the same in the return statements as well:
return (true != false) != false;
 
You should probably macro TRUE and FALSE to something useful as well
#define TRUE (TRUE==TRUE)
 
template<int N> bool operator==(const string& lhs, const char (*rhs)[N]) {
    if (lhs.size() != N - 1)  return false;
    return !strcmp(lhs.data(), rhs);
}
// ^ is this correct?
 
oh man
unlucky
 
2:49 PM
lol
 
wow, that actually happened?
 
Image not found.
but I'm curious :(
 
@AlexM. Basically, dude tries to friend him on Facebook for personal helpdesking
 
Apparently I needed const char (&rhs)[N] instead of const char (*rhs)[N]
 
o_0 off all the typos I could make, I make one that just so happens to still make a perfectly sensible sentence but mean the exact opposite of what I wanted to say.
 
2:59 PM
lol
 
"Server has not come online" ¬_¬ guess what I was trying to say
 
Did he come online or not?
Reminds me of Bill Clinton hearing.
 
@StackedCrooked Only when looking at the porn sites.
@thecoshman "Server has note. Come online to read"
 
I hate y'all
 
@thecoshman I wuv you pirate! Come here for hot buttsecks
 
3:03 PM
@thecoshman server hasn't never come offline.
 
@thecoshman You are an owner, you can punish them.
Just yell "WHO'S THE BITCH NOW", will ya?
 
@Puppy sounds like fun /s
 
@Puppy ... I didn't think cicada was any good at hacking...
@Jefffrey so tempting to use that against you right now :P
 
@AlexM. rly? it's just SO imgur. try refresh or click on it
 
Fuck why are the laptops bags so big
 
3:07 PM
@LightnessRacesinOrbit anything imgur is blocked at work
no idea why
 
@thecoshman I never treated you like a bitch :( they have
 
Do people really carry those 3kg monsters around
 
This week, I have mostly been living through post-it notes. But I've only wanted to die 83 times, so I think I'm doing good.
@BartekBanachewicz because laptops are big o_0
 
@thecoshman Skinny people need smaller laptops...
 
@thecoshman you wanted to die 83 times, what
 
3:09 PM
nobody needs laptops
@Jefffrey ¬_¬ shit sucks
#hyperbol
 
Apparently all 13" bags are targeted at females
 
That explains why I am constipated
 
@BartekBanachewicz gigidy
 
@thecoshman "hyperbole", you misspelling hyperbolic pirate!
 
@BartekBanachewicz yeah 13'' is for wussies
wait...
 
3:12 PM
@BartekBanachewicz No, not really. That bag you're looking at right now is a very masculine shade of pink. Seriously.
@Jefffrey So you're finally starting to openly admit that you're full of shit?
 
pretty sure that all humans contain fecal reservoirs
 
lol
 
@Puppy Probably--but most of us empty them semi-regularly.
 
true
 
Either fucking big or ugly
I found one that's acceptable but expensive
 
3:17 PM
I didn't realize people would literally pay for shit
 
@TonyTheLion lol
 
@Puppy Farmers do so pretty routinely. Fertilizer isn't free.
Well, I guess I need to go to work. Talk to you all later.
 
@JerryCoffin I'll have you know I'm perfectly tangential
 
@thecoshman Based on the italic font of your name, I assumed you were prefectly tangential.
 
@LightnessRacesinOrbit Someone found as many email addresses online that looked like they could be me, and guessed a few others, and sent a "test email" to all of them to check if it was me
 
3:29 PM
@Abyx He's totally a twat, but I don't think he's an asshat.
4
 
lol
Simeone star it
 
I remember a biology teacher I had who didn't want us to use the word "twat" and how we would always say it to annoy him.
lulz ensued
 
Gotta check Samsonite shop
Seriously is asking for a nonshitty bag that much
 
Its like asking for good software
 
100€ for a leather one
With 30% discount
Damn
LOL google just told me to stop shopping and leave for my driving license classes
2
Robots have taken over my life
 
3:43 PM
lol
 
geegee
 
@BoltClock Congrats on your Very Important Internet Celebrity status
I need to go shopping again, because I forgot to buy buns for burgers
Crime of all crimes
 
4:06 PM
@BoltClock hah
@AlexM. lol cos goats
 
@AlexM. quit it then
 
@LightnessRacesinOrbit I heard Michael Jackson used to sleep in one of those.
and then I heard that that was a rumor that started after he donated one to a hospital and a picture was taken with him inside of it.
 
@LightnessRacesinOrbit this is an old trope, usually the person is on oxygen. But still as a safety thing... they should actually have.
 
People dum
 
user784668
Oxygen kills.
 
user784668
We should ban oxygen.
 
4:44 PM
Dihydrogen monoxide, too
 
user784668
Obviously, it contains oxygen.
 
Ozone
 
4:58 PM
@Mgetz have what?
I thought oxygen was highly combustible?
@AaronKyleKilleen lol
 
@LightnessRacesinOrbit taken away anything he could make a cigarette or light one with
 
@Mgetz oh that.
@Mgetz yeah but it's not their fault he decided to sneak one in and light it up. personal responsibility. they should be suing his family for criminal damage, not paying damages themselves. the laws of physics are not their fault
it said No Smoking throughout the fucking hospital
 
I need a Data Exchange query for how many times I've commented something similar to "use a reference", which is just a nice way of saying RTFM.
The sad part is that all of them are for something with good documentation, so there's no excuse.
 
@LightnessRacesinOrbit Oh, thanks.
The good thing about this one is that it includes comments that only contain a link to cpp reference .com.
 
5:07 PM
it also contains a bunch of stuff about c++ references ("reference to array", etc)
 
Yeah
Now I get to see my comments from years ago, yay.
I'm sure all of them are very enlightening and not embarrassing in any way.
 
Ahaha
"preference"
 
Ell
Oxygen on it's own doesn't burn does it?
It just a very strong oxidising agent
 
O2 + O2 -> O2 + O2
 
5:13 PM
@Ell I see
@Ell suppose that makes sense
 
Ell
@PolymorphicPotato No reaction then? :P
 
@Ell Of course not. "Burning" is combining oxygen with...something else.
 
Ell
For combustion to occur you need fuel + oxidising agent
 
fine then
that cig must have burnt fast
probably dropped it on the sheets in shock
 
Ell
I haven't read the article yet
I'm reading now
 
5:15 PM
you'll only make yourself sad, cos the stupid
 
Somewhat relevant (and definitely fun): youtube.com/watch?v=UjPxDOEdsX8
 
Ell
Man that is stupid
 
@JerryCoffin Looks like something I'd try at home.
TIL roomba knife fights are actually more popular than I thought.
 
@Ell There's a story about it somewhere on the Carnegie-Mellon web site. Basically, there was a competition over who could light the grill the fastest at the annual picnic. They progressed from matches to propane torches, oxy-acetylene welding torches, and finally got the the point of the guy using LOX. That was apparently enough to scare even physics professors--they decided that was enough and the competition was ended.
 
Ell
Sensible thing to do ending it really
 
5:20 PM
Nothing like the soothing tones of Wing to start the day: youtube.com/watch?v=_A8_a--Ni4Q
 
@Ell What, you mean before anybody gets killed at it?
 
Well, it's not even ⅓ as exciting as a Dothraki wedding then.
 
Ell
@JerryCoffin yeah :P
 
@Ell But boring
 
5:23 PM
0
A: Lower case to upper case without toupper

Thomas MatthewsA more robust solution is to use a lookup array: static const char upper_case[] = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z' }; if ((s[i] >= 'a') && (s[i] <= 'z')) { s[i] = upper_case[s[i] - 'a']; }

wtf
 
@LightnessRacesinOrbit so much more robust, obviously
@LightnessRacesinOrbit too robust to trust
 
I'm tempted to downvote all of these stupid answers
 
do it then
downvoting makes the SO go round
 
yeah, that kind of looked like a dumb question if you're going to close half the questions that people put up as inappropriate may as well close questions that indicate a lack of basic understanding.
 
the question's ok
 
5:30 PM
With any luck you'll never have to. ;-) Note that this solution does work for other character sets such as EBCDIC - this is guaranteed by the standard - it's just that the actual character codes may be different. — Paul R 1 hour ago
Yes EBCDIC is what's important here
Jesus christ are all these people from the past
Are ASCII and EBCDIC really the only things people can think of
 
@CatPlusPlus everyone is from the past. :p
 
I'm from the future
 
whose future?
 
then you should probably go back before you run into your parents and fuck up your life
 
I'm the goat of C++ programmers future
4
@CatPlusPlus: What letters, from the English alphabet, am I missing? — Thomas Matthews 1 min ago
I guess my second comment was too subtle
 
Ell
5:36 PM
haha
 
user784668
1
A: Lower case to upper case without toupper

Puppy does the job of converting lower case to upper case? It doesn't. Try passing something like "naïve" in. The C and C++ Standards do not specify any genuinely useful string manipulation functions, although some implementations extend them to be more useful. If you want string handling functio...

 
user784668
Puppy the correct?
 
user784668
@CatPlusPlus wrong, Puppy's answer is fine.
 
@Fanael It wasn't there when he commented.
 
user784668
@Puppy It was.
 
5:42 PM
speaking of Lounging things
4
Q: C++ - Accessing multiple object's interfaces via a single pointer

Luke GivensI need to store a container of pointers to objects. These objects have some common methods/attributes (interface) that I want to enforce (possibly at compile time) and use. Example: struct A{ void fly(){} }; struct B{ void fly(){} }; A a; B b; std::vector<some *> objects; objects.push_...

 
@AaronKyleKilleen forward*
 
CatPlusPlus - a goat in disguise
 
1 goat teleported.
 
> interface less friendly than a primed nuclear warhead
^^ nice
 
TIL a small goat is called a kid
 
5:44 PM
I learnt that when I was a kid
 
@Mysticial I often find that well-targetted sarcasm increases upvotes.
 
in Romania a small kid is called a goat
 
Gratuitous Targetted Sarcasm is nearly as good as Gratuitous Standard Quotes.
 
5:48 PM
@TonyTheLion You gotta be kidding.
 
I've asked a new meta question in case @Lightness or other people here involved in meta care. Puppy I apologize :P meta.stackoverflow.com/questions/267368/political-avatars
 
so many deleted answers on the toupper question
 
@jalf "topper" question?
 
OP has the s[i]>='a' && s[i]<='z' condition in his code, so the statement "it does not work" clearly does not apply to the code from the question. — dasblinkenlight 2 mins ago
It works because it limits itself to the almost irrelevant portion of the problem you see
It works for string "test" therefore it will work for any string!!!!!!!!
I'm just shocked at how stupid that comment is
 
user784668
@CatPlusPlus but it doesn't work for string "tеѕt"
 
5:55 PM
shocked
 
Oh, ignore me. I didn't even look at the code.
 
@LightnessRacesinOrbit no back as in back to the future
 
@dasblinkenlight: Is that how you test your functions? Pass it one or two inputs, slap yourself on the back and say "yeah bro, it works!"? — Lightness Races in Orbit 5 secs ago
 
Must be an OpenSSL contributor
 
user784668
@LightnessRacesinOrbit Congratulations, you just described 110% of all unit tests.
 
5:57 PM
Why does everything people take for granted have to be so hard for programmers?
 
@Fanael not mine
 
Text, time, date
 
There's a difference between not testing all inputs and not even thinking about the issue
 
^
well, those are the two extremes
so yeah there's a difference
lol k
editbro
 
Unit tests are for edge cases
 
5:58 PM
Do you never test happy path? Happy path is usually the first test I add.
 
My paths are never happy
 
the F# room is pretty active now, three rows of chatters.
 

« first day (1384 days earlier)      last day (3565 days later) »