« first day (908 days earlier)      last day (4266 days later) » 

20:00
It requires the ring finger and pinky.
@R.MartinhoFernandes is :SudoWrite the tee trick or something else?
@StackedCrooked I use the ring finger for ]
Am I bad? :(
@Pawnguy7 you can edit them, there's no guarantee that the program reading them will pick up the changes immediately though, it's up to the program
@StephenLin It's from a vim plugin github.com/tpope/vim-eunuch
Dunno, but that means moving your hand away from the standard typing position, not? Or do you have very long fingers?
20:01
@StackedCrooked TBH, both.
No more "Oh crap, I forgot to launch vim as root, now I need to jump through hoops to save these changes"
heh
I feel your pain
@R.MartinhoFernandes oh, you can just do "cmap w!! %!sudo tee > /dev/null %" though
Oh better, no more "Oh crap, root's vim settings are crap"
in your .vimrc
20:02
are these plugins usable by vim install *plugin*?
and then just :w!!
so you don't even need a plugin
@R.MartinhoFernandes ... why am I even asking.
@StephenLin That's pretty much a plugin...
are plugins basically just .vimrc scripts?
well, ok
i just like DIY
reinventing wheels is fun
does vim automatically make tabs into spaces?
Ok.
Notepad now opens .txt, .log, and .ini, among other things.
@Crowz depends on your expandtab setting
At first, they all worked but .ini, but now it let me add it the windows way... who knwos why.
20:07
@Crowz :set expandtab or :set noexpandtab
@Crowz also, you can :retab after changing the setting
@R.MartinhoFernandes can you take a look at this:
Alright, I really have to ask. Since it's a bit hard to discern... Is the problem in the answer or someone felt sad because I said his use of unions is flawed? I want to learn, too. :$
template<typename V, typename T>
inline bool equals(V& variant, T value){
    return boost::get<T>(&variant) && boost::get<T>(variant) == value;
}
I wonder if it's ok, since the results are weird.
@Crowz it won't spacify existing tabs unless you :retab...i don't know if :retab works the other way though, be kind of tricky
@Crowz plus I never do it the other way
@StephenLin :retab! does.
20:09
@R.MartinhoFernandes okay, tabs are evil though, so i'll pretend i don't know that
@R.MartinhoFernandes does it know to put in a tab when the number of spaces is not the exact multiple of tab stops, but ends at a tab stop?
user142019
@StackedCrooked because it's broken.
@R.MartinhoFernandes spaces to tabs doesn't seem like a well-defined problem
20:13
@StackedCrooked lol inb4 .is_shuffled()
@StephenLin It's messy.
It is not recommended.
@R.MartinhoFernandes I guess you'd have to put some minimum number of consecutive spaces to convert to a tab
at very least
I just got paid for literally doing nothing for 5 hours
Congratulations! You are worthless!
5
@DomagojPandža I think the actual problem with his code is that char * is printed as a string
@DomagojPandža you're right that you can't access anything but the last set member, but evaluating an address should be ok
20:17
@StackedCrooked I can't find out why. o.0
@R.MartinhoFernandes Thank you! I always knew I could be, just had to work at it! :D
@ThePhD It works if I move the vector declaration inside the for loop. I.e. if I have a unique object per iteration.
@StephenLin I'll try to address it more directly. I concentrated on his weird use of union. Thanks!
@StackedCrooked That doesn't seem right, though.
20:19
@DomagojPandža oh, but trying to print the value is not ok...I guess he wants to do that too
@ThePhD Ooh, I did something very dirty.
I deserved it.
After heap sort the vector is empty. However the print function iterates over all reserved space.
... Oooh.
So it's shuffling a 0-sized vector.
.... Ahhh, you're so... Crooked~
20:21
@DomagojPandža I might be wrong tough, it might be UB to even use it as an ravlue in an unevaluated context
@StackedCrooked oh, your operator<< is indeed kinda strange
I officially <3 Catch
@StephenLin Nope. Unevaluated contexts can't cause UB, in general.
@bamboon It was a hack.
@DeadMG so taking the address of an element of an array that isn't the last set member is ok?
(i.e. not taking the value, just the address)
just making sure that's what you mean
20:22
in an unevaluated context.
@StackedCrooked sure ;), I think it's cool in general.
is taking an address an unevaluated context?
no.
so &e.c[0] evaluates e.c[0]?
technically?
is that UB then?
@bamboon Btw, the sort is buggy, as you may have noticed.
20:24
@StackedCrooked the last 8 yeah :P
@StephenLin If c was not the last set member of e
then almost assuredly yes.
ok, but it's statically knowable information
or at least, the offset from the stack pointer is, or whatever
so it seems like it should be ok
@StackedCrooked More importantly why doesn't your heap sort get the last two items in the right order?
@JerryCoffin I'm trying to figure that out.
Off-by-one probably.
Booooooooooooo
20:26
@StackedCrooked Some possible inspiration.
@DeadMG how sure are you? not really saying you're wrong, I just think it's something that isn't a priori obvious
@JerryCoffin I read your blog post a few weeks ago :)
@StackedCrooked Ah, okay.
it's the only nitpick i could think of @DomagojPandža 's answer
not that i would pick it myself, or downvote without comment (that's just rude)
@StackedCrooked So is that what prompted you to write this code?
20:28
@JerryCoffin Self-education.
@StackedCrooked Looks much better.
Working through the book Introduction to Algorithms.
@StackedCrooked Cormen?
@bamboon CLRS.
20:30
@JerryCoffin hmm, are those the other guys who wrote it?
seems so
@bamboon Yes -- Cormen, Leiserson, Rivest and Stein. Actually, I think the current edition has one more author too, but I can't remember his name.
is rivest the RSA guy?
@bamboon The very same.
Well, I found the book to mathematical, at least for me.
@bamboon Actually, looking, I guess it hasn't added any new authors. Must have been thinking of a different book.
20:33
@JerryCoffin Actually, I'm considering to apply for Google. They called me a few months ago (they my profile on linkedin) and asked me if I was interested in doing a job interview.
Does Google have an office in Belgium? Or are you going to relocate to... The states? :P
@StackedCrooked Ah, makes more sense. Yes, I'd say your chances of their asking about it are pretty good.
@JerryCoffin maybe you mean Computernetworks from Tanenbaum?
Not sure if I get that last sentence. My chances of their asking about it are pretty good?
20:36
@Mysticial They have an office in Brussels.
Ah, I see :P
Them asking about heap sort.
@JerryCoffin ah
@StackedCrooked They will probably ask about it.
@ScottW I like Brussels pretty well.
Yes, they sent a big list of topics to review.
Hmmm...maybe I should apply to work at their Brussels office. Right across the street from Parc Leopold. Nice spot.
20:49
@JerryCoffin So that probably means that you really hate Houston. Since I imagine moving to Brussels is a lot messier than to Houston. :)
@JerryCoffin I have an interview in London office two weeks from now
@Mysticial Yeah, probably. Actually, I have no idea what it would take for a US citizen to get a job on Belgium.
@DeadMG Good luck Retain existing knowledge, mate!
cheers
@JerryCoffin Not only that, but you'll be double taxed unless you relinquish US citizenship.
20:52
of course
that's after the Committee comes to see me
so if things go well in Bristol, I'll be able to use that to impress Google
Yeah, that could be a great boost to the entire package.
I'll retract my statement... but I'm stunned by the fact that the code I've written over the past 30+ years worked anyway. Whatever. — K Scott Piel 6 hours ago
Way to incriminate yourself and your 30+ year long career.
was just thinking that
@DomagojPandža It's not UB in C99 (TR?). But it remains UB in C++.
Which is funny.
@DeadMG Good luck. (though unless I'm badly mistaken, "Google London" doesn't narrow it down all that much -- I think they have more than one office in London).
I think I need to rephrase "Explicit is better than implicit" in ogonek's design goals. It says "Ogonek will perform as little as possible implicitly." but I actually want to perform as much as possible implicitly. I don't know how to express this without giving the wrong idea.
20:57
@JerryCoffin I'm interviewing at the one which is about two centimeters away from Victoria Station (and yes, it's more than one)
@Mysticial Yeah, asker is quite ambiguous with his tags. But his code is C++, sort of. With highlights such as pulling in the entire std namespace.
but I think that they interview for jobs at all of them and just pick the next one with a free slot
@DeadMG I don't know how things work in London. In Mountain View, you (mostly, anyway) interview for a particular logical part of the company, and end up in whatever part of the campus where they work on that.
@DeadMG I missed the start of this interesting salvo. What are you applying for? Apart from being a googler =)
@CaptainGiraffe To be specific, Google headhunted me, not the other way around.
and they didn't discuss any particular role details with me yet
21:01
@DeadMG Neat. Best of luck in the negotiations.
@R.MartinhoFernandes "Operations are automated whenever that does not reduce flexibility or functionality"?
@CaptainGiraffe Cheers.
but my imminent focus is Bristol
as cockface said, it'll be a lot easier to convince Google of my awesome if I already convinced the Committee
@JerryCoffin That does express the idea quite well. I can work with that, thanks.
@R.MartinhoFernandes Surely.
21:06
does visual studio 2012 run on win7?
@bamboon Why wouldn't it?
Why is the room title {jDom.get()prop()}"The real nerd kingdom"?
@DomagojPandža pushing windows 8?
@bamboon How could Microsoft have developed VS2012 when Windows 8 was too unstable to be used?
@DeadMG Ahahahah
21:08
I know, I know
user142019
Yum.
user142019
Pizza.
@DeadMG well, they could have just added a random restriction to the release version
@Zoidberg Pizza and Puff.
user142019
21:09
@bamboon And hack off almost every developer?
user142019
@DeadMG s/h/j/
@DeadMG sure, they did it with XP, too, didn't they?
user142019
@ScottW indeed, except for the " and pasta" part.
@bamboon No.
man
@Zoidberg confirmed as real, I've seen this bed before
21:10
@ScottW Oh, you poor sod.
@BartekBanachewicz And it seems you love failing tests :)
is pizza just going to be the next bacon? cause that shit was awful.
user142019
@BartekBanachewicz me too :v
user142019
@DeadMG PERMABAN
@sehe boost::get<> works not :(
21:11
@BartekBanachewicz Let's check that select(3) isn't broken
Although type-punning through a union is technically UB in C89 and C++, it is an extremely common idiom and is well-supported by all major compilers. — Adam Rosenfield 1 min ago
DeadMG, here's your new best friend. :P
user142019
It is non-UB in C++11 in some cases.
user142019
For PODs with same layouts, IIRC.
@BartekBanachewicz "The Pragmatic Programmer"
21:13
@DomagojPandža Nobody could replace you, cockface.
well, except robot
@sehe oh, is that the guy who saw zebras and wouldn't admit his code is bad from TDWTF?
user142019
@DeadMG union { Human domagoj, anyoneelse; }; domagoj = Human(); anyoneelse = Human() /* error: cannot replace Domagoj */ ;
I don't follow.
@Zoidberg e.i = 20; cout << e.c[1]; // OP's usage. c is char[sizeof(int)]
user142019
21:17
@DomagojPandža owwwwwww.
user142019
BOOM!
That's what I told the schmuck.
However, accessing plain object as characters has always been intentionally legal and supported behavior. This answer is almost entirely irrelevant to the poster's situation and question. — jthill 8 mins ago
This one is stubborn in his defense of the old ways. He fought with Bartek a couple of hours ago.
Reassigning references is technically possible in MSVC, that doesn't mean you're not a schmuck if you do it.
@kbok Our variants ain't working with ints dammit and I forgot :/
@DomagojPandža It is?
I know most of the MSVC dark corners but never saw that one
21:21
@DeadMG Yes, unless /W4
Uncertain as of MSVC11, but I swear I saw it in VS2008 or 2010.
how much math is involved in programming professionally?
None. A lot. Some.
None? Yay
And the C standard uses effectively identical language. @DomagojPandža Please point out where the standard forbids character access to an object's data. — jthill 2 mins ago
And the C standard uses effectively identical language.
Yes, C++ and C are almost identical.
21:29
Oh gawd, you are still with that?
I write C++ really C-like
@R.MartinhoFernandes He plinks me. :(
https://github.com/DarkCrowz/chat/blob/master/client/client.cpp
^ that's what I do for C++
Oh baby <3
Ell
Ell
Hi guys
Hey sexy
21:39
@DomagojPandža Show codes?
@DeadMG Wait, someone is wrong on the Internet.
user142019
'; DROP TABLE Tweets; -- #apple #microsoft #bp #shell #ah #c1000 #ns
user142019
Time to pwn some classmates who have to do analysis on Tweets and store tweets in a database for a project due tomorrow. :>
Ell
Ell
I want to ask a question about making a bot on stack overflow but it's against the rules :(
Ell
Ell
21:42
Why is it against the rules?
@Zoidberg Again?
user142019
@sehe the project is due tomorrow.
user142019
That means that now everybody is working on it.
user142019
So most chance of scoring some victims.
Ell
Ell
21:43
Because its against the games rules, cheating, unfair advantage and all
What kind of bot are you talking about?
Ell
Ell
So I guess it violates some terms and conditions maybe
For an online gsame
user142019
inb4 upvotebot.
inb4 ban.
Ell
Ell
Doing a falling piece puzzle
user142019
Oh in that way.
21:44
Does anyone have problems with python IDLE?
Ell
Ell
I don't know how to track the falling pieces
Ell
Ell
I can solve the puzzle from a given state so I guess I only need to see the state once
@DomagojPandža FWIW I think he's right. But I really don't want to take part in that discussion.
@R.MartinhoFernandes 6.5/7. Yes, C allows such an action through unions. But is the same true for C++?
I think C++11 only allows PODs with same layouts, as Zoidberg pointed out. While you can interpret everything as a char array, you do that with a proper cast, not union access. Anyways, I'm done.
21:55
Oh hey unions can have member functions
@CatPlusPlus Yes, both member functions and access specifiers.
That makes them useful! (no it doesn't)
user142019
Can it have virtual member functions? :v

« first day (908 days earlier)      last day (4266 days later) »