« first day (754 days earlier)      last day (4198 days later) » 

8:00 PM
VS doesn't maintain any ABI compatibility between versions
so who knows
 
You'll probably have to build the sources yourself.
 
reddit.com/r/pics/comments/12v2yt/… why did this make me laugh :(
 
decided to finally see if I can make it work with my rendering engine I have
 
This guy has good chances, I guess.
 
Remember that idiot I was talking before? He strikes again, with more idiotic comments (like "you don't need containers to fully know C++" - rofl, two stupidities in one sentence, I am truely amazed by his ignorance).
Or "containers are only useful in big projects", w/e big projects mean here or w/e is this wtf-ish opinion based on.
 
8:06 PM
Bring him here, we'll "educate" him.
 
@EtiennedeMartel, tried to invite him to ##C++ @ Freenode once, for him to face with people there - he said that "he has better things to do than arguing".
 
"big projects" obviously means "projects where you need containers"
 
I'm definitely going to slap him in the face for his stupidity one day.
@kbok, so small and medium project are also big...?
 
@Griwes Sounds like a standard issue Arrogant Idiot, with built-in "I'm right and everyone else is wrong" action.
 
I think that we have at least thrice as much words for that something that needs containers! (= anything non-trivial)
 
8:08 PM
Only entreprise-level software with 1000+ developers need std::vector and all its inefficiency and complexity
3
 
Well, s/needs/is much sanier with/
 
@Griwes Or Linus Torvalds.
 
But I think he is completely incapable of 4).
 
Why don't you use malloc() anyway, sheesh, some people
 
:D
@kbok, he says that newbies don't need ANY library - no malloc then, no?
 
8:10 PM
@EtiennedeMartel Dafuq is that on the right?
 
A tree ?
 
@EtiennedeMartel, I think that that was kinda redundant, as Torvalds is standard Arrogant Idiot case :D
 
@kbok It's got the UK flag splashed on it.
what does he want to do, reunite Canada with the UK/
 
Torvalds is an arrogant douche but he's a competent programmer
That's a great idea
I can't wait to taste those fish'n'chips with pancake syrup
 
Social conservatism Thatcherism Classical liberalism Green conservatism Neoconservatism | international = International Democrat Union | position = Centre-right | european = Alliance of European Conservatives and Reformists | europarl = European Conservatives and Reformists | colours = Blue | membership_year = 2012 | membership = 130,000 | website = | colorcode = | seats1_title = House of Commons | seats1 = | seats2_title = House of Lords | seats2 = | seats3_title = European Parliament | seats3 ...
 
8:12 PM
Ah, did I mention that he states that WinAPI is the most perfectly designed (sic!) and sane with all those LPCWSTRs API in the world and something similar to "why do I need standard library, when I have WinAPI?".
Oh, he writes "mixture of C and C++".
 
^ This guy has been ranting since 4pm
 
The worst thing is, he knows far more than most people at my year. (is that a correct way to say that?)
 
@kbok What kind of syrup?
 
And is probably going to influence some of them and produce more idiots.
 
@EtiennedeMartel marple syrup
 
8:13 PM
@kbok Hey, I had a break for EVE, don't talk like I didn't!
 
Here it's called "pancake syrup" for some reason. Like someone would eat that with pancakes... nonsense
 
@DeadMG the Liberal Party of Canada is currently leaderless. David Bertschi, an Ottawa lawyer, has officially launched his campaign for the Liberal leadership, and the thing on the left is his logo. Some people noted it's strangely similar to the logo of the UK conservatives.
 
^ How do you call that ? (No cheating !)
 
@kbok Pancakes?
 
But then how do you make the difference with good ol' pancakes
 
8:17 PM
Oh, right.
 
Why does blogger notify me when I post a comment on my blog
 
Still, maple syrup. Good choice.
Fun fact: here, most restaurants actually serve corn syrup (aka sirop de poteau), and you have to pay a premium to get maple syrup. This, despite the fact that Quebec accounts for 75% of the world's maple syrup production.
 
You live in Quebec? Oh Montreal.
 
That sucks.
Isn't Quebec like, horrible.
 
8:23 PM
Not as bad as the US, hehe.
 
I don't think America counts. This place just keeps fucking itself up
 
But Quebec is nice. Come to Quebec. We got jobs, and we need more taxpayers.
 
Even with the whole, we want independence from Canada thing?
 
I'm a separatist. I don't see that as a problem.
 
Why?
 
8:29 PM
Because I feel that we need to advertise to the whole world "This is not Canada. This is different."
It's a cultural thing.
 
Hm. Wouldn't know.
There are a lot of independence movements here too..
Like this thing..
Cascadia is the name of a bioregion and proposed country located within the western region of North America. Potential boundaries differ, with some drawn along existing political state and provincial lines, and others drawn along larger ecological, cultural and economic boundaries. The nation would consist of British Columbia, Canada, along with Oregon, Washington and portions of other states from the United States. At its maximum extent Cascadia would extend from coastal Southeast Alaska to the north, extending into Northern California in the south, and inland to include parts of...
 
Well, well.
 
Ahhh, scrolling wheel on the sound level icon, I missed you so much
This is the kind of details that makes everything
 
8:45 PM
Today is International Stout Day. So you all know what kind of beer to drink tonight.
 
@EtiennedeMartel None.
you know, I realized another deficiency in the Standard hash maps
you can't cache the hash value
 
Hm?
Can't you supply your own hash function that caches stuff?
 
no
 
How come?
 
what was the link to @StackedCrooked's code thingy?
 
8:55 PM
because it uses the same hash function for every value.
 
stacked-crooked.com ?
 
you can't just return cached_value; because that's gonna be wrong for every other value, ever.
 
@Rapptz thanks :p
 
@DeadMG Wait, what do you mean by caching, then?
 
@EtiennedeMartel I mean that if you know a specific value hasn't changed, then you can skip computing the hash.
 
8:57 PM
Hmm, aren't hash table keys suppose to be immutable?
 
I mean the lookup key, not the stored keys.
 
Oh, right, I see what your problem is.
And that sounds like weird design.
 
why?
 
You could embed the hash in the key type. And update it when you modify the value.
The hash function would simply return that embedded hash.
Or something.
 
9:03 PM
@Rapptz Holy hell.
 
didn't really want to see that :P
 
Oh, WTF. Angry Birds SW won't start, just because Windows 8 doesn't detect my sound card for some weird reason.
That's stupid.
 
That looked satisfying to me.
 
Well, there is a possibility that it's EVE working in background is guilty... :P
But anyway, why does it fail just because "DirectSoundCreate8" failed?
 
DirectSoundCreate8? holy shit, 1995 called
 
9:06 PM
:D
I'll try without running EVE client.
Still the same.
Pro tip: when creating a game, like Angry Birds, don't make lack of sound device present/detected by an OS trigger a critical failure.
Time to give Mono something to do, it seems.
 
@DeadMG Did you take a look at my proposed solution?
 
@EtiennedeMartel What proposed solution?
 
20 mins ago, by Etienne de Martel
You could embed the hash in the key type. And update it when you modify the value.
 
oh, that
but then the behaviour would be type-wide, and there's a good shot that I don't own that type.
 
9:23 PM
Oh well, operator...() overloading
 
if it was even desirable to have it type-wide
and secondly, that wouldn't address the first point, only the second.
 
But at least you got a workaround.
Although it's indeed far from ideal.
 
I am using the below code to get the path of current exe file...
TCHAR szEXEPath[MAX_PATH];
GetModuleFileName(NULL,szEXEPath,MAX_PATH);
// the path is c:\folder\file.exe
now I need to replace the file.exe with anotherfile.txt
how can I do that... please help...
 
naw
0
Q: Can we raise the reputation required to chat?

DeadMGAnother day in chat, another day of low rep people endlessly asking questions there, dumping their code, and generally behaving as if we're stackoverflow.com instead of chat.stackoverflow.com. Can we raise the barrier here a bit? It might stem the tides.

 
Whoa the new Chrome is so nice
You can click on the corner of the page and it'll allow you to set options for the page. Pretty neat.
 
9:36 PM
so basically a dupe of the corner options?
 
Are you getting the basic questions and the bikeshed questions? Because chat is where we send people to ask those questions. — Robert Harvey 24 secs ago
^ that's why we have so many noobs here
>_> @RobertHarvey
 
You've got pictures of pancakes and videos of people pulling boogers out of their nose in there. I have no sympathy for you. — Robert Harvey 1 min ago
What does he have against my pancakes.
2
 
Hi guys, my name's Andrea,sorry in advance for my english, I tried to find a "c" chat but I've failed, I'm trying to explain my problem, I'm looking for a C book title/e-book title/everything in which I can study C advanced data structures , list, trees, heap etc with a lot of solved exercises, reading the faqs I looked that this question can't be posted on stackoverflow, can you help me with some title? Thanks in advance.
 
11 mins ago, by DeadMG
0
Q: Can we raise the reputation required to chat?

DeadMGAnother day in chat, another day of low rep people endlessly asking questions there, dumping their code, and generally behaving as if we're stackoverflow.com instead of chat.stackoverflow.com. Can we raise the barrier here a bit? It might stem the tides.

 
@DeadMG He's polite so I don't see any problem with that
@newbie Would this C book question help ?
4
 
9:44 PM
@newbie C sucks. next question please
 
@Abyx it's been my choice to study C, at college we haven't a choice :)
 
@DeadMG Actually he said hi, asked his question properly and read the FAQ before. You're being rude gratuitously.
 
I'm just wondering, Andrea - is it a female name?
 
really, you're calling THAT as being gratuitously rude?
 
@kbok yeah I've already read that discussion, but thank you for helping me, what I am looking but I can't find is an exercise book, I'm studyng on Algorithms in c of Robert Sedgewick but is poor of examples
 
9:48 PM
you must have never, ever, ever seen me actually be rude to someone
 
@Abyx in Italy is a male name
 
@DeadMG Don't worry, I notice everytime
 
@DeadMG Damn, then it must be really bad when you're really rude to someone.
 
quit learning C, anyway.
 
Unfortunately if I want to graduate I can't
 
9:51 PM
quit that college then
 
@newbie Well unfortunately if it's not on the list it probably doesn't exist. Good C books are very rare
I suggest that you get a good general-purpose book and a set of language-agnostic exercises and start from there. Project Euler and Rosalind are great for that.
 
sick, I've noticed, I'm trying to found something since a lot of time, but i find only beginner books or theorical
 
I prefer Rosalind personally since PE is really math oriented
 
thank you very much, they seem really useful
 
np :) and good luck
 
9:55 PM
thanks :)
 
And excuse @DeadMG, he's grumpy because he has issues keeping his prisoners inside their cells
3
 
:) it's not a problem, you have to excuse me to enter here and start asking
 
I do?
 
not sorry my english is bad
 
@DeadMG no, you don't (IMO)
 
9:58 PM
Acid Puppy.
 
i mean, you have to forgive me to enter here and start asking
 
Don't worry about that
 
@newbie That's what I thought you meant.
 
Hum, what's the difference between excuse and forgive ?
 
excuse implies that some circumstance means that your normally wrong action was, in fact, not
forgive implies that you know you were wrong but wish for it not to be counted against you
 
10:01 PM
I see. Well, in this case, he's excused
 
I thought that excuse means that you have to ask excuse to me, and it's not what I tried to say
what is certain is that I need to improve my English :), thank you for helping me, you've been very kind, bye guys and sorry for disorder.
 
Wow, looks like it's my starboard day. Or is it because I'm the only one talking ?
 
10:20 PM
That stuff is supposed to be there. — DeadMG 39 mins ago
^^ nice
 
Is this not irrelevant? As far as I understood him, the question was why the specialization has the encoding of its associated template incorporated, not why the encoding of the associated template has the decltype incorporated (which your reply would be an answer to). I.e even if you make the return type of the template be non-dependent, say template<typename T, typename U> auto Min(T&&, U&&) -> int { }, the specialization still has the signature of its associated template incorporated. — Johannes Schaub - litb 4 mins ago
please consider
 
@DeadMG Don't forget that we can always pull the gallery trigger as well.
 
@JohannesSchaub-litb I knew someone would care about this question :)
 
I've got some old code at work that looks like this, anyone know enough about scanf to help me figure out why it's failing?
 
@MooingDuck It might be choking on the line breaks.
 
10:27 PM
@Mysticial no linebreaks in that sample are there?
 
hmm...
dunno
 
I thought Justin Bieber had cancer
or was that just wishful thinking and Internet rumours
 
@MooingDuck Isn't that string then format ?
 
@kbok sonofa.
 
What
 
10:31 PM
@kbok thanks
 
np :) would be a shame were you to lose time on this
 
if someone answers a question with a valid answer and i accept it, what should i do if a later answer offers a more elegant solution?
 
why do my MSVC programs run so much slower when executing code near a breakpoint? I've noticed that putting a breakpoint a few lines after a tight loop causes the tight loop to execute dramatically slower.
@Tony change the "accepted" answer.
 
You need to know how breakpoints are implemented for that
 
@mooing duck, is that in poor taste though? the other answer is just as valid.
 
10:36 PM
@MooingDuck Because you might break and try to look at it?
 
@DeadMG that doesn't make any sense
 
you don't make any sense
give me a sec
 
@Tony na, it's fine. You want the best answer at the top for people who have the same question
 
Apparently the debugger hooks the little chunk of memory where your breakpoint resides
 
thanks
 
What about it ?
 
well it's lunacy of a high order
 
Is it the void that makes you internet-angry
 
found it
steeling that for fb :)
 
hey guys whats the average reply time to SO questions ?
 
@Cheersandhth.-Alf I don't get the point of the angry article
 
surely the % of degree is not accurate some of the better universities are in other states so people travel
 
@Dave People who travel end up living not too far from the University, though.
And maybe even staying in the area.
 
11:20 PM
intellectuals will probably be travelling far to get to best universities though
 
And even then, the percentage is how many people living there are over 25 and have a college degree.
Not where they got their degree.
 
so if u move to uni in usa you still technically are a citizen of your home state not the state you moved to ?
 
Where you got your degree has nothing to do with this.
 
kinda does lol
 
It's where you're living and what's your education level.
 
11:21 PM
yeh but if you highly educated they will be living around the top universities
 
user1804599
Good morning.
 
@Dave So? What's your point?
 
its like saying people from oxford or cambridge in uk are smarter because of university.. but the people are infact from far and wide
so theres no way to link the two
 
They're not smarter.
Nobody's saying that.
We're talking about education.
 
why are they pinning % with degree verses living location then
its irrelevant at degree level
 
11:23 PM
They're more educated for sure
 
The stat is how many people with college education are living in state X.
 
i know that but lets argue scientists are guna be in the top science universities .. not study there then go back to their home state where there are no oppotunities
 
They're going to go where there is work for them.
 
well kinda yeh - but the way i see it .... alot of people with degrees in computers will want to be near silicon valley for jobs or which ever state is known for its computer technology industry. (is that california?) if we say it was for example, alot more will be living there thus upping the % with degrees
 
11:28 PM
the image is clearly made only to make it look like states with lower education vote for romney to suggest dumb people do.
 
No shit.
Honestly, I think it's the other way around.
Conservative people are less likely to seek higher education.
Maybe because they lack the encouragement.
 
@EtiennedeMartel Because they believe that god will give them knowledge if they need it. :)
That's a joke I hear a lot at home.
Although I'd argue that there is some truth to it though... even if it's just a tiny bit.
 
any one got time to look at my SO question i posted yesterday but had no replies so far. starting to wonder if no one knows the issue
 
@Dave shoot
 
11:33 PM
@Mysticial But honestly, I remember seeing a study that said that people with lower education were more likely to be conservatives, because conservative ideas are simpler and easier to grasp.
The world is an incredibly complex place, after all.
 
A big part is fear of the unknown.
 
how come in usa there is only 2 parties ?
 
So people have a tendency to cling to something - no matter how misguided it is.
 
in uk any one can form a party and rally for votes
 
11:35 PM
There's a lot of psychology involved when it comes to human behavior. I find myself fighting my own subconscious tendencies quite often in order to stay rational.
 
user1804599
This is a list of political parties in the United States, both past and present. Parties with federal representation Current United States Congressional seats {| class="wikitable sortable" cellpadding="3" |- " ! Political Party ! House of Representatives ! Senate |- | Democratic Party | style="text-align:right;"| 192 | style="text-align:right;"| 51 |- | Republican Party | style="text-align:right;"| 240 | style="text-align:right;"| 47 |- | Independent | style="text-align:right;"| 0 | style="text-align:right;"| 2 |- | Vacant | style="text-align:right;"| 3 | style="text-align:right;"| 0 |}...
 
@EtiennedeMartel No surprise there; the educated eggheads have always tended to more liberal viewpoints. :)
 
so if republicans & democrats don't have the right answer theres a big problem
 
@Aardvark Amazing how many political parties use CSS.
 
@Mysticial And it's a losing battle.
 
11:37 PM
@EtiennedeMartel yep
 
@EtiennedeMartel I dunno, a lot of the time I find myself winning.
 
user1804599
@RobertHarvey yet politicians are generally terrible at IT.
 
... a series of tubes.
 
@ThePhD It's an illusion. If it was so easy to become rational, advertising wouldn't be so effective.
 
user1804599
Today 4chan was in the news.
 
11:38 PM
how come
:O who put dogs > cats !!!
 
@Dave A wise man.
 
clearly they not owned a serval cat
 
@Dave A dog.
 
servals are like dogs in that they play fetch etc but they are less demanding
 
@Dave (Protip: his name is right next to the message)
 
11:40 PM
This serval nonsense reeks of witchcraft.
 
i know but i don't know who star'd it
 
Hm.
There's no 'is' or 'as' operator in C++, so I wonder what I can do to replace it...
Hm.
 
@Dave Probably @R.MartinhoFernandes, since he said I sucked when I said that cats were superior to dogs. Then it kinda escalated.
 
If I need a pointer-type cast that fails and returns null if the thing it's trying to cast to fails....
There's gotta be something.
 
i want a 99% serval if they exist
 
11:44 PM
dynamic_cast ?
Sounds like it'd do the trick.
 
user1357851
If you provide dogs with food and water and shelter and affection, they will think you are god. If you provide cats with food and water and shelter and affection, they draw the conclusion that they are gods
 
@ThePhD dynamic_cast.
 
servals don't but they aren't cats like we know them as
they are cousins to cheetahs and are about as big as dogs :P
 
user1357851
@ThePhD inheritance vs composition
 
user1357851
is vs has
 
11:47 PM
@Telkitty Cats are incredibly stupid though.
2
 
i disagree - cats are sneaky ninjas
 
user1357851
@EtiennedeMartel smart enough to scam food off us
 
user1357851
lazing off
 
user1357851
do nothing all day
 
@ThePhD "Anytime you find yourself writing code of the form "if the object is of type T1, then do something, but if it's of type T2, then do something else," slap yourself.", said Scott Meyers.
 
11:48 PM
saying that my fav dog is a king charles
 
Erm.
 
so damn friendly
 
I dunno about that...
 
user1357851
read above is vs has
 
user1357851
I need my coffee
 
11:49 PM
My usage is something like this, @EtiennedeMartel
FileStream* fstream = null;
if ( ( fstream = dynamic_cast<FileStream*>( &BaseStream ) ) != null ) {
		filename = fstream->Name();
		directory = Path::GetDirectoryName( filename );
}
Goddamnit, tabbing.
 
@ThePhD This looks like a weird design.
 
Readers take any number of stream types, and so this quick cast just checks if it's actually a File Stream.
If it is, it saves the file name and the directory for you on the reader.
 
Then later when using the reader it's just a quick check of filename.IsEmpty() ? NotReadingFromFile : ReadingFromFile
 
If a reader take any kind of streams, then why are there filename and directory fields on the reader?
Why not just make it so a reader reads from a file if and only if it's wrapping a file stream?
 
11:53 PM
Sort of for debug purposes, and also to do the check once instead fo having to re-cast the type of stream everywhere outside of the Readers just to check if it has a file.
Well, the idea is a Reader needs to be agnostic to the backing store it's given.
 
Sure.
But your code doesn't say that.
 
I... really don't want to have to write FileBinaryDataReader, FileBitDataReader, etc. and then write a MemoryDataReader, etc.
 
so... who has the new stone sour album ?
 
user1357851
can only work if basestream is inherited from filestream
 
user1357851
if not you will get null
 
11:54 PM
Well, the reader will work with any stream regardless, it's really just a shortcut of convenience.
 
Your code says that "if my reader is wrapping a file stream, then do special treatment".
It's not agnostic at all.
Look, .NET has a StreamReader. That thing simply wraps a Stream, and it doesn't give a shit about the actual type of stream used.
It just needs something that reads bytes. It doesn't care where those bytes come from.
 
user1357851
@ThePhD sry but this will probably hardly ever work
 
It's compliant with the SRP, or single responsibility principle, that says that any component should do one thing, and one thing only.
 
user1357851
you need to test for something that is basic ...
 
user1357851
not as specific as filestream
 
user1357851
11:57 PM
meaning up the inheritance
 
.... It's just a shortcut pair of Strings. That's... all it is. If you don't pass in a filestream, filename and directory remain empty. There's no harm done.
 
But it doesn't make any sense.
Let's start from the beginning.
What's the purpose of your Reader class?
 

« first day (754 days earlier)      last day (4198 days later) »