« first day (1021 days earlier)      last day (3930 days later) » 

3:00 AM
TIL there's a full screen mode in Windows Explorer (F11).
 
frankly, I'm beginning to question the purpose of going back and seeing my doctor again
he'll probably just say the same old shit again
and ask me for my symptoms again because what, his computer doesn't have them written in?
 
well....it's difficult to communicate with Western guys..@DeadMG I can't tell whether you are joking...
but if not, hope get better soon
 
Dammit, I ran out of USB 3 ports... How the hell am I gonna copy my Anime onto my desktop?
 
@Mysticial Uh, remove currently plugged-in device? :P
 
@Mysticial You do realize it's possible to temporarily unplug something, right?
 
3:09 AM
@JerryCoffin No I don't.
 
@Mysticial I was afraid that might be the case. :-)
 
Actually... the thing I started this morning still hasn't finished by the time I got back from work...
And I can't really unplug that until it's done.
 
@MarkGarcia: "Guys, why the downvotes? Yes, this question is off-topic, as it goes in Stack Overflow's guidelines" You just answered your own question. It is not useful because it is antithetical to the guidelines of the site. I'm far more concerned that 16 people felt that this was a question worthy of an upvote. It doesn't matter how much research you did if it's not appropriate for the site. — Nicol Bolas 12 mins ago
Something's really wrong with the current system.
 
@Mysticial Yeah, that could be kinda bad. Somebody who knows about things like that should write some software to let it recover when/if a hard-driver fails temporarily...
 
0
Q: floating-point constant comparison

boletoIn the example below, if uncomment float f = 0.0;, and replacing the return(0.0 ? 1 : 0); with return(f ? 1 : 0);. Output is : "NIL" /* file main.c 32-bit C/C++ Compiler Ver. 15.00.30729.01 cl -W4 -MTd -O2 -TC main.c -Fetest */ #include <stdio.h> int my_func(void) { /* float f = 0.0;...

^^ How do floats implicitly convert to booleans?
 
3:15 AM
contextually converted to bool
Don't know if it's a C++ only thing
doubt it though
also that's a double
0.0 is a double, not a float
 
This is really unfair!!! My apparently right and useful comments flamed?!! Might be good for me to put a stand on meta.
 
this is the true next gen
 
@MarkGarcia ?
 
<Comments Deleted> If you would like to continue the discussion on whether this is on-topic or not, please head to Meta. — animuson 39 secs ago
And I feel like arguing with mods. @Tellkitty! Help me in here!
 
3:20 AM
Go ahead and make a meta thread if you want
Since when is that guy even a mod?
 
@Rapptz When Will retired, he took over.
 
Why is his name not blue
 
@Rapptz I must present a really good argument. I expect this to be controversial. Well, like all meta discussion posts.
And he deleted all the comments.
 
@MarkGarcia Utimately, haters are gonna hate. It's kinda pointless trying to convince other how to/not to vote.
 
Cause I told him how dumb it is to keep comments that just say C++ is hard
 
3:22 AM
@Mysticial My problem is not with the voting system. It's the off-topic reasons, specifically the "opinion-based" one.
 
I agree that the question is off-topic. But I wouldn't downvote it.
 
@Mysticial Yeah me too. It's just a shame.
The question's not bad. It isn't like those dumb "help me plz" questions.
 
Not that I ever downvote anyway...
 
@Mysticial I would much prefer having SO answers these types of questions then having 1 rep newcomers litter the C++ tag with crap like "I need a book" or "this is important plz help" or "Here look at my 3 star programming"
 
How do you view timelines?
I always forget
 
3:25 AM
Personally, I think SE should have a site for these types of questions. That was the original goal of Programmers, but it's turned otherwise.
 
or worse "Heres my homework, do it for me"
 
@Mysticial LearnProgramming.stackexchange.com :)
 
But first, I must eat my lunch. Let's all eat. :)
 
@MarkGarcia nope, workout time
 
@Mysticial stackoverflow.com/posts/18007613/timeline it was reopened by us once for fun
 
3:27 AM
lol
 
@Borgleader We just have a custom here to invite people to join whenever we eat. :)
 
Damn, that floating-point question is still atop the multicollider... The robot lucked out. Had to share traffic it.
 
I wish I'd answer one of those, i wouldnt need to worry about rep for a few days
 
Holy jesus christ parsing ucd data this si horrible I hate my life q_q
 
what data?
 
doesnt the robot have a parser for that already?
 
Yes. But it parses for his specific data structures
 
What are you doing?
 
implementing casefolding
for my unicode strings
 
0
Q: Whats Happening in this for loop?

user2644350Im not sure whats going on here... Its messing my program up. Im not sure if its some sort of memory leak or just Eclipse messing up. Any thoughts on whats going on? Heres a snippet of my code and the Console Output for (int i = 0; i <= 255; i++){ try { System.out.println(i);...

> AND so on....(I had to delete most of it because it went over the max character limit) but you get the point
Seriously...
 
3:41 AM
Hahahaha
he keeps adding to his address
i vtced its seriously obvious
 
@Mysticial should it be printing on two lines though ?
 
@A.H. Look at the first revision.
 
Hmm....I wrote for (int i=0; i<3000; i++) std::cout << i << "\n"; and it printed like thousands of lines of numbers! How did this happen?
 
@JerryCoffin It seems you cant C++ jerry, better learn Objective-C or Java
</troll>
 
>> y progm no work!!! plx halpp!!!! plz hlp!!!! mail me at plz@halp.com!!!
^^ I love seeing those... But they're rare...
 
3:49 AM
2
Q: Difference between postfix and prefix increment of stl iterators?

user1798362Let us take: x = list<int>::iterator y = list<int>::const_iterator z = vector<int>::iterator t = vector<int>::const_iterator Is there any difference between: ++x and x++? ++y and y++? ++z and z++? ++t and t++?

 
Where does the OP mention performance?
 
@Borgleader Well, I'm trying, but ever since I coated myself in Teflon, nothing seems to stick. Should I try VBA instead?
 
Is the OP is interested in the performance difference, then yes that dupe's correct. If the OP is looking for the symantec difference, then no.
 
@Mysticial Either way theres a dupe for that
 
@Borgleader Correct, but not that dupe.
 
3:51 AM
You're welcome to find another duplicate
164
Q: What is the difference between ++i and i++

The.Anti.9In C, what is the difference between using ++i and i++, and which should be used in the incrementation block of a for loop?

Here's a good one
 
@Mysticial Besides the first answer covers the difference between ++i and i++
 
I still can't believe that "what's the opposite of std::cout" question got 2 upvotes
1
Q: How to make the user type a value instead of storing a constant value?

user2624929I have made a simple program in C++ and this is the code: #include <iostream> using namespace std; int main() { int number; int square; number = 5; square = number * number; cout << "The square is "; cout << square; return 0; } what it does is basically taking t...

I tried finding a duplicate for that but ironically it seemed no one has ever posted a question about how to do basic I/O with C++ because it's on the first chapter of every C++ book I'm sure.
 
Gosh, I wish I hadn't been working all day -- it looks like a missed lots of really great questions. I'm so very sad!
 
...
 
@Rapptz cout and cin are the first chapter. All the other IO stuff are later.
 
3:57 AM
Reverse iterators in Unicode
.... Eheheheheheheheheheh
 
@Mysticial Yeah good point
 
@ThePhD Edocinu iterators hehehehehehe .....
 
Huehuehuehuhe.
 
It's not like they want to teach cout and cin that early. But you really can't do shit if you can't see what shit you're actually doing. Otherwise, you'll just end up shitting all over the place.
 
SO would be a lot better place if we had more of these well written questions, then these "what the shit is wrong with my code pastes a billion lines of console output"
 
4:02 AM
And what happened to all the good performance questions? There hasn't been one in C++ for like half a year.
There's this one. Question itself isn't that great, but had some good answers.
 
That wasn't reddited either.
 
@Mysticial All those answers suck. Especially that nut case going on about valarray. I mean, nobody uses it; why even bother mentioning it at all?
4
 
1
Q: C++11 thread crash when access boost::asio::ip::tcp::socket

avhackerI found that accessing tcp::socket from a std::thread will cause program terminated. Here's the sample program from boost. http://www.boost.org/doc/libs/1_53_0/doc/html/boost_asio/example/echo/blocking_tcp_echo_server.cpp Compile it: g++ blocking_tcp_echo_server.cpp -std=c++11 -lboost_system -lbo...

could not repro?
 
@JerryCoffin lol
 
@Mysticial Don't I remember you saying you had something good to post, but were waiting for a good time?
 
4:16 AM
 
A vacuous truth is a truth that is devoid of content because it asserts something about all members of a class that is empty or because it says “If A then B” when in fact A is inherently false. For example, the statement “all cell phones in the room are turned off” may be true simply because there are no cell phones in the room. In this case, the statement “all cell phones in the room are turned on” would also be true, and vacuously so, as would the conjunction of the two: “all cell phones in the room are turned on and turned off”. More formally, a relatively well-defi...
Hmm... That p -> q thingy.
 
@JerryCoffin I kinda have an okay analogy for false sharing. Though I should probably flesh it out some more for when the perfect question shows up.
 
@EiyrioüvonKauyf Yes, wc3
Good morning everyone~
 
@Mysticial or better yet, make the perfect question, ill post it and you can answer it :P
 
or Good evening for those of you in the United States
 
4:31 AM
@JerryCoffin Think you'll get anything when you reach 200k rep?
 
@Borgleader Other than "200K" next to my name, no.
 
hello all
 
Greetings
 
can any one tell my the way of searching word from string in c++
 
thats been answered on so multiple times
 
4:38 AM
that mean you will not anser it again ?
 
@JerryCoffin But Jon Skeet got a painting of a unicorn when he reached 200k.
@FaheemRajput That means you could do some research on your own and therefore learn a valuable skill for a programmer: the ability to get stuff done by yourself.
 
@EtiennedeMartel Did Darin, Marc, BalusC, etc?
 
@JerryCoffin Probably not. But you're way cooler than them.
 
i have a string liek "apple app"
i want to search app word but find function search "app" from apple also i dont wnat this
 
4:40 AM
Then let me ask you this. What sets apart the first instance of "app" with the other?
 
FUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUCK
CASEFOOOOOOOOOOLDIIIIIIIIIIIIIIIIIIIIIIIIIIIIING
 
@EtiennedeMartel Given the percentage of my posts on meta that more or less directly tell mods (and such) that they're idiots, hypocrites, liars or just plain wrong, I kind of doubt that the upper management (so to speak) thinks the same.
 
@EtiennedeMartel i search a lot i am new in c++ it make me more comfuse
 
4:47 AM
@FaheemRajput This problem is not specific to C++
You want to find a word in some arbitrary piece of text, what would you do?
 
Come on man, search on Stack Overflow.
 
you all are not supportive
 
> Lounge<C++>
Actually, I think we're being as supportive as possible, because if we'd give you a direct answer, we'd be hindering your ability to solve problems on your own, which is a very important skill
 
i complete my all task by my own at last i am come hare because i am stuck on thise from 5 hourse
 
Consider "apple app". Look at the letters around "app" in both instances.
~That's all I'm going to say~
 
4:54 AM
@FaheemRajput 1) What have you done during that 5 hours? 2) Maybe it's time to get away from trying to code, and just sit back and think for a few minutes. Can you tell us anything about the differences between the instances of app you want to find, and the one(s) you don't?
 
 
I remember pulling the Pale Blue Dot card for a project about Asteroids I had
 
i am using find function which search word those contain by string
 
Yes, that's a good start. Now you realized that it's not good enough because "apple" would be identified as the word "app".
But tell us, why is "apple" not "app"?
 
@nightcracker I hate those obscure kinds of problems.
 
@nightcracker Put the io_service as the first member.
 
@LucDanton ? that's pretty much what I wrote in my answer
 
Oh I only read the question. My bad.
 
5:37 AM
I figured it out shortly after posting the question
 
@LucDanton You're back!
Hi.
 
Where have you been?
 
Taking the summer casually.
 
Oh? Everyone Some people was were conspiring that you were upset with us. How was/is your summer?
 
5:41 AM
I'm glad I'm back to nearer the ocean this year. It's been really laid back, with lots and lots of vidya gaems.
 
Welcome back @LucDanton!
 
@LucDanton Oh my god, Luc-san! We're so glad to have you back! <33
 
I'm still not done with my summer, but I'm picking up on some coding every now and then. I tune in when I code.
 
did any of you guys check this out? I stumbled upon it on hackernews and was pretty impressed
 
tl;dw
 
5:46 AM
yeah man.. almost 2 hours..
 
"This is the most exciting new development in computing and hair fashion in ten years."
xD
 
yeah I chuckled quite badly at that one too
@Rapptz try fitting talks describing CPU architectures in under a day
well actually I'm mostly looking at x86/64 as a culprit
 
@nightcracker It's okay man, I'll just check the comments of some discussion sites for a tl;dr.
 
@Rapptz in one line it's pretty much a CPU architecture that dumps registers alltogether in favor of a FIFO queue. Instructions take their arguments as an offset from the top of the queue (called the belt), and push their results on top.
 
5:52 AM
Yeah I see a lot of no op there.
My mom isn't the most technologically inclined person and she got a new computer with Windows 8... She literally started crying.
Thanks, Steve.
lol
 
Of joy? :P
 
6:16 AM
@Rapptz literally?
 
literally.
 
My mom asks me to type for her all the time
 
@Rapptz Allow me to suggest classic shell.
 
@nightcracker sounds interesting :3
@nightcracker though ... i like my registers :| sometimes
 
I'll be interested to see benchmark comparisons when they have test units
 
6:29 AM
what I'm really excited about is the way function calls work
I expect that can be a huge performance win in real-world code
 
@MohammadAliBaydoun just ignore and move on and refer to the C++ room. didn't gordon or someone say that you help the new people that stick around at least
 
because the compiler can always assume to have a clean belt and can use it fully
also removes fuzz about what calling convention to use - it's logical (no cleanup duty, etc)
 
@Borgleader goddamit
i want my asynch clocks
:'c
they get quite a few benefits
but no one wants to spend money building on new clocks yo
 
@EiyrioüvonKauyf Oh right, we have a C++ room now.
 
:'(
@MohammadAliBaydoun worst case just get rapptz to bin him
 
6:33 AM
@EiyrioüvonKauyf fixed link: www1.cs.columbia.edu/async/misc/…
 
@nightcracker hehe yeah sorry
 
ok sleep time
2 am is great time to start
 
what did windows do this time
telnet is a command you first have to enable
then it works in cmd, but this fails: cmd /c telnet
and it also fails in my console emulator
 
@EiyrioüvonKauyf Asynchronous designs get tried every once in a while The PIV used some asynchronous elements, but most of the chip was clocked. ARM did a fully asynchronous design and offered it for license around 2005 if memory serves -- but I don't know of any actual products that ever used it (though that could just be ignorance on my part).
Ah, here's an article about the ARM design, for anybody who cares.
 
6:41 AM
what is the "Lounge<Chat> project"?
 
What does piotr legnica mean?
 
It's @CatPlusPlus's real name, I think.
 
his name
 
His real name?
 
6:49 AM
@StackedCrooked yes its the cats real name
 
cpx
@StackedCrooked I think it means stone.
Going to sleep yawns night.
 
@cpx G'night. Thinking about it, I think I'll go sleep too. G'night all.
 
@JerryCoffin 'night
 
7:08 AM
Good night.
 
7:24 AM
What are some fun massive online multiplayer games that are free?
 
Xeo
@TheGuyWhoCouldn'tTalkToTheGirl The Lounge™
 
finished watching Sword Art Online. so fucking awesome. wanna play such game
 
@Abyx I would really play the first one :>
 
@FlorisVelleman yeah, with no resurrects, but without brains burning IRL =)
 
7:48 AM
@JerryCoffin woah
 
Xeo
@Abyx You should really read the Novel
The SAO Anime only covers the first 4 Volumes, and kinda badly / rushed for ALO, while the novel currently has 12 volumes.
 
@Xeo yep, I also think so :) I hope it was translated
 
oh, cool. thanks
 
Xeo
After ALO is GGO, which is one of the best arcs.
 
7:55 AM
So i know how to do list comprehension already
I could not stop reading :F
 
Xeo
@chris I only know ri from those :s
Since you hear "futari" all the time for two people
 
8:13 AM
Man. std::multiset::equal_range returns a pair
 
@Xeo Well, it's better having this to refer to so I can slowly assimilate myself with it than having no clue which to pick :p
 
Xeo
mh
 
and it sucks so much, because it can't be used in the range for :/
auto er = s.equal_range(1);
for (auto i = er.first; i != er.second; ++i)
    cout << *i << " ";
 
Xeo
mh
 
Whoa, visual editor on Wikipedia.
 
Xeo
8:14 AM
for(auto&& e : pair_range(s.equal_range(v))) :D
 
@Xeo I was learning haskell through half the night. And then you're showing me this terribadness :). IMHO should be done implicitly
 
@BartekBanachewicz "Basically, many algorithms return pairs of iterators that are actually not guaranteed to be valid ranges."
 
Xeo
A pair is not a range vOv
 
22
Q: Why was pair range access removed from C++11?

HighCommander4I just discovered that at one point, the C++11 draft had std::begin/std::end overloads for std::pair that allowed treating a pair of iterators as a range suitable for use in a range-based for loop (N3126, section 20.3.5.5), but this has since been removed. Does anyone know why it was removed? I...

 
@chris thanks
eh suckage.
 
Xeo
8:17 AM
template<class P>
struct pair_range_type{
  typename P::first_type begin() const{ return _pair.first; }
  typename P::second_type end() const{ return _pair.second; }
  P _pair;
};

template<class P>
pair_range_type<P> pair_range(P&& p){
  return {std::forward<P>(p)};
}
That should suffice.
 
@Xeo typename P::first_type? Why not auto?
 
Xeo
@Rapptz C++11? Or do you mean trailing-return?
 
Oh right, I forgot C++11 has trailing return for a moment.
Silly.
 
Xeo
Yeah, and that one doesn't help, like, at all.
 
auto begin() const { return _pair.first; } would have :(
 
Xeo
8:20 AM
yeah
 
morning
 
hey its tony the pony
 
Apparently the Japanese have a counting suffix for counting sex acts and orgasms.
 
8:24 AM
2 hours ago, by nightcracker
what is the "Lounge<Chat> project"?
 
Damn I keep forgetting to watch the interview with James McNellis on Channel 9
@nightcracker We're creating our own chat
 
@TonyTheLion oh, linky?
 
@Xeo The first and second types aren't equivalent, so it violates the iterator contract. For example, how could std::pair<int, std::string> work like that?
 
@TonyTheLion ah ok
 
Xeo
@DeadMG range-for doesn't give a shit, though
 
Xeo
range-for also works with different iterator types for begin and end
 
@TonyTheLion ah cool
 
@Xeo Pretty sure it still has to compare them for equality to know when to end the loop. And it's also going to be trying to de-reference them.
 
Xeo
... so?
The premise was std::multi{set,map}::equal_range, which returns pair<It, It>
 
for (auto element_it = s.begin(); element_it != s.end(); element_it = s.upper_bound(*element)) {
    auto er = s.equal_range(*element_it);

    // use this to get all the elements with given name
    for (auto i = er.first; i != er.second; ++i)
        cout << *i << " ";

    // use this to get the number of them
    cout << std::distance(er.first, er.second);
}
that's what I needed it for @Xeo ^
 
Xeo
8:29 AM
How is that not an infinite loop? Or is the *element supposed to be *element_it?
 
ah crap yeah that's just a mistake in renaming
I called it element on Coliru and added _it in SO answer text.
ghci> [x | x <- zip c (drop 1 c), fst x == snd x]
[(1,1),(2,2),(2,2)]
me gusta.
 
@TonyTheLion oh, they talk about SO and stuff
 
hey!
Can someone plz tell me what int **P means?
int **p
 
8:46 AM
a pointer to a pointer to an int
or more specifically, C shit
2
 
well I wouldn't call that more specific
 
how to use? int *p would store the address, is it also used in c++?
 
In this context, I would ^^ (yeah, I'm trying to be derogatory ;-;)
 
Xeo
@BartekBanachewicz what's c?
 
@jalf ohhhhh
 
8:48 AM
@NSharma int** p would store the address of an int*
similar to how int* would store the address of an int
 
T* stores the address of a T. 'nuff said.
 
okay!
static int a[]={0,1,2,3,4};
int *p[]={a, a+1,a+2,a+3,a+4};
what would this do?
 
@Xeo [1,2,1,1,2,2,2,5,9]
 
@MohammadAliBaydoun What is C shit? Is it another managed environment like C#? :)
2
 
8:53 AM
@nightcracker it's spot on
 
@MartinJames It's whatever you want it to be~ ;D
 
@BartekBanachewicz we have to have respect for C - read the URL - this is clearly a C lounge
 
Like me, I'll be your pointer <3. Give me your address
 
@nightcracker fuck not using unicode proper URLs. It's not our fault.
 
Xeo
graaah, stupid MonomorphismRestriction :(
 
8:54 AM
@MohammadAliBaydoun I had to ask - I 've also heard of a 'Java shit' in here, maybe from same vendor :)
 
@MartinJames you mean, the well-known language C💩?
 
@Xeo well I still don't know what that is, but first things first
anyway, Haskell is the most awesome language on this planet (so far)
 
BANANAS
 
I'm too stupid for Haskell
 
@jalf It's no good sending me 'Unicode shit'. My FF on Vista 64 just dumps hexboxes on me :(
 
8:55 AM
I tried it multiple times ;<
 
@MohammadAliBaydoun um? The basics are hell easy.
 
@MartinJames well, you can probably guess which one it was anyway :)
 
i mean lists and stuff
 
C±±
 
and list comprehension, whilst being easy, I think is extremely powerful
also tuples. Also awww.
 
8:56 AM
Yeah, the basics are simple, but I can't go beyond them very much.
 
I'm opening chapter 3
 
Xeo
@BartekBanachewicz I don't exactly know either, but I've been encountering it multiple times in the last few days, leaving my functions with signatures like [()] -> [((), ())] :s
 
haskell does one thing very well, that every statically typed language should copy: type inferrence
 
Xeo
When I disable MR, I get what I want: Eq a => [a] -> [a, a]
 
@Xeo () is an empty tuple?
 
Xeo
8:57 AM
Unit
so, yes
 
@MohammadAliBaydoun Unfortunately all learning materials on Haskell I feel are condescending. So rather than what I feel is helping with the paradigm shift, they indirectly insult the different paradigm (imperative). Just my experience.
 
Xeo
Unit is the expression-friendly version of void
 
I thought that tuples of size 1 were forbidden
oh well.
 
Xeo
It's not of size 1
 
> While there are singleton lists, there's no such thing as a singleton tuple. It doesn't really make much sense when you think about it. A singleton tuple would just be the value it contains and as such would have no benefit to us.
 
Xeo
8:58 AM
@Rapptz Even LYAH?
 
@Xeo Yeah.
 
Xeo
@BartekBanachewicz () != (a)
 
@Rapptz I haven't found any insults yet
 
Xeo
() is the unit type, with the only value being ()
 
@Xeo that's obvious.
@Xeo oh, that's better
 
8:58 AM
@BartekBanachewicz You will (Borgleader did soon after list comprehension)
 
so it's both a type and a value, in a sense. Like nullptr_t and nullptr
 
Anyway they're all over the place so if you don't find one now you will later.
 
@Rapptz well not that I will go and shit in front of author's door for that, huh?
 

« first day (1021 days earlier)      last day (3930 days later) »