« first day (997 days earlier)      last day (3952 days later) » 

2:00 AM
I have gotten nothing productive done today.
I would feel bad for being lazy, but I am to lazy to feel bad.
 
I'd rather be lazy than deal with Doxygen
 
Why do people color their text to light colors you cannot see? :\
 
I can see my colours just fine.
 
Is Google Earth visually any different than Google Maps
 
@Rapptz I read a forum post (white background) and they used yellow.
@Rapptz what part of it? (I haven't used it)
 
2:07 AM
All of it.
Fuck doxygen.
 
From what I know, it would consist of two parts: the actual formatting in the source, and... some sort of, for lack of a better word, build of the documents. Or maybe I am thinking of Javadoc.
 
Same shit I guess, doxygen is ugly.
It's gotten better I guess
My main gripe with it is the unnecessary verbosity, lack of organisation, ugly default style
 
You were bored? Here's an idea, Doxygen Done Right :)
 
Do some people dislike documenting things because... they find it boring, or because it is something ugly they didn't make? (and thus, need to learn what it is)
 
I don't mind documenting things.
I think this is pretty neato.
But I wouldn't use it.
 
2:15 AM
I don't know why I look in tigsource. It always makes me feel bad.
 
@BartekBanachewicz Sorry for interruput @BartekBanachewicz 7.1.6.4.2 If the declared return type of the function contains a placeholder type, the return type of the function is deduced from return statements in the body of the function, if any. auto g() { return 0.0; } // OK: g returns double
 
Okay..
That's C++14..
 
Delegating constructors is just the ability of constructors to call constructors, correct?
 
You can currently do auto g() -> decltype(0.0) { return 0.0; } in C++11 if you want.
 
@Rapptz yes, we talked about the auto without trailing return type last night and he mentioned it but I didn't find this example in n3290
 
2:22 AM
I see.
 
Ugh... Picroma registration still down
 
Hello all.
 
Sup
 
Hi
 
I feel great after fixing a network loop problem.
:)
Though it's just a trivial fix.
 
2:25 AM
@Borgleader may I ask what's cubeworld's fun?
 
Plugging out just one wire and the whole net's running fast again.
 
@yuan Well, I liked Minecraft and this looks better so I want to try. Also a few other members here seem to enjoy it.
 
@Borgleader I'm going to have a try
 
Qt Creator should have a what's new and fix list included on its updates.
 
Is it being DDosed?
 
2:27 AM
That's what the news post says
 
Hrm... I wonder what kind of people do such things.
 
It's being DDoS'd by Minecraft fanboys probably /tinhat
 
tinhat?
 
A tin foil hat is a piece of headgear made from one or more sheets of aluminium foil or similar material. Alternatively it may be a conventional hat lined with foil. One may wear the hat in the belief that it shields the brain from electromagnetic fields, to prevent mind control and/or mind reading, or to limit the transmission of voices directly into the brain. The concept of wearing a tin foil hat for protection from such threats has become a popular stereotype and term of derision; the phrase serves as a byword for paranoia, persecutory delusions and belief in conspiracy theories. Thi...
 
@Rapptz Actually, that's what I was thinking too
I guess I'm paranoied?
 
2:32 AM
Seems likely to be honest.
 
I have a hard time picturing what they hope to gain.
 
I dont think they have anything to gain. I guess they feel Cube World is some sort of ripoff and are trying to put "a stop to it"
 
Do they do it to all the other clones too?
From what I have seen, this is less of a clone than others. More... innovative.
 
I dont know, I dont even know whoe they are
 
True.
 
2:36 AM
dear journal, year of 2013. It's been years since I ventured out of the box. My journey has been long and arduous; I'm starting to think no one else is out here
 
What do you call those circle mazes?
 
@Pawnguy7 Crop circles?
> EDA's CIO, fearing that the agency was under attack from a nation-state, insisted instead on a policy of physical destruction. The EDA destroyed not only (uninfected) desktop computers but also printers, cameras, keyboards, and even mice. The destruction only stopped—sparing $3 million of equipment—because the agency had run out of money to pay for destroying the hardware.
 
well there's not malware on it anymore
 
@Borgleader Why don't they just use MSE!
 
Poor hardware.
Apparently labyrinth can designate a maze with a singular, non-branching path.
Though why that is then a maze, I am not sure, because that would be easy navigation.
 
2:41 AM
Now americans know what their taxes are used for! (at least part of it)
 
Good old government waste :D
 
@Borgleader And I thought my school board was bad.
 
guys help me fall asleep
 
Take up the Uberman cycle.
 
2:45 AM
dat xkcd
 
That took me longer to find than it should have.
 
@Pawnguy7 "xkcd counting overflow" is probably what I would have put in without seeing it. It was the first result.
I wonder how much space Game of Thrones will take up on my computer when all the seasons are done.
 
@Pawnguy7 I GET IT
 
I was actually searching while(!asleep()) sheep++. Apparently they aren't related as I seem to have recalled.
 
@Pawnguy7 Wasn't that posted in here?
 
2:48 AM
I just laughed so hard at my own joke I pooped a little
 
@chris I found it on that best programmer jokes thread (the two were together)
ERm... not thread. Question. Thats what we call them here :D
 
3:11 AM
auto add = [](int l,int r)->int{return l+r;};
cout << add(1,5) <<endl;
auto add5 = [](int r)->int{return add(5,r);};
cout << add5(1) <<endl;
error : add is not captured
can any one help?
 
@yuan You can omit -> int. Let the compiler deduce the return type.
@yuan [&add](int r)...
 
@MarkGarcia Isn't that new in C++14?
 
@Borgleader Not for lambdas. Can do it in C++11.
 
@MarkGarcia Thanks, done!
 
3:21 AM
@Borgleader It's improved in C++14.
No more restrictions of single statement return blah;.
 
What?
 
lolwut
 
Dat google translator
 
I didn't do anything >.>
 
Will .then on std::future be included in C++14?
 
3:30 AM
why I can't caught it ?
`int caught = 1986;`
`auto f = [=](){return caught;};`
`cout << f() << endl;`
 
@yuan Use that fixed font button.
 
@MarkGarcia ?
 
@MarkGarcia Sadly, I don't recall hearing anything about it.
 
    code
    code
    code
 
@yuan By the way, the empty parameter list is not required.
That should work, though.
 
3:33 AM
it doesn't show any thing?
 
I'm in school library with old gcc installed. maybe it's a bug or what
 
@chris Too bad. Still, thanks there's Boost.Thread's implementation.
 
3:45 AM
@yuan I just put C::B on my flash drive with the newest one and copied a few settings files on logon.
 
user image
2
lollll (how to ask a girl out 101)
 
@Borgleader thanks a lot, it just worked for girls?
 
@Borgleader Sit as she gazes upon your ugliness and considers your profession, then politely declines.
 
does anyone read/listen to giantbomb?
 
@chris ...in which case you've lost nothing. Seriously: asking a girl out is a complete no-lose situation. The very worst that can happen is that you end up exactly where you started.
 
3:55 AM
@JerryCoffin With a new awkward friend :)
 
@chris Well, okay, there is that.
 
@JerryCoffin Unless you have mutual friends, then it could get awkward. But in general I agree with you, especially when people also tend to move on.
 
@Telkitty猫咪咪 Possible, but in all honesty I can rarely remember seeing a problem arise. Silly aside: those would be "common friends", not "mutual friends". "Mutual friends" would be two people who like each other. When two people both like a third person, that's "a common friend", or a " a friend they have in common", etc. And yes, I know using "mutual" for this case is common (pun noted by not intended), but this is the lounge, so I'm allowed to be pedantic about it...:-)
 
Curse that Facebook and its terminology.
Anyway, does anyone know why std::string(string &&); isn't marked noexcept?
 
Maybe we could add another category: mutex friends. :)
 
4:09 AM
@chris Seems like it should be. The only thing that initially looks like it could be a problem would be if you need to copy underlying objects (e.g., short string optimization) but std::string is instantiated over char, which I'm pretty sure can't throw when it's copied. In fact, I'm not sure you're allowed to instantiate basic_string over a type that could throw when copied.
 
@MarkGarcia mutex is for traditional marriage: lock in for exclusive access :p
unless we are talking about read lock ... multiple friends can access you simutaneously >_<
 
@MarkGarcia That's what happens after couples break up -- they want "their" friends to no longer be friends with their ex.
 
@Telkitty猫咪咪 Semaphores are also applicable. Unlock when there's nothing left! :P
@JerryCoffin Uh, friend contention? :)
Also, if two friends aim for the same girl, we can call it a date race. :D
 
"C++: Where your friends have access to your private members".
 
I can't remember if it's legal to overload operators to take things in std.
 
4:16 AM
@chris No. You can provide new specializations of existing templates over user defined types, but not new overloads (which pretty much sucks, IMO -- you want overloads a lot more often).
 
That's what I thought, thanks. Kind of sucks in terms of containers.
Although you could use a proxy type to overload those anyway.
I'm kind of thinking more like Boost. Assign and whatnot.
 
@MarkGarcia Date isn't, marriage is ... after acquiring the marriage lock, you can modify the girl (make her pregnant). Of course you can modify her without the marriage lock, but it is unsafe. Note: some marriage deadlocks can be solved by wife swapping (I would like to use the term husband swapping :x)
 
@Telkitty猫咪咪 lol. But you forgot to mention exceptional cases! :)
 
Wait, does overloading operator<< for std::string count as specialization then, std::basic_string already being there?
 
@MarkGarcia catch em!
 
4:24 AM
Specializing std::numeric_limits and stuff was about my limit for understanding that rule.
 
@Telkitty猫咪咪 To quote Ambrose Bierce: "The ball and chain of marriage is so heavy, it takes two to carry it; sometimes even three."
@chris No, an overload is an overload.
 
@JerryCoffin Ok, thanks. And hey, N3690 has basic_string(basic_string&&) marked noexcept :p
 
@chris Ah, good deal.
 
Oh wow.
I just misread N3485. I was looking at the move constructor with the allocator parameter.
facepalm
 
@JerryCoffin yes, we need to write exception catching case for three ... but alas why stop at three? :p
 
4:38 AM
Huh
I passed out, so I think whatever sickness I have passed through my body.
I think.
 
@ThePhD maybe you need some sleep :p
 
@JerryCoffin Hee hee, sorry. x3
 
it is good for your health
 
@Telkitty猫咪咪 I think I've had more sleep than I can handle for the moment.
 
didn't you pretty much stayed up all night?
 
4:40 AM
@ThePhD Don't be sorry, be happy!
 
FEEEEEL THE HAAAPPPPPPPPY :DDDDDDDDDD
 
<3
oh wait you said happy not love :p
 
Haha.
Looking for something, Telkitty? <3
@Telkitty猫咪咪 Yeah, but I just intermittently slept and woke up and slept and woke up after having vomited, and then I just tanked for some 5 hours. I think I'll be okay now.
 
vomited? why?
 
Don't even know.
 
4:44 AM
oh :(
 
I'll live. :D
It's good that I vomited I think.
After all, if I didn't, whatever was in my vomit would have passed directly through my system.
Better chucked up the front than coming down the rear, honestly. >.>
 
@ThePhD Yes. It's a natural way of our body to reject bad things that goes into it.
 
@ThePhD If it persists you might want to go see a doctor
For you american citizens:
 
Roflmao
 
5:01 AM
@Borgleader Reminds me of the Simpsons Movie. "You hang up first." "No, you hang up first." "Ok." "She hung up on me!"
 
Ah... the simpsons
 
5:16 AM
in PHP, 1 min ago, by sectus
@rahularyansharma , it's not a problem. It's your task. What is your problem?
Good way of putting it actually.
 
Congrats on your reversal badge! Populist badge soon to follow! — Samuel Liew 30 secs ago
This comment made my day
 
lol reversal huh
 
@Borgleader lol two gold badge on single post
 
@Rapptz Yeah, my "there can only be one" answer is +23 on a -7 question
@NullPoiиteя tow?
 
@Borgleader oops i mean two
 
5:30 AM
If I eventually get populist yeah
so far my only 2 gold badges are Reversal and Fanatic
 
I have one gold badge, Fanatic.
 
I broke my consecutive days streak when I went on a trip "recently" :(
 
@Rapptz no marshal or electorate .. those are quite easy to get
 
I only have 4k rep so I have to manually flag things.
:(
Also Electorate would be hard to get, I'd need ~1,400 question upvotes if I'm reading it right.
 
1400 question upvotes!?!?
 
5:35 AM
> Voted on 600 questions and 25% or more of total votes are on questions
 
I have 2 questions for a grand total of 13 upvotes
@NullPoiиteя Oh you have to vote on things, not the other way around
 
@Borgleader "Voted on..."
 
Oh it's 25% not 75%
 
Electorate was a bit of a pain.
I had so many answer votes.
 
user142019
Morning.
 
5:39 AM
Just to clarify: there's a tendency for answers to get lots of votes, but even really good questions to not get so many. The badge is to encourage people to vote on questions, not just answers.
 
Oh I vote on a lot of questions... downvotes that is
 
I've noticed myself voting less on questions as time goes on.
 
Yeah I haven't voted up on questions in a long time.
 
I got most upvotes from my questions. It's a pity I only get +5 rep from them.
 
Not too many interesting ones pop up anymore. There are still the standard ones of easier problems, but well-presented, but they don't pique my interest enough to auto upvote them unless I realize.
 
5:41 AM
@JerryCoffin I've noticed that. It seems to be unnatural, having questions are on top, and the ratio is 1 question:many answers.
7
A: Can we please get a /users/me URL?

AntonyThis URL goes to your current profile: /users/current It also accepts query strings: /users/current?tab=reputation

^ Lightning fast indeed!
 
Hmm, guess I'm no longer a high school student. Time to edit my profile.
 
You dropped to low school?
 
@chris The war on drugs has succeeded -- one more teen-ager not getting high any more!
 
@JerryCoffin Clever.
 
@chris I have to try to come up with some way of keeping from crying when I think about the amount of money wasted on such nonsense.
 
5:54 AM
The sad thing is that I look like a junkie in a way, but I don't plan on it.
"No. More thorough answer: He|| no!" - Jerry Coffin
Very thorough indeed.
 
@chris I do try... :-)
 
I dont understand how it compiles on gcc though
a[0] = a3; and a[1] = a4; should throw errors.
 
Not on the Coliru test I did.
 
Perhaps older C.
Not sure what all insanity C lets you get away with.
 
6:06 AM
I get warnings when compiling: warning C4047: '=' : 'int **' differs in levels of indirection from 'int *'
fuck C
oh hey its the wrong level of indirection... bah it'll be fine. fuck you C, fuck you
 
@Borgleader For a more challenging one (that doesn't mismatch levels of indirection): stackoverflow.com/a/1871265/179910
Figure out what it prints before you run it, and you get a shiny gold star...
 
Hm.
 
@JerryCoffin Am I allowed pen and paper?
 
@Borgleader Probably shouldn't, but okay.
 
Alright challenge accepted ill do it in my head
 
6:12 AM
@Telkitty猫咪咪 hey hii good afternoon .. how are you ??
 
@JerryCoffin Clever.
 
@Rapptz Butt ugly, to be honest (but yes, also quite clever).
 
Damn. What the hell is that trick?!
 
@MarkGarcia Not really a trick, just multiple levels of indirection to follow through to figure out what's going on. There is a real progression from beginning to end as well - the first printf uses the least complex addressing, and the last the most complex.
 
@JerryCoffin Still very awesome. And hey, from 6 your answer got bumped to 10! :D
 
6:19 AM
@MarkGarcia Oh, now that's cool! I've been needing another "nice answer" badge...don't have nearly enough of them! :-)
 
I did once modify that to be even more vomit inducing horrifying, but I think I decided it was too awful to let anybody see, and deleted the only copy of it.
 
@NipunGogia I am good, yourself?
I might provide free apps, but I will never let anyone see the source code :p
Sometimes I am ashamed of my own coding style but too lazy to tidy up
 
@JerryCoffin I had to look up operator precedence... Neat trick
 
@Borgleader Yeah, it does some fiddling with that too.
 
6:34 AM
@user2461517 A: I don't see the problem. The eval visitor from my answer already does exactly this? B: a tree is not reverse polish notation. C: Also, you cannot store a tree in operVector, because it is not a recursive data structure. — sehe 21 secs ago
^ I get the feeling sometime people stumble on the Spirit answers for homework purposes. I really do wonder what a prof will say when they hand in something clearly derived from an 'advanced level' SO answer...
 
> example provided by "sehe" to
 
mmm? ah. the question. It's not about the OP there.
 
I read that as if OP was making air quotes as if saying "its not really him but ill give him tribute anyway"
 
Woah. Mind blown! This was the OP?!? I assumed it was another userXXXXX since the answer is so old
 
@sehe I'd guess many profs know C++ poorly enough they'd never notice anything except (maybe) that it took longer than most to compile.
 
6:36 AM
@sehe Check the question
 
@JerryCoffin .... ouch. I'm sure they'll negatively grade anything they couldn't understand.
@Borgleader Funny you should reply that to this particular message :)
 
I strive for maximum amounts of funnyz
(See 2 first entries of starboard)
 
Oh well. this one was reasonably funny
 
It's also quite sad when you realize the amount of money that was wasted
 
@sehe ...unless you're one of the people seeing 35% of your income disappear to finance it.
 
6:48 AM
@JerryCoffin still funny. Come on. It's happened already. There is no use in sulking
 
0
Q: Find/Search and Replace Algorithm not using string/cstring class

NickI am working on a ridiculous homework assignment that requires me to essentially create a search and replace program but I cannot use any string class or cstring functions such as .replace .find .length() strlen() memcopy() strcopy() or pretty much any function that would make this assignment eas...

 
Hahahaha "I am working on a ridiculous homework assignment"
 
I best be laughing about 10$ mio worth of money
@Borgleader That's a pleonasm
 
Fixing doxygen's CSS is fubar.
T_T
I don't have motivation or willpower do to this.
 
6:52 AM
Do you have the money? - then you have what it takes :)
Damn edit throttling
 
@Nick If you are referring to downvotes, I upvoted you in compensation. Seriously, I have written multiple answers on SO, and I'm sure there are many others, showing exactly this. I suggest you delete your question if you don't want to be downvoted. Here, have some inspiration: replacing pieces of stringsehe 1 min ago
@MarkGarcia Oops. The newbie entrance. I know you're not, but this induces kneejerk responses in seasoned loungers :)
 
@sehe Yeah. I know. I'll rephrase it.
 
@MarkGarcia (1) nope. You're not passing resources into toupper (also, you want to use str in the second statement!)
(2) there's no use in clearing anything: destructors do this in C++
 
@sehe Oh right.
:10472740 The string.
 
6:58 AM
So, for this sample, the sane solution would be coliru.stacked-crooked.com/…
 
Well, users might expect that the string will be cleared after they moved it. They might reuse the string (but is highly unlikely).
 
@MarkGarcia There's no documentation as to what std::string does after moving. Also, std::move doesn't move the object, it just 'passes it' as a rvalue reference, which indicates that the function may elect to move from it.
 
@sehe OK. I'm actually doing a similar thing for an operator[] where strings are the indices (therefore lots of temporaries). Using that solution would be better, I think (copy-elision, move constructed string).
@sehe "may". I'll remember that.
 
Just use std::string const&: the compiler will just emit temps, and they don't need storage optimization in the first place.
 
@sehe I don't agree. Poor separation of responsibilities, violating the single responsibility principle for no good reason. (though I'll admit that's probably not what you had in mind).
 
7:01 AM
@JerryCoffin I'm not taking the sample to do anything sensible. He even had that in the comments
 
@sehe I just mean combining conversion to upper case and printing into a single function strikes me as a poor idea.
 
@JerryCoffin I know. I just said that was off topic for me (also: they were clearly random functions. Badly chosen? Maybe. Irrelevant to me)
 
@sehe Already read that. I'm convinced, but many may think I'm insane. I'll go by STL's answer to it (const & when not modifying, by value when it does).
 
@MarkGarcia Precisely
Let the compiler work which optimizations apply. And move only when you want to transfer long-term storage from such a parameter into another variable.
 
@JerryCoffin Yeah. I'm actually making a wrapper around std::map where I need case-insensitivity in the keys. I'm doing lower-case conversions of keys in operator[]s. That's the best solution I can think of.
 
7:06 AM
@MarkGarcia what about a simple case-insensitive comparator?
 
Well, it's past midnight and I need to fight traffic in the morning. I think I'm going to sleep. Later, all.
 
@JerryCoffin Bye
@ArneMertz That
 
@ArneMertz Yes. I I've considered that, but somehow found a complication. I'm recalling what that is...
 
l8r Jerry
 
@JerryCoffin Good night.
 
7:10 AM
Also, several answers on SO solve this problem by creating a custom string (using std::basic_string<> with custom char_traits)
 
@sehe I'll try it. Thanks.
 
@MarkGarcia Or if you want to go functor style: coliru.stacked-crooked.com/… (default constructible functors have the extra bonus that you don't need to pass a comparator instance into the map constructor)
 
@sehe depending on how often that map shall be used I'd provide a comparison functor so the map's default constructor can be used. In your example, the default-ctor is callable and will initialize the comparator as null - bad idea ;-)
 
@ArneMertz You're slooooooooow!
 
@sehe Yeah and just typedef or using. I'll use this then.
 
I don't need much locale support.
 
@sehe working meanwhile :P
 
@MarkGarcia e.g.
 
@sehe I know. :)
 
@ArneMertz Busy making someone else's code sample fail, huh :)
 
7:16 AM
:P
@sehe it's not your code sample, it's the careless use of it ;)
off again, hunting spurious segfaults in legacy code meh
 
@ArneMertz I figured :0
@ArneMertz inb4 "It's not the legacy code, but the careless use of it :)" - meh
 
@sehe full ack.
 
Xeo
1
Q: Which is fast string.empty() or string.size() == 0?

Jatin GanhotraRecently, during a discussion I was asked by a fellow programmer to do some code changes. I had something like: if( mystring.size() == 0) // do something else // do something else The discussion was regarding the use of mystring.empty() to validate if the string is empty. Now, I agree...

ASFGFHSAGFHGASFGDALJ
@all: I don't see a reason for a down-vote. I've very well expressed the question and it's a valid question. — Jatin Ganhotra 1 hour ago
Says the OP
There should be something we can do about question. :(
 
7:33 AM
Lol
Purrrformance
 
morning
 
Xeo
20
Q: Can compilers and interpreters have bugs?

Witch-KingIf a compiler's work is essentially translating source code into machine level code, can there be any glitch in a compiler, i.e. a faulty "translation?" The same goes for an interpreter: can it fail to output the required content sometimes? I have not heard of any bugs in compilers/interprete...

LAWL
Exhibit A: Wide.
 
lol
 
JBL
Haha "No ! Check your code !".
 
@Xeo I expect all compilers in a similar stage of developments have bugs.
 
7:44 AM
I heard about the cross compile : Canadian Cross. why name like this?
canadian always compile in this style?
 
@DeadMG I expect all compilers in a similar stage of developments have bugs.
ftfy
 
fair enough
 
Just look at MSVC. =l
Not even feature-complete and it's waddling in bugs.
 
@ThePhD give it 10 years and it will be C++11-feature complete ;-)
 
Heck, all the major compilers have public bug trackers, and none of them are exactly in a state of "oh well, I guess we're done."
 
7:47 AM
Ohholyshitmystomach
 
Xeo
ITT: @ThePhD is the new Puppy
 
@ThePhD 0x0BADF00D ?
 
It's not my fault. ;~;
 
everyone noticed that Valve wasn't working properly when HL3 failed to materialize
 
7:50 AM
I talked to someone who's worked at valve early in her career.
She didn't like it at all.
 
She said specifically that "Valve is a place you go near the end of your career, not at the beginning."
 
morning
hello baby
Are you ever not hungry?
 
Won't this code output "X"?
 
@ScottW <3
 
7:59 AM
@VinayakGarg lol
 
@VinayakGarg Most Vexing Parse.
 
what?
 
X x(); is a function declaration
@ScottW hey hey! be nice, he's been here before.
 

« first day (997 days earlier)      last day (3952 days later) »