« first day (655 days earlier)      last day (4297 days later) » 

9:00 PM
@Abyx what's VAX?
 
@MooingDuck try another one...
@MooingDuck visual assist x
 
@Abyx try another one what?
 
another header
 
7 mins ago, by Mooing Duck
what do I include for the ASSERT macro?
 
9:02 PM
@Abyx do you know of a list of afx headers I can try? I found that one from google, but not much else
 
@Abyx excellent, thanks, that's what I was trying to find :(
fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h> Sometimes I hate my coworkers
 
@Abyx oh man you beat me too it :|
 
Could someone help me with some trouble on "programming details"?
 
I have so many headers that do not include their own prerequisites.
 
9:06 PM
try PCH and include all stuff there
I know it's a bad practice, but sometimes it's the only option
 
@Abyx this one cpp file is used in five different projects, and the functions called are different in some of the projects, so they have to include different headers.
 
This is some good laughs:
-1
A: Qt : forcing menubar in the window?

lgwestI also want to get rid of the global menu bar and found this tips for unity: sudo apt-get autoremove appmenu-gtk appmenu-gtk3 appmenu-qt here: http://lifehacker.com/5887462/how-to-disable-ubuntus-annoying-global-menu-bar This is probably what you aready did, just mention it explicitly.

 
@MooingDuck uhm... that's painful
 
@Abyx they also don't qualify the headers that are included in 20+ directories.
 
then you can define something like PROJ_SOME, PROJ_ANOTHER` in each project and use #ifdef inside that .cpp file
 
9:09 PM
@MooingDuck If you develop with MFC, I feel sorry for you.
 
aha, apperently the header I needed was afxwin.h
 
Also, please downvote accordingly ^
 
and I can't include it in the headers that need it since it can only be inlcuded once (no guards)
that's a Windows idiocy :/
 
0
Q: What is the meaning of life?

user1569771Any answers? It has been keeping me up at night and during coding. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="ve...

 
@Drise me too
 
9:10 PM
@MooingDuck Windows didn't guard their headers? Bullllllll
 
I'm too rep poor to downvote woo
 
This is something I ask myself too. Obviously in Java, C++ and HTML.
 
I like #pragma once and never use include guards
 
@MooingDuck Write your own guard.
 
@Abyx in 3rd party files?
 
9:12 PM
@Abyx Isn't #pragma once mostly portable now?
 
@MooingDuck everywhere
 
@Tocs yes
 
@Zeta It seem better as
Please destroy this person: stackoverflow.com/a/11767540/868546
 
@MooingDuck You can just add your own guard.
 
Q:"How can I force non-global menubars in my software?" A: "Remove all the menubars from the system, dur."
Why is he only -2?! He should be like -8
 
9:15 PM
@Drise if I could downvote I would
 
@Tocs How much do you need, 100?
 
125 to downvote
I'm getting there slowly
 
Do some edits. I got 150 or so rep for a few days form that. Of course I was somewhat rep whoring...
 
@Tocs when I see people talk to you I go insane because I have MMO characers named Ttocs.
 
@MooingDuck I see your name is scott also
 
9:17 PM
@Tocs no, but I know a Scott
 
@MooingDuck Oh, well I just flipped my name backwards and killed a t
 
@Tocs Don't make him give up his identity. That ruins people for me. I like knowing people as their screennames.
 
Woops
Well people call me Tocs more than they call me Scott
 
@Tocs People call me Drise more than they call me Drise.
I knew that didn't sound right.
 
@Drise lol
 
9:19 PM
oddly, people usually know me as DeadMG
 
huh, "names". I see only black square with something blue, green thing and yellow duck
 
@DeadMG I do know you as another name, though.
 
Oh hey I can downvote now! My +50 bounty answer kicked in
 
1	post marked offensive
1	deemed helpful
Woo! I'm getting places
@Tocs You got a bounty? Fuck you! I haven't gotten a bounty....
 
@Abyx I see the names only in replies
 
9:21 PM
@Drise lol it was an easy one too.. stackoverflow.com/questions/11615606/…
 
@EtiennedeMartel Quite unfortunately.
 
@Tocs Wow. What a useless question.
 
@Drise lolyup, looks like it was homework. Else why wouldn't he be able to take what he already did for the rectangle and easily extrapolate it.
 
@Abyx Green thing? Oh, come on. That's a Buzzblob from The Legend of Zelda: A Link to the Past.
 
@Abyx It is a pheonix, duh.
 
9:23 PM
@DeadMG Hey, it's not like I'm trying to track you down so that one day I show up to your door with 40 ounces of vodka and some bad intentions.
 
I know
I'd just much rather that you did not know my actual name
 
@Tocs Idk. But sergey posts some odd things. Which usually get upvoted to hell.
@DeadMG RICHARD ARTHUR MOLL III
 
@DeadMG You are way too anxious.
 
Now that we got that out of the way.
I do intend when I marry to take the lady's name: Black.
R.A.B?
 
nothin wrong with trying to keep my personal information just that; personal
 
@DeadMG You are on the internet, nothing is personal.
 
@Tocs the analog literals have been around the net for so long that the origional site no longer exists
 
@MooingDuck All I see is a bunch of inverted lols
 
@MooingDuck Yeah I had seen that lib before, but the website went down for it. If you look in the post's comments someone posted a github link with the lib saved (gist.github.com/297819)
 
@DeadMG Sure, Mr. B.
 
9:27 PM
@DeadMG I knew your real name once, you posted it on github or something on accident. I of course, forgot it, because it's irrelevant to everything.
 
@MooingDuck Why would you ever want to do something like this?
 
@Drise "Have you ever felt that integer literals like "4" don't convey the true size of the value they denote"
 
@MooingDuck Not really. Now if we were talking about $221,000 and some change... maybe
 
@Drise Wasn't this "Bear love good cancer bad" (don't remember the exact name of the indiegogo campaign) related?
 
MSVC's \showincludes flag is less useful if you include a file that includes <functional> :/ MSVC really needs varargs
 
9:33 PM
@Zeta Yep.
@MooingDuck VC or VC++?
 
So am I the only one who finds it downright hilarious to ask a question about "how things should really be done", then using Javascript as the example?
0
Q: Is it best practice to use array[array.length - 1] or roll your own method?

BloodyaugustFor example (in JavaScript): //Not that I would ever add a method to a base JavaScript prototype... //(*wink nudge*)... Array.prototype.lastIndex = function() { return this.length - 1; } console.log(array[array.lastIndex()]); vs console.log(array[array.length - 1]); Technical...

 
@Drise VC++ "helpfully" puts this in the output window.
of course, that's not the full text since ideone apperently has a limit on how much I can enter
all in all, it's 1145 lines of logging.
 
I really need to stop giving away my rep with -1's
 
@Drise about once a week I have negative rep
 
22
Q: Is it possible to read infinity or NaN values using input streams?

DriseI have some input to be read by a input filestream (for example): -365.269511 -0.356123 -Inf 0.000000 When I use std::ifstream mystream; to read from the file to some double d1 = -1, d2 = -1, d3 = -1, d4 = -1; (assume mystream has already been opened and the file is valid), mystream >&...

 
9:37 PM
How much you have to be unlucky to not find SQLite C/C++ tutorial on Zetcode? ._.
 
Still looking for 3 votes.
 
AND THERE IT LAUNCHES
 
@Drise Upvote for you man
 
@unNaturhal Thank you kind sir.
 
@cicada hi, long time no seen :)
 
9:41 PM
@Cicada I'm afraid to click.
 
GAH! I JUST WANT AN ENUM. Since I included that file, I need to now link against a library for editing the registry. Freaking coworkers.
 
@Cicada this is awesome :D
 
Just because your paranoid, doesn't mean they're not after you.
 
@MooingDuck Gives: enum an {I, JUST, WANT};
 
9:42 PM
@sehe Hi there :)
 
@MooingDuck Hope I helped.
@DeadMG Has to be better than on your knees.
 
I hate when I have to add stupid dependencies. I really do.
 
Why does the last line not sound right?
Isn't the copy constructor private?
 
@Drise yeah, that picture is completely wrong. It's not copiable. it's movable, but you have to explicitly move it, so no problems.
@Drise oh, that's your prof isn't it? He's completely dead wrong, and it's trivial to prove. (in both C++03 and C++11)
 
GANGNAM STYLE
 
9:54 PM
Ehm... C/C++ compilers doesn't understood a string (c_str) splitted on more than one line? o.o
 
@MooingDuck I think I bumped into it when writing my own stream overload (for the first time). The compiler got really really angry.
@unNaturhal String literal? No.
 
@unNaturhal strings are a series of characters. String's don't have the concept of "lines"
@unNaturhal oh literals? no. Use '\n'
 
Like this:
 
cout << "This
is
not
a
string" << endl;
 
@Drise common, though in MSVC the error it gives is useless and confusing
 
9:56 PM
ajascent literals are concatenated
 
@MooingDuck I forgot to take it as a &
 
adjacent*
 
char foo[] = "This works";
char bar[] = "This
doens't
work";
 
@yurikilochek Do you have an up arrow on your keyboard? If yes, then use it.
 
@unNaturhal char bar[] = "This\ndoes\nwork";
 
9:57 PM
@unNaturhal char bar[] = "This\nwill\nwork";
 
@unNaturhal See my example.
 
@MooingDuck I don't want to have a newline character :P It's just for a coding style, to avoid to wrote long blob of text on the same line
 
@Drise your sample shows what not to do, but does not show what to do
 
@unNaturhal There's no other way.
 
@unNaturhal then do multiple appends
 
9:58 PM
char bar[] = "This"
"will"
"work";
 
@Drise I think there is actually
@Prætorian you still want '\n' in there
 
wait, doesn't c++ have a \ end line char which means continue to the next line?
 
59 secs ago, by unNaturhal
@MooingDuck I don't want to have a newline character :P It's just for a coding style, to avoid to wrote long blob of text on the same line
 
@Drise yes, but it's not needed there
 
@Drise @MooingDuck Multiple appends I think that are inefficient..
 
9:59 PM
> It's just for a coding style, to avoid to wrote long blob of text on the same line
 
@Drise In the compiler directive that starts with # yes, it works..
@Drise Thanks :P
 
@Drise basically you only need that for multiline macros. That's the only thing in C++ where it all has to be "on one line"
 

« first day (655 days earlier)      last day (4297 days later) »