« first day (712 days earlier)      last day (4229 days later) » 

7:00 AM
You can move mine to the bin too.
 
1 message moved to bin
aww... I can't bin the bin messages.
 
:( lame. chat faq
 
Holy shit:
0
A: Getting two type representations from the same data (strict aliasing)

Luc DantonSome of your code is questionable due to the pointer conversions involved. Keep in mind that in those instances reinterpret_cast<T*>(e) has the semantics of static_cast<T*>(static_cast<void*>(e)) because the types that are involved are standard-layout. (I would in fact recommend...

 
That previous answer by David has a long comment chain. That happened to me too.. Got downvoted and had a long discussion in the comments.
 
@Cheersandhth.-Alf Mmh, got my answer through the door (I got sick of it by the time I reached the end), just noticed you had produced yours. Which I think goes with the same sentiment as in mine. In any case I feel you should fix 'strict alignment' to 'strict aliasing'.
 
7:06 AM
Well I upvoted. You said you were working on it for a "long time" and it was verbose for you.
 
I'm still reading it.
 
lol magic_cast
 
Now that I've written this I need a shower. brb.
 
@StackedCrooked is gonna have a bit of reading when he wakes up. :)
 
I think he said he'll be gone until Friday.
0
Q: derivation using Leibniz rule

Daniel LårsDifferentiating ∫_{((m-d-μ)/σ)}^{∞}xf(x)dx with respect to σ where σ is the standard deviation of the standardarized random variable x and μ its mean. I guess that it is ((m-d-μ)/σ)f((m-d-μ)/σ). Correct me if I am wrong.

Why not TeX..
 
7:13 AM
It probably didn't render properly.
 
it's \int_ for integration lol
\int_{\frac{m-d-\mu}{\sigma}}^{\infty} xf(x) \text{d}x
 
7:33 AM
@LucDanton oh, word-level typo! thx, i'll fix
 
Oh god...
@sehe It's not the longest:
[edit] [edit] [edIT] FAQ Faq fAq Stack Overflow Stack Overflow [meta] [mAin] [mAin] Meta Stack Overflow Science Fiction and Fantasy Software Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and Testing‌​Software Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and Testing[‌​sqa.se]Software Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and Testing[s‌​qa.se]Software Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and Testing[sq‌​a.se]Software Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and Testing[sqa‌​.se]Software Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and TestingSoftware Quality Assurance and Testing[sqa.‌​se]Software Quality Assurance and TestingSoftware Quality Assurance and Testinglunboks Jan 26 at 21:52
 
I didn't know you could do <!-- language: lang-example -->
 
@Rapptz where does that go?
 
Your answer.
 
@Rapptz Yep, that's how you override formatting when you have more than one language in your post or if the language tags are missing.
One place to use it is when you're answering a question with examples from specific languages.
 
7:40 AM
lol
doesn't work here but it was funny to see.
Wow what is up with that topic? Is it just a giant sandbox?
 
@Rapptz yes
 
$&$&@#$@#$*@#$*@*$@*#$@**$@#*$@*uuuuuuuuuuuuuuuuuuuuuuuuccccccccccccccccccccccccc‌​ckkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Y U NO COMPILE?
 
That is a very nice castle though.
 
@Rapptz how is it, you getting your own IP or ISP server's IP now?
 
?
 
7:54 AM
0
Q: What is the most efficient way of local variables initialization for a loop in Java?

ArhimedPlease consider these 2 samples of Java code: // 1st sample for (Item item : items) { Foo foo = item.getFoo(); int bar = item.getBar(); // do smth with foo and bar } // 2nd sample Foo foo; int bar; for (Item item : items) { foo = item.getFoo(); bar = item.getBar(); // do...

 
Oh god... another type A performance question...
 
whats up noobs
 
@AmadoMartinez you're mistaking this for the PHP room...
 
what the hell are you talking about?
 
That's where the noobs are
 
7:59 AM
:P
 
I'm pretty bored. I should go to sleep but I'm not tired.
 
I can't believe fapping isn't on there...
 
Most people do that.
Masturbate before going to sleep to get tired, I mean.
 
Xeo
Woot, they finally messaged me about my application
 
8:02 AM
and?
 
Xeo
They want to invite me asap for a personal interview. :)
 
congrats
 
aargggggggghhhhhhh
XML Y U SUCK SO BADLY?
 
Xeo
thx
 
@Xeo congrats :) Hope you get the job :)
 
Xeo
8:09 AM
I hope so too. And I think it would be rather emberassing for me if I did not, after all that back and forth
 
user1182183
what do you guys recommend for making gui applications in C++ on windows? Visual C++ Expres isn't quite the choice I think, or is it? It lacks the gui design features for C/C++..
 
did you have to convince them to interview you?
 
Xeo
@TonyTheLion Not really, I just mentioned that I'm a bit pressed for time, and he told me that he'd talk with his colleagues this morning and if they also liked my documents, they'd make an appointment for a personal interview.
And roughly an hour later the other mail came in that, seemingly, they did like them too. :)
 
@GamErix wth is C/C++?
 
if C is = 1, then C++ is 2C and C/2C is 1/2.
 
8:18 AM
@Xeo awesome :)
 
@Rapptz if C is 1, C++ is also 1.... C would be 2 afterwards, but that's it...
 
++ isn't in PEMDAS though. Gotta bend the rules a little.
 
user1182183
well me with C/C++ means C OR C++
 
user1182183
because I don't care as long as I can get a gui working with C or C++
 
8:24 AM
@Rapptz No, it's just UB.
 
Xeo
Anyways, gotta run, I did oversleep a bit.
 
We get one of those everyday. Just without the division /.
 
C||C++
true||true
 
What's the deal with bool and ++?
 
Is it even defined?
bool x = true;
x++;
 
8:30 AM
Using ++ as shorthand for = true is defined but deprecated. However -- does not mean = false; it's illegal.
 
@Potatoswatter it was never really meaningful, but old code had to be supported (not broken)
 
Why did they define it but only halfway?
 
Is doing ++ UB on a bool if it's false? i.e. 0
 
I can understand supporting C code using typedef bool int;… but that would still break with disallowing --, right?
 
> As of August 2011, even the newest x86 CPUs (including x86-64 CPUs) start in real mode at power-on and can run software written for almost any previous x86 chip.
kinda crazy if you think about it
all for the sake of backwards compatibility
 
8:33 AM
Sometimes backwards compatibility hinders progress :P
 
Only sometimes?
 
a lot of the time
 
I can come up with a few occasions where it doesn't.
 
x64 was a step in the right direction. Just not enough.
 
user1182183
@Mysticial sure.... ideone.com/hE3vd NOT
 
8:33 AM
if MS didn't still have to support 16bit apps, they might be able to remove some of the crap Windows still puts up with to this day
 
@TonyTheLion it's good engineering to have something simple and reliable. when electronic starter fails, you want to be able to go manual. when smart card door opener fails, you want to be able to use an old fashioned physical key.
 
user1182183
ideone.com/X1JGi just outputs 11
 
user1182183
so two times true
 
it's bad engineering to make systems so complex and brittle that they fail ungraciously
@TonyTheLion MS does not support 16 bit apps any more, as of Windows 7. You have to run 3rd party "DOS Box" app to run them old apps.
 
user1182183
@Cheersandhth.-Alf 32 bit versions of windows 7 still do have the MS virtual dos machine
 
user1182183
8:37 AM
@Cheersandhth.-Alf on 64 bit win7 you have to use DosBox, that's true.
 
@Cheersandhth.-Alf oh, not sure if that's supposed to be an improvement or not.
 
user1182183
@TonyTheLion if you make an application, you want it support 100 years long (with a troublesome way) or rewrite it to compete against new technology?
 
Holy fuck that song Gangnam Style is everywhere.
 
i can't understand why. is it from some tv show or something
 
8:52 AM
No.
 
@Cheersandhth.-Alf it's a stupid song that's very irritating and annoying and has spread like wild fire, cause people are fucking stupid.
 
I was looking up drivers the other day for AMD on Linux and I found that there was an open source driver for it maintained by the community. I thought it was interesting.
 
Ell
Does anyone know the name of that song with the phone number In it?
Something something something 309
 
@Ell 867-5309aaaaaiaaaaann
 
Jenny 5678309..
 
Ell
8:59 AM
Ahh thank you
 
I can't believe I know that song lol
 
Maybe it did start with a 5, wait
 
Maybe it's 8..
 
No, google says I'm right
 
I mixed up 5 and 8 eh?
 
9:00 AM
And me and google don't argue
 
3
Q: A few things about floating point division by zero in C

user13267I always thought division by 0 would result in a compiled program crashing However I discovered today (using VC++ 2010 Express) that division by 0 gives something called 1.#INF000 and it is supposed to be positive infinity When it was passed to a function, it got passed as -1.#IND000 What is t...

 
@TonyTheLion oh, ok. i saw the video. i was just not impressed
 
Division by 0 is UB, regardless of whether the first operand is a float or int, right?
 
Ell
I like that song
8675309
 
9:01 AM
It's really old.
 
Ell
I'm at school bored as hell
 
@sehe It doesn't say who wins
 
@Cheersandhth.-Alf Ohaha. I just googled that yesterday, and I spent at least 10 minutes looking before I finally found out there really appears to be nothing more about it than that
 
No, actually I know who would win.
 
oh never mind, looked at it wrong.
 
9:03 AM
@Neil Erm it is actually quite clear who wins there:
 
@sehe They're golf scores, @sehe, duh
 
@Rapptz me neiter, I use text or lang-cpp, really
 
gooood morning all :D:
 
GUYS!!!! Is this correct -> stackoverflow.com/a/12617540/673730 ?
 
9:04 AM
erm.... ambiguous smiley is ambiguos
 
It's obviously a happy man with his hands next to his face. Like a dog.
 
@LuchianGrigore it depends. it can result in trap
 
@LuchianGrigore And that's why I don't answer those types of questions
 
@Cheersandhth.-Alf what are you talking about?
 
There's going to be some studious middle-aged man who was around when they were still sending punchcards to be compiled who'll say you're wrong and he has the proof
 
9:08 AM
@LuchianGrigore normally when you divide by zero you get +/- inf or nan, as the guy says. but you can get a non-C++ exception. or C signal. or even a C++ exception. it all depends on the C++ implementation and the configuration of the fp unit.
 
@Cheersandhth.-Alf are you kidding? The standard says it's undefined behavior.
 
@Cheersandhth.-Alf Dividing by zero: don't do it, kids. Stay away from unchecked floating point division! Stay in school!
 
@LuchianGrigore no, i'm not kidding. and standard does not say it's UB for floating point. check out numeric_limits for ieee 754 (aka iec 6something) support.
 
@Cheersandhth.-Alf 5.6 Multiplicative operators 4) "If the second operand of / or % is zero the behavior is undefined"
 
Only thing I found in the standard about division of zero is..
If during the evaluation of an expression, the result is not mathematically defined or not in the range of
representable values for its type, the behavior is undefined. [ Note: most existing implementations of C++
ignore integer overflows. Treatment of division by zero, forming a remainder using a zero divisor, and all
floating point exceptions vary among machines, and is usually adjustable by a library function. — end note ]
 
9:12 AM
@LuchianGrigore oh my. you have a found a defect in the standard. i didn't know
 
@Rapptz notes are not regulatory.
@Rapptz see 5.6.4)
@Cheersandhth.-Alf can't tell if trolling or not. Hope it's just trolling.
 
What version of the standard are you referring to?
 
C++03
@Rapptz but you can look for multiplicative operations if you have a newer one.
 
Yeah it's still 5.6.4 and it says the same thing.
 
@Rapptz exactly! So, clearly, UB, right?
 
9:15 AM
@LuchianGrigore no you really found defect in the standard. that's good work. you might want to check if there's already a DR on that.
 
Oh man that was weird. I got a charlie horse on my chin.. that was really painful
 
@Cheersandhth.-Alf why would that be a defect?
 
I didn't even think such things were possible
 
It's just telling you not to divide by 0. Seems reasonable to me...
 
I thought it was supposed to conform with IEEE standards.
 
9:16 AM
@LuchianGrigore because numeric_limits has a flag is_iec559 that forces IEEE 754 conformance, and then IEEE 754 dictates the result of division.
 
0
A: A few things about division by zero in C

Keith ThompsonQuoting the latest draft of the ISO C++ standard, section 5.6 ([expr.mul]): If the second operand of / or % is zero the behavior is undefined. This applies to both integer and floating-point division. A particular C++ implementation may conform to the IEEE floating-point standard, which ha...

 
@Neil seems like an embarassing tattoo to me
 
@Cheersandhth.-Alf how'd you find it?
 
Xeo
@LuchianGrigore CWG table of contents and ctrl-F, most likely
 
9:19 AM
@LuchianGrigore btw., it is always very clear that i'm trolling when i do that. like yesterday. those who try to associate me with trolling in general are just bad losers of technical discussions (mostly kids i suspect, but also one or two familiar SO tenants)
 
@sehe I set myself up for that one
 
you find such people everywhere
 
Sehe always makes puns.
 
Sometimes I makes runs
Of puns
 
@LuchianGrigore i just googled for defect reports, and checked the index by section
but i think C++ community is pretty clean regarding that "go social if you can't get on top of the technical"
 
Xeo
9:22 AM
@Cheersandhth.-Alf Btw, that's not a DR for division by zero
 
it's remarkably clean
@Xeo isn't it? it hasn't loaded yet on this connection :-(
 
Xeo
@Cheersandhth.-Alf > 614. Results of integer / and %
> For integral operands, the / operator yields the algebraic quotient with any fractional part discarded; [Footnote: This is often called “truncation towards zero.” —end footnote] if the quotient a/b is representable in the type of the result, (a/b)*b + a%b is equal to a.
 
Xeo
That's all that DR is talking about
 
9:23 AM
nvm
 
I think he meant to link that one.
 
Xeo
@Rapptz "Undefined pointer arithmetic in constant expressions"?
 
Yeah just re-read it, lol. Never mind.
 
Xeo
> Работа сервиса временно приостановлена.
Anybody able to translate that?
 
> The work of the service is temporarily suspended.
 
9:29 AM
@Xeo service unavailable
 
from google.
 
Xeo
@Rapptz Yeah, just thought of doing that too
Seems LWS is working on the problems, as that's what it says in big, red letters. :(
 
fuck lws, it uses tab size == 3
 
my text editors automatically convert tabs to 4 spaces.
 
Xeo
Who cares about fucking tab size, it has GCC 4.7.1 and Boost 1.50.0
 
9:33 AM
yea, that's a good point. Hi guys
They try to keep the tools up to date
 
@Xeo That means "Die Arbeit des Dienstes wird vorübergehend ausgesetzt." in german
 
what does vorübergehend mean?
 
Xeo
@BartekBanachewicz temporarily
 
@BartekBanachewicz مؤقتا in arabic
 
@Neil ha ha ha.
 
9:35 AM
@BartekBanachewicz 哈哈哈 in Chinese
 
@Rapptz yup that is WIN
 
I should use my german more. I've been learning it for 6 years, and yet still I am so low.
 
Xeo
@Rapptz Mine converts to two spaces. :3
@BartekBanachewicz Hallo, wie geht es dir?
 
I like 4 spaces, it feels right.
 
@Xeo Sehr gut, danke.
 
9:36 AM
@BartekBanachewicz Sie sind tief? Was heisst das?!
 
Xeo
See, all fine and dandy
 
Should probably go to sleep
Night
 
Xeo
@Rapptz Day
 
@Xeo Schau mal an! Noch alles gut and frisch :) (making shit up, there, but hey)
 
9:37 AM
@Rapptz Nacht :)
 
Xeo
So, I am once again at Ingeus, trying to make the hours pass....
 
reminds me of "swenglish" from these riddiculous youtube movies
 
@Xeo Good thing at least the existing posts are still 'working' and accessible (without butt-ugly banner message)
 
@Xeo And I am once again at work trying to make the hours pass
 
Xeo
async var invitation = await new Email.From("Funatics");
 
9:39 AM
The only thing worse than being stressed to the point where you don't get coffee breaks is not having anything to do
 
@Neil Interesting. To me, the hours never fail.
 
@Xeo afaik, C++ doesn't have "await" yet?
 
One big happy time unit test cycle
 
@sehe Took me a second to get that
 
Xeo
@BartekBanachewicz afaik, in C++ you don't use new :)
 
9:40 AM
@Neil Well played, sir
 
Xeo
@sehe I do get the banner message for old snippets
 
@Xeo In C++, new uses you!
hmmm. Now I do. I must have... missed it <bewildered_face/> before?!
http://liveworkspace.org/code/2d708ecb64ad6fbf9708c203f26965ce, http://liveworkspace.org/code/56aea8619867451a21cd49fddb1e93bd, http://liveworkspace.org/code/d4b5c68b584b4ce494e4c2b91c1fbcb2
 
Vorabend Vortag
You have two ways to express "eve"?
 
Xeo
@Neil You mean "evening"?
 
In english, the only time we use that word is the day before Christmas and the day before New Years Day
 
Xeo
9:43 AM
Oh, just "eve". No idea.
 
@Xeo Does it mean evening or eve?
 
Xeo
"evening" is just "Abend"
 
Just messing around with google translate with Nacht and got synonyms for "eve"
 
Xeo
And it seems "eve" can indeed mean "Vortag", "Vorabend" or just "Abend"
 
Just found it odd, is all
 
9:44 AM
@Neil Even Adam had invented many more ways to do Eve, I guess
 
Xeo
Also, we don't have two ways to express "eve", the silly Englishmen just used "eve" for two meanings. :)
 
@sehe That's not *eve*n fair
 
But it's fairly even
 
@Xeo Eve has only one meaning if you exclude the name of Adam's mate
TIKO anyway
I can almost hear the clickity click of users searching on google searching for contradictions to my statement. :)
More efficient than a spider bot
 
0
Q: GNU make automatically deletes precompiled header

PotatoswatterI'm trying to get a precompiled header to speed up my build using gmake and GCC. The .gch file is created, but for some reason it's automatically removed as soon as the build completes. Here are the relevant rules: cxx_pch := ./bin/analysis.h.gch bin/%.cpp.o: src/%.cpp $(cxx_includes) $(cxx_pc...

 
Xeo
9:57 AM
8
Q: How do I pass method as a parameter in Java?

user1400650Is it possible to pass a method as a parameter in Java? If I can't what would be the best course of action for the method below without having to repeat code. public void enterUserInput(javax.swing.JTextField inputField, javax.swing.JTextField outputField, method rangeChecking){ Strin...

Oh wow.
"How do I pass a callback function?" "Make a new class hierarchy and accept an interface!"
 
Hehe. You can create classes at runtime, right? So a vtable is just a function pointer in a neat little package. How elegant!
 
Xeo
Woot, Copy Editor badge
Hmm, Monday or Wednesday next week... let's see what bahn.de says on the ticket prices
 
-1
A: Passing Dynamic Array to function

Bartek BanachewiczI am passing a dynamic array of integers to a function and I can't get it to work The answer is : don't. You should use std:: container if you want to pass multiple number of elements into function (most probably, std::vector. Example: (simplified, of course. ranges could be used even more ef...

What's with the "not an answer to OP's question guys?
 
Well, it's not...
The op has linker errors...
 
the OP has bad code.
linker errors are just a consequence
but what do I know:
0
A: Passing Dynamic Array to function

Daniel D CSorry i was compiling this program wrong im such an idiot ! thanks for the help

 
10:10 AM
OK
 
and now he still has bad code, thanks to downvoters of my answer.
 
@BartekBanachewicz well, you could answer the question and the suggest the better alternative.
But as it is, it doesn't answer the question.
 
Ah, OK
damn right. I am not sure who is the bigger idiot right now : me for not reading his error thoroughly or him for writing such monstrous code
I've added the description, hopefully the guys will get it back to 0
 
I did my part.
But that should be the first thing in the answer, as it is, in fact, the answer to the question.
 
learned the hard way ^^
 
10:21 AM
@Bertek what you said may be true for general C++ code, but not helpful here nor did it answer the question.
 
Look a few messages up, I agreed. I've added the answer to the original question at the top of my answer and explicitly stated that the rest is my suggestion
 
10:46 AM
iOS room is on a flagging spree again
these people need to get a life.
 
Xeo
I marked as invalid, I don't see anything offensive, spammy about those messages
 
@Xeo If they all originate from the same poster, I usually say "unsure" in such cases; let the room users govern their own room
 
hi @sehe
how are you today?
 
Xeo
Maybe we should pester Meta for options "global flag" and "local flag"
local flag would only show the flag to room users
 
think that has been done already and was declined
 
Xeo
10:52 AM
global across the chat for serious troublemakers
 
for whatever dumb reason
 
Xeo
hm
 
I'm not sure what you mean by "deploy from (?) my project". Of course, you can deploy .NET applications, in general; This includes C++/CLI applications. I'm not sure what exactly the limitations are that you are running into. — sehe 18 secs ago
 
SO made some very strange choices in some of their design of Chat.
 
^ poor OP, anyone else see what his trouble really is?
@TonyTheLion alaaf
 
10:53 AM
> user1609284
that is his problem ^ , shitty username
 
@TonyTheLion I knows
 
which loses all credibility with me instantly
 
Well hist credibility is not his real problem there, but thanks for thinking along... <whistle/>
 
@sehe dafuq does that even mean?
 
Xeo
@sehe Normally, the vcrt should be included in the redistributable.. Without further explanation, there is no way to help.
 
10:54 AM
@Xeo "the redistributable" - your cutting corners without context here. You don't mean, say, the msvrct redistributable? (I know a few tautologies that are tautologous myself)
@Xeo I agree, I don't see what the trouble might be. He just needs to deploy the required components :)
 
Xeo
@sehe I mean that the mvcrtN.dll should be included in the VS redist
 

« first day (712 days earlier)      last day (4229 days later) »