« first day (1038 days earlier)      last day (3896 days later) » 

5:00 AM
IME yes
IIRC Rapptz and I raged over another one of his questions
well mostly me (10k users will notice i have 2 deleted answers on that question)
 
@R.MartinhoFernandes They are delicious.
 
Should have remembered before commenting. His 'you are telling me I shouldn't head down the cliff only because you can't find a way to make my car fly like I asked'
Triggered my memories.
 
@R.MartinhoFernandes Yes and no -- I don't think he's really "troublesome" exactly. Actually, I think most of his questions are interesting, but he comes up with some...unusual ones, and he seems to be quite picky about answers.
 
0
A: Nice way to portably "assign within conditional expressions" without warnings (or pragmas)?

MehrdadNever mind, I found a solution myself... for (Iter i = items.begin(); i != items.end() || (finished = !finished, finished); finished ? i : ++i, ++offset) { // ... }

lol
 
The fuck is that.
 
5:04 AM
@R.MartinhoFernandes But speaking of which, could you glance at my edited answer? I think it's corrected, but I'm getting tired, so a second opinion wouldn't hurt.
 
@not-rightfold lol
 
"continuing" looks awkward.
 
@MarkGarcia It is, somewhat.
 
@JerryCoffin I wouldn't say picky. I'd say he wants answers that confirm what he wants to hear. He'll get up in arms if you tell him "you shouldn't be doing that" and if you find an answer it should be the way he asked for it, not another way even if it happens to be better.
tl;dr; "Its my way or not at all"
 
@Jerry check the initializations. You messed up pretty badly.
 
5:06 AM
does anybody care about what snowden revealed
 
that's why you have votes as well as accepted answers :p
 
Ow. His answer. Ow.
He somehow made it worse
 
@JerryCoffin ugly :<
 
@ronnie no, no one. That's why he's on the run.
 
@R.MartinhoFernandes Yeah -- edited the wrong line. Thanks.
 
5:08 AM
@ronnieaka The US government does, that's why they're looking for him.
 
Jokethief.
 
@Borgleader haha clever, but i mean like the people. should we be worried what he revealed about the NSA? should the rest of the world give a shit?
 
@ronnieaka government is evul , old news
 
@ronnieaka We would care if he will come in and chat with us.
 
@ronnieaka better question, why are you asking this here?
 
5:10 AM
Hi, do you guys know if it's possible to override a + operator for std::string, so that concatenation (for any type) can work just like in Java? I tried to ask on SO, but I already used up my 50 questions limit this month :(
I'm thinking using variadic functions, but it looks really ugly right now and I have to use stringstream :(
 
@Oleksiy You asked 50 questions in a month!?!?
 
lol
 
Yeah I didn't know there was a limit
 
@Oleksiy what's special about that in Jaba?
 
@Oleksiy holy shit , what did you ak
ask *
 
5:11 AM
Keeping that tipo.
Ffs
 
Still on your ipad/phone @R.MartinhoFernandes ?
 
@Borgleader yeah i don't really don't know why. maybe because it's the perception that people here on stackoverflow give the most intelligble insights on things
 
@R.MartinhoFernandes it's easy to use and readable? Do you think there is a way to do this?
 
@Oleksiy There isn't, AFAIK, though there is a limit for the number of bad questions, bad questions which, as I see, you aren't making.
 
@ronnieaka Youd be surprised at the amount of trolling going on here
 
5:13 AM
ITT "most intelligble insights" == trolling
 
@Borgleader i guess i would be. my image of SO is an experienced clever bunch of geniuses who are wizards in programing lol
 
@Oleksiy what?
Isn't it the same?
 
@MarkGarcia Nah I'm saying appearances are deceiving :P
 
str1 + str2
 
@R.MartinhoFernandes No, it doesn't work for int for example
 
5:15 AM
How is it more readable or easier to use in Java?
 
You can do "ewww" + 3 in Java?
 
@Oleksiy use templates
 
That's the bad kind of easy. (There's srd::to_string now that helps a bit)
D T T fgg da fh C hj
 
@Borgleader I'm pretty sure you can? It doesn't matter, I want to be able to do it in c++
 
@Oleksiy In C++, you mostly want to be explicit in general, especially with conversion to strings. For integer types, might be good to std::to_string the int first.
 
5:17 AM
@Oleksiy here you go
 
@MarkGarcia I know, but what if you have like 5 ints to concatenate
 
also I would suggest to not overwrite std but using another namespace name
 
@R.MartinhoFernandes How come your typos have gotten 5x worse than when you started chatting?
 
@MarkGarcia I know to_string but it's really ugly and verbose if you have many things to concatenate
 
aww fuck
i think i just stopped my consecutive day streak
 
5:18 AM
@Oleksiy Use a stringstream
 
@Oleksiy If you have lots of things to concatenate, you might want to use std::stringstream.
 
@Borgleader @MarkGarcia I am already doing that. I want to override something to be able to use + instead.
this is my current attempt: dropbox.com/s/8edfgj88crwdbac/main.cpp
 
Boost.Format
@Rapptz getting tired.
 
@Oleksiy Sorry. C++ style != Java style (I must be clear that the result is true).
 
5:21 AM
@Oleksiy It's a lousy idea, but trivial to implement if you insist. coliru.stacked-crooked.com/…
 
Also, it's getting cold here and I'm severely underdressed.
 
@Oleksiy Why?
 
@Oleksiy Well, as for your attempt, you aren't using + in there. :P
 
well since Java is written in C, you can always reuse Java's strings class in C++ :p
 
@MarkGarcia I know, I didn't get there yet :D
 
5:22 AM
well since Java is written in C, you can always reuse Java's strings class in C++ :p
 
@Oleksiy this not good enough for you ?
 
@Oleksiy Of course, for real use, you probably want to use std::to_string. If you're going to use lexical_cast, you probably want to use Boost's (which has specializations to avoid fiddling around with stringstreams for common types, checks for correct conversion, etc.)
 
@Oleksiy I'll go with @JerryCoffin's method, if you insist in concatenating with +.
 
@A.H. OMG yes! That's exaclty what I needed.!
 
workaround
 
5:25 AM
It's what you think you need, but only because you insist on doing this the stupidest way possible.
Just fyi.
 
@CatPlusPlus huh?
please elaborate
 
just have to say thats a stupid way, and calling an operator as a function looks silly
 
why exactly is that stupid
 
Bad copy&paste. Dammit. I'll be silent for a while least you guys start thinking I'm totally bananas
 
@R.MartinhoFernandes huh?
 
5:26 AM
Robananas
 
Use Boost.Format/FastFormat.
 
@R.MartinhoFernandes We do, but the bananas are usually of the Unicode type that usually display as an empty box...
 
sstream
 
@ca
@CatPlusPlus why should I include an extra library if I can do it in a few elegant lines of code?
 
They're not elegant.
 
5:28 AM
they should come up with an architecture that knows what a string is and has a concat operation
 
Maybe someone else has patience for explaining the basics, don't ping me tia.
 
@Oleksiy my code sample isn't fool proof, you need to specialize for T = basic_string
will also mean that whenever your code calls operator + on string it will invoke the one I supplied
 
That's just what I need.
It's exactly the same as the default + operator, except it works generically (with multiple types)
 
there are geniuses who love to live dangerously ... and then there are idiots who love to live dangerously ...
 
5:31 AM
I just need to make sure it's an int or another numeric type
 
@Telkitty猫咪咪 at least the geniuses know what they're doing :P
 
so true :p
 
@Oleksiy It's what you currently think you need. In reality, it's generally preferable to convert strings to a more meaningful form as quickly as possible (usually in operator>>) and delay converting things to strings as long as possible (usually in operator<<).
 
hello, cat @Telkitty猫咪咪
 
hello donkey horse
 
5:36 AM
@JerryCoffin Well, it's the only way that works for me, so until I find a better solution, I will use this. "Generally preferable" is kind of a weak argument, no offence. I'm just tired of people criticizing something without explaining why it's so evil.
 
Damn pant zipper! Very hard to zip when after completely pulling it down. I can only pull it up using pliers, something I don't have right now. :(
 
Your problem makes no sense btw
 
@Oleksiy apparently everyone can concat ints without your problem :s
 
@Oleksiy Without knowing more details about how you're abusing strings, it's hard to be more specific about the problems you're causing. Bottom line though: type checking is a really good thing. Converting data to strings turns all other types into one thing that can no longer be type-checked, deprives you of overloading, etc. In short, it turns a type-checked language like C++ into a crappy imitation of a crappy language like PHP.
 
@JerryCoffin technically its just shorthand for to_string
so you still get type safety because the compiler will spit on you if you attempt it with something that to_string isn't overloaded for
 
5:44 AM
@A.H. do you know of a way to check for the type before calling to_string?
 
@Telkitty猫咪咪 hey hi how are you ??? you seems quite busy these days
 
@Oleksiy don't use + with types that don't appear here
 
@A.H. Yes and no. It's a way of both converting something to a string, and concatenating the result with some existing string. You're thinking at too low a level though. The real point is (unless you're writing something like a word processor) most of the code shouldn't work with strings at all. As I already said, you should convert from string to something meaningful as soon as you can, and leave it in that meaningful form as long as you can.
@A.H. The point is that you lose any type safety on the result. If you put (for example) a name and an age in the string, the compiler can't warn you about passing that string to something that expects a string holding entirely different data like, say, an address and a phone number.
 
@JerryCoffin Oh I see your point , I was talking on a lower level
 
5:49 AM
@Rapptz these are called concepts right?
 
No
It's just type traits.
 
Concepts are not in C++
 
I really should get around to actually learning TMP
 
this isn't tmp either
 
@ScottW probably
 
5:51 AM
ugh T_T
 
hey don't try to one up me!
asshole!
 
"Scott what are you doing?" "Getting a life"
 
@ScottW it gets groovy after 3 minutes :D
 
@StackedCrooked Would you prefer that I (at least) six-up you?
 
I gave you two upboats last time
 
6:03 AM
@NipunGogia hello hello
 
> How to implement it to skip characters [solved] [on hold]
oh dear
 
@LightnessRacesinOrbit You missed the guy who wanted window coordinates and tagged php & mysql
 
@Borgleader excellent!
was that last night?
 
no, it was today, let me fetch the links (he posted it twice)
 
yay
waits with glee
 
6:09 AM
Original post and a few hours later another post
 
@Telkitty猫咪咪 so at present working on which domain
 
hahaha
ALLAH AKBAR
 
@NipunGogia ios (mainly), also a bit Android and linux
 
this one's good, too: <script type="text/javascript/php">
 
@LightnessRacesinOrbit lolwut?
 
6:13 AM
guess he figured he needed that when "mixing Javascript and PHP"
 
@LightnessRacesinOrbit <!DOCTYPE html/php> wot
 
@Rapptz Can you tell they have 0 idea what they're doing?
And 0 knowledge of how to look up the proper form?
 
@Telkitty猫咪咪 hey its good... so help me on ios
 
@NipunGogia if I can ... sure
@ScottW lol, one of your 18 wives is doing all good ... not good good, but not dead kind of awesomely good :D
 
6:24 AM
@chris It does look that way, but is the intent here to help educate them, or just laugh at them?
 
4 hours ago, by Telkitty 猫咪咪
Had korean BBQ buffet on Friday, ended with a sore stomach and painful tummy, but went on overnight hiking trip on Saturday anyways. Experimented with fire (BBQ in the wildness), hit my own hand with a rock while setting up the tent. Now my whole body aches, also have sore tummy and sensitive, wounded hand.
much better than this morning
 
@Telkitty猫咪咪 again hiking trip :)
 
Yeah I am into overnight hiking trips ... that and ocean swims. But since it is winter I haven't done the later for 5 months.
 
While every creature in Australia tries to murder you :P
 
@TonyTheLion Scott is cheating on you!
 
6:28 AM
@Telkitty猫咪咪 amazing
 
@JerryCoffin Well, I don't even touch web stuff and both of those were one of the first things I learned of the little I know. It seems very hard to not find this information, coming from where I am.
 
@NipunGogia yeah those two are having an online affair
 
@JerryCoffin The latter, obviously. Why?
 
@chris Oh, no argument that they seem...uneducated. I just dislike sitting around talking about how stupid/ignorant they are, with no attempt at helping (or seeing others do so). I don't mean to get preachy or moralistic (nor am I going to try to tell anybody what to do), but I do find it ... distasteful.
 
The point is that the OP has guessed. There is no way that they got that doctype from a learning resource. Why would anyone take the attitude of such a wild guess and treat it as a given, not even mentioning the guess in their post? It's silly.
That bit is ignorant and stupid. You don't need knowledge to be sensible, or to perform a Google search.
 
6:34 AM
@JerryCoffin Ok, I see your point.
 
> hit my own hand with a rock while setting up the tent
women vOv ... :P
 
@StackedCrooked My old tent required to nail in 4 pegs in the ground. Current one requires nailing 15 pegs into the ground. Guess what? We camped on some really hard surface - there was probably a huge rock beneath 0.5cm dirt on the surface..
 
Huh I guess I never knew that Gibraltar was part of the mainland. How retarded
 
It is weird, during extreme sports some people (like me) don't feel the pain as acutely as one would under normal circumstance - probably because of the amount of endorphin flowing in the body
 
@Telkitty猫咪咪 hey hows your teeth now...
 
6:47 AM
going through root canal treatment :/
 
@ScottW Baby! You better have a decent explanation?!
26 mins ago, by Scott W
I'll fly out to Sydney to come see you, and we'll make passionate love by the fire
I see how it is.
I'm getting a divorce
 
0
Q: I need a standard c library ,anyone can provide it for me pls?

user2695400I have learnt c++ for years and made several prijects with it ,but i dont know what is the std library like and how does it wokr.

 
OMG! Crap questions.
 
7:05 AM
> Dude, apply for everything. Where I live, there was a 2k scholarship for woman who did the most for feminism. Requirements: be a girl. One person applied and that person won. It was a guy.
A guy won the woman's activist scholarship.
 
Some of them are actually pretty funny, but someone in my university group posted it, so I was like eh, why not.
 
7:30 AM
> One of my friends first year cited wikipedia and the prof wrote on the page "This must be your first time, 0%".
 
@ScottW <3 <3
I'll accept it <3
 
@TonyTheLion "This morning on 'How the shatter the last semblance of your hope for humanity'"
 
@thecoshman There is no hope.
 
@TonyTheLion that's the spirit :P
 
7:37 AM
Oops, forgot it was night and laughed.
 
@chris poor fella
 
Under college hacks, someone posts this
> you can make a shank or shiv out of sheets of paper. all you have to do is roll enough paper into cone shape - tightly packed.
if the point of the cone is nice and sharp, it should have enough structural integrity to pierce skin but you'll have one or two shots at most.
may sound dodgy but if you strike a major artery, game over.
good luck.
 
@chris should tell the professor to look at wikipedia's citations
 
@chris Sounds more like a prison hack.
 
@A.H. That's what you cite.
 
7:38 AM
Who needs shanks in college?!
 
@TonyTheLion First reply:
> are you in college or prison?
 
-1
Q: Your Favourite Software Development Sites

Farhan KarimYour Favourite Software Development SitesI have joined a university recently and doing BS (Software Engineering) i want some informative software development sites for daily knowledge basis to improve my knowledge in this field,programming language we will be studying is C++.For example i used we...

 
I learned yesterday that kids from like 10 years old can be sentenced as adults in certain US States.
 
@Rapptz Already cved as OT.
@TonyTheLion I feel bad for any of them who aren't those kids who scream and stuff in CoD.
I don't even play it and they piss me off.
 
7:40 AM
@chris lolwat
 
@TonyTheLion to be fair, I don't see why 'he was under 18' is a valid defense for most crimes. Do 13 year olds really not understand the beating a child till it is nothing but a bloody pulp is wrong? Example, Bulger brothers.
 
> Better college hack: Don't go to wherever this guy goes to college.
 
Obviously I don't think locking them up with adults is right at all.
 
@thecoshman Younger kids don't. So it's just haggling over where to draw the line, really
also, I'm pretty sure "he was under 18" has never been a valid defense for a crime. It just means you won't get thrown in jail for your crime, not that you're found innocent
 
7:49 AM
@jalf indeed, except, I think it's near impossible to draw a line on such a matter. It is both highly dependent on the child in question, and constantly changing as times change.
 
@thecoshman but unless you want to fill the jails with toddlers, you have to draw a line somewhere and give them some freebies
Also, I believe a part of the reasoning is the outlandish idea that punishing criminals shouldn't just be to make the victims feel better, but also to encourage better behavior in the future. I'm not sure you'd achieve that by throwing a 13-year old in prison with a bunch of old seasoned criminals and child molesters ;)
 
The question is, does prison make a criminal a non-criminal when released?
 
@TonyTheLion In some cases, yes. A better question is, what determines whether this happens, and what can we do to increase the probability :)
 
Yea
I believe more should be done to rehabilitate criminals rather than merely throwing them in prison for a number of years.
 
Is the phrase "double pointer" used anywhere as an alias of "pointer to pointer"?
 
7:57 AM
@jalf or think of a better way of dealing with people who do not understand the social convention of right and wrong, something other than locking them up with others who openly flaunt such social conventions.
 
Yup
 
@MohammadAliBaydoun I've used it to mean that
 
But I believe the "better way" in the case of minors is usually considered to be "give them a stern talking-to and keep an eye on them in the future, without otherwise upending their lives" :)
 
@jalf 'some', I think 'few'. But more importantly, the notion that people who go to jail for 'mr meaners' (say a speeding ticket) and come out ready to start supplying drugs or what not.
 
@TonyTheLion Is it standard in any way? :p
 
7:59 AM
@MohammadAliBaydoun donno
 
@jalf ¬_¬ if only the parents where doing their job in the first place...
 
@thecoshman yea
 
@MohammadAliBaydoun quad pointers
 

« first day (1038 days earlier)      last day (3896 days later) »