« first day (620 days earlier)      last day (4346 days later) » 

3:00 PM
3.7 rounded to 4 is a 7.5% error
3.1 rounded to 4 is a 22.5% error
you are more wrong @RMartinhoFernandes
@Cicada ¬_¬ the stupidity in such comments, even when trolling, make it hard to take serious
 
@thecoshman I'm less approximate.
 
@thecoshman No shit??
 
@Cicada because it's one of the few French words worth knowing
 
user784668
@thecoshman +1
 
@Cicada What's maleness to do with this?
 
3:01 PM
@Cicada sorry, all out
 
@thecoshman I could tell :))
 
@Cicada uh, wasn't the Lord alive then?
 
@Cicada I might have a few fucks left... oh nope, they're all gone too
 
Quick question. I'm making a huge commit on an svn repo with several large files and my connection is very slow. What happens if I abort the transfer. Will the large files resume midway when I try to do the commit again on a faster connection?
 
@CheersandhthAlf There is scientific evidence that The Lord is Something More (tm)
 
3:03 PM
@JcMaco ಠ_ಠ
 
user784668
@JcMaco Run it and see.
 
@thecoshman Do try again something smarter (or wait. don't)
 
0
Q: For-loop vs assignment operator

user1204406Is direct assignment (i.e. =) the same as casting something to char* and then using a for loop to copy it byte after byte?* I want to know if there's an advantage of one method over the other. struct A { int a; int b; } Test; void* Buffer = malloc(1024); // Casting and byte copying fo...

Amazing C++
 
@Cicada hah! fixed it just in time, miss I can write English with ease
 
I wasn't making fun of any English deficiency
 
3:06 PM
@Cicada Empoisonnement à la testostérone.
 
@JcMaco Probably not.
 
@Cicada sceptical pirate is sceptical
 
You know when you wake up and decide to write C++ code?
And then you
allocate a MB of memory through malloc
((char*)Buffer)[i] = ((char*)Test)[i];
Manage to fail this.
 
Well, as we all know, any code written in a .cpp file is C++.
7
 
And then manage to not free it in the end.
 
3:08 PM
@DomagojPandža No, I don't. I'd rather wake up, watch porn and argue about how good it is, how nice the actors perform and the carefully crafted scenario rather than writing C++.
 
@Cicada knew you would come around to it :D
 
@Cicada That's a first.
 
@EtiennedeMartel Boo, .c++ for the win.
 
Did you mean knew*
 
@RMartinhoFernandes F off.
 
3:09 PM
lol .c++
 
.c++ wins
 
What an awful idea
 
Why is it awful? It's pretty much irrelevant.
 
@RMartinhoFernandes Because of Greece.
 
@RMartinhoFernandes Which might be all there is to that.
 
3:10 PM
@RMartinhoFernandes Yeah? That's typical of you people from the south
Being lazy and not following conventions
 
I'm from the West.
 
user784668
@RMartinhoFernandes That code should be saved under .php extension.
 
"cant send pointers over TCP" - what?
 
@Cicada he's not Italian :P
 
@DomagojPandža Of course you can, use XML
 
3:11 PM
@DomagojPandža What what the the fuck fuck?
 
@Cicada Convention? Like .C? Or .cxx?
 
@thecoshman Implying portugal is not in the south
@RMartinhoFernandes Yeah
 
I have a nutcase here, I don't know why I even bother answering questions.
 
It's in the West.
 
Insert generic spaghetti Western soundtrack here
 
3:11 PM
@RMartinhoFernandes So it's in the west, but not south? I see, I see.
 
@DomagojPandža Ha, you need to learn to pick 'em.
 
@Cicada in the south of what? that's like saying my coffee is up
 
@thecoshman It's not just coffee then. Whatever it is, you should just get off of it.
 
user784668
@Cicada Australia is in the south. Not Portugal.
 
user784668
@Cicada Your thinking processes went south, or what?
 
bob
3:12 PM
if I want a random int between 0 and 255, is it better to do rand()%256 or (uint8_t) rand() (or something else) ?
 
user784668
@bob std::uniform_int_distribution
 
@RMartinhoFernandes true, the coffee here is terrible, just truly terrible
 
Oh sorry, I totally missed Portugal near my northen arctic circle
 
It's not in the North either.
It's in the West.
 
for (int i=0; i != 8; i++)
{
((char*)Buffer)[i] = ((char*)Test)[i];
}

How can someone concentrate this many fails in such a small amount of code.
 
3:13 PM
@Cicada silly you, insects don't like the cold
 
I need some sleep and meditation.
 
user784668
@DomagojPandža Fails? I see no fail in this code.
 
And English don't like sun
Implying they have some
 
@DomagojPandža By being a nubcake.
 
@Fanael ((char*)Buffer)[i] = ((char*)Test)[i]; Look closely.
 
user784668
3:14 PM
@DomagojPandža Look closely:
 
user784668
Sarcasm is "a sharp, bitter, or cutting expression or remark; a bitter jibe or taunt", usually conveyed through irony or understatement. Most authorities distinguish sarcasm from irony; however, others argue that sarcasm may or often does involve irony or employs ambivalence. Origin of the term The word comes from the Greek σαρκασμός (sarkasmos) which is taken from the word σαρκάζειν meaning "to tear flesh, gnash the teeth, speak bitterly". It is first recorded in English in 1579, in an annotation to The Shepheardes Calender: October: Usage Dictionary.com describes the use of sarcas...
 
@Cicada what? where you dropped on your head. Have you never seen England on one of the few days we get sun, we go fucking mad for it. Nothing says you've had a good day like sun burn
 
I'm a snarker, and I'm proud of it.
 
@Fanael Sorry, irritated today. Want a cookie?
 
@thecoshman Precisely. You fucking party every two days of sun per year
 
bob
3:15 PM
@Fanael I included <random> but it still says not found
 
@thecoshman "SUUUN! SUUUN! QUUIIIIICK! BLURUURRURURURU!"
That kind of shit.
@bob C++11 support is required. What's your compiler?
 
@Cicada hey baby, we party ever day of the year
 
user784668
@EtiennedeMartel Or TR1?
 
bob
@EtiennedeMartel where could I find that out ?
 
got a bit carried away declaring functions as virtual, even the constructors :( stupid me
@bob what compiler do you have?
 
bob
3:18 PM
Where can I find that out ?
 
@Fanael Isn't TR1 the ISO sanctioned C++11 without some math helpers?
 
@bob I take it you are using visual studio then. what version?
 
bob
actually I don't, it's eclipse
 
user784668
@bob Most likely GCC, then.
 
@bob windows?
 
bob
3:19 PM
no
 
Also, Bob, try to reference chat messages by replying to specific ones rather than just @<name>, enables the rest of us to pitch in.
 
bob
@thecoshman not windows
 
user784668
@bob Run gcc -v from inside the terminal.
 
Linux or OS X?
 
¬_¬ fucking hell, making us work for this isn't he
 
bob
3:19 PM
@Fanael no, not gcc, waf
 
Whaaaaaat.
 
@jalf If they expect me to use their software and use the compiler they choose, they should at least support updating said compiler. Otherwise, install the compiler as a third party and let me update it.
 
user784668
@bob GCC is the compiler, waf is a build system.
 
bob
@EtiennedeMartel linux
 
(╯°□°)╯︵ ┻━┻
 
user784668
3:20 PM
@bob Seriously, run gcc -v and post the fucking output.
 
My head + my desk at high velocity.
 
bob
@Fanael gcc version 4.4.3
 
Yeah, GCC 4.4 doesn't have random, I think.
 
lol, "erectus" what a name
 
user784668
@EtiennedeMartel It should support the TR1 one.
 
bob
3:22 PM
@EtiennedeMartel isn't it possible that I have multiple gcc versions on my computer, and that waf chooses the one it wants/requires/was configured for ?
 
bob
well in any case it says it's not found
 
user784668
@bob Try <tr1/random>.
 
bob
so what other alternatives do I have to produce a random int between 0 and 255
 
just update gcc
 
3:24 PM
@RMartinhoFernandes I found a workaround on the interweb ideone.com/xW7k5
 
bob
"gcc is already the newest version"
 
Isn't Boost.Random the same modulo some namespace changes?
 
user784668
@thecoshman May not be the best idea on Linux.
 
@Fanael update ALL the things
 
user784668
@EtiennedeMartel It is IIRC.
 
3:24 PM
@bob well it's not
 
user784668
@thecoshman Fuck bleeding edge, be stable.
 
bob
well that's what my package manager says, I wouldn't want to install it by hand
 
user784668
@bob What distro?
 
@Fanael yeah... latest stable, hardly bleeding edge
 
bob
@Fanael tr1/random doesn't work either
ubuntu 10.04
 
3:25 PM
any way, I'm out of here. see you guys later
@bob see my previous comment about 'update'
 
bob
no thanks I don't want to go through that process
 
Latest stable is GCC 4.7 IIRC.
 
user784668
@bob Boost.Random
 
bob
I'm sure there is a way to get a random number without using the latest gcc
 
user784668
@EtiennedeMartel 4.7.1, to be exact.
 
bob
3:27 PM
@Fanael what's the include I need for Boost.random ?
 
user784668
@bob Check in the docs.
 
@thecoshman "home time" :)
 
boost.org/doc/libs/1_49_0/doc/html/boost_random/tutorial.html seems to contain everything you need to get started.
 
bob
how about my original solution ?
 
user784668
3:28 PM
@bob rand sucks, don't use it.
 
bob
why, if I may ?
 
Because it's old, because it yields crappy numbers.
 
user784668
@bob It's of poor quality, it's slow, it uses implicit global state, you can't have multiple generators.
 
bob
ok, fair enough. But still, Type 'boost::random::mt19937' could not be resolved
 
user784668
@bob Post the full error message.
 
3:31 PM
"I am not sorry, I dont quite understand." Comment made my day.
 
bob
well that's it
that's the full error message returned by eclipse: "Type 'boost::random::mt19937' could not be resolved"
 
user784668
@bob An Eclipse CDT error? Build the project. Or try rebuilding the index, if you really have to. But build the project first.
 
missing include?
 
bob
@sehe which one?
 
Quick! I need the name of a sci-fi novel featuing time travel to the past.
 
3:34 PM
@EtiennedeMartel —All You Zombies—
It's not a novel, though.
 
bob
what include do I need for boost::random:mt19937 ?
 
user784668
Yaah, my refactored code compiles!
 
@bob <boost/random/mersenne_twister.hpp>
 
bob
@EtiennedeMartel Unresolved inclusion: <boost/random/mersenne_twister.hpp>
 
user784668
…but doesn't link with undefined reference to 'vtable for gl3::Renderer'.
 
user784668
3:37 PM
5 mins ago, by Fanael
@bob An Eclipse CDT error? Build the project. Or try rebuilding the index, if you really have to. But build the project first.
 
@bob Is Boost installed? Is it in your include paths?
 
sbi
I can't help but grin at how the meta crowd and the mods are outraged for being suddenly overrun by a still higher force here. I have to admit to some case of Schadenfreude here. :-o
 
-18
Q: If someone has more points, am I their bitch?

tomwrongIt seems to me that people with loads of points throw their weight around. This is making the site intolerable.

lol
 
bob
all of this is getting quite difficult, I just want a random number. I don't want to install anything, whether it be new libraries or newer gcc versions. I'm sure they managed to get random variables even in 1970
 
@Mysticial Smoothest thing I ever saw.
That guy's gonna win a Smooth Operator Award.
 
3:39 PM
@Mysticial Oh, god. xd
 
@sbi Is it fair to portray the situation as a whole question was pulled down rather than moderating the comments, which were the problem?
 
Are you guys my bitches? Or do I have to put a request up on meta for that?
 
user784668
@DomagojPandža
6
 
@bob boost/random.hpp ? Perhaps you accidentally include it inside another namespace (instead of at the very top of your code)?
 
sbi
@DomagojPandža Actually, it's the other way around. With your <1k rep, you're our bitch.
 
bob
3:42 PM
@sehe no it's just over the first namespace
 
@bob See also, Eternally confuzzled: using rand for the more 1970s way of doing things. Works of course.
 
bob
@sehe that I already know, it was my first question from which all of this derived.
 
user784668
@sehe And is wrong. The distribution is not uniform (not for ints, anyway).
 
@Fanael meh, not really the point now is it. Or maybe it is. I haven't read back all history on this conversation
 
sbi
@LucDanton I dunno, and actually I don't care to much about it. I only noted how meta crowd and moderators were enraged about someone taking away one of their laboriously created precious little toys — while they are so often on the other end of such enragement.
 
3:45 PM
@Mysticial Not quite. Just means you need to shut your mouth and listen. You learn best that way.
 
@sbi You link a lot of meta to not care about it.
 
bob
@sehe my first question was :
if I want a random int between 0 and 255, is it better to do rand()%256 or (uint8_t) rand() (or something else) ?
 
user784668
@LucDanton lol, good point
 
sbi
@LucDanton I came across it because Joel tweeted about it. I read through half of it, and had to express my schadenfreude here. Also, not that I did not say "I don't care at all". I hadn't even seen that toy, nor seen it linked. I have no stake in this fight.
 
This is too much This is the most insulted I have ever been online. Actually annoyed right now. — tomwrong 39 mins ago
This guy is pissed.
 
3:47 PM
@EtiennedeMartel I hope the actual insults have been deleted, because I can't see any.
 
@EtiennedeMartel but he's wrong
 
@CheersandhthAlf Those things are not mutually exclusive.
 
@sbi Tweeting it, too? That is a weird situation, I can see the humor.
 
sbi
@EtiennedeMartel To the contrary, actually.
 
@EtiennedeMartel Hah! He even flagged [his own question] to be closed as not a real question. That's new (for me atleast).
 
user784668
3:49 PM
@EtiennedeMartel WTF?
 
@CheersandhthAlf Tom Wrong? Or just normally wrong?
 
posted on June 27, 2012 by vcblog

Back, at the end of April, we announced our first release of Casablanca as an incubation project on Devlabs. Since then, we are glad to have received a positive response from the C++ community.   Today, we are announcing a “bug-fix” refresh to the Casablanca release. The update can be downloaded from the Casablanca devlabs site. The notable additions are: A number of bug f

 
@bob those two would be exactly equivalent. And, yes the article gives you a hint of how to improve. And yes std::uniform_int_distribution is even better
 
bob
@sehe but I can't manage to use it because of the unresolved inclusion
 
user784668
13 mins ago, by Fanael
5 mins ago, by Fanael
@bob An Eclipse CDT error? Build the project. Or try rebuilding the index, if you really have to. But build the project first.
 
3:51 PM
@Drise i meant only the name, but now i see he was closing a perfectly fine question, he's also wrong in the normal sense. maybe not stupid, but if not, then a very political animal. i don't like them
 
bob
it's too hard to build to project from eclipse, there's just too many things that are automated I wouldn't even know where to start
 
@bob did you read Sehe's link? It clearly goes over how to use rand()
 
bob
@MooingDuck yes I did. But I already knew how to use it. It's just that many people here said it would be wiser to use uniform_int_distribution instead.
 
@CheersandhthAlf It was a joke you already made apparently. I still laughed.
@bob many people here are usually right. I listen and learn from them daily, most days.
 
bob
@Drise well yeah that's why I'm insisting, rather than using my already working solution
 
3:54 PM
Being right is boring.
 
@RMartinhoFernandes Try being left.
 
bob
well many of you are wrong on the usage of #include <boost/random.hpp> apparently
 
@bob . . .
 
Blasphemy.
 
bob
@RMartinhoFernandes (if that makes you happy to know you're wrong)
 
3:55 PM
I'm eating my own toes as we speak.
My hands are up in the air like I just don't care.
 
apparently
Is a very useful word. With such a delicate meaning
Plonk time
 
@bob Take care with your words. Some people are animals in here (cough @sbi @sehe @MooingDuck).
 
@sehe Oh no, not you too?
 
user784668
@EtiennedeMartel You commie.
 
@Fanael Social-democrat. Not the same thing.
 
sbi
3:57 PM
@Drise Are you gonna stop plinking me now? Taps foot. This is impolite, you know.
 
@sbi No. :D
 
Careful, he might plonk you!
 
bob
so what can I do to resolve this unresolved inclusion issue ?
 
As long as no one planks anyone.
 
@sbi Sorry, I'll stop after this.
 
sbi
3:57 PM
@EtiennedeMartel So plinking leads to plonking?
 
user784668
@EtiennedeMartel Commie in disguise.
 
@sbi I'd assume abusive plinking would lead you to plonk, yes.
@RMartinhoFernandes Hmm, @thecoshman's a pirate, no?
 
fml used to mean fix my lighthouse. Did not know that.
 
sbi
@bob You might want to carefully craft a question and post that on SO proper, rather than annoying the users here that were trying to help you. (Note that I have no idea how you did that, but two of them whose input I value have admitted to having you plonked.)
 
Oh balls. I forgot to include @CatPlusPlus in my plink list of animals
 

« first day (620 days earlier)      last day (4346 days later) »