« first day (101 days earlier)      last day (4849 days later) » 
00:00 - 22:0022:00 - 00:00

sbi
12:41 AM
@CharlesBailey Well, I see it thus: It was bad he made those comments, it was good he got down-voted, it was bad he got down-voted so badly, it was good that deletion of his post will restore his rep. Anything else? Oh yeah, serial down-voting is bad, too, the bot correcting this is pretty good, though.
That leaves us with a lot of bad things which were corrected by the system. I wish all my code was as self-correcting. :)
Anyway, I'm off to bed now. 'night!
 
 
3 hours later…
4:00 AM
@JamesMcNellis it may be a cultural thing, but to me all that whining from SO users sounds like spoiled small kids. also, their cheerful adoption of idiot's interpretation of hans' "pay the piper", never thinking they could be wrong, sounds like very small kids. i will not write any answers restricted by rule to not offend spoiled idiot kids. i find hans' apologies to be almost offensive; apologize for what?
 
@AlfPSteinbach Oh, I agree wholeheartedly.
Speaking of spoiled small kids, a boss of mine a few years ago told me that after they decided not to hire one of their interns full-time he got an e-mail or phone call (I don't remember which) from the guy's dad asking why.
 
yeah, i read about the phenomenon -- folks who bring their parents with them to interview. next step will probably be they bring their lawyer (paid by parents). heh.
Quoting Andrew Koenig on the link below: "This is why there's so much knowledge at universities: The freshmen bring a little in; the seniors take none away; and so it accumulates."
 
Ha ha ha ha
I used to think people with Master's Degrees must be really smart. Then I took graduate classes; that sure quashed that misconception pretty fast.
 
5:05 AM
hey guys, could anyone check this out. stackoverflow.com/questions/4778657/… I am migrating some of my code from linux to windows and I'm stuck here..
 
check out the link in the answer
 
Even after putting the stuff in #ifdef _WIN32, the test code I have given there doesn't work. The open call is returning -1
 
5:38 AM
Exactly what are you doing?
The *nix access/security model does not transfer directly to Windows.
 
Hi all, Is there a book/resource out there that discusses high performance computing techniques using C++? I'm not interested in beginner to intermediate technqiues, more interested in advanced things like creating stack based allocators for stl containers, high througput messaging systems etc. is there anything out there?
If no one's going to answer, I'm might take a screenshot of this and post it up on reddit! just kidding.... :D
 
6:50 AM
uh, openvc. I've placed a nice little png image of Lena in the executable's directory. As far as I know PNG is supported format (I first tried GIF), but still cvLoadImage returns nullpointer -- and cvGetErrStatus returns 0, no error?
Code:
//#include <opencv/cv.h>
//#include <opencv/highgui.h>
#include <opencv2/opencv.hpp>
#include <stdlib.h>
#include <stdio.h>

int main()
{
    IplImage*   pImage  = cvLoadImage( "lena.png" );

    if( !pImage )
    {
        int const           status  = cvGetErrStatus();
        char const* const   rawMsg  = cvErrorStr( status );
        char const* const   msg     = (rawMsg == 0? "Unknown error" : rawMsg);

        fprintf( stderr, "!%s (status-code %d)\n", msg, status );
        return EXIT_FAILURE;
Can anyone reproduce and/or explain?
 
7:10 AM
(I meant, opencv)
 
7:20 AM
Ah, OK. Bug in opencv + that Code::Blocks runs executable with project dir as current
 
sbi
8:13 AM
@Alf Do you ever sleep?
 
8:40 AM
hi
@alf: Do have any idea about symbian or nokia Qt?
 
9:32 AM
@AlfPSteinbach why does Lena sound familiar? is that the famous image used for an early test? (a model of some kind, iirc?)
 
9:52 AM
@sbi of course not :-)
@selladurai only the most superficial idea, sorry
 
sbi
@AlfPSteinbach Thought so.
 
@FredNurk IIRC Lena's full name is Lena Söderholm, but look it up. The picture is from the November issue of Playboy 197x, I think 1977. It was cropped to remove a sideways glimpse of some bare breast, in order to use as standard image processing test photo. There is an interesting story about Playboy lawyers going amok in early 1990's, trying to ban use of the picture and collect damages. Happily they didn't win. :-)
 
yes, that's the one I read about
 
hm, can't find the picture. running my own Find Files Faaaast!...
 
no interesting search results on google
 
10:02 AM
there's probably a wikipedia article
 
nope
Lena Söderblom came up, but she still didn't get any interesting results
 
Ah, I found it!
Find Files Fast really fast, but it had to stat the Microsoft Index Server first. Argh.
 
post it then
 
isn't she that someone from Firefly
 
10:07 AM
For image processing testing it's cropped to show only the head and hat.
U can keep yer hat on... :-)
 
lol
 
So, now you know the full picture. :-)
 
and no, she's not that someone from Firely
 
Perhaps it was Söderquist? Or something?
 
nop
0
Q: C++ constructor format

aaliHi, In Sams Teach Yourself C++ in 21 Days book, Day 12: Implementing inheritance, is this code snippet: Mammal(): itsAge(2) , itsWeight(5) {} Is this equivalent to saying? Mammal() { itsAge(2); itsWeight(5); } What advantage does the first form have? Especially its usage in the book...

this is a total dupe, but I've no idea how to find the faq question that undoubtedly relates
 
10:12 AM
Lenna or Lena is the name given to a standard test image originally cropped from the centerfold of November 1972 issue of Playboy magazine. It is a picture of Lena Söderberg, a Swedish model, shot by photographer Dwight Hooker. The image is probably the most widely used test image for all sorts of image processing algorithms (such as compression and denoising) and related scientific publications. The anglicised version "Lenna" of Söderberg's name comes from the Playboy article; Playboy changed the original "Lena". History The picture's history was described in the May 2001 newsletter...
 
sbi
@DeadMG You go to <http://stackoverflow.com/questions/tagged/c++-faq> and search the list. (It's not very long yet.) As it happens, I remember the title of that FAQ contains the word "colon", which my browser found me. I've already voted to close this as a dupe.
 
10:28 AM
Hm, that Wikipedia article on Lenna is good example why not trust Wikipedia. It has a section on "Controversy" where Playboy is allowed to say how nice they are to allow the picture to be used. Nothing about their all-out effort to ban it. So it effectively lies.
 
sbi
@DeadMG That's interesting. That guy joined SO the day SWEngineer was put into suspension (for posting >50 silly questions) and has already posted 6 silly questions, half of which got closed. Paul R pointed at the similarity. I've flagged it for moderation.
 
about the Lenna war, what Wikipedia neglects to mention & effectively lies about:
 
10:54 AM
Yellow..
A quick one if you don't mind.. I got a DWORD timestamp, how do I translate that to FILETIME.dwLowDateTime and FILETIME.dwHighDateTime?
 
@72con Depends. You're talking Windows. There are all sorts of DWORD timestamps.
 
Ok.. I get mine from low level mouse hook struct..
 
sbi
@DeadMG Wow. Marc deleted the account right away.
 
@72con Well then, check the docs for that struct.
 
All they say in the docs is "the timestamp" or smth.
Well, DWORD = 32 bits (?)
 
11:02 AM
@72con yes DWORD is normally 32bits
 
Both low and high fields in FILETIME are DWORDs, intuition tells me the higher should be (DWORD)0 and the low should be just the timestamp then?
..but that doesn't exactly work. Spot the problem in my thinking?
 
@72con what mouse hook struct does your DWORD come out of?
 
Apparently its number of milliseconds since last boot
 
MSLLHOOKSTRUCT
 
At least if it's similar to GetMessageTime
 
11:09 AM
ft.dwLowDateTime = timestamp;
ft.dwHighDateTime = (DWORD)0;
FileTimeToSystemTime(&ft, &time);

gives me a SYSTEMTIME where the time of day is right but the year, month and day represent 1.1.1601
Would you expect the time of day to be right if it was indeed time millis since last boot? I think not?
 
So I think it's about getting the right stuff into that high field..
(But that doesn't make sense.)
oopsie daisie..
 
but why do you need the date?
yes <g>
 
I do get the time of day from a GetLocalTime call.. so it's probably all rubbish the way I construct the SYSTEMTIME like I do.
..I need the date to produce a log message with a date, rather than timestamp.
(timestamp in ms)
 
uh oh, are you going to log every mouse event?
 
11:14 AM
nope.. one in ten.
 
well that sounds pretty odd & useless (enormous log!), but why not just pick up the local time from GetLocalTime or whatever and use that?
 
It's for a study I'm conducting, need to log much of the window management etc. behavior..
And I'm not picking the local time because I want as accurate a time as I can get for the actions.
I'll live if I have to stick with the local time but it should be doable to get a date string out of a DWORD timestamp representing ms's :)
 
Well there is GetTickCount
besides, since the clock part works, you can just add on current date
 
On the first log message I'd record the local time and the current tickCount and then after that always add the tick count to the original date?
(difference between original tickcount and current tick count)
 
for example, yes. but i don't any longer remember the formats here. you'll have to try it out.
as i recall the most accurate timer is in the multimedia api, but i don't think you need that
 
11:24 AM
Well, I think the closest number to the truth here must be that which comes with the mouse event (not that I really know where and when that field is set).
Maybe I'll come up with something! Thanks..
And you were right, the timestamp from the struct (8991414) seems to be the time in ms since last boot.
 
12:05 PM
Pretty insane solo in there... Also, beautiful. In its own way...
 
Heh what a nice C++ discussion :)
 
we strive to keep the chat off-topic :-)
 
What's the interval of an unsigned long long on a 64bit machine?
There is a problem on projecteuler which asks to sum up all digits of 2^1000.
but I guess long long is way too small for that
 
it's just 1
don't need no program for that he he
 
?
 
12:20 PM
2^1000 = 10000000000000000000000000000 ... 0000 (binary)
 
well in decimal
I guess
 
@AlfPSteinbach hahahaha
 
1 is 1 in decimal
 
2^1000 = 1,0715E+301
 
yeah that's what google tells me
 
12:22 PM
so that is 1,075 x 10^301
big number
not sure what you'd store that in
 
afaik in Python you can have arbitrary long integers
 
Tony, probably using gmp
 
oh our teacher didnt show us or tell us the whole lenna pic
2
 
yes, but i'm thinking you can just use modular arithmetic
 
is there a boost library which is like BigInteger in Java or something?
 
12:23 PM
@Nils There is gmp
 
@AlfPSteinbach To figure out all the digits?
I guess they want u to do something smart, instead of just using a lib
 
not sure. n'th decimal digit is 2^1000/10^n % 10
 
It's like just one line in Python or so: str(2**1000)
Wel it's too easy like that. @AlfPSteinbach Interesting thought, unfortunately my I have no idea..
 
Right tool for the job
 
Don't post it, people are supposed to solve it for themselves ;) But I got the same..
 
12:32 PM
ok, deleted
 
mathforum.org/library/drmath/view/55787.html I guess that's what the wanted you to do
 
@JohannesSchaublitb you're welcome
 
12:57 PM
:)
/me should learn for exams, but is not really motivated
 
-1
A: Connecting the C++ class with the LUA table

DeadMGWhat you need to do is create a userdata on the Lua stack in C++ and use that as the object. You can fairly simply placement new into it and arrange the metatable from C++. Of course, this is hideously type-unsafe, amongst the other huge holes in the Lua system.

drive-by downvotes for the loss :(
 
sbi
@JohannesSchaublitb You bet.
@AlfPSteinbach "This video contains content from Sony Music Entertainment. It is not available in your country." I see that a lot.
@DeadMG Is "scrippie" the appropriate nick for a script kiddie? (Sorry for not upvoting, BTW, but not having even looked at Lua I have no idea what you're talking about. And I feel bad about voting on something I don't even think I understand.)
 
1:14 PM
@sbi Music industry needs wakeup call. Let's start some counter movement, say, let's call it "Pirate Bay". Hey! :-)
@sbi Of course, when I'm viewing the video all is OK and legal. If you managed to view it, it would be not only be illegal but you would be causing the music industry a loss of $20.000 or so (as they've established in US court cases). And that is why you see the message that it's unavailable: for if you could view it, then you would be stealing $20.000 from them.
 
sbi
@AlfPSteinbach Yeah I know. Actually, I don't feel like laughing about it.
 
1:32 PM
@sbi thats crazy
perhaps they are taking it a tad too far
 
1:52 PM
is there a lambda way to check for string::empty or if it contains "not-a-date-time" and return true if either empty or it does contain that specific string?
instead of doing a function call
 
sbi
@Tony Um, can you put that into dissectable (if that's even a word) English?
 
I can put it in C++
if (mystring.empty() || mystring == "not-a-date-time") return true; else return false;
 
sbi
And what's wrong with calling a function? A function, basically, is an algorithm that's been given a name. This helps when reading code which calls the function (you don't have to understand the algorithm, because the name says what it does) and it helps when you look at the algorithm itself, because the name tells you what it should do.
 
seems so silly to put one line in a function, lambda makes this inline
 
sbi
@Tony For one, this spells return (mystring.empty() || mystring == "not-a-date-time");. Further, what date-time format are you looking for and do you already have code to check for that?
 
2:05 PM
boost::posix_time is what I'm using
 
sbi
@Tony The first and foremost question when writing code should always be: How easy is it to understand that code? Silliness is secondary.
 
and it seems to put that string in it when I have not put anything in the variable, but am trying to retrieve it
 
sbi
@Tony Which I haven't used nor even looked at. :( Again: How do you check whether a string is a valid date-time string in that format.
 
@sbi I see, silliness is secondary... hmmm
@sbi I don't care about the string format for the date time, I just want to know if it is giving me that string "not-a-date-time", thats all I want to know really
 
sbi
@Tony There are definitely cases where lambda makes code easier to understand. But there are also many cases where it would do the opposite.
 
2:08 PM
@sbi yea I can agree with that
 
sbi
@Tony Oh, you mean the literal string "not-a-date-time"??
 
@sbi yes
the literal string
 
sbi
@Tony Sorry for being so dense. Well, what's wrong with return (mystring.empty() || mystring == "not-a-date-time");?
 
@sbi nothing I guess
however thought lambda would be fun :)
anyhow, I'll just make it a function then I guess
 
3
Q: Secure C++ coding practices

ShinnokI am looking for a comprehensive record of secure coding practices in C++. Since i haven't found such a list existing here already we might as well make this into a community wiki, for further reference. I am looking for solutions to security issues like stack and heap based buffer overflows and ...

 
sbi
2:11 PM
Although I would probably put this into a function is_not_valid_datetime(const std::string&), because that's giving the condition a name and later maintainers a place to hook further validity tests into.
@Feeds Oops, someone used the c++-faq tag.
 
@sbi no worries about being dense, I guess I can understand your frustration with noobs as me trying to ask annoying questions that don't even seem to make sense at first in English
 
sbi
@Feeds I've removed the c++-faq tag. It was the idea of a moderator to add it, but I can't remember having seen many such questions before.
 
didn't know you could talk to @Feeds... isn't that some bot or something?
 
sbi
This question
25
Q: What is The Rule of Three?

FredOverflowWhat does copying an object mean? What are the copy constructor and the copy assignment operator? When do I need to declare them myself? How can I prevent my objects from being copied?

has now gotten an interesting related one:
18
Q: Rule-of-Three becomes Rule-of-Five with C++0x?

XeoSo, after watching this wonderful lecture on rvalue references, I thought that every class would benefit of such a "move constructor", template<class T> MyClass(T&& other) edit and of course a "move assignment operator", template<class T> MyClass& operator=(T&& oth...

The former is an FAQ, the latter would be a very valid addition to it.
How do we deal with that? Merging? (Ick.) Linking?
 
I think just Link them, if I may give my opinion... because the first question is still valid for C++ prior to C++0x.
 
2:36 PM
is there a possibility in to allow downloading a certain file but not comitting it in subversion?
 
3:28 PM
wow, its gone rather quiet in here....
 
@Tony: shhhh. sleeping
 
@JohnDibling hehe
 
lol
 
sbi
@JohnDibling Too late. He woke me up.
 
@sbi: go back to sleep!
 
3:35 PM
you sleeping monkeys
get y'all some coffee and wake up! hehe
even @Feeds has gone to sleep
lol
 
sbi
@JohnDibling I did, only now you woke me up again!
 
@sbi: ok, i'll be quiet
@sbi: I promise
@sbi: I won't say anything else
@sbi: and let you get some sleep
@sbi: we know that you need your rest
 
sbi
@JohnDibling You know, my FF actually does not beep. (I'm sharing this room with 2 other developers, after all.) But it has a (*) in its titlebar when I'm mentioned, and when I look at the <whaddaya-call-these-thingies-when-they-are-in-the-taskbar> after I started a test, I'll see those.
 
lol
is it me, or is the STL actually a kind of poor choice for introduction into a Standard library?
 
3:44 PM
I mean, think about it- most of that code isn't going to be platform-specific anyway
 
@Dead: Maybe it depends on what you mean by "STL" and what you're trying to do with it
 
well, I was thinking in terms of "that set of data structures and algorithms"
and it occurred to me that, as the source is probably completely portable anyway, there was little need to Standardize it
or rather, not that it shouldn't have been Standardized, but rather that the Standard should focus on providing libraries that are actually different between platforms
 
@DeadMG Why do you think that the standard library should only contain platform-specific components?
 
@James: +1
 
because I don't need the Standard's help to download a library that is already cross-platform
 
sbi
3:47 PM
@DeadMG Before the standardization, there were almost as many container-and-algorithm libs as there were string class. (Ok, maybe three or four orders of magnitude less. But there were many string classes.) After the standardization, there's only one. I call the a great success.
@JohnDibling That's spelled "starring" here.
 
@sbi: oh, ok, thanks
@James: starring
:)
 
sbi
@JohnDibling Oh dear!
 
lol sorry, i'm just having fun with ya
 
@DeadMG How many libraries out there are fully cross-platform? Boost strives to support most commonly used compilers, but there are still issues with some.
 
yeah
because they generate a lot of code that actually needs to be written differently for each platform
 
3:50 PM
With a standardized STL, (a) implementors have to work around bugs in their own compilers and (b) implementors can take advantage of compiler implementation details to implement high-performance code under the hood. [Ok, (a) is a lie because if there are bugs in the compiler perhaps they'll just release a buggy STL too ;-) But ideally...]
 
sbi
@JohnDibling Having fun, yeah?
 
I'm not saying that standardizing the STL was bad
 
It wasn't bad; it was just a poor choice? ;-)
 
the two are not the same
I just feel that the Standard mostly offers code that, frankly, I could write myself on the CRT or pre-provided facilities like new, or from common libraries such as Boost, in comparison to code that I struggle to write myself, like GUI code
 
sometimes it feels like 'pedanticness' comes into these conversations, or is that just me?
 
3:53 PM
I wish more of my poor choices didn't turn out badly...
@DeadMG No standardized GUI library could be truly successful. Platforms for which you write GUIs are too varied and evolve far too quickly.
 
Java and C# seem to be doing just fine with it
 
sbi
@DeadMG Yes, but they also are their own platform.
 
only in a technical sense
 
@DeadMG There have been several .NET GUI libraries in the ten or so years that .NET has been around.
 
if I write a GUI class for Windows and try to run it on an iPhone, I'm gonna have bigger problems than binary compatibility
 
3:56 PM
Furthermore, the GUI libraries for Silverlight are different from those available for .NET and even on Silverlight there are differences between what is supported on Windows Phone and on the desktop platform Silverlight because the platforms are so fundamentally different (phone UIs are different from desktop or browser UIs)
 
see, I think that's fine
 
sbi
@DeadMG Yes, now that we know it, we all could just write the STL ourselves, right. (Well. Have you ever tried implementing a std::vector-look-alike?) But when it was revealed to the public for the first time, people were just gaping at the disgusting thing and shook their heads.
 
whereas C++ seems to feel like every inch of code provided by the Standard must run on absolutely every single platform in existence, ever
 
@DeadMG Yes. (Though, C++0x now adds "conditionally supported" language or something like that.)
 
sbi
@DeadMG Like iPhone requiring you to use Objective-C++? :)
 
3:58 PM
not really up to date on the iPhone restrictions, they seem to change a lot
I mean, Standard GUI libraries do not have to be the latest & greatest for every platform, and they never will be, but a few basics here and there would be nice
 
Ok; off to work. Later, all.
 
have fun
 
wow, some have to work? pffff
 
Off to coffee, then to work.
 
sbi
@DeadMG But this is what we already have! Different GUI libraries covering different (sets of) platform(s). What more do you want?
 
4:04 PM
I want the Standard to provide the basic(s) so if I want to pop up a dialog with one line of text and an OK button, I don't have to reach for the Windows API or WPF
 
sbi
@DeadMG But haven't you just said yourself that, for different platforms, there need to be different libraries?
 
no, no
that was only for the latest and greatest
 
sbi
Well, to this:
10 mins ago, by James McNellis
Furthermore, the GUI libraries for Silverlight are different from those available for .NET and even on Silverlight there are differences between what is supported on Windows Phone and on the desktop platform Silverlight because the platforms are so fundamentally different (phone UIs are different from desktop or browser UIs)
you answered:
9 mins ago, by DeadMG
see, I think that's fine
 
indeed
he stated there were differences, not there were no similarities
 
sbi
??
 
4:08 PM
There's a difference between saying "Libraries for Silverlight on desktop & Windows Phone are different", and, "Libraries for Silverlight on desktop & Windows Phone are so incredibly different that there are no simple GUI operations that could possibly be common between them".
 
sbi
@DeadMG But since it seems impossible to create a GUI lib that works equally well on my toaster, your phone, my Win7 PC, her OS X Mac, and his OpenSolaris machine (it's not that people haven't tried, see Qt, wxWidgets and others), what do you propose?
 
well if you have a platform that doesn't support GUI and I have a library that depends on GUI modules, then you're going to have more problems than just interfacing when porting those libraries
so I say that if a platform doesn't meet a Standardized minimum, then it should just have some static const somewhere that says that it doesn't provide that library
else, it provides a Standardized minimum
 
sbi
@DeadMG But all the platforms I listed do have GUIs. (Well, just imagine that fancy .NET toaster I have.) Maybe sometimes some genius comes along and teaches us all how to do GUI libs, as Sepanov taught us how to make abstractions efficient and elegant. Until then, there's nothing to standardize on.
C++ has generally settled for standardizing existing libraries. Where they diverged from that, the committee either failed completely (std::valarray) or considerable (std::string). And we now have to live with the wreckage.
 
There's a std::valarray?!?!?!
 
there is
 
4:13 PM
I know. I was trying for the sarcasm.
 
not that I have any idea what it's actually useful for, all the information I have suggests that it actually isn't useful for anything
ah
 
sbi
@JamesMcNellis IIRC, it was as attempt at HPC with C++, which was abandoned by its proponents during the later states of the standardization and was then squashed by TMP.
@JamesMcNellis Oh. :-x
Did you ever notice that, besides the "worldwide trends", Twitter has a "change" link? I always thought changing worldwide trends is hard.
 
2
Q: Show whether a question was "reddited"

Johannes Schaub - litbI sometimes find a question has like 50000 views and later I find most of those were reddit users that got in rage or glee about something of it. Yesterday there was an answer of a page-one user that upset reddit folks, and within minutes that post were downvoted to -70. It looks like reddit ha...

 
current_trends.swap(new_trends); // easy!
 
sbi
@JohannesSchaublitb You did see this one, right:
22
Q: Top user's answer victim of Reddit mob behavior

Rafe KettlerI don't know Hans Passant, but he's the 5th highest rep user on SO, and I'm sure that's no fluke. He clearly is very active and knows what he's talking about. His answer to the question at vb.net - Interrupt form loop and end form did not satisfy the OP. He asked for the answer to be accepted an...

 
4:19 PM
ohh i missed it haha
ah he was drunk lulz
 
lol
 
5:05 PM
huh, @sbi deleted starred link to standard image processing test photo? :-)
 
pretty sure that the link was to the full uncropped version
 
well, any chat group should have a, what's it called, like a ship dog, a symbol. i say, why not lenna. a photo used as standard since 1972 can't be controversial.
 
the standard is the cropped version
 
no, that was only because their scanner only could take 512 pixels vertical
 
sbi
@AlfPSteinbach ???
 
5:09 PM
let's do better than arbitrary limitations of 1972's equipment
@sbi uh, well, someone
 
sbi
@AlfPSteinbach Someone what???
 
took his Playboy nude models off the starred list
 
@DeadMG no, it was the Lenna pic. which you asked for!
 
pretty sure that I didn't specify that I wanted the full nudity version
 
sbi
@DeadMG Oh. Well, and why did @Alf ask me?
 
5:11 PM
more specifically, there's a difference between posting that link in chat in context and starring it
@sbi: I have no idea, I think he assumed that you removed it
 
sbi
@DeadMG Neither @Alf, nor you are in the U.S., where nipples creates great ripples, so what are you complaining about?
 
@DeadMG u know, i strive to give complete answers. within what's reasonable, anyway.
 
hey, I'm not complaining at all
all I'm saying is that I'm pretty sure that this isn't on the list of acceptable things in chat
not suggesting that I would mind that kind of picture in here, but I don't write the rules
 
huh, it seems it's back!
well it fast out of the list, it just surprised me that it was gone
 
sbi
@DeadMG I can't remember having read a rule that forbids certain kinds of pivtures to be posted here. ICBWT.
 
5:16 PM
me neither, but it's pretty normal
 
sbi
@AlfPSteinbach You know, I didn't star it when you posted it, because I didn't consider it great enough a contribution then, but people un-starring pictures because there's a girl on it who's to poor to buy clothes really gets on my nerve, so I starred it now, just for kicks.
 
lol
 
sbi
@DeadMG I'm sorry to say, but that's not enough for me. Unless there's a written down rule somewhere, from a someone I have to (grudgingly) acknowledge, I don't accept the verdict that "there's a rule against this".
Meh. I almost feel like posting a bunch of nudies here now.
 
ok then
rofl
I was about to say, let me just google some porn and start posting it
hell, if you want to do it, that's fine by me
 
hey, let's keep on-topic
 
sbi
5:21 PM
@DeadMG Well, were you draw the line between porn and art is definitely subject to different social standard, but to call that pic porn is certainly stretching the term pretty far by most western cultures.
@AlfPSteinbach No! Let's keep it off-topic. Why else would I be in the chat? :)
 
Well, I'm just wondering, Facebook has now gained some positive rep for fostering a regime change in Tunisia and currently large scale demonstrations in Egypt and Lebanon. And Twitter and IRC have gained rep as a communication channel for the Anonymous hacker group (taking down Visa and Mastercard). So, what about SO chat?
I think the some popular topic is needed, some topic that a lot of folks are interested in and want some change.
Like, down with Java?
No, sorry.
 
sbi
5:37 PM
@AlfPSteinbach Ha! That fits my tweet from earlier today! Changing worldwide trends is only a mouse click away...
@AlfPSteinbach I don't think Java can sink any lower than it already is. :)
 
0
A: how to create a triangle in c++ without using opengl, directx, or other api.

Alf P. SteinbachIt seems you don't want character graphics. Then, if you want to restrict yourself to pure standard C++, no external libraries (not even OS API), then you're limited to creating graphics files. The easiest is to use some text-based graphics format, such as SVG. Then you can do almost anything,...

I answered a question. But my idea generator is not running full speed. More suggestions would be welcome (they're useful for beginners, I believe).
 
sbi
There's just been the word here at work of an after-work beer. I think this sounds nice and will join in. So as soon as everybody has answered their put off mail and checked in their code, I'll be away for the evening. Have fun!
 
 
1 hour later…
7:05 PM
@sbi Yes. Trying to reinvent std::vector introduced me to "placement new" and "calling destructors directly", two concepts I have never needed anywhere else since :)
 
 
2 hours later…
8:40 PM
this->~chat(); Oops, I just killed this conversation.
 
8:51 PM
hmm
 
owned?
technically, you destructed the conversation
I'm not sure that killed would be the right term
right, I'm gonna go to bed, been up for a ridiculous fifteen and a half hours
 
i've now been up for 24 hours
i feel like it's only been 10. i've got some strong coffees a few hours ago
 
9:11 PM
@JohannesSchaublitb Strong coffee is not the answer; sleep is.
 
@CharlesBailey Are you saying Java is not the answer? :)
 
lol
i hate to sleep. i like to troll the usenet and clang bugzilla
 
@FredOverflow Java is almost never the answer; Jamaica Blue Mountain, perhaps.
 
9:31 PM
Jamaica Blue Mountian is the most overrated coffee efar
 
C++ is not an OOL!
 
@Xaade and?
 
Nothing,
I just jump in here and say that every now and then.
 
@Xaade Oh, OK, then.
 
Interfaces to classes can be very useful. What is considered Interface abuse?
1. Using complex set of interfaces to manage psuedo public attributes to members of a class?
2. Using interfaces to delegate multiple inheritance in languages that don't support them?
3. etc.
 
9:46 PM
should i bite?
nah, turns out i dont really care
:)
i know how to do stuff. doesnt matter what the kewl kids choose to call it
 
@JohnDibling I only care because I learned about it's use, and now I'm using it more than inheritance.....
 
@Xaade: I'm referring to your OOL comment
 
Useful question instead
 
Is it your claim that C++ is not OO because not everything is an object?
 
If you were to take a Class*, and cast it into a Class*& in a function call that has an argument list funct(Class*&), because the compiler cannot convert Class* to Class*& (is that a bug?), would it break?
Class* aClass; funct((Class*&)aClass);
Rather, here's what really happened. [funct(CObject*& arg)] Class* pSomething; funct((CObject*)pSomething); {Compiler error: Cannot convert from CObject* to CObject*&}
But this worked. Class* pSomething = new Class; CObject* pReference = (CObject*)pSomething; funct(pReference);
 
9:58 PM
in your non-working code i think youre creating a temporary
 
temporary CObject*
Yeah, but why didn't it work?
The temporary should exist until the function call finishes executing.
 
00:00 - 22:0022:00 - 00:00

« first day (101 days earlier)      last day (4849 days later) »