« first day (552 days earlier)      last day (4410 days later) » 

2:00 PM
Maybe they reproduce.
 
more accurately, I wrote a stupid API to remove them where you had to know the previous bounding box
so now you can remove by value
bad linear probing time, but I'll optimize it later
 
@KonradRudolph Do you think Catch is stable enough to use?
 
It's an assertion framework.
What's there to be not stable?
 
Well I read this:
> Currently CATCH should be considered a "developer preview". You can try it out and see what you think but it is still undergoing heavy development and names and interfaces are subject to change (the macro names should be stable now). I wouldn't recommend it for commercial projects - or anything beyond small scale test projects for now. of course if you want to contribute then you are very welcome.
 
Do you guys have antivirus installed?
 
2:03 PM
no
 
antivirus are more hassle than they're worth by miles
 
Someone out there is running one extra antivirus for me.
 
Yes, although for no good reason.
 
I got Windows defender
Well, I think that's what it's called.
I got it from a site telling me I was infected with 1000 viruses
 
2:05 PM
@Pubby I use Microsoft Security Essentials, it stays out of the way pretty well
 
In the past I did use avast for a while. But never got a virus alert so I stopped bothering.
 
Avast has a terrible detection rate.
At least had, dunno if it improved in recent years.
 
@Collin Yeah, I think that's what I have.
 
It's 4 years ago that I used it.
Before that I used AVG.
 
2:06 PM
My previous roommate had AVG. One day it decided user32.dll was a virus.
 
I use Avira, but the only things that trip it are things I compile, via heuristics.
 
@RMartinhoFernandes Huh?
 
Needless to say, things didn't end up well.
 
That's a terrible bug.
 
2:07 PM
Reminds me of Myth II uninstaller that decided to format the hard disk.
 
Removing all files is not formatting.
I doubt it tried to create a new filesystem there.
 
@Pubby Honestly? I don’t know. It seems stable enough though, and what’s more, it’s simple enough for me to suspect that it doesn’t have many major bugs.
Furthermore, Phil is pretty responsive so if there’s a deal-breaking problem it can probably be fixed almost immediately.
 
"Oh, you wanted to uninstall the game? Here, let me ext2 your HDD for you."
That just doesn't seem like a bug.
Just sayin'.
 
@KonradRudolph I guess I'll try it out then.
 
It was a great game however.
 
2:09 PM
Speaking of which, 470MB left.
 
daammnn
game, y u fail?
 
Blizzard servers are so hammered the download speed is awful.
 
470MB of what?
 
@CatPlusPlus Yes, it absolutely is. I've got 3-4MB/s but could only get about 100KB/s
good thing I downloaded most of it last time the beta was "open"
it wasn't good then but not this bad
 
And with torrent enabled it somehow gets even slower.
 
2:11 PM
Silly Myth II strategy was camping your archers in a safe spot and letting them shoot any enemy bypassers. Then speed up the game to 16x and wait.
 
It is a mystery.
 
user406009
Well it always seems like most of the critical vulnerabilities revealed are java or adobe ones. Not using their products would probably help more than using an antiviral software.
 
No, they're the ones that get most attention.
 
sbi
room topic changed to Lounge<C++>: It is a mystery. [c++] [c++11] [c++-faq]
 
Too bad images won't onebox in the topic.
 
2:17 PM
 
huh
didn't they change container::erase for all containers to return the next valid iterator?
 
> Women. You can't live with 'em and you can't have heterosexual sex without 'em.
3
 
One does not imply the other.
 
2:33 PM
@StackedCrooked How’s that?
 
You can have heterosexual sex with women without living with them. Technically, that is.
 
@StackedCrooked Forget I said anything.
 
I'll try.
 
:p
and that’s the cue for me to go on another rant about how much long-distance relationships suck
but I shan’t
 
The top 5 (or so) of this list are quite funny. (Select all-time in the "links from" drop-down.)
 
2:40 PM
 
damn all the bugs
6
 
@TonyTheLion that's what GF's are for :D
 
Dammit, I so often mistake @thecoshman's avatar for @DeadMG's.
 
@DeadMG why is this starred???
 
@TonyTheLion The star is black, actually.
2
 
2:47 PM
wut?
 
Silly joke.
 
@TonyTheLion I starred that. So what?
 
@Abyx I don't see anything star worthy about it
but that's just me
 
@StackedCrooked Took me a while. Those are the best.
 
uh oh, I started Star Wars
 
2:50 PM
@KonradRudolph :D
 
@TonyTheLion I'm coding now, so this sentence is relevant to me. I'd +1 it, but chat supports only stars.
 
@StackedCrooked I have only just noticed how similar they are :P
 
What was the name of that web-based collaborative editor?
Damn my memory.
 
@CatPlusPlus cocode.io?
 
oh shit, that was funky looking, I've forgotten too
 
No, it was open. We had a session on there few days ago.
Yup. Thanks.
 
bookmarking that shit right now!
 
Ah, dammit, I can't run D3, because the beta opens in 3 hours. :. Stupid me.
 
> I'm not saying my wife's fat, but I got on top of her in bed last night, And my ears popped.
 
@CatPlusPlus Four hours.
 
3:05 PM
LoooooL
 
4 hours.
 
damn
I never figured that getting a unit to move from Point A to Point B would be so hard
 
sup?
path-finding failing?
 
heh
no, I'm only testing cases where a simple raycast proves that you can move from A to B without interference
even then, it looks very silly
 
oh, your doing a space game, so not so silly a thing to do
 
3:09 PM
for example, the units sometimes move backwards
even when they face forwards, they're sometimes misaligned
and they don't stop moving when they get to the target point
 
user image
3
it's not a lie
 
oops, that's because I cut the order but not the acceleration :P
 
what, so they stop wanting to head to the target, but carry on accelerating towards it?
 
and for some reason
there's a significant delay between rotating to face the target, as approximately as that is, and actually accelerating towards it
 
do they either rotate to face it or accelerate towards it? in which case, could it be that they are spending time getting exactly aligned to the target?
 
3:13 PM
first they rotate towards it whilst slowing down, and then they accelerate towards it at their maximum acceleratio
 
Is your graphics update rate bound to your animation / physics frame rate?
 
no
if you look at the bounding boxes, you can see like, a tiny bit of movement
which doesn't make much sense to me, because they have limitations at how far or fast they can move; but it's only per tick
if they have just a little distance to go, then they just snap to it in a single tick
 
it's not something silly like they over shoot, and then try to go back, and over shoot and so on?
 
and they'll move through each other sometimes; or refuse to move to empty space
my ray-casting code is supposed to be good, it works fine for selecting units :(
ah, well, I'll ask on gamedev, they will probably have more specific ideas
 
3:36 PM
right, bug #1 found and fixed: I accidentally inserted all units twice into the octree, causing them to collide with themselves.
 
so let's make a list of all the bugs
Units rotate to face backward when moving.
Units rotate a few degrees off (forward or backward).
Units spend several seconds thinking before moving after rotating.
Units pass through each other.
Units move randomly in totally the wrong direction.
The simulation randomly hangs.
passing through each other and moving in the wrong direction has to be a pathfinding bug.
food
 
@DeadMG Dat an RTS of some sort ?
 
You know what's weird? If leave a glass of water for a week then the water is still in there. Shouldn't it have vaporized?
 
3:51 PM
@ScarletAmaranth For me.
@StackedCrooked Only if you boil it.
the evaporation rate at room temperature, inside, is going to be pretty low.
 
Xeo
@DeadMG I think you should seperate those bugs into groups before going further with debugging
 
I know that surface area is a major factor. But it seems like it doesn't vaporize at all.
I should probably do an experiment with a measure cup.
I'm like an 11 year-old, lol.
 
@StackedCrooked The relatively high humidity inside and low temperature comparative to water's boiling point easily explains why little evaporation happens.
@Xeo Yeah.
 
Apparently it took 13 days for the water in a wine glass to evaporate.
I imagine it may take months for a bucket.
 
It all depends on the temperature and humidity
the values are not at all comparable unless the conditions are the same
 
3:56 PM
The conditions are room temperature and normal humidity. Not very scientific, I know.
lexical_cast didn't make it to C++11 I guess?
 
-4
Q: Forward declaring a typedef of an unnamed struct

satuonIf I have typedef struct tagPAGERANGE { int iFirstPage; int iLastPage; } PAGERANGE; I can forward declare it that way struct tagPAGERANGE; typedef struct tagPAGERANGE PAGERANGE; But what I have is typedef struct { int iFirstPage; int iLastPage; } PAGERANGE; I'm not sure h...

How would you explain that it's impossible? It's too obvious for me, I can't come up with a sensible explanation.
 
There just seems to be no syntax for it.
 
4:12 PM
3
A: Forward declaring a typedef of an unnamed struct

Cat Plus PlusIt's impossible. You can only declare named structs. Think about what identifies a struct that doesn't have a name, and how do you tell the compiler that it's that struct you want. If it doesn't have a name, it's defined structurally (by its members), and if it's defined structurally, you need t...

Makes sense?
Maybe a different terminology.
 
1
A: Const char... changed?

chrisaycockThis is just a temporary std::string: (appData+"\\MyApplication\\hello.txt") So the underlying C string space can be freed after the expression is used. Since you have a char* pointing to what's now garbage memory, you have a funky value. Best bet is to just copy the contents, like: char mypa...

 
4:34 PM
char buffer[1074000000]; // the only buffer you'll ever need
 
but that's only like, 1GB of RAM
 
Nobody will ever need more than 1GB of RAM.
 
nobody should ever need more than .. 640k, was it?
 
Yes, the damn 640k.
Game not working? Make a startup disk with minimum-footprint DOS and run it from there!
 
Xeo
@CatPlusPlus Doesn't booting still work with that little?
And you got to tiptoe around to grab some more?
 
4:44 PM
CPU starts in real mode, yes. But most modern bootloaders switch it into protected mode even before kernel is loaded.
It's stupid backwards compatibility crap, like everything about BIOS.
 
5:01 PM
Nobody never needs more than 32G memory ;-)
 
So, there's a storm going on. I've seen a flash, heard a thunder and what was my first thought? "Oh gawd, nukes". And second, "and I haven't played Diablo 3 yet". Goddammit, brain.
 
"Oh gawd, nukes"?
 
Yes. My brain is broken and imagination too wild.
 
In Poland?
 
I know!
 
5:08 PM
My first thought in those situations is usually "cool, a storm". Did I mention I like rain?
 
Bitch please, in Poland it happens at night where you hear no thunders.
 
We definitely do not have nukes happening at night.
 
You had, unfortunately ...
 
Gotta go now. Bye.
 
Wut.
Also, there's no rain. Just thunders that make my windows shake.
 
5:10 PM
I'll just leave that here: us.battle.net/d3/en/blog/4963739/…
 
We know.
 
Goodbye social life.
It was nice knowing you.
 
The fun part is that my exams are all crammed next week.
 
Week*end*.
Oh, now it rains.
 
I know. But I was supposed to study a bit.
And I still got to work on my project.
I got a report due monday.
I think I'll just not sleep.
 
5:14 PM
Or maybe it's not rain.
Anyway, whatever.
2 hours!
 
Damn, so loooong.
 
I want to automate creation of Tcl bindings of a C++ API.
I'm not there yet. But this may be a step in the right direction.
 
Use SWIG?
 
5:30 PM
"Use SWAG" FTFY
 
Unfortunately SWIG isn't an option because the API needs to be exported to an inhouse OO library for Tcl.
We're using SWIG for Java export though.
 
Wouldn't it be easier to modify SWIG code template, though?
OO libraries for Tcl, in any variety, are pain for embedding. :.
 
Riots in downtown Montreal! Shit's getting real...
 
They're cool, though.
 
@EtiennedeMartel Is it because the Canadiens suck? Because the Canadiens suck.
 
5:33 PM
Too much Deus Ex.
 
@Collin Nah, this time it's because of that tuition raise.
There's also protests because the government is going to basically give away our mineral resources to foreign corporations.
 
@CatPlusPlus That might be an option. Haven't tried it out yet.
@EtiennedeMartel Seems like valid reason for protest.
 
And, naturally, there's the guys who're just there to break stuff.
 
Xeo
Dang it, I hate it when I don't have enough money on my prepaid phone for a single text message
 
@EtiennedeMartel I always imagined Canadian protests as very polite
 
5:37 PM
They protest and then apologise.
 
@Collin Quebec is different from the rest of Canada. Probably has something to do with our French ancestors.
 
Signs that say "Hey, we really don't like what you're doing"
 
I'm sorry, I'll put that bus stop right where it was.
 
That must hurt.
 
5:54 PM
oooh... tough question of the day. And I think I got it.
19
Q: Why does GCC generate such radically different assembly for nearly the same C code?

nightcrackerWhile writing an optimized ftol function I found some very odd behaviour in GCC 4.6.1. Let me show you the code first (for clarity I marked the differences): fast_trunc_one, C: int fast_trunc_one(int i) { int mantissa, exponent, sign, r; mantissa = (i & 0x07fffff) | 0x800000; e...

 
Xeo
@Mysticial Or not :P
 
He changed the question... wtf
 
Xeo
@Mysticial And flipped the examples, it seems
well, he was ruling out a mismatch in the math after all
 
"When you search on Google... I meant Bing." Loud laughter
That's somehow telling.
 
6:09 PM
Even Bing uses Google. Zing.
 
Close votes wanted (or magical edit skills to derive the original question): stackoverflow.com/questions/10243009/…
 
@Xeo Yeah, I just finished updating my answer to match the OP's current revision.
 
Diablo 3 open beta!!!!!!
 
@rubenvb rollback?
 
6:14 PM
@classdaknok_t just check the edit history, it's a mess of incoherent changes
 
Xeo
@rubenvb Wait, what?
 
Xeo
And there goes my weekend
 
lol
indeed
it officially starts in 45 minutes, but I was playing a couple hours ago, and was logged in 15 minutes ago, but accidentally logged out again
So I could have been logged in for 20 minutes, and not telling you there was an open Beta
aaaargh
Here's the European version: eu.battle.net/d3/en/blog/4105609/…
Fot those not able to calculate time zone differences, like me.
yes, logged in!!
Boeyakasha suckers!
 
6:29 PM
Damn, servers are down.
=(
I hate beta's of server-bound games
 
@rubenvb I use Wolfram Alpha for that.
 
@EtiennedeMartel aha, should've thought of that :)
 
It starts in 30 minutes.
 
I've played it already. Seems like it's not supposed to be possible as I'm thrown off a lot once I do get in. I just can't wait :)
I've been playing Diablo II as a necromancer with a bunch of increase chance of finding magic items items. That just rocks
I think I'll go play some DII now.
 
Bonemancers were the best.
 
6:35 PM
oh yeah. Bunch of skeletons, amplify damage/iron maiden ftw!
I even beat diablo with a clay golem at level 29
 
I was more a bone spear kind of guy. Sure, 5k isn't much, but since you ignore all resistances...
 
-9
Q: Java help Please

StephanieI'm new to Java and I need help writing a stack. I don't know where to begin. Any help will be appreciated. Thanks in advance! Stephanie xoxoxoxox

A rough start to your stack overflow life
 
The "xoxoxoxox" is excessive.
 
Java help, kisses, tagged 'windows'
 
cpx
lol
 
6:44 PM
Life is hard.
 
cpx
We will not do your homework for you... no matter how many kisses you give us... — Simon André Forsberg 5 mins ago
 
Stack Overflow is a meritocracy. It's harsh, but fair. Ladies don't get a free pass.
 
"We will not do your homework for you... because your homework cannot be done by us."
"You can't parse [X]HTML with regex. Because HTML can't be parsed by regex."
One of these days, I can totally see someone doing a similar rant.
 
Hm, I’ve never programmed C before. Can I do the following?
struct foo* x = malloc(sizeof struct foo);
*x = { a, b, c };
i.e. aggregate initialisation that is not in an initialisation expression?
 
no. Correct, it's not an initialization.
 
6:55 PM
damn
by the way, this:
 
You can cheat it by initializing another struct and mempying it over to the malloc'ed one.
It won't be any slower since that's what the compiler will probably do anyway.
 
yeah, I wanted to avoid the memcpy
ah, ok
cool
grrr, damn chat timeout :/
 
Xeo
Ew, C.
 
Ok dudes, this is not OK:
> We will not do your homework for you... no matter how many kisses you give us... – Simon André Forsberg 13 mins ago
(comment on question asked by a “girl”, comment got 8 upvotes)
 
It was in direct reference to the "xoxoxoxoxoxo" she put in her question.
 
6:59 PM
"We will not do your homework for you... because your homework cannot be done by us. Homework is not a task that is meant for us to do. As I have answered in homework questions here so many times before, the use of SO will not allow you to consume homework."
 
@Collin Fair enough.
 
complete knock-off of the regex answer, anyone want to finish it for me?
 

« first day (552 days earlier)      last day (4410 days later) »