« first day (1286 days earlier)      last day (3648 days later) » 

user3010322
12:15 AM
If the sack is a sandbag, tackling it with enough force could knock you out!
 
evening
 
btw @ThePhD
 
we need more loungers
 
I have a question about your contributions :v
 
12:39 AM
Well..
 
user3010322
1:00 AM
@Rapptz What did I do now. ;~;
 
I can't get member function pointers to work if they're not static
 
user3010322
Huh.
 
user3010322
I already solved this problem. o_o
 
yeah I thought so too
 
user3010322
A member function has to be sent in along with an object.
 
1:01 AM
yeah I did pass an object
 
@ThePhD hi
 
user3010322
The lua_func derived class stores both, as seen here.
 
user3010322
explicit_lua_func is the member function one.
 
user3010322
I should also probably change the name of some of the derived classes
 
user3010322
So they sound more C++-y
 
1:03 AM
yeah it doesn't work
on gcc 4.8.1 anyway, didn't try in MSVC land
 
user3010322
Show me teh codez.
 
I checked if we had tests for it and we don't
just make any basic object + member function pointer combo
 
user3010322
I could have sworn we were testing it.
 
shrug
 
user3010322
1:05 AM
I do it for some objects and some functors.
 
user3010322
maybe I'm just missing things
 
user3010322
I'll check again.
 
hmm
 
user3010322
I'll also rename some of the derived classes, so the names make more sense...
 
sory
I did not mean to make that sound advertizy
 
seeing deleted posts is so cool
 
you are cool
 
why?
 
1:41 AM
it's like the only redeeming factor of being a room owner
 
TIL CatPlusPlus used to answer PHP questions.
 
0
Q: How do I evaluate bool in a IF statement between a positive and negative integer in C++?

0xhughesI am trying compare a variable in my program against a negative number in my Arduino project. Scratch code is as follows - int y = 40; if (y < -100){ do something; } However when I try to verify my code in Arduino IDE I am greeted with this error message, sketch_apr23a.ino: In function '...

 
Array.prototype.__proto__ = null
Object.prototype.__proto__ = Array.prototype
this is how you brake js
 
1:54 AM
js breaks itself :P
 
@Code-Guru kids these days ;)
 
@Jefffrey Let's stay away from public shaming like this. :-)
 
Nicely done.
 
there's gonna be a new Terminator movie
 
@xecaps12 Professional looking avatar you have there.
 
2:06 AM
thanks. figured i'd take work up on the professional pictures.
and I realize i really don't fit in here do i.
 
Not sure?
 
just realized that i'm the only one that's of an actual person.
 
I learned about C++ by just hanging around this chat.
 
cool. i've learned a lot just trolling stack overflow.
 
2:21 AM
Yeah.
It's posted every day in AGDG
It looks cool
 
Looks a lot better than gimp :P
 
2:41 AM
Hunter x Hunter is going really strong.
 
 
2 hours later…
4:44 AM
TIL about joiners
 
4:56 AM
 
5:25 AM
When there's a flag I click "not sure" 99% of the time.
I'm a terrible moderator.
 
6:00 AM
@StackedCrooked you are the 99%
 
@StackedCrooked Actually, clicking "not sure" if you're not sure is exactly what you should do. At least in my estimation, the much bigger problem is people approving flags without bothering to look carefully enough to be sure the flag was valid.
 
A bit like religion ... really
 
@TonyTheLion hehe
 
6:15 AM
Well, it's getting late. I think I need to go sleep. TTYL.
 
@StackedCrooked I knew that. I know someone who likes doing those. But he specialized in micro-engineering (working for academic hospitals, and making small parts to spec for other industries). It's a proper specialization
@StackedCrooked I click "invalid" 99% of the time. Only exceptions when really inappropriate content was posted or when someone is clearly trying to spam the room with a low-value cruft
@xecaps12 trawling? trolling is ... well you'll see :)
@Jefffrey why else would he be entitled to bash it so loudly :|
@Rapptz in this instance, I agree; thanks @Jefffrey for doing the spam control!
 
6:37 AM
morning @sehe!
 
@TrevorHickey Oh. Well. I get that now, but that was never any part of your question :S. LESSON: having the requirements is essential for getting the right solution. Also, note that I do answer the first part (1.) of your question too, unlike any of the other answers. I think you will want to use grep's answer, but it's not what you asked for :/ — sehe 4 secs ago
@TonyTheLion lions!
 
@sehe How's things?
 
@Xeo have you seen this video yet?
the ending... totally caught me off guard
 
@ScarletAmaranth hi
 
6:50 AM
what is up today
 
@TonyTheLion the usewels
 
@sehe dat spelling
 
7:10 AM
sorry :)
Excellent question exposition. I'd love for all the question to be introduced in this way. Help is underway! — sehe 20 mins ago
 
7:24 AM
@StackedCrooked kudos for coliru again:
@sehe Wow, that's really a fantastic way! — jfly 57 secs ago
 
Xeo
@Rapptz Hai
 
just went on a JonTron binge
no regrets
 
Xeo
hehe
Gotta love that guy
 
one of the few video game related videos I can stand watching
time to sleep
nn
 
user1804599
7:39 AM
@Rapptz Good morning.
 
user1804599
7:51 AM
Beh.
 
user1804599
Why is there a JsonResponse class that is a subtype of Response, instead of just a function that creates a Response with the correct MIME type and a JSON-encoded body.
 
because oops
 
user1804599
I once read that Java was a POOP language.
 
user1804599
And the output of PHPUnit includes a CRAP index.
 
@sehe the compiler command is sandwiched between the json stuff. how does that work?
 
user1804599
8:05 AM
Because you didn't use a JsonResponse class.
 
user1804599
I wish PHP had type hinting for HOFs.
 
user1804599
Oh well. One-function interfaces work fine.
 
8:39 AM
morning
 
morning
 
evening
 
no it's morning
 
democratically it's morning then
 
@BartoszKP nah it's not enough to just say that. you have to drop bombs on him
otherwise it wouldn't be the real democracy
 
user1804599
8:45 AM
No, because we elected Mysticial as our leader.
 
@Abyx why do you think he's not saying anything :F
 
user1804599
DEMOCRAZY
 
Xeo
@Mysticial So, watched the NGNL episode?
 
@Xeo Yeah. Fucking speechless.
 
Xeo
twas awesome
Also, Shiro~
 
8:51 AM
I think this ranks higher than Accel World and SAO as far as only 3 episodes go.
On my scale at least.
 
Xeo
I also like how he's wearing his crown :D
 
@StackedCrooked HERE-document :)
 
Xeo
(from the OP and the preview)
 
@Mysticial hi
How are you?
 
Hey
Tired.
About to sleep.
Since it's 2am
 
8:52 AM
oh right
makes sense
 
@Mysticial so actually it is almost morning
@Xeo hey what's NGNL ?
 
my democratic airstrike must have missded ;\
 
Xeo
@Abyx No Game No Life
 
something similar to SAO? gonna watch/read it then
 
Xeo
Just watch the first episode
 
user3010322
8:55 AM
MY IDEAS
 
user3010322
FUCKING STOLEN RIGHT OUT FROM UNDER ME
 
user3010322
WHY AM I IN UNIVERSITY FUCK THIS SHIT
 
Xeo
?
 
user3010322
Source of frustration (and tears of joy):
 
user3010322
8:56 AM
So goddamn pretty. ;~;
 
user3010322
If I stay in university much longer taking 6 classes a week I'm going to drown in theory and never get to apply it to make cool shit like this until I graduate. ;~;
 
why not; raytracers are cool
 
user3010322
Refraction. ;~;
 
user3010322
@LightnessRacesinOrbit Crystal is so naice.
 
9:15 AM
NGNL is so good to watch
 
9:26 AM
set<string> **
0
Q: what is causing this buffer overrun warning over 64 bit VS2012 compile environment?

NirMHI have a working application compiled using VS2010 64 bit environment - while trying to migrate it to VS2012 compiler (C++11) i get a C6386 warning and can't seem to find the root cause: here is the code snippet that yields the warning: Packet::Packet(const Packet& oOther) { m_vData.assign(o...

much C++11
 
> new set<string>*[oOther.m_vData.size()];
fuck me
 
yup :)
 
: D
 
(morning)
 
@Abyx: No need to act like that here. — Lightness Races in Orbit 33 secs ago
but mom!
 
9:34 AM
ooo drama
speaking of drama; I made a (rather fake) facebook account becuase of 1 person; added 3 extra friends - instant drama already; wtf is wrong with people
 
Drama is fun.
 
@Abyx An array of pointers to sets?
 
Life is boring without it.
 
@R.MartinhoFernandes yes
 
the code is awful indeed, but the question itself not as bad to justify the downvotes don't you think?
 
9:36 AM
Fuck me, indeed.
 
@BartoszKP question has no SSCCE
 
@BartoszKP call jalf
 
can't, I believe he plonked me : D
 
@BartoszKP also compiler already says what's wrong there
 
The compiler told him the code is awful.
> Let's remain professional please.
Bashes Vlad all day and night.
 
9:39 AM
@BartoszKP teehee
 
ok, I still don't get it though : )
 
winning on the comment upvotes
@BartoszKP indeed
it is localised as fuck tho
also the lack of SSCCE yes
 
user1804599
Wonderful.
 
@LightnessRacesinOrbit yup, you got my upvote also, still I can make fun of it : P
 
SSCCE?
 
user1804599
9:40 AM
YouTrack REST API is bad. :<
 
0
Q: How work tellg() & tellp() in C++?

user3532286 Why tellg() & tellp() always come together?And how can we separate them from each other?

 
user1804599
Cannot create an issue with a status. Have to create it first, then update it.
 
why would you separate them :(
functions need love too
 
So edit this to correct it — Josh Froelich Oct 31 '13 at 20:37
He's asking for downvotes, IMO
His answer is simply broken. Since 2008
 
@VáclavZeman sscce.org
 
9:43 AM
@BartoszKP Ah.
 
user1804599
@sehe Then edit or downvote it.
 
user1804599
Edit is a better idea, given the current amount of upvotes, IMO.
 
> Legal disclaimer: Nothing posted by me on this website should be construed as legal advice.
that's from his profile : D
 
@EdwardZhang Consider posting an answer if it is useful to others. In all other cases, just delete the question :) — sehe 5 secs ago
 
I hate when people post an answer into their question
 
9:47 AM
Why?
 
I hate this, because apparently he solved it days ago
@Jefffrey Wat
 
@sehe What wat?
 
because question posts are for questions, and answers for answers :o
 
^ that
 
Nevermind I read it as "I hate when people post an answer to their question"
 
9:49 AM
Remember that nothing I say here should be construed as legal advice. I'm not asking to be your attorney.
 
why not?
 
10:04 AM
Note that this workaround strongly relies on Undefined Behaviour. Reading from another union member than the one last written, is undefined and can (ironically) be optimized by a conformant compiler. You should favour memcpy as it's well defined — sehe 11 secs ago
 
@sehe "The new NIO package"...
Guess he doesn't know what the N in NIO stands for.
 
Xeo
It's important, so it's stated twice.
 
@Xeo Since there's NIO2 as well now, it's not that important actually :P
 
new new io?
 
10:17 AM
@LightnessRacesinOrbit both the code and the question are very unprofessional, but... whatever, never mind — Abyx 34 mins ago
lol? "but he started it" logic? really? you're three years old?
 
@R.MartinhoFernandes Does not exist. NiO and Ni2O3 are stable.
 
10:29 AM
@R.MartinhoFernandes That's okay. "new" modifies "package"; "N" modifies "IO". It's a new package, providing new IO stuff.
@LightnessRacesinOrbit - check the comment list on my question - one comment before mine to you... — NirMH 45 secs ago
snigger
 
not very proficient at internet
but his determination to understand the problem instead of just making it go away I like
 
5
A: In C++, how do you clear a stringstream variable?

jerronThis should be the most reliable way regardless of the compiler: m=std::stringstream();

+6 before I came along
 
user1804599
@LightnessRacesinOrbit It is not a copy.
 
user1804599
It is a move.
 
user1804599
std::stringstream() is a prvalue.
 
10:41 AM
@rightfold Well, you may have a point there
 
user1804599
Wait huh.
 
user1804599
main.cpp:5:7: error: object of type 'std::basic_stringstream<char>' cannot be assigned because its copy assignment operator is implicitly deleted
    a = std::stringstream();
      ^
 
user1804599
lolwot
 
user1804599
@LightnessRacesinOrbit lol
 
user1804599
10:43 AM
It's Objective-C++.
 
user1804599
@encode yields a string that describes the given type.
 
@rightfold what
 
user1804599
> C++
 
but how
10 mins ago, by rightfold
@LightnessRacesinOrbit It is not a copy.
 
compiler bug
but clang does it too
 
11:09 AM
@R.MartinhoFernandes did you notice the fact that the answer was written in 2008?
 
@sehe what does that matter? chat was written in 2009 or 2010 yet you lot all still bitch about it daily
 
gif: imgur.com/7ulztC8 flappy bird mixed with 2048
 
didn't look that far back :(
 
@AlexM. it's on starboard
 
11:14 AM
yeah, about that...
I have to zoom to 150% to actually see anything on my screen
so the starboard gets crushed
 
@AlexM. why? do you use a phone?
 
nope, I'm on a 16.4" laptop running at 1080p
the text is really tiny w/o zoom
at least for me
 
well I use 15" but at 768p
 
0
Q: boost::asio::error class no longer exists

Kenny LeeI was using C++ Boost library 1.34.0; now I am going to use Boost 1.55.0. However, boost::asio::error class no longer exists in this version. What is the replacement for boost::asio::error class? Should I use boost::system::error_code class instead?

 
that sounds better
 
Xeo
11:17 AM
@AlexM. Wheee Nyarlathotep
 
@AlexM. get glasses :p
 
@AlexM. I had this problem on my work laptop, too
 
my eyesight was inspected by a doctor 4 months ago and it was fine
 
then binoculars, I guess? :S
 
11:18 AM
@Xeo I dropped it at 3rd or 4th episode btw
 
if the text is small I have to concentrate more when first reading it and I guess that gets exhausting after a while
with this zoom level I don't really have to make any effort
 
I zoom, too :p
 
@Xeo :D
I would have really liked it if the whole SE used a wider design
w/ bigger fonts
 
11
Q: More Stars - Userscript that frees up room so you can see more starred messages

SternoSince I've never written a GreaseMonkey script before, I borrowed heavily from this script and basically played around with it until I got what I wanted. So credit to them for helping me get there. More Stars I don't like having my chat window fill the full monitor, but I found that with my pre...

 
this is gd.se w/o any zoom on my screen
 
Xeo
11:21 AM
@AlexM. Meh, fullscreen browser
 
better to waste it than to have retardedly long lines of text
simply do not use your browser like that. it's you who's wasting space
 
Xeo
Just use a smaller browser window
 
like, not maximized?
 
Xeo
ye
 
Maximize it only vertically.
 
11:22 AM
all of my windows are maximized, regardless of the app
not sure I can break the habit that easily :(
 
Xeo
ew
 
That wasted space can accommodate a second browser window.
I also maximize everything at home.
 
we're famous (last image title)
7
 
@LightnessRacesinOrbit hahahahhaa
 
Xeo
@LightnessRacesinOrbit Awesome
 
11:24 AM
@R.MartinhoFernandes I'll check this out, thanks
 
> Good article, thanks for sharing such a good stuff.
 
minimizing the browser won't make the text bigger, so it's the same thing anyway
 
@AlexM. With the advent of wide screens I have adopted the split screen approach, Win+ and Win+.
 
when I zoom to 150% all of the width gets used
 
Xeo
11:25 AM
> Therefore, we have removed all automatic Wiki conversion triggers from the software. No longer will answers with more than some arbitrary number of edits, or questions with more than a page of answers suddenly lose their owners.
 
@LightnessRacesinOrbit my real issue is that I zoom in because I can't see the text easily otherwise
 
Xeo
Ooh, @Mysticial will like that ^
 
I pointed out that wasted space because I thought it would be best used w/ bigger fonts
 
@AlexM. That would waste more space.
 
how?
 
11:27 AM
It "uses" the wasted space but gives less information density.
By "uses" I mean "wastes".
A single huge letter may fill the entire screen but it's still a waste of space.
 
that's true, but readability should also be a concern
 
Xeo
I just noticed Grace Note has a Touhou avatar (Utsuho). Cool.
 
yeah he's pretty cool
 
The big difference between space wasted with nothing, and space wasted with large text is that the former can be repurposed.
 
she also has a talent at dealing with conflicts
 
11:31 AM
@R.MartinhoFernandes zipped byte stream into pixel buffer for maximum information density!
 
lol 'This is awesome. Goodbye, annoying robots!'
 
user3010322
@AlexM. 18 inch Very Very Strong Monster Whacker, or bust
 
user3010322
> "first against the wall"
 
user3010322
What's that expression mean?
 
11:36 AM
@R.MartinhoFernandes More LOL!
 
@ThePhD in front of the firing squad?
 
@LightnessRacesinOrbit hmmm?
 
user3010322
I... still don't get it, but good to know where it came from. :D
 
It's what Collin said.
 
11:42 AM
@LightnessRacesinOrbit I never bitch about chat, actually. Maybe SE chat search.
 
@ThePhD I think it means you'll be the first one to be executed
(source: that song :D)
 
That's essentially the same source :P
 
@ThePhD After a succcessful coup against opressive rulers, they are often imprisoned and then executed serially. The most hated former ruler is usually 'first against the wall', ie. in front of the firing-squad.
 
Marvin is the paranoid android.
 
user3010322
Ah. I see.
 
11:46 AM
I guess they could be executed in parallel if you have more than one squad:)
 
Parallel Andrell doesn't work very well.
 
Heh...
 
Marvin is my favourite character in the series. I'm racist and thus favour robots.
 
NO!
 
11:52 AM
nevermind then
 
The function you're returning from with_y is supposed to call z, but z doesn't take an x argument
 
right, thanks
 
This question makes me feel sick:
http://stackoverflow.com/questions/23265774/finding-angles-of-dots-to-make-a-mechanical-wave-effect
 
same
 
Many of you might find this useful. It's an automatic OCR in your browser.
3
Thanks.
 

« first day (1286 days earlier)      last day (3648 days later) »