« first day (840 days earlier)      last day (4334 days later) » 

17:00
@AndreiTita I'd buy that book :)
Besides aren't the "hiring procedures" rather well known
@FredOverflow That was the answer to the question raised by the previous book :)
@CatPlusPlus It was less than 5€ used on amazon. As long as it entertains me for one hour, the money wasn't wasted.
That's one hour you're never going to get back
Actually I have a friend who's worked at MS and now works at Google so if you guys really need some information...
17:01
@CatPlusPlus And how many hours have I wasted in the Lounge? ;)
You don't waste time in Lounge~
Hey, you know how there are stack overflow mugs and shirts and stuff? We should sell Loungerie!
@FredOverflow are you planning?
@FredOverflow unfortunately, you can buy those anymore.
@bamboon Well, I'm certainly not gonna stay at University for the rest of my life :)
@FredOverflow If my game development ever takes off and I hire noobs, I'll hire you personally to spank the young whippersnappers into shape!
17:07
@ThePhD can I be a paid noob, too?
@melak47 Suuure. If I ever make enough money to pay anyone, that is! :D
Right now the team I have is doing it all For The Love Of The Game (TM).
argh
my parents cooking- chicken, mushroom, rice
Is it a mushroom-y sauce kinda deal?
Or just straight mushrooms?
no
it's vile stuff
@CatPlusPlus you....invest it? :S
17:20
did you order one of these SO games they recently gave out for free?
Verbatim from my code: SomeFunc(..., (x<y)?true:false)
Sigh. When will I learn.
@AndreiTita i think that's perfectly fine code
@JohannesSchaub-litb It works, at least.
17:40
@AndreiTita Oh god
I have a codebase at work that was full of this stuff
And also cond ? false : true
user142019
@CatPlusPlus wat XD
user142019
Noobs from my school often do this:
Imported code~
user142019
bool foo(x, y) {
    if (x > y) {
        return true;
    } else {
        return false;
    }
}
user142019
17:42
foo = (>) PROBLEM SOLVED
I don't even know how you can get to that point
How hard is to understand this
@Zoidberg, They obviously should use if (std::greater<int>()(a, b)), or whatever type it is they're using.
lol
std::greater<>()(a, b) in C++14.
user142019
Use {} you noob.
Oh yeah, that's right.
user142019
17:50
@DeadMG Seriously? That's fawesome.
n3421
i.e., std::greater<> is now perfect forward for <, whereas the C++03 versions were not.
user142019
But how does it know it must be an int?
user142019
It infers it from the call to operator()?
yes
user142019
// Can I also do this? :)
template<class T> T foo();
void bar(int);

voif baz() {
    auto qux = foo<>(); // T is int
    bar(qux);
}
17:52
it has auto operator()(T1&& lhs, T2&& rhs) -> decltype(std::forward<T1>(lhs) < std::forward<T2>(rhs)) { return std::forward<T1>(lhs) < std::forward<T2>(rhs); }
@Zoidberg No.
it's a specialization of std::greater.
not any new language power
user142019
@DeadMG Daw. :(
just a library fixup.
user142019
@DeadMG oohh.
user142019
I see.
user142019
lol standardizing the feature in my example would make everything so fucking complex that language implementers would become suicidal.
17:54
@Zoidberg Of course you can't do that. voif is not a type.
user142019
@AndreiTita It is defined in the code I didn't show in the example.
@Zoidberg You should follow SO guidelines young man.
user142019
lol
user142019
17:55
lol
user142019
HA! THREE LOLSTREAK!
only three? you suck
user142019
Hey it got me a UAV.
unmanned aerial vehicle?
unexpected access violation?
user142019
17:57
An unmanned aerial vehicle (UAV), commonly known as a drone, is an aircraft without a human pilot on board. Its flight is either controlled autonomously by computers in the vehicle, or under the remote control of a pilot on the ground or in another vehicle. There are a wide variety of drone shapes, sizes, configurations, and characteristics. Historically, UAVs were simple remotely piloted aircraft, but autonomous control is increasingly being employed. They are predominantly deployed for military applications, but also used in a small but growing number of civil applications, such a...
user142019
You can get those in MW2 after a three killstreak.
For a three lolstreak you can get a paper airplane.
Technically a paper airplane is an unmanned aerial vehicle.
Only if it qualifies as an aircraft.
Apparently it does
A paper plane, paper aeroplane (UK), paper airplane (US), paper glider, paper dart or dart is a toy aircraft, usually a glider made out of paper or paperboard; the practice of constructing paper planes is sometimes referred to as aerogami (Japanese: kamihikōki), after origami, the Japanese art of paper folding. History The origin of folded paper gliders is generally considered to be of Ancient China, although there is equal evidence that the refinement and development of folded gliders took place in equal measure in Japan. Certainly, manufacture of paper on a widespread scale took p...
user142019
GTFO
18:03
Hope you like the bin, bitch.
user142019
That app looks fucking ugly. Next up:
user142019
Roflmao
Well, we're definitely fitting Today's topic of being abrupt.
user142019
I'm going to start a hand-written blog.
hmm
my blog is handwritten
user142019
18:05
Cool.
not yet speech to text based
user142019
Hyperlink?
@AndreiTita An example of an asymmetrical custom paper airplane, which exhibits large torque due to unbalanced forces on the wings. The flight path assumes a somewhat parabolic shape, before descending in a rapid counter-clockwise spiral, as viewed from behind.
Hey, guys.
I'm runnig into a bit of a design issue, and I think I might need some help figuring it out.
At present, my KeyboardDevice/MouseDevice/PadDevice, and their related PadState, etc. all scan the OS and get keypresses/mouse movements/etc. straight inside of their Update functions.
However, I am soon going to have multiple source of potential input (DirectInput, registry hacking, XInput, etc.)
user142019
Meh lazy I/O.
18:15
I need a way of access all these 'Sources'.
At present, I've been thinking static / global std::vector of Sources, but it doesn't seem quite right.
would a simple chan be hard to develop?
Of course, people usually tell me that Globals are the devil, so I'm trying to figure out if there's a better way to accomplish what I'm doing.
@ThePhD what os/platform?
@JohanLundberg Windows. For now.
0
Q: C++ Win32 keyboard events

CuriousUserI am working on my keystroke logger for personal interest and asked a question related to this about yesterday; While loop using a lot of CPU. The issue with the program was that it took too much CPU Usage, and people have suggested to make the inputs key-event based. Since I'm new to the Win32...

perhaps...
you find something there...
18:20
I understand how to hook and how to get events: that's not necessarily my trouble at the moment.
Ok. I would probably start along the lines of having a single receiver which other parts of your code can register at
Sounds like a global to me.
you could have a set (list/vector ehh.) of receivers of different types of events, loop over them, and call it->atKeyPressed(theNewKey) ... something for each
no not global
Hm. Orrr, maybe...
I can use my existing Services model.
you should setup you other arguments to know about that central point somehow, for example via a reference given as constructor argument
18:23
Yep, that sounds like services.
I've been using it pretty much... everywhere.
I'll just add a InputBroadcaster class to the Services list.
'Course, now I have to decide whether I want 1 Input broadcaster with multiple functions to getting/setting state,
or multiple KeyboardBroadcaster MouseBroadcaster PadBroadcaster.
So far I think Keyboard, Mouse, and (Game)Pad are all the types I need. I could make a more generic Joypad later on if GamePad is too buttony.
Also, Broadcaster is a shitty noun and I'll have to choose a better name.
Discloser
multiple receivers of different types of events sounds good, but why have states in them when you could just pass the information to those who asked to get it?
PadState, when you call PadState::GetState( PadToken identifyingtoken ), cannot do polling or heavy-duty querying. In the end, it must only copy existing data and merge that data from the current PadSource(s). It's a bit of a separation-of-powers kind've deal.
AV is homeopathy for computers: This software was in contact with malware in the past, so it’ll recognize other malware in the future. $79
... Wut.
18:29
Bad argument. E.g. how some vaccines work.
@melak47 terrible
I could just pay $0 dollars and do myself the favor of not visiting any sketchy websites or downloading dumb shit I shouldn't.
@ThePhD I have this totally legit .exe (free gamez!!) for you, wanna test it?
lol, wut
user142019
18:44
A
oh no, @Zoidberg, what are you doing
user142019
I'd also say A.
yeah, because it's the orange portal platform that has velocity, not the square (cube)
user142019
The entity isn't moving, merely the portal.
18:45
Are you arguing pretend physics?
sort of andrei
while A makes sense in a way, while the orange portal is moving over the cube, it would be emerging at the speed the portal is moving, so it would at least appear to come out at the same speed til the portal stops moving
then the question is, why would it suddenly stop moving though? is this movement not "real"?
also - while the cube is emerging - can it push something on the other side?
hello
holding something in the way of the cube would block it, but that can't possibly slow down the orange portal moving, can it? so the cube has to continue emerging at the same speed. so it pushes however hard you push against it, plus that speed? free energy!
Consider the case where instead of a portal you have a regular hole and you can answer all those questions by using real physics.
18:48
@Zoidberg Definitely A... the box has no force.
@Crowz What? Yes it does
user142019
I'd say B, because Portal has a bad physics engine.
user142019
xD
@Zoidberg Gotta love Havok.
@Zoidberg it doesn't work in portal. people have tried ._.
user142019
18:48
What is that?
user142019
I've never played Portal.
user142019
@melak47 oh xd.
lol
@EtiennedeMartel Havok is pretty damn good
@Crowz Not really.
18:49
@AndreiTita then what happens when you put an obstacle in front of the blue portal?
@EtiennedeMartel There aren't many better alternatives, really.
Being the least bad doesn't make you good.
Being the least bad makes you the best, wouldn't it?
@Crowz the best, possibly, but not good.
@melak47 It should get pushed away, assuming it has room to move.
18:51
Havok was only used in Portal 2 not 1
IIRC
@AndreiTita so then the cube with no force is pushing the obstacle? I see :p
@Rapptz Source comes with a modified Havok engine, so I would be surprised if they didn't use that for Portal 1.
Do you mean Source?
I was thinking "Source", but I wrote "Steam".
@AndreiTita so if the cube can push the obstacle it must have momentum, right? so that means even if there wasn't an obstacle, it would still come flying out
18:53
We don't know the physics of portals.
?_?
Guys, it's a game. Stop fanwanking.
@melak47 It's pretend physics. Hence implementation-defined.
What if something happens between the transition from entering the portal that causes a rush of force for the object that goes in?
@Rapptz I'm just eliminating the impossible here. if pushing against the emerging cube slows down the orange portal, then it's obvious that there can be a transfer of energy/momentum between portal and object going through, and no reason to argue for option A :)
user142019
I say the cube goes to the Nether.
18:54
I say the cube is made of vertices.
No the companion cube is made of love... everybody knows that
it could be a single voxel :p
@Borgleader So if the cube didn't give you consent to put that much force in it is it rape?
@melak47 Valid question.
18:56
the companion cube does not talk.
But does it have feelings?
All this time we've been abusing this cube
user142019
I say the cube is written in Java and as such must be abused.
I fucking hate how places don't sell rentable 1080p videos yet call them "HD"
18:58
The cube is written in C++ I think.
@Rapptz Then it contains no feelings other than hate.
I've seen that.
Oh Cube one of the weirdest film series ever
and was it written in C++? :)
19:01
The answer to "what happens when you seal writers with a lot of drugs for several months"
@melak47 No, there was no undefined behavior anywhere.
I'm a little stuck on a problem here... probably involves recursion...
user142019
I want krupuk give me krupuk.
@Crowz I thought you said you solved the first 25 problems when I asked.
user142019
19:05
@StackedCrooked haha cool. xd
@Rapptz not this one hah skipped it
this one is easy though
compared to others at least
@Crowz weren't you already working on a sieve for this a while ago?
@melak47 Sieve was for prime numbers in python
have you considered that prime numbers and prime factors might be related? :p
19:09
@melak47 Indeed, but factorization is the problem haha
@Crowz so sieve ALL the primes. :D
@melak47 So am I just looking for the biggest prime that evenly divides into the number?
0
A: unexpected behaviour of getchar

RapptzA different answer though late: You could have called fflush right after reading the character. char exitletter; do { printf ("Please hit E to exit the Program\n"); exitletter = getchar(); fflush(stdin); } while (exitletter !='E'); and this would have wor...

Is there something wrong with this that I don't know of?
Because the accepted answer was some while loop (which I thought was strange)
I should you should use int, not char.
user142019
Probably, since it's C and C is full of surprises.
19:12
@Crowz: there's only 23,038,900,221 primes between 0 and 600,851,475,143. Don't be a wuss, go catch 'em all! :p
lol C
I should so as well.
@melak47 I have all the primes so nicely arranged in an array right now haha
@melak47 Not the best way to do it
@Rapptz really :p
@Crowz all 23 billion?
19:16
@melak47 oh... well no haha that would be a huge array
@melak47 Why not? Welcome to 64bit
still a bad way of doing it
@DeadMG I don't have 170+GB of RAM :/
@Rapptz you don't say :)
largest prime factor that would go for the highest unsigned long long would be 6700417
you could easily have 170GB of HDD swap
19:17
@DeadMG ew D:
Is there any SysInternals Tools that can tell what are the external processes that My application is opening
?
I need to know what processes its creating with what argument.
@Crowz It's really easy, trust me. Just reading this and coding it would give you an idea
@NeelBasu shouldn't you know what external processes you are opening? :S
@Rapptz so I could do basically 2 for loops, and if i and j are both prime, record them to an array?
@melak47 Hmm Then assume My Application is a typo, Its His Application :)
19:21
@Crowz it doesn't have to be 2 prime factors. it might be 3, or 4, or 5...
user142019
Want fast swap? Put it in a RAM disk! Oh wait.
I have 1 for loop and 1 while loop.
user142019
Too many loops.
@Zoidberg I herd you like RAM, so I put your swap space in your RAM so you can RAM while you RAM while you swap in your swap
user142019
Cumswap.
19:23
D:
Me and my golem crew, killin' blazes.
@Zoidberg reminds me of when I got an expansion card for my Amiga1200, 68030 with MMU! First thing I did was to put swap on a compressed ram disk.
user142019
@LucDanton Good idea. *boots computer*
Oh. I thought you were barbequeing your golems.
Who said he isn't?
19:27
@eurpoeanpeeps is this pound or euro? £
4
pound
pound
€€€€€€€€€€€€€
user142019
The pound sign is a retarded L, the Euro sign is a retarded E, and the dollar sign is the function application operator.
lol
19:29
but look how cool this is
what is § then, the law access operator? ._.
section
user142019
@melak47 section sign.
so it works like [] for arrays. instead it works on legal texts :p
user142019
lol
user142019
19:30
In Haskell you can do this:
user142019
(§) = (!!)
user142019
And then:
user142019
mylist § 42
Section = no no?
user142019
(!!) is list subscript, noob.
19:31
dynamic typing really throws me off...
user142019
@Crowz Use Haskell.
@Zoidberg I'm using python... don't you like python?
@Rapptz why do they have 7-gons as coins
Aw, I've lost one of the little guys
He's in a better place now.
19:32
@melak47, You mean a heptagon?
user142019
@Crowz I do, but you said you disliked dynamic typing.
@chris I mean n-gon<7>
user142019
Of the three languages I like most, Haskell is the only statically typed one.
@Zoidberg I'm trying to get used to it haha it's just weird cause I never know how to do a few things
Like turn an int into a string then back into an int
str(i) int(i)

« first day (840 days earlier)      last day (4334 days later) »