« first day (716 days earlier)      last day (4235 days later) » 

12:32 AM
Sweet,
sweet victory.
 
what did you win?
 
That bastard got me drunk.
 
I have my own DLL for the engine, which is then built on top of for the game, which makes updating the engine aside from the game a lot easier than recompiling the whole thing and having to update the entire data and executables. I still have a bunch of C4251 errors about 'dill-interface' stuff, but who cares! IT WORKS.
Best part is, I sliced out all the SDL and external libraries, making it rely soley on D3D or native implementations of OpenGL.
I'll have to write my own PNG reader, but it's a small price to pay for such glorious victory.
 
nice :)
 
It turns out all that P/Invoke nonsense I did with C# and the native HWnd system has saved my life in terms of learning how to catch my own events.
Of course, now I can't run around and say my engine is cross platform: 0 idea on how to use X11 to create a window. :3c
Soon, 61 warnings. Soon. I will conquer you. And I will have a clean, beautiful, I-want-to-touch-myself project.
 
12:44 AM
How to use X11 to create a window:
1. Don't.
2. Use GTK or Qt.
3. When in doubt, see #1
 
1:13 AM
Um. Okay.
Neever heard of GTK. Heard of Qt but have never really used it.
OH BOY SHINY NEW THINGS YEEEEEEEEEEE~
 
Xeo
1:39 AM
@R.MartinhoFernandes ahaha :D
 
@R.MartinhoFernandes You were force-fed alcohol? Again? <g>
 
Xeo
1:55 AM
2
Q: Variadic expansion of using-declaration

HighCommander4I recently came across a generic mechanism for combining two function objects to form a new function object that behaves as if the first two were overloaded: template <typename F1, typename F2> struct overload : public F1, public F2 { overload(F1 f1, F2 f2) : F1(f1), F2(f2) {} usi...

Close votes please.
 
2:07 AM
ok
i added a "why?" comment to your post, itself an annoying task due to SO silly insistence on umpteen characters, and then it informs me that you deleted...
so, i gather that you just thought the expanded expression should work, and discovered that it didn't?
 
Xeo
I didn't think at all. :D
 
Xeo
Anyways, gotta run, off to my interview!
@Cheersandhth.-Alf was about to update my deleted answer, but then I looked at the time
 
good luck!
 
Xeo
thanks
 
 
1 hour later…
3:43 AM
What does this rebus represent?

1.Bob drowned Frosted Flakes
2.Joe buried Cap'n Crunch
3.Sarah threw Rice Krispies off a cliff
4.Emily shot Cocoa Puffs
 
 
2 hours later…
5:21 AM
2
Q: In general, what should the return type of the getter for an STL container be?

NoSenseEtAlFirst of all, let's ignore the setters and getters are/aren't evil. :) My question is, if I have a class that has some std:: container as a member, let's say string, what should the return type of the getter be? I kind of prefer const T& compared to T for performance reasons... I know that...

^ found duplicate, voted to close
 
 
2 hours later…
7:26 AM
 
@Neil the rebus is of course about cereal killers
 
@Cheersandhth.-Alf Oh man that was low even for you.
 
@FredOverflow this was asked Jan 2011 and therefore pre C++11. Since some of the answers and their comments refer to C++11, this questions adds something new and shouldn't be closed.
 
7:45 AM
@FredOverflow I wanted to thank you for your post regarding std::move and the like for C++11
It was very concise, did you truly write that yourself?
Up until now, I admit to knowing C++03 well but not understanding well the changes made in the C++11 version
 
we're 5 questions away from the 150,000th C++ question
 
@LuchianGrigore Add the tag to 5 questions then. :)
Holy shit... you've answered 2167 C++ questions. That's more than 1% of all of them... damn.
 
I hope it's going to be of the kind i = i + i++.
 
8:00 AM
My #'s actually been going down. I got permission from shog to purge some of my old useless FGITW answers.
 
8:14 AM
mawning
 
user1182183
so the warning detector is still popular -.-.. okay mm, next Q: anyone knows an online VB.NET editor/compiler, I can't install it on the school computers
 
user1182183
i can't seem to get compilr working xd
 
8:37 AM
@Mysticial 2811 here
 
@DeadMG nope - 2491
 
@GamErix "C:\Windows\Microsoft.NET\Framework\v4.0.30319\vbc.exe" runs, but i don't know if it's there by default or installed by visual studio
 
It's not just how many you have. But how spread out it is.
Most of the old timers here easily have 2k+.
I don't remember when @Luchian appeared, but it's safe to say that you're #1 right now. :)
 
@Mysticial fairly recently, but he's just a mahoosive repwhore
 
In the chat... not long ago
on SO, 1.5 years ago
 
8:40 AM
WHORE ALL THE REP!
 
Whereas I'm mostly in . And most of my answers are cross-tags with .
 
REP ALL THE WHORE!
wait...
 
lol
 
hi puppy!
what you doing today?
 
8:46 AM
149,998
 
@LuchianGrigore It's not consistent.
150007
 
crap :|
:))) lol
"Now here's a player who enjoys scoring goals"... no shit!!!
 
@LuchianGrigore ?
 
I'm playing fifa atm
That's some commentary
 
lol
 
8:49 AM
@TonyTheLion Prepparing for my interview
 
ohh
fun :)
 
this is going to be a great day... Trying to debug an SSL connection between Firefox and our vnc server
I can feel my will to live draining away already
 
ah, and then my mother wants me to clear my room
I wonder what critical documents I'll lose this time
 
Which is worse: debugging SSL or having to clear your room. I wonder..
 
@DeadMG "clear your room" means: move out, in my ears
 
8:56 AM
Or using PHP?
 
PHP is great at losing critical documents
 
@sehe Yeah, otherwise she'd have said "clean" your room.
@DeadMG Got some pretty bad news for you.. :p
 
Clear a room: empty/vacate/evacuate
Sep 27 at 23:17, by Mooing Duck
alright, I'm off, be back married
^ Will he ever be seen back?
 
Maybe he can still live in the cellar.
 
@StackedCrooked Who? The duck? Or the puppy?
 
8:58 AM
@sehe His wife doesn't allow him to visit chat anymore.
@sehe The puppy.
 
nah, what my mother means is just "Move items from visible to hidden"
 
... the fuck
so apparently our server does nearly the entire SSL handshake, then sends some application data, before completing the handshake. How is that even possible? I thought OpenSSL did the whole handshake atomically, before returning
oh wait, it's messier than that
 
9:15 AM
@TonyTheLion Uh, maps don't take an int as their key paramter.
 
meh
I knew I had it all screwball
never gonna get templates, am I.
 
oh hey, looks like another firefox bug
 
@TonyTheLion Is that a haiku?
Or a swan song :P
 
man
the position I'm phone interviewing for is for one of those businesses where every other word is "customer", "business", "enterprise"
I can hardly even read their website :(
 
@DeadMG Run!
 
9:27 AM
can't really afford to do that
 
@DeadMG sounds meh. You're a dev.
 
yeah
I'mma be honest and say that I found it quite dense and difficult
 
@DeadMG u then need to learn the art of, uh, fibbing, most often by misleading generalization. and also learn to always couch thing in positive terms. like, we'll make it even better.
 
9:46 AM
@DeadMG Just have fully darkening blinds: close the door, no light, everything invisible. Done
 
> ...Please avoid using IE 7.0 - best thing I have ever read in a work email
 
Please avoid using IE! FTFY
 
I never thought this day would come, but right now, I have to say Firefox is causing me far more headaches than IE
 
uh oh
 
@DeadMG seems our mums share the same idea of 'tidy'
 
9:49 AM
lol
 
Well, admittedly IE would cause me a lot more headaches if some nice people hadn't implemented flash emulation of the functionality I need, which IE lacks
 
@jalf Chrome
 
@thecoshman Yeah, I'll just tell all our customers to switch to chrome ;)
 
@jalf sure, just make it sound like FF is part of your software, and that to upgrade to new version, they need to re-download and access through this new tool
 
heh
 
9:53 AM
Monday is bad, and you should feel bad
 
well, I worked around one firefox bug
the other one can wait
 
Poor other one :(
 
^ Possibly in the near future it will be ILLEGAL to use pictures like these for marketing purposes in Norway, due to the unhealthy nature of a fast-food diet.
 
So the fast-food must look unhealthy now :)
 
qox
10:22 AM
Hi.
@Cheersandhth.-Alf want.
 
10:40 AM
@StackedCrooked Haiku is 5-7-5, eg 'I hate these templates, so much data copying, stuff the stack objects'.
3
 
@MartinJames Starred for haiku.
@MartinJames But templates don't lead to data copying.
Not anymore than non-template code.
 
@StackedCrooked Not as a lock, no, but the temptation to continually copy/move large objects into/out of containers is there...
 
11:07 AM
i don't get what the video means
 
what it means is "I'm Madonna, plix give cash"
 
@DeadMG Overblown singer, bank account getting low now, time to rip off my fans
This protocol is crap, all shifts and magic numbers, want to kill author.
 
11:42 AM
Hi guys, i need your help. I have an array of strings containing the seven colors of the rainbow but place in random order and i am somehow suppossed to sort this array to output Red, Orange, Green...., Violet in that order. Can anyone direct me on how i can sort this array. Maybe some custom sort but i have no idea how to start this. Thanks
 
> I have an array of strings containing the seven colors of the rainbow
is this a fairy tale?
You need to write a custom sorter that determines how the color strings should be sorted
what would the best way to sort them?
I would say create an ENUM that gives your colors values, then you can sort on that
 
Thanks Tony, something like this
enum colors{ Red= 1, Orange= 2, Yellow= 1000... }; and then sort the numbers using the normal sort? then later reassign values back to the colors?
 
okay, let me try that out and report back on the same
 
but you will still need to write a customer comparator, as enum does not implicitly convert to int in C++
 
11:54 AM
hm.. Seems complicated now and i was meant to understand it was not supposed to be that hard.
 
I understand maybe the lecturer was thinking of a simpler way to sort this and not the direction we are heading
 
0
Q: what is the different of initializing using () and =

Nayana Adassuriyaclass Animal{}; int main(){ Animal white_cat; Animal black_cat(white_cat); Animal brown_cat = white_cat; } I know here both initialization done by copy constructor. But performance or memory wise are there any different among these two initializing? Animal black_cat(white_cat);...

close votes
 
well, how else do you want the computer to understand what your strings mean, if you don't use an enum? You're going to have to tell it somehow that "Red" is great than "Purple" or whatever
it doesn't have any notion of colors or rainbows
 
11:59 AM
@Hussein It's not that hard, it's just that the strings have no intrinsic order and so you have to create a ranking with enum, or the like, as suggested by Tony etc.
 
@Hussein Are you supposed to use std::sort ?
 
Okay, I am not suppossed to use standard sort. Speaking of accessing those values, is there an implicit conversion from enum to int?
 
You mean i cannot do the following:

enum colors{ RED, ORANGE, GREEN};

int i = RED;
int j = 1 + RED;
int k = 2 + RED;
 
It seems to not complain, but I'm not sure whether it's actually defined behaviour
5
Q: enum-int casting: operator or function

Igor OksIn the external code that I am using there is enum: enum En {VALUE_A, VALUE_B, VALUE_C}; In another external code that I am using there are 3 #define directives: #define ValA 5 #define ValB 6 #define ValC 7 Many times I have int X which is equal to ValA or ValB or ValC, and I have to cast...

this may help
 
12:08 PM
Okay, let me try out.
 
@Hussein no problem. enum to int is fine (it's a default (widening) conversion).
 
Okay, thanks for the info Sehe
 
@TonyTheLion hehe. no cute polar bears -> no attention
@TonyTheLion customers don't compare. They're all awesum
 
@sehe OMG! I fail.
 
Cheers
19 hours ago, by Hussein
Hi guys, i need your help. I have an array of strings containing the seven colors of the rainbow but place in random order and i am somehow suppossed to sort this array to output Red, Orange, Green...., Violet in that order. Can anyone direct me on how i can sort this array. Maybe some custom sort but i have no idea how to start this. Thanks
29 mins ago, by Hussein
Hi guys, i need your help. I have an array of strings containing the seven colors of the rainbow but place in random order and i am somehow suppossed to sort this array to output Red, Orange, Green...., Violet in that order. Can anyone direct me on how i can sort this array. Maybe some custom sort but i have no idea how to start this. Thanks
 
12:12 PM
ohh
 
@Hussein Perhaps you can take your spam elsewhere? Stack Overflow Is nice site for asking questions, you know :)
Oh. That's only two repeats. The search results display results in the wrong timezone. Oh well. @Hussein You can reduce my 'spam claim' by approximate 33% of the strength :)
 
i asked the question yesterday and due to difference in time zones no one answered my question. No more thank you!!
 
don't get all upset, I helped you
you should be happy.
 
@Hussein :)
it's okay. I took that with humor, as intended, I guess
 
@Hussein So you found it more obvious to wait 19 hours and then ask in the chat again, than to just visit SO and post the question there? Can I ask why? I'm curious why so many people seem to want to avoid asking on SO
 
12:16 PM
Yeah, you guys helped. I was kidding ofcourse.
 
@jalf I needed the reply quite urgently. Actually i am already behind schedule and just want to understand what i was supposed to do.
 
@Hussein but you were able to wait for 19 hours
That's the bit I don't understand
 
Yeah, something doesn't quite add up here.
On Stack Overflow you normally get answered fairly quickly if you ask your question properly, I don't know what makes people want to avoid that. It's strange to me, because I like asking questions on SO.
 
You can ask questions wherever you like of course, I just don't understand the reasoning here. If I asked a question here on the chat, and didn't get an answer, then I would go and ask it on SO. Instead, you chose to wait almost 20 hours, and then ask on the chat again?
 
12:19 PM
Yeah, i admit some complacency there.
 
hmmm got lazy eh?
 
you could probably have gotten an answer within 20 minutes if you'd asked on SO to begin with :)
 
especially seeing SO is filled with rephwores looking for easy questions to answer, for easy rep. :P
 
yep
 
how's your SSL bug?
 
12:21 PM
yeah, maybe. I was a bit lazy and rushy. I am heading over there now. I hope the question will also help others.
 
@TonyTheLion figured it out. It was a firefox bug after all
 
@Hussein yeah, my point is just that by "rushing", you basically got your answer almost a day later than you would otherwise. That's a pretty bad way to rush ;)
 
@jalf yeah thats right. Lesson learnt.
 
Always pick the path of least resistance, the chat is not that path.
 
12:25 PM
@TonyTheLion Firefox 15 likes to create multiple connections for the same request
 
@jalf oh gawd.
 
basically sending the same request twice
 
dunno :)
 
silly FF
 
12:26 PM
most of the time that's harmless enough, and there's probably a good reason why they do it
but when creating a websocket connection, our server hangs for several seconds, waiting for the first connection to time out before handling the second connection. And by the time it handles the second connection, the client-side has already timed out :D
 
Only a problem in FF15 though, so just increased the client-side timeout if you're using that browser
 
@jalf I read that as "FF likes to create 15 connections for the same request" initially :)
@tweetsbi that you have had to create a mail-merge for your employment status does not bode well for permanent positions ;p
@sbi : it looks as if you created a mail merge, so you can say "hello" and "googbye" to employers in bulk. That implies you have many very very very employers in quick succession
(Think of it as the twitter equivalent of a Mr.Clippy misguided interpretation of what it is you're trying to do)
 
right
it's that time of day again, ladies and gentlemen- the Puppy Pictures Time
 
@jalf Your sever can only handle one connection at a time?
 
12:41 PM
@MartinJames during the connect/handshake phase, yes
once that is done, other clients can connect just fine
 
@DeadMG It's sleepy again. Does it move around? Maybe you should check with a vet? <g>
 
@MartinJames I just took her for a walk.
 
old crufty code. I wish we could fix that, but stuck with it for now
 
believe me, she can move fast.
 
typedef enum bool {
    false,
    true,
} bool;
WTF?
who names their types after an already existing primitive?
 
12:48 PM
C89.
 
fuck
 
@LucDanton that's allowed in C89?
 
C doesn't have bool afaik
 
Oh sure. In any flavour of C in fact.
 
@LuchianGrigore it does, but you have to include a header
 
12:49 PM
@LuchianGrigore It does from C99 on.
 
what a strange idea not to have a bool primitive
I wonder what the reasoning was?
 
I remember using bool in C in 1984 or so. They fired the American who worked on the code since he didn't know about that feature or anything really. He he, I didn't know that it wasn't part of C yet.
But then, at that time C was not yet standardized
 
@TonyTheLion Pre-C99 code might have used the name bool. So to avoid breakage, _Bool was introduced (which is a reserved name). If you include <stdbool.h>, then you can use bool.
 
ah right
 
It's the latest inane scheme of unifying version macros for Windows API. The idea is that this file sets up the various old version macros and additionally sets up the new shiny modern one that I can't recall (and probably nobody else can either). Which makes the code Visual C++ specific. — Cheers and hth. - Alf 7 mins ago
@Cheersandhth.-Alf wasn't the MFC part of the question clear enough? :))
 
12:57 PM
@jalf I can hear faint echoes from some old design meeting "We don't need any theads or async callbacks, why complicate things? YAGNI, KISS blah, blah..".
 
@MartinJames I don't think it's even our fault. It's based on some existing open source code
but anyway, it hasn't been a problem until now, because we haven't had to mess about with browsers and websockets and http until now
 
@jalf Well, at least it's open source and you can fix it if you have to. I have a binary-only internationalization library that is not longer supported, and I have to move to Unicode/BIG5:(((
 
user784668
TIL "rollback" on a question doesn't rollback the tags.
 
@Fanael meta
 
user784668
Meta what?
 
1:07 PM
@Fanael report it too meta, it really should
 
user784668
I just realized I didn't rollback to the revision I wanted.
 
user784668
Also, fuck meta.
 
0
Q: Why does this template code work in VS2010, but not in VS2012?

knattenI have inherited a project making heavy use of template meta programming, and am now in the process of upgrading from Visual Studio 2010 to 2012. Some of the template-code no longer works in 2012. I have distilled a minimal example: template <typename T, int i> class MyClass { private: ...

bug in Vs2012?
 
user784668
No, compilers never have bugs.
 
1:26 PM
@Fanael Well, the clincher here is that the bug is in the old version (that erronously accepted it)
Hey, an early bird (@Chimera)
 
right
got feedback on my phone interview
 
Well i had a drive crash. No backup. :-(
 
apparently I'm a stunningly intelligent, well-spoken individual who's very impressive
and probably not a good fit for the actual role they had in mind
 
Good riddance
<ow/>
 
@sehe morning!
 
1:28 PM
@DeadMG Which cp-y?
 
the business buzzword bingo one
 
Sorry to hear that dead. Those bastards.
 
eh
I might yet end up working for them
but might not
in any case, the recruiter saw their feedback that I was a very smart guy, so
 
That's quite potentially the best illustration of optimization being premature.... — sehe 9 secs ago
 
Well that is good.
 
1:31 PM
@DeadMG Wokay. The feedback could be worse, I guess. They seem scared. And you would probably have a hard time fitting in for that reason
The OP is selfanswering, but I think it's a dupe ^^ Anyone care to vote?
 
So i knew i was playing with fire with a 4 disk raid 0 setup and no backups. Got burned. Maybe one of those data recovery companies can help?
 
burned with FIAH!
 
user784668
@Chimera y u no backup
 
@jalf "Firefox has bugs!", cries coder but, now in truth..., his server is shite. <g>
 
@MartinJames The server being shite doesn't change the fact that Firefox is buggy :)
they already fixed it too. Just won't be released until FF16
 
1:43 PM
@DeadMG Too much of a threat? For permie interviews, you can be too good:(
 
nah
they're perfectly correct to say that my interests lie more in advanced technology rather than business apps
 
@sehe I suspect they don't want a non-conformist person. (cc @DeadMG)
 
@StackedCrooked You want to bring religion into this?
 
Intelligent and outspoken doesn't fit that role.
 
@StackedCrooked 'Intelligent and outspoken' - "Meh... PHP crap... Ruby should be derailed... javascript shit..."
@Chimera Ohh...! That's gonna be so, so not cheap:( (panic..putting another Acronis on tonite!).
 
1:54 PM
RAID0 increases the chance of disk failure. Should have played it safe and use RAID5.
 
silly people, why they prioritise RAID over backup?
 
@Chimera they are pretty pricey. Your data had better be important then :)
 
speaking of which... I think I need to sort out some sort of remote mirror ¬_¬
 
TBH, I have my own disk issues. The 100G USB plug-in I put the Acronis C: backup on is now too small, even with max compression on. That, and another USB spinner has gone 'read-only' for some reason:(
 
@jalf it depends who he goes to and how badly fucked his drives are
I saw a guy fix a drive by opening it up, and giving it a little flick to start it spinning! seriously, was able to read the data off it just fine!
 

« first day (716 days earlier)      last day (4235 days later) »