« first day (513 days earlier)      last day (4426 days later) » 

10:01 PM
@MooingDuck Hmm , ok I'll look into that ! Sadly googling irrlicht + picker gives no good links :(
 
@angryInsomniac irrlicht.sourceforge.net/forum/viewtopic.php?t=24022 irr::scene::ISceneCollisionManager::getSceneNodeFromScreenCoordinatesBB
or core::line3d<f32> irr::scene::ISceneCollisionManager::getRayFromScreenCoordinates and bool irr::scene::ISceneCollisionManager::getCollisionPoint
 
Xeo
@MooingDuck I like how they abbreviated BoundingBox there.
Atleast I think that's what they abbreviated.
 
@Xeo you wouldn't want to type in the full name would you?
 
@MooingDuck hmm , ISceneNodeCollisionManager :) Interesting ! thanks :)
 
Xeo
Scene engines surely need a snappy name for "get scene object from raycast"
 
10:05 PM
Once I went around the internet gathering data to prove to my mother that cellphone radiation was harmless, and came to an interesting conclusion. Cellphone radiation does not affect cancer rate. But cell phones themselves do. It seems the electronics are affecting the cancer rate somehow.
@Xeo usually it's "picker" isn't it? Irrlicht refers to it as a picker in some of thier docs
 
yeah, it's known as "picking"
 
Xeo
SceneNode* Scene::getInjured(RayCast const& bullet)
Or getVictim
 
I need to implement picking
atm you can't select units or anything like that :P
 
@MooingDuck Would it be safe to assume that ISceneCollisionManager is a singleton?
 
@jalf I'd hope not, but I have effectively no experience with Irrlicht
 
10:13 PM
me either
 
@jalf I don't think it is.
I just searched the Irrlicht docs for any mention of get and the only result was ...Target...
no mention of Instance or Singleton or anything like that either
 
@jalf I think each scene has a SceneCollectionManager
 
hmm
is it a bad sign that most of my objects are becoming just collections of other member objects?
I keep concluding that the most efficient design is to simply expose most, or all, of the data members as public
no, wait, ignore me
2
 
ok
 
10:28 PM
oh, fuckles!
why can you do std::unordered_set<T*> but not std::unordered_set<std::unique_ptr<T>>?
that's teh sillies
wow, I wrote a hash specialization that worked first time
 
@DeadMG I think you can.
Maybe it's VS not supporting it.
 
@RMartinhoFernandes MSVC10 threw it, although I guess that shouldn't be a surprise.
 
@JohannesSchaublitb > i am sorry. i thought that the reason i downvoted it is already given in the accepted answer. the constructor can be used by the conversion. but it is not preferred. – Johannes Schaub - litb 2 hours ago
^ AFAICT there is no accepted answer?
 
also, this is doubly curious
6
A: Prevent an Object from destroying prematurely

DeadMGYou violated the Rule of Three, bitch. pro::surface screen = SDL_SetVideoMode(320,240,16,SDL_HWSURFACE|SDL_DOUBLEBUF); Is equal to pro::surface screen = pro::surface(SDL_SetVideoMode(320,240,16,SDL_HWSURFACE|SDL_DOUBLEBUF)); Now double free, because you violated the Rule of Three. So give y...

not even a downvote
 
10:33 PM
lol
 
I mean, I expected three flags, six downvotes and a dozen nasty comments by now
not a bunch of upvotes
wtf's going on here?
 
Here, have another one. :)
 
@DeadMG VS is broken:
// 20.7.2.6 hash support
template <class T> struct hash;
template <class T, class D> struct hash<unique_ptr<T, D> >;
template <class T> struct hash<shared_ptr<T> >;
 
lol
 
granted, this is from tne n3337 version
 
10:36 PM
oh, cock, I forgot to template on the deleter
good catch
 
@DeadMG sry that was accidental :)
 
lol
 
@sehe I like how that's under "20.7.2. Shared-ownership pointers"
 
@RMartinhoFernandes or under 20.6.2 Header <memory> synopsis
 
argh!
BitTorrent and uTorrent installers teh broken
but but I need to infringe on some copyrights!
 
Xeo
10:38 PM
uTorrent doesn't even need an installer IIRC
 
@Xeo Yes it does.
 
Xeo
Oh hey, router playing tricks on me again
 
The exe you download is an installer.
 
@DeadMG obviously. It might have something to do with your sabotaged windows painting-over-old-install setup?
@RMartinhoFernandes chmod +x :)
 
it's not sabotaged at all
 
10:39 PM
@sehe What?
 
the Windows installer explicitly supports such functionality
 
Recent versions of μTorrent have apps.
 
@DeadMG No, since it was a an entirely normal setup, you have been working for days to get ownership of your own files, IIRC
 
I find that awesome.
 
@sehe That's normal for recent versions of Windows, unfortunately.
 
10:40 PM
@DeadMG Obviously. It's a feature because everybody has way too much time.
Or perhaps you're doing it wrong.
As my wife said: if it hurts, you're doing it wrong.
 
Yay, I managed to close all cracked.com and tvtropes.org tabs.
 
bwahahaha
@RMartinhoFernandes Gratz!
 
IMO, the whole permissions thing is way overdone
 
@RMartinhoFernandes Opera: ^Z, Chrome: Ctrl-Shift-T, recued
 
10:42 PM
@sehe You're missing the point.
 
I only need two groups of stuff: only accessible by me, and accessible by everyone
the whole rest of it is totally unnecessary
 
Star craft or control?
 
I have read them all, so there's no point in opening them again.
 
@RMartinhoFernandes Nah, I can distill the real message from this
 
@sehe He isn't, Blizzard is.
what would be racist is "Oh wait, but I'm Korean and you're European so YOU ALL LOSE!"
 
10:44 PM
who's blizz? Oh wait
Ignorance is blizz
 
Are you guys discriminating against racist people?
 
Xeo
0
Q: C++ operator setter ruby style

SootnWhy don't people code like this? Ruby style! #include <stdio.h> class Name { public: void operator=(char *to) { name = to; printf("Change!\n"); } private: char *name; }; class Human { public: //char *name; Name n...

Close as NARQ?
 
@ScottW Way too much truth in it :P
 
@RMartinhoFernandes Discriminating between people. It's a practice I found to work very well
 
it's because they spend all their time playing it
if you're Stephano, for example, then you can beat them anyway
 
Xeo
10:46 PM
Guess how many C++11 features have a "No" in the Clang C++ status table
Without looking!
 
@Xeo 3
 
unfortunately, Stephano, Thorzain, and Naniwa, are pretty much it
 
More than 10.
 
Xeo
@MooingDuck Gotcha, it's 14.
 
@ScottW Also, he's not very good.
 
10:48 PM
@Xeo I win.
 
Xeo
Concurrency is largely unimplemented.
However, it's really 3 for the core C++11 stuff
Enum forward declarations
attributes
and inheriting constructors.
 
eh
it's only funny when he also stomps people's faces in
 
Xeo
It's interesting how no compiler seems to tackle the last one
 
@Xeo There's several articles on the net about how nobody cares about inheriting constructors, and we don't need it.
 
Xeo
@MooingDuck But but but my wrappers. :(
 
10:51 PM
@Xeo What, enum forward declarations?
 
Xeo
@LucDanton Last one, inheriting constructors.
 
GCC has enum forward declarations.
 
@Xeo open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3258.html "One can emulate inheriting constructors using a catch-all variadic template that forwards all of its arguments. "
 
@Xeo There's a saying in French that right after when you wake up or when you're tired, you've got small eyes. I've got that right now.
 
@LucDanton in the US it's "bleary"
 
10:54 PM
@MooingDuck This one actually sounds nasty.
 
@MooingDuck Far from perfect. You can't fake some magic: such a ctor doesn't count as an initializer list ctor for example.
 
cplusplus got a makeover?
Looks uglier :(
 
@RMartinhoFernandes they also note other problems, I think including confusing overload resolution
 
Yes, perfect forwarding constructors can be preferred over the special members. It's silly.
 
room topic changed to Lounge<C++>: C++ is a very nice programming language. Even its warts are delightful. [c++] [c++11] [c++-faq]
 
10:58 PM
Aw, I liked the previous one better.
 
room topic changed to Lounge<C++>: C++ is a very good-smelling programming language. Even its warts are delightful. [c++] [c++11] [c++-faq]
?
 
This falcon is more than 2500 years old and looking so sad that, for a while, he made me consider changing my avatar. http://t.co/xtL7wsi2
The bonobo was close to changing his disguise!
 
@MooingDuck yes but it's not quite 100%. in particular overload resolution is different.
 
naaah
 
Xeo
Interracial DNA transplantation?
 
11:03 PM
@MooingDuck And doesn't work over a binary interface.
 
Xeo
Oh, wait, stone falcon. Damn you, slow router.
 
Someone discovered checksums again, lol
-3
Q: how do I apply a checksum to a file?

Ian LundbergI am trying to edit a file but it has a checksum. How would I take that checksum and apply it to the file to fix the checksum after I edit the file?

 
@RMartinhoFernandes It seems every three months someone will ask how to use the same checksum with a file or to change the md5 hash of a file to some given value :)
@Srle That's one hell of a spammy link. Please remove it?
 
Xeo
11:34 PM
2 messages moved to bin
 

« first day (513 days earlier)      last day (4426 days later) »