« first day (940 days earlier)      last day (4010 days later) » 

7:00 PM
@JerryCoffin :) I have been good. Thank you
 
@Tohmas Undefined behaviour.
 
109
Q: Could anyone explain these undefined behaviors (i = i++ + ++i , i = i++, etc...)

PiXint main(int argc, char ** argv) { int i = 0; i = i++ + ++i; printf("%d\n", i); // 3 i = 1; i = (i++); printf("%d\n", i); // 2 Should be 1, no ? volatile int u = 0; u = u++ + ++u; printf("%d\n", u); // 1 u = 1; u = (u++); printf("%d\n", u); // 2 Should also...

 
Ell
@Tohmas I seriously don't understand why so many people want to do x++ + x++ and the like
 
@Tohmas Hey, it's the most asked, least googleable question on SO!
 
Ell
Why would anyone ever write such horrible code.
 
7:01 PM
@Ell I have yet to get my mind around that. It's the oddest thing ever
 
@TonyTheLion Well talking of Alf, he would always piss someone off..he acts weird sometimes but nevertheless he is immensely respected.
 
Ahh thanks guys, I google'd a few and saw that it was undefined behaviour just was making sure since somehow on the exercise apparently I am meant to get a single result but I am getting a different one, thanks again!
 
@Ell You know, some people even write Java code.
 
@AlokSave He knows a lot of stuff.
@Morwenn We don't talk about Java.
 
@Morwenn I'm one of them. sob
 
7:03 PM
@TonyTheLion Any links where I can get to know, whom he pissed off lately
 
erm... not that I know of
 
First hit for "y++ + x++" on google is this GCC "bug" :-P
 
@AlokSave it's been discussed here a few times, perhaps a search through the transcript will unveil something?
 
@TonyTheLion His profile shows up as normal...banned users used to show blank profiles AFAIK
Maybe some change in policy
 
maybe his ban ran out since
 
7:05 PM
If you love coding horrors, here's one.
 
it was till sometime in May
 
@TonyTheLion He last visited on Apr 25
 
@rightfold Oooops.
 
reinterpret_cast<float*>(this)[offset];
what the fuck
 
@AlokSave It was probably in comments and is probably deleted by now.
@TonyTheLion It was until last weekend.
 
7:06 PM
grrr, now I'm all pissed off at meta
 
@R.MartinhoFernandes oh ok
 
grrrrrrrrr!
 
oh lol
 
@jalf I'm not surprised ;)
 
@jalf Just ignore them, for your own sanity
 
7:07 PM
@TonyTheLion I can't
 
@R.MartinhoFernandes Hey Bot, How have you been? good I hope
 
@AlokSave Been doing very well, thanks.
 
although, in fairness, I am somewhat pleasantly surprised that this time, the deletionists actually seem to be a minority
 
@AlokSave Yes, I think he's back to normal now. It wasn't ever blanked, just showing a "this user has been suspended for a cool-off period" (or something similar).
 
7:08 PM
oh deletionists, again. sigh
 
Xeo
0
Q: how can I set system time from system_time::time_point

elvis.dukaj How can I set the system time of the platform (windows, linux, android) from a std::chrono::system_time::time_point.

 
...except among the moderators, of course... But still, better than last year
 
Xeo
lol
 
Ell
Coliru is dying :(
 
@jalf how is it, everytime this deletionist thing comes up, you're in the discussion?
 
7:09 PM
@TonyTheLion well, because someone here linked to it...
 
@Ell Must resuscitate! @StackedCrooked
 
@JerryCoffin Alf is a clone of Neil :)
 
@jalf ugh
@AlokSave oh gawd, that guy :|
 
@TonyTheLion Yes that guy with an arrogance as mighty as his brilliance.
 
@AlokSave They are quite a bit alike. As I recall, years ago they had a little run-in on Usenet. If Google Group search still worked I'd try to find it, but I've pretty much given up on that...
 
7:10 PM
@EtiennedeMartel It's not really wasting! Most of the time I spend on the Lounge when working on ogonek I am wondering about the design or something.
 
@JerryCoffin I can see a resemblence with several other of this room's (ir)regulars (yes, including me) as well. :)
 
@AlokSave yea
 
@jalf Hey, including yourself just so we can't make jabs at you for it is not fair.
 
@R.MartinhoFernandes I don't see how that stops you from doing it :p
 
7:13 PM
@JerryCoffin hahaha
 
@jalf On another day, I'd take that as an implication that I had arrogance as mighty as my brilliance -- but we all know that in reality, my arrogance is much mightier than any meager brilliance I might show at times.
 
I can take it. MY SKIN IS THICK, LIKE A RHINO
 
@JerryCoffin you're just hilariously funny. :)
 
Xeo
Is anybody here an old witch? I need some magic against headaches.
 
@JerryCoffin Join the club ;)
although you weren't the first person I thought of when I said it. :)
 
7:14 PM
@Xeo We have a bunch of wizards in here, but no witches AFAIK
 
@TonyTheLion All too real...
 
yep
looks at self
 
I never solved any problem in the shower.
 
@jalf So, is that you like arguing, or that you can't stand the idea of someone being wrong on the Internet?
 
me neither
probably because I despise both showering and bathing
2
 
7:16 PM
@Xeo caffeine. Aspirin, Tylenol, etc., can't even begin to compete with it for curing headaches.
 
@TonyTheLion or... both? :p
 
@DeadMG Like a true dog.
 
@jalf :)
@R.MartinhoFernandes I've solved problems in the shower, smelly ones. :)
 
woof woof
 
@DeadMG I love a good warm shower in the morning
 
7:17 PM
that's exactly what I hate about showers
it's nice and warm for the 5 minutes it actually takes to clean yourself
then it's freezing cold and you're all wet and your clothes stick to you for the next billion hours
 
@DeadMG then the guy upstairs flushes the toilet?
 
Xeo
@TonyTheLion Mhmm... a warm / hot shower feels so good.
 
@DeadMG that's what a towel is for
@Xeo you dig me :)
 
@TonyTheLion It's not even close to effective
 
@DeadMG Take cold showers.
 
Xeo
7:18 PM
@DeadMG Erm.. I'm pretty sure you're doing it wrong on the second part.
 
Ell
my showers are hot for 30 minutes
 
@R.MartinhoFernandes What, so I can be cold and miserable for even longer?
 
Xeo
@DeadMG You're warm afterwards.
 
my showers are hot as long as I leave the hot water on
 
Xeo
Which is why I finish my showers usually with a cold spray.
 
7:18 PM
> Il suffirait de presque rien / Peut-être dix années de moins / Pour que je te dise "Je t'aime"
 
no, I'm always cold afterwards
and sticky clothes and wet hair
 
You're doing it wrong.
 
@Xeo I couldn't deal with that
 
Xeo
ITT: Puppy fails at showering.
 
We'll have to teach puppy the art of showering.
 
7:19 PM
I agree with sbi on this. A nice shower is when it starts out scalding hot, and you then gradually increase the temperature :D
 
@jalf :)
 
You two are mad.
 
I do hot beginning, cold end.
 
hmm, I generally have a very low tolerance for hot water anyway
 
Ell
@TonyTheLion this is beginning to sound homoerotic :P
 
7:19 PM
Counterpoint: in the Philippines, you generally shower in the coldest water you can, then dry off, and repeat in 3 or 4 hours when you're too hot and wet with sweat again.
 
Ell
I do hot beginning, hot end
 
@Ell Yea. Next we get into MLP. :P
 
my maximum is much lower than most of the rest of my family
 
@JerryCoffin because it's fucking boiling outside
Britain has that one day a year, if we're lucky. :/
 
we've actually had quite a few sunny days so far this year
 
7:21 PM
Not where I am.
 
I have long ago resigned myself to the fact that the Universe hates me and there is no such thing as ideal shower temperature. "Nice" is simply unattainable.
 
my only sunny days this year were in California
 
@TonyTheLion Boiling outside and electrical system so overloaded, you can't depend on air conditioner to work either.
 
@R.MartinhoFernandes lol
 
@R.MartinhoFernandes My ideal water temperature is also a narrow band in which most water dispensing devices do not expel water.
 
7:22 PM
So when faced with the choice between fuckin' cold, cold, hot, and fuckin' hot, I go for cold.
 
^ me this
 
hot to cold is good for your skin.
 
I can't stand cold
 
Yeah I couldn't either but it feels good at the end
 
@R.MartinhoFernandes The temperature adjustment in most showers is carefully designed so the movement from "way too hot" to "way too cold" is roughly the width of a a hydrogen atom. One of these days, I think I need to design a computer controlled one that lets you control to about the hundredth of a degree or so.
 
7:24 PM
I could never shower cold purely.
 
I like a hot shower, but I hate hot weather just about as much as cold weather
 
@JerryCoffin Yes, please design, I'll be your first customer.
 
@JerryCoffin A robotic arm that keeps moving back and forth between those two!
Then you can configure amplitude and frequency.
 
@TonyTheLion No, my first customers will be hair salons, which seem to be incapable of maintaining a temperature other than "oh, please just cut off my head instead, so it won't hurt so much!"
 
Or even render music as shower temperature.
 
7:26 PM
lol
 
@R.MartinhoFernandes pulse jet shower?
 
ITT Reinventing showers
 
Xeo
@JerryCoffin I didn't have that problem yet.
 
I never had that problem in Berlin.
Which reminds me... I need to get a haircut one of these days.
 
Xeo
same
 
7:27 PM
This crap is starting to get in the way of my sight too often.
 
Oh I know that feeling
 
It's like I'm walking on the street with a HUD, but a HUD that does not display anything useful.
 
@Morwenn lol...wut. How do you even...this had to be deliberate, surely you can't arrive at this by accident?!
 
@R.MartinhoFernandes It does display the need for a haircut
2
 
7:29 PM
haha
 
@JerryCoffin Please do.
 
 vs.insert( vs.begin(), std::istream_iterator<short>(in), std::istream_iterator<short>() );
is this a good way to push data in a vector from a std::istream ?
 
@R.MartinhoFernandes so get some google glasses, and stream a live feed from a webcam mounted on your head to them!
 
Food Y U NO COME?
 
@Darkyen Use assign, not insert, unless you actually want to insert at the beginning of a non-zero-sized vector.
@TonyTheLion It doesn't have a dick so how could it come?
 
7:31 PM
@TonyTheLion "come" is Portuguese for "eats"
 
@DeadMG How do you know it doesn't?
 
fuck sake, this isn't sexual
 
I actually want to do so, but thanks for the remark :-)
 
You want to come?
 
7:32 PM
@TonyTheLion s/come/arrive/
 
@TonyTheLion reply to DeadMG
 
hahaa
 
@Darkyen If you're going to insert a significant amount of data at the beginning, you may want to use a deque instead.
 
32k ?
is that significant ? sorry i am new :-( will take time to get used to off here... but i will
 
@Darkyen Yes, I'd say so. Fortunately, it's easy to test and see which gives better performance for your purpose.
 
7:35 PM
You want it in the vector in the reverse order you got it from the stream?
 
Xeo
That's not reverse
 
Food has arrived!!!
 
what food
 
I don't see it.
You're lying.
 
My weekly shop
 
7:37 PM
you have it delivered?
 
What did you order, Pizza?
 
because I don't drive yet, its cheaper to have it delivered
then getting a taxi back and forth
 
better in every way imo
 
7:38 PM
also, going to the store involves walking :/
 
@Xeo well, sections of it I guess
 
not my best skill
 
shopping also sux because you might meet actual people
 
@TonyTheLion well, or rollerblading
could ski, if it's snowy enough
 
@JohanLarsson lol
 
Xeo
7:41 PM
@R.MartinhoFernandes Yeah, I also see no food. :(
 
It happens to me all the time and it is not nice :D
 
Xeo
Maybe I should get some
But OTOH, I'm also damn sleepy and likely to just nap away in the near future.
 
@jalf Given what's been done to Tony's legs, I'd guess the "skiing" spot on his list of priorities falls into "and if hell freezes over more than a million times..."
 
@jalf I could do a lot of things, only if I wanted to commit physical suicide, skiing or rollerblading comes under that category, and pretty much everything that involves standing/walking using my legs for longer periods of time
 
@JerryCoffin yeah, probably
 
7:42 PM
1
A: Ability to see linked chat messages separately

Anna LearWe discussed this internally the other week and we agree that this would be handy to have. Especially in cases where a moderator pings several community team members at a time and one of us responds before the others. Using our existing chat UI and some inspiration from how Twitter shows linked...

 
@TonyTheLion but they are alternatives!
 
@jalf yea they are. :P
 
Xeo
@Mysticial oh, cool
 
@Mysticial this would be a cool feature.
 
user142019
@R.MartinhoFernandes About the hash thing.
 
user142019
7:44 PM
I commented out the entire offending file and it worked.
 
user142019
Probably because Boost supports that now, making your hack obsolete.
 
pastebin.com/7x4aFH0k stupid template errors
 
That message has been lounged. 5 upvotes in less than 30 seconds...
2
 
a new verb was created.
 
user142019
detail/boost_hash_unicode.h++, to be exact.
 
7:47 PM
@TonyTheLion Another, otherwise innocent, word was verbed.
 
Xeo
@Rapptz Couldn't convert const iterator to normal iterator?
 
user142019
It couldn't find basic_numbers and enable_hash_value.
 
@JerryCoffin oh yea, how did I not think of that :|
 
I don't want a const iterator :(
 
Xeo
Well, what's the code? :P
 
7:49 PM
template<class Cont>
inline std::pair<typename Cont::iterator,bool> find_word(const Cont& cont, const std::string& word) {
    auto it = std::find_if(std::begin(cont),std::end(cont),[&](const word_t& pair) {
        return pair.first == word;
    });
    return std::make_pair(it, (it != std::end(cont)));
}
 
@rightfold Oh. Which version of boost?
 
Xeo
@Rapptz Well...
 
to be fair I have no idea what I expected.
 
Xeo
You ask for non-const_iterator, but use functions on a const container
 
Ah man.
(Excuse me, I haven't slept since yesterday)
 
Xeo
7:51 PM
typename Cont::const_iterator
 
user142019
@R.MartinhoFernandes huh wait.
 
user142019
I have Boost "1_49" (please don't kill me).
 
user142019
WTF PORTAGE
 
Boost 1.53 is hardmasked, IIRC.
No idea why, and I unmasked it and no issues yet.
1.52 unstable, 1.53 hardmasked.
Like I care.
 
user142019
OIC.
 
7:53 PM
@R.MartinhoFernandes: Weren't there some Boost.Thread or Boost.Phoenix incompatibilities? Or was that in earlier versions?
 
user142019
It didn't build until I commented out boost_hash_unicode.h++ (basic_numbers not a template; enable_hash_value not found). Maybe an #if against Boost's version?
 
Gentoo is not bleeding edge unless you unmask stuff. Sometimes it can be quite conservative, kinda like Debian.
@rightfold Yeah, that uses detail stuff :S
 
Gentoo, jeebus
Gentoo always seems like entirely too much work to me
 
0
Q: error: ‘split’ was not declared in this scope

Brownie TuffyI get this compiler error from c++. error: ‘split’ was not declared in this scope. I need help as i am not able to figure out why. Here is my code: #include <iostream> using namespace std; int main() { string input; string line; cout<< "Enter the input line" << endl; while (getline(cin, lin...

lol
I'm not sure if it's because I'm tired but this question made me laugh
 
7:58 PM
also you can't compare strings like that. — Daniel A. White 7 mins ago
wut?
 
> Rats are very social animals. Source: Ratatouille
lol
 
user142019
@FredOverflow noob.
 
Daniel is no noob.
 
@DanielA.White Uh, yeah you can. — Rapptz 7 secs ago
 
@FredOverflow somebody upvoted it :(
 
7:59 PM
@R.MartinhoFernandes line == "quit" when line is an std::string is perfectly valid but he said it isn't
 

« first day (940 days earlier)      last day (4010 days later) »