« first day (1038 days earlier)      last day (3893 days later) » 

8:00 AM
1
Q: c++ array zero-initialization: Is this a bug, or is this correct?

paercebalWe have a strange behavior in one of our compilers and we're not sure if this is Ok or if this is a compiler bug: // This struct has a default constructor struct AAA { AAA() : value(0) {} int value ; } ; // This struct has a member of type AAA and an array of int, both surrounded // by in...

 
@A.H. That puts us on the right track, it's a bad phrase because it's ambiguous :D
 
Xeo
@Xeo Common man! Just tell me how do you know every little detail about c++? I'm not asking about just this question but I've seen your other answers too. I mean, just look at`void(), X(answer);` How on earth did you find that out?!?! Also what do you refer for C++? I read TC++PL (3rd & 4th edition). Also how did you learned C++11 in such a short time? — SAM 2 hours ago
@Xeo And how many years of programming experience did you require to get to this stage? — SAM 2 hours ago
lol
 
Many hours of masturbating templates and The Standard.
 
user1804599
What a wonderful day.
 
8:13 AM
Oh hey this guy asked a question.
He has a lot of contributions to .
 
user1804599
If I were to rate my life right now, I'd rate it 9.42/10.
 
@Rapptz gerh, you're slow
 
@thecoshman Aha. I am.
 
@Rapptz but at least you can clean up after yourself :P
 
I've never read Design and Evolution of C++ but I see it referenced a lot.
It sounds interesting
 
Xeo
8:20 AM
Wasn't that site horrible?
 
it's the cplusplus.com of web development.
3
 
oh you
 
@Rapptz well, I don't think cplusplus.com is claiming to be the C++ standard, is it?
@ScottW no one site is good
@ScottW my point being do not think any one site can tell you anything correctly, take an amalgamation from many many sites.
 
buy a book
read that
fuck online tutorials
lol
 
8:29 AM
@TonyTheLion why?
 
cause most of them are crap
oh
inb4 PHP
 
user1804599
PHP <3
 
 
user1804599
Is it possible to force a merge even when there is nothing to merge?
 
if there's nothing to merge it is already merged. right?
 
8:33 AM
outsourcing it to someone who likes doing web dev?
 
user1804599
@NikiC I want a merge commit.
 
user1804599
I have set merge.ff to false.
 
user1804599
@ScottW CSS animations.
 
user1804599
Fuck jQuery animations and browsers that don't support CSS animations.
 
user1804599
Probably everything but Chrome and Safari.
 
user1804599
8:36 AM
Maybe Firefox supports them already.
 
I hate how everyone uses jQuery now
using noscript is actually a pain
 
user1804599
jQuery is bad.
 
user1804599
jQuery is bad software.
 
user1804599
It's a badly-done combination of random unrelated features.
 
user1804599
It should be structured like Boost.
 
user1804599
8:38 AM
And since we have getQuerySelector and getQuerySelectorAll now, the most useful feature of jQuery (CSS selectors) is not needed anymore.
 
user1804599
(Note that I don't care about anything but Chrome.)
 
@not-rightfold -1 Not enough jQuery.
 
user1804599
-1 Too much jQuery.
 
@not-rightfold in other words, if people care about other browsers than chrome, they should do the opposite of what you suggest? :p
 
user1804599
8:44 AM
They should definitely use jQuery.
 
user1804599
jQuery is good at inferior browsers such as IE and Firefox.
 
yeah, like it or not, I think it's hard to avoid if you want to support a broad range of browsers without going insane
 
user1804599
If you need to support only superior browsers you can limit yourself to superior ways to solve the problem.
 
user1804599
Such as CSS animations.
 
personally, I embrace the insanity instead, when forced to do web dev :)
 
user1804599
8:45 AM
@jalf Especially with IE.
 
user1804599
Firefox isn't that bad. Has some annoying quirks but hey it's not IE.
 
user1804599
Opera is something I don't know of (and nobody but sehe uses).
 
I've noticed that YT videos don't work that well on FF as they do on Chrome
 
sehe and 14 others :p
@TonyTheLion hmmm, how do you mean?
 
user1804599
Opera has less users than Haskell.
 
8:46 AM
lol
 
(since my impression was that YT just sucked in general these days. Interesting if it's a "anything but Chrome" issue)
 
@jalf On my FF they tend to hang or be jerky. Whereas playing the same on Chrome will be smooth and without faults
so I'll switch to Chrome just for YT these days
 
hmm, I haven't experienced any jerkiness, but they sometimes get stuck part of the way through, which is driving me nuts
 
I hate that.
I go into fuming rage when that happens
 
yeah, especially because refreshing the page doesn't seem to fix it
 
8:48 AM
WHY
 
user1804599
@ScottW You idiots!
 
Why would you do that yourself?
 
user1804599
I'm fucking glad we only need to support Chrome for our current project. :P
 
@ScottW You noob.
 
user1804599
Well, and mobile Safari but that supports about the same features.
 
8:52 AM
I saw a gif yesterday where a Lion was licking a dog, I immediately thought about me and @ScottW. <3
:)
 
user1804599
:(
 
user1804599
Why is it never a pony and a hot chick.
 
user1804599
@TonyTheLion dat pun
 
user1804599
 
8:57 AM
@not-rightfold I'm not into ponies
 
user1804599
You're not a hot chick.
 
user1804599
You're a filthy old cat.
 
Erm...
 
user1804599
 
Yeah I love your fantasy marriage poster ... those men who have many wives, a lot of the times, man just pay for the wives and their legitimate children while their young wives hump other men. It is awesome! ... some got caught of course, while others got away!
Except those men have huge egos and wouldn't admit it!
all the better for their slut young wives
yeah and Tony is one of them
but you are so far away, last time I heard thePhd spent a night at his place
 
user1804599
9:12 AM
GNU/Linux is great.
 
@Telkitty猫咪咪 me and @ThePhD were type punned together in a union.
me and ScottW are married.
 
@TonyTheLion LOL did you see the reddit comments?
@TonyTheLion dat reference
 
@Tuntuni no
 
oh noooo puns
inb4 r/punthreads
@ScottW I was talking about this
I did
wait there's only been one episode aired so far, right?
since it restarted
@ScottW ohhhh
 
9:26 AM
Um..
 
then I'm going to have to watch that
 
how do I do template friend specialisations :(
 
@Rapptz don't friend them, they aren't your friends
 
man.
this syntax is killing me
 
1
Q: Is it right to use the singleton pattern for implementing a configuration manager?

MaverikI have a class which currently defines a static variables that stores several parameters list. static list<shared_prt<ParameterContainer> > _containers These ParameterContainers should be accessible by different clients. The ParameterContainers are created by the constructor of the class, whi...

 
9:32 AM
I just try variations until it works.
 
The Robot's secret ^
 
I should have brought a sweater.
Kinda chilly here.
 
Same here
I considered it, but thought I would be fine
 
Xeo
@Rapptz templates friend specializations are weird.
 
yeah I can't get this to work
error: expected initializer before ‘<’ token
I'm awful at this syntax guessing I guess
 
9:37 AM
meh
 
Xeo
Are you trying a partial specialization?
 
coliru.stacked-crooked.com/… here's a short non-compilable example
 
Xeo
Erm, function templates can't be partially specialized
 
Can't partially specialise functions.
 
thanks, that solves that issue
I have like, no alternative
 
9:42 AM
make your functions into functors
 
I wish.
 
@R.MartinhoFernandes do you (as in you personally, not 'how does one') just push an update when you want to publish a post you have already written (wrote?)
 
I set published: true and push.
 
If I make the function a regular member, I can't fully specialise it either can I?
because it's inside the class..
 
Or something to the same effect (removing published altogether results the same)
 
Xeo
9:49 AM
That you can do, IIRC
 
 error: explicit specialization in non-namespace scope ‘struct lol<<anonymous>, <template-parameter-1-2>, <template-parameter-1-3> >’
nah.
 
Xeo
Or maybe it was an MSVC quirk
 
this is fubar.
:(
 
Xeo
Why do you insist on functions anyways?
 
what else are you suggesting?
 
Xeo
9:51 AM
one general function template and a class template with static function for specialization?
 
I sometimes also at a git push if I want to publish at a certain time unattended.
 
@Xeo I'll give it a shot
 
Class template with static function is the standard alternative to parrial specialisation of functions
 
Uurghh.. just been rudely woken up by crazy Bailey-barking and by a classic line from Anne: "MARTIN! THERE'S A HOUSE MARTIN IN THE HOUSE!". Took a few seconds of working out, then I got up and we eventually managed to get the little bird to fly out the door.
 
A tad annoying and almost but not quite the same, but you should be used to it by now.
@Martin are you making this up?
lol
 
9:55 AM
@R.MartinhoFernandes No! I wish I had something recording it!
 
@R.MartinhoFernandes It's pretty late, so standard protocol says after 5 AM I stop thinking.
 
@R.MartinhoFernandes BTW, you got back OK? I assume you're not still stuck in that drab, boring, noisy hellhole.
 
What's this thinking thing you mention? (Still not in Berlin)
Zurich now. L
 
@R.MartinhoFernandes Oh, Hellhole V2.0. Still not forgiven Zurich security for making me dismantle my zippo :(
WTF is it with the Swiss anyway? Making pax on connecting flights go through security AGAIN!
 
I've used Zurich airport in almost every trip I made to Berlin and so far my opinion is quite positive. Except for not being friendly to underdressed people but that's kinda my fault.
 
10:01 AM
@R.MartinhoFernandes Heh:)
 
@R.MartinhoFernandes huh o_0
 
Sorry can't find out what you are replying to.
I'm on the crippled Internet device world.
 
15 mins ago, by R. Martinho Fernandes
I sometimes also at a git push if I want to publish at a certain time unattended.
This ^
 
oh, @Borgleader is a nice guy :P
 
at is a command that schedules shit. Kind of a one shot crontab thingy.
 
10:08 AM
@R.MartinhoFernandes I see...
does seting the published date to the future not work then?
 
We have two house martin nests this year. One is above the front-door porch. The fledgelings have continual level busts when on glideslope and final:(
 
I have no idea what that means...
 
@TonyTheLion don't worry, sometimes grandpa get's a bit confused
 
@thecosh remember that the site is static.
 
@TonyTheLion Nod and smile, nod and smile.
 
10:11 AM
ahaha
nods
@thecoshman Martin James is grandpa?
 
If you publish something with a future date you get a part that claims to be from the future but is around in the present.
S/part/post/
 
@R.MartinhoFernandes yeah, but Jekyll is smart. Surely when it passes a 'post' it can see "oh, that's a date in the future, I'll just wait till that time then rebuild to publish it"
@R.MartinhoFernandes ah, so it is not smart :P
I guess using your at will have to do :(
 
It was probably posted, but I just saw this while I scrolled through what I missed while trying to sleep.
 
Grandpa :(( LOL!
 
your dog is not giving birth any time soon Martin?
 
10:16 AM
OK, I gotta take a pic of this annoying nest...
 
if your child, the dog, is having children, then you will be a grandpa!
I think I am finally going to lose some weight - suffer from food poisoning and not wanting to eat for the first time in months.
 
I found the perfect place for me
I can rant endlessly, without annoying anyone
 
I had 1 pack of instand noodles, half a lettace, one piece of biscuit for the whole day and I am not hungry, despite it is nearly 8:30pm
with that said I had nearly 1.5 litre of cranberry juice which is a lot of energy
 
Oh Danny booooy, Danny booooy, Danny boy.
Morning everyone
 
10:28 AM
¬_¬ what's all this...
 
Morning
 
@Jeffrey ?
 
I just feel over happy that's it :D
 
@Jeffrey Heeeere's Danny!
chop
 
@Jeffrey that's not allowed
oooh, just noticed we're done, this is a very long encore
 
10:31 AM
I know. I came here to be punished and to bring my mood back down :P
Happiness just makes you stupid.
 
you guys need to stop saying my name
slightly weird out of context :(
 
Danny is a wonderful name :)
 
intelligent people are happy
 
Don't you dare <3
 
10:38 AM
Any vim people around?
 
@jalf nope, but do ask
 
@ScottW what do you need to be happy? <3
oh
 
intelligent happy people tend to look like losers though, but they don't care - one of the main reasons why they are happy
 
just wondering if anyone more experienced with vim than I am can suggest some tutorials. At the moment I'm pretty much just using it as a vanilla text editor where I've memorized a small handful of commands. Might be time to dig a bit deeper
 
10:41 AM
@jalf Did you just start with it?
 
@jalf you know much about vimrc?
 
I've actually read that IQ relates to miserablity and alcoholism
At high levels
 
There's Derek Wyatt's tutorials, book named Practical Vim, and the awesome :help.
 
IQ = intelligence is highly questionable though
 
@Tuntuni no, been using it on and off for years, and occasionally looked up individual commands when I needed them
@Telkitty猫咪咪 not much, no. I know it exists, and I've put a handful of things in it already
 
10:44 AM
It relates to alcoholism, not sure about misery ... if you are intelligent, then you can figure out that makes you happy ... and because of all your accomplishments, you stop caring about what others have to say, thus you are happier. Although that means you are going to be a loner and a 'weirdo', but that's okay, since geniuses can be independant when they have to.
In short, intelligent people know how to derive the most happiness with the least effort
 
0
Q: Conver .bat to .exe without depending on cmd.exe

IsderaI have a bat to execute all files in a folder every 15 seconds. I need to make it .exe to run it as hidden application. I have converted it to .exe with bat to exe converter and other programs, and I see that in all of them, when I execute the .exe, for example, Load.exe, automatically a cmd.exe ...

 
@Tuntuni ugh, video tutorials? Whyyyyyy
 
@jalf it comes with a built-in tut
 
@jalf IC. That's also how I do it. I know the basics and I look up when I need something specific which is usually when I learn a few new commands, etc. VimGolf is an awesome site too.
 
Hooray, another question about converting code so their ultimate script can work better.
 
10:46 AM
@jalf I've stopped after the 5-6th.
 
@Rapptz as helpful as the man page in linux
 
so helpful? good to know
anyway the built-in tut is pretty good
 
@Rapptz OOOOOOOOOOOHHHHHHHHHHHHH
 
it's called Vim tutor or something
 
Yeah. I think it's really nice too.
For everything else, there's :help. :D
 
10:48 AM
it's just a bunch of exercises with some hand holding
 
posted on August 19, 2013 by Herb Sutter

Managing dependencies well is an essential part of writing solid code. C++ supports two powerful methods of abstraction: object-oriented programming and generic programming. Both of these are fundamentally tools to help manage dependencies, and therefore manage complexity. It’s telling that all of the common OO/generic buzzwords—including encapsulation, polymorphism, and type independence

posted on August 19, 2013 by Herb Sutter

Now that the unnecessary headers have been removed, it’s time for Phase 2: How can you limit dependencies on the internals of a class? Problem JG Questions 1. What does private mean for a class member in C++? 2. Why does changing the private members of a type cause a recompilation? Guru Question 3. Below […]

 
11:03 AM
@TonyTheLion yeah, you know, I can't say it because that would be racist, but they're all coloured bears...
@Rapptz really? I thought that sucked quite a bit. It will do the job, in absense of google fu for a better starting point
 
@sehe how bear you say such a thing
 
I just don't know how I'm bearing up under the weight of all these puns etc.
 
@sehe Oh, I'll bear that in mind.
so my last week at work
 
you got a new job?
 
11:16 AM
Cool :)
 
So your nickname is a Star Trek reference, right?
 
Yes
 
Scumbag brain didn't let me sleep so I'll probably spend the day suffering from even worse jokes than usual, captain obvious syndrome and lack of any logical reasoning.
 
hehe
I hate that.
 
11:32 AM
lol opposite to mine - slept 12 hours last night, still not clear headed, thanks to the food poisoning ...
 
much better fat than suffer :'(
 
Could be worse. The robot has been stuck/delayed in airports since yesterday and still is not back in Berlin, AFAIK :(
 
Holy crap
Well that sucks
In all my travels I've been lucky to never have that happen to me
 
@TonyTheLion Yeah - you get the lot, boredom, misery, sleeplessness, stomachpocalypse, piss-poor beer and wallet-leakage.
 
11:38 AM
I can only imagine
That would set me off in a raging fury
 
don't understand how strained in the airport leads to sleeplessness, stomachpocalypse, and piss-poor beer?
 
Okay, checking out Reddit's news of stupid things people do might not have been the best choice.
Apparently some dude got a fork stuck inside his penis.
 
@Telkitty猫咪咪 You cannot sleep because either the bastards won't/can't tell you when the plane wil get fixed, (and you don't want to miss boarding), or because of the dozens of crying/screaming kids who cannot understand why they are imprisoned in hell. In the end, you just have to eat the 'food' and drink something..
 
my current food poisoning is pretty severe ... dizziness and even hillucination (yesterday after all day hike & 3 hours driving after), at this traffic light, I thought I turned into the right direction - I have used the same route a couple of times. But I ended up some where else! Pretty scary now I think about it, I was sleeping on wheels too!
 
@TonyTheLion well, as long as it is not a furious rage, we should be ok
 
11:46 AM
micro sleep
that's when I stopped at the side of the highway and had a 20 mins nap
 
@Telkitty猫咪咪 ¬_¬ you went hiking with food poisoning? how did you hold it in?
 
Apparently, the two answers I linked you to in chat yesterday didn't have the information you are after? Perhaps you could be a whole lot more specific about the exact use case you are wondering about. — sehe 1 min ago
 
@thecoshman I had an upset tummy, but it was not until I 'experimented' with BBQ on camp fire and ate some half cooked meat did the food poisoning occur.
so I wasn't feeling much of it until yesterday evening
@MartinJames pretty sure airport has decent food and beer if you are willing to bleed your wallet for them
 
@Telkitty猫咪咪 how did you fail at cooking on a BBQ?
@Telkitty猫咪咪 lol
 
@chris oh gawd.
Hmmm, I need four more answer upboats for 25k
 
11:52 AM
@TonyTheLion I can barely stand to think about it. Oh, and it was a 70 year old man.
 
@chris oh, if that bothers you then r/WTF is no place for you.
 
Well, I guess one man's poor airport food is another man's, (or woman's), dodgy camping BBQ poison :)
 
@TonyTheLion or r/spacedicks
 
or r/gore
or r/morbidreality
 
Either that man is hung like a whale, or people are using 'forks' that are not much use o_0
 
11:54 AM
lol
 
@TonyTheLion It wasn't even that. I was just exploring subreddits and found r/NewsOfTheStupid. But even so, that one's just plain disturbing.
 
look on the bright side tony, at least you did not arrive into chat as we start talking about something sexual :P
 
@chris hahah, I suppose I'm just desensitized by now. Cause it doesn't bother me.
@thecoshman lol
 
Anyway, I have no unsafely-cooked BBQ or €9.99 flightline crappoburger. I have to go shopping. No pizza, no cheese, almost no milk :(
 
I have Pizza!! Woop
 
11:55 AM
@TonyTheLion Well, I'm not normally bothered by much, but the thought of having a fork stuck in my dick is enough to bother me it seems.
 
In case I wasn't clear, all of the fork inside, not stabbing it or something.
 
oh lord, the joys of being able to just go buy a pizza :'(
 
Xeo
Gaaaah, this sucks so increadibly much... the app crashes without any notice, no error, no stack trace, not out-of-memory, nothing.
It just plain and simple dies.
fucking hell.
 
@chris eh
 
11:58 AM
@Xeo What DLL/s are you importing? Also, did you write them? :)
 
Xeo
@MartinJames no DLLs :P
 
@Xeo Go home. Fuck work.
 
Xeo
But but but, gamescom in two days :(
 
@Telkitty猫咪咪:hi
 

« first day (1038 days earlier)      last day (3893 days later) »