« first day (83 days earlier)      last day (5090 days later) » 

-1
Q: Checking the type of a protected member function...

Noah RobertsDon't ask me why, you don't want to know (has to do with the whole Qt signal thing). I need to check the type of a protected member function to make sure it matches another signature type outside of protected scope. I've come up with one way but I believe it's going to have the unfortunate effe...

i've closed as "not a real question"
sbi
sbi
00:24
Haha! "terminating the wife process can cause issues, as
normally the system will flag that as in illegal operation, and chroot the offending
process to /usr/jail/"
@JohannesSchaublitb I voted to close as "off-topic." Sometimes it would be nice if there was an "op-is-being-an-%*@(#*$#" reason to close.
00:42
lol @James
00:55
-5
Q: Checking the type of a protected member function...

Noah RobertsDon't ask me why, you don't want to know (has to do with the whole Qt signal thing). I need to check the type of a protected member function to make sure it matches another signature type outside of protected scope. I've come up with one way but I believe it's going to have the unfortunate effe...

some rather offensive commentary :/
=> interesting question on -5
oh, i see already mentioned above...oops
@James that's what flagging as offensive is for :) which i've done
@marcog Oh, I flagged it too. I also downvoted it.
@JamesMcNellis Cool, I'm going for the reversal badge... not sure I understand the question enough for it, though.
@CharlesBailey +1 for bravery!
@CharlesBailey haha good reversal trick!
@Charles +1 for digging in there :)
01:08
i'm also going to push you up.
20 upvotes is an awful lot for any C++ question, though.
is there a "wtf" tag or something that has lots of attention? :)
i guess reddit.com/r/WTF is the correct tag for it lol
wow
an 11ker being like that
he's known for acting like a kid sometimes
01:28
We need an ignore user option for cases like this
I honestly wouldn't want to help such a person
fortunately you don't have to
@TomalakGeretkal i'd probably do so before looking to see who asked
although this case might stick in memory :)
02:00
@TomalakGeretkal heh, i answered it :)
@marcog Don't encourage him!
@TomalakGeretkal i personally find it a valid question
phrased in a bit of a humerous way
the feed clearly needs to have a faster frequency
hmm, the offensive flags on that post went away after the edit ...
and you can't re-flag
02:10
@marcog If someone else edits the post, the flags are removed, I think.
I pointed out on meta that this was bad because it discouraged removing offensive content from posts, but I was ignored.
@JamesMcNellis I know, but I find it odd you can't re-flag
I agree that it's bad
in this case all that was edited was the tags
i think one should be able to reflag :(
i would upvote if there would be a meta post about it
i'll ask on meta
@JamesMcNellis can you perhaps find where you mentioned this before on meta?
2
Q: Offensive Flags broken?

Martin SmithI flagged this question as offensive due to the behaviour of the OP. I'm sure I can't be the only person to have done so. In the mod tools it says it only has 1 spam flag and zero offensive flags. Where did my vote go? Edit: Ah maybe it was the rollback of the question that cleared the flags. ...

It's [status-bydesign]
Ah; it's just rollback that does this, not general editing.
i've commented, linking to this discussion
02:20
I don't want that question getting deleted as offensive, though.
If it gets deleted, @CharlesBailey's chances of getting Reversal go from slim to none.
lol
@Tomalak i've flagged one of his comments and then his comment disappeared
wondering whether SO deleted it because it hit a certain amount of flags?
@JohannesSchaublitb Likely.
i believe if 5 ppl flag his answer, he will loose 100 reps. or something like that xD
@James lol
02:26
@wilhelmtell posted that on Twitter.
(I made that one)
that one rocks
@JamesMcNellis awesome!
LOL
0
Q: Java Preprocessor Check OS

JacobHow do I use Java preprocessors to determine what OS I am compiling on?

@litb I have no idea
@TomalakGeretkal i don't understand why std::pair<A*, B*> p1(new A(), 0) doesn't work
why won't it do the null pointer conversion?
ohh it hits the c++0x perfect-forwarding constructor and tries to initialize the member with the int&& parameter oO
02:46
What
lol, pick a chat room dude :)
The not-quite-perfect forwarding constructor?
Interesting.
Ooh, that got accepted.
Quite surprised actually. I forgot about the make_pair_X pattern when I wrote my answer.
Then again I still think make_pair_X is waaaay overkill in that case
Oh, also, it turns out that I completely misinterpreted the question. Heh, fortunately my answer still stands.
 
5 hours later…
08:02
@NoahRoberts: My answer was genuine; I am trying to help.
 
1 hour later…
sbi
sbi
09:21
@CharlesBailey Has Noah ever been here in the chat? Because I don't think @references work unless a user has been.
09:39
@sbi - yeah he was here when CharlesBailey made his comment
10:02
Hi all
I have a shared_ptr that I pass through a multi threaded program and it seems that this object never actually gets deleted, is there a way to make sure it is deleted when no longer needed?
10:49
0
Q: how to check whether given mobile number is correct or not in c++

user565367check all digit present in given number which greater then 1 and less than 10 digit

don't understand what he's asking for :/
@marcog - i think he's asking how to validate whether a number has between 1 and 10 digits...
@BeeBand That's what I answered
@marcog ah ok yes. i just read his question only. but he doesn't say how he's representing that number tho - the question is kind of sparse.
@marcog he doesn't say if its a string...
@BeeBand Yep, that's my issue with his question
and now people are thinking he's trying to validate the format
yeah - i think he just wants number of chars.
oops or digits or whatever
@marcog - well he also posted this one: stackoverflow.com/questions/4624490/…
10:57
@BeeBand hmm, i wonder what that tells us about what he might want
@marcog - dunno i'm none the wiser! lol
@BeeBand Okay, given him both int / strlen
@marcog complete with std::string::length :D
@jweyrich Oshi! Good idea :)
@marcog btw, thanks for the support on that offensive comment yesterday (at least in my timezone)
11:02
@jweyrich pleasure :)
11:12
I find interesting when people ask a question but aren't available to add further clarifications.
@jweyrich - I haven't provided many answers and am usually the question asker - I find it really odd too when people disappear. I'm normally checking regularly for updates and editing my question a lot.
@jweyrich I think the attack of commentary scares some people off
@marcog - yeah it can sound like an attack sometimes... it can be intimidating I suppose.
@BeeBand I've also noticed users post a question and 2 days later their last login time was the time of posting :/
@marcog I need to confess I myself have avoided posting few questions because I personally find difficult to make it quite clear in the 1st shot. But then, while I'm writing the question and figuring out all details I need to provide, I find the answer.
11:18
@jweyrich I find it quite not uncommon to answer my own question while asking someone (outside of SO)
the reverse just happened to me yesterday
someone answered a problem they'd been thinking of for days while asking if they could get my help :)
 
2 hours later…
13:20
In the russian forums there is actively discussing the future of C++
build a time machine and go back and beat Stroustrup into submission before he screws up all our lives?
 
1 hour later…
14:29
@ChrisBecke This could be an interesting discussion. What exactly do you think Stroustrup did wrong? Note: "everything" is not an acceptable answer. Be specific!
@G71 What exactly are "the russian forums"?
14:40
@FredOverflow The biggest issue I believe is the fear of breaking backwards compatability, which has resulted in crud that might have made sense back in the days but not today hang around
@marcog I think it's a well-founded fear. You simply can't afford to break millions of lines of code.
15:12
the new and delete keywords specificallyy
well. I have a long list of aspects of c++ that bug me. But I find the way that new and delete introduced a magic new syntax, that we cannot replicate as c++ developers, irritating. Especially in contrast to languages like objective-c where the allocation and initialization operators were added using the same syntax developers had access to.
if the syntax for creating 'verb' operators was available to devs, we wouldnt have to argue about when and if garbage collection got added to the standard. It would be something we could all add to our own class heirachy.
As a simple example, I think with a more open syntax we could have declared a class with retain and release operators, such that it would work like this:
Class* someClass = new Class;
Class* copy = retain someClass;
release someClass;
release copy;
So yes, I would go back and try to convince Stroustrup that making 'new' and 'delete' keywords is a mistake, and that operators like that should be implemented via a extensible syntax.
15:32
How can I increment a pointer by a given int again, dumb question but I forgot about it :( Tried *(routes + (i*height)) Where routes is a pointer to int and i and height ints but get an invalid conversion error. The error of course also makes sense but I don't see how I should increment a pointer by a given int.
@Nils routes + (i*height) should work, why are you dereferencing afterwards, and what is the context in which this expression is embedded?
ah dumb mistake
inline int* get_route(int* routes, int height, int i)
{
return *(routes + (i*height));
}
the * after the return was too much
@FredOverflow thx
15:57
@Nils You're welcome. Note that using lots of pointers isn't very C++ish. You're probably better off with std::vector or other standard containers.
 
2 hours later…
18:05
Hello.
18:57
hi
3D transformations make me cry :(
Me it's Objective-C that makes me cry. :(
why?
well not cry. just sad.
it doesn't work.
that's exactly my problem
trying to move my camera in 3D space, but the rotations become all wrong
even though the translations, for which it's the same function but using a different variable, are fine
life hates me :(
or, it just doesn't want me to make indie games
[NewSessionWindow.window makeKeyAndOrderFront:self]; doesn't bring the window in focus. and when i close the window, clicking on the menu item a second time won't show the window. only the first click shows it, not the second.
lol i'm getting into indie too now. but i haven't touched the ui yet and i have never done graphics before.
my first game.
funny thing is, i find i'm not productive. so i diverted to a new small project to create a tool to enhance my focus. in objective-c. my first attempt at a mac app.
yes, in order to enhance my productivity i essentially halted it.
19:13
lol
I'm not finding 3D graphics tooo hard, it's just the dodgy rotation rules that confuse me
@sbi I love this chatroom. <3 :)
@DeadMG lol yeah
@wilhelmtell: It's less than 1k lines of Direct3D to start rendering simple scenes
wut? seriously? that's insane!
Wow. I'm scrolling through yesterday's transcript. Dude. You were on fire! :-S
I think I left yesterday just in time. :p
Before getting overly politically-incorrect myself. :p
actually, I really don't understand
I mean
bah
it's really not worth it
it really didn't seem that harsh to me
I can't believe people think C++ is dead or even dying. It's ranked 9th in popularity on StackOverflow and it's usually among the 3 most active chatrooms. <3
And then of course there's NASA, the entire game industry, graphics, sound and animation software industry, hospitals, airplanes and so forth. But never mind the details. Among the three most active chat-rooms on StackOverflow!
2
19:32
kek
kek? Knowledge Evangelizes Kamikaze?
it's Orcish
for lol
×—×—
teenage-hebrew. for lol.
oh
by 1000 lines of Direct3D
I mean
about 200 lines of Direct3D and 600 lines of class { getX(); setX(); etc};
holy fuck that is one immoral use of getters and setters. if there'd be one exception for which death penalty should be allowed in this country then it's immoral implementations of getters and setters.
19:42
not really
as an abstraction, they're sometimes necessary
for example, in my Direct3D implementation of a Text object, then you just get/set a member variable
sbi
sbi
This is a really great answer:
6
A: The Wikipedia of Long Tail Programming Questions

AarobotDuplication is a Hard Problem, and not one that is going to go away by sheer force of will. We can all bloviate all we like about how bad the situation is but what's lacking is a comprehensive solution. So far all we have are scattered suggestions that attack tiny fragments of the problem and m...

but the Direct2D implementation is substantially more complex
with caching and suchlike
where getting and setting is more complex than just var = arg; return this;
 
1 hour later…
20:48
hello, It might not be the right channel for that, but it's a question about the language in general. I'm including to my Win32 Console Project <GdiPlus.h> and IntelliSense (in visual studio) cannot see the Image and Bitmap Classes, Compiling the project gives me similar compiler errors.

the problem is that in GdiPlusBitmap.h (that I'm including) there is a definition for this class


actually the intellisense does not show any class, as if it was C not a C++ project, is there a way to configure it?
Maybe I shouldn't have changed my gravatar to my photo. I'm now receiving love letter e-mails...
"Hello My New Friend.
I am Miss Esther,I hope honesty and trust they say build a strong relationship,no matter the distance that keeps us apart it still gives me the confident to write you this mail.I saw your profile at (stackoverflow.com)and become interested and I will really appreciate it if we can click together as one great lovers ok.Please kindly mail me back with my email id ([removed]) So that we can know about ourselves and I will give you my pictures for you to really know more about me remember that remember age, color, race,Religion and distance doesn't matter but what matters
alright, solved the problem... I should've used the namespace Gdiplus
@JamesMcNellis Go see Ze Frank's first TED Talk. It's awesome.
Ok, when I get home.
115
Q: Hidden Features of C++?

Craig HNo C++ love when it comes to the "hidden features of" line of questions? Figured I would throw it out there. What are some of the hidden features of C++?

that's mean!
why did they close that, but not the other Hidden Features questions
21:03
@JohannesSchaublitb 40% of the close-voters aren't here anymore.
hmm
why is it locked
too bad
Also, 40% of the answers are by you. :-P
lol
not really
i just found you can declare class : base { };
i always thought you need a name if you have base classes. not true!
Well, that sounds quite useful!
err. i mean class : base { } foo;
lol
21:07
@JohannesSchaublitb You're right. Only 17%.
@JohannesSchaublitb gcc 4.5.1 doesn't accept it.
@wilhelmtell that's why it's a hidden feature
@JohannesSchaublitb of c++ or of gcc?
standard c++ has always supported it. but only gcc trunk (4.6.0) can cope with it.
21:17
mm
what is it useful for?
oh wait, not true
g++4.5 supports it just fine lol
lol
obviously you need to define the base class first
class : base { }o;

int main(int argc, char* argv[])
{
    return 0;
}
main.cc:1:14: error: expected class-name before '{' token
main.cc:1:17: warning: non-local variable '<anonymous class> o' uses anonymous type
main.cc:1:17: warning: 'o' defined but not used
make: *** [.make-debug/./main.o] Error 1
make: Target `all' not remade because of errors.
oy
shoot me now.
21:19
the left leg. the right is shot already.
haha
to be fair - i verified it and i too forgot to define the base first and thought "ohh g++4.5 doesn't support it!". only later it appeared to me it wasn't defined lol
lol
what's it useful for? one of the few uses i found for unnamed classes is
struct {
    // ...
} nil;
but even that just in theory.
i've no idea what it's useful for
or substitutes for singletons in some cases. but that too is silly to do to begin with.
Well, in C, the struct { /* etc. */ } name; allows you to typedef the struct along with its definition. Right?
21:25
yeah so you don't say struct all the time.
21:45
@JamesMcNellis typedef's more a side-effect of the syntax: I think struct {} name; was originally more intended to declare variables conveniently
without it, struct Tag {}; typedef struct Tag Tag; would always be possible, anyway
@JohannesSchaublitb from the history, looks like there were several close/reopen cycles on hidden-features around that time
22:11
Whenever I make guesses about the history or evolution of C, I'm almost certainly going to be wrong. :-)
well, I recall that typedef was a relative late-comer, at least compared to other features :)
who else lives by the rule of never checking code in on fridays after lunch, or the day before you leave on vacation?
2
@JohnDibling That's when I check all my code in.
LOL wow, you live dangerously.
Every time I check code in when I'm going to be out of the office for a few days, I break the build.
And then I have to remote in over some bailing wire 15 baud wireless line in order to fix a stupid syntax error.
I kid.
Is it beer-o-clock yet?
22:25
I just finished-finished a major project. Technically beer-o-clock isnt for an hour, but I think I deserve a special reward, dont you?
Of course!
I'm battling Visual Studio over who gets to insert the . after I type a class name (in C#). So far, it's winning.
VS knows better than you. That's the idea, right?
It thinks it knows better than me.
22:58
crazy anonymous downvoters :(
makes me sad

« first day (83 days earlier)      last day (5090 days later) »