« first day (573 days earlier)      last day (4372 days later) » 

5:00 PM
> An email has been sent to your email account. Please follow the instructions in it for resetting your password.
EMAIL Y U NO SHOW UP
 
@thecoshman Nah, I failed to read the docs.
So it doesn't even build. Even better.
 
I've found a basic x11 example that seem show how to do keyboard and mouse interaction, a small demo thing showing collision detection. But it might help shed some light on the situations for you @cat
 
I know how to write it, I think, but working with Xlib is sooo painful.
 
Looks waaay better.
 
any way I've got to sort out some room painting... then dinner...
 
5:02 PM
@thecoshman also painting the room? cool!
 
I've been using SFML to host OpenGL windows and manage input. Seems to work well.
 
Ell
@classdaknokt I just don't like the glow around the input box
 
@Ell that's from Mac OS X.
 
@classdaknok_t erm... I do literally mean I am painting a room... DIY and the likes
 
@thecoshman oh, I was painting the chatroom.
 
Ell
5:05 PM
@EtiennedeMartel have you ever tried Gosu?
 
Note to self: to change a password for a given service, log into said service before changing the password on KeePass.
2
 
Ell
trolololol
 
@Ell Nope. I might need to take a look.
 
Ell
Its sort of like SFML but more minimal
and has z-ordering!
its for ruby/c++
 
Yeah, but I just need a non crappy equivalent to GLUT.
 
5:08 PM
@RMartinhoFernandes KeePass2 keeps history.
 
So, z-ordering, erm.
 
@Ell I have seen C/C++ and Java/C++, but Ruby/C++?!
 
@CatPlusPlus Oh.
 
Z-ordering of what?
 
Ell
oooh well It only supports one window soo, not sure :L
Z ordering of the stuffs you draw and whatnot
 
5:09 PM
Same thing as z-index in CSS, I suppose.
Object A is drawn on top of object B.
 
Ell
anyway if you want an equivalent of GLUT then Gosu is probably not what you want
 
No, really?
 
@Ell But I'm doing that in OpenGL anyway.
 
Ell
How do I quote a message? :L
 
Paste a link to it.
 
5:10 PM
I just need to show a window to put a context in it, and then handle the user's input.
 
5 secs ago, by R. Martinho Fernandes
Paste a link to it.
 
We're drawing with OpenGL. That's kinda why we need OpenGL windows.
 
Ell
44 secs ago, by Ell
How do I quote a message? :L
oops
damnit, wrong message. Oh well
 
yeah, looks like you got it all figured out :D
 
that's what the "edit" button is or
 
5:12 PM
(edited)
 
Ell
Yeah I know but I feel like its cheating sometimes
 
@CatPlusPlus That saved me a trip to the university to request a reset to my MSDNAA password.
 
Ell
erasing your mistakes. You can't just do that in real life :o
 
Yeah, but then you clutter the chat.
 
5:12 PM
Clutter
 
It's already cluttered enough with my posts, no need to add your little mistakes.
 
Oh, you.
 
Ell
Whats so wrong with the chat being cluttered...?
 
Cheese.
3
 
5:13 PM
Not
hing
 
@CatPlusPlus Oh, you're speaking StarCraft lingo now.
 
hey
stop
 
5:14 PM
@Ell See?
 
Robot has caught sand in the gears.
 
Where's @sbi when you need him?
 
In the garden.
 
K, I'm leaving.
Bye.
 
Ell
@RMartinhoFernandes well obviously if it's intentional the effects will be worse
 
5:14 PM
Nooooo.
 
I need to go to the shop for something cold to drink. :.
 
"Your username should consist of 4 to 50 characters. Acceptable characters include letters, numbers, and the symbols "@", ".", and "_". "
"Your password should consist of 8 to 12 characters. Letters and numbers are the only acceptable characters."
wtf?
 
Ell
o.O
 
5:17 PM
The only constraint a password should have is that it contains at least one character.
 
@cat you opposed to me (attempting) to provide patches?
 
@JamesCuster Fuck yeah entropy.
@thecoshman Of course not.
Though clone the repo and issue a pull request, it's easier.
 
@CatPlusPlus I assume I would need to make my own bitbucket repo for it, and then commit my change to that, and then issue the pull request. encase you can't tell, DVCS noob
 
Learn it, it's fun and useful.
 
even I can use Mercurial.
 
5:21 PM
Register on bitbucket, click "fork" on the repo page.
That's the cloning part.
 
@CatPlusPlus so my 'fork' is a clone that bit-bucket host, just like a repo I could make on my own. and then I clone that to my local machine, push my changes back to bit-bucket, and ask you pull changes?
 
Push your changes to your fork, then on my repo page click "pull request" and fill the form.
 
got ya!
 
Easy as π.
 
easy as Ï„
 
And you don't have to give me write access to your fork. :P
 
@DeadMG Easy as a cup of Ï„.
 
@StackedCrooked You have to delay the member function instantiation until afterwards- so make it a template with a dummy param or something like that.
 
@StackedCrooked You should get a medal for most horribly convoluted 13 lines of code.
 
some questions scare me: "what is the difference between templates and polymorphism?"
 
@CatPlusPlus I'll take that as a compliment :p
 
Some people don't know subtype polymorphism isn't the only kind.
Or that there are kinds at all.
 
@DeadMG that's UB isn't it?
 
@MooingDuck Of course it should. By the time you instantiate ItemImpl, it has a correct relationship that static_cast can use.
 
@StackedCrooked no, because an ItemImpl is not a Item, so you can't static_cast to it. You have to dynamic_cast.
 
5:27 PM
@MooingDuck I have already produced a solution that functions correctly but does not require dynamic_cast.
 
@StackedCrooked why are you casting from the base to the derived in the base class anyway?
 
> Polymorphism is when your class inherits from more than one class.
Lol.
 
@MooingDuck Now, now.
 
> Templates as being abstract they can only be used to define a concrete class (you cannot create instances with it)
 
5:28 PM
@MooingDuck Curiously Recurring Template Pattern. used for mixins'n'shit
 
although usually the template parameter is the derived class
 
@DeadMG I always thought it wasn't allowed/valid/defined/something to static_cast from base to derived.
 
I've been toying with type traits, policies, CRTPs the last few days.
And getting paid for it.
 
@DeadMG CRTP doesn't normally require a static_cast
 
5:30 PM
That's nice :D
 
@MooingDuck Nope. You can do it, you just have to be sure it's a derived.
@MooingDuck Yes, it does.
 
I'm a bit undecided as to whether have my class take it's policies as template arguments or to use CRTP and get the policies via type traits on the template type.
 
@MooingDuck you can't call methods of derived class without a cast
 
You can't derive casts on runtime templates!
 
@DeadMG shows what I know
 
5:35 PM
@MooingDuck Shows what I know :P
 
Is there a type trait that will detect padding? E.g. struct s{ char c; int i; }
 
I doubt it
 
I'm currently using hard-coded checks like static_assert(sizeof(ARPHeader) == 28);
Well, good for now.
 
static_assert(sizeof(s) == sizeof(c) + sizeof(i), "foo");
If you don't want padding, use [[packed]].
 
@classdaknok_t Is that supported by GCC 4.6+?
 
@StackedCrooked If you notice, there's a comment on there by @DeadMG already
@StackedCrooked if it's on reddit, it's probably not new :P
 
@SamDeHaan He's on reddit?
 
@StackedCrooked On the actual article
 
> The decoupling between raising of the exception and handling it, that makes avoiding failures so easy in C++, makes it virtually impossible to guarantee that the program never runs info undefined behaviour.
^ I don't think failing to catch is UB.
 
@StackedCrooked an exception unwinding out of main is IIRC, but that's super easy to avoid.
 
6:11 PM
@SamDeHaan And plenty of others.
 
@MooingDuck std::terminate will be called.
I wonder if I it even a good idea to have an all encompassing try/catch in the main function. If the exception propagates beyond main then the program will exit with an error code. Seems like the right behavior.
 
@StackedCrooked oh, not UB?
@StackedCrooked in that case, then don't have a catch all in main
 
@MooingDuck Yes, you caught on :)
4
Q: Why is error handling important?

Paulo SantosI was given a task of write the coding guidelines for my team, and it was going great until my manager asked me to write an explanation of Why Error Handling is Important. I know it instinctively, but how do I express this in words? I tried to google it first but came up empty, so I now ask my ...

Hmm... what to say?
I guess I'm a weird because I find error handling a very exciting part of the program.
 
6:43 PM
@StackedCrooked I find error handling exciting as well
 
6:59 PM
If it can be implemented elegantly then it's less of a burden.
 
@cat pull my finger changes
 
Elegant code is easier to support. It lowers maintenance costs and lowers occurance of bugs.
 
@StackedCrooked You are a weird, I agree.
 
Dammit.
 
error handling is the step where i replace }catch (e) { OpenErrorDialog(e); } with useful code.
 
7:10 PM
Error handling is the area of programming where it is okay to use goto in C.
 
catch (fire) { fuel(fire); }
 
its never ok to use goto in C
at best its tolerated with a brow beating.
 
nah, the Dijkstra days are over
 
* brow beats stacked crook *
 
goto is perfectly acceptable in C for error handling.
lol, there are two audio devices I can choose from in VLC, and one of them seems to be embedded on my graphics card (HD5670)? Have I missed some hardware developments? :)
 
7:13 PM
Did you try it?
 
hmm, do you have a hdmi out?
 
I don't have a HDMI cable, so no.
 
but do you have the out port, not the cable
 
@FredOverflow Some video out cables are now also audio out.
 
That's my graphics card. It's so small and beautiful!
 
7:16 PM
ATI Radeonâ„¢ HD 5670 graphics processors offer best-in-class performance and ... 3D stereoscopic display/glasses support14; Integrated HD audio controller. Output protected high bit rate 7.1 channel surround sound over HDMI with no ...
Integrated HD audi controller.
 
It even has an integrated car controller?
 
yes.
plug it into your audi and it'll drive you anywhere
 
@FredOverflow but your card clearly has an HDMI out, and thus you card is capable of being an audio out
 
@FredOverflow compared to everything else the video card does, what's a little audio?
 
7:19 PM
@thecoshman Nevermind then :)
 
the audio is REALLY nice when plugging it into your TV to watch a movie.
 
@cat fyi, your three test programs also run under linux. Though they do not respond to re-size
 
@Greg I don't have a TV.
 
I have a TV that is used for plugging into my laptop
 
7:20 PM
@FredOverflow I ran out of edit time :(
@fred @sbi is often mean and waits for the edit time to run out before he tells me :(
 
Anyway, I'm sure more people are excited about the HDMI audio feature then double precision floats.
 
@Greg double precision floats don't excite me.
 
@Greg bah! double precision floats are old hat. I'm all about triple precision floats
 
@thecoshman You'd want quadruple precision, 128bit, not triple precision.
 
Double precision floats on GPUs were pretty exciting at the time for a small group of people.
 
7:22 PM
@DeadMG nah, quadruple is just silly
 
Are there 24" monitors that support both VGA (my onboard graphics) and HDMI (my graphics card)?
 
if you wanted to make GPGPU computing more accessible to a wider range of functions, precision isn't the problem
@FredOverflow Yes.
 
@DeadMG Can you recommend a specific one?
@Greg Who needs double for graphics?
 
One of my biggest problems now is global memory access time
@FredOverflow Its for SCIENCE!
 
@FredOverflow Not really. I don't keep up with hardware that much. But they assuredly do exist.
the problem with GPGPU computing is that all of the cross-card languages suck donkey dick
and you get, for example, hardly any stack space
 
7:24 PM
and by all of the cross card languages he means OpenCL
 
@Greg And DirectCompute.
if DX12 comes with a new compute language that's much more usable, then I expect to see more GPGPU.
 
It seems most science people will just use CUDA if they are on MS platform
 
still thinking about implementing a lexer using C++ AMP
although parser would be semi-impossible
 
i want every thread to have access to a small global memory that can be accessed at the speed of local memory
 
sbi
@thecoshman I do that with the robot, but not with you!
 
7:28 PM
its ok if its only 64 bit X number of available ALUs
1 double per alu is all i need
 
sbi
@EtiennedeMartel Actually, @classdaknokt had it right, I really was in the garden. My smallest one had her kindergarten closed today, so I took the day off, and we did indeed go out into the garden. The day went downhill from there.
 
Ell
Hi guys
 
does outlook have a way to "view all emails from the last week"?
 
sbi
I stopped reading after "does outlook..." I am very confident that, if someone would need it, Outlook won't have it.
 
meh, searched all folders for my name sorted by date. Close enough.
 
Ell
7:31 PM
:L
 
@sbi What happened?
 
sbi
@EtiennedeMartel Basically, everything went wrong. My bicycle broke down twice (had to push it), I picked up late one of my girls from her kindergarten friend (broken bike and heavy rain), while the friend's parents had a babysitter and wanted to go out, two of my boys spend 120mins trying to open one of their bike locks (turned out their sister had given them the wrong key), the BBQ with the neighbors died due to it raining cats and dogs, I had the kids' rain gear at home, and so one. One of those days
 
@sbi maybe you only do it when you are too drunk to remember :P
 
sbi
@thecoshman I can't remember being too drunk to not to remember.
 
@sbi That proofs something, but I'm not sure what.
 
sbi
7:38 PM
@StackedCrooked Huh?
 
Ell
ahh rain ruins a lot of things
 
@sbi Just what I thought!
 
sbi
@StackedCrooked Hah!
 
@sbi See?
 
sbi
@StackedCrooked Nah.
 
7:40 PM
@sbi Hey, it could be worse: at least it's friday.
 
Let's do something crazy like checking my old hotmail account.
 
Woah, inbox 1481 unread messages.
 
sbi
@EtiennedeMartel Thank god Friday's over!
 
@sbi Sorry to break if for you, but..
 
7:40 PM
sup
 
sbi
@StackedCrooked I am not a but!
 
This is how I feel on Friday night.
 
@sbi One t's missing.
 
sbi
@EtiennedeMartel Well, I posted it after he edited his message.
 
@sbi I never edited anything.
Ever.
 
7:43 PM
It was my message, my butt.
 
my ass!
 
sbi
@EtiennedeMartel So?
 
@EtiennedeMartel So you've been wrongly accused? Get over it already! :p
 
@EtiennedeMartel I likez datz
 
Friiiiday.
 
7:44 PM
I agree.
Any ideas on this? (SO has become too scary a place for me to post questions.)
 
@sbi I'm confused.
@StackedCrooked I would really like to eat some fried squid.
 
sbi
@EtiennedeMartel I noticed.
 
@EtiennedeMartel oh god! me too now
 
Ell
I have random cravings
I have wanted pizza for about a week now
 
@StackedCrooked use a hash_map?
@StackedCrooked what? scary place?
 
7:53 PM
@StackedCrooked I was very confused until you weren't intending to link to a page about how SO is too scary a place for questions.
 
@sehe Trying that out right now with std::unordered_map.
 
erm. that's what I meant :)
(where's my brain, someone might have seen it)
 
@sehe I now what you meant, no reason to apologize here :p
 
@StackedCrooked good thing I didn't. Well, at least not directly
 
sbi
I am sorry, I just couldn't help it.
 
7:59 PM
:)
 

« first day (573 days earlier)      last day (4372 days later) »