« first day (625 days earlier)      last day (4324 days later) » 

5:02 PM
Just so everyone know.
 
Thanks. That's good to know.
Is rivalry between Americans and Canadians really such a big thing?
 
@StackedCrooked only with Hockey. Otherwise we're like "who?"
we just glance over every once in a while to see if they're still alive or not
 
They die occasionally?
 
@StackedCrooked all people do. But if they died off, I figure it's something we should know about at least.
 
Canada and the US are each other's biggest trading partner.
 
5:12 PM
So they stay together for the money.
 
And also because they share a border.
 
Canada is just michigan's upper upper peninsula, imo.
 
It's not like we could say "alright, fuck this, just attach some propellers, we're going to hang out with Australia".
 
That would be cool.
 
we went to war with them once, but nobody cares. Most Americans forgot
 
5:14 PM
Moving a continent with propellers. Sounds like a theme for a Ghibli movie.
 
en.wikipedia.org/wiki/… American leaders assumed that Canada could be easily overrun. Former President Jefferson optimistically referred to the conquest of Canada as "a matter of marching."
 
@MooingDuck You never went there in February, right?
Hmm, mayonaise really goes well with anything.
 
@MooingDuck Interesting. Never knew that.
@EtiennedeMartel Mayonnaise is disgusting.
 
Tsk tsk.
 
I'd rather eat bird shit.
Ok, well maybe not. But still.
 
5:22 PM
What do you put in your sandwiches?
Or on your fries?
 
Turkey, pickles, provolone.
Ketchup.
Like normal people do.
Oh also bread is useful, but optional.
 
@Drise Correction: like Americans do.
 
On a completely different subject...
@EtiennedeMartel Exactly, like normal people.
 
Tututu.
 
@EtiennedeMartel Americans use mayonnaise, that creature is confused.
 
5:24 PM
In Belgium and the Netherlands people put mayonnaise on their fries.
 
See? That's the sensible thing to do.
 
Most Americans I know think mayonnaise on fries is weird.
 
@StackedCrooked That's sacrilege.
 
Okay, fries is definitely not standard, but I've seen it happen.
 
@Drise The Belgians invented the fries, so show some respect.
 
5:25 PM
Here fries with mayonnaise is the absolute standard.
 
@EtiennedeMartel Americans commercialized it, show some respect.
 
Americans commercialized anything.
 
@EtiennedeMartel Anything? Where can I buy anything?
 
It is on the shelves right next to something.
 
@Drise At Wal-Mart.
 
5:26 PM
@Drise Amazon.
 
@Collecter I'm glad someone got it.
@SamDeHaan Forgot EBay. People sell toast that the burn looks like jesus or some shit.
 
@Drise That's because Jesus put his face on that toast. He clearly wanted me to make money off of it.
 
@Drise I have seen some wierd things for sale on ebay.
 
Calvé is good brand for mayonnaise.
 
@Collecter Used socks is one.
 
5:28 PM
@SamDeHaan Times are rough.
 
@Drise I thought about doing that after I saw that ama.
 
@EtiennedeMartel that song you sent me wasn't bad at all.
 
@Collecter I just want to know how he got the idea to start selling.
 
@Drise If I remember right a friend showed him or was surprised that thier used socks sold for a lot, and he did some research and found out why.

I am at work, so am not actually going to the topic right now
 
5:36 PM
@StackedCrooked Patrick Watson is quite the musical genius.
 
Lately this song "I take a walk" by Passion Pit is aired a lot here.
 
5:53 PM
@Olumide How about "Vandevoorde"?
102
Q: What are the differences between Generics in C# and Java... and Templates in C++?

pekI mostly use Java and generics are relatively new. I keep reading that Java made the wrong decision or that .NET has better implementations etc. etc. So, what are the main differences between C++, C#, Java in generics? Pros/cons of each?

@Olumide If you think about it, specifying operator T() as T operator T() would be redundant and error-prone; what if someone accidentally wrote U operator T()? In case you don't know, if operator T() appears inside a class X, it means objects of type X can implicitly be converted to objects of type T.
 
6:10 PM
> C++ produces raw x86 binary code
Well, if that's not a shortcut, I don't know what it is.
 
@EtiennedeMartel I'm unsure how that sentance relates directly to the rest of the answer.
hmm, this program for detecting speech patterns is case sensitive with test input. That seems rediculous
 
Bitcoin forums are wonderful.
 
I'm not sure I get it, what's the endgame for bitcoins?
 
There was a guy who knew nothing about running a business, trying to raise 350k$ to renovate and run a theatre in some 9k city.
No, I can't even describe it.
 
If anyone needs any FREE Photoshopping done today (that I can also put in my portfolio), then I would be happy to do it
 
6:23 PM
@Collin Internet monies for project founders funded by idiots.
 
Would the whole bitcoin thing still work if we had quantum computers?
 
@KianMayne I don't htink bitcoints works at all, except that people think it does.
 
@KianMayne If I remember correctly, then it would still work if quantum computers were invented today. I know bitcoins are constantly getting harder to earn, and I believe there is a hard limit to how many will be produced.
@MooingDuck Just like the american dollar.
 
@Collecter heh, fair enough
 
Anyone know of any decent C# WCF tutorials?
 
6:29 PM
@Collecter there is a hard limit
 
I was tempted to mine them once, then I saw a video on youtube showing it as an investment opportunity
Then I thought that I might as well invest in something else
 
@KianMayne Unless you saw the video soon after bitcoin launched, or have a rig dedicated to it, you would have earned crap. Trust me I have tried. xD
 
@Collecter Exactly
 
Urgh. This whole 'do X part of project Y' stuff about working in the real world is frustrating when your input on architecture is ignored.
 
6:54 PM
Are you a bricklayer?
 
@Collecter the dedicated rig thing has passed last I heard. The speed that they generate money no longer justified the electric bills
 
7:07 PM
@MooingDuck may we talk in Lounge<C> room?
 
1
Q: Passing char* into void class functions and dynamically allocating memory for them c++

NickStudent.h class Student { private: char m_sHouse[64]; public: Student(void); ~Student(void); void getHouse(char *hName); void setHouse(char *hName); } Student.cpp void Student::setHouse(char *hName) { strcpy(m_sHouse, hName); } void Student::getHouse(char *hName) { ...

Look similar anyone?
 
@Drise class Student is usually a dead giveaway.
 
I retagged it as homework.
 
hmm Hogwarts. I might use that instead of flintstones in examples
 
greetings... how goes it?
 
7:17 PM
@SamDeHaan I'm taking the same course, so I found it funny.
 
@Drise Hah, perfect.
@Drise How did you address OP's problem?
 
@CatPlusPlus > Wow, talk about your complete 360
 
@SamDeHaan The professor is already allocating the char array.
 
That guy needs a serious explanation on what a 360 actually is
 
@SamDeHaan He simply needs to copy into it.
 
7:21 PM
@Drise Ah, gross. That was my guess, seemed to be the only way it could work.
 
@Cicada An outdated piece of crap hardware.
@MooingDuck The principle is solid, the execution is poor.
Well, from a crypto POV, anyway.
 
So how long will it take for AAA game publishers to produce a Linux version of their games?
 
@Cicada When there will be enough Linux users for that to be cost effective.
 
That will take a few years
 
rumour has it steam is coming to Linux and I'd guess the "steam play" branded games would be pretty easy to port
there was some video of native L4D2
 
sbi
7:35 PM
@DeadMG Today? No, today I did no such thing. (Although I did indeed do that on other days.) Today I criticized that you would engage in a philosophical debate without having thought through the things you were debating, and without even taking some minimal time to think before you reply.
@sehe I've read about it (I also follow CS on Twitter), but I don't do reddit, so...
 
Oh, @sbi's going through the backlog.
 
sbi
Jun 10 at 2:47, by Etienne de Martel
The Ape is always watching. Watching you.
 
Yeah, you like that quote, don't you?
 
Xeo
He likes to quote in general.
 
He's a quoter.
 
7:52 PM
Quotin is his thing.
 
Is he a @Collecter of quotes?
 
sbi
@EtiennedeMartel Fear The Quoting Gorilla!
 
Ppl
wanna to laugh?
Funny video about sex with Xbox 360 && PS3
 
Sounds very funny.
 
sbi
Mar 11 at 22:06, by sehe
^ Oh, really? Yawn
 
7:58 PM
If a SO/SE user never marks an answer as accepted, even though it is the obvious solution, is there a way to force the accept? Say like they disappear forever, and never come back and mark the answer.
 
Oooh, HostileFork. He still mad at us?
 
sbi
@Drise You mean other than the social means? No.
 
@sbi Metaquote.
 
Because this time I wouldn't apologise but laughed harder. SO broke me.
 
@CatPlusPlus Who?
 
8:00 PM
Ask robot.
 
sbi
Feb 21 at 18:24, by awoodland
is meta like rvalues references? does meta.meta.meta collapse to meta like &&& goes to &?
@CatPlusPlus Why was he mad at us? Didn't he know better?
 
Because we were MEAN MEAN MEAN MEANIES.
Or something.
 
@RMartinhoFernandes Oï, who's HostileFork?
 
He'd probably explode now.
 
sbi
8:02 PM
@StackedCrooked That very much looks like the trams in Berlin.
 
@StackedCrooked lol
 
That was rude of me. Lol'ing instead.
 
sbi
@CatPlusPlus Oh, I took that as a given. I was wondering why he was mad about that.
 
@sbi You mean the people?
 
sbi
8:02 PM
@StackedCrooked No, the interior.
 
Everybody looks German, ya know.
Everywhere you look, Germans.
 
@sbi Ah, well, they look somewhat similar here as well.
@EtiennedeMartel Or Germanic at least.
 
Oct 20 '11 at 14:51, by HostileFork
And I'm glad I'm not like you guys. Seriously. I'm glad I have the good sense to be angry at you.
 
sbi
@EtiennedeMartel You mean they look germane, shirley?
 
@sbi Don't call me Shirley.
 
8:04 PM
They look germy.
 
sbi
@EtiennedeMartel I just made you say that.
 
It was probably something about SSight, too.
 
@sbi Yeah, I figured you wanted to test if I would get the reference or not.
@StackedCrooked Germs.
 
If you don't remember that guy, he's the one behind this:
-2
Q: C++ subclass using keyword question

SSight3Say I have the following: template<typename TemplateItem> class TestA { public: TemplateItem Item; void Function1(){;} void Function2(){;} void Function3(){;} void Function4(){;} //Etc etc number of functions is quite lengthy }; templat...

 
sbi
@EtiennedeMartel Oh, that's a reference? I didn't know! What's it referencing?
 
8:06 PM
@sbi Airplane!, duh.
 
sbi
@EtiennedeMartel What's that?
 
A film.
 
@sbi > Looks like the screen says "S+U Warschauer Str" so prob Berlin
 
sbi
@StackedCrooked Are you teasing me? How can you see this on the picture? I zoomed in and couldn't decipher it.
 
@sbi You need to click 'enhance'.
 
@EtiennedeMartel Those italics look exactly like the original title.
 
sbi
@StackedCrooked Ah. I rarely are in that area (and then not in the tram), so I wouldn't catch that. But I did recognize the interior immediately.
@SamDeHaan What's that you're smoking, pal?
@EtiennedeMartel Um. UMTS. :(
 
@sbi Oh. Well, that is sucky sucky.
@sbi Tropes.
 
sbi
@EtiennedeMartel Never heard of that kind of herb.
 
8:13 PM
@EtiennedeMartel No, Memes. Duh.
 
sbi
@EtiennedeMartel Oh well. Since I used up all my flatrate for July anyway on July, 1st, I went and watched it. Can't say the snippet is impressive. I haven't seen the movie.
 
error: cannot bind 'std::basic_ostream<char>' lvalue to 'std::basic_ostream<char>&&'
What is this nonsense.
 
@Drise my bet is C++
 
outfile << "NAME" << endl
<< " " << "NAME" << endl << endl;
error on the second line.
 
Ell
you included the headers? ;)
 
sbi
8:18 PM
@Drise What is outfile?
 
What he said.
You're becoming a semi-regular, don't make me point you to the "asking questions" page. :v
 
I included fstream.
@CatPlusPlus I know..
outfile is std::ofstream.
 
sbi
@Drise You will have to provide a repro case. Of course, while distilling this, you will find the error yourself. Do not hesitate to inform us, though, now that you have piqued our curiosity.
Anyway, I am gonna pack my stuff here and go home. See you tomorrow, folks!
 
FUCK. It didn't like QStrings.
/usr/include/c++/4.5/ostream:579: error: initializing argument 1 of 'std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&&, const _Tp&) [with _CharT = char, _Traits = std::char_traits<char>, _Tp = QString]'
The last word tipped me off.
 
Apparently QString doesn't have const char* conversion operator. So therefore they suck?
 
8:23 PM
endl is QString?
What.
@StackedCrooked They don't need one, really.
 
@CatPlusPlus They have one, yes, but I was using the std::endl. I had a variable that I didn't put in my example that was a QString.
 
Well, apparently you're not.
 
@StackedCrooked toAscii() or toLatin1().
 
@CatPlusPlus Misread that a little bit.
 
@EtiennedeMartel toStdString() shuts up the compiler
 
8:25 PM
I don't see the problem with QString. I always create them just-in-time when I need to set the text of a widget.
 
@Drise Well, of course it does, std::string can be passed to a stream.
 
You're probably missing a header that defines operator<< for ostream and QString.
 
@CatPlusPlus #include <QString>?
 
Well, if you didn't do it, then probably.
 
Nope. Still complains.
 
8:27 PM
Maybe they don't define them at all.
 
I'm pretty sure I've cout << someQString; before
 
@StackedCrooked QString is better with Unicode than std::string, at least.
 
@CatPlusPlus And has useful functions like endsWith and toUpper, etc
 
@CatPlusPlus That may be. I'm not familiar with manipulating Unicode strings.
 
@StackedCrooked In short: std::string fails.
Eh, it's not that much better in terms of interface than std::string.
 
8:30 PM
@Drise Yeah, but those should be free functions ideologically.
 
@CatPlusPlus Fails miserably.
 
Even worse, probably, due to several responsibilities shoved into one class.
 
@StackedCrooked I prefer them as members imho.
 
(String manipulation, formatting, lexical conversions.)
 
@Drise I like my class interfaces minimal and complete.
 
8:31 PM
Even encoding/decoding.
 
@CatPlusPlus Q_CORE_EXPORT QDataStream &operator<<(QDataStream &, const QString &);
The only << operator I could find in qstring.h.
 
QDataStream is not std::ostream.
QTextStream is std::iostream, really.
 
@CatPlusPlus What is left then? A buffer class?
 
@StackedCrooked Well, I'd leave some string querying/manipulation in a string class.
 
@StackedCrooked I find member functions more readable and easier to find.
 
8:32 PM
@Drise It's quite trivial to write your own overload for std::ostream & operator<<(...)
 
@StackedCrooked I'm lazy. and toStdString() works.
 
Ell
right, what problems are caused by std string sucking at Unicode? what makes it suck? you can't iterate over characters, you can't append to a file, what?
 
Then what are you complaining about :p
 
I'll try implementing my own string some day. When SO damages my brain some more.
@Ell It's a byte array.
Unicode strings are not byte arrays unless encoded.
 
This makes me wonder; why is std::string not implemented in terms of std::vector?
 
8:35 PM
Small-string optimisation.
And in the old days, COW.
 
But none of those would be conforming anymore, right?
 
SSO is allowed for std::string now.
 
It was always allowed.
 
COW not anymore, AFAIK.
 
COW was allowed in 03. Or: not disallowed.
 
8:37 PM
What's COW?
 
I think O(1) guarantee on c_str() is what effectively bans COW.
Copy-on-write.
 
ah
 
Also, a bovine animal.
 
It's funny to hear my colleagues mention COW to demonstrate their knowledge.
A little late to the party.
 
folks
 
8:39 PM
Qt still uses COW.
 
any idea how is it can repair ntfs with broken MFT?
 
Hey Johannes!
 
@Cicada There's a copy.
 
@CatPlusPlus I guess they can do what they want.
 
AFAIR they use COW on every container, even.
 
8:40 PM
@CatPlusPlus but whar
 
@CatPlusPlus Yep, they even got some stuff to make writing COW containers easier.
 
Oh, no, there's only a copy of first few entries.
 
Ell
why, if lots of other languages have implementations of Unicode strings, doesn't c++ have one? or does it and I'm just talking out of my bottom?
 
Dunno then.
 
Regarding this question. Since I don't really do C++ I figured I do this assignment. How does my code look? How can it be improved?

http://pastebin.com/5NzFQvc4
 
8:41 PM
C++ has ICU.
 
@Ell Well... wchar_t was an attempt...
 
Which is basically the only choice, and the worst choice at that.
 
@Cicada What did you do to mess up your MFT?
 
wchar_t is so hilarious.
 
@Mysticial My disk did
 
8:42 PM
@JimNorton void getHouse(char *hName); is the most worrying
 
Hey guys, let's make a type that is supposed to be used for Unicode, but not specify the semantics or width at all.
 
@StackedCrooked Yeah, should be const char *hName ?
 
After all, compiler vendors are so good at working things out together.
 
@Cicada I've been able to fix minor MFT errors from scandisk. But I've never had a situation where it was completely dead.
 
@JimNorton No, std::string.
And the getter/setter is superfluous, just make the data member public.
 
8:44 PM
@CatPlusPlus Ok, the assignment that poster had was constrained to actually uisng C type "strings",
 
Also, don't do (void) in arglist, it's fugly C-ism.
 
@JimNorton It's an output argument. The scary part is that you write to a user-provided string without a specified length.
 
Yeah, unless you need data validation on that, fuck getters.
 
@JimNorton Then don't bother with it.
 
Ell
@catplusplus getter and setters aren't always superfluous
 
8:45 PM
Rarely. They are here.
Writing crappy code because OP needs someone to do their crappy homework is not a good use of time.
 
Yeah. Getting drunk is a much better idea.
 
@CatPlusPlus Yeah, thanks for the input. Was just curious. I will modify some more to make this simple program proper C++
 
Ell
I think they are good practise for consistency
 
@CatPlusPlus Agreed, I used it as motivation to write some C++ instead of C.
 
@Ell No.
 
Ell
8:46 PM
one day when you need data validation, you will have some getData and another data
 
@JimNorton Except you're not really writing C++.
Because nobody sane uses raw char buffers in C++.
It smells of a silly assignment.
 
@CatPlusPlus Yes, I will re-write as proper C++.
 
@JimNorton It's not C++ just because you got class in it.
 
@CatPlusPlus It was
 
Writing it a proper way and then laughing at OP is a good practice and general good use of time.
 
8:48 PM
@JimNorton struct Student { std::string house; }; // shorter, more dynamic and much safer than your code.
 
Piotr "schadenfreude" Legnica
 
0
Q: Go error: "fmt.Println not used". What?

JoeWhat the title said. I'm getting an error: fmt.Println not used The line mentioned is the last line of my source file. I'm not using the fmt package in that file, but I did recently. This happens when I try to build the package or run tests. EDIT: If I go clean myproject the project I sti...

Woop woop woop.
@EtiennedeMartel Citizen of the Internet.
 
> for the benefit of Cat Plus Plus
 
@StackedCrooked thanks
 
Oh, right, because only the Catinator is going to need this.
 
8:49 PM
Yeah, I'm not even going to bother responding.
 
@JimNorton Jim, I'll give you my solution, which got full credit. It also comes with a partial testing "main.cpp"
 
It does look like a compiler bug, but I'm not proficient enough in Go.
 
@CatPlusPlus I think you should aim for the first gold bage in Go. Go for it
 
@JimNorton In order to fix your original code a lot of code would have needed to be written to do the memory management correctly. And then you'd need to test and debug it. While using std::string gets you a correct implementation immediately.
 
@ManofOneWay What for?
 
8:51 PM
@Drise That would be great.
 
Using std::string is doing memory management correctly, really.
 
@CatPlusPlus Why not! You seem to be interested in it
 
@JimNorton Gotta get dropbox, hang on
 
@ManofOneWay Waste of time.
Oh, I've seen that Student question. I even commented.
Why are people teaching others pointers before they know basic language semantics. ;_;
 
Because they've been taught that way.
 
I'm more and more convinced that self-teaching is the best.
 
@Drise Thank you.. :-)
 
Maybe I'm just an oddball.
 
You need some feedback though.
 
@CatPlusPlus I don't know. Do students these days start out using C++?
 
8:56 PM
Depends on school/uni.
 
@CatPlusPlus He is discussing implementation of abstract data types. C++ happens to be the implementation language.
 
You can do that without teaching crap C++.
 
@JimNorton Usually. Its becoming more common place.
 
@CatPlusPlus When I went to school in 88 we learned Pascal.
 
@CatPlusPlus Yes. I know.
 
8:57 PM
I had C++ in high school and already then knew more than the teacher.
It's was a hilarious trainwreck.
 
@CatPlusPlus More like a furball.
 
Uni is mostly Java.
I wish it was all in Haskell. ;_;
 
"Ja va" means "yes dad" in Dutch.
 
@StackedCrooked Irony.
 

« first day (625 days earlier)      last day (4324 days later) »