« first day (229 days earlier)      last day (4718 days later) » 

5:03 AM
Hi all
Could someone clear why default values for arguments is working in this case ideone.com/HEUTH ?
When implemented in a different header and source file and compile, it gives an error regarding default value
 
@Mahesh I imagine that ideone doesn't set gcc in strictly conformant mode
or did you try with your settings?
 
@LucDanton - No, I was just trying online.
 
I believe with the proper settings that gcc will warn/error out
 
@LucDanton - Will try on my XCode and let you know .. brb
 
5:36 AM
@LucDanton - According to standard, default value for a non-template class member function can go either in definition or declaration but not both.
8.3.6.6
Thought for the day - " A happy woman is a myth ! "
It's a quote from the movie I recently watched :)
 
Right, but then you can't use the defaulted arg ouside the TU where the definition resides; so most of the time it's not really useful
 
@LucDanton - What do you mean it's not useful ? ideone.com/iozYO
 
Because most of the time I don't use member functions where I've defined them (except if they're inline)
 
6:15 AM
@sbi Yep I posted that link, what about it?
 
@LucDanton: You can use default arguments anywhere where they are visible. If you put them in a class declaration in a header then they will be usable everywhere where the class is visible.
 
@wilx Wherever I used 'definition' in the previous conversation, I meant 'function member definition'
 
6:45 AM
hi
@luc: is this right sentence: "you know what... yesterday, i met with American boy.. He visited to India and admired "taj mahal" ... He said me thats pure beauty .. and America is nothing except money making. . I said him that also visit Shahi qila.. you will like it .. And now he do't like his own country...... thats really strange.. His thinking is too different than Americans.."
 
sbi
6:57 AM
@TonyTheTiger It's hilarious.
 
Xeo
Mornin'
 
@sbi :P
 
7:23 AM
.
 
7:35 AM
Morning, today is a national holiday :D :D
 
ooo wherer
 
8:03 AM
Hi all
hy all, i got success for loading video using MFC c++ and open cv
now my on next step...
 
"You know what? Yesterday, I met an American boy. He visited India and admired the "Taj mahal". He told me thats pure beauty, and that America is nothing except money making. I told him to also visit Shahi Qila, he will like it. Now he doesn't like his own country, that's really strange..His thinking is too different than Americans. " asjdhaksjdha @miss
 
hehehhe @reno thanks
 
@Reno I'm sure there are many people in the US that can appreciate other cultures. (Probably a minority though.)
 
8:26 AM
I now have a new about-box text on stackoverflow
 
about-box text mean?
for what use ?
 
for use by strangers
 
Xeo
@JohannesSchaublitb > "4rd" -> "4th"
 
ohh thanks!
 
Morning.
 
sbi
8:43 AM
An accidental discovery: With early hominids (Australopithecus, 2 million years ago), it seems the females left their clan in search for new clan, while the males stayed home. That's quite interesting, because we only know this from Chimpanzees, while with Bonobos and Gorillas it's the opposite. Scientists found out about this <http://www.google.com/search?q="Sandi Copeland"&tbm=nws> accidentally, while trying to figure out dietary parameters of them.
Mhmm. I seem to be unable to embed a link that contains spaces.
Nope, doesn't work.
 
Use a +
Or %20
 
sbi
@MartinhoFernandes Ah! Thanks.
I should have known this actually...
 
@StackedCrooked true, I've been to the Taj Mahal its a beautiful monument in a horrid place.
 
@sbi are you researching monkey behaviour or something?
 
Taj Mahal is also a blues musician that inspired the Aerosmith.
 
8:56 AM
true @reno..:)))
and Shahi Qila is too beautifull
 
sbi
@TonyTheTiger No, but I'm interested in these things.
 
@sbi oh I see :)
 
sbi
(And never call the Orang Utan a monkey. Hell screw off your head to decorate his book shelfs with.)
 
Neil seem to have changed his voting pattern
 
8:58 AM
how so?
 
back then, he had as many upvotes as downvotes. but now he has twice as many upvotes as downvotes.
 
sbi
@TonyTheTiger (You would have to read books other than CS to understand this.)
 
@sbi yes :) (this will haunt me forever I'm sure...)
 
So Australopithecus chicks cheated on the home boys ?
 
sbi
@Reno I will anyway.
 
9:00 AM
lol
 
the lol troll
 
sbi
@Reno Oh boy. When will you learn to read?
 
what's a home boy?
 
a boy that's home... :P
 
what does it mean to "cheat on a boy"?
 
sbi
9:00 AM
@JohannesSchaublitb For you I got a German link: tinyurl.com/5t3rrh2
 
sbi
@JohannesSchaublitb It's got nothing to do with programming, so you might not understand the concept. :)
 
I first thought it means something nasty xD
 
hahah
 
sbi
9:02 AM
@JohannesSchaublitb We knew.
 
ah soz, I did not read the whole article, just that snippet.
 
@sbi What does this mean? The females abandoned the males?
 
what are you people talking about ?
 
sbi
@MartinhoFernandes In clan-oriented societies, you don't want to mate only within the clan, there has to be some exchange of genes between clans. So some individuals needs to change clan as adults. In most animal clan societies (bovine, horses, most apes, monkey, chicken, whatnot) the males do this. In a very few the females do.
 
it means they sent out the chicks after they were too old. "now you aren't hot anymore. get away from here!"
 
sbi
9:07 AM
@JohannesSchaublitb Basically yes, although I doubt they had speech 2 million years ago. :)
 
Yeah the males probably just booted them.
 
sbi
I sense a deep understanding of animal sociology.
 
@sbi It's a mechanism to avoid too much inbreeding, then?
 
sbi
@MartinhoFernandes Yes, of course.
 
But what drives them to leave the clan? Isn't that like, a dangerous enterprise?
 
sbi
9:08 AM
@Miss Grown-up talk. Never you mind.
 
I mean, leaving the safety of the group.
 
sbi
@MartinhoFernandes Haha! have you ever asked yourself this about a bull that's leaving his herd when reaching maturity?
 
@sbi I didn't even knew bulls did that.
But I think that has something to do with males not wanting other males in their harems.
Like lions.
 
sbi
@MartinhoFernandes For most, if not all, ruminants a male has a harem. He has to fight for it. If he fought for the "family" he grew up in, he'd be screwing his own mother, aunts and sisters afterwards. Those who exhibited this behavior probably didn't have much chances to scatter their genes widely throughout the population.
 
i guess i should go out from here,
good bye c++ chat room..
 
9:13 AM
didn't girls have harems?
 
sbi
No comment.
 
:P shes leaving the clan
 
i would like to be in @sbi's harlem
 
sbi
@JohannesSchaublitb I don't know of a species where this is the case. Generally, females are at a disadvantage because they invest way more into breeding. So males have more energy left, to fight enemies or among themselves.
 
sbi
9:15 AM
@JohannesSchaublitb I prefer one female at a time. And I don't own a piece of New York.
 
i suspect the more probable reason is that male are more stonger than females tho
so any female wanting to build a harlem would get herself into a gangbang
 
Bad keyboard!
Oh, now this is derailing.
 
Xeo
Hm, anyone knows how to get gcc 4.6 on debian? :|
 
9:17 AM
They stopped meego development
 
sbi
@Reno "They"?
 
@Xeo I usually compile the latest versions myself.
 
@sbi That makes sense. Those without the desire to leave would fall victim to inbreeding, and weaken their genetic pool and die. It makes sense that only those with a drive to avoid it would survive.
 
Nokia, I think they've put all of resources into Windows 8
 
species with self awareness aren't under the law of natural evolution
because they can influence what happens consciously
 
9:19 AM
@sbi bees, ants
 
sbi
@MartinhoFernandes Yeah. Plus those genes who caused their carriers to cross into another clan then were present at two clans: in the old through the changeling's siblings, in the new through the changeling itself.
@AProgrammer Ah, forgot about those. Yeah, with them the fertile female moved the burden of raising the offspring to its sisters. :)
@JohannesSchaublitb I doubt Australopithecus individuals where all that much self-aware, though. Their tool use leaves much to want, and in general tool use is taken to correlate with intelligence.
 
WTF is wrong with me today? My fingers are way too fat!
 
sbi
@MartinhoFernandes Maybe your keyboard shrank overnight?
 
They can do that?
 
Xeo
@sbi Those damn calories! Now they not only shrink the t-shirts but also the keyboards.
3
 
9:25 AM
@JohannesSchaublitb Self-awareness does not preclude natural instincts.
 
@sbi do you know why humans have thinned their body hair with evolution?
 
IIRC some creationist in a video showed one tool created by one of those old human races and he shows that this tool is very cleverly made
forgot whether he talked about Australopithecus tho
 
Of course he didn't mention Australopithecus. He was a creationist. They don't believe in those things.
I think.
 
9:33 AM
@sbi I was wondering if you forgot about them or just weren't considering invertebrates.
 
the type of creationist he belongs too believe that Australopithecus is maximally around 10k years old. he does believe in their existence but he doesn't believe in their proven age
 
sbi
@Reno No. And I don't think anybody "knows" that. Basically, there's two possibilities. One is that at some point in our evolution it hindered us. (Google for the Aquatic Ape theory on that.) The other is that it disappeared because features not needed aren't preserved in evolution (e.g. missing camouflage colors in domestic animals).
 
nice, brb googling
 
@MartinhoFernandes he wanted to show that those races had comparable intelligence to todays humans, because he believes in genesis
 
9:35 AM
@sbi I believe the catchphrase is "use it or lose it"
 
sbi
@JohannesSchaublitb Given that fallacy any tool use would be impressive. Our subspecies is 50-100k years old. 10k years was just after the last ice age. The first humans developed agriculture 10k years ago.
 
sbi
@JohannesSchaublitb You wonder whether he's ever seen an Australopithecus skull placed beside a human and a chimp one.
 
I suspect he haven't. it's an unsolved problem in his hypothesis
 
sbi
@JohannesSchaublitb One of many problems in that "theory".
 
9:39 AM
indeed
 
sbi
Anyway, I got a cake to bake and a train to catch. (And I will be offline until Sunday, in case anyone wonders.)
See you!
 
that particular creationist doesn't deny those problems exist though. sadly the majority of creationists don't acknowledge the problems in their hypotheses.
have fun xD
 
 
1 hour later…
10:56 AM
Why is it that so many programmers who want to "validate" a string (like a password, or [worse], HTML) think that a regular expression is the only tool for the job?
 
Why do any programmers at all think you need to validate passwords?
 
@MartinhoFernandes That is a better question.
Encouraging strong passwords is no bad thing.
stackoverflow.com/q/6213513/78845 , however, is doing the opposite!
 
The only restriction on password that I can put up with is a minimum length.
Anything else is pure bollocks.
Especially maximum lengths.
Hashes are all the same length, bitches!
4
 
Well that's a red flag for passwords stored as cleartext, really
 
I recently refused to buy an eBook from a company (I forget which) because they refused my chosen password because it contained a non-alphanumeric character.
There are so many bogus password policies out there, it amazes me.
It shouldn't do. I know that.
 
Xeo
11:18 AM
@Johnsyweb Law of equivalent exchange: They won't accept your password, you don't accept their eBook. :)
 
the one that bugged me was lovefilm.com swore blind it was more secure for me to tell my flatmate the password to the entire account so he could add disks to than them adding a "delegate control of a list to another account" feature
 
@Xeo apress.com were the culprits. You'd think somebody in that "space" would have a bit of commonsense.
I emailed them, but got no response.
 
@Johnsyweb Hmm, never thought of that. But I'll make that my standard policy from now on.
You have a crappy password, I complain.
You don't listen, I don't care.
Isn't there a site somewhere with a list of "crappy password policy" sites?
 
@MartinhoFernandes If there isn't there damned well should be.
 
lightbluetouchpaper published a pretty big review IIRC
 
11:27 AM
@Johnsyweb Wait, what. Is that real.
I've seen some ridiculous password policies made by stupid people, but that goes to top 10.
 
@CatPlusPlus Uh-huh!
 
@MartinhoFernandes There are people who still use the old crypt.
 
There are people out there who store passwords in plaintext. Worse still, they send them out in plain text. By email and... get this... my ISP sent me my password IN THE POST!
 
If you want to encourage strong passwords, put up one of those "strength meters". Forcing everyone to use a weak password is not a way to encourage strong passwords.
 
11:30 AM
I know my passwords. I do not need people to send them to me. Ever. They should not even know my password.
 
@Johnsyweb Well, I think crypt is worse.
 
@Johnsyweb I don't know my passwords.
Why should anyone else?
 
@John what ISP is that?
 
on.net . They are fabulous in every other regard.
 
With plaintext passwords, at least you know you've screwed up. crypt makes you screw up silently and pretends everything is A-OK.
TBH, most password systems in the wild suck.
 
11:33 AM
hi
i want to del my account only from SO ..
not from other sites..
how can i do that ?
 
Because there is this established idea that you need a "password policy" to have a good password system.
 
And that SHA1 is good for passwords.
 
@CatPlusPlus Or "what's SHA1"?
 
@MartinhoFernandes Or "what's salt"?
 
And "if you do that, what happens when the user forgets the password? How can you send it to them?"
 
11:36 AM
@Miss is it something we said ?
 
19
A: Can I delete my account?

Jeff AtwoodHow to delete your account: Edit your profile to say "please delete me" so we can confirm your ownership of the account. Obtain your user page URL or numeric user ID. This is linked from the top of every page of the site, when you are logged in. Email the support address linked at the bottom of...

 
@CatPlusPlus TBH, SHA1+salt, while far from ideal, is way better than just plaintext, or only SHA1.
 
@MartinhoFernandes But it still sucks. :P
But yeah, if you don't know anything better, SHA1 (or SHA2) + salt is what you should be using.
 
@johnsyweb: is that your real name ?
 
@Miss "That"? No.
 
11:40 AM
hmm i see
I want to add you on facebook ... if you do't mind ..
ahh i found you on Facebook..
 
@Johnsyweb Since we're on topic of stupid practices, lack of self-service account removal sucks too.
 
@CatPlusPlus I'd be surprised if it's not on their to-do list.
@Miss Everyone I am connected to on Facebook is somebody I actually know.
I guess I am old-fashioned.
 
heheh @johnsyweb: no you are good .. i like that .. i jsut sent you request please accept that
actaully before leaving from here , i want to add some people on facebook ...
@luc: Can i add you on facebook.. if you do't mind ///
 
@Miss Why are you leaving?
 
@johnsyweb: I have no reply for that.. but i will use other sites...
 
11:48 AM
@Miss Like Facebook?
 
no ./. i ,meant .. other site related to Stackexchange.com
and i want to add some people on my Facebook account...
@nils : where are you on Facebook?
@johnsyweb: did you recieve my request ?
 
@Miss I did not.
Besides... Everyone I am connected to on Facebook is somebody I actually know.
 
hmm
ok thanks
 
Well... it has been fun, but even I need some time away from a computer screen.
 
hey
I ate to much now I feel to sleepy for coding
:(
 
Xeo
12:03 PM
 
@Xeo I have no words.
 
@Cat: Funny, you just said some
 
heheh @nisl bad
@nils i wana add you on facebook
 
hey
 
@DeadMG That's my emergency word reserve.
 
12:06 PM
huummm
 
@nils yuppi
 
Is there some "reference" link I can give someone that insists on typing all caps?
 
also haven't you deleted your account before as Tina ?
 
Xeo
@CatPlusPlus Then how about this one?
 
ok now i hope i will not come here from now ...
so Good Bye from Lounge<C++>
 
12:12 PM
that is not what I meant
 
Now that's hot! :D
 
thanks you SO for helping me alot ...
 
is creeped out
Well its nice knowing you Rabia :)
I should go back to using Chrome. The Canary build is crashing every 5 minutes
 
@reno how do you knwo about my name ?
 
12:31 PM
bye bye
 
12:51 PM
ugly!
lol
 
1:10 PM
does refactoring C++ code have to be soo painful?
 
rlc
@sbi blytkerchan - and I'm not sure Merkel is doing the right thing, unless there's a viable alternative that doesn't involve burning coal
@Nils yes, it does :-D
 
hmm
 
rlc
I'm pretty sure that in the back rooms of the standards committee, they're devising new ways of punishing C++ programmers
I showed a few lambda expressions to a colleague a while ago
auto f = []{[]{}()};
kinda proves the point
 
ugh what does this?
 
rlc
it's a lambda expression that executes another lambda expression, which does nothing - the outer lambda expression is assigned to a variable f of which the type is determined by the compiler (which is what auto is for)
[]{} is a minimalist lambda expression that doesn't do anything
the () after that calls the closure
and there's another []{ ... } surrounding it
 
1:32 PM
@rlc it would be more obvious what's going on if something was actually happening though
and you could format it nicer than just one line too which would help significantly
 
rlc
@awoodland more obvious, but less painful
 
(plus from a practical perspective it must be hard extending the grammar without introducing loads of new conflicts with older parts of it)
 
I don't know enough about parsing and compilers, but can't you use g++ parser for refactoring?
 
clang is meant to be pretty good for it
 
rlc
I don't know G++'s parser specifically, but most compiler parsers build an AST that would, if used to generate code, make the code less readable for a human being to understand - which is usually the opposite of what you want from refactoring
 
1:37 PM
well libclang, but I've not seen any actually useful tools using it yet.
 
guess it's just due to the fact that C++ is hard to parse
Can I use this on class members in the body of the constructor?
 
@Nils, yes with some caveats in more complicated cases
 
I get "expression must have class type" with this, but without this it works
 
(e.g if it's got virtual functions which are implemented by things that inherit from it)
 
and the member has been initialized in the initialization list before
 
1:49 PM
@Nils BLINDED 9001 damage dealt
 
MWE? This:
class A {
int foo;
public:
A() {
this->foo;
}
} bar;
is legal and works (although has no effect)
 
> Only 1 site of 150 successfully hashed passwords in the browser using JavaScript, giving us confidence that passwords aren’t stored in a recoverable format (two other sites tried but botched the details).
Why would anyone want to hash the passwords in the browser?
 
@MartinhoFernandes That sentence made no sense
 
@Martinho - it's the only way you can be sure the server never sees the cleartext
 
aah forget it, this is a pointer so I have to dereference
 
1:52 PM
i.e. if you're paranoid and external you know they never even saw the cleartext version let alone saved it or did something stupid with it
 
Only ... hashed ... in browser using JavaScript, giving ...
There's no complete phrase.
 
@awoodland thx for the example
 
@awoodland That's equivalent to making my password be the hash, and storing it in cleartext.
 
whereas you have no way to audit what they do once they've got it, even if they swear blind they are hashing it
 
Xeo
@Xaade There is
 
1:53 PM
for all you know it is being stored clear text
yes, but you can salt and hash the hash I thought too
 
@Xeo I see it..... I overlooked the word successfully
 
Xeo
@Xaade The "hashed" is a verb here, not an adjective, and belongs to the "site"
 
@awoodland And what does the browser hashing gain? My password becomes the hash I sent.
 
Especially since it hashes on the client side and the hashed version is used to login on the server???
One could just use the hashed version to login
 
If my password is now the hash, you just reduced the entire password space into the hash space.
EPIC FAIL.
 
1:57 PM
which means you reduce at least one variable in password protection..... length.
 
@Martinho it also means that provided you salt per-site the password can't be used against you on another site
i.e. stealing the hash on foo.com should limit your exposure only to services on foo.com instead of on bar.com where the user re-used the same actual password
 
@awoodland Tell me, do you see a problem with this password policy: only digits 0-9 and letters A-F, and exactly 40 characters?
 
Although the advantage is that the user could type one thing and you can hash against the target server so that the user remembers one password, but has many.
 
@awoodland That's server-side!
 
Xeo
Hm. Do you guys think it's strange to use the Windows Update reminder as an alarm clock? I need to do something in 4 hours, so I just set it to remind me again by then.
 
1:59 PM
@Martinho doesn't have to be serverside at all
 

« first day (229 days earlier)      last day (4718 days later) »