« first day (843 days earlier)      last day (4100 days later) » 

3:00 PM
So my beef is not with Git's configuration/policy but with the sloppy and flawed implementation of tools which compare working-tree and committed files
 
notepad is just a window with a multiline Edit control. of course it didn't changed.
 
@jalf I have experienced that too before. (That's why I have just disabled autocrlf ever since)
 
@jalf However, otherwise there is git diff --ignore-space-at-eol (alias it for convenience) and proper diff/merge tools (e.g. in TortoiseGit). Use them and profit!
 
@sehe yeah, but getting a useful diff is the least of the problems. The real issue is that git says the file is changed, but you can't revert the change, and you can't stage it either
 
you lot are boring today
 
3:01 PM
if you try to add the changed file, Git tells you that there are no changes
 
@jalf The point is that line-end conversion is a modification, no two ways about it. If you don't want to see it, rewrite your files with the intended LE style in one commit and be done with it forever.
 
If you try to reset it or run git checkout, Git leaves you with a file which it says is modified
 
-1
Q: CString Format and CString Array

BartmanDilawI'd like to use Format String function with CString Array values as : CString x[4]; CString s = "" ; x[0] = "This"; x[1] = "is"; x[2] = "a"; x[3] = "test"; s.Format("%s %s %s %s.", x[0], x[1], x[2], x[3]); to get "This is a test." in s CString. Thank's in advance.

 
that's about the point where I feel like slamming my head against the desk. ;)
 
@sehe absolutely correct
and I loved your ironic use of "no two ways about it"
though strictly speaking there are three
 
3:02 PM
@jalf Ok, I see how that is annoying. Now I'm feeling your point. I still think the best way to handle it is:
1. convert all files to desired LE style
2. commit
3. **disable any LE conversion**
4. ??
5. PROFIT
 
Scumbag git: This file changed.
User: Stage it.
Scumbag git: It's not changed.
User: Tell me what changed.
Scumbag git: This file changed.
User: Revert it.
Scumbag git: It's not changed.
User: Show me the difference.
Scumbag git: There are no differences.
User: Tell me what changed.
Scumbag git: This file changed.
User: Fuck off.
10
 
@R.MartinhoFernandes that, exactly :D
 
@R.MartinhoFernandes Nice summary.
 
I think I just annihilated my astyle commit
 
@sehe The ideal way would be to have all editors not fucking mix line-endings.
 
3:05 PM
In fact the complaint is not about git. It's not about broken tools. It is about leaky abstraction in the one feature that I have been claiming should not be used (exist?): automatic LE conversions
 
And even without core.autocrlf the files that were affected by this weird thing before are still showing up as modified :v
 
@CatPlusPlus Just git clone it anew .P
 
Leaky abstraction is that different line endings exist
 
Or, again, git reset --hard (afte rmodification of the config)
 
@sehe I just did that
One commit too far :v
 
3:06 PM
@sehe no, it is also about Git. Git should never fucking ever tell you that you have uncommited changes if you make a clean clone of a repo. :)
 
@CatPlusPlus lol git reset --hard HEAD^
 
git sucks. hg ftw.
 
No matter how you configure it, that should not be possible
 
@jalf Post-conditions and shit.
 
3:06 PM
git's commit designators are shit
 
And if Git tells me that I have uncommitted changes, then it should never fucking ever refuse to let me stage the changes and commit them
 
@jalf It's telling you the truth. And you asked for it. It is the leaky abstraction I'm talking about. The line-end-conversion feature is evil and must die.
 
I think those are pretty reasonable requirements to place on a SCM
 
It promises it will be transparent and painless, but it isn't. End of story.
@jalf I agree. It all comes down to: LE conversion is evil.
 
And I just discarded changes in the scene I was working on
GOOD JOB
 
3:08 PM
oh another discussion about versioning tools
 
@sehe I'm sure it can be transparent. The penguin's complaint is that it isn't.
 
the nth millionth one?
 
Fucking git's fault, everything
 
@CatPlusPlus git reflog, git checkout HEAD@{2} -- path/to/scene-modified
 
@sehe It doesn't have to be leaky. About half of Git handles it correctly. If a filter or conversion is applied at commit-time, run it on the source-tree version of a file before comparing it to the repo version. If Git did that consistently, there would be no problem. But about half the Git commands do not do so
 
3:08 PM
@sehe They weren't saved
I closed Unity
 
So you get into situations where Git tells you that a file is modified, right up until the point where you try to commit the modifications, at which point it tells you that it is unmodified
 
@CatPlusPlus Wokay.
 
Well, I guess it's time for my "whine of the day":
4
A: method definition outside the class declaration. C++

Marius BancilaYou're mixing declaration with implementation. It should be: class B : public A { public: B(int x); ~B(); } B::B(int x):A(x){ /*this works */ }; B::~B();

 
Dafuq, why did the build fail.
 
@jalf Well, if it comforts you, I once screwed up with Git on windows, commit files in a directory in different casings. That took a lot of poking and pulling to fix
 
3:10 PM
@sehe hah, I can imagine
 
I'm doing fresh clone fuck git
 
Four upvotes for (at least) three obvious errors?
 
that one is harder to handle well by the SCM though
 
@sehe Oh gosh, I remember when a friend of mine messed up our Hg repo because of casing of directories in Windows. That was annoying to fix. All three times.
 
move project project_BROKEN
My favourite method of solving problems :v
 
3:11 PM
fuck I am getting unresolved external at basic_string -.-
 
@JerryCoffin Which errors? I only see pointless dtor. Oh wait, the pointless dtor doesn't even compile.
 
Why is adb of all things keeping a handle to my directory
 
@JerryCoffin Can't help noticing that you didn't downvote it.
 
@R.MartinhoFernandes "Microsoft MVP VC++"
 
@BartekBanachewicz What are you talking about?
 
3:13 PM
@R.MartinhoFernandes Class definition needs a semicolon. Can't declare dtor outside class definition. Semicolon following ctor definition.
 
@R.MartinhoFernandes I like to think I know what to do now. I think it is as simple as: 1. edit config to ignorecase=true 2. rewrite all of (relevant) history
 
@R.MartinhoFernandes the guy that answered
 
@CatPlusPlus working directory?
 
@LightnessRacesinOrbit Not yet -- wanted a little assurance that I wasn't overreacting to trivia first.
 
@JerryCoffin Okay - nah, downvote away!
 
3:14 PM
@sehe No, it's broken
 
@CatPlusPlus process explorer, kill adb
 
I have Unlocker :v
 
@CatPlusPlus That's a handy tool
 
I'm vengeful, so I prefer to nuke the process instead of stealing its handles.
 
I like stealing handles from unsuspecting programs
 
3:15 PM
killall ()
{
    local im;
    ( for im in "$@";
    do
        TASKKILL /F /IM "$im" &
    done;
    wait )
}
@CatPlusPlus ^ I have that as a bash function on windows. Really powerful :)
 
If you hoard handles, you die motherfucker.
 
@R.MartinhoFernandes Me too.
 
It's usually TortoiseGit or something that keeps handles
 
Xeo
Aye, TortoiseANYTHING is prone to do that.
 
Killing it won't help because the extension will just restart it
 
3:17 PM
@sehe taskkill should have a /EP flag for extreme prejudice, so that the process suffers.
 
ok, p type semiconductor working now
no idea why
but this is good.
 
@CatPlusPlus You only need to run that for the overlays, no?
 
Well, this is fun.
 
Only spent like a friggin 2,5 hours measuring everything silly
 
I thought my elearning course was going to be Java.
 
3:17 PM
@R.MartinhoFernandes Lol
 
Instead, it's Actionscript.
 
@R.MartinhoFernandes I use Total Commander, overlays are on all the time
 
@CatPlusPlus oh god don't use tortoise git ever
 
Then why do you need the TortoiseGit thingy in the background?
 
@Collin Huh?! Why not. It rocks.
 
Xeo
3:18 PM
@chris No sympathy from me.
 
@R.MartinhoFernandes I disable that though. Performance/lock concerns
 
admittedly, I haven't used it in a while
 
@R.MartinhoFernandes It's cache server
 
@CatPlusPlus Disable that via 'Settings/Overlays'
 
but last I had it they had their reset/revert terminology all wrong and it just didn't seem to work all that well
 
3:19 PM
I don't see how AS is a good language to do after C++ in the same curriculum.
 
@sehe I don't even install it.
 
@sehe I want it
 
And I think they used to do AS the year before C++ anyway.
 
I've had much better luck with GitExtensions
 
@Collin That's not a problem with Tortoise. It is a problem with your expectation of git. Reset and revert mean exactly what git means for them in TortoiseGit
 
3:20 PM
Though I'll probably start getting rid of those extensions because I don't really pay attention to them
 
@CatPlusPlus Woaky
 
TortoiseHg still owns
 
@CatPlusPlus I use the workbench, but no background crap.
 
@sehe maybe I'm remembering wrong, but I thought (in the first one or two versions of tortoisegit) they were trying to make revert sort of match SVN, and it ended up being terrible
 
@Collin Completely vice versa here. I think the only thing that can be said 'pro' GitExtensions is that it models the index/staging area more explicitely. But frankly, on windows, and with shell integration, I don't think staging area matters - I'm happy to relegate it to the back as "implementation detail".
Considerable raises colleague acceptance factor too
@Collin It is entirely possible that they got it wrong in the past. But it has to be >~2 years ago
 
3:22 PM
@sehe They did.
 
Maybe I should give it another shot, but I actually do most of it from the command line + use git extensions as a history viewer/interactive add frontend
 
@R.MartinhoFernandes Ooh. Understandable. But stupid. There is only 1 chance for a first impression.
 
@sehe It was, it's been a while
 
@Collin Me too. Do give it a shot though. It even has merge for MS Word documents. It can diff Office documents using either Microsoft Office or OpenOffice applications. It comes with a really nice conflict editor (3way merge)
 
@sehe that's not bad.. I do most of my stuff from a linux VM anymore, but there are a couple things I work on exclusively from windows
 
3:24 PM
fuck my life. Can anyone take a look at this linker error?
 
@BartekBanachewicz You are trying to copy a istream. (FWIW, the new = delete; feature turns this into a very well pin-pointed compile-time error, not link-time)
 
@Collin I do find myself using TortoiseGit for more operations though. Rebase/merge is now an operation that I do using the Tortoise GUI. I started doing that in order to be able to teach my colleagues how to do it. But it grew on me, because of the immediate integration with TortoiseMerge
 
@R.MartinhoFernandes I was trying to std::move it, actually -.-
 
@BartekBanachewicz You can't move a istream, IIRC. You can move one of its subclasses, though.
 
3:26 PM
@R.MartinhoFernandes the what feature does what
 
And I pushed commits with wrong author GREAT
 
@LightnessRacesinOrbit what is the matter with that?
 
Removing the wxpython tag?
 
@CatPlusPlus ... you can just rewrite it, but I have a bit of a deja vu here: you already know
 
@sehe Why would anyone change doesn't to doesn`t?
 
3:27 PM
@BartekBanachewicz I like to std::move it std::move it
4
 
@sehe I'd have to recreate the remote project
 
:effort:
 
@LightnessRacesinOrbit different keyboard layous?
 
@LightnessRacesinOrbit Because someone doens't notice and spends `way` to much time on SO leading to improper `use` of backticks
 
3:28 PM
@nightcracker Nobody forced them to even touch the title. That would not be an excuse even if that were the case.
 
0
Q: Move semantics between base classes

ChameleonWe have these classes: struct Intermediate : public std::array<double,3> {}; struct Vector3 : public Intermediate { // ........more ctors......... // Modified move constructor (base class) Vector3(std::array<double,3> &&v) { ??????? } // ........more functional...

 
@BartekBanachewicz = delete; from C++11. VS doesn't have it yet. If VS had it, that wouldn't be a linker error. It would be regular compiler error that would point to the relevant location.
 
Anyone of you clever bastards know what this guy's rambling about?
 
I asked this question in here yesterday I think:
0
Q: Can Boost be used as a full replacement of the C++ Standard library?

rubenvbSay I have minimal headers like , , and maybe some other stuff, is it possible to use Boost to function as a std C++ library, or is there a lot of code missing? I'm assuming a C standard library, which might have sucky versions of things like printf (think Windows), will Boost provide better imp...

 
@EtiennedeMartel I'm too clever to know what that guy's rambling about
 
3:29 PM
I didn't get a real answer.
 
@R.MartinhoFernandes I have ICC right now, which I believe has it
 
@LightnessRacesinOrbit Cleverness overflow.
 
@rubenvb Possibly because you forgot to perform basic formatting on it.
@EtiennedeMartel Yep
 
@BartekBanachewicz Does that come with its own standard library?
 
@LightnessRacesinOrbit I just wrote the SO question, and thanks :)
 
3:30 PM
It seems it doesn't make use of it.
 
@R.MartinhoFernandes nope. Ah, fuck.
 
@R.MartinhoFernandes no, it uses VS's AFAIK.
 
I know it's not what you asked, but do not inherit from std::array. Try sub-classing instead. As a bonus, if you subclass std::array, your (move) constructor becomes trivial. — utnapistim 1 min ago
 
@BartekBanachewicz Ah, there you go.
 
^ that's brillant
 
3:30 PM
Oh lol
I didn't know cppreference now also has a C reference
great
 
Had for a while
 
Xeo
@sehe Ahm.... WTF
 
@R.MartinhoFernandes so how am I supposed to return optional istream? optional<unique_ptr<istream>> ?
 
@Xeo did he mean composition?
 
@DeadMG Sorry, I meant make_unique.
 
3:31 PM
@Collin Aggregation or composition, likely
 
@StackedCrooked Already in C++14, AFAIK.
but
 
@BartekBanachewicz Maybe just unique_ptr, then?
 
there is the problem that forwarding functions are horrifically broken now
 
"C++: it only takes us 3 years to add a one-line library function"
 
@StackedCrooked See my explanation.
 
Xeo
3:33 PM
@DeadMG How so?
 
I like how DeadMG never sees anything as just broken. It's always horrifically broken.
:P
 
and for Cat it's terrible by default
 
@Xeo list-init and shit.
 
@CatPlusPlus and another five to implement it in all major compilers.
 
@R.MartinhoFernandes or utterly
 
3:33 PM
@utnapistim Guess what subclassing and inheritance have in common — Cat Plus Plus 2 mins ago
My favorite cat <3
 
have a read here
 
Xeo
@R.MartinhoFernandes Ah, yeah.
 
Compiler vendors (or std vendors?) should just provide make_unique.
 
a good hundred posts about how incredibly broken it is.
(hint: very)
 
3:35 PM
@R.MartinhoFernandes Seems like it's now "incredibly".
DeadMG the Exaggerating Puppy.
 
@EtiennedeMartel <3
 
@DeadMG hats! we need hats!
 
@TonyTheLion Nah
 
T{^_o};
 
Crypto++ is quite a nifty library.
 
3:38 PM
777
Q: Blank screen if kids yell too much

Leonid VolnitskyMy kids (4 and 5) yell a lot when playing games on computer. I found an effective cure for this. I ssh into game computer and do: chvt 3; sleep 15; chvt 7 when I hear loud noises. This will turn off screen for 15 seconds on linux. I've told them that computer doesn't like loud noises. They ...

kids
 
Woah, +777? Wow.
 
@CatPlusPlus :)
 
People really vote like silly.
 
hello world
nice to see the stackoverflow chat
 
Kids have to learn to be seen and not heard. I'd dial it down so if the cat meowed or a chair creaked, the screen would go off. — BryanH Feb 1 at 22:16
 
3:40 PM
@norca This is not "the" stack overflow chat. It's only it's most active chat room.
With that said, hello.
 
@Borgleader have you made any progress? No pressure, just checking if I should tackle something else next, or if you have given up. That's fine too, I just want to know so I can organize my time better. There is no need to rush anything either.
 
0
Q: C++11 std::mutex in Visual Studio 2012 deadlock when locked from DllMain()

wilxI am seeing a deadlock with std::mutex when the mutex is locked from DllMain() Below is a minimal DLL test case that exhibits the problem for me. My actual code does the mutex locking because it uses member functions that are also usable outside initialization during normal function. I think tha...

 
@norca Hi, welcome. Make sure you check the Boost 1_53_0 on the right.
 
@wilx don't call stuff from DllMain if you don't know what will happen.
 
Wait, was I supposed to recommend reading boost or the rules?
 
3:45 PM
@R.MartinhoFernandes Right.
 
@R.MartinhoFernandes lol, I thought you did it on purpose
 
Hint: I did.
 
Yeah, it's not the kind of thing you can mess up.
 
I actually can't find decent / questions to answer to get my gold badges in those tags. The tags suck.
 
@LightnessRacesinOrbit Erm.
 
3:47 PM
@LightnessRacesinOrbit Took you that long?
 
@R.MartinhoFernandes Just re-iterating. :)
 
Gold badges on JS or PHP?
 
Wouldn't that be like a blight on your reputation?
 
I mean, there is not a single question I wish to answer! I need 50 more rep in both and I can't get there!
 
3:48 PM
Hahhaha, PHP.
 
@EtiennedeMartel Good point
 
Ugh, arrays.
Where the fuck did that come from?
 
Hahaha, .net
@R.MartinhoFernandes low-hanging fruit
 
Xeo
Xeo, In your code
50k 9 86 171
Hmm
 
hahaha, C.
 
Xeo
3:49 PM
C and pointers. :(
 
@EtiennedeMartel It's the best room
 
Wow Xeo is an expert on an obsolete library!
 
pointers?
 
Xeo
Atleast I got my shiny C++11 badge.
 
3:49 PM
Oh, at least no badges there.
 
@EtiennedeMartel Java!
 
Arrays and pointers
 
Xeo
@LightnessRacesinOrbit That's from the std::string history question, I believe.
 
@R.MartinhoFernandes All the questions tagged "arrays" where you said "use std::vector".
 
3:50 PM
@R.MartinhoFernandes Yeah, you can pretty much see traces of my dark past in there.
 
@Xeo You just spammed until you got it.
 
Xeo
@R.MartinhoFernandes I didn't spam! I provided useful answers!
 
What is the SO resume day?
 
Cat Plus Plus, are you really a cat?
 
3:50 PM
Yes
 
@Xeo how the fuck did you get a gold in c++11!?!?!
 
@Crowz No.
 
@Xeo You can't get a tag badge for one question.
 
Early retagging
 
@Crowz He'd write Perl if he were.
 
Xeo
3:51 PM
Nope nvm, there are also a bunch of questions tagged where I answered.
 
He's a dirty cheater
 
@EtiennedeMartel hah
 
@EtiennedeMartel You remember <3
 
purl
 
@LightnessRacesinOrbit It's not that hard.
 
3:51 PM
@CatPlusPlus Of course I do.
 
I have had enough points for a while, but I don't have enough answers yet.
That's the disadvantage of quality over quantity.
 
Xeo
@LightnessRacesinOrbit Monitoring questions 24/7 when I was rushing to get it. :)
 
The quantity over quality suckers get the badges first :P
 
Xeo
Pff
You're just jelly.
 
@LightnessRacesinOrbit I copy pasted the Pepík Samků code and changed only the part concerning his questions... Are you going to downvote me because I did not fix the missing ';'? — André Puel 2 mins ago
 
@R.MartinhoFernandes twats
yeah I have to admit I'm very jealous of those with lots of gold badges :(
 
@LightnessRacesinOrbit To be fair, maybe the semicolon is on an imaginary next line.
 
I only have 17.
 
@EtiennedeMartel not fair
@R.MartinhoFernandes I'd be content with 15 ish
but... 7?! lame.
 
Oh wait, you guys all have a single-digit number of gold badges? Muahahahaha.
 
Xeo
3:54 PM
9 :|
 
why's it so damn hard to find internships?
 
I've written tons of gold-worthy answers! But they're not on popular questions.
 
Because you're so bad
 
@CatPlusPlus How good should someone 2 years into college be? Sample?
 
@R.MartinhoFernandes We all have better things to do.
 
3:55 PM
oh f yea it works. I've returned unique_ptr after all /cc @R.Martinho
 
Martinho the wank-o-tron.
 
@Crowz Not very. Which is why there are not many internships available...
 
Good enough to not rely on college in any way
 
@EtiennedeMartel Better than helping people with awesome answers once in a while? :P
 
3:56 PM
@CatPlusPlus Every program I have I have written independently and learned on my own...
Uni is pretty terrible
 
Oh, you play that sport too?
 
heh
the kids know best, dear!
when will you learn?
 
@R.MartinhoFernandes Yes
 
when I grow up I'm gonna be a kid
 
@LightnessRacesinOrbit when T'Pol teaches math classes :p
 
3:59 PM
0
Q: Assignment to a constructor? (like a tuple-tier)

David HWhy can't I assign to a constructor, when I can assign to a function that "looks" like a constructor? Example: struct Bar { Bar() : b_(false) {} Bar(bool b) : b_(b) {} }; struct Foo { Foo(Bar const & bar) : bar_(bar) {} Foo operator=(Foo const & f) { return Foo(f.bar_); } ...

 
You don't even have to grow up for that
 
MVP easy points.
 

« first day (843 days earlier)      last day (4100 days later) »