« first day (1487 days earlier)      last day (3444 days later) » 

11:00 AM
@R.MartinhoFernandes he referenced his source: meta.stackexchange.com/questions/10647/…
4. Don't start with "How do I..."

Writing in that style ensures that your title will fail criteria 1-3, and get less attention than it deserves.

This is a question site, and people will understand your titles are questions.
 
Xeo
s/do I/does one/
:D
 
@orlp What the hell?
Their own fucking question starts with 'How do I'
a question with 'How do I' is fine
 
@Rapptz click the link
@Rapptz not my opinion, just quoting
 
I know
 
11:02 AM
and the answerer is not the same person as the asker
 
Could have just rolled back, but then I couldn't rant in the edit message.
 
@R.MartinhoFernandes fucking question gain
@R.MartinhoFernandes your question is working out for them gainz?
@R.MartinhoFernandes can we edit your edit message?
 
lmao
 
TIL about "Peter Principle"
 
11:03 AM
The Peter Principle is a concept in management theory in which the selection of a candidate for a position is based on the candidate's performance in his or her current role rather than on abilities relevant to the intended role. Thus, employees only stop being promoted once they can no longer perform effectively, and "managers rise to the level of their incompetence." The principle is named after Laurence J. Peter who co-authored with Raymond Hull the humorous 1969 book The Peter Principle: Why Things Always Go Wrong. == Overview == The Peter Principle is a special case of a ubiquitous observation...
 
> 6. "What is a ..." is fine
Way to go.
 
Do they seriously think "Remove a Git submodule?" is a better question title than "How do I remove a Git submodule?"
 
Improve title?
2
 
"good example": 64-bit XML-RPC values?
 
@R.MartinhoFernandes "[Edit removed during grace period]"
 
11:05 AM
what's next
 
@R.MartinhoFernandes change it to "remove git submodule plz?"
 
"How do I declare integers?" -> "Declare integers?"
 
@orlp doesn't mean people should create stupid titles, just so it doesn't start with "How do I".
"Removing git Submodules?" is braindead. Everyone knows there's no such thing as a "removing git submodule"
@orlp "Declaring integers in a local scope" etc.
 
also
in the good examples
 
@LucDanton Brillant
 
11:07 AM
totally ignores tags
"Python: What OS am I running on?"
fuck it
I'm going to vandalize on SO
I'm going in boys
 
@Rapptz Wow, that's new.
 
Don't imply me
 
@R.MartinhoFernandes I think there's a swear filter in place probably.
 
@Rapptz Nah, I really undid the edit in the grace period on purpose.
 
Oh okay.
 
11:08 AM
Before it would just delete it with no trace.
 
@Rapptz Amazing grace.
 
lol
shitstorm on meta incoming
 
:D
 
MWARRGHHH...... THE COFFEE MAKER IN MY OFFICE IS BORKEN:((
 
11:09 AM
WHAT IS A BORKEN
I WANT ONE
 
Kind of ironic, notice below: «4. Don't start with "How do I..."». :) — JMCF125 Jun 25 '13 at 15:11
 
Ell
@orlp lool
 
"bad example"
How can I tell what OS am I running on in Python?
what the fuck is this guy smoking
 
Hi all! If you have time, can you have a look at this code codepad.org/PKpYl8PW and tell me how bad it is?
 
Can you guys comment on it?
 
11:11 AM
"What is a good font for code presentations?"
"bad question"
what are you supposed to ask
 
@orlp Not like this one, you don't...
 
"Code presentations font: good?"
 
@drkg4b are all of those pointers weak references?
 
@R.MartinhoFernandes On what?
 
My question.
I'm trying to and it fails.
 
11:13 AM
@BartekBanachewicz I should say I'm a particle physicist and most of the software I'm writing is based on some other's code I have few ideas on how its written
 
@R.MartinhoFernandes what q?
 
WTF, It's my fucking question.
@orlp The one with the dumb edit I fixed.
 
Ell
@drkg4b could be worse, but it's not great really
what the hell is ST::SUSYObjDef_xAOD? :P
 
What a great title for this question! — orlp 19 secs ago
 
user1804599
@drkg4b delete lol
 
11:14 AM
@R.MartinhoFernandes ^
guys
 
Guess there was some problem with loading the JS.
 
the final plan is to transform the title into
"Git submodule: remove?"
 
FWIW, changing the title from "How do I remove a Git submodule?" to "Remove a submodule?" does not read like a proper English question. At that point it sounds like removing the words "How do I..." for no reason at all and is very silly. — Rapptz 56 secs ago
@Rapptz erm that's because... it isn't
 
I know that.
 
@Ell its a tool we use to calibrate electron, muons and other particles
 
11:17 AM
Then why "doesn't read like"?
 
I could copy and paste it as well
 
then we use and as title "Remove?"
 
@orlp "removal of submodule" (git is a tag)
 
I don't like assertive tone.
 
@sehe It is.
It's just the wrong sentence.
 
user1804599
11:17 AM
@Rapptz Oh well, everything is better than "How do we remove a Git submodule?"
 
Ell
@drkg4b Does xAOD represent electron, muons and other particles?
or is it just badly named?
 
@Rapptz Oh well. I don't like weasel words and noise :)
 
"How can one"
 
They're not weasel words.
 
@R.MartinhoFernandes Ok. Point granted /cc @Rapptz
 
11:18 AM
I don't see the equivocation there anyway.
 
@Ell all the particles are objects in our framework, xAOD is what contains all these objects
 
> How to UPSERT in Oracle (update or insert into a table)?
That's in the list of good examples in that answer.
"How to" is fine. "How do I" isn't.
 
"UPSERT in Oracle?"
 
user1804599
lol who gives a shit
 
11:20 AM
"Oracle: UPSERT?"
 
Ell
@drkg4b I just think ST::SUSYObjDef_xAOD is a really bad name :P
 
user1804599
ORACLE UPSKIRT
 
"UPSERT?"
 
upstart
 
"Remove a git submodule" would be fine. "Remove a git submodule?" is just robo-editing, and fuck you?
 
11:21 AM
@Ell I think too :-P and you should see how its coded! But I cannot change it, another group is taking care of it
 
man I'm still pissed the VIM q/a proposal got shutdown
it got overwhelming support in no time
"sorry we feel it would draw people away from stackoverflow"
meanwhile emacs goes strong
 
@R.MartinhoFernandes The former isn't even a question though.
 
@Ell do you mind giving me few hints on how to improve my code? I see from the google c++ style that I shouldn't be doing such a complicated initialization in the default constructor
 
And it's a terrible title to boot
 
user1804599
Some basic support for the train wreck that is OAuth 2.0 is now available as well.
 
user1804599
11:25 AM
I like that tone. :)
 
why even bother with the proposal theater if you're not following up on the community
 
@rightføld lol
 
Ell
@drkg4b There are lots of things this code does wrong, but I don't think I can give any suggestions for improvement because I don't know what any of the xAOD stuff does
You should avoid delete and use smart pointers instead
 
@orlp is that an actual quote?
 
11:30 AM
@Ell I tried but I can't because m_shallow_el = xAOD::shallowCopyContainer(*el); does not return a pair of pointers and didn't know how to assign them to some smart pointer
 
Ell
@drkg4b yeah, I can't really suggest anything as I don't know the codebase
 
@orlp lol, that's lame
 
@AlexM. it downright makes me lose all trust in the proposal mechanism
 
@ell yeah I get that! But thanks anyway for taking the time to look at it!
 
Ell
@drkg4b no probs buddy
 
11:32 AM
@AlexM. you can shut down a proposal if it doesn't have enough support or real data shows that the beta didn't attract enough attention
 
I like Josh's answer
 
@AlexM. but you can't fucking shut hundreds of commiters down without giving us a chance to actually make it work
 
I never thought I'd see him say something like that
 
@R.MartinhoFernandes bad day?
 
A commitment is binding, I'm not giving my fucking commitment to anything if they don't hold up their end of the bargain
 
11:34 AM
ok you can calm down now
 
sorry I'm all pissed again
 
I gotta get my ducks in a row.
 
@Unihedron I think this is the first time I've seen a MC skin as an avatar here.
@R.MartinhoFernandes dinner time :D
 
Ell
ambiguous call apparently. but one of the functions isn't defined!
 
11:43 AM
@thecoshman Yay achievement get!
 
@R.MartinhoFernandes duck is tasty vOv what's to get?
 
"get my ducks in a row" is an idiom for "get my act together".
You line up the ducks so you can shoot them all at once.
 
ffs
 
those must be some sitting ducks
 
I know that
@AlexM. ducks are fairly lethargic things.
 
11:45 AM
@AlexM. Target ducks.
 
ducks are cute
 
there are some on the river going through my city
if you drop some bread in the water they'll all gather and start quacking like crazy
 
@AlexM. Just wait till they start all the raping.
Then they will quack like crazy
 
@R.MartinhoFernandes I don't think they stock them.
 
11:46 AM
@R.MartinhoFernandes lol
 
@AlexM. s/cute/tasty/
 
I never ate ducks
 
@R.MartinhoFernandes man they are horny little things aint they
@AlexM. you're missing out man
It's hard for me to try new things at restaurants when they have duck on offer.
 
> When they pair off with mating partners, often one or several drakes end up left out. This group sometimes targets an isolated female duck, even one of a different species, and proceeds to chase and peck at her until she weakens, at which point the males take turns copulating with the female. Lebret (1961) calls this behaviour "Attempted Rape Flight" and Cramp & Simmons (1977) speak of "rape-intent flights". Male mallards also occasionally chase other male ducks of a different species, and even each other, in the same way.
 
@R.MartinhoFernandes sheesh, someone needs to teach those ducks about self control
 
11:48 AM
@R.MartinhoFernandes lol, A noble Priz... oh Ig
 
0
Q: Remove "democratic, community-driven process" from the Area 51 FAQ

nightcrackerSeeing there is an arbitrary nonelected dictator group or individual that can and does close proposals that are going through the proposal process without asking the community, in fact, directly going against the community, I feel that calling the Area 51 process a "democratic, community-driven p...

6
 
Is there some kind of "nearest" algorithm in the std lib?
 
@R.MartinhoFernandes what do you mean?
 
user1804599
std::sort then [0] :P
 
Like lower_bound without me having to check upper_bound as well.
Prolly not.
 
Yeah, guess I'll have to do that and check manually.
 
@orlp meow
 
3
Wet Shaving

Proposed Q&A site for this site is for enthusiasts of wet shaving, shaving with Single Edge, Straight Edge, and Double Edge Safety Razors, Badger Brushes, and discussing different techniques, as well as opinions on different shaving soaps and creams.

Currently in definition.

Oh god, they have arrived.
 
lol
 
lol
 
11:53 AM
@R.MartinhoFernandes The "nearest" is just X with the smallest (or largest) of a given property, ie, the first (or last) of a sorted (or reverse sorted) collection.
 
user1804599
@orlp yesss
 
@R.MartinhoFernandes wtf
I googled for "wet shaving" after seeing an image 5 minutes ago
and now you post this
fucking weird
 
I shaved today.
Felt like it.
 
it's like deja vu
but creepier
 
Just because.
 
11:54 AM
NOOOOOOO
MARTINHO KILLED BEARD :(
 
Some seven months of beard growing down the drain.
 
now you lose your magical powers as a wizard :*(
 
Ah, not quite. Only six.
Shit, I'm 27.5 already.
 
Xeo
I'm only 23.lownumber \o/
 
I'm x.y \o/
 
11:57 AM
@R.MartinhoFernandes I'm 28
 
19.98
 
Btw, my birthday is the same as Sir Terry Pratchett. /cc @sbi
Only 39 years apart.
 
So Richard Stallman used this technique in the late 80's, on a software reputed for its unmaintainability, and this is supposed to be a good, modern C++ way of doing this? — Mr. kbok 20 secs ago
Am I being an asshole
 
@R.MartinhoFernandes you monster!
 
Ell
I'm 18
 
user1804599
11:59 AM
@Mr.kbok yes
 
@R.MartinhoFernandes when are you 10000?
 
@rightføld lol
 
user1804599
"Software" is a mass noun.
 
@thecoshman Already celebrated.
 
@R.MartinhoFernandes oh yeah, I remember now.
 
12:00 PM
Sep 8 at 12:42, by R. Martinho Fernandes
It's my myriadversary.
 
@rightføld Softwares
 
@rightføld fixed
 
I am 10π + n (where n is a real number between 1 & 7)
 
I'm all out until next April.
 
user1804599
12:01 PM
@thecoshman Softwares are written in the codes.
 
@R.MartinhoFernandes oooh great
Do want this. Followed immediately.
 
Oh ffs.
Why am I surprised.
 
Maybe I'll stop cutting myself when shaving.
 
@R.MartinhoFernandes don't fight it!
 
Shaving is a pain, just let it grow
 
12:02 PM
I'm getting good at it.
 
at letting it grow?
 
Shaving.
Today there were no cuts and no lone hairs left behind.
 
Oh BTW if you read this question please downvote protobuf. This is the worst idea ever for writing to files.
 
Also, 15 July 2015: 15 Mars years
 
12:06 PM
that would be a supported platforms kind of issue. Check that VS2010 is supported with the version of boost you use. It's no problem with VS2013/boost 1_56 (although it takes over a minute to compile, WTF) — sehe 12 secs ago
VS2013 still so good
 
there are definitely some similarities between kbok & tony's avatars ...
 
Ell
Hmm I need to put a load of stuff in namespace detail
another time
 
Ell
12:28 PM
Uh oh I have a bug
 
user1804599
@orlp it'd be funny if Robert deleted that lol
 
Ell
std::string = foo.get_obj_with_string_conversion_operator();
what is the value class (right term?) of the object returned by get_obj_with_string_conversion_operator() ?
 
What does the conversion operator look like?
 
Ell
operator std::string() const
 
prvalue; that is, a call to the conversion operator is
 
Ell
12:42 PM
I have a bug where a "temporary" (prvalue) Ref is implicitly converted to a jobject to be passed into some JNI function. The destruction of the temporary causes the ref to be invalid
 
If the result of a conversion cannot outlive its parent, it may be a good idea to lvalue-ref qualify the conversion.
Where ‘may be’ really means "do eeeet".
 
Ell
@LucDanton how do I do that? :)
 
user1804599
Add &.
 
Ell
conversions have to be member functions don't they?
 
e.g. operator conversion_type() const&;
 
12:44 PM
runWebMState_ :: State appState a -> WebM appState a
runWebMState_ f = do
    appStateTVar <- ask
    liftIO . atomically $ do
        appState <- readTVar appStateTVar
        let (fResult, appState') = runState f appState
        writeTVar appStateTVar appState'
        return fResult
Ha!
I can into atomic monad transformer stacks!
 
user1804599
bartek so nuclear research
 
@Ell Non-explicit unary constructors as well, although of course that’s the other way around (conversion from).
 
Ell
@LucDanton ahh cool
I still have so much to learn in c++. it's great :D
 
@Ell it's really not
 
Ell
@BartekBanachewicz it is for me :p
 
12:47 PM
@Ell if by "overly complicated value lifetime semantics" you mean "interesting" then sure. I'd rather write programs not scattered with that.
and just to get this one particular thing, you sacrifice pretty much everything else in modern PLs
 
Do keep in mind it still won’t save you from return will_be_converted; and similar though.
 
Ell
Hmm. There is no compile time error for some reason. let me have a look...
 
What does the get_obj_with_etc function look like?
 
I really love how GH integrates with CI systems
it's amazing
 
Ell
12:57 PM
T get() const {
    return detail::GetField<T>::get(environment, object, field);
}
I think I'll try and make an SSCCE instead
because it's a little convoluted
 
that sounds like incomplete support for req-qualified members, unless there’s something missing.
 
@rightføld totes
@R.MartinhoFernandes lol, what a site
 
Ell
@LucDanton it looks somewhat like this coliru.stacked-crooked.com/a/c9d9139fb27759de
 
user1804599
@thecoshman totem
 
@Ell Yeah that’s not right. You can add an operator int() && = delete; overload to get GCC to complain though.
 
Ell
1:06 PM
@LucDanton Ahh I didn't know I had to explicitly delete it, thanks
 
No no it was right the first time around. Can’t call an &-qualified member on an rvalue.
Btw don’t make it const&& GCC has troubles with that.
 
Please forgive my stupidity. Edited it — Abhishek Agrawal 1 hour ago
whoa, someone said sorry for claiming their question was in need of urgent answers
 
ooh, next year I will be 110 (Mercury) years old.
@rightføld me gotem
 
@thecoshman wat
how do mars years work?
 
sorry, only 14 (Mars) years.
 
1:09 PM
I'll make 12 mars years on december
 
@Jefffrey ... orbital period of Mars...
 
@thecoshman Your 110 Mars years made me doubt that
 
Soon I'll have out lived 75% of a lump of Californium-250 from my birth.
 
@thecoshman Did you really derive that correctly?
 
yes, two half lives.
 
1:15 PM
oo
 
half of half is a quarter, so three quarters has decayed.
 
@Ell operator int () const & is (of course) applicable for temporaries (ref-qualifiers include the cv-qualifiers present for a member-function, it's not a "member-function that is const and it shall only be callable on lvalues" but rather.. well, you get it)
 
Anyone has any idea if it's possible to select non-template overloaded functions through a variadic template function? Something like this: ideone.com/mUVSiK
 
@FilipRoséen-refp That’s not true. It means exactly that.
 
@Ynau template<class... Ts> void bar (Ts&&... args) { foo (std::forward<Ts> (args)...); }
@LucDanton nope
 
1:24 PM
const is already for 'const-qualified lvalue or rvalue'.
 
@LucDanton [over.match.func]p4
 
@FilipRoséen-refp Thanks!
 
@LucDanton the cv-qualification together with the ref-qualification specifies the type of the implicit object parameter, together; struct A { void bar (int, float) const &; } means __impl::A::bar (A const & obj, int, float) or simply put; impl::T::__func (T cv-qualifier ref-qualifier) where ref-qualifier will default to &
@Ell ^
 
A very quick question if I may, which simple could be a yes or no answer. In C++ (which I'm new too), my project builds. I've now added a new parameter to my function, and by doing so, I am told cannot instantiate abstract class. Is this usual in C++ that adding a bool as a parameter to a function could cause this type of issue?
Hmm, maybe this isn't answerable without a lot more detail...
 
@Dave if you have a pure abstract virtual member-function you will need to implement it in the most-derived class in order to instantiate such type, so if you previously implemented the function without bool and later change the declaration to include an extra argument, the implementations in the derived classes no longer apply
 
1:31 PM
ah... I see. So, this is because (.NET teminology) I'm (possibly) changing it in the base class, inheriting class doesn't match the signature effectively?
 
@Dave sure, that's one way of saying it. in C++11 you'd use the override keyword in your derived class to make the implementation give you a diagnostic if no such virtual member-function is present in any of the base classes
 
Wow. OK, so I can at least look for this implementation whcih is overridden. This is a wonderful answer, thank you so much for takgin the time to talk to me
 
@Dave struct A { virtual void func (bool) = 0; } having struct B : A { void func () bool; } would give you a diagnostic saying that there's no virtual member-function B::func () (and such, your "override" isn't doing what you want)
 
hmmm, this isn't virtual...
 
I’m surprised I haven’t run into this myself. And somewhat disappointed this add a gotcha of sorts to the language (although it is consistent with non-member overloads).
 
1:34 PM
Nor is it overriding
 
@LucDanton nhaa, the opposite (the behavior your described) is what would be a real gotcha
@Dave if a member-function is virtual in a base-class, it is virtual in any derived class as well
 
Never mind, I can ask some one here but as I'm new I wanted to not ask for help!!!! :) Thank you again though.
Undestood. Thank you @FilipRoséen-refp
 
@Dave having the previous struct A, struct B : A { void func (bool); }; and struct B : A { virtual void func (bool); }; means the same thing
 
There’s no way to win here as long as non-ref non-const qualified members latch on to rvalues.
 
@LucDanton if you don't specify anything the member-function will be applicable to every instance of the class-type, but if you add cv-qualification (and/or ref-qualifiers) you effectively limit the scope
I mean, that's kinda.. well, anything else would be unexpected in my book
 
1:38 PM
But why is that feature not available to non-members?
 
@LucDanton how would it apply to free functions? there's no implicit object parameter in such case, so what would it denote?
 
hello
 
Ell
@LucDanton the information is encoded in the parameter types isn't it?
 
@FilipRoséen-refp To any (explicit) parameter of the author’s choosing.
 
Ell
operator string() const && {...}; // member function for MyClass
vs
string to_string(const MyClass&& instance) {....};
 
1:42 PM
@Ell Try it with no ref-qualifiers (for the member function).
 
Ell
template<class T, typename std::enable_if<std::is_same<T, MyClass>>::type>
string to_string(T&& instance) {...};
:P
I don't know :L
 
It can’t be done, is my point. Way too late to do anything about it of course.
 
Ell
@LucDanton would that mean it can apply to any expression type?
I thought this is what forwarding references were for?
 
Yes. Only cv compatibility is checked.
@Ell Not really.
 
Ell
to retain whatever value category and cv qualification was passed in
 
1:47 PM
Oh that, yes. Not really on topic though.
 
I don't get what you want the behavior to be in free functions, @LucDanton; it just doesn't make sense :/
 
@FilipRoséen-refp They’re fine. It’s non-static member functions that are not.
Or maybe the multiplicity of cv/ref qualifications, with little recourse around it :v
 
ok wtf I don't understand
I'm doing an university assignment
and we have to implement TreeNode and Tree classes
and then inherit those for a binary search tree, BSTreeNode and BSTree
 
@orlp ...here's your explanation
 
but doesn't that mean that every single time you access a left/right child or the root pointer you get back a TreeNode pointer?
thus dynamic_casts all over the place?
 
1:53 PM
I'm in uni too, and they sometimes give ridiculous requirements.
 
or am I missing something
 
@orlp if you need dynamic_cast in this case, you're most likely violating LSP. Just from the info you provided this doesn't violate LSP, so I can't imagine in what particular case would you need a dynamic_cast.
 
@BartoszKP consider the type of the root pointer when you inherit BSTree from Tree
@BartoszKP the root pointer is a TreeNode*
 
@orlp ok, right, the case that violates LSP is "add another child node" - binary tree makes this invalid in some cases
 
@BartoszKP but don't I have a Tree with two different root pointers then?
 
1:57 PM
@orlp this alone is not a big problem if the class allows to override root's construction
 
@BartoszKP that doesn't sound good
 
@orlp that's not what I meant. In node->addChild(childNode) the type TreeNode in node is not completely substitutable by BSTreeNode. Because the latter sometimes will fail, where the first wouldn't.
 

« first day (1487 days earlier)      last day (3444 days later) »