« first day (772 days earlier)      last day (4168 days later) » 

Xeo
11:01 AM
FFFFFFFFFFFUUUUUUUUUUUUUUUUUUUUCK.
 
I would have got it wrong.
 
Something bad happened to Xeo. Just saying.
 
Xeo
Stupid, idiotic, useless bureaucracy.
 
@kbok I wouldn't. Use something similar when dealing with QueryPerformanceCounter.
 
Dammit... I really need to go buy a flash drive tomorrow...
 
11:02 AM
@DeadMG What ?
 
I kinda noticed that too - yet another hard-disk fail?
 
Y U NO <chrono>?
 
Xeo
How can they fuss over 21€ which they don't even have to pay.
 
Tax audit?
 
Xeo
Nothing to do with tax.
 
11:03 AM
Just pay and shut up.
 
Xeo
But there is nothing to pay!
 
Then don't pay.
 
Xeo
...
 
oh what is going on here?
 
anybody can tell me how to use OnDragScroll(DROPEFFECT_SCROLL). i have googled but hadn't find anything useful.
 
11:04 AM
I don't know. I don't understand.
 
Robot, so what C++11 feature are you missing in MSVC?
 
@TonyTheLion Alias templates.
 
oh right
I'm having an XML brain overload at the moment
I can't handle anymore XML
it's screwing up my existence
 

Help Desk

For Turbo C/C++ and Dev-C++ questions
 
dafuq? ^
 
11:06 AM
It's the help desk.
 
I'm the helpdesk manager me
 
@Cicada 24
 
@R.MartinhoFernandes who doesn't have chrono?
 
@sehe That's just the LSB, right?
5 mins ago, by DeadMG
@kbok I wouldn't. Use something similar when dealing with QueryPerformanceCounter.
 
11:07 AM
@R.MartinhoFernandes Nope. It's hex, obviously
 
What the hell is QueryPerformanceCounter and why do people tell me about it ?
 
user1182183
@thecoshman yeah CheatEngine edits the memory on runtime.
 
@TonyTheLion If the designer of alias templates was a hot, smart, caring, and affectionate woman, I would marry her.
Though that may not be related to alias templates much. Hmmm.
 
My thoughts too
 
user1182183
@R.MartinhoFernandes nop
 
11:09 AM
I could marry a hot, smart, caring, and affectionate woman that didn't design any part of the C++ language.
 
@kbok Actually, that might be an even better choice.
 
user1182183
@R.MartinhoFernandes at least accomplishable
 
@R.MartinhoFernandes oh right. Interesing
 
@StackedCrooked Wait. What? I did his homework for him. If that looks cool - I know what to send with CVs as 'a sample of work' then, hehe :)
@TonyTheLion Vewy Interesing (HINT: insert dental prothesis)
 
why is gets so bad?
 
11:15 AM
No maximum length specification.
 
yeah, as I guessed
 
It writes to your buffer... and beyond!
 
so the array can be filled out of its bounds
 
@AlbertoBonsanto Technically, that's a contradiction
 
@sehe lulz
 
11:17 AM
@sehe What do you mean POlar bear?
 
It means you're in the C++ lounge
You know, where pedants roam free
 
You cannot write out of array bounds.
That's why it's a contraction.
 
@sehe nd happy triggers
 
> flexcalculatorcalculatorvanillacalculator.dll
 
@AlbertoBonsanto "So the algorithm could write outside the array's bound"
 
11:18 AM
I think it calculates something, probably
 
@kbok Meta calculations?
 
@R.MartinhoFernandes How far apart are they?
 
POSIX 2008 makes gets obsolete. I think C11 does the same.
 
It calculates a calculator calculator ?
 
in C you can :) just try strcpy
 
11:19 AM
@kbok No, it's just a shared library that flexes that concept
 
Oh, wait, no. gets was obsolete in C99.
 
calculator calculator calculating calculators calculates calculator calculators
 
@AlbertoBonsanto No, not in C. As soon as you even try to do it, you are already outside of the C language.
 
@kbok calcualted
 
user1182183
calculator? try solving i*i*j*j*k*k=-1
 
11:20 AM
C11 actually removed gets. Yay for that.
 
@AlbertoBonsanto But you'll be writing 'outside the array bounds'. That's not the same as writing 'to the array out-of-bounds' (because you're not writing to the array anymore)
 
@sehe Thanks bear
 
3 mins ago, by sehe
It means you're in the C++ lounge
You know, where pedants roam free
Welcome
 
@GamErix Easy. i = (0,1), j = (1,0), k = (1,0). (In English, i is the imaginary unit, j and k are the real unit)
 
@GamErix What is it? complex numbers multiplication?
 
user1182183
11:22 AM
@AlbertoBonsanto yep
 
@sehe Yes, there are more solutions.
Making them all the imaginary unit also works.
 
Xeo
> based on Richard's summary above, it does sound like a reasonable question, so I'll open an issue for it in the next revision of the issues list. Thanks. -- W. M. Miller on relaxing automatic move restrictions
Yay, atleast a single good message today.
 
@GamErix what is the problem, you want to use polar notation? |Magnitude| |_(Angle) ?
 
Actually sqrt(j / k) = 1 describes the solution space
 
@kbok Erm, no.
What if i is 4?
 
user1182183
11:24 AM
@AlbertoBonsanto mah well at my school we're not going any further than i*i=-1
 
@R.MartinhoFernandes i is defined as i * i = -1 if it's the imaginary unit. You said it.
 
user1182183
and the associated thing with it
 
user1182183
like absolute values and yes, those angles
 
> In English, i is the imaginary unit
 
@kbok No, I said that as a possible solution. FWIW, j and k are often defined as the second and third imaginary units.
 
11:25 AM
We don't have the same conventions then.
 
Well, I could either assume the letters were the first three imaginary units, or they were all unknowns.
 
user1182183
that's everything we need to know about complex numbers
 
@GamErix in Electrical Engineering we use them a lot
 
user1182183
nothing more, fortunately
 
user1182183
11:26 AM
@AlbertoBonsanto electrical engineerinx, real life example please O_O
 
Fortunately?
 
In EE i is j and i is the current
 
user1182183
I knew complex numbers were used in space aerodynamics but electrical engineering..
 
Complex numbers are probably one of the most simple things considered difficult.
 
11:27 AM
complex numbers are used like, fucking everywhere
 
user1182183
@kbok never met them in real life, (i'm 18, maybe I'll meet them)
 
@GamErix Electrical Circuits Solving, Power Sytems Solving, Motors, transmission lines, distribution lines, capacitors banks mathematical Representation,
 
Xeo
@GamErix Complex numbers are just coordinate pairs.
 
@Xeo Complex Numbers are more used than that.
 
user1182183
@AlbertoBonsanto from mathematical point of view
 
user1182183
11:29 AM
imaginary numbers are on the Y axis
 
user1182183
and real numbers on the X axis
 
@GamErix Yes, but in electricity they represent a lot more than that.
 
Anyone has VS2010 in here? I'm having a bug that crashes VS using the C# UML editor, if anyone is willing to reproduce...
 
They have additional properties coordinates tuples don't have. For instance, you can't multiply coordinates, nor get the log of it.
 
@Xeo Pedantified version: there is a 1-to-1 map between complex numbers and points of the real plane.
 
11:30 AM
@Cicada Can do
 
@Cicada VS10, but no C#, sorry.
 
Not sure I get the concept of imaginary numbers
I mean I know the math, and I know what it's used for
 
There is nothing to get.
 
@Neil It's just a simpler way of making some kind of math
 
Well negative numbers I can understand
 
user1182183
11:31 AM
it's just you have to know i*i=-1 then you can solve

(1+i)^17
---------
(1-i)^16
 
@GamErix That's the math, not the concept
Or maybe it's one in the same, but I still don't get it
 
@kbok Okay, open up the class diagram. Add a class, double click on it to open the soure file. Add a public string SomeField;. Give 2sec for intellisense to parse the thing. Then remove the ; and add { [newline] [newline] } so as to make a property. Use the up arrow to place yourself on the empty line inside the property and start typing get => crash.
 
I'm dense
 
user1182183
@Neil why do you need the concept if you can solve it? xD
 
user1182183
It's math, the universal language of all human beings.
 
11:32 AM
@GamErix Because that's how I assimilate information
I have to understand it, and it bothers me slightly that I can't
 
@Neil There is no real world concept to relate to.
 
user1182183
@R.MartinhoFernandes At least we can't find any (yet)
 
@Cicada How do you open the class diagram ?
 
@kbok In a C# project, right click on the project -> show class diagram
 
user1182183
lunch break, bye ;F
 
11:34 AM
176
Q: Do complex numbers really exist?

Neil MayhewComplex numbers involve the square root of negative one, and most non-mathematicians find it hard to accept that such a number is meaningful. In contrast, they feel that real numbers have an obvious and intuitive meaning. What's the best way to explain to a non-mathematician that complex numbers ...

 
It would be deliciously ironic if this got closed for not being a real question. — Kaestur Hakarl Jul 21 '10 at 1:30
 
Xeo
o_ô
 
@Cicada Nope, everything's ok
 
@kbok Doing the very same steps I do? Because I reproduce it here 100% of the times.
 
Old beta? SP1 vs no-SP1?
 
11:37 AM
When I type "g" I have intellisense
 
granted "imaginary" is misleading
 
Yes, the naming is terrible.
What does German use?
 
@kbok What version are you running?
 
@R.MartinhoFernandes forget what I said, my mind was screwed
 
@Cicada VS10.0.40219.1 .NET 4.5.50501 SP1Rel
At first I thought spirel was some kind of codename :)
 
11:40 AM
@kbok Mmmm I have the 10.0.30319.1 RTMRel
 
-1
A: casting integer division into double in C

Mohamed KALLELthe result of changeY/changeZ is int because both changeY and changeZ are int IF changeY/changeZ = 10/20 = 0 (int operation) 1)IF you write like this slope = (double)(changeY/changeZ), you are only get the result from int operation and then cast it to double so the result will be 0.0 example...

Was I harsh in comments here?
@Cicada There you go. Install SP1.
 
@R.MartinhoFernandes Windows Update does not offer me the SP1 for some reason.
 
@R.MartinhoFernandes A little. Asking the answerer to give up is something even I rarely do.
 
Wow, that coming from you means... a lot.
 
indeed
 
11:42 AM
And great, someone upvoted because they think I don't have the right to vote.
 
kinda like Tony telling you you watch too much porn
@R.MartinhoFernandes I counter-counter-downvoted it.
 
This is so stupid, people upvote because they think it deserves some exact score they decided "-1 is fine but -2 is harsh" WTF ?
double counter counter downvote because the question is shit and I give a shit.
 
@R.MartinhoFernandes you're welcome :D
 
Double counter upvote for the giggles.
 
Upvotes to counter downvotes are the second most annoying thing in this community.
(The most annoying of all are edit peer reviewers, obviously)
 
11:46 AM
@R.MartinhoFernandes I'd say the most annoying is people who don't actually understand your answer and comment on its "pitfalls".
 
Nope, still does not beat the moronicity of edit peer reviewers.
 
Does.
 
I am tired of rolling back crap edits that would never have gotten in if edits were still restricted to 2k.
Someone even butchered the C++ tag wiki with that.
 
> implying the C++ tag wiki was good at some point
 
@Cicada not that bad
 
11:50 AM
Speaking of the tag wiki, don't you guys and gal think a link to isocpp.org should be on the first paragraph or something?
 
@R.MartinhoFernandes zero
 
@thecoshman Zero?
 
@R.MartinhoFernandes aye, zero fucks given
 
Ok, I will explain to you how to actually give zero fucks: Step 1. don't even give a fuck about explaining how many fucks you give. Step 2. there is no profit.
 
11:53 AM
@sbi Gosh, that thing is fugly.
 
@R.MartinhoFernandes zero
 
@R.MartinhoFernandes Yup, SP1 fixed it. :) cheers
 
@sbi :O
 
sbi
@R.MartinhoFernandes No point in using a pic of a nice young lady when showing someone a middle finger.
 
11:55 AM
@sbi What kind of ape is that?
 
Bin the NMR!
 
sbi
@kbok Naked mole rats are ugly, too, but they don't give a middle finger about giving a middle finger.
@Cicada It's an orangutan.
 
@sbi It's making a face.
 
@sbi Apes are monkeys, but here, fixed it just for you.
 
huh... yeah... you can make a std::runtime_error and forget to throw it... kind of annoying thing to forget :P
 
11:58 AM
@sbi Thank you for your cooperation :)
 
sbi
@kbok Yeah, but it can't help it. Apes, OTOH, do not have to show the middle finger all the time.
 
Why would apes do that?
 
sbi
@Cicada Humans are monkeys, too. Shrug. It's still not terribly helpful to refer to them that way.
@R.MartinhoFernandes Because they don't give a fuck about being nice to pirates?
 
@sbi Which is a good thing IMO, or they would be much less zoo-friendly.
 
@sbi Would you have shrugged if I had said "what kind of animal is that?"
 
12:00 PM
What kind of thing is that?
 
What?
 
@R.MartinhoFernandes "That's not terribly helpful"
 
> Click "LIKE" if you think these 2 girls are enjoying their 1 large cup of Popcorn
lol
 
Are you watching porn at work?
 
sbi
@kbok Don't be silly. It's exactly that they are so human-like, yet so inhibited, why they are such attractions at zoos.
 
12:03 PM
ewww
 
sbi
@Cicada No. I would have been outraged about you not even bing able to sort this "animal" into the simians. :)
 
chimp_bonobo_penis_erection_pygmy.jpg Nope, not clicking that.
 
@sbi Needs SFWness warning. Or maybe just looking at the URL is enough.
 
sbi
@R.MartinhoFernandes Why? It's not as if this was human porn.
 
@Cicada ?
 
12:04 PM
-11
Q: Example application to locate a vehicle using gps with code?

VanajaI want to track the vehicle's location using GPS in a website. Please guide me to implement the code for tracking the vehicles using GPS.

 
sbi
@Cicada You want to see the female counter part?
 
@thecoshman The monkey lol. It's gross
 
those are the kind of questions that @R.MartinhoFernandes likes
 
@R.MartinhoFernandes It's just two girls eating popcorn while watching a movie.
 
I was joking :)
 
12:04 PM
@Cicada ah, I didn't blindly click :D
 
@AlbertoBonsanto Why?
 
lunch time :D
 
@kbok A porn movie?
 
@R.MartinhoFernandes I was joking
 
Oh, sarcasm.
 
sbi
12:05 PM
@Cicada What monkey are you talking about? _Calls the librarian.
 
I had not even read the question.
 
@sbi Both the poster and the postee.
 
@R.MartinhoFernandes How could I know
 
sbi
@Cicada You kinda asked for this.
 
You won't have me this time. Not clicking!
 
12:07 PM
@Cicada Aren't you at least a little bit curious?
 
sbi
@Cicada That doesn't change the fact one bit that, compared to this, the male bonobo looked nice and decent.
 
@sbi One more reason to not click!
@R.MartinhoFernandes Not the slightest!
 
sbi
@Cicada Still doesn't change the fact, plus that everyone who clicked knows this now.
And it seems @Tony is getting old. That's now twice in 24hrs that I've seen him summoned, but he failed to show up.
Leaves to allow the lion's maximum confusion.
 
When you don't give a code, they don't give votes hehehe so funny :) stackoverflow.com/questions/13553743/…
0
A: C program to find the number of onto functions and to display all the functions

Alberto BonsantoI answered a similar problem sometime ago but m and n were equal m = n.(You must think recursively to solve this), by your comment I think the possible answers are: {(1,a)(2,b)(3,c)}, {(2,a)(3,b)(1,c)}, {(3,a)(1,b)(2,c)}, {(3,a)(2,b)(1,c)}, {(2,a)(1,b)(3,c)} and {(1,a)(3,b)(2,c)} then this is my ...

 
@sbi I thought getting old was what we all did on a daily basis.
 
12:11 PM
They want the complete homework done
@sbi thanks!
 
Iterators, my nemesis, we meet again. Thank god I don't work at one of those crazy places where you don't have boost (@sbi :P).
 
What's wrong with iterators?
 
@Cicada Ever tried writing one?
I am writing a random-access one. Those things have a ginormous interface.
 
Here's a funny bit of information, regarding the Windows Registry.
it really is irrelevant mostly, but just lol
 
12:24 PM
@R.MartinhoFernandes No I never tried in C++
 
@TonyTheLion 404
 
@R.MartinhoFernandes That's why it's funny!
 
@Cicada Well, it's painful. I think you get the idea.
 
@R.MartinhoFernandes updated
copied half the link, I fail.
 
Raymond Chen
19 Jun 2004 5:28 PM
#
Commenting on this article has been closed.
kurakuraninja
24 Aug 2004 9:58 AM
#
An edge case that can result in a buffer overrun.
kurakuraninja
17 Jan 2008 11:11 AM
#

It didn't do quite as much back then.
Time travel!
 
12:26 PM
@R.MartinhoFernandes Haha yes I was reading that too XD
 
12:40 PM
oh that killed the room
 
who's gonna write the obituary?
 
but that's effort
I'd rather play Starcraft 2
 
constexpr is probably the most misunderstood C++11 feature.
 
cpx
@AlbertoBonsanto: Is that the picture of 'Lelouch' in your avatar?
I just recently watched 2 episodes of the anime.
 
12:48 PM
Yes
@cpx I'm Lelouch Vi Britannia! And I will take over all the world, just saying
 
well.... finally I managed to make that invoke(func, arglist) function - ideone.com/DbRDvD , with inheritance, without {arglist[i++]...} trick. /cc: @Xeo @sehe
 
@Abyx brilliant
 
unfortunately it doesn't work in VC++ =\
 
Xeo
@Abyx Ew, just because of a compiler bug in GCC 4.5.1?
 
boo type safety
 
12:52 PM
@Xeo there was same compiler bug in VC++
 
Xeo
Y'know what would probably have worked on all of them? Indices. :)
 
damn... I want it working in VC++ =/ I hope VC++ will be fixed soon, in 2012 I hope
@Xeo Indices?
 
@R.MartinhoFernandes I must say, I've not really understood it.
@DeadMG I played COD Black Ops II all day yesterday
 
@TonyTheLion That's because it's a giant pile of WTF and insanity.
 
the first time in my life I played a game for more than 1 hour
 
12:54 PM
@TonyTheLion Ewww, a Codder.
 
@DeadMG lol, a typical puppy reaction
 
Xeo
template<class... Ts, unsigned... Is>
void invoke(std::function<void(Ts...)> f, Variant* args, seq<Is...>){
  f(args[Is]...);
}
 
i've built a dirt house
 
Xeo
@Abyx ^^
 
actually i've built mineshaft and extended it to 4 chunks, already mined 25 diamonds from it, although only thanks to Fortune III pick, by the way anybody here plays minecraft?
 
12:57 PM
yeah, it will work...
even in VC++, probably...
 
Whats this desktop notification thing does? I've seen no effect from it so far.
 

« first day (772 days earlier)      last day (4168 days later) »