« first day (185 days earlier)      last day (4765 days later) » 

Xeo
12:05 AM
what is generally better? pull-based or push-based approach?
 
@Xeo Yes.
 
@Xeo Push can be done with periodic or longstanding pull, so I would say pull.
 
I lost the game.
 
Xeo
12:24 AM
@JerryCoffin I love Yes/no answers to non Yes/no questions!
 
hi
 
Xeo
@Potatoswatter my problem is that pull-based approach adds dependencies
 
@Xeo: What kind of dependencies?
Anyway, my argument was about building push on top of pull, so it sounds like that doesn't apply.
 
Xeo
@Potatoswatter well, the class would need to know where to get the data from
 
@Xeo: Implement a non-specific pull query at the socket object level… or don't :v)
 
Xeo
12:28 AM
@Potatoswatter so i push data from somewhere unknown into the queue and the object pulls that data? aka, a mix of pull and push based approach?
 
@Xeo I don't have a whole lot of network background, but I do like the "Comet" methodology of initiating a request to transfer ownership of the connection to the server. Aside from that, I don't think I have much to add… do whatever is elegant for you.
 
Xeo
@Potatoswatter I never said anything about network xD
 
@Xeo Client-server communication, whatever.
If several objects are going through a common socket/queue/whatever, then there must be a dispatcher. Focus on making the dispatcher efficient.
 
 
2 hours later…
2:30 AM
hi every one..!!
please help me to understand that what does he mean by "Smoothing perpendicular to the derivative direction with a triangle filter :"
 
3:03 AM
hello
is this wrong statement "G = sqrt(gX^2,gY^2);"
@ronaldlandheerCeslak: is this wrong statement "G = sqrt(gX^2,gY^2);"
i solved the problem./..:)
 
3:46 AM
hi
@Miss any reason why you poked me for this?
^ is xor, btw
 
4:07 AM
well i solved the problem
 
 
3 hours later…
7:25 AM
hello
I'm always getting a EXC_BAD_ACCESS [NSBezierPath appendBezierPathWithGlyphs:count:inFont:]
what's might be going on?
 
Uninitialized pointers/instances?
 
1. Youre using Objective-C not c++, so the obj-c group might be better.
 
I'm using objective-c++
 
2. What wilx said
 
ok
but
 
7:27 AM
one of your parameters is either nil, or garbage
 
glyphs, whch I pass to appendBezierPathWithGlyph is not NULL
 
Something else is.
Or invalid.
Use debugger.
 
NSGlyph glyphs[count];
[NSBezierPath appendBezierPathWithGlyphs:glyphs count:count inFont:someFont];
a. are the individual NSGlyph elements initialized?
b. is the glyphs array actually an array, and actually count elements big.
c. is the font a valid NSFont ?
 
I'm doing that
NSGlyph* glyphs = fog_new NSGlyph[glyphCount];
[manager getGlyphs:glyphs range:NSMakeRange(0, length)];
 
7:31 AM
The line [NSBezierPath appendBezierPathWithGlyphs:count:inFont:] is missing the :glyphs part that Chris has pasted.
 
bezierPath is valid
 
@KarlvonMoor Im worried that glyphCount and length are not equal in that sample.
 
font is valid
glyphs is valid
ok
 
8:32 AM
close?
0
Q: boost shared ptr. need help

user713782I have a problem with boost shared_ptr. The initialization of the smart pointer in the cycle is increased after the first iteration. I have no idea why it happens. I checked and there are no memory leaks and all destructors are called. Does anyone have a solution of this case? See example: clas...

 
8:51 AM
if you have a function that returns a struct by value, it finds this in a container, what should I return when nothing is found?
 
a null struct.
or an exception
struct SomeStruct {
static SomeStruct null;
};

SomeStruct st = fn();
if(st != st::null){
//valid return
 
9:18 AM
@TonyTheTiger: Change the signature of the function so that it can return a flag or modify a boolean variable. Or use iterators abstraction instead.
 
@wilx not sure what you mean by modify a bool?
 
SomeStruct find_it (T key, bool & found_it);?
 
@wilx problem I'm having is that the compiler complains that not all code paths return a value, I don't see how the bool would remove the warning here?
 
@wilx Tony has me on ignore you see
 
@TonyTheTiger: Well, in that case either do what Chris says, or stop returning the structure from the function when it cannot be returned in all cases.
Or use an exception. :D
j/k
Exception would be a bad idea in this case.
Unless it is more than just a simple map and missing element is indeed an error.
 
9:29 AM
@wilx ok
now if you are wrapping a function that takes the size of a string as an unsigned int, but you're passing int std::string.size(), so how do you convert from size_t to unsigned int or what's the best way to deal with it? So the compiler doesn't generate warnings?
 
A cast?
Or again, change the signature of the function?
 
change the function signature. size_t and int are not defined to be the same size
 
Yeah, I try to use std::size_t for size parameters.
 
@wilx well my C++ function is a wrapper for a function to which I have no access, that happens to take the size as an unsigned int, however I want to use std::string.size(), and not get a compiler warning
 
Well then, change your function to do the correct thing, and take size_t, and it can use a static_cast<> to suppress the warning
 
10:23 AM
@TonyTheTiger: What Chris says.
 
@wilx I've ignored chris, but I've asked on SO proper, so I've resolved the issue
 
10:45 AM
lulz quiet here today
 
11:28 AM
Everybody is catching back at work the time lost in the exception debate. :-)
 
Haha.
 
11:46 AM
@AProgrammer lol
 
12:09 PM
0
Q: Warning: should not initialize a non-const reference with a temporary.

lytenynI get the warning from the title on Sun Studio 12.1 with the following snippet: #include <vector> std::vector<double> g() { std::vector<double> result; result.push_back(5); return result; } int main() { int b = g()[0]; // <- Warning in this line return b; } W...

 
12:57 PM
I think everyone's gone to bed lol
 
1:10 PM
What's bed?
 
1:26 PM
@Xaade it's a place in which you place your body in a horizontal position on top of a soft underground and then cover yourself with a sheet to keep you warm while you close your eyes and doze off
lulz
 
Sorry I fail to get that....
The concept was wiped from memory ever since our kid arrived from the stork...
Ah yes.... the word.... "poopie diaper" replaced it.
 
You don't put your kid in a bed?
 
Hmm.... nope... I put my kid in a swing.
With lots of music....
 
put the kid in a bed
close the door
 
Apparently my kid will only sleep while being spun around like a yoyo
 
1:38 PM
go to another room.
the kid will not die.
 
1/10,000 will.... but that's another topic
 
in that case, frankly, good riddance to bad genes
 
@Xaade lol
 
SIDS Chris....
Now I know why everyone ignores you
Actually it ain't half bad.
I've learned new skills.... like enjoying TV and movies with captioning on.
I've actually gotten somewhat offended whenever they call English sub on American DVDs, English for the hard of hearing.
 
hello @JamesMcNellis
 
1:42 PM
what? As a parent I am concerned for the wellbeing of my kids.
But no one is pretending anyone in this room shed a tear when the yangtzee river in china flooded and killed a million chinese
everyone dies eventually. get over it.
 
@Chris Again.... you're better off not saying anything.
3
Calling SIDS, "Everyone dies eventually, get over it." After "As a parent I'm concerned for my kid."
 
what are you. American? How many taboo's do you have exactly?
 
I have a novel idea
Put that quote on a billboard, with your phone number.
If that doesn't clue you in on how arrogantly stupid you sound....
What's next.... Chris says, "Meh, think pink??? You don't have anything worth keeping anyway"
 
@ChrisBecke I don't think anyone here said "good riddance" to them either
except possibly you?
 
That was a bit mean.
 
1:47 PM
Apparently Chinese are bad genes
 
But there are 8 billion people on this planet
 
@ChrisBecke no. It was a very polite response to the mean things you jsut said
 
at least one person dies every second
many of them in very not nice circumstances.
 
@ChrisBecke and again, the rest of us don't say "good riddance" to them
But you, apparently, do
and then you call us mean
 
and no one gives a damn, unless they are cute, and on CNN.
 
1:48 PM
@jalf thought you ignored him?
 
I don't remember seeing Chris on CNN?
 
@TonyTheTiger I occasionally believe in the whole "second chance" thing
 
@jalf lol I believe in second chance too, but I've already given him three...
 
and frankly, ignoring me for a non popular opinion on exceptions is just silly.
 
@ChrisBecke who did that?
What gives you the impression that anyone did that
 
1:50 PM
@jalf what?
 
That was Tony's last reason
 
No Chris.... ignoring you for making poorly writ arguments with wispy elitism is not unreasonable.
 
Xeo
ohayô o/
 
we ignored you for making absolutely no sense, for doing a U-turn every 10 minutes, for making 5 different arguments and abandoning them as soon as we pointed out the flaws in them, for having negative debating skills
But certainly not "for having an unpopular opinion on exceptions"
And I'd be curious to see if you could find in the transcript where @TonyTheTiger used that as his reason for blocking you
 
I have no idea when Tony actually ignored me, or even gave an explicit reason.
 
1:51 PM
@jalf don't think I ignored him for that, I ignored him for being annoying and spewing garbage that makes no sense
 
@ChrisBecke and yet you're happy to state that "having a non popular opinion on exceptions" was "Tony's last reason"?
See, that is why you're blocked by everyone again and again
the fact that you contradict yourself every 30 seconds, and expect us to take you seriously
 
You might have a point with exceptions.....
But you certainly have no debate skills.

I thought you actually got somewhere by arguing that an exception has no clue at what point on the call stack it will be handled. You could have continued to say that it leads to more unhandled exceptions, whereas error codes force a programmer to deal with the error at hand.

No, you exited on that and made some unrelated comment that sounded like Ghandi trying to explain polymorphism in terms of reincarnation.
 
Xeo
a couple of close votes on here please. :)
2
Q: difference between two ways to insert into map

skydoorI was asked the two ways to insert a record to a map, mymap["foo"] = 123; mymap.insert("foo", 123); so is there any difference between these two except the syntax?

 
Would you like me to jog your memory of what you just said?
> and frankly, ignoring me for a non popular opinion on exceptions is just silly.
 
@jalf it's a chat room with an archive!
 
1:53 PM
@Xaade Im not here to debate my debate skills. or even debate at all.
 
> That was Tony's last reason
> I have no idea when Tony actually ignored me, or even gave an explicit reason.
 
I have opinions like everyone. and I will try at least to back them up with argument.
 
Those three statements, within a couple of minutes
 
@Chris then take your Chinese don't have genes worth having, good riddance, elsewhere.
 
you flatly contradict yourself, you make no goddamn sense, you accuse others of the most absurd things, and you waste everyone's time
 
1:54 PM
@jalf frankly I ignored him for the reason's I mentioned above: annoying and spewing garbage
 
@Xaade what?
 
THAT IS WHY YOU GET BLOCKED
 
@jalf See now, I don't speak lawyer.
 
@ChrisBecke neither do I. Your point is?
 
So, Tony ignored me at a time when Iwas espousing a non popular opinion re exceptions.
 
1:55 PM
@ChrisBecke You said, "No one sheds a tear when a million Chinese died... " "bad genes, good riddance."
 
hence my thought that that was why I was ignored
 
@jalf ignore him, why are you wasting your time yet again?
 
I don't think you need to "speak lawyer" to see the contradiction between first stating what Tony's last reason for blocking you was, and then *immediately afterwards stating that you don't know why he blocked you
 
why am I forced to defend every thought with a 3 page essay explaining each subtle nuance that is normally left out of civilized conversation?
 
@ChrisBecke because you're not holding a "civilized conversation"
 
1:56 PM
I thought it was well understood that I can't know what Tonys "real" reason is.
 
@ChrisBecke Correct term. "Jargon". Actually used in context as well. Amazing they are that blunt with their own confusing speech, but there you have it. "Legal Jargon."
 
you're spewing incoherent nonsense which contradicts what you said 30 seconds ago, has no relation to what is being discussed, and doesn't address the points raised by those you are conversing with
 
My understanding is, I was blocked because of an argument over exceptions.
 
@jalf exact reasons for blocking him
 
If you don't abide by the rules of "civilized conversation", then don't expect us to treat you as if we were having a "civilized conversation" with you
 
1:57 PM
Did he ever say so? no. But that doesn't stop me interpreting the reasoning.
 
I prefered the quietness of this morning...
 
@jalf civilized conversations have been attempted by multiple regular users of this chat and no one has managed so far
 
At which point you need to decide whether submitting people to subscribing to your thought, is worth being ignored.

You need to differentiate between fair, and reasonable.

Life ain't fair. Be reasonable.
 
@AProgrammer don't even go there.... need some life in this place
 
So the only way those statement are contradictory is when they are taken out of context and interpreted literally.
 
1:58 PM
@ChrisBecke No. The only way they are not contradictory is if you don't read them
 
Excuse me for interpreting literally.
 
You said EXPLICITLY "that was Tony's last reason for blocking me"
 
Should I pull out the book of Revelations, and use Omega code, on your comments?
 
followed by "I don't know what his reasons for blocking me were"
 
followed by "Bad GENES. GOOD RIDDANCE...."
 
1:59 PM
@jalf I know, he has a 3 second fish memory, yes that explains everything
 
Now, it doesn't surprise me that you don't read what you yourself wrote. It also doesn't surprise me that you don't read what we wrote. But it surprises me that, given those two facts, you still expect us to take you seriously in a discussion
 
hi boys
 
@GgSalent hello
 
then stop prodding the troll.
 

« first day (185 days earlier)      last day (4765 days later) »