« first day (584 days earlier)      last day (4367 days later) » 

9:00 PM
Nevermind, it's infinite
 
wolfram says i and -i
 
Ell
youtube.com/watch?v=aUi4LQpY_eI <-- click it, close your eyes and listen to the end. Then watch it.
 
@DeadMG and i^4 and a bunch of others IIRC
@Ell I don't trust the internet that much
 
Ell
its interesting, nothing else :L
 
so basically, it seems to be that they could be entirely considered as 2D geometry without any need for imaginary or complex or a whole bunch of such
 
9:02 PM
@DeadMG (i^3)^2 link refuses to work
@DeadMG I don't think so
 
@DeadMG If x^2 = -1, then x = i.
And -1 obviously.
 
@DeadMG because imaginary numbers go in more of a circular motion when you multiply them
 
sqrt(x) has two results for every positive or negative x.
 
@MooingDuck So what? Arithmetic multiplication isn't defined on 2D vectors either
 
@RadekdaknokSlupik correct, but the number of numbers that when squared equals -1 is not two.
 
9:04 PM
so just use that definition
 
@DeadMG but it is defined for complex numbers
 
@MooingDuck (-i)^2 = i^2
 
@MooingDuck Right. So ... if you were just to take that definition from complex ... then it would fit just fine in the 2D geometry world, since that space is unoccupied.
 
9:05 PM
@RadekdaknokSlupik right, gotcha, I figured out the mistake
@DeadMG so they're not vectors then, since they're different
 
@MooingDuck ... not really, they're absolutely identical
 
Watchya arguing about?
 
I'm saying that complex numbers are just 2D geometric vectors renamed
 
@DeadMG oh, you'd define 2d vector multiplication to match that of complex? ...that might work
 
their addition and subtraction definitions are identical
 
9:09 PM
Aaahh stupid overflow. Now my bed is wet from Rivella.
 
wasn't @MooingDuck that said yesterday himself that arguing with the puppy is an entirely pointless persuit
 
It's annoying that powering has higher precedence than unary negation.
 
@DeadMG from en.wikipedia.org/wiki/Complex_number: "the operations of addition and multiplication take on a very natural geometric character when complex numbers are viewed as position vectors: addition corresponds to vector addition while multiplication corresponds to multiplying their magnitudes and adding their arguments" So you're right.
 
DeadMG is always right.
He told me, and heck, he was right.
 
9:11 PM
@TonyTheLion yes, but I'm aware that it's a bad idea.
 
@TonyTheLion I often persue things.
 
@DeadMG fetch?
 
The 2D interpretation of complex numbers is relatively new thing, AFAIR.
 
no, mocking the spelling mistake :P
 
@DeadMG lol, yea bones and shit
@DeadMG spelling nazi :P
 
9:13 PM
 
@CatPlusPlus 1799
 
I managed to achieve two great things today. I got 4 from that optimisation stuff course and defeated the Naughty Sorceress.
@MooingDuck Right. And vectors are rather older thing.
 
Ohai
 
Or something.
 
9:16 PM
@sbi FTR I vouch for stdDave being ok. Yes he trolled pretty hard yesterday (C vs. C++ debate), but it was also about sticking to an impopular view in this room, which, in my view, is not without merit.
 
I've had enough math for one semester.
 
@CatPlusPlus I'm as shocked by that as I assume you are O.o
 
@stdOrgnlDave I would suggest you steer clear from known controverse next time, since, really, you don't need this room to agree.
Many of us do agree C is sometimes the better choice and have said so more than once. It is also true that nothing in C++ makes it hard or impossible to write the same kind of code, but nicer. (Yet there is he danger of becoming addicted to the plethora of C++ niceties (boost) and soon, you'd find yourself wondering why your programs became slow).
 
@MooingDuck You assume I'm what?
 
"Handle with care" :)
 
9:17 PM
@CatPlusPlus surprised that vectors came from complex numbers instead of vice versa
 
Now, I'm late to this party:
Request for comments ^
0
A: Idiom for doing something twice in C++

seheI've got a few suggestions. See the last for my recommendation: In my opinion insert(it, N, value) beats std::fill_n: for ( int i = 0; i < num_pairs; i++ ) { cards.insert(cards.end(), 2, Card(i) ); } If order isn't important, you could just generate the cards once, and duplicate after ...

 
Dunno.
 
@sehe I don't agree that C is sometimes better.
 
@MooingDuck Duly noted. (Also, it is not what I [edit] intended - see edit)
(Huh. The edit didn't take. Well: I omitted a word "the better [choice] and". Anyways, we've had that show last night.)
 
@sehe I only agree if there is no C++ compiler for the platform.
 
9:21 PM
Until DeadMG posts an answer, mine is the best and should be accepted.
Scratch what's before the comma.
 
I'll let someone else be the best on one question, I guess
 
@DeadMG hahah that was funny
 
@TonyTheLion That comedian pair are fucking awesome.
 
@RadekdaknokSlupik Trolling real hard there:
> Your first approach might be confusing to future readers of your code. They might think that the code was there twice by accident. Using a function like this avoids this confusing.
Still a nice answer, of course. But not IRL
 
@DeadMG yea, it was pretty hilarious
 
9:27 PM
@sehe sssshhhhhhhh :P
I always add such clauses to hypnotize people.
 
@sehe I don't get why the OP can't just write vec.push_back(card); twice?
what's so wrong with that?
 
It is a superb motion there.
 
Or, you know, do // yes, it should be done twice.
 
@TonyTheLion See my answer. It needs to be emplace_back, twice :)
@CatPlusPlus Or, you know, just code it twice and have a unit test that catches burn the moron that blindly deletes a line without checking for impact/side effect
 
Don't work with morons.
 
9:29 PM
@CatPlusPlus Sometimes you have no choice.
 
You always have a choice.
 
Morons are gonna moron.
5
 
😁 <— Your avatar.
 
@sehe Seriously, a moron that blindly deletes a line? You can't really safeguard yourself against that.
 
@StackedCrooked Soooo... don't :)
Just retaliate
 
9:33 PM
You could kill the moron and spend 30 years in jail. There are many options.
@RadekdaknokSlupik Am I supposed to see your avatar as mine?
 
Some more fun, some more viable
 
why don't you start a bounty on that?
 
@FèlixGalindoAllué erm, on what? (as far as I can see this is your first _ever_ chat message? I'm not getting the context)
 
@StackedCrooked aren't you using Lion?
 
@RadekdaknokSlupik Yep.
 
9:35 PM
Then you should see this: 😁.
 
I'm seeing some whitespace followed by a dot.
It's not that interesting.
 
You should see an emoji. Your OS is broken.
 
No. Your OS is broken because it packs fonts with "cheerful" POO, PILE OFs by default.
 
I can't wait till Mac OS X Mountain Lion. I want to see how crappy it is for developers.
@RMartinhoFernandes that's a Unicode character!
 
9:38 PM
@RadekdaknokSlupik To each his own I guess.
 
Apple decided to put a smiley face on it. xD
 
@RadekdaknokSlupik That's the broken part.
 
@sehe sorry, intermittent wifi... I was referring to morons...
 
9:41 PM
http://💩.la/
:)
That was the first emoji domain name. -_-
 
@RMartinhoFernandes That's one happy turd. It's probably made with love. And shit.
 
@EtiennedeMartel That's what it looks like on Mac OS's default font.
Don't ask me.
 
Awesome.
 
I like Mac OS X' icon for Windows computers on the network.
An old tube monitor with a BSoD.
 
9:44 PM
lulz BSOD
 
A mission for you. Go outside, hold an animal to your breast. That is real warmth, not the glow of your screen. I typed this on a rabbit.
 
?
That's confused
 
had to fix a BAD_POOL_CALLER not so long ago
 
At least they have a sense of humor.
 
9:45 PM
some people write driverz full of the bugz
@RMartinhoFernandes dafuq?
 
What always bothered me with BSoDs is that pressing any keys doesn't do anything.
It's misleading.
 
nope, only restart
and hope you get a memory dump to analyze
 
@RadekdaknokSlupik 2000 called, it wants its computers back.
 
and then hope you have a chance of finding out the culprit faulty driver, and find an update which has the bug fixed
 
9:47 PM
Modern BSODs have no pretence of being interactive.
 
I like Linux' kernel panics.
 
Either they reboot or they don't (depending on a setting).
 
nope, they were never meant to be, I think, cause they are supposed to halt the system, so things can't get any worse...
 
Mac OS X just tells you to reboot your computer by holding down the power button for several seconds. In about six different languages.
 
I once witnessed a Mac hanging midway through displaying a fancy BSOD though.
 
9:48 PM
I had a kernel panic three days ago.
 
supposed to force a restart and put the system into a stable state again, by restart
one hopes
 
TIL: X::propagate_on_container_move_assignment is defined by the standard as a valid expression for an allocator X
> true_type only if an allocator of type X should be moved when the client container is move-assigned
Those standards people sure know how to write generic library stuff
 
iPods just restart immediately and you don't know what's happening xD
 
I am using a while loop that looks like this while(child) ... child = child->next but for some reason the while loop executes but the child struct is full of random characters and "bad addresses". The struct has a char * and I tried to do a check like `if(child->name) but it gives me an error: (no mapping at the fault address) How can I make sure the child is valid?
 
The standards people are cryptographers.
 
9:49 PM
@RadekdaknokSlupik That's pretty much what happens on Windows by default.
 
I once had to fix a non-booting Mac, no message or anything, just hung on boot
that's fucking annoying
 
@PeteHerbertPenito wow. Good evening to you to
 
You get a short glimpse of blue, and BAM reboot.
 
in Windows, you at least get a message
something to tell you what's going on
 
@Tony press option on boot and select a startup drive.
 
9:50 PM
@sehe good evening sorry to frighten everyone awake with my children's woes :)
 
I doubt you're not sorry, or you wouldn't have posted it :)
 
@sehe not sure I really understand that?
 
May I kindly suggest:
 
@PeteHerbertPenito Well, can't really say anything other than you're messing up some pointers somewhere.
 
 
9:51 PM
you suggest stackoverflow?
 
@RMartinhoFernandes Or references
@PeteHerbertPenito Very much so
 
@TonyTheLion But by default you can't read it!
 
whats stackoverflow, some type of website?
 
yes, ask a proper question on StackOverflow
 
It drives me nuts that I cannot prove to my mother that the MMR vaccine doesn't cause autism, despite literally hundreds of country-wide studies showing otherwise, and the one and only paper saying there is a connection (via talking to 12 children) being retracted and the author lost his medical license and was jailed for it.
 
9:52 PM
Kernel panics make noobs panic.
 
Unless you can read a screenful of text in a second.
 
@RMartinhoFernandes you always get an error message, and they mostly mean something, the Googlez will help you with that
 
@PeteHerbertPenito Troll fail
 
@MooingDuck Does she have to know?
 
He has 179 questions already :)
 
9:53 PM
@TonyTheLion But it reboots in a second!
 
@Tony noobs don't google errors. They ask me, "the local computer expert" which I'm not.
 
@RMartinhoFernandes well, you either make it halt on the BSOD or have it make a memory dump, which you can read with WinDbg
@RMartinhoFernandes ^
 
@RadekdaknokSlupik yes true, have dealt with those
 
@sehe yes sir, I didn't want to find out that I am missing the obvious and show my newbness :)
David Mitchell is brilliant
 
9:54 PM
trollz are unwanted in this room
 
@RMartinhoFernandes no, but I don't tolerate blatant stupidity very well. Also, you know, people get frustrated by their parents.
 
@PeteHerbertPenito Well, the information presented here is way too little to go on. SO is really the right place for a question with some context
 
Because I'm a programmer, people think I can do everything in every single program and that I can fix anything that works on electricity. That's like asking a car mechanic to fix a plane.
 
@TonyTheLion O rly?
 
@RadekdaknokSlupik lol, I know exactly the feeling
@sehe yes rly
 
9:55 PM
@RadekdaknokSlupik No one ever asked my father to fix a plane.
It's unfair.
 
@TonyTheLion I thought this one was classy :)
 
@RMartinhoFernandes She's just replied on facebook that it's a conspiracy and the doctors are in on it.
 
ty @RMartinhoFernandes
 
What did I do?
 
9:56 PM
@sehe oh, I'm learning about a new type of troll, classy_troll, derived from troll
 
@MooingDuck Buy her a tinfoil hat for her birthday ;)
 
@MooingDuck Your mom's on FACEBOOK ?!?! Yet she opposes government endorsed vaccination programs?
 
Next time imma ask money and I won't guarantee anything. Pay first, then I'll make time to look what's happening and perhaps fix it.
 
Please allow for a few minutes while I collect and reassemble my jaw from the floor
 
hehehe
:P
 
9:56 PM
@RadekdaknokSlupik You need to teach those people that you can't solve everything.
 
Much better.
@RMartinhoFernandes I need them to pay me, then say I cannot solve it.
 
These days, when my uncle asks me for tech support I can simply say "Sorry, that's not possible" or "Sorry, I don't know how to do that" and he doesn't bother me anymore.
 
I only help mom and people on Stack Overflow.
And friends, but only if they come over and bring their computers with them.
 
I think I help everyone :)
 
The only friends I help are the tech-savvy ones.
 
9:59 PM
I always have a Windows 7 installation DVD ready. :P
 
Seriously, I've taken to resisting as long as possible. If I really feel I should do something, I buy them a new PC and install linux on it :)
 
I got it for free.
 

« first day (584 days earlier)      last day (4367 days later) »