« first day (708 days earlier)      last day (4466 days later) » 

23:00
SO posters are delicate flowers.
@SethCarnegie Yeah... Jeff himself added the LMGTFY site to the block list.
122
Q: Ban lmgtfy (let me google that for you) links

John NolanI've just asked a question on Stack Overflow which was a prime candidate for googling. I admit it was a poor question and with a little bit of research I would have found the answer. What annoyed me was someone in the comments put a let me google that for you link. It got right up my nose. I fin...

Both top answers (which have scores of 128 and 64 btw) say it's dumb to ban them
and I didn't read further, probably other answers say the same thing
It's a slippery slope. If I tried to post a LMGTFY link, the fact that it's blocked would be a signal to me that they don't want people posting it.
@CatPlusPlus They're not convertible to a mutable type, they are a mutable type, without conversion
Erm. String literals?
No.
char const[N] is not mutable.
23:15
@R.MartinhoFernandes in C they're just char[] aren't they?
@Ken The only difference between C and C++ in this regard is the const qualifier. C treats it as a char[N] instead of const char[N]Prætorian Sep 20 at 18:00
I blame him if I'm wrong
lol... look at the first revision for this question:
-20
Q: Fetching the data from a webpage using JSON Parsing

user1283689<ArrayOfShowEmpRecord xmlns="http://schemas.datacontract.org/2004/07/WcfRestService1" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <ShowEmpRecord> <ID>254</ID> <Name>Thor</Name> <Phone_No>429842</Phone_No> </Show...

Haha
-2
Q: How to develop a nuclear weapon with itunes?

Filippo AlessiThe question may seem provocative, but it is serious. How is it possible to develop a nuclear weapon with itunes to the terms of the contract?

2
What
23:23
WOW
That just made my day.
What. The. Fuck.
favorited
we'll be talking about it for a while
LMGTFY - even if you did the actual Google and copy/pasted the answer, it's usually not a lot of work. The more insulting posts are those with two pages of C with i,j,k,l,m array-indexing, magic-number array declarations and for loops, char* and mallocs. 'Please eveyone, debug my complex code - I can't be bothered to try. First to come up with the fix, so I can deliver my assignment/project and get marks/paid gets a green tick, everyone else, tough - suckers!'.
Have you ever heard the phrase "use the right tools for the job"? Itunes doesn't sound like the right tool to make nuclear weapons with, and neither is this QA the right place to ask questions about nuclear weapons. — Tony The Lion 14 secs ago
I left a little comment
:P
Me too.
You're an idiot. – Chimera 20 secs ago
23:26
Sounds like a white-board question. I'd say it belongs on programmers.SE. :D
Where's the tag?
We need a "lock" on question/answer editing so your edits don't get overwritten by someone else editing the same answer.
@Mysticial Got nuked.
For example, it would put you in the edit queue and when it came your turn, the edit box would pop up and you could edit
23:29
@Mysticial Next to 'Nerve gas'
Xeo
Xeo
Fact is, there is a point in the Terms of Agreement of iTunes where it says you shall not develop nuclear weapons with it :)
@Xeo Why would they put that in?
Here's an easy one. FGITW
0
Q: Confused about how to go about doing this program

Murray SpearsThe question is as follows. A customer needs a specific amount of paper. The charges on the paper are: .10 for single sheets. .055 per sheet in multiples of 100. .04 per sheet in multiples of 500. .03 per sheet in multiples of 1000. I know you have to use mod division somewhere. I'm not sure...

How exactly do they expect someone to do that?
Xeo
Xeo
@TonyTheLion I think they have to by law or something
23:31
lol
@ScottW NO.
@Xeo Yup - it's gotta be lawyers - it's totally ridiculous.
@MartinJames I think they just are doing activism against nuclear weapons or something
I just found out that you can do f.something() to call a static function on a class which is decltype(f), I always thought you had to do decltype(f)::something()
@MartinJames It can't be by law. Why would iTunes be singled as being not allowed to be used for nukes?
int g();
struct X {
    static int g();
};
struct Y : X {
    static int i;
};
int Y::i = g(); // equivalent to Y::g();
Wow
@SethCarnegie Maybe the nuclear weapons should be activated on the lawyers. result - fewer warheads and fewer lawyers - almost everybody wins!
Xeo
Xeo
23:36
Who in here asked for the differences between lock_guard and unique_lock? Was that you @Tony?
@Mysticial It's not just iTunes.
Even if the law says that you can't develop nukes, I don't think they require that every product explicitly state that it cannot be used to develop nukes.
Xeo
Xeo
@SethCarnegie Really?
I actually don't know what US law says about possessing a personal nuke or even the materials for a nuke. I've never run in that problem before.
Xeo
Xeo
Did you ever access std::string::npos through the class type? :)
23:39
@Xeo apparently unless I read wrong
@Xeo no :)
I mean yes
Xeo
Xeo
The "really" was directed at the "I just found out"
Seriously, what are they protecting themselves against? Suppose someone is caught making nukes and... what? Goes to court trying to prove they were using iTunes somehow, and so... what? Apple should take the blame?
@Xeo yes, I just learned that
@Mysticial No, it's not a sword, it's a shield - like 'star wars' and about as much use. Like cockroaches, lawyers will arise from the rubble and try to sue anyone who might be responsible. iTunes will have a good defense.
@R.MartinhoFernandes No, they just are against nuclear weapons and want to hinder their development however they can
Xeo
Xeo
23:40
@SethCarnegie okay, I always used str.npos. :o
Lol, never done that before
@SethCarnegie If anything it encourages it. Otherwise that question wouldn't exist.
@Mysticial if it encourages it then it's doing what it didn't intend to do
@Xeo but did you know that the scope of a static field initialiser is the class in which the variable resides? :) I never knew that
@Mysticial Exactly. If I was a terrorist, I'd try to somehow incorporate iTunes in our nuke building process just for kicks.
Xeo
Xeo
@SethCarnegie That I did not know, but I guess it kinda somehow makes sense
23:42
@R.MartinhoFernandes So you can go out with a hallelujah?
@Xeo If it makes sense then you have been doing C++ way too long
Xeo
Xeo
Well, take an out-of-class declaration of a member function that returns a nested type
T::type foo(){ ... } vs auto foo() -> type{ ... }
@SethCarnegie It might be better to target the delivery systems - provide Apple mapping for the guidance.
Xeo
Xeo
@MartinJames Just imagine some nukes using iOS6 maps for targeting...
lol, they'd nuke Airfield Park trying to take out Irish airports.
The poor pigs in the farm would die for nothing.
23:45
@Xeo Couldn't you do auto foo() -> T::type { ... } then? Or I don't understand what you mean
Xeo
Xeo
@SethCarnegie The thing is that you don't need to qualify type in the trailing return type
While you do if you use the normal form
@Xeo so it saves you typing three characters?
If your class name has only one character.
Xeo
Xeo
That's not the point
In fact, it doesn't save shit if your class name is one character, since you need to type auto ->
The point is that the trailing return type is inside the lexical scope of the class
Anyway, your examples are missing T:: before foo.
Xeo
Xeo
23:47
So you can do auto T::f() -> decltype(some_member.f())
@R.MartinhoFernandes might take out Michael O'Leary as collateral damage:)
@Xeo but why is that helpful other than saving typing
Xeo
Xeo
@R.MartinhoFernandes derp
59 secs ago, by Xeo
So you can do auto T::f() -> decltype(some_member.f())
And you have access to the parameters of course
@Xeo yes, why is that helpful other than saving typing?
What? I totally do not understand lol
Xeo
Xeo
template<class T, class U> auto f(T t, U u) -> decltype(t + u){ ... }
textbook example
@SethCarnegie I guess in the end, it's nothing more than that (or I'm just not remembering, my brain is tired), but it saves much typing. You won't need all the std::declval stuff to get an object of a specific type
23:50
@Xeo that is not helped by having the scope of the definition of a static member variable be in the class though if I can see
@Xeo you always need an instance of the class to access member variables, the fact that the definition is in the scope of the class doesn't make it an instance of the class
Also sorry for pinging you every message
habits
Xeo
Xeo
I wish you'd make it a habit to actually respond to specific messages, it's kinda hard to keep track of what you're responding to
Ok will do
Xeo
Xeo
@SethCarnegie I don't quite get what you mean here
For instance, int X::f = g() will call the static function X::g if it exists because the rhs is inside the scope of X. If the class has member variables, those are not available on the right side of the = because it's not an instance of the class, it just puts you in the scope of X
分かる?
Or is it I that is misunderstanding it
Xeo
Xeo
@SethCarnegie I need to learn my kanji...
23:55
@Xeo That's not kanji.
@Mysticial yeah it is...
Xeo
Xeo
@Mysticial The first one is
@Xeo it's わ
In that context
That's was I was referring to. Only the first one is.
Xeo
Xeo
@SethCarnegie Duh, makes sense.
Didn't think of "wakarimashita" at that moment, which would've brought the meaning to me.
23:58
@Xeo but anyway, 分かる? :)
Japanese question mark is so ugly
Xeo
Xeo
hrhr
Yeah, we kinda lost ourselves and started talking about different things I guess
hey guys, so i got linux and i thought i would get the code::blocks ide since it has the GCC compiler, but im having a problem, each time i hit "Build and Run" It says

/bin/sh: 1: g++ not found
Process terminated with status 127
@MohamedAhmedNabil is G++ installed? Is it in your PATH?

« first day (708 days earlier)      last day (4466 days later) »